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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
colorpicker/src/main/java/vadiole/colorpicker/ColorPickerDialog.kt | vadiole | 359,756,768 | false | null | package vadiole.colorpicker
import android.app.Dialog
import android.os.Bundle
import androidx.annotation.ColorInt
import androidx.annotation.StringRes
import androidx.appcompat.app.AlertDialog
import androidx.core.graphics.ColorUtils
import androidx.core.os.bundleOf
import androidx.fragment.app.DialogFragment
import ... | 3 | Kotlin | 4 | 35 | c2026d1d0fb750e522dd1f49bd7920ae95de71f4 | 12,311 | colorpicker | Apache License 2.0 |
fxgl/src/main/kotlin/com/almasb/fxgl/app/Engine.kt | AlmasB | 32,761,091 | false | {"Java": 1808557, "Kotlin": 1802895, "CSS": 45751, "JavaScript": 6195, "HTML": 3049, "C++": 2908, "kvlang": 134} | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.app
import com.almasb.fxgl.core.EngineService
import com.almasb.fxgl.core.Inject
import com.almasb.fxgl.core.collection.PropertyMap
import com.almasb.fxgl.core.concurrent... | 138 | Java | 546 | 4,315 | c0eaf4b0af29cf062867a37f3424a4ac37e8dcca | 5,627 | FXGL | MIT License |
backend.native/tests/runtime/workers/worker_threadlocal_no_leak.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-2020 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.
*/
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, ObsoleteWorkersApi::class)
import kotlin.native.concurrent.*
import kotlin.native.Platform
@ThreadLocal
v... | 166 | null | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 575 | kotlin-native | Apache License 2.0 |
attribution/src/main/java/com/affise/attribution/events/subscription/SubscriptionEnteredBillingRetry.kt | affise | 496,592,599 | false | null | package com.affise.attribution.events.subscription
import org.json.JSONObject
/**
* Event TrialInRetry use [data] of event and [userData]
*/
class TrialInRetryEvent @JvmOverloads constructor(
data: JSONObject? = null,
userData: String? = null
) : BaseSubscriptionEvent(data, userData) {
/**
* Type ... | 0 | null | 0 | 5 | ab7d393c6583208e33cef9e10e01ba9dd752bbcb | 1,542 | sdk-android | MIT License |
injectk_dagger_hilt_test/src/main/java/com/mozhimen/injectk/dagger/hilt/test/vms/MainViewModel.kt | mozhimen | 798,115,184 | false | {"Kotlin": 23436} | package com.mozhimen.injectk.dagger.hilt.test.vms
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.mozhimen.kotlin.elemk.androidx.lifecycle.bases.BaseViewModel
import com.mozhimen.injectk.dagger.hilt.... | 0 | Kotlin | 0 | 0 | a8742505a07231da0269ff6bb9ac0dbf2c6c961d | 1,957 | AInjectKit | MIT License |
src/main/kotlin/com/nibado/projects/advent/y2017/Day14.kt | nielsutrecht | 47,550,570 | false | null | package com.nibado.projects.advent.y2017
import com.nibado.projects.advent.*
import com.nibado.projects.advent.Point
object Day14 : Day {
private val rows = (0..127).map { "amgozmfv-$it" }
private val square : List<String> by lazy { rows.map { hash(it) }.map { toBinary(it) } }
override fun part1() = squa... | 1 | Kotlin | 0 | 16 | b4221cdd75e07b2860abf6cdc27c165b979aa1c7 | 1,301 | adventofcode | MIT License |
user-error-api/src/main/kotlin/net/plshark/usererror/user/UserCreate.kt | twinklehawk | 138,668,802 | false | null | package net.plshark.usererror.user
data class UserCreate(val username: String, val password: String)
| 10 | null | 1 | 1 | de43c003235a141076722eb45640dea1202f9809 | 102 | bad-users | Apache License 2.0 |
DaggerSingleModuleApp/app/src/main/java/com/github/yamamotoj/daggersinglemoduleapp/package19/Foo01910.kt | yamamotoj | 163,851,411 | false | null | package com.github.yamamotoj.module4.package19
import javax.inject.Inject
class Foo01910 @Inject constructor(){
fun method0() { Foo01909().method5() }
fun method1() { method0() }
fun method2() { method1() }
fun method3() { method2() }
fun method4() { method3() }
fun method5() { method4() }
}
| 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 317 | android_multi_module_experiment | Apache License 2.0 |
src/test/kotlin/com/example/demo/service/impl/MemoServiceIntegrationTests.kt | rubytomato | 128,201,361 | false | null | package com.example.demo.service.impl
import com.example.demo.service.MemoService
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.... | 1 | null | 1 | 5 | 69fed570a51ee0ab852876bd57c481b90f9f237e | 940 | demo-kotlin-spring2 | MIT License |
app/src/main/java/com/project/findhere/AddActivity.kt | yukkohzq | 385,481,000 | false | null | package com.project.findhere
import android.app.Activity
import android.app.DatePickerDialog
import android.content.ContentValues.TAG
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Matrix
import android... | 0 | Kotlin | 0 | 1 | 2f3c7e96172e2dbf2ccee7647a1f7b039156da11 | 13,740 | Findhere | MIT License |
feature_search/src/main/java/com/pimenta/bestv/search/domain/UrlEncoderTextUseCase.kt | marcuspimenta | 132,016,354 | false | null | /*
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed u... | 5 | null | 20 | 54 | 63b92f876dd7d4571d3824e723e67c1872d25cd3 | 905 | BESTV | Apache License 2.0 |
src/jvmTest/kotlin/io/grule/parser/RecursiveParserTest.kt | 7hens | 376,845,987 | false | null | package io.grule.parser
import org.junit.Test
import kotlin.test.assertEquals
class RecursiveParserTest {
@Test
fun itMe() {
RepeatGrammar().apply {
val source = "0 1 2 3 4 5 6"
println("================")
println(source)
println("X + Num self { it + me... | 0 | Kotlin | 0 | 1 | 3c00cfd151e78515a93f20a90369e43dd3b75f73 | 7,442 | grule | Apache License 2.0 |
multipaysdk/src/main/java/com/inventiv/multipaysdk/util/Validator.kt | multinetinventiv | 332,757,520 | false | null | package com.inventiv.multipaysdk.util
import android.util.Patterns
import com.inventiv.multipaysdk.MultiPaySdk
import com.inventiv.multipaysdk.R
import com.inventiv.multipaysdk.data.model.type.ValidationErrorType
internal object Validator {
const val INPUT_TYPE_EMAIL = 0
const val INPUT_TYPE_GSM = 1
cons... | 0 | Kotlin | 0 | 0 | a13e2f5faa0fcb9cc8479d83b8cdfcbbb3bb2462 | 2,524 | MultiPay-Android-Sdk | Apache License 2.0 |
modules/wasm-binary/src/commonMain/kotlin/tree/instructions/MinInstruction.kt | wasmium | 761,480,110 | false | {"Kotlin": 352107, "JavaScript": 200} | package org.wasmium.wasm.binary.tree.instructions
import org.wasmium.wasm.binary.tree.Opcode
import org.wasmium.wasm.binary.visitors.FunctionBodyVisitor
public class MinInstruction(public override val opcode: Opcode) : NoneInstruction {
override fun accept(functionBodyVisitor: FunctionBodyVisitor) {
funct... | 0 | Kotlin | 0 | 1 | f7ddef76630278616d221e7c8251adf0f11b9587 | 371 | wasmium-wasm-binary | Apache License 2.0 |
compiler/testData/asJava/lightClasses/ideRegression/ImplementingCharSequenceAndNumber.kt | JakeWharton | 99,388,807 | false | null | // p1.Container
package p1
class Container {
class MyString : CharSequence {
override val length: Int
get() = 0
override fun chars(): IntStream = error("")
override fun codePoints(): IntStream = error("")
override fun get(index: Int): Char = 'c'
override fun ... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,035 | kotlin | Apache License 2.0 |
ApiDemos/kotlin/app/src/v3/java/com/example/kotlindemos/OnMapAndViewReadyListener.kt | googlemaps-samples | 34,364,279 | false | null | /*
* Copyright 2018 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 53 | null | 5 | 2,416 | 00c5b8c0e0e767773fb7991e2080bd5bc7007645 | 3,394 | android-samples | Apache License 2.0 |
core/design-system/src/main/java/dev/enesky/core/design_system/annotation/PreviewUiMode.kt | enesky | 708,119,546 | false | null | /*
* Copyright 2023
* Designed and developed by <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/LICEN... | 28 | null | 0 | 9 | 1341678e0974fc0e0292836e9a8571da679150d9 | 1,161 | Doodle | Apache License 2.0 |
packages/default-storage/android/src/test/java/com/reactnativecommunity/asyncstorage/next/StorageTest.kt | react-native-async-storage | 169,431,434 | false | null | package abi49_0_0.com.reactnativecommunity.asyncstorage.next
import androidx.room.Room
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.corout... | 627 | null | 467 | 4,720 | bb41ee1574862798ac106843bae6843774d78f8d | 4,215 | async-storage | MIT License |
compiler/testData/diagnostics/tests/backingField/FieldShadow.fir.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | class My {
// No initialization needed because no backing field
val two: Int
get() {
val field = 2
return field
}
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 164 | kotlin | Apache License 2.0 |
src/main/kotlin/com/skillw/fightsystem/internal/manager/PersonalManagerImpl.kt | Skillw | 591,845,487 | false | {"Kotlin": 162033, "JavaScript": 15586} | package com.skillw.fightsystem.internal.manager
import com.skillw.fightsystem.api.manager.PersonalManager
import com.skillw.fightsystem.internal.feature.personal.PersonalData
import com.skillw.pouvoir.api.script.ScriptTool
import com.skillw.pouvoir.internal.feature.database.PouvoirContainer
import com.skillw.pouvoir.u... | 0 | Kotlin | 4 | 6 | 84a1273549df31573acb4e8ae32d46923ebc23d1 | 1,833 | FightSystem | MIT License |
demo/src/main/java/com/backbase/deferredresources/demo/DemoPagerAdapter.kt | morristech | 320,873,386 | true | {"Kotlin": 177397, "Java": 7833, "Shell": 1308} | package com.backbase.deferredresources.demo
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.recyclerview.widget.RecyclerView
import com.backbase.deferredresources.DeferredColor
import com.backbase.deferredr... | 0 | null | 0 | 0 | 6b9c418c325639830ebfb43bcef0d6c0da5be2e2 | 3,712 | DeferredResources | Apache License 2.0 |
src/main/kotlin/in/obvious/mobius/creator/util/DependencyHandler.kt | obvious | 250,562,058 | false | null | package `in`.obvious.mobius.creator.util
import com.android.ide.common.repository.GradleCoordinate
import com.android.tools.idea.projectsystem.getModuleSystem
import com.intellij.openapi.module.ModuleUtil
import com.intellij.psi.PsiDirectory
class DependencyHandler(directory: PsiDirectory) {
private val module = M... | 0 | Kotlin | 0 | 9 | 4edd73f8ae7590e21c6894e2708bf3e6e4f8bd59 | 657 | mobius-creator | MIT License |
app/src/main/java/com/kylecorry/trail_sense/tools/paths/ui/commands/ImportPathsCommand.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.tools.paths.ui.commands
import android.content.Context
import androidx.lifecycle.LifecycleOwner
import com.kylecorry.andromeda.alerts.Alerts
import com.kylecorry.andromeda.core.coroutines.BackgroundMinimumState
import com.kylecorry.andromeda.core.coroutines.onDefault
import com.kyleco... | 456 | null | 66 | 989 | 41176d17b498b2dcecbbe808fbe2ac638e90d104 | 5,360 | Trail-Sense | MIT License |
rpglib/src/main/kotlin/com/naosim/rpglib/android/fieldviewmodel/WebFieldViewModelImpl.kt | naosim | 65,505,136 | false | {"JavaScript": 817270, "Kotlin": 67806, "Java": 4165, "HTML": 1637, "Shell": 42} | package com.naosim.rpglib.android.fieldviewmodel
import android.util.Log
import android.webkit.ConsoleMessage
import android.webkit.WebChromeClient
import android.webkit.WebView
import com.naosim.rpglib.model.value.field.*
import com.naosim.rpglib.model.viewmodel.fieldviewmodel.FieldViewModel
import org.json.JSONArray... | 0 | JavaScript | 0 | 0 | a26dd7ff3da98dd82eabbff50bd2098974743655 | 4,516 | RPGSample | MIT License |
app/src/main/java/com/example/commontask/view/mappers/ForecastCommonMapper.kt | Arhs92 | 136,605,425 | false | {"Java": 2710649, "Kotlin": 43646, "CSS": 9707, "HTML": 2131} | package com.example.commontask.view.mappers
import java.text.SimpleDateFormat
import java.util.*
object ForecastCommonMapper {
fun getWeatherDescription(icon: String): String = when (icon) {
"clear-day", "clear-night" -> "clear sky"
"rain" -> "rain"
"snow" -> "snow"
"sleet" -> "... | 1 | null | 1 | 1 | 6d4ff919debe04b09fbabe8fd4b40dc933cb90f6 | 4,993 | AppLea | Apache License 2.0 |
easing/src/commonMain/kotlin/co/touchlab/composeanimations/easing/Circ.kt | touchlab | 392,801,626 | false | {"Kotlin": 56518, "Swift": 551} | package co.touchlab.composeanimations.easing
import androidx.compose.animation.core.Easing
import kotlin.math.pow
import kotlin.math.sqrt
// https://easings.net/#easeInCirc
object EaseInCirc : Easing {
override fun transform(fraction: Float): Float =
1 - sqrt(1 - fraction.pow(2))
}
// https://easings.net... | 0 | Kotlin | 1 | 48 | b14e1c2ec270eff99bb5d2c6141e7a3e1ff7d649 | 732 | compose-animations | Apache License 2.0 |
github/src/main/kotlin/gropius/sync/github/config/MongoConfig.kt | ccims | 487,996,394 | false | {"Kotlin": 958426, "TypeScript": 437791, "MDX": 55477, "JavaScript": 25165, "HTML": 17174, "CSS": 4796, "Shell": 2363} | package gropius.sync.github.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.convert.converter.Converter
import org.springframework.data.mongodb.core.convert.MongoCustomConversions
import java.time.OffsetDateTime
impor... | 3 | Kotlin | 1 | 0 | de0ece42541db960a08e1448cf0bd5afd65c996a | 1,425 | gropius-backend | MIT License |
core/src/test/kotlin/core/model/HandlerMethodComparatorTest.kt | gitter-badger | 152,720,407 | false | {"YAML": 10, "Maven POM": 14, "Text": 1, "Ignore List": 1, "Markdown": 1, "XML": 5, "Kotlin": 90, "INI": 4, "Java": 21} | /*
* Lamblin
* Copyright 2018 <NAME>
* Licensed under Apache 2.0: https://github.com/BorislavShekerov/lamblin/blob/master/LICENSE
*/
package core.model
import com.lamblin.core.model.HandlerMethod
import com.lamblin.core.model.HandlerMethodComparator
import com.lamblin.core.model.HandlerMethodParameter
import com.... | 1 | null | 1 | 1 | c0b5a12d7696b172ddeccef39f7c15663c1b2b3d | 5,601 | lamblin | Apache License 2.0 |
src/main/kotlin/server/routing/RoutingMap.kt | spbu-math-cs | 698,589,492 | false | {"Kotlin": 145510} | package server.routing
import db.DBOperator
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.plugins.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import org.json.JSONObject
import server.logger
import server.utils.handleHTTPRequestException
import java.io.File
fun ... | 7 | Kotlin | 1 | 3 | d7e63d8f732b0a8af9f4a951edda1ec8e2623005 | 4,242 | RollPlayer-backend | Apache License 2.0 |
recommend/src/main/java/com/allever/lib/recommend/Recommend.kt | devallever | 244,091,663 | false | null | package com.allever.app.kotlin.coroutine.retrofit
import androidx.annotation.Keep
@Keep
class Recommend {
var id: Int = 0
var type: Int = 0
var name: String = ""
var iconResId: Int = 0
var desc: String = ""
var size: String = ""
var channel: String = ""
var pkg: String = ""
var url... | 0 | null | 9 | 40 | 8d11947254b39fff7ec7aa8d7a623ce41b5250f5 | 464 | TranslationTextOpenSource | Apache License 2.0 |
feature/lightbox/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/lightbox/view/implementation/navigation/LightboxNavigationTarget.kt | savvasdalkitsis | 485,908,521 | false | null | /*
Copyright 2023 Savvas Dalkitsis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | 48 | Kotlin | 15 | 245 | 4246c45d76b1371f45492ec38aaa954f71aab363 | 1,953 | uhuruphotos-android | Apache License 2.0 |
src/main/kotlin/no/nav/omsorgspenger/ApplicationContext.kt | navikt | 300,249,592 | false | null | package no.nav.omsorgspenger
import io.ktor.client.*
import io.ktor.client.engine.okhttp.*
import no.nav.helse.dusseldorf.ktor.health.HealthCheck
import no.nav.helse.dusseldorf.oauth2.client.AccessTokenClient
import no.nav.helse.dusseldorf.oauth2.client.ClientSecretAccessTokenClient
import no.nav.k9.rapid.river.Enviro... | 9 | Kotlin | 0 | 0 | ab1ab35759d3e6a2c5c43c094e5ba8182ff6c93c | 3,422 | omsorgspenger-journalforing | MIT License |
compiler/testData/diagnostics/tests/lateinit/local/localLateinit.kt | JakeWharton | 99,388,807 | false | null | // !LANGUAGE: +LateinitLocalVariables
fun test() {
lateinit var s: String
s = ""
s.length
} | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 104 | kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/lateinit/local/localLateinit.kt | JakeWharton | 99,388,807 | false | null | // !LANGUAGE: +LateinitLocalVariables
fun test() {
lateinit var s: String
s = ""
s.length
} | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 104 | kotlin | Apache License 2.0 |
plugins/android-idea-plugin/tests/org/jetbrains/kotlin/android/AbstractParserResultEqualityTest.kt | erokhins | 10,382,997 | true | {"Markdown": 33, "XML": 666, "Ant Build System": 45, "Ignore List": 7, "Git Attributes": 1, "Kotlin": 21040, "Java": 4546, "Protocol Buffer": 7, "Text": 4675, "JavaScript": 63, "JAR Manifest": 3, "Roff": 46, "Roff Manpage": 11, "INI": 17, "HTML": 154, "Groovy": 23, "Java Properties": 14, "Maven POM": 49, "Gradle": 74, ... | /*
* Copyright 2010-2015 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... | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 1,902 | kotlin | Apache License 2.0 |
app/src/androidTest/java/com/vishalgaur/shoppingapp/data/source/FakeProductsRepository.kt | i-vishi | 358,205,394 | false | null | package com.vishalgaur.shoppingapp.data.source
import android.net.Uri
import androidx.core.net.toUri
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import com.vishalgaur.shoppingapp.data.Product
import com.vishalgaur.shoppingapp.data.Result
import... | 1 | null | 47 | 97 | 1768ebf52bb9ae27fe7eca9e92b999cbcd7113f6 | 3,497 | shopping-android-app | MIT License |
src/commonMain/generated/kotlin/ch/tutteli/kbox/Tuple2Like.kt | robstoll | 79,735,987 | false | null | // --------------------------------------------------------------------------------------------------------------------
// automatically generated, don't modify here but in:
// gradle/code-generation/src/main/kotlin/code-generation.generate.gradle.kts
// -----------------------------------------------------------------... | 1 | null | 3 | 8 | 9546196cfb0ee0c6b672b9d0e61ceaa034b4121b | 986 | kbox | Apache License 2.0 |
extension/src/main/java/vip/frendy/extension/base/BaseSwipeBackFragmentActivity.kt | frendyxzc | 106,224,204 | false | {"Java": 125513, "Kotlin": 38449} | package vip.frendy.extension.base
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import vip.frendy.extension.R
/**
* Created by frendy on 2017/10/11.
*/
abstract class BaseFragmentActivity: BaseActivity() {
protected var currentFragment: Fragment? = null
overr... | 1 | null | 1 | 1 | a6ef1a6cc58166f18318f01aa7634c52a1343bb4 | 1,783 | KExtension | MIT License |
app/src/main/java/com/developerspace/webrtcsample/legacy/MainActivity.kt | nur-shuvo | 693,727,158 | false | {"Kotlin": 249872} | package com.developerspace.webrtcsample.legacy
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import com.developerspace.webrtcsample.R
import com.developerspace.webrtcsample.legacy.activeUsers.ui.ActiveU... | 5 | Kotlin | 0 | 1 | 33aa99b42433f718629e4896c5c16f0f878a38b1 | 4,725 | SwapMind | MIT License |
src/main/kotlin/TestingControl.kt | cs125-illinois | 277,361,183 | false | null | package edu.illinois.cs.cs125.jenisol.core
import java.lang.RuntimeException
sealed class TestingControlException : RuntimeException()
class SkipTest : TestingControlException()
class BoundComplexity : TestingControlException() | 0 | Kotlin | 0 | 1 | 0643c0ce6f4035f0ecff31688ee78089b91295f1 | 229 | jenisol | MIT License |
favorite/src/main/java/com/masscode/animesuta/favorite/FavoriteModule.kt | agustiyann | 299,888,684 | false | null | package com.masscode.animesuta.favorite
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module
val favoriteModule = module {
viewModel { FavoriteViewModel(get()) }
} | 0 | Kotlin | 10 | 55 | 0a51677ddcd69eb9f8c2f9c8da62518c894d06ce | 191 | Android-Clean-Architecture | Apache License 2.0 |
posts/src/main/java/com/karntrehan/posts/details/model/DetailsDataContract.kt | karntrehan | 93,308,442 | false | null | package com.karntrehan.posts.details.model
import com.karntrehan.posts.commons.data.local.Comment
import com.mpaani.core.networking.Outcome
import io.reactivex.Flowable
import io.reactivex.subjects.PublishSubject
interface DetailsDataContract {
interface Repository {
val commentsFetchOutcome: PublishSubje... | 0 | null | 98 | 611 | b22ec155b9ddf831a7670cf216187dde3b0264af | 784 | Posts | Apache License 2.0 |
demo/demo/src/jsMain/kotlin/zakadabar/demo/frontend/pages/ship/SearchForm.kt | kondorj | 355,137,640 | true | {"Kotlin": 577495, "HTML": 828, "JavaScript": 820, "Shell": 253} | /*
* Copyright © 2020, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.demo.frontend.pages.ship
import zakadabar.demo.data.PortDto
import zakadabar.demo.data.SeaDto
import zakadabar.demo.data.ship.SearchShipsQuery
import zakadabar.demo.data.sp... | 0 | null | 0 | 0 | 2379c0fb031f04a230e753a9afad6bd260f6a0b2 | 1,956 | zakadabar-stack | Apache License 2.0 |
src/main/kotlin/org/rooftop/netx/api/TransactionManager.kt | rooftop-MSA | 751,298,974 | false | {"Kotlin": 169884, "Java": 8573} | package org.rooftop.netx.api
import reactor.core.publisher.Mono
interface TransactionManager {
fun <T : Any> start(undo: T): Mono<String>
fun <T : Any, S : Any> start(undo: T, event: S): Mono<String>
fun <T : Any> syncStart(undo: T): String
fun <T : Any, S : Any> syncStart(undo: T, event: S): Stri... | 10 | Kotlin | 0 | 5 | 80e8758fa6d22744ea95afec2743351de41fcce3 | 1,308 | Netx | Apache License 2.0 |
app/src/main/java/com/koma/video/search/SearchAdapter.kt | komamj | 135,701,576 | false | {"Kotlin": 177378} | /*
* Copyright 2018 koma_mj
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 1 | 1 | be4142c9126b0e74cd1d8d1dcaae5285505294d8 | 4,164 | Video | Apache License 2.0 |
app/src/main/java/com/chillibits/pmapp/widget/WidgetProviderSmall.kt | chillibits | 115,863,331 | false | null | /*
* Copyright © <NAME> 2017 - 2020. All rights reserved
*/
package com.chillibits.pmapp.widget
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.content.Intent
import android.os.Build
import android.vi... | 24 | Kotlin | 5 | 9 | fafdf73e03f2ea67769bf67cc0433997d516d66c | 4,183 | particulate-matter-app | MIT License |
samples/SkijaInjectSample/src/main/kotlin/SkijaInjectSample/App.kt | tchigher | 328,241,573 | true | {"Kotlin": 31622, "C++": 18275, "Objective-C": 8557} | package SkijaInjectSample
import org.jetbrains.skiko.SkiaWindow
import java.awt.event.MouseEvent
import javax.swing.WindowConstants
import javax.swing.event.MouseInputAdapter
import org.jetbrains.skija.*
import org.jetbrains.skiko.SkiaRenderer
import java.awt.event.MouseMotionAdapter
import kotlin.math.cos
import kot... | 0 | null | 0 | 0 | 5c7a7ff6b2ab08ab53ebc8651df2b1a7fd6d8e56 | 6,034 | skiko | Apache License 2.0 |
domain/src/main/java/com/example/domain/usecase/GetBookmarkedNewsUseCase.kt | yoo-sudo | 693,298,176 | false | {"Kotlin": 34155} | package com.example.domain.usecase
import com.example.domain.model.News
import com.example.domain.repo.BookmarkedNewsRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GetBookmarkedNewsUseCase @Inject constructor(
private val repository: BookmarkedNewsRepository
) {
suspend fun e... | 0 | Kotlin | 0 | 0 | e3516fc2ab55e30ab1dc33ad359d4ba0801b25fc | 401 | NewsApp | Apache License 2.0 |
app/src/main/java/com/krm/tmdb/ui/fragments/search/FragmentSearch.kt | cadet29manikandan | 242,054,653 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 95, "XML": 116, "Java": 38} | package com.krm.tmdb.ui.fragments.search
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.krm.tmdb.data.model.ObjectsSearch
import com.krm.tmdb.ui.activities.base.BaseFragment
import com.k... | 0 | Kotlin | 0 | 0 | 3fba5c2fd1029b013c0a09db72899b743cc1800b | 3,338 | TMDB | Apache License 2.0 |
plugins/space/src/main/kotlin/com/intellij/space/vcs/review/list/SpaceReviewListFactory.kt | haarlemmer | 392,603,002 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.space.vcs.review.list
import circlet.code.api.CodeReviewListItem
import circlet.platform.client.BatchResult
import com.intellij.ide.DataManager
import com.in... | 1 | null | 1 | 1 | de80b70f5507f0110de89a95d72b8f902ca72b3e | 3,623 | intellij-community | Apache License 2.0 |
VehicleUI/src/main/java/com/drivequant/drivekit/vehicle/ui/odometer/fragment/OdometerHistoryDetailFragment.kt | DriveQuantPublic | 216,339,559 | false | {"Kotlin": 1650199, "Java": 8753} | package com.drivequant.drivekit.vehicle.ui.odometer.fragment
import android.app.Activity
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.text.InputType
import android... | 1 | Kotlin | 3 | 9 | e7956263157c49aae8d6f993a558ea77d9658ee6 | 11,173 | drivekit-ui-android | Apache License 2.0 |
app/src/main/java/com/puntogris/recap/feature_recap/domain/model/Recap.kt | puntogris | 398,389,151 | false | null | package com.puntogris.recap.feature_recap.domain.model
import android.os.Parcelable
import androidx.annotation.Keep
import com.google.firebase.Timestamp
import kotlinx.parcelize.Parcelize
@Keep
@Parcelize
data class Recap(
var id: String = "",
var uid: String = "",
var username: String = "",
var ti... | 0 | Kotlin | 0 | 0 | 960f3f6f3c876289cfc6e7edc76778af05dcdcd0 | 922 | recap | MIT License |
src/main/java/io/javalin/plugin/openapi/dsl/DocumentedRequestBody.kt | gaecom | 225,545,176 | false | null | package io.javalin.plugin.openapi.dsl
import io.swagger.v3.oas.models.Components
import io.swagger.v3.oas.models.parameters.RequestBody
class DocumentedRequestBody(
val content: List<DocumentedContent>
)
fun RequestBody.applyDocumentedRequestBody(documentedRequestBody: DocumentedRequestBody) {
if (docume... | 0 | null | 0 | 1 | 5031c0da0e0ddf61acf3204e969912d56a5e4888 | 649 | javalin | Apache License 2.0 |
core/design/src/main/java/com/weather/core/design/theme/Color.kt | aarash709 | 605,957,736 | false | {"Kotlin": 261029} | package com.weather.core.design.theme
import androidx.compose.ui.graphics.Color
val White = Color(0xFFF0F0F0)
val Gray900 = Color(0xFF0F0F0F)
val Gray800 = Color(0xFF141414)
val Gray200 = Color(0xFFD2D2D2)
val Gray100 = Color(0XFFe6e6e6)
val Blue = Color(0xFF2131CC)
val Black = Color(0xFF0A0A0A)
val Yellow = Color(0X... | 0 | Kotlin | 0 | 2 | 510bc2f8eed164ac477b6c327c408698a5af18b0 | 331 | Weather | Apache License 2.0 |
src/test/kotlin/no/nav/syfo/testutil/KOppfolgingsplanLPSNAVGenerator.kt | navikt | 290,982,864 | false | null | package no.nav.syfo.testutil
import no.nav.syfo.domain.PersonIdentNumber
import no.nav.syfo.oppfolgingsplan.avro.KOppfolgingsplanLPSNAV
import no.nav.syfo.testutil.UserConstants.ARBEIDSTAKER_FNR
import no.nav.syfo.testutil.UserConstants.VIRKSOMHETSNUMMER
import java.time.LocalDate
import java.util.*
fun generateKOppf... | 0 | Kotlin | 0 | 0 | f03038805a3d4838f38d63eea9e61c51bce0b130 | 1,332 | ispersonoppgave | MIT License |
service/src/main/kotlin/io/provenance/explorer/domain/extensions/MessageTranslationExtensions.kt | provenance-io | 332,035,574 | false | {"Kotlin": 1062465, "PLpgSQL": 316369, "Shell": 679, "Python": 642} | package io.provenance.explorer.domain.extensions
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.ArrayNode
import com.fasterxml.jackson.databind.node.ObjectNode
import com.google.protobuf.Message
import com.google.protobuf.util.JsonFormat
import io.provenance.explorer.JSON_NOD... | 29 | Kotlin | 3 | 6 | 4a181cb18f45b6b30e75c2536272709e7f6155ba | 4,896 | explorer-service | Apache License 2.0 |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/fundamentals/8_suspending_coroutines.kt | ahuamana | 627,986,788 | false | null | package com.lukaslechner.coroutineusecasesonandroid.playground.fundamentals
import kotlinx.coroutines.async
import kotlinx.coroutines.delay
import kotlinx.coroutines.joinAll
import kotlinx.coroutines.runBlocking
fun main() = runBlocking {
println("Main starts: ${Thread.currentThread().name}")
joinAll(
... | 0 | Kotlin | 0 | 0 | 931ce884b8c70355e38e007141aab58687ed1909 | 973 | KotlinCorutinesExpert | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ui/layout/Row.kt | androidports | 115,100,208 | true | {"Java": 168074327, "Python": 25851822, "Kotlin": 6237300, "Groovy": 3448233, "HTML": 1962706, "C": 214338, "C++": 180382, "CSS": 172743, "JavaScript": 148969, "Lex": 148787, "XSLT": 113040, "Jupyter Notebook": 93222, "Shell": 60321, "NSIS": 57796, "Batchfile": 51257, "Roff": 37534, "Objective-C": 27309, "TeX": 25473, ... | /*
* Copyright 2000-2016 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... | 6 | Java | 0 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 5,158 | intellij-community | Apache License 2.0 |
faux-api/src/main/kotlin/io/polymorphicpanda/faux/state/state.kt | raniejade | 109,104,219 | false | null | package io.polymorphicpanda.faux.state
import io.polymorphicpanda.faux.entity.Context
import io.polymorphicpanda.faux.runtime.Descriptor
import io.polymorphicpanda.faux.runtime.Faux
import io.polymorphicpanda.faux.service.Service
import kotlinx.coroutines.experimental.channels.ProducerScope
import kotlinx.coroutines.e... | 0 | Kotlin | 0 | 0 | d204efdb3f602ecdd9bf9aae159d900bd5ac4f8e | 1,905 | faux | MIT License |
src/main/java/pl/edu/amu/wmi/erykandroidcommon/recycler/grouping/GroupedRecyclerFragment.kt | dagi12 | 107,324,186 | false | null | package pl.edu.amu.wmi.erykandroidcommon.recycler.grouping
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.View
import pl.edu.amu.wmi.erykandroidcommon.base.BaseFragment
import pl.edu.amu.wmi.erykandroidcommon.recycler.AbstractViewHolder
abstract... | 1 | null | 1 | 1 | 0715d59c3c208df668dc116171ece78a6cf9dd2c | 774 | eryk-android-common | Apache License 2.0 |
lang/src/org/partiql/lang/ast/ast.kt | pcholakov | 200,474,830 | true | {"Kotlin": 1943709, "HTML": 99272, "Java": 13314, "TSQL": 158} | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the "... | 0 | Kotlin | 0 | 0 | a0ac8750a330c8f27897e3ef094e2830d9c6544b | 20,221 | partiql-lang-kotlin | Apache License 2.0 |
simplified-profiles/src/main/java/org/nypl/simplified/profiles/ProfilesDatabase.kt | ThePalaceProject | 367,082,997 | false | null | package org.nypl.simplified.profiles
import android.content.Context
import com.google.common.base.Preconditions
import com.io7m.jfunctional.Option
import com.io7m.jfunctional.OptionType
import com.io7m.junreachable.UnreachableCodeException
import io.reactivex.subjects.Subject
import org.joda.time.LocalDateTime
import ... | 109 | null | 4 | 8 | 82dee2e0f39a74afc5a429d0124e20f77b1eac13 | 8,568 | android-core | Apache License 2.0 |
app/src/main/java/com/leonra/versions/list/VersionListFragment.kt | LeonRa | 347,512,789 | false | null | package com.leonra.versions.list
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyc... | 0 | Kotlin | 0 | 0 | cb6728227a5cc548c0bbad6c0a172d5f9f2d1b26 | 1,688 | AndroidVersions | Apache License 2.0 |
detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/FormattingProvider.kt | detekt | 71,729,669 | false | null | package io.gitlab.arturbosch.detekt.formatting
import com.pinterest.ktlint.rule.engine.core.api.Rule
import com.pinterest.ktlint.rule.engine.core.api.RuleId
import com.pinterest.ktlint.rule.engine.core.api.RuleSetId
import io.gitlab.arturbosch.detekt.api.ActiveByDefault
import io.gitlab.arturbosch.detekt.api.Config
im... | 190 | null | 772 | 6,253 | c5d7ed3da2824534d0e15f8404ad4f1c59fb553c | 14,943 | detekt | Apache License 2.0 |
src/main/kotlin/net/json/jsonm/JsonMatcher.kt | xhuang2020 | 808,859,041 | false | {"Kotlin": 44674, "ANTLR": 2239} | package net.json.jsonm
import net.json.jsonm.antlr4.JsonmParser
class JsonMatcher internal constructor(private val jsonMatch: JsonmParser.JsonMatchContext) {
init { validate(jsonMatch) }
companion object {
private fun validate(jsonMatch: JsonmParser.JsonMatchContext) {
jsonMatch.objectMat... | 0 | Kotlin | 0 | 0 | 774f5ea9eabcce7c829665f1aefcb54bdf7498db | 3,222 | json-m | MIT License |
app/src/main/java/com/cdmp/rickmorty/data/RickMortyApi.kt | carlosdmp | 178,059,225 | false | {"Kotlin": 39638, "Java": 1114} | package com.cdmp.rickmorty.data
import androidx.annotation.WorkerThread
import com.cdmp.rickmorty.data.entity.CharacterList
import com.cdmp.rickmorty.data.service.RickMortyService
import retrofit2.Response
import java.lang.RuntimeException
class RickMortyApi(private val service: RickMortyService) {
@WorkerThread... | 0 | Kotlin | 0 | 0 | d06b37ed10a48bcc75c9fa542ce543f3bf6014d8 | 396 | CoroutinesTestApp | Apache License 2.0 |
app/src/main/java/com/example/rootcheck/SPUtils.kt | mytangyh | 698,863,851 | false | {"Kotlin": 232382, "Java": 18246, "C++": 8362, "CMake": 1864, "HTML": 526} | package com.example.rootcheck
import android.content.Context
class SPUtils{
companion object{
fun saveString(context: Context,spName:String,key: String, value: String) {
val editor = MyApplication.applicationContext().getSharedPreferences(spName, Context.MODE_PRIVATE).edit()
ed... | 0 | Kotlin | 0 | 3 | 7760c038b6232c4b4c91eca49ba5a409fed2d0a5 | 983 | RootDetect | MIT License |
presentation/src/main/kotlin/app/web/drjackycv/presentation/main/MainActivity.kt | Drjacky | 256,785,326 | false | null | package app.web.drjackycv.presentation.main
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.lifecycle.lifecycleScope
import androidx.navigation.NavController
import androidx.navigation.findNavController
import app.web.drjackycv.do... | 9 | null | 92 | 566 | 1edb7911f1450555210db4f96734ef189895a912 | 3,559 | MVVMTemplate | MIT License |
typescript/ts-ast-declarations/src/org/jetbrains/dukat/ast/model/nodes/ReferenceOriginNode.kt | vipyami | 261,616,816 | true | {"Kotlin": 2584052, "WebIDL": 317874, "TypeScript": 125096, "JavaScript": 15185, "ANTLR": 11333} | package org.jetbrains.dukat.ast.model.nodes
enum class ReferenceOriginNode {
IRRELEVANT,
IMPORT,
NAMED_IMPORT
} | 0 | null | 0 | 0 | 61d863946227f59d9b2c7c4e4c463c2558c4e605 | 124 | dukat | Apache License 2.0 |
core_library_android/library/src/main/java/net/apptronic/core/android/viewmodel/ViewBinder.kt | apptronicnet | 264,405,837 | false | null | package net.apptronic.core.android.viewmodel
import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.os.Parcelable
import android.util.SparseArray
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import net.... | 2 | Kotlin | 0 | 6 | 5320427ddc9dd2393f01e75564dab126fdeaac72 | 6,084 | core | MIT License |
app/src/main/kotlin/org/emunix/insteadlauncher/presentation/launcher/AppArgumentViewModel.kt | btimofeev | 125,632,007 | false | null | /*
* Copyright (c) 2021 <NAME> <<EMAIL>>
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
package org.emunix.insteadlauncher.ui.launcher
import android.net.Uri
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class AppArgumentViewModel:... | 6 | Java | 6 | 22 | 13e2e650a1368835d0e079e864803892ea0dba83 | 406 | instead-launcher-android | MIT License |
matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/group/GroupSummaryUpdater.kt | Dominaezzz | 194,926,838 | true | {"Kotlin": 3115318, "Java": 77793, "HTML": 22258, "Shell": 18973} | /*
* Copyright 2019 New Vector 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 to i... | 0 | Kotlin | 0 | 0 | d90698fe92732544889c5c149bb778e201e348fe | 2,558 | riotX-android | Apache License 2.0 |
vzd-cli/src/main/kotlin/de/gematik/ti/directory/cli/apo/ApoConfig.kt | gematik | 455,597,084 | false | {"Kotlin": 297462, "HTML": 87329, "TypeScript": 41771, "Shell": 6186, "SCSS": 5370, "JavaScript": 1430, "Makefile": 359, "Batchfile": 89} | package de.gematik.ti.directory.cli.apo
import de.gematik.ti.directory.cli.util.FileObjectStore
import kotlinx.serialization.Serializable
import kotlinx.serialization.decodeFromString
import java.nio.file.Path
@Serializable
data class ApoEnvironmentConfig(
var apiURL: String,
)
@Serializable
class ApoConfig(
... | 2 | Kotlin | 1 | 3 | 4b414555bf575116f841fc8a1341b0a56bbca66d | 1,043 | app-vzd-cli | MIT License |
core/src/main/java/com/filkom/core/model/domain/TrashDetail.kt | fahmigutawan | 572,343,810 | false | null | package com.filkom.core.model.domain
import com.filkom.core.model.data.response.base.ObjectImageUrlResponse
data class TrashDetail(
val id:String,
val name:String,
val exchange_value:Int,
val content:String,
val thumbnail: String
)
| 0 | Kotlin | 0 | 0 | 38af1bf62fd2363723abffb692d6b79399c5a26f | 254 | Jetpack-BankSampahRW5 | MIT License |
compass-geolocation-mobile/src/androidMain/kotlin/dev/jordond/compass/geolocation/mobile/internal/LocationManager.kt | jordond | 772,795,864 | false | null | package dev.jordond.compass.geolocation.mobile.internal
import android.content.Context
import android.location.Location
import android.location.LocationManager
import android.os.Looper
import com.google.android.gms.location.LocationCallback
import com.google.android.gms.location.LocationRequest
import com.google.andro... | 5 | null | 4 | 89 | d0ef39ed66f7af237bbe21ba630dfcdd6f2ff258 | 2,813 | compass | MIT License |
App/app/src/main/java/com/example/winedroid/SplashActivity.kt | MrBoosted00 | 305,794,078 | false | null | package com.example.winedroid
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import com.example.winedroid.ui.login.LoginActivity
import com.example.winedroid.ui.perfil.EditarPerfilFragment
import com.example.winedroid.ui.perfil.PerfilFra... | 0 | Kotlin | 1 | 3 | 59a885f19ec9b29e4318b0d8ad8fa3875f61820b | 949 | ProyectoFinal | MIT License |
libs/ledger/ledger-utxo-data/src/main/kotlin/net/corda/ledger/utxo/data/state/LazyStateAndRefImpl.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.ledger.utxo.data.state
import net.corda.crypto.core.parseSecureHash
import net.corda.ledger.utxo.data.transaction.UtxoOutputInfoComponent
import net.corda.ledger.utxo.data.transaction.UtxoVisibleTransactionOutputDto
import net.corda.utilities.serialization.deserialize
import net.corda.v5.application.... | 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 3,441 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/thryan/secondclass/ui/login/LoginViewModel.kt | Thryanii | 649,615,369 | false | null | package com.thryan.secondclass.ui.login
import android.annotation.SuppressLint
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.navigation.NavHostController
import com.thryan.secondclass.core.Webvpn
import kotlinx.coroutines.Dispatchers
import... | 0 | Kotlin | 0 | 2 | 311f1ccbb918bb153a769404f64610b057821a08 | 3,377 | SecondClass | MIT License |
compiler/testData/debug/stepping/trait.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... |
// FILE: test.kt
interface A {
fun foo() = 32
fun bar(): Int {
return foo()
}
}
class B : A
fun box() {
(object : A {}).bar()
B().bar()
}
// The dispatch methods added to classes directly implementing
// interfaces with default methods (forwarding to the actual implementation
// on A$D... | 184 | Kotlin | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,296 | kotlin | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin-api/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinCompilation.kt | arrow-kt | 109,678,056 | false | null | /*
* 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/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.plugin
import org.gradle.api.Named
import org.gradle.api.attributes.HasAttributes
import org.gradle.api.file.FileCollec... | 12 | null | 1 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 1,600 | kotlin | Apache License 2.0 |
comments-biz/src/commonMain/kotlin/CommentProcessor.kt | crowdproj | 508,567,511 | false | {"Kotlin": 52564, "Dockerfile": 344} | import com.crowdproj.comments.common.CommentContext
import com.crowdproj.comments.common.config.CommentsCorSettings
import com.crowdproj.comments.common.models.CommentCommand
import com.crowdproj.comments.common.models.CommentObjectType
import com.crowdproj.comments.common.models.CommentWorkMode
import com.crowdproj.co... | 0 | Kotlin | 2 | 1 | f8512415eee255492e0f14b43bd007ddf4a96fd6 | 959 | crowdproj-comments | Apache License 2.0 |
matisse/src/main/kotlin/com/zhihu/matisse/SelectionCreator.kt | youuupeng | 206,088,081 | true | {"Kotlin": 151202} | package com.zhihu.matisse
import android.app.Activity
import android.content.pm.ActivityInfo
import androidx.annotation.StyleRes
import com.zhihu.matisse.engine.ImageEngine
import com.zhihu.matisse.filter.Filter
import com.zhihu.matisse.internal.entity.CaptureStrategy
import com.zhihu.matisse.internal.entity.Selection... | 1 | Kotlin | 1 | 1 | 292456fbbe09cd3a968ba14ef8a49f944ae87d75 | 11,244 | Matisse | Apache License 2.0 |
integration-test-project/project-types/jvm/src/main/kotlin/io/github/virelion/buildata/integration/builder/inner/Level1Class.kt | Virelion | 330,246,253 | false | null | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 21 | null | 0 | 7 | 4645c2afcb52b320223c0860286c55d33ca40167 | 755 | buildata | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Elementequal.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 6,206 | VuesaxIcons | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Elementequal.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 6,206 | VuesaxIcons | MIT License |
app/src/main/java/com/zve/redditassessment/di/PresenterModule.kt | pzverkov | 117,295,101 | false | null | package com.zve.redditassessment.di
import com.zve.redditassessment.api.RedditService
import com.zve.redditassessment.ui.comments.CommentsPresenter
import com.zve.redditassessment.ui.comments.CommentsPresenterImpl
import com.zve.redditassessment.ui.listing.ListingPresenter
import com.zve.redditassessment.ui.listing.Li... | 1 | null | 1 | 1 | b3209d4cfdf9bcbd5aa7db7fdef0459b9d2b0dbd | 894 | RedditTest | Apache License 2.0 |
feature/story/src/main/kotlin/com/najudoryeong/mineme/feature/story/WriteStoryViewModel.kt | NaJuDoRyeong | 689,891,643 | false | {"Kotlin": 402597} | /*
* Copyright 2023 KDW03
*
* 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 to in wr... | 2 | Kotlin | 0 | 0 | 7b1b46b14b8af6994cb86cb6ca844266a6429d68 | 4,587 | mineme_AOS_new | Apache License 2.0 |
app/src/main/java/com/moussafir/notesapp/domain/use_case/GetAllNotesUseCase.kt | Nassr-Allah | 516,005,707 | false | {"Kotlin": 47347} | package com.moussafir.notesapp.domain.use_case
import com.moussafir.notesapp.data.repository.NoteRepository
import com.moussafir.notesapp.domain.model.Note
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GetAllNotesUseCase @Inject constructor(
private val noteRepository: NoteRepository
) {
... | 0 | Kotlin | 0 | 2 | c487d5b91cec6cb1a65a2cb08681209772acec78 | 417 | Notes-App | MIT License |
image/src/main/java/com/smarttoolfactory/image/zoom/EnhancedZoomStateImpl.kt | T8RIN | 478,710,402 | false | null | package com.smarttoolfactory.image.zoom
import androidx.compose.animation.core.exponentialDecay
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.input.pointer.PointerInputChange
im... | 5 | null | 77 | 979 | 7d164a02c463afede47c785f8b182c954abfcde9 | 8,962 | ImageToolbox | Apache License 2.0 |
app/src/main/java/com/octagontechnologies/harrypotter/repo/local/dao/BaseDao.kt | Octagon-Technologies | 809,502,044 | false | {"Kotlin": 61907} | package com.da_chelimo.generate.core.data.repo.local.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
@Dao
abstract class BaseDao<T> {
@Insert(onConflict = OnConflictStrategy.REPLACE)
abstract suspend fun insertData(data: T)
@Insert(onConflict = OnConflic... | 0 | Kotlin | 0 | 0 | ed7c8c9f4f6bff1da7002809d3eb1d70e493d2e8 | 392 | Whisper | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizerProps.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.iot
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.IResolvable
import io.clouds... | 1 | null | 0 | 4 | a18731816a3ec710bc89fb8767d2ab71cec558a6 | 16,264 | kotlin-cdk-wrapper | Apache License 2.0 |
lib/src/integrationTest/kotlin/com/lemonappdev/konsist/core/verify/koproviderassert/deprecated/DeprecatedKoProviderAssertOnSequenceTest.kt | LemonAppDev | 621,181,534 | false | null | package com.lemonappdev.konsist.core.verify.koproviderassert
import com.lemonappdev.konsist.TestSnippetProvider
import com.lemonappdev.konsist.api.declaration.KoFileDeclaration
import com.lemonappdev.konsist.api.provider.KoAnnotationProvider
import com.lemonappdev.konsist.api.provider.KoNameProvider
import com.lemonap... | 8 | null | 26 | 995 | 603d19e179f59445c5f4707c1528a438e4595136 | 13,616 | konsist | Apache License 2.0 |
src/test/aoc2023/Day24Test.kt | nibarius | 154,152,607 | false | {"Kotlin": 984647} | package test.aoc2023
import aoc2023.Day24
import org.junit.Assert.assertEquals
import org.junit.Test
import resourceAsList
class Day24Test {
private val exampleInput = """
19, 13, 30 @ -2, 1, -2
18, 19, 22 @ -1, -1, -2
20, 25, 34 @ -2, -2, -4
12, 31, 28 @ -1, -2, -1
20, 19,... | 0 | Kotlin | 0 | 6 | b55af885eeb0000fb054fe485f401729f018f025 | 960 | aoc | MIT License |
app/src/main/java/com/givekesh/raters/utils/diff/CurrenciesDiffCallBack.kt | jinxul | 311,699,312 | false | null | package com.givekesh.raters.utils.diff
import androidx.recyclerview.widget.DiffUtil
import com.givekesh.raters.data.models.CurrenciesModel
class CurrenciesDiffCallBack(
private val oldList: MutableList<CurrenciesModel>,
private val newList: List<CurrenciesModel>
) : DiffUtil.Callback() {
override fun get... | 0 | Kotlin | 0 | 1 | 4d913ff52171f96c9b29d681e14631346bf32135 | 755 | Raters | Apache License 2.0 |
persistence-common/src/main/kotlin/com/github/dean535/excel/convertor/EntityConvertor.kt | chaodai535 | 345,480,058 | false | null | package com.github.dean535.excel.convertor
import com.github.dean535.files.convert.CellConverter
import javax.persistence.EntityManager
class EntityConvertor : CellConverter {
lateinit var em: EntityManager
lateinit var name: String
lateinit var fieldName: String
override fun convert(value: String, ob... | 0 | Kotlin | 0 | 0 | 2382998ffaf4125f7e096b8bf820451d921d73a3 | 668 | persistence | Apache License 2.0 |
app/src/main/java/com/example/stufffmanager/logic/Repository.kt | Aliceweizhentian | 856,875,660 | false | {"Kotlin": 43099} | package com.example.stufffmanager.logic
import android.util.Log
import androidx.lifecycle.liveData
import com.example.staffmanager.logic.model.AnnoucementResponse
import com.example.staffmanager.logic.model.LoginRequest
import com.example.staffmanager.logic.model.LoginResponse
import com.example.staffmanager.logic.n... | 0 | Kotlin | 0 | 0 | d0cc719923375648371cd389e4130d9f3349934d | 1,759 | StuffManagerApp | Apache License 2.0 |
gson-support/src/test/java/com/chibatching/kotpref/gsonpref/GsonSupportTest.kt | ligi | 99,931,955 | false | null | package com.chibatching.kotpref.gsonpref
import android.content.Context
import android.content.SharedPreferences
import com.chibatching.kotpref.Kotpref
import com.chibatching.kotpref.KotprefModel
import com.google.gson.Gson
import org.assertj.core.api.Assertions.assertThat
import org.junit.After
import org.junit.Befor... | 0 | null | 0 | 1 | ba47e1bb3dc7500bd978f244ba358ffdeb477d79 | 3,064 | Kotpref | Apache License 2.0 |
eth/abi/src/commonMain/kotlin/kosh/eth/abi/dsl/AbiArrayDsl.kt | niallkh | 855,100,709 | false | {"Kotlin": 1845307, "Swift": 768} | package kosh.eth.abi.dsl
import kosh.eth.abi.coder.AbiType
@AbiDsl
public class AbiArrayDsl {
internal lateinit var type: AbiType
private fun set(abiType: AbiType) {
require(::type.isInitialized.not())
type = abiType
}
@AbiDsl
public fun uint256() {
set(AbiType.UInt.UInt2... | 0 | Kotlin | 0 | 3 | 2be90c7ce7775a76d44fac4cae3a6777d6e9c7f7 | 1,729 | kosh | MIT License |
src/net/azib/photos/cast/MainActivity.kt | realdubb | 74,255,356 | true | {"Kotlin": 13768} | package net.azib.photos.cast
import android.content.Intent
import android.content.Intent.ACTION_VIEW
import android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
import android.net.Uri
import android.os.Bundle
import android.support.v4.view.MenuItemCompat
import android.support.v7.app.AppCompatActivity
import an... | 0 | Kotlin | 0 | 0 | a6d684a86d13aa5b9ddd846f498adce5a51a9f8a | 4,563 | synology-cast-photos-android | Apache License 2.0 |
core/src/main/java/br/ufs/nubankchallenge/core/infrastructure/errorhandlers/RestErrorsHandler.kt | ubiratansoares | 111,469,213 | false | null | package br.ufs.nubankchallenge.core.infrastructure.errorhandlers
import br.ufs.nubankchallenge.core.domain.errors.InfrastructureError
import br.ufs.nubankchallenge.core.domain.errors.InfrastructureError.RemoteSystemDown
import br.ufs.nubankchallenge.core.domain.errors.InfrastructureError.UndesiredResponse
import io.re... | 0 | Kotlin | 5 | 20 | d0b863a338b04ef40068f005c72b9d8e8335bc26 | 1,415 | nubank-challenge | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.