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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/kotlin/com/rm/translateit/api/models/Name.kt | rustamgaifullin | 85,283,073 | false | null | package com.rm.translateit.api.models
import com.raizlabs.android.dbflow.annotation.Column
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
import com.raizlabs.android.dbflow.structure.BaseModel
import com.rm.translateit.db.AppDatabase
@Table(database = AppD... | 0 | Kotlin | 0 | 3 | fd153bd249aaf035ab2bc5359513d8a800869df2 | 465 | TranslateIt | MIT License |
app/src/main/java/id/budi/agil/covid19/db/CaseCovidDao.kt | agilbudi | 394,991,746 | false | null | package id.budi.agil.covid19.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import id.budi.agil.covid19.model.DataCase
import id.budi.agil.covid19.model... | 0 | Kotlin | 0 | 1 | f703645b1196dae43cb20c2513f1331d333176bc | 1,239 | PantauCovid19byAgil | MIT License |
app/src/main/java/com/thoughtworks/carapp/domain/CarLightUseCase.kt | CarOS-Android | 619,481,490 | false | null | package com.thoughtworks.carapp.domain
import android.car.VehicleAreaType
import android.car.VehicleLightSwitch
import android.car.VehiclePropertyIds
import android.car.hardware.property.CarPropertyManager
import com.thoughtworks.carapp.device.VehiclePropertyManager
import kotlinx.coroutines.flow.Flow
import kotlinx.c... | 0 | Kotlin | 0 | 0 | c5698e7121fa4e1c11170e2feab1319f4a83af76 | 2,298 | CarApp-team2 | Apache License 2.0 |
app/src/main/java/com/example/pixabaygalleryapp/di/modules/ViewModelFactoryModule.kt | AliAzaz | 360,302,381 | false | null | package com.example.pixabaygalleryapp.di.modules
import androidx.lifecycle.ViewModelProvider
import com.example.pixabaygalleryapp.base.factory.ViewModelFactory
import dagger.Binds
import dagger.Module
@Module
interface ViewModelFactoryModule {
@Binds
fun bindViewModelFactory(viewModelFactory: ViewModelFactor... | 0 | Kotlin | 0 | 8 | 8450c79fe9429fc69e546010acbbfde1a0ac61d8 | 352 | PixabayGalleryApp | MIT License |
src/main/java/com/dzen/campfire/api/requests/project/RProjectMakeHelloPost.kt | ZeonXX | 381,983,751 | false | {"Kotlin": 1087578} | package com.dzen.campfire.api.requests.project
import com.dzen.campfire.api.tools.client.Request
import com.sup.dev.java.libs.json.Json
open class RProjectMakeHelloPost(
var text:String,
var title:Boolean,
var text_2:String,
var languageId:Long
) : Request<RProjectMakeHelloPost.Respons... | 0 | Kotlin | 2 | 5 | 6f3b371624fb66a065bcbaa6302830c574c55e9f | 1,009 | CampfireApi | Apache License 2.0 |
src/main/kotlin/kr/nagaza/nagazaserver/domain/repository/TokenProvider.kt | NAGAZA-Team | 706,076,040 | false | {"Kotlin": 115663, "Shell": 637} | package kr.nagaza.nagazaserver.domain.repository
import kr.nagaza.nagazaserver.domain.model.AuthToken
interface TokenProvider {
fun generateToken(userId: String): AuthToken
fun isTokenValid(token: String): Boolean
fun getUserIdFromToken(token: String): String?
}
| 0 | Kotlin | 1 | 1 | 331acd205503767bd55495fa7b1fd394f8962361 | 277 | NAGAZA-Server | MIT License |
intellij-plugin/Edu-Android/branches/232/testSrc/com/jetbrains/edu/android/courseGeneration/testUtils.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.android.courseGeneration
import com.android.tools.idea.gradle.project.AndroidGradleProjectStartupActivity
import com.android.tools.idea.startup.GradleSpecificInitializer
import com.intellij.ide.ApplicationInitializedListener
import com.intellij.openapi.Disposable
import com.intellij.openapi.a... | 6 | null | 44 | 135 | b00e7100e8658a07e79700a20ffe576872d494db | 1,420 | educational-plugin | Apache License 2.0 |
app/src/androidTest/java/com/elifox/legocatalog/TestApp.kt | Eli-Fox | 198,384,890 | false | null | package com.elifox.legocatalog
import android.app.Application
/**
* App for tests to prevent initializing dependency injection.
*
* See [com.elifox.legocatalog.util.AppTestRunner].
*/
class TestApp : Application()
| 8 | Kotlin | 191 | 770 | 65bb14ed9972cc21604b13b06209e3c22c1adc3a | 220 | LEGO-Catalog | Apache License 2.0 |
myservice/src/main/java/com/kodyuzz/myservice/MainActivity.kt | mustafaatush | 274,828,691 | false | null | package com.kodyuzz.myservice
import android.content.ComponentName
import android.content.Intent
import android.content.ServiceConnection
import android.os.Bundle
import android.os.IBinder
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
class MainActivity : AppCompatActivity... | 0 | Kotlin | 0 | 0 | a946972fe26c3ed8bb2abc69be6a72af976320c1 | 1,017 | kodyuzz | Apache License 2.0 |
UserCenter/src/main/java/com/kotlin/user/service/impl/UserServiceImpl.kt | freesopen | 274,158,509 | false | null | package com.kotlin.user.service.impl
import com.kotlin.base.ext.convert
import com.kotlin.base.ext.convertBoolean
import com.kotlin.user.data.protocol.UserInfo
import com.kotlin.user.data.repository.UserRepository
import com.kotlin.user.service.UserService
import rx.Observable
import javax.inject.Inject
class UserSer... | 0 | Kotlin | 0 | 0 | 7823a36f2cc1b532bdb0160296741ce627db097e | 1,561 | myApp | MIT License |
server/src/main/kotlin/espressodev/gptmap/secret_manager/SecretManager.kt | f-arslan | 714,072,263 | false | {"Kotlin": 226952, "Dockerfile": 852} | package espressodev.gptmap.secret_manager
import com.google.cloud.secretmanager.v1.AccessSecretVersionRequest
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient
import com.google.cloud.secretmanager.v1.SecretVersionName
class SecretManager {
private val projectId = System.getenv("PROJECT_ID") ?:... | 0 | Kotlin | 0 | 2 | 51522d23757a7ef2b8421652a9eba57a6bf6133d | 1,161 | GptMap | MIT License |
app/src/main/java/com/frogobox/keyboard/ui/main/MainFragment.kt | amirisback | 560,670,715 | false | null | package com.frogobox.keyboard.ui.main
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import com.frogobox.keyboard.common.base.BaseFragment
import com.frogobox.keyboard.databinding.Fragmen... | 2 | Kotlin | 3 | 21 | af06130af3773b3463542d1a88e4d4b720477f90 | 1,388 | keyboard | Apache License 2.0 |
client/android/div/src/main/java/com/yandex/div/core/view2/divs/tabs/DivTabsAdapter.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.core.view2.divs.tabs
import android.util.DisplayMetrics
import android.view.View
import android.view.ViewGroup
import com.yandex.div.core.downloader.DivPatchApply
import com.yandex.div.core.downloader.DivPatchCache
import com.yandex.div.core.expression.local.DivRuntimeVisitor
import com.yandex.d... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 6,227 | divkit | Apache License 2.0 |
plugin/src/main/kotlin/io/github/katoys/version/incrementer/Version.kt | katoys | 711,056,305 | false | {"Kotlin": 27966} | package io.github.katoys.version.incrementer
interface Version {
val type: Type
val value: String
enum class Type {
Semantic;
companion object {
private val DEFAULT = Semantic
fun from(value: String?): Type = value?.let {
when (value.lowercase()) {... | 2 | Kotlin | 0 | 0 | c8c7eaaf9513484fc3f56076349944feb7f2f70b | 512 | version-incrementer | Apache License 2.0 |
src/main/kotlin/net/palatzky/microvault/command/ListCommand.kt | kpalatzky | 547,373,030 | false | null | package net.palatzky.microvault.command
import net.palatzky.microvault.service.VaultService
import picocli.CommandLine
/**
* List all entries of this vault
*
* @property vaultService
* @constructor Create empty List command
*/
@CommandLine.Command(name = "list", aliases = ["l"], description = ["Lists the entrie... | 6 | Kotlin | 0 | 12 | e6b42af4e87f139b28bfa372aba5d40b09f6d841 | 891 | microvault | MIT License |
jsonapi-adapters/src/main/java/jsonapi/Lid.kt | MarkoMilos | 338,423,356 | false | null | package jsonapi
import com.squareup.moshi.JsonQualifier
import kotlin.annotation.AnnotationRetention.RUNTIME
import kotlin.annotation.AnnotationTarget.FIELD
import kotlin.annotation.AnnotationTarget.PROPERTY
/**
* Annotation for resource local identifier field.
* Target field should be of type [String].
*/
@JsonQu... | 1 | Kotlin | 5 | 25 | aa1043c9528c75eade884b411bb1db5a89bf8b87 | 394 | jsonapi | Apache License 2.0 |
app/src/main/java/com/yablunin/shopnstock/presentation/activities/HomeActivity.kt | yabluninn | 702,962,028 | false | {"Kotlin": 33921} | package com.yablunin.shopnstock.presentation.activities
import android.annotation.SuppressLint
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Gravity
import android.view.... | 0 | Kotlin | 0 | 1 | 00e53ec1c5db7c8184abf7ffefbc6c332ad2c42b | 6,498 | shopnstock | MIT License |
app/src/main/kotlin/net/euse/calendar/SolarHoliday.kt | saleo | 123,436,418 | true | {"Kotlin": 816075, "Java": 66798} | package net.euse.calendar
import android.content.Context
object SolarHoliday {
fun getSolarHoliday(currentMonth: Int, currentDayForMonth: Int, context: Context): String {
val num_date = String.format("%02d", currentMonth + 1) + "" + String.format("%02d", currentDayForMonth)
val solarHolidayArray =... | 26 | Kotlin | 0 | 0 | 9622eaa8afac50645b7de71689b82bb183917081 | 700 | skcal | Apache License 2.0 |
navigation/src/commonMain/kotlin/io/timemates/app/navigation/TimeMatesAppEntry.kt | timemates | 575,537,317 | false | {"Kotlin": 345380} | package io.timemates.app.navigation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.remember
import com.arkivanov.decompose.extensions.compose.jetbrains.stack.animation.fade
import com.arkivanov.decompose.extensions.compose.jetbrains.stack.anima... | 20 | Kotlin | 0 | 22 | 9ac818cd982773efc399fe8149a1b4a0f631c554 | 7,221 | app | MIT License |
server/src/main/kotlin/cloud/skadi/gist/views/Gist.kt | skadi-cloud | 408,334,358 | false | {"Kotlin": 310187, "CSS": 8672, "TypeScript": 7833, "JavaScript": 730, "Dockerfile": 120} | package cloud.skadi.gist.views
import cloud.skadi.gist.data.Gist
import cloud.skadi.gist.data.GistRoot
import cloud.skadi.gist.data.User
import cloud.skadi.gist.markdownToHtml
import cloud.skadi.gist.storage.StorageProvider
import cloud.skadi.gist.storage.UrlList
import io.ktor.application.*
import kotlinx.html.*
fun... | 14 | Kotlin | 1 | 6 | a30dd7064f7bdb1e086f588d3b6f54d6692cf0c3 | 1,541 | gist | MIT License |
Android/Beginner/LiveData/code/HelloDataBinding3/app/src/main/java/com/example/hellodatabinding3/MainActivity.kt | Ice-House-Engineering | 262,230,937 | false | null | package com.example.hellodatabinding3
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.databinding.DataBindingUtil
import androidx.databinding.ObservableField
import androidx.databinding.ObservableInt
import com.example.hellodatabinding3.databinding.Acti... | 2 | Kotlin | 47 | 169 | ac6ff819a03f8eb01055ebbb2bf08a95f011e09b | 952 | academy-curriculum | Creative Commons Attribution 4.0 International |
app/src/main/java/de/lukasneugebauer/nextcloudcookbook/core/domain/model/Credentials.kt | lneugebauer | 397,373,765 | false | null | package de.lukasneugebauer.nextcloudcookbook.core.domain.model
import androidx.compose.runtime.compositionLocalOf
data class Credentials(
val baseUrl: String,
val basic: String
)
val LocalCredentials = compositionLocalOf<Credentials?> { null }
| 8 | Kotlin | 2 | 9 | 584082ba5209fe7fa75c25e4782cdd721d2db4e7 | 255 | nextcloud-cookbook | MIT License |
composeApp/src/commonMain/kotlin/utils/DateUtils.kt | anwar-pasaribu | 716,868,825 | false | {"Kotlin": 173772, "Ruby": 3031, "Swift": 568} | package utils
import kotlinx.datetime.Instant
import kotlinx.datetime.TimeZone
import kotlinx.datetime.toLocalDateTime
/**
* Return formatted date: DD MMM
*
* Sample:
*
* - 02 May
* - 13 Aug
*/
fun Long.toDdMonth(): String {
val tz = TimeZone.currentSystemDefault()
val dueDateInstant = Instant.fromEpoc... | 0 | Kotlin | 0 | 0 | 4f461e0eb5cad2ccc4b08c13b159eba2bbb00047 | 729 | Etong | MIT License |
app/src/main/java/com/rgbstudios/todomobile/data/repository/TodoRepository.kt | cooncudee | 673,320,875 | false | {"Kotlin": 337116} | package com.rgbstudios.todomobile.data.repository
import android.content.Context
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.ExistingWorkPolicy
import and... | 0 | Kotlin | 0 | 2 | 2fee10f774058bab2f6be4eff2707b953a339c40 | 18,591 | TODO_Mobile | MIT License |
src/main/kotlin/no/nav/hm/grunndata/register/series/SeriesRegistrationVersionService.kt | navikt | 572,421,718 | false | {"Kotlin": 697874, "Dockerfile": 113, "Shell": 111} | package no.nav.hm.grunndata.register.series
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.convertValue
import io.micronaut.data.model.Page
import io.micronaut.data.model.Pageable
import io.micronaut.data.repository.jpa.criteria.PredicateSpecification
import jakarta.injec... | 0 | Kotlin | 0 | 2 | 861788f0a0a37d954ecdc40bc3173166d19ecc27 | 4,392 | hm-grunndata-register | MIT License |
examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoggingServiceDslExample.kts | tmtsoftware | 190,560,899 | false | {"Scala": 1389004, "Kotlin": 242376, "Shell": 8394} | @file:Suppress("UNUSED_VARIABLE")
package esw.ocs.scripts.examples.paradox
import esw.ocs.dsl.core.script
script {
val highTempRaisedEx: Exception by lazy { RuntimeException("Temperature threshold crossed!") }
//#trace
trace(message = "logging at trace level")
trace(message = "logging at trace lev... | 1 | Scala | 9 | 1 | d77f2ef06785a772c4307eb59319abfaf9181bb3 | 2,001 | esw | Apache License 2.0 |
app/src/main/java/com/github/bgrebennikov/devbuff/domain/useCases/AuthGithubUseCase.kt | DevBuffProject | 467,099,240 | false | null | package com.github.bgrebennikov.devbuff.domain.useCases
import com.github.bgrebennikov.devbuff.data.remote.models.auth.AuthConfig
import com.github.bgrebennikov.devbuff.domain.Repository
import javax.inject.Inject
class AuthGithubUseCase @Inject constructor(
private val repository: Repository
) {
suspend ope... | 0 | Kotlin | 1 | 0 | f7a7bbb301c8b572bdb323db47c1c973aadfabd3 | 420 | DevBuff-Android | MIT License |
data/src/main/java/com/lighthouse/android/data/api/DrivenApiService.kt | soma-lighthouse | 658,620,687 | false | {"Kotlin": 444678} | package com.lighthouse.android.data.api
import com.lighthouse.android.data.model.response.BaseResponse
import com.lighthouse.android.data.model.response.TestDTO
import retrofit2.Response
import retrofit2.http.GET
fun interface DrivenApiService {
@GET("api/v1/user/1/match")
suspend fun getDriven(): Response<Ba... | 0 | Kotlin | 0 | 0 | f6c297f85086b6df358948a26aac563b79e543a7 | 342 | FE-lingo-swap | Apache License 2.0 |
1_BASICS_WITH_EASY_EXPLAINATION/11_try_and_catch.kt | hariomop12 | 743,116,300 | false | {"Kotlin": 130741, "Nix": 98} | // try catch and finally keywords for exception handling
import java.util.*
fun main() {
val arr: Array<Int> = arrayOf(1,2,3,4,5)
try {
println(arr[5])
} catch (e: Exception) {
println("Exception: ${e.message}")
} finally {
println("Finally block")
}
}
// Output: Exceptio... | 0 | Kotlin | 1 | 5 | 8612da37179639ff8be8233b2647c4061c76b1dc | 361 | Kotlin-Vibe | MIT License |
app/src/main/java/com/example/habit/ui/activity/HomeActivity.kt | vickatGit | 663,121,210 | false | {"Kotlin": 482474, "Java": 4691} | package com.example.habit.ui.activity
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.Settings
import android.util.Log
import android.view.View
import androidx.annotation.Requi... | 0 | Kotlin | 0 | 0 | 67559162f6501881b4fbd9ff807e6e13023fc087 | 5,159 | HB | MIT License |
app/src/test/kotlin/kotlinadventofcode/2022/2022-07-Test.kt | pragmaticpandy | 356,481,847 | false | {"Kotlin": 973608, "Shell": 219} | // Originally generated by the template in CodeDAO
package kotlinadventofcode.`2022`
import kotlin.test.Test
import kotlin.test.assertEquals
class `2022-07-Test` {
private infix fun String.when1runsWith(input: String) {
assertEquals(this, `2022-07`().runPartOneNoUI(input))
}
private infix fun St... | 0 | Kotlin | 0 | 3 | 72539c6d39ab461e940c0245eea7924c428ab595 | 635 | kotlinadventofcode | MIT License |
src/nativeTest/kotlin/io/github/krisbitney/wasmtime/wasm/GlobalTypeTest.kt | krisbitney | 625,042,873 | false | null | package io.github.krisbitney.wasmtime.wasm
import kotlin.test.*
class GlobalTypeTest {
private val simpleGlobalType = GlobalType(ValType.Kind.I32, Mutability.CONST)
@Test
fun testAllocateCValue() {
val cGlobalType = GlobalType.allocateCValue(simpleGlobalType)
assertNotNull(cGlobalType)
... | 0 | Kotlin | 0 | 0 | da0993556a50573f257ce157ae88faeff4d18ca4 | 818 | wasmtime-kotlin | MIT License |
app/src/main/java/com/shrc/dtoanng/hilt_mvvm_compose_the_movie_app/di/AppModule.kt | dtoanng | 800,410,607 | false | {"Kotlin": 89804} | package com.shrc.dtoanng.hilt_mvvm_compose_the_movie_app.di
import android.app.Application
import androidx.room.Room
import com.shrc.dtoanng.hilt_mvvm_compose_the_movie_app.data.local.MovieDatabase
import com.shrc.dtoanng.hilt_mvvm_compose_the_movie_app.data.remote.MovieAPI
import dagger.Module
import dagger.Provides
... | 0 | Kotlin | 0 | 1 | 7fd7e4bbbce187f56dde526d6e0ec386c40fb7f0 | 1,357 | jetpackcompose-the-movie-app | Apache License 2.0 |
src/Const.kt | Pantonshire | 132,039,170 | false | null | object Const {
const val PI : Double = Math.PI
const val TAU : Double = PI * 2
const val HPI : Double = PI / 2
const val TO_DEG : Double = 180.0 / PI
const val TO_RAD : Double = PI / 180.0
} | 0 | Kotlin | 0 | 0 | 36c3f3ad956d7bb58ac5e368cd80c42d3f8f40d4 | 227 | TomsLib | MIT License |
sonarqube-client/src/main/kotlin/org/octopusden/octopus/infrastructure/sonarqubeclient/dto/SonarQubePaging.kt | octopusden | 598,190,209 | false | {"Kotlin": 199884, "Ruby": 143668, "Shell": 163} | package org.octopusden.octopus.infrastructure.sonarqubeclient.dto
data class SonarQubePaging(
val pageIndex: Int,
val pageSize: Int,
val total: Int
)
| 1 | Kotlin | 0 | 0 | 00b1598312fa8e106817cc74ccf071829947ed21 | 163 | octopus-external-systems-client | Apache License 2.0 |
mulighetsrommet-api/src/main/kotlin/no/nav/mulighetsrommet/api/domain/dto/TiltaksgjennomforingDto.kt | navikt | 435,813,834 | false | {"Kotlin": 1403251, "TypeScript": 1245645, "SCSS": 42691, "JavaScript": 22644, "PLpgSQL": 12960, "HTML": 2287, "Dockerfile": 1190, "CSS": 421, "Shell": 396} | package no.nav.mulighetsrommet.api.domain.dto
import kotlinx.serialization.Serializable
import no.nav.mulighetsrommet.domain.Tiltakskode
import no.nav.mulighetsrommet.domain.dbo.TiltaksgjennomforingOppstartstype
import no.nav.mulighetsrommet.domain.dto.TiltaksgjennomforingStatus
import no.nav.mulighetsrommet.domain.se... | 8 | Kotlin | 1 | 5 | 097910be922941e5d51add61893dae6e271bd747 | 1,409 | mulighetsrommet | MIT License |
src/main/kotlin/com/example/mockingservice/model/Greeting.kt | huy-vuong | 341,712,809 | false | null | package com.example.mockingservice.model
data class Cat(val name: String, val age: Int)
data class Greeting(val content: String, val cat: Cat?)
| 0 | Kotlin | 0 | 0 | 6b1cd019e9c27654d58dcd81c927d45032e47359 | 146 | example-mocking-service | Apache License 2.0 |
src/main/kotlin/com/carbonblack/intellij/rpmspec/RpmSpecSettingsState.kt | carbonblack | 191,627,909 | false | {"Kotlin": 83807, "Lex": 12164} | package com.carbonblack.intellij.rpmspec
import com.carbonblack.intellij.rpmmacro.RpmMacroUtil
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import co... | 2 | Kotlin | 4 | 12 | 6a3f8ec13f4fa9f7fd02cb26349d35de4221e3b9 | 1,585 | intellij-rpmspec | Apache License 2.0 |
plugins/analysis/java-plugin/src/main/kotlin/arrow/meta/plugins/analysis/java/ast/elements/JavaClass.kt | arrow-kt | 217,378,939 | false | null | @file:Suppress("JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE")
package arrow.meta.plugins.analysis.java.ast.elements
import arrow.meta.plugins.analysis.java.AnalysisContext
import arrow.meta.plugins.analysis.java.ast.model
import arrow.meta.plugins.analysis.java.ast.modelCautious
import arrow.meta.plugins.analysis.phases.anal... | 99 | Kotlin | 34 | 291 | 9d93250cee305ae5b57cbe400cfcd3a4bee17347 | 4,647 | arrow-meta | Apache License 2.0 |
src/main/kotlin/com/cyb3rko/m3okotlin/data/Routing.kt | cyb3rko | 464,602,194 | false | {"Kotlin": 236737} | package com.cyb3rko.m3okotlin.data
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
// Requests & Responses + Data (single use)
@Serializable
internal data class RoutingDirectionsRequest(val destination: RoutingCoordinates, val origin: RoutingCoordinates)
@Serializable
data class Ro... | 0 | Kotlin | 0 | 1 | 6f175f9c1fb329664b130d04aad6e465f75d18c0 | 2,011 | m3o-kotlin | Apache License 2.0 |
remote_data/src/test/java/com/ddona/banking/remote/utils/TestDataGenerator.kt | doanpt | 242,448,076 | false | null | package com.ddona.banking.remote.utils
import com.ddona.banking.remote.model.TransactionNetwork
import com.ddona.banking.remote.model.UserInfoNetwork
class TestDataGenerator {
companion object {
fun generateUserInfo(): UserInfoNetwork {
return UserInfoNetwork(
"1BFC9A38E6C7",
... | 0 | Kotlin | 1 | 0 | 0b55459d783c4f14ec46e77227661c6d964c0110 | 1,586 | CleanArchitertPlurasight | Apache License 2.0 |
app/src/main/kotlin/no/nav/tiltakspenger/vedtak/repository/behandling/BehandlingDAO.kt | navikt | 487,246,438 | false | {"Kotlin": 681488, "Shell": 1309, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.vedtak.repository.behandling
import kotliquery.TransactionalSession
import no.nav.tiltakspenger.felles.SakId
import no.nav.tiltakspenger.saksbehandling.domene.behandling.Behandling
import no.nav.tiltakspenger.saksbehandling.domene.behandling.Førstegangsbehandling
interface BehandlingDAO {... | 7 | Kotlin | 0 | 1 | e125e2953c16c4bb2c99e6d36075c553b51ed794 | 487 | tiltakspenger-vedtak | MIT License |
app/src/main/java/com/skydoves/themovies2/di/ViewModelModule.kt | sjjeong | 208,594,747 | true | {"Kotlin": 151494} | /*
* Designed and developed by 2019 skydoves (<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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 | null | 3 | 2 | c2bc11ccc1273dc6ca4d8f9978f7df30bead2d16 | 1,225 | TheMovies2 | Apache License 2.0 |
modules/wasm-binary/src/commonMain/kotlin/tree/sections/FunctionSectionNode.kt | wasmium | 761,480,110 | false | {"Kotlin": 597834, "JavaScript": 203} | package org.wasmium.wasm.binary.tree.sections
import org.wasmium.wasm.binary.tree.FunctionType
import org.wasmium.wasm.binary.tree.SectionKind
import org.wasmium.wasm.binary.visitors.FunctionSectionVisitor
public class FunctionSectionNode : SectionNode(SectionKind.FUNCTION), FunctionSectionVisitor {
public val fu... | 0 | Kotlin | 0 | 3 | f219d7133574e8ea81ce905393991212ca293cf4 | 796 | wasmium-wasm-binary | Apache License 2.0 |
app/src/main/java/com/maasbodev/marvelcomicsmd/App.kt | MaasboDev | 663,567,382 | false | {"Kotlin": 20589, "Shell": 441} | package com.maasbodev.marvelcomicsmd
class App {
} | 0 | Kotlin | 0 | 0 | 8fc17016e1b628a0db8d0a03454ba7860001fdad | 51 | marvel-comics-md | Apache License 2.0 |
app/src/main/java/org/angelmariages/rodalieswidget/RodaliesWidget.kt | AngelMariages | 78,562,507 | false | {"Gradle": 3, "Java Properties": 3, "Shell": 2, "Text": 1, "Ignore List": 1, "Batchfile": 1, "TOML": 1, "YAML": 3, "Proguard": 1, "XML": 44, "Java": 30, "Kotlin": 9} | /*
* MIT License
*
* Copyright (c) 2022 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 5 | Java | 0 | 6 | 298f587d25e9f6226a0b4551c71f8cd9c3cb8543 | 13,276 | RodaliesWidget | MIT License |
app/src/main/java/app/lingoknight/practice/PracticeDetailsFragment.kt | Carter-Prime | 299,462,440 | false | null | //<NAME>
// 1910059
package app.lingoknight.practice
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import app.lingoknight.R
import app.lingoknight.database.Word
im... | 0 | Kotlin | 0 | 0 | 6168a0f825d68fc2d5a7fb82982c7bf0531556b9 | 2,292 | LingoKnight---Android-Project | Apache License 2.0 |
src/day_3.kt | gardnerdickson | 152,621,962 | false | null | import java.io.File
fun main(args: Array<String>) {
val input = "res/day_3_input.txt"
val answer1 = Day3.part1(input)
println("Part 1: $answer1")
val answer2 = Day3.part2(input)
println("Part 2: $answer2")
}
object Day3 {
private enum class Turn {
SANTA, ROBO_SANTA;
fun nextT... | 0 | Kotlin | 0 | 0 | 4a23ab367a87cae5771c3c8d841303b984474547 | 2,343 | advent-of-code-2015 | MIT License |
app/src/main/java/com/lonedev/moviecatalogue/ui/widget/factory/TheMovieWidgetFactory.kt | BYogatama | 194,830,761 | false | null | /*
* Created by <NAME> on 7/4/19 11:10 PM
* Copyright (c) 2019 . All rights reserved.
* Last modified 7/4/19 11:10 PM
*/
package com.lonedev.moviecatalogue.ui.widget.factory
import android.content.ContentResolver
import android.content.Context
import android.content.Intent
import android.database.Cursor
import an... | 0 | Kotlin | 0 | 1 | eb7bd86ec44c763f077f57b2e206b12e1c2e70ff | 2,932 | MovieCatalogue | MIT License |
src/main/kotlin/App.kt | MinXie1209 | 544,254,504 | false | null | class App {
}
fun main() {
println("app")
} | 0 | Kotlin | 0 | 0 | 7022b27decbdceeb090082d767684d21eb227efe | 48 | rpc | Apache License 2.0 |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/MultiServerInterceptor.kt | FaradayApp | 732,727,396 | false | {"Kotlin": 15888215, "Java": 250183, "Shell": 102807, "HTML": 28529, "Python": 25379, "FreeMarker": 7662, "JavaScript": 7070, "Ruby": 3420, "Gherkin": 58} | /*
* Copyright (c) 2024 New Vector Ltd
*
* 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 agr... | 0 | Kotlin | 2 | 0 | 857b45f46bc4106df8bcc2fb78ab1fc771079c6b | 1,679 | Faraday-android | Apache License 2.0 |
android/app/src/main/kotlin/com/yxyhail/metroexample/react/BaseReactActivity.kt | yxyhail | 179,931,061 | false | null | /*
* Copyright 2019 yxyhail
*
* 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 i... | 18 | Java | 21 | 50 | 0180d2f08ae7849b6838aba379db1a4f69bc5109 | 1,494 | MetroExample | Apache License 2.0 |
sdk/src/main/java/app/knock/client/components/views/EmptyFeedView.kt | knocklabs | 712,054,463 | false | {"Kotlin": 191911} | package app.knock.client.components.views
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Text
im... | 0 | Kotlin | 1 | 2 | 96707ada2ee0bec439364ef320d5a293e607915e | 2,802 | knock-android | MIT License |
app/src/main/java/com/airy/juju/di/FragmentScoped.kt | AiryMiku | 174,809,394 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "YAML": 1, "Proguard": 1, "Kotlin": 112, "XML": 76, "Java": 1} | package com.airy.juju.di
import javax.inject.Scope
/**
* Created by Airy on 2019-09-03
* Mail: <EMAIL>
* Github: AiryMiku
*/
@Scope
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.TYPE, AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class FragmentScoped | 0 | Kotlin | 1 | 1 | 3b0a2035373f9e6dfdf985c5b71c30dcce414273 | 293 | JuJu_Android | MIT License |
app/src/main/java/com/airy/juju/di/FragmentScoped.kt | AiryMiku | 174,809,394 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "YAML": 1, "Proguard": 1, "Kotlin": 112, "XML": 76, "Java": 1} | package com.airy.juju.di
import javax.inject.Scope
/**
* Created by Airy on 2019-09-03
* Mail: <EMAIL>
* Github: AiryMiku
*/
@Scope
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.TYPE, AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class FragmentScoped | 0 | Kotlin | 1 | 1 | 3b0a2035373f9e6dfdf985c5b71c30dcce414273 | 293 | JuJu_Android | MIT License |
app/src/main/java/com/nasinha/digitalspace/planetsmenu/view/PlanetsMenuAdapter.kt | diaslais | 312,918,742 | true | {"Kotlin": 244011} | package com.nasinha.digitalspace.planetsmenu.view
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.nasinha.digit... | 0 | Kotlin | 0 | 0 | b1ee8d7e56e6463588cf0dcf4a2f574b31d62dc1 | 2,181 | pidigitalhouse | MIT License |
src/main/kotlin/de/bybackfish/avomod/util/RenderUtil.kt | byBackfish | 510,866,399 | false | {"Kotlin": 65429, "Java": 1232} | package de.bybackfish.avomod.util
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.FontRenderer
import net.minecraft.client.renderer.GlStateManager
import net.minecraft.client.renderer.Tessellator
import net.minecraft.client.renderer.vertex.DefaultVertexFormats
import java.awt.Color
object Render... | 0 | Kotlin | 0 | 0 | d82639e486fc5d892890038f0c41b15a8854ce7b | 3,478 | AvoMod-Recode | MIT License |
android/app/src/main/java/com/hellobike/magiccube/demo/MagicListActivity.kt | hellof2e | 651,011,094 | false | {"Kotlin": 499995, "Objective-C": 421129, "JavaScript": 39299, "Java": 29943, "Swift": 24514, "Ruby": 5345, "TypeScript": 3969, "Shell": 255} | package com.hellobike.magiccube.demo
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.ViewTreeObserver
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.LinearLayoutManager
impor... | 3 | Kotlin | 9 | 60 | 8123fdaafa9ee7eaeee43fb73789b7fa3feac697 | 6,411 | Wukong | Apache License 2.0 |
configuration/src/main/kotlin/org/katan/config/KatanConfig.kt | KatanPanel | 182,468,654 | false | null | package org.katan.config
class KatanConfig internal constructor() {
companion object {
private const val DEFAULT_HOST = "0.0.0.0"
private const val DEFAULT_PORT = 80
private const val DEFAULT_REDIS_USER = "default"
private const val DEFAULT_DOCKER_HOST = "unix:///var/run/docker.soc... | 0 | Kotlin | 5 | 55 | 8e2f39310ec87bf19eed5a8a73b105518cabe7d9 | 2,046 | Katan | Apache License 2.0 |
common-ui-list/file-system/src/main/java/com/storyteller_f/file_system/instance/local/fake/StorageLocalFileInstance.kt | storytellerF | 576,917,592 | false | null | package com.storyteller_f.file_system.instance.local.fake
import android.content.Context
import android.os.Build
import com.storyteller_f.file_system.FileInstanceFactory
import com.storyteller_f.file_system.instance.FileInstance
import com.storyteller_f.file_system.model.DirectoryItemModel
import com.storyteller_f.fil... | 4 | null | 0 | 1 | 09c9c002f7acb66775c689050e860d32aa9edc31 | 2,574 | common-ui-list-structure | MIT License |
beseLib/src/main/java/com/bese/view/BaseLoadContainer.kt | vedeng | 244,312,896 | false | null | package com.bese.view
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.FrameLayout
/**
* 加载容器 可选择显示 加载view 内容view 错误view
*/
abstract class BaseLoadContainer(context: Context, attrs: AttributeSet?) :
FrameLayout(co... | 0 | Kotlin | 0 | 0 | 8a92cd925b57a481a8e0422d225da2c5396bca22 | 1,813 | Bese | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/wegdut/wegdut/di/EmptyModule.kt | laishere | 301,439,203 | false | null | package com.wegdut.wegdut.di
import dagger.Module
@Module
interface EmptyModule | 0 | Kotlin | 2 | 6 | b62720ce8fbe79817b9c05e6bb1eeff09f53e804 | 81 | wegdut-android | MIT License |
MzaziConnectApplication/app/src/main/java/sakigake/mzaziconnect/mzaziconnectapplication/model/SubjectResponse.kt | Florence-nyokabi | 721,515,801 | false | {"Kotlin": 146726} | package sakigake.mzaziconnect.mzaziconnectapplication.model
data class SubjectResponse(
var subjects: List<Subjects>
)
| 0 | Kotlin | 0 | 0 | e4c7c167efb9b1373f2ecf231fd126ab6ff9675b | 124 | Sakigake-mobile | MIT License |
generated/src/main/kotlin/com/example/controllers/MatchingTargetController.kt | RZB-IT | 772,206,064 | false | {"Kotlin": 27795, "Dockerfile": 489} | package com.example.controllers
import com.example.models.MatchingTarget
import io.micronaut.http.HttpResponse
import io.micronaut.http.annotation.Body
import io.micronaut.http.annotation.Consumes
import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Delete
import io.micronaut.http.annotat... | 0 | Kotlin | 0 | 0 | d452dc0f20e8e2f0b134ba3be99901ef34924e09 | 1,853 | payment-matcher | MIT License |
observablecollections/src/main/java/il/co/theblitz/observablecollections/queues/ObservableDelayQueue.kt | theblitz | 180,575,130 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 1, "XML": 11, "Kotlin": 31} | package il.co.theblitz.observablecollections.queues
import il.co.theblitz.observablecollections.abstracts.ObservableBlockingQueue
import java.io.Serializable
import java.util.*
import java.util.concurrent.DelayQueue
import java.util.concurrent.Delayed
open class ObservableDelayQueue<X: Delayed>(skipCurrentValueCall: ... | 0 | Kotlin | 5 | 20 | d6021f38bc20be06fccad6e8af9f79497e8aced9 | 593 | ObservableCollections | Apache License 2.0 |
HelloJetpack/basics/src/main/java/com/example/basics/ui/example/Layouts.kt | ETSEmpiricalStudyKotlinAndroidApps | 496,360,419 | false | {"Kotlin": 718685, "Java": 174794} | package com.example.basics.ui.example
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.Divider
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
im... | 0 | null | 0 | 0 | 147caab2622d15c52cd5b8cf21779c73481c9020 | 5,047 | android-dev | MIT License |
app/src/main/java/com/da_chelimo/ig_clone/repo/user/UserRepo.kt | DaChelimo | 770,580,458 | false | {"Kotlin": 190694} | package com.da_chelimo.ig_clone.repo.user
import android.net.Uri
import com.da_chelimo.ig_clone.models.User
/**
* Abstraction of all user operations
*/
interface UserRepo {
/**
* Creates a new user
*/
suspend fun createUser(user: User)
/**
* Updates the user's full name
*/
sus... | 0 | Kotlin | 0 | 0 | db79543f388c7854b32453f646d0035fe91a89c7 | 1,397 | Instagram-Clone | MIT License |
src/main/kotlin/com/grudus/planshboard/plays/opponent/model/Opponent.kt | grudus | 115,259,708 | false | null | package com.grudus.planshboard.plays.opponent.model
import com.grudus.planshboard.commons.Id
class Opponent(var id: Id?, val name: String, val createdBy: Id, val pointingToUser: Id? = null) {
@Suppress("unused") //Jooq uses it
constructor(id: Id?, name: String, createdBy: Id): this(id, name, createdBy, null)
... | 0 | Kotlin | 0 | 1 | 1b9fd909a75d5b0883e8ff39be9aa299bf0ff3ff | 322 | Planshboard | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/assessrisksandneeds/restclient/api/OasysRiskManagementPlanDetailsDto.kt | ministryofjustice | 373,137,019 | false | null | package uk.gov.justice.digital.hmpps.assessrisksandneeds.restclient.api
import com.fasterxml.jackson.annotation.JsonAlias
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
import uk.gov.justice.digital.hmpps.assessrisksandneeds.api.model.TimelineDto
import... | 1 | Kotlin | 0 | 0 | e3f05e6e4dbd16e4bbe13f3163c39d71b2f492e4 | 1,172 | hmpps-assess-risks-and-needs | MIT License |
implementation/src/main/kotlin/pl/beone/promena/transformer/barcodedetector/zxingopencv/ZxingOpenCvBarcodeDetectorTransformer.kt | BeOne-PL | 235,078,126 | false | {"Maven POM": 6, "Text": 1, "Ignore List": 1, "Markdown": 1, "Kotlin": 44, "Java Properties": 2, "Dockerfile": 1, "Java": 1, "XML": 1} | package pl.beone.promena.transformer.barcodedetector.zxingopencv
import org.opencv.core.Core
import pl.beone.promena.transformer.applicationmodel.mediatype.MediaType
import pl.beone.promena.transformer.barcodedetector.zxingopencv.applicationmodel.ZxingOpenCvBarcodeDetectorSupport
import pl.beone.promena.transformer.ba... | 1 | null | 1 | 1 | 3aa2e278563b3b580639f3bcefc44d6696e56cd3 | 1,512 | promena-transformer-barcode-detector-zxing-opencv | Apache License 2.0 |
Projects/Reddit/core/src/test/java/ademar/study/reddit/core/repository/PostRepositoryTest.kt | ademar111190 | 76,153,266 | false | null | package ademar.study.reddit.core.repository
import ademar.study.reddit.core.model.internal.PostResponse
import ademar.study.reddit.core.repository.datasource.PostCloudRepository
import ademar.study.reddit.core.test.BaseTest
import ademar.study.reddit.core.test.Fixture
import okhttp3.mockwebserver.MockResponse
import o... | 0 | Kotlin | 1 | 1 | 65466ea1c6e4f75ae9791826a428c7dd8e101f98 | 4,167 | Studies | MIT License |
app/src/main/java/com/swayy/musicpark/presentation/screens/tracks/components/TopBar.kt | gideonrotich | 557,405,183 | false | {"Kotlin": 274873} | package com.swayy.musicpark.presentation.screens.tracks.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.Compos... | 0 | Kotlin | 6 | 58 | aa7ce4d7d4481a76b28de61a82d27958f92192d0 | 4,025 | MusicPark | MIT License |
app/src/main/java/com/architectcoders/hotelapp/model/HotelListResult.kt | marcossalto | 327,739,151 | false | null | package com.architectcoders.hotelapp.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
data class HotelListSerializer(
val result: String = "",
val data: DataSerializer = DataSerializer()
)
data class DataSerializer(
val body: BodySerializer = BodySerializer(),
)
data class BodySeria... | 0 | Kotlin | 0 | 0 | 67af7041e4d49de2a8ffa12c3e08890d599e7115 | 1,873 | hotel-app | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Leaderboard.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,566 | icons | MIT License |
rumascot-common/src/commonMain/kotlin/models/TagRum.kt | mathemator | 586,045,497 | false | null | package ru.otus.otuskotlin.marketplace.common.models
data class TagRum(
val id: Long? = null,
val name: String? = ""
) {
fun asString() = name
} | 2 | Kotlin | 0 | 0 | 633640f3c74b3d5a352052bbce9fd6358881953a | 157 | goppeav-kotlin-2022-12 | Apache License 2.0 |
src/main/resources/archetype-resources/src/main/kotlin/views/MainView.kt | edvin | 53,204,259 | false | null | package ${package}.views
import ${package}.Styles
import javafx.scene.control.Alert.AlertType.INFORMATION
import tornadofx.*
class MainView : View("Hello TornadoFX") {
override val root = borderpane {
addClass(Styles.welcomeScreen)
top {
stackpane {
label(title).addClas... | 0 | Kotlin | 3 | 3 | 927b71b4e0b4c21017a67eec7bbc8611e67692d6 | 662 | tornadofx-quickstart-archetype | Apache License 2.0 |
conductor-client/src/main/kotlin/com/openlattice/hazelcast/TypedQueueIdentifier.kt | openlattice | 101,697,464 | false | null | package com.openlattice.hazelcast
interface TypedQueueIdentifier<T> {
fun name(): String
}
| 0 | Kotlin | 3 | 4 | b836eea0a17128089e0dbe6719495413b023b2fb | 96 | openlattice | Apache License 2.0 |
ui/src/main/kotlin/com/aptopayments/sdk/ui/views/AptoTextView.kt | AptoPayments | 197,800,853 | false | null | package com.aptopayments.sdk.ui.views
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
import com.aptopayments.mobile.extension.localized
import com.aptopayments.sdk.R
class AptoTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? ... | 1 | Kotlin | 0 | 0 | 257af71aa439b3e90c150ae258c78eaa1a6ae817 | 1,361 | apto-ui-sdk-android | MIT License |
app/src/main/java/com/onelshina/myjournal/data/EventRepository.kt | onel-shina | 298,894,563 | false | null | package com.onelshina.myjournal.data
import androidx.lifecycle.LiveData
import java.time.LocalDate
class EventRepository(private val eventDao: EventDao) {
// Room executes all queries on a separate thread.
// Observed LiveData will notify the observer when the data has changed.
fun getAllEvents() : LiveD... | 0 | Kotlin | 0 | 0 | 15325a8880fb9ad1e47429fe24c5b9be98296a03 | 848 | MyJournal | The Unlicense |
src/main/kotlin/me/sd_master92/customvoting/gui/buttons/switches/StreakBroadcastSwitch.kt | sanderderks | 306,723,396 | false | {"Kotlin": 408077} | package me.sd_master92.customvoting.gui.buttons.switches
import me.sd_master92.customvoting.CV
import me.sd_master92.customvoting.constants.enumerations.PMessage
import me.sd_master92.customvoting.constants.enumerations.Setting
import me.sd_master92.customvoting.gui.buttons.abstracts.AbstractWoolStatusSwitch
import or... | 9 | Kotlin | 2 | 0 | e65f5cf5e42fd5f947978f48a4509ef070e99153 | 625 | CustomVoting | MIT License |
src/main/kotlin/dev/zwei/mailchimp/domain/mailChimp/apiObjects/mergeFields/Options.kt | 0OZ | 453,667,678 | false | null | package dev.zwei.mailchimp.domain.mailChimp.apiObjects.mergeFields
data class Options(
val choices: List<Any>? = null,
val date_format: String? = null,
val default_country: Int? = null,
val phone_format: String? = null,
val size: Int? = null
) | 0 | Kotlin | 0 | 0 | 87f7e8b1918654d8ca70f472a4290ca224a68460 | 264 | mailchimpkt | MIT License |
component/src/main/java/app/trian/tes/component/screen/main/BaseMainScreen.kt | triandamai | 529,928,713 | false | {"Kotlin": 256410} | package app.trian.tes.component.screen.main
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.RectangleShape
import androidx.compose.ui.platform.LocalContext
import androidx.c... | 0 | Kotlin | 0 | 0 | 1343c2510e88a6da68b9ba4bfc3760e4634f7f59 | 4,195 | test-application | Apache License 2.0 |
api/src/main/kotlin/org/kryptonmc/api/entity/projectile/Arrow.kt | KryptonMC | 255,582,002 | false | null | /*
* This file is part of the Krypton project, licensed under the Apache License v2.0
*
* Copyright (C) 2021-2023 KryptonMC and the contributors of the Krypton 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 ... | 27 | Kotlin | 11 | 233 | a9eff5463328f34072cdaf37aae3e77b14fcac93 | 969 | Krypton | Apache License 2.0 |
RecyclerViewHeaderFooter/app/src/main/java/com/example/headerfooter/Adapter.kt | fairoozp | 356,848,633 | false | null | package com.example.headerfooter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class Adapter (private val data : ArrayList<List>) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
inner... | 0 | Kotlin | 0 | 1 | 09bfb87ce91f6ccb6f8b08534b127f77116a5179 | 2,227 | Android_Kotlin_projects | MIT License |
composeApp/src/desktopMain/kotlin/com/alekso/dltstudio/logs/infopanel/VirtualDevicePreview.kt | alexey-odintsov | 750,521,193 | false | {"Kotlin": 386067} | package com.alekso.dltstudio.logs.infopanel
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundatio... | 6 | Kotlin | 0 | 2 | f66b9a5d1d9f8012dc38a6e9959a21bd3b2607a6 | 4,806 | DLTStudio | MIT License |
RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/utils/RCollections.kt | WindSekirun | 92,814,709 | false | null | @file:JvmName("RichUtils")
@file:JvmMultifileClass
package pyxis.uzuki.live.richutilskt.utils
import java.util.*
/**
* Return an immutable list containing vararg parameter
*
* @param <T> the class of the objects in the list
* @param items the objects to be stored in the returned list
*/
fun <T> listOf(vararg it... | 3 | Kotlin | 28 | 171 | 351b6be5c35f7e6864f49f202532a7dd21f2d1df | 1,872 | RichUtilsKt | Apache License 2.0 |
domain/src/main/kotlin/team/duckie/app/android/domain/challengecomment/usecase/DeleteChallengeCommentHeartUseCase.kt | duckie-team | 503,869,663 | false | {"Kotlin": 1819917} | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
package team.duckie.app.android.domain.challengecomment.usecase
import team.duckie.app.android.domain.challengecomment.repository.Challenge... | 32 | Kotlin | 1 | 8 | 5dbd5b7a42c621931d05a96e66431f67a3a50762 | 657 | duckie-android | MIT License |
domain/src/main/kotlin/team/duckie/app/android/domain/challengecomment/usecase/DeleteChallengeCommentHeartUseCase.kt | duckie-team | 503,869,663 | false | {"Kotlin": 1819917} | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
package team.duckie.app.android.domain.challengecomment.usecase
import team.duckie.app.android.domain.challengecomment.repository.Challenge... | 32 | Kotlin | 1 | 8 | 5dbd5b7a42c621931d05a96e66431f67a3a50762 | 657 | duckie-android | MIT License |
app/src/main/java/dev/forcecodes/truckme/util/BindingAdapters.kt | forceporquillo | 403,934,320 | false | {"Kotlin": 465111} | package dev.forcecodes.truckme.util
import android.view.View
import android.widget.ImageView
import androidx.appcompat.widget.AppCompatEditText
import androidx.databinding.BindingAdapter
import com.google.android.material.snackbar.Snackbar
import com.google.android.material.textfield.TextInputLayout
import dev.forceco... | 0 | Kotlin | 1 | 3 | 54ac8235c4920abfd0a2cd5ded5db56cd7c392e3 | 2,562 | truck-me-android | Apache License 2.0 |
core/src/main/kotlin/at.hschroedl.fluentast/ast/expression/ParanethesizedExpression.kt | hschne | 103,569,412 | false | null | package at.hschroedl.fluentast.ast.expression
import org.eclipse.jdt.core.dom.AST
import org.eclipse.jdt.core.dom.ParenthesizedExpression
class FluentParenthesizedExpression internal constructor(private val expression: FluentExpression) : FluentExpression() {
override fun build(ast: AST): ParenthesizedExpression ... | 0 | Kotlin | 0 | 0 | 49510f0cadf3083b58de6011215b76c1b720d72f | 448 | Fluentast | Apache License 2.0 |
src/test/kotlin/RecordHttpIntegrationTest.kt | gquintana | 448,654,051 | false | {"Kotlin": 13033} | import io.ktor.client.*
import io.ktor.client.features.*
import io.ktor.client.features.json.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
class RecordHttpIntegr... | 0 | Kotlin | 0 | 0 | 5d941129b46ff95dd7561384b1d34fc0776e26ef | 763 | kotlin-kafka-web | Apache License 2.0 |
shuttle/settings/domain/src/main/kotlin/shuttle/settings/domain/usecase/ResetOnboardingShown.kt | fardavide | 462,194,990 | false | null | package shuttle.settings.domain.usecase
import org.koin.core.annotation.Factory
import shuttle.settings.domain.repository.SettingsRepository
@Factory
class ResetOnboardingShown(
private val settingsRepository: SettingsRepository
) {
suspend operator fun invoke() {
settingsRepository.resetOnboardingSh... | 12 | null | 1 | 14 | ea38f64fd2cff13644566dad4eb83e39af8a71cf | 334 | Shuttle | Apache License 2.0 |
src/go_class_android/app/src/main/java/im/zego/goclass/entity/ZegoClassUser.kt | zegoim | 318,680,252 | false | {"Objective-C": 678736, "Kotlin": 408342, "Vue": 231014, "Go": 158653, "JavaScript": 96949, "Java": 73755, "SCSS": 8844, "C": 6686, "Python": 2195, "Ruby": 1695, "HTML": 615} | package im.zego.goclass.entity
/**
*
* 摄像头,麦克风状态等等,都是属于流的属性
* 如果要查询一个用户的流的状态,需要去 streamService 里面去查
*/
open class ZegoClassUser(var userID: String, var userName: String) {
var frontCamera = true
override fun toString(): String {
return "ZegoClassUser(userID='$userID', userName='$userName')"
}... | 1 | Objective-C | 7 | 9 | 2c2ae0dbb7dc5d68475e09cbaec9bba1e4a09806 | 322 | go-class | Apache License 2.0 |
app/src/main/java/com/wimank/craftmaster/tz/app/mvp/common/RecipeImages.kt | WiMank | 210,546,864 | false | null | package com.wimank.craftmaster.tz.app.mvp.common
enum class RecipeImages {
FIRST_SLOT,
SECOND_SLOT,
THREE_SLOT,
FOURTH_SLOTH,
FIFTH_SLOT,
SIXTH_SLOT,
SEVEN_SLOT,
EIGHTH_SLOT,
NINTH_SLOT,
RECIPE_IMAGE,
RESULT_IMAGE,
MACHINE_IMAGE
}
| 0 | Kotlin | 0 | 0 | 4195f13d8d050e950dad4567183955292c504908 | 280 | Craft-Master-2.0 | MIT License |
recommend-sdk/src/main/java/com/recommend/sdk/device/data/model/activity/data/DeviceSearchViewActivityData.kt | recommend-pro | 609,114,602 | false | null | package com.recommend.sdk.device.data.model.activity.data
import com.recommend.sdk.device.data.model.activity.data.search.Filter
import com.recommend.sdk.device.data.model.activity.data.search.DeviceActivitySearchTerm
/**
* Search view activity data
*
* @property products Products, that were shown
* @property ter... | 0 | Kotlin | 0 | 2 | 57d98ad0f46e218d88b814075e6274a079ca3914 | 566 | recommend-android-sdk | MIT License |
Copy2Message/app/src/main/java/com/greimul/copy2message/fragment/HomeFragment.kt | GreimuL | 253,409,709 | false | null | package com.greimul.copy2message.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recycler... | 0 | Kotlin | 0 | 0 | dead147f44d67afe4033a94c6e2c54ee77ef776b | 1,804 | Copy2Message | MIT License |
yamlkt/src/commonTest/kotlin/net.mamoe.yamlkt/encoder/FlowMapTest.kt | Him188 | 245,191,078 | false | {"Kotlin": 303063} | package net.mamoe.yamlkt.encoder
import kotlinx.serialization.Serializable
import kotlin.test.Test
import kotlin.test.assertEquals
class FlowMapTest {
@Serializable
class Empty {
override fun equals(other: Any?): Boolean {
return other != null && other::class == this::class
}
... | 23 | Kotlin | 12 | 123 | 5fa3c522370debf52bf87969cbe21f2b0b686b19 | 525 | yamlkt | Apache License 2.0 |
src/main/kotlin/com/easternedgerobotics/rov/value/AccelerationValue.kt | EasternEdgeRobotics | 43,605,566 | false | null | package com.easternedgerobotics.rov.value
data class AccelerationValue(val x: Float = 0f, val y: Float = 0f, val z: Float = 0f)
| 9 | null | 1 | 3 | 439d12d76fbe082eb8f7af299484b7042d1fc85b | 129 | Software_2017 | MIT License |
src/main/kotlin/kotlin/example/P17_null처리2.kt | saro-example | 311,875,059 | false | null | package kotlin.example
fun main() {
val cl1: Class1? = null
val cl2: Class1? = Class1("이름")
// 기존 자바스타일
// println(cl1 != null && cl1.name != null ? cl1.name : null)
// println(cl1 != null && cl1.name != null ? cl1.name : "이름없음")
// 코틀린 스타일
println(cl1?.name)
println(cl1?.name ?: "이름없... | 0 | Kotlin | 0 | 0 | e92b81d9e2379f6c8881c63cfdffd610096e9b95 | 396 | kotlin-vue--basic | Apache License 2.0 |
app/src/main/java/com/example/android/politicalpreparedness/utils/Constants.kt | FAdiGabriele | 395,675,118 | false | {"Kotlin": 52031} | package com.example.android.politicalpreparedness.utils
object Constants {
//Log Tags
const val TAG = "ElectionLog"
const val LOCATION_TAG = "LocationElectionLog"
const val NETWORK_TAG = "NetworkElectionLog"
//location constants
const val REQUEST_FOREGROUND_PERMISSIONS_REQUEST_CODE = 34
// ... | 0 | Kotlin | 0 | 0 | 7043c4b6fdb8cc8209c6987a898b2554c7030cb1 | 778 | finalUdacityProject | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.