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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shared/src/commonMain/kotlin/yunext/kotlin/ui/BaseVM.kt | zeeeeej | 859,714,832 | false | {"Kotlin": 370908, "Swift": 621, "HTML": 335, "CSS": 102} | package yunext.kotlin.ui
import kotlinx.coroutines.CoroutineScope
@Deprecated("delete")
expect open class PlatformViewModel() {
protected val scope:CoroutineScope
protected open fun onCleared()
}
//abstract class BaseVM {
// protected val vmScope =
// CoroutineScope(Dispatchers.Main.immediate + Su... | 0 | Kotlin | 0 | 0 | 23c421596f1aba01b9ee84d820c425928df8aac1 | 447 | HadlinksKMP | Apache License 2.0 |
src/main/kotlin/com/beside/daldal/domain/member/dto/ProfileUpdateDTO.kt | daldal-nimble | 618,776,701 | false | null | package com.beside.daldal.domain.member.dto
import com.beside.daldal.domain.member.entity.Gender
class ProfileUpdateDTO (
val username: String?,
val nickname: String?,
var gender: Gender,
) | 0 | Kotlin | 0 | 3 | b4bc82556bc3309e2136bca31c521ee28d5f6839 | 203 | Nimble | Apache License 2.0 |
src/main/kotlin/io/astralforge/astraltech/tile/ItemCollectorTile.kt | emmachase | 468,194,301 | false | null | package io.astralforge.astraltech.tile
import io.astralforge.astralitems.AstralItems
import io.astralforge.astralitems.block.tile.*
import io.astralforge.astraltech.AstralTech
import org.bukkit.*
import org.bukkit.Registry.MATERIAL
import org.bukkit.block.BlockFace
import org.bukkit.block.Container
import org.bukkit.e... | 0 | Kotlin | 0 | 1 | 15dd9e5863d42af1ccfd164426554ae41cf2854d | 5,305 | AstralTech | MIT License |
twitlin/src/common/main/kotlin/com/sorrowblue/twitlin/v2/users/response/LikesResponse.kt | SorrowBlue | 278,215,181 | false | null | package com.sorrowblue.twitlin.v2.users.response
import kotlinx.serialization.Serializable
@Serializable
internal class LikesResponse(val data: Data) {
@Serializable
class Data(val liked: Boolean)
}
| 0 | Kotlin | 0 | 1 | a6f80a270cec89c91239837d590fe92ec869c4ff | 210 | Twitlin | MIT License |
composeApp/src/wasmJsMain/kotlin/main.kt | gasparaitisj | 788,473,219 | false | {"Kotlin": 164495, "Swift": 594, "HTML": 517} | import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.window.CanvasBasedWindow
import com.justas.weather.app.App
@OptIn(ExperimentalComposeUiApi::class)
fun main() {
CanvasBasedWindow(canvasElementId = "ComposeTarget") { App() }
}
| 0 | Kotlin | 0 | 0 | c3ab9a9391fe32a324d797531c822874aea399bc | 261 | weather-app | Apache License 2.0 |
legacy/src/release/java/com/phicdy/mycuration/data/repository/AdditionalSettingRepository.kt | phicdy | 24,188,186 | false | null | package com.phicdy.mycuration.data.repository
import com.phicdy.mycuration.domain.alarm.AlarmManagerTaskManager
import java.io.File
class AdditionalSettingRepository(
private val rssRepository: RssRepository,
private val alarmManagerTaskManager: AlarmManagerTaskManager
) : AdditionalSettingApi {
o... | 24 | Kotlin | 7 | 14 | 4e0b28c7b2e75fe7a1c8f6bc46dcb47218c72b7b | 534 | MyCuration | The Unlicense |
app/src/main/java/com/asynctaskcoffee/tinderlikecardstack/ui/calendar/CalendarModel.kt | AsynctaskCoffee | 319,157,503 | false | null | package com.asynctaskcoffee.tinderlikecardstack.ui.calendar
class CalendarModel(var month: String,var day: Int,var toDo: String,var dayName: String) | 1 | Kotlin | 1 | 17 | 641411ba04c6204058c9fbb624fef8ee392a02f7 | 149 | TinderLikeCardStack | Apache License 2.0 |
src/main/kotlin/de/diekautz/federationserver/controller/socialapi/dto/DiscordTokenResponse.kt | DieKautz | 401,054,726 | false | null | package de.diekautz.federationserver.controller.socialapi.dto
import com.fasterxml.jackson.annotation.JsonProperty
data class DiscordTokenResponse(
@JsonProperty("access_token")
val accessToken: String,
@JsonProperty("token_type")
val tokenType: String,
@JsonProperty("expires_in")
val expire... | 0 | Kotlin | 0 | 0 | 5369792c7da820ee44660e794ee92dc7700b4313 | 449 | stellar-federation-server | MIT License |
app/src/main/java/de/inovex/pepper/intelligence/mlkit/ui/seeing/ImageAnalyzer.kt | SilviaSantano | 537,481,712 | false | {"Kotlin": 98970} | package de.inovex.pepper.intelligence.mlkit.ui.seeing
import android.graphics.Bitmap
import com.google.mlkit.common.model.LocalModel
import com.google.mlkit.vision.common.InputImage
import com.google.mlkit.vision.objects.DetectedObject
import com.google.mlkit.vision.objects.ObjectDetection
import com.google.mlkit.visi... | 0 | Kotlin | 1 | 4 | 1eeff9173aa2b3cf9445f398fd6abda8804cdba9 | 1,975 | Pepper-and-MLKit | MIT License |
forespoersel-mottatt/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/forespoerselmottatt/ForespoerselMottattRiver.kt | navikt | 495,713,363 | false | {"Kotlin": 1246470, "PLpgSQL": 153, "Dockerfile": 68} | package no.nav.helsearbeidsgiver.inntektsmelding.forespoerselmottatt
import kotlinx.serialization.builtins.MapSerializer
import kotlinx.serialization.builtins.serializer
import kotlinx.serialization.json.JsonElement
import no.nav.helsearbeidsgiver.felles.EventName
import no.nav.helsearbeidsgiver.felles.Key
import no.n... | 10 | Kotlin | 0 | 2 | 7078ce969391dd749960ab7f364f700e7eb31cfe | 3,633 | helsearbeidsgiver-inntektsmelding | MIT License |
ui/components/src/main/java/org/kafka/ui/components/item/FavoriteItem.kt | vipulyaara | 612,950,214 | false | null | package org.kafka.ui.components.item
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspec... | 4 | Kotlin | 3 | 14 | 9e62eef297264b17e7c300edb2c57e261e2577b3 | 2,263 | Kafka | Apache License 2.0 |
buildSrc/src/main/kotlin/com/f1db/plugin/schema/RaceDataType.kt | f1db | 403,954,428 | false | {"Kotlin": 192082} | package com.f1db.plugin.schema
/**
* The race data types.
*
* @author Marcel Overdijk
*/
enum class RaceDataType {
PRE_QUALIFYING_RESULT,
FREE_PRACTICE_1_RESULT,
FREE_PRACTICE_2_RESULT,
FREE_PRACTICE_3_RESULT,
FREE_PRACTICE_4_RESULT,
QUALIFYING_1_RESULT,
QUALIFYING_2_RESULT,
QUALIF... | 6 | Kotlin | 16 | 99 | 1cc0886f5c9821b6f1c75e40a4aa770b9c16269a | 551 | f1db | Creative Commons Attribution 4.0 International |
src/main/kotlin/net/australmc/economy/utils/PlaceholderReplacer.kt | AustralMC | 339,610,012 | false | null | package net.australmc.economy.utils
import org.apache.commons.text.StringSubstitutor
private const val PLACEHOLDER_PREFIX = "{"
private const val PLACEHOLDER_SUFFIX = "}"
fun replacePlaceholders(template: String, placeholders: Map<String, String>): String =
StringSubstitutor.replace(template, placeholders, P... | 0 | Kotlin | 0 | 0 | 6cd03fa3f7d46da512bac2daefe64acf34118685 | 358 | AustralEco | MIT License |
sample/src/main/java/co/netguru/android/chatandroll/common/extension/RxFirebaseExt.kt | netguru | 98,288,528 | false | null | package co.netguru.android.chatandroll.common.extension
import co.netguru.android.chatandroll.common.util.RxUtils
import com.google.firebase.database.*
import io.reactivex.BackpressureStrategy
import io.reactivex.Flowable
import io.reactivex.Maybe
import io.reactivex.Single
interface ChildEvent<out T> {
val data:... | 4 | Kotlin | 2 | 300 | e5790fec71db013aac00dac2faf15d87fc46b80a | 4,941 | videochatguru-android | Apache License 2.0 |
app/src/main/java/dev/ihsan/upgur/ui/login/LoginActivity.kt | xiprox | 179,170,249 | false | null | package dev.ihsan.upgur.ui.login
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity;
import dev.ihsan.upgur.R
import dev.ihsan.upgur.data.config.Config
import kotlinx.android.synthetic.main.activity_login.*
import okhttp3.HttpUrl
class LoginAc... | 1 | null | 3 | 14 | 93e19054295ebe0c1551c70ba4d82c5b90bdb299 | 1,126 | Upgur | The Unlicense |
src/Day06.kt | cisimon7 | 573,872,773 | false | {"Kotlin": 41406} | fun main() {
fun posUniqueSequence(signal: String, count: Int): Int {
val idx = signal.windowedSequence(count, 1).indexOfFirst { it.toSet().size == count }
return idx + count
}
fun part1(signals: List<String>): List<Int> {
return signals.map { signal -> posUniqueSequence(signal, 4) ... | 0 | Kotlin | 0 | 0 | 29f9cb46955c0f371908996cc729742dc0387017 | 820 | aoc-2022 | Apache License 2.0 |
features/discovery/src/main/kotlin/feature/playground/product/hunt/posts/data/DiscoverDataSource.kt | shawnthye | 420,680,965 | false | {"Kotlin": 416438} | package feature.playground.product.hunt.posts.data
import api.product.hunt.DiscoveryQuery
import api.product.hunt.ProductHuntGraphQL
import app.playground.store.database.entities.Discovery
import app.playground.store.mappers.DiscoveryQueryToDiscovery
import com.apollographql.apollo3.api.Optional.Companion.presentIfNot... | 0 | Kotlin | 0 | 0 | 15df4f3acc202e88f2de0e62549e6e5386440c9e | 933 | playground | MIT License |
piano-analytics/src/main/java/io/piano/android/analytics/PrefsStorage.kt | at-internet | 477,609,545 | false | null | package io.piano.android.analytics
import android.content.Context
import androidx.annotation.RestrictTo
import io.piano.android.analytics.model.PrivacyStorageFeature
import timber.log.Timber
@RestrictTo(RestrictTo.Scope.LIBRARY)
internal class PrefsStorage(
context: Context,
) {
private val prefs = context.ge... | 1 | null | 5 | 4 | bffb05032bb43e7b0b8e4546c198a61f31ae4943 | 5,959 | piano-analytics-android | MIT License |
app/src/main/java/com/rmoralf/marveltest/domain/usecases/database/GetAllFavedCharacters.kt | rmoralf | 515,890,655 | false | {"Kotlin": 81685} | package com.rmoralf.marveltest.domain.usecases.database
import com.rmoralf.marveltest.domain.repository.DatabaseRepository
class GetAllFavedCharacters(
private val repository: DatabaseRepository
) {
operator fun invoke() = repository.getAllFavedCharacters()
} | 0 | Kotlin | 0 | 0 | f0872db0656d302af8bbc011e654309e1b252bca | 269 | marvel-test | Apache License 2.0 |
base-components/frame/src/main/kotlin/com/whatever/frame/base/BaseViewModel.kt | wudaocs | 630,740,138 | false | {"Kotlin": 78946} | package com.whatever.frame.base
import androidx.lifecycle.ViewModel
/**
* viewModel 基类
*/
abstract class BaseViewModel : ViewModel(){
override fun onCleared() {
super.onCleared()
}
} | 0 | Kotlin | 0 | 0 | f956a7dbd32e0daf3039171f469f2f19c0ecc7e7 | 206 | PikaQ | Apache License 2.0 |
common-ui-view/src/main/java/com/cookery/CookeryActivity.kt | skorudzhiev | 356,818,469 | false | null | package com.cookery
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.FragmentActivity
abstract class CookeryActivity : FragmentActivity() {
override fun onPostCreate(savedInstanceState: Bundle?) {
super.onPostCreate(savedInstanceState)
... | 3 | Kotlin | 0 | 4 | 625f670fb8eb08ff93b2a57935478387d55c0054 | 810 | Cookery | Apache License 2.0 |
app/src/main/java/com/udacity/shoestore/features/shoeList/view/ShoeListFragment.kt | AliElDerawi | 860,950,282 | false | {"Kotlin": 60231} | package com.udacity.shoestore.features.shoeList.view
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Frag... | 0 | Kotlin | 0 | 0 | ac650591113cbe53be029c1d0fcc935165fd56b6 | 3,783 | ShoeStore | Apache License 2.0 |
vortex/src/main/java/com/yazan98/vortex/base/view/VortexRxView.kt | TrendingTechnology | 193,901,833 | false | null | package com.yazan98.vortex.base.view
import com.yazan98.vortex.base.state.State
/**
* Copyright (C) 2019 <NAME>
* Licensed under the Apache License, Version 2.0
*
* Created By : <NAME>
* Date : 6/19/2019
* Time : 3:48 PM
*/
interface VortexRxView : VortexView {
fun initScreen()
fun onNewState(newSta... | 0 | Kotlin | 0 | 0 | fd7782ed0038661bc7004fd0782978c1988a463e | 334 | Vortex | Apache License 2.0 |
src/main/kotlin/com/cppcxy/ide/lsp/SumnekoServer.kt | CppCXY | 563,767,968 | false | {"Kotlin": 111984, "Java": 61589, "Lex": 11687} | package com.cppcxy.ide.lsp
import com.intellij.openapi.project.Project
import com.redhat.devtools.lsp4ij.server.ProcessStreamConnectionProvider
class SumnekoServer(val project: Project) : ProcessStreamConnectionProvider() {
init {
if (!SumnekoAdaptor.canExecute) {
SumnekoAdaptor.addExecutePer... | 2 | Kotlin | 1 | 11 | 95ac2e2d4306e8647d81d7b45814a7ee0f843fe9 | 485 | Intellij-SumnekoLua | MIT License |
Corona-Warn-App/src/main/java/be/sciensano/coronalert/ui/information/InformationDataTransferFragment.kt | covid-be-app | 281,650,940 | false | null | package be.sciensano.coronalert.ui.information
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.accessibility.AccessibilityEvent
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import de.rki.coro... | 13 | Kotlin | 10 | 55 | d556b0b9f29e76295b59be2a1ba89bc4cf6ec33b | 2,299 | cwa-app-android | Apache License 2.0 |
app/src/main/java/ca/grantelliott/audiogeneapp/ui/genetics/GeneticsViewModel.kt | grelliott | 291,516,382 | false | null | package ca.grantelliott.audiogeneapp.ui.genetics
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class GeneticsViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is genetics Fragment"
}
val... | 0 | Kotlin | 0 | 0 | 8300ca0a2981610dbbcefc3dd54b5adb9e86df6b | 353 | audiogene-app | MIT License |
app/src/main/java/ca/grantelliott/audiogeneapp/ui/genetics/GeneticsViewModel.kt | grelliott | 291,516,382 | false | null | package ca.grantelliott.audiogeneapp.ui.genetics
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class GeneticsViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is genetics Fragment"
}
val... | 0 | Kotlin | 0 | 0 | 8300ca0a2981610dbbcefc3dd54b5adb9e86df6b | 353 | audiogene-app | MIT License |
src/main/kotlin/databasemanager/database/info/InfoBackupDatabaseHandler.kt | BAC2-Graf-Rohatynski | 208,084,314 | false | null | package databasemanager.database.info
import apibuilder.slave.Slave
import databasemanager.database.Database
import databasemanager.database.info.interfaces.IInfoBackupDatabaseHandler
import enumstorage.database.DatabaseType
import enumstorage.slave.SlaveInformation
import org.json.JSONObject
import org.slf4j.Logger
i... | 0 | Kotlin | 0 | 0 | 4a79fab44480c8db5759c8bd6e5b12a056cbfe4a | 7,933 | DatabaseManager | MIT License |
friends/friends_domain/src/main/java/com/beomsu317/friends_domain/use_case/SortByPriorityUseCase.kt | beomsu317 | 485,776,806 | false | null | package com.beomsu317.friends_domain.use_case
import android.util.Log
import com.beomsu317.core.domain.model.Friend
import com.beomsu317.core.domain.model.UserFriend
import com.beomsu317.friends_domain.model.FriendWithPriority
class SortByPriorityUseCase {
suspend operator fun invoke(
userFriends: Set<Use... | 0 | Kotlin | 0 | 0 | 4ff38347196aaebb75d2729d62289bc717f14370 | 1,570 | private-chat-app | Apache License 2.0 |
src/main/kotlin/models/Revision.kt | joseluisgs | 471,640,136 | false | null | package models
import extensions.roundTo
import java.time.LocalDateTime
data class Revision(
val operador: Operador,
val lineas: MutableList<LineaRevision>
) {
val id: Int = ++contador
val total: Double
get() {
var miTotal = 0.0
for (linea in lineas) {
m... | 0 | Kotlin | 3 | 3 | 165825b0bf573bacb16c5b079fddc816aaad40c8 | 667 | Kotlin-MVC-ITV | MIT License |
shared/src/commonMain/kotlin/presentation/screens/main/taps/profile/ProfileViewModel.kt | BasemNasr | 710,329,067 | false | {"Kotlin": 148851, "Swift": 1050, "Ruby": 266, "Shell": 228} | package presentation.screens.main.taps.profile
import domain.core.AppDataStore
import kotlinx.coroutines.async
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import presentation.base.BaseViewModel
import presentation.base.BaseViewModel.AllStat... | 0 | Kotlin | 0 | 1 | e266d881de07f6771c6c59bf6daf2ceab2be0b42 | 1,277 | StoreKMP | Apache License 2.0 |
ui-core/src/main/java/com/deathsdoor/ui_core/compose/Settings.kt | Deaths-Door | 581,523,401 | false | null | package com.deathsdoor.ui_core.compose
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.deathsdoor.ui_core.compose.Switch as internalSwitch
import com.deathsdoor.ui_core.compose.TextInput as internalTextInput
abstract class Settings {
companion object {
... | 0 | Kotlin | 0 | 2 | f116b2c6398aa2d33a9ff605fa83ccaa22af9397 | 1,829 | settings-ui-kt | Apache License 2.0 |
vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/common/Mode.kt | alatushkin | 156,866,851 | false | null | package name.alatushkin.api.vk.generated.common
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonValue
enum class Mode(@JsonValue val jsonValue: String) {
DISABLED("0"), OPEN("1"), LIMITED("2");
override fun toString() = jsonValue
companion object {
... | 2 | Kotlin | 3 | 10 | 123bd61b24be70f9bbf044328b98a3901523cb1b | 470 | kotlin-vk-api | MIT License |
app/src/main/java/com/kaedenoki/moviecorner/helper/Const.kt | Kaede-No-Ki | 290,696,286 | false | null | package com.kaedenoki.moviecorner.helper
object Const {
const val ITEM_BANNER = 1
const val ITEM_TITLE = 2
const val ITEM_DATA = 3
const val HAWK_MODE = "mode"
const val MODE_ANIME = "anime"
const val MODE_SERIES = "series"
} | 8 | Kotlin | 8 | 43 | ea72dc71dfc43e41a6566428db69c139c474df6e | 251 | moviecorner-app | MIT License |
native_library/android/BatteryANE/app/src/main/java/com/tuarua/batteryane/BatteryReceiver.kt | tuarua | 127,338,817 | false | {"ActionScript": 31475, "Objective-C": 13498, "Kotlin": 12500, "Swift": 8353, "Shell": 7696, "Java": 3062, "Batchfile": 1171} | /*
* Copyright 2018 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 1 | ActionScript | 1 | 3 | 3555710b11b522eb5394a765307d45e36cdf6431 | 1,317 | Battery-ANE | Apache License 2.0 |
lib/src/main/java/com/tlz/addressselector/model/Name.kt | tomlezen | 96,728,953 | false | null | package com.tlz.addressselector.model
/**
*
* Created by Tomlezen.
* Date: 2017/7/10.
* Time: 11:54.
*/
open class Name(var name: String) | 0 | Kotlin | 0 | 0 | f3a3884223e8d298844d7d2ad218a7d11e713695 | 143 | AddressSelector | MIT License |
plugins/gradle/tooling-proxy/src/org/jetbrains/plugins/gradle/tooling/proxy/ProgressEventConverter.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.tooling.proxy
import org.gradle.tooling.Failure
import org.gradle.tooling.events.*
import org.gradle.tooling.events.task.*
import org.gradle.... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 4,380 | intellij-community | Apache License 2.0 |
attribouter/src/main/java/me/jfenn/attribouter/wedges/HeaderWedge.kt | fennifith | 124,246,346 | false | null | package me.jfenn.attribouter.wedges
import android.content.Context
import android.view.View
import android.widget.TextView
import me.jfenn.attribouter.R
import me.jfenn.attribouter.utils.ResourceUtils
open class HeaderWedge(private val text: String) : Wedge<HeaderWedge.ViewHolder>(R.layout.attribouter_item_header) {
... | 5 | null | 14 | 120 | bfa65610b55a1b88673a321dd3bdd9ac409cf6a0 | 698 | Attribouter | Apache License 2.0 |
components/views/src/main/java/io/horizontalsystems/views/SettingsViewDropdown.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.views
import android.content.Context
import android.util.AttributeSet
import android.widget.ImageView
import android.widget.TextView
import androidx.core.view.isVisible
class SettingsViewDropdown @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyl... | 136 | null | 219 | 402 | 5ce20e6e4e0f75a76496051ba6f78312bc641a51 | 1,599 | unstoppable-wallet-android | MIT License |
android-debuggers/src/com/android/tools/idea/sqlite/DatabaseInspectorTabProvider.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2020 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 | Java | 187 | 751 | 16d17317f2c44ec46e8cd2180faf9c349d381a06 | 4,677 | android | Apache License 2.0 |
playground/src/main/java/com/guet/flexbox/playground/model/Homepage.kt | jiankehtt | 240,469,855 | false | {"Java Properties": 4, "Gradle": 11, "Shell": 2, "Markdown": 2, "Batchfile": 2, "Text": 1, "Ignore List": 10, "Proguard": 5, "Java": 141, "Kotlin": 170, "XML": 47, "JSON": 17, "INI": 2, "JavaScript": 9, "HTML": 2, "CSS": 3} | package com.guet.flexbox.playground.model
import com.guet.flexbox.litho.TemplatePage
class Homepage(
val feed: List<TemplatePage>
//val introduction: Page
) | 1 | null | 1 | 1 | 79d4fe4191ae36689f58ce3c5b5d455d3e8b8bc8 | 174 | Gbox | Apache License 2.0 |
unity_life_android/UnityLife/app/src/main/java/com/example/unitylife/data/models/UserModel.kt | siiena25 | 505,861,165 | false | {"Java": 168626, "Kotlin": 106740, "Shell": 5603, "Procfile": 76} | package com.example.unitylife.data.models
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.Json
@Entity(tableName = "users")
data class UserModel(
@field:Json(name = "userid")
@PrimaryKey
val userId: Int,
@field:Json(name = "firstna... | 1 | null | 1 | 1 | 2cbbbe5648dd84548a8440fe2fe54bcf85d77f0c | 1,175 | unity-life | MIT License |
app/src/main/java/cn/archko/pdf/widgets/ListMoreView.kt | archko | 213,125,764 | false | {"Gradle": 6, "Diff": 1, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 2, "INI": 1, "Proguard": 4, "XML": 76, "Kotlin": 83, "Java": 82, "HTML": 3, "C": 2, "CMake": 1, "C++": 1} | package cn.archko.pdf.widgets
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import android.widget.ImageView
import android.widget.TextView
import cn.archko.mupd... | 0 | Java | 3 | 4 | 0248a50772a7c281104cf375c2ee641f88d4ab63 | 5,502 | AMupdf | Apache License 2.0 |
151004/Burbouski/appLab1/src/main/kotlin/com/github/hummel/dc/lab1/service/impl/IssueServiceImpl.kt | rinrisha | 793,718,783 | true | {"Markdown": 13, "Text": 10, "Ignore List": 133, "Maven POM": 167, "Shell": 52, "Batchfile": 49, "Java": 5175, "INI": 150, "XML": 426, "JSON": 460, "YAML": 132, "JSON with Comments": 4, "SQL": 18, "Microsoft Visual Studio Solution": 80, "Dockerfile": 59, "C#": 3959, "HTTP": 57, "Go Checksums": 2, "Go Module": 2, "Go": ... | package com.github.hummel.dc.lab1.service.impl
import com.github.hummel.dc.lab1.dto.request.IssueRequestTo
import com.github.hummel.dc.lab1.dto.request.IssueRequestToId
import com.github.hummel.dc.lab1.dto.response.IssueResponseTo
import com.github.hummel.dc.lab1.repository.IssuesRepository
import com.github.hummel.dc... | 0 | Java | 0 | 0 | cd2d48e9c6bbc2464b86be1116ec86cdce805bc5 | 1,592 | DC2024-01-27 | MIT License |
kotlin/src/katas/kotlin/util.kt | dkandalov | 2,517,870 | false | {"Roff": 9263219, "JavaScript": 1513061, "Kotlin": 836347, "Scala": 475843, "Java": 475579, "Groovy": 414833, "Haskell": 148306, "HTML": 112989, "Ruby": 87169, "Python": 35433, "Rust": 32693, "C": 31069, "Clojure": 23648, "Lua": 19599, "C#": 12576, "q": 11524, "Scheme": 10734, "CSS": 8639, "R": 7235, "Racket": 6875, "C... | package katas.kotlin
| 7 | Roff | 3 | 5 | 0f169804fae2984b1a78fc25da2d7157a8c7a7be | 22 | katas | The Unlicense |
nuget-feed/src/jetbrains/buildServer/nuget/feed/server/olingo/OlingoRequestHandler.kt | JetBrains | 2,046,399 | false | null | /*
* Copyright 2000-2017 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... | 13 | null | 11 | 41 | 4ef05119c182197a4e537edadec010b5fc70187b | 4,090 | teamcity-nuget-support | Apache License 2.0 |
embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/comms/delivery/NoopDeliveryService.kt | embrace-io | 704,537,857 | false | {"Kotlin": 3108474, "C": 189946, "Java": 179438, "C++": 13140, "CMake": 4188} | package io.embrace.android.embracesdk.comms.delivery
import io.embrace.android.embracesdk.internal.payload.Envelope
import io.embrace.android.embracesdk.internal.payload.LogPayload
import io.embrace.android.embracesdk.internal.utils.Provider
import io.embrace.android.embracesdk.ndk.NativeCrashService
import io.embrace... | 9 | Kotlin | 7 | 130 | 7ae6904f31de6d7d3e2b5ec5093f8abcd0ccf884 | 1,370 | embrace-android-sdk | Apache License 2.0 |
src/main/kotlin/com/rose/gateway/minecraft/server/Scheduler.kt | nicholasgrose | 377,028,896 | false | {"Kotlin": 261314} | package com.rose.gateway.minecraft.server
import com.rose.gateway.GatewayPlugin
import org.bukkit.Bukkit
import org.bukkit.scheduler.BukkitTask
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
/**
* Provides simple ways to schedule tasks to run on the Minecraft server
*/
object Sch... | 26 | Kotlin | 1 | 4 | 896a6e99b74c97128c74fd166b80c31d183fb36c | 793 | Gateway | MIT License |
app/src/main/java/com/cc/fairy/base/BaseFragment.kt | MidChen | 643,446,165 | false | null | package com.cc.fairy.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewbinding.ViewBinding
abstract class BaseFragment<VB: ViewBinding>: Fragment() {
private lateinit var _vb: VB
pr... | 0 | Kotlin | 0 | 0 | ba11e1676bee20a8acad556772434ce67bb950e7 | 645 | Fairy | Apache License 2.0 |
app/src/main/java/com/lomza/uitestsapp/GroceriesListAdapter.kt | lomza | 257,236,581 | false | null | package com.lomza.uitestsapp
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class GroceriesListAdapter(
private val groceriesArray: Array<String>,
private val onItemClick: (String) -> Unit) :
RecyclerView.Ada... | 0 | null | 3 | 6 | 92ee4a5f3d703b628012a56cbbfe13f3dd1bf800 | 1,012 | android-app-ui-tests-with-barista | Apache License 2.0 |
jupyter-lib/shared-compiler/src/main/kotlin/org/jetbrains/kotlinx/jupyter/repl/notebook/MutableDisplayContainer.kt | Kotlin | 63,066,291 | false | null | package org.jetbrains.kotlinx.jupyter.repl.notebook
import org.jetbrains.kotlinx.jupyter.api.DisplayContainer
import org.jetbrains.kotlinx.jupyter.api.DisplayResult
interface MutableDisplayContainer : DisplayContainer {
fun add(display: DisplayResultWrapper)
fun add(display: DisplayResult, cell: MutableCodeC... | 79 | null | 108 | 1,115 | 9ef5bf3ef682734c9d4be3244bfb0ecaf727ea66 | 518 | kotlin-jupyter | Apache License 2.0 |
change-theme-domain/src/commonMain/kotlin/io/github/ilyapavlovskii/kmm/change/theme/domain/usecase/impl/DefaultGetThemeStateUseCase.kt | IlyaPavlovskii | 599,354,905 | false | null | package io.github.ilyapavlovskii.kmm.change.theme.domain.usecase.impl
import io.github.ilyapavlovskii.kmm.change.theme.domain.model.Theme
import io.github.ilyapavlovskii.kmm.change.theme.domain.repository.ThemeRepository
import io.github.ilyapavlovskii.kmm.change.theme.domain.usecase.GetThemeStateUseCase
import kotlin... | 0 | Kotlin | 0 | 2 | 8bb0811b10abbdbc2f55df641077265b8185c9c8 | 537 | change-theme | Apache License 2.0 |
AndroidAnimationExample/app/src/main/java/com/velmurugan/androidanimationexample/MockInterceptor.kt | velmurugan-murugesan | 159,637,287 | false | null | package com.velmurugan.androidanimationexample
import okhttp3.Interceptor
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.Protocol
import okhttp3.Response
import okhttp3.ResponseBody.Companion.toResponseBody
import java.util.*
class MockInterceptor : Interceptor {
override fun intercept(chain:... | 1 | null | 1 | 6 | 8c2e8b2a0e8f33b5e8c0ea66890756e02577fa54 | 7,375 | AndriodSamples | Apache License 2.0 |
HttpUtils/src/main/java/com/zhangteng/httputils/fileload/upload/UploadManager.kt | DL-ZhangTeng | 532,975,876 | false | null | package com.zhangteng.httputils.fileload.upload
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.util.Log
import androidx.work.*
import com.zhangteng.httputils.http.HttpUtils
import com.zhangteng.utils.FileSliceUtils
import com.zhangteng.utils.IResponse
import com.zhangteng.u... | 0 | Kotlin | 0 | 4 | 6bb83cd42ba69e1d19d4ab28d65ddb775369e66f | 15,455 | HttpUtils | The Unlicense |
src/main/kotlin/com/fvlaenix/queemporium/commands/duplicate/UploadPicturesCommand.kt | fvlaenix | 800,867,249 | false | {"Kotlin": 92422, "Dockerfile": 350} | package com.fvlaenix.queemporium.commands.duplicate
import com.fvlaenix.queemporium.configuration.DatabaseConfiguration
import com.fvlaenix.queemporium.database.MessageData
import com.fvlaenix.queemporium.database.MessageDataConnector
import com.fvlaenix.queemporium.database.MessageDuplicateData
import com.fvlaenix.qu... | 1 | Kotlin | 0 | 0 | e056eb56ced2611f4c59cb1b81621d643cba5d69 | 2,429 | queemporium-bot | MIT License |
app/src/main/java/com/sunnyweather/myapplication4/WeatherService.kt | PEIYunan | 628,905,007 | false | null | package com.sunnyweather.myapplication4
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
interface WeatherService {
@GET("v2.5/${WeatherApplication.Token}/{lng},{lat}/realtime.json")
fun getRealtimeWeather(@Path("lng") lng: String, @Path("lat") lat: String):
Call<Realtime... | 0 | Kotlin | 0 | 0 | df93b5a81056bdc414dab18b7c2fce8fc1eb8481 | 508 | MyApplication4 | Apache License 2.0 |
src/main/kotlin/LetterBoxedPuzzleSolver.kt | Kyle-Falconer | 671,044,954 | false | null | import kotlinx.coroutines.*
data class BoxedWords(val word: String, val remainingLetters: Set<Char>) : Comparable<BoxedWords> {
override fun compareTo(other: BoxedWords): Int {
return when {
remainingLetters.size < other.remainingLetters.size -> -1
remainingLetters.size > other.rema... | 0 | Kotlin | 0 | 0 | 32f65f18067d686bb79cf84bdbb30bc880319124 | 6,418 | LetterBoxedPuzzleSolver | Apache License 2.0 |
src/main/kotlin/site.vie10.visit/lang/BaseLangPackLoader.kt | viktorhrekh | 466,421,916 | false | {"Kotlin": 30200, "HTML": 1195} | package site.vie10.visit.lang
/**
* @author vie10
**/
abstract class BaseLangPackLoader : LangPackLoader {
override fun loadOrDefault(langCode: String, onResult: (LangPack) -> Unit) {
tryLoadOrDefault(langCode) {
it.onSuccess(onResult).onFailure { e -> e.printStackTrace() }
}
}
... | 2 | Kotlin | 0 | 2 | 26d6e50c7c732118e2829282f4c14a9d89a2bdd7 | 422 | visit | MIT License |
backend/test/org/jetbrains/demo/thinkter/RegisterKtTest.kt | oleksiyp | 109,177,378 | true | {"Kotlin": 114281, "CSS": 2654, "JavaScript": 308} | package org.jetbrains.demo.thinkter
import io.mockk.*
import org.jetbrains.demo.thinkter.dao.ThinkterStorage
import org.jetbrains.demo.thinkter.model.LoginResponse
import org.jetbrains.demo.thinkter.model.User
import org.jetbrains.ktor.application.ApplicationFeature
import org.jetbrains.ktor.http.HttpHeaders
import or... | 0 | Kotlin | 0 | 1 | 58afe2d3dc449bcde36caefe0125ded9ab5ed372 | 6,880 | kotlin-fullstack-sample | Apache License 2.0 |
app/src/main/java/com/example/android/dagger/user/UserManager.kt | tahia910 | 246,546,502 | true | {"Kotlin": 65614} | /*
* Copyright (C) 2019 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 | b23d98b67f02232aece4269ae81ee2d1fe2230f9 | 2,816 | android-dagger | Apache License 2.0 |
app/src/main/java/com/rapidsos/era/emergency_contacts/presenter/EmergencyContactsPresenterImpl.kt | johndpope | 192,260,729 | false | {"Kotlin": 351294, "Shell": 212} | package com.rapidsos.era.emergency_contacts.presenter
import com.hannesdorfmann.mosby3.mvp.MvpBasePresenter
import com.rapidsos.database.database.handlers.DbProfileHandler
import com.rapidsos.database.database.handlers.DbSessionTokenHandler
import com.rapidsos.database.database.handlers.DbUserHandler
import com.rapids... | 0 | Kotlin | 0 | 1 | 465a1dfbe3d3a9d99418e9b23fb0c6e8790c36c6 | 6,264 | era-android | Apache License 2.0 |
app/src/main/java/com/triviagenai/triviagen/options/domain/usecase/GetDarkmodePreferenceUseCase.kt | sidcgithub | 793,551,165 | false | {"Kotlin": 75478} | package com.triviagenai.triviagen.options.domain.usecase
import com.triviagenai.triviagen.options.domain.repository.UserPreferenceRepository
import javax.inject.Inject
class GetDarkmodePreferenceUseCase @Inject constructor(
private val repository: UserPreferenceRepository
) {
suspend operator fun invoke(): Bo... | 3 | Kotlin | 1 | 2 | 337d72b00a5ed6f022d91d13cb12d3d9122296b7 | 380 | ai-trivia-app-android | MIT License |
src/test/kotlin/com/github/strindberg/emacsj/xref/XRefTest.kt | strindberg | 719,602,205 | false | {"Kotlin": 286041} | package com.github.strindberg.emacsj.xref
import com.intellij.openapi.actionSystem.IdeActions.ACTION_GOTO_DECLARATION
import com.intellij.testFramework.fixtures.BasePlatformTestCase
const val FILE = "MyClass.kt"
private const val ACTION_XREF_BACK = "com.github.strindberg.emacsj.actions.xref.xrefback"
class XRefTest... | 0 | Kotlin | 1 | 4 | a3dd4256f7bd2b94ff0213f27fc4e10ad9a10f65 | 1,124 | emacsj | MIT License |
src/main/kotlin/csense/idea/kotlin/checked/exceptions/settings/SettingsPage.kt | csense-oss | 192,794,563 | false | null | package csense.idea.kotlin.checked.exceptions.settings
import com.intellij.openapi.options.*
import csense.idea.base.bll.linemarkers.*
import csense.idea.kotlin.checked.exceptions.*
import csense.idea.kotlin.checked.exceptions.bll.*
import csense.kotlin.extensions.*
import javax.swing.*
class SettingsPage : Searchabl... | 1 | null | 2 | 23 | 864c0c389067dbde3f2d5b3ddbcdfc4d03eb6586 | 967 | idea-kotlin-checked-exceptions | MIT License |
library/src/commonMain/kotlin/com/ioki/passenger/api/models/ApiCalculateNewFareRequest.kt | ioki-mobility | 838,801,042 | false | {"Kotlin": 344735} | package com.ioki.passenger.api.models
import kotlinx.serialization.Serializable
@Serializable
public data class ApiCalculateNewFareRequest(
val passengers: List<ApiPassengerSelectionRequest>,
)
| 8 | Kotlin | 1 | 1 | cdd572209bd5db8945d0b37535785e3248f039a4 | 200 | kmp-passenger-api | MIT License |
codegen/src/main/kotlin/de/lancom/openapi/codegen/entity/Example.kt | lancomsystems | 733,524,954 | false | {"Kotlin": 769728, "Mustache": 12392} | package de.lancom.openapi.codegen.entity
import de.lancom.openapi.view.OpenApiEntity
import de.lancom.openapi.codegen.field.fieldExampleJson
import de.lancom.openapi.codegen.field.fieldString
import de.lancom.openapi.codegen.type.EntityType
val example = OpenApiEntity(
entityType = EntityType.Example,
fields ... | 1 | Kotlin | 0 | 1 | be448682a5ce7441fb04f7a888cab903dcedacbb | 499 | openapi-parser | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/person/Person.kt | navikt | 656,574,894 | false | {"Kotlin": 387161, "Java": 333240, "XSLT": 25351, "PLSQL": 1668, "Dockerfile": 576, "Shell": 257} | package no.nav.syfo.api.v3.domain
data class Person(
val fnr: String,
val navn: String
)
| 4 | Kotlin | 0 | 0 | e38057d0a5afc8e08d7d9be29cd59151da23a9ff | 98 | syfooppfolgingsplanservice | MIT License |
app/src/main/java/com/romandevyatov/bestfinance/utils/numberpad/TextInputEditTextExtensions.kt | RomanDevyatov | 587,557,441 | false | {"Kotlin": 570252} | package com.romandevyatov.bestfinance.utils.numberpad
import android.text.Editable
import android.text.TextWatcher
import com.google.android.material.textfield.TextInputEditText
private var currencySymbol = ""
fun TextInputEditText.addGenericTextWatcher() {
val textWatcher = object : TextWatcher {
overr... | 1 | Kotlin | 0 | 1 | bc88dc81ebb68a2f51f34d8051c38ca79ced5d1d | 2,163 | BestFinance | Apache License 2.0 |
app/src/main/java/de/eosn/norrisjokes/MainActivity.kt | addyi | 161,180,337 | false | null | package de.eosn.norrisjokes
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.lifecycle.Observer
import arrow.core.Either
import com.goog... | 0 | Kotlin | 0 | 0 | d4ba0f4847e0d47b7790b11b8dd7b78bae06a2d3 | 2,086 | NorrisJokes | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/Bomb.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,963 | icons | MIT License |
src/commonMain/kotlin/com.comcast.vrex.sdk/message/common/LanguageType.kt | rdkcentral | 493,187,704 | false | null | /*
* Copyright 2021 Comcast Cable Communications Management, LLC
*
* 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... | 0 | Kotlin | 0 | 0 | 8cade4bea0976afe422c909a664477701222421a | 1,069 | xvcs-speech-sdk-core | Apache License 2.0 |
app/src/main/java/org/stepic/droid/storage/structure/DbStructureViewedNotificationsQueue.kt | StepicOrg | 42,045,161 | false | {"Kotlin": 4281147, "Java": 1001895, "CSS": 5482, "Shell": 618} | package org.stepic.droid.storage.structure
object DbStructureViewedNotificationsQueue {
const val VIEWED_NOTIFICATIONS_QUEUE = "viewed_notifications_queue"
object Column {
const val NOTIFICATION_ID = "notification_id"
}
} | 13 | Kotlin | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 244 | stepik-android | Apache License 2.0 |
app/src/main/java/com/mg/axechen/wanandroid/block/collect/website/CollectWebsiteModel.kt | AxeChen | 125,294,759 | false | null | package com.mg.axechen.wanandroid.block.collect.website
import com.mg.axechen.wanandroid.javabean.HomeData
import com.mg.axechen.wanandroid.javabean.SearchTag
import com.mg.axechen.wanandroid.network.NetWorkManager
import io.reactivex.Observable
import network.response.Response
/**
* Created by AxeChen on 2018/4/20.... | 1 | Kotlin | 27 | 184 | 81e40e21ec42018dc3be773b3699e3963bc80ef3 | 553 | WanAndroid | MIT License |
app/src/main/java/com/cyberkey/videoplayer/dialogs/DeleteWithRememberDialog.kt | Damayantha | 785,721,725 | false | {"Kotlin": 1621089, "Java": 379060} | package com.cyberkey.videoplayer.dialogs
import android.app.Activity
import androidx.appcompat.app.AlertDialog
import com.cyberkey.commons.extensions.beGoneIf
import com.cyberkey.commons.extensions.getAlertDialogBuilder
import com.cyberkey.commons.extensions.setupDialogStuff
import com.cyberkey.videoplayer.databinding... | 0 | Kotlin | 0 | 0 | 757f3ab319b9f15b96444143c1dfcd619c703294 | 1,428 | VideoPlayer | The Unlicense |
analytics/src/test/java/io/appmetrica/analytics/impl/modules/ServiceWakeLockBinderTest.kt | appmetrica | 650,662,094 | false | {"Java": 5810866, "C++": 5729793, "Kotlin": 2626120, "Python": 229161, "Objective-C++": 152166, "C": 127185, "Assembly": 59003, "Emacs Lisp": 14657, "Objective-C": 10302, "Starlark": 7767, "Shell": 5746, "Go": 4930, "CMake": 3562, "CSS": 1454, "AppleScript": 1429, "AIDL": 504} | package io.appmetrica.analytics.impl.modules
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import io.appmetrica.analytics.testutils.CommonTest
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.mockito.ArgumentMatchers.anyInt
impor... | 1 | Java | 5 | 54 | 472d3dfb1e09f4e7f35497e5049f53287ccce7d1 | 2,255 | appmetrica-sdk-android | MIT License |
sandbox/consumer-kotlin-multiplatform/wasmMain/kotlin/Platform.kt | JavierSegoviaCordoba | 348,863,451 | false | {"Kotlin": 501858, "Shell": 21101, "Perl": 4726, "CSS": 195} | @file:Suppress("PackageDirectoryMismatch")
package com.kotlin.multiplatform.sandbox.project
actual object Platform {
actual val name: String = "wasm"
}
| 12 | Kotlin | 10 | 26 | e880ed2481243bfab76a5df41476bbaeb7094fa5 | 158 | hubdle | Apache License 2.0 |
common/components/dialog-open-sv-save/src/commonMain/kotlin/io/stardewvalleydesigner/component/dialog/opensvsave/OpenSvSaveComponent.kt | AzimMuradov | 377,785,069 | false | {"Kotlin": 1064148, "HTML": 1330, "JavaScript": 461} | /*
* Copyright 2021-2024 Azim Muradov
*
* 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... | 23 | Kotlin | 1 | 5 | 83f4be94cd70678c13039a14cc352b712092151b | 854 | stardew-valley-designer | Apache License 2.0 |
src/main/kotlin/com/github/lernejo/korekto/toolkit/misc/javaFunctions.kt | lernejo | 315,255,600 | false | {"Kotlin": 83210, "HTML": 3592, "Java": 220} | package com.github.lernejo.korekto.toolkit.misc
import java.util.function.Consumer
import java.util.function.Function
interface ThrowingConsumer<T> {
@Throws(Exception::class)
fun accept(t: T?)
companion object {
@JvmStatic
fun <T> sneaky(throwingConsumer: ThrowingConsumer<T>): Consumer... | 4 | Kotlin | 0 | 0 | dd61635805e2b8cda88747b321171f2d02036044 | 706 | korekto-toolkit | Apache License 2.0 |
app/src/main/java/com/dinhlam/sharebox/data/model/HttpErrorMessage.kt | dinhlamvn | 532,200,939 | false | null | package com.dinhlam.sharebox.data.model
import com.google.gson.annotations.SerializedName
@JvmInline
value class HttpErrorMessage(@SerializedName("message") val errorMessage: String) | 0 | Kotlin | 0 | 0 | da6418174256a6f8dfecbfaaaad29acd829624c5 | 184 | sharebox | MIT License |
idea/testData/formatter/MethodAnnotationWrapping.kt | JakeWharton | 99,388,807 | true | null | @Deprecated("Foo")
@Deprecated("Bar")
fun foo() {
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 51 | kotlin | Apache License 2.0 |
app/src/main/java/com/zhao/myapplication/TestSingleton.kt | zhaojfGithub | 505,725,806 | false | null | package com.zhao.myapplication
/**
*创建时间: 2023/2/9
*编 写: zjf
*页面功能:
*/
object TestSingleton {
} | 0 | Kotlin | 0 | 0 | 0ee17168e033c1370187da55b1d579f6a0f2d6e6 | 104 | test | Apache License 2.0 |
app/src/main/java/com/example/datadomesdkexample/MainActivity.kt | DataDome | 200,197,601 | false | null | package com.example.datadomesdkexample
import android.Manifest
import android.content.Context
import android.os.AsyncTask
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.preference.PreferenceManager
import android.util.Log
import android.view.View
import android.widget.Toast
im... | 1 | Kotlin | 0 | 2 | 7e4b2dbf9b6c29e185bceb0d03f9340c94e8d108 | 12,966 | AndroidSDK-Example | MIT License |
android-app/src/main/java/com/github/aivanovski/testswithme/android/utils/LifecycleLogger.kt | aivanovski | 815,197,496 | false | {"Kotlin": 787587, "Clojure": 7826, "Shell": 1883} | package com.github.aivanovski.testswithme.android.utils
import com.arkivanov.essenty.lifecycle.Lifecycle
import timber.log.Timber
class LifecycleLogger(
private val tag: String,
private val lifecycle: Lifecycle
) : Lifecycle.Callbacks {
init {
lifecycle.subscribe(this)
}
override fun onC... | 0 | Kotlin | 0 | 0 | 5c80bb24b9cb4630f06aabb26c7d5e8f2780bf7c | 768 | tests-with-me | Apache License 2.0 |
vclib/src/commonMain/kotlin/at/asitplus/wallet/lib/jws/SdJwtSigned.kt | a-sit-plus | 602,578,639 | false | null | package at.asitplus.wallet.lib.jws
import at.asitplus.wallet.lib.data.Base64UrlStrict
import at.asitplus.wallet.lib.data.KeyBindingJws
import at.asitplus.wallet.lib.data.SelectiveDisclosureItem
import io.github.aakira.napier.Napier
import io.matthewnelson.encoding.core.Decoder.Companion.decodeToByteArray
import io.mat... | 6 | null | 2 | 9 | cd329850e8ccd735cd2b8f43624059b60dbd0008 | 2,561 | kmm-vc-library | Apache License 2.0 |
app/src/main/java/com/mohsinajavaid/currencyapp/MainActivity.kt | mohsinajavaid1 | 718,497,487 | false | {"Kotlin": 24296, "Java": 1033} | package com.mohsinajavaid.currencyapp
import SyncingWorker
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxS... | 0 | Kotlin | 0 | 0 | 5a331435f28b9168ace9cc9dbda6d9d9380effe2 | 11,724 | CurrencyConverterApp | MIT License |
src/main/kotlin/dev/crashteam/repricer/repository/postgre/mapper/RecordToKazanExpressAccountEntityJoinAccountEntityMapper.kt | crashteamdev | 513,840,113 | false | {"Kotlin": 423563, "Java": 188503, "Dockerfile": 576, "PLpgSQL": 483} | package dev.crashteam.repricer.repository.postgre.mapper
import dev.crashteam.repricer.db.model.tables.Account.ACCOUNT
import dev.crashteam.repricer.db.model.tables.KeAccount.KE_ACCOUNT
import dev.crashteam.repricer.repository.postgre.entity.KazanExpressAccountEntity
import dev.crashteam.repricer.repository.postgre.en... | 11 | Kotlin | 0 | 0 | 83b1853a6d9bdd8ea39aee05842de2f6da428ebf | 1,473 | ke-space | Apache License 2.0 |
livingdoc-repository-confluence/src/main/kotlin/org/livingdoc/repositories/confluence/ConfluenceDocumentNotFoundException.kt | LivingDoc | 85,412,044 | false | null | package org.livingdoc.repositories.confluence
import org.livingdoc.repositories.DocumentNotFoundException
class ConfluenceDocumentNotFoundException : DocumentNotFoundException {
constructor(id: String, url: String) : super("Could not find document with ID [$id] on server [$url]!")
constructor(
throwab... | 34 | Kotlin | 16 | 14 | f3d52b8bacbdf81905e4b4a753d75f584329b297 | 571 | livingdoc | Apache License 2.0 |
app/src/main/java/com/android/inputmethod/ui/personaldictionary/word/WordView.kt | divvun | 24,789,155 | false | {"Java": 1703101, "Kotlin": 616713} | package com.android.inputmethod.ui.personaldictionary.word
import io.reactivex.Observable
interface WordView {
fun events(): Observable<WordEvent>
fun render(viewState: WordViewState)
val wordId: Long
} | 22 | Java | 6 | 9 | 5e71829dd991105f19aaec1d65dfff06c65b946a | 216 | giellakbd-android | Apache License 2.0 |
imagepicker/src/main/java/com/wilinz/imagepicker/PickerOption.kt | wilinz | 489,705,420 | false | {"Kotlin": 36733} | package com.wilinz.imagepicker
import android.os.Parcelable
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import kotlinx.parcelize.Parcelize
@Parcelize
data class PickerOption(
var maxSelectable: Int = 1,
var mimeTypes: List<String> = listOf("image/*"),
var gridExpectedSize: Dp = 1... | 0 | Kotlin | 0 | 0 | bf55835557fcc045040363c64ddabfea0db8c487 | 963 | ImagePicker | Apache License 2.0 |
src/main/kotlin/leight/container/LazyProxy.kt | marek-hanzal | 259,577,282 | false | null | package leight.container
import kotlin.reflect.KClass
class LazyProxy<T : Any>(clazz: KClass<T>, container: IContainer) {
val instance: T by lazy {
container.create(clazz)
}
}
| 112 | null | 0 | 1 | 7a485228438c5fb9a61b1862e8164f5e87361e4a | 182 | DeRivean | Apache License 2.0 |
core/src/commonMain/kotlin/com/lehaine/littlekt/extras/FixedScene.kt | LeHaine | 607,924,807 | false | {"Kotlin": 149624} | package com.lehaine.littlekt.extras
import com.littlekt.Context
/**
* @author <NAME>
* @date 3/1/2023
*/
abstract class FixedScene(context: Context) : Scene(context) {
var fixedProgressionRatio: Float = 1f
var tmod: Float = 1f
open fun Context.fixedUpdate() = Unit
} | 0 | Kotlin | 2 | 2 | 3885e1077915d975b12304699bf6aa1e80fe6ff3 | 285 | littlekt-extras | Apache License 2.0 |
core/src/commonMain/kotlin/kotlinx/rpc/internal/WithRPCStubObject.kt | Kotlin | 739,292,079 | false | {"Kotlin": 501936, "Java": 1587, "JavaScript": 1134, "Shell": 1072, "Dockerfile": 69} | /*
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.rpc.internal
import kotlinx.rpc.internal.utils.InternalRPCApi
import kotlin.reflect.KClass
@InternalRPCApi
public expect fun <R : Any> findRPCStubProvider(kClass: KClass<*>, ... | 36 | Kotlin | 17 | 733 | b946964ca7838d40ba68ad98fe4056f3ed17c635 | 348 | kotlinx-rpc | Apache License 2.0 |
org.librarysimplified.audiobook.api/src/main/java/org/librarysimplified/audiobook/api/PlayerPosition.kt | NYPL-Simplified | 139,462,999 | false | {"Kotlin": 544969, "Java": 2451} | package org.librarysimplified.audiobook.api
/**
* The playback position of the player.
*/
data class PlayerPosition(
val title: String?,
val part: Int,
val chapter: Int,
val offsetMilliseconds: Long
)
| 1 | Kotlin | 2 | 2 | 6633bcd1006ead70bc2ffd945cacb6b38af8e8e5 | 213 | audiobook-android | Apache License 2.0 |
src/main/kotlin/me/znepb/roadworks/network/SyncContentPacket.kt | znepb | 674,486,233 | false | {"Kotlin": 303216, "Java": 1022} | package me.znepb.roadworks.network
import com.mojang.serialization.*
import com.mojang.serialization.codecs.RecordCodecBuilder
import me.znepb.roadworks.RoadworksMain
import me.znepb.roadworks.block.sign.CustomSignBlockEntity
import me.znepb.roadworks.block.sign.SignType
import me.znepb.roadworks.block.sign.SignTypeWi... | 0 | Kotlin | 1 | 6 | c14b96b0c0c3e10aada1b2d56d72e0ce531e6731 | 1,647 | roadworks | MIT License |
di/src/main/java/com/xquare/di/LocalModule.kt | team-xquare | 478,925,648 | false | null | package com.xquare.di
import android.content.Context
import android.content.SharedPreferences
import androidx.preference.PreferenceManager
import androidx.room.Room
import com.google.gson.Gson
import com.xquare.data.dao.MealDao
import com.xquare.data.local.XquareDatabase
import com.xquare.data.local.entity.meals.AllMe... | 20 | null | 1 | 13 | 6b80af309999b7c8e239aead440c438c1958020a | 1,406 | xquare-android | MIT License |
app/src/main/java/com/gmb/restaurapp/fragment/DishDetailFragment.kt | gemambu | 110,361,739 | false | null | package com.gmb.restaurapp.fragment
import android.app.Activity
import android.app.Fragment
import android.content.Context
import android.os.Bundle
import android.text.InputType
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.... | 0 | Kotlin | 0 | 0 | 09992e1410f4ab642950e3d85694695c3b1447b9 | 4,935 | restaurApp | Creative Commons Attribution 3.0 Unported |
compiler/fir/tree/src/org/jetbrains/kotlin/fir/expressions/builder/FirConstExpressionBuilder.kt | android | 263,405,600 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.expressions.builder
import org.jetbrains.kotlin.fir.FirSourceElement
import ... | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 833 | kotlin | Apache License 2.0 |
app/src/main/java/com/daniza/simple/todolist/ui/widget/navigation/TodoTabRowItem.kt | DaniZakaria63 | 670,439,893 | false | null | package com.daniza.simple.todolist.ui.widget.navigation
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androi... | 0 | Kotlin | 0 | 1 | b4343b1bb776fdc5ecda7bea1e50d9a331ce2dbd | 3,227 | simple-todo-list | MIT License |
app/src/androidMain/kotlin/App.kt | JuulLabs | 293,729,751 | false | {"Kotlin": 48806, "HTML": 1198, "CSS": 56} | package com.juul.sensortag
import android.app.Application
import com.juul.tuulbox.logging.ConsoleLogger
import com.juul.tuulbox.logging.Log
class App : Application() {
override fun onCreate() {
super.onCreate()
Log.dispatcher.install(ConsoleLogger)
}
}
| 5 | Kotlin | 13 | 51 | 685ea8a6aa6caa6b1b1f1a1159b24566f59fb32d | 280 | sensortag | Apache License 2.0 |
app/src/main/java/com/example/transformingpager/MainActivity.kt | kiselyv77 | 625,552,993 | false | null | package com.example.transformingpager
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundati... | 0 | Kotlin | 0 | 1 | 7528bfcf6c2be1753ef19b0ca3ad0c38b6c2d3f7 | 3,547 | TransformingPager | The Unlicense |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.