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/Utils.kt | bienenjakob | 573,125,960 | false | {"Kotlin": 53763} | import java.io.File
fun inputTextOfDay(n: Int): String {
return File("src/day$n/input$n.txt").readText()
}
fun testTextOfDay(n: Int): String {
return File("src/day$n/test$n.txt").readText()
}
| 0 | Kotlin | 0 | 0 | 6ff34edab6f7b4b0630fb2760120725bed725daa | 202 | aoc-2022-in-kotlin | Apache License 2.0 |
src/main/kotlin/kkon_warmup/Quicksort.kt | jdinkla | 354,538,950 | false | null | package kkon_warmup
import kotlinx.coroutines.*
import utilities.measure
import kotlin.random.Random
const val BUCKET_SIZE = 2048
fun <T> List<T>.pivot(): T = this[Random.nextInt(0, size)]
suspend fun <T : Comparable<T>> coquicksort(ls: List<T>): List<T> = coroutineScope {
if (ls.size <= BUCKET_SIZE) {
... | 0 | Kotlin | 0 | 1 | 99bd6583d20b7cef8c06cdcbb2e2708c25d6dede | 1,153 | 2021_kkon_warmup | MIT License |
src/main/kotlin/kkon_warmup/Quicksort.kt | jdinkla | 354,538,950 | false | null | package kkon_warmup
import kotlinx.coroutines.*
import utilities.measure
import kotlin.random.Random
const val BUCKET_SIZE = 2048
fun <T> List<T>.pivot(): T = this[Random.nextInt(0, size)]
suspend fun <T : Comparable<T>> coquicksort(ls: List<T>): List<T> = coroutineScope {
if (ls.size <= BUCKET_SIZE) {
... | 0 | Kotlin | 0 | 1 | 99bd6583d20b7cef8c06cdcbb2e2708c25d6dede | 1,153 | 2021_kkon_warmup | MIT License |
fluentui_core/src/main/java/com/microsoft/fluentui/util/Utils.kt | anthonysidesap | 454,785,267 | true | {"Kotlin": 2243120, "Shell": 8996} | package com.microsoft.fluentui.util
import android.content.res.Resources
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
fun pxToDp(value: Float) = (value / Resources
.getSystem()
.displayMetrics.density).dp
fun dpToPx(value: Dp) = (value * Resources
.getSystem()
... | 1 | Kotlin | 2 | 7 | 2b0d10f7b754c189fea210d279487617e5661eaa | 351 | fluentui-android | MIT License |
server/src/main/com/broll/gainea/server/core/objects/Soldier.kt | Rolleander | 253,573,579 | false | {"Kotlin": 426720, "Java": 265966, "HTML": 1714, "CSS": 1069, "JavaScript": 24} | package com.broll.gainea.server.core.objects
import com.broll.gainea.server.core.battle.BattleContext
import com.broll.gainea.server.core.battle.FightingPower
import com.broll.gainea.server.core.fractions.Fraction
import com.broll.gainea.server.core.player.Player
import com.broll.gainea.server.core.player.isNeutral
o... | 0 | Kotlin | 1 | 3 | 35593a78a4b81e1758cc9bca23e78fb14b427334 | 760 | Gainea | MIT License |
SmartWindowdevice/app/src/main/java/com/hsj/SmartWindowdevice/data/services/VillageForecastApiService.kt | gksl2577 | 350,228,145 | false | null | package com.hsj.SmartWindowdevice.data.services
import com.hsj.SmartWindowdevice.BuildConfig
import com.hsj.SmartWindowdevice.data.models.villageforecast.VillageForecastResponse
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
interface VillageForecastApiService {
@GET(
"136... | 0 | Kotlin | 0 | 1 | 28a200bb9c05c82ff3a764e6f9c2d96f466248c9 | 770 | monday | MIT License |
src/otherTest/kotlin/AssertionFailedErrorTest4js.kt | romanart | 224,223,786 | true | {"Kotlin": 27716} | package com.willowtreeapps.opentest4k
actual typealias Serialized = Any
actual inline fun <reified T : Any> deserialize(bytes: Serialized): T = bytes as T
actual fun serialize(`object`: Any): Serialized = `object`
| 0 | null | 0 | 0 | 77e9a33fb79a27ba76770f2f39b2d8d49969dff0 | 217 | opentest4k | Apache License 2.0 |
android/app/src/main/java/com/fabirt/weatherforecast/data/models/WeatherResponse.kt | fabirt | 256,286,254 | false | null | package com.fabirt.weatherforecast.data.models
import com.google.gson.annotations.SerializedName
data class WeatherResponse(
@SerializedName("current")
val currentWeather: CurrentWeatherModel,
@SerializedName("location")
val location: WeatherLocation,
@SerializedName("request")
val request: We... | 0 | Kotlin | 6 | 9 | d42a921ada74911d811dceae6eec80f7c6f325ae | 2,974 | weather-forecast-app | MIT License |
app/src/main/java/vn/tiki/android/androidhometestclone/data/api/GetDealsAsynTask.kt | txtd1993 | 139,110,366 | false | {"Kotlin": 13684} | package vn.tiki.android.androidhometestclone.data.api
import android.os.AsyncTask
import vn.tiki.android.androidhometestclone.data.api.response.Deal
import vn.tiki.android.androidhometestclone.presenter.DealCountDownContract
class GetDealsAsyncTask(private val apiServices: ApiServices, private val callback: DealCount... | 0 | Kotlin | 0 | 0 | 23b2d4eccd9d77204ff5f6b63388346c27b96728 | 769 | dattran__deals_count_down | Apache License 2.0 |
Edu-Android/branches/222/src/com/jetbrains/edu/android/compatibilityUtils.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.android
import com.android.tools.idea.sdk.IdeSdks
import java.io.File
fun setAndroidSdkPath(sdkLocation: File) {
IdeSdks.getInstance().setAndroidSdkPath(sdkLocation, null)
} | 5 | Kotlin | 43 | 118 | f9a96276d53cc1fca004f302e0aabde9e4b7548b | 203 | educational-plugin | Apache License 2.0 |
definitions/src/main/kotlin-gen/com/divpundir/mavlink/definitions/uavionix/UavionixAdsbTransceiverHealthReport.kt | divyanshupundir | 484,943,163 | false | null | package com.divpundir.mavlink.definitions.uavionix
import com.divpundir.mavlink.api.GeneratedMavField
import com.divpundir.mavlink.api.GeneratedMavMessage
import com.divpundir.mavlink.api.MavBitmaskValue
import com.divpundir.mavlink.api.MavDeserializer
import com.divpundir.mavlink.api.MavMessage
import com.divpundir.m... | 0 | Kotlin | 3 | 13 | 6a19cc374482310c9753c72b4df92a3be2cdc6d1 | 2,995 | mavlink-kotlin | Apache License 2.0 |
app-android/app/src/main/java/com/snap/camerakitsamples/unity/android/UnityPlayerFragment.kt | Snapchat | 692,140,343 | false | {"JavaScript": 679134, "C#": 239219, "ShaderLab": 80492, "Swift": 29359, "Kotlin": 21854, "HLSL": 13994, "Objective-C++": 2785, "Objective-C": 1432, "Ruby": 1170, "Java": 1039} | package com.snap.camerakitsamples.unity.android
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.fragment.app.DialogFragment
i... | 0 | JavaScript | 3 | 23 | d9caa60b667822280c13c3ca373000677ae1d0b3 | 1,795 | camera-kit-unity-sample | MIT License |
core/src/main/kotlin/com/piotrwalkusz/smartlaw/core/model/presentation/SectionPresentationElement.kt | piotrwalkusz1 | 293,285,610 | false | null | package com.piotrwalkusz.smartlaw.core.model.presentation
data class SectionPresentationElement(
val presentationElements: List<PresentationElement> = listOf()
) : PresentationElement | 0 | Kotlin | 0 | 0 | 235354ac0469d5ba9630b91124f6fcc4481dad34 | 192 | SmartLaw | MIT License |
io/okio/src/main/kotlin/io/bluetape4k/okio/SinkSupport.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.okio
import okio.BufferedSink
import okio.Sink
import okio.buffer
/**
* [Sink]를 [BufferedSink]로 변환합니다.
*/
fun Sink.buffered(): BufferedSink = buffer()
| 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 177 | bluetape4k | MIT License |
feature-dapp-impl/src/main/java/com/edgeverse/wallet/feature_dapp_impl/presentation/addToFavourites/di/AddToFavouritesComponent.kt | finn-exchange | 512,140,809 | false | {"Kotlin": 2956205, "Java": 14536, "JavaScript": 399} | package com.edgeverse.wallet.feature_dapp_impl.presentation.addToFavourites.di
import androidx.fragment.app.Fragment
import dagger.BindsInstance
import dagger.Subcomponent
import com.edgeverse.wallet.common.di.scope.ScreenScope
import com.edgeverse.wallet.feature_dapp_impl.presentation.addToFavourites.AddToFavouritesF... | 0 | Kotlin | 1 | 0 | 03229c4188cb56b0fb0340e60d60184c7afa2c75 | 827 | edgeverse-wallet | Apache License 2.0 |
feature-dapp-impl/src/main/java/com/edgeverse/wallet/feature_dapp_impl/presentation/addToFavourites/di/AddToFavouritesComponent.kt | finn-exchange | 512,140,809 | false | {"Kotlin": 2956205, "Java": 14536, "JavaScript": 399} | package com.edgeverse.wallet.feature_dapp_impl.presentation.addToFavourites.di
import androidx.fragment.app.Fragment
import dagger.BindsInstance
import dagger.Subcomponent
import com.edgeverse.wallet.common.di.scope.ScreenScope
import com.edgeverse.wallet.feature_dapp_impl.presentation.addToFavourites.AddToFavouritesF... | 0 | Kotlin | 1 | 0 | 03229c4188cb56b0fb0340e60d60184c7afa2c75 | 827 | edgeverse-wallet | Apache License 2.0 |
app/src/main/java/com/inging/notis/ui/search/SearchViewModel.kt | prdotk | 372,680,673 | false | null | package com.inging.notis.ui.search
import androidx.core.app.NotificationCompat.CATEGORY_MESSAGE
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import ... | 0 | Kotlin | 0 | 0 | 15101b8f1a844adc892c2b4ce04a39790b41738d | 2,560 | notis | MIT License |
drafter/src/commonMain/kotlin/io/androidpoet/drafter/bars/GroupedBarChartRenderer.kt | AndroidPoet | 861,638,856 | false | {"Kotlin": 139232} | /*
* Designed and developed by 2024 androidpoet (<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 applica... | 0 | Kotlin | 1 | 8 | cb004a03c481fb21ce22d81889bcf83e5090154d | 2,556 | Drafter | Apache License 2.0 |
app/src/main/java/com/example/pictotalk/game/SettingsManager.kt | Raynou | 782,802,602 | false | {"Kotlin": 86125} | package com.example.pictotalk.game
import android.content.Context
import android.content.SharedPreferences
/**
* Singleton class that stores values that are intended to be used in various parts of the app.
* @property context
*/
class SettingsManager(private val context: Context) {
companion object {
p... | 0 | Kotlin | 0 | 1 | 0cce6d6b284311e8675e320d3302c15beb71167c | 1,245 | PictoTalk | MIT License |
AcornUiCore/src/com/acornui/gl/component/text/TfPartBuilder.kt | konsoletyper | 105,533,124 | false | null | /*
* Copyright 2017 <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 wr... | 0 | Kotlin | 3 | 0 | a84b559fe1d1cad01eb9223ad9af73b4d5fb5bc8 | 1,946 | Acorn | Apache License 2.0 |
src/commonMain/kotlin/com/beetroot/server/entity/player/StaticPlayer.kt | BeetrootPowered | 255,452,972 | false | null | package com.beetroot.server.entity.player
class StaticPlayer : Player() {
} | 0 | Kotlin | 0 | 5 | 0e141ff3a2c32a7eb6c49867517e11830938ebc8 | 76 | Beetroot | MIT License |
app/src/main/java/com/example/dotoring_neoul/navigation/RootNavigationGraph.kt | Team-Neoul | 678,390,604 | false | null | package com.example.dotoring_neoul.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.example.dotoring_neoul.ui.home.HomeScreen
@Composable
fun RootNavigationGraph(navCon... | 6 | Kotlin | 2 | 0 | fb7eb022c0cf1fff26f780282d32624665f1255f | 885 | Neoul_Dotoring-AOS | MIT License |
video/src/main/java/com/brins/video/fragment/VideoFragment.kt | BrinsLee | 297,821,918 | false | null | package com.brins.video.fragment
import android.content.res.ColorStateList
import android.graphics.Typeface
import android.os.Bundle
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import androidx.viewpager2.widget.ViewPager2
import com.brins... | 0 | Kotlin | 0 | 1 | 37cbd7448ebfc23475c00462018f6d70c74631e1 | 3,689 | Music | Apache License 2.0 |
no-waste-auth-manager/src/main/kotlin/edu/ubb/micro/nowaste/authmanager/repository/UserRepository.kt | kissbudai | 192,089,735 | false | null | package edu.ubb.micro.nowaste.authmanager.repository
import edu.ubb.micro.nowaste.authmanager.model.User
import org.springframework.data.mongodb.repository.MongoRepository
import org.springframework.stereotype.Repository
@Repository
interface UserRepository : MongoRepository<User, String> {
fun findUserByUserName(u... | 0 | Kotlin | 0 | 0 | 25afa71e987fcbfb85bf6f2588d7654b98e1e0c5 | 345 | no-waste-api | Apache License 2.0 |
android/src/debug/kotlin/org/acyb/sayit/app/atom/TextPreview.kt | a-cyborg | 766,941,087 | false | {"Kotlin": 165341} | /*
* Copyright (c) 2024 Mima Kang / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package org.acyb.sayit.app.atom
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
@Preview
@Composable
fun TextDisplayStandardLargePreview() {
TextDis... | 0 | Kotlin | 0 | 0 | dc69c992895d0377dc6cc499dfc3e9e876758873 | 996 | SayItAlarmMP | Apache License 2.0 |
shared/src/commonMain/kotlin/ui/features/slidingDrawerUi.kt | youranshul | 652,226,399 | false | null | package ui.features
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import a... | 1 | Kotlin | 0 | 0 | f702c1a174a967a30d2bce2471a7b28515b28336 | 2,191 | KmmMovieBuff | Apache License 2.0 |
multi-search/src/main/kotlin/co/anitrend/multisearch/ui/MultiSearch.kt | AniTrend | 225,128,246 | false | {"Kotlin": 37296} | package co.anitrend.multisearch.ui
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import co.anitrend.multisearch.R
import co.anitrend.multisearch.model.MultiSearchChangeListener
import co.anitrend.multisearch.presenter.MultiSearchPre... | 2 | Kotlin | 2 | 3 | f6dd78e63c416304d1765c696126be912c4caada | 1,592 | material-multi-search | Apache License 2.0 |
app/src/main/java/social/entourage/android/groups/create/CommunicationHandlerViewModel.kt | ReseauEntourage | 30,242,877 | false | {"Kotlin": 2176686} | package social.entourage.android.groups.create
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import social.entourage.android.api.model.Group
class CommunicationHandlerViewModel : ViewModel() {
var clickNext = MutableLiveData<Boolean>()
var isCondition = MutableLiveData<Boolean>... | 2 | Kotlin | 2 | 9 | 29edfb57c6d62db7a89307be9fa87aa7d5d56431 | 593 | entourage-android | MIT License |
service/src/commonMain/kotlin/ServiceConfiguration.kt | sellmair | 322,400,648 | false | null | package io.sellmair.ionos.dyndns.service
import io.sellmair.ionos.dyndns.cli.DomainConfiguration
import io.sellmair.ionos.dyndns.cli.DomainConfigurationDTO
import io.sellmair.ionos.dyndns.cli.toDuration
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import kotlin.time.Duration
@Seria... | 1 | Kotlin | 0 | 1 | 6c3cddb41d93c1a4f15259a59dd101f2565fd554 | 1,036 | ionos-dyndns | MIT License |
src/main/kotlin/xyz/mahasamut/gun_game/runnable/RunnableManager.kt | M4h45amu7x | 619,067,634 | false | null | package xyz.mahasamut.gun_game.runnable
import xyz.mahasamut.gun_game.GunGame
import xyz.mahasamut.gun_game.config.ConfigManager
import xyz.mahasamut.gun_game.runnable.runnables.ScoreboardRunnable
import xyz.mahasamut.gun_game.runnable.runnables.SetTimeRunnable
object RunnableManager {
fun initRunnables() {
... | 0 | Kotlin | 0 | 1 | 854a37f1bbc2a57fcbe76b731471d4a1cad44010 | 497 | gun-game | Apache License 2.0 |
k4kotlin/src/main/java/com/livinglifetechway/k4kotlin/Number.kt | priya5713 | 100,002,986 | true | {"Kotlin": 7410, "Java": 1196} | @file:Suppress("NOTHING_TO_INLINE")
package com.livinglifetechway.k4kotlin
/**
* Returns Zero (0) if it is null
*/
fun Number?.orZero(): Number = if (this != null) this else 0
fun Int?.orZero(): Int = if (this != null) this else 0
fun Float?.orZero(): Float = if (this != null) this else 0.0f
fun Double?.orZero()... | 0 | Kotlin | 0 | 1 | 3138961164b17c52cb005e6e5a1df2f3b9640229 | 363 | K4Kotlin | Apache License 2.0 |
app/src/main/java/com/developerbreach/developerbreach/repository/AppRepository.kt | RajashekarRaju | 285,625,118 | false | {"Kotlin": 164789} | package com.developerbreach.developerbreach.repository
import android.content.Context
import com.developerbreach.developerbreach.repository.database.DatabaseRepository
import com.developerbreach.developerbreach.repository.database.getDatabaseInstance
import com.developerbreach.developerbreach.repository.local.LocalRep... | 0 | Kotlin | 0 | 0 | 65e3019f6babda8ca722a734f5d5b23012b5f7e9 | 727 | developers-breach-android | Apache License 2.0 |
buildSrc/src/main/java/Versions.kt | Nanamare | 502,257,230 | false | {"Kotlin": 79604} | object Versions {
const val compile_sdk_version = 32
const val min_sdk_version = 21
const val gradle_version = "7.1.2"
const val kotlin_version = "1.6.10"
const val kotlinx_coroutines_version = "1.6.0"
object Retrofit {
const val retrofit_version = "2.9.0"
const val ok_http_ve... | 0 | Kotlin | 0 | 5 | c152ec31739b460eb5ca53dcf43910f8fdcffdd8 | 1,127 | Picsum-photos | MIT License |
app/src/main/java/com/mobilecoronatracker/data/persistence/dao/CountryDataDao.kt | m1awicki | 247,331,176 | false | null | package com.mobilecoronatracker.data.persistence.dao
import androidx.room.Dao
import androidx.room.Query
import com.mobilecoronatracker.data.persistence.entity.CountryData
import com.mobilecoronatracker.data.persistence.entity.CountryDataWithCountryInfo
import kotlinx.coroutines.flow.Flow
@Dao
abstract class CountryD... | 0 | Kotlin | 3 | 2 | 0b4ed179e97c3141fc99698511fcecff93b590e6 | 1,864 | mobilecoronatracker | Apache License 2.0 |
pipeline-core/src/main/kotlin/io/inapinch/pipeline/http/Http.kt | magicfoodhand | 174,868,832 | false | {"Kotlin": 52220, "JavaScript": 12797, "HTML": 1590, "Dockerfile": 1137, "CSS": 98} | package io.inapinch.pipeline.http
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import okhttp3.OkHttpClient
import okhttp3.Request
interface HttpClient {
fun objectMapper(): ObjectMapper
f... | 0 | Kotlin | 0 | 0 | 8f02a5abedefb3c8253b9f538bcc0871f9fc43e3 | 1,372 | pipeline | MIT License |
app/src/main/java/com/crrl/beatplayer/utils/QueueUtils.kt | bg-write | 391,164,835 | true | {"Kotlin": 507543} | /*
* Copyright (c) 2020. <NAME>. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | 0 | null | 0 | 1 | 3daa6902cdaa51837669b7916b362da429e23959 | 4,653 | BeatPlayer | Apache License 2.0 |
kotlin/graphs/flows/MaxFlowFordFulkersonSimple.kt | polydisc | 281,633,906 | true | {"Java": 540473, "Kotlin": 515759, "C++": 265630, "CMake": 571} | package graphs.flows
// https://en.wikipedia.org/wiki/Ford–Fulkerson_algorithm in O(V^2 * flow)
object MaxFlowFordFulkersonSimple {
fun maxFlow(cap: Array<IntArray>, s: Int, t: Int): Int {
var flow = 0
while (true) {
if (!augmentPath(cap, BooleanArray(cap.size), s, t)) return flow
... | 1 | Java | 0 | 0 | 4566f3145be72827d72cb93abca8bfd93f1c58df | 960 | codelibrary | The Unlicense |
app/src/main/java/com/example/ghiblifilms/features/film_detail/ui/GhibliFilmDetailViewModel.kt | rmiguel1985 | 769,203,810 | false | {"Kotlin": 178102} | package com.example.ghiblifilms.features.film_detail.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.ghiblifilms.features.film_detail.domain.GetGhibliFilmUseCase
import com.example.ghiblifilms.features.film_detail.domain.entities.FilmEntity
import kotlinx.coroutines.f... | 0 | Kotlin | 0 | 1 | de5d1775cc19684131a3bb964178edcb24cfbaf4 | 1,355 | GhibliFilms | The Unlicense |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsdocumentmanagementapi/config/DocumentRequestContextConfiguration.kt | ministryofjustice | 714,999,059 | false | {"Kotlin": 261375, "Dockerfile": 1356, "Shell": 1316} | package uk.gov.justice.digital.hmpps.hmppsdocumentmanagementapi.config
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.HandlerInterceptor
impo... | 0 | Kotlin | 0 | 0 | 462faeae4623738a21d8964dd83001f624ca4e21 | 1,674 | hmpps-document-management-api | MIT License |
app/src/main/java/com/cleveroad/phone_example/ValidatorFactory.kt | Cleveroad | 114,619,348 | false | null | package com.cleveroad.phone_example
import android.content.Context
import com.cleveroad.bootstrap.kotlin_validators.PhoneValidatorImpl
import com.cleveroad.bootstrap.kotlin_validators.R
fun getPhoneValidator(context: Context) = with(context) {
PhoneValidatorImpl
.builder(this)
.emptyErrorM... | 3 | Kotlin | 6 | 38 | 7bc51f35e26b1f0ca600422a57fc37b2231b726a | 459 | Bootstrap | The Unlicense |
aoc-2018/src/test/kotlin/nl/jstege/adventofcode/aoc2018/days/Day22Test.kt | JStege1206 | 92,714,900 | false | null | package nl.jstege.adventofcode.aoc2018.days
import nl.jstege.adventofcode.aoccommon.utils.DayTester
class Day22Test : DayTester(Day22())
| 0 | Kotlin | 0 | 0 | d48f7f98c4c5c59e2a2dfff42a68ac2a78b1e025 | 139 | AdventOfCode | MIT License |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/visualStudio/VisualStudioPackagesRegistryLocator.kt | JetBrains | 49,584,664 | false | null | /*
* Copyright 2000-2023 JetBrains s.r.o.
*
* 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 agre... | 15 | Kotlin | 23 | 91 | 0a941fa071470657d160150dfebe866587fd5198 | 2,481 | teamcity-dotnet-plugin | Apache License 2.0 |
src/main/kotlin/com/amazon/elasticsearch/replication/action/repository/TransportGetFileChunkAction.kt | opendistro-for-elasticsearch | 368,213,608 | false | null | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... | 3 | Kotlin | 2 | 8 | e89a9dd57895b0bd3f813afd0a8ee17b5196d16e | 4,164 | cross-cluster-replication | Apache License 2.0 |
arsceneview/src/main/java/io/github/sceneview/ar/arcore/Camera.kt | SceneView | 426,414,439 | false | null | package io.github.sceneview.ar.arcore
import com.google.ar.core.Camera
import com.google.ar.core.TrackingState
/**
* Keep the screen unlocked while tracking, but allow it to lock when tracking stops.
*/
val Camera.isTracking get() = trackingState == TrackingState.TRACKING | 28 | Kotlin | 90 | 440 | 9bd1e3dd6a51c8de36cf1a86db20f44bc63861fb | 276 | sceneview-android | Apache License 2.0 |
src/test/kotlin/br/com/zupacademy/find/FindPixKeyEndpointTest.kt | GabrielDiasgd | 395,062,747 | true | {"Kotlin": 55968, "Smarty": 2022, "Dockerfile": 179} | package br.com.zupacademy.find
import br.com.zupacademy.FindPixKeyRequest
import br.com.zupacademy.FindPixKeyResponse
import br.com.zupacademy.KeyManagerFindServiceGrpc
import br.com.zupacademy.integration.bcb.BcbClient
import br.com.zupacademy.integration.bcb.PixKeyDetailsResponse
import br.com.zupacademy.integration... | 0 | Kotlin | 0 | 0 | ab924216a36e3099f81267d4d6bc822b89b266e9 | 6,207 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
composeApp/src/commonMain/kotlin/com/rwmobi/kunigami/ui/navigation/AppNavigationHost.kt | ryanw-mobile | 794,752,204 | false | {"Kotlin": 518481, "Swift": 693} | /*
* Copyright (c) 2024. <NAME>
* https://github.com/ryanw-mobile
* Sponsored by RW MobiMedia UK Limited
*
*/
package com.rwmobi.kunigami.ui.navigation
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.runtime.Composabl... | 24 | Kotlin | 0 | 2 | 241e0ea08e92d663e8c9fb2732627dc054e24db6 | 6,614 | OctoMeter | MIT License |
product-group-common/src/commonMain/kotlin/models/PrgrpGroupLock.kt | crowdproj | 508,540,199 | false | {"Kotlin": 270309} | package models
import kotlin.jvm.JvmInline
@JvmInline
value class PrgrpGroupLock(private val id: String) {
fun asString() = id
companion object {
val NONE = PrgrpGroupLock("")
}
} | 0 | Kotlin | 3 | 1 | dd2ee2aa0c4c3e0e3cabcdf3db42fcd8304b093f | 202 | crowdproj-product-groups | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/quicksight/CfnAnalysisGeospatialMapStyleOptionsPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.quicksight
import cloudshift.awscdk.common.CdkDslMarker
import... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,477 | awscdk-dsl-kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/com/famas/doodlekingkmm/presentation/screen_game/GameScreen.kt | rvenky125 | 610,919,955 | false | {"Kotlin": 94142, "Ruby": 2308, "Swift": 771} | package com.famas.doodlekingkmm.presentation.screen_game
import androidx.compose.animation.core.Animatable
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
i... | 0 | Kotlin | 0 | 28 | 0966d0f4540c1a3d8ef6d6360111404378cb0fa8 | 10,473 | DoodleKingKMM | MIT License |
app/src/main/java/space/taran/arknavigator/mvp/model/repo/extra/ImageMetaExtra.kt | ARK-Builders | 394,855,699 | false | null | package space.taran.arknavigator.mvp.model.repo.extra
import java.nio.file.Path
import space.taran.arknavigator.mvp.model.repo.index.ResourceMetaExtra
import space.taran.arknavigator.utils.extension
object ImageMetaExtra {
val ACCEPTED_EXTENSIONS: Set<String> =
setOf("jpg", "jpeg", "png")
fun extract... | 103 | Kotlin | 12 | 4 | 1d6cfa9a15d95a2ca1d7628042142f972931393f | 456 | ARK-Navigator | MIT License |
extension/src/main/java/com/stanfit/android/extension/library/date/Date+Utils.kt | stanfit | 258,159,175 | false | null | package com.stanfit.android.extension.library.date
import android.text.format.DateUtils
import java.util.*
/**
* Check today.
*
* @return Boolean
*/
fun Date.isToday(): Boolean {
return DateUtils.isToday(time)
}
/**
* Check yesterday.
*
* @return Boolean
*/
fun Date.isYesterday(): Boolean {
return Da... | 1 | Kotlin | 0 | 1 | d188377ea090777a5d591fc72d19b5b32fddd6e3 | 1,033 | android-extension | MIT License |
Dr Cat/app/src/main/java/com/sapplication/app/modules/guideselfnotespage/data/model/ListdrlivingstoneRowModel.kt | QwertyFusion | 744,446,675 | false | {"Kotlin": 86043} | package com.sapplication.app.modules.guideselfnotespage.`data`.model
import com.sapplication.app.R
import com.sapplication.app.appcomponents.di.MyApp
import kotlin.String
data class ListdrlivingstoneRowModel(
/**
* TODO Replace with dynamic value
*/
var txtDrLivingstone: String? =
MyApp.getInstance().... | 0 | Kotlin | 1 | 0 | 8a9af6d4ee80d130f2f494a0b838b4f53c43f755 | 526 | SIH-2023 | MIT License |
core/src/org/river/exertion/ai/noumena/group/RedHandNoumenon.kt | exertionriver | 345,650,250 | false | null | package org.river.exertion.ai.noumena.group
import org.river.exertion.ai.attribute.Trait.Companion.mergeOverrideTraits
import org.river.exertion.ai.internalFacet.InternalFacetAttribute
import org.river.exertion.ai.noumena.GroupNoumenon
import org.river.exertion.ai.noumena.core.IAttributeable
import org.river.exertion.... | 0 | Kotlin | 0 | 2 | 058c7ec60da78953c3141a7e866047eb2f453a3b | 764 | koboldCave | MIT License |
contributor-api/src/main/java/com/anand/contributor/contributor/api/IBottomNavigationContribution.kt | microsoft | 561,173,246 | false | {"Kotlin": 14422} | /*
* Copyright (c) Microsoft Corporation. Licensed under the MIT license.
*/
package com.anand.contributor.contributor.api
import androidx.annotation.DrawableRes
import androidx.fragment.app.Fragment
interface IBottomNavigationContribution: IContribution {
val state: BottomNavigationContributionState
fun fr... | 0 | Kotlin | 1 | 6 | 382974651b7d357d4d9630499f54dc6ffe2f20db | 473 | contributor-design-pattern-sample | MIT License |
app/src/main/java/chenmc/sms/transaction/service/SetReadService.kt | zhidao8 | 105,611,156 | false | null | package chenmc.sms.transaction.service
import android.app.Service
import android.content.ContentValues
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Handler
import android.os.IBinder
import android.os.Looper
import android.os.Message
import android.supp... | 3 | Kotlin | 10 | 69 | 8c83419e2574c464be5cdd7d2e7a50e4beb08ee9 | 1,490 | SmsCodeHelper | Apache License 2.0 |
app/src/main/java/chenmc/sms/transaction/service/SetReadService.kt | zhidao8 | 105,611,156 | false | null | package chenmc.sms.transaction.service
import android.app.Service
import android.content.ContentValues
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Handler
import android.os.IBinder
import android.os.Looper
import android.os.Message
import android.supp... | 3 | Kotlin | 10 | 69 | 8c83419e2574c464be5cdd7d2e7a50e4beb08ee9 | 1,490 | SmsCodeHelper | Apache License 2.0 |
InstaTask/app/src/main/java/com/example/instatask/model/JobCreator.kt | linpeterk | 472,551,243 | false | null | package com.example.instatask.model
data class JobCreator (
val id:Int,
val name:String,
val hourlyRate:Int = 25,
val description:String,
val imageRes:Int,
val available:String = "Monday-Friday",
val workLocation:String = "Orange County Area"
) | 0 | Kotlin | 0 | 0 | fd9fd4723b8180a5b19e40bb43ae822e1418b0ff | 279 | Insta-Task | Apache License 2.0 |
key-manager-grpc/src/main/kotlin/br/com/zup/orange/pix/TipoChave.kt | jpauloleao | 396,783,482 | true | {"Kotlin": 63764} | package br.com.zup.orange.pix
import org.hibernate.validator.internal.constraintvalidators.hv.br.CPFValidator
enum class TipoChave {
CPF {
override fun validaChave(chave: String?) : Boolean{
if (chave.isNullOrBlank()) {
throw IllegalArgumentException("Chave não deve ser nula")
... | 0 | Kotlin | 0 | 0 | 979b76f910178cdc0514bb56241263bf8fcc4fbe | 2,130 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/br/com/ernanilima/jinventario/data/result/IResult.kt | ernanilima | 370,795,646 | false | null | package br.com.ernanilima.jinventario.data.result;
/**
* Usada para receber os resultados
*/
interface IResult {
fun setResult(iResult: IResultType)
fun setResultFirebaseError(errorCode: String)
} | 0 | Kotlin | 0 | 2 | 8b98c69920f6bbc963f2f9ab926bda374f274dd1 | 207 | jinventario | MIT License |
app/src/main/java/com/imcys/bilibilias/home/ui/model/UserCreateCollectionBean.kt | 1250422131 | 280,332,208 | false | {"Kotlin": 580556, "Java": 28319} | package com.imcys.bilibilias.home.ui.model
import kotlinx.serialization.Serializable
/**
* 用户创建收藏夹数据
*/
@Serializable
data class UserCreateCollectionBean(
val code: Int = 0,
val message: String = "",
val ttl: Int = 0,
val data: DataBean = DataBean(),
) {
@Serializable
data class DataBean(val... | 11 | Kotlin | 51 | 849 | 4dff7fbbcffeead83d0d3881bb3782857f08b830 | 629 | bilibilias | Apache License 2.0 |
app/src/main/java/com/cookiedinner/boxanizer/core/components/CameraComponent.kt | CookieDinner | 782,371,313 | false | {"Kotlin": 237478} | package com.cookiedinner.boxanizer.core.components
import android.Manifest
import android.content.res.Configuration
import android.graphics.Bitmap
import android.widget.LinearLayout
import androidx.camera.core.CameraSelector
import androidx.camera.core.ImageAnalysis.Analyzer
import androidx.camera.core.ImageCapture
im... | 0 | Kotlin | 0 | 0 | d719b28665f3f9bdb52bfa53f0e6448a04c3cd04 | 13,259 | Boxanizer | MIT License |
src/main/java/challenges/cracking_coding_interview/object_oriented_design/othello/Piece.kt | MalekKamel | 342,007,920 | false | {"Kotlin": 835312} | package challenges.cracking_coding_interview.object_oriented_design.othello
class Piece(var color: Color) {
fun flip() {
color = if (color == Color.Black) {
Color.White
} else {
Color.Black
}
}
} | 0 | Kotlin | 0 | 1 | 3282a5d6f1906582a8194ff3c8cf3b7530c7a16d | 252 | ProblemSolving | Apache License 2.0 |
app/src/main/java/com/example/vigilanceai/facedetection/FaceDetectionActivity.kt | muhammad-mobeen | 648,892,682 | false | null | package com.example.vigilanceai.facedetection
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.vigilanceai.R
class FaceDetectionActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setCon... | 0 | Kotlin | 0 | 0 | 63278d674530a6872211f250c942511e4890ffe3 | 370 | Vigilance-AI-App | MIT License |
app/src/main/java/ru/llxodz/pizzahouse/api/data/ApiMenuCategory.kt | llxodz | 412,611,087 | false | null | package ru.llxodz.pizzahouse.api.data
import java.net.URL
data class ApiMenuCategory(
var id: Int,
var name: String,
var image: Int
)
val ApiMenuCategory.url: URL
get() {
return URL(this.id.toString())
} | 0 | Kotlin | 0 | 0 | a8f170996f8308c649aad6b065ad18b30c5306be | 234 | PizzaHouseAndroid | Apache License 2.0 |
main/java/com/example/login_page/localData/ReservationDatabase.kt | Wail-Sr | 547,840,618 | false | {"Kotlin": 72508} | package com.example.login_page.localData
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Reserv::class], version = 1, exportSchema = false)
abstract class ReservationDatabase: RoomDatabase() {
abstract fun reservation... | 0 | Kotlin | 0 | 0 | 3b624307a86536586cdd06a9804ce0e3bb84801a | 1,040 | GARRU | MIT License |
aTalk/src/main/java/net/java/sip/communicator/impl/provdisc/mdns/ProvisioningDiscoveryServiceMDNSImpl.kt | cmeng-git | 704,328,019 | false | {"Kotlin": 14364024, "Java": 2718723, "C": 275021, "Shell": 49203, "Makefile": 28273, "C++": 13642, "HTML": 7793, "CSS": 3127, "JavaScript": 2758, "AIDL": 375} | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* 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 requi... | 0 | Kotlin | 0 | 0 | 90e83dd8c054a5f480d03e8b0b1912b41bd79b0c | 2,893 | atalk-hmos_kotlin | Apache License 2.0 |
presentation/src/main/java/com/zlagi/presentation/viewmodel/blog/feed/FeedContract.kt | Zlagi | 475,379,557 | false | {"Kotlin": 496613} | package com.zlagi.presentation.viewmodel.blog.feed
import com.zlagi.presentation.model.BlogPresentationModel
class FeedContract {
sealed class FeedEvent {
object Initialization : FeedEvent()
object NextPage : FeedEvent()
object SwipeRefresh : FeedEvent()
object CreateBlogButtonCli... | 0 | Kotlin | 12 | 63 | dffd07e8533c285bb5ca9de4e9676985aa0e87cc | 770 | Blogfy | Apache License 2.0 |
tooling/compose-intellij-platform/sample/plugin-2/src/main/kotlin/org/jetbrains/compose/intellij/platform/sample/ComposeDemoAction2.kt | JetBrains | 293,498,508 | false | null | package org.jetbrains.compose.intellij.platform.sample
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.intellij.openapi.actionSys... | 668 | Kotlin | 645 | 9,090 | 97266a0ac8c0d7a8ad8d19ead1c925751a00ff1c | 948 | compose-jb | Apache License 2.0 |
features/dd-sdk-android-session-replay/src/main/kotlin/com/datadog/android/sessionreplay/internal/recorder/mapper/CheckedTextViewMapper.kt | DataDog | 219,536,756 | false | {"Kotlin": 7473590, "Java": 236752, "C": 79252, "Shell": 63057, "C++": 31838, "Python": 18744, "CMake": 2676} | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sessionreplay.internal.recorder.mapper
i... | 54 | Kotlin | 51 | 130 | c925c5207edd70301f93dda432e3caba14e1a8d2 | 2,444 | dd-sdk-android | Apache License 2.0 |
src/main/kotlin/com/between_freedom_and_space/mono_backend/posts/internal/tags/services/InteractionPostToTagService.kt | Between-Freedom-and-Space | 453,797,438 | false | {"Kotlin": 614504, "HTML": 8733, "Dockerfile": 503, "Shell": 166} | package com.between_freedom_and_space.mono_backend.posts.internal.tags.services
import com.between_freedom_and_space.mono_backend.posts.internal.tags.services.model.BaseTagModel
import com.between_freedom_and_space.mono_backend.posts.internal.tags.services.model.TagId
interface InteractionPostToTagService {
fun ... | 0 | Kotlin | 0 | 1 | 812d8257e455e7d5b1d0c703a66b55ed2e1dcd35 | 455 | Mono-Backend | Apache License 2.0 |
layout-inspector/src/com/android/tools/idea/layoutinspector/pipeline/foregroundprocessdetection/DeviceModel.kt | JetBrains | 60,701,247 | false | {"Kotlin": 43855938, "Java": 36698280, "HTML": 1216565, "Starlark": 735324, "C++": 216476, "Python": 101594, "C": 71515, "Lex": 66026, "NSIS": 58516, "AIDL": 32502, "Shell": 28591, "CMake": 21034, "JavaScript": 18437, "Batchfile": 7774, "Smali": 7580, "RenderScript": 4411, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2022 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... | 2 | Kotlin | 230 | 876 | 9c0a89784cca3c01ab99cf251b71a26cdb87cc47 | 3,602 | android | Apache License 2.0 |
android/app/src/main/kotlin/de/julianassmann/flutter_gauges/MainActivity.kt | JulianAssmann | 378,205,254 | false | null | package de.julianassmann.flutter_gauges
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 5 | Dart | 10 | 11 | e405ae45be634d6940876e77bcafa86d987fe536 | 136 | flutter_gauges | MIT License |
retrofitfileuploadkit/src/main/java/com/dakshsemwal/retrofitfileuploadkit/FileUploadManagerProvider.kt | DAKSHSEMWAL | 714,609,390 | false | {"Kotlin": 49218} | package com.dakshsemwal.retrofitfileuploadkit
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
/**
* A module for providing the FileUploadManager instance.
*
* This module uses the Hilt library to set up dependen... | 0 | Kotlin | 0 | 0 | b943f3f893a4046cdc9818f0dabca288584f8c5b | 1,966 | RetrofitUploadKit | Apache License 2.0 |
networklib/src/main/java/com/brins/networklib/model/like/LikeMusicResult.kt | BrinsLee | 297,821,918 | false | null | package com.brins.networklib.model.like
/**
* Created by lipeilin
* on 2020/10/21
*/
class LikeMusicResult {
var playlistId = ""
var code = 0
} | 0 | Kotlin | 0 | 1 | 37cbd7448ebfc23475c00462018f6d70c74631e1 | 157 | Music | Apache License 2.0 |
app/src/main/java/com/ebnrdwan/task/data/sources/articles/ArticleDataSource.kt | ebnrdwan | 236,335,124 | false | null | package com.ebnrdwan.task.data.sources.articles
import com.ebnrdwan.task.BuildConfig
import com.ebnrdwan.task.data.dto.articles.ArticlesEntity
import com.ebnrdwan.task.data.service.ArticlesApi
import io.reactivex.Single
open class ArticleDataSource constructor(private val service: ArticlesApi) :
IArticlesDataSour... | 0 | Kotlin | 1 | 1 | 9090b4b9a1f6d6ee7541b86bc9610e97bad403fa | 449 | NY-Times | Apache License 2.0 |
browser-kotlin/src/main/kotlin/js/intl/DisplayNamesFallback.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
)
package js.intl
// language=JavaScript
@JsName("""(/*union*/{code: 'code', none: 'none'}/*union*/)""")
external enum class DisplayNamesFallback {
code,
none,
;
}
| 0 | Kotlin | 5 | 18 | 83aa7866b2353ee7daf1521611bf7f91ea8b0a9b | 275 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/olucasmoro/movieapp/feature_watchlist/presentation/WatchListFragment.kt | olucasmoro | 345,404,400 | false | null | package com.olucasmoro.movieapp.feature_watchlist.presentation
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.GridLayoutMan... | 0 | Kotlin | 0 | 4 | a298e7db82645f29b2f20bb6017b95336e5dc825 | 2,763 | movie-app | The Unlicense |
app/src/main/java/com/tw/auction_demo/net/RemoteBFFService.kt | moushao | 643,272,418 | false | null | package com.tw.auction_demo.net
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonObject
import okhttp3.Interceptor
import okhttp3.MediaType
import okhttp3.... | 0 | Kotlin | 0 | 0 | 24f832ce1b74c538dc730e0b1a3632d0cc1f0c6b | 2,765 | dark-horse | Apache License 2.0 |
spring-pulsar-test/src/test/kotlin/com/intuit/pulsar/tests/consumers/SharedConsumer.kt | intuit | 577,001,055 | false | null | package com.intuit.pulsar.tests.consumers
import com.intuit.pulsar.tests.utils.TestConstants
import com.intuit.spring.pulsar.client.annotations.consumer.PulsarConsumer
import com.intuit.spring.pulsar.client.annotations.consumer.Subscription
import com.intuit.spring.pulsar.client.annotations.consumer.Topic
import org.... | 8 | Kotlin | 4 | 9 | fff7f2041724ceeb688a15f39df5b7130a7f598a | 947 | spring-pulsar | MIT License |
app/src/main/java/com/unlim/lib/ActivityMain.kt | cyxm | 724,647,363 | false | {"Kotlin": 4078} | package com.unlim.lib
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatTextView
import androidx.recyclerview.widget.LinearLayoutMana... | 0 | Kotlin | 0 | 0 | ba6307942807c8f341d41df702426d16fbca0f8f | 3,088 | AndroidLib | Apache License 2.0 |
app/src/main/java/aodev/blue/rxsandbox/model/operator/observable/filter/ObservableDistinctUntilChanged.kt | esnaultdev | 146,037,889 | false | null | package aodev.blue.rxsandbox.model.operator.observable.filter
import aodev.blue.rxsandbox.model.Config
import aodev.blue.rxsandbox.model.ObservableT
import aodev.blue.rxsandbox.model.operator.Operator
class ObservableDistinctUntilChanged<T : Any> : Operator {
fun apply(input: ObservableT<T>): ObservableT<T> {
... | 0 | Kotlin | 0 | 1 | 57579e059dca90ea2b10e818a478ce391c1fd07f | 1,096 | RxSandbox | MIT License |
media/src/main/java/com/cysion/media/net/BaseResp.kt | chenyao1208 | 166,728,303 | true | {"Kotlin": 132334, "Java": 20717} | package com.cysion.media.net
import com.cysion.ktbox.net.ApiException
import io.reactivex.ObservableTransformer
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.functions.Function
import io.reactivex.schedulers.Schedulers
/**
* 数据基类;若字段不一致,可仿照再写一个
*/
data class BaseResp<T>(val code: Int,... | 0 | Kotlin | 0 | 0 | 0c85f2725447802b749c249d98b09a628e1901ae | 998 | KtDevBox | Apache License 2.0 |
core/src/main/kotlin/de/darkatra/bfme2/Vector3.kt | DarkAtra | 325,887,805 | false | {"Kotlin": 263823} | package de.darkatra.bfme2
data class Vector3(
val x: Float,
val y: Float,
val z: Float
)
| 2 | Kotlin | 0 | 3 | e602ba2bfdff6d627860d20e2093d483de055772 | 102 | bfme2-modding-utils | MIT License |
parcelable/src/notParcelableMain/kotlin/com/arkivanov/essenty/parcelable/ParcelReader.kt | arkivanov | 385,374,863 | false | {"Kotlin": 178160} | package com.arkivanov.essenty.parcelable
import com.arkivanov.essenty.utils.internal.ExperimentalEssentyApi
import com.arkivanov.essenty.utils.internal.PARCELABLE_DEPRECATED_MESSAGE
import kotlin.reflect.KClass
/**
* Allows serializing [Parcelable] classes when implementing custom parcelers using [CommonParceler].
... | 3 | Kotlin | 11 | 342 | c625395cdf916b831f66d57ad2c7fa11f65bb4ae | 1,648 | Essenty | Apache License 2.0 |
lib_common/src/main/java/com/app/lib_common/util/StatusBarUtil.kt | ldk123456 | 648,167,522 | false | null | package com.app.lib_common.util
import android.graphics.Color
import android.view.View
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
object StatusBarUtil {
fun fitSystemBar(activity: AppCompatActivity) {
val window = activity.window
val decorView = window?.decor... | 0 | Kotlin | 0 | 0 | 5631f4b6d681374dc7d8fccc3574f9cca4795476 | 736 | JetpackApp | Apache License 2.0 |
t-tasks/src/main/java/com/teo/ttasks/ui/views/TasksContainerView.kt | teobaranga | 28,672,362 | false | null | package com.teo.ttasks.ui.views
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.constraintlayout.widget.... | 1 | Kotlin | 3 | 7 | 04da2bc5ae76a165f9ebff00093c048923f87bf2 | 4,534 | T-Tasks | Apache License 2.0 |
composeApp/src/commonMain/kotlin/presentation/AppTheme.kt | ParkJong-Hun | 794,024,590 | false | {"Kotlin": 55052, "Swift": 594} | package presentation
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import presentation.navigation.AppNavigator
import presentation.navigation.LocalNavigator
@Composable
fun AppTheme(
content: @Composable () -> Uni... | 6 | Kotlin | 0 | 1 | 6241d3ba5591ca8ff6e784630f4b0ffb8fe98a26 | 476 | compose-multiplatform-test-airfield | Apache License 2.0 |
src/191/main/kotlin/org/rust/ide/actions/runAnything/RunAnythingCargoItem.kt | lundibundi | 196,070,202 | true | {"Kotlin": 4655671, "Rust": 103690, "Python": 48426, "Lex": 20296, "HTML": 13447, "Shell": 760, "Java": 586, "RenderScript": 318} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.actions.runAnything
import java.awt.Component
import javax.swing.Icon
class RunAnythingCargoItem(command: String, icon: Icon) : RunAnythingCargoItemBase(command, icon) {
override fun cr... | 0 | Kotlin | 0 | 1 | 51e8843a408612d6a89661f1aa7fb9ae2042f3ba | 533 | intellij-rust | MIT License |
src/main/kotlin/me/melijn/melijnbot/commands/music/PrivateGainProfileCommand.kt | ToxicMushroom | 107,187,088 | false | null | package me.melijn.melijnbot.commands.music
const val PRIVATE_GAIN_PROFILES_LIMIT = 3
const val PREMIUM_PRIVATE_GAIN_PROFILES_LIMIT = 30
const val PRIVATE_GAIN_PROFILES_LIMIT_PATH = "premium.feature.privategainprofiles.limit"
const val PRIVATE_GAIN_PROFILES_PREMIUM_LIMIT_PATH = "premium.feature.privategainprofiles.prem... | 5 | Kotlin | 22 | 80 | 01107bbaad0e343d770b1e4124a5a9873b1bb5bd | 562 | Melijn | MIT License |
app/src/main/java/com/feelsokman/coroutineplayground/di/module/AppModule.kt | CostaFot | 234,777,998 | false | null | package com.feelsokman.coroutineplayground.di.module
import android.app.Application
import android.content.Context
import android.content.res.Resources
import com.feelsokman.coroutineplayground.BuildConfig
import com.feelsokman.coroutineplayground.coroutine.DefaultDispatcherProvider
import com.feelsokman.coroutineplay... | 0 | Kotlin | 0 | 0 | 2f6ec7a768c57afd7c3b6e27d9a33b25b5f96c90 | 1,521 | coroutine-playground | Apache License 2.0 |
demo-app-shared/src/main/java/ru/ar2code/demo_app_shared/GreetingResult.kt | ar2code | 431,859,450 | false | null | package ru.ar2code.demo_app_shared
sealed class GreetingResult {
data class GreetingFieldInvalid(val error: String) : GreetingResult()
data class NameFieldInvalid(val error: String) : GreetingResult()
data class Hello(val greeting: String, val name: String) : GreetingResult()
} | 0 | Kotlin | 0 | 0 | 6c0bca24dd0576088b0907919d67b8e9c4508b5f | 291 | mvilite-android-demo | MIT License |
nebulosa-imaging/src/main/kotlin/nebulosa/imaging/algorithms/Debayer.kt | tiagohm | 568,578,345 | false | null | package nebulosa.imaging.algorithms
import nebulosa.imaging.Image
class Debayer(val pattern: CfaPattern = CfaPattern.GRGB) : TransformAlgorithm {
private var cachedRed = FloatArray(0) // Prevent clone image.
override fun transform(source: Image): Image {
cachedRed = FloatArray(source.width * source.... | 0 | Kotlin | 0 | 0 | 57780ec339ff4e3ec8d1965b7ddef7879861a814 | 3,755 | nebulosa | MIT License |
app/src/main/java/com/goldze/mvvmhabit/aioui/test/content/TestContentActivity.kt | fengao1004 | 505,038,355 | false | {"Java Properties": 2, "Gradle": 6, "Shell": 1, "Markdown": 2, "Git Attributes": 1, "Batchfile": 1, "Text": 4, "Ignore List": 4, "Proguard": 3, "Java": 214, "XML": 141, "Kotlin": 158} | package com.goldze.mvvmhabit.aioui.test.content
import android.os.Bundle
import android.util.Log
import com.goldze.mvvmhabit.BR
import com.goldze.mvvmhabit.R
import com.goldze.mvvmhabit.aioui.test.bean.FunnyTestBean
import com.goldze.mvvmhabit.aioui.test.bean.ScaDetailsResponseBean
import com.goldze.mvvmhabit.databind... | 1 | null | 1 | 1 | 1099bd7bfcf8a81d545567ae875b3528aa5fb1cd | 1,862 | AIO | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/drive/opmode/TrajAuto.kt | Petelax | 671,336,777 | false | {"Gradle": 6, "Java Properties": 1, "Shell": 1, "Text": 4, "Ignore List": 2, "Batchfile": 1, "Markdown": 7, "INI": 1, "XML": 20, "Java": 67, "Kotlin": 66} | package org.firstinspires.ftc.teamcode.drive.opmode
import com.acmerobotics.dashboard.FtcDashboard
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry
import com.acmerobotics.dashboard.telemetry.TelemetryPacket
import com.arcrobotics.ftclib.command.CommandOpMode
import com.arcrobotics.ftclib.command.InstantC... | 0 | Java | 0 | 0 | a66accb94638fb15c099bf5a86a2938c348881b9 | 4,268 | FTC16413-CenterStage | BSD 3-Clause Clear License |
api-editor/backend/src/test/kotlin/com/larsreimann/apiEditor/server/ApplicationTest.kt | Safe-DS | 365,253,624 | false | null | package com.larsreimann.apiEditor.server
import com.larsreimann.apiEditor.model.BoundaryAnnotation
import com.larsreimann.apiEditor.model.CalledAfterAnnotation
import com.larsreimann.apiEditor.model.ComparisonOperator
import com.larsreimann.apiEditor.model.ConstantAnnotation
import com.larsreimann.apiEditor.model.Defa... | 31 | TypeScript | 1 | 11 | 73c541b15fad2e67a0726a1b62c1f55f6e970a56 | 7,239 | API-Editor | MIT License |
app/src/main/java/com/example/booklibrary/splashscreen/onboarding/screen/ThirdScreen.kt | NoBody313 | 573,783,064 | false | {"Kotlin": 37355} | package com.example.booklibrary.splashscreen.onboarding.screen
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNav... | 0 | Kotlin | 0 | 2 | 113e96b6045aaac927bc0b7e1917603409c04550 | 1,204 | Book_Library | MIT License |
app/src/main/java/com/penpab/postsanitizer/dto/PostItem.kt | Acekhing | 525,073,312 | false | null | package com.penpab.postsanitizer.dto
data class PostItem(
val _links: Links?,
val author: Int?,
val categories: List<Int>?,
val comment_status: String?,
val content: Content?,
val date: String?,
val date_gmt: String?,
val excerpt: Excerpt?,
val featured_media: Int?,
val format: ... | 0 | Kotlin | 0 | 0 | a8394d9684148a1f99706515f144cccd4cd55b82 | 748 | WorkManager | Apache License 2.0 |
packages/canvas/src-native/canvas-android/canvas/src/main/java/org/nativescript/canvas/GC.kt | NativeScript | 293,639,798 | false | {"C++": 4259365, "JavaScript": 3250075, "Rust": 1485388, "TypeScript": 1321578, "C": 788864, "Kotlin": 138438, "Swift": 98341, "Objective-C": 67481, "Java": 25041, "Shell": 21984, "PLSQL": 12630, "Vue": 9098, "CMake": 7562, "Ruby": 4922, "SCSS": 3202, "HTML": 2271, "Objective-C++": 2078, "CSS": 1564, "Python": 1140} | package org.nativescript.canvas
import java.lang.ref.PhantomReference
import java.lang.ref.ReferenceQueue
import java.nio.ByteBuffer
import java.util.concurrent.Executors
import java.util.concurrent.atomic.AtomicBoolean
class GC {
interface Object {
fun dispose()
}
class BufferWrapper(private val nativePtr: Lo... | 21 | C++ | 18 | 88 | 5b3672d275a0f14eee68257352f8141c1faebc77 | 1,367 | canvas | Apache License 2.0 |
backend/data/src/main/kotlin/io/tolgee/service/export/ExportService.kt | tolgee | 303,766,501 | false | null | package io.tolgee.service.export
import io.tolgee.constants.Message
import io.tolgee.dtos.request.export.ExportParams
import io.tolgee.exceptions.NotFoundException
import io.tolgee.model.Language
import io.tolgee.service.export.dataProvider.ExportDataProvider
import io.tolgee.service.export.dataProvider.ExportTranslat... | 48 | null | 8 | 666 | 38c1064783f3ec5d60d0502ec0420698395af539 | 2,122 | tolgee-platform | Apache License 2.0 |
buildSrc/src/main/kotlin/korlibs/korge/gradle/util/NamedDomainObjectContainerExt.kt | korlibs | 80,095,683 | false | {"Kotlin": 4210038, "C": 105670, "C++": 20878, "HTML": 3853, "Swift": 1371, "JavaScript": 1068, "Shell": 439, "CMake": 202, "Batchfile": 41, "CSS": 33} | package korlibs.korge.gradle.util
import org.gradle.api.Action
import org.gradle.api.NamedDomainObjectContainer
fun <T> NamedDomainObjectContainer<T>.createOnce(name: String, configureAction: T.() -> Unit): T {
val item = findByName(name)
if (item != null) return item
return create(name, configureAction)
... | 464 | Kotlin | 123 | 2,497 | 1a565007ab748e00a4d602fcd78f7d4032afaf0b | 322 | korge | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.