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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bot/connector-messenger/src/main/kotlin/model/send/AttachmentMessage.kt | theopenconversationkit | 84,538,053 | false | null | /*
* Copyright (C) 2017/2021 e-voyageurs technologies
*
* 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... | 163 | null | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 3,376 | tock | Apache License 2.0 |
app/src/main/java/com/celzero/bravedns/ui/OrbotBottomSheetFragment.kt | celzero | 270,683,546 | false | null | /*
* Copyright 2020 RethinkDNS and its authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 361 | null | 92 | 557 | 161674b1cdbdd72fefee5edd953179a637e00f6f | 14,504 | rethink-app | Apache License 2.0 |
osm/addr-osmify-kotlin/src/main/kotlin/Urlopener.kt | vmiklos | 2,824,455 | false | null | /*
* Copyright 2020 <NAME>
*
* SPDX-License-Identifier: MIT
*/
package hu.vmiklos.addr_osmify
/**
* urlopen() interface, to be implemented using HTTP or mocking.
*/
interface Urlopener {
fun urlopen(urlString: String, data: String): String
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
| 1 | null | 1 | 6 | b83fd1eb10061d5eb2fc0c9a70748691c34e8890 | 306 | vmexam | MIT License |
src/main/kotlin/dev/supergrecko/vexe/llvm/target/Target.kt | arkencl | 275,663,397 | true | {"Kotlin": 372536, "Makefile": 227} | package dev.supergrecko.vexe.llvm.target
import dev.supergrecko.vexe.llvm.internal.contracts.ContainsReference
import dev.supergrecko.vexe.llvm.internal.util.fromLLVMBool
import dev.supergrecko.vexe.llvm.internal.util.wrap
import org.bytedeco.javacpp.BytePointer
import org.bytedeco.llvm.LLVM.LLVMTargetRef
import org.b... | 0 | Kotlin | 0 | 0 | 673522b620db4c8a619db5ccc5dfe62197b12f11 | 3,318 | llvm4kt | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/main/LangHolder.kt | na-ji | 59,505,096 | true | {"Kotlin": 1164869, "Java": 139835, "Shell": 1127} | package eu.kanade.tachiyomi.ui.catalogue.main
import android.view.View
import eu.davidea.flexibleadapter.FlexibleAdapter
import eu.davidea.viewholders.FlexibleViewHolder
import eu.kanade.tachiyomi.R
import kotlinx.android.synthetic.main.catalogue_main_controller_card.view.*
import java.util.*
class LangHolder(view: V... | 0 | Kotlin | 0 | 0 | 5fc8580874975857e7f3887f4c193e2b415d30d2 | 707 | tachiyomi | Apache License 2.0 |
app/src/main/java/com/bigboluo/kaptapplication/DogMeal.kt | pahoehoe | 320,225,630 | false | {"Gradle": 8, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 8, "Batchfile": 1, "Markdown": 1, "Kotlin": 25, "INI": 3, "Proguard": 4, "XML": 18, "Java": 1} | package com.bigboluo.kaptapplication
import com.bigboluo.annotation.Factory
import com.bigboluo.annotation.Meal
@Factory(
id = "DogMeal",
value = DogMeal::class
)
class DogMeal : Meal {
override fun eat() {
println("eat dog meal!")
}
} | 0 | Kotlin | 0 | 1 | 23828431d6974a14010b9be5fdf9d204b638e3e3 | 261 | kotlin_kapt_demo | MIT License |
components/crypto/crypto-softhsm-impl/src/test/kotlin/net/corda/crypto/softhsm/impl/HSMRepositoryImplTest.kt | corda | 346,070,752 | false | {"Kotlin": 18133184, "Java": 317933, "Smarty": 88013, "Shell": 47197, "Groovy": 28415, "TypeScript": 5826, "PowerShell": 4985, "Solidity": 2024} | package net.corda.crypto.softhsm.impl
import net.corda.crypto.cipher.suite.CRYPTO_TENANT_ID
import net.corda.crypto.core.CryptoTenants
import java.time.Instant
import javax.persistence.EntityManager
import net.corda.crypto.persistence.db.model.HSMAssociationEntity
import net.corda.crypto.persistence.db.model.HSMCatego... | 128 | Kotlin | 16 | 42 | 438bf3771a593c56f4f2583572c9b3063f784af4 | 3,774 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/byd/firstcode/kotlin/eight/ServiceActivity.kt | liufangqq | 436,594,629 | false | null | package com.byd.firstcode.kotlin.eight
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.IBinder
import android.util.Log
import com.byd.fir... | 0 | Kotlin | 0 | 0 | fcb8f6450a07e4598bf034dbfaaaa47037586107 | 3,004 | TestBYD | Apache License 2.0 |
codegen-client/src/test/kotlin/software/amazon/smithy/rust/codegen/client/smithy/protocols/eventstream/ClientEventStreamUnmarshallerGeneratorTest.kt | smithy-lang | 308,027,791 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package software.amazon.smithy.rust.codegen.client.smithy.protocols.eventstream
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.ArgumentsSource
import software... | 346 | null | 188 | 504 | 8d8e7ab7aa6c3b388ffb2365a29ab03f87c24507 | 3,108 | smithy-rs | Apache License 2.0 |
buildSrc/src/main/kotlin/kotlinx/html/generate/main.kt | kowasm | 586,987,800 | false | null | package kotlinx.html.generate
import java.io.*
fun generate(packg: String, todir: String, jsdir: String) {
fillRepository()
fillKdocRepositoryExtension()
File(todir).mkdirs()
File(jsdir).mkdirs()
FileOutputStream("$todir/gen-attr-traits.kt").writer().use {
it.with {
packg(pac... | 95 | null | 5 | 315 | a45430d559057f5a3e10ee88d26eba07103bf69d | 9,519 | kowasm | Apache License 2.0 |
kotest-assertions-shared/src/commonMain/kotlin/io/kotest/inspectors/Inspectors.kt | audkar | 292,639,473 | false | null | package io.kotest.inspectors
fun <T> Sequence<T>.forAll(fn: (T) -> Unit) = toList().forAll(fn)
fun <T> Array<T>.forAll(fn: (T) -> Unit) = asList().forAll(fn)
fun <T> Collection<T>.forAll(fn: (T) -> Unit) {
val results = runTests(this, fn)
val passed = results.filterIsInstance<ElementPass<T>>()
if (passed.size... | 0 | null | 0 | 1 | 6d9d202d60985d9f8cb471b07c366397d60605e3 | 3,613 | kotest-assertions | Apache License 2.0 |
platform/backend/core/src/main/kotlin/io/hamal/core/adapter/topic/Append.kt | hamal-io | 622,870,037 | false | {"Kotlin": 3917028, "C": 1401512, "TypeScript": 339641, "Lua": 170806, "C++": 40651, "Makefile": 11728, "Java": 7564, "JavaScript": 3076, "CMake": 2838, "CSS": 1567, "HTML": 1248, "Shell": 977} | package io.hamal.core.adapter.topic
import io.hamal.core.adapter.request.RequestEnqueuePort
import io.hamal.core.security.SecurityContext
import io.hamal.lib.domain.GenerateDomainId
import io.hamal.lib.domain._enum.RequestStatus
import io.hamal.lib.domain.request.TopicAppendEntryRequest
import io.hamal.lib.domain.requ... | 39 | Kotlin | 0 | 0 | c263adf12584f9ed4be14d3884daa88ab08313d3 | 1,215 | hamal | Creative Commons Zero v1.0 Universal |
shared/lib/res/src/jvmMain/kotlin/org/mobilenativefoundation/store/news/shared/lib/res/drawable/showIcon.jvm.kt | matt-ramotar | 742,173,124 | false | {"Kotlin": 36554} | package org.mobilenativefoundation.store.news.shared.lib.res.drawable
import androidx.compose.ui.graphics.painter.Painter
actual val facebookLogo: Painter
get() = TODO("Not yet implemented") | 1 | Kotlin | 0 | 0 | 6943b9218cd1aa765dc66145b75b1e63625091af | 196 | news | Apache License 2.0 |
shared/lib/res/src/jvmMain/kotlin/org/mobilenativefoundation/store/news/shared/lib/res/drawable/showIcon.jvm.kt | matt-ramotar | 742,173,124 | false | {"Kotlin": 36554} | package org.mobilenativefoundation.store.news.shared.lib.res.drawable
import androidx.compose.ui.graphics.painter.Painter
actual val facebookLogo: Painter
get() = TODO("Not yet implemented") | 1 | Kotlin | 0 | 0 | 6943b9218cd1aa765dc66145b75b1e63625091af | 196 | news | Apache License 2.0 |
reftagger/src/main/java/dev/mattrob/reftagger/repo/ScriptureRepo.kt | mattrob33 | 321,482,435 | false | null | package dev.mattrob.reftagger.repo
import android.content.Context
import dev.mattrob.reftagger.cache.ScriptureDiskCache
import dev.mattrob.reftagger.cache.ScriptureMemCache
import dev.mattrob.reftagger.data.Response
import dev.mattrob.reftagger.remote.ScriptureRemote
import dev.mattrob.reftagger.usecases.GetBibleGatew... | 0 | Kotlin | 0 | 0 | 4b0690b35a029571711e7a629a3143a2b61d6971 | 1,563 | RefTagger | Apache License 2.0 |
content-types/content-types-core-services/src/test/kotlin/org/orkg/contenttypes/domain/actions/visualization/VisualizationResourceCreatorUnitTest.kt | TIBHannover | 197,416,205 | false | null | package org.orkg.contenttypes.domain.actions.visualization
import io.kotest.assertions.asClue
import io.kotest.matchers.shouldBe
import io.mockk.clearAllMocks
import io.mockk.confirmVerified
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.jupiter.api.AfterEach
import org.junit.jupit... | 0 | null | 2 | 5 | f9de52bdf498fdc200e7f655a52cecff215c1949 | 2,036 | orkg-backend | MIT License |
sample/src/main/java/com/stfalcon/stfalconfixturer/sample/InfoActivity.kt | stfalcon-studio | 155,727,695 | false | null | package com.stfalcon.stfalconfixturer.sample
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.stfalcon.stfalconfixturer.extensions.setFixtureTag
import kotlinx.android.synthetic.main.activity_info.*
class InfoActivity : AppCompatActivity() {
override fun onCreate(savedInstanceS... | 0 | Kotlin | 2 | 31 | 808b67e2adc06da499be6e19e1ea4154f0756169 | 527 | StfalconFixturer-android | Apache License 2.0 |
feature/album/user/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/album/user/view/implementation/seam/action/SetAlbumId.kt | savvasdalkitsis | 485,908,521 | false | {"Kotlin": 2667740, "Ruby": 1294, "PowerShell": 325, "Shell": 158} | /*
Copyright 2024 <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 writing, software
distribu... | 71 | Kotlin | 26 | 358 | a1159f2236f66fe533f7ba785d47e4201e10424a | 1,358 | uhuruphotos-android | Apache License 2.0 |
bubblepicker/src/main/java/com/igalata/bubblepicker/extensions.kt | AnimationStudy | 91,865,916 | false | null | package com.igalata.bubblepicker
import android.graphics.Bitmap
import android.opengl.GLES20.*
import android.opengl.GLUtils
import com.igalata.bubblepicker.Constant.FLOAT_SIZE
import com.igalata.bubblepicker.Constant.TEXTURE_VERTICES
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.FloatBuffer
/*... | 1 | null | 1 | 2 | 202e8a3611d4dd4c70adeb95459bfc43e5000c22 | 1,584 | Bubble-Picker | The Unlicense |
generator/src/main/kotlin/com/divpundir/mavlink/generator/DeprecatedGen.kt | divyanshupundir | 484,943,163 | false | {"Kotlin": 2680196} | package com.divpundir.mavlink.generator
import com.squareup.kotlinpoet.AnnotationSpec
import com.divpundir.mavlink.generator.models.DeprecatedModel
internal fun DeprecatedModel.generateAnnotation() = AnnotationSpec
.builder(Deprecated::class)
.addMember("message = %S", content ?: "")
.build()
| 5 | Kotlin | 6 | 36 | b78842d3422a7c4d6a5ad6a712fc237e2d599e89 | 308 | mavlink-kotlin | Apache License 2.0 |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/large/TwoSpeechBubblesLarge.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.large
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mit... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 4,014 | mds-android-compose | MIT License |
src/main/kotlin/github/mewgrammer/shopbuddy/persistence/mapping/ShoppingListMapper.kt | Mewgrammer | 503,052,371 | false | {"Kotlin": 43249} | package github.mewgrammer.shopbuddy.persistence.mapping
import github.mewgrammer.shopbuddy.api.model.ShoppingListDto
import github.mewgrammer.shopbuddy.api.model.request.CreateShoppingListDto
import github.mewgrammer.shopbuddy.persistence.model.ShoppingList
import github.mewgrammer.shopbuddy.persistence.model.Shopping... | 0 | Kotlin | 0 | 0 | 01f72fc46e7aaa358624b3ed8a3ab816a4982ba5 | 946 | shopping-buddy | MIT License |
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/empty/EmptyWhileBlock.kt | mlegy | 330,361,375 | false | null | package io.gitlab.arturbosch.detekt.rules.empty
import io.gitlab.arturbosch.detekt.api.Config
import org.jetbrains.kotlin.psi.KtWhileExpression
/**
* Reports empty `while` expressions. Empty blocks of code serve no purpose and should be removed.
*
* @active since v1.0.0
* @author <NAME>
* @author <NAME>
*/
clas... | 3 | null | 0 | 1 | c37812e0b8af0ec304fcefce5152dfc9845d52c8 | 501 | detekt | Apache License 2.0 |
app/src/main/kotlin/no/nav/k9punsj/rest/server/JournalpostInfoRoutes.kt | navikt | 216,808,662 | false | null | package no.nav.k9punsj.rest.server
import no.nav.k9.sak.kontrakt.dokument.JournalpostIdDto
import no.nav.k9punsj.AuthenticationHandler
import no.nav.k9punsj.K9SakRoutes
import no.nav.k9punsj.RequestContext
import no.nav.k9punsj.journalpost.JournalpostService
import no.nav.k9punsj.rest.web.dto.AktørIdDto
import no.nav.... | 9 | Kotlin | 2 | 1 | 762efffe6b7fc6b9a968a93e1bb6344304f0f839 | 3,164 | k9-punsj | MIT License |
project-system-gradle-psd/testSrc/com/android/tools/idea/gradle/structure/model/helpers/ExtractVariableWorkerTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 20,540 | android | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagation.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.ec2
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.IInspectable
import io.... | 1 | Kotlin | 0 | 4 | 953e78163afe1a14fd67b30dd666b11b3e05a2ec | 7,046 | kotlin-cdk-wrapper | Apache License 2.0 |
src/nl/hannahsten/texifyidea/reference/LatexUsagesProvider.kt | Hannah-Sten | 62,398,769 | false | null | package nl.hannahsten.texifyidea.reference
import com.intellij.lang.cacheBuilder.DefaultWordsScanner
import com.intellij.lang.cacheBuilder.WordsScanner
import com.intellij.lang.findUsages.FindUsagesProvider
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNameIdentifierOwner
import com.intellij.psi.tree.T... | 99 | null | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 2,064 | TeXiFy-IDEA | MIT License |
app/src/main/java/com/honey96dev/homemadeproduct/p4customer/CustomerCartFragment.kt | honey96dev | 179,335,457 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 53, "Kotlin": 29} | package com.honey96dev.homemadeproduct.p4customer
import android.os.AsyncTask
import android.os.Bundle
import android.os.Handler
import android.os.Message
import android.support.v4.app.Fragment
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andr... | 1 | null | 1 | 1 | c41d4115e11a8449218d86879354d3d3bcbefdab | 11,554 | android-home-made-product | MIT License |
android-uitests/testData/CatchUp/app/src/main/kotlin/io/sweers/catchup/ui/activity/MainActivity.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (c) 2018 <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 ... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 4,271 | android | Apache License 2.0 |
Concurrency/EchoServer/src/main/kotlin/palbp/laboratory/echo/coroutines/Main_flows_101.kt | palbp | 463,200,783 | false | {"Kotlin": 703005, "C": 16710, "Assembly": 891, "Dockerfile": 610, "Makefile": 383} | package palbp.laboratory.echo.coroutines
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import kotlinx.coroutines.launch
import org.sl... | 0 | Kotlin | 0 | 5 | 2b72493599cb4f6c22f952a77459510f8108805c | 3,940 | laboratory | MIT License |
wallet/src/main/kotlin/com/faisaldev/wallet/service/WalletService.kt | Abdirashid26 | 852,094,827 | false | {"Kotlin": 68971, "Java": 5599} | package com.faisaldev.wallet.service
import com.faisaldev.user_service.utils.GlobalResponse
import com.faisaldev.wallet.dto.BalanceInquiryRequest
import com.faisaldev.wallet.dto.BalanceInquiryResponse
import com.faisaldev.wallet.dto.GetWalletAccountsDto
import com.faisaldev.wallet.model.Wallet
interface WalletService... | 0 | Kotlin | 0 | 0 | 657856cf8109e6c854916d7d48161efe588d1cbd | 541 | Agent-Connect | Apache License 2.0 |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/AngleUp.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 1,879 | compose-icons | MIT License |
src/main/kotlin/me/bscal/runecraft/gui/runeboard/slots/GemSlot.kt | bscal | 414,444,966 | false | null | package me.bscal.runecraft.gui.runeboard.slots
import me.bscal.runecraft.items.runeitems.BreakLevel
import me.bscal.runecraft.stats.StatInstance
import me.bscal.runecraft.stats.StatRegistry
import net.axay.kspigot.chat.KColors
import net.axay.kspigot.items.addLore
import net.axay.kspigot.items.itemStack
import net.axa... | 0 | Kotlin | 0 | 0 | 29470ea09d74e83a3fabe0789d8f169de6a3fc20 | 1,823 | RuneCraft | MIT License |
defitrack-protocol-contracts/src/main/java/io/defitrack/protocol/kwenta/StakingRewardsV2Contract.kt | decentri-fi | 426,174,152 | false | {"Kotlin": 1290412, "Java": 1948, "Dockerfile": 909} | package io.defitrack.protocol.kwenta
import io.defitrack.abi.TypeUtils.Companion.address
import io.defitrack.abi.TypeUtils.Companion.toAddress
import io.defitrack.abi.TypeUtils.Companion.uint256
import io.defitrack.evm.contract.BlockchainGateway
import io.defitrack.evm.contract.ContractCall
import io.defitrack.evm.con... | 59 | Kotlin | 6 | 11 | 8b8d6713c9734d2b4015e7affe658e797c9a00be | 801 | defi-hub | MIT License |
app/src/main/java/de/oljg/glac/feature_alarm/ui/components/AlarmListItem.kt | Ol-J-G | 768,542,224 | false | {"Kotlin": 980887} | package de.oljg.glac.feature_alarm.ui.components
import android.net.Uri
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
impor... | 0 | Kotlin | 0 | 0 | b3cefafa190eae0aa95f55fc6903e327363c2efc | 10,050 | GLAC | Creative Commons Attribution 4.0 International |
src/test/kotlin/Main.kt | MC-Challenge | 305,181,487 | false | null | import net.challenge.configu.config.JsonConfig
import java.io.File
fun main() {
// ##############
// Example
// ##############
var modules = listOf<Module>()
modules += Module("FPS")
modules += Module("CPS")
// Loading the modules
modules.forEach { it.load() }
// Using a ... | 0 | Kotlin | 0 | 0 | f500501a4014cf471ba9a1a6d1459a247d9388b5 | 578 | Configu | Apache License 2.0 |
app/src/main/kotlin/me/sweetll/tucao/business/download/fragment/DownloadingFragment.kt | blackbbc | 78,953,199 | false | null | package me.sweetll.tucao.business.download.fragment
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.chad.library.adapter.base.BaseQuickAdapter
im... | 14 | null | 208 | 994 | e0c29ae6c37fcca916a3aba3cbae61e74292ff99 | 5,406 | Tucao | MIT License |
java/com/mu/jan/problems/architecture/Paging.kt | Mukuljangir372 | 359,095,214 | false | null | package com.mu.jan.problems.architecture
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.constraintlayout.utils.widget.MockView
import androidx.lifecycle.Liv... | 0 | Kotlin | 0 | 1 | bb15517c09041757d859126dc4f39d3409fdd35d | 3,703 | Android-Kotlin-Interview | Apache License 2.0 |
app/src/main/java/com/ivansison/kairos/views/adapters/WeatherTypeAdapter.kt | ivansison02 | 249,015,567 | false | null | package com.ivansison.kairos.views.adapters
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptec... | 0 | Kotlin | 0 | 0 | 3064a207b18203b4b7ea768b7f709ae4ebe0199c | 1,804 | kairos | MIT License |
src/main/java/io/github/alexiscomete/lapinousecond/data/managesave/CacheCustom.kt | Alexiscomete | 377,132,555 | false | null | package alexiscomete.managesave
import java.sql.SQLException
class CacheCustom<U>(private val table: Table, private val function: (Long) -> U) {
val hashMap = HashMap<Long, U>()
operator fun get(l: Long): U? {
var u = hashMap[l]
if (u == null) {
try {
val resultSet ... | 55 | null | 0 | 9 | 463451ddf5df27085bf6cf60a0b7d9da9b4d14f2 | 951 | A-Discord-Adventure | MIT License |
GUI/src/main/kotlin/logic/DiffSequenceInfo.kt | amosproj | 705,002,381 | false | {"Kotlin": 283685, "Python": 2014, "Shell": 588} | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: <NAME> <<EMAIL>>
package logic
import algorithms.AlignmentElement
/**
* Utility class to get information about a diff sequence.
* @param diffSequence The diff sequence to get information about.
*/
class DiffSequenceInfo(private val diffSequence: Array<Alig... | 60 | Kotlin | 2 | 6 | 9a47dadaf168bbdd36f0acdd1502496b10175ac2 | 1,683 | amos2023ws03-gui-frame-diff | MIT License |
core/networking/src/main/java/com/javi/core/networking/di/NetworkModule.kt | javierpe | 465,529,405 | false | {"Kotlin": 336652} | package com.javi.core.networking.di
import com.javi.core.networking.BASE_URL
import com.squareup.moshi.Moshi
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
import ... | 1 | Kotlin | 6 | 48 | ae747ce383c62f3ab890929e723b87f13045e8bf | 671 | ArtGallery | Apache License 2.0 |
src/rider/main/kotlin/rider/RiderProjectOutputHost.kt | wdcossey | 331,943,271 | true | {"Kotlin": 70160, "C#": 5502, "PowerShell": 2864} | package me.fornever.avaloniarider.rider
import com.intellij.openapi.components.Service
import com.intellij.openapi.project.Project
import com.jetbrains.rd.util.lifetime.Lifetime
import com.jetbrains.rider.model.RdGetProjectOutputArgs
import com.jetbrains.rider.model.RdProjectOutput
import com.jetbrains.rider.model.rid... | 0 | null | 0 | 0 | df39cdfff39b02e2dba23e6da44a41309cd6eee4 | 1,309 | AvaloniaRider | MIT License |
parser/src/main/kotlin/net/prettyrandom/thrift_kotlin/parser/visitors/StructVisitor.kt | TobiasBales | 311,568,239 | false | null | package net.prettyrandom.thrift_kotlin.parser.visitors
import net.prettyrandom.thrift_kotlin.parser.domain.Struct
import net.prettyrandom.thrift_kotlin.parser.generated.parser.ThriftBaseVisitor
import net.prettyrandom.thrift_kotlin.parser.generated.parser.ThriftParser
class StructVisitor : ThriftBaseVisitor<Struct>()... | 0 | Kotlin | 0 | 1 | 248f2386aed54adc08216b8f939240eb262e91ef | 590 | thrift-kotlin | MIT License |
platform/workspaceModel-core/test/com/intellij/workspace/api/SimplePropertiesInProxyBasedStorageTest.kt | moznuy | 220,463,941 | false | {"Text": 3952, "XML": 4555, "Ant Build System": 13, "Shell": 472, "Markdown": 300, "Ignore List": 79, "Git Attributes": 9, "Batchfile": 30, "SVG": 1988, "Java": 64035, "C++": 15, "HTML": 2723, "Kotlin": 4553, "DTrace": 1, "Gradle": 71, "Java Properties": 94, "INI": 236, "JFlex": 27, "Objective-C": 19, "Groovy": 3324, "... | package com.intellij.workspace.api
import gnu.trove.THashSet
import gnu.trove.TObjectHashingStrategy
import org.jetbrains.annotations.TestOnly
import org.junit.Assert.*
import org.junit.Test
internal interface SampleEntity : TypedEntity {
val booleanProperty: Boolean
val stringProperty: String
val stringListPro... | 1 | null | 1 | 1 | 11de913f9a139f165a4aad0be4fb8160674d5240 | 10,044 | intellij-community | Apache License 2.0 |
src/test/kotlin/no/nav/tilleggsstonader/sak/behandling/TestSaksbehandlingServiceTest.kt | navikt | 685,490,225 | false | {"Kotlin": 1381580, "HTML": 33935, "Gherkin": 11030, "Shell": 924, "Dockerfile": 164} | package no.nav.tilleggsstonader.sak.behandling
import no.nav.tilleggsstonader.sak.IntegrationTest
import no.nav.tilleggsstonader.sak.behandling.barn.BarnRepository
import no.nav.tilleggsstonader.sak.behandling.domain.BehandlingStatus
import no.nav.tilleggsstonader.sak.behandlingsflyt.StegType
import no.nav.tilleggssto... | 6 | Kotlin | 1 | 0 | f6ec95a294a3a85a53b413216811453a278040b3 | 2,245 | tilleggsstonader-sak | MIT License |
app/src/main/java/pl/elpassion/elabyrinth/MainActivity.kt | elpassion | 57,039,976 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Kotlin": 13, "Proguard": 1, "Java": 2, "XML": 12} | package pl.elpassion.elabyrinth
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v7.app.AppCompatActivity
import android.view.*
import android.widget.ImageView
import pl.elpassion.elabyrinth.core.Direction
import pl.elpassion.elabyrinth.core.Game
import pl.elpassion.elabyrint... | 1 | null | 1 | 1 | 72800b31ec78c22766ec9ce81e5c70c405d22708 | 2,830 | el-abyrinth-android | MIT License |
core/database/src/main/java/com/niyaj/database/model/ProductWiseOrderDto.kt | skniyajali | 644,752,474 | false | {"Kotlin": 2028840} | package com.niyaj.database.model
import androidx.room.Embedded
import androidx.room.Relation
import com.niyaj.model.ProductAndQuantity
data class ProductWiseOrderDto(
@Embedded
val cartOrderEntity: CartOrderEntity,
@Relation(
parentColumn = "orderId",
entityColumn = "orderId",
ent... | 12 | Kotlin | 0 | 3 | f068f418b7691ab2959e12ff6ec900c4bd92bfb5 | 445 | PoposRoom | Apache License 2.0 |
save-plugins/warn-plugin/src/commonMain/kotlin/org/cqfn/save/plugin/warn/WarnPlugin.kt | cqfn | 340,654,529 | false | null | package org.cqfn.save.plugin.warn
import org.cqfn.save.core.config.ExpectedWarningsFormat
import org.cqfn.save.core.config.TestConfig
import org.cqfn.save.core.files.createFile
import org.cqfn.save.core.files.readLines
import org.cqfn.save.core.logging.describe
import org.cqfn.save.core.logging.logDebug
import org.cqf... | 36 | Kotlin | 1 | 23 | fb8df249f04bd2a5dab838cc12650a5f490ad3e5 | 12,374 | save | MIT License |
buildSrc/src/main/kotlin/Module.kt | ShabanKamell | 283,243,423 | false | null | object AppModule {
const val app = ":app"
const val presentation = ":common:presentation"
const val core = ":common:core"
const val data = ":common:data"
const val bulletin = ":common:bulletin"
}
| 0 | Kotlin | 1 | 3 | 847ca9db8c0511a4a9b237d431ea1fc559ae43b0 | 216 | TheMovies | Apache License 2.0 |
archive/src/main/kotlin/org/openrs2/archive/ArchiveCommand.kt | openrs2 | 315,027,372 | false | null | package org.openrs2.archive
import com.github.ajalt.clikt.core.NoOpCliktCommand
import com.github.ajalt.clikt.core.subcommands
import org.openrs2.archive.cache.CacheCommand
import org.openrs2.archive.client.ClientCommand
import org.openrs2.archive.key.KeyCommand
import org.openrs2.archive.name.NameCommand
import org.o... | 56 | Kotlin | 2 | 8 | 12eba96055ba13e8a8e3ec0ad3be7d93b3dd5b1b | 677 | openrs2 | ISC License |
kotlite-kapt/src/main/kotlin/kotlite/kapt/sqlite/repository/models.kt | mfarsikov | 322,536,930 | false | null | package kotlite.kapt.sqlite.repository
import kotlite.aux.SqliteType
import kotlite.kapt.common.Pagination
import kotlite.kapt.model.db.TableMapping
import kotlite.kapt.model.klass.Klass
import kotlite.kapt.model.klass.QualifiedName
import kotlite.kapt.model.klass.Type
import kotlite.kapt.parser.KotlinType
data class... | 0 | Kotlin | 1 | 5 | 0f5eb9c801b9af4217c0203b7f0028edc6a0b941 | 2,071 | kotlite | Apache License 2.0 |
bars/src/main/java/kekmech/ru/bars/rights/RightsFragmentView.kt | NuvaltsevAA | 249,189,732 | true | {"Kotlin": 355287, "Shell": 46} | package kekmech.ru.bars.rights
import androidx.lifecycle.LifecycleOwner
interface RightsFragmentView : LifecycleOwner | 0 | null | 0 | 0 | 94bd394725e495a13f818e94f674a5353dd29bcb | 119 | mpeiapp | MIT License |
presentation/src/main/java/com/fredprojects/helloworld/presentation/features/jumps/JDCustomViews.kt | FredNekrasov | 832,214,231 | false | null | package com.fredprojects.helloworld.presentation.features.jumps
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.co... | 0 | null | 0 | 1 | b91002f5a2a07e6373bb30f424a72cd411886704 | 1,473 | jetpack-compose-projects | MIT License |
app/src/main/java/jp/kuluna/eventgridview/sample/MainActivity.kt | Qixingchen | 140,923,408 | false | null | package jp.kuluna.eventgridview.sample
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v7.app.AppCompatActivity
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import jp.kuluna.eventgridview.Eve... | 1 | null | 1 | 1 | a7d41e1f87944b4d66727845c11f9adfec63532e | 2,982 | EventGridView | MIT License |
app/src/main/java/eu/ottop/yamlauncher/AppActionMenu.kt | ottop | 841,162,872 | false | {"Kotlin": 112163} | package eu.ottop.yamlauncher
import android.content.Context
import android.content.Intent
import android.content.pm.ApplicationInfo
import android.content.pm.LauncherActivityInfo
import android.content.pm.LauncherApps
import android.net.Uri
import android.os.Handler
import android.os.Looper
import android.os.UserHandl... | 0 | Kotlin | 0 | 1 | 84c37734c9ae4a2a0123814ca78e74b094d81cca | 5,767 | yam_launcher | MIT License |
src/main/polkauction/core/model/dto/sidecar/FundInfoDto.kt | CrommVardek | 366,623,025 | false | null | package polkauction.core.model.dto.sidecar
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import kotlinx.serialization.Serializable
@Serializable
@JsonIgnoreProperties(ignoreUnknown = true)
data class FundInfoDto(val depositor: String, val verifier: VerifierDto?, val deposit: String, val raised: String,... | 0 | null | 2 | 2 | 58edc8e99c8cd148100497142af3f831664d796a | 450 | polk-auction-core | Apache License 2.0 |
repository/SoundRepository.kt | abhinavsingh1998 | 852,891,458 | false | {"Kotlin": 79019} | package com.example.soundmixer.repository
import androidx.lifecycle.LiveData
import com.example.soundmixer.data_base.Recording
import com.example.soundmixer.data_base.RecordingDao
import com.example.soundmixer.features.search.data_models.FileDetailsResponse
import com.example.soundmixer.features.search.data_models.Sea... | 0 | Kotlin | 0 | 0 | 705ee5c477735d25557797f3916e338497cdc64c | 3,290 | Sound_mixer | MIT License |
NavigationAdvancedSample/app/src/main/java/com/example/android/navigationadvancedsample/login/LoginFragment.kt | solidogen | 402,474,910 | true | {"Kotlin": 521042, "Java": 240380, "Shell": 2978, "RenderScript": 2642} | package com.example.android.navigationadvancedsample.login
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.example.android.navigationadvancedsample.R... | 0 | Kotlin | 0 | 1 | 78a25703d73394fa54fe82909aaf52173ee0a0af | 1,225 | architecture-components-samples | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/codepipeline/actions/CodeCommitSourceActionDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.codepipeline.actions
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.codepipeline.actions.CodeCommitSourceAction
@Generated
public fun buildCodeCommitSourceAction(initializer: @AwsCdkDsl... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 465 | aws-cdk-kt | Apache License 2.0 |
native/commonizer/tests/org/jetbrains/kotlin/descriptors/commonizer/core/RootCommonizerTest.kt | kozaxinan | 333,718,537 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.descriptors.commonizer.core
import org.jetbrains.kotlin.builtins.DefaultBuiltIns... | 1 | null | 1 | 1 | f49cf2d5cabf8fb9833ec95e1151a00b8b53d087 | 6,422 | kotlin | Apache License 2.0 |
app/src/main/kotlin/tech/hombre/bluetoothchatter/data/database/ChatDatabase.kt | HombreTech | 470,059,579 | false | null | package tech.hombre.bluetoothchatter.data.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import tech.hombre.bluetoothchatter.data.entity.ChatMessage
import tech.hombre.bluetoothchatter.data.entity.Conversation
@Database(entities = [(ChatMessage::class), (C... | 1 | null | 0 | 1 | 772d1d260a471ff2b4221a96c365d58ea05ef10f | 535 | BluetoothChat | Apache License 2.0 |
app/src/main/java/com/developers/currency_exchange/domain/repository/BalanceChanger.kt | KyrBabenko | 734,741,533 | false | {"Kotlin": 60955} | package com.developers.currency_exchange.domain.repository
import java.math.BigDecimal
interface BalanceChanger {
suspend fun doTransaction(
sell: String,
sellAmount: BigDecimal,
receive: String,
receiveAmount: BigDecimal
)
} | 0 | Kotlin | 0 | 0 | a13936bbc901e391561dcbc179fac89d21ab7b00 | 268 | currency_converter | Apache License 2.0 |
app/src/main/java/du/ducs/thoughtboard/MessageViewModel.kt | joshidipesh12 | 443,542,898 | false | {"Kotlin": 46606} | package du.ducs.messageboard
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.auth.ktx.auth
import com.google.firebase.firestore.DocumentChange
import com.goog... | 0 | Kotlin | 11 | 5 | 57fd2b2ee866aa0a464093f501295a80521a2b4f | 3,364 | ThoughtBoard-DUCS | MIT License |
adaptive-lib-auto/src/commonTest/kotlin/fun/adaptive/auto/internal/frontend/FileFrontendTest.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 2318583, "Java": 24560, "HTML": 7875, "JavaScript": 3880, "Shell": 687} | package `fun`.adaptive.auto.internal.frontend
import `fun`.adaptive.auto.PropertyTestSetup
import `fun`.adaptive.auto.backend.TestData
import `fun`.adaptive.utility.ensureTestPath
import `fun`.adaptive.utility.testPath
import `fun`.adaptive.utility.waitForReal
import kotlinx.coroutines.test.runTest
import kotlinx.io.f... | 35 | Kotlin | 0 | 3 | e7d8bb8682a6399675bc75d2976b862268d20fb5 | 1,585 | adaptive | Apache License 2.0 |
app/src/main/java/com/jamesjmtaylor/blecompose/Scanning/PermissionView.kt | jamesjmtaylor | 124,570,579 | false | null | package com.jamesjmtaylor.blecompose.Scanning
import android.content.Context
import android.content.pm.PackageManager
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.runtime.*
import androidx.core.content.Contex... | 0 | Kotlin | 0 | 0 | 4f578c5ffbcab4919d561e5b235f58802652e75e | 1,270 | BLE-aOS | Apache License 2.0 |
src/main/kotlin/personalchallenges/RandomSelector.kt | saishaddai | 840,608,325 | false | {"Kotlin": 44825} | package com.saishaddai.personalchallenges
import kotlin.random.Random.Default.nextInt
/**
* This is the whole logic of random selector
* The idea behind is to select random lines of random files.
*
* Files: Name of files available in a local data system
* each file as the Total Number of Lines (not blanks) in it... | 0 | Kotlin | 0 | 0 | 9b5ab0e9d32e8a3db4aee00e58a9c203c7e0f122 | 3,262 | KotlinChallenges | MIT License |
platform/workspace/storage/testEntities/testSrc/com/intellij/platform/workspace/storage/testEntities/entities/ParentAndChildWithNulls.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.platform.workspace.storage.testEntities.entities
import kotlin.jvm.JvmName
import kotlin.jvm.JvmOverloads
import kotlin.jvm.JvmStatic
import com.intellij.platform.workspace.stor... | 249 | null | 5023 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,926 | intellij-community | Apache License 2.0 |
wire-tests/src/commonTest/kotlin/com/squareup/wire/KotlinMapTest.kt | square | 12,274,147 | false | null | /*
* Copyright 2018 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 agreed to in w... | 163 | null | 570 | 4,244 | 74715088d7d2ee1fdd6d3e070c8b413eefc7e5bd | 2,134 | wire | Apache License 2.0 |
if-rpc/src/main/kotlin/com/interactionfields/rpc/interceptor/FeignClientInterceptor.kt | Ashinch | 397,369,377 | false | null | package com.interactionfields.rpc.interceptor
import feign.RequestInterceptor
import feign.RequestTemplate
import org.springframework.stereotype.Component
import org.springframework.web.context.request.RequestContextHolder
import org.springframework.web.context.request.ServletRequestAttributes
/**
* Request intercep... | 0 | Kotlin | 0 | 0 | 997910700454d7e36242a7871292535ca5b62ca6 | 857 | interaction-fields | Apache License 2.0 |
android-uitests/testData/iosched/shared/src/main/java/com/google/samples/apps/iosched/shared/domain/sessions/LoadUserSessionsByDayUseCase.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 5,587 | android | Apache License 2.0 |
src/main/kotlin/me/nobaboy/nobaaddons/features/chatcommands/impl/dm/PartyMeCommand.kt | nobaboy | 867,566,026 | false | {"Kotlin": 99251} | package me.nobaboy.nobaaddons.features.chatcommands.impl.dm
import me.nobaboy.nobaaddons.config.NobaConfigManager
import me.nobaboy.nobaaddons.features.chatcommands.ChatContext
import me.nobaboy.nobaaddons.features.chatcommands.IChatCommand
import me.nobaboy.nobaaddons.utils.Utils
import me.nobaboy.nobaaddons.utils.ch... | 0 | Kotlin | 1 | 0 | 2b337ee10c5f3668dc33ce0a5ab92501de529645 | 751 | NobaAddons | The Unlicense |
app/src/main/java/cn/tanghz17/bilidata/ui/upData/VolleySingleton.kt | TANGhz17 | 364,589,086 | false | null | package cn.tanghz17.bilidata.ui.home
import android.content.Context
import com.android.volley.RequestQueue
import com.android.volley.toolbox.Volley
class VolleySingleton private constructor(context: Context){
companion object {
private var INSTANCE : VolleySingleton?=null
fun getInstance(context: ... | 0 | JavaScript | 2 | 3 | 86544a53f15ad436509b036a549ef22862558d9f | 572 | BiliData | MIT License |
src/main/kotlin/no/nav/klage/config/KafkaConfiguration.kt | navikt | 261,756,831 | false | null | package no.nav.klage.config
import no.nav.klage.getLogger
import no.nav.slackposter.Severity
import no.nav.slackposter.SlackClient
import org.apache.kafka.clients.CommonClientConfigs.SECURITY_PROTOCOL_CONFIG
import org.apache.kafka.clients.consumer.ConsumerConfig
import org.apache.kafka.clients.producer.ProducerConfig... | 0 | Kotlin | 0 | 0 | a4d0fce3b48f0f1b40f7d882d6f48bb92509e37c | 5,208 | klage-arkiver-journalpost | MIT License |
plugin-bsp/workspacemodel/src/main/kotlin/org/jetbrains/plugins/bsp/workspacemodel/entities/BspEntitySource.kt | JetBrains | 826,262,028 | false | {"Kotlin": 2427821, "Starlark": 355702, "Java": 168351, "Scala": 36560, "Python": 34754, "Lex": 14305, "Dockerfile": 7603, "Shell": 6429, "HTML": 1310, "Rust": 680, "Go": 428, "C++": 113} | package org.jetbrains.plugins.bsp.workspacemodel.entities
import com.intellij.platform.workspace.storage.EntitySource
public object BspEntitySource : EntitySource
public object BspDummyEntitySource : EntitySource
| 1 | Kotlin | 11 | 26 | 3038b5535a382a070428b2af27813c56aaf0d1de | 216 | hirschgarten | Apache License 2.0 |
app/src/main/java/com/kekulta/events/presentation/ui/theme/Theme.kt | kekulta | 817,411,794 | false | null | package com.kekulta.events.ui.theme
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
const val scaleFactor = 1.25
@Composable
fun EventsTheme(
content: @Composable () -> Unit
) {
CompositionLocalProvider(
... | 0 | null | 0 | 7 | b2b08eb781e27927354109d638d89c76ffe024be | 841 | Events | MIT License |
frogonewsapi/src/main/java/com/frogobox/frogonewsapi/data/response/ArticleResponse.kt | amirisback | 245,812,111 | false | null | package com.frogobox.frogoconsumeapi.news.response
import com.frogobox.frogoconsumeapi.news.model.Article
import com.google.gson.annotations.SerializedName
/**
* Created by Faisal Amir
* FrogoBox Inc License
* =========================================
* NewsApi
* Copyright (C) 15/03/2020.
* All rights reserved
... | 2 | null | 5 | 9 | 2881f54f4c9b89ac24aa26f923f635e6a3cc098f | 1,013 | consumable-code-news-api | Apache License 2.0 |
app/src/main/java/com/example/c323p6notes/ConfirmDeleteDialogFragment.kt | kuzeybektas | 703,330,136 | false | {"Kotlin": 14608} | package com.example.notesapp
import android.app.AlertDialog
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.DialogFragment
class ConfirmDeleteDialogFragment(val noteId:String, val clickListener: (noteId:String)-> Unit):DialogFragme... | 0 | Kotlin | 0 | 0 | b6216bfb9fb5adf1948d4b0d9bc2590d1baa4424 | 1,404 | NotesApp | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/addNoinline/withCrossinline.kt | ingokegel | 72,937,917 | false | null | // "Add 'noinline' to parameter 'lambda'" "true"
// WITH_STDLIB
inline fun inlineFun(crossinline lambda: () -> Unit) {
<caret>lambda.toString()
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddInlineModifierFix | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 227 | intellij-community | Apache License 2.0 |
app/src/main/java/com/noomit/radioalarm02/ui/radio_browser/home/RadioBrowserFragment.kt | tinted-knight | 292,891,478 | false | null | package com.noomit.radioalarm02.ui.radio_browser.home
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.ScrollView
import androidx.navigation.fragment.findNavController
import androidx.navigation.navGraphViewModels
import com.noomit.domain.server_manager.ServerState
... | 0 | null | 0 | 1 | 32aab4a755daac92973a74509cf2f372ab4537c5 | 3,974 | RadioAlarm04 | Apache License 2.0 |
app/src/main/java/io/github/gusriil/moviemagnet/widget/MarginDecoration.kt | superosystem | 479,150,681 | false | {"Kotlin": 225959, "Java": 7644} | package io.github.gusriil.moviemagnet.widget
import android.content.Context
import android.graphics.Rect
import androidx.recyclerview.widget.RecyclerView
import android.view.View
import io.github.gusriil.moviemagnet.R
class MarginDecoration(context: Context) : RecyclerView.ItemDecoration() {
private val margin: I... | 0 | Kotlin | 0 | 3 | 91a2d005aab478bb5c864210fe0cbd2286daf2ad | 571 | MovieMagnet | MIT License |
library/src/darwinCommonMain/kotlin/Wallet.kt | DrewCarlson | 228,961,452 | false | null | /*
* Created by <NAME>.
* Copyright (c) 2021 Breadwinner AG. All right reserved.
*
* See the LICENSE file at the project root for license information.
* See the CONTRIBUTORS file at the project root for a list of contributors.
*/
package com.blockset.walletkit
import walletkit.core.*
import walletkit.core.WKWal... | 4 | Kotlin | 1 | 1 | 6a6b20a69e6307d89ad7ce3494fb794411fb7e76 | 5,087 | WalletKit-Kotlin | The Unlicense |
domain/src/main/java/com/telen/easylineup/domain/model/TeamType.kt | kaygenzo | 177,859,247 | false | null | /*
Copyright (c) <NAME>. 2010-2024
*/
package com.telen.easylineup.domain.model
import android.content.Context
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import com.telen.easylineup.domain.R
/**
* @property id
* @property position
* @property title
* @property sportResId
* @... | 1 | null | 1 | 1 | 152fa21de470e81d368b26a4f18de5d5198ef8fc | 2,000 | EasyLineUp | Apache License 2.0 |
CryptoAC/src/commonMain/kotlin/eu/fbk/st/cryptoac/core/CoreParameters.kt | stfbk | 292,768,224 | false | {"JavaScript": 22741621, "Kotlin": 2367601, "Shell": 14642, "Batchfile": 9481, "SCSS": 6830, "CSS": 5868, "Open Policy Agent": 2902, "HTML": 984, "Assembly": 419} | package eu.fbk.st.cryptoac.core
import eu.fbk.st.cryptoac.parameters.ServiceParameters
import eu.fbk.st.cryptoac.SafeRegex
import eu.fbk.st.cryptoac.model.unit.User
import eu.fbk.st.cryptoac.crypto.CryptoType
import eu.fbk.st.cryptoac.ac.opa.ACServiceRBACOPAParameters
import eu.fbk.st.cryptoac.ac.ACServiceParameters
i... | 0 | JavaScript | 0 | 2 | 13958f84e7e8c5e40a78afc5c737e6443bc1ac37 | 7,554 | CryptoAC | Apache License 2.0 |
data/model/src/dog/del/data/model/ApiCredential.kt | dogbin | 117,153,857 | false | null | package dog.del.data.model
import dog.del.commons.Date
interface ApiCredential<U : User<*>> {
// We never store actual, full api keys
var keyHash: String
// User chosen name for the key to easily identify it in the dashboard
var name: String
// The user this key belongs to
var user: U
//... | 15 | null | 51 | 361 | ab9db4a8751e9b870a02a3867899c0f67fe50c9a | 536 | dogbin | MIT License |
projects/core/koin-core/src/commonTest/kotlin/org/koin/Components.kt | InsertKoinIO | 93,515,203 | false | null | package non_official.pokeum.debris
class Simple {
class ComponentA
class ComponentB(val a: ComponentA)
class ComponentC(val b: ComponentB)
interface ComponentInterface1
interface ComponentInterface2
class Component1 : ComponentInterface1, ComponentInterface2
class Component2 : ComponentInt... | 79 | null | 711 | 8,934 | f870a02fd32a2cf1ff8b69406ebf555c26ffe39f | 804 | koin | Apache License 2.0 |
trustagent/src/com/google/android/libraries/car/trustagent/util/TimeProvider.kt | google | 415,118,653 | false | {"Kotlin": 865761, "Java": 244253} | // Copyright 2021 Google LLC
//
// 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 | Kotlin | 5 | 18 | 912fd5cff1f08577d679bfaff9fc0666b8093367 | 924 | android-auto-companion-android | Apache License 2.0 |
pumps/src/main/kotlin/fund/cyber/pump/bitcoin/BitcoinKafkaStorageActionTemplateFactory.kt | rezon99 | 118,602,344 | true | {"Kotlin": 180690, "Shell": 190} | package fund.cyber.pump.bitcoin
import fund.cyber.node.common.Chain
import fund.cyber.node.common.ChainEntity.TRANSACTION
import fund.cyber.node.kafka.PumpEvent
import fund.cyber.node.kafka.PumpEvent.DROPPED_BLOCK
import fund.cyber.node.kafka.PumpEvent.NEW_BLOCK
import fund.cyber.node.kafka.entityTopic
import fund.cyb... | 0 | Kotlin | 0 | 0 | d2248b89a2192432a3af47d68a51c60d0ab16b3c | 1,288 | cyber-search | MIT License |
Desafios em Kotlin/1164 - Número Perfeito/Main.kt | lucasmarcuzo | 386,427,361 | false | {"Text": 5, "Markdown": 6, "C#": 178, "Git Attributes": 1, "JSON": 3, "SQL": 49, "Kotlin": 174, "Java": 177, "XML": 8, "Ignore List": 2, "JavaScript": 163} | import java.util.*
fun main(args: Array<String>) {
val scan = Scanner(System.`in`)
val x = scan.nextInt()
for (i in 0 until x) {
var valor = 0
var total = 0
valor = scan.nextInt()
for (j in 1 until valor) {
if (valor % j == 0) {
total += j
... | 0 | Java | 12 | 22 | 0238d847dac30cabeccbccb657da96128c2d5a5c | 513 | Beecrowd | MIT License |
vito/core-impl/src/main/java/com/facebook/fresco/vito/core/impl/ProgressLayerHandler.kt | facebook | 31,533,997 | false | {"Java": 2895425, "Kotlin": 1024596, "C++": 183862, "C": 53836, "Makefile": 10411, "Python": 10096, "Shell": 840} | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.vito.core.impl
import android.content.res.Resources
import android.graphics.drawable.Drawable
import... | 233 | Java | 3774 | 17,073 | dbb46cebfffeeabf289db5f4a8d64950ba1e020d | 1,809 | fresco | MIT License |
ui/src/commonMain/kotlin/kosh/ui/transaction/NetworkFeesCard.kt | niallkh | 855,100,709 | false | {"Kotlin": 1813876, "Swift": 594} | package kosh.ui.transaction
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.material3.Out... | 0 | Kotlin | 0 | 3 | f48555a563dfee5b07184771a6c94c065765d570 | 8,041 | kosh | MIT License |
src/main/year_2017/day02/day03.kt | rolf-rosenbaum | 572,864,107 | false | null | package year_2017.day02
import readInput
fun part1(input: List<String>): Int = input.map { line ->
line.split(" ").map { it.toInt() }.sortedDescending()
}.sumOf { it.first() - it.last() }
fun part2(input: List<String>): Int = input.map { line ->
line.split(" ").map { it.toInt() }.sortedDescending()
}.sumOf {... | 0 | Kotlin | 0 | 2 | 81c84a1305e0af1f76d6c1394b642156ba7c008c | 736 | aoc-2022 | Apache License 2.0 |
app/src/main/java/com/example/counts/EditFragment.kt | jirois | 262,518,092 | false | null | package com.example.counts
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import android.widget.TextView
import androidx.databinding.DataBindingUtil
import androidx.navigation.findNavController
import com.example.counts.databinding.EditFragmentBinding
/**
* A simple [Fragment] ... | 1 | Kotlin | 0 | 0 | 0c65db514806ab1518be5e40db08e9e03f35a451 | 1,328 | counts | MIT License |
app/src/main/java/com/example/counts/EditFragment.kt | jirois | 262,518,092 | false | null | package com.example.counts
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import android.widget.TextView
import androidx.databinding.DataBindingUtil
import androidx.navigation.findNavController
import com.example.counts.databinding.EditFragmentBinding
/**
* A simple [Fragment] ... | 1 | Kotlin | 0 | 0 | 0c65db514806ab1518be5e40db08e9e03f35a451 | 1,328 | counts | MIT License |
test/src/me/anno/tests/ui/ScrollbarOverdraw.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.tests.ui
import me.anno.config.DefaultConfig.style
import me.anno.studio.StudioBase
import me.anno.ui.base.groups.PanelList
import me.anno.ui.base.scrolling.ScrollPanelY
import me.anno.ui.base.text.TextPanel
import me.anno.ui.debug.TestStudio.Companion.testUI3
fun main() {
testUI3("Scrollbar Overd... | 0 | Kotlin | 2 | 9 | 94bc7c74436aa567ec3c19f386dd67af0f1ced00 | 571 | RemsEngine | Apache License 2.0 |
app/src/main/java/dev/alibagherifam/mentha/theme/Typography.kt | alibagherifam | 586,387,395 | false | null | package com.alibagherifam.mentha.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import com.alibagher... | 1 | Kotlin | 1 | 9 | 35283da73663fbe24a0b15d75a8cfbeb4e203814 | 2,938 | mentha | Apache License 2.0 |
stripe/src/main/java/com/stripe/android/view/DateUtils.kt | swdreams | 235,817,887 | false | {"Kotlin": 190728, "Java": 131412} | package com.seamlesspay.ui.utils
import androidx.annotation.IntRange
import androidx.annotation.Size
import androidx.annotation.VisibleForTesting
import java.util.Calendar
internal object DateUtils {
private const val MAX_VALID_YEAR = 9980
/**
* Checks to see if the string input represents a valid mont... | 11 | Kotlin | 1 | 2 | e43ccf75a8c7972fab95098757f5f5cae6aa40b1 | 6,517 | stripe-android | MIT License |
kotlin/src/main/kotlin/net/timafe/angkor/domain/enums/EntityType.kt | developeramarish | 421,096,390 | true | {"TypeScript": 249912, "Kotlin": 235138, "Go": 98214, "HTML": 71679, "HCL": 57246, "Makefile": 40023, "Shell": 31220, "SCSS": 27983, "Dockerfile": 4029, "JavaScript": 3892, "PLpgSQL": 2280, "CSS": 1037} | package net.timafe.angkor.domain.enums
import net.timafe.angkor.config.annotations.ManagedEntity
import java.util.*
enum class EntityType(val path: String) {
DISH("dishes"),
PLACE("places"),
NOTE("notes"),
AREA("areas"),
USER("users"),
LINK("links"),
VIDEO("videos"), // prefix (still) /lin... | 0 | null | 0 | 0 | f074d69eff8ba6768b5ecb0f9196e279ccb7bf7e | 1,156 | angkor | Apache License 2.0 |
src/main/java/be/hize/nes/features/misc/Facing.kt | superhize | 668,339,493 | false | {"Kotlin": 159424, "Java": 33860} | package be.hize.nes.features.misc
import at.hannibal2.skyhanni.events.LorenzTickEvent
import at.hannibal2.skyhanni.utils.LorenzUtils
import be.hize.nes.NES
import be.hize.nes.events.GuiRenderEvent
import be.hize.nes.features.misc.coordinate.Facing
import be.hize.nes.utils.RenderUtils.renderStrings
import net.minecraft... | 1 | Kotlin | 0 | 3 | 6d91b042c8c0822d5f1359bf7a92b98ae5da338e | 1,264 | NES-public | The Unlicense |
v2-model/src/commonMain/kotlin/com/bselzer/gw2/v2/model/superadventurebox/zone/SabZone.kt | Woody230 | 388,820,096 | false | {"Kotlin": 750899} | package com.bselzer.gw2.v2.model.superadventurebox.zone
import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class SabZone(
/**
* The id of the world.
*/
@SerialName("id")
override val id: SabZon... | 2 | Kotlin | 0 | 2 | 32f1fd4fc4252dbe886b6fc0f4310cf34ac2ef27 | 673 | GW2Wrapper | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.