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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data/db/src/commonMain/kotlin/io/github/droidkaigi/confsched2020/data/db/StaffDatabase.kt | DroidKaigi | 202,978,106 | false | null | package io.github.droidkaigi.confsched2020.data.db
import io.github.droidkaigi.confsched2020.data.api.response.StaffResponse
import io.github.droidkaigi.confsched2020.data.db.entity.StaffEntity
import kotlinx.coroutines.flow.Flow
interface StaffDatabase {
fun staffs(): Flow<List<StaffEntity>>
suspend fun save... | 46 | Kotlin | 331 | 785 | 4c5533e4611d4bf6007284dd1f61db2fc92eb0ae | 351 | conference-app-2020 | Apache License 2.0 |
book-service/src/main/kotlin/com/github/nenadjakic/library/book/entity/Book.kt | nenadjakic | 803,872,281 | false | {"Kotlin": 37185, "TypeScript": 13061, "HTML": 2991, "SCSS": 2530, "Dockerfile": 1722, "Shell": 1290, "CSS": 231} | package com.github.nenadjakic.library.book.entity
import jakarta.persistence.*
import org.hibernate.annotations.SoftDelete
import org.hibernate.annotations.SoftDeleteType
import java.util.*
@Entity
@Table(name = "book")
@SoftDelete(columnName = "deleted", strategy = SoftDeleteType.DELETED)
class Book : Auditable<Stri... | 0 | Kotlin | 0 | 1 | db38cf00c6996b7af77e36339022ca5930c0039e | 1,112 | library-management | MIT License |
compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrCompositeImpl.kt | JakeWharton | 99,388,807 | true | null | /*
* Copyright 2010-2016 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 | Kotlin | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,468 | kotlin | Apache License 2.0 |
ksoup/src/commonTest/kotlin/com/fleeksoft/ksoup/nodes/PositionTest.kt | fleeksoft | 719,100,459 | false | null | package com.fleeksoft.ksoup.nodes
import com.fleeksoft.ksoup.Ksoup
import com.fleeksoft.ksoup.parser.Parser
import com.fleeksoft.ksoup.select.NodeTraversor
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertNotNull
import kotlin.test.assertTrue
/**
* Funct... | 4 | null | 2 | 62 | 911a3cfcd7062ae5f57039d1d50c9011b71d13eb | 7,387 | ksoup | Apache License 2.0 |
ToDo/app/src/main/java/com/example/hassanusman/getdisciplined/ui/base/BasePresenter.kt | HassanUsman | 111,360,831 | false | {"Ignore List": 2, "Markdown": 2, "Gradle": 3, "Java Properties": 3, "Shell": 1, "Batchfile": 1, "Proguard": 1, "Java": 2, "XML": 102, "Kotlin": 74, "JSON": 3, "Text": 1} | package com.example.hassanusman.getdisciplined.ui.base
import com.example.hassanusman.getdisciplined.data.DataManager
import com.example.hassanusman.getdisciplined.utils.rx.SchedulerProvider
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import javax.inject.Inject
/**
* Created by... | 1 | Kotlin | 5 | 62 | 362bdc4576928299726c0feeb276782ae85fd0f0 | 780 | ToDo | Apache License 2.0 |
ui/ui-core/src/test/java/androidx/ui/engine/geometry/RRectTest.kt | FYI-Google | 258,765,297 | false | null | /*
* Copyright 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 applica... | 0 | null | 1 | 6 | b9cd83371e928380610719dfbf97c87c58e80916 | 2,396 | platform_frameworks_support | Apache License 2.0 |
shared/src/commonMain/kotlin/App.kt | mrjoechen | 669,421,109 | false | {"Kotlin": 436969, "Java": 23934, "Swift": 580, "Shell": 228} | import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import com.alpha.showcase.common.ui.MainNavHost
import com.alpha.showcase.common.ui.theme.MyApplicat... | 0 | Kotlin | 0 | 0 | 6b3c425ac81fb1eb464f5c9351a4efb6993cbd27 | 516 | Showcase-multiplatform | Apache License 2.0 |
app/src/main/java/com/loftechs/sample/common/event/CallCDREvent.kt | LoFTechs | 355,161,561 | false | {"Kotlin": 443779, "Java": 1512} | package com.loftechs.sample.common.event
import com.loftechs.sample.call.list.CallLogData
data class CallCDREvent(
val receiverID: String,
val callLogData: CallLogData,
)
| 0 | Kotlin | 1 | 1 | 1b19f8c779e2e051b326e3c491a262c76d5df731 | 189 | LTSample-Android-Kotlin | MIT License |
app/src/main/java/org/ddosolitary/okcagent/ssh/SshAgentService.kt | DDoSolitary | 197,309,939 | false | null | package org.ddosolitary.okcagent.ssh
import android.content.Intent
import android.util.Base64
import android.util.Log
import com.bugsnag.android.Bugsnag
import org.ddosolitary.okcagent.AgentService
import org.ddosolitary.okcagent.R
import org.ddosolitary.okcagent.showError
import org.openintents.ssh.authentication.Ssh... | 17 | Kotlin | 8 | 99 | 817bc018b59f7fbba992e98601f7c72278ce9acd | 3,631 | OkcAgent | MIT License |
src/test/kotlin/io/github/lobodpav/spock/test/idea/SpockCodeInsightFixtureTestCase.kt | lobodpav | 671,811,601 | false | null | package io.github.lobodpav.spock.test.idea
import com.intellij.openapi.vfs.VirtualFileManager
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.fixtures.JavaCodeInsightTestFixture
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
/**
* Since Spock... | 0 | null | 0 | 2 | f8acf0da8ef61c8d70681a16ab97473fcb84261d | 1,665 | spock-intellij-plugin | Apache License 2.0 |
api/src/main/java/com/gromyk/api/services/SearchService.kt | YGromyk | 192,622,071 | false | null | package com.gromyk.api.services
import com.gromyk.api.dtos.search.SearchArtistResponse
import retrofit2.http.GET
import retrofit2.http.Query
interface SearchService {
@GET("?method=artist.search")
suspend fun searchArtist(@Query("artist") artist: String): SearchArtistResponse?
} | 1 | null | 1 | 1 | 3d0aab86f7372066b08fc6ebdfea8e08e06f4f90 | 289 | lastFM.AF | Apache License 2.0 |
src/main/kotlin/insyncwithfoo/ryecharm/configurations/uv/Configurations.kt | InSyncWithFoo | 849,672,176 | false | {"Kotlin": 264146, "Python": 3171, "HTML": 624} | package insyncwithfoo.ryecharm.configurations.uv
import insyncwithfoo.ryecharm.Commented
import insyncwithfoo.ryecharm.Keyed
import insyncwithfoo.ryecharm.MillisecondsOrNoLimit
import insyncwithfoo.ryecharm.configurations.Copyable
import insyncwithfoo.ryecharm.configurations.DisplayableState
import insyncwithfoo.ryech... | 2 | Kotlin | 1 | 7 | c1a04b622fbfb02a2fb155d8c9aa069520eda23e | 3,551 | ryecharm | MIT License |
BaseDebug/src/main/java/com/bihe0832/android/base/debug/tab/bottom/DebugSimpleBottomTabFragment.kt | AndroidAppFactory | 222,415,705 | false | null | package com.bihe0832.android.base.debug.tab.bottom
import android.view.View
import com.bihe0832.android.base.debug.R
import com.bihe0832.android.base.debug.dialog.DebugDialogFragment
import com.bihe0832.android.base.debug.download.DebugDownloadFragment
import com.bihe0832.android.base.debug.file.DebugFileFragment
impo... | 0 | null | 21 | 72 | e11cbca06d092a3bdd5a58dd4a5260b1f4a208d8 | 1,817 | AndroidAppFactory | MIT License |
detekt-test/src/main/kotlin/io/gitlab/arturbosch/detekt/test/CompileExtensions.kt | mlegy | 212,993,385 | true | {"Kotlin": 1474242, "Groovy": 3832, "Shell": 1055, "HTML": 698} | package io.gitlab.arturbosch.detekt.test
import java.nio.file.Path
/**
* Use this method if you define a kt file/class as a plain string in your test.
*/
fun compileContentForTest(content: String) = KtTestCompiler.compileFromContent(content)
/**
* Use this method if you test a kt file/class in the test resources.... | 3 | null | 0 | 1 | c37812e0b8af0ec304fcefce5152dfc9845d52c8 | 387 | detekt | Apache License 2.0 |
test-common/src/commonMain/kotlin/io/github/jan/supabase/testing/KtorUtils.kt | supabase-community | 495,084,592 | false | {"Kotlin": 691880} | package io.github.jan.supabase.testing
import io.ktor.client.engine.mock.toByteArray
import io.ktor.http.content.OutgoingContent
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
suspend fun OutgoingContent.toJsonElement(): JsonElement {
return Json.decodeFromString(toByteArray(... | 19 | Kotlin | 31 | 291 | 7421ef38051610eca9002aaebe4b5a437b1da7d1 | 341 | supabase-kt | MIT License |
ktorfit-lib-common/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/builtin/KtorfitDefaultConverterFactory.kt | Foso | 203,655,484 | false | null | package de.jensklingenberg.ktorfit.converter.builtin
import de.jensklingenberg.ktorfit.Ktorfit
import de.jensklingenberg.ktorfit.Response
import de.jensklingenberg.ktorfit.converter.Converter
import de.jensklingenberg.ktorfit.internal.TypeData
import io.ktor.client.call.*
import io.ktor.client.statement.*
/**
* Conv... | 26 | null | 30 | 985 | 77bdb11430e2c787eb69e3c48780eea99e8a75b4 | 2,076 | Ktorfit | Apache License 2.0 |
app/src/main/java/com/stevesoltys/seedvault/plugins/saf/DocumentsProviderStoragePlugin.kt | LineageOS | 293,909,131 | false | null | /*
* SPDX-FileCopyrightText: 2020 The Calyx Institute
* SPDX-License-Identifier: Apache-2.0
*/
package com.stevesoltys.seedvault.plugins.saf
import android.content.Context
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Environment
import android.os.StatFs
import android.provider.... | 95 | null | 68 | 28 | c906fd7834ed027fbc6c4dacea1b15525a882013 | 7,523 | android_packages_apps_Seedvault | Apache License 2.0 |
feature-info/src/main/java/com/paulrybitskyi/gamedge/feature/info/presentation/widgets/screenshots/GameInfoScreenshotUiModelMapper.kt | mars885 | 289,036,871 | false | {"Kotlin": 1318694, "Shell": 593} | /*
* 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 | Kotlin | 63 | 659 | 69b3ada08cb877af9b775c6a4f3d9eb1c3470d9c | 1,880 | gamedge | Apache License 2.0 |
app/src/main/java/com/example/rangkul/ui/createpost/CreatePostActivity.kt | ferry582 | 664,228,510 | false | null | package com.example.rangkul.ui.createpost
import android.app.Activity
import android.app.Dialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.... | 0 | Kotlin | 1 | 0 | b55700d33903a5cd992d181ef7f07c35829c1f23 | 14,678 | rangkul_app | MIT License |
src/main/kotlin/kotlinx/kover/api/KoverTaskExtension.kt | Kotlin | 394,574,917 | false | null | /*
* Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("RedundantVisibilityModifier")
package kotlinx.kover.api
import org.gradle.api.model.*
import org.gradle.api.provider.*
import org.gradle.api.tasks.*
import java.io.*
/**
* Extension for Kov... | 34 | Kotlin | 14 | 520 | e1f3fbc4232216bf55b3c43ca0ad193e639afd68 | 1,788 | kotlinx-kover | Apache License 2.0 |
App/app/src/main/java/com/apps/travel_app/ui/components/FullHeightBottomSheet.kt | robertodavinci | 427,414,757 | false | null | package com.apps.travel_app.ui.components
import android.content.res.Resources
import android.util.DisplayMetrics
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.layout.*
import android... | 0 | Kotlin | 0 | 1 | bf71efbc93c84f25492acbd0dd96d9d9a15bc0d4 | 7,116 | android-dev-travel-app | MIT License |
app/src/main/java/com/msg/gfo_v2/gfo/data/remote/dto/datasource/auth/request/CommentRequest.kt | Project-GFO | 564,264,624 | false | null | package com.msg.gfo_v2.gfo.data.remote.dto.datasource.auth.request
import com.google.gson.annotations.SerializedName
data class CommentRequest(
@SerializedName("comment")
var comment: String
)
| 1 | Kotlin | 0 | 0 | 157dd12cbcbef3755c21c38cd0e1457f90bf12b4 | 203 | GFO-Android | MIT License |
generating-gradle-plugin/src/com/hendraanggrian/generating/JsonRSpec.kt | hendraanggrian | 105,137,170 | false | null | package com.hendraanggrian.generating
import org.gradle.api.provider.Property
/** Settings for customizing the field generation of json file. */
@RSpecMarker
interface JsonRSpec {
/**
* Determine whether adapter should also write inner json object.
* Default is false.
*/
var recursive: Propert... | 0 | Kotlin | 0 | 2 | 42e048980c1a694d095d82552155417e1bda81f2 | 491 | generating-gradle-plugin | Apache License 2.0 |
RonChatting/src/main/java/com/ron/chatting/models/RonMessageModel.kt | ronil-gwalani | 759,772,759 | false | {"Kotlin": 64291} | package com.ron.chatting.models
internal data class RonMessageModel(
val message: String?=null,
val timeStamp: String?=null,
val senderId: String?=null,
val messageId: String?=null,
)
| 0 | Kotlin | 0 | 0 | d5ef064e3fc94cb2f30f075d37ea967b92f0d55a | 201 | Ron-Chatting | MIT License |
core/ui_kit/lib/src/main/java/com/shevelev/wizard_camera/core/ui_kit/lib/buttons/PulseImageButton.kt | AlShevelev | 262,626,159 | false | null | package com.shevelev.wizard_camera.main_activity.view.widgets.pulse_image_button
import android.animation.AnimatorSet
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.drawable.VectorDrawable
import android.util.AttributeSet
import android.widget.ImageView
import com.shevele... | 1 | null | 5 | 53 | 61adcb56875f38ec92b66a686b9449efef580f74 | 2,783 | WizardCamera | Apache License 2.0 |
springmvc-automapping/src/main/kotlin/nxcloud/ext/springmvc/automapping/spring/AutoMappingRequestHandlerRegistrar.kt | Sunshow | 588,022,200 | false | {"Kotlin": 53322} | package nxcloud.ext.springmvc.automapping.spring
import io.github.oshai.kotlinlogging.KotlinLogging
import nxcloud.ext.springmvc.automapping.context.AutoMappingContext
import nxcloud.ext.springmvc.automapping.spi.AutoMappingBeanRequestResolver
import org.springframework.beans.factory.annotation.Autowired
import org.sp... | 0 | Kotlin | 0 | 0 | 9ea4a16961e5598c62a96a45760f7a30dd9b03b8 | 2,433 | nxcloud-springmvc-automapping | Apache License 2.0 |
src/day15/Code.kt | fcolasuonno | 221,697,249 | false | null | package day15
import java.io.File
fun main() {
val name = if (false) "test.txt" else "input.txt"
val dir = ::main::class.java.`package`.name
val input = File("src/$dir/$name").readLines()
val parsed = parse(input)
println("Part 1 = ${part1(parsed)}")
println("Part 2 = ${part2(parsed)}")
}
dat... | 0 | Kotlin | 0 | 0 | 73110eb4b40f474e91e53a1569b9a24455984900 | 1,148 | AOC2016 | MIT License |
app/src/main/java/com/rfb/projetoapitmdb/presentation/view/fragments/UpcomingMoviesFragment.kt | rubensfbr | 768,066,787 | false | {"Kotlin": 46148} | package com.rfb.projetoapitmdb.presentation.view.fragments
import android.os.Bundle
import android.view.View
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLay... | 0 | Kotlin | 0 | 0 | 20f8c81f634bdf417f669e1119239ef78bad7e89 | 2,401 | ProjetoApiTMDB | Apache License 2.0 |
MVIPractice/data/src/main/java/com/kimmandoo/data/model/FileResponse.kt | kimmandoo | 810,895,614 | false | {"Kotlin": 300640} | package com.kimmandoo.data.model
import kotlinx.serialization.Serializable
@Serializable
data class FileResponse(
val id: Long,
val fileName: String,
val createdAt: String,
val filePath: String
)
| 0 | Kotlin | 0 | 0 | 9a8ea13862807e5064362abaab34cef720c379cf | 214 | android-drill | MIT License |
app/src/main/java/com/udacity/asteroidradar/data/db/AsteroidEntity.kt | Maniak-pl | 328,315,093 | false | null | package com.udacity.asteroidradar.data.db
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class AsteroidEntity(
@PrimaryKey
val id: Long,
val codename: String,
val closeApproachDate: String,
val absoluteMagnitude: Double,
val estimatedDiameter: Double,
val relative... | 0 | Kotlin | 0 | 0 | 20b3375074fd3aa5be12693a8b3477dd4f8751f6 | 414 | AsteroidRadar | Apache License 2.0 |
app/src/main/java/com/mikescamell/motionlayout/MikezoActivity.kt | mikescamell | 170,377,235 | false | null | package com.mikescamell.motionlayout
import android.os.Bundle
import android.util.Log
import androidx.annotation.IdRes
import androidx.appcompat.app.AppCompatActivity
import androidx.constraintlayout.motion.widget.MotionLayout
import androidx.constraintlayout.motion.widget.TransitionAdapter
import androidx.core.view.i... | 0 | null | 22 | 215 | 703fec696f9304057e2f5b73a79dd3b724a08d66 | 4,361 | Loco-MotionLayout | Apache License 2.0 |
android/feature/analyze/src/main/java/com/jaino/analyze/result/AnalyzeResultFragment.kt | pknu-wap | 615,959,763 | false | null | package com.jaino.analyze.result
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.jaino.analyze.R
import com.jaino.analyze.databinding.FragmentAnalyzeResultBind... | 4 | Kotlin | 2 | 4 | d14a2e8855f93689c921fef534c6181d6bcab257 | 1,100 | 2023_1_WAT_BeJuRyu | MIT License |
media/src/androidMain/kotlin/DefaultMediaManager.kt | splendo | 191,371,940 | false | null | /*
Copyright 2023 Splendo Consulting B.V. The Netherlands
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... | 87 | null | 7 | 315 | 4094d5625a4cacb851b313d4e96bce6faac1c81f | 8,006 | kaluga | Apache License 2.0 |
tonapi-tl/src/dht/db/DhtDbBucket.kt | ton-community | 448,983,229 | false | null | package org.ton.api.dht.db
import kotlinx.serialization.Serializable
import org.ton.api.dht.DhtNode
import org.ton.api.dht.DhtNodes
import org.ton.tl.*
@Serializable
public data class DhtDbBucket(
val nodes: DhtNodes
) : TlObject<DhtDbBucket>, Collection<DhtNode> by nodes {
public constructor(nodes: List<DhtN... | 21 | null | 24 | 80 | 7eb82e9b04a2e518182ebfc56c165fbfcc916be9 | 834 | ton-kotlin | Apache License 2.0 |
sharepalette/src/main/java/com/sharepalette/SharePaletteFragment.kt | LisandroDiMeo | 498,795,486 | false | {"Kotlin": 271603, "Java": 23638} | package com.cureya.cure4mind.settings
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.cureya.cure4mind.R
import com.cureya.cure4mind.databinding.OurM... | 0 | null | 3 | 0 | 843a0df6d2684c6bde4cdb5d8940e54bb8ae5bb3 | 993 | Cure4Mind | MIT License |
purchases/src/main/kotlin/com/revenuecat/purchases/models/Transaction.kt | RevenueCat | 127,346,826 | false | null | package com.revenuecat.purchases.models
import android.os.Parcelable
import com.revenuecat.purchases.utils.getDate
import kotlinx.parcelize.Parcelize
import org.json.JSONObject
import java.util.Date
@Parcelize
data class Transaction(
val transactionIdentifier: String,
@Deprecated(
"Use transactionIden... | 30 | null | 52 | 253 | dad31133777389a224e9a570daec17f5c4c795ca | 954 | purchases-android | MIT License |
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/LibraryLoadException.kt | JetBrains | 282,864,178 | false | null | package org.jetbrains.skiko
import java.lang.RuntimeException
class LibraryLoadException(message: String) : RuntimeException(message) | 42 | Kotlin | 43 | 840 | cf67c819f15ffcd8b6ecee3edb29ae2cdce1f2fe | 135 | skiko | Apache License 2.0 |
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/LibraryLoadException.kt | JetBrains | 282,864,178 | false | null | package org.jetbrains.skiko
import java.lang.RuntimeException
class LibraryLoadException(message: String) : RuntimeException(message) | 42 | Kotlin | 43 | 840 | cf67c819f15ffcd8b6ecee3edb29ae2cdce1f2fe | 135 | skiko | Apache License 2.0 |
platform/uicomponents/src/main/java/platform/uicomponents/components/errorview/DefaultErrorView.kt | Alaksion | 575,132,918 | false | {"Kotlin": 170796} | package platform.uicomponents.components.errorview
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androi... | 1 | Kotlin | 0 | 1 | 9de8ede5950c4a5671f1d135bac95d6ff7c43302 | 4,554 | Photo-Gallery-App | The Unlicense |
cartmodule/src/main/java/com/kad/cartmodule/fragment/CartFragment.kt | richaelguitar | 144,366,833 | false | null | package com.kad.cartmodule.fragment
import android.view.View
import android.widget.Toast
import com.kad.basemodule.BaseLazyLoadFragment
import com.kad.cartmodule.R
import com.kad.routermodule.util.CoreServiceManager
import kotlinx.android.synthetic.main.cart_fragment_layout.*
class CartFragment : BaseLazyLoadFragme... | 1 | Kotlin | 1 | 2 | e0fb69cb3e28ecd9aef6bf0f94c3770da22f477f | 840 | ComponentApp | Apache License 2.0 |
src/main/java/me/shadowalzazel/mcodyssey/enchantments/armor/Moonpatch.kt | ShadowAlzazel | 511,383,377 | false | {"Kotlin": 1044746} | package me.shadowalzazel.mcodyssey.enchantments.armor
import me.shadowalzazel.mcodyssey.enchantments.OdysseyEnchantment
import net.kyori.adventure.text.Component
import net.minecraft.tags.ItemTags
import net.minecraft.world.entity.EquipmentSlot
import net.minecraft.world.item.enchantment.Enchantment.constantCost
impor... | 0 | Kotlin | 0 | 3 | 797cbcef57f6dd88ae63870b5e95f376b98992f9 | 2,473 | MinecraftOdyssey | MIT License |
yaj-rpc-annotation-processor/src/main/kotlin/info/laht/yajrpc/annotationprocessor/Processor.kt | markaren | 122,771,040 | false | null | package info.laht.yajrpc.annotationprocessor
import com.google.auto.service.AutoService
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import info.laht.yajrpc.RpcMethod
import info.laht.yajrpc.net.RpcClient
import java.io.File
import javax.annotation.pro... | 0 | null | 7 | 16 | b06ec8256d7987048ec0a7c7221e5b17dd0cd731 | 4,873 | YAJ-RPC | MIT License |
core/data/tests/can_generate_generic_struct/output.kt | 1Password | 540,976,791 | false | {"Rust": 295227, "Swift": 71050, "Go": 49378, "Kotlin": 26255, "Scala": 23528, "TypeScript": 10539, "Nix": 1858, "Just": 527} | package com.agilebits.onepassword
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
@Serializable
data class GenericStruct<A, B> (
val field_a: A,
val field_b: List<B>
)
@Serializable
data class GenericStructUsingGenericStruct<T> (
val struct_field: GenericStruct<String, T>,
val s... | 65 | Rust | 95 | 2,393 | da98c89ab769f2931907224672e648daa4a2d9f9 | 1,004 | typeshare | Apache License 2.0 |
setup/src/main/kotlin/tech/antibytes/gradle/kmock/config/quality/StableApi.kt | bitPogo | 455,829,905 | false | {"Kotlin": 3506361} | /*
* Copyright (c) 2024 Matthias Geisler (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package tech.antibytes.gradle.kmock.config.quality
import tech.antibytes.gradle.quality.api.StableApiConfiguration
object StableApi {
val api = StableApiConfiguration(
e... | 3 | Kotlin | 2 | 56 | 9a94e2842f615b08d4e2942c4987278a3d5c9f43 | 355 | kmock | Apache License 2.0 |
cli/src/test/kotlin/uk/gov/justice/digital/cli/command/CreateDomainTest.kt | ministryofjustice | 620,391,775 | false | null | package uk.gov.justice.digital.cli.command
import io.mockk.every
import io.mockk.mockk
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.io.TempDir
import uk.gov.justice.digital.cli.DomainBuilder
import uk.gov.justice.digital.cli.service.DomainService
i... | 1 | null | 1 | 2 | 11f4737c5b5f16fc80b52c9690874679dd6567ef | 3,747 | digital-prison-reporting-domain-builder | MIT License |
app-data/src/main/java/com/kotlin/android/app/data/entity/search/Cinema.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.app.data.entity.search
import com.kotlin.android.app.data.ProguardRule
import java.io.Serializable
/**
* 联合搜索/search/unionSearch
* 影院
*
* Created on 2020/10/15.
*
* @author o.s
*/
data class Cinema(
val address: String? = null, // 地址
val baiduLatitude: Double? = null... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 1,169 | Mtime | Apache License 2.0 |
app/src/main/java/com/murano500k/dogbreeds/viewmodel/ListBreedsViewModel.kt | murano500k | 307,665,888 | false | null | package com.murano500k.dogbreeds.viewmodel
import android.util.Log
import androidx.databinding.ObservableBoolean
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import com.murano500k.dogbreeds.TAG
import com.murano500k.dogbreeds.model.DogBreed
import com.murano500k.dogbreeds.repository.MainR... | 0 | Kotlin | 0 | 0 | 42d73dbc2c291cfe35f424e23e7b71145a7f821d | 1,040 | DogBreeds | Apache License 2.0 |
app/src/main/java/com/example/prolificinteractive/digitallibrary/api/LibraryRepositoryProvider.kt | jgsamudio | 154,833,432 | false | null | package com.example.prolificinteractive.digitallibrary.api
class LibraryApiServiceProvider {
val apiService = LibraryApiService.create()
} | 0 | Kotlin | 0 | 0 | 6e52e334b1766f5446a3d7406862e8c336a41ce7 | 144 | DigitalLibrary | MIT License |
app/src/main/java/io/sample/smartaccess/data/ble/GattAdvertiseFactory.kt | CoreWillSoft | 668,573,101 | false | null | package io.sample.smartaccess.data.ble
import android.bluetooth.le.AdvertiseData
import android.bluetooth.le.AdvertiseSettings
interface GattAdvertiseFactory {
fun settings(): AdvertiseSettings
fun data(): AdvertiseData
}
internal class GattAdvertiseFactoryImpl : GattAdvertiseFactory {
override fun se... | 0 | Kotlin | 0 | 0 | ebf3259988ccf047ecc9820f4c89c9e5466fcd59 | 795 | smart-access-sample-android | MIT License |
example/src/main/java/wtf/qase/datetimepicker/example/MainActivity.kt | Qase | 130,849,129 | false | null | package wtf.qase.datetimepicker.example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import wtf.qase.datetimepicker.DateTimePickerDialog
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
class MainActivity ... | 1 | Kotlin | 1 | 1 | a8cc7443800c9bf6148e2f49493398dc0a3dac2b | 1,083 | AndroidDateTimePicker | MIT License |
winter/src/main/kotlin/io/jentz/winter/TypeKey.kt | andreycooper | 215,816,411 | true | {"Kotlin": 378817, "Java": 11491, "Ruby": 1282} | package io.jentz.winter
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
/**
* Interface for all type keys.
*/
interface TypeKey<in A, out R : Any> {
val qualifier: Any?
/**
* Test if [other] has the same type.
* Like [equals] without looking onto the [qualifier].
*/... | 0 | null | 0 | 0 | 4fd5ca4e9547198860719ce2a23f47d8141335f4 | 4,787 | winter | Apache License 2.0 |
feature/listing/src/main/java/com/utsman/listing/di/module.kt | irmansyah | 317,537,024 | true | {"Kotlin": 124069} | /*
* Created by <NAME> on 28/11/20 3:54 PM
* Copyright (c) 2020 . All rights reserved.
*/
package com.utsman.listing.di
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
val listPagingUseCase = module {
single {
providePagingUseCase(get(), get())
}
single {
pr... | 0 | null | 0 | 0 | 6e3ed614f5fcfb81a0c879e5aa96e4e4d2a63e68 | 594 | store-apps-mvvm-clean-architecture | Apache License 2.0 |
requestly-android-okhttp/src/main/kotlin/io/requestly/android/okhttp/internal/data/har/log/entry/cache/SecondaryRequest.kt | requestly | 473,092,599 | false | null | package io.requestly.android.okhttp.internal.data.har.log.entry.cache
import com.google.gson.annotations.SerializedName
// https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md#beforerequest--afterrequest
// http://www.softwareishard.com/blog/har-12-spec/#cache
internal data class SecondaryRequest(
... | 7 | null | 346 | 70 | 319e8a96c2e49bc75bed0ce79a8ff51730ff0f96 | 592 | requestly-android-sdk | Apache License 2.0 |
backend/src/main/kotlin/com/myproject/backend/jpa/Account.kt | nikita03565 | 376,825,314 | false | {"JavaScript": 58829, "Kotlin": 46101, "HTML": 1437, "CSS": 1005} | package com.myproject.backend.jpa
import com.fasterxml.jackson.annotation.JsonIgnore
import javax.persistence.*
@Entity
@Table(name = "account")
data class Account (
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
val id: Long? = null,
@Column(name = "nickname")
var nickname: String,
@Co... | 0 | JavaScript | 0 | 0 | c7b1c46dca45f6fe0f211b13124a31a2d94d1ff4 | 961 | kotlin-react | Apache License 2.0 |
app/src/main/java/com/github/sg4yk/audioplayer/utils/MediaHunter.kt | SG4YK | 263,589,223 | false | null | package com.github.sg4yk.audioplayer.utils
import android.content.ContentUris
import android.content.ContentValues
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Build
import android.provider.MediaStore
import android.support... | 0 | Kotlin | 0 | 0 | 9c3e9a45bfd9b65c5c67b582d8b23344833e2d7d | 26,580 | AudioPlayer | Apache License 2.0 |
src/main/kotlin/com/deflatedpickle/undulation/functions/extensions/Window.kt | DeflatedPickle | 286,105,109 | false | null | package com.deflatedpickle.undulation.functions.extensions
import java.awt.GraphicsEnvironment
import java.awt.Window
// https://stackoverflow.com/a/33799118
fun Window.getScreenDevice() = GraphicsEnvironment
.getLocalGraphicsEnvironment()
.screenDevices
.firstOrNull { it.defaultConfiguration.bounds.inter... | 0 | Kotlin | 0 | 0 | 5d70e04922775b05094ce9a586680f2e3c6e033a | 335 | undulation | MIT License |
app/src/main/java/com/pkgname/appname/utils/SharedWebServices.kt | Ammar-Ishfaq | 503,248,832 | false | {"Kotlin": 15808} | package com.pkgname.appname.utils
import com.pkgname.appname.backend.ApiService
import com.pkgname.appname.models.requestModels.login.LoginModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
class SharedWebServices(
private val apiServices: ApiService
// private val app: App
) {
... | 0 | Kotlin | 0 | 0 | 8f8aba52b18731609bfbc738a5a9c32f06de4c0e | 779 | HiltTemplate | MIT License |
smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/ServiceGenerator.kt | awslabs | 242,852,561 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.smithy.swift.codegen
import software.amazon.smithy.codegen.core.CodegenException
import software.amazon.smithy.codegen.core.Symbol
import software.amazon.smithy.codegen.core.Sym... | 9 | null | 18 | 26 | 83826f8a0191ecfe770c9c1f1e8f3f0d547f90af | 5,812 | smithy-swift | Apache License 2.0 |
src/main/kotlin/ru/gildor/gradle/firebase/testlab/internal/ResultArtifacts.kt | gildor | 77,550,683 | false | null | package ru.gildor.gradle.firebase.testlab.internal
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
interface Artifacts {
var junit: Boolean
var logcat: Boolean
var video: Boolean
var instrumentation: Boolean
fun getArtifactPaths(): List<String>
}
@Suppress("unused")
cl... | 7 | Kotlin | 2 | 19 | 4ecfd5dd21011ecd6a858a16a013baf06da73adf | 1,224 | gradle-firebase-test-lab-plugin | Apache License 2.0 |
src/main/kotlin/dev/tmsoft/lib/query/paging/ContinuousList.kt | turbomates | 377,843,961 | false | {"Kotlin": 203986, "Makefile": 1218} | @file:Suppress("NestedBlockDepth", "SpreadOperator")
package dev.tmsoft.lib.query.paging
import dev.tmsoft.lib.exposed.sql.RowNumberFunction
import dev.tmsoft.lib.serialization.elementSerializer
import kotlinx.coroutines.coroutineScope
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializatio... | 0 | Kotlin | 2 | 0 | c1487817e5210e0c2db4f3047aeb71ad21bd164e | 6,443 | kotlin-back-sdk | Apache License 2.0 |
packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/DataStoreObserveEventStreamHandler.kt | aws-amplify | 253,571,453 | false | null | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 202 | null | 184 | 953 | bb033ba326f6fb0c5a26662f84d00dd88b092f54 | 1,568 | amplify-flutter | Apache License 2.0 |
detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/wrappers/FinalNewline.kt | detekt | 71,729,669 | false | null | package io.gitlab.arturbosch.detekt.formatting.wrappers
import com.pinterest.ktlint.core.api.FeatureInAlphaState
import com.pinterest.ktlint.core.api.UsesEditorConfigProperties
import com.pinterest.ktlint.ruleset.standard.FinalNewlineRule
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt... | 146 | null | 563 | 4,176 | 7250c885d7ca35c1b26f0af565067229375c9145 | 1,283 | detekt | Apache License 2.0 |
design/ui/src/main/java/com/mikhaellopez/ui/state/UiState.kt | lopspower | 522,617,808 | false | {"Kotlin": 168656, "Java": 749} | package com.mikhaellopez.ui.state
import androidx.compose.runtime.Immutable
@Immutable
sealed class UiState {
data class Content<T>(
val data: T,
val isRefresh: Boolean = false,
val snackMessage: String? = null
) : UiState() {
companion object {
fun <T> createRefres... | 0 | Kotlin | 6 | 111 | ce41ce693cdb09facc455224b8af8fedcff74ad1 | 1,256 | PokeCardCompose | Apache License 2.0 |
app/src/main/kotlin/io/github/plastix/kotlinboilerplate/ui/base/BaseActivity.kt | Plastix | 65,548,118 | false | null | package io.github.plastix.kotlinboilerplate.ui.base
import android.os.Bundle
import android.support.annotation.CallSuper
import android.support.v7.app.AppCompatActivity
import io.github.plastix.kotlinboilerplate.ApplicationComponent
import io.github.plastix.kotlinboilerplate.KotlinBoilerplateApp
abstract class BaseAc... | 3 | Kotlin | 50 | 282 | 443762ca4f331cd2d37a042298e57416d3c63ab1 | 593 | Kotlin-Android-Boilerplate | MIT License |
app/src/main/java/com/gmribas/desafioverity/presentation/model/UserUIModel.kt | gmribas | 655,080,888 | false | null | package com.gmribas.desafioverity.presentation.model
data class UserUIModel(
val login: String,
val id: Long,
val avatarURL: String
) | 0 | Kotlin | 0 | 0 | 009f0fcf695e7e5be54de920f0ca431bc972a01e | 146 | DesafioVerity | Apache License 2.0 |
language/kmm-langx/src/iosMain/kotlin/io/tagd/langx/ref/concurrent/atomic/AtomicReference.kt | pavan2you | 589,617,975 | false | {"Kotlin": 575333, "Shell": 5268, "Swift": 1392} | @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
package io.tagd.langx.ref.concurrent.atomic
actual class AtomicReference<V> actual constructor(value: V) {
actual fun get(): V {
TODO("Not yet implemented")
}
actual fun set(value: V) {
}
actual fun getAndSet(value: V): V {
... | 3 | Kotlin | 3 | 2 | dd2aaf1e4f20850f31b7024f7f8e4bd33f467f3d | 468 | kmm-clean-architecture | Apache License 2.0 |
skellig-test-step-reader/src/main/kotlin/org/skellig/teststep/reader/value/expression/ValueComparisonExpression.kt | skellig-framework | 263,021,995 | false | {"Kotlin": 793363, "CSS": 525608, "Java": 185441, "HTML": 11313, "FreeMarker": 9740, "ANTLR": 2041} | package org.skellig.teststep.reader.value.expression
import java.math.BigDecimal
class ValueComparisonExpression(
private val operator: String,
private val leftExpression: ValueExpression,
private val rightExpression: ValueExpression
) : ValueExpression {
override fun evaluate(context: ValueExpressio... | 17 | Kotlin | 0 | 2 | 64238035cbec9c73268da3e5997fd485f86906fe | 2,151 | skellig-core | Apache License 2.0 |
Demo/src/main/java/com/angcyo/uicore/demo/BluetoothDemo.kt | angcyo | 229,037,572 | false | {"Shell": 3505} | package com.angcyo.uicore.demo
import android.app.Application
import android.os.Bundle
import com.angcyo.bluetooth.BluetoothModel
import com.angcyo.core.vmApp
import com.angcyo.dsladapter.DslAdapterItem
import com.angcyo.dsladapter.addToAfter
import com.angcyo.dsladapter.removeFromAfter
import com.angcyo.library.app
i... | 0 | Shell | 2 | 1 | e981f6530e91023ae8fb722b2cacd091e5a0fb24 | 3,936 | UICoreDemo | MIT License |
mesh-exam/feature/discover/src/main/java/io/flaterlab/meshexam/presentation/discover/ui/info/ExamInfoDialogFragment.kt | chorobaev | 434,863,301 | false | {"Kotlin": 467494, "Java": 1951} | package io.flaterlab.meshexam.presentation.discover.ui.info
import android.os.Bundle
import android.view.View
import androidx.core.view.isInvisible
import androidx.fragment.app.FragmentManager
import dagger.hilt.android.AndroidEntryPoint
import io.flaterlab.meshexam.androidbase.ViewBindingBottomSheetDialogFragment
imp... | 0 | Kotlin | 0 | 2 | 364c4fcb70a461fc02d2a5ef2590ad5f8975aab5 | 3,050 | mesh-exam | MIT License |
app/src/main/java/com/kar/enes/app/utils/CustomBindingAdapter.kt | eneskarpuzoglu | 232,054,605 | false | null | package com.kar.enes.app.utils
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
/**
* Created by M.Enes on 1/3/2020.
*/
object CustomBindingAdapter {
@JvmStatic
@BindingAdapter("bind:image_url")
fun loadImage(imageView: ImageView, url: String) {... | 0 | Kotlin | 0 | 0 | bfba1270277960d00d1b0fe9c78fa2d748c698bd | 392 | news | Apache License 2.0 |
frontend/screen/tools/src/commonMain/kotlin/com/mindovercnc/linuxcnc/screen/tools/root/tabs/cuttinginsert/ui/FeedsAndSpeedsTable.kt | 85vmh | 543,628,296 | false | null | package ui.screen.tools.root.tabs.cuttinginsert
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.lazy.rememberLazyListState
... | 0 | Kotlin | 1 | 2 | d9105f82d90ac6dbf4b6e0da160c706d67630d7f | 7,053 | mindovercnclathe | Apache License 2.0 |
compiler/testData/ir/interpreter/defaultEquals.kt | JetBrains | 3,432,266 | false | null | @CompileTimeCalculation
class A
@CompileTimeCalculation
fun getTheSameValue(a: Any): Any = a
@CompileTimeCalculation
fun theSameObjectEquals(value: Any): Boolean {
return value == getTheSameValue(value) && value === getTheSameValue(value)
}
const val equals1 = A().<!EVALUATED: `false`!>equals(A())<!>
const val e... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 378 | kotlin | Apache License 2.0 |
src/main/kotlin/com/sandrabot/sandra/constants/Constants.kt | sandrabot | 121,549,855 | false | null | /*
* Copyright 2017-2021 <NAME> and <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... | 2 | null | 3 | 7 | f2373e7801ec57cab10d69da19302565beb1887b | 1,649 | sandra | Apache License 2.0 |
data/src/main/kotlin/data/tinder/login/LoginProviderModule.kt | alouanemed | 106,109,153 | false | null | package data.tinder.login
import dagger.Module
import dagger.Provides
import data.crash.FirebaseCrashReporterModule
import reporter.CrashReporter
import javax.inject.Singleton
@Module(includes = arrayOf(LoginFacadeModule::class, FirebaseCrashReporterModule::class))
internal class LoginProviderModule {
@Provides
... | 0 | Kotlin | 0 | 0 | 678ad00d08630cfcff8de1bbea2a9000927c8e68 | 515 | dinger | MIT License |
src/main/kotlin/dev3/blockchainapiservice/features/contract/deployment/repository/ContractDeploymentRequestRepository.kt | 0xDev3 | 539,904,697 | false | null | package dev3.blockchainapiservice.features.contract.deployment.repository
import dev3.blockchainapiservice.features.contract.deployment.model.filters.ContractDeploymentRequestFilters
import dev3.blockchainapiservice.features.contract.deployment.model.params.StoreContractDeploymentRequestParams
import dev3.blockchainap... | 0 | Kotlin | 0 | 0 | d9aa8802cf140e0cdd3b701fa2a9c30764b4ad5f | 1,808 | blockchain-api-service | MIT License |
fuzzer/fuzzing_output/crashing_tests/verified/innerConstructorFromTopLevelOneStringArg.kt-988335090.kt | ItsLastDay | 102,885,402 | false | null | class A {
inner class Inner(val result: Int)
}
fun Any.box(): String {
val result = (if (((A::Inner)) !in false) {
((A::Inner))
} else {
this
})((::A)(), 111).((result) ?: (result)) + (A::Inner)(A(), 222).result
if (result != 333) {
return "Fail $result"
}
return "OK"
} | 1 | null | 1 | 6 | bb80db8b1383a6c7f186bea95c53faff4c0e0281 | 273 | KotlinFuzzer | MIT License |
src/main/kotlin/C_0051359b.kt | argcc | 777,572,651 | false | {"Kotlin": 866115} | package org.example
class C_0051359b {
var float_0x0 = 0
var resist1 = MutableList(7) { 0f }
var resist2 = MutableList(7) { 0f }
var float_0x3c = 0
var float_0x40 = 0
var float_0x44 = 0
} | 0 | Kotlin | 0 | 0 | 415f3190279236c8c1335a0f8556f3bb9eac5256 | 212 | ei_reverse_consp | MIT License |
plugins/kotlin/idea/tests/testData/editor/enterHandler/multilineString/withTabs/tabs2/EnterWithTextOnNewLineMargin.kt | ingokegel | 72,937,917 | true | null | // SET_TRUE: USE_TAB_CHARACTER
// SET_INT: TAB_SIZE=2
// SET_INT: INDENT_SIZE=2
val a = """blah blah blah
| blah blah<caret>
"""
// IGNORE_FORMATTER | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 160 | intellij-community | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/editor/enterHandler/multilineString/withTabs/tabs2/EnterWithTextOnNewLineMargin.kt | ingokegel | 72,937,917 | true | null | // SET_TRUE: USE_TAB_CHARACTER
// SET_INT: TAB_SIZE=2
// SET_INT: INDENT_SIZE=2
val a = """blah blah blah
| blah blah<caret>
"""
// IGNORE_FORMATTER | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 160 | intellij-community | Apache License 2.0 |
src/main/kotlin/dev/boilerplate/gabrieltay/microservice/resolver/Mutataion.kt | Gabrieltay | 175,142,367 | false | null | package dev.boilerplate.gabrieltay.microservice.resolver
import com.coxautodev.graphql.tools.GraphQLMutationResolver
import dev.boilerplate.gabrieltay.microservice.model.Human
import org.springframework.stereotype.Component
import java.util.*
@Component
class Mutataion: GraphQLMutationResolver {
fun createHuman(... | 0 | Kotlin | 0 | 0 | bce53634cb179988294cc1efd1458dc37ce9a91f | 777 | microservice | MIT License |
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/kdoc/KdocMethods.kt | akuleshov7 | 280,211,043 | false | null | package org.cqfn.diktat.ruleset.rules.kdoc
import com.pinterest.ktlint.core.KtLint.FILE_PATH_USER_DATA_KEY
import com.pinterest.ktlint.core.Rule
import com.pinterest.ktlint.core.ast.ElementType.BINARY_EXPRESSION
import com.pinterest.ktlint.core.ast.ElementType.BLOCK
import com.pinterest.ktlint.core.ast.ElementType.CAL... | 1 | null | 1 | 1 | 9eefb12b73fd6b44d164199c3ef0295c8908054d | 12,466 | diKTat | MIT License |
src/commonMain/kotlin/coingecko/constant/Currency.kt | DrewCarlson | 267,978,965 | false | {"Kotlin": 56533} | package coingecko.constant
object Currency {
// Fiat
const val AED = "aed"
const val ARS = "ars"
const val AUD = "aud"
const val BDT = "bdt"
const val BHD = "bhd"
const val BMD = "bmd"
const val BRL = "brl"
const val CAD = "cad"
const val CHF = "chf"
const val CLP = "clp"
... | 5 | Kotlin | 9 | 44 | 64d96a5971fa9b47c2786ad6f44ceea71ab6fb5f | 1,505 | CoinGecko-Kotlin | MIT License |
core/src/main/java/com/endiar/movieverse/core/domain/usecase/RemoteUseCase.kt | nandrasaputra | 220,730,565 | false | null | package com.endiar.movieverse.core.domain.usecase
import com.endiar.movieverse.core.data.DiscoverListing
import com.endiar.movieverse.core.data.Resource
import com.endiar.movieverse.core.domain.model.FilmDetail
import com.endiar.movieverse.core.domain.model.FilmGist
import com.endiar.movieverse.core.domain.model.FilmS... | 0 | Kotlin | 3 | 3 | a40bb90311ec8d2a8e3fa26c96ceaaf6603b485b | 865 | Movieverse | Apache License 2.0 |
src/test/kotlin/dev/shtanko/algorithms/extensions/ArrayExtensionTest.kt | ashtanko | 515,874,521 | false | null | /*
* MIT License
* Copyright (c) 2022 <NAME>
* 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... | 2 | Kotlin | 1 | 9 | ee3d5c874d2cb1ee88027ca5f214f876676e57b0 | 3,229 | the-algorithms | MIT License |
buildSrc/src/main/kotlin/KotlinMultiplatformExtension.kt | shepeliev | 329,550,581 | false | {"Kotlin": 234175, "Shell": 14665} | import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
fun KotlinMultiplatformExtension.configureKotlinCompilerArgs(vararg args: String) {
targets.all {
compilations.all {
kotlinOptions {
freeCompilerArgs += setOf(
"-opt-in=kotlin.RequiresOptIn",... | 12 | Kotlin | 37 | 178 | 6444981b9eba3478c844edb53e5b3ed6b2cd66eb | 444 | webrtc-kmp | Apache License 2.0 |
dikt/src/main/kotlin/io/github/vantoozz/dikt/bind.kt | vantoozz | 459,342,787 | false | {"Kotlin": 42612} | package io.github.vantoozz.dikt
import kotlin.reflect.KClass
inline fun <reified T : Any> MutableContainer.bind(
noinline provider: (Container) -> T,
) = set(T::class, provider)
inline fun <reified T : Any> MutableContainer.bind(
implementation: T?,
) = set(T::class) { implementation }
inline fun <reified T... | 0 | Kotlin | 0 | 1 | f1f49e514859d3923cd5e7cc18ef77c820f455bf | 430 | dikt | MIT License |
src/main/kotlin/no/nav/familie/ba/sak/kjerne/brev/domene/maler/OpphørMedEndring.kt | navikt | 224,639,942 | false | null | package no.nav.familie.ba.sak.kjerne.brev.domene.maler
import no.nav.familie.ba.sak.common.tilDagMånedÅr
import no.nav.familie.ba.sak.kjerne.brev.domene.maler.brevperioder.BrevPeriode
import java.time.LocalDate
data class OpphørMedEndring(
override val mal: Brevmal,
override val data: OpphørMedEndringData,
) ... | 17 | Kotlin | 1 | 9 | 1a1ad3043cb51c472577eaf23749d0e0bf54b261 | 3,116 | familie-ba-sak | MIT License |
src/main/kotlin/no/nav/syfo/juridisklogg/Logg.kt | navikt | 258,142,447 | false | null | package no.nav.syfo.juridisklogg
data class Logg(
val meldingsId: String,
val meldingsInnhold: String,
val avsender: String,
val mottaker: String,
val joarkRef: String = "",
var antallAarLagres: Number
)
| 0 | Kotlin | 0 | 0 | 15b9a4a80fca123eb9efb88b0deaa498735178fb | 229 | syfosmaltinn | MIT License |
app/src/main/java/com/situm/capacitycontroltestsuite/data/PreferenceProvider.kt | situmtech | 295,709,844 | false | null | package com.situm.capacitycontroltestsuite.data
import com.situm.capacitycontroltestsuite.model.User
import org.koin.core.KoinComponent
interface PreferenceProvider: KoinComponent {
fun saveUser(user: User)
fun getUser(): User?
fun removeUser()
} | 0 | Kotlin | 1 | 0 | 67d1b2c03e26f6100433f08b9ffbdb6521477ec9 | 262 | situm-android-module-capacitycontrol | MIT License |
feature/groups/domain/src/main/java/br/com/jwar/sharedbill/groups/domain/usecases/GetGroupsStreamUseCase.kt | wellingtonrib | 535,153,218 | false | {"Kotlin": 448034, "JavaScript": 2075} | package br.com.jwar.sharedbill.groups.domain.usecases
import br.com.jwar.sharedbill.groups.domain.model.Group
import kotlinx.coroutines.flow.Flow
interface GetGroupsStreamUseCase {
suspend operator fun invoke(): Flow<Result<List<Group>>>
}
| 17 | Kotlin | 0 | 0 | 5343aac247f77437164505e3b977e4ef8fe764da | 246 | SharedBill | Creative Commons Attribution 4.0 International |
app/src/admin/java/dev/forcecodes/truckme/ui/statistics/StatisticsViewModel.kt | forceporquillo | 403,934,320 | false | {"Kotlin": 465111} | package dev.forcecodes.truckme.ui.statistics
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.forcecodes.truckme.core.data.delivery.ItemDeliveredStats
import dev.forcecodes.truckme.core.domain.statistics.DAILY
import dev.forcecod... | 0 | Kotlin | 1 | 3 | 54ac8235c4920abfd0a2cd5ded5db56cd7c392e3 | 3,015 | truck-me-android | Apache License 2.0 |
app/src/main/kotlin/com/flixclusive/mobile/MobileAppUiState.kt | rhenwinch | 659,237,375 | false | {"Kotlin": 1637525, "Java": 18011} | package com.flixclusive.mobile
import com.flixclusive.model.provider.SourceDataState
internal data class MobileAppUiState(
val isInPlayer: Boolean = false,
val isShowingUpdateDialog: Boolean = false,
val isShowingBottomSheetCard: Boolean = false,
val isLongClickedFilmInWatchlist: Boolean = false,
... | 26 | Kotlin | 22 | 264 | 5128cac1ac119e84a6725fd655eb0da427964c5f | 479 | Flixclusive | MIT License |
mvp/sample-mvp-dialog/src/main/java/ru/surfstudio/android/mvp/dialog/sample/ui/screen/dialogs/complex/ComplexDialogFragment.kt | surfstudio | 139,034,657 | false | null | package ru.surfstudio.android.mvp.dialog.sample.ui.screen.dialogs.complex
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.complex_dialog_layout.*
import ru.surfstudio.android.core.mvp.configurator.BaseFragmentViewC... | 5 | null | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 1,571 | SurfAndroidStandard | Apache License 2.0 |
app/src/main/java/thiago/dias/pokemonquiz/Screen2.kt | brunorochaa | 733,248,995 | false | {"Kotlin": 27946} | package thiago.dias.pokemonquiz
import android.content.Context
import android.content.Intent
import android.media.MediaPlayer
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.VibrationEffect
import android.os.Vibrator
import android.view.View
import and... | 0 | Kotlin | 0 | 0 | 3ed8f37b4f694482e58ce43d6fe5a63dc987cc3a | 3,039 | quiz-pokemon | MIT License |
drestaurant-apps/drestaurant-microservices-websockets/drestaurant-microservices-websockets-command-courier/src/main/kotlin/com/drestaurant/DrestaurantCourierApplication.kt | zouhang1992 | 158,381,352 | true | {"Markdown": 14, "Batchfile": 1, "Shell": 2, "YAML": 27, "Maven POM": 38, "Text": 1, "Ignore List": 1, "INI": 7, "Kotlin": 295, "JavaScript": 4, "HTML": 3, "Java": 4} | package com.drestaurant
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
import org.springframework.boot.runApplication
@SpringBootApplication(exclude = [SecurityAutoConfiguration::class])
class DrestaurantCour... | 0 | Kotlin | 1 | 0 | d6ba738b1ffed86c9494bb6d8264e404ed4ea027 | 426 | digital-restaurant | Apache License 2.0 |
app/src/main/java/br/com/mauker/githubapp/ghrepositories/view/MainActivity.kt | Mauker1 | 601,832,597 | false | null | package br.com.mauker.githubapp.ghrepositories.view
import android.content.Intent
import android.content.res.Configuration
import android.os.Bundle
import android.speech.RecognizerIntent
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import androidx.activity.viewModels
import android... | 0 | Kotlin | 0 | 0 | 2705433ec5de89681ef3715bbbbf4361b9de160b | 7,477 | GithubRepoApp | MIT License |
src/main/org/lrs/kmodernlrs/controllers/filters/CORSFilter.kt | dtarnawczyk | 73,920,384 | false | null | package org.lrs.kmodernlrs.controllers.filters
import org.apache.log4j.Logger
import org.lrs.kmodernlrs.Constants
import org.springframework.stereotype.Component
import org.springframework.web.filter.OncePerRequestFilter
import javax.servlet.FilterChain
import javax.servlet.http.HttpServletRequest
import javax.servlet... | 0 | Kotlin | 1 | 4 | e534a527635660fe330980411bc8116200af355b | 1,039 | modernlrs | Apache License 2.0 |
app/src/main/java/com/github/jayteealao/pastelmusic/app/ui/icons/pastelicons.kt | jayteealao | 530,847,226 | false | {"Kotlin": 194323} | package com.github.jayteealao.pastelmusic.app.ui.icons
import androidx.annotation.DrawableRes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.ArrowBack
import androidx.compose.material.icons.rounded.Clear
import androidx.compose.material.icons.rounded.Favorite
import android... | 0 | Kotlin | 0 | 0 | 34294059654b8fdbc194fe4df419f5118a523070 | 1,914 | PastelMusic | MIT License |
platform/platform-impl/src/com/intellij/openapi/project/DumbServiceTracker.kt | JetBrains | 2,489,216 | 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.openapi.project
import com.intellij.platform.backend.observation.ActivityInProgressWitness
import kotlinx.coroutines.suspendCancellableCoroutine
class DumbServiceInProgressWitn... | 7 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 716 | intellij-community | Apache License 2.0 |
app/src/main/java/com/dream/juiceandroid/developers/codelab/activity/DataBindingActivity.kt | juicelover | 582,477,247 | false | {"Kotlin": 169228, "Java": 5219} | package com.dream.juiceandroid.developers.codelab.activity
import com.dream.juiceandroid.R
import com.dream.juiceandroid.databinding.ActivityDataBindingBinding
import com.dream.juiceandroid.developers.codelab.viewModel.DataBindingViewModel
import com.juiceandroid.base_lib.activity.BaseActivity
import org.koin.androidx... | 0 | Kotlin | 0 | 0 | 6ab6a8f15a89f0e83ddcb54f882d4e2cbd5e3fa7 | 991 | JuiceAndroidKt | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.