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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
advent2022/src/test/kotlin/year2022/Day24Test.kt | bulldog98 | 572,838,866 | false | {"Kotlin": 132847} | package year2022
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
class Day24Test {
private val day = Day24()
@Test
fun part1() = assertEquals(18, day.testPart1())
@Test
fun part2() = assertEquals(54, day.testPart2())
} | 0 | Kotlin | 0 | 0 | 922919e9c6b8485fa290b94b4ca5a9a234023584 | 271 | advent-of-code-2022 | Apache License 2.0 |
src/main/kotlin/no/nav/aap/api/oppslag/person/PDLMapper.kt | navikt | 402,698,973 | false | null | package no.nav.aap.api.oppslag.person
import java.time.LocalDate
import no.nav.aap.api.felles.Adresse
import no.nav.aap.api.felles.Fødselsnummer
import no.nav.aap.api.felles.Navn
import no.nav.aap.api.felles.PostNummer
import no.nav.aap.api.oppslag.person.PDLAdresseBeskyttelse.FORTROLIG
import no.nav.aap.api.oppslag.p... | 2 | Kotlin | 1 | 3 | 1ff9253dc24763b0dfc56b17588f420fada44454 | 2,909 | aap-soknad-api | MIT License |
baselib/src/main/java/com/hzy/baselib/util/LoadingUtil.kt | ThornJuice | 268,853,324 | false | {"Java": 605058, "Kotlin": 130401} | package com.hzy.baselib.util
import android.app.Activity
import android.app.Dialog
import android.view.LayoutInflater
import android.view.View
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.fragment.app.FragmentActivity
import com.hzy.baselib.R
... | 1 | null | 1 | 1 | 35aa466c833716b7a79d99989c0217126a68c025 | 1,858 | wan-mvp | Apache License 2.0 |
SourceEditor/app/src/main/java/com/microsoft/device/display/wm_samples/sourceeditor/includes/Defines.kt | conceptdev | 648,744,747 | false | null | /*
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
object Defines {
// Scrolling values //
const val DEFAULT_RANGE = 1
const val MIN_RANGE_THRESHOLD = 100
const val EMPTY_BUFFER_SIZE = 0
const val DEFAULT_BUFFER_SIZE = 2
const val CODE... | 0 | null | 14 | 9 | aa6f5b4cae5ac2aef8ffcadd357f1dc11d746e60 | 670 | droidcon-sf-23 | Apache License 2.0 |
src/main/kotlin/com/github/jcustenborder/netty/syslog/SyslogMessage.kt | taktik | 321,741,815 | true | {"Kotlin": 72985} | /**
* Copyright © 2018 <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 ag... | 0 | Kotlin | 0 | 0 | 9324f560d7f1d96294dbf4ab97a75e6bec354c81 | 1,583 | netty-codec-syslog | Apache License 2.0 |
src/main/kotlin/io/finnhub/api/models/PatternRecognition.kt | Finnhub-Stock-API | 275,674,325 | false | null | /**
* Finnhub API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manu... | 1 | Kotlin | 7 | 29 | c5bb3ce6876db2d9e1a7a56690a9909bf4081e21 | 851 | finnhub-kotlin | Apache License 2.0 |
src/main/java/uk/gov/justice/hmpps/casenotes/notes/WriteCaseNote.kt | ministryofjustice | 195,988,411 | false | {"Kotlin": 307204, "Java": 66924, "Mustache": 1803, "Dockerfile": 1357, "Shell": 580} | package uk.gov.justice.hmpps.casenotes.notes
import com.microsoft.applicationinsights.TelemetryClient
import jakarta.validation.Valid
import jakarta.validation.ValidationException
import org.springframework.security.access.AccessDeniedException
import org.springframework.security.access.prepost.PreAuthorize
import org... | 4 | Kotlin | 1 | 1 | 99e6ace51d8dca02c85cbfbf4bfb1d033a937df7 | 3,830 | offender-case-notes | MIT License |
app/src/main/java/com/example/mycheesecakes/ui/flashcards/flashcardssetup/FlashcardsSetupAdapter.kt | dfirestone21 | 389,194,985 | false | null | package com.example.mycheesecakes.ui.flashcards.flashcardssetup
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.Navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.mycheesec... | 0 | Kotlin | 0 | 0 | abad7be5927ab76bf198eb9ca466a092c6710bd5 | 4,043 | CheesecakeApp | MIT License |
dmn-test-cases/standard/tck/1.1/cl3/0014-loan-comparison/translator/expected/kotlin/dmn/type/TMetric.kt | goldmansachs | 118,478,361 | false | null | package type
import java.util.*
@javax.annotation.Generated(value = ["itemDefinitionInterface.ftl", "tMetric"])
@com.fasterxml.jackson.annotation.JsonPropertyOrder(alphabetic = true)
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(`as` = type.TMetricImpl::class)
interface TMetric : com.gs.dmn.runtime.DMNTy... | 9 | null | 43 | 97 | eb1c0e3b0b6352bdf1943a49cb287f8fedaa89c5 | 5,436 | jdmn | Apache License 2.0 |
src/jsMain/kotlin/choliver/nespot/ui/AudioPlayer.kt | oliver-charlesworth | 251,006,755 | false | null | package choliver.nespot.ui
import choliver.nespot.AUDIO_BUFFER_AHEAD_SECONDS
import choliver.nespot.AUDIO_BUFFER_LENGTH_SECONDS
import choliver.nespot.dom.AudioContext
import org.khronos.webgl.Float32Array
class AudioPlayer {
private val ctx = AudioContext()
private var nextStartTimeSeconds: Double? = null
val ... | 14 | Kotlin | 0 | 1 | e5d251b82e11f2986e8a732d55298c2ab0de3191 | 1,004 | nespot | MIT License |
src/main/kotlin/Main.kt | chris-horner | 726,424,923 | false | {"Kotlin": 34020} | fun main(args: Array<String>) {
println(day2part2())
} | 0 | Kotlin | 0 | 0 | 738112c00a8ee8335b582c6eb7a266ac12f8544f | 56 | advent-of-code-2023 | Apache License 2.0 |
app/src/main/java/com/github/fajaragungpramana/igit/module/adapter/RepoAdapter.kt | fajaragungpramana | 759,898,833 | false | {"Kotlin": 79297} | package com.github.fajaragungpramana.igit.module.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.github.fajaragungpramana.igit.common.app.AppPagingAdapter
import com.github.fajaragungpramana.igit.common.app.AppRecyclerViewHolder
import com.github.fajaragungp... | 0 | Kotlin | 0 | 2 | f178089ab3dd09ed7bd2c1dee2c13d377d460c1a | 1,152 | android.igit | Apache License 2.0 |
app/src/main/java/com/meliksahcakir/spotialarm/music/data/Meta.kt | meliksahcakirr | 367,724,001 | false | null | package com.meliksahcakir.spotialarm.music.data
import androidx.annotation.Keep
@Keep
data class Meta(
val totalCount: Int,
val returnedCount: Int,
val limit: Int = 0,
val offset: Int = 0
)
| 0 | Kotlin | 0 | 0 | d88ffc637d8059f6ca9d4919fec09bff2d383058 | 208 | SpotiAlarmBasic | MIT License |
build-logic/plugins/convention/src/main/kotlin/ru/astrainteractive/buildlogic/DefaultProjectInfo.kt | Astra-Interactive | 588,890,842 | false | null | package ru.astrainteractive.buildlogic
class DefaultProjectInfo(
override val id: String,
override val name: String,
override val version: String,
override val url: String,
override val description: String,
override val authors: List<String>,
override val main: String
) : ProjectInfo | 0 | Kotlin | 0 | 0 | 6a8ab8d621379f0b102e181fe5eb025b3dcbdd3a | 313 | AspeKt | MIT License |
application/src/main/kotlin/org/gxf/crestdeviceservice/psk/configuration/PskDecryptionConfiguration.kt | OSGP | 700,328,489 | false | {"Kotlin": 40620} | package org.gxf.crestdeviceservice.psk.configuration
import org.springframework.boot.context.properties.ConfigurationProperties
import java.security.interfaces.RSAPrivateKey
@ConfigurationProperties("crest-device-service.psk.decryption")
class PskDecryptionConfiguration(val privateKey: Map<String, RSAPrivateKey>, val... | 1 | Kotlin | 0 | 0 | f229e96bd2468f7f34f473d29822c5a26d457973 | 337 | sng-crest-device-service | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/frauddetector/CfnListPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.frauddetector
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.frauddetector.CfnListProps
@Generated
public fun buildCfnListProps(initializer: @AwsCdkDsl CfnListProps.Builder.() -> Unit):... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 390 | aws-cdk-kt | Apache License 2.0 |
baidu-map-compose/src/main/java/com/melody/map/baidu_compose/utils/clustering/ClusterItem.kt | TheMelody | 543,049,561 | false | {"Kotlin": 1503767} | /*
* Copyright (C) 2015 Baidu, Inc. All Rights Reserved.
*/
package com.melody.map.baidu_compose.utils.clustering
import com.baidu.mapapi.map.BitmapDescriptor
import com.baidu.mapapi.model.LatLng
/**
* ClusterItem在地图上表示是一个Marker覆盖物
*/
interface ClusterItem {
/**
* 单个Marker的位置
*/
fun getPosition(... | 2 | Kotlin | 5 | 60 | 8a867728136bdb97f156ce57381437864c196382 | 435 | OmniMap-Compose | MIT License |
solar/src/main/java/com/chiksmedina/solar/outline/arrows/TransferVertical.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.arrows
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.... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 2,693 | SolarIconSetAndroid | MIT License |
library-network/src/main/java/com/pp/library_network/eyepetizer/bean/PlayCtrl.kt | PPQingZhao | 548,315,946 | false | {"Kotlin": 553508, "Java": 1135} | package com.pp.library_network.eyepetizer.bean
import com.google.gson.annotations.SerializedName
data class PlayCtrl(
@SerializedName("autoplay")
val autoplay: Boolean,
@SerializedName("autoplay_times")
val autoplayTimes: Int,
@SerializedName("need_cellular")
val needCellular: Boolean,
@Se... | 0 | Kotlin | 0 | 5 | 904d9a980811d502f88479cb450c3a6e8d027f09 | 450 | Eyepetizer | Apache License 2.0 |
app/src/main/java/com/zhudong/tianyuekotlin/ui/news/AdvertActivity.kt | ZDfordream | 150,937,964 | false | {"Gradle": 4, "Ignore List": 2, "Markdown": 1, "Java Properties": 1, "Proguard": 1, "Kotlin": 78, "XML": 89, "Java": 14, "HTML": 2, "CSS": 1, "JavaScript": 2, "JSON": 3} | package com.zhudong.tianyuekotlin.ui.news
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.FragmentActivity
import android.support.v4.content.ContextCompat
import android.text.TextUtils... | 0 | Kotlin | 0 | 2 | c6172e94d32e534ba374c4dcbbb8338ecc694e58 | 3,368 | TianYueKotlin | Apache License 2.0 |
plugins/kotlin/code-insight/line-markers/testData/recursive/simple.kt | ingokegel | 72,937,917 | true | null | fun f(a: Int) {
if (a > 0) {
<lineMarker text="Recursive call">f</lineMarker>(a - 1)
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 104 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/music_player_mvvm/model/SongProvider.kt | KevinMartinezC | 625,009,498 | false | null | package com.example.music_player_mvvm.model
import android.content.ContentProvider
import android.content.ContentUris
import android.content.ContentValues
import android.database.Cursor
import android.database.MatrixCursor
import android.net.Uri
import com.example.music_player_mvvm.R
class SongProvider : ContentProvi... | 1 | Kotlin | 0 | 0 | cb0fce3c7b21da47fe3769ef92fcff20a837d915 | 4,423 | Music-player-mvvm | MIT License |
app/src/main/java/com/dev925/sleeptracker/db/SleepDatabase.kt | CubanAzcuy | 140,344,373 | false | null | package com.dev925.sleeptracker.db
import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import android.arch.persistence.room.TypeConverters
import com.dev925.sleeptracker.db.converter.TimestampConverter
import com.dev925.sleeptracker.db.doa.DeviceStatusEntryDao
import com.dev... | 1 | null | 1 | 1 | 9312c072624b1ef3064865d77db830b24a21538d | 964 | SleepTracker | MIT License |
test_runner/src/test/kotlin/ftl/cli/firebase/test/android/AndroidRunCommandTest.kt | pkjmesra | 158,211,208 | false | null | package ftl.cli.firebase.test.android
import com.google.common.truth.Truth
import com.google.common.truth.Truth.assertThat
import ftl.config.FtlConstants
import ftl.test.util.FlankTestRunner
import org.junit.Rule
import org.junit.Test
import org.junit.contrib.java.lang.system.ExpectedSystemExit
import org.junit.contri... | 7 | null | 1 | 1 | bd8dd925f6f10a61fe583b03b63228daa0f6a885 | 3,251 | flank | MIT License |
shared/src/commonMain/kotlin/com/darrenthiores/ecoswap/domain/auth/use_cases/Login.kt | darrenthiores | 688,372,873 | false | {"Kotlin": 770054, "Swift": 362583} | package com.darrenthiores.ecoswap.domain.auth.use_cases
import com.darrenthiores.ecoswap.domain.auth.repository.AuthRepository
import com.darrenthiores.ecoswap.domain.core.preferences.TokenPreferences
import com.darrenthiores.ecoswap.domain.utils.Resource
class Login(
private val repository: AuthRepository,
p... | 0 | Kotlin | 0 | 0 | 792b3293b4e378b7482f948ce4de622cb88f3cf1 | 852 | EcoSwap | MIT License |
kotlin-electron/src/jsMain/generated/electron/main/MouseInputEvent.kt | JetBrains | 93,250,841 | false | {"Kotlin": 11400167, "JavaScript": 146545} | package electron.main
typealias MouseInputEvent = electron.core.MouseInputEvent
| 28 | Kotlin | 173 | 1,250 | d1f8f5d805ffa18431dfefb7a1aa2f67f48915f6 | 82 | kotlin-wrappers | Apache License 2.0 |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/GridGoldenratioTwoTone.kt | karakum-team | 387,062,541 | false | {"Kotlin": 3058356, "TypeScript": 2249, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/GridGoldenratioTwoTone")
package mui.icons.material
@JsName("default")
external val GridGoldenratioTwoTone: SvgIconComponent
| 0 | Kotlin | 5 | 35 | f8b65644caf9131e020de00a02718f005a84b45d | 208 | mui-kotlin | Apache License 2.0 |
src/main/kotlin/org/uevola/jsonautovalidation/utils/validators/DefaultJsonSchemaValidator.kt | ugoevola | 646,607,242 | false | {"Kotlin": 74752} | package org.uevola.jsonautovalidation.utils.validators
import org.json.JSONObject
import org.springframework.cache.annotation.Cacheable
import org.springframework.stereotype.Component
import org.uevola.jsonautovalidation.utils.Util
import org.uevola.jsonautovalidation.utils.annotations.jsonValidationAnnotation.IsJsonV... | 0 | Kotlin | 0 | 0 | 521f036887729b4c1db00b9b929df6fae8844ea7 | 1,491 | json-auto-validation | MIT License |
app/src/main/java/com/example/phonebook/di/DataModule.kt | max19-8 | 528,887,666 | false | {"Kotlin": 42233} | package com.example.phonebook.di
import com.example.phonebook.data.NotificationSwitcher
import com.example.phonebook.data.repository.ContactsRepository
import com.example.phonebook.domain.useCase.broadcast.BroadcastRepository
import com.example.phonebook.domain.useCase.listContact.ListContactRepository
import dagger.B... | 0 | Kotlin | 0 | 0 | 5b8a80a3c27cfb52e5182ae745545956902ae2b4 | 790 | PhoneBook | MIT License |
app/src/main/java/com/tiparo/tripway/repository/NetworkBoundResource.kt | AlohaQwQ | 361,707,229 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 1, "XML": 52, "Kotlin": 62, "Java": 7} | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 1 | d1e9dc65a8767751bafd8f8f2fc994e3846480f4 | 3,301 | Tripway | MIT License |
app/src/main/java/de/codecentric/trakka_app/model/CompanySelector.kt | Norwae | 217,549,995 | false | null | package de.codecentric.trakka_app.model
import android.util.Log
import com.google.firebase.firestore.DocumentReference
import java.util.concurrent.CopyOnWriteArraySet
object CompanySelector {
private const val currentCompanyField = "currentCompany"
val companyChangeListeners =
CopyOnWriteArraySet<Upd... | 0 | Kotlin | 0 | 0 | fb4f3f27ce89d26b177fb2db6d1a3773d1b1f75f | 1,864 | Trakka | MIT License |
kategory-optics/src/test/kotlin/kategory/optics/LensTest.kt | anamariamv | 103,146,490 | true | {"Kotlin": 454823} | package kategory.optics
import io.kotlintest.KTestJUnitRunner
import io.kotlintest.properties.Gen
import io.kotlintest.properties.forAll
import kategory.Eq
import kategory.LensLaws
import kategory.Option
import kategory.Tuple2
import kategory.UnitSpec
import kategory.applicative
import kategory.genFunctionAToB
import ... | 0 | Kotlin | 0 | 0 | 6da6d8c300a304a2424d192ad47d5ac376562ebc | 3,460 | kategory | Apache License 2.0 |
androidx-palette/src/commonMain/kotlin/com/kmpalette/palette/internal/utils/PriorityQueue.kt | jordond | 690,222,635 | false | null | package com.kmpalette.palette.internal.utils
internal class PriorityQueue<T>(
private val comparator: Comparator<in T>,
) : Collection<T> {
private var array: Array<T?>? = null
private var _size: Int = 0
fun peek(): T? =
array?.takeUnless { isEmpty() }?.get(0)
fun offer(item: T) {
... | 8 | null | 4 | 93 | 25939de79c9c9de925c5e0b0f02eb7087d945652 | 4,020 | kmpalette | MIT License |
android/src/main/kotlin/io/devbits/gocart/GoCartApplication.kt | etonotieno | 322,909,207 | false | {"Kotlin": 369913, "Shell": 791, "Swift": 322, "Batchfile": 54} | /*
* Copyright 2023 Eton Otieno
*
* 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... | 17 | Kotlin | 0 | 4 | ffe5adce727efb5edb71f69601cbc6b9f3096ce0 | 1,021 | GoCart | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/ssm/CfnMaintenanceWindowTaskTaskInvocationParametersPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier", "RedundantUnitReturnType", "RemoveRedundantQualifierName", "unused", "UnusedImport", "ClassName", "REDUNDANT_PROJECTION", "DEPRECATION")
package cloudshift.awscdk.dsl.services.ssm
import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable
impor... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 5,819 | awscdk-dsl-kotlin | Apache License 2.0 |
githubApi/src/commonMain/kotlin/io/github/opletter/espul/gh/data/RepoMin.kt | DennisTsar | 739,949,683 | false | {"Kotlin": 162400, "HTML": 398} | package io.github.opletter.espul.gh.data
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
// TODO: investigate where these come from
@Serializable
data class RepoMin(
val id: Long,
@SerialName("node_id")
val nodeId: String,
val name: String,
@SerialName("full_name... | 0 | Kotlin | 1 | 0 | 4f6aba9108c42f5a2a21f233af8c4a0461e7be5a | 640 | Espul | Apache License 2.0 |
shared/src/commonMain/kotlin/com/ramitsuri/expensereports/network/ResponseModels.kt | ramitsuri | 600,223,134 | false | null | package com.ramitsuri.expensereports.network
import kotlinx.datetime.Instant
import kotlinx.datetime.LocalDate
import kotlinx.serialization.Contextual
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class ReportDto(
@SerialName("name")
val name: String,
... | 1 | Kotlin | 0 | 0 | 3b8f6f44e8cf3439aa9f91b59d79df780aa737d4 | 2,170 | expensereports | MIT License |
app/src/main/java/com/khaled/weatherapp/feature/search/module/view/WindView.kt | khaboshama | 429,884,631 | false | null | package com.khaled.weatherapp.feature.search.module.view
data class WindView(
val speed: String
) | 0 | Kotlin | 0 | 1 | bdc735543c94ce2795c5f8afec8f398160e6c5e1 | 102 | Weather-app | Apache License 2.0 |
app/src/main/java/soy/gabimoreno/merge2classesrefactorexample/interfaces/FooContract.kt | soygabimoreno | 748,039,719 | false | {"Kotlin": 4826} | package soy.gabimoreno.merge2classesrefactorexample.interfaces
interface FooContract {
val property: String
val fooProperty: String
fun method()
fun fooMethod()
}
| 0 | Kotlin | 0 | 0 | 5255ca93cbbcbfb765faf7083e2ac8d3301ba787 | 180 | Merge2ClassesRefactorExample | Apache License 2.0 |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Bell.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.cssggicons
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.Miter
import... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,465 | compose-icons | MIT License |
src/main/kotlin/dev/argraur/aosp/builder/config/BuildConfig.kt | argraur | 459,604,174 | false | null | /*
* SPDX-FileCopyrightText: 2022 <NAME> <<EMAIL>>
* SPDX-License-Identifier: MIT
*/
package dev.argraur.aosp.builder.config
import dev.argraur.aosp.builder.utils.Logger
import java.util.Properties
class BuildConfig {
companion object {
val TAG = BuildConfig::class.simpleName!!
}
private val... | 0 | Kotlin | 0 | 2 | f0ebc53f318f81065b10a07b635bba66e2228f19 | 1,479 | aosp-builder | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/theme/Color.kt | shankar81 | 348,936,133 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 707fbc8e823fb46652b4bef046a96807fa45fb1b | 1,106 | jetpack-compose-mysoothe | Apache License 2.0 |
app/src/main/java/com/example/ponycui_home/svgaplayer/SVGACacheAssetsActivity.kt | jarryleo | 762,178,679 | false | {"Kotlin": 139777, "Java": 114966} | package com.example.ponycui_home.svgaplayer
import android.app.Activity
import android.os.Bundle
import com.opensource.svgaplayer.SVGAConfig
import com.opensource.svgaplayer.SVGAImageView
import com.opensource.svgaplayer.SVGAParser.Companion.shareParser
import com.opensource.svgaplayer.SVGAParser.ParseCompletion
impor... | 0 | Kotlin | 0 | 0 | 15dad28b27dd7acd0a1162034c1f59b50b8b43f7 | 2,027 | SVGAPlayer-Android-Leo | Apache License 2.0 |
app/src/main/java/com/frestoinc/sampleapp_kotlin/di/ApplicationModule.kt | frestoinc | 243,391,526 | false | {"Kotlin": 75017} | package com.frestoinc.sampleapp_kotlin.di
import android.content.Context
import androidx.room.Room
import com.frestoinc.sampleapp_kotlin.BuildConfig
import com.frestoinc.sampleapp_kotlin.api.ApiCallAdapterFactory
import com.frestoinc.sampleapp_kotlin.api.trending_api.TrendingService
import com.frestoinc.sampleapp_kotl... | 0 | Kotlin | 0 | 0 | bbf107afae336e19753c14123f906d6b2f706c31 | 3,581 | MVVM-Hilt-Retrofit-Coroutines-Room | MIT License |
things/src/main/java/com/tomaszrykala/midimixerandroidthings/driver/Driver.kt | tomaszrykala | 109,179,967 | false | null | package com.tomaszrykala.midimixerandroidthings.driver
class Driver {
private interface BoardDefaults {
val spio0: String
val spio1: String
val miso: String
val mosi: String
val sclk: String
val btn0: String
val btn1: String
val btn2: String
... | 1 | null | 1 | 10 | 8fb76aca917177735f478d2a26d4626a4d458874 | 1,502 | MidiMixerAndroidThings | Apache License 2.0 |
app/src/test/java/com/example/simplecleanarchitecture/core/lib/extensions/TestExtensions.kt | tom2048 | 643,515,847 | false | null | package com.example.simplecleanarchitecture.core.lib.extensions
import org.mockito.Mockito
import org.mockito.kotlin.any
import org.mockito.kotlin.internal.createInstance
inline fun <reified T : Any> anyNotNull(): T = any()
inline fun <reified T : String> nullOrEmpty(): T {
return Mockito.argThat { arg: T? -> ar... | 0 | Kotlin | 0 | 0 | 70a764a9d97e7b4fc6f7172fb8eaf4df3ff4aacc | 547 | simple-clean-architecture-android-mvi-example | MIT License |
app/src/main/java/com/ramotion/showroom/examples/dribbbleshots/data/remote/repository/DribbbleShotsRepositoryImpl.kt | Ramotion | 103,911,155 | false | null | package com.ramotion.showroom.examples.dribbbleshots.data.remote.repository
import com.ramotion.showroom.examples.dribbbleshots.domain.datasource.DribbbleShotsDataSource
import com.ramotion.showroom.examples.dribbbleshots.domain.entity.DribbbleShot
import com.ramotion.showroom.examples.dribbbleshots.domain.repository.... | 1 | Java | 19 | 28 | 4e8dc65e0be2ca707a35c91273e93a1975f5e102 | 2,491 | showroom-android | MIT License |
app/src/main/java/io/github/fvrodas/jaml/viewmodel/JAMLViewModelFactory.kt | fvrodas | 334,687,224 | false | null | package io.github.fvrodas.jaml.viewmodel
import android.app.Application
import android.content.pm.PackageManager
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
class JAMLViewModelFactory(
private val application: Application,
private val packageManager: PackageManager?... | 0 | Kotlin | 0 | 0 | c8c84bb11951c40c1b157978db32c0ac4bc69929 | 690 | JAMLauncher | The Unlicense |
app/src/main/java/com/andlill/composenotes/model/UserPreferences.kt | AndreasLill | 450,794,769 | false | null | package com.andlill.composenotes.model
data class UserPreferences(
val isGridView: Boolean = true,
val notePreviewMaxLines: Int = 10,
) | 0 | Kotlin | 0 | 0 | 8b42d4f5994fceb0ca115c88279cdfeaf126b0cc | 144 | ComposeNotes | Apache License 2.0 |
src/main/kotlin/me/alejandrorm/klosure/sparql/algebra/filters/operators/NotExists.kt | alejandrorm | 512,041,126 | false | {"Kotlin": 196720, "Ruby": 28544, "HTML": 25737} | package me.alejandrorm.klosure.sparql.algebra.filters.operators
import me.alejandrorm.klosure.model.Graph
import me.alejandrorm.klosure.model.Graphs
import me.alejandrorm.klosure.model.NodeId
import me.alejandrorm.klosure.model.literals.DataTypes
import me.alejandrorm.klosure.sparql.SolutionMapping
import me.alejandro... | 0 | Kotlin | 0 | 0 | 14abf426f3cad162c021ffae750038e25b8cb271 | 793 | klosure | Apache License 2.0 |
data/src/main/java/com/heady/test/data/modules/categories/repository/CategoriesRepository.kt | praveen-kanwar | 237,142,130 | false | null | package com.heady.test.data.modules.categories.repository
import com.heady.test.data.modules.categories.dao.CategoriesDao
import com.heady.test.data.modules.categories.models.CategoryModel
import com.heady.test.data.modules.categories.models.RealmCategoryModel
import com.tejora.utils.Utils
import io.reactivex.Observab... | 0 | Kotlin | 0 | 0 | 6e04500a6911946a612bed5786364980b294183a | 3,649 | Heady-AT | MIT License |
app/src/main/kotlin/me/leon/ext/crypto/Tables.kt | Leon406 | 381,644,086 | false | null | package me.leon.ext.crypto
const val TABLE_HANDY_CODE =
"2 22 222 3 33 333 4 44 444 5 55 555 6 66 666 7 77 777 7777 8 88 888 9 99 999 9999"
const val TABLE_A_Z = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
const val TABLE_A_Z_LOWER = "abcdefghijklmnopqrstuvwxyz"
const val TABLE_A_Z_WO_J = "ABCDEFGHIKLMNOPQRSTUVWXYZ"
| 1 | Kotlin | 80 | 339 | 5f7627974e58bd6a00679fd8ce69d8355815eaa2 | 308 | ToolsFx | ISC License |
src/test/kotlin/me/fru1t/stak/server/models/UserTest.kt | fru1tstand | 132,710,316 | false | null | package me.fru1t.stak.server.models
import com.google.common.truth.Truth.assertThat
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
class UserTest {
companion object {
private const val TEST_USERNAME = "test username"
private const val TEST_PASSWORD = "some password"
private const ... | 13 | Kotlin | 0 | 1 | 52519a75b8b7544e4eeace1aa305e8b6fee56214 | 2,623 | fm-stak-server | MIT License |
app/src/main/java/com/sd/demo/eventflow/MainActivity.kt | zj565061763 | 640,457,951 | false | null | package com.sd.demo.eventflow
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxS... | 0 | Kotlin | 0 | 0 | b5333ee6ae9cd513c88cb6bc9dd82ad47ce84d62 | 2,072 | eventflow | MIT License |
cpg-core/src/main/java/de/fraunhofer/aisec/cpg/passes/FunctionPointerCallResolver.kt | anon767 | 454,189,943 | true | {"Kotlin": 1895504, "Java": 553176, "LLVM": 170593, "Go": 98794, "Python": 59534, "C++": 46468, "C": 30296, "TypeScript": 4873, "Shell": 2362, "JavaScript": 527, "CMake": 204} | /*
* Copyright (c) 2022, Fraunhofer AISEC. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 0 | Kotlin | 0 | 1 | 5586bd808ec5cfb18250662a73fd63e25ffe9203 | 7,321 | cpg | Apache License 2.0 |
MeepMeepSequences/src/main/java/com/example/meepmeepsequences/AdvancedPaths.kt | ETS-Android5 | 499,266,252 | false | {"Java": 277809, "Kotlin": 109808, "Shell": 18859, "Perl": 4655} | package com.example.meepmeepsequences
import com.acmerobotics.roadrunner.drive.DriveSignal
import com.acmerobotics.roadrunner.geometry.Pose2d
import com.acmerobotics.roadrunner.geometry.Vector2d
import com.example.meepmeepsequences.util.*
import com.example.meepmeepsequences.util.Context.alliance
import com.example.me... | 0 | Java | 1 | 0 | 76f19c4b2c456760a9f175bcbc7df1691f077179 | 8,636 | ramsettetestig | MIT License |
common/src/main/kotlin/org/flaxo/common/Identifiable.kt | tcibinan | 112,068,459 | false | null | package org.flaxo.common
/**
* Uniquely identifiable object.
*/
interface Identifiable {
/**
* System-wide unique identifier of the object.
*/
val id: Long
}
| 30 | null | 6 | 9 | a745d82604737699699210267ad5d2aa552f92d8 | 180 | flaxo | Apache License 2.0 |
src/main/kotlin/top/anagke/auto_pnc/factory/FactoryModule.kt | FlandiaYingman | 442,160,441 | false | {"Kotlin": 25856, "PowerShell": 151} | package top.anagke.auto_pnc.factory
import org.tinylog.kotlin.Logger
import top.anagke.auto_android.device.*
import top.anagke.auto_android.device.operation.whileFind
import top.anagke.auto_android.img.Pos
import top.anagke.auto_android.img.Tmpl
import top.anagke.auto_pnc.*
class FactoryModule(auto: AutoPnc) : PncMo... | 0 | Kotlin | 0 | 4 | 293c4b05ce2f9f80424c2ca86730fd3718e0abfe | 3,390 | auto-pnc | MIT License |
smash-ranks-android/app/src/test/java/com/garpr/android/data/database/RegionConverterTest.kt | charlesmadere | 41,832,700 | true | null | package com.garpr.android.data.database
import com.garpr.android.data.models.Endpoint
import com.garpr.android.data.models.Region
import com.garpr.android.test.BaseTest
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import ... | 0 | Kotlin | 0 | 9 | 151b2a0f9b4d38be60c3f73344ca444f17810bfd | 2,587 | smash-ranks-android | The Unlicense |
Fragments_2/MyFragmentsViewPagerHomeWork/app/src/main/java/com/example/myfragmentsviewpagerhomework/RockAdapter.kt | Flight552 | 353,632,256 | false | {"Text": 3, "Git Attributes": 1, "Markdown": 28, "Gradle": 102, "Java Properties": 85, "Shell": 34, "Ignore List": 64, "Batchfile": 34, "Proguard": 34, "Kotlin": 394, "XML": 1134, "Java": 5, "INI": 22, "JSON": 3} | package com.example.myfragmentsviewpagerhomework
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
class RockAdapter(
private val listSize: List<RockBandObject>,
activity: FragmentActivity
) : FragmentStateAdapter(activi... | 1 | null | 1 | 1 | ad68645b3c4acd5f0fa8c008457259553ebf859c | 602 | SkillBoxLessons | MIT License |
src/main/kotlin/com/sia/khuerydsl/expression/LeftExpression.kt | SIAnalytics | 394,551,773 | false | null | package com.sia.khuerydsl.expression
import com.sia.khuerydsl.HibernateQueryDsl
import kotlin.reflect.KProperty
@HibernateQueryDsl
class LeftExpression(val fields: List<KProperty<*>>)
| 0 | Kotlin | 1 | 2 | 5eb5eb79836f57e8b92e91d25ca649cdb04f1000 | 186 | KHueryDsl | MIT License |
src/jvmTest/kotlin/examples/TexturePixelsTest.kt | AndreasHefti | 387,557,032 | false | null | package examples
import com.inari.firefly.DesktopApp
import com.inari.firefly.core.Engine
import com.inari.firefly.core.Entity
import com.inari.firefly.graphics.sprite.ESprite
import com.inari.firefly.graphics.sprite.Texture
import com.inari.firefly.graphics.view.ETransform
import com.inari.firefly.graphics.view.View
... | 6 | Kotlin | 0 | 11 | 2149d1a5e32e3d3f5a627d224b6a542c97b4731e | 1,563 | flyko-lib | Apache License 2.0 |
forgerock-auth/src/test/java/org/forgerock/android/auth/devicebind/UserDeviceKeyServiceTest.kt | ForgeRock | 590,402,087 | false | {"Java Properties": 9, "Markdown": 3, "Shell": 1, "Batchfile": 1, "Proguard": 8, "Java": 344, "Kotlin": 110, "INI": 2, "Makefile": 2, "C++": 1} | /*
* Copyright (c) 2022 ForgeRock. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package org.forgerock.android.auth.devicebind
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import... | 1 | null | 1 | 1 | e73c303afb7ebf7c54958dabeb5b9a10e9e3f2b2 | 5,018 | forgerock-android-sdk-mend-test | MIT License |
TeamCode/src/main/kotlin/github/robotters/command/FieldOrientedDriveCommand.kt | robotters | 703,092,959 | false | {"Java": 51427, "Kotlin": 11124} | package github.robotters.command
import com.arcrobotics.ftclib.command.CommandBase
import com.arcrobotics.ftclib.gamepad.GamepadEx
import github.robotters.lib.math.AngleProvider
import github.robotters.subsystems.DriveTrainSubsystem
class FieldOrientedDriveCommand(
private val driveTrainSubsystem: DriveTrainSubsy... | 1 | null | 1 | 1 | d62dd3527b01ff8f79652dfb31b0ed5a7bea9128 | 752 | 2023RobotCode | BSD 3-Clause Clear License |
app/src/main/java/com/college/collegeconnect/activities/Navigation.kt | rohitjakhar | 336,865,812 | false | {"Java Properties": 2, "Gradle": 3, "Shell": 1, "HTML": 1, "Markdown": 2, "Batchfile": 1, "Text": 2, "Ignore List": 2, "YAML": 1, "Proguard": 1, "Java": 44, "XML": 173, "Kotlin": 74} | package com.college.collegeconnect.activities
import android.app.Activity
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.DialogInterface
import android.content.Intent
import android.content.IntentSender.SendIntentException
import android.graphics.Color
import andro... | 1 | null | 1 | 1 | 469a2b705ee157c108ea45d174ac87a1ad4398e0 | 9,299 | CollegeConnect | Apache License 2.0 |
okta-idx-kotlin/src/main/java/com/okta/idx/kotlin/client/LegacyDeviceTokenProvider.kt | okta | 331,106,204 | false | null | /*
* Copyright 2023-Present Okta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 4 | null | 13 | 9 | ebdaf4ffb488b60854779afe770cd88cf0bad826 | 2,936 | okta-idx-android | Apache License 2.0 |
app/src/main/kotlin/com/eugene/tab_navigation/App.kt | eugeneroz | 96,144,868 | false | null | package com.eugene.tab_navigation
import android.app.Application
import com.orhanobut.logger.AndroidLogAdapter
import com.orhanobut.logger.Logger
import com.orhanobut.logger.PrettyFormatStrategy
/**
* Created by eugene on 20/06/2017.
*/
class App : Application() {
override fun onCreate() {
super.onCreat... | 0 | Kotlin | 0 | 0 | a205a542b3a718fd23ffbf7d134d4fb3ac06cca7 | 887 | first-kotlin-app | MIT License |
src/main/java/mapperverifier/MapperVerifier.kt | olegosipenko | 123,711,386 | false | null | /*
* Copyright 2018 Oleg Osipenko
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 1 | Kotlin | 1 | 3 | 91fe119c3622dd511f55c3819ef8de827f0546c9 | 6,622 | mapperverifier | Apache License 2.0 |
kat/src/test/kotlin/plus/kat/FluxTest.kt | katplus | 507,466,092 | false | null | package plus.kat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
class FluxKtTest {
@Test
fun test_kat() {
assertEquals(
"""{id=100001,title="KAT+",meta={view=99},author={id=1,name="kraity"}}""",
kat {
it["id"] = 100001
... | 5 | null | 4 | 11 | c9816b38a81c544674b1d962f158642d012d9d0c | 1,581 | katplus | Apache License 2.0 |
back/booking-hotel/src/main/kotlin/com/tcc/bookinghotel/domain/entity/Hotel.kt | marcelop3251 | 485,967,635 | false | null | package com.tcc.bookinghotel.domain.entity
data class Hotel(
val id: Int? = null,
val name: String,
val cnpj: String,
val city: String,
val numberBedrooms: Int,
val room: List<Room>? = null,
) | 0 | Kotlin | 0 | 0 | 9ad938f00caf6f9ff8edde4439d6f5ac0d940f41 | 217 | booking-hotel | Apache License 2.0 |
back/booking-hotel/src/main/kotlin/com/tcc/bookinghotel/domain/entity/Hotel.kt | marcelop3251 | 485,967,635 | false | null | package com.tcc.bookinghotel.domain.entity
data class Hotel(
val id: Int? = null,
val name: String,
val cnpj: String,
val city: String,
val numberBedrooms: Int,
val room: List<Room>? = null,
) | 0 | Kotlin | 0 | 0 | 9ad938f00caf6f9ff8edde4439d6f5ac0d940f41 | 217 | booking-hotel | Apache License 2.0 |
modules/tests/src/main/kotlin/com/github/davenury/tests/ChangeState.kt | kjarosh | 782,141,241 | false | {"Kotlin": 724034, "Go": 61106, "Python": 33653, "Shell": 21551, "JavaScript": 3419, "Dockerfile": 1387, "Ruby": 835} | package com.github.davenury.tests
enum class ChangeState {
ACCEPTED,
REJECTED,
}
| 9 | Kotlin | 0 | 0 | 8da5ab2a60b088c4d9bc9b0f71dbc40ac915631c | 90 | depl-da-prototype | Apache License 2.0 |
app/src/main/java/com/example/android/marsphotos/MainActivity.kt | frdvndb | 651,352,248 | false | null | package com.example.android.marsphotos
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
/**
* MainActivity menyetel tampilan konten activity_main,
* kontainer fragmen yang berisi overviewFragment.
*/
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bu... | 0 | Kotlin | 0 | 0 | e31a1dccf829741e18809dd893350222fec9d3ed | 426 | Mars-Photo-App | Apache License 2.0 |
src/main/kotlin/io/openfuture/chain/network/service/DefaultNetworkApiService.kt | OpenFuturePlatform | 135,143,034 | false | {"Kotlin": 466643, "Dockerfile": 210, "Shell": 74} | package io.openfuture.chain.network.service
import io.openfuture.chain.network.component.AddressesHolder
import io.openfuture.chain.network.component.ChannelsHolder
import io.openfuture.chain.network.entity.NodeInfo
import io.openfuture.chain.network.message.base.Message
import org.springframework.stereotype.Service
i... | 2 | Kotlin | 16 | 64 | f7e511b3ba17cc75d7f23618008dd89a7b83c4c0 | 1,377 | open-chain | MIT License |
app/src/main/java/ir/heydarii/musicmanager/presentation/features/about/AboutMeFragment.kt | SirLordPouya | 197,946,685 | false | null | package ir.heydarii.musicmanager.presentation.features.about
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.View
import dagger.hilt.android.AndroidEntryPoint
import ir.heydarii.musicmanager.R
import ir.heydarii.musicmanager.framework.BaseFragment
import ir.heydarii.mu... | 0 | Kotlin | 4 | 22 | f3be6ac034d67744a08df35a35466553c080c773 | 1,646 | MusicManager | Apache License 2.0 |
feature-onboarding/domain/src/main/java/com/carohg/zeldafan/feature_onboarding/domain/usecases/GetOnboardingByPageUseCaseImpl.kt | linahg | 649,784,953 | false | {"Kotlin": 152838, "HTML": 903} | package com.carohg.zeldafan.feature_onboarding.domain.usecases
import com.carohg.zeldafan.feature_onboarding.domain.entities.PageDto
import com.carohg.zeldafan.feature_onboarding.domain.repositories.OnboardingPageRepository
import kotlinx.coroutines.flow.Flow
import com.carohg.zeldafan.kotlin_common.Result
import java... | 0 | Kotlin | 0 | 0 | c6a490415053ac3c81d8a0529bf18e8bacfbec52 | 865 | animanga | Apache License 2.0 |
app/src/main/java/com/yaylas/dogceo/domain/model/ImageInfo.kt | yaylaselcuk | 348,146,682 | false | null | package com.yaylas.dogceo.domain.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class ImageInfo(
var url: String
) : Parcelable | 0 | Kotlin | 0 | 0 | c02c271fab5fa1595913b30d9957b8e063e7b43f | 177 | dogceo-android-project | MIT License |
framework-kotlin/src/main/java/org/android/framework/base/BaseViewModel.kt | lx0758 | 119,475,284 | false | {"Java": 1843584, "Kotlin": 15434, "C": 7128, "C++": 4986, "CMake": 1809, "AIDL": 447} | package org.android.framework.base
import android.text.TextUtils
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.fasterxml.jackson.core.JsonProcessingException
import org.android.framework.dao.IResp
import org.android.framework.dao.RespException
import org.android.framework.stat... | 0 | Java | 2 | 8 | 5b1e30146ed8a0d29f91c88b36945682c1d36365 | 3,596 | Android | MIT License |
cse/src/test/java/com/adyen/checkout/cse/internal/ResourceReader.kt | Adyen | 91,104,663 | false | null | /*
* Copyright (c) 2021 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by josephj on 16/3/2021.
*/
package com.adyen.checkout.cse
import org.json.JSONException
import org.json.JSONObject
import java.io.File
import java.io.IOException
impo... | 28 | null | 59 | 96 | 1f000e27e07467f3a30bb3a786a43de62be003b2 | 792 | adyen-android | MIT License |
library/src/commonMain/kotlin/com/tidal/networktime/internal/SyncPeriodic.kt | tidal-music | 665,921,859 | false | {"Kotlin": 10946, "Shell": 4257} | package com.tidal.networktime.internal
import kotlinx.coroutines.delay
import kotlin.time.Duration
internal class SyncPeriodic(private val syncInterval: Duration) {
suspend operator fun invoke() {
while (true) {
SyncSingular()()
delay(syncInterval)
}
}
}
| 0 | Kotlin | 0 | 2 | 90c5655abaf8fe1916cab78de0f506f8b6a47283 | 281 | network-time | MIT License |
project_ui/src/androidMain/kotlin/com/jianastero/project_ui/ProjectUI.kt | jianastrero | 315,086,326 | false | null | package com.jianastero.project_ui
import android.app.Activity
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.Button as ButtonView
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.recyclerv... | 0 | Kotlin | 0 | 1 | 9360016d7fae6ab02def7244289bfb4762c978c6 | 1,657 | project_ui | MIT License |
module/module-warp/src/main/kotlin/ink/work/taboopublicwork/module/warp/database/WarpDatabaseSql.kt | FxRayHughes | 723,338,144 | false | {"Kotlin": 115771} | package ink.work.taboopublicwork.module.warp.database
import ink.work.taboopublicwork.module.warp.ModuleWarp
import ink.work.taboopublicwork.module.warp.data.WarpData
import ink.work.taboopublicwork.utils.gsonUtils
import ink.work.taboopublicwork.utils.sql.SQLContext
import ink.work.taboopublicwork.utils.sql.impl.Data... | 0 | Kotlin | 3 | 6 | 8a87ef1d2818ffbc24a7dc73bfa7b95358be0695 | 1,588 | TabooPublicWork | Creative Commons Zero v1.0 Universal |
presentation/src/main/java/org/lotka/xenonx/presentation/screen/create_post/CreatePostScreen.kt | armanqanih | 841,268,386 | false | {"Kotlin": 132970} | package org.lotka.xenonx.presentation.screen.create_post
import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import org.lotka.xenonx.presentation.ui.navigation.ScreensNavigation
@Composable
fun CreatePostScreen(
navController: NavController
){
} | 0 | Kotlin | 0 | 0 | 356dc1e0e1fd44cef757f9f94a5a2a0909ca57f4 | 284 | Instgram_App | Apache License 2.0 |
notary-commons/src/main/kotlin/com/d3/commons/sidechain/iroha/util/IrohaPaginationHelper.kt | soramitsu | 244,327,608 | false | {"Gradle": 14, "Shell": 4, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Groovy": 2, "Markdown": 7, "Kotlin": 116, "INI": 11, "Java Properties": 6, "Dockerfile": 2, "YAML": 19, "Python": 3, "Public Key": 23, "Java": 1} | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.d3.commons.sidechain.iroha.util
import com.d3.commons.util.GsonInstance
import com.github.kittinunf.result.Result
import com.google.gson.reflect.TypeToken
import jp.co.soramitsu.iroha.java.QueryAPI
import java.... | 1 | null | 1 | 1 | f89adf925163279d1cb4c65fa35fb3cbd8230113 | 8,703 | soranet-validator | Apache License 2.0 |
notary-commons/src/main/kotlin/com/d3/commons/sidechain/iroha/util/IrohaPaginationHelper.kt | soramitsu | 244,327,608 | false | {"Gradle": 14, "Shell": 4, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Groovy": 2, "Markdown": 7, "Kotlin": 116, "INI": 11, "Java Properties": 6, "Dockerfile": 2, "YAML": 19, "Python": 3, "Public Key": 23, "Java": 1} | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.d3.commons.sidechain.iroha.util
import com.d3.commons.util.GsonInstance
import com.github.kittinunf.result.Result
import com.google.gson.reflect.TypeToken
import jp.co.soramitsu.iroha.java.QueryAPI
import java.... | 1 | null | 1 | 1 | f89adf925163279d1cb4c65fa35fb3cbd8230113 | 8,703 | soranet-validator | Apache License 2.0 |
app/src/main/java/com/dafdev/selamatkan/view/adapter/hospital/list/HospitalCovidAdapter.kt | dapoi | 419,212,213 | false | null | package com.dafdev.selamatkan.view.adapter.hospital.list
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.Filter
import android.widget.Filterable
import androidx.recyclerview.widget.RecyclerView
import com.dafdev.selamatkan.data.domain.model.... | 0 | Kotlin | 1 | 2 | 6ef2c2a3eb252885eea76d9b9bea5ad46b954c9d | 3,162 | SELAMATKAN | MIT License |
app/src/main/java/com/dafdev/selamatkan/view/adapter/hospital/list/HospitalCovidAdapter.kt | dapoi | 419,212,213 | false | null | package com.dafdev.selamatkan.view.adapter.hospital.list
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.Filter
import android.widget.Filterable
import androidx.recyclerview.widget.RecyclerView
import com.dafdev.selamatkan.data.domain.model.... | 0 | Kotlin | 1 | 2 | 6ef2c2a3eb252885eea76d9b9bea5ad46b954c9d | 3,162 | SELAMATKAN | MIT License |
app/src/main/java/com/tripletres/platformscience/ui/model/Converter.kt | daniel553 | 540,959,283 | false | null | package com.tripletres.platformscience.ui.model
import com.tripletres.platformscience.domain.model.Driver
import com.tripletres.platformscience.domain.model.Shipment
/**
* Parse driver list as ui driver item
*/
fun List<Driver>.asDriverItemList(): List<DriverItem> = this.map { it.asDriverItem() }
fun Driver.asDri... | 0 | Kotlin | 0 | 0 | 2ea5962dc0ad349ae97b277ab4ecf9e9a0aee1e6 | 580 | PlatformScience | FSF All Permissive License |
layouts-controlsfx-ktx/src/javafxx/layouts/controlsfx/CheckComboBox.kt | gitter-badger | 143,415,479 | true | {"Gradle Kotlin DSL": 14, "Shell": 1, "Text": 1, "Ignore List": 13, "Batchfile": 1, "YAML": 1, "Markdown": 8, "Kotlin": 364, "INI": 1, "HTML": 1, "Java": 1} | @file:Suppress("NOTHING_TO_INLINE")
package javafxx.layouts.controlsfx
import javafx.collections.ObservableList
import javafx.scene.Node
import javafxx.collections.mutableObservableListOf
import javafxx.layouts.LayoutDsl
import javafxx.layouts.LayoutManager
import org.controlsfx.control.CheckComboBox
/** Creates a [... | 0 | Kotlin | 0 | 0 | fe550237f725e398e3f78ed2e73a779a133088c2 | 1,578 | javafxx | Apache License 2.0 |
uast/uast-common/src/org/jetbrains/uast/expressions/UExpressionList.kt | hieuprogrammer | 284,920,751 | true | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.uast
import org.jetbrains.uast.internal.acceptList
import org.jetbrains.uast.internal.log
import org.jetbrains.uast.visitor.UastTypedVisitor
import org.jetb... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,187 | intellij-community | Apache License 2.0 |
app/src/androidTest/java/com/adamkis/flickr/helper/TestUtils.kt | adamkis | 115,854,859 | false | null | package com.adamkis.flickr.helper
import android.support.test.InstrumentationRegistry
import android.view.View
import android.view.ViewGroup
import org.hamcrest.Description
import org.hamcrest.Matcher
import org.hamcrest.TypeSafeMatcher
/**
* Created by adam on 2017. 12. 31..
*/
object TestUtils{
fun getStr... | 0 | Kotlin | 0 | 0 | 0692c5c00e7089390db974f4067f9a414fcdd154 | 433 | Flickr | Apache License 2.0 |
common/schema/src/commonMain/kotlin/org/timemates/rrpc/common/schema/RMService.kt | timemates | 713,625,067 | false | {"Kotlin": 261080} | package org.timemates.rrpc.common.schema
import kotlinx.serialization.Serializable
import org.timemates.rrpc.common.schema.value.RMDeclarationUrl
@Serializable
public class RMService(
/**
* Name of the service.
*/
public val name: String,
/**
* List of RPCs (Remote Procedure Calls) define... | 8 | Kotlin | 0 | 8 | e349daf1ae419c3cf544dc9b27a93f2274ad90e3 | 576 | rrpc-kotlin | MIT License |
app/src/main/java/com/langdroid/sample/ui/MainScreen.kt | DimaBrody | 753,802,287 | false | {"Kotlin": 81106} | package com.langdroid.sample.ui
import android.content.Context
import android.widget.Toast
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.WindowInsetsSides
import androidx.co... | 0 | Kotlin | 0 | 2 | adc8691f9d80857e4a533d8de306e5e53499e717 | 9,529 | LangDroid | MIT License |
compiler/src/main/kotlin/io/github/aplcornell/viaduct/backends/Backend.kt | apl-cornell | 169,159,978 | false | {"Kotlin": 1117382, "Java": 43793, "C++": 13898, "Lex": 12293, "Python": 11983, "Dockerfile": 1951, "Makefile": 1762, "SWIG": 1212, "Shell": 950} | package io.github.aplcornell.viaduct.backends
import io.github.aplcornell.viaduct.codegeneration.CodeGenerator
import io.github.aplcornell.viaduct.codegeneration.CodeGeneratorContext
import io.github.aplcornell.viaduct.codegeneration.unions
import io.github.aplcornell.viaduct.parsing.ProtocolParser
import io.github.ap... | 31 | Kotlin | 4 | 20 | 567491fdcfd313bf287b8cdd374e80f1e005ac62 | 4,281 | viaduct | MIT License |
app/src/main/java/it/insubria/dermchecker/ResultDetailsFragment.kt | sarabiava | 775,716,920 | false | {"Kotlin": 100973} | package it.insubria.dermchecker
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.ProgressBar
import android.widget.TextView
import androidx.f... | 0 | Kotlin | 0 | 0 | f84a588bc9bd19081577754e22ee6f4ecc0794cf | 3,879 | DermChecker | MIT License |
plugins/kotlin/idea/tests/testData/intentions/branched/safeAccessToIfThen/let3.kt | ingokegel | 72,937,917 | false | null | // WITH_STDLIB
fun foo(a: Int, b: Int?): Int? {
return b<caret>?.let { a + b }
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 85 | intellij-community | Apache License 2.0 |
app/src/main/java/com/apaluk/wsplayer/data/database/WspDatabase.kt | apaluk | 576,009,487 | false | null | package com.apaluk.wsplayer.data.database
import androidx.room.Database
import androidx.room.RoomDatabase
import com.apaluk.wsplayer.data.database.dao.MediaInfoDao
import com.apaluk.wsplayer.data.database.dao.SearchHistoryDao
import com.apaluk.wsplayer.data.database.dao.WatchHistoryDao
import com.apaluk.wsplayer.data.... | 0 | Kotlin | 0 | 0 | 551703a932d3659f5dadd058d4e3083cbff25534 | 748 | ws-player-android | MIT License |
core-database/src/main/java/com/kanyideveloper/core_database/model/MealEntity.kt | JoelKanyi | 554,742,212 | false | null | /*
* Copyright 2022 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 14 | Kotlin | 9 | 69 | 040b552070450d2e2b34cd1817eece7145fb2086 | 1,306 | MealTime | Apache License 2.0 |
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/domain/alerts/Alert.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.staking.impl.domain.alerts
import java.math.BigDecimal
import jp.co.soramitsu.fearless_utils.runtime.AccountId
import jp.co.soramitsu.staking.api.domain.model.CollatorDelegation
import jp.co.soramitsu.wallet.impl.domain.model.Token
sealed class Alert {
class RedeemTokens(val amount: BigDe... | 10 | Kotlin | 20 | 65 | 040d69f2d9f83a3ad0388ef57d40353c74e7488c | 814 | fearless-Android | Apache License 2.0 |
simcoe/src/main/java/com/prolificinteractive/simcoe/ConsoleOutput.kt | prolificinteractive | 59,597,013 | false | null | package com.prolificinteractive.simcoe
import android.util.Log
/**
* The console output.
*/
internal class ConsoleOutput : Output {
private val SIMCOE_LOG_TAG = "Simcoe"
override fun print(message: String) {
Log.v(SIMCOE_LOG_TAG, message)
}
}
| 2 | Kotlin | 0 | 1 | a26cf868f57599f688423623b8da92cd43f13f7d | 258 | simcoe-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.