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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compiler/testData/diagnostics/tests/delegatedProperty/typeMismatchForGetWithGeneric.kt | JakeWharton | 99,388,807 | false | null | // !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KProperty
class A
class B {
val b: Int by <!INAPPLICABLE_CANDIDATE!>Delegate<A>()<!>
}
val bTopLevel: Int by <!INAPPLICABLE_CANDIDATE!>Delegate<A>()<!>
class C {
val c: Int by Delegate<C>()
}
val cTopLevel: Int by Delegate<Nothing?>()
class Delegate<T>... | 184 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 396 | kotlin | Apache License 2.0 |
src/2021/Day12.kt | nagyjani | 572,361,168 | false | null | //package `2021`
//
//import java.io.File
//import java.util.*
//
//fun main() {
// Day12().solve()
//}
//
//class Day12 {
//
// val input0 = """
// start-A
// start-b
// A-c
// A-b
// b-d
// A-end
// b-end
// """.trimIndent()
//
// val input1 = """
//dc-end
... | 0 | Kotlin | 0 | 0 | 4fea7b4abfde1d2ac1f05a94eff484f8db99b594 | 5,665 | advent-of-code | Apache License 2.0 |
sample/src/main/java/contacts/sample/util/BundleExt.kt | vestrel00 | 223,332,584 | false | {"Kotlin": 1616347, "Shell": 635} | package contacts.sample.util
import android.os.Build
import android.os.Bundle
import java.io.Serializable
inline fun <reified T : Serializable> Bundle.getSerializableCompat(name: String): T? =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
getSerializable(name, T::class.java)
} else {
... | 26 | Kotlin | 35 | 573 | 383594d2708296f2fbc6ea1f10b117d3acd1f46a | 392 | contacts-android | Apache License 2.0 |
app/src/main/java/io/tanlnm/my/weather/domain/repository/WeatherRepository.kt | tanlnm512 | 765,975,271 | false | {"Kotlin": 43380} | package io.tanlnm.my.weather.domain.repository
import io.tanlnm.my.weather.data.model.Weather
import kotlinx.coroutines.flow.Flow
interface WeatherRepository {
fun searchWeatherByCity(query: String, units: String): Flow<Result<Weather>>
fun searchWeatherByCityId(id: String, units: String): Flow<Result<Weather... | 0 | Kotlin | 0 | 0 | 60361d57eefe3cc60d4f85e1b9f4939f40f4b93c | 324 | my_weather | Apache License 2.0 |
app/src/main/java/ml/dvnlabs/animize/ui/fragment/navigation/Updates.kt | rootdavinalfa | 177,693,326 | false | null | /*
* Copyright (c) 2020.
* Animize Devs
* Copyright 2019 - 2020
* <NAME> <<EMAIL>>
* This program used for watching anime without ads.
*
*/
package ml.dvnlabs.animize.ui.fragment.navigation
import android.os.Bundle
import android.view.*
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.a... | 1 | null | 1 | 2 | c12aa046a42712794dc3f7e06dbbcee654c1e79f | 2,524 | animize | Apache License 2.0 |
ivy-design/src/main/java/com/ivy/design/l3_ivyComponents/ScreenTitle.kt | ILIYANGERMANOV | 442,188,120 | false | null | package com.ivy.design.l3_ivyComponents
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.t... | 0 | Kotlin | 1 | 1 | eab596d90f3580dea527d404a0f453e5b9d2167e | 1,576 | ivy-design-android | MIT License |
shared-client/src/commonMain/kotlin/ml/dev/kotlin/minigames/shared/ui/component/set/SetCard.kt | avan1235 | 455,960,870 | false | null | package ml.dev.kotlin.minigames.shared.ui.component.set
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.background
import androidx.compos... | 0 | null | 3 | 57 | cc6696090b503b36e5289834ac83ae1ce57cb84e | 9,096 | mini-games | MIT License |
buildSrc/src/main/kotlin/AndroidX.kt | Czeach | 439,389,096 | false | {"Kotlin": 78963, "Swift": 345} | object AndroidX {
private const val appCompatVersion = "1.3.0-rc01"
const val appCompat = "androidx.appcompat:appcompat:$appCompatVersion"
private const val coreVersion = "1.6.0"
const val core = "androidx.core:core-ktx:$coreVersion"
} | 0 | Kotlin | 0 | 1 | 1375fb8b5c8e4a96212337d5bef22a7f6458be63 | 252 | Breaking-Bad | MIT License |
web/src/test/kotlin/no/nav/su/se/bakover/web/routes/søknadsbehandling/IverksettSøknadsbehandlingRouteTest.kt | navikt | 227,366,088 | false | {"Kotlin": 8954579, "Shell": 3838, "TSQL": 1233, "Dockerfile": 800} | package no.nav.su.se.bakover.web.routes.søknadsbehandling
import arrow.core.left
import arrow.core.right
import io.kotest.matchers.shouldBe
import io.kotest.matchers.string.shouldContain
import io.ktor.client.request.header
import io.ktor.client.request.patch
import io.ktor.client.statement.bodyAsText
import io.ktor.h... | 9 | Kotlin | 1 | 1 | d7157394e11b5b3c714a420a96211abb0a53ea45 | 6,587 | su-se-bakover | MIT License |
opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/keras/shape/TensorShape.kt | atlarge-research | 79,902,234 | false | {"Kotlin": 1488033, "Java": 655053, "JavaScript": 339348, "MDX": 28948, "CSS": 18038, "Dockerfile": 3592, "Shell": 280} | /*
* Copyright (c) 2021 AtLarge Research
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 34 | Kotlin | 46 | 68 | 5047e4a25a0814f96852882f02c4017e1d5f81e7 | 3,279 | opendc | MIT License |
src/test/kotlin/com/devstromo/behavioral/template/pattern/TemplateMethodPatternUnitTest.kt | devstromo | 726,667,072 | false | {"Kotlin": 50616} | package com.devstromo.behavioral.template.pattern
import org.junit.jupiter.api.Test
import org.mockito.Mockito.*
class TemplateMethodPatternUnitTest {
@Test
fun `Test CSVDataProcessor steps`() {
val csvProcessor = spy(CSVDataProcessor())
csvProcessor.process()
val inOrder = inOrder(c... | 0 | Kotlin | 0 | 0 | a3c4640e86cc92125c3e4370c995fda2b6e12f92 | 831 | design-patterns-kotlin | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/modules/nft/NftManager.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.modules.nft
import io.horizontalsystems.bankwallet.core.ICoinManager
import io.horizontalsystems.bankwallet.entities.Account
import io.horizontalsystems.bankwallet.entities.Address
import io.horizontalsystems.bankwallet.entities.CoinValue
import io.horizontalsystems.bankwallet.m... | 136 | Kotlin | 219 | 402 | 5ce20e6e4e0f75a76496051ba6f78312bc641a51 | 4,786 | unstoppable-wallet-android | MIT License |
ontrack-kdsl-acceptance/src/test/java/net/nemerosa/ontrack/kdsl/acceptance/tests/queue/QueueACCTestSupport.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.kdsl.acceptance.tests.queue
import net.nemerosa.ontrack.kdsl.acceptance.tests.support.waitUntil
import net.nemerosa.ontrack.kdsl.spec.Ontrack
import net.nemerosa.ontrack.kdsl.spec.extension.queue.QueueRecordState
import net.nemerosa.ontrack.kdsl.spec.extension.queue.queue
class QueueACCTe... | 44 | null | 27 | 96 | fde26a48ea7b18689851fe579635f4ed72ad2c5a | 856 | ontrack | MIT License |
meistercharts-canvas/src/commonMain/kotlin/com/meistercharts/algorithms/painter/stripe/refentry/AbstractReferenceEntryStripePainter.kt | Neckar-IT | 599,079,962 | false | null | /**
* Copyright 2023 Neckar IT GmbH, Mössingen, Germany
*
* 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 appli... | 3 | null | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 2,463 | meistercharts | Apache License 2.0 |
app/src/main/java/com/car_inspection/library/MiscUtils.kt | ProjectFreelancerMobile | 143,440,982 | false | {"Java": 685952, "Kotlin": 291627, "IDL": 11675} | package com.car_inspection.library
import android.content.Context
import android.content.res.Configuration
/**
* Created by wanglei on 05/01/2018.
*/
object MiscUtils {
fun isOrientationLandscape(context: Context): Boolean {
val isOrientationLandscape: Boolean
val orientation = context.resource... | 1 | null | 1 | 1 | aa2d2a67a684ebbc021b42d27fa2ed7ac7dafd12 | 596 | Car_Inspection | MIT License |
app/src/main/kotlin/com/rahulografy/axmecomm/ui/main/home/productfilter/ProductFilterFragmentViewModel.kt | RahulSDeshpande | 293,636,598 | false | null | package com.rahulografy.axmecomm.ui.main.home.productfilter
import androidx.databinding.ObservableField
import com.rahulografy.axmecomm.ui.base.view.BaseViewModel
import com.rahulografy.axmecomm.ui.main.home.productfilter.manager.ProductFilterManager
import com.rahulografy.axmecomm.ui.main.home.productfilter.model.Pro... | 0 | Kotlin | 0 | 2 | bc7c1bb7aabae352bbe567a415b4b6bec1642a28 | 2,086 | dctk-axm-ecomm-android | MIT License |
app/src/main/java/io/customer/remotehabits/ui/component/Card.kt | customerio | 355,687,244 | false | null | package io.customer.remotehabits.ui.component
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Card
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import io.cus... | 3 | Kotlin | 0 | 1 | 5b0468b6a3379f329c078540c7a5e18a23488e2a | 721 | RemoteHabits-Android | MIT License |
src/main/kotlin/ch02/2.4.3_1_IteratingOverMaps.kt | Kotlin | 531,157,893 | false | {"Kotlin": 49621, "Java": 876} | package ch02.ex4_3_1_IteratingOverMaps
import java.util.TreeMap
fun main() {
val binaryReps = TreeMap<Char, String>()
for (c in 'A'..'F') {
val binary = c.code.toString(radix = 2)
binaryReps[c] = binary
}
for ((letter, binary) in binaryReps) {
println("$letter = $binary")
... | 0 | Kotlin | 4 | 30 | ed05aed5460e379145a7bd531ac15c7fa2f53f33 | 324 | kotlin-in-action-2e | MIT License |
src/main/kotlin/com/amazon/ion/plugin/intellij/helpers/ContentCorrectnessHelper.kt | amazon-ion | 60,200,377 | false | null | package com.amazon.ion.plugin.intellij.helpers
import org.apache.commons.codec.binary.Base64
object ContentCorrectnessHelper {
/**
* Validates that a sequence of character is valid Base64. This is in order
* to validate Ion Blobs.
*
* Should not return an exception, only true or false if the ... | 13 | null | 22 | 29 | 3dab4e1787dee0e4ddb9c5336c781ec1652cd412 | 604 | ion-intellij-plugin | Apache License 2.0 |
src/main/kotlin/kotlinmud/attributes/mapper/AttributeMapper.kt | brandonlamb | 275,313,206 | true | {"Kotlin": 435931, "Dockerfile": 133, "Shell": 126} | package kotlinmud.attributes.mapper
import kotlinmud.attributes.model.Attributes
import kotlinmud.fs.helper.end
fun mapAttributeList(attributes: List<Attributes>): String {
return attributes.joinToString { mapAttributes(it) } + end()
}
fun mapAttributes(attributes: Attributes): String {
return """${attribute... | 0 | null | 0 | 0 | fc03c6230b9b3b66cd63994e74ddd7897732d527 | 617 | kotlinmud | MIT License |
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/platform/WindowManager.kt | komamj | 332,680,050 | true | {"Java Properties": 43, "Shell": 59, "Markdown": 61, "Java": 5103, "HTML": 17, "Kotlin": 4410, "Python": 32, "Proguard": 41, "Batchfile": 13, "JavaScript": 1, "CSS": 1, "TypeScript": 6, "Gradle Kotlin DSL": 2, "INI": 1, "CMake": 2, "C++": 4} | /*
* 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... | 0 | null | 0 | 0 | f42c5f033a9e71bbaf580392cebaa6b274f2aca0 | 2,305 | androidx | Apache License 2.0 |
okhttp/src/jvmTest/java/okhttp3/HeadersKotlinTest.kt | yschimke | 42,286,486 | 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... | 2 | null | 9159 | 6 | ef459b1d8b0530c915386c527e8a141c88cd5c15 | 1,988 | okhttp | Apache License 2.0 |
verik-compiler/src/main/kotlin/io/verik/compiler/core/declaration/vk/CoreVkUnpacked.kt | frwang96 | 269,980,078 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
package io.verik.compiler.core.declaration.vk
import io.verik.compiler.ast.element.expression.common.ECallExpression
import io.verik.compiler.ast.element.expression.common.EExpression
import io.verik.compiler.ast.element.expression.common.EReferenceExpression
import io.ve... | 0 | Kotlin | 1 | 33 | ee22969235460fd144294bcbcbab0338c638eb92 | 2,744 | verik | Apache License 2.0 |
ComposeViews/src/commonMain/kotlin/com/lt/compose_views/chain_scrollable_component/ChainScrollableComponentState.kt | ltttttttttttt | 370,338,027 | false | null | /*
* Copyright lt 2023
*
* 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 wri... | 5 | Kotlin | 34 | 93 | fe826432521dfdd3a06e814ef118e9bdc9608f91 | 2,677 | ComposeViews | Apache License 2.0 |
ktorfit-ksp/src/main/kotlin/de/jensklingenberg/ktorfit/utils/KSFunctionDeclarationExt.kt | Foso | 203,655,484 | false | null | package de.jensklingenberg.ktorfit.utils
import com.google.devtools.ksp.KspExperimental
import com.google.devtools.ksp.getAnnotationsByType
import com.google.devtools.ksp.symbol.KSAnnotation
import com.google.devtools.ksp.symbol.KSFunctionDeclaration
import com.google.devtools.ksp.symbol.Modifier
import de.jensklingen... | 32 | null | 39 | 1,522 | 3da92274c6f168a2521ac2427388da760f231a45 | 2,862 | Ktorfit | Apache License 2.0 |
start/src/main/java/com/example/healthconnect/codelab/presentation/navigation/Drawer.kt | android | 626,810,909 | false | null | /*
* Copyright 2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 9 | null | 92 | 8 | 5b74df42ad64fec9b34baf93044d8a82dda83440 | 4,921 | android-health-connect-codelab | Apache License 2.0 |
kdoc-core/src/main/kotlin/kdoc/core/database/schema/admin/actor/ActorTable.kt | perracodex | 819,398,266 | false | {"Kotlin": 486868, "Dockerfile": 3109, "CSS": 2680, "HTML": 487} | /*
* Copyright (c) 2024-Present Perracodex. Use of this source code is governed by an MIT license.
*/
package kdoc.core.database.schema.admin.actor
import kdoc.core.database.columns.autoGenerate
import kdoc.core.database.columns.kotlinUuid
import kdoc.core.database.columns.references
import kdoc.core.database.schem... | 0 | Kotlin | 0 | 0 | 66887c97ec65f4ce3dbd392a99fa327cdda7ffb5 | 2,259 | kdoc | MIT License |
app/src/main/kotlin/common/network/network.kt | meoyawn | 42,546,144 | false | {"Kotlin": 43443} | package common.network
import java.net.URLEncoder
fun urlEncode(s: String): String =
URLEncoder.encode(s, "utf-8") | 0 | Kotlin | 0 | 4 | 7f5e60440dd2ef318978d210a8205e568ab1f284 | 120 | headphone-reminder | MIT License |
src/main/kotlin/world/cepi/crates/rewards/RangeReward.kt | Project-Cepi | 333,213,821 | false | null | package world.cepi.crates.rewards
import net.kyori.adventure.text.Component
import net.minestom.server.coordinate.Point
import net.minestom.server.entity.Player
import net.minestom.server.instance.Instance
import world.cepi.crates.model.LootCrate
import net.minestom.server.utils.math.IntRange
fun dispatchRange(
r... | 3 | Kotlin | 0 | 3 | ee4df4ad6155707e756d458654a17efc3702eb0f | 756 | LootboxExtension | MIT License |
dataset/src/main/kotlin/org/jetbrains/kotlinx/dl/dataset/preprocessor/TensorPreprocessing.kt | nedimAT | 403,983,430 | true | {"Kotlin": 1225101, "Jupyter Notebook": 43951} | /*
* Copyright 2020 JetBrains s.r.o. and Kotlin Deep Learning project contributors. All Rights Reserved.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.kotlinx.dl.dataset.preprocessor
/**
* The whole tensor preprocessing pipeline... | 0 | null | 0 | 0 | 8bd3711471bee32a652ead7e33dbac1d914b2712 | 1,030 | KotlinDL | Apache License 2.0 |
app/src/main/java/com/example/gpt/ui/composable/screen/AudioMessageScreen.kt | palexis3 | 620,162,996 | false | null | package com.example.gpt.ui.composable.screen
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import com.example.gpt.manager.AudioManager
import android.widget.Toast
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contrac... | 1 | Kotlin | 1 | 0 | da0257306cfdab8365b9e299d7c05706e838fa7b | 11,037 | GPT | Apache License 2.0 |
src/main/kotlin/org/bibletranslationtools/vtt/Subtitle.kt | Bible-Translation-Tools | 791,910,914 | false | {"Kotlin": 69403} | package org.bibletranslationtools.vtt
interface Subtitle {
/**
* Returns the index of the first event that occurs after a given time (exclusive).
*
* @param timeUs The time in microseconds.
* @return The index of the next event, or [C.INDEX_UNSET] if there are no events after the
* specifi... | 0 | Kotlin | 0 | 0 | fc40015a5657f2fd22b45fadab9f29d103cb1263 | 1,100 | kotlin-vtt | Apache License 2.0 |
RecyclerViewDemo/app/src/main/java/com/derrick/park/recyclerviewdemo/SWAdapter.kt | nk18chi | 226,992,098 | true | {"Kotlin": 439531} | package com.example.recycleviewdemo
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.layout_sw_list_item.view.*
interface OnSWClickListener {
fun onClick(v... | 0 | Kotlin | 3 | 1 | 47a0ad057d1357ebe971e3bf0b3abddb8cd1abc4 | 1,602 | android-kotlin-fundamentals-starter-apps | The Unlicense |
src/test/kotlin/no/nav/familie/ef/sak/mapper/SøknadsskjemaMapperTest.kt | navikt | 206,805,010 | false | {"Kotlin": 3880816, "Gherkin": 163948, "Dockerfile": 180} | package no.nav.familie.ef.sak.mapper
import no.nav.familie.ef.sak.opplysninger.søknad.mapper.SøknadsskjemaMapper
import no.nav.familie.kontrakter.ef.søknad.Adresse
import no.nav.familie.kontrakter.ef.søknad.Stønadsstart
import no.nav.familie.kontrakter.ef.søknad.Søknadsfelt
import no.nav.familie.kontrakter.ef.søknad.T... | 3 | Kotlin | 2 | 0 | 6334fed4ea795a48703b562f55ef3f207b60effc | 6,674 | familie-ef-sak | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/model/AppointmentDetails.kt | ministryofjustice | 533,838,017 | false | {"Kotlin": 3867444, "Shell": 9529, "Dockerfile": 1514} | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.model
import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.v3.oas.annotations.media.Schema
import uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.entity.AppointmentType
import java.time.LocalDate
import java.time.LocalDateTime
... | 6 | Kotlin | 0 | 1 | e3da2736ad7186e0efd907276a0a98bc41383370 | 6,896 | hmpps-activities-management-api | MIT License |
plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInTag/fqNameInTag.kt | gigliovale | 89,726,097 | false | {"Java": 23302590, "Kotlin": 21941511, "JavaScript": 137521, "Protocol Buffer": 56992, "HTML": 49980, "Lex": 18051, "Groovy": 14093, "ANTLR": 9797, "IDL": 7706, "Shell": 5152, "CSS": 4679, "Batchfile": 3721} | package com.myapp
import android.app.Activity
import kotlinx.android.synthetic.layout.*
class MyActivity: Activity() {
val button = this.MyBu<caret>
}
// EXIST: MyButton
| 0 | Java | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 177 | kotlin | Apache License 2.0 |
app/src/main/java/com/just/machine/di/AppModule.kt | Primary-hacker1 | 307,921,656 | false | null | package com.just.machine.di
import com.just.machine.helper.Net
import com.just.machine.api.BaseApiService
import com.just.machine.helper.UriConfig
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Sing... | 1 | null | 19 | 74 | 22abe4998fa6af959565e00d0826e683f32ff12f | 674 | MVVMJetpack | Apache License 2.0 |
apps/bekreftelse-api/src/main/kotlin/no/nav/paw/bekreftelse/api/Dependencies.kt | navikt | 794,874,233 | false | {"Kotlin": 721361, "Dockerfile": 143} | package no.nav.paw.bekreftelse.api
import io.confluent.kafka.streams.serdes.avro.SpecificAvroSerde
import io.ktor.client.HttpClient
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.serialization.jackson.jackson
import io.micrometer.prometheusmetrics.PrometheusConfig
import io.micromet... | 0 | Kotlin | 0 | 1 | b1c3dfd591983dd071d94b6dbdc04120ba7c6688 | 4,961 | paw-arbeidssoekerregisteret-monorepo-intern | MIT License |
snowplow-tracker/src/main/java/com/snowplowanalytics/core/tracker/Logger.kt | snowplow | 20,056,757 | false | null | /*
* Copyright (c) 2015-2023 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... | 16 | null | 62 | 102 | 0605fd08181d2017e544e5c1daa862b910ef439c | 5,154 | snowplow-android-tracker | Apache License 2.0 |
snowplow-tracker/src/main/java/com/snowplowanalytics/core/tracker/Logger.kt | snowplow | 20,056,757 | false | null | /*
* Copyright (c) 2015-2023 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... | 16 | null | 62 | 102 | 0605fd08181d2017e544e5c1daa862b910ef439c | 5,154 | snowplow-android-tracker | Apache License 2.0 |
auth-foundation/src/test/java/com/okta/authfoundation/client/NetworkUtilsTest.kt | okta | 445,628,677 | false | null | /*
* Copyright 2022-Present Okta, 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 agr... | 8 | null | 11 | 33 | 72776583e6e4066d576f36b4d73ed83216e61584 | 41,484 | okta-mobile-kotlin | Apache License 2.0 |
src/main/kotlin/net/stckoverflw/pluginjam/command/PositionTpCommand.kt | KtFTW | 471,456,546 | false | {"Kotlin": 111636} | package net.stckoverflw.pluginjam.command
import com.mojang.brigadier.arguments.StringArgumentType
import net.axay.kspigot.commands.argument
import net.axay.kspigot.commands.command
import net.axay.kspigot.commands.requiresPermission
import net.axay.kspigot.commands.runs
import net.stckoverflw.pluginjam.config.impl.Po... | 0 | Kotlin | 0 | 3 | 9f1d3b0e55bb3049cf715339cf2211da1d9bbc6f | 805 | PluginJam-1 | MIT License |
src/test/kotlin/no/nav/familie/baks/mottak/hendelser/JournalføringHendelseServiceTest.kt | navikt | 221,166,975 | false | null | package no.nav.familie.ba.mottak.hendelser
import io.mockk.*
import io.mockk.impl.annotations.InjectMockKs
import io.mockk.impl.annotations.MockK
import no.nav.familie.ba.mottak.config.FeatureToggleService
import no.nav.familie.ba.mottak.domene.HendelseConsumer
import no.nav.familie.ba.mottak.domene.Hendelseslogg
impo... | 5 | null | 0 | 2 | f9dd1c17b33e70c8a8ee8d8edcbce1e6c1f6fee8 | 15,213 | familie-baks-mottak | MIT License |
app/src/main/java/co/com/lafemmeapp/lafemmeapp/presentation/utils/RateAppointmentDialogFragment.kt | Informatica-Empresarial | 106,600,201 | false | null | package co.com.lafemmeapp.lafemmeapp.presentation.utils
import android.app.Activity
import android.content.Context
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andr... | 1 | null | 1 | 1 | 486ab3eab99e9a06e70e32d1cbe34a9fa5a7fd81 | 7,546 | AppAndroid | Apache License 2.0 |
src/main/kotlin/Utility/Functions.kt | JyotimoyKashyap | 434,660,784 | false | {"Kotlin": 12467, "Assembly": 190} | package Utility
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.graphics.asImageBitmap
import org.jetbrains.skija.Image
import java.io.ByteArrayOutputStream
import java.net.HttpURLConnection
import java.net.URL
import javax.imageio.ImageIO
fun loadNetworkImage(link: String): ImageBitmap {
... | 0 | Kotlin | 0 | 4 | 1d6278aa60fe930eff06b3d53e34c44fac07f837 | 720 | WeatherComposeDesktopApp | Apache License 2.0 |
src/test/kotlin/com/expedia/graphql/generator/SchemaGeneratorTest.kt | d4rken | 247,506,424 | false | null | package com.expedia.graphql.schema.generator
import com.expedia.graphql.TopLevelObjectDef
import com.expedia.graphql.annotations.GraphQLDescription
import com.expedia.graphql.annotations.GraphQLIgnore
import com.expedia.graphql.schema.exceptions.ConflictingTypesException
import com.expedia.graphql.schema.exceptions.In... | 68 | null | 345 | 2 | 270c0b147753fc5c624de3601e3c064fc8d23946 | 14,026 | graphql-kotlin | Apache License 2.0 |
buildSrc/src/main/kotlin/Maven.kt | adrielcafe | 250,125,515 | false | null | @file:Suppress("Unused", "MayBeConstant", "MemberVisibilityCanBePrivate")
object Maven {
const val GROUP_ID = "com.github.adrielcafe.kaptain"
} | 0 | null | 3 | 27 | f03d8527d624f5c54add941c1247583317bb3b2e | 149 | kaptain | MIT License |
app/src/main/java/com/example/boggle/ui/main/Fragment2.kt | mar19a | 781,254,153 | false | {"Kotlin": 9482} | package com.example.boggle.ui.main
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import android.widget.Toast... | 0 | Kotlin | 0 | 0 | 7c32e48aa20c1f018a37664a1b5d26f9ea3bf652 | 3,290 | Boggle | MIT License |
core/src/main/java/com/paulrybitskyi/gamedge/core/factories/ImageViewerGameUrlFactory.kt | mars885 | 289,036,871 | false | null | /*
* Copyright 2021 <NAME>, <EMAIL>
*
* 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... | 4 | null | 63 | 659 | 69b3ada08cb877af9b775c6a4f3d9eb1c3470d9c | 1,865 | gamedge | Apache License 2.0 |
app/src/main/java/com/ainsigne/masterdetailitunes/data/ItunesItem.kt | cominteract | 293,227,775 | false | {"HTML": 730239, "Kotlin": 79776, "CSS": 4374} | package com.ainsigne.masterdetailitunes.data
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* ItunesItem class for representing the itunes track properties
*/
@Entity(tableName = "itunes_items")
data class ItunesItem (
/**
* t... | 0 | HTML | 0 | 0 | 769838d37aa21685a8a0352d778ce43755ad1646 | 2,857 | iTunesSearchCodingChallenge | MIT License |
src/test/kotlin/org/amshove/kluent/tests/backtickassertions/ShouldNotThrowTheExceptionTests.kt | mrobakowski | 113,612,831 | true | {"Kotlin": 380083} | package org.amshove.kluent.tests.backtickassertions
import org.amshove.kluent.AnyException
import org.amshove.kluent.`should not throw the Exception`
import org.amshove.kluent.`with cause`
import org.amshove.kluent.`with message`
import org.jetbrains.spek.api.Spek
import java.io.IOException
import kotlin.test.assertFa... | 0 | Kotlin | 0 | 0 | e3ad0d9d9bfe923d5f93314cc1b8fd5aac14833d | 2,257 | Kluent | MIT License |
app/src/main/java/matteocrippa/it/raincoat/FlurryProvider.kt | matteocrippa | 115,443,025 | false | null | package matteocrippa.it.raincoat
import android.content.Context
import android.util.Log
/**
* Created by matteocrippa on 27/12/2017.
*/
class FlurryProvider(private val context: Context, private val apiKey: String) : ProviderType {
override var className = Class.forName("com.flurry.android.FlurryAgent")
ov... | 1 | Kotlin | 5 | 25 | 2098e84f5b169c03a1a480e399e981650ba8316d | 1,194 | Raincoat | MIT License |
simplerichtextviewlib/src/main/java/li/yz/simplerichtextviewlib/VerCenterImageSpan.kt | liyuzheng | 201,436,863 | false | null | package li.yz.simplerichtextviewlib
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
import android.text.style.ImageSpan
/**
* desc: todo Overview
* createed by liyuzheng on 2019/8/9 14:26
*/
class VerCenterImageSpan : ImageSpan {
constr... | 1 | Kotlin | 1 | 1 | 572adc8944771ace1df7d2899429950320886077 | 1,491 | SimpleRichTextView | Apache License 2.0 |
client-api/src/main/kotlin/org/ostelco/prime/client/api/resources/ProductsResource.kt | mdheyab | 157,444,239 | true | {"Kotlin": 613166, "Java": 82884, "Shell": 48278, "Dockerfile": 4589} | package org.ostelco.prime.client.api.resources
import io.dropwizard.auth.Auth
import org.ostelco.prime.auth.AccessTokenPrincipal
import org.ostelco.prime.client.api.store.SubscriberDAO
import org.ostelco.prime.jsonmapper.asJson
import javax.validation.constraints.NotNull
import javax.ws.rs.GET
import javax.ws.rs.POST
... | 0 | Kotlin | 0 | 0 | dd306f17137828cc177836e1be4addccaef5982e | 2,089 | ostelco-core | Apache License 2.0 |
app/src/main/java/com/example/webbookmarker/ui/Fragments/AddNoteBottomSheet.kt | tushartripathi | 684,671,869 | false | {"Kotlin": 15703, "Java": 71} | package com.example.webbookmarker.ui.Fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.webbookmarker.databinding.FragmentBottomSheetBinding
import com.example.webbookmarker.ui.TakeNote.MainActivity
import com.google.android.m... | 0 | Kotlin | 0 | 0 | d03808541fbe125d8b53cdf10bd739f656125e2b | 1,417 | Web_Bookmarker | MIT License |
src/main/kotlin/turniplabs/industry/blocks/entities/lv/TileEntityRecycler.kt | FatherCheese | 673,567,283 | false | {"Kotlin": 207937, "Java": 3827} | package turniplabs.industry.blocks.entities
import com.mojang.nbt.CompoundTag
import com.mojang.nbt.ListTag
import net.minecraft.core.entity.player.EntityPlayer
import net.minecraft.core.item.ItemStack
import net.minecraft.core.player.inventory.IInventory
import sunsetsatellite.energyapi.impl.ItemEnergyContainer
impor... | 1 | Kotlin | 2 | 1 | 9daa4a3ddbcdbb65ebc7fc2056d68d647c8b00b7 | 6,575 | Industry2 | Creative Commons Zero v1.0 Universal |
core/src/main/kotlin/io/github/oleksivio/tl/kbot/core/model/annotation/validator/impl/AnimationFilterValidator.kt | oleksivio | 145,889,451 | false | null | package io.github.oleksivio.tl.kbot.core.model.annotation.validator.impl
import io.github.oleksivio.tl.kbot.core.controller.handler.check.Validator
import io.github.oleksivio.tl.kbot.core.model.annotation.validator.FilterValidator
import io.github.oleksivio.tl.kbot.server.api.objects.std.game.Animation
class Animatio... | 0 | Kotlin | 0 | 5 | d38b5be33c5217a3f91e44394995f112fd6b0ab9 | 434 | tl-kbot | Apache License 2.0 |
detekt-rules-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/ClassOrderingSpec.kt | touki24 | 355,162,546 | true | {"Kotlin": 2444877, "HTML": 4173, "Groovy": 2423, "Shell": 358, "CSS": 27} | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.test.compileAndLint
import org.assertj.core.api.Assertions.assertThat
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
class ClassOrderingSpec... | 0 | null | 0 | 1 | da6259a15c986d248799cc5f2db308689e4fc68e | 6,915 | detekt | Apache License 2.0 |
detekt-rules-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/ClassOrderingSpec.kt | touki24 | 355,162,546 | true | {"Kotlin": 2444877, "HTML": 4173, "Groovy": 2423, "Shell": 358, "CSS": 27} | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.test.compileAndLint
import org.assertj.core.api.Assertions.assertThat
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
class ClassOrderingSpec... | 0 | null | 0 | 1 | da6259a15c986d248799cc5f2db308689e4fc68e | 6,915 | detekt | Apache License 2.0 |
src/main/kotlin/pistonlang/compiler/piston/parser/Tokens.kt | PistonLang | 594,852,711 | false | null | package pistonlang.compiler.piston.parser
import pistonlang.compiler.common.parser.nodes.GreenLeaf
typealias PistonToken = GreenLeaf<PistonType>
object Tokens {
val thisKw = GreenLeaf(PistonType.thisKw, "this")
val superKw = GreenLeaf(PistonType.superKw, "super")
val nullKw = GreenLeaf(PistonType.nullKw,... | 0 | Kotlin | 0 | 0 | 3ad84cb6c0e108c30c15abc82f9094e73b8b06f6 | 2,463 | compiler | MIT License |
domain/src/main/java/com/vuxur/khayyam/domain/model/Poem.kt | deghat-farhad | 518,348,997 | false | {"Kotlin": 185801} | package com.vuxur.khayyam.domain.model
data class Poem(
val id: Int,
val index: String,
val hemistich1: String,
val hemistich2: String,
val hemistich3: String,
val hemistich4: String,
val isSuspicious: Boolean,
val translation: Translation,
) | 18 | Kotlin | 0 | 0 | 886f705c81e11a1ee85a74ee9835e6af327ce81d | 275 | khayam | MIT License |
src/main/kotlin/pl/jwizard/core/vote/SongChooserVotingSystemHandler.kt | jwizard-bot | 512,298,084 | false | {"Kotlin": 226798, "Dockerfile": 262} | /*
* Copyright (c) 2024 by JWizard
* Originally developed by Miłosz Gilga <https://miloszgilga.pl>
*/
package pl.jwizard.core.vote
import com.sedmelluq.discord.lavaplayer.track.AudioTrack
import net.dv8tion.jda.api.entities.Message
import net.dv8tion.jda.api.entities.User
import net.dv8tion.jda.api.events.message.r... | 2 | Kotlin | 0 | 2 | d306d5cbff3cf8b758d12762c58329691afc72ff | 5,098 | jwizard-core | Apache License 2.0 |
src/main/kotlin/ch/unibas/dmi/dbis/cottontail/model/basics/ColumnDef.kt | sauterl | 202,150,029 | true | {"Kotlin": 483171, "ANTLR": 12918} | package ch.unibas.dmi.dbis.cottontail.model.basics
import ch.unibas.dmi.dbis.cottontail.database.column.*
import ch.unibas.dmi.dbis.cottontail.model.exceptions.DatabaseException
import ch.unibas.dmi.dbis.cottontail.model.exceptions.ValidationException
import ch.unibas.dmi.dbis.cottontail.model.values.*
import ch.uniba... | 0 | Kotlin | 0 | 0 | bc25f6be57b93f0658404025706204ff5f24f830 | 5,757 | cottontaildb | MIT License |
app/src/main/java/com/example/andriginting/footballmatch/view/detail/player/DetailPlayerContract.kt | andriiginting | 160,222,285 | false | null | package com.example.andriginting.footballmatch.view.detail.player
import com.example.andriginting.footballmatch.model.player.PlayerModel
interface DetailPlayerContract {
interface View{
fun receivedData(data: PlayerModel)
fun setToolbarTitle(title: String)
}
} | 0 | Kotlin | 0 | 1 | c227005cb563666d7358d71e6cf98a881dad2383 | 286 | football-match | MIT License |
app/src/main/java/com/example/hrautomation/presentation/view/product/ProductFragment.kt | SasikSiderking | 547,823,297 | false | {"Kotlin": 314104} | package com.example.hrautomation.presentation.view.product
import android.app.AlertDialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity... | 9 | Kotlin | 0 | 0 | 71cd82f40ae70793cd75b6341536f13f79471dfc | 6,505 | HRautomation | MIT License |
server/server-app/src/main/kotlin/projektor/route/TestRunSystemAttributesRoutes.kt | craigatk | 226,096,594 | false | null | package projektor.route
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.server.util.*
import projektor.server.api.PublicId
import projektor.testrun.attributes.TestRunSystemAttributesService
fun Route.testRunSystemAt... | 14 | Kotlin | 12 | 41 | 83ad62007dc8f70a7581387a4212f7096145c5f7 | 1,335 | projektor | MIT License |
src/test/resources/objectExpression/objectSuperType.kt | JetBrains | 250,351,744 | false | null | import java.awt.event.MouseAdapter
import java.awt.event.MouseEvent
<warning descr="SSR">fun a() = object : MouseAdapter() { }</warning>
fun b() = object { } | 9 | Kotlin | 2 | 17 | 40f5895867975ee38b60333033672b7957bfb491 | 159 | intellij-structural-search-for-kotlin | Apache License 2.0 |
src/main/kotlin/com/disney/studios/titlemanager/repository/TitleRepository.kt | ulisesbocchio | 119,489,222 | false | null | package com.disney.studios.titlemanager.repository
import com.disney.studios.titlemanager.document.Title
import org.springframework.data.mongodb.repository.ReactiveMongoRepository
import org.springframework.stereotype.Repository
@Repository
/**
* Spring Data MongoDB Repository interface for [Title].
*/
interface Ti... | 0 | Kotlin | 0 | 2 | 39e6fb47ffbf5ca9867bea05b2904f69887cbc2d | 397 | titles-reference | MIT License |
agent/src/main/kotlin/org/nessus/didcomm/service/CamelEndpointService.kt | tdiesler | 578,916,709 | false | null | /*-
* #%L
* Nessus DIDComm :: Services :: Agent
* %%
* Copyright (C) 2022 Nessus
* %%
* 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-... | 19 | Kotlin | 0 | 5 | 2680c7e2b1c1741bed55d5942707273321209ad3 | 1,693 | nessus-didcomm | Apache License 2.0 |
app/src/main/java/com/ismailhakkiaydin/coinranking/ui/coin/detail/CoinDetailFragment.kt | ihaydinn | 259,339,381 | false | null | package com.ismailhakkiaydin.coinranking.ui.coin.detail
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.content.ContextCompat
import androidx... | 0 | Kotlin | 1 | 4 | 3219286a38a7840060fc78c6bb08c6b7dd241c2b | 5,086 | coin-ranking-app | MIT License |
DiscordBot/src/main/kotlin/dev/fstudio/mc_discord_bot/diskord/command/list/ListMessage.kt | Kamillaova | 463,396,605 | false | {"Kotlin": 78372} | package dev.fstudio.mc_discord_bot.diskord.command.list
import com.jessecorbett.diskord.api.channel.Embed
import com.jessecorbett.diskord.api.channel.EmbedFooter
import dev.fstudio.mc_discord_bot.allPlayersTitle
import dev.fstudio.mc_discord_bot.api.mcworldstats.common.response.Player
import dev.fstudio.mc_discord_bot... | 0 | Kotlin | 0 | 1 | a935ae2b1831949a347c954c70c3df6628d3dde5 | 892 | Ellison | MIT License |
cinescout/auth/trakt/domain/src/commonMain/kotlin/cinescout/auth/trakt/domain/usecase/NotifyTraktAppAuthorized.kt | 4face-studi0 | 280,630,732 | false | null | package cinescout.auth.trakt.domain.usecase
import cinescout.auth.trakt.domain.TraktAuthRepository
import cinescout.auth.trakt.domain.model.TraktAuthorizationCode
import org.koin.core.annotation.Factory
@Factory
class NotifyTraktAppAuthorized(
private val authRepository: TraktAuthRepository
) {
suspend opera... | 19 | Kotlin | 2 | 3 | d64398507d60a20a445db1451bdd8be23d65c9aa | 424 | CineScout | Apache License 2.0 |
app/src/main/kotlin/sea/parser/expressions/AdditiveExpression.kt | DavidMacDonald11 | 585,657,942 | false | {"Kotlin": 68605, "Shell": 3266, "Makefile": 254} | package sea.grammar
import sea.parser.*
import sea.grammar.MultiplicativeExpression
class AdditiveExpression(left: Node, op: Token, right: Node)
: BinaryOperation(left, op, right) {
companion object : Node.CompanionObject {
override fun construct(parser: Parser): Node {
@Suppre... | 0 | Kotlin | 1 | 7 | 38a2337f0d983751642870102d0275077837e9ba | 1,274 | Sea-Compiler | MIT License |
app/src/main/java/com/example/movieapp/core/network/api/apiTopHits.kt | NolifekNTB | 751,407,208 | false | {"Kotlin": 238529} | package com.example.movieapp.core.network.api
import com.example.movieapp.core.network.models.shared.AnimeData
import retrofit2.http.GET
interface AnimeApiTopHits {
@GET("top/anime")
suspend fun getTopHits(): AnimeData
} | 0 | Kotlin | 0 | 0 | 8305f925e7f1a760c9a2b029cf3f5dd4f41cde2d | 230 | Movie-app | MIT License |
src/main/kotlin/com/adamratzman/spotify/models/Playlist.kt | kptlronyttcna | 206,928,095 | true | {"Kotlin": 317955} | /* Spotify Web API - Kotlin Wrapper; MIT License, 2019; Original author: Adam Ratzman */
package com.adamratzman.spotify.models
import com.adamratzman.spotify.SpotifyRestAction
import com.adamratzman.spotify.endpoints.client.ClientPlaylistAPI
import com.neovisionaries.i18n.CountryCode
import com.squareup.moshi.Json
/... | 0 | null | 0 | 0 | e239e725b438880949635d76633cc23065d5ee82 | 6,263 | spotify-web-api-kotlin | MIT License |
app/src/main/java/com/example/df8c4968a760dfc86702c40ea88faf48/MainActivity.kt | enesduhanbulut | 607,634,788 | false | null | package com.example.df8c4968a760dfc86702c40ea88faf48
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.df8c4968a760dfc86702c40ea88faf48.R
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceSt... | 0 | Kotlin | 0 | 0 | f4dca65fa05ed56bbaba2d0c2308e9f296aca6a1 | 379 | df8c4968a760dfc86702c40ea88faf48 | MIT License |
paymentsheet/src/main/java/com/stripe/android/paymentsheet/forms/PaymentMethodRequirements.kt | stripe | 6,926,049 | false | null | package com.stripe.android.paymentsheet.forms
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
internal sealed interface Requirement : Parcelable
internal sealed interface PIRequirement : Requirement
internal sealed interface SIRequirement : Requirement
/**
* This requirement is dependent on the conf... | 92 | null | 606 | 935 | bec4fc5f45b5401a98a310f7ebe5d383693936ea | 10,772 | stripe-android | MIT License |
app/src/main/java/edu/nitt/delta/orientation22/compose/screens/LeaderBoardScreen.kt | delta | 549,654,697 | false | null | package edu.nitt.delta.orientation22.compose.screens
import android.util.Log
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.itemsIndexed
import andr... | 0 | Kotlin | 0 | 0 | 73352a78e852f4eaf490f9ec3da0797b87fbb2d2 | 9,513 | orientation-android-22 | MIT License |
platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/CheckboxTreeFixture.kt | rikinpatoliya | 137,878,248 | true | null | /*
* Copyright 2000-2017 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... | 0 | null | 0 | 0 | c42be18fd98d48d860f1f8452d9a763510705414 | 2,151 | intellij-community | Apache License 2.0 |
plugins/gradle/src/org/jetbrains/plugins/gradle/service/project/GradleExternalSettingsImporter.kt | ingokegel | 284,920,751 | false | null | // Copyright 2000-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 org.jetbrains.plugins.gradle.service.project
import com.intellij.execution.BeforeRunTask
import com.intellij.execution.BeforeRunTaskProvider
import com.intellij.execution... | 284 | null | 5162 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 5,553 | intellij-community | Apache License 2.0 |
coredomain/src/main/java/com/jbr/coredomain/artistdetails/ArtistDetailsLoader.kt | jrmybrault | 210,299,381 | false | null | package com.jbr.coredomain.artistdetails
import androidx.lifecycle.LiveData
interface ArtistDetailsLoader {
val artist: LiveData<DetailedArtist>
suspend fun loadArtist(identifier: String)
}
| 0 | Kotlin | 0 | 0 | ad06f792538867a732bd79fae74849f5130addce | 202 | aSharp-library | MIT License |
src/main/java/com/oveln/ovbookannouncements/listener/onPlayerChat.kt | Oveln | 389,541,767 | false | null | package com.oveln.ovbookannouncements.listener
import com.oveln.ovbookannouncements.data.Lang
import com.oveln.ovbookannouncements.data.verifier
import com.oveln.ovbookannouncements.utils.CharUtils.colorful
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.player.AsyncPlayer... | 0 | Kotlin | 0 | 0 | 930a3d38a2fa5d6dfd7a6d7d11ce45570cc43a27 | 987 | OvBookAnnouncements | Apache License 2.0 |
app/src/main/kotlin/com/sanmer/geomag/model/data/Record.kt | SanmerApps | 583,580,288 | false | {"Kotlin": 257095} | package com.sanmer.geomag.model.data
import com.sanmer.geomag.GeomagExt
data class Record(
val model: GeomagExt.Models,
val time: DateTime,
val position: Position,
val values: MagneticFieldExt
) {
companion object {
fun empty() = Record(
model = GeomagExt.Models.IGRF,
... | 1 | Kotlin | 2 | 25 | 60f4b7eaacf0d72545f6bb9046352ffb76ac4c3a | 451 | Geomag | Apache License 2.0 |
brain/src/main/kotlin/fr/sdis64/brain/indicators/IndicatorController.kt | ArchangelX360 | 705,188,698 | false | {"Kotlin": 1253257, "JavaScript": 1614, "Dockerfile": 1112, "HTML": 496} | package fr.sdis64.brain.indicators
import fr.sdis64.api.indicators.ManualIndicatorCategory
import fr.sdis64.api.indicators.ManualIndicatorLevel
import fr.sdis64.api.indicators.ManualIndicatorType
import fr.sdis64.api.indicators.WeatherIndicator
import fr.sdis64.brain.utilities.entities.withIdOf
import fr.sdis64.brain.... | 3 | Kotlin | 0 | 1 | 9fe4205152eeab21c421b299b64cfcded900ac1f | 4,030 | sdis64-ctac | MIT License |
src/main/kotlin/com/jakewharton/uispy/ui.kt | JakeWharton | 470,313,483 | false | {"Kotlin": 25064, "Dockerfile": 1742} | package com.jakewharton.uispy
import kotlinx.serialization.Serializable
@Serializable
data class ProductsContainer(
val products: List<Product>,
)
@Serializable
data class Product(
val id: Long,
val handle: String,
val title: String,
val variants: List<Variant> = emptyList(),
) {
@Serializable
data class Vari... | 5 | Kotlin | 3 | 43 | dd43ef3a3f957eefbd12348dfdc2cd00112aa207 | 401 | ui-spy | Apache License 2.0 |
notification/src/main/java/com/prmto/notification/Notifier.kt | tolgaprm | 541,709,201 | false | {"Kotlin": 540597} | package com.prmto.mova_movieapp.notification
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.os.Build
import androidx.annotation.RequiresApi
abstract class Notifier(
private val notificationManager: NotificationManager
) {
abstract v... | 0 | Kotlin | 4 | 85 | d9365e5339cb5daa231a8fe77c7376ab828d289b | 1,322 | Mova-MovieApp | Apache License 2.0 |
src/main/kotlin/no/nav/reka/river/model/Data.kt | alpet | 657,993,647 | false | {"Kotlin": 227850} | package no.nav.reka.river.model
import com.fasterxml.jackson.databind.JsonNode
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helse.rapids_rivers.River
import no.nav.reka.river.*
import no.nav.reka.river.InternalBehov
import no.nav.reka.river.InternalEven... | 0 | Kotlin | 0 | 0 | 10b272d9b0b96fac21aaba4cb7c9a18dd9f497ba | 1,835 | reka | MIT License |
DrawsTreeFocus/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.* // ktlint-disable no-wildcard-imports
import javax.swing.* // ktlint-disable no-wildcard-imports
private var fbaCheck: JCheckBox? = null
private var dfiCheck: JCheckBox? = null
fun makeUI(): Component {
val tree = JTree()
fbaCheck = JCheckBox(TreeDraws.DRAWS_FOCUS_BORDER_AROUND... | 0 | null | 3 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 3,840 | kotlin-swing-tips | MIT License |
solar/src/main/java/com/chiksmedina/solar/outline/arrowsaction/SquareTopUp.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.arrowsaction
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.Comp... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,821 | SolarIconSetAndroid | MIT License |
app/src/main/java/com/example/fitness_app/profile/FragmentHome.kt | HauntedMilkshake | 698,074,119 | false | {"Kotlin": 18759} | package com.example.fitness_app.profile
import android.os.Bundle
import android.util.Log
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.OnBackPressedCallback
import androidx.fragment.app.Fragment
import androidx.navigati... | 0 | Kotlin | 0 | 1 | d6b4b437f082996fccf971ad4d9992ea67739a07 | 2,270 | fitness_app | MIT License |
core/src/commonMain/kotlin/it/krzeminski/fsynth/synthesis/caching/bucketing/BucketedTrack.kt | fsynthlib | 136,238,161 | false | null | package it.krzeminski.fsynth.synthesis.caching.bucketing
import it.krzeminski.fsynth.types.PositionedBoundedWaveform
data class BucketedTrack(
/**
* 0th element of this list contains track segments that exist in the song in the time range
* [0 s; [bucketSizeInSeconds]), 1st element: [[bucketSizeInSecond... | 18 | Kotlin | 1 | 11 | 1f138bf5c5d46a80b23eca8bde589da1b865662a | 737 | fsynth | MIT License |
app/src/main/kotlin/vergecurrency/vergewallet/view/ui/activity/SplashActivity.kt | coalacorey | 240,464,098 | true | {"Kotlin": 258191, "Java": 3992} | package vergecurrency.vergewallet.view.ui.activity
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.widget.Toast
import vergecurrency.vergewallet.R
import vergecurrency.vergewallet.service.model.PreferencesManager
import vergecurrency.vergewallet.service.model.network.lay... | 0 | null | 0 | 0 | a75b7e21134151bc66d13d66f4d35160cd5d8d87 | 2,084 | vDroid | MIT License |
kactoos-common/src/test/kotlin/nnl/rocks/kactoos/text/RotatedTextTest.kt | neonailol | 117,650,092 | false | null | package nnl.rocks.kactoos.text
import nnl.rocks.kactoos.test.AssertTextsEquals
import kotlin.test.Test
class RotatedTextTest {
@Test
fun rotateRightText() {
AssertTextsEquals(
RotatedText(TextOf { "Hello!" }, 2),
TextOf { "o!Hell" },
"Can't rotate text to right"
... | 0 | Kotlin | 1 | 19 | ce10c0bc7e6e65076b8ace90770b9f7648facf4a | 1,171 | kactoos | MIT License |
example/src/main/kotlin/name/kocian/api/testing/CountriesStep.kt | misa | 332,186,659 | false | null | package name.kocian.api.testing
import io.cucumber.java8.En
import name.kocian.api.testing.HttpMethod.GET
import org.junit.Assert.assertEquals
private const val HOST = "https://restcountries.eu/rest/v2/"
class CountriesStep : En {
var countriesFound: Int? = 0
var countryName: String = ""
init {
... | 0 | Kotlin | 0 | 1 | dfb0170c068bdf39368363914d02d2ec501b2746 | 859 | api-testing | Apache License 2.0 |
src/commonMain/kotlin/com/zhangke/activitypub/api/PushRepo.kt | 0xZhangKe | 594,285,909 | false | {"Kotlin": 186330} | package com.zhangke.activitypub.api
import com.zhangke.activitypub.ActivityPubClient
import com.zhangke.activitypub.entities.SubscribePushRequestEntity
import com.zhangke.activitypub.entities.WebPushSubscriptionEntity
import io.ktor.client.call.body
import io.ktor.client.request.delete
import io.ktor.client.request.ge... | 0 | Kotlin | 0 | 3 | 2719aa357158289f38717057affe37a1d298b499 | 3,069 | ActivityPub-Kotlin | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/submission/data/tekhistory/TEKHistoryStorage.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.submission.data.tekhistory
import android.database.sqlite.SQLiteConstraintException
import androidx.room.withTransaction
import com.google.android.gms.nearby.exposurenotification.TemporaryExposureKey
import de.rki.coronawarnapp.submission.data.tekhistory.internal.TEKEntryDao
import de.rki.... | 6 | null | 516 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 2,647 | cwa-app-android | Apache License 2.0 |
library/src/main/java/com/drakeet/multitype/OneTypeToMoreBinderMultiType.kt | chenfei0928 | 130,954,695 | false | {"Kotlin": 1048340, "Java": 254586} | /**
* 实现一实体类型对应多binder注册的扩展函数
*
* @author ChenFei(<EMAIL>)
* @date 2019-11-19 18:02
*/
package com.drakeet.multitype
import io.github.chenfei0928.util.Log
private const val TAG = "KW_MultiType"
/**
* 注册一个类型的一type对多binder的映射关系,并且使用map字典[viewTypeRecord]来保存实例与binder类的映射。
*
* 考虑到binder类定义时会使用抽象类隔离ui逻辑与点击事件,[view... | 1 | Kotlin | 0 | 8 | bbe587216a2450deb19af90ea4d7d24d23443dd1 | 4,465 | Util | MIT License |
test/src/me/anno/tests/image/HugeImageTest.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.tests.image
import me.anno.Engine
import me.anno.gpu.GFX
import me.anno.gpu.hidden.HiddenOpenGLContext
import me.anno.gpu.texture.TextureCache
import me.anno.utils.OS.downloads
import me.anno.utils.Sleep.waitUntilDefined
import kotlin.concurrent.thread
fun main() {
@Suppress("SpellCheckingInspecti... | 0 | null | 3 | 9 | 566e183d43bff96ee3006fecf0142e6d20828857 | 638 | RemsEngine | Apache License 2.0 |
test/src/me/anno/tests/image/HugeImageTest.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.tests.image
import me.anno.Engine
import me.anno.gpu.GFX
import me.anno.gpu.hidden.HiddenOpenGLContext
import me.anno.gpu.texture.TextureCache
import me.anno.utils.OS.downloads
import me.anno.utils.Sleep.waitUntilDefined
import kotlin.concurrent.thread
fun main() {
@Suppress("SpellCheckingInspecti... | 0 | null | 3 | 9 | 566e183d43bff96ee3006fecf0142e6d20828857 | 638 | RemsEngine | Apache License 2.0 |
SavedDataApplication/app/src/main/java/co/edu/aulamatriz/saveddataapplication/FileInternalActivity.kt | arthas1888 | 144,399,674 | false | null | package co.edu.aulamatriz.saveddataapplication
import android.content.Context
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_file_internal.*
import java.io.*
class FileInternalActivity : AppCompatActivity() {
override fun onCreate(savedInst... | 0 | Kotlin | 0 | 0 | bf1898f8d5f600817ae56b5e0aa5ab256227445d | 1,165 | Android-Kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.