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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
common/src/main/java/com/aastudio/sarollahi/common/network/NetworkUtils.kt | sarollahi | 327,908,585 | false | {"Kotlin": 450483} | /*
* Copyright (C) 2021 Seyed Ahmad Sarollahi
* All rights reserved.
*/
package com.aastudio.sarollahi.common.network
import android.content.Context
import android.net.ConnectivityManager
object NetworkUtils {
/** Checks if device is online. */
fun checkIsOnline(context: Context): Boolean {
val co... | 0 | Kotlin | 0 | 0 | 17acb53f4ab51e40126fa3136f851eb8895074c2 | 935 | MovieBox-Kotlin | Apache License 2.0 |
unsplash/src/main/java/io/github/lee/unsplash/uitl/ba/RatioImageViewAdapter.kt | 291700351 | 467,801,205 | false | null | package io.github.lee.unsplash.uitl.ba
import android.graphics.drawable.Drawable
import androidx.databinding.BindingAdapter
import io.github.lee.core.ui.view.RatioImageView
import io.github.lee.core.util.ba.loadImage
import io.github.lee.unsplash.model.domain.PhotoBean
import io.github.lee.unsplash.uitl.blurhash.BlurH... | 0 | Kotlin | 0 | 0 | 05228000958e772128acde4da303315bee5c300c | 924 | core-base | MIT License |
src/main/kotlin/com/ort/howlingwolf/api/view/myself/participant/VillageSaySituationView.kt | h-orito | 176,481,255 | false | null | package com.ort.howlingwolf.api.view.myself.participant
import com.ort.howlingwolf.domain.model.charachip.CharaFace
import com.ort.howlingwolf.domain.model.charachip.Charas
import com.ort.howlingwolf.domain.model.message.MessageType
import com.ort.howlingwolf.domain.model.myself.participant.VillageSaySituation
import ... | 1 | null | 1 | 3 | d87c28e952287ccbc1634c1eee093a5f9f15e472 | 1,369 | wolf4busy-api | MIT License |
shared/presentation/mvvm/src/main/java/dev/eduayuso/cleansamples/shared/presentation/mvvm/features/users/UserListViewModel.kt | eduayuso | 340,966,656 | false | null | package dev.eduayuso.cleansamples.shared.presentation.mvvm.features.users
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import dev.eduayuso.cleansamples.shared.domain.entities.UserEntity
import dev.eduayuso.cleansamples.sha... | 1 | Kotlin | 0 | 0 | d42fe931d229636596b7e969405e5c9d04e3a290 | 1,507 | clean_samples | Apache License 2.0 |
app/src/main/java/org/oppia/android/app/player/state/itemviewmodel/SubmittedAnswerViewModel.kt | GowthamGoush | 329,562,439 | true | {"Gradle": 8, "Starlark": 16, "Java Properties": 7, "Shell": 6, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 3, "EditorConfig": 1, "Protocol Buffer": 13, "Proguard": 4, "XML": 618, "Kotlin": 861, "JSON": 43, "CODEOWNERS": 1, "Markdown": 6, "Java": 14} | package org.oppia.android.app.player.state.itemviewmodel
import androidx.databinding.ObservableField
import org.oppia.android.app.model.UserAnswer
/** [StateItemViewModel] for previously submitted answers. */
class SubmittedAnswerViewModel(
val submittedUserAnswer: UserAnswer,
val gcsEntityId: String,
val hasCo... | 0 | Kotlin | 0 | 1 | a88337a678573906b9a4a63c183561f1b37276c0 | 591 | oppia-android | Apache License 2.0 |
framework/src/main/java/com/prathanbomb/framework/util/FileUtils.kt | prathanbomb | 102,074,966 | true | {"Gradle": 5, "Markdown": 4, "YAML": 2, "Java Properties": 3, "Shell": 1, "Text": 8, "Ignore List": 4, "Batchfile": 1, "Proguard": 3, "XML": 73, "Java": 76, "INI": 1, "Kotlin": 43} | package com.prathanbomb.framework.util
import android.annotation.SuppressLint
import java.io.*
import java.security.DigestInputStream
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
import java.util.*
import kotlin.experimental.and
/**
* <pre>
* author: prathanbomb
* blog : http:/... | 0 | Kotlin | 0 | 0 | 554782deeffc501d0267f42f1800d58a9c1b8c23 | 30,317 | AndroidUtilCode | Apache License 2.0 |
app/src/main/java/com/municorn/example/data/database/StatusDao.kt | PrimankaDEN | 591,442,718 | false | null | package com.municorn.example.data.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
@Dao
interface StatusDao {
@Query("SELECT * FROM server_status WHERE server IS :server")
suspend fun getStatus(... | 0 | Kotlin | 0 | 0 | 76d4d4041d1afdaec46c4e64d1797ec4bf151a86 | 582 | general-network-calls | MIT License |
features/analytics/impl/src/main/java/ru/aleshin/features/analytics/impl/presenatiton/ui/tabs/TimeTab.kt | v1tzor | 638,022,252 | false | {"Kotlin": 1353995, "Assembly": 26} | /*
* Copyright 2023 <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 law or agreed to in writin... | 3 | Kotlin | 8 | 99 | 0762559e4dabea2971df1573472216f554ab8577 | 6,472 | TimePlanner | Apache License 2.0 |
src/commonMain/kotlin/org.angproj.aux/num/BigInt.kt | angelos-project | 677,039,667 | false | {"Kotlin": 327423} | /**
* Copyright (c) 2023-2024 by <NAME> <<EMAIL>>.
*
* This software is available under the terms of the MIT license. Parts are licensed
* under different terms if stated. The legal terms are attached to the LICENSE file
* and are made available on:
*
* https://opensource.org/licenses/MIT
*
* SPDX-License... | 0 | Kotlin | 0 | 0 | 3ce635e9c627c57b770929eb29168ab9adab17b5 | 3,013 | angelos-project-aux | MIT License |
app/src/main/java/com/work/challengeyapeapp/features/homeScreen/SplashScreen.kt | AlexFernandoOsorio | 813,399,089 | false | {"Kotlin": 77540} | package com.work.challengeyapeapp.features.homeScreen
import android.view.animation.OvershootInterpolator
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.AnimationVector1D
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Image
import androidx.comp... | 0 | Kotlin | 0 | 0 | 7370f2798a70cede98b36377f8f6e0c0a53dd039 | 3,235 | CodeChallengeRecipeApp | Apache License 2.0 |
src/main/kotlin/com/zhaoch23/dialog/CommandSrDialog.kt | sakurarealm | 740,696,969 | false | {"Kotlin": 11858} | package com.zhaoch23.dialog
import org.bukkit.command.CommandSender
import taboolib.common.platform.command.CommandBody
import taboolib.common.platform.command.CommandHeader
import taboolib.common.platform.command.mainCommand
import taboolib.common.platform.command.subCommand
import taboolib.expansion.createHelper
@... | 0 | Kotlin | 0 | 3 | bed84034efc6cf83a279a99d6f8d92fb98a687ca | 1,075 | SrChemDialog | MIT License |
android/libraries/rib-base/src/test/java/com/badoo/ribs/core/RouterTest.kt | Litun | 184,571,283 | true | {"Swift": 402146, "Kotlin": 327828, "Java": 118312, "Shell": 2571, "Ruby": 1955, "Objective-C": 814} | package com.badoo.ribs.core
import com.badoo.ribs.core.helper.TestRouter
import com.badoo.ribs.core.helper.TestView
import com.badoo.ribs.core.routing.action.RoutingAction
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import org.junit.Before
import org.junit.Test
import org.mockito.... | 0 | Swift | 0 | 0 | 8998dbd273f0ba886cf3b6dc43e27ca41523fff3 | 2,520 | RIBs | Apache License 2.0 |
modules/system/src/main/kotlin/com/bartlomiejpluta/smnp/ext/system/function/ExitFunction.kt | bartlomiej-pluta | 247,806,164 | false | null | package com.bartlomiejpluta.smnp.ext.system.function
import com.bartlomiejpluta.smnp.callable.function.Function
import com.bartlomiejpluta.smnp.callable.function.FunctionDefinitionTool
import com.bartlomiejpluta.smnp.callable.signature.Signature.Companion.simple
import com.bartlomiejpluta.smnp.type.enumeration.DataTyp... | 0 | Kotlin | 0 | 0 | 88f2089310b2a23b2ce63fb6be23a96db156ea4a | 838 | smnp-kt | MIT License |
app/src/main/java/com/example/fon/ContactListItem.kt | giert | 642,093,352 | false | null | import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.example.fon.Contact
@... | 0 | Kotlin | 0 | 0 | 8a2c16406009eed7d49a5757c2ebe53f89bac02a | 538 | fon | MIT License |
src/main/kotlin/ru/kotlin/bankservice/service/AccountService.kt | never-sleeps | 289,792,976 | false | null | package ru.kotlin.bankservice.service
import org.springframework.transaction.annotation.Transactional
import ru.kotlin.bankservice.model.dto.AccountRequestDTO
import ru.kotlin.bankservice.model.entity.Account
@Transactional
interface AccountService {
@Transactional(readOnly = true)
fun getAll(): Iterable<Acc... | 0 | Kotlin | 0 | 0 | 7ced30e18a07d9f3a97b6d6cccf488e26ca6fd3f | 677 | kotlin-bank-service | Apache License 2.0 |
buildSrc/src/main/kotlin/karakum/cesium/HasMembers.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | package karakum.cesium
internal interface HasMembers {
val members: List<Member>
}
| 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 88 | types-kotlin | Apache License 2.0 |
components/membership/membership-http-rpc-impl/src/main/kotlin/net/corda/membership/impl/httprpc/v1/KeysRestResourceImpl.kt | corda | 346,070,752 | false | null | package net.corda.membership.impl.httprpc.v1
import net.corda.crypto.cipher.suite.KeyEncodingService
import net.corda.crypto.client.CryptoOpsClient
import net.corda.crypto.core.CryptoConsts.SigningKeyFilters.ALIAS_FILTER
import net.corda.crypto.core.CryptoConsts.SigningKeyFilters.CATEGORY_FILTER
import net.corda.crypt... | 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 9,042 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/dima/ticketholder/di/android/ActivityBuilderModule.kt | EpicDima | 267,852,158 | false | null | package com.dima.ticketholder.di.android
import com.dima.ticketholder.ui.MainActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
abstract class ActivityBuilderModule {
@ContributesAndroidInjector
abstract fun bindMainActivity(): MainActivity
} | 0 | Kotlin | 1 | 1 | 38cfa25da0a5df63ac45996ec3928ddfbe594129 | 289 | TicketHolder | Apache License 2.0 |
app/src/main/java/com/example/reunion/view_model/NewsViewModel.kt | FlynnChow | 232,827,156 | false | {"Gradle": 3, "Diff": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 5, "JSON": 3, "Proguard": 1, "Kotlin": 158, "XML": 184, "Java": 12} | package com.example.reunion.view_model
import android.util.Log
import android.view.View
import androidx.lifecycle.MutableLiveData
import com.example.reunion.MyApplication
import com.example.reunion.R
import com.example.reunion.base.BaseViewModel
import com.example.reunion.repostory.bean.NewsBean
import com.example.reu... | 1 | null | 1 | 1 | 5449b3659bfd51e495e50e6229b924b4bfdac85f | 3,979 | Reunion | Apache License 2.0 |
app/src/main/java/com/example/reunion/view_model/NewsViewModel.kt | FlynnChow | 232,827,156 | false | {"Gradle": 3, "Diff": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 5, "JSON": 3, "Proguard": 1, "Kotlin": 158, "XML": 184, "Java": 12} | package com.example.reunion.view_model
import android.util.Log
import android.view.View
import androidx.lifecycle.MutableLiveData
import com.example.reunion.MyApplication
import com.example.reunion.R
import com.example.reunion.base.BaseViewModel
import com.example.reunion.repostory.bean.NewsBean
import com.example.reu... | 1 | null | 1 | 1 | 5449b3659bfd51e495e50e6229b924b4bfdac85f | 3,979 | Reunion | Apache License 2.0 |
internal/domain/src/main/java/com/mes/shiestywave/domain/usecase/UseCases.kt | victorkemboi | 369,842,473 | false | null | package com.mes.shiestywave.domain.usecase
import androidx.paging.map
import com.mes.shiestywave.data.data.local.entity.*
import com.mes.shiestywave.data.repository.ArtistCoverRepository
import com.mes.shiestywave.data.repository.ArtistRepository
import com.mes.shiestywave.data.repository.FeaturedArtistRepository
impo... | 0 | Kotlin | 0 | 1 | 709f79e1a188e59010b16b6a8e8254728db447a4 | 3,564 | Shiesty-Wave | MIT License |
src/main/kotlin/com/staboss/crypto/cipher/aes/CipherAES.kt | staboss | 263,959,642 | false | {"Gradle": 2, "Markdown": 2, "INI": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Java": 1, "Kotlin": 8, "Text": 3} | @file:Suppress("SameParameterValue")
package com.staboss.crypto.cipher.aes
import com.staboss.crypto.cipher.Cipher
import com.staboss.crypto.utils.keyLengthError
import com.staboss.crypto.utils.toBinary
import com.staboss.crypto.utils.toInt16
class CipherAES(key: String) : Cipher(key) {
private val keyColumns: ... | 0 | Kotlin | 0 | 0 | c3cc5847ae5fa53db337bf45c0a99fd44a797c86 | 10,643 | crypto-symmetric | MIT License |
core/src/test/kotlin/com/oneeyedmen/minutest/SugarTests.kt | npryce | 153,911,934 | true | {"Kotlin": 84691} | package com.oneeyedmen.minutest
import com.oneeyedmen.minutest.junit.JupiterTests
import com.oneeyedmen.minutest.junit.context
import org.junit.jupiter.api.Assertions.assertEquals
class SugarTests : JupiterTests {
data class Fruit(val name: String)
data class Conserve(val type: String, val fruit: Fruit)
... | 0 | Kotlin | 0 | 2 | 741acdd0349a6e169eb687a5ab4054aedc7eceab | 1,085 | minutest | Apache License 2.0 |
src/main/kotlin/ch/jtaf/boundary/dto/ResultContainer.kt | 72services | 9,931,766 | false | {"CSS": 167263, "Kotlin": 151364, "HTML": 100849, "Arc": 2791} | package ch.jtaf.boundary.dto
import ch.jtaf.entity.Result
data class ResultContainer(var seriesId: Long, var competitionId: Long, var athleteId: Long?, var results: List<Result> = ArrayList()) | 4 | CSS | 0 | 2 | 3428c302b04f76dd0901fbcf23325b649d9534e5 | 194 | jtaf | Apache License 2.0 |
infra/src/main/kotlin/fr/sacane/jmanager/infrastructure/api/adapters/UserControlAdapter.kt | Sacane | 531,082,439 | false | null | package fr.sacane.jmanager.infrastructure.api.adapters
import fr.sacane.jmanager.domain.hexadoc.LeftAdapter
import fr.sacane.jmanager.domain.models.Password
import fr.sacane.jmanager.domain.port.api.Administrator
import fr.sacane.jmanager.infrastructure.api.*
import org.springframework.beans.factory.annotation.Autowir... | 0 | Kotlin | 0 | 0 | 308be574b1fe587f94c96ff58257042b493fadf6 | 1,584 | JManager | MIT License |
app/src/main/java/edu/ktu/fitnessapp/entities/WorkoutDAO.kt | edvjask | 371,440,397 | false | null | package edu.ktu.fitnessapp.entities
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Transaction
import edu.ktu.fitnessapp.Exercise
import edu.ktu.fitnessapp.Set
@Dao
interface WorkoutDAO {
@Insert
suspend fun addNewSet(newSet : DatabaseSet) : Long
@In... | 0 | Kotlin | 0 | 0 | 813692de2e4bd919e4450f204d1a99caa8e9884f | 3,321 | Fitness-Timer | MIT License |
app/src/main/java/com/vitorpamplona/amethyst/ui/dal/UserProfileNewThreadFeedFilter.kt | vitorpamplona | 587,850,619 | false | null | package com.vitorpamplona.amethyst.ui.dal
import com.vitorpamplona.amethyst.model.Account
import com.vitorpamplona.amethyst.model.LocalCache
import com.vitorpamplona.amethyst.model.Note
import com.vitorpamplona.amethyst.model.User
import com.vitorpamplona.amethyst.service.model.AppRecommendationEvent
import com.vitorp... | 128 | Kotlin | 115 | 810 | 2e7a955ada1f936a049b5e8e778387f77e54e827 | 1,439 | amethyst | MIT License |
platform/lang-impl/src/com/intellij/internal/retype/RetypeOptionsDialog.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.retype
import com.intellij.ide.util.propComponentProperty
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
impo... | 214 | null | 4829 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,073 | intellij-community | Apache License 2.0 |
kotlinx-coroutines-core/common/test/flow/operators/ConcatenateTest.kt | hx-git | 181,115,698 | true | {"Kotlin": 2132259, "CSS": 8215, "Shell": 3332, "JavaScript": 2529, "Ruby": 1932, "HTML": 1675, "Prolog": 834, "Java": 356} | /*
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.flow
import kotlinx.coroutines.*
import kotlin.test.*
class ConcatenateTest : TestBase() {
@Test
fun testConcatenate() = runTest {
val n = 100
val sum = (1.... | 0 | Kotlin | 0 | 0 | 01441bdabfdbf4139ac4b18320be1bc2f9eac982 | 1,460 | kotlinx.coroutines-cn | Apache License 2.0 |
samples/kotlin-multiplatform/src/iosMain/kotlin/me/tylerbwong/gradle/metalava/sample/SampleIosInternalApi.kt | tylerbwong | 310,828,463 | false | {"Kotlin": 39481} | package me.tylerbwong.gradle.metalava.sample
internal class SampleIosInternalApi {
val internalApiProperty: String = ""
}
| 3 | Kotlin | 13 | 65 | d74ddec6f0e657eda1a6b9eeaea3a71b4fdbc036 | 127 | metalava-gradle | Apache License 2.0 |
SolAppduino/SolArduino/app/src/main/kotlin/com/abbyberkers/solarduino/ui/components/MoveDownButton.kt | PHPirates | 71,649,988 | false | null | package com.abbyberkers.solarduino.ui.components
import com.abbyberkers.solarduino.communication.PanelRequestSender
class MoveDownButton(private val downButton: TimerImageButton) {
fun initialise(panelRequestSender: PanelRequestSender) {
// When touched, start moving panels.
downButton.downAction... | 16 | null | 1 | 3 | d7fee339dd4af896cee267306127a13b160e032b | 473 | SolArduino | ISC License |
apps/toi-oppfolgingsinformasjon/src/main/kotlin/no/nav/arbeidsgiver/toi/oppfolgingsinformasjon/OppfolgingsinformasjonLytter.kt | navikt | 379,186,604 | false | {"Kotlin": 460771, "Dockerfile": 1380} | package no.nav.arbeidsgiver.toi.oppfolgingsinformasjon
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.ObjectNode
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.MessageContext
impor... | 2 | Kotlin | 1 | 0 | 47a40b075901e0dac7ef7408375e970f315f8168 | 1,749 | toi-rapids-and-rivers | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/DEigensystem.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: DEigensystem
*
* Full name: System`DEigensystem
*
* DEigensystem[ℒ[u[x, y, …]], u, {x, ... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,334 | mathemagika | Apache License 2.0 |
light/src/test/kotlin/net/kotlinx/math/LinearRegressionTest.kt | mypojo | 565,799,715 | false | {"Kotlin": 1352508, "Jupyter Notebook": 13439, "Java": 9531} | package net.kotlinx.math
import net.kotlinx.kotest.BeSpecLog
import net.kotlinx.kotest.KotestUtil
import net.kotlinx.kotest.initTest
import net.kotlinx.number.halfUp
import net.kotlinx.string.toTextGrid
class LinearRegressionTest : BeSpecLog() {
init {
initTest(KotestUtil.FAST)
Given("LinearRegr... | 0 | Kotlin | 0 | 1 | fb930ed8208165b710de3eff879e1aaa2f154655 | 1,556 | kx_kotlin_support | MIT License |
app/src/main/java/com/seigneur/gauvain/wowsplash/data/model/photo/PhotoUrl.kt | GauvainSeigneur | 194,500,727 | false | null | package com.seigneur.gauvain.wowsplash.data.model.photo
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class PhotoUrl(
//Fallback in case of is null,
var thumb: String,
var small: String? = thumb,
var regular: String? = small,
var full: String? = regular,
... | 0 | Kotlin | 0 | 0 | ebef26a8d83e1270671ec62905d426dcf9392a7f | 356 | WowSplash | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/nomisprisonerapi/jpa/AdjudicationPleaFindingType.kt | ministryofjustice | 444,895,409 | false | {"Kotlin": 3280948, "PLSQL": 334195, "Dockerfile": 1112} | package uk.gov.justice.digital.hmpps.nomisprisonerapi.jpa
import jakarta.persistence.DiscriminatorValue
import jakarta.persistence.Entity
@Entity
@DiscriminatorValue(AdjudicationPleaFindingType.OIC_PLEA)
class AdjudicationPleaFindingType(code: String, description: String) : ReferenceCode(OIC_PLEA, code, description) ... | 1 | Kotlin | 2 | 0 | 6fc6ed4c0344c812e08d5a851317346f2c5c843e | 436 | hmpps-nomis-prisoner-api | MIT License |
onebusaway-sdk-java-core/src/main/kotlin/com/open_transit/api/errors/OnebusawaySdkError.kt | OneBusAway | 864,202,238 | false | {"Kotlin": 1841904, "Shell": 3662, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
package com.open_transit.api.errors
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.open_transit.api.core.JsonValue
import com.o... | 0 | Kotlin | 0 | 0 | 4139f96c4d90517f472a1b2561df813ad231f904 | 2,128 | java-sdk | Apache License 2.0 |
app/src/main/java/com/axel_stein/glucose_tracker/ui/list/insulin_list/InsulinListViewModel.kt | AxelStein | 320,277,698 | false | null | package com.axel_stein.glucose_tracker.ui.list.insulin_list
import android.app.Application
import android.util.SparseArray
import androidx.core.util.set
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.axel_stein.glucose_tracker.R
import... | 4 | Kotlin | 0 | 1 | 183b9bab09f4dd6f5301c00ff17cc3ce178cfcd0 | 2,285 | GlucoseTracker | Apache License 2.0 |
src/main/kotlin/botscript/Extension.kt | samuele794 | 337,251,546 | false | null | package botscript
import com.github.twitch4j.chat.events.channel.ChannelMessageEvent
import com.github.twitch4j.common.events.domain.EventUser
fun ChannelMessageEvent.publishSOMessage(user: EventUser, gameName: String, message: String) {
twitchChat.sendMessage(
channel.name,
message.format(user.name, gameName, C... | 0 | Kotlin | 0 | 0 | 597e9a48a7fd539b0d748dfd4e5f6881f3bf157e | 380 | TakaoTwitchShotBot | Apache License 2.0 |
kmolecules-ddd/src/main/kotlin/org/jmolecules/ddd/types/Identifier.kt | xmolecules | 237,967,443 | false | null | package com.github.jntakpe.kmolecules.ddd.types
/**
* Marker interface for identifiers. Exists primarily to easily identify types that are supposed to be identifiers
* within the code base and let the compiler verify the correctness of declared relationships.
*
* Kotlin's counterpart of Java's [Identifier](https:/... | 15 | Java | 81 | 836 | f335b0867c31316fb6c7d7c97443503cec21ae47 | 516 | jmolecules | Apache License 2.0 |
libnavui-base/src/main/java/com/mapbox/navigation/ui/base/model/maneuver/ManeuverState.kt | JustinmClapperton | 344,149,809 | true | {"Kotlin": 2566336, "Java": 89431, "Python": 11277, "Makefile": 5907, "JavaScript": 2362, "Shell": 1686} | package com.mapbox.navigation.ui.base.model.maneuver
import com.mapbox.api.directions.v5.models.BannerInstructions
import com.mapbox.navigation.base.formatter.DistanceFormatter
import com.mapbox.navigation.ui.base.MapboxState
/**
* Immutable object representing the maneuver data to be rendered.
*/
sealed class Mane... | 0 | null | 0 | 0 | 3726d6a08636b77648da7f2e7e545d6b27865139 | 4,614 | mapbox-navigation-android | Apache License 2.0 |
src/main/kotlin/menace/Board.kt | cgruber | 112,367,370 | false | null | /*
* Copyright (C) 2017 The MENACE Kotlin Authors.
*
* 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 la... | 0 | Kotlin | 0 | 0 | ab417b5ad44e33b2954394e599cd8d278b394212 | 3,453 | menace | Apache License 2.0 |
app/src/androidTest/java/org/n27/nutshell/utils/TestActivity.kt | Narsuf | 843,534,148 | false | {"Kotlin": 126345} | package org.n27.nutshell.utils
import androidx.appcompat.app.AppCompatActivity
class TestActivity : AppCompatActivity() | 0 | Kotlin | 0 | 0 | 8bdeca6a48369749d00a797be19b92f17ca3fab6 | 121 | Nutshell | Apache License 2.0 |
src/main/kotlin/dsl09.preEnum/Link.kt | C06A | 127,220,753 | false | null | package dsl09.preEnum
import java.net.URI
import java.security.InvalidParameterException
import java.util.*
data class Link(
val rel: String,
val href: URI,
val type: String = "application/hal+json",
val hreflang: Locale? = null,
val name: String? = null,
val title: Str... | 0 | Kotlin | 0 | 0 | afeb540b7060f7ddf01427158205b3a96b3a8fc0 | 3,948 | ExampleDSL | Apache License 2.0 |
app/src/main/java/com/training/pagingsample/ui/adapters/MovieAdapter.kt | indra-yana | 309,303,216 | true | {"Kotlin": 19085} | package com.training.pagingsample.ui.adapters
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import co... | 0 | null | 0 | 0 | 8c6c7f6217c974996af6ca606ccf136c8acfd8f0 | 3,236 | Paging-3-Sample | MIT License |
Client/app/src/main/java/com/t3ddyss/clother/presentation/profile/ProfileEditorViewModel.kt | t3ddyss | 337,083,750 | false | {"Kotlin": 343905, "Python": 38739, "Jupyter Notebook": 22857, "HTML": 11031, "Dockerfile": 439, "Shell": 405} | package com.t3ddyss.clother.presentation.profile
import android.net.Uri
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.t3ddyss.clother.domain.auth.ProfileInteractor
import com.t3ddyss.clother.domain.auth.models.User
import com.t3ddyss.clother.presentation.profile.models.Profile... | 0 | Kotlin | 1 | 23 | cf8036e576d4b01896c09321aef5644f4e716316 | 3,311 | Clother | MIT License |
app/src/main/java/com/example/librarymanagement/Signup.kt | Fcatilizer | 757,986,835 | false | {"Kotlin": 38479} | package com.example.librarymanagement
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.CheckBox
import android.widget.EditText
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com... | 0 | Kotlin | 0 | 0 | bc54a71a017ab5b372fd2857429b00eef603468d | 5,772 | Library_Management | Apache License 2.0 |
android/geowidget/src/main/java/org/smartregister/fhircore/geowidget/baselayers/StreetSatelliteLayer.kt | opensrp | 339,242,809 | false | {"Kotlin": 3034140, "Java": 4967, "JavaScript": 3548, "CSS": 459} | /*
* Copyright 2021-2024 Ona Systems, 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 o... | 192 | Kotlin | 56 | 56 | 64a55e6920cb6280cf02a0d68152d9c03266518d | 4,218 | fhircore | Apache License 2.0 |
theming/src/commonMain/kotlin/com/paligot/movies/theming/Color.kt | GerardPaligot | 312,828,696 | false | null | package com.paligot.movies.theming
import androidx.compose.ui.graphics.Color
val orange50 = Color(255, 248, 226)
val orange100 = Color(255, 237, 182)
val orange200 = Color(255, 226, 136)
val orange300 = Color(255, 216, 89)
val orange400 = Color(255, 205, 56)
val orange500 = Color(255, 197, 39)
val orange600 = Color(2... | 0 | Kotlin | 0 | 47 | 0ad52c9df8646f78a3496a6916aeb5d254079b87 | 1,571 | discovering-movies | Apache License 2.0 |
platform/net/smack/src/main/java/cc/cryptopunks/crypton/smack/net/message/SendMessage.kt | cryptopunkscc | 202,181,919 | false | null | package cc.cryptopunks.crypton.smack.net.message
import cc.cryptopunks.crypton.context.Message
import cc.cryptopunks.crypton.context.isConference
import cc.cryptopunks.crypton.smack.SmackCore
import cc.cryptopunks.crypton.smack.util.entityBareJid
import kotlinx.coroutines.Job
import org.jivesoftware.smack.packet.Messa... | 9 | null | 2 | 7 | 33dc96367c3a4eb869800b6a0ac84f302bd68502 | 2,167 | crypton | MIT License |
src/main/java/com/github/kisaragieffective/opencommandblock/annotations/FromKotlinSDK.kt | KisaragiArchive | 174,288,842 | false | {"Kotlin": 119308} | package com.github.kisaragieffective.opencommandblock.annotations
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.CLASS, AnnotationTarget.PROPERTY)
annotation class FromKotlinSDK(val value: String) | 13 | Kotlin | 0 | 0 | 7f78beb8e628ac4c8ac0991d2648412cd989edc0 | 274 | OpenCommandBlock | MIT License |
message/src/main/kotlin/com/kamijoucen/cenim/message/msg/body/AckMessageResult.kt | Kamijoucen | 282,948,242 | false | null | package com.kamijoucen.cenim.message.msg.body
import com.kamijoucen.cenim.message.msg.MessageResult
class AckMessageResult(private val srcId: Long, val msg: String) : MessageResult() {
override fun getContent(): String = srcId.toString()
} | 0 | Kotlin | 0 | 1 | 834b7e433f54ed856c9f17590eb7d877c85cc043 | 247 | CenIM | Apache License 2.0 |
src/main/kotlin/net/danlew/predictit/model/ContractId.kt | dlew | 352,497,119 | false | null | package net.danlew.predictit.model
inline class ContractId(val id: Long) | 3 | Kotlin | 0 | 3 | ff87476180bfda665021d737fd651d01025ef03b | 73 | predictit-bot | MIT License |
app/src/test/java/com/jonathanl/bgmanager/BoardGameDetailsViewModelTest.kt | jonathanliem94 | 234,005,310 | false | null | package com.jonathanl.bgmanager
import com.jonathanl.bgmanager.data.models.GameListEntry
import com.jonathanl.bgmanager.ui.boardgamedetails.BoardGameDetailsViewModel
import com.jonathanl.bgmanager.useCases.GameListUseCase
import com.jonathanl.bgmanager.useCases.NetworkUseCase
import com.nhaarman.mockitokotlin2.*
impor... | 1 | Kotlin | 0 | 0 | 8c345f7bac25b62ed3066053f953e97f2c416c05 | 1,609 | BG-Manager | MIT License |
app/src/main/java/com/phoenix/kspt/ovt/theme_one/fragments/AssociationFragment.kt | georrge1994 | 141,315,517 | false | {"Kotlin": 209000} | package com.phoenix.kspt.ovt.theme_one.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.phoenix.kspt.Application.Companion.mContext
import com.phoenix.kspt.R
import com.phoenix.kspt.utils.FRAGMENT_PAIR_TYPES
import com.phoenix.kspt.... | 0 | Kotlin | 0 | 0 | cf0003e1a286120b0bf7d5fd61c6c3c4aa34ea18 | 3,656 | phoenix | Apache License 2.0 |
idea/testData/indentationOnNewline/AfterClassNameBeforeFun.after.kt | JakeWharton | 99,388,807 | false | null | class A()
<caret>
fun | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 22 | kotlin | Apache License 2.0 |
app/src/main/java/cm/chettas/punkbeer/ui/intro_screen/fragment/ThirdIntroFragment.kt | chetanmuliya | 620,208,206 | false | null | package cm.chettas.punkbeer.ui.intro_screen.fragment
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import cm.chettas.punkbeer.R
class FirstIntroFragment : Fragment() {
override fun onCreateView(
inf... | 0 | Kotlin | 0 | 0 | 7c0ab42cb51400d13810f60a071881743bee8ac3 | 555 | PunkBeer | Apache License 2.0 |
transparentvideo/src/main/java/com/tritus/transparentvideo/renderer/shader/FRAGMENT_SHADER_SOURCE.kt | tritus | 636,708,465 | false | null | package com.tritus.transparentvideo.renderer.shader
internal const val FRAGMENT_SHADER_SOURCE = """#extension GL_OES_EGL_image_external : require
precision mediump float;
uniform samplerExternalOES texture;
varying vec2 rgbTextureCoordinates;
varying vec2 alphaTextureCoordinates;
void main() {
vec4 rgbSource = text... | 0 | Kotlin | 0 | 4 | bb426c96b1d9129912fada753940d87a37a0af84 | 502 | android_transparent_video | MIT License |
app/src/main/java/com/afurkantitiz/foodapp/ui/profile/OrderAdapter.kt | afurkantitiz | 398,887,944 | true | {"Kotlin": 106679} | package com.afurkantitiz.foodapp.ui.profile
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.afurkantitiz.foodapp.data.entity.order.Order
import com.afurkantitiz.foodapp.databinding.ItemOrderCardBinding
i... | 0 | null | 1 | 1 | 13af7b7596dc54674baca344dadc693b647e1e81 | 1,759 | FoodApp | MIT License |
src/main/kotlin/udachin/dantesio/impl/updateHandlers/StartUpdateHandler.kt | Dantesio | 437,720,815 | false | null | package udachin.dantesio.impl.updateHandlers
import org.telegram.telegrambots.meta.api.objects.Update
import udachin.dantesio.api.telegram.TelegramApi
import udachin.dantesio.api.telegram.UpdateHandler
import udachin.dantesio.bot.TelegramBot
import udachin.dantesio.impl.stateHandlers.ABOUT_STATE
import udachin.dantesi... | 0 | Kotlin | 0 | 0 | f6183d9d6958efdd39908ab4c6ac9c1fa49c2713 | 1,383 | ZoomerTranslator | MIT License |
app/src/main/java/com/yc/shadowjetpack/TestBleActivity.kt | ychxx | 386,224,643 | false | {"Kotlin": 467789, "Java": 109456} | package com.yc.shadowjetpack
import androidx.lifecycle.lifecycleScope
import com.yc.jetpacklib.ble.YcBleUtil
import com.yc.jetpacklib.base.YcBaseActivityPlus
import com.yc.jetpacklib.ble.YcBleConnDeviceBean
import com.yc.jetpacklib.ble.YcBleScanDeviceBean
import com.yc.jetpacklib.extension.showToast
import com.yc.jetp... | 1 | Kotlin | 0 | 1 | 3fa33a908cdf1a44ef01367dad5dc0f54d4e8495 | 2,027 | ShadowJetpack | Apache License 2.0 |
Application/src/main/kotlin/com/shareyourproxy/api/rx/RxShareLink.kt | ProxyApp | 32,600,702 | false | null | package com.shareyourproxy.api.rx
import android.content.Context
import com.shareyourproxy.R
import com.shareyourproxy.api.RestClient
import com.shareyourproxy.api.domain.model.GroupToggle
import com.shareyourproxy.api.domain.model.SharedLink
import com.shareyourproxy.api.domain.model.User
import com.shareyourproxy.ap... | 0 | Java | 8 | 24 | bd7205fc3c329dc05525541c107c6ec3e48994a6 | 2,895 | Proxy | Apache License 2.0 |
SeasoningManager/app/src/main/java/com/dio/seasoningmanager/state/BaseNavigationState.kt | DIO0550 | 312,755,331 | false | null | package com.dio.seasoningmanager.state
abstract class BaseNavigationState {
public open fun entry() { /** do nothing */ }
public open fun exit() { /** do nothing */ }
public open fun updateToolbar() { /** do nothing */ }
} | 0 | Kotlin | 0 | 0 | 7abc0def9480d2a4c3ca711662d52cb84c70dc12 | 235 | seasoning-management-android | MIT License |
src/main/java/top/wetabq/wac/checks/utils/PlayerUtils.kt | WetABQ | 573,748,985 | false | {"Kotlin": 281849, "Java": 13566} | package top.wetabq.wac.checks.utils
import cn.nukkit.Player
import cn.nukkit.block.BlockLadder
import cn.nukkit.block.BlockStairs
import cn.nukkit.block.BlockVine
/**
* WAntiCheatPro
*
* @author WetABQ Copyright (c) 2019.07
* @version 1.0
*/
object PlayerUtils {
@JvmStatic
fun playerInAir(p: Player): Bo... | 0 | Kotlin | 5 | 16 | 4bc49e045421a6367f9fe6880eed285140630beb | 3,305 | WAntiCheatPro | Apache License 2.0 |
app/src/main/java/com/tmdb/app/di/component/AppComponent.kt | yokeshezumalai | 374,164,150 | false | null | package com.tmdb.app.di.component
import android.app.Application
import com.tmdb.app.App
import com.tmdb.app.di.modules.AppModule
import com.tmdb.app.di.modules.MainActivityModule
import dagger.BindsInstance
import dagger.Component
import dagger.android.AndroidInjectionModule
import javax.inject.Singleton
@Singleton... | 0 | Kotlin | 0 | 0 | 423cd1378536e55602424f0d03d9dc9941258318 | 674 | TMDB | The Unlicense |
dynatest-engine/src/test/kotlin/com/github/mvysny/dynatest/UtilsTest.kt | mvysny | 120,896,466 | false | {"Kotlin": 111405} | package com.github.mvysny.dynatest
import com.github.mvysny.dynatest.engine.toFile
import java.io.File
import java.net.URI
import java.net.URL
import kotlin.test.expect
class UtilsTest : DynaTest({
group("toFile") {
test("file:///tmp") {
expect(File("/tmp")) { URL("file:///tmp").toFile() }
... | 2 | Kotlin | 2 | 22 | 1265f0104105f80e3c729a7cc6ee525a108d1498 | 564 | dynatest | Apache License 2.0 |
shared/src/commonMain/kotlin/br/com/gmfonseca/taskmanager/shared/domain/usecases/CreateTaskUseCase.kt | gmfonseca | 408,424,183 | false | null | package br.com.gmfonseca.taskmanager.shared.domain.usecases
import br.com.gmfonseca.taskmanager.shared.common.Result
import br.com.gmfonseca.taskmanager.shared.common.ext.WatchableFlow
import br.com.gmfonseca.taskmanager.shared.common.ext.watchableFlow
import br.com.gmfonseca.taskmanager.shared.data.repositories.TaskR... | 0 | Kotlin | 0 | 0 | 5e6f34015d8c51df34b9fe549828e7799aac97b4 | 1,300 | task-manager-app | MIT License |
src/test/kotlin/com/github/sparkmuse/query/InflectionQueryTest.kt | sparkmuse | 304,141,216 | false | null | package com.github.sparkmuse.query
import com.github.nylle.javafixture.annotations.fixture.TestWithFixture
import com.github.sparkmuse.query.LanguageMonolingual.English_gb
import com.github.sparkmuse.query.LanguageSentence.English
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
cla... | 0 | Kotlin | 0 | 1 | 94bae310bf45c4da59f2f54bc4af103080fc8c09 | 864 | kotlin-oxford-dictionaries | MIT License |
app/src/main/java/cz/nestresuju/screens/login/LoginActivity.kt | johnondrej | 371,166,772 | false | null | package cz.nestresuju.screens.login
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import cz.nestresuju.R
/**
* Activity that hosts login screen.
*/
class LoginActivity : AppCompatActivity(R.layout.activity_login) {
companion object {
fun l... | 0 | Kotlin | 0 | 0 | 8d7c54c00c865a370ed24a356abd2bfeeef4ed4b | 474 | nestresuju-android | Apache License 2.0 |
src/main/kotlin/org/jetbrains/bazel/languages/starlark/psi/StarlarkFunctionDeclaration.kt | JetBrains | 709,213,338 | false | {"Kotlin": 189384, "Java": 46509, "Starlark": 19013, "Lex": 6398, "Scala": 5748} | package org.jetbrains.bazel.languages.starlark.psi
import com.intellij.lang.ASTNode
import org.jetbrains.bazel.languages.starlark.psi.base.StarlarkBaseElement
class StarlarkFunctionDeclaration(node: ASTNode) : StarlarkBaseElement(node) {
override fun acceptVisitor(visitor: StarlarkElementVisitor) = visitor.visitFun... | 0 | Kotlin | 0 | 9 | 94e4a42b40b2109b4710af83acb4c1787a9e4e42 | 345 | intellij-bazel | Apache License 2.0 |
app/src/main/java/com/example/caloriesapp/MainActivity.kt | C4sse | 813,580,185 | false | {"Kotlin": 42222} | package com.example.caloriesapp
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import com.example.caloriesapp.ui.LandingScreen
import dagger.hilt.android.AndroidEntry... | 0 | Kotlin | 0 | 0 | a13525af71464f0a5732a8d2df2d97ad57810431 | 694 | baobab | MIT License |
kotlin-node/src/jsMain/generated/node/RequireExtensions.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package node
sealed external interface RequireExtensions : Dict<(m: Module, filename: String) -> Any?> {
/* ".js": (m: Module, filename: string) => any; */
/* ".json": (m: Module, filename: string) => any; */
/* ".node": (m: Module, filename: string) =>... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 331 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/tech/thdev/flickr/view/main/adapter/viewmodel/MainAdapterViewModel.kt | taehwandev | 160,911,575 | false | null | package tech.thdev.flickr.view.main.adapter.viewmodel
import tech.thdev.flickr.data.DefaultPhoto
import tech.thdev.support.base.adapter.util.cast
import tech.thdev.support.base.adapter.viewmodel.BaseAdapterViewModel
/**
* Adapter를 구성하기 위한 ViewModel
* Repository를 포함하고있다.
*/
class MainAdapterViewModel : BaseAdapterV... | 0 | Kotlin | 2 | 5 | b64282ee41d28e7a001bd00773a3948d443f490a | 751 | FlickrExample | Apache License 2.0 |
src/main/kotlin/dev/aaronhowser/mods/geneticsresequenced/api/capability/genes/MobGeneRegistry.kt | aaronhowser1 | 780,170,281 | false | {"Kotlin": 564933} | package dev.aaronhowser.mods.geneticsresequenced.api.capability.genes
import com.google.gson.GsonBuilder
import com.google.gson.JsonElement
import com.mojang.serialization.Codec
import com.mojang.serialization.JsonOps
import com.mojang.serialization.codecs.RecordCodecBuilder
import dev.aaronhowser.mods.geneticsreseque... | 5 | Kotlin | 0 | 1 | 11d035ab2a3f002ac6f2ebb392c242ce3d16636c | 3,666 | Genetics-Resequenced | MIT License |
app/src/main/java/dog/snow/androidrecruittest/domain/interactor/base/EmptyObserver.kt | voprokudin | 247,459,959 | false | null | package dog.snow.androidrecruittest.domain.interactor.base
import io.reactivex.observers.DisposableObserver
open class EmptyObserver<T> : DisposableObserver<T>() {
override fun onNext(t: T) {}
override fun onError(e: Throwable) {}
override fun onComplete() {}
} | 0 | Kotlin | 0 | 0 | 4b97af858ce914204f5caecaea2ac4935306f77e | 278 | snowdog | Apache License 2.0 |
src/test/kotlin/org/rust/lang/core/macros/decl/RsMacroErrorTest.kt | intellij-rust | 42,619,487 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 5, "Markdown": 11, "TOML": 19, "Shell": 2, "Text": 124, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "XML": 140, "Kotlin": 2284, "INI": 3, "ANTLR": 1, "Rust": 362, "YAML": 131, "RenderScript": 1, "JSON": 6, "HTML": 198, "SVG": 136, "JFlex": 1, "Java": 1, "Python": 37} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.macros.decl
import org.rust.MockAdditionalCfgOptions
import org.rust.lang.core.macros.RsMacroExpansionErrorTestBase
import org.rust.lang.core.macros.errors.GetMacroExpansionError
clas... | 1,841 | Kotlin | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 925 | intellij-rust | MIT License |
src/commonMain/kotlin/de/jensklingenberg/kt_dart_builder/main/specs/Library.kt | Foso | 171,142,071 | false | null | package de.jensklingenberg.kt_dart_builder.main.specs
import de.jensklingenberg.kt_dart_builder.main.Spec
import de.jensklingenberg.kt_dart_builder.main.SpecVisitor
class Library(
val directives: List<Directive> = emptyList(),
val body: List<Spec> = emptyList()
) : Spec {
override fun <T> accept(visitor:... | 0 | Kotlin | 0 | 1 | beca489288dce4fa8d7c4f1bf536d5bad9591d06 | 393 | kt_dart_builder | Apache License 2.0 |
app/src/main/java/com/workfort/pstuian/app/ui/myblooddonationlist/MyBloodDonationListScreen.kt | arhanashik | 411,942,559 | false | {"Kotlin": 1131964} | package com.workfort.pstuian.app.ui.myblooddonationlist
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import an... | 0 | Kotlin | 0 | 2 | a5efa08fc1483df3c76067063d085c3a8ae24579 | 14,270 | PSTUian-android | Apache License 2.0 |
server/ns-market002/market-board/src/main/kotlin/com/market/domain/entity/Category.kt | JungBakTest | 670,271,502 | false | {"Kotlin": 104171, "Dockerfile": 161} | package com.market.domain.entity
import com.market.domain.repository.CategoryRepository
import javax.persistence.*
@Entity
class Category (
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
val id: Long? = null,
val name: String = "",
@ManyToOne
val parentCategory: Category? = null,
... | 0 | Kotlin | 0 | 0 | 1cfe2ddd3692de5cd48dba0a12714c83f32562b1 | 457 | ns-market | MIT License |
src/commonMain/kotlin/internal/consumeStatements.kt | LSafer | 613,199,566 | false | null | package net.lsafer.enver.internal
import net.lsafer.enver.EnverDotenvOptions
internal interface StatementConsumer {
fun onStatement(lineNumber: Int, line: String, name: String, value: String)
fun onMissingAssignmentOperator(lineNumber: Int, line: String, name: String)
fun onMissingClosingQuote(lineNumbe... | 0 | Kotlin | 1 | 2 | da8b1d7cc7e2d676097c33978c61cc2cede4e91c | 5,297 | enver | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Outdent.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.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 | 2,427 | icons | MIT License |
app/src/main/java/com/example/aihack/models/Test.kt | X-Foundation | 435,812,937 | false | {"Kotlin": 39953} | package com.example.aihack.models
data class Test(val level: Int, val test: Int, val text: String) | 0 | Kotlin | 0 | 0 | 650f3cd13b5d3df60a7b70c723b408e9f6099bbb | 99 | aihack2 | Apache License 2.0 |
src/main/kotlin/com/anychart/Main.kt | nabievnurlan7 | 198,131,009 | true | {"Kotlin": 3852, "SQLPL": 1002} | package com.anychart
import com.google.gson.Gson
import kotlinx.html.*
import kotlinx.html.stream.appendHTML
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.transactions.transaction
import org.jetbrains.ktor.netty.*
import org.jetbrains.ktor.routing.*
import org.jetbrains.ktor.host.*
import org.jet... | 0 | Kotlin | 0 | 0 | 3cf48f0442a64819eccd70e54af06af65b5a77f2 | 3,852 | kotlin-ktor-mysql-template | Apache License 2.0 |
composeApp/src/commonMain/kotlin/eu/heha/cyclone/ui/NavigationDestination.kt | sihamark | 614,073,078 | false | {"Kotlin": 97200, "Swift": 692} | package eu.heha.cyclone.ui
import androidx.navigation.NavBackStackEntry
interface NavigationDestination {
val route: String
}
enum class SimpleNavigationDestination(override val route: String) : NavigationDestination {
COMICS("comics"),
ADD_COMIC("comic_add")
}
data object ComicDestination : NavigationD... | 0 | Kotlin | 0 | 0 | ae9a9ab8a11d212db7be0c0051752ba90d359661 | 671 | ComicReader | Apache License 2.0 |
plugins/kotlin-plugin/src/compatibilityTest/kotlin/io/github/gmazzo/codeowners/CodeOwnersKotlinPluginCompatTest.kt | gmazzo | 575,122,672 | false | {"Kotlin": 107412, "Java": 3485} | package io.github.gmazzo.codeowners
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.EnumSource
class CodeOwnersKotlinPluginCompatTest : CodeOwnersBaseCompatTest("io.github.gmazzo.codeowners.kotlin") {
// this is a Kotlin plugin, we exclude non-Kotlin scenarios
@Para... | 0 | Kotlin | 0 | 4 | 9529e2d87afc690014f0efdd430c315761301f44 | 593 | gradle-codeowners-plugin | MIT License |
demo-glide/src/main/java/com/example/demo_glide/MainActivity.kt | 410063005 | 132,123,442 | false | {"Java": 122870, "Kotlin": 50399} | package com.example.demo_glide
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.example.demo_glide.okhttploader.OkHttpGlideUrlLoaderActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState... | 1 | null | 1 | 1 | 3dd2a981a5b50045eaeac60482aacf16e840e365 | 894 | FragmentLifeCircle | Apache License 2.0 |
src/main/kotlin/com/example/ports/secondary/Logger.kt | pwall567 | 234,070,156 | false | null | package com.example.ports.secondary
interface Logger {
fun info(block: () -> Any)
fun debug(block: () -> Any)
fun error(block: () -> Any)
fun error(t: Throwable, block: () -> Any)
}
| 0 | Kotlin | 0 | 0 | caf0efe912f1ac2302a8ef7e5cba25ce730bb17e | 199 | example-ktor | MIT License |
compiler/testData/diagnostics/tests/j+k/collectionOverrides/charAtAndOverloadWithoutExplicitOverride.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
// SCOPE_DUMP: KA:get
// FILE: A.java
abstract public class A implements CharSequence {
public final int length() {
return 0;
}
public char charAt(int index) {
return ' ';
}
public char get(int index) {
return 'X';
}
}
// FILE: main.kt
abstract class ... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 370 | kotlin | Apache License 2.0 |
src/test/kotlin/io/articulus/fhir/model/dstu3/PaymentReconciliationDataTest.kt | Articulus-Tech | 160,540,104 | false | null | package io.articulus.fhir.model.dstu3
import java.io.File
import java.lang.SuppressWarnings
import kotlin.test.assertTrue
import org.junit.jupiter.api.Test
class PaymentReconciliationDataTest : DataTests() {
@Test
fun `paymentreconciliation-example 560 Test`() {
val json = File("./src/test/resources/m... | 0 | Kotlin | 0 | 3 | 90b7b912048fc61ad3696497d1ceaf76459852cb | 4,772 | kotlin-fhir-model | Apache License 2.0 |
task/src/main/java/com/pomodorotime/task/create/CreateTaskEvent.kt | RoberMiranda92 | 283,567,928 | false | null | package com.pomodorotime.task.create
sealed class CreateTaskEvent {
data class EditingTask(val name: String, val estimatedPomodoros: Int) : CreateTaskEvent()
object SaveTask : CreateTaskEvent()
} | 1 | Kotlin | 0 | 0 | 07e77f018db930b50b1695d0d79debdc373f39e7 | 204 | PomodoroTime | Apache License 2.0 |
src/main/kotlin/dev/augu/nino/common/entities/cases/Case.kt | NinoDiscord | 275,459,123 | false | null | package dev.augu.nino.common.entities.cases
import dev.augu.nino.common.entities.Action
import dev.augu.nino.common.util.createEmbed
import dev.augu.nino.common.util.formatDateLong
import dev.augu.nino.common.util.formatDurationLong
import dev.augu.nino.services.discord.IDiscordService
import java.awt.Color
import jav... | 6 | Kotlin | 0 | 5 | 7a9937908197fedbbe544e374ce350b7129da1af | 8,173 | NinoKotlin | MIT License |
src/main/kotlin/no/nav/dagpenger/datadeling/AppConfig.kt | navikt | 639,375,864 | false | {"Kotlin": 66011, "Dockerfile": 106} | package no.nav.dagpenger.datadeling
import io.ktor.server.config.*
data class AppConfig(
val dpProxyUrl: String,
val dpProxyScope: String,
val dpDatadelingUrl: String,
val isLocal: Boolean,
val maksRetries: Int,
) {
companion object {
fun fra(config: ApplicationConfig) = AppConfig(
... | 7 | Kotlin | 0 | 1 | 5051137ed1747bb06009f3463fb92ce0221bae17 | 719 | dp-datadeling | MIT License |
ToTravel/app/src/main/java/com/example/totravel/model/TripMeta.kt | hya-cala | 552,186,722 | false | null | package com.example.totravel.model
import com.google.firebase.firestore.DocumentId
import com.google.firebase.Timestamp
data class TripMeta(
val ownerUid: String = "",
var tripName: String = "",
var description: String = "",
var startDate: Timestamp? = null,
var endDate: Timestamp? = null,
@Do... | 0 | Kotlin | 0 | 0 | 90ddebd6218c3fbed175f3c9501f0174c6867dae | 360 | tripArrange | Freetype Project License |
src/main/kotlin/ru/fmtk/khlystov/hw_polling_app/rest/dto/PollItemDTO.kt | MaxHlystov | 197,921,723 | false | null | package ru.fmtk.khlystov.hw_polling_app.rest.dto
import org.springframework.data.annotation.Id
import ru.fmtk.khlystov.hw_polling_app.domain.PollItem
data class PollItemDTO(@Id var id: String?,
val title: String) {
constructor(pollItem: PollItem): this(pollItem.id, pollItem.title)
fun ... | 0 | Kotlin | 0 | 1 | b14f198a196a932d6d7623298b596c4a3c71a42b | 366 | polling-app-kotlin | MIT License |
terra-wallet/src/commonMain/kotlin/money/terra/wallet/TerraWallet.kt | bxlkm | 391,291,588 | true | {"Kotlin": 128994, "Java": 16351} | package money.terra.wallet
import money.terra.COIN_TYPE
import money.terra.bip.Bech32
import money.terra.bip.Bech32Hrp
import kotlin.jvm.JvmOverloads
import kotlin.jvm.JvmStatic
interface TerraWallet {
val address: String
companion object {
@JvmStatic
@JvmOverloads
fun create(account... | 0 | null | 0 | 0 | 51b49e39805650603122cd4278eda7b97c0a0169 | 1,290 | terra-sdk-kotlin | Apache License 2.0 |
gt-contracts/src/test/kotlin/tr/com/citlembik/contracts/ContractTests.kt | pinkjersey | 325,997,438 | true | {"Kotlin": 42885, "HTML": 436, "JavaScript": 53} | package tr.com.citlembik.contracts
import net.corda.core.contracts.TypeOnlyCommandData
import net.corda.finance.DOLLARS
import net.corda.testing.node.MockServices
import net.corda.testing.node.ledger
import org.junit.Test
import tr.com.citlembik.states.ItemState
class ContractTests {
class DummyCommand : TypeOnly... | 0 | Kotlin | 0 | 0 | 1c25e5b237a7aff97ccabb3056911714ff820d22 | 1,879 | GlobalTrade | Apache License 2.0 |
idea/idea-completion/testData/smart/VariableAsFunction1.kt | JakeWharton | 99,388,807 | true | null | fun String.foo(c: Char){}
class C {
fun foo(i: Int){}
fun bar(foo: (String) -> Unit, p1: String, p2: Int, p3: Char) {
foo(<caret>)
}
}
// EXIST: p1
// EXIST: p2
// ABSENT: p3
| 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 198 | kotlin | Apache License 2.0 |
app/src/main/java/com/blaubalu/detoxrank/data/AppDatabase.kt | AdamBalu | 749,353,748 | false | {"Kotlin": 439275} | package com.blaubalu.detoxrank.data
import android.content.Context
import androidx.room.AutoMigration
import androidx.room.Database
import androidx.room.DeleteColumn
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import androidx.room.migration.AutoMigrationSpec
import a... | 0 | Kotlin | 0 | 0 | a3d9be1fc6809b5b54e0707847acb5c4b0d9c13d | 2,114 | DetoxRank | MIT License |
Chapter06/06_type_erasure.kt | PacktPublishing | 101,964,449 | false | null | package test
class Box<T>
val intBox = Box<Int>()
val stringBox = Box<String>()
fun main(args: Array<String>) {
println(intBox.javaClass)
println(stringBox.javaClass)
} | 1 | Kotlin | 30 | 53 | b079ae28083fc68555f05af0f83dca6414ceec3f | 179 | Android-Development-with-Kotlin | MIT License |
src/main/kotlin/com/github/rushyverse/api/translation/ResourceBundleTranslationsProvider.kt | Rushyverse | 578,345,187 | false | null | package com.github.rushyverse.api.translation
import com.ibm.icu.text.MessageFormat
import mu.KotlinLogging
import java.util.*
/**
* Loads the [ResourceBundle] called [bundleName] for all supported locales from [SupportedLanguage].
* @see ResourceBundleTranslationsProvider.registerResourceBundle
*/
public fun Reso... | 0 | Kotlin | 0 | 2 | 5c29c90fe5bba716063c6a083979c2335a9a5dc3 | 2,845 | api | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.