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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
common/src/main/kotlin/dev/erdragh/astralbot/handlers/FileWatcher.kt | Erdragh | 723,352,761 | false | {"Kotlin": 26227, "Java": 2141} | package dev.erdragh.astralbot.handlers
import dev.erdragh.astralbot.LOGGER
import kotlinx.coroutines.*
import java.nio.file.*
class FileWatcher(private val directoryPath: Path, private val handler: (event: WatchEvent<Path>) -> Unit) {
private var job: Job? = null
private var watchService: WatchService? = null... | 0 | Kotlin | 0 | 1 | d589ddc6ca54e2af84b39e03c1af820d5eeead0d | 1,552 | AstralBot | MIT License |
kmath-core/src/commonMain/kotlin/space/kscience/kmath/linear/MatrixWrapper.kt | SciProgCentre | 129,486,382 | false | {"Kotlin": 1988014, "ANTLR": 887} | /*
* Copyright 2018-2024 KMath 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 space.kscience.kmath.linear
import space.kscience.attributes.Attribute
import space.kscience.attributes.Attributes
import space.kscience.attribu... | 88 | Kotlin | 55 | 645 | 3e8f44166c4a4ed6e99e1676a7200ed044645224 | 2,473 | kmath | Apache License 2.0 |
app/src/main/java/com/melodie/parotia/ui/search/history/HistoryColor.kt | gejiaheng | 284,195,510 | false | null | package com.melodie.parotia.ui.search.history
import androidx.annotation.ColorRes
import com.melodie.parotia.R
import kotlin.random.Random
enum class HistoryColor(@ColorRes val color: Int, @ColorRes val colorBg: Int) {
COLOR_0(R.color.search_history_color_0, R.color.search_history_color_0_20),
COLOR_1(R.color... | 0 | Kotlin | 1 | 2 | f19459dac17f35cc26af5379764c292fef42be91 | 640 | Parotia | Apache License 2.0 |
app/src/main/kotlin/com/muedsa/muaa/features/Aria2RpcWidget.kt | muedsa | 703,390,470 | false | {"Kotlin": 34391} | package com.muedsa.muaa.features
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Outli... | 0 | Kotlin | 0 | 0 | ca6db399b0c3b3e298fde421b809d9f7a4f36a6f | 5,816 | MUAA | MIT License |
app/src/main/java/com/skydoves/themovies/view/adapter/ReviewListAdapter.kt | paolorotolo | 163,106,329 | false | null | package com.skydoves.themovies.view.adapter
import android.view.View
import com.skydoves.baserecyclerviewadapter.BaseAdapter
import com.skydoves.baserecyclerviewadapter.BaseViewHolder
import com.skydoves.baserecyclerviewadapter.SectionRow
import com.skydoves.themovies.R
import com.skydoves.themovies.models.Resource
im... | 0 | null | 0 | 2 | f784a842ba15feaeb1e958e0267f550160554a5d | 1,017 | TheMovies | MIT License |
app/src/androidTest/java/com/yury/lebowski/data/AccountDaoTest.kt | iliailemkov | 143,139,061 | true | {"Kotlin": 112583} | package com.yury.lebowski.data
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import androidx.room.Room
import androidx.test.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4
import com.yury.lebowski.data.local.dao.AccountDao
import com.yury.lebowski.data.local.db.LebowskiDb
impo... | 0 | Kotlin | 0 | 0 | aec038962531c5c1945ce4df71f3f93c15ebd4c1 | 2,396 | Lebowski | Creative Commons Attribution 3.0 Unported |
core/tests-core-arch/src/test/java/com/gabrielfv/core/arch/tests/recycler/ListDiffCallbackTest.kt | gfreivasc | 286,602,068 | 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 writ... | 0 | Kotlin | 0 | 1 | 00faf2da270e51d85e4a836cc314aac01bfbe6e4 | 2,997 | biller-fragment | Apache License 2.0 |
url-gen/src/main/kotlin/com/cloudinary/transformation/ClippingPath.kt | baraka-gini | 266,517,520 | true | {"Kotlin": 589400, "Java": 7089} | package com.cloudinary.transformation
class ClippingPath(private val action: Action) : Action by action {
class Builder : TransformationComponentBuilder {
private var index: Int? = null
private var path: String? = null
private var evenOdd: Boolean = false
fun index(index: Int) = ... | 0 | Kotlin | 0 | 0 | 4eedf1de1b7d784dff7232aa108f6a363364f205 | 1,090 | cloudinary_kotlin | MIT License |
app/src/main/java/me/hexile/odexpatcher/utils/LogUtils.kt | giacomoferretti | 293,629,531 | false | {"Kotlin": 97502, "Shell": 9943} | /*
* Copyright 2020-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 10 | Kotlin | 12 | 70 | fffee1ff0928c6c1cdadb1953bdd47d57c4c3588 | 1,434 | odex-patcher | Apache License 2.0 |
plugins/git4idea/src/git4idea/index/ui/GitStageTree.kt | hieuprogrammer | 284,920,751 | 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 git4idea.index.ui
import com.intellij.ide.dnd.DnDActionInfo
import com.intellij.ide.dnd.DnDDragStartBean
import com.intellij.ide.dnd.DnDEvent
import com.intellij.ide.util... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 17,674 | intellij-community | Apache License 2.0 |
dsl/s3/src/main/kotlin/software/amazon/awscdk/dsl/services/s3/dsl.kt | aws-cdk-dsl | 176,878,480 | false | {"Kotlin": 3500307} | package software.amazon.awscdk.dsl.services.s3
/**
* @see software.amazon.awscdk.services.s3.Bucket
*/
fun software.amazon.awscdk.Construct.bucket(id: String,
props: software.amazon.awscdk.services.s3.BucketProps? = null,
init: (software.amazon.awscdk.services.s3.Bucket.() ->... | 2 | Kotlin | 0 | 31 | 054694dc9793b7455c517af6afd666ec742594d4 | 87,673 | aws-cdk-kotlin-dsl | MIT License |
src/main/kotlin/lt/neworld/vd2svg/processor/Processor.kt | neworld | 114,039,773 | false | null | package lt.neworld.vd2svg.processor
import com.xenomachina.argparser.SystemExitException
import lt.neworld.vd2svg.converter.Converter
import lt.neworld.vd2svg.logProgress
import java.io.File
import java.io.FileOutputStream
import java.io.OutputStream
import java.nio.file.PathMatcher
/**
* @author Andrius Semionovas
... | 0 | Kotlin | 13 | 98 | a81d4612352a1447efaefbed01d23c4633cb527a | 1,683 | vd2svg | Apache License 2.0 |
ChallengeUI/src/main/java/com/drivequant/drivekit/challenge/ui/challengedetail/viewmodel/ChallengeDetailViewModel.kt | DriveQuantPublic | 216,339,559 | false | {"Kotlin": 1650199, "Java": 8753} | package com.drivequant.drivekit.challenge.ui.challengedetail.viewmodel
import android.content.Context
import android.graphics.Typeface.BOLD
import android.text.Spannable
import android.text.SpannableString
import android.view.View
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import and... | 1 | Kotlin | 2 | 9 | 596a46ce63257f5aad5f5b8eddd57de4e5454ef7 | 20,120 | drivekit-ui-android | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/delegates/kt41982.kt | JetBrains | 3,432,266 | false | null | // ISSUE: KT-41982
import kotlin.reflect.KProperty
class Delegate<R, T> {
operator fun getValue(thisRef: R, property: KProperty<*>): T = null!!
operator fun setValue(thisRef: R, property: KProperty<*>, value: T) {}
}
abstract class DelegateProvider<in Type>
fun <Type : Base, Base : DelegateProvider<Base>> ... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 467 | kotlin | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/delegates/kt41982.kt | JetBrains | 3,432,266 | false | null | // ISSUE: KT-41982
import kotlin.reflect.KProperty
class Delegate<R, T> {
operator fun getValue(thisRef: R, property: KProperty<*>): T = null!!
operator fun setValue(thisRef: R, property: KProperty<*>, value: T) {}
}
abstract class DelegateProvider<in Type>
fun <Type : Base, Base : DelegateProvider<Base>> ... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 467 | kotlin | Apache License 2.0 |
sensitivewords/src/main/kotlin/top/shenluw/nsfn/sensitivewords/WordStore.kt | shenluw | 190,761,968 | false | null | package top.shenluw.nsfn.sensitivewords
import java.io.File
import java.io.FileInputStream
import java.io.InputStreamReader
import java.util.*
import java.util.function.Consumer
/**
* 敏感词数据中心,可以是内存,文件,在线获取
*
* @author Shenluw
* created:2019/6/6 22:35
*/
abstract class WordStore {
companion object;
private val... | 0 | Kotlin | 0 | 0 | 2db9d00d3c59ba4434322e4002e851324b22ea3e | 1,287 | spring-nsfn-validation-starter | MIT License |
utils/adapter/src/main/java/com/g985892345/android/utils/adapter/vp/FragmentVpAdapter.kt | 985892345 | 677,411,791 | false | {"Kotlin": 151318, "Shell": 5228} | package com.g985892345.android.utils.adapter.vp
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter
/**
*
* 正确的 FragmentStateAdapter 用法
* ```
* /... | 0 | Kotlin | 0 | 2 | 55ddf14ee78f7ea0ef19aac546f9f5f3756584b1 | 1,839 | AndroidWheel | Apache License 2.0 |
json-logic/src/test/kotlin/io/github/ayushmaanbhav/jsonLogic/operations/numeric/AdditionTest.kt | ayushmaanbhav | 633,602,472 | false | {"Kotlin": 739672, "Shell": 1175, "Dockerfile": 1119} | package io.github.ayushmaanbhav.jsonLogic.operations.numeric
import io.github.ayushmaanbhav.jsonLogic.JsonLogicEngine
import io.github.ayushmaanbhav.jsonLogic.JsonLogicResult
import io.github.ayushmaanbhav.jsonLogic.stdlib.TestInput
import io.github.ayushmaanbhav.jsonLogic.utils.toBigDecimalDefaultContext
import io.gi... | 0 | Kotlin | 0 | 0 | 28cfa17f9eb435d149a97d6b08f1eff7d1a54854 | 7,337 | product-farm | Apache License 2.0 |
src/main/kotlin/ar/edu/unq/arqs1/MercadilloLibreBack/lib/ProductSpecificatoinsBuilder.kt | ArqSoft-Unq | 406,999,376 | false | {"Kotlin": 136681, "Dockerfile": 132} | package ar.edu.unq.arqs1.MercadilloLibreBack.lib
import ar.edu.unq.arqs1.MercadilloLibreBack.models.Product
import org.springframework.data.jpa.domain.Specification
class ProductSpecificationsBuilder(private val specification: Specification<Product>? = null) {
private val params: MutableList<ProductSpecification>... | 0 | Kotlin | 0 | 0 | e3ded142d9194166dc1d24050e972f05e16a3daf | 956 | MercadilloLibreBack | MIT License |
src/main/kotlin/com/tobiadeyinka/jenkinsci/plugins/builddashboard/BuildDashboard.kt | beverlyRoadGoose | 189,773,283 | false | null | /*
* MIT License
*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 0 | 1 | 49c5ff3ca07d01c81ee6204dba8f3d60cfeff1b9 | 5,034 | jenkins-build-dashboard | MIT License |
plugins/terminal/src/org/jetbrains/plugins/terminal/exp/completion/TerminalCompletionUtil.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.terminal.exp.completion
import com.intellij.icons.AllIcons
import com.intellij.openapi.fileTypes.FileTypeRegistry
import com.intellij.openapi.fileTypes.UnknownFileType
... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 2,693 | intellij-community | Apache License 2.0 |
app/src/main/java/alexandre/ladriere/thegeneralculturequiz/HistoryActivity.kt | AlexandreLadriere | 226,545,398 | false | null | package alexandre.ladriere.thegeneralculturequiz
import alexandre.ladriere.thegeneralculturequiz.questions.AppDatabase
import alexandre.ladriere.thegeneralculturequiz.questions.Question
import alexandre.ladriere.thegeneralculturequiz.questionsreview.QuestionReviewAdapter
import alexandre.ladriere.thegeneralculturequiz... | 0 | Kotlin | 0 | 1 | 966b008ae95090224d70dae8020b8928ec22383d | 11,466 | Android_The-general-culture-quiz | MIT License |
src/test/kotlin/org/rust/lang/core/psi/RsCodeFragmentCompletionTestBase.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.psi
import com.intellij.openapi.project.Project
import com.intellij.psi.util.parentOfType
import com.intellij.testFramework.fixtures.CodeInsightTestFixture
import org.intellij.lang.ann... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 2,334 | intellij-rust | MIT License |
app/src/main/java/com/rokoblak/chatbackup/ui/commonui/ChatDisplay.kt | oblakr24 | 598,672,859 | false | null | package com.rokoblak.chatbackup.commonui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import and... | 0 | Kotlin | 0 | 1 | c35b0c214aa58d11497037bb66f44ed42f2e8de4 | 3,215 | chat-backup-app | Apache License 2.0 |
shared/src/iosMain/kotlin/main.ios.kt | yoshimuratakuma0 | 642,908,865 | false | null | import androidx.compose.ui.window.ComposeUIViewController
import domain.usecases.GetSampleTextUseCase
actual fun getPlatformName(): String = "iOS"
fun MainViewController(getSampleTextUseCase: GetSampleTextUseCase) =
ComposeUIViewController { App(getSampleTextUseCase) }
| 0 | Kotlin | 0 | 0 | f4df4360a90b6cf3bfecce520729f85e566dcd73 | 276 | compose-multiplatform-di-template | Apache License 2.0 |
client/android/app/src/main/java/org/devtcg/robotrc/robotview/ui/RobotViewFragment.kt | jasta | 462,495,183 | false | null | package org.devtcg.robotrc.robotview.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
class RobotViewFragment: Fragment() {
private lateinit var layoutAgent: RobotLayoutAgent
override fun onCreateView(
... | 0 | Kotlin | 0 | 0 | 8f2a755e1ff6b745f934a56ccfaea12b8a91c418 | 804 | ev3-remote-control | MIT License |
compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/bound/emptyLHS.kt | JetBrains | 3,432,266 | false | null | // WITH_STDLIB
// WITH_COROUTINES
import helpers.*
import kotlin.coroutines.*
var result = ""
class A {
suspend fun memberFunction() {
result += "A.mf,"
}
suspend fun aMemberFunction() {
result += "A.amf,"
}
suspend fun test(): String {
(::memberFunction)()
(::aE... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,709 | kotlin | Apache License 2.0 |
mylibrary/src/main/java/com/esp/library/utilities/data/lookup/LookupInfoListDAO.kt | ahsan1122 | 255,336,932 | false | null | package utilities.data.lookup
class ESP_LIB_LookupInfoListDAO {
var id: Int = 0
var titleCustomFieldId: Int = 0
var fieldsCount: Int = 0
lateinit var name: String
lateinit var createdOn: String
var isVisible: Boolean = false
var isMain: Boolean = false
var isShowToApplicant: Boolean = ... | 1 | null | 1 | 1 | 6e962b8507eb55d5bfb646d230517ae93be14aa7 | 364 | ISP_Library | MIT License |
app/src/androidTest/java/com/atiurin/espressopageobjectexample/pages/ChatPage.kt | yurykalash | 284,529,836 | true | {"Kotlin": 104494, "Java": 13380} | package com.atiurin.espressopageobjectexample.pages
import android.view.View
import androidx.core.view.size
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withText
import com.atiurin.espressopageobjectexamp... | 0 | null | 0 | 0 | 631c66758a431ef2c1d355cc8cf3b87ab85e140c | 2,895 | espresso-page-object | Apache License 2.0 |
app/src/main/java/com/reift/movieapp/data/MovieRepository.kt | ReihanFatilla | 523,763,069 | false | {"Kotlin": 65738} | package com.reift.movieapp.data
import android.content.Context
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import com.reift.movieapp.data.remote.ApiClient
import com.reift.movieapp.data.response.CreditResponse
import com.reift.movieapp.data.response.DetailResponse
import com.reif... | 0 | Kotlin | 2 | 4 | fad24a7548e0ba5407e4a3a5c4bea8fa4b171d57 | 5,213 | Movo | MIT License |
src/main/kotlin/jetbrains/buildServer/server/querylang/ast/abstractFilters.kt | JetBrains | 285,547,183 | false | {"Kotlin": 340073, "ANTLR": 10846, "Java": 10814} | package jetbrains.buildServer.server.querylang.ast
import jetbrains.buildServer.server.querylang.ast.wrappers.AllElementsVisitor
import jetbrains.buildServer.server.querylang.ast.wrappers.AnyElementValidator
import jetbrains.buildServer.server.querylang.ast.wrappers.ElementValidator
import jetbrains.buildServer.server... | 4 | Kotlin | 5 | 3 | 5f83223c23bc282b2cec4a04c736de91716e72be | 1,133 | teamcity-search-ql | Apache License 2.0 |
app/src/main/java/com/vietnam/corona/api/globalData/GlobalDataHolder.kt | 18HCB | 277,356,246 | false | {"Java": 125778, "Kotlin": 1446} | package com.vietnam.corona.api.globalData
import retrofit2.Call
import retrofit2.http.GET
interface GlobalDataHolder {
@GET("/api")
fun getGlobalData(): Call<GlobalData>
} | 1 | Java | 1 | 1 | 8bc8156840e40791be23c8a9cc11082f1538c13b | 183 | corona | MIT License |
src/main/kotlin/com/exactpro/th2/codec/EncodeProcessor.kt | jean-michel-perli-sonsin | 315,864,047 | true | {"Kotlin": 57695, "Dockerfile": 290} | /*
* Copyright 2020-2020 Exactpro (Exactpro Systems Limited)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 0 | null | 0 | 0 | 00c253f0ae9848650b4684e8a84452b80d1ad227 | 2,920 | th2-codec | Apache License 2.0 |
app/src/main/java/com/ithebk/tasks/ui/addtask/AddTaskBottomDialogFragment.kt | ithebk | 197,948,569 | false | null | package com.ithebk.tasks.ui.addtask
import android.content.Context
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android.widget.TextView
import androidx.cardview.widget.Card... | 0 | Kotlin | 0 | 1 | 343493a889e61afa06e44b9ce858a5e447075269 | 4,298 | task_app | Apache License 2.0 |
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt | react-native-tvos | 177,633,560 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<77fc4d6577fc0e2e9a0500cc762bba77>>
*/
/**
* IMPORTANT: Do NOT modify this file directly.
*
* To ch... | 18 | null | 141 | 897 | f8904c210b1be562d3e141b083c7c24b6fc85750 | 4,110 | react-native-tvos | MIT License |
analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/declarations/KotlinDirectInheritorsProvider.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... | /*
* Copyright 2010-2024 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.analysis.api.platform.declarations
import com.intellij.openapi.components.servic... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,540 | kotlin | Apache License 2.0 |
yetutil/src/main/java/yet/ui/widget/TabBarItemView.kt | yangentao | 64,828,822 | false | null | package yet.ui.widget
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.widget.RelativeLayout
import android.widget.TextView
import yet.ext.RGB
import yet.theme.Colors
import yet.ui.ext.*
import yet.ui.res.D
import yet.ui.res.Res
import yet.ui.res.siz... | 0 | Kotlin | 0 | 0 | e5f048899e88d34e0fbc331b76cdd5d897495438 | 1,726 | klib | Apache License 2.0 |
yabapi-core/src/commonMain/kotlin/moe/sdl/yabapi/connect/LiveMessageConnection.kt | SDLMoe | 437,756,989 | false | null | package moe.sdl.yabapi.connect
import io.ktor.client.HttpClient
import io.ktor.client.plugins.websocket.DefaultClientWebSocketSession
import io.ktor.client.plugins.websocket.wss
import io.ktor.http.HttpMethod
import io.ktor.utils.io.core.buildPacket
import io.ktor.utils.io.core.readUInt
import io.ktor.utils.io.core.to... | 0 | null | 1 | 26 | c8be46f9b5e4db1e429c33b0821643fd94789fa1 | 9,648 | Yabapi | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/zaneschepke/wireguardautotunnel/service/tunnel/WireGuardTunnel.kt | zaneschepke | 644,710,160 | false | {"Kotlin": 225248, "HTML": 1349} | package com.zaneschepke.wireguardautotunnel.service.tunnel
import com.wireguard.android.backend.Backend
import com.wireguard.android.backend.BackendException
import com.wireguard.android.backend.Statistics
import com.wireguard.android.backend.Tunnel
import com.wireguard.crypto.Key
import com.zaneschepke.wireguardautot... | 8 | Kotlin | 8 | 96 | 79583e0e61b69312a2c317abbea09409107c8d3e | 5,374 | wgtunnel | MIT License |
browser-kotlin/src/jsMain/kotlin/web/crypto/Algorithm.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6328455} | // Automatically generated - do not modify!
package web.crypto
import kotlinx.js.JsPlainObject
@JsPlainObject
external interface Algorithm {
var name: String
}
| 1 | Kotlin | 8 | 35 | 6c553c67c6cbf77a802c137d010b143895c7da60 | 167 | types-kotlin | Apache License 2.0 |
app/src/main/java/io/github/aloussase/booksdownloader/behaviors/BottomNavigationViewBehavior.kt | aloussase | 759,640,931 | false | {"Kotlin": 76283} | package io.github.aloussase.booksdownloader.behaviors
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.ViewCompat
import com.google.android.material.bottomnavigation.BottomNavigationView
class BottomNavigationViewBehavior : CoordinatorLayout.Behavior<Bottom... | 3 | Kotlin | 4 | 60 | 010dcdcb3cca09cff1e01f4166cb015c29b20762 | 1,662 | AlexandriaApp | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/locationsinsideprison/resource/PrisonerLocationResource.kt | ministryofjustice | 738,978,080 | false | null | package uk.gov.justice.digital.hmpps.locationsinsideprison.resource
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.media.Content
import io.swagger.v3.oas.annotations.media.Schema
import io.swagger.v3.oas.annotations.responses.ApiResponse
import io.swagger.v3.oas.annotations.tags.Ta... | 3 | null | 0 | 2 | 9946a37ef6ee0301ce3bd626015f5a927e991007 | 4,730 | hmpps-locations-inside-prison-api | MIT License |
reflekt-plugin/src/main/kotlin/org/jetbrains/reflekt/plugin/generation/ir/ReflektIrTransformer.kt | JetBrains-Research | 293,503,377 | false | null | package org.jetbrains.reflekt.plugin.generation.ir
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.cli.common.messages.MessageCollector
import org.jetbrains.kotlin.ir.declarations.*
import org.jetbrains.kotlin.ir.expressions.IrCall
import org.jetbrains.kotlin.ir.expres... | 13 | null | 9 | 325 | 6ad9ebf8a4591c6fd729deea56063406b8c72612 | 3,644 | reflekt | Apache License 2.0 |
app/src/main/java/com/example/crudloginpage/di/RepostioryModule.kt | hardigerz | 787,808,754 | false | {"Kotlin": 53449} | package com.example.crudloginpage.di
import com.example.crudloginpage.repository.PhotoRepository
import com.example.crudloginpage.repository.PhotoRepositoryImpl
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent:... | 0 | Kotlin | 0 | 0 | f1ddebf69d4f5028da3f333c8f92d1858110cf12 | 470 | CRUDLoginPage | Apache License 2.0 |
app/src/main/java/de/lemke/sudoku/domain/GetDailySudokusUseCase.kt | Lemkinator | 539,200,477 | false | {"Kotlin": 307941} | package de.lemke.sudoku.domain
import de.lemke.sudoku.data.database.SudokusRepository
import de.lemke.sudoku.domain.model.Sudoku
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.time.LocalDate
import javax.inject.Inject
class GetDailySudokusUseCase @Inject constructor(
priva... | 0 | Kotlin | 1 | 8 | 2b61114ed2912c1886d1be88b0dc7be72cde34e5 | 1,826 | Sudoku | MIT License |
.teamcity/src/templates/KibanaTemplate.kt | vincent-fuchs | 330,519,717 | true | {"TypeScript": 82483297, "JavaScript": 11701547, "SCSS": 366647, "Shell": 217254, "CSS": 208671, "HTML": 139006, "Groovy": 105359, "Kotlin": 43154, "Perl": 12787, "Handlebars": 10144, "ANTLR": 9216, "Python": 8657, "Dockerfile": 7359, "Batchfile": 3782, "Gherkin": 1716} | package templates
import StandardAgents
import co.elastic.teamcity.common.requireAgent
import getProjectBranch
import isReportingEnabled
import vcs.Kibana
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildStep
import jetbrains.buildServer.configs.kotlin.v2019_2.ParameterDisplay
import jetbrains.buildServer.conf... | 0 | null | 0 | 0 | e4b89d42d8bd16d92f94cff6ade7abd221ea0594 | 4,894 | kibana | Apache License 2.0 |
Notes/app/src/main/java/com/example/notes/ui/screens/registration/LogInFragment.kt | trypuzz | 590,908,174 | false | null | package com.example.notes.ui.screeens.registration
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.example.notes.*
import com.example.notes.databinding.FragmentLogInBinding
im... | 0 | Kotlin | 0 | 9 | 088cd66c2bba97ea1cfd62d35b2d70c4837a6d09 | 3,502 | pet-projects | MIT License |
03_ANDROID/02_ANDROID_COMPOSE_UI/03_STOCKS_APP/app/src/main/java/com/aryan/stockmarketapp/StockApplication.kt | singhtwenty2 | 743,251,401 | false | {"Kotlin": 215510} | package com.aryan.stockmarketapp
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class StockApplication: Application() {
} | 0 | Kotlin | 0 | 1 | 9830286cba16130d236cf834d22d390de0bb3594 | 165 | AndroidWithKotlinJourney | MIT License |
test_runner/src/test/kotlin/ftl/doctor/DoctorTest.kt | rashiq | 267,499,333 | false | {"Markdown": 10, "INI": 2, "Gradle Kotlin DSL": 6, "Go": 1, "Shell": 7, "Java": 68, "JavaScript": 2, "HTML": 2, "CSS": 2, "TypeScript": 1, "Java Properties": 1, "Batchfile": 1, "Kotlin": 123} | package ftl.doctor
import com.google.common.truth.Truth.assertThat
import ftl.args.AndroidArgs
import ftl.args.IosArgs
import ftl.test.util.FlankTestRunner
import java.nio.file.Paths
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(FlankTestRunner::class)
class DoctorTest {
@Test
fun androidDoct... | 1 | null | 1 | 1 | bd8dd925f6f10a61fe583b03b63228daa0f6a885 | 2,636 | flank | MIT License |
telegram/src/main/kotlin/com/github/kotlintelegrambot/entities/HideKeyboardReplyMarkup.kt | kotlin-telegram-bot | 121,235,631 | false | null | package com.github.kotlintelegrambot.entities
import com.google.gson.Gson
import com.google.gson.annotations.SerializedName as Name
data class HideKeyboardReplyMarkup(
@Name("hide_keyboard") val hideKeyboard: Boolean = true,
val selective: Boolean? = null
) : ReplyMarkup {
private companion object {
... | 67 | null | 161 | 794 | 18013912c6a8c395b6491c2323a8f5eb7288b4f5 | 406 | kotlin-telegram-bot | Apache License 2.0 |
ktoml-core/src/commonTest/kotlin/com/akuleshov7/ktoml/encoders/TomlDocsEncoderTest.kt | orchestr7 | 330,720,838 | false | {"Kotlin": 453507, "Shell": 606} | package com.akuleshov7.ktoml.encoders
import com.akuleshov7.ktoml.Toml
import com.akuleshov7.ktoml.TomlIndentation
import com.akuleshov7.ktoml.TomlOutputConfig
import com.akuleshov7.ktoml.annotations.TomlInlineTable
import com.akuleshov7.ktoml.annotations.TomlLiteral
import kotlinx.datetime.Instant
import kotlinx.date... | 36 | Kotlin | 23 | 450 | b22969a093d3a1f062d3b9840c9195c09951d8b2 | 5,575 | ktoml | MIT License |
compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/supertypesAndBounds.kt | JakeWharton | 99,388,807 | false | null | // FIR_IDENTICAL
interface Tr : <!DYNAMIC_SUPERTYPE!>dynamic<!>
fun <T: <!DYNAMIC_UPPER_BOUND!>dynamic<!>> foo() {}
class C<T> where T : <!DYNAMIC_UPPER_BOUND!>dynamic<!> | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 173 | kotlin | Apache License 2.0 |
detail/api/src/main/java/com/novina/navigation/lib/detail/api/domain/data/DetailTransitionData.kt | mohammad8135 | 542,037,428 | false | null | package com.novina.navigation.lib.detail.api.domain.data
data class DetailTransitionData(val id: Int) | 0 | Kotlin | 1 | 2 | 9bbf65a8e90feedf98748bd750e32ede292389f3 | 102 | Modularisation-and-Navigation | Apache License 2.0 |
roboquant-server/src/main/kotlin/org/roboquant/server/PausablePolicy.kt | neurallayer | 406,929,056 | false | null | /*
* Copyright 2020-2024 Neural Layer
*
* 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 ag... | 8 | null | 42 | 316 | 769f1aade1e8e95817591866faad4561f7768071 | 2,204 | roboquant | Apache License 2.0 |
composables/src/androidTest/java/dev/medzik/android/composables/navigation/NavigationTests.kt | M3DZIK | 698,762,035 | false | {"Kotlin": 61620} | package dev.medzik.android.components
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
imp... | 0 | Kotlin | 0 | 1 | f12fcb6dc99fd66f2857a8d9ae0904496d9cbe99 | 2,608 | android-utils | MIT License |
camera/camera-camera2-pipe-integration/src/androidTest/java/androidx/camera/camera2/pipe/integration/InitializationTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 823 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,810 | androidx | Apache License 2.0 |
app/src/main/java/com/sgtech/wendysclear/MainActivity.kt | DSieghard | 380,814,690 | false | null | package com.sgtech.wendysclear
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVie... | 0 | Kotlin | 0 | 0 | f5d373a7abd650cababaf2bb3936374218d54b1d | 1,230 | WendysClear2021 | Creative Commons Zero v1.0 Universal |
app/src/main/kotlin/com/dot/gallery/core/util/MediaStoreBuckets.kt | IacobIonut01 | 614,314,251 | false | {"Kotlin": 1381485, "Shell": 455} | /*
* SPDX-FileCopyrightText: 2023 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package com.dot.gallery.core.util
enum class MediaStoreBuckets {
/**
* Favorites album.
*/
MEDIA_STORE_BUCKET_FAVORITES,
/**
* Trash album.
*/
MEDIA_STORE_BUCKET_TRASH,
/**
... | 87 | Kotlin | 66 | 1,292 | 261ceb8c5ade6ede7b295536b9384ac12d77f572 | 771 | Gallery | Apache License 2.0 |
frogosdk/src/main/java/com/frogobox/sdk/core/IFrogoFragment.kt | frogobox | 293,762,352 | false | null | package com.frogobox.nutritionframework.core
import android.view.View
import androidx.fragment.app.Fragment
/*
* Created by faisalamir on 28/07/21
* FrogoSDK
* -----------------------------------------
* Name : <NAME>
* E-mail : <EMAIL>
* Github : github.com/amirisback
* -------------------------------... | 1 | null | 4 | 8 | 427d5a98ef5027f000fab91d8e563a606bbb0462 | 866 | frogo-android-sdk | Apache License 2.0 |
kira/src/main/java/com/popovanton0/kira/suppliers/OneOfManySupplier.kt | popovanton0 | 489,662,148 | false | {"Kotlin": 294584} | package com.popovanton0.kira.suppliers
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.tooling.preview.Preview
import com.popovanton0.kira.suppliers.base.ClassType
impo... | 0 | Kotlin | 0 | 5 | b65f7af94b94cd5334fd5070b1676b99a15fbffe | 4,245 | kira | Apache License 2.0 |
app/src/main/java/br/com/fiap/calculodejuros/MainActivity.kt | GusGaiotti | 682,293,262 | false | null | package br.com.fiap.calculodejuros
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.ui.M... | 0 | Kotlin | 0 | 0 | 85c7c0d096595d9465551369035bcbe78bb34617 | 876 | interest-calculator | MIT License |
app/src/main/java/com/cuidedacidade/features/main/di/MainComponent.kt | daniloabranches | 281,368,825 | false | null | package com.cuidedacidade.features.main.di
import com.cuidedacidade.features.main.MainActivity
import dagger.Subcomponent
@Subcomponent
interface MainComponent {
@Subcomponent.Factory
interface Factory {
fun create(): MainComponent
}
fun inject(activity: MainActivity)
} | 0 | Kotlin | 0 | 1 | ee646396e98595aad72d048b80beaec9712e56a2 | 297 | app-cuide-cidade-igti | MIT License |
src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/configuration/oauth2/authorizationserver/CustomAuthenticationEntrypoint.kt | team-xquare | 494,272,840 | false | {"Kotlin": 89316, "Shell": 417, "Dockerfile": 391} | package com.example.v1oauthauthorizationservice.infrastructure.configuration.oauth2.authorizationserver
import com.example.v1oauthauthorizationservice.infrastructure.configuration.exception.basic.InternalServerError
import com.example.v1oauthauthorizationservice.infrastructure.configuration.exception.utils.ExceptionRe... | 1 | Kotlin | 0 | 2 | e051e84b40a983775023b9978b747c2428c1d00d | 1,757 | v1-service-oauth | MIT License |
src/main/kotlin/com/cc/csdnexport/wordpress/TableTermTaxonomy.kt | cclover | 146,782,036 | false | null | package com.cc.csdnexport.wordpress
import java.math.BigInteger
/**
* TableTerms只记录术语,而这个表记录各种类型的terms
*/
class TableTermTaxonomy {
companion object {
const val CATEGORY = "category"
const val POST_TAG = "post_tag"
const val NAV_MENU = "nav_menu"
}
constructor(termID: Long, ta... | 0 | Kotlin | 0 | 0 | c1796f0b715f07295e51612f9cac4b68d4f4c110 | 963 | csdnexport | Apache License 2.0 |
src/main/kotlin/com/cc/csdnexport/wordpress/TableTermTaxonomy.kt | cclover | 146,782,036 | false | null | package com.cc.csdnexport.wordpress
import java.math.BigInteger
/**
* TableTerms只记录术语,而这个表记录各种类型的terms
*/
class TableTermTaxonomy {
companion object {
const val CATEGORY = "category"
const val POST_TAG = "post_tag"
const val NAV_MENU = "nav_menu"
}
constructor(termID: Long, ta... | 0 | Kotlin | 0 | 0 | c1796f0b715f07295e51612f9cac4b68d4f4c110 | 963 | csdnexport | Apache License 2.0 |
src/main/kotlin/org/kirinhorse/kbt/decorators/Repeat.kt | KirinHorse | 674,049,029 | false | {"Kotlin": 67726} | package org.kirinhorse.kbt.decorators
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.kirinhorse.kbt.Component
import org.kirinhorse.kbt.Decorator
import org.kirinhorse.kbt.KBTInput
import org.kirinhorse.kbt.NodeConfig
import org.kirinhorse.kbt.Types
@KBTInput("times", Types.KBT... | 0 | Kotlin | 0 | 1 | df984343faadf5920c8c215f5f78bafc670f163b | 959 | KotlinBehaviors | MIT License |
src/main/kotlin/com/sononio/bookmaker/util/enhancement/LocalDateTimeEnhancement.kt | sononio | 280,885,581 | false | null | package com.sononio.bookmaker.util.enhancement
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter
import java.util.*
fun String.toDate(formatter: DateTimeFormatter): Date? {
return LocalDateTime.parse(this, formatter).toDate()
}
fun LocalDateTime.toDate(): Date {
... | 9 | Kotlin | 0 | 1 | 4246dc9812b194cc0d6775e2e02ad7b785a35f05 | 388 | bookmakerbot | Apache License 2.0 |
components/membership/membership-http-rpc-impl/src/test/kotlin/net/corda/membership/impl/httprpc/v1/CertificatesRestResourceImplTest.kt | corda | 346,070,752 | false | null | package net.corda.membership.impl.httprpc.v1
import net.corda.crypto.cipher.suite.KeyEncodingService
import net.corda.crypto.client.CryptoOpsClient
import net.corda.crypto.core.CryptoConsts
import net.corda.crypto.core.CryptoTenants.P2P
import net.corda.data.certificates.CertificateUsage
import net.corda.data.crypto.w... | 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 29,078 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/lucianbc/receiptscan/domain/extract/Scannable.kt | lucianbc | 183,749,890 | false | null | package com.lucianbc.receiptscan.domain.extract
import android.graphics.Bitmap
import io.reactivex.Observable
interface Scannable {
fun ocrElements(): Observable<OcrElements>
fun image(): Observable<Bitmap>
} | 13 | null | 1 | 2 | 05950c87f2eda6f53f886e340459aa13cdbdd621 | 218 | ReceiptScan | Apache License 2.0 |
html/src/main/java/rikka.html/text/HtmlCompat.kt | An0nYm0u5101 | 261,490,724 | true | {"Java Properties": 2, "Gradle": 15, "Shell": 1, "Batchfile": 1, "Text": 1, "Ignore List": 11, "Git Config": 1, "INI": 6, "Java": 196, "Proguard": 10, "XML": 389, "Kotlin": 29, "AIDL": 1, "Soong": 1} | @file:Suppress("unused")
package rikka.html.text
import android.text.Spanned
fun CharSequence.toHtml(flags: Int = 0): Spanned {
return HtmlCompat.fromHtml(this.toString(), flags)
} | 0 | null | 0 | 0 | 0d61dc24364df25d5c4665427fa24831e0e251b6 | 187 | libraries | MIT License |
ktaf/src/test/kotlin/com/github/benpollarduk/ktaf/command/conversation/NextTest.kt | benpollarduk | 696,256,399 | false | {"Kotlin": 526799, "JavaScript": 486, "HTML": 346, "CSS": 343} | package com.github.benpollarduk.ktaf.command.conversation
import com.github.benpollarduk.ktaf.assets.characters.NonPlayableCharacter
import com.github.benpollarduk.ktaf.assets.interaction.ReactionResult
import com.github.benpollarduk.ktaf.commands.conversation.Next
import com.github.benpollarduk.ktaf.logic.GameTestHel... | 0 | Kotlin | 0 | 9 | b892bacb2a877b58a2192b7d01a7ee22aff9c5de | 1,097 | ktaf | MIT License |
sentry/src/test/java/io/sentry/BaggageTest.kt | getsentry | 3,368,190 | false | null | package io.sentry
import com.github.javafaker.Faker
import io.sentry.Baggage.MAX_BAGGAGE_LIST_MEMBER_COUNT
import io.sentry.Baggage.MAX_BAGGAGE_STRING_LENGTH
import io.sentry.protocol.SentryId
import java.util.UUID
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test... | 300 | Kotlin | 435 | 995 | 549cbb4657b9dea1048c4882e79504e87d6acc4f | 27,745 | sentry-java | MIT License |
src/main/kotlin/com/example/home/configuration/security/SecurityConfiguration.kt | Winnie-the-Pooh2019 | 730,062,537 | false | {"Kotlin": 29973, "HTML": 17610, "Dockerfile": 194, "PLpgSQL": 177} | package com.example.home.configuration.security
import com.example.home.service.HomeUserDetailsService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.authent... | 0 | Kotlin | 0 | 0 | 2d9b87827cd3935b39ef6a09c41fa8b097b6cbfa | 2,535 | home | MIT License |
app/src/main/java/com/ateca/domain/core/SortType.kt | atecaorg | 483,473,306 | false | null | package com.ateca.domain.core
/**
* Created by dronpascal on 29.05.2022.
*/
sealed class SortType {
object Created : SortType()
object Modified : SortType()
object Name : SortType()
object Idle : SortType()
}
| 1 | Kotlin | 0 | 3 | aca913f87263d6eac4a8925c74e6e801729ba6bf | 232 | Ateca | Apache License 2.0 |
plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt | kamilok1965 | 171,309,084 | false | null | package org.jetbrains.dokka.base.renderers.html
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import org.jetbrains.dokka.base.renderers.sourceSets
import org.jetbrains.dokka.model.DEnum
import org.jetbrain... | 1 | null | 1 | 1 | 7c036dff0d40b1ea8bca8ee5aea5a211d4f090af | 6,313 | dokka | Apache License 2.0 |
geary-papermc-plugin/src/main/kotlin/com/mineinabyss/geary/papermc/plugin/commands/GearyStatsCommand.kt | MineInAbyss | 592,086,123 | false | {"Kotlin": 245944} | package com.mineinabyss.geary.papermc.plugin.commands
import com.mineinabyss.geary.helpers.entity
import com.mineinabyss.geary.modules.archetypes
import com.mineinabyss.idofront.commands.Command
import com.mineinabyss.idofront.messaging.info
fun Command.stats() {
"stats" {
action {
val tempEnt... | 1 | Kotlin | 0 | 4 | f765a15878512d314808f8622cd54dc85ed12beb | 612 | geary-papermc | MIT License |
libraries/tools/kotlin-gradle-plugin-idea-proto/src/generated/kotlin/org/jetbrains/kotlin/gradle/idea/proto/generated/tcs/IdeaKotlinBinaryCoordinatesProtoKt.kt | JetBrains | 3,432,266 | false | null | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto_tcs.proto
package org.jetbrains.kotlin.gradle.idea.proto.generated.tcs;
@kotlin.jvm.JvmName("-initializeideaKotlinBinaryCoordinatesProto")
inline fun ideaKotlinBinaryCoordinatesProto(block: org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 9,827 | kotlin | Apache License 2.0 |
wasi-emscripten-host/src/commonMain/kotlin/wasi/preview1/type/Rights.kt | illarionov | 769,429,996 | false | {"Kotlin": 1838071} | /*
* Copyright 2024, the wasi-emscripten-host project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
@file:Suppress("MagicNumber")
package at.released... | 0 | Kotlin | 1 | 3 | 5f513e2413987ce681f12ea8e14a2aff2c56a7fd | 5,621 | wasm-sqlite-open-helper | Apache License 2.0 |
features/src/main/kotlin/ru/mobileup/features/root/DI.kt | MobileUpLLC | 495,342,634 | false | {"Kotlin": 206427} | package ru.mobileup.features.root
import com.arkivanov.decompose.ComponentContext
import ru.mobileup.core.ComponentFactory
import ru.mobileup.features.root.ui.RealRootComponent
import ru.mobileup.features.root.ui.RootComponent
import org.koin.core.component.get
fun ComponentFactory.createRootComponent(componentContex... | 0 | Kotlin | 1 | 1 | 717fec2a43e5e9314b7ffe0d3aaa94047b6ca229 | 413 | Education-Space-Android | MIT License |
src/main/kotlin/com/lapismc/minecraft/yggdrasil/ProfileList.kt | lapis-mc | 97,967,682 | false | null | package com.lapismc.minecraft.yggdrasil
import java.util.UUID
/**
* Collection of profiles the player can choose from to play with.
* @param available List of all profiles the player has.
* @param selectedId ID of the profile the player is currently using.
*/
class ProfileList(val available: List<Profile>, val se... | 0 | Kotlin | 0 | 1 | ff17e7084d4ed45d135a187a68d5abf6eaf8965f | 471 | yggdrasil | MIT License |
solar/src/main/java/com/chiksmedina/solar/bold/messagesconversation/ChatRoundDots.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.bold.messagesconversation
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... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 3,904 | SolarIconSetAndroid | MIT License |
app/src/main/java/com/example/tmobileappkotlin/model/Attributes.kt | suki-sahota | 280,921,015 | false | null | package com.example.tmobileappkotlin.model
import com.squareup.moshi.Json
data class Attributes( // text attributes
@Json(name = "font") val font: Font,
@Json(name = "text_color") val text_color: String
) | 0 | Kotlin | 0 | 1 | b3939049163d20e60351134f08345a2e32678afc | 214 | tMobileAppKotlin | MIT License |
app/src/main/java/uk/co/sentinelweb/cuer/app/ui/play_control/mvi/CastPlayerMviFragment.kt | sentinelweb | 220,796,368 | false | null | package uk.co.sentinelweb.cuer.app.ui.play_control.mvi
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.SeekBar
import androidx.annotation.ColorRes
import androidx.core.view.isVisible
import androidx.... | 95 | null | 0 | 2 | cd5b28c720c08c9b718f904421b0580e6b716ec0 | 9,532 | cuer | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/tilgang/AnsattTilgangApiV2.kt | navikt | 233,810,005 | false | {"Kotlin": 36477, "Dockerfile": 217} | package no.nav.syfo.tilgang
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.auth.jwt.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import no.nav.syfo.util.*
import org.slf4j.Logger
import org.slf4j.LoggerFactory
private val LOG: Logger ... | 2 | Kotlin | 0 | 0 | c429aed643b8b72460551d6612184b19f3c7fba8 | 3,077 | syfobrukertilgang | MIT License |
solidblocks-hetzner-nuke/nuker/src/main/kotlin/de/solidblocks/hetzner/nuke/Cli.kt | pellepelster | 427,474,970 | false | null | package de.solidblocks.hetzner.nuke
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.subcommands
import com.github.ajalt.clikt.parameters.options.multiple
import com.github.ajalt.clikt.parameters.options.option
import com.github.ajalt.clikt.parameters.options.required
import com.githu... | 6 | null | 5 | 8 | 7e8c67129ba674a3c604e70c70a69ed3eb2723f8 | 1,589 | solidblocks | MIT License |
samples/KaraDemo/src/karademo/models/Post.kt | erokhins | 11,252,917 | false | null | package karademo.models
import java.util.Date
/**
*/
public class Post(var date : Date, var title : String) {
public var body : String = ""
}
| 0 | null | 0 | 1 | 77aabd409ebc4d940256c8a42444a484e5116b1d | 151 | kara | Apache License 2.0 |
privacy-config/privacy-config-impl/src/main/java/com/duckduckgo/privacy/config/impl/plugins/PrivacyFeaturePlugin.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2021 DuckDuckGo
*
* 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 ... | 41 | null | 671 | 2,413 | 7e23d4cc5aa890bd727d977f8ac438239915509d | 1,157 | Android | Apache License 2.0 |
src/test/kotlin/com/marcinziolo/kotlin/wiremock/ResponseTest.kt | wiremock | 267,131,008 | false | {"Kotlin": 78596} | package com.marcinziolo.kotlin.wiremock
import io.restassured.module.kotlin.extensions.Then
import io.restassured.module.kotlin.extensions.When
import org.hamcrest.Matchers.equalTo
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class ResponseTest : AbstractTest() {
@Test
... | 2 | Kotlin | 6 | 43 | 0df736c8337f0d2c43b80dd46368c94a1b8e0d65 | 1,619 | kotlin-wiremock | Apache License 2.0 |
src/main/kotlin/aoc2023/Day01.kt | lukellmann | 574,273,843 | false | {"Kotlin": 140858} | package aoc2023
import AoCDay
import util.illegalInput
// https://adventofcode.com/2023/day/1
object Day01 : AoCDay<Int>(
title = "Trebuchet?!",
part1ExampleAnswer = 142 + (11 + 11 + 22 + 33 + 42 + 24 + 77),
part1Answer = 54597,
part2ExampleAnswer = 142 + 281,
part2Answer = 54504,
) {
private ... | 0 | Kotlin | 0 | 1 | 23af2465bbc958bbbeba381f34e0d62f0d0f70da | 1,442 | advent-of-code-kotlin | MIT License |
sources/storage/src/main/java/com/mikyegresl/valostat/storage/ValorantStorageImpl.kt | sergey-lvovich-kim | 629,918,357 | false | null | package com.mikyegresl.valostat.storage
import com.google.gson.Gson
import com.google.gson.JsonElement
import com.google.gson.JsonSyntaxException
import com.mikyegresl.valostat.base.error.CacheFileNotFoundException
import com.mikyegresl.valostat.base.error.CacheMalformedException
import com.mikyegresl.valostat.base.ma... | 0 | Kotlin | 0 | 0 | ca5b07227d9fbfe3806571cb21e19e02430ae819 | 3,064 | ValoStat | Apache License 2.0 |
serialization/src/main/kotlin/net/corda/serialization/internal/GeneratedAttachment.kt | noordheenm | 160,531,644 | true | {"Gradle": 71, "INI": 27, "Markdown": 85, "Shell": 24, "Text": 13, "Ignore List": 10, "Java Properties": 3, "Batchfile": 5, "XML": 99, "Java": 129, "Kotlin": 1625, "YAML": 5, "Makefile": 2, "Python": 7, "Gherkin": 3, "Groovy": 2, "Dockerfile": 1, "RPM Spec": 1, "CSS": 10, "SVG": 4, "PowerShell": 1, "JSON": 2, "AppleScr... | package net.corda.serialization.internal
import net.corda.core.KeepForDJVM
import net.corda.core.crypto.sha256
import net.corda.core.internal.AbstractAttachment
@KeepForDJVM
class GeneratedAttachment(val bytes: ByteArray) : AbstractAttachment({ bytes }) {
override val id = bytes.sha256()
}
| 0 | Kotlin | 0 | 1 | c533e0ab0ca38d39d055aa9112052213cb69fe7b | 297 | corda | Apache License 2.0 |
serialization/src/main/kotlin/net/corda/serialization/internal/GeneratedAttachment.kt | noordheenm | 160,531,644 | true | {"Gradle": 71, "INI": 27, "Markdown": 85, "Shell": 24, "Text": 13, "Ignore List": 10, "Java Properties": 3, "Batchfile": 5, "XML": 99, "Java": 129, "Kotlin": 1625, "YAML": 5, "Makefile": 2, "Python": 7, "Gherkin": 3, "Groovy": 2, "Dockerfile": 1, "RPM Spec": 1, "CSS": 10, "SVG": 4, "PowerShell": 1, "JSON": 2, "AppleScr... | package net.corda.serialization.internal
import net.corda.core.KeepForDJVM
import net.corda.core.crypto.sha256
import net.corda.core.internal.AbstractAttachment
@KeepForDJVM
class GeneratedAttachment(val bytes: ByteArray) : AbstractAttachment({ bytes }) {
override val id = bytes.sha256()
}
| 0 | Kotlin | 0 | 1 | c533e0ab0ca38d39d055aa9112052213cb69fe7b | 297 | corda | Apache License 2.0 |
pluto-plugins/plugins/layout-inspector/lib/src/main/java/com/pluto/plugins/layoutinspector/internal/attributes/data/mutability/AttributeDimenSP.kt | androidPluto | 390,471,457 | false | {"Kotlin": 744352, "Shell": 646} | package com.pluto.plugins.layoutinspector.internal.attributes.data.mutability
import android.view.View
import android.widget.TextView
import com.pluto.plugins.layoutinspector.internal.attributes.data.Attribute
import com.pluto.plugins.layoutinspector.internal.attributes.data.MutableAttribute
import com.pluto.utilities... | 23 | Kotlin | 64 | 657 | 5562cb7065bcbcf18493820e287d87c7726f630b | 1,084 | pluto | Apache License 2.0 |
app/src/main/java/com/example/calculatorapp/model/ButtonData.kt | thisishisham1 | 689,881,117 | false | {"Kotlin": 35118} | package com.example.calculatorapp.model
import androidx.compose.foundation.layout.requiredSize
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
data class ButtonData(
val number: String,
val isDark: Boolean,
val onClick: () -> Unit,
val s... | 0 | Kotlin | 0 | 0 | e59aaf88d41c8578faa1bb002153e1b2b3fc90d8 | 432 | Calculator-App | MIT License |
src/commonMain/kotlin/de/voize/pytorch_lite_multiplatform/IValue.kt | voize-gmbh | 474,316,962 | false | {"Kotlin": 29619, "Objective-C++": 13304, "Ruby": 3748, "Objective-C": 3559, "Python": 1823, "Swift": 999, "Shell": 474} | package de.voize.pytorch_lite_multiplatform
expect class IValue {
fun isNull(): Boolean
fun isTensor(): Boolean
fun isBool(): Boolean
fun isLong(): Boolean
fun isDouble(): Boolean
fun isString(): Boolean
fun isTuple(): Boolean
fun isBoolList(): Boolean
fun isLongList(): Boolean
... | 3 | Kotlin | 4 | 33 | 661372dd5b084f00d9f0326e889dbabafc044cdc | 1,647 | pytorch-lite-multiplatform | Apache License 2.0 |
app/src/main/java/com/p4indiafsm/features/addAttendence/model/LeaveTypeResponseModel.kt | DebashisINT | 600,987,989 | false | null | package com.p4indiafsm.features.addAttendence.model
import com.p4indiafsm.base.BaseResponse
/**
* Created by Saikat on 22-11-2018.
*/
class LeaveTypeResponseModel : BaseResponse() {
var leave_type_list: ArrayList<LeaveTypeDataModel>? = null
} | 0 | Kotlin | 0 | 0 | 5ffdb2743eaf7f3e6fe1988cb97c67ebdae0d870 | 250 | P4India | Apache License 2.0 |
ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/EnumEntryNameCaseRule.kt | pinterest | 64,293,719 | false | null | package com.pinterest.ktlint.ruleset.standard
import com.pinterest.ktlint.core.Rule
import com.pinterest.ktlint.ruleset.standard.internal.regExIgnoringDiacriticsAndStrokesOnLetters
import org.jetbrains.kotlin.com.intellij.lang.ASTNode
import org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.CompositeElement
impor... | 83 | Kotlin | 461 | 5,381 | d51de4cb14473ed5cbb732039585d5247c7af2de | 1,334 | ktlint | MIT License |
ktor-server/ktor-server-plugins/ktor-server-content-negotiation/jvmAndNix/src/io/ktor/server/plugins/contentnegotiation/ContentNegotiation.kt | Kotlin | 40,136,600 | false | null | /*
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.server.plugins.contentnegotiation
import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.serialization.*
import io.ktor.server.application.*
import io.ktor.server.... | 264 | Kotlin | 784 | 9,455 | b5b59ca3ae61601e6175f334e6a1252609638e61 | 2,047 | ktor | Apache License 2.0 |
domain/src/main/java/com/team_sunshijo/domain/entity/auth/LoginEntity.kt | Team-Sunshijo | 640,839,334 | false | null | package com.team_sunshijo.domain.entity.auth
data class LoginEntity(
val account_id: String,
val password: String
)
| 0 | Kotlin | 0 | 1 | bd983ab706f202c6560118426544501c5ae002f2 | 125 | Sunshijo-Android | MIT License |
src/test/kotlin/g3001_3100/s3098_find_the_sum_of_subsequence_powers/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g3001_3100.s3098_find_the_sum_of_subsequence_powers
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun sumOfPowers() {
assertThat(Solution().sumOfPowers(intArrayOf(1, 2, 3, 4), 3), equa... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 577 | LeetCode-in-Kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.