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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
buildSrc/src/main/kotlin/Versions.kt | ACINQ | 192,964,514 | false | null | object Versions {
const val lightningKmp = "1.2.0"
const val secp256k1 = "0.6.0"
const val kotlin = "1.5.31"
const val coroutines = "1.5.2-native-mt"
const val serialization = "1.2.2"
const val ktor = "1.6.3"
const val sqlDelight = "1.5.0"
const val kodeinMemory = "0.8.0"
const va... | 61 | null | 46 | 219 | 9112948d9a2af09add9b1b3b2b9fdb7607bd03ec | 1,497 | phoenix | Apache License 2.0 |
app/src/main/java/com/herry/test/app/resizing/ResizingUIFragment.kt | HerryPark | 273,154,769 | false | null | package com.herry.test.app.resizing
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
im... | 0 | null | 1 | 3 | d30435c01387614ec24a79ffd5afcdb89edf5298 | 2,852 | HerryApiDemo | Apache License 2.0 |
features/game-main/src/main/java/io/github/japskiddin/sudoku/game_main/GameMainFeatureUI.kt | Japskiddin | 766,410,608 | false | {"Kotlin": 17674} | package io.github.japskiddin.sudoku.game_main
import androidx.compose.runtime.Composable
@Composable
fun GameMain() {
} | 0 | Kotlin | 0 | 0 | ce7cbd70bf71e7a663cc0611ed18654e4740a10c | 126 | SudokuGame | Apache License 2.0 |
app/src/main/java/dev/mohammadfayaz/sorting/algorithms/sorting/SortingAlgorithmImpl.kt | fayaz07 | 576,222,588 | false | {"Kotlin": 35983} | package dev.mohammadfayaz.sorting.algorithms.sorting
import dev.mohammadfayaz.sorting.algorithms.RandomList
import dev.mohammadfayaz.sorting.algorithms.SortingSpeed
import dev.mohammadfayaz.sorting.model.SortingItem
import dev.mohammadfayaz.sorting.model.SortingItemState
import kotlinx.coroutines.channels.Channel
abs... | 2 | Kotlin | 2 | 2 | 1c1602c0463f78fd2454a3dd6a60942d73386231 | 967 | SortingVisualizer | MIT License |
app/src/main/java/com/xgimi/filemanager/constants/TabIdCons.kt | LuffyJoker | 289,462,606 | false | null | package com.xgimi.filemanager.constants
/**
* author : joker.peng
* e-mail : <EMAIL>
* date : 2020/8/6 19:48
* desc :
*/
object TabIdCons {
/**
* 全部
*/
const val ALL = "全部"
/**
* 视频
*/
const val VIDEO = "视频"
/**
* 音乐
*/
const val MUSIC = "音乐"... | 1 | null | 1 | 1 | b6e06b7f4d587ab2439fd01b6238f7d1ef1a994c | 429 | CellFileManager | Apache License 2.0 |
app/src/main/java/com/debanshu777/newsFlip/ui/fragments/BreakingNewsFragment.kt | Debanshu777 | 340,966,366 | false | null | package com.debanshu777.newsapp.ui.fragments
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.AbsListView
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.lifecycleScope
import androidx.navigati... | 1 | Kotlin | 0 | 7 | a6c6845f85c1e543de250af130341a0cbb56ff89 | 9,820 | News-Flip | Apache License 2.0 |
kompat/src/main/kotlin/info/ericlin/kompat/text/ICUCompat.kt | nohitme | 92,627,032 | false | null | package info.ericlin.kompat.text
import android.support.v4.text.ICUCompat
import java.util.*
/**
* Call through [ICUCompat.maximizeAndGetScript]
*/
fun Locale.maximizeAndGetScriptCompat() = ICUCompat.maximizeAndGetScript(this) | 1 | Kotlin | 0 | 5 | cba832ffa4fbf38a82b535aefda5d39c754e3166 | 230 | android-kompat | Apache License 2.0 |
gunpowder-api/src/main/kotlin/io/github/gunpowder/api/exposed/PlayerTable.kt | Gunpowder-MC | 254,556,289 | false | null | /*
* MIT License
*
* Copyright (c) GunpowderMC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 17 | Kotlin | 11 | 38 | 144e9f34a05e2cb8fa8a2e9e3864763e4df42161 | 1,606 | Gunpowder | MIT License |
gui/src/main/kotlin/no/uib/inf219/gui/view/PropertyEditor.kt | elgbar | 232,797,797 | false | null | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 1 | 4ce6a92bfbe71e0245bd495f5dc9736741e022fd | 3,226 | HandcraftObjectsTool | Apache License 2.0 |
app/src/main/java/com/github/pockethub/android/ui/gist/GistFragment.kt | pockethub | 2,349,728 | false | null | /*
* Copyright (c) 2015 PocketHub
*
* 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... | 127 | null | 3574 | 9,468 | 8228cb8f7197a7c2227e67ee48a2c8dc843fb553 | 15,013 | PocketHub | Apache License 2.0 |
Yum-Client/app/src/main/java/com/anbui/yum/common/component/RatingBar.kt | AnBuiii | 608,489,464 | false | null | package com.anbui.yum.common.component
import android.util.Log
import android.view.MotionEvent
import androidx.annotation.FloatRange
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.gestures.detectHorizontalDragGestures
import androidx.compose.foundation.layout.Box
import androidx.compose.f... | 0 | Kotlin | 0 | 3 | 94a9344aeb57403214315191304b81d15d584863 | 18,532 | Yum | MIT License |
report/src/main/kotlin/io/provenance/digitalcurrency/report/api/Pagination.kt | provenance-io | 394,466,595 | false | null | package io.provenance.digitalcurrency.report.api
data class Page(
val page: Int,
val size: Int,
) {
fun offset(): Long = (page - 1) * size.toLong()
}
data class Pagination(
val page: Int,
val size: Int,
val totalCount: Long,
)
data class PaginationResponse(
val page: Int,
val size: In... | 6 | null | 3 | 6 | 65d1657d950957d3cabd6e80eef8f1bdc22ff06c | 468 | digital-currency-consortium | Apache License 2.0 |
src/main/kotlin/org/teamvoided/shippost/data/providers/EnglishTranslationProvider.kt | TeamVoided | 648,231,566 | false | {"Kotlin": 37890} | package org.teamvoided.shippost.data.providers
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider
import net.minecraft.util.Identifier
import org.apache.commons.lang3.text.WordUtils
import org.teamvoided.shippost.TheShipPostMod
import o... | 0 | Kotlin | 0 | 2 | dac6768672f73e8b8082ef914c0b6a7fee963955 | 1,136 | TheShippostMod | MIT License |
magellan-sample-migration/src/test/java/com/wealthfront/magellan/sample/migration/tide/DogDetailsScreenTest.kt | wealthfront | 82,854,849 | false | null | package com.wealthfront.magellan.sample.migration.tide
import android.app.Application
import android.content.Context
import android.os.Looper.getMainLooper
import androidx.activity.ComponentActivity
import androidx.test.core.app.ApplicationProvider
import com.wealthfront.magellan.lifecycle.LifecycleState
import com.we... | 39 | null | 69 | 681 | 9c72d57b5ad10071999f420626bb7068b5deb5d1 | 1,953 | magellan | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolveWithStdlib/problems.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... | val sb = StringBuilder()
val o = object : Any() {
val name = "123"
fun test() {
name
}
}
fun test() {
class Local
Local()
}
val Any.bar get() = "456"
val String.bar get() = "987"
<!REDECLARATION!>val t = "".bar<!>
val p = Pair(0, "")
open class Base<T>(val x: T)
class Derived : Base<Int>... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 403 | kotlin | Apache License 2.0 |
libs/util/src/main/kotlin/com/illiarb/tmdbclient/libs/util/Async.kt | ilya-rb | 152,124,194 | false | null | package com.illiarb.tmdbclient.libs.util
/**
* Adapted from here:
* https://github.com/airbnb/MvRx/blob/master/mvrx/src/main/kotlin/com/airbnb/mvrx/Async.kt
*/
sealed class Async<out T> {
object Uninitialized : Async<Nothing>()
class Loading<out T> : Async<T>()
data class Success<out T>(private val value: ... | 0 | null | 1 | 5 | 2a316e72c6ce68759627e52a749b7f02d91b2787 | 914 | Tmdb-Client | MIT License |
slides2-kt/src/main/kotlin/io/github/ilaborie/slides2/kt/term/TimeUnit.kt | ilaborie | 171,029,863 | false | {"SCSS": 1448332, "Kotlin": 368654, "Java": 37917, "HTML": 28931, "JavaScript": 22144, "CSS": 10352, "Rust": 6550, "Scala": 2293, "Smali": 1357, "Shell": 1012, "TypeScript": 658, "Dockerfile": 460} | package io.github.ilaborie.slides2.kt.term
sealed class TimeUnit {
abstract val unit: String
abstract fun fromNanos(value: Double): Double
abstract fun toNanos(value: Double): Double
companion object {
object Nanos : TimeUnit() {
override val unit = "ns"
override fun fr... | 3 | SCSS | 1 | 1 | dc77f1aef93cfae26759ad11bd2733a64263b83d | 2,239 | slides2 | Apache License 2.0 |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/pushrules/ContainsDisplayNameCondition.kt | matrix-org | 287,466,066 | false | null | /*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 91 | null | 4 | 97 | 55cc7362de34a840c67b4bbb3a14267bc8fd3b9c | 1,921 | matrix-android-sdk2 | Apache License 2.0 |
generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/analysisApi.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.generators.tests.analysis.api
import org.jetbrains.kotlin.analysis.api.fir.compo... | 135 | null | 4980 | 40,442 | 817f9f13b71d4957d8eaa734de2ac8369ad64770 | 9,561 | kotlin | Apache License 2.0 |
tmp/arrays/youTrackTests/1166.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-6653
class TestException: RuntimeException() {
//no compile error:
override val message: String = ""
//compile error:
/*override fun getMessage(): String
{
return ""
}*/
//compile error:
//override val localizedMessage: String = ""
//no compile error:
... | 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 399 | bbfgradle | Apache License 2.0 |
src/com/android/launcher3/LauncherPrefs.kt | LawnchairLauncher | 83,799,439 | false | null | /*
* Copyright (C) 2023 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... | 388 | null | 7 | 9,200 | d91399d2e4c6acbeef9c0704043f269115bb688b | 17,411 | lawnchair | Apache License 2.0 |
app/src/main/java/ir/radical_app/radical/arch/Comments/CommentsResponse.kt | ShahabGT | 183,623,208 | false | {"Java": 492194, "Kotlin": 25016} | package ir.radical_app.radical.arch.Comments
data class CommentsResponse(
val `data`: List<CommentItem>
) | 1 | null | 1 | 1 | 808eb22fd2e843a958c0e43f243b15ddeb9dbdbd | 110 | Radical | Apache License 2.0 |
projects/android/koin-android/src/test/java/org/koin/test/android/ext/koin/KoinExtTest.kt | InsertKoinIO | 93,515,203 | false | null | package org.koin.test.android.ext.koin
import android.app.Application
import android.content.Context
import io.mockk.every
import io.mockk.mockk
import org.junit.Assert
import org.junit.Test
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidFileProperties
import org.koin.android.e... | 67 | null | 711 | 8,934 | f870a02fd32a2cf1ff8b69406ebf555c26ffe39f | 6,891 | koin | Apache License 2.0 |
android_mobile/src/main/java/com/alexstyl/specialdates/ui/base/MementoActivity.kt | alexstyl | 66,690,455 | false | null | package com.alexstyl.specialdates.ui.base
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.NavUtils
import android.support.v4.app.TaskStackBuilder
import android.support.v7.app.AppCompatActivity
import android.view.KeyEvent
... | 0 | null | 49 | 211 | d224f0af53ee3d4ecadad5df0a2731e2c9031a23 | 2,498 | Memento-Calendar | MIT License |
firebase-appdistribution/test-app/src/main/kotlin/com/googletest/firebase/appdistribution/testapp/MainActivity.kt | firebase | 146,941,185 | false | {"Java": 13544555, "PureBasic": 10781995, "Kotlin": 1442741, "Python": 104323, "C++": 86300, "Makefile": 21902, "HCL": 11091, "C": 6939, "JavaScript": 5482, "Mustache": 4739, "Shell": 2685, "Ruby": 2545, "AIDL": 1486, "HTML": 215} | // Copyright 2022 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 442 | Java | 575 | 2,247 | adab25c949d7f82b093cb11c3495b0266af6074e | 14,593 | firebase-android-sdk | Apache License 2.0 |
Rotate3d.kt | heyi1994 | 94,297,204 | false | null | package com.woman.beautylive.util
import android.graphics.Camera
import android.view.animation.Animation
import android.view.animation.Transformation
/**
* @author Heyi
* @since 1.0.0
*/
class Rotate3d:Animation() {
private var mFromDegrees: Float?=null
private var mToDegrees: Float?=null
private var m... | 1 | null | 1 | 1 | 8130c22a0550accd28d271985016ca17b2497311 | 2,987 | utils | Apache License 2.0 |
src/main/kotlin/no/nav/Strings.kt | navikt | 355,449,292 | false | {"Gradle Kotlin DSL": 2, "CODEOWNERS": 1, "Markdown": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "INI": 1, "Java": 3, "Kotlin": 14} | package no.nav
fun main() {
val basicString = "hello!"
val rawString = """
I'm on multiple lines.
Cool, right?
""".trimIndent()
val number = 2
val templateString = "The number is $number. Oh, and I also do expressions: ${basicString.toUpperCase()}"
println(rawString)
println... | 0 | Kotlin | 1 | 0 | 69f66d859fb52b1f9ea07e7115950dff18d549db | 339 | kotlin-uit-apr-21 | MIT License |
apollo-gradle-plugin-incubating/src/main/kotlin/com/apollographql/apollo/gradle/api/Introspection.kt | juanleondev | 218,182,134 | true | {"INI": 15, "YAML": 1, "Gradle Kotlin DSL": 17, "TOML": 1, "Shell": 4, "JSON": 76, "Markdown": 12, "Batchfile": 2, "Text": 1, "Ignore List": 9, "XML": 47, "Proguard": 1, "GraphQL": 91, "Kotlin": 232, "Java": 354, "Gradle": 9, "CODEOWNERS": 1, "JavaScript": 1, "Redirect Rules": 2, "MDX": 1, "SVG": 1, "ANTLR": 1, "Groovy... | package com.apollographql.apollo.gradle.api
class Introspection {
var endpointUrl: String? = null
var queryParameters: Map<String, String>? = null
var headers: Map<String, String>? = null
} | 0 | null | 0 | 0 | dfd0d93b1b96b2926a808e82788eb956419f71b7 | 196 | apollo-android | MIT License |
modules/hl7-kotlin/src/test/kotlin/org/openehealth/ipf/modules/hl7/kotlin/validation/model/LambdaPrimitiveTypeRuleTest.kt | qligier | 217,401,036 | false | null | /*
* Copyright 2018 the original author or authors.
*
* 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 ... | 25 | null | 64 | 2 | dd3c59b3d9abcc32360fbbdf75c476dc97805aaf | 2,051 | ipf | Apache License 2.0 |
lifecycle/lifecycle-viewmodel-savedstate/src/main/java/androidx/lifecycle/AbstractSavedStateViewModelFactory.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2018 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 applica... | 28 | null | 937 | 5,108 | 89ec14e39cf771106a8719337062572717cbad31 | 6,077 | androidx | Apache License 2.0 |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/processors/AccessorProcessor.kt | hieuprogrammer | 284,920,751 | false | 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 org.jetbrains.plugins.groovy.lang.resolve.processors
import com.intellij.lang.java.beans.PropertyKind
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiMethod... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,951 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/marsphotos/presentation/main/MainScreenContent.kt | PopsorAndrei | 777,800,292 | false | {"Kotlin": 35037} | package com.example.marsphotos.presentation.main
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
import an... | 0 | Kotlin | 0 | 0 | f8404747c00680dc1027e27382c4e1fa44285607 | 2,207 | marsPhotos | Apache License 2.0 |
app/src/main/java/com/sirionrazzer/diary/Diary.kt | morristech | 224,953,241 | true | {"Kotlin": 99653} | package com.sirionrazzer.diary
import android.app.Application
import com.jakewharton.threetenabp.AndroidThreeTen
import com.sirionrazzer.diary.system.dagger.ApiModule
import com.sirionrazzer.diary.system.dagger.AppComponent
import com.sirionrazzer.diary.system.dagger.DaggerAppComponent
import com.sirionrazzer.diary.sy... | 0 | Kotlin | 0 | 0 | d4465a16d21f5ef758cdac46dbfdc5ab9583ca23 | 886 | Diary | MIT License |
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/MiuixSlider.kt | miuix-kotlin-multiplatform | 838,760,422 | false | {"Kotlin": 186568, "HTML": 1142, "Swift": 629} | package top.yukonga.miuix.kmp.basic
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import android... | 0 | Kotlin | 0 | 6 | 6c10b8a1afe2ad4ed237f0e7ce7e98451af07a08 | 6,590 | miuix | Apache License 2.0 |
src/main/kotlin/dev/lutergs/lutergsbackend/domain/guestbook/GuestbookRepository.kt | lutergs-dev | 634,272,311 | false | {"Kotlin": 124306, "Shell": 142} | package dev.lutergs.lutergsbackend.domain.guestbook
import reactor.core.publisher.Flux
import reactor.core.publisher.Mono
import java.util.UUID
interface GuestbookRepository {
fun saveComment(comment: Comment): Mono<Comment>
fun findCommentWithPage(itemsInPage: Int, pageNumber: Int): Flux<Comment>
fun ... | 0 | Kotlin | 0 | 0 | cd9b9bc0513aaf364f3e34e647a445cb936e4c0b | 377 | backend | MIT License |
app/src/main/java/com/gstormdev/urbandictionary/di/AppModule.kt | geoffstorm | 276,220,454 | false | null | package com.gstormdev.urbandictionary.di
import android.app.Application
import com.gstormdev.urbandictionary.BuildConfig
import com.gstormdev.urbandictionary.UrbanDictApp
import com.gstormdev.urbandictionary.api.UrbanDictionaryRestClient
import dagger.Module
import dagger.Provides
import okhttp3.OkHttpClient
import re... | 0 | Kotlin | 0 | 0 | bab7d5e6babb69cbb909ff16bb4bedac551588b5 | 1,626 | UrbanDictionary | MIT License |
app/src/main/java/com/patrykkosieradzki/qrcodereader/ui/home/adapter/BarcodeListAdapter.kt | k0siara | 122,833,177 | false | null | package com.patrykkosieradzki.qrcodereader.ui.home.adapter
import android.content.Context
import android.util.SparseBooleanArray
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout
import com.firebase.ui.database.FirebaseRecyclerAdapter
import com.firebase.ui.database.FirebaseR... | 1 | null | 1 | 1 | 2a1e3167e0501c5401fd20f8ed8d179eeb9ce388 | 4,187 | QRCodeReader | Apache License 2.0 |
build-logic/convention/src/main/kotlin/AndroidLibraryComposeConventionPlugin.kt | mehdiyari | 459,064,107 | false | {"Kotlin": 470699, "Java": 87170} | import com.android.build.api.dsl.ApplicationExtension
import com.android.build.api.dsl.LibraryExtension
import ir.mehdiyari.krypt.applyAndroidLibraryPlugin
import ir.mehdiyari.krypt.configureComposeAndroid
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradl... | 17 | Kotlin | 1 | 3 | 371bc18b7336a7a7256624039e216f4ea5944f77 | 568 | krypt | Apache License 2.0 |
src/main/kotlin/no/njoh/pulseengine/modules/physics/entities/Spring.kt | NiklasJohansen | 239,208,354 | false | null | package no.njoh.pulseengine.modules.physics.entities
import com.fasterxml.jackson.annotation.JsonIgnore
import no.njoh.pulseengine.core.PulseEngine
import no.njoh.pulseengine.core.graphics.surface.Surface
import no.njoh.pulseengine.core.shared.annotations.EntityRef
import no.njoh.pulseengine.core.shared.annotations.Sc... | 0 | null | 0 | 1 | c45a8028e1cef5259b76281a7d6083bcbfc51915 | 4,966 | PulseEngine | MIT License |
src/main/kotlin/ru/yandex/money/tools/grafana/dsl/panels/MetricPanelBuilder.kt | arodrime | 176,972,313 | true | {"Kotlin": 92104, "Shell": 5947, "Batchfile": 2183, "Groovy": 25} | package ru.yandex.money.tools.grafana.dsl.panels
import org.json.JSONObject
import ru.yandex.money.tools.grafana.dsl.datasource.Datasource
import ru.yandex.money.tools.grafana.dsl.datasource.Graphite
import ru.yandex.money.tools.grafana.dsl.metrics.DashboardMetric
import ru.yandex.money.tools.grafana.dsl.metrics.Metri... | 0 | Kotlin | 0 | 0 | 0eca3e89a579da88fe1ccd4f4794ff114fef7f3d | 1,316 | grafana-dashboard-dsl | MIT License |
app/src/main/java/com/github/cfogrady/vitalwear/adventure/ActiveAdventure.kt | cfogrady | 619,941,986 | false | {"Kotlin": 583861} | package com.github.cfogrady.vitalwear.adventure
import android.content.Context
import android.graphics.Bitmap
import android.os.Handler
import android.os.Looper
import com.github.cfogrady.vitalwear.character.VBCharacter
import com.github.cfogrady.vitalwear.common.card.db.AdventureEntity
import kotlinx.coroutines.Corou... | 23 | Kotlin | 0 | 7 | 31a327b7100aa7b55b6e1aa463a0791785b8e4f8 | 2,401 | VitalWear | MIT License |
app/src/test/java/mwvdev/berightthere/android/service/mapper/TripItemMapperImplTests.kt | mwvdev | 336,762,028 | false | null | package mwvdev.berightthere.android.service.mapper
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.whenever
import mwvdev.berightthere.android.R
import mwvdev.berightthere.android.model.TransportMode
import mwvdev.berightthere.android.persistence.entity.Location
import mwvdev.beright... | 0 | Kotlin | 0 | 0 | 1333ccc8613aa913bd1032e1ab6b851fdba46b53 | 4,855 | berightthere_android | MIT License |
app/src/main/java/com/langfordapps/taskmanager/tasksdisplay/domain/GetTaskByIdUseCase.kt | rkam88 | 262,081,903 | false | null | package com.langfordapps.taskmanager.tasksdisplay.domain
import com.langfordapps.taskmanager.commons.data.TasksDataSource
import javax.inject.Inject
class GetTaskByIdUseCase @Inject constructor(private val tasksDataSource: TasksDataSource) {
suspend fun execute(taskId: Long) = tasksDataSource.getTaskById(taskId)... | 0 | Kotlin | 1 | 3 | fe29a9d9b016d3dc9dfa2f67c6edb8ccc0f4e6f0 | 323 | TaskManager | MIT License |
multiplatform/ui/src/commonMain/kotlin/multiplatform/ui/di/AppDi.kt | Alaksion | 743,354,018 | false | {"Kotlin": 122689} | package multiplatform.ui.di
import multiplatform.foundation.logger.di.loggerModule
import multiplatform.ui.listeners.listenersModule
import mutiplatform.session.di.sessionModule
import org.kodein.di.DI
val applicationModule = DI.Module("imagefy-di") {
import(unsplashModule)
import(sessionModule)
import(li... | 0 | Kotlin | 0 | 0 | c486e238d42734a84606c4377b91409e9b929960 | 361 | ImagefyAndroid | MIT License |
app/src/main/java/giuliolodi/gitnav/ui/events/EventActivity.kt | GLodi | 67,536,967 | false | null | /*
* Copyright 2017 GLodi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 3 | Kotlin | 5 | 26 | 3311c38d74dc1e7d28cba344815aa908e6915e64 | 2,024 | GitNav | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Scribble.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,866 | icons | MIT License |
kzen-auto-common/src/jvmMain/kotlin/tech/kzen/auto/common/util/data/FilePathJvm.kt | alexoooo | 131,353,826 | false | {"Gradle Kotlin DSL": 7, "Java Properties": 1, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "INI": 2, "Kotlin": 565, "YAML": 26, "Java": 26, "XML": 1, "CSS": 3, "JavaScript": 2} | package tech.kzen.auto.common.util.data
import java.nio.file.Path
import java.nio.file.Paths
object FilePathJvm {
fun FilePath.Companion.of(path: Path): FilePath {
return of(path.toAbsolutePath().normalize().toString())
}
fun FilePath.normalize(): FilePath {
return FilePath.of(toPath())... | 1 | null | 1 | 1 | 3ff1a0b68c3df7e65b7085e23e9ea2070786b552 | 405 | kzen-auto | MIT License |
lib_base/src/main/java/com/lqk/base/activity/mvi/IViewEvent.kt | liqiankun1229 | 540,239,882 | false | {"Kotlin": 468060, "C++": 424646, "Java": 146925, "Makefile": 105248, "Dart": 63273, "Assembly": 39872, "C": 33166, "JavaScript": 23214, "HTML": 15122, "Roff": 12367, "CMake": 9830, "Ruby": 8128, "CSS": 2767, "Groovy": 2242, "Objective-C": 1745, "Python": 1072, "Shell": 534, "AIDL": 67} | package com.lqk.base.activity.mvi
/**
* @author LQK
* @time 2022/8/3 17:31
*
*/
interface IViewEvent {
} | 0 | Kotlin | 0 | 0 | 71a44b69d89f301a967ed0df112a04c6bbfbff3f | 109 | ComposeCalculator | Apache License 2.0 |
app/src/main/java/retrofit2/adapter/RepositoryAdapter.kt | ShahbazExpress | 360,755,825 | true | {"JavaScript": 2389470, "Kotlin": 880810, "Java": 372870, "HTML": 28241, "CSS": 21881, "GLSL": 11815, "Handlebars": 8883, "Less": 8172, "Shell": 4309, "Makefile": 668, "Batchfile": 264} | package retrofit2.adapter
import okhttp3.ResponseBody
import org.jsoup.Jsoup
import retrofit2.Converter
import retrofit2.Retrofit
import retrofit2.model.Repository
import retrofit2.model.Result
import retrofit2.service.GitHubSearch
import java.io.IOException
import java.lang.reflect.Type
class RepositoryAdapter : Con... | 0 | null | 0 | 0 | b3ed9b6e27e670b596be487117b56f94c78eee83 | 1,667 | aafactory-commons | Apache License 2.0 |
app/src/main/java/wannabit/io/cosmostaion/ui/tx/step/kava/PoolActionFragment.kt | cosmostation | 418,314,439 | false | null | package wannabit.io.cosmostaion.ui.tx.step.kava
import android.app.Activity
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.Vie... | 1 | null | 43 | 83 | b04f3615c7c7b4407d719e160155a8c03fbae3a9 | 27,073 | cosmostation-android | MIT License |
jps-plugin/testData/incremental/pureKotlin/internalTypealias/TypeAlias.kt | JakeWharton | 99,388,807 | true | null | package foo
internal typealias TypeAlias = Int
internal typealias TypeAlias2 = TypeAlias | 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 89 | kotlin | Apache License 2.0 |
src/main/kotlin/no/bouvet/paas/ApplicationConfig.kt | oysteinovrebo | 275,846,947 | false | {"Kotlin": 4194, "HTML": 1256} | package no.bouvet.paas
import com.stripe.Stripe
import org.springframework.context.annotation.Configuration
@Configuration
class ApplicationConfig {
init {
Stripe.apiKey = System.getenv("stripe_secret")
}
} | 0 | null | 0 | 0 | 1522fc94c6fa7454582609c3be600fec2ef03137 | 226 | penguins-as-a-service | The Unlicense |
plugins/grazie/src/main/kotlin/com/intellij/grazie/ide/ui/grammar/tabs/rules/GrazieRulesTab.kt | ingokegel | 72,937,917 | true | null | package com.intellij.grazie.ide.ui.grammar.tabs.rules
import com.intellij.grazie.GrazieConfig
import com.intellij.grazie.ide.msg.GrazieInitializerManager
import com.intellij.grazie.ide.msg.GrazieStateLifecycle
import com.intellij.grazie.ide.ui.components.GrazieUIComponent
import com.intellij.grazie.ide.ui.components.d... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,877 | intellij-community | Apache License 2.0 |
src/main/kotlin/com/eve/engine/esi4k/model/Leaderboard.kt | EveEngine | 254,506,280 | false | null | package com.eve.engine.esi4k.model
import com.fasterxml.jackson.annotation.JsonProperty
open class Leaderboard (
@JsonProperty("kills") val kills: CharacterLeaderboardKills,
@JsonProperty("victory_points") val victoryPoints: LeaderboardVictoryPoints
)
open class LeaderboardKills (
@JsonProperty("active_... | 0 | Kotlin | 0 | 0 | 6aba2e43a8dc11b2c435d08b91dc9ed4baf9ea9b | 1,052 | esi4k | Apache License 2.0 |
ui/src/main/kotlin/com/aptopayments/sdk/features/passcode/PasscodeContract.kt | AptoPayments | 197,800,853 | false | null | package com.aptopayments.sdk.features.passcode
import com.aptopayments.sdk.core.platform.FragmentDelegate
interface PasscodeContract {
interface Delegate : FragmentDelegate {
fun onPasscodeSetCorrectly(passCode: String)
fun onBackPressed()
}
interface View {
var delegate: Delegat... | 1 | Kotlin | 0 | 0 | 257af71aa439b3e90c150ae258c78eaa1a6ae817 | 331 | apto-ui-sdk-android | MIT License |
app/src/main/java/com/iax3m/bluetoothtracker/android/MainActivity.kt | IssacAX123 | 599,800,883 | false | null | package com.iax3m.bluetoothtracker.android
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.ads.*
import com.google.android.gms.ads.interstitial.InterstitialAd
import com.google.and... | 0 | Kotlin | 0 | 0 | e515cd6b41206b4e00886c3f960b18cd151d628b | 2,210 | Bluetooth-Tracker | Apache License 2.0 |
app/src/main/java/com/silverpants/instantaneous/ui/search/SearchItem.kt | jeevansurendran | 329,681,176 | false | null | package com.silverpants.instantaneous.ui.search
import android.view.View
import com.silverpants.instantaneous.R
import com.silverpants.instantaneous.data.user.models.AnotherUser
import com.silverpants.instantaneous.databinding.ItemSearchUserBinding
import com.silverpants.instantaneous.misc.loadImageOrDefault
import co... | 0 | Kotlin | 1 | 1 | 5c7665cb87e19a3c3c84ab046e58bbd33d21cf51 | 1,145 | instantaneous | MIT License |
SKIE/compiler/kotlin-plugin/src/kgp_common/kotlin/co/touchlab/skie/phases/KotlinIrPhase.kt | touchlab | 685,579,240 | false | {"Kotlin": 1037159, "Swift": 24501, "Shell": 183} | package co.touchlab.skie.phases
import co.touchlab.skie.kir.irbuilder.impl.DeclarationBuilderImpl
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.ir.declarations.IrModuleFragment
interface KotlinIrPhase : SkiePhase<KotlinIrPhase.Context> {
interface Context : Ski... | 7 | Kotlin | 4 | 349 | 4fb232cf9fe86eadb7776c5b0eeff812ce313a01 | 585 | SKIE | Apache License 2.0 |
src/iosMain/kotlin/ch/dreipol/dreimultiplatform/UserDefaultsKeyValueStore.kt | dreipol | 283,491,376 | false | {"Kotlin": 45568} | package ch.dreipol.dreimultiplatform
import platform.Foundation.NSUserDefaults
data class UserDefaultsKeyValueStore(val userDefaults: NSUserDefaults) : PersistentKeyValueStore {
constructor() : this(NSUserDefaults.standardUserDefaults())
override fun storeString(
string: String,
forKey: Strin... | 1 | Kotlin | 2 | 11 | a1b4830ec2f60e2b8c6c54ff61be33603df36f72 | 1,739 | dreimultiplatform | MIT License |
ktpack/src/commonMain/kotlin/ktpack/commands/TestCommand.kt | DrewCarlson | 371,519,366 | false | null | package ktpack.commands
import com.github.ajalt.clikt.core.*
import com.github.ajalt.mordant.terminal.*
class TestCommand(private val term: Terminal) : CliktCommand(
help = "Compile and run test suites.",
) {
override fun run() {
TODO("Not yet implemented")
}
}
| 7 | null | 0 | 6 | f13043792ac0e3222fde59d0f9f82980450a20b0 | 284 | ktpack | MIT License |
vk-api-generated/src/main/kotlin/name/anton3/vkapi/generated/wall/objects/WallpostFullImpl.kt | Anton3 | 159,801,334 | true | {"Kotlin": 1382186} | @file:Suppress("unused", "SpellCheckingInspection")
package name.anton3.vkapi.generated.newsfeed.objects
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import name.anton3.vkapi.generated.common.objects.CommentsInfo
import name.anton3.vkapi.generated.common.objects.LikesInfo
import name.anton3.vkapi.... | 2 | Kotlin | 0 | 8 | 773c89751c4382a42f556b6d3c247f83aabec625 | 4,629 | kotlin-vk-api | MIT License |
runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt | Kotlin | 21,763,603 | false | null | package org.jetbrains.dokka.gradle
import org.gradle.kotlin.dsl.withType
import org.gradle.testfixtures.ProjectBuilder
import org.jetbrains.dokka.DokkaSourceSetID
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import java.io.File
import kotlin.test.Test
import kotlin.test.assertEquals
class KotlinDs... | 380 | null | 356 | 2,799 | ed6c67bd55ad0211b9be40dda3027340eecd5919 | 3,329 | dokka | Apache License 2.0 |
src/main/kotlin/org/geepawhill/kontentment/Timer.kt | GeePawHill | 635,065,699 | false | null | package org.geepawhill.kontentment
interface Timer {
fun start()
fun stop()
} | 0 | Kotlin | 0 | 1 | 898e5fa473e3dd1a222b779e98dd9d6b67ae9bb3 | 86 | kontentment2 | MIT License |
transition/transition/src/androidTest/java/androidx/transition/EpicenterTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 3,161 | androidx | Apache License 2.0 |
app/src/main/java/com/spongycode/songquest/data/model/gameplay/PlayingModel.kt | spongycode | 739,898,675 | false | {"Kotlin": 184688} | package com.spongycode.songquest.data.model.gameplay
import kotlinx.serialization.Serializable
@Serializable
data class PlayingModel(
val game: GameModel? = null,
val gamesPlayed: Int? = null,
val isMoreQuestion: Boolean? = null,
val questions: List<QuestionModel>? = null
) | 0 | Kotlin | 0 | 8 | 3afbbfa7a90552e926258e41ddff007e5b9e1e5c | 292 | song-quest | MIT License |
src/main/kotlin/mainpack/Main.kt | J-MR-T | 359,117,393 | false | null | import calculations.Matrix
import kotlin.system.exitProcess
import calculations.Matrix.Companion.addAll
import calculations.Matrix.Companion.multiplyAll
import calculations.Matrix.Companion.readMatrix
import calculations.Matrix.Companion.times
import codes.LinearCode
private val exitCommands: List<String> = listOf("qu... | 0 | Kotlin | 0 | 0 | 2295152b89fc2fd9f5a9a48db8c9655fea035451 | 5,515 | MatrixMultiplication | MIT License |
solar/src/main/java/com/chiksmedina/solar/lineduotone/astronomy/StarFall.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.linear.astronomy
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companio... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 20,695 | SolarIconSetAndroid | MIT License |
app/src/main/java/com/amit/img_picker/provider/CameraProvider.kt | amitjangid80 | 129,866,990 | false | null | package com.amit.img_picker.provider
import android.Manifest
import android.app.Activity
import android.content.Intent
import androidx.core.app.ActivityCompat
import com.amit.dbapilibrary.R
import com.amit.img_picker.ImagePickerActivity
import com.amit.img_picker.util.FileUtil
import com.amit.img_picker.util.IntentUti... | 1 | null | 3 | 2 | cec5e4f8c337ed07e8ca9b33a6b2c0ee196c4066 | 3,864 | DBApiLib | Apache License 2.0 |
core/src/commonTest/kotlin/io/islandtime/TimeTest.kt | erikc5000 | 202,192,185 | false | null | package io.islandtime
import io.islandtime.internal.NANOSECONDS_PER_DAY
import io.islandtime.internal.SECONDS_PER_DAY
import io.islandtime.measures.*
import io.islandtime.parser.*
import io.islandtime.test.AbstractIslandTimeTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith... | 12 | null | 6 | 76 | f11ad23ddde65995bdaa16e2f20bb2e7b966fbfb | 13,449 | island-time | Apache License 2.0 |
rattle-paper/src/main/kotlin/io/github/aecsocket/rattle/paper/PaperEntityStrategy.kt | aecsocket | 598,554,214 | false | null | package io.github.aecsocket.rattle.paper
import io.github.aecsocket.rattle.ColliderKey
import io.github.aecsocket.rattle.RigidBodyKey
import io.github.aecsocket.rattle.world.EntityStrategy
import org.bukkit.entity.Entity
class PaperEntityStrategy : EntityStrategy() {
private data class Instance(
val body:... | 0 | Kotlin | 0 | 9 | ea7078be0a0a0454e80aff14340e0ccfab927f46 | 440 | rattle | MIT License |
app/src/main/java/com/akexorcist/glassmorphism/GlassContainerLayout.kt | akexorcist | 317,063,912 | false | null | package com.akexorcist.glassmorphism
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
import android.renderscript.Allocation
import andro... | 0 | Kotlin | 6 | 24 | d717efcc564313160ccc6e8375812d3567a0dc1b | 6,571 | Glassmorphism | Apache License 2.0 |
src/main/kotlin/coverstats/server/coverage/processors/JacocoProcessor.kt | pawitp | 189,834,428 | false | null | package coverstats.server.coverage.processors
import coverstats.server.models.coverage.CoverageFile
import coverstats.server.models.coverage.CoverageStatement
import coverstats.server.models.coverage.CoverageStatus
import coverstats.server.models.scm.ScmFile
import coverstats.server.models.scm.ScmFileType
import cover... | 0 | Kotlin | 0 | 0 | d45a3629d971321f2f4320ecf6d582565a6a8203 | 3,827 | coverstats | MIT License |
library/src/main/java/com/santalu/maskara/widget/MaskTextView.kt | nimblehq | 321,942,442 | true | {"Kotlin": 12718} | package com.santalu.maskara.widget
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
import com.santalu.maskara.Action
import com.santalu.maskara.Mask
import com.santalu.maskara.MaskResult
import com.santalu.maskara... | 0 | Kotlin | 0 | 1 | 38ef54b25bdedede1618cb7eef29614208a7970c | 2,125 | maskara | Apache License 2.0 |
src/test/kotlin/com/tgirard12/cqrssimple/CommandBusImplTest.kt | RepoForks | 123,380,926 | true | {"Kotlin": 24506} | package com.tgirard12.cqrssimple
import com.tgirard12.cqrssimple.stub.*
import io.kotlintest.KTestJUnitRunner
import io.kotlintest.matchers.shouldEqual
import io.kotlintest.matchers.shouldThrow
import io.kotlintest.specs.WordSpec
import org.junit.runner.RunWith
@Suppress("UNCHECKED_CAST")
@RunWith(KTestJUnitRunner::... | 0 | Kotlin | 0 | 0 | 2f3d48901a133fac1763b2c3d6f482227872e81b | 1,618 | cqrs-simple | Apache License 2.0 |
plugins/kotlin/compiler-reference-index/tests/testData/compilerIndex/functions/topLevel/functionWithJvmName/Main.kt | ingokegel | 72,937,917 | false | null | package top.level
@JvmName("customName")
fun topLevelFu<caret>nction() {
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 76 | intellij-community | Apache License 2.0 |
app/src/main/java/com/mindorks/example/jetpack/compose/animation/CrossFadeAnimationActivity.kt | benjaminwan | 363,053,200 | true | {"Kotlin": 124415} | package com.mindorks.example.jetpack.compose.animation
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.c... | 0 | Kotlin | 0 | 0 | 1c7f7b17a705d425282959a79ea98dcb636dd85c | 2,021 | Jetpack-Compose-Android-Examples | Apache License 2.0 |
src/Day12.kt | arnoutvw | 572,860,930 | false | null | import java.lang.Math.abs
typealias GridPosition = Pair<Int, Int>
typealias Barrier = Set<GridPosition>
const val MAX_SCORE = 99999999
fun main() {
abstract class Grid() {
open fun heuristicDistance(start: GridPosition, finish: GridPosition): Int {
val dx = abs(start.first - finish.first)
... | 0 | Kotlin | 0 | 0 | 0cee3a9249fcfbe358bffdf86756bf9b5c16bfe4 | 6,331 | aoc-2022-in-kotlin | Apache License 2.0 |
spring-boot-mobility/src/test/kotlin/com/example/mobility/location/service/LocationServiceUnitTest.kt | anirban99 | 302,595,489 | false | null | package com.example.mobility.location.service
import com.example.mobility.location.datasource.PolygonClient
import com.example.mobility.location.exception.PolygonNotFoundException
import com.example.mobility.location.utils.PolygonUtils
import com.example.mobility.utils.faker.LocationFaker
import com.example.mobility.u... | 0 | Kotlin | 8 | 9 | 5b2fefbe07e1b5f36b5a5f633b1d5bb78657d183 | 4,313 | spring-boot-examples | Apache License 2.0 |
app/src/main/java/com/wyd/yd_app/network/interceptor/CommonRequestInterceptor.kt | chong2vv | 527,822,914 | false | null | package com.wyd.yd_app.network.interceptor
import okhttp3.Interceptor
import okhttp3.Response
class CommonRequestInterceptor : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
val request = chain.request()
val builder = request.newBuilder()
return chain.proceed(bu... | 0 | Kotlin | 0 | 1 | 9c62f20192f66d9cecabcf173292a0f67abd6d6c | 342 | yd-general-android-app | Apache License 2.0 |
app/src/main/kotlin/com/search/images/data/database/entity/ImageModelEntity.kt | drayan85 | 389,480,225 | false | null | /*
* Copyright (C) 2021 <NAME> 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 req... | 0 | Kotlin | 0 | 0 | 00962b0f72d15143445dcccd17fcb61846f66ff0 | 1,401 | Android-Search-Images-Kotlin | Apache License 2.0 |
netk/src/main/java/com/mozhimen/netk/NetKAsync.kt | mozhimen | 556,827,365 | false | {"Kotlin": 234448, "Java": 28281} | package com.mozhimen.netk
import com.mozhimen.netk.commons.INetKFactory
import com.mozhimen.netk.commons.INetKInterceptor
import com.mozhimen.netk.helpers.MethodParser
import com.mozhimen.netk.helpers.Scheduler
import java.lang.reflect.InvocationHandler
import java.lang.reflect.Method
import java.lang.reflect.Proxy
im... | 0 | Kotlin | 0 | 0 | 86c11ac60fb6b537fd5d505fa733497d451f1494 | 2,201 | NetKit | Apache License 2.0 |
src/test/kotlin/com/unqueam/gamingplatform/integration_tests/DeveloperRequestIT.kt | UNQueam | 681,903,849 | false | {"Kotlin": 149452, "HTML": 3393} | package com.unqueam.gamingplatform.integration_tests
import com.unqueam.gamingplatform.application.dtos.RejectedMessage
import com.unqueam.gamingplatform.application.http.API
import com.unqueam.gamingplatform.integration_tests.data_loader.RequestToBeDeveloperDataLoader
import org.junit.jupiter.api.BeforeEach
import or... | 0 | Kotlin | 0 | 0 | f8e80a146d23cd061f4934ecefbe6005e903e525 | 3,831 | unqueam-backend | MIT License |
doc/JavaFx/7.Window.kt | pickjob | 623,227,656 | false | null | /**
* javafx窗口:
* javafx.stage.Window
* javafx.stage.Stage
* javafx.stage.PopupWindow
* javafx.stage.Popup
* javafx.scene.control.PopupControl
* javafx.scene.control.Tooltip: 提示框
* javafx.scene.control.ContextMenu: 上下文菜单, 弹出菜单
*... | 0 | Kotlin | 0 | 0 | b516dc7b4af3e990760678953a00bca32f61d469 | 361 | javafx-starter | MIT License |
data/src/main/java/com/pp/moviefy/data/remote/certifications/api/CertificationsDao.kt | pauloaapereira | 356,418,263 | false | null | /*
* Copyright 2021 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | e174b88ab2397720c47f81c06603794e142bd91f | 983 | Moviefy | Apache License 2.0 |
identity/src/main/kotlin/com/pos/identity/business/services/interfaces/JwtManagementInterface.kt | iulian-rusu | 439,727,920 | false | null | package com.pos.identity.business.services.interfaces
import com.pos.identity.TokenDestructionRequest
import com.pos.identity.TokenDestructionResponse
import com.pos.identity.TokenValidationRequest
import com.pos.identity.TokenValidationResponse
interface JwtManagementInterface {
fun validate(request: TokenValida... | 0 | Kotlin | 0 | 1 | 3b1ded5ecdce6d0d2a053e48b0def1e73731dceb | 435 | digital-bookstore | MIT License |
app/src/main/java/com/actively/recorder/usecase/SetRecorderStateUseCase.kt | actively-pw | 671,584,612 | false | {"Kotlin": 364808} | package com.actively.recorder.usecase
import com.actively.recorder.RecorderState
import com.actively.repository.ActivityRecordingRepository
/**
* Sets state of the recorder.
*/
interface SetRecorderStateUseCase {
suspend operator fun invoke(state: RecorderState)
}
class SetRecorderStateUseCaseImpl(
privat... | 0 | Kotlin | 0 | 0 | 33c791dfa6ce82a6ccacb1b5cdb39d2a26302ef4 | 530 | actively-mobile | MIT License |
src/backend/ci/core/repository/biz-repository/src/main/kotlin/com/tencent/devops/repository/service/GitCheckService.kt | TencentBlueKing | 189,153,491 | false | {"Kotlin": 30176725, "Vue": 6739254, "JavaScript": 1256623, "Go": 616850, "Lua": 567159, "TypeScript": 461781, "SCSS": 365654, "Shell": 157561, "Java": 153049, "CSS": 106299, "HTML": 96201, "Python": 39238, "Less": 24714, "Makefile": 10630, "Smarty": 10297, "Dockerfile": 5097, "Batchfile": 4908, "PowerShell": 1626, "VB... | package com.tencent.devops.repository.service
import com.tencent.devops.common.api.enums.RepositoryConfig
import com.tencent.devops.repository.dao.GitCheckDao
import com.tencent.devops.repository.pojo.ExecuteSource
import com.tencent.devops.repository.pojo.RepositoryGitCheck
import org.jooq.DSLContext
import org.sprin... | 719 | Kotlin | 498 | 2,382 | dd483c38bdbe5c17fa0e5e5bc3390cd1cd40757c | 1,738 | bk-ci | MIT License |
src/main/kotlin/ru/justagod/model/MethodModel.kt | JustAGod1 | 179,755,842 | false | {"Kotlin": 232299, "Java": 12281} | package ru.justagod.model
import org.objectweb.asm.tree.MethodNode
class MethodModel(
val name: String,
val access: AccessModel,
val returnType: TypeModel,
val parameters: List<TypeModel>,
val node: MethodNode,
parent: AbstractModel
) : AbstractModel(parent) | 0 | Kotlin | 0 | 0 | 016ce0d70d0a6b330d74b8f6032fc44d713f3409 | 308 | cutter | MIT License |
library/src/iosMain/kotlin/com/myunidays/couchbaselite/Error+Extensions.kt | MyUNiDAYS | 674,162,377 | false | null | package com.myunidays.couchbaselite
import com.rickclephas.kmp.nserrorkt.asThrowable
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.ObjCObjectVar
import kotlinx.cinterop.alloc
import kotlinx.cinterop.memScoped
import kotlinx.cinterop.pointed
import kotlinx.cinte... | 0 | null | 0 | 8 | 4f294d708250eb55e5148988f55a5b025d0ff57e | 863 | couchbaselite-kotlin-sdk | MIT License |
java/src/main/java/trinsic/okapi/keys/v1/JsonWebKeyKt.kt | trinsic-id | 305,426,498 | false | {"Dart": 573038, "Kotlin": 155130, "TypeScript": 147436, "Rust": 112106, "Python": 50752, "Java": 39903, "C#": 31124, "Go": 27567, "PowerShell": 7564, "JavaScript": 3820, "C": 3436} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: okapi/keys/v1/keys.proto
package trinsic.okapi.keys.v1
@kotlin.jvm.JvmName("-initializejsonWebKey")
public inline fun jsonWebKey(
block: trinsic.okapi.keys.v1.JsonWebKeyKt.Dsl.() -> kotlin.Unit
): trinsic.okapi.keys.v1.Keys.JsonWebKey =
tri... | 40 | Dart | 11 | 26 | d4faa62a056caa08a406fd67c4b766747a2326e6 | 3,490 | okapi | Apache License 2.0 |
src/test/kotlin/com/github/pawelkowalski92/aoc/day04/card/CardValueCalculatorTest.kt | pawelkowalski92 | 726,175,728 | false | {"Kotlin": 77190} | package com.github.pawelkowalski92.aoc.day04.card
import io.kotest.core.spec.style.ShouldSpec
import io.kotest.matchers.shouldBe
class CardValueCalculatorTest : ShouldSpec({
should("calculate value of a card") {
// given
val calculator = CardValueCalculator()
// and
val card = Ca... | 0 | Kotlin | 0 | 0 | 96879809e9175073ac1d19a93db8d76d90686500 | 598 | advent-of-code-2023 | Apache License 2.0 |
reflekt-plugin/src/test/resources/io/reflekt/plugin/analysis/data/classes3_test/project/test/Main.kt | vovakfake | 352,456,214 | true | {"Kotlin": 154061} | package io.reflekt.test
import io.reflekt.Reflekt
fun main() {
val classes = Reflekt.classes().withSubTypes(B1::class)
val classes1 = Reflekt.classes().withSubType<B1>()
}
| 0 | null | 0 | 0 | 791e5370f4d8e57225f873ccc0f0d3b39d883de9 | 182 | reflekt | Apache License 2.0 |
projects/unpaid-work-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/DatasetGenerator.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 3846531, "HTML": 58177, "D2": 30565, "Ruby": 25392, "Shell": 12351, "SCSS": 6240, "HCL": 2712, "Dockerfile": 2414, "JavaScript": 1344, "Python": 268} | package uk.gov.justice.digital.hmpps.data.generator
import uk.gov.justice.digital.hmpps.integrations.common.entity.Dataset
import uk.gov.justice.digital.hmpps.integrations.common.entity.DatasetCode
object DatasetGenerator {
val GENDER = generate(DatasetCode.GENDER)
val ETHNICITY = generate(DatasetCode.ETHNICI... | 15 | Kotlin | 0 | 2 | f53146f969b1acf4dbd147a5d588c5ad23c15a78 | 1,019 | hmpps-probation-integration-services | MIT License |
LudoCompose/app/src/main/java/hu/bme/aut/android/ludocompose/ui/theme/Type.kt | Kis-Benjamin | 693,261,151 | false | {"Kotlin": 211498, "Java": 182} | /*
* Copyright © 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 0 | a5d5b3b9b4fa98f0e00dae4d1c73816a5b915456 | 2,831 | Ludo | Apache License 2.0 |
foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateResolver.kt | GayPizzaSpecifications | 447,482,867 | false | null | package gay.pizza.foundation.core.features.update
import gay.pizza.foundation.concrete.ExtensibleManifest
import kotlinx.serialization.json.Json
import org.bukkit.Server
import java.net.URL
class UpdateResolver {
fun fetchCurrentManifest(): ExtensibleManifest {
val jsonContentString = latestManifestUrl.openStre... | 1 | Kotlin | 0 | 0 | 4b1af52ef0190ee753c965bdf7af0031bb4ec744 | 2,128 | foundation | MIT License |
app/src/main/java/com/pt/pro/alarm/views/EditAlarmFragment.kt | OmAr-Kader | 674,357,483 | false | {"Kotlin": 2780433} | package com.pt.pro.alarm.views
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import androidx.viewpager2.widget.ViewPager2
import com.pt.common.global.AlarmSack
import com.pt.common.global.findAttr
import com.pt.common.mutual.life.GlobalSimpleFragment
import com.pt.common... | 0 | Kotlin | 0 | 0 | fe57fe5a4029119ac287ab8d3d4b5ccfc05af3a0 | 8,277 | PT-All-Pro | Apache License 2.0 |
app/src/main/kotlin/com/mr3y/podcaster/ui/utils/DateTime.kt | mr3y-the-programmer | 720,570,256 | false | {"Kotlin": 944363, "HTML": 196} | package com.mr3y.podcaster.ui.utils
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import com.mr3y.podcaster.core.model.Episode
import com.mr3y.podcaster.core.model.dateTimePublished
import java.time.ZoneId
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
@... | 10 | Kotlin | 3 | 68 | 5113b7c03c5d8df6e3a0a74260912460cace5fbf | 743 | Podcaster | Apache License 2.0 |
galileo/src/main/java/com/josedlpozo/galileo/floaticon/FloatIconPreferenceUtils.kt | josedlpozo | 142,195,248 | false | {"Gradle": 23, "Java Properties": 2, "Shell": 1, "Text": 3, "Ignore List": 21, "Batchfile": 1, "YAML": 2, "Markdown": 12, "XML": 130, "Kotlin": 160, "Java": 4, "Gemfile.lock": 1, "HTML": 6, "robots.txt": 1, "Ruby": 1, "SVG": 3, "SCSS": 6, "CSS": 1, "JavaScript": 3, "INI": 1, "Proguard": 1} | /*
* Copyright (C) 2016 The CyanogenMod Project
*
* Modified Work: Copyright (c) 2018 fr4nk1
*
* Modified Work: Copyright (c) 2018 josedlpozo
*
* 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 Lic... | 4 | Kotlin | 2 | 12 | 3020749842eb19c1a3fdecb5654f9de9665d662d | 2,578 | Galileo | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonerfromnomismigration/courtsentencing/CourtSentencingSynchronisationIntTest.kt | ministryofjustice | 452,734,022 | false | {"Kotlin": 1630292, "Mustache": 1803, "Dockerfile": 1374} | package uk.gov.justice.digital.hmpps.prisonerfromnomismigration.courtsentencing
import com.github.tomakehurst.wiremock.client.WireMock
import com.github.tomakehurst.wiremock.client.WireMock.anyUrl
import com.github.tomakehurst.wiremock.client.WireMock.deleteRequestedFor
import com.github.tomakehurst.wiremock.client.Wi... | 4 | Kotlin | 0 | 2 | 90390707558a0729b4b1338085826b2390874827 | 28,084 | hmpps-prisoner-from-nomis-migration | MIT License |
libraries/card-input-view/src/main/java/com/trendyol/cardinputview/formatter/CardNumberFormatterTextWatcher.kt | Trendyol | 220,991,853 | false | {"Kotlin": 321758} | package com.trendyol.cardinputview.formatter
import android.text.Editable
import android.text.TextWatcher
import com.trendyol.cardinputview.CreditCardType
import com.trendyol.cardinputview.updateText
import java.util.concurrent.atomic.AtomicBoolean
internal class CardNumberFormatterTextWatcher(
private val suppor... | 2 | Kotlin | 18 | 210 | 33add825e423a7e08a0ca4f1c8c0e6df940281f2 | 955 | android-ui-components | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.