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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
botalka/src/test/kotlin/ru/vityaman/lms/botalka/app/spring/BotalkaTestSuite.kt | vityaman-edu | 762,733,310 | false | {"Kotlin": 153607, "Shell": 2101, "Python": 1261, "Dockerfile": 66} | package ru.vityaman.lms.botalka.app.spring
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.AfterEach
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.boot.test.conte... | 21 | Kotlin | 0 | 1 | e62c9cb8cd06be2e7c109b330890e62bc25074a7 | 2,146 | lms | Apache License 2.0 |
app/src/main/java/com/realitix/mealassistant/database/entity/MealAliment.kt | realitix | 235,808,420 | false | null | package com.realitix.mealassistant.database.entity
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
import androidx.room.Relation
class MealAliment(alimentId: Long, mealId: Long, quantity: Int): MealAlimentRaw(alimentId, mealId, quantity) {
@Relation(parentColumn = "alimentI... | 0 | Kotlin | 0 | 0 | 0ea82b9e83d9e50dc848fe52010ca3bbae1b8e2b | 1,006 | meal-assistant-android | Apache License 2.0 |
app/src/main/java/io/wookey/dash/feature/asset/SendActivity.kt | msgpo | 545,626,152 | true | {"C": 2987509, "C++": 2009138, "Assembly": 778483, "Python": 496859, "Kotlin": 301796, "Java": 196221, "CMake": 128422, "Shell": 25505, "Objective-C": 120} | package io.wookey.dash.feature.asset
import android.annotation.SuppressLint
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.content.Intent
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.view.View
import io.wookey.dash.R
imp... | 0 | null | 0 | 0 | 37316315f8e163bd6dbdab2534b41c9ee577039b | 6,206 | dash-wallet-android-app | MIT License |
server/src/main/kotlin/cloud/skadi/gist/plugins/Routing.kt | skadi-cloud | 408,334,358 | false | {"Kotlin": 310187, "CSS": 8672, "TypeScript": 7833, "JavaScript": 730, "Dockerfile": 120} | package cloud.skadi.gist.plugins
import io.ktor.application.*
import io.ktor.features.*
import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.locations.*
import io.ktor.response.*
import io.ktor.routing.*
import java.io.File
fun Application.configureRouting() {
install(Locations) {
}
install(... | 14 | Kotlin | 1 | 6 | a30dd7064f7bdb1e086f588d3b6f54d6692cf0c3 | 1,952 | gist | MIT License |
android/app/src/androidTest/java/ly/david/musicsearch/android/app/ui/releasegroup/ReleaseGroupScaffoldTest.kt | lydavid | 458,021,427 | false | {"Kotlin": 1934721, "HTML": 1854067, "Swift": 4205, "Python": 3527, "Shell": 1594, "Ruby": 955} | package ly.david.mbjc.ui.releasegroup
// internal class ReleaseGroupScaffoldTest : MainActivityTest() {
//
// private val strings: AppStrings by inject()
// private val releaseGroupRepository: ReleaseGroupRepository by inject()
// private val imageLoaderFactory: ImageLoaderFactory by inject()
//
// @Before... | 119 | Kotlin | 0 | 45 | 3ab7303fca3a33f1a64e88ef3b411198fb25477c | 2,365 | MusicSearch | Apache License 2.0 |
gitfun/core/src/main/java/com/quxianggif/core/model/Version.kt | navyxue | 184,019,203 | false | null | package com.quxianggif.core.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
/**
* 版本更新的实体类封装,如果存在版本更新则会提供下述信息
* @author xuehj
* @since 2019-04-23
*/
@Parcelize
class Version(@SerializedName("change_log") val changeLog: String,
... | 1 | null | 1 | 1 | b63d79cdfb9e4e10462d862a7e936e2cc34f6819 | 591 | AndroidStudy | Apache License 2.0 |
app/src/main/java/org/adaschool/taskplanner/ui/task/viewmodel/TaskViewModel.kt | ada-school | 429,857,121 | false | {"Kotlin": 42997} | package org.adaschool.taskplanner.ui.task.viewmodel
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineDis... | 0 | Kotlin | 0 | 0 | 203f570641eff548696e7f23f0418ea2bbc3d4a2 | 3,773 | task-planner-app-android | Apache License 2.0 |
src/main/kotlin/org/starlitmc/serialising/memoryefficient/PairIntSerializer.kt | StarlitMC | 783,358,315 | false | {"Kotlin": 64860, "Java": 3180} | package org.starlitmc.serialising.memoryefficient
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.buildClassSerialDescriptor
import kotlinx.serialization.descriptors.element
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
object PairIntSeri... | 0 | Kotlin | 0 | 0 | fd5d4bae06a5aaa43320b8870110c80045822475 | 987 | StarlitUtils | Creative Commons Zero v1.0 Universal |
src/main/kotlin/no/nav/hm/grunndata/index/external_product/ExternalProductIndexerController.kt | navikt | 598,994,229 | false | {"Kotlin": 70693, "Dockerfile": 111, "Shell": 53} | package no.nav.hm.grunndata.index.external_product
import io.micronaut.http.annotation.*
import io.micronaut.scheduling.TaskExecutors
import io.micronaut.scheduling.annotation.ExecuteOn
import org.slf4j.LoggerFactory
@Controller("/internal/index/external-products")
@ExecuteOn(TaskExecutors.BLOCKING)
class ExternalPro... | 0 | Kotlin | 0 | 2 | 0883ceb259c3802f0e9b29fcf42325e9639e1de8 | 902 | hm-grunndata-index | MIT License |
fxgl-entity/src/main/kotlin/com/almasb/fxgl/entity/components/BoundingBoxComponent.kt | wkgcass | 450,023,517 | false | {"Maven POM": 12, "YAML": 5, "Markdown": 12, "Text": 21, "Ignore List": 1, "Kotlin": 421, "Java": 399, "INI": 1, "kvlang": 2, "Java Properties": 1, "Wavefront Object": 3, "XML": 40, "CSS": 8, "JavaScript": 10, "JSON": 11, "Shell": 4, "Wavefront Material": 1, "C": 1, "C++": 1} | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.entity.components
import com.almasb.fxgl.core.serialization.Bundle
import com.almasb.fxgl.entity.component.Component
import com.almasb.fxgl.entity.component.CoreComponent... | 1 | null | 1 | 1 | 147085ff8efc4b079d6ea0707bdd166b7020d849 | 15,520 | FXGL | MIT License |
src/main/java/com/cumulocity/client/api/OperationsApi.kt | SoftwareAG | 525,378,320 | false | null | // Copyright (c) 2014-2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Softwa... | 1 | null | 1 | 3 | b9e366de1d8d21fa479a42497d45a4efa4de2268 | 9,970 | cumulocity-clients-kotlin | Apache License 2.0 |
app/src/main/java/com/stew/kotlinbox/SplashActivity.kt | stewForAni | 463,379,833 | false | null | package com.stew.kotlinbox
import android.content.Intent
import android.graphics.Bitmap
import android.util.Log
import com.stew.kb_common.base.BaseActivity
import com.stew.kotlinbox.databinding.ActivitySplashBinding
/**
* Created by stew on 4/21/22.
* mail: <EMAIL>
*/
class ADActivity : BaseActivity<ActivitySplash... | 1 | null | 26 | 96 | 60da2611e91f76aea37f14103f8b2048e3410129 | 658 | KotlinBox-WanAndroid | Apache License 2.0 |
framework/src/main/java/com/kortisan/framework/entities/Device.kt | cobogt | 805,950,893 | false | {"Kotlin": 306286, "Java": 134} | package com.kortisan.framework.entities
/** * * * * * * * * *
* Project KoreFrame
* Created by <NAME> on 30/12/22.
* * * * * * * * * * **/
import java.util.*
data class Device(
var id: String = "", // Id del dispositivo
var pushId: String = "", // Id de la notificación push
var model: Stri... | 0 | Kotlin | 1 | 20 | 95ef68f3deb6c026f71c87bff0b9881411f93be8 | 595 | kortisan-android-framework | MIT License |
app/src/main/java/com/comunidadedevspace/imc/Resultado.kt | LeonardoCampiol | 830,773,934 | false | {"Kotlin": 4183} | package com.comunidadedevspace.imc
import android.os.Bundle
import android.widget.TextView
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
const val C... | 0 | Kotlin | 0 | 0 | 018ffff98e470f207905d2940f69394308e701a1 | 1,610 | Calculadora-IMC | MIT License |
src/main/kotlin/com/leonardom011/financetracker/models/Category.kt | LeonardoM011 | 450,911,921 | false | {"JavaScript": 14638, "Kotlin": 12969, "HTML": 2127, "CSS": 1672, "Dockerfile": 279} | package com.leonardom011.financetracker.models;
import java.time.Instant
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "categories")
public class Category(
@Id @GeneratedValue(strategy = GenerationType.AUTO) var category_id: Int,
var name: String,
var slug_name: String,... | 0 | JavaScript | 0 | 0 | 9b9f273be201905d2f4ef398c0271c03dea718a5 | 379 | finance-tracker | MIT License |
codeeditor/src/commonMain/kotlin/com/wakaztahir/codeeditor/prettify/parser/Prettify.kt | anwarpro | 446,130,287 | true | {"Kotlin": 262970} | // Copyright (C) 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 0 | Kotlin | 0 | 0 | a5c6319aa46afc7701d8cc5db75e2f7c44f5020b | 43,568 | compose-code-editor-1 | MIT License |
src/org/tboox/xmake/shared/XMakeProblem.kt | i1619khz | 372,532,443 | false | null | package org.tboox.xmake.shared
class XMakeProblem (val file: String? = null, val line: String? = "0", val column: String? = "0", val kind: String? = "error", val message: String? = "") {
}
| 0 | null | 0 | 2 | 1174209ccaffb9ca4bb143cc398f3ec72109ca71 | 190 | xmake-idea | Apache License 2.0 |
src/commonMain/kotlin/com/sztorm/lowallocmath/Extensions.kt | Sztorm | 606,585,732 | false | null | @file:Suppress("unused")
package com.sztorm.lowallocmath
import kotlin.math.absoluteValue
import kotlin.math.max
/**
* Returns a value indicating whether this value is approximately the [other] value given the
* specified [epsilon] tolerance.
*/
inline fun Float.isApproximately(other: Float, epsilon: Float = 0.00... | 0 | Kotlin | 0 | 0 | 3caf0a296de797b9ad8eb919fd145c2038491f9f | 2,029 | KotlinLowAllocMath | MIT License |
zoe-cli/src/commands/aliases.kt | adevinta | 243,047,314 | false | null | package com.adevinta.oss.zoe.cli.commands
import com.adevinta.oss.zoe.cli.utils.globalTermColors
import com.adevinta.oss.zoe.cli.utils.yaml
import com.adevinta.oss.zoe.core.utils.buildJson
import com.adevinta.oss.zoe.core.utils.logger
import com.adevinta.oss.zoe.core.utils.toJsonNode
import com.fasterxml.jackson.core.... | 9 | Kotlin | 21 | 273 | d8ade76e2a74d96b97a8a08d82d27407539f1ff4 | 6,756 | zoe | MIT License |
ui/feature/search/src/main/kotlin/com/francescsoftware/weathersample/ui/feature/search/weather/ui/WeatherError.kt | fvilarino | 355,724,548 | false | {"Kotlin": 574824, "Shell": 60} | package com.francescsoftware.weathersample.ui.feature.search.weather.ui
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import andr... | 10 | Kotlin | 1 | 33 | ae2e6ad24f6dacb2f6211cdf7684928264f5ebd7 | 2,510 | Weather-Sample | Apache License 2.0 |
mobile/src/main/java/de/lemke/nakbuch/data/UserSettingsRepository.kt | Lemkinator | 475,012,572 | false | null | package de.lemke.nakbuch.data
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.*
import de.lemke.nakbuch.data.database.EasterEggDao
import de.lemke.nakbuch.data.database.EasterEggsDb
import de.lemke.nakbuch.domain.model.BuchMode
import kotlinx.coroutines.flow.first
import kotlinx.cor... | 0 | Kotlin | 0 | 5 | bbf45db05557a7ace6b0e9ab085cd38fca2a8e7f | 10,629 | NAK-Buch | MIT License |
core/src/ru/shabashoff/ui/menu/popup/PopUpRule.kt | moevm | 170,087,036 | false | null | package ru.shabashoff.ui.menu.popup
import com.badlogic.gdx.graphics.Color
import ru.shabashoff.ui.UiUtils
import ru.shabashoff.ui.elements.TextLabel
import java.awt.SystemColor.text
class PopUpRule : PopUpMenu() {
private val text = TextLabel(0.25f, 0.45f, "Purpose: to collect a maximum of secret cards.\n" +
... | 0 | Kotlin | 1 | 0 | 6ee72f13b9df7b4f0e6327f975a98159a7ceec92 | 1,030 | adfmp19-normal-maze | MIT License |
app/src/main/java/Screen/ExamsPage.kt | LaithAltawil | 832,563,925 | false | {"Kotlin": 97605} | package Screen
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padd... | 0 | Kotlin | 0 | 1 | d0fc3c56dc14bcef1e80ef2b1e70bdcef421cebc | 7,570 | SchoolAppUI | MIT License |
src/main/kotlin/org/celtric/kotlin/html/tfoot.kt | celtric | 121,420,012 | false | null | package org.celtric.kotlin.html
fun tfoot(
// Global
classes: String? = null,
id: String? = null,
// Custom
other: Attributes = emptyMap(),
data: Attributes = emptyMap(),
// Content
content: () -> Any
) = BlockElement("tfoot", content(), AllAttributes(mapOf(
"class" to classes,
... | 1 | Kotlin | 3 | 25 | 70cd501bb534ad84f8c8c3a8f8fb18dddd7054e4 | 494 | kotlin-html | Apache License 2.0 |
app/src/main/java/com/rarilabs/rarime/modules/passportScan/models/RevocationStepViewModel.kt | rarimo | 775,551,013 | false | {"Kotlin": 1036626, "Java": 86126, "C++": 17305, "C": 5321, "CMake": 1262} | package com.rarilabs.rarime.modules.passportScan.models
import android.nfc.Tag
import android.nfc.tech.IsoDep
import androidx.lifecycle.ViewModel
import com.rarilabs.rarime.api.registration.RegistrationManager
import com.rarilabs.rarime.manager.IdentityManager
import com.rarilabs.rarime.manager.NfcManager
import com.r... | 1 | Kotlin | 0 | 5 | c92dd78d59c40a09370acaded9ea5b01e80dc10d | 3,031 | rarime-android-app | MIT License |
project/module-legacy-api/src/main/kotlin/ink/ptms/adyeshach/common/entity/EntityTypes.kt | TabooLib | 284,936,010 | false | {"Kotlin": 1050024, "Java": 35966} | package ink.ptms.adyeshach.common.entity
import com.google.common.base.Enums
import ink.ptms.adyeshach.common.entity.path.PathType
import ink.ptms.adyeshach.common.entity.type.*
import ink.ptms.adyeshach.core.Adyeshach
import ink.ptms.adyeshach.core.entity.type.minecraftVersion
import ink.ptms.adyeshach.core.util.getE... | 13 | Kotlin | 86 | 98 | ac7098b62db19308c9f14182e33181c079b9e561 | 9,517 | adyeshach | MIT License |
kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt | utopia-rise | 289,462,532 | false | null | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 63 | null | 39 | 571 | 39dc30230a30d2a6ab4ec3277eb3bc270995ab23 | 9,724 | godot-kotlin-jvm | MIT License |
mobile_app1/module447/src/main/java/module447packageKt0/Foo139.kt | uber-common | 294,831,672 | false | null | package module447packageKt0;
annotation class Foo139Fancy
@Foo139Fancy
class Foo139 {
fun foo0(){
module447packageKt0.Foo138().foo9()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
fun foo5(){
foo4()
}
fun foo6(){
foo5(... | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 417 | android-build-eval | Apache License 2.0 |
app/src/main/java/com/waffiq/bazz_list/di/providers/NoteUseCaseProvider.kt | waffiqaziz | 837,464,394 | false | {"Kotlin": 41811} | package com.waffiq.bazz_list.di.providers
import android.content.Context
import com.waffiq.bazz_list.data.local.datasource.LocalDataSource
import com.waffiq.bazz_list.data.local.room.NoteDatabase
import com.waffiq.bazz_list.data.repository.NoteRepository
import com.waffiq.bazz_list.domain.usecase.note.NotesInteractor
... | 0 | Kotlin | 0 | 0 | c826cdf868e594a6a742c989b59b15336b4e6a66 | 820 | BAZZ-List | MIT License |
app/src/main/java/com/kiwi/kiwitalk/ui/newchat/NewChatActivity.kt | boostcampwm-2022 | 562,671,228 | false | {"Kotlin": 136319} | package com.kiwi.kiwitalk.ui.newchat
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.kiwi.kiwitalk.databinding.ActivityNewChatBinding
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class NewChatActivity : AppCompatActivity() {
private lateinit var binding: Act... | 7 | Kotlin | 3 | 26 | f6c3c00bc398b4e35a555fb98d07d2998c1814eb | 552 | android08-KiwiTalk | MIT License |
app/src/main/java/com/songjachin/weather/ui/place/PlaceAdapter.kt | songjachin | 256,136,691 | false | null | package com.songjachin.weather.ui.place
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.songjachin.weather.R
import com.songjachin.weather.logic.model.Place... | 0 | Kotlin | 0 | 0 | e2a693a11983b8858ea048ffd10117503189620f | 2,461 | SunnyWeather | Apache License 2.0 |
app/src/main/java/com/dnnt/touch/ui/chat/ChatViewModel.kt | zhoujucheng | 119,154,071 | false | null | package com.dnnt.touch.ui.chat
import android.arch.lifecycle.MutableLiveData
import android.databinding.ObservableArrayList
import com.dnnt.touch.MyApplication
import com.dnnt.touch.been.*
import com.dnnt.touch.di.ActivityScoped
import com.dnnt.touch.netty.MsgHandler
import com.dnnt.touch.ui.base.BaseViewModel
import ... | 0 | Kotlin | 0 | 1 | b7a85731b95beb93c5f6f18482f4efbe38935d7d | 2,315 | Touch | Apache License 2.0 |
app/src/main/java/com/dnnt/touch/ui/chat/ChatViewModel.kt | zhoujucheng | 119,154,071 | false | null | package com.dnnt.touch.ui.chat
import android.arch.lifecycle.MutableLiveData
import android.databinding.ObservableArrayList
import com.dnnt.touch.MyApplication
import com.dnnt.touch.been.*
import com.dnnt.touch.di.ActivityScoped
import com.dnnt.touch.netty.MsgHandler
import com.dnnt.touch.ui.base.BaseViewModel
import ... | 0 | Kotlin | 0 | 1 | b7a85731b95beb93c5f6f18482f4efbe38935d7d | 2,315 | Touch | Apache License 2.0 |
src/main/kotlin/org/web3kt/abi/tuple/Tuple2.kt | web3kt | 828,453,056 | false | {"Kotlin": 192188} | package org.web3kt.abi.tuple
public class Tuple2<T1, T2>(
public val t1: T1,
public val t2: T2,
)
| 0 | Kotlin | 0 | 0 | b4ddabf6dc6225bf06136ea333532b15bf34047a | 107 | web3.kt | MIT License |
core/src/main/kotlin/com/rarible/blockchain/scanner/subscriber/LogEventSubscriber.kt | rarible | 389,552,724 | false | null | package com.rarible.blockchain.scanner.subscriber
import com.rarible.blockchain.scanner.framework.client.BlockchainBlock
import com.rarible.blockchain.scanner.framework.client.BlockchainLog
import com.rarible.blockchain.scanner.framework.model.Descriptor
import com.rarible.blockchain.scanner.framework.model.Log
import... | 1 | Kotlin | 6 | 4 | 2730ee09f70a3e8d9bbe60ea7a2a9259dc0be999 | 1,903 | blockchain-scanner | MIT License |
core/src/commonTest/kotlin/maryk/core/aggregations/metric/AverageAggregatorTest.kt | marykdb | 290,454,412 | false | {"Kotlin": 3323544, "JavaScript": 1004} | package maryk.core.aggregations.metric
import maryk.test.models.TestMarykModel
import kotlin.test.Test
import kotlin.test.expect
class AverageAggregatorTest {
@Test
fun aggregate() {
val averageAggregator = AverageAggregator(
Average(TestMarykModel { int::ref })
)
expect(
... | 1 | Kotlin | 1 | 8 | 92be44898d3c94f412028cb4567bdf50605bd5d8 | 867 | maryk | Apache License 2.0 |
checks/src/test/java/com/thirdegg/lintrules/android/testcases/SuperCatchThrowsTestCase.kt | thirdegg | 173,485,032 | false | {"Kotlin": 24225} | package com.thirdegg.lintrules.android.testcases
import com.android.tools.lint.checks.infrastructure.TestFiles
import com.android.tools.lint.checks.infrastructure.TestLintTask
import com.thirdegg.lintrules.android.CheckedExceptionsDetector.Companion.ISSUE_PATTERN
import com.thirdegg.lintrules.android.Utils
import org.... | 3 | Kotlin | 1 | 14 | d1fd20ec2eba13433500431f941706ac12fdcde5 | 2,721 | lint-rules | Apache License 2.0 |
lession03/completed/Paging3App/app/src/main/java/com/dreamprogrammingr/paging3app/view/MainActivity.kt | HubComputerProgramming | 300,556,300 | false | null | package com.dreamprogrammingr.paging3app.view
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProviders
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.LinearLayoutManager
import com.dre... | 0 | Kotlin | 0 | 0 | 32aeae19a6d1f6f83f6f4c324dbc9737a55eee7e | 1,605 | JetpackComponents | Apache License 2.0 |
sdk/src/main/java/me/tartikov/map/SnapToGeoPoint.kt | t-artikov | 466,374,937 | false | {"Kotlin": 51445} | package me.tartikov.map
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.layout.layout
import androidx.compose.ui.unit.IntSize
fun Modifier.snapToGeoPoint(point: GeoPoint, anchor: Alignment = Alignment.Center) = composed {
val ... | 0 | Kotlin | 0 | 2 | a6be05538c48938b29f4f672775d27f912219163 | 807 | compose-map | MIT License |
app/src/main/java/top/ss007/androiddevmemo/databinding/DataBindingViewModel.kt | shusheng007 | 216,754,041 | false | null | package top.ss007.androiddevmemo.databinding
import android.view.View
import androidx.databinding.ObservableField
import androidx.lifecycle.ViewModel
/**
* Copyright (C) 2020 shusheng007
* 完全享有此软件的著作权,违者必究
*
* @author shusheng007
* @modifier
* @createDate 2020/5/23 11:42
* @version 1.0
* @descrip... | 0 | Kotlin | 1 | 2 | 1029a0b24de457cb5b4df6ec29bf2ddde4675015 | 1,115 | AndroidDevMemo | Apache License 2.0 |
save-frontend/src/main/kotlin/com/saveourtool/save/frontend/utils/UsefulUrls.kt | saveourtool | 300,279,336 | false | {"Kotlin": 3232579, "SCSS": 42543, "JavaScript": 5621, "HTML": 5496, "Shell": 2770, "Smarty": 2608, "Dockerfile": 1366} | package com.saveourtool.save.frontend.utils
/**
* Enum only for storing URLs to well-known website
*
* @property value real url of a website
*/
enum class UsefulUrls(val value: String) {
GITEE("https://gitee.com/"),
GITHUB("https://github.com/"),
HTTP("http://"),
HTTPS("https://"),
LINKEDIN("ht... | 188 | Kotlin | 2 | 36 | 972b592a073f2d470ba3c6b53d32bd64f5f07bb3 | 416 | save-cloud | MIT License |
plugins/kotlin/idea/tests/testData/resolve/referenceWithLib/setWithTypeParameters/src/setWithTypeParameters.kt | ingokegel | 72,937,917 | true | null | package test
import dependency.set
fun foo(a: List<Int>) {
a[<caret>"bar"] = 3
}
// REF: (for List<T> in dependency).set(String, T)
// CLS_REF: (for kotlin.collections.List<T> in dependency).set(kotlin.String, T) | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 220 | intellij-community | Apache License 2.0 |
urbanairship-preference-center/src/main/java/com/urbanairship/preferencecenter/data/Item.kt | urbanairship | 58,972,818 | false | null | package com.urbanairship.preferencecenter.data
import com.urbanairship.contacts.ChannelType
import com.urbanairship.contacts.Scope
import com.urbanairship.json.JsonException
import com.urbanairship.json.JsonList
import com.urbanairship.json.JsonMap
import com.urbanairship.json.JsonValue
import com.urbanairship.json.js... | 2 | null | 124 | 111 | 21d49c3ffd373e3ba6b51a706a4839ab3713db11 | 28,086 | android-library | Apache License 2.0 |
VivaCoronia/app/src/main/java/de/tudarmstadt/iptk/foxtrot/vivacoronia/dataStorage/entities/DBLocation.kt | ckuessner | 313,282,198 | false | null | package de.tudarmstadt.iptk.foxtrot.vivacoronia.dataStorage.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class DBLocation (
@PrimaryKey val time: String,
val longitude: Double,
val latitude: Double
) | 0 | Kotlin | 0 | 0 | 779a0382c2a3f06ed57f23b25777985bf80db5b8 | 250 | vivacoronia-frontend | Apache License 2.0 |
asm/src/main/kotlin/org/openrs2/asm/io/Pack200LibraryReader.kt | openrs2 | 315,027,372 | false | null | package org.openrs2.asm.io
import org.objectweb.asm.tree.ClassNode
import org.openrs2.compress.gzip.Gzip
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.InputStream
import java.util.jar.JarOutputStream
import java.util.jar.Pack200
public object Pack200LibraryReader : LibraryRea... | 56 | Kotlin | 2 | 8 | 12eba96055ba13e8a8e3ec0ad3be7d93b3dd5b1b | 847 | openrs2 | ISC License |
app/src/main/java/com/example/android/inventory/util/StringHelper.kt | AAli9400 | 89,738,338 | false | null | package com.example.android.inventory.util
class StringHelper {
companion object {
const val IS_ACTIVITY_FOR_EDIT: String = "is_activity_for_edit"
const val ITEM_ID_KEY: String = "item_id"
const val ITEM_NAME_KEY: String = "item_name"
const val iTEM_TYPE_KEY: String = "item_type"
... | 0 | Kotlin | 0 | 1 | 97b811aa7140af03962d95b93144b7dafab45a67 | 507 | Inventory | Apache License 2.0 |
src/test/kotlin/no/nav/arbeidsgiver/toi/presentertekandidater/SlettejobbTest.kt | navikt | 550,815,799 | false | {"Kotlin": 308167, "Dockerfile": 116} | package no.nav.arbeidsgiver.toi.presentertekandidater
import no.nav.arbeidsgiver.toi.presentertekandidater.Testdata.kandidatliste
import no.nav.arbeidsgiver.toi.presentertekandidater.kandidatliste.slettKandidaterOgKandidatlister
import org.junit.jupiter.api.*
import org.junit.jupiter.api.Assertions.assertEquals
import... | 0 | Kotlin | 0 | 0 | 4eef75f84168eecb48c81609289c30b61848b434 | 4,580 | presenterte-kandidater-api | MIT License |
app/src/main/java/com/mustafa/movieguideapp/repository/NetworkBoundRepository.kt | Mustafashahoud | 231,958,118 | false | null | package com.mustafa.movieguideapp.repository
import androidx.annotation.MainThread
import androidx.annotation.WorkerThread
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import com.mustafa.movieguideapp.api.ApiEmptyResponse
import com.mustafa.movieguideapp.api.ApiErrorResponse
import com... | 2 | null | 10 | 98 | 5f12624e566610349ba31d1eece34a32b90aa344 | 4,207 | MoviesApp | Apache License 2.0 |
libs/crypto/src/commonMain/kotlin/ktproto/crypto/aes/AESIge.kt | kotlin-telegram | 703,520,036 | false | {"Kotlin": 101478} | package ktproto.crypto.aes
import ktproto.stdlib.bytes.xor
import kotlin.experimental.xor
public suspend fun ByteArray.encryptAesIge(
key: AesKey,
iv: AesIV
): ByteArray {
require(this.size % AesBlock.SIZE_BYTES == 0) {
"Input data is not correctly padded"
}
val n = this.size / AesBlock.S... | 0 | Kotlin | 0 | 9 | 68257d022e1391c390e899c64025dbaa8d9ee755 | 972 | ktproto | MIT License |
10-async/src/main/kotlin/select/select06.kt | iproduct | 277,474,020 | false | {"JavaScript": 3237497, "Kotlin": 545267, "Java": 110766, "HTML": 83688, "CSS": 44893, "SCSS": 32196, "Dockerfile": 58} | package select.complex
import javafx.application.Application.launch
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.*
import kotlinx.coroutines.selects.select
import kotlinx.coroutines.selects.selectUnbiased
import select.onawawait.asyncStringsList
import kotlin.random.Random
fun CoroutineScope.switchM... | 0 | JavaScript | 1 | 4 | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | 1,958 | course-kotlin | Apache License 2.0 |
src/plugin-api/test/uk/co/reecedunn/intellij/plugin/processor/tests/query/execution/configurations/QueryProcessorRunConfigurationTest.kt | rhdunn | 62,201,764 | false | null | /*
* Copyright (C) 2019-2021 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 49 | null | 9 | 25 | d8d460d31334e8b2376a22f3832a20b2845bacab | 20,929 | xquery-intellij-plugin | Apache License 2.0 |
template/f-debug/src/main/java/ru/surfstudio/standard/f_debug/injector/ui/screen/configurator/activity/CommonControllersDebugScreenConfigurator.kt | eltray | 200,101,552 | true | {"Kotlin": 1787549, "Java": 826942, "FreeMarker": 54338, "Groovy": 8823, "C++": 1542, "CMake": 285} | package ru.surfstudio.standard.f_debug.injector.ui.screen.configurator.activity
import android.content.Intent
import dagger.Component
import dagger.Module
import ru.surfstudio.android.core.mvp.configurator.ScreenComponent
import ru.surfstudio.android.dagger.scope.PerScreen
import ru.surfstudio.standard.f_debug.reused_... | 0 | Kotlin | 0 | 0 | 69d435621d90954102af7424b4b309213d9bc95d | 2,045 | SurfAndroidStandard | Apache License 2.0 |
src/main/kotlin/dev/arbjerg/ukulele/command/VolumeCommand.kt | freyacodes | 309,072,724 | false | null | package dev.arbjerg.ukulele.command
import dev.arbjerg.ukulele.audio.PlayerRegistry
import dev.arbjerg.ukulele.features.HelpContext
import dev.arbjerg.ukulele.jda.Command
import dev.arbjerg.ukulele.jda.CommandContext
import org.springframework.stereotype.Component
@Component
class VolumeCommand(val players: PlayerReg... | 22 | null | 76 | 158 | 80d64df8dcbb3015edda8612a923abfc8b62e479 | 1,091 | ukulele | MIT License |
servers/graphql-kotlin-server/src/benchmarks/kotlin/GraphQLServerResponseDeserializationBenchmark.kt | ExpediaGroup | 148,706,161 | false | {"Kotlin": 2421304, "MDX": 584579, "HTML": 12165, "JavaScript": 10447, "CSS": 297, "Dockerfile": 147} | /*
* Copyright 2024 Expedia, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 62 | Kotlin | 343 | 1,732 | dd3ad233d87f4b4b685a208ec723f470a79ff5ae | 2,383 | graphql-kotlin | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/theme/Color.kt | mayojava | 351,006,148 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 1 | 281fd993e53a9cb6fdad777391e46f0e66f7d70c | 1,594 | WeatherApp | Apache License 2.0 |
app/src/main/java/ru/holofox/anicoubs/internal/bindings/BindingConverters.kt | manisha-khandare | 341,202,837 | false | null | package com.example.android.databinding.basicsample.util
import android.view.View
import androidx.databinding.BindingConversion
/**
* In order to show a View only when it has more than 0 likes, we pass this expression to its
* visibilty property:
*
* `android:visibility="@{ConverterUtil.isZero(viewmodel.likes)}"`... | 0 | Kotlin | 0 | 0 | 83b0fef36333c357ae71e8c35c1004e47aeee7b3 | 1,047 | dataBinding | MIT License |
src/main/kotlin/services/User.kt | formula-forge | 628,465,917 | false | null | package services
import TooManyRequestException
import dao.ConnectionPool
import dao.FriendDao
import dao.UserDao
import dao.entities.UserEntity
import io.vertx.core.http.Cookie
import io.vertx.core.http.CookieSameSite
import io.vertx.core.http.HttpHeaders
import io.vertx.core.json.DecodeException
import io.vertx.core... | 0 | Kotlin | 0 | 0 | 15561517c935c033691c729782f79684a1f1d67a | 26,824 | chat-server | Apache License 2.0 |
model/src/main/mmorihiro/matchland/model/ConfigModel.kt | mmorihiro | 84,188,372 | false | null | package mmorihiro.matchland.model
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.Color
import com.squareup.moshi.Moshi
object ConfigModel {
private val file = Gdx.files.local("config.json")
val moshi: Moshi = Moshi.Builder().build()
private val adapter = moshi.adapter(Config::class.java)
... | 0 | Kotlin | 2 | 15 | 29e36e20fd6f527468d5f70092f1f8115c162fb1 | 888 | matchland | Apache License 2.0 |
app/src/main/java/io/appwrite/almostnetflix/splash/SplashViewModel.kt | appwrite | 450,667,742 | false | {"Kotlin": 48456} | package io.appwrite.almostnetflix.splash
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import io.appwrite.almostnetflix.core.Configuration
import io.appwrite.exceptions.AppwriteException
import io.appwrite.model... | 0 | Kotlin | 3 | 16 | c37afc1a49873ab42753d80ce3ca91bdfe515567 | 884 | demo-almost-netflix-for-android | MIT License |
app/src/main/kotlin/de/cyb3rko/quicktrust/modals/AboutDIalog.kt | cyb3rko | 652,024,001 | false | null | /*
* Copyright (c) 2023-2024 Cyb3rKo
*
* 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... | 1 | null | 0 | 3 | 392692382d41c7fe740aac090320400f10c83e9a | 2,517 | quicktrust | Apache License 2.0 |
server/server-app/src/main/kotlin/projektor/incomingresults/model/GroupedTestSuites.kt | craigatk | 226,096,594 | false | null | package projektor.incomingresults.model
import projektor.parser.model.TestSuite
data class GroupedTestSuites(
val testSuites: List<TestSuite>,
val groupName: String?,
val groupLabel: String?,
val directory: String?,
)
| 14 | null | 15 | 47 | c6e05fe91deb611f9c56607afb1d1804b0686537 | 236 | projektor | MIT License |
Examples/BackLog/src/main/kotlin/club/minnced/backlog/out/operations.kt | MinnDevelopment | 88,094,264 | false | null | /*
* Copyright 2016 - 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 agre... | 0 | Kotlin | 0 | 19 | a3911eb802c309d71155e28bf594a58288dd2a78 | 1,023 | Gunfire | Apache License 2.0 |
dialogs/datetime/src/main/java/com/michaelflisar/dialogs/views/DateView.kt | MFlisar | 533,172,718 | false | {"Kotlin": 446157} | package com.michaelflisar.dialogs.views
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import androidx.core.graphics.drawable.DrawableCompat
import com.google.android.material.textfield.TextInputLayout
import com.michaelflisar.dialo... | 3 | Kotlin | 1 | 9 | 43fc1279039933c0943ea7f4c3516358cfaeccae | 2,068 | MaterialDialogs | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/ui/migration/ViewState.kt | Jays2Kings | 175,908,029 | true | null | package eu.kanade.tachiyomi.ui.migration
import eu.kanade.tachiyomi.source.Source
data class ViewState(
val selectedSource: Source? = null,
val mangaForSource: List<MangaItem> = emptyList(),
val sourcesWithManga: List<SourceItem> = emptyList(),
val isReplacingManga: Boolean = false
) | 54 | Kotlin | 71 | 974 | 928f7553bf800cbbc9006e7242f78741dfd64179 | 318 | tachiyomiJ2K | Apache License 2.0 |
app/src/main/java/com/aksapps/chirpchat/Activities/PhoneNumberActivity.kt | Akshat-dev-aps-9981 | 682,888,175 | false | null | package com.aksapps.chirpchat.Activities
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.text.method.LinkMovementMethod
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.aksapps.chirpchat.databinding... | 0 | Kotlin | 0 | 0 | f26720c96edcca02219d77de26acd38915b771c0 | 2,599 | Chirp-Chat | MIT License |
app/src/main/java/com/codrutursache/casey/presentation/components/BottomBar.kt | ursachecodrut | 739,025,706 | false | {"Kotlin": 162854} | package com.codrutursache.casey.presentation.base
import androidx.compose.material3.Icon
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import ... | 0 | Kotlin | 0 | 1 | f8920c46958939f2800a0c5cb663640700f2c57c | 2,537 | casey | MIT License |
backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/RetainAnnotation.kt | StefMa | 114,086,958 | true | {"Kotlin": 4269053, "C++": 825860, "Groovy": 144444, "C": 122275, "Objective-C++": 84057, "Swift": 36227, "JavaScript": 18038, "Python": 10861, "Shell": 9263, "Batchfile": 7139, "Objective-C": 3532, "Pascal": 1698, "Java": 782, "Dockerfile": 422, "HTML": 185} | /*
* Copyright 2010-2018 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.kotlin.backend.konan.llvm
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
import org.jetbrains.kotlin.descriptors.annotations.*
import... | 0 | Kotlin | 0 | 1 | 5a1952a8207ccb39e6756e9e4e3c89607f5cb56d | 565 | kotlin-native | Apache License 2.0 |
multi-choice-quiz/src/main/java/com/infinitepower/newquiz/multi_choice_quiz/components/dialog/SkipQuestionDialog.kt | joaomanaia | 443,198,327 | false | null | package com.infinitepower.newquiz.multi_choice_quiz.components.dialog
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.pluralStringResource
import androidx.compose.... | 0 | Kotlin | 10 | 84 | 08ba1d1a2b7152a3eac7a27475dce7b496fdaf0f | 1,328 | newquiz | Apache License 2.0 |
revcrm-server/src/main/kotlin/org/revcrm/entities/accounts/Address.kt | RevCRM | 78,327,204 | false | {"JavaScript": 1795259, "Kotlin": 243670, "TypeScript": 181730, "CSS": 40221, "HTML": 6649, "Dockerfile": 278, "Shell": 89} | package org.revcrm.entities.accounts
import org.revcrm.annotations.EmbeddedEntity
import org.revcrm.annotations.Label
import org.revcrm.annotations.MultiLine
import javax.validation.constraints.NotBlank
@EmbeddedEntity
class Address(
@Label("Description")
@field:NotBlank
var name: String,
@Label("Ad... | 5 | JavaScript | 1 | 3 | 4e9682e0e6919ea59105adc9522084f91b2cfb50 | 838 | kotlin-prototype | Apache License 2.0 |
app/src/main/java/com/sd/demo/tag_view/MainActivity.kt | zj565061763 | 336,210,914 | false | null | package com.sd.demo.tag_view
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.sd.demo.tag_view.databinding.ActivityMainBinding
import com.sd.lib.tag_view.FTagViewManager
class MainActivity : AppCompatActivity(), View.OnClickListen... | 0 | Kotlin | 0 | 0 | 8528e4867b39496ee65de01d627af0cd5e6dc10e | 900 | tag-view | MIT License |
build-tools/agp-gradle-core/src/main/java/com/android/build/gradle/internal/instrumentation/ClassContextImpl.kt | RivanParmar | 526,653,590 | 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 | null | 2 | 17 | a497291d77bba1aa34271808088fe1e8aab5efe2 | 1,095 | androlabs | Apache License 2.0 |
composeApp/src/commonMain/kotlin/screens/drinks/DrinkInfoTable.kt | thaapasa | 702,418,399 | false | {"Kotlin": 343456, "Swift": 661, "Shell": 262} | package fi.tuska.beerclock.screens.drinks
import androidx.compose.runtime.Composable
import fi.tuska.beerclock.drinks.BasicDrinkInfo
import fi.tuska.beerclock.drinks.DrinkDetails
import fi.tuska.beerclock.drinks.DrinkTimeService
import fi.tuska.beerclock.localization.Strings
import fi.tuska.beerclock.screens.history.D... | 0 | Kotlin | 0 | 1 | 296d6761be01023f986cada0fa7528881bd90ffa | 1,981 | beerclock | Apache License 2.0 |
bukkit/src/main/kotlin/dev/jaims/moducore/bukkit/command/itemmeta/SetLoreCommand.kt | Jaimss | 321,796,760 | false | null | /*
* This file is a part of ModuCore, licensed under the MIT License.
*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including wit... | 15 | Kotlin | 1 | 3 | 75d723bafa9f53c09e1100c7828e4085ebfa3060 | 3,286 | moducore | MIT License |
app/src/main/java/com/codingWithUmair/app/notify/ui/screens/NotifyViewModel.kt | rajaumair7890 | 649,727,543 | false | null | package com.codingWithUmair.app.notify.ui.screens
import android.net.Uri
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.graphics.asImageBitmap
import androidx.lif... | 0 | Kotlin | 0 | 0 | ab3f7532ea53ffbf63cb6779a37cb2d6729c290e | 3,302 | Notify | Apache License 2.0 |
app/src/main/java/audio/omgsoundboard/presentation/utils/extension.kt | OMGSoundboard | 72,438,238 | false | {"Kotlin": 219247, "HTML": 30981, "Dockerfile": 709} | package audio.omgsoundboard.presentation.utils
import kotlinx.coroutines.flow.Flow
inline fun <T1, T2, T3, T4, T5, T6, R> combine(
flow: Flow<T1>,
flow2: Flow<T2>,
flow3: Flow<T3>,
flow4: Flow<T4>,
flow5: Flow<T5>,
flow6: Flow<T6>,
crossinline transform: suspend (T1, T2, T3, T4, T5, T6) ->... | 3 | Kotlin | 4 | 21 | d7b1a5f24db1135d344676eecad8a46d9470bcac | 674 | android-app | Apache License 2.0 |
backend/src/main/kotlin/com/denchic45/studiversity/feature/studygroup/eventsource/StudyGroupEvent.kt | denchic45 | 435,895,363 | false | {"Kotlin": 2033820, "Vue": 15083, "JavaScript": 2830, "CSS": 1496, "HTML": 867} | package com.denchic45.studiversity.feature.studygroup.eventsource
sealed class StudyGroupEvent {
} | 0 | Kotlin | 0 | 7 | 9d1744ffd9e1652e93af711951e924b739e96dcc | 100 | Studiversity | Apache License 2.0 |
app/src/test/java/com/douglas/githubauth/module/core/CoreViewModelTest.kt | douglas-queiroz | 186,172,907 | false | {"Kotlin": 56818} | package com.douglas.githubauth.module.core
import android.arch.core.executor.testing.InstantTaskExecutorRule
import com.douglas.githubauth.TestObserver
import com.douglas.githubauth.domain.CheckLoginUseCase
import com.douglas.githubauth.testObserver
import org.junit.Assert.assertEquals
import org.junit.Before
import o... | 0 | Kotlin | 0 | 0 | 063115e6f44e93e4f9ba0063bf43da6e02b77359 | 1,575 | Github-Auth | Apache License 2.0 |
app/src/main/kotlin/jp/co/yumemi/android/code_check/repositoryList/RepositoryListScreen.kt | LottieAnne | 575,219,377 | false | null | package jp.co.yumemi.android.code_check.repositoryList
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx... | 7 | Kotlin | 0 | 0 | a907197da28c00c97e8f744c1f6de84ece9c7f48 | 3,014 | android-codecheck | Apache License 2.0 |
shared/core/design-system/src/commonMain/kotlin/com/edugma/core/designSystem/molecules/avatar/EdAvatar.kt | Edugma | 474,423,768 | false | null | package com.edugma.core.designSystem.molecules.avatar
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.fou... | 1 | null | 0 | 3 | d9149728b9dee61606d7c46d80bc474a77f46362 | 2,567 | app | MIT License |
src/test/kotlin/lt/petuska/transaction/api/routing/users/user/accounts/GetAllAccountsRouteFeature.kt | mpetuska | 199,023,865 | false | null | package lt.petuska.transaction.api.routing.users.user.accounts
import com.zaxxer.hikari.*
import io.ktor.http.*
import io.ktor.server.testing.*
import io.ktor.util.*
import io.mockk.*
import lt.petuska.transaction.api.config.*
import lt.petuska.transaction.api.domain.error.*
import lt.petuska.transaction.api.model.*
i... | 1 | Kotlin | 2 | 3 | 3d33b61cf6a061d8486893135a8ee983f1bdfa71 | 2,964 | transaction-api | Apache License 2.0 |
kt/godot-library/src/main/kotlin/godot/gen/godot/TriangleMesh.kt | utopia-rise | 289,462,532 | false | null | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE")
package godot
import godot.`annotation`.G... | 47 | Kotlin | 25 | 301 | 0d33ac361b354b26c31bb36c7f434e6455583738 | 619 | godot-kotlin-jvm | MIT License |
app/src/main/java/com/example/lucknowcityguide/LoginActivity.kt | shashankmunda | 361,434,258 | false | null | package com.example.lucknowcityguide
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.widget.Button
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity
class LoginActivity : AppCompatActivity() {
lateinit var logIn: Button
lateinit... | 0 | Kotlin | 0 | 0 | 40e9132d32e5a76afb2e0e5445b748f07b7c9305 | 1,345 | City-Tour-Guide | Creative Commons Zero v1.0 Universal |
project-system-gradle-upgrade/testSrc/com/android/tools/idea/gradle/project/upgrade/RemoveBuildTypeUseProguardRefactoringProcessorTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,872 | android | Apache License 2.0 |
mentor/src/main/java/com/solutionteam/mentor/ui/home/component/InComingMeeting.kt | DevSkillSeekers | 746,597,864 | false | {"Kotlin": 412451} | package com.solutionteam.mentor.ui.home.component
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.basicMarquee
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import andr... | 1 | Kotlin | 0 | 1 | 05d9da5efba3b9ca8b0c2e409d1329d8e22f19dd | 3,080 | GradesFromGeeks | Apache License 2.0 |
src/main/kotlin/org/incava/mesa/Table.kt | jpace | 483,382,354 | false | {"Kotlin": 191993, "Ruby": 674} | package org.incava.mesa
import java.io.PrintStream
open class Table(private val columns: List<Column>, private val out: PrintStream = System.out) {
fun writeHeader() {
val names = columns.map(Column::formatHeader)
writeStrings(names)
}
fun writeBreak(char: Char) {
val sb = StringB... | 0 | Kotlin | 0 | 0 | e17236627a3996d6181e1e856a0ecccfa396d9a6 | 893 | mmonkeys | MIT License |
ontrack-extension-svn/src/main/java/net/nemerosa/ontrack/extension/svn/model/SVNChangeLogFile.kt | ReginaBabo | 245,408,806 | true | {"Java": 2224530, "Kotlin": 2141387, "Groovy": 807848, "JavaScript": 428163, "HTML": 326440, "CSS": 144727, "TSQL": 23826, "Shell": 6022, "Dockerfile": 5144} | package net.nemerosa.ontrack.extension.svn.model
import net.nemerosa.ontrack.extension.scm.model.SCMChangeLogFile
import net.nemerosa.ontrack.extension.scm.model.SCMChangeLogFileChangeType
class SVNChangeLogFile(
override val path: String,
val url: String
) : SCMChangeLogFile {
val changes = muta... | 0 | null | 0 | 0 | 2559a95e2ebf41f52c6b409f2fa828558a260784 | 593 | ontrack | MIT License |
app/src/main/java/com/example/homeswap_android/ui/apartment/AddApartmentBasicDetailsFragment.kt | lisisaraujo | 834,512,241 | false | {"Kotlin": 222972} | package com.example.homeswap_android.ui.apartment
import android.annotation.SuppressLint
import android.icu.util.Calendar
import android.icu.util.TimeZone
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
im... | 0 | Kotlin | 0 | 0 | fe031a617a2f456f36ead6d04f85fedf92f8e322 | 6,086 | HomeSwap---Android | MIT License |
app/src/main/java/com/codepath/hippo/TrendingActorsAdapter.kt | ottercrossing | 544,617,172 | false | {"Kotlin": 9549} | package com.codepath.hippo
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Gli... | 3 | Kotlin | 0 | 0 | d69b665d591e8bb10d137515dd09ccc81148f4c0 | 2,209 | and102-lab4-starter | Apache License 2.0 |
zoomimage-core-picasso/src/main/kotlin/com/github/panpf/zoomimage/picasso/internal/PicassoOtherUtils.kt | panpf | 647,222,866 | false | {"Kotlin": 3004367, "Shell": 724} | package com.github.panpf.zoomimage.picasso.internal
internal fun Any.toHexString(): String = Integer.toHexString(this.hashCode()) | 1 | Kotlin | 7 | 98 | bdc00e862498830df39a205de5d3d490a5f04444 | 131 | zoomimage | Apache License 2.0 |
src/main/kotlin/g2301_2400/s2347_best_poker_hand/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g2301_2400.s2347_best_poker_hand
// #Easy #Array #Hash_Table #Counting #2023_07_01_Time_146_ms_(33.33%)_Space_34_MB_(66.67%)
class Solution {
fun bestHand(ranks: IntArray, suits: CharArray): String {
val map = HashMap<Char, Int>()
for (suit in suits) {
if (map.containsKey(suit)... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 1,050 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/com/sduduzog/slimlauncher/ui/dialogs/RenameAppDisplayNameDialog.kt | jkuester | 199,106,667 | true | {"Kotlin": 157808} | package com.sduduzog.slimlauncher.ui.dialogs
import android.app.Dialog
import android.os.Bundle
import android.widget.EditText
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import com.jkuester.unlauncher.datastore.UnlauncherApp
import com.sduduzog.sli... | 39 | Kotlin | 47 | 251 | 9420a670388dd4e0ad3bb6286fb00832ba3441cc | 2,176 | unlauncher | MIT License |
app/src/main/java/com/example/taobaounion/data/selected/SelectedContent.kt | tvwzrq | 485,035,984 | false | {"Kotlin": 96410} | package com.example.taobaounion.data.selected
data class SelectedContent(
val tbk_dg_optimus_material_response: TbkDgOptimusMaterialResponse
)
data class TbkDgOptimusMaterialResponse(
val is_default: String,
val request_id: String,
val result_list: ResultList,
val total_count: Int
)
data class Resu... | 0 | Kotlin | 1 | 0 | 0f2584aa4401c69935f617bf5243d05eeec6ca67 | 428 | TaobaoUnion | Apache License 2.0 |
Chapter 04/app/src/main/java/com/example/statetriviachapter4/adapters/StateAdapter.kt | bpbpublications | 685,969,351 | false | {"Kotlin": 89819} | package com.example.statetriviachapter4.adapters
// imports
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.example.statetriviachapter4.databinding.CardItemBinding
import com.example.statetriviachapter4.models.State
// class StateAdapter with... | 0 | Kotlin | 0 | 0 | 064e9e5de00be273b974769b3d1c69dffb562665 | 1,431 | My-First-Mobile-App-for-Students | MIT License |
increase-kotlin-core/src/main/kotlin/com/increase/api/services/blocking/AccountService.kt | Increase | 614,596,742 | false | {"Kotlin": 10575238, "Shell": 3638, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.increase.api.services.blocking
import com.increase.api.core.RequestOptions
import com.increase.api.models.Account
import com.increase.api.models.AccountBalanceP... | 0 | Kotlin | 0 | 5 | dc1361d08cb41ff45817c2e7638f53356f15cf8e | 1,689 | increase-kotlin | Apache License 2.0 |
OPSC7312_BirdAllies/app/src/main/java/com/example/opsc7312_birdallies/MySightings/MySightingsAdapter.kt | ST10092443 | 697,434,611 | false | {"Kotlin": 72797} | package com.example.opsc7312_birdallies.MySightings
import com.example.opsc7312_birdallies.R
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
public class MySightingsAdapter(
private val sigh... | 0 | Kotlin | 0 | 0 | 94817168057990f6f2507ce532f72943f1e2005b | 1,790 | OPSC7312_BirdAllies | MIT License |
server/data/src/main/kotlin/com/studystream/data/model/Privilege.kt | ImpossibleAccuracy | 834,219,225 | false | {"Kotlin": 158719, "Dockerfile": 625} | package com.studystream.data.model
import com.studystream.data.database.tables.PrivilegeTable
import com.studystream.domain.model.Id
import com.studystream.domain.security.Permission
import org.jetbrains.exposed.dao.IntEntity
import org.jetbrains.exposed.dao.id.EntityID
class Privilege(id: EntityID<Id>) : IntEntity(i... | 0 | Kotlin | 0 | 0 | 926d410c2edb95ff2d4ee5e4f36eab138fcff9f4 | 539 | study-stream | The Unlicense |
task/src/main/java/ru/roborox/reactive/task/TaskRunner.kt | roborox | 281,449,914 | false | null | package ru.roborox.reactive.task
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.reactive.awaitFirst
import kotlinx.coroutines.reactive.awaitFirstOrNull
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.context.Applica... | 0 | Kotlin | 0 | 0 | 5c9e0f407c1ae389fe79efb9a836c418244cf9bf | 3,089 | spring-reactive | MIT License |
src/main/kotlin/just4fun/holomorph/forms/schema.kt | just-4-fun | 105,437,872 | false | null | package just4fun.holomorph.forms
import just4fun.holomorph.*
import just4fun.holomorph.types.SchemaType
/** The factory for Schema serialization form. */
class SchemaFactory<T: Any>(val schema: SchemaType<T>): ProduceFactory<T, T> {
override fun invoke(input: T): EntryProvider<T> = SchemaProvider(input, schema)
ov... | 0 | Kotlin | 1 | 2 | 5cbeb6827417670626f083f5f71e31da5fa55eab | 7,315 | holomorph | Apache License 2.0 |
msal/src/main/java/com/microsoft/identity/nativeauth/statemachine/results/GetAccessTokenResult.kt | AzureAD | 64,339,521 | false | {"Java": 2084397, "Kotlin": 783134} | package com.microsoft.identity.nativeauth.statemachine.results
import com.microsoft.identity.client.IAuthenticationResult
interface GetAccessTokenResult : Result {
class Complete(override val resultValue: IAuthenticationResult) :
Result.CompleteResult(resultValue = resultValue),
GetAccessTokenRes... | 69 | Java | 124 | 214 | d2deec34dfde6ea445309af3621f5642ea184881 | 326 | microsoft-authentication-library-for-android | MIT License |
kafka-connect-neo4j/src/main/kotlin/streams/kafka/connect/source/Neo4jSourceTask.kt | neo4j-contrib | 125,791,389 | false | null | package streams.kafka.connect.source
import com.github.jcustenborder.kafka.connect.utils.VersionUtil
import org.apache.kafka.connect.source.SourceRecord
import org.apache.kafka.connect.source.SourceTask
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import streams.kafka.connect.sink.Neo4jSinkTask
import stream... | 55 | null | 71 | 173 | e3044dac8faf5df9586538e44a760f1c9d797eb8 | 1,250 | neo4j-streams | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.