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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
build-tools/agp-gradle-core/src/main/java/com/android/build/gradle/internal/dependency/SourceSetManager.kt | RivanParmar | 526,653,590 | 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... | 1 | null | 2 | 17 | a497291d77bba1aa34271808088fe1e8aab5efe2 | 5,851 | androlabs | Apache License 2.0 |
app/src/main/java/com/consistence/pinyin/domain/Database.kt | memtrip | 137,037,911 | false | null | package com.consistence.pinyin.domain
import android.app.Application
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.consistence.pinyin.domain.pinyin.db.PinyinDao
import com.consistence.pinyin.domain.pinyin.db.PinyinEntity
import com.consistence.pinyin.domain.study.... | 0 | Kotlin | 9 | 58 | 7df0b28a89a1bf778b118e4c35274d89b0600161 | 1,229 | android-mvi | Apache License 2.0 |
app/src/main/java/br/com/movieapp/movie_popular_feature/domain/usecase/GetMoviesPopularUseCase.kt | PedroTeloeken | 739,474,504 | false | {"Kotlin": 58374} | package br.com.movieapp.movie_popular_feature.domain.usecase
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import br.com.movieapp.core.domain.Movie
import br.com.movieapp.movie_popular_feature.domain.repository.MoviePopularRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Injec... | 0 | Kotlin | 0 | 0 | 8dea28efcad878bdc3a46d653e99ac75d82137e8 | 788 | MovieApp | MIT License |
compose/compiler/compiler-hosted/integration-tests/src/jvmTest/kotlin/androidx/compose/compiler/plugins/kotlin/FunctionBodySkippingTransformTests.kt | androidx | 256,589,781 | 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... | 28 | null | 945 | 5,125 | 55c737bfb7a7320ac5b43787306f0c3af169f420 | 36,779 | androidx | Apache License 2.0 |
plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/core/explorer/cwqTab/CwQTreeRootNode.kt | aws | 91,485,909 | false | null | // Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.core.explorer.cwqTab
import com.intellij.ide.projectView.PresentationData
import com.intellij.ide.util.treeView.AbstractTreeNode
import com.intellij.openapi.extensi... | 419 | null | 184 | 721 | cf124aa847231402fc483c02223850644b3b749e | 1,013 | aws-toolkit-jetbrains | Apache License 2.0 |
src/generated/kotlin/de/lancom/openapi/entity/XML.kt | lancomsystems | 733,524,954 | false | {"Kotlin": 769728, "Mustache": 12392} | /*****************************************************************************
** C A U T I O N **
** This file is auto-generated! **
** If you want to make changes, please see the README.md file. **
** ... | 1 | Kotlin | 0 | 1 | be448682a5ce7441fb04f7a888cab903dcedacbb | 4,240 | openapi-parser | Apache License 2.0 |
script-generator/src/test/kotlin/generated/UpdateGradleWrapper.kt | krzema12 | 439,670,569 | false | null | package generated
import it.krzeminski.githubactions.domain.actions.CustomAction
import it.krzeminski.githubactions.actions.actions.CheckoutV3
import it.krzeminski.githubactions.actions.gradleupdate.UpdateGradleWrapperActionV1
import it.krzeminski.githubactions.domain.RunnerType
import it.krzeminski.githubactions.doma... | 33 | null | 12 | 317 | d00c239f914719be3a7bfd9b02e06f65b8a45b7c | 2,278 | github-workflows-kt | Apache License 2.0 |
plugins/kotlin/highlighting/highlighting-k1/src/org/jetbrains/kotlin/idea/highlighter/KotlinHighlightingVisitorExtension.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.highlighter
import com.intellij.codeInsight.daemon.impl.HighlightInfoType
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.psi.PsiElem... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 995 | intellij-community | Apache License 2.0 |
app/src/main/java/com/concordium/wallet/ui/bakerdelegation/baker/BakerRegisterAmountActivity.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.ui.bakerdelegation.baker
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.inputmethod.EditorInfo
import androidx.core.widget.doOnTextChanged
import com.concordium.wallet.R
import com.concordium.wallet.data.b... | 6 | Kotlin | 3 | 9 | ff6970fca016387fc0ecaade085a6f2dabbaa18e | 10,739 | concordium-reference-wallet-android | Apache License 2.0 |
core/src/main/kotlin/com/piotrwalkusz/smartlaw/core/model/element/implementation/PropertyImplementation.kt | piotrwalkusz1 | 293,285,610 | false | null | package com.piotrwalkusz.smartlaw.core.model.element.implementation
import com.piotrwalkusz.smartlaw.annotationprocessor.GenerateTemplate
import com.piotrwalkusz.smartlaw.core.model.element.function.statement.Statement
import com.piotrwalkusz.smartlaw.core.model.element.interfaces.InterfacePropertyType
@GenerateTempl... | 0 | Kotlin | 0 | 0 | 235354ac0469d5ba9630b91124f6fcc4481dad34 | 455 | SmartLaw | MIT License |
context/src/main/java/dev/funkymuse/context/ContextDialogs.kt | FunkyMuse | 168,687,007 | false | null | package com.crazylegend.kotlinextensions.context
import android.content.Context
import androidx.appcompat.app.AlertDialog
/**
* Created by hristijan on 3/1/19 to long live and prosper !
*/
/**
* There is No Such Thing name Hard Toast, Its just an AlertDialog which will the [msg] you passed until user cancels it... | 6 | null | 92 | 818 | fe984e6bdeb95fb5819f27dcb12001dcfd911819 | 1,882 | KAHelpers | MIT License |
androidkeystore/src/main/java/com/mutualmobile/androidkeystore/android/crypto/ciper/CipherMM.kt | mutualmobile | 141,567,313 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Text": 1, "YAML": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 13, "XML": 12, "Java": 2} | /*
* Copyright 2016 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 3 | 13 | 6c082078781c782c9232ebfdeba5db14ba62ce73 | 1,115 | MMKeystore | Apache License 2.0 |
src/main/kotlin/io/layercraft/packetlib/packets/v1_19_3/login/clientbound/EncryptionBeginPacket.kt | Layercraft | 531,857,310 | false | null | package io.layercraft.packetlib.packets.v1_19_2.login.clientbound
import io.layercraft.packetlib.packets.*
import io.layercraft.packetlib.serialization.MinecraftProtocolDeserializeInterface
import io.layercraft.packetlib.serialization.MinecraftProtocolSerializeInterface
/**
* Encryption Request | 0x01 | login | clie... | 0 | Kotlin | 1 | 4 | 3491d690689369264101853861e1d5a572cde24f | 1,518 | PacketLib | MIT License |
app/app/src/main/java/com/example/party_lojo_game/ui/adapter/EditYourQuestionsGridAdapter.kt | ajloinformatico | 381,492,665 | false | null | package com.example.party_lojo_game.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import com.example.party_lojo_game.databinding.RowSingleQuestionBinding
import com.example.party_lojo_game.databin... | 0 | Kotlin | 0 | 0 | dc0b3f5b64110f2e528020d1851a73031fb25871 | 3,246 | party-lojo-game | MIT License |
compiler/testData/diagnostics/tests/inline/recursion.kt | JakeWharton | 99,388,807 | false | null | // FIR_IDENTICAL
// CHECK_TYPE
// DIAGNOSTICS: -NOTHING_TO_INLINE -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE -VARIABLE_EXPECTED
inline fun inlineFun(s: (p: Int) -> Unit) {
<!RECURSION_IN_INLINE!>inlineFun<!>(s)
}
inline fun <T> inlineFun(s: T) {
<!RECURSION_IN_INLINE!>inlineFun<!><Int>(11)
}
inli... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 709 | kotlin | Apache License 2.0 |
xml-parser-api/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/bpmn/api/bpmn/elements/types/IntermediateThrowingEventAlike.kt | valb3r | 261,109,342 | false | null | package com.valb3r.bpmn.intellij.plugin.bpmn.api.bpmn.elements.types
interface IntermediateThrowingEventAlike | 76 | Kotlin | 20 | 81 | 760efb3d7e48970545d0d7622687d67c2b9b9693 | 110 | flowable-bpmn-intellij-plugin | MIT License |
src/backend/src/main/kotlin/org/icpclive/service/ScoreboardService.kt | icpc | 447,849,919 | false | null | package org.icpclive.service
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import org.icpclive.api.*
import org.icpclive.data.DataBus
import org.icpclive.scoreboard.getScoreboardCalculator
import org.icpclive.util.... | 14 | Kotlin | 7 | 25 | 097ca5e9f6dcac7175d7242579a44dde723bd772 | 2,052 | live-v3 | MIT License |
downloader/src/funTest/kotlin/DownloaderTest.kt | andreas-bauer | 165,835,940 | false | null | /*
* Copyright (C) 2017-2019 HERE Europe B.V.
*
* 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... | 0 | null | 0 | 1 | b0b8117a5eccc8c4c2833a1089c91c7eb0c2dcc9 | 8,015 | oss-review-toolkit | Apache License 2.0 |
downloader/src/funTest/kotlin/DownloaderTest.kt | andreas-bauer | 165,835,940 | false | null | /*
* Copyright (C) 2017-2019 HERE Europe B.V.
*
* 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... | 0 | null | 0 | 1 | b0b8117a5eccc8c4c2833a1089c91c7eb0c2dcc9 | 8,015 | oss-review-toolkit | Apache License 2.0 |
src/main/kotlin/jetbrains/buildServer/server/querylang/ast/Filter.kt | JetBrains | 285,547,183 | false | null | package jetbrains.buildServer.server.querylang.ast
interface Filter<in FObject> : FilterBuilder<FObject>, Named, Printable {
fun toCondition(): RealConditionAST<*> = FilterConditionNode(this)
} | 3 | Kotlin | 5 | 3 | cb59d0c832c69d896e56baf814c45c34eb16f832 | 198 | teamcity-search-ql | Apache License 2.0 |
unique-sdk/src/openApiGenerator/src/main/kotlin/network/unique/model/AllowedResponse.kt | UniqueNetwork | 555,353,838 | false | null | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package network.unique.model
import com.square... | 0 | null | 0 | 3 | 0f5afacd0cb7b7411bc78307f3a22c8d02a14e69 | 479 | unique-sdk-kotlin | MIT License |
feature/core/src/main/kotlin/com/masselis/tpmsadvanced/core/feature/interfaces/viewmodel/CurrentVehicleDropdownViewModel.kt | VincentMasselis | 501,773,706 | false | {"Kotlin": 382337} | package com.masselis.tpmsadvanced.core.feature.interfaces.viewmodel
import android.os.Parcelable
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.masselis.tpmsadvanced.core.feature.usecase.CurrentVehicleUseCase
import com.masselis.tpmsad... | 6 | Kotlin | 1 | 1 | 6c0624dc94da5a1ce54c03eb156aa8f489ebf82f | 2,371 | TPMS-advanced | Apache License 2.0 |
livekit-android-sdk/src/main/java/io/livekit/android/LiveKit.kt | livekit | 339,892,560 | false | null | /*
* Copyright 2023 LiveKit, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 62 | null | 69 | 176 | 41e5aa67852e79939ec196586039b6de477d5cc1 | 4,765 | client-sdk-android | Apache License 2.0 |
app/src/main/kotlin/no/nav/tiltakspenger/vedtak/context/DokumentContext.kt | navikt | 487,246,438 | false | {"Kotlin": 946725, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.vedtak.context
import no.nav.tiltakspenger.meldekort.ports.DokumentGateway
import no.nav.tiltakspenger.vedtak.Configuration
import no.nav.tiltakspenger.vedtak.auth.AzureTokenProvider
import no.nav.tiltakspenger.vedtak.clients.dokument.DokumentHttpClient
@Suppress("unused")
open class Doku... | 9 | Kotlin | 0 | 1 | 61d70015b3dcd251a3286f634c9c8f77013449b3 | 675 | tiltakspenger-vedtak | MIT License |
android/versioned-abis/expoview-abi44_0_0/src/main/java/abi44_0_0/expo/modules/kotlin/views/AnyViewProp.kt | derekstavis | 184,342,737 | true | {"Objective-C": 20602533, "Java": 13690880, "C++": 11626391, "Kotlin": 5359352, "TypeScript": 4619500, "Objective-C++": 4368983, "Swift": 1078083, "JavaScript": 1013246, "Starlark": 712574, "Ruby": 519774, "C": 282818, "Makefile": 193716, "Shell": 54009, "Assembly": 46734, "HTML": 36667, "CMake": 26275, "CSS": 1306, "B... | package abi44_0_0.expo.modules.kotlin.views
import android.view.View
import abi44_0_0.com.facebook.react.bridge.Dynamic
abstract class AnyViewProp(
val name: String
) {
abstract fun set(prop: Dynamic, onView: View)
}
| 1 | Objective-C | 1 | 2 | e377f0cd22db5cd7feb8e80348cd7064db5429b1 | 223 | expo | MIT License |
src/org/ice1000/tt/editing/mlang/folding.kt | owo-lang | 174,763,486 | false | null | package org.ice1000.tt.editing.mlang
import com.intellij.lang.ASTNode
import com.intellij.lang.folding.FoldingBuilderEx
import com.intellij.lang.folding.FoldingDescriptor
import com.intellij.openapi.editor.Document
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.util.TextRange
import com.inte... | 5 | null | 5 | 35 | 7e601041978a0497db7d4cf3bcf4971f532235cd | 2,099 | intellij-dtlc | Apache License 2.0 |
lib/src/main/kotlin/inc/kaizen/service/sprout/generator/impl/ModelConverterClassGenerator.kt | kaizen-inc | 857,464,993 | false | {"Kotlin": 76712} | package inc.kaizen.service.sprout.generator.impl
import com.google.devtools.ksp.symbol.KSClassDeclaration
import inc.kaizen.service.sprout.extension.capitalizeFirstLetter
import inc.kaizen.service.sprout.extension.findComplexType
import inc.kaizen.service.sprout.extension.toCamelCase
import inc.kaizen.service.sprout.g... | 0 | Kotlin | 0 | 0 | d0d922506cd337e717fa1091fa2065eea4bc3e9f | 2,809 | Sprout | MIT License |
app/src/main/java/com/justin/huang/maskmap/viewModel/DrugStoreViewModel.kt | justin74 | 244,567,887 | false | {"Kotlin": 23014} | package com.justin.huang.maskmap.viewModel
import androidx.lifecycle.*
import com.justin.huang.maskmap.db.DrugStore
import com.justin.huang.maskmap.repository.MaskPointsRepository
import kotlinx.coroutines.launch
import timber.log.Timber
import javax.inject.Inject
class DrugStoreViewModel @Inject constructor(private ... | 0 | Kotlin | 0 | 0 | 2297ef5d72751431e0b7ecf6e7d46cf5b158d333 | 597 | MaskMap | Apache License 2.0 |
src/main/kotlin/br/com/webbudget/application/payloads/StateFilter.kt | web-budget | 354,665,828 | false | null | package br.com.webbudget.application.payloads.support
enum class StateFilter(val value: Boolean?) {
ALL(null), ACTIVE(true), INACTIVE(false)
}
| 4 | null | 1 | 1 | 0407ee25f55f74dfa11c4806e560a7589cba37ca | 148 | back-end | Apache License 2.0 |
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRowTimestampPreview.kt | element-hq | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 263 | null | 94 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 1,977 | element-x-android | Apache License 2.0 |
objects/src/commonMain/kotlin/ru/krindra/vkkt/objects/users/UsersUser.kt | krindra | 780,080,411 | false | {"Kotlin": 1336107} | package ru.krindra.vkkt.objects.users
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import ru.krindra.vkkt.objects.base.BaseBoolInt
import ru.krindra.vkkt.objects.base.BaseSex
import ru.krindra.vkkt.objects.friends.FriendsRequestsMutual
import ru.krindra.vkkt.objects.friends.Friends... | 0 | Kotlin | 0 | 1 | 58407ea02fc9d971f86702f3b822b33df65dd3be | 2,421 | VKKT | MIT License |
src/main/kotlin/com/demonwav/mcdev/platform/mixin/inspection/shadow/ShadowTargetInspection.kt | Earthcomputer | 240,984,777 | true | {"Gradle Kotlin DSL": 2, "Markdown": 2, "YAML": 3, "Text": 16, "Java Properties": 3, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "XML": 28, "INI": 6, "Java": 3, "Groovy": 4, "HAProxy": 2, "Kotlin": 554, "SVG": 1, "HTML": 39, "JFlex": 4} | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.platform.mixin.inspection.shadow
import com.demonwav.mcdev.platform.mixin.inspection.MixinInspection
import com.demonwav.mcdev.platform.mixin.util.MixinConstants.Anno... | 1 | Kotlin | 2 | 23 | ab8aaeb8804c7a8b2e439e063a73cb12d0a9d4b5 | 2,135 | MinecraftDev | MIT License |
app/src/main/java/com/liorhass/android/medsstocktracker/eventlist/EventListViewModelFactory.kt | liorhass | 268,994,559 | false | null | package com.liorhass.android.medsstocktracker.eventlist
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.liorhass.android.medsstocktracker.database.LoggedEventsDao
// Boilerplate code of a ViewModel-factory - provides the DAO and app context to the ViewModel
class EventListVi... | 0 | Kotlin | 0 | 0 | 27ef2050e0d959e3b5ae280b8e198fa905f7e21e | 727 | MedsStockTracker | MIT License |
coil-core/src/androidMain/kotlin/coil3/target/ImageViewTarget.kt | coil-kt | 201,684,760 | false | {"Kotlin": 955603, "Shell": 2360, "JavaScript": 209} | package coil3.target
import android.graphics.drawable.Drawable
import android.widget.ImageView
import coil3.annotation.Data
/**
* A [Target] that handles setting images on an [ImageView].
*/
@Data
open class ImageViewTarget(
override val view: ImageView,
) : GenericViewTarget<ImageView>() {
override var dr... | 39 | Kotlin | 626 | 9,954 | 9b3f851b2763b4c72a3863f8273b8346487b363b | 420 | coil | Apache License 2.0 |
core/ui/src/main/java/com/msg/ui/util/timeFormatter.kt | School-of-Company | 700,744,250 | false | null | package com.msg.ui.util
import java.time.LocalTime
import java.time.format.DateTimeFormatter
fun LocalTime.toLocalTimeFormat(): String {
val formatter = DateTimeFormatter.ofPattern("HH:mm:ss")
return this.format(formatter)
}
fun LocalTime.toKoreanFormat(): String {
val dateTimeFormatter = DateTimeFormatt... | 7 | null | 1 | 22 | 358bf40188fa2fc2baf23aa6b308b039cb3fbc8c | 388 | Bitgoeul-Android | MIT License |
domain/src/main/java/com/yablunin/shopnstock/domain/repositories/ShoppingListHandlerRepository.kt | yabluninn | 702,962,028 | false | {"Kotlin": 126063} | package com.yablunin.shopnstock.domain.repositories
import com.yablunin.shopnstock.domain.constants.ListConstants
import com.yablunin.shopnstock.domain.models.ShoppingList
import com.yablunin.shopnstock.domain.models.User
import kotlin.random.Random
class ShoppingListHandlerRepository: ListHandlerRepository {
ove... | 0 | Kotlin | 0 | 3 | eb1b9e2f0ceda62b0cc57173034b3186aef7e3e2 | 2,165 | shopnstock | MIT License |
src/commonTest/kotlin/nl/jacobras/humanreadable/HumanReadableRelativeTimeTests.kt | jacobras | 696,961,730 | false | {"Kotlin": 15061} | package nl.jacobras.humanreadable
import assertk.assertThat
import assertk.assertions.isEqualTo
import io.github.skeptick.libres.LibresSettings
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
import kotlin.test.Test
import kotlin.time.Duration.Companion.days
import kotlin.time.Duration.Companion.minutes
... | 4 | Kotlin | 7 | 96 | 2598757f57081807cedda6195681f5adb9da6c5e | 871 | Human-Readable | MIT License |
app/src/main/java/com/example/philosophyquotes/data/data_source/QuotesDAO.kt | WillACosta | 536,141,267 | false | {"Kotlin": 38147} | package com.example.philosophyquotes.data.data_source
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.example.philosophyquotes.data.model.Quote
@Dao
interface QuotesDAO {
@Insert
fun save(quote: Quote): Long
@Query("DELETE from QUOTE... | 0 | Kotlin | 0 | 0 | 6dced3869dbae7ff1deddf04c0e6903804d964e1 | 511 | philosophy_quotes | Apache License 2.0 |
app/src/main/java/com/petrulak/cleankotlin/ui/base/BaseFragment.kt | Petrulak | 104,648,833 | false | null | package com.petrulak.cleankotlin.ui.base
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.petrulak.cleankotlin.platform.bus.event.EventBus
import javax.inject.... | 0 | null | 10 | 111 | 51033f30ecdb9573000454f1b8890d20c2438002 | 841 | android-kotlin-mvp-clean-architecture | MIT License |
compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/fir/Fir2IrJvmResultsConverter.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-2023 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.test.frontend.fir
import org.jetbrains.kotlin.backend.common.IrSpecialAnnotation... | 184 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 5,513 | kotlin | Apache License 2.0 |
idea/idea-core/src/org/jetbrains/kotlin/idea/core/KotlinNameSuggester.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 186 | null | 4323 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 13,081 | kotlin | Apache License 2.0 |
android/src/main/kotlin/com/hellobike/flutter/thrio/navigator/PageObservers.kt | hellobike | 237,804,349 | false | null | /**
* The MIT License (MIT)
*
* Copyright (c) 2019 Hellobike Group
*
* 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 ... | 8 | null | 77 | 739 | 7d47dd231e68dfa8e952691ec5e974b0663ff00e | 2,839 | flutter_thrio | MIT License |
src/main/kotlin/org/rust/lang/core/psi/impl/mixin/RustTraitTypeMemberImplMixin.kt | nicompte | 60,753,746 | true | {"Git Config": 1, "Gradle": 2, "Markdown": 8, "Java Properties": 2, "Shell": 1, "Text": 70, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "YAML": 1, "Rust": 387, "XML": 34, "HTML": 18, "RenderScript": 2, "TOML": 7, "Kotlin": 295, "Java": 5, "JFlex": 1} | package org.rust.lang.core.psi.impl.mixin
import com.intellij.lang.ASTNode
import org.rust.lang.core.psi.RustTraitTypeMemberElement
import org.rust.lang.core.psi.impl.RustNamedElementImpl
abstract class RustTraitTypeMemberImplMixin(node: ASTNode) : RustNamedElementImpl(node)
... | 0 | Kotlin | 0 | 0 | 283f8ac1b441147c1227ebc5992b7dc75fbbacb0 | 370 | intellij-rust | MIT License |
coil-base/src/test/java/coil/fetch/HttpUriFetcherTest.kt | coil-kt | 201,684,760 | false | null | package coil.fetch
import android.content.Context
import android.os.NetworkOnMainThreadException
import android.webkit.MimeTypeMap
import androidx.core.net.toUri
import androidx.test.core.app.ApplicationProvider
import coil.ImageLoader
import coil.decode.DataSource
import coil.decode.FileImageSource
import coil.decode... | 43 | null | 620 | 9,812 | 051e0b20969ff695d69b06cd72a1fdc9e504bf68 | 14,399 | coil | Apache License 2.0 |
Others/kt_misc/pkt_9/LayoutInts.kt | duangsuse-valid-projects | 163,751,200 | false | null | val item = RepeatUn(asInt(), digitFor('0'..'9')) { i -> i.toString().map { it - '0' } }
val tail = Seq(::CharTuple, item('-'),item('>')).toStringPat()
val layout = Convert(Repeat(asString(), item(' ')).Many() prefix item('\n'), { it.length }, { "".padStart(it) })
val p = LayoutPattern(item, tail, layout)
val slash = i... | 4 | null | 1 | 4 | e89301b326713bf949bcf9fbaa3992e83c2cba88 | 685 | Share | MIT License |
app/src/main/java/com/thenetcircle/dinoandroidframework/fragment/TNCRoomListFragment.kt | thenetcircle | 116,897,773 | false | null | /*
* Copyright 2018 The NetCircle
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 0 | null | 1 | 3 | 2d8849eead991147243746f34f95c9d6d5d4557e | 2,942 | dino-android-framework | Apache License 2.0 |
core/src/main/java/com/peterfarlow/core/service/HttpClient.kt | prfarlow1 | 808,781,012 | false | {"Kotlin": 21118} | package com.peterfarlow.core.service
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.engine.okhttp.OkHttp
import io.ktor.client.plugins.ResponseException
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.client.request.get
import io.ktor.client.re... | 0 | Kotlin | 0 | 0 | 85f4df26576bb98187fe16d76f3064f31230b7e0 | 1,515 | SentryAndroidCodeownersDemo | The Unlicense |
compiler/testData/codegen/box/primitiveTypes/nullAsNullableIntIsNull.kt | BradOselo | 367,097,840 | false | null | // DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: EXCEPTIONS_NOT_IMPLEMENTED
fun box(): String {
try {
if ((null as Int?)!! == 10) return "Fail #1"
return "Fail #2"
}
catch (e: Exception) {
return "OK"
}
}
| 0 | null | 0 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 252 | kotlin | Apache License 2.0 |
platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/log/AttributesLogInterceptor.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.vfs.newvfs.persistent.log
import com.intellij.openapi.vfs.newvfs.AttributeOutputStream
import com.intellij.openapi.vfs.newvfs.FileAttribute
import com.intellij.openapi.v... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,014 | intellij-community | Apache License 2.0 |
src/main/kotlin/jp/co/youmeee/app/Result.kt | youmitsu | 124,651,300 | false | null | package jp.co.youmeee.app
class Result(val arr: Array<SourceList>,
val sizeAll: Int) | 0 | Kotlin | 1 | 2 | 7c5dff343bc49e658419aa23fc75508ca1fd8cc8 | 98 | KotlinReplaceSupporter | MIT License |
util/src/main/java/com/jokubas/mmdb/util/extensions/WindowExtensions.kt | Jokubas126 | 235,866,403 | false | null | package com.jokubas.mmdb.util.extensions
import android.os.Build
import android.view.View
import android.view.Window
import android.view.WindowInsetsController
import androidx.annotation.ColorRes
import androidx.core.content.ContextCompat
fun Window.adjustStatusBar(@ColorRes colorRes: Int) {
statusBarColor = Cont... | 0 | Kotlin | 1 | 1 | 96500633698bc414d433547f9b3ebdb456ab1f46 | 1,172 | MobileMovieDatabase | MIT License |
gradle/build-logic/convention/src/main/kotlin/dev/chrisbanes/gradle/Android.kt | chrisbanes | 710,434,447 | false | {"Kotlin": 71417, "Shell": 1077} | // Copyright 2023, <NAME> and the Haze project contributors
// SPDX-License-Identifier: Apache-2.0
package dev.chrisbanes.gradle
import com.android.build.gradle.BaseExtension
import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
fun Project.configureAndroid() {
andr... | 7 | Kotlin | 12 | 611 | 8001574e5ab02786cd963fe9e7ed6851812cb7b4 | 712 | haze | Apache License 2.0 |
zip/src/test/java/com/microsoft/zip/Resources.kt | sayan-chaliha | 359,348,228 | false | null | /*
* Copyright (c) 2021 Microsoft Corporation.
* All Rights Reserved
*
* MIT License
* 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 t... | 0 | Kotlin | 0 | 0 | f094180ec28140cde8e6dec34654e07c4704adc8 | 1,394 | remote-zip-android | MIT License |
tl/src/main/kotlin/com/github/badoualy/telegram/tl/api/auth/TLAuthorization.kt | Miha-x64 | 436,587,061 | true | {"Kotlin": 3919807, "Java": 75352} | package com.github.badoualy.telegram.tl.api.auth
import com.github.badoualy.telegram.tl.TLObjectUtils.SIZE_CONSTRUCTOR_ID
import com.github.badoualy.telegram.tl.TLObjectUtils.SIZE_INT32
import com.github.badoualy.telegram.tl.api.TLAbsUser
import com.github.badoualy.telegram.tl.api.TLUserEmpty
import com.github.badoual... | 1 | Kotlin | 2 | 3 | 1a8963dce921c1e9ef05b9d1e56d8fbcb1ea1c4b | 2,278 | kotlogram-resurrected | MIT License |
backend.native/tests/codegen/classDelegation/method.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package codegen.classDelegation.method
import kotlin.test.*
interface A<T> {
fun foo(): T
}
class B : A<String> {
override fun foo() = "OK"
}
class C(a: A<S... | 0 | Kotlin | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 484 | kotlin-native | Apache License 2.0 |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/download/ui/DownloadView.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 2673868, "TypeScript": 704141, "Swift": 350138, "Vue": 146618, "SCSS": 39016, "Objective-C": 17350, "Shell": 11193, "HTML": 10807, "JavaScript": 3998, "CSS": 818} | package org.dweb_browser.browser.download.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import and... | 54 | Kotlin | 4 | 11 | 2a129afdf353564b3dd93ad2ad6dd6528c43413b | 2,863 | dweb_browser | MIT License |
app/shared/feature-flag/public/src/commonMain/kotlin/build/wallet/feature/flags/UtxoConsolidationFeatureFlag.kt | proto-at-block | 761,306,853 | false | {"C": 10474259, "Kotlin": 8243078, "Rust": 2779264, "Swift": 893661, "HCL": 349246, "Python": 338898, "Shell": 136508, "TypeScript": 118945, "C++": 69203, "Meson": 64811, "JavaScript": 36398, "Just": 32977, "Ruby": 13559, "Dockerfile": 5934, "Makefile": 3915, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.feature.flags
import build.wallet.feature.FeatureFlag
import build.wallet.feature.FeatureFlagDao
import build.wallet.feature.FeatureFlagValue.BooleanFlag
/**
* Flag determining whether a customer can use UTXO consolidation feature (aka self send).
*/
class UtxoConsolidationFeatureFlag(
featur... | 3 | C | 16 | 113 | 694c152387c1fdb2b6be01ba35e0a9c092a81879 | 630 | bitkey | MIT License |
maverics/src/test/kotlin/com/example/services/uservalidation/UserNameTest.kt | 3Anushka | 598,963,822 | false | null | package com.example.services.uservalidation
import com.example.services.createUser
import com.example.validations.checkUserName
import com.example.validations.isUniqueUsername
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
clas... | 0 | Kotlin | 0 | 0 | 0d75917ba64dbf30d7bc010b48ae839b86aab70e | 1,666 | mavericks-anushka-pair | Apache License 2.0 |
language-markdown/src/main/kotlin/com/blacksquircle/ui/language/markdown/lexer/MarkdownToken.kt | massivemadness | 608,535,719 | false | null | /*
* Copyright 2021 Brackeys IDE contributors.
*
* 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 la... | 45 | null | 46 | 5 | ff4ca02822671ec25f7da374283b253716ec4509 | 1,074 | EditorKit | Apache License 2.0 |
src/main/kotlin/com/github/quanticheart/intellijplugincleantree/wizard/cleanArch/recipes/data/DataRecipe.kt | quanticheart | 519,671,971 | false | {"Kotlin": 115237, "Java": 237} | package com.github.quanticheart.intellijplugincleantree.wizard.cleanArch.recipes.data
import com.android.tools.idea.wizard.template.ModuleTemplateData
import com.android.tools.idea.wizard.template.RecipeExecutor
import com.github.quanticheart.intellijplugincleantree.wizard.cleanArch.data.*
import java.util.*
fun Reci... | 0 | Kotlin | 0 | 0 | 92dfc1c111b991296c4575daa23522f4bc381339 | 1,371 | intellij-plugin-cleantree | Apache License 2.0 |
spring-app/src/test/kotlin/pl/starchasers/up/DatabaseCleaner.kt | Starchasers | 255,645,145 | false | null | package pl.starchasers.up
import org.junit.jupiter.api.extension.BeforeTestExecutionCallback
import org.junit.jupiter.api.extension.ExtensionContext
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Component
import pl.starchasers.up.util.initializer.Initializer
import ... | 57 | Kotlin | 0 | 9 | 90759d835f3be8fbcb9403dd20ca0e13f18bcfbc | 1,152 | up | MIT License |
fsmlib/src/test/kotlin/org/suggs/fsm/behavior/TransitionTest.kt | suggitpe | 158,869,057 | false | null | package org.suggs.fsm.behavior
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.mockito.Mock
import org.mockito.Mockito.*
import org.mockito.MockitoAnnotations.initMocks
import org.suggs.fsm.behavior.TransitionKind.EXTERNAL
import org.suggs.fsm.beh... | 0 | Kotlin | 0 | 0 | 6e9a247e1354354f04219a6b0062eeffad2e611b | 3,329 | fsm | Apache License 2.0 |
app/src/androidTest/java/com/alexzh/medicationreminder/data/ReminderDaoTest.kt | AlexZhukovich | 107,887,396 | false | null | package com.alexzh.medicationreminder.data
import android.arch.persistence.room.Room
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import com.alexzh.medicationreminder.TestData
import com.alexzh.medicationreminder.data.local.MedicationReminderDatabase
import com.a... | 0 | Kotlin | 0 | 1 | fa71281518d20d0432ba96d3c301b1488cc6c1e8 | 6,169 | MedicationReminder | MIT License |
viz-common/src/main/kotlin/com/majaku/viz/common/config/OkHttpHeaderInterceptor.kt | Prime1Code | 418,252,999 | false | {"Kotlin": 9874} | package com.majaku.viz.common.config
import okhttp3.Interceptor
import okhttp3.Response
import org.springframework.beans.factory.InitializingBean
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Component
impor... | 0 | Kotlin | 0 | 1 | caf81bbb7bc7b726c5ed968c7287957caa4f915a | 1,261 | viz-common | MIT License |
src/main/kotlin/mcx/pass/backend/Stage.kt | mcenv | 558,700,207 | false | null | package mcx.pass.backend
import kotlinx.collections.immutable.plus
import mcx.ast.Core.Definition
import mcx.ast.Core.Pattern
import mcx.ast.Core.Term
import mcx.ast.Lvl
import mcx.ast.Modifier
import mcx.ast.toIdx
import mcx.ast.toLvl
import mcx.pass.*
import mcx.util.mapWith
@Suppress("NAME_SHADOWING")
class Stage ... | 74 | Kotlin | 0 | 4 | 9c0991d3041340cc28981afc61377f5e36a90997 | 15,630 | mcx | MIT License |
zoomimage-compose-sketch/src/main/kotlin/com/github/panpf/zoomimage/SingletonSketchZoomAsyncImage.kt | panpf | 647,222,866 | false | null | /*
* Copyright (C) 2024 panpf <panpfpanpf@outlook.com>
* Copyright 2023 Coil Contributors
*
* 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-... | 8 | null | 7 | 98 | bdc00e862498830df39a205de5d3d490a5f04444 | 8,610 | zoomimage | Apache License 2.0 |
flutter_learn/android/app/src/main/kotlin/cn/orangelab/flutter_learn/MainActivity.kt | DDYFlutter | 206,050,782 | false | {"Dart": 70927, "JavaScript": 790, "Shell": 782, "Swift": 404, "Kotlin": 131, "Objective-C": 38} | package cn.orangelab.flutter_learn
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | 8c6f7e357b94abaea145b5cdffc46c5f19214e64 | 131 | flutter_test | MIT License |
sample/src/main/java/com/evo/composetoedge/components/Message.kt | Leo00001 | 307,006,119 | true | {"Kotlin": 3397} | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | null | 0 | 0 | 66a6260abc37320feea9f04ad76d734b4bc9f175 | 3,925 | compose-to-edge | Apache License 2.0 |
app/src/main/java/me/luowl/wan/ui/account/MineViewModel.kt | chenyao1208 | 205,293,578 | true | {"Kotlin": 187951, "Java": 38899, "HTML": 2838} | package me.luowl.wan.ui.account
import com.jeremyliao.liveeventbus.LiveEventBus
import me.luowl.wan.AppConfig
import me.luowl.wan.base.BaseViewModel
import me.luowl.wan.data.WanRepository
import me.luowl.wan.event.LoginEvent
import me.luowl.wan.util.logDebug
/*
*
* Created by luowl
* Date: 2019/8/4
* Desc:
*/
... | 0 | Kotlin | 0 | 0 | fa951c6dac69ad2944f0c881c3a5ddcc39781203 | 781 | WanAndroid | Apache License 2.0 |
core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/icons/twotone/Tune.kt | maxkeppeler | 523,345,776 | false | {"Kotlin": 1337179, "Python": 4978, "Shell": 645} | package com.maxkeppeker.sheets.core.icons.twotone
import androidx.compose.material.icons.materialIcon
import androidx.compose.material.icons.materialPath
import androidx.compose.ui.graphics.vector.ImageVector
public val Tune: ImageVector
get() {
if (_tune != null) {
return _tune!!
}
... | 14 | Kotlin | 38 | 816 | 2af41f317228e982e261522717b6ef5838cd8b58 | 2,162 | sheets-compose-dialogs | Apache License 2.0 |
app/src/main/java/com/egoriku/ladyhappy/mainscreen/presentation/search/SearchFragment.kt | egorikftp | 102,286,802 | false | {"Kotlin": 477671, "JavaScript": 3040, "Shell": 289} | package com.egoriku.ladyhappy.mainscreen.presentation.search
import android.os.Bundle
import android.view.View
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import com.egoriku.ladyhappy.R
import com.egoriku.ladyhappy.extensions.extraNotNull
import com.google.android.material.textfield.TextInpu... | 12 | Kotlin | 22 | 261 | da53bf026e104b84eebb7c2660c2feae26c6d965 | 927 | Lady-happy-Android | Apache License 2.0 |
src/main/kotlin/api/KotlinMetadataSignature.kt | Kotlin | 238,709,060 | false | null | /*
* Copyright 2016-2023 JetBrains s.r.o.
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
*/
package kotlinx.validation.api
import kotlinx.metadata.jvm.*
import kotlinx.validation.*
import org.objectweb.asm.*
import org.objectweb.asm.tree.*
@ExternalApi /... | 67 | null | 55 | 753 | 3a7003363502236e64bbf044540e569b3eb808a4 | 7,223 | binary-compatibility-validator | Apache License 2.0 |
src/main/kotlin/top/lanscarlos/vulpecula/bacikal/action/internal/ActionVulpecula.kt | Lanscarlos | 517,897,387 | false | null | package top.lanscarlos.vulpecula.bacikal.action.internal
import top.lanscarlos.vulpecula.bacikal.BacikalParser
import top.lanscarlos.vulpecula.bacikal.bacikal
/**
* Vulpecula
* top.lanscarlos.vulpecula.bacikal.action.internal
*
* @author Lanscarlos
* @since 2023-03-25 00:29
*/
object ActionVulpecula {
@Bac... | 1 | null | 5 | 30 | b07e79c505ebd953535b8c059144baa5482807d8 | 706 | Vulpecula | MIT License |
app/src/main/java/org/stepic/droid/di/routing/RoutingModule.kt | Ujjawal-Anand | 142,415,269 | true | {"Java": 1818802, "Kotlin": 1403557, "CSS": 3790, "Shell": 618, "Prolog": 98} | package org.stepic.droid.di.routing
import dagger.Binds
import dagger.Module
import org.stepic.droid.base.Client
import org.stepic.droid.base.ClientImpl
import org.stepic.droid.base.ListenerContainer
import org.stepic.droid.base.ListenerContainerImpl
import org.stepic.droid.core.routing.RoutingPosterImpl
import org.st... | 0 | Java | 0 | 1 | 256a90051eefe8db83f7053914004905bbb1f8d0 | 870 | stepik-android | Apache License 2.0 |
src/testFixtures/kotlin/uk/gov/justice/digital/hmpps/educationandworkplanapi/resource/model/induction/FutureWorkInterestsResponseBuilder.kt | ministryofjustice | 653,598,082 | false | {"Kotlin": 1266220, "Mustache": 2705, "Dockerfile": 1375} | package uk.gov.justice.digital.hmpps.educationandworkplanapi.resource.model.induction
import uk.gov.justice.digital.hmpps.educationandworkplanapi.resource.model.FutureWorkInterest
import uk.gov.justice.digital.hmpps.educationandworkplanapi.resource.model.FutureWorkInterestsResponse
import java.time.OffsetDateTime
impo... | 4 | Kotlin | 0 | 2 | fe41f71d0d2ffa0e5c0e371490c792b0c6238967 | 1,231 | hmpps-education-and-work-plan-api | MIT License |
impl/java/server/src/test/kotlin/br/com/guiabolso/events/server/exception/handler/BypassExceptionHandlerTest.kt | GuiaBolso | 102,665,880 | false | null | package br.com.guiabolso.events.server.exception.handler
import br.com.guiabolso.events.model.RequestEvent
import br.com.guiabolso.events.server.exception.BypassedException
import io.mockk.mockk
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test... | 6 | Kotlin | 21 | 21 | ac681929de003e82da5910ffe41ed71ee4336899 | 1,201 | events-protocol | Apache License 2.0 |
pushmanager/src/main/java/com/grumpyshoe/module/pushmanager/models/RemoteMessageData.kt | grumpyshoe | 146,342,390 | false | null | package com.grumpyshoe.module.pushmanager.models
import android.net.Uri
/**
* <p>RemoteMessageData is a model for holding all notification information that's available from incomming message</p>
*
* @since 1.0.0
* @version 1.0.0
* @author grumpyshoe
*
*/
data class RemoteMessageData(
var tag: Str... | 2 | null | 6 | 47 | bad2e049faa2b7f8d9628cc77068ce0ecb32df69 | 1,179 | android-module-pushmanager | MIT License |
app/src/main/kotlin/com/tinashe/hymnal/ui/hymns/hymnals/HymnalListBottomSheetFragment.kt | TinasheMzondiwa | 272,096,849 | false | null | package com.tinashe.hymnal.ui.hymns.hymnals
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.RecyclerView
import com.google.android.m... | 5 | null | 14 | 40 | 84aeaa57933eb9c3a418cd495ff9c282d4e9b573 | 2,705 | cis-android | Apache License 2.0 |
app/src/main/kotlin/com/tinashe/hymnal/ui/hymns/hymnals/HymnalListBottomSheetFragment.kt | TinasheMzondiwa | 272,096,849 | false | null | package com.tinashe.hymnal.ui.hymns.hymnals
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.RecyclerView
import com.google.android.m... | 5 | null | 14 | 40 | 84aeaa57933eb9c3a418cd495ff9c282d4e9b573 | 2,705 | cis-android | Apache License 2.0 |
components/views/src/main/java/io/horizontalsystems/views/SettingsViewDropdown.kt | fahimaltinordu | 312,207,740 | true | {"Kotlin": 1883211, "Java": 33448, "Ruby": 5803, "Shell": 2024} | package io.horizontalsystems.views
import android.content.Context
import android.util.AttributeSet
import androidx.core.view.isVisible
import kotlinx.android.synthetic.main.view_settings_dropdown.view.*
import kotlinx.android.synthetic.main.view_settings_dropdown_text.view.*
class SettingsViewDropdown @JvmOverloads c... | 0 | Kotlin | 0 | 4 | d3094c4afaa92a5d63ce53583bc07c8fb343f90b | 1,283 | WILC-wallet-android | MIT License |
src/main/kotlin/org/neo4j/graphql/CypherGenerator.kt | mneedham | 88,902,386 | false | null | package org.neo4j.graphql
import graphql.language.*
import org.neo4j.graphdb.GraphDatabaseService
import org.neo4j.kernel.internal.Version
fun <T> Iterable<T>.joinNonEmpty(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform... | 0 | Kotlin | 0 | 1 | 6408650254af45deb3dbc78cd5b1bd9f249d05e2 | 11,141 | neo4j-graphql | Apache License 2.0 |
kotlin/isogram/src/main/kotlin/Isogram.kt | vladflore | 299,923,035 | false | {"Text": 1, "Ignore List": 1, "Markdown": 51, "Gradle": 10, "Java": 21, "XML": 1, "Gradle Kotlin DSL": 5, "Shell": 9, "Batchfile": 5, "INI": 5, "Kotlin": 10, "Julia": 31, "Python": 20, "jq": 2, "JSON": 1} | object Isogram {
fun isIsogram(input: String): Boolean {
var specialCharsCount = 0
var letters = emptySet<Char>()
for (ch in input.toLowerCase()) {
if (ch.isLetter()) {
letters = letters.plus(ch)
} else {
specialCharsCount++
}
}
return letters.size == input.length - specialCharsCount
}
}
| 1 | null | 1 | 1 | 6d6ec893c8389b8fd648cbe6ac9c34930a207ee8 | 318 | exercism | MIT License |
app/src/main/java/com/zsoltbertalan/flickslate/data/db/UpcomingMoviesDao.kt | herrbert74 | 779,374,786 | false | {"Kotlin": 227177} | package com.zsoltbertalan.flickslate.data.db
import com.zsoltbertalan.flickslate.common.async.IoDispatcher
import com.zsoltbertalan.flickslate.common.util.runCatchingUnit
import com.zsoltbertalan.flickslate.domain.model.Movie
import com.zsoltbertalan.flickslate.domain.model.PageData
import com.zsoltbertalan.flickslate... | 1 | Kotlin | 2 | 6 | 26ed9b8411ad4ff512ee53ac666ac894caba9293 | 1,948 | FlickSlate | Apache License 2.0 |
commandbasedarchitecture_coroutine/src/main/java/io/scal/commandbasedarchitecture/commands/ExecutionStrategies.kt | scalio | 249,327,477 | false | {"Kotlin": 80418} | package io.scal.commandbasedarchitecture.commands
/**
* Strategy that will be used by CommandManager to control command execution flow.
*/
interface ExecutionStrategy {
/**
* Called before adding command to pending.
* If returns false - command will be skipped and never be executed.
* If true - c... | 0 | Kotlin | 1 | 6 | ca30738ba772b77090b1c61edaa6f6a7a055974f | 4,263 | command-based-architecture | Apache License 2.0 |
domain/src/main/java/org/kafka/domain/observers/ObserveCreatorItems.kt | vipulyaara | 612,950,214 | false | {"Kotlin": 635130, "JavaScript": 440999, "HTML": 11959, "CSS": 7888, "Shell": 2974} | package org.kafka.domain.observers
import com.kafka.data.dao.ItemDao
import com.kafka.data.entities.Item
import com.kafka.data.model.ArchiveQuery
import com.kafka.data.model.booksByAuthor
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.toPersistentList
import kotlinx.coroutines.... | 5 | Kotlin | 5 | 86 | fa64a43602eecac8b93ae9e8b713f6d29ba90727 | 1,447 | Kafka | Apache License 2.0 |
datawedgeconfigurator/src/main/java/com/zebra/nilac/dwconfigurator/models/ResultType.kt | nilac8991 | 261,186,326 | false | {"Kotlin": 134096, "Java": 744} | package com.zebra.nilac.dwconfigurator.models
enum class ResultType {
NONE, LAST_RESULT, COMPLETE_RESULT
} | 0 | Kotlin | 1 | 1 | 791ef7abaf61d864c6e206d290be11f5ae25a2c0 | 111 | datawedge-configurator | MIT License |
lint/src/com/android/tools/idea/lint/common/AndroidLintJcenterInspectionSuppressor.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,614 | android | Apache License 2.0 |
app/src/main/java/com/yenaly/han1meviewer/worker/HUpdateWorker.kt | YenalyLiew | 524,046,895 | false | {"Kotlin": 723868, "Java": 88900} | package com.yenaly.han1meviewer.worker
import android.content.Context
import android.content.pm.ServiceInfo
import android.os.Build
import androidx.core.app.NotificationCompat
import androidx.core.net.toFile
import androidx.core.net.toUri
import androidx.work.Constraints
import androidx.work.CoroutineWorker
import and... | 21 | Kotlin | 78 | 999 | b0fa1a9e50b1567e4b5a504dcb6579d5f35427fa | 5,020 | Han1meViewer | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRoutePathMatch.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 137826907} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.appmesh
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObje... | 4 | Kotlin | 0 | 4 | e15f2e27e08adeb755ad44b2424c195521a6f5ba | 3,361 | kotlin-cdk-wrapper | Apache License 2.0 |
test/main/kotlin/org/wasabi/test/AutoLocationInterceptorSpecs.kt | server-side | 66,091,082 | true | {"Kotlin": 108901, "Shell": 582, "HTML": 477, "CSS": 36} | package org.wasabi.test
import org.wasabi.protocol.http.StatusCodes
import org.wasabi.interceptors.enableAutoLocation
import kotlin.test.assertEquals
import org.junit.Test as spec
public class AutoLocationInterceptorSpecs : TestServerContext() {
@spec fun with_auto_location_interceptor_enabled_when_setting_respo... | 0 | Kotlin | 0 | 0 | f48fba1b1b0b95957b2e13632fadfae7ed109863 | 1,257 | wasabi | Apache License 2.0 |
idea/testData/refactoring/rename/renameKotlinPropertyWithJvmField/after/RenameKotlinPropertyWithJvmField.kt | JakeWharton | 99,388,807 | false | null | package testing.rename
public open class C {
@JvmStatic var second = 1
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 77 | kotlin | Apache License 2.0 |
app/src/main/java/com/luuu/seven/module/special/detail/ComicSpecialDetailContract.kt | oteher | 288,484,684 | false | {"Kotlin": 223873} | package com.luuu.seven.module.special.detail
import com.luuu.seven.base.BasePresenter
import com.luuu.seven.base.BaseView
import com.luuu.seven.bean.ComicSpecialDetBean
/**
* Created by lls on 2017/8/4.
*
*/
interface ComicSpecialDetailContract {
interface Presenter : BasePresenter {
fun getComicSpecia... | 0 | null | 0 | 0 | 56d8fc35e2cd2281e9b96806f0d35d9e0c02f3e1 | 449 | Seven | MIT License |
NotificactionTest/app/src/main/java/com/example/notificactiontest/MainActivity.kt | zhoudahuai252 | 262,296,020 | false | null | package com.example.notificactiontest
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Build
import androidx.appcompat.app.AppCompatActivity... | 0 | Kotlin | 0 | 0 | 949fbfc9a32fd755adf89beca3f97889d152afec | 2,374 | studyRepository | Apache License 2.0 |
okio/src/nonJvmMain/kotlin/okio/Buffer.kt | square | 17,812,502 | false | null | /*
* Copyright (C) 2019 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 92 | null | 1210 | 8,795 | 0f6c9cf31101483e6ee9602e80a10f7697c8f75a | 8,628 | okio | Apache License 2.0 |
rpgJavaInterpreter-core/src/test/kotlin/com/smeup/rpgparser/parsing/ast/DataDefinitionTestCompiled.kt | smeup | 170,714,014 | false | {"RPGLE": 7104144, "Kotlin": 1772824, "ANTLR": 163198, "Java": 13658, "Ruby": 1899, "PowerShell": 861, "Dockerfile": 551, "Batchfile": 395} | package com.smeup.rpgparser.parsing.ast
class DataDefinitionTestCompiled : DataDefinitionTest() {
override fun useCompiledVersion() = true
} | 5 | RPGLE | 11 | 65 | fb9f97fb57b9f9a87fdfbec3697d21f6bd251004 | 146 | jariko | Apache License 2.0 |
app/src/main/java/live/mehiz/mpvkt/ui/preferences/SubtitlesPreferencesScreen.kt | abdallahmehiz | 799,697,356 | false | {"Kotlin": 142134} | package live.mehiz.mpvkt.ui.preferences
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.comp... | 3 | Kotlin | 2 | 3 | 7aaf01ee879aafafb69319d3a0b69a0865b7a031 | 2,727 | mpvKt | Apache License 2.0 |
sykepenger-model/src/test/kotlin/no/nav/helse/spleis/e2e/FullRefusjonTilNullRefusjonE2ETest.kt | navikt | 193,907,367 | false | null | package no.nav.helse.spleis.e2e
import no.nav.helse.Toggle
import no.nav.helse.Toggle.Companion.enable
import no.nav.helse.februar
import no.nav.helse.hendelser.Inntektsmelding
import no.nav.helse.hendelser.Sykmeldingsperiode
import no.nav.helse.hendelser.Søknad.Søknadsperiode.Sykdom
import no.nav.helse.hendelser.til
... | 0 | null | 2 | 4 | a3ba622f138449986fc9fd44e467104a61b95577 | 8,462 | helse-spleis | MIT License |
src/main/kotlin/com/mt/notion/api/block/request/update/UpdateParagraphBlockRequest.kt | motui | 479,945,371 | false | null | package com.mt.notion.api.block.request.update
import com.mt.notion.api.block.BlockObjectType
/**
*
* @author it.motui
*/
data class UpdateParagraphBlockRequest(
override val archived: Boolean? = false,
val type: BlockObjectType? = BlockObjectType.Paragraph,
val paragraph: UpdateBlockRichText
) : Updat... | 0 | Kotlin | 0 | 1 | 80b7b256d8d7c34b15cf79d1e5f539c8ef4736b4 | 333 | notion-sdk-kotlin | MIT License |
app/src/main/java/bry1337/github/io/newsthings/ui/MainActivity.kt | Bry1337 | 204,101,629 | false | null | package bry1337.github.io.deliveryman
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.findNavController
import androidx.navigation.ui.NavigationUI.*
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCr... | 0 | Kotlin | 0 | 0 | 883aaaaa746aae68567660d058a6694107f226a8 | 842 | redesigned-garbanzo | The Unlicense |
chapter-final/app/src/main/java/com/example/learnwithme/presentation/components/CustomProgressIndicator.kt | fsalom | 677,505,777 | false | {"Kotlin": 275503} | package com.example.learnwithme.presentation.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.material3.CircularProgressIndicator... | 0 | Kotlin | 0 | 0 | d4b60cb1150c5a10397ed92ce8b04893e7310948 | 1,374 | android-compose | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.