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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
library-base/src/main/java/com/example/miaow/base/dialog/StandardDialog.kt | miaowmiaow | 364,865,870 | false | null | package com.example.fragment.library.common.dialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.fragment.library.base.dialog.BaseDialog
import com.example.fragment.library.common.databinding.DialogStandardBinding
class StandardDi... | 1 | null | 70 | 991 | 9007234450343e2c5e2a094a50286cb1d9215ef3 | 2,214 | fragmject | Apache License 2.0 |
koin-projects/koin-test/src/main/kotlin/org/koin/test/ext/junit/KoinTestExt.kt | JanStoltman | 148,633,650 | false | null | /*
* Copyright 2017-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 ap... | 1 | null | 1 | 1 | 1d95f051d02f62aa7cfb6faed899c4eec146c48e | 3,999 | koin | Apache License 2.0 |
koin-projects/koin-test/src/main/kotlin/org/koin/test/ext/junit/KoinTestExt.kt | JanStoltman | 148,633,650 | false | null | /*
* Copyright 2017-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 ap... | 1 | null | 1 | 1 | 1d95f051d02f62aa7cfb6faed899c4eec146c48e | 3,999 | koin | Apache License 2.0 |
examples/android-weather-app/src/main/kotlin/fr/ekito/myweatherapp/view/weather/WeatherActivity.kt | InsertKoinIO | 176,261,599 | false | null | package fr.ekito.myweatherapp.view.weather
import android.arch.lifecycle.Observer
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.view.View
import fr.ekito.myweatherapp.R
import fr.ekito.myweatherapp.view.Fail... | 5 | null | 12 | 26 | 4d429693bdce0eab4201128cf8bf864de456b7e0 | 2,100 | koin-samples | Apache License 2.0 |
app/src/main/kotlin/batect/execution/model/rules/cleanup/DeleteTaskNetworkStepRule.kt | batect | 102,647,061 | false | null | /*
Copyright 2017-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 in wr... | 13 | Kotlin | 47 | 620 | 1b6cb1d79d91a70a0cb038cc29b2db1c025fea9e | 2,081 | batect | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/sell/interactor/HistoryItemMapper.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.sell.interactor
import android.content.res.Resources
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.withContext
import org.p2p.core.utils.Constants
import org.p2p.core.utils.formatFiat
import org.p2p.core.utils.formatToken
import org.p2p.ethereumkit.external.model.ERC2... | 8 | null | 18 | 34 | d091e18b7d88c936b7c6c627f4fec96bcf4a0356 | 16,315 | key-app-android | MIT License |
plugins/kotlin/maven/tests/test/org/jetbrains/kotlin/idea/maven/importer/KotlinMavenImporterTest06.kt | zhoumin03 | 128,005,393 | false | {"Text": 6391, "XML": 6476, "YAML": 417, "Ant Build System": 12, "Shell": 563, "Markdown": 577, "Ignore List": 97, "Git Attributes": 10, "EditorConfig": 233, "Batchfile": 27, "SVG": 2415, "Java": 76791, "Kotlin": 42750, "Java Properties": 199, "HTML": 2907, "INI": 428, "JFlex": 31, "CSS": 59, "Groovy": 3467, "XSLT": 11... | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.maven.importer
import com.intellij.openapi.roots.LibraryOrderEntry
import com.intellij.openapi.roots.ModuleRootManager
import ... | 1 | null | 1 | 1 | 85e5e3f22943744eaf80e844fdf195ca1130b14b | 9,080 | intellij-community | Apache License 2.0 |
app/src/main/java/com/viniciusjanner/desafio/sicredi/util/validation/ValidaEmail.kt | viniciusjanner | 693,962,041 | false | {"Kotlin": 93899, "Java": 115} | package com.viniciusjanner.desafio.sicredi.util.validation
import android.widget.EditText
import com.google.android.material.textfield.TextInputLayout
class ValidaEmail(private val textInputEmail: TextInputLayout) :
Validator {
private val fieldEmail: EditText = this.textInputEmail.editText!!
private val ... | 0 | Kotlin | 0 | 0 | 6a66a9a4d5a125b9212dfc62bf0325698f4fc502 | 914 | android_desafio_tecnico_empresa_sicredi | Apache License 2.0 |
app/src/main/java/com/pr0gramm/app/io/Cache.kt | mopsalarm | 30,804,448 | false | {"Kotlin": 1414351, "Shell": 6752, "Python": 1124} | package com.pr0gramm.app.io
import android.app.Application
import android.net.Uri
import androidx.core.net.toFile
import com.pr0gramm.app.Duration.Companion.seconds
import com.pr0gramm.app.Logger
import com.pr0gramm.app.Stats
import com.pr0gramm.app.util.doInBackground
import com.pr0gramm.app.util.isLocalFile
import c... | 39 | Kotlin | 41 | 284 | d6917f3ec16b6664a90a4519843f3d3d4ccae2cf | 6,429 | Pr0 | MIT License |
rhine/src/main/java/com/qingmei2/rhine/base/view/BaseInjectFragment.kt | hnxyy | 159,758,594 | true | {"Kotlin": 119214} | package com.qingmei2.rhine.base.view
import android.support.v4.app.Fragment
import org.kodein.di.KodeinAware
import org.kodein.di.android.support.closestKodein
import org.kodein.di.generic.kcontext
abstract class BaseInjectFragment : Fragment(),
KodeinAware, IView {
protected val parentKodein by closestK... | 0 | Kotlin | 0 | 0 | 12de83a94657d1ce85e3d59c079d07c3c855787c | 388 | MVVM-Rhine | Apache License 2.0 |
app/src/main/java/com/katana/mvvm/data/local/StudentDao.kt | bmskyline | 165,634,913 | true | {"Kotlin": 76282, "Java": 1545} | package com.katana.mvvm.data.local
import android.arch.lifecycle.LiveData
import android.arch.persistence.room.*
import com.katana.mvvm.model.Student
/**
* Created by Kaz on 11:37 2018-12-18
*/
@Dao
interface StudentDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertStudent(student: Student):... | 0 | Kotlin | 0 | 0 | 1386fda0a9a16498a908aed3d2cc6328f94500f5 | 473 | mvvm-kotlin | Apache License 2.0 |
app/src/main/kotlin/com/alexrdclement/uiplayground/demo/experiments/demo/textfield/CurrencyAmountField.kt | alexrdclement | 661,077,963 | false | {"Kotlin": 204619} | package com.alexrdclement.uiplayground.demo.experiments.demo.textfield
import androidx.annotation.CheckResult
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import ... | 0 | Kotlin | 0 | 0 | c04ec33a87a39b40551cc87a5dbf874483d77518 | 7,482 | UiPlayground | Apache License 2.0 |
docs-deployer/src/main/kotlin/com/avito/android/plugin/DocsPlugin.kt | mduisenov | 237,274,875 | true | {"Kotlin": 2360982, "Python": 14063, "Shell": 13206, "Dockerfile": 7097, "Makefile": 35} | package com.avito.android.plugin
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaBasePlugin
import org.gradle.kotlin.dsl.create
import org.gradle.kotlin.dsl.register
import java.io.File
@Suppress("UnstableApiUsage")
class DocsPlugin : Plugin<Project> {
override fun ap... | 0 | Kotlin | 0 | 0 | b0513404cc36196fb87ddadd1894b9015beac952 | 911 | avito-android | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/audio/OfflineAudioContext.events.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6214094} | // Automatically generated - do not modify!
package web.audio
import web.events.EventInstance
inline val <C : OfflineAudioContext> C.completeEvent: EventInstance<OfflineAudioCompletionEvent, C, C>
get() = EventInstance(this, OfflineAudioCompletionEvent.complete())
| 0 | Kotlin | 7 | 35 | ac6d96e24eb8d07539990dc2d88cbe85aa811312 | 272 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/musical/instrument/simulator/app/screens/piano/MyDialog.kt | daovu97 | 813,488,266 | false | {"Kotlin": 224082, "Java": 149657} | package com.musical.instrument.simulator.app.screens.piano
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.Window
import android.widget.AbsListView
object MyDialog {
fun getDialogRecord(context: Context, layo... | 0 | Kotlin | 0 | 0 | 714fbd3f48c359e4dfa16a6455a44d6617028d93 | 794 | MusicInstrument | MIT License |
library/src/nativeMain/kotlin/us/q3q/fidok/NativeDeviceInterface.kt | BryanJacobs | 684,573,020 | false | {"Kotlin": 780971} | @file:Suppress("unused")
@file:OptIn(ExperimentalNativeApi::class)
package us.q3q.fidok
import co.touchlab.kermit.Logger
import kotlinx.cinterop.ByteVar
import kotlinx.cinterop.COpaquePointer
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.StableRef
import kotlinx.cinterop.asStableRef
import ko... | 0 | Kotlin | 1 | 9 | 459274c1808bd5d733757c371e927f6d806ab7bb | 2,834 | FIDOk | MIT License |
frontend/src/main/kotlin/components/App.kt | NikkyAI | 182,227,647 | false | null | package components
import com.ccfraser.muirwik.components.HRefOptions
import com.ccfraser.muirwik.components.MGridSize
import com.ccfraser.muirwik.components.MGridSpacing
import com.ccfraser.muirwik.components.MGridWrap
import com.ccfraser.muirwik.components.MTabIndicatorColor
import com.ccfraser.muirwik.components.MT... | 1 | Kotlin | 3 | 10 | 2c26c2ea122525ba2825f32cbf24bde3c78afa6a | 6,165 | pentagame | MIT License |
src/api/kotlin/net/ndrei/bushmaster/api/IHarvestable.kt | MinecraftModDevelopmentMods | 104,491,477 | false | null | package net.ndrei.bushmaster.api
import net.minecraft.block.state.IBlockState
import net.minecraft.item.ItemStack
import net.minecraft.util.math.BlockPos
import net.minecraft.world.World
/**
* Interface for easier handling of bushes and other plant like things that can be harvested without being destroyed.
*/
inter... | 1 | Kotlin | 1 | 1 | f3de934b381e53212344604c003c2a8f567da7d5 | 1,385 | Bush-Master-Core | MIT License |
app/src/main/java/com/lettytrain/notesapp/entities/Notes.kt | Changliting-letty | 413,246,732 | false | null | package com.lettytrain.notesapp.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
@Entity(tableName = "notes")
class Notes : Serializable {
@PrimaryKey(autoGenerate = true)
var id: Int? = null
@ColumnInfo(name = "userId")
... | 1 | Kotlin | 0 | 0 | 82a0e0cac43e251dee0533652d7b0792409321d3 | 897 | NotesApp | Apache License 2.0 |
android/src/main/kotlin/dev/msfjarvis/claw/android/viewmodel/SavedPostsRepository.kt | msfjarvis | 289,347,156 | false | null | package dev.msfjarvis.claw.android.viewmodel
import com.squareup.sqldelight.runtime.coroutines.asFlow
import com.squareup.sqldelight.runtime.coroutines.mapToList
import dev.msfjarvis.claw.database.LobstersDatabase
import dev.msfjarvis.claw.database.local.SavedPost
import javax.inject.Inject
import kotlinx.coroutines.D... | 6 | Kotlin | 4 | 20 | 2f60aa0ae008b0a5ad3c2c623e9d38560870052c | 930 | compose-lobsters | The Unlicense |
bound/kt/src/main/kotlin/web5/sdk/rust/UniFFI.kt | TBD54566975 | 716,632,191 | false | null | // This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!
@file:Suppress("NAME_SHADOWING")
package web5.sdk.rust;
// Common helper code.
//
// Ideally this would live in a separate .kt file where it can be unittested etc
// in isolation, and perhaps even p... | 96 | null | 7 | 9 | caacb9a38db2548e14f79165ca8c303c064ee616 | 275,731 | web5-rs | Apache License 2.0 |
src/main/kotlin/com/projectcitybuild/features/bans/usecases/UnbanUUID.kt | projectcitybuild | 42,997,941 | false | null | package com.projectcitybuild.features.bans.usecases
import com.projectcitybuild.core.utilities.Failure
import com.projectcitybuild.core.utilities.Result
import com.projectcitybuild.core.utilities.Success
import com.projectcitybuild.repositories.PlayerBanRepository
import com.projectcitybuild.repositories.PlayerUUIDRep... | 9 | Kotlin | 0 | 3 | 36a7197d870aa24a9b9ea65567a35fa38f86a31d | 1,566 | PCBridge | MIT License |
moneyGiftAssistant/src/main/java/com/alphago/moneypacket/utils/UpdateTask.kt | songlea | 126,107,355 | false | null | package com.songlea.hongbao.util
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.AsyncTask
import android.widget.Toast
import com.songlea.hongbao.R
import org.apache.http.HttpResponse
import org.apache.http.client.methods.HttpGet
import org.apache.http.impl.client.... | 0 | Kotlin | 0 | 0 | d8ec617c8e9cb078fb9e81d9e27fa70a657e5fe2 | 3,722 | WeChatLuckyMoney | MIT License |
app/src/main/java/com/pr0gramm/app/util/ExceptionHandler.kt | VladimirObama | 158,547,370 | true | {"Kotlin": 1141144, "Shell": 6640, "IDL": 3434, "Python": 1124} | package com.pr0gramm.app.util
import kotlinx.coroutines.CancellationException
import java.io.IOException
class ExceptionHandler private constructor(private val delegate: Thread.UncaughtExceptionHandler) : Thread.UncaughtExceptionHandler {
override fun uncaughtException(thread: Thread, err: Throwable) {
if... | 0 | Kotlin | 0 | 0 | 676e078f0cd93205db18f5f26f3143667441fc9b | 1,287 | Pr0 | MIT License |
mvvm-dagger/src/main/java/com/nphau/android/shared/screens/dialogs/VBBottomSheetDialogFragment.kt | ThanhHuong98 | 432,947,065 | false | {"Kotlin": 165721, "Java": 1330, "Shell": 87} | package com.imstudio.android.shared.screens.dialogs
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding
import com.imstudio.android.shared.screens.BindingDSL
abstract class VBBottomSheetDialogFragment<VB : ViewBindi... | 0 | null | 0 | 1 | ac0402ae4734285ef5e647d1f53a1f9f4a8d98cd | 1,175 | android.clean-architecture.mvvm | Apache License 2.0 |
serialize-core/src/commonMain/kotlin/it/unibo/tuprolog/serialize/TermDeserializer.kt | tuProlog | 230,784,338 | false | null | package it.unibo.tuprolog.serialize
import it.unibo.tuprolog.core.Term
import kotlin.js.JsName
import kotlin.jvm.JvmStatic
interface TermDeserializer : Deserializer<Term> {
companion object {
@JvmStatic
@JsName("of")
fun of(mimeType: MimeType): TermDeserializer {
return termDes... | 92 | null | 14 | 93 | 3223ffc302e5da0efe2b254045fa1b6a1a122519 | 358 | 2p-kt | Apache License 2.0 |
src/main/kotlin/no/nav/tiltaksarrangor/config/HttpClientConfig.kt | navikt | 616,496,742 | false | {"Kotlin": 441381, "PLpgSQL": 635, "Dockerfile": 96} | package no.nav.tiltaksarrangor.config
import no.nav.security.token.support.client.core.ClientProperties
import no.nav.security.token.support.client.core.oauth2.OAuth2AccessTokenService
import no.nav.security.token.support.client.spring.ClientConfigurationProperties
import no.nav.security.token.support.client.spring.oa... | 2 | Kotlin | 0 | 2 | fa85a7a425ef5c5ca8d11be169744f26270b4f12 | 3,293 | amt-tiltaksarrangor-bff | MIT License |
composeApp/src/commonMain/kotlin/com/borealnetwork/allen/modules/test/ui/TestViewCompose.kt | baudelioandalon | 742,906,893 | false | {"Kotlin": 534389, "Swift": 654} | package com.borealnetwork.allen.modules.test.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Scaffold
import androidx.compos... | 0 | Kotlin | 0 | 0 | ad163dde7d0c7a9e2d66eb79f66417bd40d24d92 | 2,036 | AllenMultiplatform | Apache License 2.0 |
cuber-location/src/main/kotlin/cuber/post/app/location/Servlet.kt | hchery | 840,416,011 | false | {"Kotlin": 39508, "Java": 6927} | package cuber.post.app.location
import cuber.post.app.sdk.Auto
import cuber.post.app.sdk.service.CurrentClientIP
import jakarta.servlet.http.HttpServletRequest
import org.springframework.stereotype.Component
/**
* DATE: 2024/8/21
* AUTHOR: hchery
* URL: https://github.com/hchery
* EMAIL: <EMAIL>
*/
private val ... | 0 | Kotlin | 0 | 0 | 3cc72a40523a97c80a58ce08089cfb6e9e0b8522 | 1,147 | PostCuber | MIT License |
android/src/com/android/tools/idea/editors/literals/actions/ToggleLiveLiteralsStatusAction.kt | phpc0de | 470,555,455 | false | {"Java": 39631279, "Kotlin": 28526369, "HTML": 1206758, "Starlark": 482060, "C": 66005, "Python": 59985, "NSIS": 58515, "Lex": 46798, "CMake": 24483, "JavaScript": 18437, "C++": 11882, "Shell": 7470, "RenderScript": 4411, "AIDL": 3251, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 1 | 1 | 79e20f027ca1d047b91aa7acd92fb71fa2968a09 | 1,628 | idea-android | Apache License 2.0 |
app/src/main/java/com/odogwudev/example/cinephilescompanion/MainApplication.kt | odogwudev | 592,877,753 | false | null | package com.odogwudev.example.cinephilescompanion
import android.app.Application
import com.odogwudev.example.cinephilescompanion.di.createAppModule
import com.odogwudev.example.cinephilescompanion.tooling.setupBeagle
import com.odogwudev.example.firebase_api.AuthenticationService
import org.koin.android.ext.android.i... | 0 | Kotlin | 0 | 4 | 82791abdcf1554d2a2cd498a19cd93952f90e53e | 1,018 | CinephilesCompanion | MIT License |
ontrack-ui-graphql/src/main/java/net/nemerosa/ontrack/graphql/exceptions/AccessDeniedDataFetcherExceptionResolver.kt | nemerosa | 19,351,480 | false | {"Kotlin": 9640276, "JavaScript": 3232252, "Java": 1029918, "HTML": 507415, "Groovy": 372843, "CSS": 137546, "Less": 35335, "Dockerfile": 6298, "Shell": 5086} | package net.nemerosa.ontrack.graphql.exceptions
import graphql.GraphQLError
import graphql.GraphqlErrorBuilder
import graphql.schema.DataFetchingEnvironment
import org.springframework.graphql.execution.DataFetcherExceptionResolverAdapter
import org.springframework.graphql.execution.ErrorType
import org.springframework... | 49 | Kotlin | 25 | 96 | 759f17484c9b507204e5a89524e07df871697e74 | 895 | ontrack | MIT License |
collector-media3-exoplayer/src/main/java/com/bitmovin/analytics/media3/exoplayer/Media3ExoPlayerUtil.kt | bitmovin | 120,633,749 | false | {"Kotlin": 1468376, "Java": 25098, "Shell": 13133} | package com.bitmovin.analytics.media3.exoplayer
import android.os.Handler
import android.os.Looper
import androidx.media3.common.C
import androidx.media3.common.Format
import androidx.media3.common.MediaLibraryInfo
import androidx.media3.common.Player
import androidx.media3.common.util.UnstableApi
import com.bitmovin.... | 1 | Kotlin | 6 | 9 | 563f8c3ea8542d1dd6cf0ed664786c514a3df4e8 | 4,921 | bitmovin-analytics-collector-android | Amazon Digital Services License |
app/src/main/java/com/sjn/stamp/controller/SongHistoryController.kt | sjnyag | 81,733,859 | false | null | package com.sjn.stamp.controller
import android.content.Context
import android.os.AsyncTask
import android.support.v4.media.MediaMetadataCompat
import com.sjn.stamp.model.*
import com.sjn.stamp.model.constant.RecordType
import com.sjn.stamp.model.dao.SongDao
import com.sjn.stamp.model.dao.SongHistoryDao
import com.sjn... | 59 | null | 3 | 9 | cb145824f9e06cd17266502a5e85d8a9fa276bb0 | 8,274 | stamp | Apache License 2.0 |
chanho/practice-apps/example_ui_compose/app/src/main/java/com/example/example_ui_compose/TwoViewModel.kt | inu-appcenter | 778,262,806 | false | {"Kotlin": 61740} | package com.example.example_ui_compose
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
class TwoViewModel : ViewModel() {
private val _counter: MutableStateFlow<Int> = MutableStateFlow(0)
val ... | 1 | Kotlin | 0 | 0 | 537bfaefb189946c8bbeeccb21b1c43b88898b52 | 516 | android-study-16th | MIT License |
tenkey/src/main/java/com/kazumaproject/tenkey/image_effect/ImageEffects.kt | KazumaProject | 696,033,236 | false | {"Kotlin": 409131, "Java": 366556} | package com.kazumaproject.tenkey.image_effect
import android.graphics.RenderEffect
import android.graphics.Shader
import android.view.View
object ImageEffects {
fun applyBlurEffect(view: View, blurRadius: Float) {
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
val ... | 0 | Kotlin | 0 | 9 | 7e9fe6c92475b9384ccf1f96be4c41b181e26d17 | 1,037 | JapaneseKeyboard | MIT License |
core/src/test/kotlin/net/corda/core/serialization/TransactionSerializationTests.kt | evisoft | 75,185,334 | false | null | package net.corda.core.serialization
import net.corda.core.contracts.*
import net.corda.core.crypto.CompositeKey
import net.corda.core.crypto.SecureHash
import net.corda.core.crypto.composite
import net.corda.core.seconds
import net.corda.core.transactions.TransactionBuilder
import net.corda.core.utilities.*
import ne... | 4 | null | 1 | 1 | 4a9f5cafc1f2f09e8f612a09f30f9dfffd985a6c | 4,094 | corda | Apache License 2.0 |
marketkit/src/main/java/com/bolotoken/marketkit/managers/GlobalMarketInfoManager.kt | BoloToken | 857,880,569 | false | {"Kotlin": 190260} | package com.bolotoken.marketkit.managers
import com.bolotoken.marketkit.models.GlobalMarketInfo
import com.bolotoken.marketkit.models.GlobalMarketPoint
import com.bolotoken.marketkit.models.HsTimePeriod
import com.bolotoken.marketkit.providers.HsProvider
import com.bolotoken.marketkit.storage.GlobalMarketInfoStorage
i... | 0 | Kotlin | 0 | 0 | 3b92e7ed7e1f6e19bfe1305c2662dad2c16c26eb | 1,199 | market-kit-android | MIT License |
lib/src/main/kotlin/com/bloidonia/advent/day19/Day19.kt | timyates | 433,372,884 | false | {"Kotlin": 48604, "Groovy": 33934} | package com.bloidonia.advent.day19
import java.lang.StrictMath.pow
import kotlin.math.sqrt
data class Vector(val x: Int, val y: Int, val z: Int) {
operator fun plus(other: Vector) = Vector(x + other.x, y + other.y, z + other.z)
operator fun times(other: Vector) = Vector(x * other.x, y * other.y, z * other.y)
... | 0 | Kotlin | 0 | 1 | 9714e5b2c6a57db1b06e5ee6526eb30d587b94b4 | 1,252 | advent-of-kotlin-2021 | MIT License |
android-uitests/testData/DatabindingBasicExample/app/src/main/java/com/example/android/databinding/basicsample/ui/ObservableFieldActivity.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 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 app... | 5 | null | 473 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,295 | android | Apache License 2.0 |
reactiveandroid/src/main/kotlin/com/github/kittinunf/reactiveandroid/CreateMutableProperty.kt | kittinunf | 50,813,818 | false | null | package com.github.kittinunf.reactiveandroid
import rx.Scheduler
inline fun <T> createMutableProperty(getter: () -> T, crossinline setter: (T) -> Unit, observeScheduler: Scheduler): MutableProperty<T> {
return MutableProperty(getter()).apply {
observable.observeOn(observeScheduler).subscribe {
... | 5 | Kotlin | 12 | 79 | 117cb3e9738df17bb4c8b9f73d2a21bc5b97f6f5 | 664 | ReactiveAndroid | MIT License |
src/main/kotlin/venus/assembler/AssemblerError.kt | ics-jku | 470,084,492 | false | null | package venus.assembler
/**
* Thrown when errors occur during assembly.
*
* @todo split this into AssemblerUserError and AssemblerError
*/
class AssemblerError : Throwable {
var line: Int? = null
/**
* @param msg the message to error with
*/
constructor(msg: String? = null) : super(msg)
... | 1 | null | 1 | 4 | 429d323b98a33db67074e44f164c8d1044f406de | 687 | venus | MIT License |
presentation/src/main/java/appus/software/githubusers/presentation/common/recycler/ListDelegateAdapter.kt | appus-studio | 180,989,176 | false | null | package appus.software.githubusers.presentation.common.recycler
import android.util.SparseArray
import android.view.ViewGroup
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
import java.util.*
/**
* Created by bogdan.martynov on 2019-04-25 12:14. top-github-contributors-a... | 0 | Kotlin | 0 | 1 | 72b630dbaffe7e2d6c08a81ac48d551f8578b627 | 6,573 | top-github-contributors-android | Apache License 2.0 |
app/src/main/java/com/example/lively/repository/MatchesRepository.kt | utkarshgupta2009 | 848,772,461 | false | {"Kotlin": 34410} | package com.example.lively.repository
import com.example.lively.data.remote.RapidApiServices
import com.example.lively.data.remote.models.FixtureResponse
import javax.inject.Inject
class MatchesRepository @Inject constructor(private val rapidApiServices: RapidApiServices){
suspend fun getLiveMatches(leagueId: Int)... | 0 | Kotlin | 0 | 0 | a3d148b30a8864ffee12c78a1c7c0c7f74e909c0 | 587 | Lively | MIT License |
panel-androidx/src/main/java/com/effective/android/panel/utils/DisplayUtil.kt | DSAppTeam | 140,263,533 | false | {"Java": 258589, "Kotlin": 236332} | package com.effective.android.panel.utils
import android.annotation.TargetApi
import android.app.Activity
import android.content.Context
import android.content.res.Configuration
import android.content.res.Resources
import android.graphics.Point
import android.graphics.Rect
import android.os.Build
import android.provid... | 9 | Java | 283 | 2,376 | bcd0083297eee6e2f3e8f35241218a8c59c29598 | 11,086 | PanelSwitchHelper | Apache License 2.0 |
Data/azure.android.data/src/main/java/com/microsoft/azureandroid/data/model/Document.kt | NateRickard | 108,568,001 | false | {"Text": 1, "Ignore List": 4, "Markdown": 4, "Gradle": 4, "Java Properties": 2, "Shell": 1, "Batchfile": 1, "Proguard": 2, "XML": 36, "Kotlin": 95, "Java": 3} | package com.azure.data.model
import com.azure.data.model.partition.PartitionKeyResource
import com.google.gson.annotations.SerializedName
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
abstract class Document(id: String? = null) : Resource(id), PartitionKeyRes... | 1 | null | 1 | 1 | 4eab6b9b30698081e7f7092e3b5d7e5645fd33f9 | 1,008 | Azure.Android | MIT License |
src/en/animekhor/src/eu/kanade/tachiyomi/animeextension/en/animekhor/extractors/AnimeABCExtractor.kt | almightyhak | 817,607,446 | false | {"Kotlin": 4066862} | package eu.kanade.tachiyomi.animeextension.en.animekhor.extractors
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import okhttp3.Headers
import okhttp3.Htt... | 55 | Kotlin | 28 | 93 | 507dddff536702999357b17577edc48353eab5ad | 2,095 | aniyomi-extensions | Apache License 2.0 |
app/src/test/java/io/github/vishalecho/android/cnews/data/remote/NewsServicesTest.kt | vishalecho | 278,807,537 | false | null | package io.github.vishalecho.android.cnews.data.remote
import android.os.Build
import com.vishalecho.android.core.test.DependencyProvider
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Assert
import org.junit.Before
import org.junit.Test
imp... | 0 | Kotlin | 0 | 0 | 43bfb84254c1200b99893f6d864c95f4b914c24b | 1,736 | CNews | Apache License 2.0 |
app/src/main/java/com/ctrlaccess/moviebuff/ui/MovieFragmentFactory.kt | galemu2 | 415,395,349 | false | {"Kotlin": 67065} | package com.ctrlaccess.moviebuff.ui
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import com.bumptech.glide.RequestManager
import com.ctrlaccess.moviebuff.adapters.MoviesCurrentAdapter
import com.ctrlaccess.moviebuff.adapters.MoviesPopularAdaptor
import com.ctrlaccess.moviebuff.ui.... | 0 | Kotlin | 0 | 0 | 287fa00f50eb97c7da2ef43231fbc59e4ccc6156 | 1,082 | Movie-Buff | MIT License |
runtime/common/src/testWithNative/kotlinx/serialization/json/JsonModesTest.kt | physphil | 192,001,800 | true | {"Kotlin": 612251} | /*
* Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.serialization.json
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerializationException
import kotlinx.serialization.test.assertStringFormAndRestored
import kotlin.tes... | 0 | Kotlin | 0 | 0 | fe1fe4b5c46c7bc49de74a2b97502256af972dc3 | 3,179 | kotlinx.serialization | Apache License 2.0 |
build-setup/src/main/kotlin/co/touchlab/skie/buildsetup/plugins/SkieRuntimeSwift.kt | touchlab | 685,579,240 | false | {"Kotlin": 1644009, "Swift": 6029, "Shell": 1040} | package co.touchlab.skie.buildsetup.plugins
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.apply
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
abstract class SkieRuntimeSwift : Plugin<Project> {
override fun apply(target: Project): Unit = with(target) {
... | 9 | Kotlin | 8 | 735 | b96044d4dec91e4b85c5b310226c6f56e3bfa2b5 | 389 | SKIE | Apache License 2.0 |
presentation/src/main/java/com/alorma/presentation/detail/DetailMapper.kt | Alhima | 160,325,370 | false | null | package com.alorma.presentation.detail
import com.alorma.domain.common.ResourceProvider
import com.alorma.domain.model.Configuration
import com.alorma.domain.model.Movie
import com.alorma.presentation.R
import com.alorma.presentation.common.DateFormatter
import com.alorma.presentation.movies.MovieItemVM
import java.ut... | 0 | Kotlin | 0 | 0 | aad70ea89f3ba47402538c1ee3d8c4cbb90f019e | 1,921 | TrendingMovies | Apache License 2.0 |
app/src/main/java/org/stepic/droid/persistence/di/DownloadInteractorsModule.kt | abhirocks1211 | 205,717,847 | false | {"Gradle": 12, "Java Properties": 2, "Text": 19, "Shell": 2, "Ignore List": 5, "Batchfile": 1, "Git Attributes": 1, "Markdown": 2, "XML": 519, "YAML": 1, "Kotlin": 1311, "Proguard": 3, "Prolog": 1, "Java": 190, "CSS": 2, "SVG": 65, "JSON": 4, "JavaScript": 3} | package org.stepic.droid.persistence.di
import dagger.Module
import dagger.Provides
import org.stepic.droid.persistence.downloads.helpers.AddDownloadTaskHelper
import org.stepic.droid.persistence.downloads.helpers.RemoveDownloadTaskHelper
import org.stepic.droid.persistence.downloads.interactor.*
import org.stepic.dro... | 1 | null | 1 | 1 | 8a2ead7334b6b26a281b3a7842e6502fd96b2cc5 | 1,698 | stepik | Apache License 2.0 |
framework-docs/src/main/kotlin/org/springframework/docs/integration/jmx/jmxexporting/JmxConfiguration.kt | spring-projects | 1,148,753 | false | null | /*
* Copyright 2002-2024 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 4 | null | 4 | 56,506 | 52e813d0ad2a5d3439c1880b481b6942a138a8dc | 1,133 | spring-framework | Apache License 2.0 |
core/src/main/java/com/kiptechie/core/domain/use_cases/FilterOutDigits.kt | kiptechie | 456,271,423 | false | {"Kotlin": 484123} | package com.omaroid.core.domain.use_cases
class FilterOutDigits {
operator fun invoke(text: String): String {
return text.filter { it.isDigit() }
}
} | 1 | Kotlin | 3 | 5 | 1bee22359b263c90d1dbb03bf96f7d64e1fcc458 | 166 | ComposeCalorieTracker | MIT License |
core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/colsOfKind.kt | Kotlin | 259,256,617 | false | null | package org.jetbrains.kotlinx.dataframe.api
import org.jetbrains.kotlinx.dataframe.ColumnFilter
import org.jetbrains.kotlinx.dataframe.DataFrame
import org.jetbrains.kotlinx.dataframe.DataRow
import org.jetbrains.kotlinx.dataframe.api.ColsOfKindColumnsSelectionDsl.Grammar.ColumnGroupName
import org.jetbrains.kotlinx.d... | 235 | null | 60 | 833 | 54d00e69ae7c06ff254c6591242413eaf7894f01 | 24,250 | dataframe | Apache License 2.0 |
app/src/main/java/com/xpense/MainActivity.kt | kelvinkioko | 592,435,039 | false | null | package com.xpense
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import com.xpense.presentation.home.HomeScreen
import com.xpense.ui.theme.XpenseTheme
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActivity : ComponentActivit... | 0 | Kotlin | 0 | 0 | 68a79225719a1c793fccc888a305819c018ff5fc | 534 | xpense | Apache License 2.0 |
app/src/main/java/com/tommasoberlose/anotherwidget/ui/fragments/tabs/LayoutFragment.kt | cccClyde | 353,914,989 | true | {"Kotlin": 505727} | package com.tommasoberlose.anotherwidget.ui.fragments.tabs
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fra... | 0 | Kotlin | 0 | 1 | 1ee25bcc89334af7ee17b8472fde6906299474ea | 10,015 | another-widget | MIT License |
app/src/main/java/edu/amrita/amritacafe/model/OrderAdapter.kt | JayadevHaddadi | 316,990,403 | false | null | package edu.amrita.amritacafe.model
import android.content.Context
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import android.widget.BaseAdapter
import edu.amrit... | 0 | Kotlin | 0 | 0 | 2de46b0d1bf8fdd045f0ca273a3839689f6cae82 | 4,452 | Amrita-Vegetables | Apache License 2.0 |
adshelper/src/main/java/com/example/app/adshelper/openad/AppOpenApplication.kt | vickypathak123 | 499,269,903 | false | {"Java": 486597, "Kotlin": 215177, "Assembly": 5} | package com.example.app.adshelper.openad
import android.annotation.SuppressLint
import android.app.Activity
import android.app.ActivityManager
import android.content.Context
import android.os.Build
import android.os.Process
import android.os.SystemClock
import android.provider.Settings
import android.util.Log
import a... | 0 | Java | 1 | 0 | aa966b83f6dca0aa08261b8810a778e40d909d4b | 7,105 | AndroidAppCenter | MIT License |
ktor-client/ktor-client-apache/jvm/src/io/ktor/client/engine/apache/ApacheRequestProducer.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.engine.apache
import io.ktor.client.call.*
import io.ktor.client.engine.*
import io.ktor.client.features.*
import io.ktor.client.request.*
import io.ktor.http.*
import ... | 269 | null | 991 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 5,283 | ktor | Apache License 2.0 |
core/src/main/kotlin/com/malinskiy/marathon/execution/queue/TestAction.kt | cdsap | 134,924,816 | true | {"Kotlin": 300576, "JavaScript": 33573, "CSS": 29044, "HTML": 2224, "Shell": 964} | package com.malinskiy.marathon.execution.queue
import com.malinskiy.marathon.device.Device
import com.malinskiy.marathon.execution.TestResult
sealed class TestAction {
data class SaveReport(val device: Device, val testResult: TestResult) : TestAction()
}
| 1 | Kotlin | 0 | 1 | ce6648774cd47c87f074ebdfdacbbcf781bdfdd4 | 261 | marathon | Apache License 2.0 |
kord-extensions/src/main/kotlin/com/kotlindiscord/kord/extensions/pagination/MessageButtonPaginator.kt | Kord-Extensions | 262,018,456 | false | null | @file:OptIn(KordPreview::class)
package com.kotlindiscord.kord.extensions.pagination
import com.kotlindiscord.kord.extensions.pagination.builders.PaginatorBuilder
import com.kotlindiscord.kord.extensions.pagination.pages.Pages
import dev.kord.common.annotation.KordPreview
import dev.kord.core.behavior.UserBehavior
im... | 15 | Kotlin | 14 | 53 | c4a5a8cc8a65c0bd0928a4dcc6c05e3fc4fd75cf | 4,091 | kord-extensions | MIT License |
library/src/commonMain/kotlin/com/befrvnk/knotion/endpoints/databases/DatabasesEndpoint.kt | befrvnk | 672,042,674 | false | null | package com.befrvnk.knotion.endpoints.databases
interface DatabasesEndpoint {
suspend fun createDatabase()
suspend fun filterDatabaseEntries()
suspend fun sortDatabaseEntries()
suspend fun queryDatabase()
suspend fun retrieveDatabase()
suspend fun updateDatabase()
} | 1 | Kotlin | 0 | 0 | 6271d06fc965de19f5449804b7a8e33648eec7f2 | 297 | knotion | MIT License |
app/src/main/java/com/hz/zxk/demo/interceptor/InterceptorTwo.kt | crazyxiaoke | 223,301,380 | false | null | package com.hz.zxk.demo.interceptor
import android.util.Log
import okhttp3.Interceptor
import okhttp3.Response
/**
@author zhengxiaoke
@date 2020/4/15 3:34 PM
*/
class InterceptorTwo : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
Log.d("TAG", "我是第二个拦截器")
return chain... | 0 | Kotlin | 0 | 0 | e83ade5f8d0a859bbc0c8537f087e17fd2051bba | 353 | SuperFrame | Apache License 2.0 |
foundation/domain-model/main/ru/pixnews/domain/model/company/Company.kt | illarionov | 305,333,284 | false | {"Kotlin": 2008969, "FreeMarker": 2782, "Shell": 855, "Fluent": 72} | /*
* Copyright (c) 2023, the Pixnews 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.
*/
package ru.pixnews.domain.model.company
import kotlinx.collections.immutable.ImmutableList
import... | 4 | Kotlin | 0 | 2 | bbecb1df53a9a94f60e35a1bb2fc3522eddf8450 | 1,426 | Pixnews | Apache License 2.0 |
app/src/main/java/br/com/quixada/trabalho1/PlacesPage.kt | eliabe71 | 537,668,883 | false | null | package br.com.quixada.trabalho1
import android.R.*
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.ListView
class PlacesPage(array: ArrayList<String>): Fra... | 0 | Kotlin | 0 | 0 | 09cd80476f7f4cf67cc74fc853df3db5482299a2 | 899 | mobile | MIT License |
src/main/kotlin/me/bzvol/fifimod/data/ModBlockStateProvider.kt | bzvol | 508,218,419 | false | {"Kotlin": 162220} | package me.bzvol.fifimod.data
import me.bzvol.fifimod.FifiMod
import me.bzvol.fifimod.block.AquariumBlock
import me.bzvol.fifimod.block.FifhranyBlock
import me.bzvol.fifimod.block.ModBlocks
import net.minecraft.client.renderer.RenderType
import net.minecraft.data.DataGenerator
import net.minecraft.resources.ResourceLo... | 0 | Kotlin | 0 | 0 | 95903762a1876342bfeae2b11c272f71d97621a3 | 5,066 | FifiMod | MIT License |
src/main/kotlin/no/nav/familie/ba/sak/task/BehandleFødselshendelseTask.kt | navikt | 224,639,942 | false | null | package no.nav.familie.ba.sak.task
import io.micrometer.core.instrument.DistributionSummary
import io.micrometer.core.instrument.Metrics
import no.nav.familie.ba.sak.integrasjoner.infotrygd.InfotrygdFeedService
import no.nav.familie.ba.sak.kjerne.autovedtak.AutovedtakStegService
import no.nav.familie.ba.sak.kjerne.aut... | 8 | null | 1 | 9 | 1a1ad3043cb51c472577eaf23749d0e0bf54b261 | 4,599 | familie-ba-sak | MIT License |
react-query-kotlin/src/jsMain/kotlin/tanstack/query/core/RetryerConfig.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6901677} | // Automatically generated - do not modify!
package tanstack.query.core
import js.promise.PromiseResult
external interface RetryerConfig<TData, TError> {
var fn: () -> PromiseResult<TData>
var abort: () -> Unit
var onError: (error: TError) -> Unit
var onSuccess: (data: TData) -> Unit
var onFail: ... | 0 | Kotlin | 8 | 30 | f37c55e72fd893d635d02033d10246ed6981eb96 | 536 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/netacom/vndirect/ChatSdkApplication.kt | Netacom-NetAlo | 462,549,625 | false | null | /*
* *Created by NetaloTeamAndroid on 2020
* Company: Netacom.
* *
*/
@file:OptIn(ObsoleteCoroutinesApi::class, ExperimentalCoroutinesApi::class, FlowPreview::class)
package com.netacom.dlinksdkandroid
import android.app.Application
import android.content.Context
import androidx.work.Configuration
import com.as... | 0 | Kotlin | 0 | 0 | b2b581a9710068b8c7e14f5ca039e6c6a9320d2c | 2,229 | DLinkSDK-Android-Demo | MIT License |
src/main/kotlin/me/senseiwells/essential_client/features/DisplayStartTime.kt | senseiwells | 398,797,734 | false | {"Kotlin": 68185, "Java": 34580} | package me.senseiwells.essential_client.features
import kotlinx.datetime.Clock
import me.senseiwells.essential_client.EssentialClientConfig
import net.minecraft.client.gui.Font
import net.minecraft.client.gui.GuiGraphics
import org.apache.commons.lang3.time.DurationFormatUtils
object DisplayStartTime {
private va... | 1 | Kotlin | 14 | 77 | 7bcfedfb2df201f3389ce9819d1403a33837e3f5 | 769 | EssentialClient | MIT License |
app/src/main/java/com/example/android/dagger/di/AppComponent.kt | dlgockd54 | 244,119,560 | true | {"Kotlin": 53626} | package com.example.android.dagger.di
import android.content.Context
import com.example.android.dagger.login.LoginComponent
import com.example.android.dagger.main.MainActivity
import com.example.android.dagger.registration.RegistrationActivity
import com.example.android.dagger.registration.RegistrationComponent
import... | 0 | Kotlin | 0 | 0 | 25e93d1a02fa9e36e2a7063e2e6129cf6e38491e | 1,225 | android-dagger | Apache License 2.0 |
src/test/java/com/tutuland/aoc2017/TestDay1.kt | gacordeiro | 115,743,800 | false | null | package com.tutuland.aoc2017
import org.amshove.kluent.shouldEqual
import org.junit.Test
class TestDay1 {
@Test fun `firstCaptchaSolution invalid cases validation`() {
"abc".firstCaptchaSolution shouldEqual "0"
"1".firstCaptchaSolution shouldEqual "0"
"".firstCaptchaSolution shouldEqual "... | 0 | Kotlin | 0 | 0 | dc880decebe5bb1c3f297b9864c491e1cec616b5 | 1,437 | aoc2017 | MIT License |
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/util/threadUtils.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.api.fir.utils
import com.intellij.openapi.application.ApplicationManage... | 132 | null | 5074 | 40,992 | 57fe6721e3afb154571eb36812fd8ef7ec9d2026 | 705 | kotlin | Apache License 2.0 |
data/src/test/java/com/igorvd/baseproject/data/movies/repository/MovieCloudRepositoryTest.kt | igorvilela28 | 143,054,565 | false | null | package com.igorvd.baseproject.data.movies.repository
import com.igorvd.baseproject.data.network.ApiClientBuilder
import com.igorvd.baseproject.data.network.MovieDbApi
import com.igorvd.baseproject.domain.movies.MovieSortBy
import com.prosegur.genesis.mobile.data.utils.enqueue200Response
import com.prosegur.genesis.mo... | 1 | null | 2 | 5 | bd8115888f736faddce90bada2fdc90f8b7e933c | 3,807 | The-Movie-DB-Client | Apache License 2.0 |
src/test/kotlin/nl/deltadak/ktemplate/KotlinTest.kt | marcphilipp | 128,016,142 | true | {"Kotlin": 7215} | @file:Suppress("MemberVisibilityCanBePrivate")
package nl.deltadak.ktemplate
import io.kotlintest.matchers.exactly
import io.kotlintest.matchers.shouldBe
import io.kotlintest.specs.FunSpec
class KotlinTest: FunSpec() {
init {
testCalculate()
}
/** With kotlintest 3.0.2, this test is also run! H... | 0 | Kotlin | 0 | 0 | 5ecfb9829a31b64a6f4f329290601e5b75bc131c | 461 | kotlin-template-project | MIT License |
OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal/service/UserRefreshService.kt | OneSignal | 33,515,679 | false | {"Kotlin": 1777984, "Java": 49349, "Shell": 748} | package com.onesignal.user.internal.service
import com.onesignal.common.IDManager
import com.onesignal.core.internal.application.IApplicationService
import com.onesignal.core.internal.config.ConfigModelStore
import com.onesignal.core.internal.operations.IOperationRepo
import com.onesignal.core.internal.startup.IStarta... | 70 | Kotlin | 368 | 604 | 7e68c1d6bdc48b1786926cc443dcf532d592e4ec | 1,784 | OneSignal-Android-SDK | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/digitalprisonreportinglib/controller/model/MetricDefinition.kt | ministryofjustice | 697,333,274 | false | {"Kotlin": 491558} | package uk.gov.justice.digital.hmpps.digitalprisonreportinglib.controller.model
data class MetricDefinition(
val id: String,
val name: String,
val display: String,
val description: String,
val visualisationType: List<DashboardChartTypeDefinition>,
val specification: List<MetricSpecificationDefinition>,
)
... | 3 | Kotlin | 1 | 2 | bdbfa4adfe0a687378b5607da31b9bc3b57fd0cf | 435 | hmpps-digital-prison-reporting-lib | MIT License |
android/src/main/java/com/westmangaextensions/utils/PostsView.kt | khalisafkari | 302,327,244 | false | null | package com.westmangaextensions.utils
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.bridge.ReadableMap
import com.facebook.react.bridge.WritableNativeArray
import com.facebook.react.bridge.WritableNativeMap
import org.jsoup.Jsoup
import org.jsoup.select.Elements
import java.io.IOException
c... | 0 | Kotlin | 0 | 1 | b172639b625a7dcf459ce9cc950d08170eb13d8a | 1,044 | westmanga-extensions | MIT License |
platform/android/core-persistance/src/main/java/io/dotanuki/platform/android/core/persistance/LocalStorage.kt | dotanuki-labs | 192,096,771 | false | null | package io.dotanuki.platform.android.core.persistance
interface LocalStorage {
suspend fun lastSearches(): List<String>
fun registerNewSearch(term: String)
fun destroy()
}
| 2 | Kotlin | 37 | 452 | cb76e46a4199664868757892c9ca865bec90c6b9 | 188 | norris | MIT License |
app/src/main/kotlin/com/xiaocydx/sample/transition/enter/JankFragment.kt | xiaocydx | 460,257,515 | false | {"Kotlin": 1365337} | package com.xiaocydx.sample.transition.enter
import android.os.Bundle
import android.view.View
import androidx.lifecycle.flowWithLifecycle
import com.xiaocydx.sample.viewLifecycle
import com.xiaocydx.sample.viewLifecycleScope
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.launchIn
i... | 0 | Kotlin | 0 | 9 | 47debfb87a9d2834c04f69daa66a3cab63343ab2 | 1,139 | CXRV | Apache License 2.0 |
client/slack-spring-api-client/src/test/kotlin/io/olaph/slack/client/spring/IntegrationTests.kt | gitter-badger | 181,514,383 | true | {"Kotlin": 338538} | package io.olaph.slack.client.spring
import io.olaph.slack.dto.jackson.common.types.Conversation
import io.olaph.slack.dto.jackson.group.conversations.ConversationCreateRequest
import io.olaph.slack.dto.jackson.group.conversations.ConversationMembersRequest
import io.olaph.slack.dto.jackson.group.conversations.Convers... | 0 | Kotlin | 0 | 0 | 429fa4293cb5c5bf67d7d543f92d4cc7a81eea4f | 3,025 | slack-spring-boot-starter | MIT License |
src/main/kotlin/venus/assembler/pseudos/JR.kt | ics-jku | 470,084,492 | false | null | package venus.assembler.pseudos
import venus.assembler.AssemblerPassOne
import venus.assembler.LineTokens
import venus.assembler.PseudoWriter
/** Writes pseudoinstruction `jr register` */
object JR : PseudoWriter() {
override operator fun invoke(args: LineTokens, state: AssemblerPassOne): List<LineTokens> {
... | 1 | null | 1 | 4 | 429d323b98a33db67074e44f164c8d1044f406de | 413 | venus | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/exception/http/CwaWebException.kt | covid-be-app | 281,650,940 | false | null | package de.rki.coronawarnapp.exception.http
import de.rki.coronawarnapp.exception.reporting.ErrorCodes
import de.rki.coronawarnapp.exception.reporting.ReportedIOException
open class CwaWebException(statusCode: Int) : ReportedIOException(
ErrorCodes.CWA_WEB_REQUEST_PROBLEM.code, "error during web request, http sta... | 5 | null | 3 | 55 | d556b0b9f29e76295b59be2a1ba89bc4cf6ec33b | 2,026 | cwa-app-android | Apache License 2.0 |
ktor-oauth2-react-client/ktor-oauth2-react-client-frontend-api/src/main/kotlin/com/onlyteo/sandbox/routes/GreetingRoutes.kt | onlyteo | 798,100,309 | false | {"Kotlin": 14112, "HTML": 9051, "CSS": 1817} | package com.onlyteo.sandbox.routes
import com.onlyteo.sandbox.config.Config
import com.onlyteo.sandbox.service.GreetingService
import io.ktor.client.HttpClient
import io.ktor.server.application.call
import io.ktor.server.auth.authenticate
import io.ktor.server.response.respond
import io.ktor.server.routing.Route
impor... | 0 | Kotlin | 0 | 0 | 0b19285d6c6b5ab4da63c0a74cc6c48496856a95 | 756 | ktor-sandbox | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/SectionViewHolder.kt | TachiWeb | 66,624,691 | true | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Markdown": 4, "Proguard": 1, "Kotlin": 253, "XML": 171, "Java": 9} | package eu.kanade.tachiyomi.ui.recent_updates
import android.support.v7.widget.RecyclerView
import android.text.format.DateUtils
import android.text.format.DateUtils.DAY_IN_MILLIS
import android.view.View
import kotlinx.android.synthetic.main.item_recent_chapter_section.view.*
import java.util.*
class SectionViewHold... | 0 | Kotlin | 0 | 5 | 9dac958ed1414338dfff825c8d7dbe78fb98209a | 689 | tachiyomi | Apache License 2.0 |
src/main/kotlin/dev/realmkit/game/domain/stat/extension/validator/StatValidator.kt | RealmKit | 590,912,533 | false | {"Kotlin": 376600} | /*
* Copyright (c) 2023 RealmKit
*
* 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, merge, publish, dist... | 28 | Kotlin | 0 | 0 | 75824606b7edf018adf82af1cc588fe25c5f9de5 | 1,759 | game | MIT License |
src/test/java/guru/springframework/sfgpetclinic/services/map/OwnerMapServiceTest.kt | adrianbadarau | 179,070,960 | true | {"Kotlin": 47191, "Java": 2201} | package guru.springframework.sfgpetclinic.services.map
import guru.springframework.sfgpetclinic.model.Owner
import guru.springframework.sfgpetclinic.model.PetType
import guru.springframework.sfgpetclinic.services.PetService
import guru.springframework.sfgpetclinic.services.PetTypeService
import org.assertj.core.api.As... | 0 | Kotlin | 0 | 0 | cbd206ac8f44483ae573ab7f009dc239c9cea9b0 | 2,793 | testing-java-junit5 | Apache License 2.0 |
libnavigation-core/src/test/java/com/mapbox/navigation/core/routerefresh/RouteRefreshControllerTest.kt | k4anubhav | 439,334,238 | false | {"Gradle": 39, "Markdown": 14, "Java Properties": 2, "Shell": 5, "Ignore List": 24, "Batchfile": 2, "EditorConfig": 1, "Makefile": 1, "YAML": 3, "XML": 380, "INI": 33, "Proguard": 16, "Text": 32, "Kotlin": 754, "CODEOWNERS": 1, "JSON": 53, "Java": 5, "CSS": 1, "Python": 4} | package com.mapbox.navigation.core.routerefresh
import com.mapbox.api.directions.v5.models.DirectionsRoute
import com.mapbox.api.directions.v5.models.RouteOptions
import com.mapbox.base.common.logger.Logger
import com.mapbox.base.common.logger.model.Message
import com.mapbox.geojson.Point
import com.mapbox.navigation.... | 1 | null | 1 | 1 | c7fd13f6c363e0902cf2e12d55d4bc3647700400 | 11,737 | mapbox-navigation-android | Apache License 2.0 |
app/src/main/java/com/oxyethylene/easynote/common/arrays/SpinnerItemTexts.kt | PolyOxyethylene | 738,671,054 | false | {"Kotlin": 336864, "Java": 106555, "JavaScript": 10698, "CSS": 1739, "HTML": 414} | package com.oxyethylene.easynote.common.arrays
import com.oxyethylene.easynote.R
/**
* Created with IntelliJ IDEA.
* @Project : EasyNoteDemo
* @Package : com.oxyethylene.easynote.common.arrays
* @ClassName : SpinnerItemTexts.java
* @createTime : 2024/2/19 13:55
* @version : 1.0
* @author ... | 0 | Kotlin | 0 | 1 | 97992bfe8eeb4aa6d4ea69a98971422e8700ec9f | 1,456 | EasyNote | Apache License 2.0 |
wearApp/src/main/java/dev/johnoreilly/confetti/wear/sessions/navigation/sessionsDestination.kt | joreilly | 436,024,503 | false | null | @file:OptIn(ExperimentalHorologistApi::class)
package dev.johnoreilly.confetti.wear.sessions.navigation
import androidx.lifecycle.SavedStateHandle
import androidx.navigation.NavBackStackEntry
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavType
import androidx.navigation.navArgument
import an... | 36 | Kotlin | 44 | 443 | 039c4aadd82f7029df027a6332a4743a4470dbc8 | 2,489 | Confetti | Apache License 2.0 |
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt | gradle | 302,322 | false | {"Groovy": 33309780, "Java": 30797028, "Kotlin": 3552953, "C++": 888505, "JavaScript": 76180, "HTML": 15779, "CSS": 13668, "Shell": 12214, "XSLT": 7121, "C": 5785, "Scala": 2817, "Gherkin": 192, "Python": 58, "Brainfuck": 54} | /*
* Copyright 2020 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 applica... | 2,663 | Groovy | 4552 | 15,640 | 3fde2e4dd65124d0f3b2ef42f7e93446ccd7cced | 2,300 | gradle | Apache License 2.0 |
api/src/main/kotlin/br/com/strn/erp/api/database/entities/financeiro/MovConta.kt | IvoSestren | 331,951,557 | false | null | package br.com.strn.erp.api.database.entities.financeiro
import br.com.strn.erp.api.database.entities.BaseEntity
import br.com.strn.erp.api.database.util.newHandle
import org.hibernate.annotations.Where
import java.time.LocalDateTime
import javax.persistence.*
@Entity
@Table(name = "movconta")
@Where(clause = "delete... | 0 | Kotlin | 0 | 0 | a955b4a4b8b4e4f2b746bbe5bc4fe3674ab9caf1 | 861 | erp_001 | The Unlicense |
protocol/osrs-221-desktop/src/main/kotlin/net/rsprot/protocol/game/incoming/codec/misc/client/MembershipPromotionEligibilityDecoder.kt | blurite | 771,753,685 | false | {"Kotlin": 1458066} | package net.rsprot.protocol.game.incoming.codec.misc.client
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ClientProt
import net.rsprot.protocol.game.incoming.misc.client.MembershipPromotionEligibility
import net.rsprot.protocol.game.incoming.prot.GameClientProt
import net.rsprot.protocol.message.codec... | 4 | Kotlin | 6 | 7 | b72a9ddbbf607e357b783c4c8a1f5dc91b5de4f0 | 1,018 | rsprot | MIT License |
app/src/main/java/com/example/cetl/settingScreen/myTeam/teamInspection/MemberStats.kt | Bhavyansh03-tech | 840,319,498 | false | {"Kotlin": 596261} | package com.example.cetl.settingScreen.myTeam.teamInspection
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.cetl.adapter.teamAdapter.TeamP... | 0 | Kotlin | 0 | 0 | ea288888f95b0465b4af79d26ce2b5baa1258c61 | 3,624 | CETL | MIT License |
vscode/src/jsMain/kotlin/vscode/window/createTextEditorDecorationType.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | @file:JsModule("vscode")
@file:JsQualifier("window")
package vscode.window
import vscode.DecorationRenderOptions
import vscode.TextEditorDecorationType
/**
* Create a TextEditorDecorationType that can be used to add decorations to text editors.
*
* @param options Rendering options for the decoration type.
* @ret... | 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 464 | kotlin-externals | MIT License |
app/src/main/java/com/image/mozaic/genericRecyclerView/GenericRecyclerAdapter.kt | mihaigabriel1992 | 138,795,805 | false | {"Kotlin": 20542} | package com.image.mozaic.genericRecyclerView
import android.databinding.DataBindingUtil
import android.databinding.ViewDataBinding
import android.support.v7.util.DiffUtil
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
/**
* Default Adapter should be use... | 0 | Kotlin | 0 | 0 | fd831ca6347bfc69eb085206dc66367af6d0f7e6 | 3,402 | android-upstack | MIT License |
domain/src/commonMain/kotlin/com/br/kmmdemo/models/Daily.kt | BottleRocketStudios | 663,198,654 | false | {"Kotlin": 57148, "Swift": 412} | package com.br.kmmdemo.models
import com.br.kmmdemo.models.domainmodelinterface.DomainModel
import kotlinx.serialization.Serializable
@Serializable
data class Daily(
val time: String?,
val dailyValues: DailyValues?
): DomainModel
| 0 | Kotlin | 0 | 0 | 250456862dcedf3ff73775b7f0f8e1086c1620fa | 240 | Kmp-demo | Apache License 2.0 |
core/src/debug/kotlin/ru/mobileup/template/core/debug_tools/RealDebugTools.kt | MobileUpLLC | 485,284,340 | false | null | package ru.mobileup.template.core.debug_tools
import android.content.Context
import com.chuckerteam.chucker.api.ChuckerCollector
import com.chuckerteam.chucker.api.ChuckerInterceptor
import com.chuckerteam.chucker.api.RetentionManager
import me.aartikov.replica.client.ReplicaClient
import me.aartikov.replica.devtools.... | 1 | null | 2 | 8 | 75c3350979d4d2a92d8b685194b80ef3747201e9 | 1,547 | MobileUp-Android-Template | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.