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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mvvm-dagger/src/main/java/com/nphau/android/shared/libs/CommonUtils.kt | ThanhHuong98 | 432,947,065 | false | null | package com.imstudio.android.shared.libs
import android.annotation.SuppressLint
import android.app.Activity
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.media.AudioManager
imp... | 0 | null | 0 | 1 | ac0402ae4734285ef5e647d1f53a1f9f4a8d98cd | 8,839 | android.clean-architecture.mvvm | Apache License 2.0 |
core/src/jsMain/kotlin/Observations.kt | JuulLabs | 293,227,216 | false | null | package com.juul.kable
internal actual fun Peripheral.observationHandler(): Observation.Handler = object : Observation.Handler {
override suspend fun startObservation(characteristic: Characteristic) {
(this@observationHandler as JsPeripheral).startObservation(characteristic)
}
override suspend fun... | 33 | Kotlin | 59 | 503 | 6bbe8f96bd634eae41f162c2f50b4ff044fc95ad | 461 | kable | Apache License 2.0 |
buildSrc/src/main/java/com/vuxur/khayyam/ConfigurationData.kt | deghat-farhad | 518,348,997 | false | {"Kotlin": 198678} | import org.gradle.api.JavaVersion
object ConfigurationData {
const val applicationId = "com.vuxur.khayyam"
const val compileSdk = 35
const val buildToolsVersion = "34.0.0"
const val minSdk = 21
const val targetSdk = 35
const val versionCode = 8
const val versionName = "1.2.2"
const val ... | 21 | Kotlin | 0 | 0 | e32cea9f0e098fdfa7315cfd8cc14dea72ef7785 | 466 | khayam | MIT License |
components/membership/membership-http-rpc-impl/src/main/kotlin/net/corda/membership/impl/httprpc/v1/MemberRegistrationRestResourceImpl.kt | corda | 346,070,752 | false | null | package net.corda.membership.impl.httprpc.v1
import net.corda.httprpc.PluggableRestResource
import net.corda.httprpc.exception.ResourceNotFoundException
import net.corda.httprpc.exception.ServiceUnavailableException
import net.corda.lifecycle.Lifecycle
import net.corda.lifecycle.LifecycleCoordinatorFactory
import net.... | 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 6,706 | corda-runtime-os | Apache License 2.0 |
app/src/main/kotlin/com/whereismymotivation/di/module/LocalDataModule.kt | unusualcodeorg | 730,655,456 | false | {"Kotlin": 472092} | package com.whereismymotivation.di.module
import android.content.Context
import android.content.SharedPreferences
import androidx.room.Room
import com.whereismymotivation.data.local.db.DatabaseService
import com.whereismymotivation.di.qualifier.DatabaseInfo
import com.whereismymotivation.di.qualifier.PrefsInfo
import ... | 0 | Kotlin | 4 | 38 | 5b77e6a6b14ae9ad21e8edd55e8c9b3cc2066f75 | 1,295 | wimm-android-app | Apache License 2.0 |
src/main/kotlin/net/casual/arcade/utils/BorderUtils.kt | CasualChampionships | 621,955,934 | false | {"Kotlin": 683110, "Java": 129189, "GLSL": 1008} | package net.casual.arcade.utils
import net.casual.arcade.border.LevelSpecificBorderBroadcaster
import net.casual.arcade.border.extensions.BorderSerializerExtension
import net.casual.arcade.config.ArcadeConfig
import net.casual.arcade.events.GlobalEventHandler
import net.casual.arcade.events.level.LevelCreatedEvent
imp... | 1 | Kotlin | 1 | 1 | 5ac1a66ccb442aed89577e83e8fef962cc4bab1e | 2,686 | arcade | MIT License |
app/src/main/java/org/scottishtecharmy/soundscape/screens/onboarding/audiobeacons/AudioBeacons.kt | Scottish-Tech-Army | 833,170,999 | false | {"Kotlin": 3492292, "C": 153623, "C++": 76956, "CMake": 2216, "Shell": 87} | package org.scottishtecharmy.soundscape.screens.onboarding.audiobeacons
import android.util.Log
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.f... | 36 | Kotlin | 2 | 3 | 4a6b1edd4c680b22781c43f5194758544fd410d9 | 6,424 | Soundscape-Android | Apache License 2.0 |
app/src/main/kotlin/com/alexrdclement/uiplayground/navigation/UiPlaygroundNavHost.kt | alexrdclement | 661,077,963 | false | {"Kotlin": 204338} | package com.alexrdclement.uiplayground.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.rememberNavController
import com.alexrdclement.uiplayground.catalog.MainCatalogItem
import com.alexrdclement.uiplayground.catalog.navigation.mainCat... | 0 | Kotlin | 0 | 0 | 4d19561487fbef5293bdaaefac9edc8ba82145ee | 1,674 | UiPlayground | Apache License 2.0 |
defitrack-protocol-contracts/src/main/java/io/defitrack/protocol/radiant/RadiantMultiFeeDistributor.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.protocol.radiant
import io.defitrack.abi.TypeUtils
import io.defitrack.abi.TypeUtils.Companion.dynamicArray
import io.defitrack.abi.TypeUtils.Companion.toAddress
import io.defitrack.abi.TypeUtils.Companion.toUint256
import io.defitrack.evm.contract.BlockchainGateway
import io.defitrack.evm.contrac... | 59 | null | 6 | 11 | 8b8d6713c9734d2b4015e7affe658e797c9a00be | 1,842 | defi-hub | MIT License |
mbcarkit/src/main/java/com/daimler/mbcarkit/business/model/services/MissingAccountLinkage.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbcarkit.business.model.services
import android.os.Parcelable
import com.daimler.mbcarkit.business.model.accountlinkage.AccountType
import kotlinx.android.parcel.Parcelize
@Parcelize
data class MissingAccountLinkage(
val mandatory: Boolean,
val type: AccountType?
) : Parcelable
| 1 | Kotlin | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 309 | MBSDK-Mobile-Android | MIT License |
app/src/main/java/com/circle/w3s/sample/wallet/TransactionsActivity.kt | rachitag112 | 784,599,425 | false | {"Kotlin": 96377} | package com.circle.w3s.sample.wallet
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.circle.w3s.sample.wallet.databinding.TransactionspageBinding
import java.io.IOException
import okhttp3.OkHttpClient
import okhttp3.Request
import ... | 0 | Kotlin | 0 | 0 | f3e485133ea430038a682c2ea9cdfb8130d931f1 | 15,798 | custom-wallet-circle | Apache License 2.0 |
custom-resource-status-clouddriver/src/test/kotlin/io/armory/plugin/kubernetes/handlers/CustomResourceHandlerIntegrationTest.kt | shlomodaari | 640,066,907 | false | null | package io.armory.plugin.kubernetes.handlers
import com.netflix.spinnaker.clouddriver.api.test.clouddriverFixture
import dev.minutest.junit.JUnit5Minutests
import dev.minutest.rootContext
import strikt.api.expectCatching
import strikt.assertions.isSuccess
class CustomResourceHandlerIntegrationTest : JUnit5Minutests {... | 0 | Kotlin | 0 | 0 | 5b449c5430afe5f639189441a283c43025b459d8 | 698 | crdscheck | Info-ZIP License |
src/main/kotlin/g1201_1300/s1201_ugly_number_iii/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g1201_1300.s1201_ugly_number_iii
// #Medium #Math #Binary_Search #Number_Theory #Binary_Search_II_Day_20
// #2023_06_09_Time_136_ms_(100.00%)_Space_33.1_MB_(100.00%)
class Solution {
private fun getLcm(a: Long, b: Long): Long {
var mx = a
var mn = b
if (a < b) {
mx = b
... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 1,212 | LeetCode-in-Kotlin | MIT License |
src/org/jetbrains/r/inspections/MissingPackageInspection.kt | JetBrains | 214,212,060 | false | {"Kotlin": 2849970, "Java": 814635, "R": 36890, "CSS": 23692, "Lex": 14307, "HTML": 10063, "Rez": 245, "Rebol": 64} | // Copyright (c) 2017, <NAME>, <NAME>
/*
* Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.jetbrains.r.inspections
import com.intellij.codeInspection.InspectionManager
import com.intellij.codeInspection.ProblemD... | 2 | Kotlin | 9 | 62 | d4d5cf9c09804454f811df7de0c02506d6ef12d3 | 6,567 | Rplugin | Apache License 2.0 |
core/network/src/main/java/dev/shushant/network/source/NetworkDataSourceImpl.kt | dev-shushant | 665,347,929 | false | {"Kotlin": 99424, "Shell": 4127} | package dev.shushant.network.source
import dev.shushant.network.model.CurrenciesResponse
import dev.shushant.network.model.CurrencyExchangeRateResponse
import dev.shushant.network.service.CurrencyConverterNetworkApi
import dev.shushant.network.utils.safeApiCall
import kotlinx.serialization.json.Json
import kotlinx.ser... | 0 | Kotlin | 0 | 0 | 5c8ac52e5f60353a1e7def649ee2bebd08f19ca9 | 1,289 | CurrencyConverter | MIT License |
usefetch/src/main/java/me/nikhilchaudhari/usefetch/Result.kt | CuriousNikhil | 431,820,990 | false | null | package me.nikhilchaudhari.usefetch
import me.nikhilchaudhari.usefetch.network.ResponseData
/**
* Result class represents the state value of your network response
*/
sealed class Result {
/**
* [Response] state contains [ResponseData] object of a network request
* [ResponseData] object has properties ... | 0 | Kotlin | 1 | 15 | 552e6adbb8793dd05af1bfb7f165777e8c46016e | 681 | compose-hooks | Apache License 2.0 |
app/src/main/java/com/experiments/android/presentation/txn/legacy/list/LegacyTxnListViewModel.kt | mir47 | 541,152,535 | false | {"Kotlin": 176352, "Ruby": 3099, "Shell": 194} | package com.experiments.android.presentation.txn.legacy.list
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.map
import androidx.lifecycle.viewModelScope
import com.experiments.android... | 1 | Kotlin | 0 | 0 | b4e78551c73ddd2c07cc4f157a66d8eacfeec9be | 2,426 | experiments | MIT License |
app/src/main/java/com/alexandreladriere/formulix/utils/Const.kt | AlexandreLadriere | 481,709,606 | false | null | package com.alexandreladriere.formulix.utils
const val BACKEND_ENDPOINT = "http://ergast.com"
const val FORMAT_DATE = "yyyy-MM-dd'T'HH:mm:ss'Z'"
const val FORMAT_HOUR_MINUTE = "HH:mm"
const val FORMAT_DAY = "dd"
const val FORMAT_MONTH = "MM"
val MAP_MONTH = mapOf("01" to "JAN", "02" to "FEB", "03" to "MAR", "04" to "A... | 0 | Kotlin | 0 | 0 | 0418535d4bfcd092e6470957256df184917e5456 | 543 | Android-Formulix-App | MIT License |
presentation/profile/src/commonMain/kotlin/com/thomaskioko/tvmaniac/presentation/profile/ProfileActions.kt | thomaskioko | 361,393,353 | false | {"Kotlin": 560203, "Swift": 94284} | package com.thomaskioko.tvmaniac.presentation.profile
sealed interface ProfileActions
data object ShowTraktDialog : ProfileActions
data object DismissTraktDialog : ProfileActions
data object TraktLogoutClicked : ProfileActions
data object TraktLoginClicked : ProfileActions
data object SettingsClicked : ProfileActions... | 4 | Kotlin | 16 | 136 | 625b1bbab9aba4e5031778ba5020639106d4b4e9 | 321 | tv-maniac | Apache License 2.0 |
app/src/main/java/net/sarangnamu/testrequest/UriUtils.kt | aucd29 | 155,800,203 | false | null | package net.sarangnamu.testrequest
import android.content.Context
import android.net.Uri
import android.os.Build
import android.os.Environment
import android.support.v4.content.FileProvider
import java.io.File
/**
* Created by <a href="mailto:<EMAIL>"><NAME></a> on 2018. 11. 2. <p/>
*/
object UriUtils {
// ... | 0 | Kotlin | 0 | 0 | 06d572f42ff609f402b9e5775cfdb65a72c6f2eb | 1,377 | test-request-install-package | Apache License 2.0 |
module/ui/src/test/kotlin/com/github/jameshnsears/chance/ui/zoom/ZoomAndroidViewModelUnitTest.kt | jameshnsears | 725,514,594 | false | null | package com.github.jameshnsears.chance.ui.zoom
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.github.jameshnsears.chance.data.domain.core.bag.testdouble.BagDataTestDouble
import com.github.jameshnsears.chance.data.domain.core.roll.testdouble.RollHistoryDataTestDouble
import com.github... | 4 | null | 2 | 6 | 3abfa1d918d8d34dadc2498888793726cba508a0 | 4,671 | Chance | Apache License 2.0 |
app/src/main/java/com/savvasdalkitsis/gameframe/feature/gameframe/view/DeepLinkActivity.kt | Goergepaul3 | 108,090,059 | true | {"Kotlin": 290313, "Java": 20519} | package com.savvasdalkitsis.gameframe.feature.gameframe.view
import android.app.Activity
import android.os.Bundle
import com.github.andrewlord1990.snackbarbuilder.toastbuilder.ToastBuilder
import com.savvasdalkitsis.gameframe.R
import com.savvasdalkitsis.gameframe.feature.widget.view.WidgetView
import com.savvasdalkit... | 0 | Kotlin | 0 | 0 | 429d1835492190cc0e8d3f1d690903a2d4e5cbe5 | 982 | gameframe | Apache License 2.0 |
compiler/testData/diagnostics/tests/callableReference/resolve/kt35920.kt | JetBrains | 3,432,266 | false | null | // SKIP_TXT
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: JavaClass.java
public class JavaClass<R> {
public static String baz(int x) { return ""; }
}
// FILE: main.kt
fun foo(x: (Int) -> String) {}
fun main() {
foo(JavaClass<*>::<!UNRESOLVED_REFERENCE!>baz<!>)
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 299 | kotlin | Apache License 2.0 |
analysis/analysis-api/testData/components/compilerFacility/compilation/inlineFunctionsInSameFile.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... | // DUMP_IR
// MODULE: ui
// MODULE_KIND: LibraryBinary
// FILE: com/example/ui/Text.kt
package com.example.ui
fun Text(text: String) {}
// MODULE: module2
// TARGET_PLATFORM: Common
// FILE: com/example/module2/moduleClass2.kt
package com.example.module2
inline fun a(): String = "Hi" + b()
inline fun b(): String = ... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,092 | kotlin | Apache License 2.0 |
src/main/kotlin/br/com/manieri/mikoshi/model/SaveData.kt | JoaoManieri | 798,898,226 | false | {"Kotlin": 9453} | package br.com.manieri.mikoshi.model
data class SaveData
(
val serialNumber: String,
val email: String,
val nome: String,
val hash: String
) {
fun getCsv() : String{
return "${this.nome}, ${this.email}, ${this.serialNumber}, ${this.hash} \n"
}
}
| 0 | Kotlin | 0 | 0 | f00b8c8d548f6f36eadcfebed5ebcc62429c618a | 283 | mikoshi | Apache License 2.0 |
src/main/kotlin/com/atlassian/performance/tools/report/api/FullReport.kt | atlassian | 171,860,470 | false | {"HTML": 661490, "Kotlin": 336680, "Java": 35695} | package com.atlassian.performance.tools.report.api
import com.atlassian.performance.tools.io.api.ensureDirectory
import com.atlassian.performance.tools.jiraactions.api.ActionMetricStatistics
import com.atlassian.performance.tools.report.api.action.EditedIssuesReport
import com.atlassian.performance.tools.report.api.ac... | 0 | HTML | 25 | 6 | 49bb05fc540d4ee3133bbc9e85db796f141a93a1 | 3,922 | report | Apache License 2.0 |
src/main/kotlin/com/geovannycode/Application.kt | Geovanny0401 | 615,122,233 | false | null | package com.geovannycode
import com.geovannycode.Security.configureSecurity
import com.geovannycode.config.configureContentNegotiation
import com.geovannycode.config.configureDatabase
import com.geovannycode.config.configureRouting
import io.ktor.server.application.*
fun main(args: Array<String>): Unit =
io.ktor.... | 0 | Kotlin | 0 | 1 | 695d7c7efdeed9ffb4b55ad55425c6baf32e29c3 | 620 | ktor-rest-api | Apache License 2.0 |
app/src/main/java/com/dbsrm/evo/ui/share/ShareViewModel.kt | DevBahl | 256,489,535 | false | null | package com.dbsrm.evo.ui.share
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class ShareViewModel : ViewModel() {
private val mText: MutableLiveData<String?>
val text: LiveData<String?>
get() = mText
init {
mText = Mutable... | 0 | Kotlin | 0 | 0 | 33a574343017c3d824179f310edcfbf315902eb3 | 385 | Evo | MIT License |
app/src/main/java/br/com/wakim/eslpodclient/android/widget/SpacingItemDecoration.kt | wakim | 52,843,851 | false | {"Git Config": 1, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 1, "XML": 63, "JSON": 1, "Kotlin": 84} | package br.com.wakim.eslpodclient.android.widget
import android.graphics.Rect
import android.support.v7.widget.RecyclerView
import android.view.View
class SpacingItemDecoration(val left: Int = 0, val top: Int = 0, val right: Int = 0, val bottom: Int = 0) : RecyclerView.ItemDecoration() {
override fun getItemOffs... | 0 | Kotlin | 1 | 6 | a92dad2832f087f97fcbf9b2b7973a31efde551c | 457 | esl-pod-client | Apache License 2.0 |
src/main/kotlin/com/github/simiacryptus/aicoder/actions/generic/RedoLast.kt | SimiaCryptus | 580,649,146 | false | null | package com.github.simiacryptus.aicoder.actions.generic
import com.github.simiacryptus.aicoder.actions.BaseAction
import com.github.simiacryptus.aicoder.util.UITools
import com.github.simiacryptus.aicoder.util.UITools.retry
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSyste... | 8 | null | 14 | 43 | 3c5dbf1c5de04841d33e380760122a63b633e805 | 1,036 | intellij-aicoder | Apache License 2.0 |
app/src/main/java/com/mathewsachin/fategrandautomata/scripts/modules/Battle.kt | pkurteev | 280,206,378 | true | {"Kotlin": 210364} | package com.mathewsachin.fategrandautomata.scripts.modules
import com.mathewsachin.libautomata.*
import com.mathewsachin.fategrandautomata.scripts.ImageLocator
import com.mathewsachin.fategrandautomata.scripts.prefs.Preferences
import kotlin.time.seconds
class Battle {
private var hasTakenFirstStageSnapshot = fal... | 0 | Kotlin | 0 | 0 | 45ba006f36b422a7f99b3f898d4987260bb4f949 | 4,509 | Fate-Grand-Automata | MIT License |
src/main/kotlin/org/crystal/intellij/stubs/impl/CrCFieldStubImpl.kt | asedunov | 353,165,557 | false | null | package org.crystal.intellij.stubs.impl
import com.intellij.psi.stubs.IStubElementType
import com.intellij.psi.stubs.StubElement
import org.crystal.intellij.psi.CrCField
import org.crystal.intellij.stubs.api.CrCFieldStub
class CrCFieldStubImpl(
parent: StubElement<*>?,
elementType: IStubElementType<out StubEl... | 1 | Kotlin | 0 | 4 | a2dd8bb0837aa411fe13e94a0efd255b074445da | 400 | intellij-crystal-lang | Apache License 2.0 |
OfficialSite/Collections/Map/PlusMinus.kt | kazenetu | 238,936,555 | false | null | /*
* コレクション:Map
*/
fun main() {
// 追加と削除
println("---Map : plus and minus---")
println("> plus")
println("mapOf(\"key1\" to 1, \"key2\" to 2) + Pair(\"Key3\", 3) = ${ mapOf("key1" to 1, "key2" to 2) + Pair("Key3", 3) }")
println("mapOf(\"key1\" to 1, \"key2\" to 2) + mapOf(\"Key3\" to 3, \"a\" ... | 0 | Kotlin | 0 | 0 | 77df823ed3131e45d6aadd325a4726e106c6ef60 | 1,707 | kotlin-practice | MIT License |
core/utils/src/main/java/ru/aleshin/core/utils/extensions/Date.kt | v1tzor | 638,022,252 | false | null | /*
* Copyright 2023 Stanislav Aleshin
*
* 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... | 7 | null | 8 | 99 | 0762559e4dabea2971df1573472216f554ab8577 | 6,918 | TimePlanner | Apache License 2.0 |
gaia/src/main/kotlin/dev/pooq/ichor/gaia/entity/player/Player.kt | kxmpxtxnt | 586,376,008 | false | null | package dev.pooq.ichor.gaia.entity.player
import dev.pooq.ichor.gaia.entity.Entity
import dev.pooq.ichor.gaia.networking.packet.PacketHandle
import java.util.*
class Player(
val uuid: UUID,
val name: String,
val handle: PacketHandle
) : Entity.Creature | 0 | Kotlin | 0 | 3 | 1451ae9c7d1a67d2b85d013aa1dec72cfce7e045 | 260 | ichor | Apache License 2.0 |
app/src/main/java/se/barsk/park/fcm/Notification.kt | nibarius | 94,821,344 | false | null | package se.barsk.park.fcm
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.TaskStackBuilder
import android.content.Context
import android.content.Intent
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCompat
import org.json.JSONObject
import se.... | 0 | Kotlin | 0 | 0 | dbadadcfe717928c6b833a26c72a5ab07faccb04 | 2,312 | opera-park-android | MIT License |
app/src/main/java/com/eynnzerr/yuukatalk/ui/component/PhotoBubble.kt | Eynnzerr | 725,178,988 | false | null | package com.eynnzerr.yuukatalk.ui.component
import android.util.Base64
import android.util.Log
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.... | 0 | null | 0 | 8 | 7bc939080f38d1e647f4ec3f1a2c33e576b77dbf | 2,134 | YuukaTalk | MIT License |
feature/account/src/main/java/little/goose/account/ui/analysis/AccountAnalysisRoute.kt | MReP1 | 525,822,587 | false | null | package little.goose.account.ui.analysis
import androidx.compose.animation.AnimatedContentScope
import androidx.compose.animation.core.FastOutLinearInEasing
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx... | 1 | null | 27 | 99 | a6ee70d1b3dcf4b9b24ca00bbed725e8374e105a | 3,268 | LittleGooseOffice | MIT License |
circularcardsstackview/src/main/java/com/mindinventory/circularcardsstackview/listener/CardActionListener.kt | Mindinventory | 396,811,810 | false | null | package com.mindinventory.circularcardsstackview.listener
interface CardActionListener {
fun onFirstButtonOptionClick(position: Int)
fun onSecondButtonOptionClick(position: Int)
} | 0 | Kotlin | 2 | 30 | 315c7d767509bc43dd8d5fe2f93e57e9818b1be2 | 188 | CircularCardsStackView | MIT License |
app/src/main/java/com/jim/moviecritics/ext/FragmentExt.kt | MIN-JING | 503,330,525 | false | {"Kotlin": 286084} | package com.jim.moviecritics.ext
import androidx.fragment.app.Fragment
import com.jim.moviecritics.MovieApplication
import com.jim.moviecritics.data.Comment
import com.jim.moviecritics.data.Movie
import com.jim.moviecritics.data.User
import com.jim.moviecritics.factory.CommentViewModelFactory
import com.jim.moviecriti... | 1 | Kotlin | 0 | 0 | 9818ae1ed3bd7f80e230c611600d532712306eb1 | 1,324 | MovieCritics | Apache License 2.0 |
src/main/kotlin/xyz/webo/plugins/Routing.kt | believemanasseh | 609,058,470 | false | {"Kotlin": 30510, "Handlebars": 4491, "CSS": 1271, "HTML": 789} | package xyz.webo.plugins
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import xyz.webo.routes.adminRouting
import xyz.webo.routes.authRouting
import xyz.webo.routes.postRouting
import xyz.webo.routes.userRouting
import java.io.File
fun Application.configureRouti... | 0 | Kotlin | 0 | 0 | d22b9dcf506bd1b749f34d6046dd21f28820d4f1 | 683 | webo-server | Apache License 2.0 |
presentation/base/src/main/java/com/bateng/jikan/api/presentation/base/navigation/navigator/NavigatorEvent.kt | bat-eng | 516,289,173 | false | null | package com.bateng.jikan.api.presentation.base.navigation.navigator
import androidx.navigation.NavOptionsBuilder
sealed class NavigatorEvent {
object NavigateUp : NavigatorEvent()
class Directions(val destination: String, val builder: NavOptionsBuilder.() -> Unit) : NavigatorEvent()
} | 0 | Kotlin | 0 | 0 | b9ca169141c605dfc0693a076abd065bceecccc3 | 295 | JikanApi | Apache License 2.0 |
codebase/android/core-database/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/database/transaction/usecase/GetRecentTransactionDataUseCase.kt | Abhimanyu14 | 429,663,688 | false | null | package com.makeappssimple.abhimanyu.financemanager.android.core.database.transaction.usecase
import com.makeappssimple.abhimanyu.financemanager.android.core.database.transaction.model.TransactionData
import com.makeappssimple.abhimanyu.financemanager.android.core.database.transaction.repository.TransactionRepository
... | 0 | Kotlin | 0 | 0 | 29afaec0cf4e95ba4d6c0dcc32cba3fea6a088cb | 891 | finance-manager | Apache License 2.0 |
app/src/main/java/com/octopus/sample/ui/main/home/HomePagedAdapter.kt | JonDoe-297 | 247,462,407 | false | null | package com.octopus.sample.ui.main.home
import android.content.Intent
import android.graphics.Typeface
import android.text.Spannable
import android.text.SpannableStringBuilder
import android.text.method.LinkMovementMethod
import android.text.style.ClickableSpan
import android.text.style.StyleSpan
import android.view.L... | 0 | Kotlin | 0 | 1 | bc9d26bda6b6f309df9dfb907ffd1a46da206f78 | 2,838 | presentCloud-mobileUI | Apache License 2.0 |
src/main/java/jukebot/utils/RequestUtil.kt | cyberfox1998 | 214,037,373 | false | {"Text": 2, "Gradle": 2, "XML": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "INI": 1, "Kotlin": 61, "Java": 4} | package jukebot.utils
import okhttp3.*
import org.slf4j.LoggerFactory
import java.io.IOException
class RequestUtil {
private val httpClient = OkHttpClient()
private val logger = LoggerFactory.getLogger(this.javaClass)
inner class PendingRequest(private val request: Request) {
fun block(): Respon... | 0 | Kotlin | 0 | 0 | 2c29200358bf5059df5115f52e4aca0de15b3739 | 1,595 | lond | Apache License 2.0 |
kotlinpoet-dsl/src/test/kotlin/com/hendraanggrian/kotlinpoet/collections/PropertySpecListTest.kt | hendraanggrian | 209,613,746 | false | null | package com.hendraanggrian.kotlinpoet.collections
import com.example.Property1
import com.example.Property2
import com.example.Property3
import com.example.Property4
import com.example.Property5
import com.example.Property6
import com.example.Property7
import com.example.Property8
import com.google.common.truth.Truth.... | 1 | Kotlin | 0 | 3 | 98f4ea811ea25b6a85334a15ae90bddd5f015592 | 4,147 | kotlinpoet-ktx | Apache License 2.0 |
plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/javac/KaptJavaFileManager.kt | arrow-kt | 109,678,056 | true | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.kapt3.base.javac
import com.sun.tools.javac.file.JavacFileManager
import com.sun.tools.javac.main.Option
import com.sun.tools.... | 12 | Kotlin | 1 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 933 | kotlin | Apache License 2.0 |
cardview/src/main/java/com/harreke/easyapp/skin/cardview/SkinCardViewStainerWrapper.kt | Harreke | 547,880,574 | false | {"Kotlin": 99993} | package com.harreke.easyapp.skin.cardview
import android.util.AttributeSet
import android.view.View
import androidx.cardview.widget.CardView
import com.harreke.easyapp.skin.core.ISkinStainerWrapper
import com.harreke.easyapp.skin.cardview.stainer.SkinCardViewStainer
class SkinCardViewStainerWrapper : ISkinStainerWrap... | 0 | Kotlin | 0 | 0 | 248e6b78a0bb8871021de63ee8da4572ee66c13f | 485 | EasyApp-Skin | MIT License |
idea/testData/inspectionsLocal/redundantLambdaArrow/simple.kt | JakeWharton | 99,388,807 | false | null | fun foo(f: () -> Unit) {}
fun bar() {
foo { <caret>-> }
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 62 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/pokedex/data/model/TypeX.kt | anubhav-auth | 822,822,462 | false | {"Kotlin": 135857} | package com.example.pokedex.data.model
data class TypeX(
val name: String,
val url: String
) | 0 | Kotlin | 0 | 0 | 5d7db709c2ebdaa0968704fc16264ccbf290be64 | 101 | PokeDex | MIT License |
app/src/main/java/com/realitix/nectar/database/entity/Receipe.kt | Nectar-Project | 247,032,480 | false | null | package com.realitix.nectar.database.entity
import android.util.Log
import androidx.room.*
import com.realitix.nectar.repository.ReceipeStepRepository
import com.realitix.nectar.util.NectarUtil
import kotlinx.coroutines.runBlocking
// Receipe without steps to prevent cycle in ReceipeStepReceipe
class Receipe(uuid: S... | 2 | Kotlin | 0 | 0 | f220b9007fc5d3faf1d3fd9a842154de2a7d0cdf | 5,818 | nectar-android | Apache License 2.0 |
src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.ko.newtoki
import android.content.SharedPreferences
import android.util.Log
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.asObservableSuccess
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import eu.kanade.tachiyomi.source.ConfigurableSource
i... | 9 | Kotlin | 99 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 12,220 | komikku-extensions | Apache License 2.0 |
compiler/testData/codegen/boxAgainstJava/enum/simpleJavaEnumWithStaticImport.kt | JakeWharton | 99,388,807 | true | null | // FILE: test/En.java
package test;
public enum En {
A;
}
// FILE: 1.kt
import test.En.A
fun box() =
if (A.toString() == "A") "OK"
else "fail"
| 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 160 | kotlin | Apache License 2.0 |
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangeListData.kt | androidports | 115,100,208 | true | {"Java": 168074327, "Python": 25851822, "Kotlin": 6237300, "Groovy": 3448233, "HTML": 1962706, "C": 214338, "C++": 180382, "CSS": 172743, "JavaScript": 148969, "Lex": 148787, "XSLT": 113040, "Jupyter Notebook": 93222, "Shell": 60321, "NSIS": 57796, "Batchfile": 51257, "Roff": 37534, "Objective-C": 27309, "TeX": 25473, ... | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.changes
import com.intellij.openapi.util.text.StringUtil
import com.intellij.util.text.DateFormatUtil
import com.intellij.util.xmlb.XmlSerializer... | 6 | Java | 4829 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 2,155 | intellij-community | Apache License 2.0 |
plugins/parcelize/parcelize-compiler/testData/box/customParcelable.kt | JetBrains | 3,432,266 | false | null | // IGNORE_BACKEND: JVM
// See KT-38105
// Throws IllegalAccessError, since the code tries to access the private companion field directly from the generated User$Creator class.
// WITH_RUNTIME
@file:JvmName("TestKt")
package test
import kotlinx.parcelize.*
import android.os.Parcel
import android.os.Parcelable
data cl... | 182 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,136 | kotlin | Apache License 2.0 |
spi/src/main/kotlin/com/atlassian/migration/datacenter/spi/fs/reporting/FileSystemMigrationReport.kt | moveworkforward | 321,496,207 | false | null | /*
* Copyright 2020 Atlassian
*
* 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... | 1 | null | 1 | 1 | 3f7ce88e618750c0c7f57bd5ce3c4fbb4563a467 | 1,213 | dc-migration-assistant | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/MessageArrowUp.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,896 | icons | MIT License |
app/src/main/java/ch/abwesend/privatecontacts/infrastructure/repository/ToastRepository.kt | fgubler | 462,182,037 | false | {"Kotlin": 1159351, "Java": 369326} | /*
* Private Contacts
* Copyright (c) 2022.
* Florian Gubler
*/
package ch.abwesend.privatecontacts.infrastructure.repository
import android.content.Context
import android.os.Looper
import android.widget.Toast
import ch.abwesend.privatecontacts.domain.lib.logging.logger
import ch.abwesend.privatecontacts.domain.u... | 1 | Kotlin | 1 | 9 | 52f679a7803883e6c2530e0fb642049631201656 | 1,630 | PrivateContacts | Apache License 2.0 |
inspektifySample/composeApp/src/commonMain/kotlin/sp/bvantur/inspektify/sample/domain/model/User.kt | BVantur | 844,048,160 | false | {"Kotlin": 169455, "Swift": 1303} | package sp.bvantur.inspektify.sample.domain.model
data class User(val firstName: String?, val lastName: String? = null, val email: String? = null)
| 2 | Kotlin | 4 | 88 | f824a3fe4eb81d35400dab76ce39e14dca84edf0 | 148 | inspektify | MIT License |
lib/src/main/java/at/naske/microdo/lib/parking/ParkingItemReturnListener.kt | lukasnaske | 234,505,192 | false | null | package at.naske.microdo.lib.parking
import android.view.View
import at.naske.microdo.lib.ItemDropFailedHandler
import at.naske.microdo.lib.MicroDoDragEvent
/**
* If a view was not dropped on any other view it is readded to the ParkingLayout if it originated from
* there. This readdition is handled by the ParkingIt... | 0 | Kotlin | 0 | 1 | 2800b3870220e34c6f50cbc094b0a7fc9c88eeea | 592 | microdo | MIT License |
app/src/main/java/com/rootstrap/android/network/services/AuthenticationInterceptor.kt | rootstrap | 184,807,903 | false | null | package com.rootstrap.android.network.services
import com.rootstrap.android.util.Prefs
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
import javax.inject.Inject
class AuthenticationInterceptor @Inject constructor(private val prefs: Prefs) : Interceptor {
@Throws(IOException::class)... | 13 | Kotlin | 5 | 35 | 8b06b7f8c8a646cb029103781cf6e24e765b3746 | 880 | android-base | MIT License |
app/src/main/java/com/yvkalume/gifapp/ui/screen/favorite/FavoriteScreen.kt | yveskalume | 604,632,872 | false | null | package com.yvkalume.gifapp.ui.screen.favorite
import androidx.compose.foundation.layout.Box
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
import com.airbnb.mvrx.Async
import com.airbnb... | 0 | Kotlin | 0 | 11 | 5fe6fe4b023d09277e3721b76e62193a97e7f8fb | 1,894 | gif-app | Apache License 2.0 |
app/src/main/java/com/zhongya/havefun/viewmodel/project/ProjectChildViewModel.kt | zhongya666 | 392,348,712 | false | null | package com.zhongya.havefun.viewmodel.project
import androidx.lifecycle.viewModelScope
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.zhongya.havefun.app.net.repo.PersonalRepo
import com.zhongya666.library.base.viewmodel.BaseViewModel
import com.zhongya666.project.bean.ProjectContent
impo... | 1 | Kotlin | 1 | 9 | a3cbba971479fe840b51870b42244af646deda62 | 1,234 | WanApk | Apache License 2.0 |
helm-publish-plugin/src/main/kotlin/com/citi/gradle/plugins/helm/publishing/HelmPublishPlugin.kt | 2lambda123 | 748,592,455 | false | {"Kotlin": 549953, "Batchfile": 87, "Shell": 80} | package com.citi.gradle.plugins.helm.publishing
import org.gradle.api.NamedDomainObjectContainer
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.internal.HasConvention
import org.gradle.api.plugins.ExtensionAware
import org.gradle.api.tasks.TaskDependency
import org.gradle.internal.ref... | 0 | Kotlin | 0 | 0 | 4335722bca8a61d605ee79e548758e2e2ebdba35 | 3,670 | Citi-gradle-helm-plugin | MIT License |
thelema-teavm/src/test/kotlin/org/ksdfv/thelema/teavm/test/MainTeaVMSingleTest.kt | cybernetics | 365,452,918 | true | {"Kotlin": 3356187, "C": 552354, "Java": 355550, "HTML": 6211, "Makefile": 260} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | c274a903f0a4d17e5ef14773efa144ee8c8809dd | 988 | thelema-engine | Apache License 2.0 |
ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt | ubiratansoares | 168,267,740 | false | null | package com.github.shyiko.ktlint.core
import org.assertj.core.api.Assertions.assertThat
import org.jetbrains.kotlin.com.intellij.lang.ASTNode
import org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.LeafPsiElement
import org.jetbrains.kotlin.com.intellij.psi.util.PsiTreeUtil
import org.jetbrains.kotlin.psi.KtImpo... | 0 | null | 0 | 2 | bc92b177e1630dbe53bdff871545ba03dd9a3f9a | 2,470 | ktlint | MIT License |
app/src/main/java/ch/lock/mobile/android/deviceinfo/di/FragmentModule.kt | lock-user | 578,061,187 | false | null | package ch.lock.mobile.android.deviceinfo.di
import ch.lock.mobile.android.deviceinfo.ui.screen.main.deviceinfo.DeviceInfoFragment
import ch.lock.mobile.android.deviceinfo.ui.screen.main.siminfo.SimInfoFragment
import org.koin.androidx.fragment.dsl.fragment
import org.koin.core.module.Module
import org.koin.dsl.module... | 0 | Kotlin | 0 | 0 | c50fe9075a0006fdca5b169b5bbd7dadfabeae01 | 512 | device-info | MIT License |
core/src/main/kotlin/com/kroegerama/kaiteki/Progress.kt | kroegerama | 133,562,779 | false | {"Kotlin": 263903} | package com.kroegerama.kaiteki
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.... | 1 | Kotlin | 3 | 8 | 2c0e2394779571c91864a097fc199e587baaeee8 | 5,497 | android-kaiteki | Apache License 2.0 |
scalableimageview/src/main/java/com/jiedian/scalableimageview/ScalableImageView.kt | hikobe8 | 124,027,713 | false | {"Java": 356285, "Kotlin": 111425, "GLSL": 7873, "Groovy": 2252, "Shell": 1666} | package com.jiedian.scalableimageview
import android.animation.ObjectAnimator
import android.content.Context
import android.graphics.BitmapFactory
import android.graphics.Canvas
import android.util.AttributeSet
import android.view.GestureDetector
import android.view.MotionEvent
import android.view.ScaleGestureDetector... | 1 | Java | 1 | 1 | 06e5c36bc6c2b9684009f537f73ef792ec8b1e0b | 5,998 | AndroidReview | Apache License 2.0 |
src/main/kotlin/io/github/leandroborgesferreira/dagcommand/domain/Config.kt | leandroBorgesFerreira | 268,720,218 | false | {"Kotlin": 41837} | package io.github.leandroborgesferreira.dagcommand.domain
import io.github.leandroborgesferreira.dagcommand.enums.OutputType
data class Config(
val defaultBranch: String,
val outputType: OutputType,
val outputPath: String?,
val printModulesInfo: Boolean,
val filterModules: Set<String>,
)
| 6 | Kotlin | 11 | 39 | 7698989bf0b94875308e311fd7216dcb707cb968 | 311 | dag-command | Apache License 2.0 |
AreaTriangulo.kt | 10419 | 357,930,900 | false | {"Java": 10042, "Python": 397, "Go": 368, "Scala": 368, "C": 360, "Dart": 336, "Kotlin": 232, "Ruby": 161} | fun main(args: Array<String>){
print("ejercicio 01:Area Triangulo")
// ingreso de variables
print("ingrese base:")
val b=Int
print("ingrese altura:")
val h=Int
area=b*h/2
println("el area del triangulo es: $area")
} | 1 | null | 1 | 1 | 1fe2d5a38625fab11f9c5cc71045d536527404c4 | 232 | FP-LuisM-2021-G2 | Apache License 2.0 |
client/android/rubyPark/app/src/main/java/io/rubypark/app/IndexActivity.kt | yoshikizh | 151,821,747 | false | null | package io.rubypark.app
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.view.ViewPager
import android.util.TypedValue
import android.view.Gravity
import android.widget.Button
import android.widget.FrameLayout
import android.widge... | 0 | Kotlin | 0 | 0 | 4007b0a0fe125295b91a017617c6ce993c931547 | 3,000 | rubyPark | MIT License |
Android/app/src/main/java/xyz/janficko/apphub/util/SnackbarHelper.kt | JanFicko | 174,291,580 | false | {"CSS": 266964, "Kotlin": 72364, "JavaScript": 50798, "TypeScript": 36319, "HTML": 28239, "Swift": 13023, "Ruby": 340} | package xyz.janficko.apphub.util
import android.annotation.SuppressLint
import android.view.View
import androidx.annotation.IntegerRes
import androidx.annotation.StringRes
import com.google.android.material.snackbar.Snackbar
@SuppressLint("ResourceType")
inline fun View.snack(@StringRes messageRes: Int, length: Int =... | 33 | CSS | 0 | 0 | 9218b848098b1d7e0e7f839f31ec738bc0454ca9 | 1,278 | app-hub | MIT License |
ivy-design/src/main/java/com/ivy/design/l2_components/ButtonWithIcon.kt | ILIYANGERMANOV | 442,188,120 | false | null | package com.ivy.design.l2_components
import androidx.annotation.DrawableRes
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.p... | 0 | Kotlin | 1 | 1 | eab596d90f3580dea527d404a0f453e5b9d2167e | 4,173 | ivy-design-android | MIT License |
src/test/kotlin/com/misterpemodder/aoc2022/ConfigurationTests.kt | MisterPeModder | 573,061,300 | false | null | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | af1b258325a7bd036a47b5395c90bbac42bbd337 | 1,461 | AdventOfCode2022 | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/medialive/CfnCloudWatchAlarmTemplateGroupDsl.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 5496940} | package com.faendir.awscdkkt.generated.services.medialive
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.String
import kotlin.Unit
import software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup
import software.amazon.awscdk.services.medialive.CfnCloudWatchAlar... | 2 | Kotlin | 0 | 4 | 33abdfcbe04c49902e5f9db82bd7790c62ae677c | 978 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/example/appstore/ui/search_filter/SearchFilterFragment.kt | rezakardan | 779,591,568 | false | {"Kotlin": 353707, "Java": 16027} | package com.example.appstore.ui.search_filter
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import androidx.navigation.fragm... | 0 | Kotlin | 0 | 0 | c64368f08faae5b50d158dadb79a8a1a3cd3e140 | 2,235 | AppStore__Git | MIT License |
modules/wasm-binary/src/commonMain/kotlin/validator/ValidatorException.kt | wasmium | 761,480,110 | false | {"Kotlin": 597834, "JavaScript": 203} | package org.wasmium.wasm.binary.validator
import org.wasmium.wasm.binary.WasmBinaryException
public class ValidatorException(public override val message: String) : WasmBinaryException()
| 0 | Kotlin | 0 | 3 | 9664a7c5c9bf1652ee4e8dab1bbceffebd0869ca | 188 | wasmium-wasm-binary | Apache License 2.0 |
ui/ui-text/src/test/java/androidx/ui/input/FinishComposingTextEditOpTest.kt | FYI-Google | 258,765,297 | false | null | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 11 | null | 1 | 6 | b9cd83371e928380610719dfbf97c87c58e80916 | 1,631 | platform_frameworks_support | Apache License 2.0 |
kafkistry-kafka-connector/src/main/kotlin/com/infobip/kafkistry/kafka/ops/ConfigOps.kt | infobip | 456,885,171 | false | null | package com.infobip.kafkistry.kafka.ops
import com.infobip.kafkistry.kafka.BrokerId
import com.infobip.kafkistry.kafka.TOPIC_CONFIG_PROPERTIES
import com.infobip.kafkistry.kafka.ThrottleRate
import com.infobip.kafkistry.model.TopicConfigMap
import com.infobip.kafkistry.model.TopicName
import com.infobip.kafkistry.serv... | 2 | null | 6 | 42 | bbd06186aff2fd73fc2b42f0b282cfbef271ed75 | 6,795 | kafkistry | Apache License 2.0 |
app/src/main/java/com/kirillemets/flashcards/ui/home/HomeFragment.kt | KirillEmets | 291,228,411 | false | null | package com.kirillemets.flashcards.ui.home
import android.os.Bundle
import android.util.Log
import android.view.*
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.kirillemets.flashcard... | 3 | Kotlin | 0 | 1 | fbdee70812ee4514ba94c8453500a30c7c7a38da | 1,479 | japaneseflashcards | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/incentivesapi/health/HealthPingCheck.kt | ministryofjustice | 445,553,088 | false | {"Kotlin": 616953, "Python": 4467, "Dockerfile": 1357} | package uk.gov.justice.digital.hmpps.incentivesapi.health
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Component
import org.springframework.web.reactive.function.client.WebClient
import uk.gov.justice.hmpps.kotlin.health.ReactiveHealthPingCheck
@Component("hmppsA... | 3 | Kotlin | 1 | 2 | e5c28a76c609de01706c6bc692c4a599e10461bd | 741 | hmpps-incentives-api | MIT License |
OffchainPaymentSample/src/main/java/com/example/payment/PreferencesUtil.kt | kiddingDream | 166,622,891 | false | null | package com.example.payment
import android.content.Context
import android.content.SharedPreferences
object PreferencesUtil {
private val name = "APP_Config"
private val prefs: SharedPreferences by lazy { OffChainPaymentActivity.instance.applicationContext.getSharedPreferences(name, Context.MODE_PRIVATE) }
... | 0 | Kotlin | 0 | 0 | 3c8f2c678acf954ea5b98a1bf13ee1462c572f58 | 2,093 | firstCelerSDKDapp | MIT License |
tmp/arrays/youTrackTests/367.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-12734
class A {
fun make(param: I) {
param.t()
}
}
fun main(args: Array<String>) {
val k: A? = A()
val a = ""
k?.let {
k.make(object: I {
override fun t() {
println(a) // breakpoint
}
})
}
}
interface I {
f... | 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 329 | bbfgradle | Apache License 2.0 |
payments-core/src/main/java/com/stripe/android/view/i18n/TranslatorManager.kt | stripe | 6,926,049 | false | null | package com.stripe.android.view.i18n
import android.app.Application
import com.stripe.android.StripeError
import com.stripe.android.view.i18n.TranslatorManager.setErrorMessageTranslator
/**
* A class that provides a [ErrorMessageTranslator] for translating server-provided error
* messages, as defined in [Stripe API... | 64 | null | 522 | 935 | bec4fc5f45b5401a98a310f7ebe5d383693936ea | 1,565 | stripe-android | MIT License |
src/main/kotlin/ua/pp/lumivoid/redstonehelper/network/SendPacket.kt | Bumer-32 | 779,465,671 | false | {"Kotlin": 169782, "Java": 12032, "Groovy": 7051} | package ua.pp.lumivoid.redstonehelper.network
import net.minecraft.server.network.ServerPlayerEntity
import ua.pp.lumivoid.redstonehelper.Constants
object SendPacket {
private val logger = Constants.LOGGER
fun sendPacket(sendingClass: Record) {
logger.debug("Sending packet to server")
Consta... | 0 | Kotlin | 1 | 3 | 67b58d6da2397b85498d09c19bfa7e59b2f4671f | 578 | Redstone-Helper | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/services/CanonicalPnc.kt | ministryofjustice | 256,501,813 | false | null | package uk.gov.justice.digital.hmpps.prisonersearch.common.model
fun String.canonicalPNCNumber(): String = if (isPNCNumber()) combinePNC(splitPNC()) else this
fun String.canonicalPNCNumberShort(): String? =
when {
isPNCNumberShort() -> combinePNC(splitPNC())
isPNCNumberLong() -> with(splitPNC()) { combinePN... | 1 | null | 3 | 5 | d00ec5d967d436f275ec87db28d350b584763e3a | 1,389 | prisoner-offender-search | MIT License |
app/src/main/kotlin/com/cesarvaliente/kunidirectional/ItemsApplication.kt | CesarValiente | 88,026,476 | false | null | /**
* Copyright (C) 2017 Cesar Valiente & Corey Shaw
*
* https://github.com/CesarValiente
* https://github.com/coshaw
*
* 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:/... | 2 | null | 30 | 313 | 81706091f1700165a63eba310a12cedc136ded1f | 1,424 | KUnidirectional | Apache License 2.0 |
android/src/main/kotlin/com/mesosfer/flimer/FlimerPlugin.kt | alann-maulana | 391,268,108 | false | {"C++": 21296, "CMake": 15223, "Dart": 10012, "Ruby": 4456, "Swift": 2249, "HTML": 1537, "C": 1404, "Kotlin": 1368, "Objective-C": 659} | package com.mesosfer.flimer
import androidx.annotation.NonNull
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel... | 1 | C++ | 0 | 2 | a354ef2d39bb8d4ecfca2babda4d04b7d58dd84b | 1,236 | flimer | MIT License |
permission-api/src/main/kotlin/com/github/b1412/security/custom/CustomUserDetailsAuthenticationProvider.kt | b1412 | 206,295,390 | false | null | package com.github.b1412.security.custom
import org.springframework.security.authentication.BadCredentialsException
import org.springframework.security.authentication.InternalAuthenticationServiceException
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import org.springframework... | 1 | null | 1 | 1 | ee02bf12022ad23b334cb90b3f314be048c3d8eb | 3,154 | permission-api | Apache License 2.0 |
src/commonMain/kotlin/kotools/types/result/Operations.kt | kotools | 581,475,148 | false | null | package kotools.types.result
import kotools.types.ExperimentalSinceKotoolsTypes
import kotools.types.experimental.ExperimentalResultApi
/**
* Transforms the encapsulated value from [T] to [R] if this result is a
* [success][Result.isSuccess], or returns the original exception if this result
* or the one returned b... | 27 | null | 2 | 4 | 5c889bf9d48d84b751905b4fed7833a0349a8685 | 626 | types | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Eyeslash.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 5,412 | VuesaxIcons | MIT License |
app/src/main/java/com/xquare/xquare_android/component/Header.kt | team-xquare | 478,925,648 | false | {"Kotlin": 447887} | package com.xquare.xquare_android.component
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.f... | 20 | Kotlin | 1 | 25 | f9bc5d0bc3ed2957705dc6db53d0139f62827649 | 3,241 | xquare-android | MIT License |
tools/gradle-plugins/extensions/markdown/src/main/kotlin/com/varabyte/kobwebx/gradle/markdown/tasks/MarkdownTask.kt | varabyte | 389,223,226 | false | {"Kotlin": 1677550} | package com.varabyte.kobwebx.gradle.markdown.tasks
import com.varabyte.kobweb.common.lang.packageConcat
import com.varabyte.kobweb.common.lang.toPackageName
import com.varabyte.kobweb.gradle.core.tasks.KobwebTask
import com.varabyte.kobweb.gradle.core.util.prefixQualifiedPackage
import com.varabyte.kobwebx.gradle.mark... | 100 | Kotlin | 65 | 1,440 | 8f0afe18fa10c5868b2f9f9fab89efbe569d6743 | 2,552 | kobweb | Apache License 2.0 |
library/src/main/java/com/chuckerteam/chucker/internal/ui/error/ErrorAdapter.kt | foursquare | 219,050,867 | false | null | package com.chatbooks.chatter.internal.ui.error
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.chatbooks.chatter.R
import com.chatbooks.chatter.internal.data.entity.RecordedThrowableTup... | 0 | null | 1 | 1 | 2e34e4f871fea7b59b5d970548fd7d8d147f79c4 | 2,449 | chucker | Apache License 2.0 |
app/src/main/java/ch/admin/foitt/pilotwallet/app/presentation/NavigationHost.kt | e-id-admin | 775,912,525 | false | {"Kotlin": 1521284} | package ch.admin.foitt.pilotwallet.app.presentation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import ch.admin.foitt.pilotwallet.feature.changeLogin.presentation.ConfirmNewPinScreen
import ch.admin.foitt.pilotwallet.feature.changeLogin.presentation.ConfirmNewPinViewModel
im... | 1 | Kotlin | 1 | 4 | 6572b418ec5abc5d94b18510ffa87a1e433a5c82 | 20,798 | eidch-pilot-android-wallet | MIT License |
src/jvmTest/kotlin/eu/vendeli/rethis/tests/commands/generic/TypeCommandTest.kt | vendelieu | 861,014,428 | false | {"Kotlin": 213441, "Shell": 1248} | package eu.vendeli.rethis.tests.commands.generic
import eu.vendeli.rethis.commands.set
import eu.vendeli.rethis.commands.type
import eu.vendeli.rethis.ReThisTestCtx
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe
class TypeCommandTest : ReThisTestCtx() {
@Test
suspend fun `t... | 5 | Kotlin | 0 | 7 | 8ae609b5430e9ca9255c5a1cba2bdfc70e316020 | 591 | re.this | Apache License 2.0 |
scripts/src/main/java/io/github/fate_grand_automata/scripts/modules/Refill.kt | Fate-Grand-Automata | 245,391,245 | false | null | package com.mathewsachin.fategrandautomata.scripts.modules
import com.mathewsachin.fategrandautomata.scripts.IFgoAutomataApi
import com.mathewsachin.fategrandautomata.scripts.Images
import com.mathewsachin.fategrandautomata.scripts.ScriptNotify
import com.mathewsachin.fategrandautomata.scripts.entrypoints.AutoBattle
i... | 84 | Kotlin | 187 | 993 | eb630b8efcdb56782f796de2e17b36fdf9e19f3b | 1,705 | FGA | MIT License |
app/src/main/kotlin/io/github/importre/popular/DetailsActivity.kt | importre | 33,769,779 | false | null | package io.github.importre.popular
import android.graphics.Color
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.support.v7.widget.Toolbar
import android.text.format.DateUtils
import android.view.Gravity
import android.view.View
import android.widget.ImageView
import android.widg... | 1 | null | 4 | 26 | 68f4ea931f3b15df9be002798fe347930039f176 | 4,796 | popular | MIT License |
src/main/kotlin/dev/mbo/rs256/util/KeyPair.kt | mbogner | 498,129,280 | false | null | /*
* Copyright 2022 mbo.dev
*
* 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 writi... | 1 | Kotlin | 0 | 0 | 2fa4fd05e3cee4fafd091aad59b7e041158ed074 | 764 | rs256jwt-web | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.