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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/model/AuthenticationToken.kt | mehdizebhi | 769,983,829 | false | {"Kotlin": 13306} | package model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class AuthenticationToken(
@SerialName("access_token")
val accessToken: String,
@SerialName("expires_in")
val expiresIn: Int,
@SerialName("refresh_token")
val refreshToken: String... | 0 | Kotlin | 0 | 0 | ea1bc30f0e8516d9f7505ac737a33a7ea398ed72 | 433 | 2each | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/Dry.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/Dry")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val Dry: SvgIconComponent
| 12 | Kotlin | 145 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 188 | kotlin-wrappers | Apache License 2.0 |
common/src/commonMain/kotlin/com/artemchep/keyguard/common/usecase/GetProducts.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.common.usecase
import com.artemchep.keyguard.common.model.Product
import kotlinx.coroutines.flow.Flow
interface GetProducts : () -> Flow<List<Product>?>
| 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 186 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
news/src/main/java/com/antarikshc/news/models/Author.kt | antarikshc | 129,514,672 | false | null | package com.antarikshc.news.models
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
@Entity(tableName = "authors_table")
data class Author(
@PrimaryKey(autoGenerate = false)
var id: String = "",
@ColumnInfo(name... | 2 | Kotlin | 2 | 4 | 2f160f561cd74b4fa1f3380f1d086828851d6e80 | 442 | Bluffpost | Apache License 2.0 |
app/src/main/java/com/ocakmali/brewway/equipments/coffees/CoffeesViewModel.kt | ocakmali | 155,255,987 | false | null | package com.ocakmali.brewway.equipments.coffees
import androidx.lifecycle.MutableLiveData
import androidx.paging.toLiveData
import com.crashlytics.android.Crashlytics
import com.ocakmali.brewway.base.BaseViewModel
import com.ocakmali.brewway.datamodel.CoffeeView
import com.ocakmali.brewway.datamodel.toCoffee
import co... | 0 | Kotlin | 0 | 1 | cde32648afdab7c6f2dbc65ba8be7a2458ea8c1a | 1,592 | BrewWay | MIT License |
app/src/main/java/com/temtem/interactive/map/temzone/domain/repository/temzone/model/marker/spawn/temtem/Type.kt | Temtem-Interactive-Map | 568,136,913 | false | null | package com.temtem.interactive.map.temzone.domain.repository.temzone.model.marker.spawn.temtem
data class Type(
val name: String,
val imageUrl: String,
)
| 0 | Kotlin | 0 | 1 | 338c95ef870b6ead4a58daec914c99583f1dc294 | 163 | Temzone-Android | MIT License |
src/main/day07/Filesystem.kt | ollehagner | 572,141,655 | false | {"Kotlin": 80353} | package day07
import java.util.*
class Filesystem {
val TOTAL_DISK_SPACE = 70000000
private val dirStack: Deque<Directory> = LinkedList()
private fun root(): Directory {
return dirStack.last
}
fun availableDiskspace(): Int {
return TOTAL_DISK_SPACE - root().value()
}
f... | 0 | Kotlin | 0 | 0 | 6e12af1ff2609f6ef5b1bfb2a970d0e1aec578a1 | 1,712 | aoc2022 | Apache License 2.0 |
keel-scheduler/src/main/kotlin/com/netflix/spinnaker/keel/scheduler/SchedulerAgent.kt | jeyrschabu | 126,823,024 | true | {"Kotlin": 358363, "Shell": 2094} | /*
* Copyright 2017 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Kotlin | 0 | 0 | db755ed4b692a38dcb53d3e5290a36c702ea0ef0 | 1,734 | keel | Apache License 2.0 |
src/main/kotlin/no/nav/klage/document/util/TokenUtil.kt | navikt | 417,132,176 | false | {"Kotlin": 42449, "PLpgSQL": 823, "Dockerfile": 133} | package no.nav.klage.document.util
import no.nav.klage.document.config.SecurityConfiguration.Companion.ISSUER_AAD
import no.nav.security.token.support.core.context.TokenValidationContextHolder
import org.springframework.stereotype.Service
@Service
class TokenUtil(
private val tokenValidationContextHolder: TokenVa... | 1 | Kotlin | 0 | 0 | e139b54db614e90a8e8c8c8f0aadb91818680dcc | 837 | kabal-smart-editor-api | MIT License |
app/src/main/java/com/example/mc_project/network/nearestStops.kt | AbhishekIIITD | 805,312,421 | false | {"Kotlin": 45931} | package com.example.mc_project.network
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrang... | 0 | Kotlin | 0 | 0 | a50b5817d281d493988dc714849a591cb3727168 | 12,088 | Meri_BUS | MIT License |
app/src/main/java/com/technicalassigments/moviewapp/ui/detailmovie/adapter/ReviewsLoadStateAdapter.kt | anang2602 | 380,973,246 | false | null | package com.technicalassigments.moviewapp.ui.detailmovie.adapter
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import com.technicalassigments.moviewapp.ui.detailmovie.view.ReviewsLoadStateViewHolder
import com.technicalassigments.moviewapp.ui.main.view.MovieLoad... | 0 | Kotlin | 0 | 0 | 2d746afeb8ca41c4ef78b78e0ba2e0af8c3c3163 | 786 | movie-app | Apache License 2.0 |
twitter-core/src/main/java/com/twitter/sdk/android/core/identity/OAuthWebViewClient.kt | takke | 195,917,891 | true | {"Java": 273963, "Kotlin": 73666} | /*
* Copyright (C) 2015 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 1 | Java | 1 | 1 | 33c16785b9adeb3e54299dff85280bdfafce4873 | 2,453 | simple-twitter-auth-android | Apache License 2.0 |
app/src/main/java/com/doctoror/particleswallpaper/presentation/di/modules/ServicesContributes.kt | NTRsolutions | 149,505,676 | true | {"Kotlin": 365313, "Java": 1291, "IDL": 1233, "Prolog": 763} | /*
* Copyright (C) 2018 <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 ... | 0 | Kotlin | 0 | 0 | 860235f776e6af339241bbd3a3ba6927d26699ef | 927 | ParticleConstellationsLiveWallpaper | Apache License 2.0 |
app/src/main/java/com/github/boybeak/v8x/app/model/Location.kt | boybeak | 616,090,715 | false | null | package com.github.boybeak.v8x.app.model
import com.eclipsesource.v8.V8Object
import com.github.boybeak.v8x.binding.V8BindingAdapter
class Location : V8BindingAdapter {
override fun getBindingId(): String {
return hashCode().toString()
}
override fun onDoubleBindingChanged(
target: V8Obje... | 0 | Kotlin | 0 | 1 | 51b79c523ab50ba10112f0ec10d77b89a1ed9c35 | 493 | v8x | MIT License |
WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/SpeakerApp.kt | android | 192,007,253 | false | {"Kotlin": 376081, "Shell": 1164} | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 22 | Kotlin | 573 | 1,122 | 473b9ffe4866fe592d6944c419eaf498ed9efccc | 6,770 | wear-os-samples | Apache License 2.0 |
clients/android/app/src/main/java/com/example/android/ui/notifications/NotificationsViewModel.kt | ierror | 255,703,103 | false | null | package com.example.android.ui.notifications
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class NotificationsViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is notifications Fragment\n" +
... | 1 | Python | 0 | 2 | 52eecbbe46569809b4fa4ee5738c5210815ca818 | 416 | stream-steam | MIT License |
pdfViewer/src/main/java/com/rajat/pdfviewer/util/Enums.kt | afreakyelf | 278,914,823 | false | {"Kotlin": 104686, "Python": 723} | package com.rajat.pdfviewer.util
sealed class DownloadStatus {
object Started : DownloadStatus()
object Success : DownloadStatus()
object Failure : DownloadStatus()
data class Progress(val progress: Int) : DownloadStatus()
}
enum class saveTo {
DOWNLOADS,
ASK_EVERYTIME
}
| 20 | Kotlin | 155 | 717 | a2f11aa01fbfa4bdfaee5c7789c6504acb6c519f | 298 | Pdf-Viewer | MIT License |
kotlintest-tests/kotlintest-tests-core/src/test/kotlin/com/sksamuel/kotlintest/matchers/bigdecimal/BigDecimalMatchersTest.kt | mindhaq | 199,806,492 | true | {"Gradle": 28, "YAML": 2, "Markdown": 12, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 1, "Batchfile": 2, "EditorConfig": 1, "Java": 4, "INI": 4, "Kotlin": 490, "XML": 8, "JSON": 1, "Maven POM": 1} | package com.sksamuel.kotlintest.matchers.bigdecimal
import io.kotlintest.matchers.bigdecimal.*
import io.kotlintest.specs.StringSpec
import java.math.BigDecimal
class BigDecimalMatchersTest : StringSpec() {
init {
"shouldBeZero" {
BigDecimal.ZERO.shouldBeZero()
BigDecimal(0).should... | 0 | Kotlin | 0 | 0 | f07c8b62e83f214589b1e9ef15295a34b695570e | 1,418 | kotlintest | Apache License 2.0 |
posts/src/main/java/com/addhen/checkin/posts/view/PostsBuilder.kt | zularizal | 151,024,171 | false | null | /*
* Copyright (c) 2015 - 2018 Henry Addo
*
* 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 ... | 0 | Kotlin | 1 | 0 | e95e26679ee045456814155b286ae20931f12ff2 | 1,109 | checkin | MIT License |
app/src/main/java/org/mp/recipes/data/di/feature/home/HomeActionProcessorHolder.kt | mprasad2510 | 193,449,283 | false | null | package org.mp.recipes.data.di.feature.home
import android.util.Log
import io.reactivex.Observable
import io.reactivex.ObservableTransformer
import org.mp.doctorsearchapp.utils.schedulers.BaseSchedulerProvider
import org.mp.recipes.data.Repository
import org.mp.recipes.data.di.mvibase.MviActionProcessorHolder
import ... | 0 | Kotlin | 0 | 0 | 7e2ddb3ad50ae4308c50e187bcea96d2757c964a | 2,187 | Recipes | MIT License |
integrasjonstest/src/test/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/integrasjonstest/NotifikasjonTrengerInntektMeldingIT.kt | navikt | 495,713,363 | false | null | package no.nav.helsearbeidsgiver.inntektsmelding.integrasjonstest
import com.fasterxml.jackson.module.kotlin.contains
import io.mockk.coEvery
import no.nav.helsearbeidsgiver.felles.BehovType
import no.nav.helsearbeidsgiver.felles.DataFelt
import no.nav.helsearbeidsgiver.felles.EventName
import no.nav.helsearbeidsgiver... | 7 | Kotlin | 0 | 2 | 8cea9f4e81efbf79d1e0d064a3d23c8f5d2cae14 | 4,302 | helsearbeidsgiver-inntektsmelding | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/anyInReturn.kt | JetBrains | 2,489,216 | false | null | // "Change return type of enclosing function 'foo' to 'Any'" "true"
fun foo() {
class A
return <caret>A()
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeCallableReturnTypeFix$ForEnclosing
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeTypeQuickFixFactories$Updat... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 333 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/b_my_friend/ui/LogoutDialogFragment.kt | maximFenyuk | 304,598,098 | false | null | package com.example.b_my_friend.ui
import android.app.AlertDialog
import android.app.Dialog
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.DialogFragment
import androidx.room.Room
import com.example.b_my_friend.R
import com.example.b_my_friend.data.SessionMa... | 0 | Kotlin | 0 | 0 | 4f4bb1f75beda89d2ffcac7dcc07f6aab1e8bdad | 2,473 | b-my-friend | MIT License |
app/src/main/java/com/gaboardi/githubtest/adapters/common/NetworkStateItemViewHolder.kt | sedestrian | 195,600,716 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 76, "JSON": 3, "XML": 23, "Java": 1} | package com.gaboardi.githubtest.adapters.common
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ProgressBar
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.gaboardi.githubtest.R
impor... | 1 | null | 1 | 1 | 237c7182575677013ab39919b7bbf142fa6bf705 | 1,767 | GitHub-Test | MIT License |
typescript-kotlin/src/main/kotlin/typescript/isFunctionExpression.fun.kt | turansky | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
external fun isFunctionExpression(node: Node): Boolean /* node is FunctionExpression */
| 0 | Kotlin | 1 | 10 | bcf03704c0e7670fd14ec4ab01dff8d7cca46bf0 | 201 | react-types-kotlin | Apache License 2.0 |
src/main/java/pers/shawxingkwok/ktutil/MutableList.swap.kt | ShawxingKwok | 660,855,232 | false | null | package pers.shawxingkwok.ktutil
/**
* Swap values between those at [i] and [j].
*
* Usage example:
*
* ```
* mutableListOf(1, 2, 3).apply{ swap(0, 2) } // 3, 2, 1
*/
public fun <E> MutableList<E>.swap(i: Int, j: Int){
this[i] = this[j].also { this[j] = this[i] }
} | 0 | Kotlin | 0 | 0 | e6f87523040dfba3c68713019fd4cfd32f57efe2 | 277 | KtUtil | Apache License 2.0 |
Meld-Module-Entities/src/main/kotlin/io/github/daylightnebula/meld/entities/LivingEntity.kt | DaylightNebula | 652,923,400 | false | {"Kotlin": 199201, "Python": 792} | package io.github.daylightnebula.meld.entities
import io.github.daylightnebula.meld.entities.metadata.EntityMetadata
import io.github.daylightnebula.meld.entities.metadata.entityMetadata
import org.cloudburstmc.math.vector.Vector2f
import org.cloudburstmc.math.vector.Vector3f
import java.util.*
abstract class LivingE... | 0 | Kotlin | 0 | 1 | 2290a5266ae56ef2e59cad88fc1f38e825b2cc88 | 1,002 | Meld | Apache License 2.0 |
bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/blocks/MerkleBlockExtractor.kt | diop | 180,641,789 | true | {"Kotlin": 544801, "Java": 48890} | package io.horizontalsystems.bitcoinkit.blocks
import io.horizontalsystems.bitcoinkit.core.toHexString
import io.horizontalsystems.bitcoinkit.models.MerkleBlock
import io.horizontalsystems.bitcoinkit.network.messages.MerkleBlockMessage
import io.horizontalsystems.bitcoinkit.utils.MerkleBranch
class MerkleBlockExtract... | 0 | Kotlin | 0 | 0 | fb11666b177815e0210c4d6072f201101151acdc | 1,472 | bitcoin-kit-android | MIT License |
app/src/main/java/com/eugenio/marvelsuperheroes/core/data/Routes.kt | EugenioGutierrezC | 696,859,384 | false | {"Kotlin": 75462} | package com.eugenio.marvelsuperheroes.core.data
sealed class Routes(val route: String) {
object CharactersList: Routes("charactersList")
object CharacterDetail: Routes("characterDetail/{characterId}") {
fun createRoute(characterId: Int) = "characterDetail/$characterId"
}
} | 0 | Kotlin | 0 | 0 | ab95e890d20330809d51266b760942bd1ce8cdd4 | 294 | MarvelSuperHeroes | Apache License 2.0 |
buildSrc/src/main/kotlin/Dependencies.kt | play-iot | 340,598,938 | false | null | import org.gradle.api.Project
object PluginLibs {
object Version {
const val jvm = "1.5.31"
const val sonarQube = "3.3"
const val nexusPublish = "1.1.0"
const val gradlePluginPublish = "0.18.0"
const val jacocoLogger = "2.0.0"
const val testLogger = "3.1.0"
... | 7 | Kotlin | 0 | 0 | 745114919875223760cffb90c7e307f9a3591b1f | 1,988 | gradle-plugin | Apache License 2.0 |
app/src/main/java/com/beam/todo_app/addTask/domain/AddTasksUseCase.kt | breduarm | 795,098,204 | false | {"Kotlin": 19575} | package com.beam.todo_app.addTask.domain
import com.beam.todo_app.addTask.data.TaskRepository
import com.beam.todo_app.addTask.presentation.model.TaskModel
import javax.inject.Inject
class AddTasksUseCase @Inject constructor(
private val taskRepository: TaskRepository
) {
suspend operator fun invoke(task: Tas... | 0 | Kotlin | 0 | 0 | e4227505283910c3a6028e914a6e0a00f93b9e4a | 373 | todo_app | Apache License 2.0 |
UIDemo/app/src/main/java/ch/hslu/informatik/mobpro/ui_demo/MainActivity.kt | kevinforter | 773,829,665 | false | {"Kotlin": 17373, "HTML": 9513} | package ch.hslu.informatik.mobpro.ui_demo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
if ... | 0 | Kotlin | 0 | 0 | 0df379901396f8eab8ecf6e850b8305f52fc93a9 | 540 | mobpro_workspace | MIT License |
src/main/kotlin/no/nav/pensjon/simulator/core/domain/regler/beregning2011/MinstePensjonsniva.kt | navikt | 753,551,695 | false | {"Kotlin": 1687999, "Java": 2774, "Dockerfile": 144} | package no.nav.pensjon.simulator.core.domain.regler.beregning2011
import com.fasterxml.jackson.annotation.JsonIgnore
import no.nav.pensjon.simulator.core.domain.regler.Merknad
import no.nav.pensjon.simulator.core.domain.regler.kode.FormelKodeCti
import no.nav.pensjon.simulator.core.domain.regler.kode.MinstepenNivaCti... | 1 | Kotlin | 0 | 0 | 1f7f146757ea054e29a6d82aa656cb21c9c61961 | 2,691 | pensjonssimulator | MIT License |
browser-kotlin/src/jsMain/kotlin/web/codecs/VideoDecoderInit.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6914539} | // Automatically generated - do not modify!
package web.codecs
import js.objects.JsPlainObject
@JsPlainObject
sealed external interface VideoDecoderInit {
var error: WebCodecsErrorCallback
var output: VideoFrameOutputCallback
}
| 0 | Kotlin | 7 | 31 | c3de7c4098277a67bd40a9f0687579a6b9956cb2 | 239 | types-kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/sak/service/CachedKodeverkService.kt | blommish | 359,371,467 | false | {"YAML": 13, "Ignore List": 2, "CODEOWNERS": 1, "Maven POM": 1, "Dockerfile": 1, "Text": 1, "Markdown": 1, "XML": 4, "JSON": 21, "Kotlin": 394, "Java": 1, "GraphQL": 8, "SQL": 43, "Shell": 1} | package no.nav.familie.ef.sak.service
import no.nav.familie.ef.sak.integration.FamilieIntegrasjonerClient
import no.nav.familie.kontrakter.felles.kodeverk.KodeverkDto
import org.slf4j.LoggerFactory
import org.springframework.boot.context.event.ApplicationReadyEvent
import org.springframework.cache.annotation.CacheConf... | 1 | null | 1 | 1 | 0e850df593c82a910c68c2393e6d2f30fc49eaa7 | 2,006 | familie-ef-sak | MIT License |
app/src/main/java/tw/tonyyang/englishwords/ui/base/BaseRecyclerViewHolder.kt | tonyydl | 166,625,004 | false | null | package tw.tonyyang.englishwords.ui.base
import android.view.View
import androidx.recyclerview.widget.RecyclerView
open class BaseRecyclerViewHolder(itemView: View, onRecyclerViewListener: OnRecyclerViewListener): RecyclerView.ViewHolder(itemView) {
init {
itemView.setOnClickListener {
onRecyc... | 0 | Kotlin | 1 | 0 | dedfb050f8aea0974622803df395d2aae4767bad | 602 | EnglishWords | Apache License 2.0 |
app/src/main/java/com/cactus/pokemon/CustomApplication.kt | rafaelkapi | 817,537,357 | false | {"Kotlin": 48818} | /*
* Copyright (c)
* 2018-2021 XP Inc
* All Rights Reserved
*/
package com.cactus.pokemon
import com.cactus.pokemon.di.AppComponent
import com.cactus.pokemon.di.DaggerAppComponent
import dagger.android.AndroidInjector
import dagger.android.DaggerApplication
class CustomApplication : DaggerApplication() {
priv... | 0 | Kotlin | 0 | 0 | fdbe69fd08e72dc1c96db476e4576dc246c9a8b9 | 634 | PokemonApp | MIT License |
libraries/core-utils/src/main/java/id/nz/template/mvvm/core/extension/DataExt.kt | Source-Set-564 | 211,533,076 | false | null | package id.nz.template.mvvm.core.extension
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* Created by Anwar on 10/7/2019.
*/
fun Any.jsonify() : String{
return Gson().toJson(this)
}
fun <T> makeFromJson(json : String, refered : Class<T>) : T{
return Gson().fromJson(json,refered)... | 0 | Kotlin | 0 | 2 | 59bb69f0f2e3231064fdb516fe29d18af3e07219 | 322 | Android-MVVM-Sample-Kotlin | MIT License |
app/src/main/java/com/allat/mboychenko/silverthread/utils/UpdateAppFunctions.kt | glmcz | 269,649,668 | true | {"Kotlin": 494342} | package com.allat.mboychenko.silverthread.utils
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import androidx.work.WorkManager
import com.allat.mboychenko.silverthread.BuildConfig
import com.allat.mboychenko.silverthread.data.storage.preferences.Storage
import com.allat.... | 0 | null | 0 | 0 | 4928d888e025188ab854f59121b54acfc4c06265 | 2,508 | SilverThread | Apache License 2.0 |
src/main/kotlin/ru/krindra/vknorthtypes/newsfeed/NewsfeedItemPhotoTagPhotoTags.kt | kravandir | 745,597,090 | false | {"Kotlin": 633233} | package ru.krindra.vknorthtypes.newsfeed
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import ru.krindra.vknorthtypes.photos.PhotosPhoto
@Serializable
data class NewsfeedItemPhotoTagPhotoTags (
@SerialName("items") val items: List<PhotosPhoto>? = null,
@SerialName("count") ... | 0 | Kotlin | 0 | 0 | 508d2d1d59c4606a99af60b924c6509cfec6ef6c | 346 | VkNorthTypes | MIT License |
java/kotlin/src/main/kotlin/ibc/lightclients/solomachine/v2/PacketAcknowledgementDataKt.kt | dimitar-petrov | 575,395,653 | false | null | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/lightclients/solomachine/v1/solomachine.proto
package ibc.lightclients.solomachine.v1;
@kotlin.jvm.JvmSynthetic
inline fun packetAcknowledgementData(block: ibc.lightclients.solomachine.v1.PacketAcknowledgementDataKt.Dsl.() -> Unit): ibc.lightcli... | 1 | Kotlin | 0 | 0 | fe9795120e37a7223f331f48c0dd18c29e6e7cac | 2,475 | terra.proto | Apache License 2.0 |
Android/App_YanZiJi/Lib_SerialPort/src/main/java/com/zktony/serialport/protocol/RtuProtocol.kt | OriginalLight | 556,213,614 | false | {"Kotlin": 6123849, "C#": 376657, "Vue": 164353, "Rust": 101266, "C++": 63250, "TypeScript": 62359, "Python": 28781, "CMake": 18271, "C": 16214, "Less": 2885, "Dockerfile": 1898, "HTML": 648, "JavaScript": 450} | package com.zktony.serialport.protocol
import com.zktony.serialport.ext.crc16LE
import com.zktony.serialport.ext.toHexString
/**
* Modbus RTU 协议
*/
data class RtuProtocol(
var target: Byte = 0x01,
var func: Byte = 0x03,
var data: ByteArray = byteArrayOf(),
val crc: ByteArray = byteArrayOf(0x00.toBy... | 0 | Kotlin | 0 | 1 | bcf0671b9e4ad199e579764f29683c1c575369d2 | 2,511 | ZkTony | Apache License 2.0 |
vector/src/main/java/vmodev/clearkeep/di/AbstractUnifiedSearchActivityFragmentsBuilderModule.kt | telred-llc | 194,596,139 | false | null | package vmodev.clearkeep.di
import dagger.Binds
import dagger.Module
import dagger.android.ContributesAndroidInjector
import vmodev.clearkeep.factories.viewmodels.SearchFilesFragmentViewModelFactory
import vmodev.clearkeep.factories.viewmodels.SearchFilesInRoomFragmentViewModelFactory
import vmodev.clearkeep.factories... | 5 | null | 1 | 3 | 2d20e94e9711b51aee89fa569efd61449cc7e9c3 | 2,328 | clearkeep-android | Apache License 2.0 |
core/src/main/java/com/mohfahmi/storyapp/core/data/repository/story/StoryRepository.kt | MohFahmi27 | 535,535,970 | false | {"Kotlin": 147264} | package com.mohfahmi.storyapp.core.data.repository.story
import androidx.lifecycle.LiveData
import androidx.paging.*
import com.mohfahmi.storyapp.core.data.source.StoryRemoteMediator
import com.mohfahmi.storyapp.core.data.source.local.database.StoryDatabase
import com.mohfahmi.storyapp.core.data.source.remote.IRemoteD... | 0 | Kotlin | 0 | 3 | 33e94844c52da1ad24f68e204dc0e220d564c4c4 | 2,634 | MyIntermediateAndroidSubmission | Apache License 2.0 |
app/src/main/java/com/oyamo/dooka_app/feature_profile/domain/model/Account.kt | oyamo | 542,376,763 | false | {"Kotlin": 135390} | package com.oyamo.dooka_app.feature_profile.domain.model
data class Account(
val title: String,
val content: String
) | 0 | Kotlin | 1 | 0 | f441810c7a49ef1d1e9546e4f62bda4d1b608f8e | 126 | Dooka | Apache License 2.0 |
client/client-hci/src/commonMain/kotlin/de/jlnstrk/transit/api/hci/model/composition/HciStcLeavingDirection.kt | jlnstrk | 229,599,180 | false | {"Kotlin": 729374} | package de.jlnstrk.transit.api.hci.model.composition
import de.jlnstrk.transit.api.hafas.HciModel
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@HciModel("1.39")
@Serializable
public enum class HciStcLeavingDirection {
@SerialName("L")
LEFT,
@SerialName("N")
NONE,
... | 0 | Kotlin | 0 | 0 | 9f700364f78ebc70b015876c34a37b36377f0d9c | 354 | transit | Apache License 2.0 |
vxutil-vertigram/src/main/kotlin/ski/gagar/vxutil/vertigram/types/ForumTopicReopened.kt | gagarski | 314,041,476 | false | {"Kotlin": 361258} | package ski.gagar.vxutil.vertigram.types
data object ForumTopicReopened
| 0 | Kotlin | 0 | 0 | 3ee5ab95995c0df14c25cec2b13b62614bcfabea | 73 | vertigram | Apache License 2.0 |
app/src/main/java/com/izhal/dicodingsubmission3/db/UserHelper.kt | izhal27 | 306,797,752 | false | null | package com.izhal.dicodingsubmission3.db
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import com.izhal.dicodingsubmission3.db.DatabaseContract.UserColumns.Companion.LOGIN
import com.izhal.dicodingsubmission3.db.Database... | 0 | Kotlin | 0 | 0 | 3678024e23694966b1901712277a1ab6f7abaaa9 | 2,119 | dicoding-submission-3 | MIT License |
conductor-modules/codegen-lint/src/main/java/com/lalafo/codegen/lint/constants.kt | lalafo-dev | 248,189,821 | true | {"Gradle": 13, "Markdown": 3, "Java Properties": 5, "Shell": 2, "Ignore List": 4, "Batchfile": 1, "Text": 2, "YAML": 1, "INI": 4, "Java": 109, "XML": 48, "Kotlin": 23, "Proguard": 1} | /*
* Copyright 2020 Lalafo.
*
* 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 wr... | 2 | Java | 0 | 10 | 84eb0716927f86270610304ea1f8082e99bdd9b2 | 1,381 | Conductor | Apache License 2.0 |
app/src/main/java/ir/nima/navigationcomponent/FragmentHomeButten.kt | nimasaeedvand | 724,579,107 | false | {"Kotlin": 21608} | package ir.nima.navigationcomponent
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.recyclerview.widget.... | 0 | Kotlin | 0 | 0 | 98de21286669312520fcb62fe9a2f8b497960c74 | 3,549 | tamrin | MIT License |
app/src/main/java/com/wagarcdev/der/utils/Extensions.kt | wagarcdev | 546,044,448 | false | null | package com.wagarcdev.der.utils
import android.content.Context
import com.wagarcdev.der.utils.Constants.IMAGES_FOLDER
import java.io.File
/**
* Extension to get a [File] image on app [IMAGES_FOLDER].
*/
fun Context.imageFile(
fileName: String
) = File("$filesDir/$IMAGES_FOLDER/$fileName") | 0 | Kotlin | 0 | 0 | 2578dde2f1bb801b2fd04f49964878ac4159dc25 | 297 | DER | MIT License |
rampsdk/src/main/java/network/ramp/sdk/ui/activity/Contract.kt | RampNetwork | 380,937,927 | false | {"Kotlin": 37160} | package network.ramp.sdk.ui.activity
import network.ramp.sdk.facade.Config
internal interface Contract {
interface View {
fun showDialog()
fun close()
fun sendPostMessage(data: String)
}
interface Presenter {
fun handlePostMessage(json: String)
fun buildUrl(c... | 3 | Kotlin | 5 | 5 | 5b9b5e1ca46db021682312253805cd637f4ef314 | 351 | ramp-sdk-android | MIT License |
android/core/adapter/src/main/java/dylan/kwon/voetchain/core/adapter/config/ConfigAdapterModule.kt | dylan-kwon | 823,387,423 | false | {"Kotlin": 320698, "Solidity": 9240, "JavaScript": 8572} | package dylan.kwon.voetchain.core.adapter.config
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import dylan.kwon.votechain.core.domain.config.port.ConfigPort
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
abstract cl... | 0 | Kotlin | 0 | 2 | 69a7999d8c11fde1b95c079380e8deecbba65659 | 465 | vote-chain | Apache License 2.0 |
org.librarysimplified.audiobook.tests/src/test/java/org/librarysimplified/audiobook/tests/local/ExoDownloadTest.kt | ThePalaceProject | 379,956,255 | false | {"Kotlin": 718883, "Java": 2554} | package org.librarysimplified.audiobook.tests.local
import android.app.Application
import android.content.Context
import org.librarysimplified.audiobook.tests.open_access.ExoDownloadContract
import org.mockito.Mockito
import org.slf4j.Logger
import org.slf4j.LoggerFactory
class ExoDownloadTest : ExoDownloadContract()... | 1 | Kotlin | 1 | 1 | d8e2d9dde4c20391075fcc6c527c9b9845b92a8e | 518 | android-audiobook | Apache License 2.0 |
plugins/radar-android-phone/src/main/java/org/radarbase/passive/phone/PhoneBluetoothProvider.kt | RADAR-base | 85,591,443 | false | {"C++": 2958963, "Kotlin": 809848, "Java": 517842, "C": 289748, "HTML": 42350, "PHP": 10200, "Makefile": 8527, "RenderScript": 997} | /*
* Copyright 2017 The Hyve
*
* 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 writ... | 40 | C++ | 7 | 5 | f62557c1721e9f4b74a84fbadfb3b052d6bab8e7 | 2,499 | radar-commons-android | Apache License 2.0 |
Code/app/src/main/java/com/example/mapofitness/screens/profile/GenderBottomSheet.kt | CS683 | 701,049,927 | false | {"Kotlin": 116413} | package com.example.mapofitness.screens.profile
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.com... | 0 | Kotlin | 0 | 0 | 2b444856cbeaeb9aaab3881ffe25f44bcdf85bcd | 3,108 | MapoFitness | MIT License |
interfaces/src/main/kotlin/com/noxcrew/interfaces/event/DrawPaneEvent.kt | Noxcrew | 764,059,799 | false | {"Kotlin": 111397} | package com.noxcrew.interfaces.event
import com.noxcrew.interfaces.view.InterfaceView
import org.bukkit.entity.Player
import org.bukkit.event.HandlerList
import org.bukkit.event.player.PlayerEvent
/** An event emitted when the inventory of [player] is drawn. */
public class DrawPaneEvent(
player: Player,
/** ... | 0 | Kotlin | 4 | 22 | 66363479038df90195c6c2a187a9fc83d992b075 | 804 | interfaces-kotlin | MIT License |
zzsong-device-server/src/main/kotlin/com/zzsong/device/server/infrastructure/repository/SentCommandRepositoryImpl.kt | Songzhizong | 465,969,434 | false | null | package com.zzsong.device.server.infrastructure.repository
import com.zzsong.device.server.domain.model.command.SentCommandDo
import com.zzsong.device.server.domain.model.command.SentCommandRepository
import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springfra... | 0 | Kotlin | 0 | 0 | 06f8f2664499e92576b0bc329083ec15bebfdad9 | 1,263 | zzsong-device | MIT License |
model/src/main/java/com/ericafenyo/bikediary/model/Gender.kt | ericafenyo | 309,510,894 | false | null | /*
* The MIT License (MIT)
*
* Copyright (C) 2021 Eric Afenyo
*
* 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, ... | 10 | Kotlin | 0 | 0 | 3b9b5b9440270d102c04893d3903fb1d198c0883 | 1,407 | bike-diary | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/riskprofiler/dao/OcgmRepository.kt | ministryofjustice | 166,393,369 | false | null | package uk.gov.justice.digital.hmpps.riskprofiler.dao
import org.apache.commons.lang3.StringUtils
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Repository
import uk.gov.justice.digital.hmpps.riskprofiler.datasourcemodel.FileType
import uk.gov.justice.digital.hmpps.riskprofiler.datasourcemodel.Oc... | 15 | null | 1 | 3 | 92f99609e15b5a12e44cb44d0e65a1f910ef8d76 | 2,555 | offender-risk-profiler | MIT License |
ffi/src/main/kotlin/gay/pizza/pork/ffi/FfiMacPlatform.kt | GayPizzaSpecifications | 680,636,847 | false | {"Kotlin": 253081} | package gay.pizza.pork.ffi
import java.nio.file.Path
import kotlin.io.path.*
object FfiMacPlatform : FfiPlatform {
private val frameworksDirectories = listOf(
"/Library/Frameworks"
)
override fun findLibrary(name: String): Path? {
val frameworksToCheck = frameworksDirectories.map { frameworkDirectory -... | 1 | Kotlin | 1 | 0 | fdac4fb96ab3ed6b27368e10ecfb1361c047f9e5 | 675 | pork | MIT License |
ProjectFeedget/presentation/src/main/java/kr/mashup/feedget/presentation/intro/IntroPresenter.kt | mash-up-kr | 109,485,907 | false | {"Java": 101694, "Kotlin": 74233} | package kr.mashup.feedget.presentation.intro
import io.reactivex.observers.DisposableSingleObserver
import kr.mashup.feedget.domain.interactor.usecases.IsLogined
import kr.mashup.feedget.domain.interactor.usecases.Register
import kr.mashup.feedget.entity.SignIn
import javax.inject.Inject
class IntroPresenterImpl @Inj... | 1 | null | 1 | 1 | 78dd05a711215f55d9a3bf8bde7c2349ee134f73 | 1,370 | feedget-android | Apache License 2.0 |
src/test/kotlin/com/dupont/midi/input/ParserListenerStub.kt | dupontgu | 121,136,119 | false | null | package com.dupont.midi.input
import com.dupont.midi.message.ChanneledMessage
import com.dupont.midi.message.ControlChangeMessage
import com.dupont.midi.message.MidiMessage
class ParserListenerStub : MpeParserListener {
val globalMessages = Array<MidiMessage?>(10) { null }
val zoneMessages = Array<Pair<Int, M... | 0 | Kotlin | 1 | 3 | c47298c64ab7aeb636da734c858982cb1f56d8b6 | 2,583 | mpe-kt | MIT License |
convert_string_to_char_array.kt | MarcosFloresta | 223,296,767 | false | null | import java.util.Arrays
fun main(args: Array<String>) {
val st = "This is great"
val chars = st.toCharArray()
println(Arrays.toString(chars))
} | 0 | Kotlin | 0 | 1 | eed7ca2520491200579253e95acd6ee94a0fa92e | 155 | kotlin-examples | MIT License |
app/src/main/java/tech/touraine/timer/Buttons.kt | CedricGatay | 230,894,492 | true | {"Kotlin": 21304} | package tech.touraine.timer
import android.view.KeyEvent
import com.google.android.things.contrib.driver.button.Button
import com.google.android.things.contrib.driver.button.ButtonInputDriver
import java.io.Closeable
class Buttons(private val buttonDrivers: List<ButtonInputDriver> = listOf(
registerButtonDriv... | 0 | null | 0 | 0 | 69bd88e3d2fd7cd714924f889932b0b15ceb4ac7 | 1,065 | TouraineTechTimer | MIT License |
media/src/commonMain/kotlin/dev/icerock/moko/media/picker/MediaPickerController.kt | icerockdev | 204,862,829 | false | null | /*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.media.picker
import dev.icerock.moko.media.Bitmap
import dev.icerock.moko.media.FileMedia
import dev.icerock.moko.media.Media
import dev.icerock.moko.permissions.PermissionsController
int... | 19 | null | 12 | 92 | 40c777bd3fccac60bfda5b1886514e6054e132a3 | 731 | moko-media | Apache License 2.0 |
tests/push-apps-unit-tests/src/test/kotlin/unit/ServiceCreatorTest.kt | cloudfoundry-incubator | 114,146,752 | false | null | package unit
import com.nhaarman.mockito_kotlin.*
import org.assertj.core.api.Assertions.assertThat
import org.cloudfoundry.tools.pushapps.CloudFoundryClient
import org.cloudfoundry.tools.pushapps.config.ServiceConfig
import org.cloudfoundry.tools.pushapps.ServiceCreator
import org.jetbrains.spek.api.Spek
import org.j... | 10 | Kotlin | 2 | 1 | e4971e4f85de88b9a08eccf998172842aa784666 | 4,103 | push-apps | Apache License 2.0 |
projects/prisoner-profile-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/documents/entity/Offence.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4262046, "HTML": 70066, "D2": 42781, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.integrations.delius.documents.entity
import jakarta.persistence.*
import org.hibernate.annotations.Immutable
import org.hibernate.annotations.SQLRestriction
@Entity
@Immutable
@SQLRestriction("soft_deleted = 0")
class MainOffence(
@OneToOne
@JoinColumn(name = "event_id")
... | 3 | Kotlin | 0 | 2 | 3f85ef8108aa583819eeee66d9d436a760028962 | 742 | hmpps-probation-integration-services | MIT License |
src/main/kotlin/net/wiredtomato/burgered/data/gen/provider/BurgeredEnUsLangProvider.kt | wired-tomato | 835,870,549 | false | {"Kotlin": 95855, "Java": 1521} | package net.wiredtomato.burgered.data.gen.provider
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider
import net.minecraft.block.Block
import net.minecraft.item.ItemGroup
import net.minecraft.registry.HolderLookup
import net.minecraft.re... | 0 | Kotlin | 0 | 0 | c4f7c275fea3d0517ca6f26c5a295c7fa500752a | 3,961 | burgered | MIT License |
ktlint-gradle-plugin/src/main/kotlin/com/rickbusarow/ktlint/KtLintPlugin.kt | RBusarow | 624,506,118 | false | null | /*
* Copyright (C) 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 ... | 7 | Kotlin | 0 | 0 | 69e76490710a992e4ccba07f4dac1054cab0d8d5 | 6,374 | ktlint-gradle-plugin | Apache License 2.0 |
examples/resilience4j/src/test/kotlin/example/spring/boot/resilience/timelimiter/DownstreamServiceWithAnnotationBasedTimeLimiterTests.kt | test-automation-in-practice | 506,693,260 | false | null | package example.spring.boot.resilience.timelimiter
import com.ninjasquad.springmockk.MockkBean
import example.spring.boot.resilience.Tripwire
import io.github.resilience4j.springboot3.timelimiter.autoconfigure.TimeLimiterAutoConfiguration
import io.mockk.every
import org.assertj.core.api.Assertions.assertThat
import o... | 0 | null | 0 | 54 | 5a4b1fc0cc693a1af50a88057d04516a1303afa9 | 2,384 | cnt-spring-boot | Apache License 2.0 |
kazuki-ksp/src/main/kotlin/com/anaplan/engineering/kazuki/ksp/InbuiltNames.kt | anaplan-engineering | 715,012,365 | false | {"Kotlin": 245808, "Shell": 827} | package com.anaplan.engineering.kazuki.ksp
import com.squareup.kotlinpoet.MemberName
internal object InbuiltNames {
internal const val corePackage = "com.anaplan.engineering.kazuki.core"
internal const val coreInternalPackage = "com.anaplan.engineering.kazuki.core.internal"
internal val mkSet = MemberNam... | 0 | Kotlin | 0 | 0 | f58f59281219ba3bf08402041dcb55170bb4cbe3 | 707 | kazuki | MIT License |
Application/src/main/java/com/example/android/bluetoothchat/BluetoothChatFragment.kt | solidogen | 203,795,479 | true | {"Kotlin": 66653} | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 001a68617a81bb61c910bbc419b262a480f20e06 | 13,494 | android-BluetoothChat | Apache License 2.0 |
src/main/kotlin/com/github/cout970/lhl/services/MyApplicationService.kt | cout970 | 519,561,729 | false | {"Kotlin": 6732} | package com.github.cout970.lhl.services
import com.github.cout970.lhl.MyBundle
class MyApplicationService {
init {
println(MyBundle.message("applicationService"))
}
}
| 0 | Kotlin | 1 | 1 | 8fd906222f4431b31020d17b80ef9dce98ea31ef | 186 | LHL | Apache License 2.0 |
src/main/kotlin/com/github/wangfuhao0000/dbspstudio/listeners/MyProjectManagerListener.kt | wangfuhao0000 | 503,593,907 | false | null | package com.github.wangfuhao0000.dbspstudio.listeners
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManagerListener
import com.github.wangfuhao0000.dbspstudio.services.MyProjectService
internal class MyProjectManagerListener : Pro... | 0 | Kotlin | 0 | 0 | 7b9dbe91038bed4917b268610ddee1aff194be93 | 446 | dbspstudio | Apache License 2.0 |
app/src/main/java/com/example/sampleapp/utils/common/LoadMoreListener.kt | uditbhaskar | 344,421,725 | false | null | package com.example.sampleapp.utils.common
interface LoadMoreListener {
fun onLoadMore()
} | 0 | Kotlin | 3 | 4 | 2924b289de462517e54c013dd0ecbf0ae69247ed | 96 | MVVMBaseArchitecture | Apache License 2.0 |
app/src/main/java/com/tanishkej/onerep/ui/workouts/states/WorkoutListUiState.kt | TaniaLemus | 791,409,242 | false | {"Kotlin": 47072} | package com.tanishkej.onerep.ui.workouts.states
import com.tanishkej.onerep.data.model.WorkoutGroups
sealed interface WorkoutListUiState {
data class Success(val workoutGroups: List<WorkoutGroups>) : WorkoutListUiState
data object Error : WorkoutListUiState
data object Loading : WorkoutListUiState
} | 0 | Kotlin | 0 | 0 | 957221ea91b4ecd6cf288f705b77c0fd0f776044 | 313 | ONE-Rep | MIT License |
app/src/main/java/de/dertyp7214/rboardthememanager/helper/DownloadHelper.kt | AndroBuddy | 226,158,514 | true | {"Kotlin": 120776} | package de.dertyp7214.rboardthememanager.helper
import android.content.Context
import android.widget.ImageView
import android.widget.ProgressBar
import com.afollestad.materialdialogs.MaterialDialog
import com.downloader.Error
import com.downloader.OnDownloadListener
import com.downloader.PRDownloader
import de.dertyp7... | 0 | null | 0 | 0 | 98d55156b32930cfab007733c2f06fd620b43617 | 2,666 | Rboard-Theme-Manager | MIT License |
domain/src/main/java/com/gmart/domain/repository/AuthRepository.kt | gimartinez17 | 771,233,885 | false | {"Kotlin": 515365, "CMake": 1625, "C++": 259} | package com.gmart.domain.repository
import com.gmart.domain.model.Account
import com.gmart.domain.model.Authorization
import com.gmart.domain.model.Resource
import kotlinx.coroutines.flow.Flow
interface AuthRepository {
suspend fun createRequestToken(redirectTo: String): Flow<Resource<String>>
suspend fun cre... | 0 | Kotlin | 1 | 1 | da0854981d865fb7207767ae3e6a4c8ce1f441a8 | 529 | movies-app | MIT License |
mobile/src/main/java/be/mygod/vpnhotspot/util/UnblockCentral.kt | Mygod | 116,107,171 | false | null | package be.mygod.vpnhotspot.util
import android.annotation.SuppressLint
import android.net.MacAddress
import android.net.wifi.SoftApConfiguration
import android.net.wifi.p2p.WifiP2pConfig
import android.service.quicksettings.TileService
import androidx.annotation.RequiresApi
import org.lsposed.hiddenapibypass.HiddenAp... | 13 | null | 368 | 3,709 | 4434df0309b41f61f509c4248d1348ec8ec47180 | 1,745 | VPNHotspot | Apache License 2.0 |
app/src/main/java/com/capstone/siapabisa/ui/main/UserActivity.kt | Capstone-C23-PC622 | 642,864,844 | false | null | package com.capstone.siapabisa.ui.main
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.capstone.siapabisa.R
class UserActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout... | 0 | Kotlin | 0 | 0 | b635f670ed533f2acb7a93b21b89d8e3f0e55b72 | 343 | Mobile-Development | MIT License |
0373.Find K Pairs with Smallest Sums.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun kSmallestPairs(nums1: IntArray, nums2: IntArray, k: Int): List<List<Int>> {
var k = k
val q: PriorityQueue<IntArray> = PriorityQueue(Comparator.comparingInt { a -> a.get(0) })
for (i in 0 until min(nums1.size, k)) {
q.offer(intArrayOf(nums1[i] + nums2[0], i, 0))
}
... | 0 | Kotlin | 0 | 0 | 71f5d03abd6ae1cd397ec4f1d5ba04f792dd1b48 | 641 | kotlin-leetcode | MIT License |
src/main/kotlin/readinglist/domain/Movie.kt | praveenKajla | 101,145,121 | false | {"JavaScript": 50277, "CSS": 27347, "Kotlin": 8063, "HTML": 926} | package readinglist
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import java.util.*
import javax.persistence.*
@Entity
data class Movie(@Id
@GeneratedValue(strategy= GenerationType.AUTO)
val idd : Long?=null,
var watcher:String?=null,
... | 0 | JavaScript | 0 | 7 | 08912043559c8bc7636d7e87deec6077e9fe6f64 | 838 | react-kotlin-app | MIT License |
runtime/src/main/java/jp/co/soramitsu/runtime/DefinitionsFetcher.kt | metrocoindev | 372,627,505 | true | {"Kotlin": 1715024} | package jp.co.soramitsu.runtime
import retrofit2.http.GET
import retrofit2.http.Path
interface DefinitionsFetcher {
@GET("//raw.githubusercontent.com/valentunn/py-scale-codec/test/rococo_crowdloans/scalecodec/type_registry/{fileName}")
suspend fun getDefinitionsByFile(@Path("fileName") fileName: String): Str... | 0 | null | 0 | 0 | cdb76cfdc1486e171c98aae3650e1d2e224a185a | 527 | fearless-Android | Apache License 2.0 |
src/main/kotlin/utils/Utils.kt | GibsonRuitiari | 451,852,891 | false | {"Kotlin": 87529, "Procfile": 66} | package utils
import backend.comic_models.SMangaPage
import com.github.kittinunf.fuel.Fuel
import com.github.kittinunf.fuel.core.FileDataPart
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import mu.KLogger
import net.lingala.zip4j.ZipFile
import java.net.URL
import java.nio.file.Path
impo... | 0 | Kotlin | 0 | 1 | 4a2f4320207a4ff53754aa5ebc90715958a2baf6 | 4,491 | Comics-Telegram-Bot | Apache License 2.0 |
app/src/main/java/com/team/testscanner/ui/activities/TestScreen.kt | mukulasija | 600,352,382 | false | {"Kotlin": 196047} | package com.team.testscanner.ui.activities
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.Drawable
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.CountDownTimer
import android.util.Base64
im... | 1 | Kotlin | 0 | 2 | f295880dda54ac0deb42443aacf214c0dcdceab4 | 18,319 | TestScanner | MIT License |
geary-core/src/commonMain/kotlin/com/mineinabyss/geary/engine/GearyEngine.kt | MineInAbyss | 306,093,350 | false | null | package com.mineinabyss.geary.engine
import com.mineinabyss.geary.components.ComponentInfo
import com.mineinabyss.geary.components.events.EntityRemoved
import com.mineinabyss.geary.context.QueryContext
import com.mineinabyss.geary.datatypes.*
import com.mineinabyss.geary.datatypes.maps.ClassToComponentMap
import com.m... | 19 | Kotlin | 9 | 23 | b4e5b1b5365d600cdd5eda11ae4d4a0c8249165b | 12,003 | Geary | MIT License |
kotlin-4-devs-java/src/test/kotlin/br/com/erudio/_0506/TestPalindrome.kt | leandrocgsi | 463,957,505 | false | null | package br.com.erudio._0506
import br.com.erudio.section05._0507.isPalindrome
import org.amshove.kluent.shouldBeEqualTo
import org.junit.jupiter.api.Test
/*
private fun isPalindrome(str: String): Boolean {
TODO("not implemented")
}
*/
class Test {
@Test
fun `"civic" is a palindrome`() {
isPalind... | 0 | Kotlin | 1 | 2 | fed429722c6590867027c18464cc642b8a42135a | 1,044 | kotlin-4-devs-java | Apache License 2.0 |
app/src/main/java/com/mty/bangcalendar/ui/search/SearchViewModel.kt | mty1122 | 485,456,860 | false | null | package com.mty.bangcalendar.ui.search
import android.graphics.drawable.Drawable
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.mty.bangcalendar.logic.Repository
import com.mty.bangcalendar.logic.mode... | 0 | Kotlin | 0 | 0 | bbf2f22bc7ac93b150a0b8454227576ab4189069 | 1,087 | BangCalendar | Apache License 2.0 |
build-logic/wasm-builder/icu/src/main/kotlin/ru/pixnews/wasm/builder/icu/IcuBuildHostToolchainTask.kt | illarionov | 769,429,996 | false | {"Kotlin": 1268944, "C": 66048, "C++": 61910} | /*
* Copyright 2024, the wasm-sqlite-open-helper project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package ru.pixnews.wasm.builder.icu
import org... | 1 | Kotlin | 0 | 2 | 6ed3a38f52b22f1481cad4cecd72943a018a5dd4 | 2,758 | wasm-sqlite-open-helper | Apache License 2.0 |
app/src/main/java/com/sohezsoft/student/data/repository/structure/setting/SettingItemData.kt | sohez | 736,656,472 | false | {"Kotlin": 146004} | package com.sohezsoft.student.data.repository.structure.setting
data class SettingItemData(
val id:Int,
val name:String,
val icon : Int,
)
| 0 | Kotlin | 0 | 3 | 263dc5174aead634af62c925be850fc3093a86c6 | 152 | StudentPortalApp | MIT License |
chat/src/main/java/com/crafttalk/chat/domain/repository/IAuthRepository.kt | AndSky90 | 400,089,101 | true | {"Kotlin": 334797} | package com.crafttalk.chat.domain.repository
import com.crafttalk.chat.domain.entity.auth.Visitor
import com.crafttalk.chat.presentation.ChatEventListener
import java.io.File
interface IAuthRepository {
fun logIn(
visitor: Visitor,
successAuthUi: (() -> Unit)?,
failAuthUi: (() -> Unit)?,
... | 0 | null | 0 | 0 | 23a69456b0616dc4cf26c1915edc4c00d3f783c5 | 624 | crafttalk-android-sdk | Apache License 2.0 |
cordapp/src/main/kotlin/com/survey/flows/TradeBuildingFlow.kt | CaisR3 | 141,169,653 | false | {"Kotlin": 68056, "Java": 1893, "HTML": 672} | package com.survey.flows
import co.paralleluniverse.fibers.Suspendable
import com.survey.Helper.getSurveyByLinearId
import com.survey.SurveyContract
import com.survey.SurveyContract.Companion.SURVEY_CONTRACT_ID
import com.survey.SurveyState
import net.corda.confidential.IdentitySyncFlow
import net.corda.core.contracts... | 1 | Kotlin | 2 | 1 | 1eeab93d94845022ed802172bfd23d0f095a0848 | 2,010 | survey | Apache License 2.0 |
language-detector/src/main/kotlin/edu/ucu/languagedetector/infrastructure/evaluator/EvaluatorConfiguration.kt | Yaroslaww-1 | 649,850,018 | false | null | package edu.ucu.languagedetector.infrastructure.evaluator
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
@ConfigurationProperties(prefix = "evaluator")
@ConfigurationPropertiesScan
data class EvaluatorConfigurat... | 0 | Kotlin | 0 | 0 | e89100dd4f815c422f498709dfea240aebeafb19 | 350 | twitter-analyser | MIT License |
domain/src/main/kotlin/com/example/domain/user/Gender.kt | PARKPARKWOO | 737,782,254 | false | {"Kotlin": 262302} | package com.example.domain.user
enum class Gender {
MALE,
FEMALE,
}
| 11 | Kotlin | 0 | 0 | 4611e34d120ac1251f94c984ca3096b2a36bf2e6 | 77 | barbellrobot-backend | Apache License 2.0 |
src/main/kotlin/ru/qiwi/devops/mission/control/web/security/Grant.kt | qiwi | 329,911,226 | false | null | package ru.qiwi.devops.mission.control.web.security
import org.springframework.security.core.authority.SimpleGrantedAuthority
enum class Grant {
READ_CLUSTERS,
READ_DEPLOYMENTS,
READ_LOGS,
RESTART_DEPLOYMENT,
SCALE_DEPLOYMENT;
val publicName = this.name.toLowerCase()
override fun toStrin... | 1 | Kotlin | 1 | 1 | a5b4a1dc716841bbf0439fa309e3a2b85bbeb1d3 | 526 | k8s-mission-control | MIT License |
app/src/main/java/com/breezefieldaereo/fcm/api/UpdateDeviceTokenRepo.kt | DebashisINT | 876,752,370 | false | {"Kotlin": 16011993, "Java": 1030008} | package com.breezefieldaereo.fcm.api
import com.breezefieldaereo.app.Pref
import com.breezefieldaereo.base.BaseResponse
import io.reactivex.Observable
/**
* Created by Saikat on 27-02-2019.
*/
class UpdateDeviceTokenRepo(val apiService: UpdateDeviceTokenApi) {
fun updateDeviceToken(deviceToken: String): Observa... | 0 | Kotlin | 0 | 0 | 19b7be34bb719573e71738d1e91a26681a4a7bde | 454 | Aereo | Apache License 2.0 |
shared/java/top/fpsmaster/features/impl/render/MotionBlur.kt | FPSMasterTeam | 816,161,662 | false | {"Java": 620089, "Kotlin": 396547, "GLSL": 2647} | package top.fpsmaster.features.impl.render
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.ScaledResolution
import net.minecraft.client.renderer.GlStateManager
import net.minecraft.client.renderer.OpenGlHelper
import net.minecraft.client.renderer.Tessellator
import net.minecraft.client.renderer.v... | 14 | Java | 34 | 97 | 34a00cc1834e80badd0df6f5d17ae027163d0ce9 | 6,192 | FPSMaster | MIT License |
app/src/main/java/com/spin/id/api/response/feed/like/LikeFeedData.kt | RifqiFadhell | 501,564,017 | false | null | package com.spin.id.api.response.feed.like
data class LikeFeedData(
val like_status: String
) | 0 | Kotlin | 0 | 0 | ac0082e9f8ce71f3e17c758e59d925bfed2ec753 | 98 | SPIN | Apache License 2.0 |
src/main/kotlin/io/ghostbuster91/docker/compose/logger/keyboard/KeyboardLayout.kt | ghostbuster91 | 156,066,934 | false | null | package io.ghostbuster91.docker.compose.logger.keyboard
import com.googlecode.lanterna.input.KeyStroke
import io.ghostbuster91.docker.compose.logger.Action
import io.ghostbuster91.docker.compose.logger.Effect
import io.ghostbuster91.docker.compose.logger.UserCommand
interface KeyboardLayout : AddServiceMapping, Remov... | 2 | Kotlin | 0 | 2 | b4eac8d1b30cfa9fdf900c035c89bbefc483e710 | 1,235 | dcl-fast-switcher | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.