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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kotlin-client/src/main/kotlin/io/provenance/bilateral/models/AskOrder.kt | provenance-io | 506,765,156 | false | null | package io.provenance.bilateral.models
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonTypeInfo
import com.fasterxml.jackson.annotation.JsonTypeName
import com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy
import com.fasterxml.jackson.databind.anno... | 0 | Rust | 0 | 0 | 96043cb5f4cb5a4322609c927038395bc9655363 | 3,393 | metadata-bilateral-exchange | Apache License 2.0 |
src/main/kotlin/io/github/uinnn/serializer/formatter/StrategyStreamFormatter.kt | uinnn | 388,945,281 | false | null | /*
MIT License
Copyright (c) 2021 uin
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 ri... | 0 | Kotlin | 0 | 2 | ad4e9dc6fdc184cc8520b92015539cb62928385d | 2,666 | serializer-framework | MIT License |
subprojects/test-fixtures/src/main/kotlin/org/gradle/kotlin/dsl/fixtures/AbstractIntegrationTest.kt | vdvorak83 | 156,388,201 | true | {"Kotlin": 1093450, "Java": 5870, "Shell": 551} | package org.gradle.kotlin.dsl.fixtures
import org.gradle.api.JavaVersion
import org.gradle.internal.FileUtils.toSafeFileName
import org.gradle.kotlin.dsl.support.zipTo
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome
import org.h... | 0 | Kotlin | 0 | 1 | 70aca202558f2f6e43cd8ead3ec95d669bfd7b33 | 8,780 | kotlin-dsl | Apache License 2.0 |
src/main/kotlin/fm/force/ui/component/field/QuestionAutocompleteField.kt | night-crawler | 239,825,339 | false | null | package fm.force.ui.component.field
import com.ccfraser.muirwik.components.mTextField
import fm.force.ui.client.QuestionSearchCriteria
import fm.force.ui.hook.UseState
import fm.force.ui.hook.useClient
import fm.force.ui.hook.useDebounce
import kotlinext.js.Object
import mu.KotlinLogging
import mui.lab.labAutocomplete... | 0 | Kotlin | 0 | 13 | 2088cf140358341cf5a49d0144fb010eb22a9048 | 2,109 | quiz-frontend | MIT License |
app/src/main/java/com/example/movinsight/API/SearchMovieResponse.kt | RaigZ | 716,618,626 | false | {"Kotlin": 80352} | package com.example.movinsight.API
data class SearchMovieResponse (
val status: Boolean,
val message: String,
val timestamp: Float,
val data: List<searchItem>
)
data class searchItem(
val id: String,
val qid: String,
val title: String,
val year: Int,
val stars: String,
val q: S... | 0 | Kotlin | 0 | 0 | 374e9cad2616355a36e96f92ace4771561b4e5fc | 350 | MovInsight | MIT License |
app/src/main/java/com/example/i210566/VerifyPhoneNumberActivity.kt | MuhammadSaadHasan | 754,987,730 | false | {"Kotlin": 88262} | package com.example.i210566
import android.content.Intent
import android.os.Bundle
import android.widget.ImageButton
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.FirebaseException
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.Phon... | 0 | Kotlin | 0 | 1 | c88bbc127be78708e1f3676ae2fe4c882aa4bd18 | 3,600 | MentorMe | MIT License |
auth/app/src/minSdkIcs/java/com/google/firebase/quickstart/auth/FacebookLoginActivity.kt | kotlin-korea | 97,319,520 | true | {"Gradle": 38, "Shell": 14, "Java Properties": 26, "Markdown": 15, "Text": 2, "Ignore List": 19, "Batchfile": 13, "YAML": 5, "JSON": 1, "Proguard": 13, "XML": 117, "Kotlin": 16, "Java": 46, "HTML": 1} | /**
* Copyright 2016 Google Inc. 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 required by applicable law o... | 1 | Java | 2 | 5 | d548f84c06f77ef08d4565d754bb83a267453947 | 1,025 | quickstart-android | Creative Commons Attribution 4.0 International |
app/src/main/java/com/alexvoz/tawk_test_task/presentation/users_list/UserListAdapter.kt | aleksandrsvozn | 373,213,314 | false | null | package com.alexvoz.tawk_test_task.presentation.users_list
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.Recyc... | 0 | Kotlin | 1 | 0 | 8b8a4d1501b07c373cdb19f02fc20c25bc466948 | 5,331 | tawk_test_task | Apache License 2.0 |
app/src/main/java/com/gitlab/j_m_hoffmann/meditate/repository/db/Db.kt | j-m-hoffmann | 377,749,254 | false | null | package com.gitlab.j_m_hoffmann.meditate.repository.db
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(entities = [Session::class], version = 1, exportSchema = false)
abstract class Db : RoomDatabase() {
abstract val dao: Dao
}
| 0 | Kotlin | 0 | 0 | 622a47e0a322cfba16130182eee672e41e8a153d | 261 | Meditate | Attribution Assurance License |
libraries/core/src/main/kotlin/io/plastique/core/work/CommonWorkTags.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.core.work
object CommonWorkTags {
const val CANCEL_ON_LOGOUT = "cancel-on-logout"
}
| 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 110 | plastique | Apache License 2.0 |
chat-persistence-cassandra/src/main/kotlin/com/demo/chat/persistence/cassandra/impl/MembershipPersistenceCassandra.kt | marios-code-path | 181,180,043 | false | {"Kotlin": 924762, "Shell": 36602, "C": 3160, "HTML": 2714, "Starlark": 278} | package com.demo.chat.persistence.cassandra.impl
import com.demo.chat.domain.Key
import com.demo.chat.persistence.cassandra.domain.TopicMembershipByKey
import com.demo.chat.persistence.cassandra.repository.TopicMembershipRepository
import com.demo.chat.service.core.IKeyService
import com.demo.chat.service.core.Members... | 2 | Kotlin | 1 | 9 | 2ae59375cd44e8fb58093b0f24596fc3111fd447 | 1,590 | demo-chat | MIT License |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/versions/KotlinJvmMetadataVersionIndex.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.versions
import com.intellij.ide.highlighter.JavaClassFileType
import com.intellij.util.indexing.DataIndexer
import com.intel... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 4,177 | intellij-community | Apache License 2.0 |
flutter_navigations_2/android/app/src/main/kotlin/com/example/flutter_navigations_2/MainActivity.kt | shreyasSarve | 437,082,913 | false | {"Dart": 207367, "HTML": 77327, "C++": 50468, "CMake": 23845, "Swift": 8197, "Kotlin": 2699, "C": 2202, "Objective-C": 769} | package com.example.flutter_navigations_2
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | a84a91356590e1c9ca2f734565c2d1ece8000cdb | 138 | FlutterBeginer | Apache License 2.0 |
app/src/main/java/com/salvador/breakingbad/domain/use_case/favorites/DeleteFavorite.kt | salvadordeveloper | 463,598,581 | false | {"Kotlin": 50105} | package com.salvador.breakingbad.domain.use_case.favorites
import com.salvador.breakingbad.data.local.dto.FavoriteCharacter
import com.salvador.breakingbad.domain.repository.FavoriteCharacterRepository
import javax.inject.Inject
class DeleteFavorite @Inject constructor(private val repository : FavoriteCharacterReposi... | 0 | Kotlin | 0 | 4 | 7133b3510edd970e9e4c670479c600bec290febf | 442 | android-breaking-bad | MIT License |
app/src/main/kotlin/me/xizzhu/android/joshua/search/result/SearchVerseItem.kt | hoc081098 | 424,862,923 | true | {"Kotlin": 1016945} | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 0 | 0 | db9b681ca744bb9dc4a415cf1dec0de7e3f8fa1a | 4,557 | Joshua | Apache License 2.0 |
compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/focus/FocusObserverTest.kt | tikurahul | 334,969,342 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 11 | null | 1 | 1 | fa4711838092061ca02409b998a59f12ef0b7143 | 7,973 | androidx | Apache License 2.0 |
framework-docs/src/main/kotlin/org/springframework/docs/core/aop/ataspectj/aopataspectj/ApplicationConfiguration.kt | spring-projects | 1,148,753 | false | {"Java": 48416901, "Kotlin": 969803, "AspectJ": 31773, "FreeMarker": 31129, "Groovy": 6902, "XSLT": 2945, "HTML": 1140, "Ruby": 1060, "CSS": 1019, "Shell": 961, "Smarty": 717, "PLpgSQL": 305, "JavaScript": 280, "Python": 254} | /*
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 4 | Java | 4 | 56,506 | 52e813d0ad2a5d3439c1880b481b6942a138a8dc | 916 | spring-framework | Apache License 2.0 |
app/src/main/java/com/hms/referenceapp/hifood/adapter/RecipeListAdapter.kt | Explore-In-HMS | 379,893,524 | false | null | /* Copyright 2020. Explore in HMS. 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
* distributed under the License is ... | 0 | Kotlin | 0 | 0 | c8a709e1af8cadd9e7e2862d7879a943da94c2bc | 2,235 | Hi-Food | Apache License 2.0 |
app/src/main/java/xyz/daijoubuteam/foodshoppingapp/services/AppFirebaseMessagingService.kt | dinhlockt02 | 477,610,621 | false | null | package xyz.daijoubuteam.foodshoppingapp.services
import android.app.Notification
import android.app.Notification.DEFAULT_SOUND
import android.app.Notification.DEFAULT_VIBRATE
import android.app.NotificationManager
import android.content.ContentResolver
import android.content.Context
import android.media.RingtoneMana... | 0 | Kotlin | 1 | 0 | be52b08b48f5dd0c5b2786e243288d947219fdfd | 3,380 | FoodShoppingApp | MIT License |
DSLs/kubernetes/dsl/src/main/kotlin-gen/dev/forkhandles/k8s/networking/v1/podSelector.kt | fork-handles | 649,794,132 | false | {"Kotlin": 575626, "Shell": 2264, "Just": 1042, "Nix": 740} | // GENERATED
package dev.forkhandles.k8s.networking.v1
import io.fabric8.kubernetes.api.model.LabelSelector as model_LabelSelector
import io.fabric8.kubernetes.api.model.networking.v1.NetworkPolicyPeer as v1_NetworkPolicyPeer
import io.fabric8.kubernetes.api.model.networking.v1.NetworkPolicySpec as v1_NetworkPolicySpe... | 0 | Kotlin | 0 | 9 | 68221cee577ea16dc498745606d07b0fb62f5cb7 | 706 | k8s-dsl | MIT License |
libraries/matrix/api/src/main/kotlin/io/element/android/libraries/matrix/api/poll/PollKind.kt | vector-im | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector Ltd
*
* 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... | 105 | null | 32 | 287 | 4587b51bd33e8b5a2e2c81c79f3aa70a3ac52923 | 844 | element-x-android | Apache License 2.0 |
src/main/kotlin/com/github/mmauro94/mkvtoolnix_wrapper/json/MkvToolnixLanguageConverter.kt | MMauro94 | 173,610,080 | false | null | package com.github.mmauro94.mkvtoolnix_wrapper.json
import com.beust.klaxon.Converter
import com.beust.klaxon.JsonValue
import com.beust.klaxon.KlaxonException
import com.github.mmauro94.mkvtoolnix_wrapper.MkvToolnixLanguage
internal object MkvToolnixLanguageConverter : Converter {
override fun canConvert(cls: C... | 0 | Kotlin | 1 | 2 | 2f87c63e47e5c85f039b6536aeb574bb9e0b3e84 | 717 | mkvtoolnix-wrapper | MIT License |
kamp-core/src/main/kotlin/ch/leadrian/samp/kamp/core/runtime/data/MutableVector2DImpl.kt | Double-O-Seven | 142,487,686 | false | {"Kotlin": 3854710, "C": 23964, "C++": 23699, "Java": 4753, "Dockerfile": 769, "Objective-C": 328, "Batchfile": 189} | package ch.leadrian.samp.kamp.core.runtime.data
import ch.leadrian.samp.kamp.core.api.data.MutableVector2D
import ch.leadrian.samp.kamp.core.api.data.Vector2D
internal data class MutableVector2DImpl(
override var x: Float,
override var y: Float
) : MutableVector2D {
override fun toVector2D(): Vec... | 1 | Kotlin | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 988 | kamp | Apache License 2.0 |
vire-engine/src/main/kotlin/net/voxelpi/vire/engine/circuit/CircuitInstance.kt | VoxelPi | 700,036,011 | false | {"Kotlin": 336370} | package net.voxelpi.vire.engine.circuit
import net.voxelpi.vire.engine.circuit.component.Component
import net.voxelpi.vire.engine.kernel.KernelInstance
import java.util.UUID
public interface CircuitInstance {
public operator fun get(component: Component): KernelInstance
}
public interface MutableCircuitInstance... | 1 | Kotlin | 0 | 0 | d7823aa5aa361a1fa5e5057b10433fa5194a0ffd | 940 | Vire | MIT License |
src/main/kotlin/github/samyycx/fisherman/modules/gameconfig/rod/RodManager.kt | samyycX | 742,795,853 | false | {"Kotlin": 42404, "Java": 351} | package github.samyycx.fisherman.modules.gameconfig.rod
import org.bukkit.configuration.file.YamlConfiguration
import taboolib.module.chat.colored
import java.io.File
object RodManager {
private var defaultRod: Rod? = null
private val rods = mutableMapOf<String, Rod>()
fun setup(folder: File, defaultCo... | 0 | Kotlin | 0 | 0 | 8336b73de9e8461612791651aec6ef9f246e92ac | 1,356 | Fisherman | MIT License |
app/src/main/java/com/bentrengrove/chess/engine/AI.kt | bentrengrove | 310,423,951 | false | {"Kotlin": 42321} | package com.bentrengrove.chess
class AI(val color: PieceColor) {
// This AI doesn't work at all currently
fun calculateNextMove(game: Game, player: PieceColor): Move? {
return search(game, 0, player).getOrNull(0)?.first
}
fun search(game: Game, depth: Int, player: PieceColor): List<Pair<Move, ... | 1 | Kotlin | 6 | 47 | 97f91217f191ea9308d7dff6ebfc7a3d5534d134 | 990 | chess | MIT License |
app/src/main/java/com/ajce/hostelmate/sickleave/SickLeaveViewModel.kt | Jithin-Jude | 256,905,231 | false | null | package com.ajce.hostelmate.sickleave
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import com.ajce.hostelmate.FirebaseQueryLiveData
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.FirebaseDatabase
/**
* Created by JithinJude on 02,May,2020
*/
class Sick... | 0 | Kotlin | 1 | 1 | da95b289d6767dceec57e07718f0ad283ad1dfc4 | 600 | HostelMate_AJCE | MIT License |
komga_client/src/commonMain/kotlin/io/github/snd_r/komga/collection/KomgaCollectionClient.kt | Snd-R | 775,064,249 | false | {"Kotlin": 1035469, "CMake": 18341, "C": 5487, "Dockerfile": 767, "JavaScript": 695, "HTML": 447, "Shell": 238} | package io.github.snd_r.komga.collection
import io.github.snd_r.komga.common.KomgaPageRequest
import io.github.snd_r.komga.common.Page
import io.github.snd_r.komga.common.toParams
import io.github.snd_r.komga.library.KomgaLibraryId
import io.github.snd_r.komga.series.KomgaSeries
import io.ktor.client.*
import io.ktor.... | 0 | Kotlin | 0 | 3 | 80f52077176665756f62a40ff9f76041e3051c62 | 3,110 | Komelia | Apache License 2.0 |
src/test/kotlin/no/nav/familie/ef/sak/beregning/OmregningServiceTest.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.beregning
import com.fasterxml.jackson.module.kotlin.readValue
import io.mockk.clearMocks
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import io.mockk.verify
import no.nav.familie.ef.sak.OppslagSpringRunnerTest
import no.nav.familie.ef.sak.barn.BarnRepository
import no... | 8 | Kotlin | 2 | 0 | d1d8385ead500c4d24739b970940af854fa5fe2c | 12,452 | familie-ef-sak | MIT License |
multisrc/overrides/madara/remangas/src/Remangas.kt | lmk1988 | 253,204,269 | true | {"Kotlin": 4659131} | package eu.kanade.tachiyomi.extension.pt.remangas
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class Remangas : Madara(
"Remangas... | 605 | Kotlin | 1236 | 5 | 3e1df100b87358d8b50ce8dd998e04552db9c91d | 641 | tachiyomi-extensions | Apache License 2.0 |
core/model/src/main/java/org/expenny/core/model/common/Country.kt | expenny-application | 712,607,222 | false | {"Kotlin": 1159524} | package org.expenny.core.model.common
data class Country(
val name: String,
val code: String,
)
| 0 | Kotlin | 3 | 42 | 7e4b8e1a5dfacf5799d5ace2e72cd21f002d6311 | 105 | expenny-android | Apache License 2.0 |
feature/user/deactivation/src/main/java/com/uragiristereo/mikansei/feature/user/deactivation/navigation/UserDeactivationNavGraph.kt | uragiristereo | 583,834,091 | false | {"Kotlin": 978568} | package com.uragiristereo.mikansei.feature.user.deactivation.navigation
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.togetherWith
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composab... | 3 | Kotlin | 2 | 62 | 4f136b0479ee7772f3d7ba48927cef9389d5c2be | 3,777 | Mikansei | Apache License 2.0 |
platform/platform-tests/testSrc/com/intellij/openapi/project/impl/navigation/NavigationTestBase.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.project.impl.navigation
import com.intellij.navigation.LocationInFile
import com.intellij.openapi.application.EDT
import com.intellij.openapi.application.writeAction
imp... | 233 | null | 4912 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 4,315 | intellij-community | Apache License 2.0 |
app/src/main/java/wutheringwavesguide/models/api/characterdetail/Cons.kt | nikunj3011 | 810,402,672 | false | {"Kotlin": 247322} | package wutheringwavesguide.models.api.characterdetail
data class Cons(
val raw: String
) | 0 | Kotlin | 0 | 0 | 9bf0e2f5bcae9938c522d9aa604777d791c2a9da | 94 | Wuthering.Waves.Android.Kotlin | MIT License |
android/src/test/java/com/adyenreactnativesdk/configuration/GooglePayConfigurationParserTest.kt | Adyen | 419,645,479 | false | null | package com.adyenreactnativesdk.configuration
import android.util.Log
import com.adyen.checkout.core.api.Environment
import com.facebook.react.bridge.ReadableArray
import org.junit.Assert.assertEquals
import org.junit.Test
import org.mockito.MockedStatic
import org.mockito.Mockito.anyString
import org.mockito.Mockito.... | 49 | null | 29 | 37 | f9c63ffcad510a4526e81f0ffc7929df286a254f | 2,733 | adyen-react-native | MIT License |
app/src/main/java/com/yabancikelimedefteri/domain/utils/ImportanceLevelSetter.kt | AhmetOcak | 621,942,001 | false | {"Kotlin": 215007} | package com.yabancikelimedefteri.domain.utils
import androidx.compose.ui.graphics.Color
import com.yabancikelimedefteri.domain.model.ImportanceLevel
fun Int.setImportanceLevel(): Color {
return when (this) {
ImportanceLevel.Green.ordinal -> Color.Green
ImportanceLevel.Yellow.ordinal -> Color.Yello... | 1 | Kotlin | 0 | 2 | 70b79147500e11ce47657091910d2457df3862b3 | 716 | YabanciKelimeDefterim | MIT License |
Week2/W2S2_11321051/src/main/kotlin/no16.kt | marloxxx | 563,639,368 | false | {"Kotlin": 171819, "PHP": 91686, "C++": 39436, "CMake": 34938, "Blade": 18425, "Dart": 7911, "C": 2850, "Swift": 2316, "HTML": 1830, "Shell": 1069, "JavaScript": 285, "Objective-C": 76} | import java.util.*
fun main() {
val fruits = listOf("banana", "avocado", "apple", "kiwifruit") // deklarasi variabel fruits dengan tipe data List<String> dan nilai ["banana", "avocado", "apple", "kiwifruit"]
fruits.filter { it.startsWith("a") } // memfilter nilai dari fruits yang dimulai dengan huruf a
... | 0 | Kotlin | 0 | 0 | 6c32297cef729b18561591555d5bdbe630562bd0 | 638 | PAM | MIT License |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/api/search/SearchRepository.kt | altaf933 | 122,962,254 | false | {"Gradle": 4, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Proguard": 1, "Kotlin": 377, "XML": 225, "Java": 1} | package io.github.feelfreelinux.wykopmobilny.api.search
import io.github.feelfreelinux.wykopmobilny.api.UserTokenRefresher
import io.github.feelfreelinux.wykopmobilny.api.errorhandler.ErrorHandlerTransformer
import io.github.feelfreelinux.wykopmobilny.models.mapper.apiv2.AuthorMapper
import io.github.feelfreelinux.wyk... | 1 | null | 1 | 1 | 63bdf6c1c168b747714a7051f7637dca7e48c88d | 1,844 | WykopMobilny | MIT License |
src/main/kotlin/io/kjson/demo2/adapters/provides/KtorProperties.kt | pwall567 | 632,757,780 | false | null | package io.kjson.demo2.adapters.provides
import io.ktor.server.application.ApplicationEnvironment
import io.kjson.demo2.ports.provides.Properties
class KtorProperties(private val environment: ApplicationEnvironment) : Properties {
override fun get(string: String): String? {
return environment.config.pro... | 0 | Kotlin | 0 | 0 | 36e83bd44cbec87f6c290f28e395db4d67b4e377 | 362 | ktor-demo-2 | MIT License |
rtron-math/src/main/kotlin/io/rtron/math/geometry/curved/threed/point/CurveRelativeVector3D.kt | savenow | 309,383,785 | false | null | /*
* Copyright 2019-2024 Chair of Geoinformatics, Technical University of Munich
*
* 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
*
... | 7 | null | 12 | 5 | b1538e4d167562b497ba52f13c5cf8fc31dcd818 | 3,721 | rtron | Apache License 2.0 |
app/src/main/kotlin/app/grapheneos/info/ui/donate/cryptocurrency/BitcoinScreen.kt | GrapheneOS | 819,051,378 | false | {"Kotlin": 118133} | package app.grapheneos.info.ui.donate.cryptocurrency
import android.content.res.Configuration
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.... | 4 | Kotlin | 6 | 8 | 9da623e352625b9b283e1358585d440d9289bce1 | 4,142 | Info | MIT License |
Code/app/src/main/java/com/istudio/services/modules/started_services/intent_service/IntentServiceScreen.kt | devrath | 534,642,035 | false | {"Kotlin": 36755} | package com.istudio.services.modules.started_services.intent_service
import android.content.Intent
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import android... | 0 | Kotlin | 0 | 0 | ca2c35af835d09bb991dc1e263aba74f9b7eff46 | 1,420 | droid-component-services | Apache License 2.0 |
app/src/main/kotlin/com/hyphenate/chatdemo/common/PresenceCache.kt | easemob | 785,517,709 | false | {"Kotlin": 413442, "HTML": 35978, "Makefile": 917} | package com.hyphenate.chatdemo.common
import com.hyphenate.easeui.common.ChatPresence
import java.util.concurrent.ConcurrentHashMap
object PresenceCache {
private val presencesMap: ConcurrentHashMap<String, ChatPresence> = ConcurrentHashMap()
@Synchronized
fun insertPresences(userId: String?,chatPresenc... | 1 | Kotlin | 4 | 2 | 53eb47fdd15f36bba9ccf093cded74b66eeaf3d3 | 814 | easemob-demo-android | Apache License 2.0 |
compiler/testData/loadJava/compiledKotlin/type/Nothing.kt | JakeWharton | 99,388,807 | true | null | package test
fun nothing(): Nothing = throw Exception()
| 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 57 | kotlin | Apache License 2.0 |
app/src/main/java/resonance/http/httpdownloader/implementations/FileIO.kt | ajk1889 | 463,805,623 | false | null | package resonance.http.httpdownloader.implementations
import android.content.Context
import android.net.Uri
import androidx.core.content.FileProvider
import resonance.http.httpdownloader.core.OutputObj
import resonance.http.httpdownloader.core.otherwise
import resonance.http.httpdownloader.core.silently
import resonan... | 8 | Kotlin | 2 | 5 | 6b4b5147f0f8fd093d0a4d91f1569f6fb73b1675 | 1,924 | HTTP-Downloader2 | MIT License |
src/Day02.kt | cisimon7 | 573,872,773 | false | {"Kotlin": 41406} | fun main() {
fun abcMap(a: String) = when (a) {
"A" -> HandShape.Rock
"B" -> HandShape.Paper
"C" -> HandShape.Scissors
else -> throw Error("$a is not applicable")
}
fun xyzMap(a: String) = when (a) {
"X" -> HandShape.Rock to Outcome.Loose
"Y" -> HandShape.Pap... | 0 | Kotlin | 0 | 0 | 29f9cb46955c0f371908996cc729742dc0387017 | 2,651 | aoc-2022 | Apache License 2.0 |
src/Day02.kt | cisimon7 | 573,872,773 | false | {"Kotlin": 41406} | fun main() {
fun abcMap(a: String) = when (a) {
"A" -> HandShape.Rock
"B" -> HandShape.Paper
"C" -> HandShape.Scissors
else -> throw Error("$a is not applicable")
}
fun xyzMap(a: String) = when (a) {
"X" -> HandShape.Rock to Outcome.Loose
"Y" -> HandShape.Pap... | 0 | Kotlin | 0 | 0 | 29f9cb46955c0f371908996cc729742dc0387017 | 2,651 | aoc-2022 | Apache License 2.0 |
app/src/main/java/de/thomaskuenneth/smsrelay/SmsReceivedBroadcastReceiver.kt | tkuenneth | 857,257,684 | false | {"Kotlin": 13169} | package de.thomaskuenneth.smsrelay
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.provider.Telephony
import android.provider.Telephony.Mms
import android.provider.Telephony.Sms.Intents.getMessagesFromIntent
import android.util... | 0 | Kotlin | 0 | 1 | f2416618c80c554da1fad27e720ca973223f4c6b | 7,222 | SMSRelay | MIT License |
idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/weighers/AbstractCompletionWeigherTest.kt | android | 263,405,600 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.completion.test.weighers
import com.intellij.codeInsight.completion.Complet... | 1 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 2,083 | kotlin | Apache License 2.0 |
data/api/src/test/java/com/sobhanmp/golazo/api/ApiUnitTest.kt | Sobhan-mp | 616,851,909 | false | {"Kotlin": 19816} | package com.sobhanmp.golazo.api
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ApiUnitTest {
} | 0 | Kotlin | 0 | 0 | 8351d248959539ebef66417eb531175a57eba835 | 266 | golazo | Apache License 2.0 |
VehicleUI/src/main/java/com/drivequant/drivekit/vehicle/ui/bluetooth/adapter/BluetoothItemRecyclerViewAdapter.kt | DriveQuantPublic | 216,339,559 | false | {"Gradle": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 10, "Batchfile": 1, "Markdown": 1, "INI": 8, "Proguard": 9, "XML": 419, "Kotlin": 478, "Java": 1} | package com.drivequant.drivekit.vehicle.ui.bluetooth.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.core.graphics.drawable.... | 1 | Kotlin | 3 | 9 | e7956263157c49aae8d6f993a558ea77d9658ee6 | 4,793 | drivekit-ui-android | Apache License 2.0 |
app/src/main/java/desoft/studio/webpoint/data/Webpoint_Dao.kt | JK-IT | 385,474,689 | false | null | package desoft.studio.webpocket.data
import androidx.room.*
/**
*
@Insert - This method will add records. This means a query of type "Insert" will be executed.
@Update - This method will update records.
@Delete - This method to delete a record
@Query - Define the database operations to be performed directly using SQ... | 0 | Kotlin | 0 | 0 | 0f5eff1d43ad1271bd9861c78d42addcf6aba454 | 914 | pointbew | Apache License 2.0 |
core/remote/food-data-central/src/main/kotlin/org/calamarfederal/messydiet/food/data/central/model/FoundationFoodItem.kt | John-Tuesday | 684,904,664 | false | {"Kotlin": 351738} | package org.calamarfederal.messydiet.food.data.central.model
import org.calamarfederal.messydiet.food.data.central.remote.schema.FoundationFoodItemSchema
import org.calamarfederal.messydiet.food.data.central.remote.schema.SearchResultFoodSchema
import org.calamarfederal.messydiet.food.data.central.remote.schema.parseR... | 0 | Kotlin | 0 | 0 | ab2da78d3cc695aef075143775f6cd9d703f2b8f | 1,515 | messy-diet | MIT License |
app/src/main/java/com/ccastro/pokedexapp/di/DataModule.kt | Crist-C | 714,102,815 | false | {"Kotlin": 79920} | package com.ccastro.pokedexapp.di
import com.ccastro.pokedexapp.data.apis.PokemonsDAO
import com.ccastro.pokedexapp.data.repositories.PokemonRepository
import com.ccastro.pokedexapp.domain.repositories.IPokemonRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.compon... | 0 | Kotlin | 0 | 1 | c402720875317f52acaa6cc8e048d2a9b825c26b | 1,494 | Pokedex | Apache License 2.0 |
app/src/main/java/com/ismailhakkiaydin/football/model/topscorer/Penalty.kt | ihaydinn | 261,578,497 | false | null | package com.ismailhakkiaydin.football.model.topscorer
import androidx.room.Embedded
import com.google.gson.annotations.SerializedName
data class Penalty(
@SerializedName("won")
var won: Int,
@SerializedName("success")
var success: Int,
@SerializedName("missed")
var missed: Int
) | 0 | Kotlin | 7 | 24 | 3d835c53af004d18a1c68e3dee3a252cfb33b16b | 308 | football-app | MIT License |
apps/etterlatte-pdltjenester/src/main/kotlin/config/ApplicationContext.kt | navikt | 417,041,535 | false | null | package no.nav.etterlatte.config
import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory
import no.nav.etterlatte.libs.ktor.httpClient
import no.nav.etterlatte.libs.ktor.httpClientClientCredentials
import no.nav.etterlatte.pdl.ParallelleSannheterKlient
import no.nav.etterlatte.pdl.PdlKlient
import n... | 15 | null | 0 | 5 | d0b42ff1df660904897d6869868f440747ce74d5 | 1,341 | pensjon-etterlatte-saksbehandling | MIT License |
src/test/kotlin/passwordStore/tags/TagTest.kt | sciack | 669,479,977 | false | {"Kotlin": 269195, "Dockerfile": 302} | package passwordStore.tags
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.input.key.Key
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createComposeRule
import com.natpryce.... | 0 | Kotlin | 0 | 0 | ee95b4ef7442d1d4f13b3590e22c5e85645cc247 | 3,607 | kpassword-store | The Unlicense |
simplecloud-api/src/main/kotlin/eu/thesimplecloud/api/config/IConfigLoader.kt | theSimpleCloud | 270,085,977 | false | null | /*
* MIT License
*
* Copyright (C) 2020-2022 The SimpleCloud authors
*
* 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 u... | 8 | null | 43 | 98 | 8f10768e2be523e9b2e7c170965ca4f52a99bf09 | 1,580 | SimpleCloud | MIT License |
livechat/src/main/java/com/desk360/livechat/presentation/viewholder/CrMenuButtonViewHolder.kt | Teknasyon-Teknoloji | 394,270,981 | false | null | package com.desk360.livechat.presentation.viewholder
import android.view.LayoutInflater
import android.view.ViewGroup
import com.desk360.base.presentation.endDrawable
import com.desk360.livechat.R
import com.desk360.livechat.data.model.cannedresponse.CannedActionType
import com.desk360.livechat.databinding.ItemCrMenuB... | 0 | Kotlin | 1 | 31 | c7ac17186696305970b622f0c6cd5a2c33dc3688 | 2,223 | desk360-livechat-android-sdk | MIT License |
src/main/kotlin/net/axay/kspigot/gui/GUIType.kt | bluefireoly | 275,054,909 | false | null | @file:Suppress("MemberVisibilityCanBePrivate", "CanBeParameter")
package net.axay.kspigot.gui
import org.bukkit.Bukkit
import org.bukkit.event.inventory.InventoryType
import org.bukkit.inventory.Inventory
import org.bukkit.inventory.InventoryHolder
class GUIType<in T : ForInventory>(
val dimensions: InventoryDim... | 1 | Kotlin | 15 | 63 | 47c220f65b4e020275d8deaf92923018332686a1 | 2,554 | KSpigot | Apache License 2.0 |
src/main/kotlin/net/axay/kspigot/gui/GUIType.kt | bluefireoly | 275,054,909 | false | null | @file:Suppress("MemberVisibilityCanBePrivate", "CanBeParameter")
package net.axay.kspigot.gui
import org.bukkit.Bukkit
import org.bukkit.event.inventory.InventoryType
import org.bukkit.inventory.Inventory
import org.bukkit.inventory.InventoryHolder
class GUIType<in T : ForInventory>(
val dimensions: InventoryDim... | 1 | Kotlin | 15 | 63 | 47c220f65b4e020275d8deaf92923018332686a1 | 2,554 | KSpigot | Apache License 2.0 |
app/src/main/java/ru/spitchenko/githubapp/feature/github/search/domain/FavoritesRepository.kt | Onotole1 | 246,505,562 | false | null | package ru.spitchenko.githubapp.feature.github.search.domain
import ru.spitchenko.githubapp.feature.github.domain.model.Repository
interface FavoritesRepository {
suspend fun addToFavorite(repository: Repository)
suspend fun removeFromFavorites(repositoryId: Long)
suspend fun getFavorites(repositories: L... | 0 | Kotlin | 1 | 0 | 74f07b543edbe8fa0bc75a119624b055b5fabb14 | 356 | GithubApp | Apache License 2.0 |
ChatExample/app/src/main/java/com/github/dsrees/chatexample/MessagesAdapter.kt | dsrees | 140,852,184 | false | null | package com.github.dsrees.chatexample
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class MessagesAdapter : RecyclerView.Adapter<MessagesAdapter.ViewHolder>() {
private var messages: Mutabl... | 5 | Kotlin | 27 | 50 | 52484478caaef77c4e09dbe61e8808b9817b7dd4 | 1,033 | JavaPhoenixClient | MIT License |
app/src/main/java/com/iamsdt/pssd/ext/ActivityExt.kt | uzzal-mondal | 187,579,574 | true | {"Kotlin": 186145} | /*
* Developed By <NAME>
* on 8/17/18 10:54 AM
* Copyright (c) 2018 <NAME>.
*/
package com.iamsdt.pssd.ext
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.browser.customtabs.CustomTabsIntent
import androidx.fragment.app.... | 0 | Kotlin | 0 | 0 | 9ee1041a5a808f3b3f0a297c7e7aab8c77263e3a | 2,783 | SoilScienceDictionary | Apache License 2.0 |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/api/Argument.kt | raymondwdamon | 157,889,311 | false | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.resolve.api
import com.intellij.psi.PsiType
interface Argument {
val type: PsiType?
val topLevelType: PsiType? get() = type
}
| 1 | null | 1 | 1 | 38392d14453bdd788b34c176dcdac7fa5498faab | 317 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/jmb_bms/view/MenuTop3.kt | alarm-clock | 701,783,108 | false | {"Kotlin": 868333} | /**
* @file: MenuTop3.kt
* @author: <NAME> <<EMAIL>,<EMAIL>>
* Description: File containing menu top and connection state row
*/
package com.example.jmb_bms.view
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.co... | 0 | Kotlin | 0 | 0 | 1e3227abcd299188042ba847e7e4a2153334d51e | 3,379 | PERLA_Android_client | MIT License |
codeSnippets/snippets/json-kotlinx/src/test/kotlin/jsonkotlinx/ApplicationTest.kt | ktorio | 278,572,893 | false | {"Kotlin": 326650, "HTML": 29275, "JavaScript": 5361, "FreeMarker": 2738, "Dockerfile": 1709, "Swift": 1432, "CSS": 470, "Handlebars": 75, "Pug": 51} | package com.example
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import io.ktor.serialization.kotlinx.json.*
import io.ktor.server.application.*
import io.ktor.server.testing.*
import kotlinx.serialization.*
import kotlinx.se... | 3 | Kotlin | 284 | 428 | a6db611f4fea9a5deb53a571c98891326b24e55f | 1,775 | ktor-documentation | Apache License 2.0 |
src/main/kotlin/moirai/service/Transport.kt | moirai-lang | 783,108,500 | false | {"Kotlin": 22025} | package moirai.service
import com.fasterxml.jackson.databind.JsonNode
import moirai.transport.*
fun jsonToMoirai(node: JsonNode, type: TransportType): String {
when (type) {
is TransportBasicType -> {
if (type.name == "Boolean" && node.isValueNode) {
return node.asBoolean().toS... | 0 | Kotlin | 0 | 2 | 54fe8809cbbc53fabb80b6ad5757ee2bd3cc4074 | 4,378 | moirai-service | MIT License |
ekscore/src/main/kotlin/js/node/fs/write/index.kt | kazhida | 141,879,098 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION", "NESTED_CLASS_IN_EXTERNAL_INTERFACE", "UNUSED")
@file:[JsModule("fs") JsQualifier("write")]
package js.node.fs.write
import kotlin.js.*
external interface `T$65`<T... | 0 | Kotlin | 0 | 0 | 0db86fad2dea30ccd8d31916ea9a4fee784e43ee | 1,099 | eks | Apache License 2.0 |
app/src/main/java/com/aviva/pedro_exercise_compose/ui/Spinner.kt | DeveloperJGV | 803,435,386 | false | {"Kotlin": 8731} | import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberIn... | 0 | Kotlin | 0 | 0 | ae5ac4092c2432ad0f973bf6eca676c01b34907b | 3,250 | Pedro-Exercise-Compose | MIT License |
app/src/main/java/id/android/basics/modules/domain/MainUsecase.kt | budioktaviyan | 493,531,782 | false | null | package id.android.basics.modules.domain
class MainUsecase(private val repository: MainRepository) | 0 | Kotlin | 0 | 7 | d1ef2a2522e28853ae05adf405d76bea4319114b | 99 | modularization-basics | MIT License |
app/src/main/java/com/connectycube/messenger/ChatConnectionManager.kt | ConnectyCube | 198,286,170 | false | {"Kotlin": 396454, "Java": 19119} | package com.connectycube.messenger
import android.content.Context
import com.connectycube.messenger.events.EVENT_CHAT_LOGIN
import com.connectycube.messenger.events.EventChatConnection
import com.connectycube.messenger.events.LiveDataBus
import com.connectycube.messenger.helpers.RTCSessionManager
import com.connectycu... | 0 | Kotlin | 23 | 51 | 1b7a8942692791365a0c28140fd673eb7823b7cb | 3,425 | android-messenger-app | Apache License 2.0 |
Sample/src/main/java/com/angcyo/dsladapter/demo/LoadMoreActivity.kt | angcyo | 201,440,286 | false | {"Kotlin": 409151} | package com.angcyo.dsladapter.demo
import android.widget.Toast
import com.angcyo.dsladapter.DslAdapterStatusItem
import com.angcyo.dsladapter.DslLoadMoreItem
/**
*
* Email:<EMAIL>
* @author angcyo
* @date 2019/10/16
* Copyright (c) 2019 ShenZhen O&M Cloud Co., Ltd. All rights reserved.
*/
class LoadMoreActivity... | 3 | Kotlin | 57 | 690 | d0c5110a1dfeb11a93a9b0e5b9ac353bcb3c08d2 | 2,858 | DslAdapter | MIT License |
src/co/aospa/sense/activities/FaceBaseActivity.kt | AOSPA | 560,146,398 | false | null | package co.aospa.sense.activities
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.widget.TextView
import androidx.fragment.app.FragmentActivity
import co.aospa.sense.R
import co.aospa.sense.util.Constants
import com.google.android.setupdesign.GlifLayout
abstract cla... | 0 | null | 7 | 1 | f6b6c51961d20b1c0b07484181ca03ba30405178 | 1,890 | android_packages_apps_ParanoidSense | Apache License 2.0 |
test/src/me/anno/tests/image/Webp.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.tests.image
import me.anno.gpu.hidden.HiddenOpenGLContext
import me.anno.image.ImageGPUCache
import me.anno.utils.OS.desktop
import me.anno.utils.OS.pictures
import me.anno.utils.OS.videos
fun main() {
// todo why is loading these images within materials not working?
val dst = desktop.getChild... | 0 | null | 1 | 7 | bacd7c79b8b34765d157012a08d728008c4b2d9a | 900 | RemsEngine | Apache License 2.0 |
libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/model/VoiceMessagePlayerEvent.kt | element-hq | 546,522,002 | false | {"Kotlin": 8692554, "Python": 57175, "Shell": 39911, "JavaScript": 20399, "Java": 9607, "HTML": 9416, "CSS": 2519, "Ruby": 44} | /*
* Copyright (c) 2023 New Vector Ltd
*
* 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... | 263 | Kotlin | 65 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 881 | element-x-android | Apache License 2.0 |
app/src/main/java/com/allever/app/virtual/call/ui/mvp/presenter/AdvancedIncomeSettingPresenter.kt | devallever | 242,982,031 | false | null | package com.allever.app.virtual.call.ui.mvp.presenter
import com.allever.app.virtual.call.ui.mvp.view.AdvancedIncomeSettingView
import com.allever.lib.common.mvp.BasePresenter
class AdvancedIncomeSettingPresenter: BasePresenter<AdvancedIncomeSettingView>() {
} | 3 | Kotlin | 7 | 24 | 2881e1d2285d5ee459f40dffeed105c101bcafff | 262 | VirtualCallOpenSource | Apache License 2.0 |
android/app/src/main/kotlin/io/rebble/fossil/notifications/NotificationListener.kt | yamsergey | 310,554,820 | true | {"Dart": 81649, "Kotlin": 34336, "Swift": 404, "Objective-C": 38} | package io.rebble.fossil.notifications
import android.service.notification.NotificationListenerService
import android.service.notification.StatusBarNotification
import io.flutter.Log
import io.rebble.fossil.FossilApplication
import io.rebble.libpebblecommon.services.notification.NotificationService
import kotlinx.coro... | 0 | null | 0 | 0 | 9bbeabee83d11eb61faf521000ca1c8ae5d235f4 | 2,634 | mobile-app | Apache License 2.0 |
src/test/kotlin/com/amazon/opendistroforelasticsearch/indexmanagement/indexstatemanagement/runner/ManagedIndexRunnerIT.kt | opendistro-for-elasticsearch | 174,581,847 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2019 Amaz... | 51 | null | 46 | 117 | cda0eda35fc5da3816c407ad7a929d746edaf179 | 9,111 | index-management | Apache License 2.0 |
zircon.jvm/src/test/kotlin/org/hexworks/zircon/internal/component/impl/DefaultContainerTest.kt | entelente | 148,384,225 | false | null | package org.hexworks.zircon.internal.component.impl
import org.assertj.core.api.Assertions.*
import org.hexworks.zircon.api.AppConfigs
import org.hexworks.zircon.api.builder.component.ComponentStyleSetBuilder
import org.hexworks.zircon.api.builder.component.HeaderBuilder
import org.hexworks.zircon.api.builder.componen... | 1 | null | 1 | 1 | a8320415e949d47f55b316092a29f20469450720 | 9,315 | zircon | MIT License |
VerifiableCredential/src/main/java/com/merative/watson/healthpass/verifiablecredential/models/jws/JWSHeader.kt | digitalhealthpass | 563,978,682 | false | {"Kotlin": 1047923, "HTML": 79495, "Python": 22113, "Java": 1959} | package com.merative.watson.healthpass.verifiablecredential.models.jws
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
data class JWSHeader(
@Keep
@SerializedName("alg")
val alg: SignatureAlgorithm,
@Keep
@SerializedName("kid")
val kid: String?,
@Keep
... | 0 | Kotlin | 0 | 0 | 2b086f6fad007d1a574f8f0511fff0e65e100930 | 437 | dhp-android-app | Apache License 2.0 |
app/src/main/kotlin/com/rahulografy/axmecomm/ui/main/home/fragment/HomeFragment.kt | RahulSDeshpande | 293,636,598 | false | null | package com.rahulografy.axmecomm.ui.main.home.fragment
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import androidx.lifecycle.Observer
import com.google.android.material.tabs.TabLayoutMediator
import com.rahulografy.axmecomm.BR
import com.rahulografy.axmecomm.R
import com.rahu... | 0 | Kotlin | 0 | 2 | bc7c1bb7aabae352bbe567a415b4b6bec1642a28 | 3,955 | dctk-axm-ecomm-android | MIT License |
labencryptedstorage/src/main/java/mobi/lab/labencryptedstorage/internal/Util.kt | LabMobi | 578,563,766 | false | null | package mobi.lab.labencryptedstorage.internal
/**
* when statement only creates a compiler error for sealed classes when used as an expression.
* Use this .exhaustive extensions in other cases to get the compiler error when not all available options are defined.
*
* sealed class A
*
* class B : A()
* class C : ... | 2 | Kotlin | 0 | 1 | deb2b68b08bbf6eaa994f2e3696f94a0b543c05f | 565 | LabEncryptedStorage | MIT License |
sample/src/main/kotlin/com/example/kotlin/InvertIfCondition.kt | hendraanggrian | 556,969,715 | false | {"Kotlin": 94835, "Java": 2866, "Groovy": 310} | package com.example.kotlin
fun alert(message: String) {
if (message.isEmpty()) {
return
}
val s = message.trim()
println(s)
}
fun alert2(message: String) {
if (message.isNotEmpty()) {
var a = 1 + 2
a += 0
} else if (message.isNotBlank()) {
var b = 3 + 4
... | 0 | Kotlin | 0 | 1 | 3e4a3f4458dbf7ba3f0805b6aecdd514a580111c | 385 | rulebook | Apache License 2.0 |
core/domain/src/main/java/com/mayuresh/domain/util/IntUtils.kt | mayureshps21 | 700,256,778 | false | {"Kotlin": 215180} | package com.mayuresh.domain.util
import java.text.DecimalFormat
import java.text.DecimalFormatSymbols
fun Int.toReadable(): String = DecimalFormat("###,###,###.##").apply {
decimalFormatSymbols = DecimalFormatSymbols().apply {
groupingSeparator = ' '
}
}.format(this)
| 0 | Kotlin | 0 | 0 | a761c0cab72ef1bf741fa537440563059f168f7c | 286 | EuropeanCountriesSample | Apache License 2.0 |
app/src/main/kotlin/dev/patrickgold/florisboard/app/settings/theme/ThemeScreen.kt | florisboard | 254,202,848 | false | null | /*
* Copyright (C) 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 526 | null | 377 | 5,573 | eb50498890796489e8b318ddaa7103f04d8cf766 | 5,725 | florisboard | Apache License 2.0 |
src/main/kotlin/com/jsoizo/phpserialize/Unserializer.kt | jsoizo | 678,068,537 | false | {"Kotlin": 20830} | package com.jsoizo.phpserialize
import com.jsoizo.phpserialize.error.PhpUnserializeException
import com.jsoizo.phpserialize.error.UncaughtUnserializeException
import com.jsoizo.phpserialize.error.UnexpectedValueException
import com.jsoizo.phpserialize.error.UnknownTypeException
import java.nio.charset.Charset
class U... | 0 | Kotlin | 0 | 1 | becbd7ab2ccf6608875541c1033195922c0107c3 | 4,580 | php-serialize-kt | MIT License |
db-room/src/main/java/com/pyamsoft/tickertape/db/room/converter/PriceAlertIdConverter.kt | pyamsoft | 371,196,339 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 5 | Kotlin | 0 | 6 | c5309984f17de290ce2fb82120b4699cc8227b65 | 1,029 | tickertape | Apache License 2.0 |
app/src/main/java/samman/schoter/newsapp/ui/fragments/BreakingNewsFragment.kt | Sam7Man | 510,080,445 | false | {"Kotlin": 27040} | package samman.schoter.newsapp.ui.fragments
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.AbsListView
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.Line... | 0 | Kotlin | 0 | 0 | f0f9a9e0402f6928554fb1001927f3b2f9333e0f | 4,558 | NewsApp | MIT License |
app/src/main/java/dev/vitorramos/livequestions/viewmodel/MainViewModel.kt | vitor-ramos | 299,131,104 | false | null | package dev.vitorramos.livequestions.viewmodel
import androidx.lifecycle.*
import dev.vitorramos.livequestions.composables.SheetContentEvents
import dev.vitorramos.livequestions.composables.SitesListContentEvents
import dev.vitorramos.livequestions.model.*
import dev.vitorramos.livequestions.moveToFirst
import kotlinx... | 6 | Kotlin | 0 | 2 | ba11ad85364bfa945067cf9bac74fb3c797b7a47 | 6,057 | LiveQuestions | MIT License |
library/modules/ui/src/commonMain/kotlin/com/michaelflisar/toolbox/composables/MyCheckbox.kt | MFlisar | 711,136,467 | false | {"Kotlin": 239926} | package com.michaelflisar.toolbox.composables
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose... | 0 | Kotlin | 0 | 0 | d2ee7999a356902f04cd460101fdad397cce91f2 | 3,081 | Toolbox | Apache License 2.0 |
skrapers/src/main/kotlin/ru/sokomishalov/skraper/Skrapers.kt | sokomishalov | 234,099,582 | false | null | /*
* Copyright (c) 2019-present <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 ag... | 9 | null | 42 | 252 | 05d318581f513dc7ed7d19eb1b0422ad992a1c9c | 8,493 | skraper | Apache License 2.0 |
Movies/app/src/main/java/com/daresay/movies/ui/adapters/MovieTopRatedAdapter.kt | Ezzpify | 346,202,639 | false | null | package com.daresay.movies.ui.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.BindingAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import com.bumptech.glide.load.re... | 0 | Kotlin | 0 | 0 | 9b667638bdf81db4cb4e81d9de3bd561e4d36b30 | 2,187 | DaresayMovies | MIT License |
library/src/main/java/com/merveylcu/calendarview/model/CalendarDay.kt | merveylcu | 379,375,681 | false | null | package com.merveylcu.calendarview.model
import com.merveylcu.calendarview.utils.next
import com.merveylcu.calendarview.utils.previous
import com.merveylcu.calendarview.utils.yearMonth
import java.io.Serializable
import java.time.LocalDate
import java.time.YearMonth
data class CalendarDay internal constructor(val dat... | 0 | Kotlin | 0 | 0 | d944fc528ec00614eccd6c15ce415e48330f0d2c | 1,414 | CalenderView | MIT License |
plugins/src/main/kotlin/com/github/hotchemi/ExampleExpressionCodegenExtension.kt | hotchemi | 89,169,236 | false | null | package com.github.hotchemi
import org.jetbrains.kotlin.codegen.*
import org.jetbrains.kotlin.codegen.extensions.ExpressionCodegenExtension
import org.jetbrains.kotlin.codegen.state.GenerationState
import org.jetbrains.kotlin.descriptors.ClassDescriptor
import org.jetbrains.kotlin.psi.KtClassOrObject
import org.jetbra... | 0 | Kotlin | 0 | 14 | f418b0e10ef0eec5fab73d037467cb7025aae079 | 1,282 | kotlin-compiler-plugin-example | Apache License 2.0 |
imx-core-sdk-kotlin-jvm/generated/src/main/kotlin/com/immutable/sdk/api/model/CreateTradeRequestV1.kt | immutable | 467,767,205 | false | {"Kotlin": 668106, "Java": 131024, "Mustache": 29745, "Solidity": 10068} | /**
* Immutable X API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1
* Contact: <EMAIL>
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not e... | 2 | Kotlin | 2 | 5 | 4a823d30db92356c325140874f5ba708547585ca | 2,514 | imx-core-sdk-kotlin-jvm | Apache License 2.0 |
container/src/main/java/com/elveum/container/subject/FlowSubject.kt | romychab | 653,113,914 | false | {"Kotlin": 124515} | package com.elveum.container.subject
import kotlinx.coroutines.flow.Flow
/**
* Represents a finite flow which emissions can be controlled
* by the following methods:
* - [onNext]
* - [onComplete]
* - [onError]
*
* Use [flow] method to obtain the flow itself.
*/
public interface FlowSubject<T> {
/**
... | 0 | Kotlin | 0 | 3 | f54b480c42e9e8bac023d036176a94a9e5afe37d | 1,384 | container | Apache License 2.0 |
app/src/main/java/com/dicoding/habitapp/data/HabitDao.kt | ahmaddyd | 570,970,855 | false | {"Kotlin": 46771} | package com.dicoding.habitapp.data
import androidx.lifecycle.LiveData
import androidx.paging.DataSource
import androidx.room.*
import androidx.sqlite.db.SupportSQLiteQuery
//TODO 2 : Define data access object (DAO)
@Dao
interface HabitDao {
@RawQuery(observedEntities = [Habit::class])
fun getHabits(query: Sup... | 0 | Kotlin | 0 | 4 | 7a3b3bfce3bc668ebeaca0fcc8b052185c685b03 | 849 | HabitApp | MIT License |
app/src/test/java/com/sanmidev/mybakingapp/data/remote/mapper/StepModelToEntityMapperTest.kt | lastcountr1 | 597,164,844 | true | {"Kotlin": 62541} | package com.sanmidev.mybakingapp.data.remote.mapper
import com.google.common.truth.Truth
import com.sanmidev.mybakingapp.TestDataUtil
import com.sanmidev.mybakingapp.data.local.StepEntity
import com.sanmidev.mybakingapp.data.remote.model.StepModel
import org.junit.After
import org.junit.Before
import org.junit.Test
... | 0 | null | 0 | 0 | 56713df516376ec1af54958df35c6bd208288f40 | 1,482 | MyMyBakingApp | Apache License 2.0 |
avd/src/com/android/tools/idea/avd/Dropdown.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,367 | android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.