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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/kittentrate/game/GameContract.kt | noloman | 85,389,125 | false | null | package kittentrate.game
import android.widget.ViewFlipper
import kittentrate.data.repository.model.PhotoEntity
import kittentrate.data.viewmodel.NetworkViewState
import kittentrate.score.PlayerScore
/**
* Created by <NAME> on 21/03/2017.
*/
interface GameContract {
interface View {
var networkViewSta... | 4 | null | 1 | 1 | faf94cc9027ea530f7f98f8999fc150320c2f9cd | 1,304 | kittentrate | Apache License 2.0 |
android_commons_view/src/main/kotlin/kr/ac/snu/hcil/android/common/view/container/ManualViewPager.kt | yghokim | 62,933,149 | false | null | package kr.ac.snu.hcil.android.common.view.container
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.animation.DecelerateInterpolator
import android.widget.Scroller
import androidx.viewpager.widget.ViewPager
/**
* Created by <NAME> on 2016-08-31.
*... | 9 | Kotlin | 4 | 8 | f13e5c157d5646c3f9493c4fdc25ed3b1fc2e296 | 1,567 | omnitrack_android | MIT License |
stream_component/src/main/java/com/xyoye/stream_component/ui/dialog/FTPLoginDialog.kt | kaedei | 395,177,024 | false | null | package com.xyoye.stream_component.ui.dialog
import android.text.method.HideReturnsTransformationMethod
import android.text.method.PasswordTransformationMethod
import androidx.core.view.isGone
import androidx.lifecycle.MutableLiveData
import com.xyoye.common_component.extension.setTextColorRes
import com.xyoye.common_... | 0 | null | 1 | 8 | 1e2bbe520287c3ebf056ffdb3d00c07edf7946fb | 6,163 | DanDanPlayForAndroid | Apache License 2.0 |
src/main/kotlin/name/valery1707/problem/e/olymp/Problem1000K.kt | valery1707 | 541,970,894 | false | {"Java": 144219, "Kotlin": 119280} | package name.valery1707.problem.e.olymp
/**
* # Задача a + b
*
* Вычислите сумму `a` + `b`.
*
* ## Входные данные
*
* В каждой строке задано два целых числа `a` и `b` (`|a|, |b| ≤ 30000`).
*
* ## Выходные данные
*
* Для каждого теста выведите сумму `a + b` в отдельной строке.
*
* @see <a href="https://www... | 3 | null | 1 | 1 | 55f9cb65499168735277131e2fbe44a918ec86ca | 785 | problem-solving | MIT License |
app/src/main/java/com/jesperqvarfordt/listn/common/view/shuffletogglebutton/ShuffleToggleButtonContract.kt | JesperQv | 122,033,035 | false | null | package com.jesperqvarfordt.listn.common.view.shuffletogglebutton
import com.jesperqvarfordt.listn.common.base.BasePresenter
import com.jesperqvarfordt.listn.common.base.BaseView
interface ShuffleToggleButtonContract {
interface View : BaseView {
fun toggleView(shuffling: Boolean)
}
interface Pr... | 1 | Kotlin | 9 | 97 | 68b97f2d5437d1bab06df39b9eaf754d7941c520 | 388 | Listn | MIT License |
core/src/main/java/com/caseyjbrooks/scorekeeper/core/db/CoreRoomDB.kt | cjbrooks12 | 115,218,851 | false | null | package com.caseyjbrooks.scorekeeper.core.db
import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import com.caseyjbrooks.scorekeeper.core.db.users.*
@Database(
entities = [
User::class,
Game::class,
GameUser::class
],
... | 0 | Kotlin | 0 | 0 | 0801efc7b9a55060f07d7124245a78ccca9f4a55 | 536 | KotlinScoreKeeper | Creative Commons Attribution 3.0 Unported |
app/src/main/java/com/faldez/shachi/ui/comment/CommentAdapter.kt | faldez | 457,580,136 | false | null | package com.faldez.shachi.ui.comment
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.faldez.shachi.databinding.CommentItemBinding
import com.faldez.s... | 8 | Java | 1 | 20 | 6491f53f06ae2aeb6cd786fb9f4fe7cb21958540 | 1,485 | shachi | Apache License 2.0 |
app/src/main/java/com/movie/app/room/entities/MovieGenreJoin.kt | hmedat | 129,792,251 | false | {"Java": 108682, "Kotlin": 85626} | package com.movie.app.room.entities
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.ForeignKey
import android.arch.persistence.room.Index
import com.movie.app.modules.Genre
import com.movie.app.modules.Movie
@Entity(
tableName = "mov... | 1 | null | 1 | 1 | 6290b3e4d5ed74c98d7e732b4b1339a406cb08e0 | 820 | SampleMovieApp | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ide/ProtocolHandler.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide
interface ProtocolHandler {
companion object {
/**
* This exit code tells the platform that it shouldn't display the welcome screen,
* because the handler wa... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 982 | intellij-community | Apache License 2.0 |
app/src/main/kotlin/com/kotlinextension/data/db/DatabaseAnnotation.kt | Krunal-Kevadiya | 162,451,184 | false | null | package com.kotlinextension.data.db
class DatabaseAnnotation {
companion object {
const val DATABASE_VERSION = 1
const val DATABASE_NAME = "AppDatabase"
const val TABLE_USER = "users"
const val ID = "id"
const val USER_NAME = "username"
const val GENDER = "gender"
... | 0 | Kotlin | 2 | 3 | 6b556c47887cd2ded327783b63a92f76aee5cffc | 840 | kotlin-extension | Apache License 2.0 |
idea/idea-gradle/src/org/jetbrains/kotlin/idea/utils.kt | damenez | 176,209,431 | true | {"Markdown": 56, "Gradle": 497, "Gradle Kotlin DSL": 215, "Java Properties": 12, "Shell": 11, "Ignore List": 10, "Batchfile": 9, "Git Attributes": 1, "Protocol Buffer": 12, "Java": 5238, "Kotlin": 43905, "Proguard": 7, "XML": 1594, "Text": 9172, "JavaScript": 239, "JAR Manifest": 2, "Roff": 209, "Roff Manpage": 34, "IN... | /*
* Copyright 2010-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/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea
import com.intellij.openapi.module.Module
import com.intellij.openapi.roots.DependencyScope
import com.intellij.openapi.r... | 0 | Kotlin | 0 | 2 | 9a2178d96bd736c67ba914b0f595e42d1bba374d | 1,025 | kotlin | Apache License 2.0 |
src/test/kotlin/com/leetcode/P560Test.kt | antop-dev | 229,558,170 | false | {"Maven POM": 1, "Text": 4, "Ignore List": 1, "Markdown": 1, "Java": 233, "Kotlin": 832, "Python": 10} | package com.leetcode
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.`is`
import org.junit.jupiter.api.Test
class P560Test {
private val sut = P560()
@Test
fun `example 01`() {
assertThat(sut.subarraySum(intArrayOf(1, 1, 1), 2), `is`(2))
}
@Test
fun `example... | 1 | Kotlin | 0 | 0 | a9dd7cfa4f6cfc5186a86f6e2c8aefc489f5c028 | 639 | algorithm | MIT License |
src/main/kotlin/com/github/projectsandstone/api/event/player/PlayerEvent.kt | ProjectSandstone | 65,579,594 | false | {"Gradle": 4, "XML": 1, "INI": 2, "Markdown": 5, "Shell": 2, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Java": 14, "Kotlin": 192} | /*
* SandstoneAPI - Minecraft Server Modding API
*
* The MIT License (MIT)
*
* Copyright (c) Sandstone <https://github.com/ProjectSandstone/>
* Copyright (c) contributors
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and ... | 6 | Kotlin | 0 | 2 | 02d1d0fcc44c8e05741798af5b6f7408ebf48670 | 1,887 | SandstoneAPI | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utilities/BetterCommandOpMode.kt | GoldEnter21 | 705,399,695 | false | {"Java Properties": 2, "Gradle": 6, "Shell": 1, "HTML": 2, "Markdown": 6, "Batchfile": 1, "Text": 4, "Ignore List": 1, "XML": 16, "Java": 96, "Kotlin": 100} | package org.firstinspires.ftc.teamcode.utilities
import com.arcrobotics.ftclib.command.*
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode
abstract class BetterCommandOpMode: LinearOpMode(){
/**
* Cancels all previous commands
*/
fun reset() {
CommandScheduler.getInstance().reset... | 1 | null | 1 | 1 | a696b287ee27a77a02288b105f2148c123a6e612 | 1,310 | RoboknightsOffSeasonCopy | BSD 3-Clause Clear License |
platforms/android/Dezel/dezel/src/main/java/ca/logaritm/dezel/view/ContentImageView.kt | logaritmdev | 174,257,253 | false | null | package ca.logaritm.dezel.view
import android.content.Context
import android.graphics.*
import android.util.SizeF
import android.view.View
import ca.logaritm.dezel.extension.Delegates
import ca.logaritm.dezel.extension.ceiled
import ca.logaritm.dezel.extension.clamp
import ca.logaritm.dezel.view.graphic.Color
import c... | 6 | Kotlin | 1 | 1 | 507022b806e0ffb91bfe87336c6642634c5123a0 | 4,778 | dezel | MIT License |
RxUI/src/main/java/com/tamsiree/rxui/view/colorpicker/slider/AlphaSlider.kt | Tamsiree | 69,093,112 | false | null | package com.tamsiree.rxui.view.colorpicker.slider
import android.content.Context
import android.graphics.Canvas
import android.graphics.PorterDuff
import android.util.AttributeSet
import com.tamsiree.rxkit.RxImageTool.getAlphaPercent
import com.tamsiree.rxui.view.colorpicker.ColorPickerView
import com.tamsiree.rxui.vi... | 70 | null | 2855 | 12,025 | fa5f88c24594a562c2a9047c40ceeb94de297428 | 2,627 | RxTool | Apache License 2.0 |
parser_output/Region.kt | Tarik-B | 572,524,394 | false | {"Kotlin": 188925, "Python": 91692} | package fr.amazer.pokechu.enums
/* ************************************************************************** */
/* WARNING! Auto-generated file, all manual changes made will be lost! */
/* ************************************************************************** */
enum class Region {
NATIONAL, // 0
KA... | 1 | Kotlin | 0 | 1 | 034768c6d702ee55c0faa6d71be8b1f5e555e8ff | 687 | pokechu | MIT License |
app/src/main/java/org/wikipedia/dataclient/wikidata/Search.kt | greatfire | 460,298,221 | false | null | package org.wikipedia.dataclient.wikidata
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.wikipedia.dataclient.mwapi.MwResponse
@Serializable
class Search : MwResponse() {
@SerialName("search")
val results: List<SearchResult> = emptyList()
@Serializable
c... | 2 | null | 4 | 38 | 8c8de602274b0132fc5d22b394a2c47fcd0bf2eb | 444 | apps-android-wikipedia-envoy | Apache License 2.0 |
app/src/main/java/com/example/mywaycompose/presentation/theme/Font.kt | larkes-cyber | 739,078,285 | false | {"Kotlin": 575045} | package com.example.mywaycompose.presentation.theme
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import com.example.mywaycompose.R
val monsterrat = FontFamily(
Font(R.font.monsterbold, FontWeight.Bold),
Font(R.font.mo... | 0 | Kotlin | 0 | 1 | 81ff3952a4aa8d83269a349ff52f8afb6a1156ff | 750 | PlannerApp | Apache License 2.0 |
projetos/aula08-20/app/src/main/java/br/com/koruthos/cursoandroid/network/NetworkManager.kt | chaua | 517,803,177 | false | null | package br.com.koruthos.cursoandroid.networks
import br.com.koruthos.cursoandroid.network.ApiService
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
// URL do endpoint da API (precisa do / no final)
// - ngrok: ht... | 0 | Kotlin | 1 | 2 | 232d4f85e1ab4ce777f24690dcac906eef53927c | 1,006 | programacao-mobile | MIT License |
app/src/main/java/com/realitix/nectar/repository/ShoppingListRepository.kt | Nectar-Project | 247,032,480 | false | null | package com.realitix.nectar.repository
import android.content.Context
import com.realitix.nectar.database.NectarDatabase
import com.realitix.nectar.database.entity.*
import com.realitix.nectar.util.EntityType
import com.realitix.nectar.util.NectarUtil
class ShoppingListRepository(val context: Context, updater: Entity... | 2 | Kotlin | 0 | 0 | f220b9007fc5d3faf1d3fd9a842154de2a7d0cdf | 752 | nectar-android | Apache License 2.0 |
protocol/osrs-223/src/main/kotlin/net/rsprox/protocol/game/outgoing/decoder/codec/camera/CamTargetDecoder.kt | blurite | 822,339,098 | false | {"Kotlin": 1453055} | package net.rsprox.protocol.game.outgoing.decoder.codec.camera
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ClientProt
import net.rsprot.protocol.metadata.Consistent
import net.rsprox.protocol.ProxyMessageDecoder
import net.rsprox.protocol.game.outgoing.decoder.prot.GameServerProt
import net.rsprox.p... | 2 | Kotlin | 4 | 9 | 41535908e6ccb633c8f2564e8961efa771abd6de | 1,237 | rsprox | MIT License |
app/src/main/java/com/nikola/jakshic/dagger/stream/Stream.kt | google0593 | 258,759,268 | true | {"Kotlin": 175036} | package com.nikola.jakshic.dagger.stream
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
class StreamBox(@Json(name = "data") val stream: List<Stream>)
@JsonClass(generateAdapter = true)
data class Stream(
@Json(name = "user_name") val userName: String,
@... | 0 | null | 0 | 1 | 6cb7322f77e041745d6b5a3ba702a3685a141704 | 476 | dagger | MIT License |
app/src/main/java/com/nide/pocketpass/domain/usecase/SaveNewCategoryUseCase.kt | IamDebashis | 536,854,826 | false | null | package com.nide.pocketpass.domain.usecase
import com.nide.pocketpass.data.module.Category
import com.nide.pocketpass.domain.repository.CategoryRepository
class SaveNewCategoryUseCase(private val categoryRepository: CategoryRepository) {
fun execute(category: Category) {
categoryRepository.insertCategor... | 0 | Kotlin | 0 | 0 | 3166737fa1d45beb78a09cd8b4490bd3334cbcd2 | 340 | pocketpass | MIT License |
fashion-tryon-compose/src/main/kotlin/com/aiuta/fashionsdk/tryon/compose/ui/internal/screens/onboarding/components/best/BestResultPageContent.kt | aiuta-com | 759,918,511 | false | {"Kotlin": 674266, "Shell": 1462} | package com.aiuta.fashionsdk.tryon.compose.ui.internal.screens.onboarding.components.best
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundat... | 6 | Kotlin | 0 | 2 | 6e17d89bf031feff027315f1cc49ed0dd818708e | 3,282 | android-sdk | Apache License 2.0 |
core/domain/src/main/java/org/the_chance/honeymart/domain/usecase/UpdateProductDetailsUseCase.kt | TheChance101 | 647,400,117 | false | {"Kotlin": 1218713} | package org.the_chance.honeymart.domain.usecase
import org.the_chance.honeymart.domain.repository.HoneyMartRepository
import javax.inject.Inject
class UpdateProductDetailsUseCase @Inject constructor(
private val honeyMartRepository: HoneyMartRepository
) {
suspend operator fun invoke(
id: Long,
... | 3 | Kotlin | 7 | 21 | 50200e0ec0802cdadc282b09074a19c96df3220c | 489 | Honey-Mart-Android-Client | Apache License 2.0 |
injection/src/main/java/com/edreams/android/workshops/kotlin/injection/common/MapperModule.kt | nico-gonzalez | 105,786,885 | false | null | package com.edreams.android.workshops.kotlin.injection.common
import com.edreams.android.workshops.kotlin.data.venues.cache.entity.VenueEntity
import com.edreams.android.workshops.kotlin.data.venues.mapper.VenueEntityMapper
import com.edreams.android.workshops.kotlin.data.venues.mapper.VenueMapper
import com.edreams.a... | 1 | Kotlin | 1 | 6 | 4e81ba01ef1a379088cfe2c296be1c4bb336c9b3 | 1,109 | K-Places | Apache License 2.0 |
app/src/main/java/com/example/homepage/plaza/Adapter/PlazaAdapter.kt | piru72 | 516,901,454 | false | null | package com.example.homepage.plaza.Adapter
import android.content.Intent
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerv... | 10 | Kotlin | 2 | 8 | 91bb0273f56ce7784aa07671461924f05a25dc3e | 3,113 | AUST_buddy | MIT License |
korge-core/src@wasmJs/korlibs/io/lang/UTF8.kt | korlibs | 80,095,683 | false | {"WebAssembly": 14293935, "Kotlin": 9728800, "C": 77092, "C++": 20878, "TypeScript": 12397, "HTML": 6043, "Python": 4296, "Swift": 1371, "JavaScript": 328, "Shell": 254, "CMake": 202, "CSS": 66, "Batchfile": 41} | package korlibs.io.lang
import korlibs.memory.*
import org.khronos.webgl.*
actual val UTF8: Charset = UTC8CharsetBase("UTF-8")
/**
* This won't support streaming decoding
*/
val JS_UTF8 = object : UTC8CharsetBase("UTF-8") {
val textDecoder: TextDecoder? = try {
TextDecoder("utf-8")
} catch (e: dynamic) {
nul... | 444 | WebAssembly | 121 | 2,207 | dc3d2080c6b956d4c06f4bfa90a6c831dbaa983a | 1,110 | korge | Apache License 2.0 |
feature/src/main/java/com/example/feature/data/DataProvider.kt | Ahabdelhak | 535,852,545 | false | {"Kotlin": 113352, "Ruby": 2223} | /*
* Copyright 2022 <NAME>. 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 or agreed... | 0 | Kotlin | 1 | 4 | 1a25d95040f62d956c16088ba72badea52f0f5b6 | 2,860 | InstaCrypto | Apache License 2.0 |
vector/src/main/java/im/vector/app/features/voicebroadcast/VoiceBroadcastExtensions.kt | watcha-fr | 558,303,557 | false | null | /*
* Copyright (c) 2022 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... | 41 | Kotlin | 0 | 0 | 4b7f030dfc1adc9524fe39b14c29cc6e533bc713 | 1,591 | watcha-android | Apache License 2.0 |
build-logic/src/main/kotlin/design/rakuten/rex/icons/svgconverter/SvgConverterResPlugin.kt | EC-Mobile | 765,562,331 | false | {"Kotlin": 87686} | /*
* Copyright 2024 Rakuten Group, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 0 | Kotlin | 0 | 0 | 8c14a7b54c1110c3c85611e526016d8f9c38a4e2 | 1,204 | rex-icons-android | Apache License 2.0 |
loader/src/main/java/com/xueqiu/image/loader/transform/BaseTransformer.kt | snowman-team | 200,222,108 | false | {"Java": 53467, "Kotlin": 53009} | package com.xueqiu.image.loader.transform
import android.graphics.Bitmap
import com.facebook.cache.common.CacheKey
import com.facebook.cache.common.SimpleCacheKey
import com.facebook.imagepipeline.request.BasePostprocessor
abstract class BaseTransformer : BasePostprocessor() {
protected var mCacheKey: CacheKey? ... | 1 | null | 1 | 1 | 67b3480d57d21a41a78fc5a5f074b9deefaf2e26 | 676 | ImageLoader | Apache License 2.0 |
feature-home/src/main/java/com/globant/feature/home/model/PersonModel.kt | johannfjs | 716,976,358 | false | {"Kotlin": 77752} | package com.globant.feature.home.model
import com.globant.domain.model.KnownFor
import com.globant.domain.model.Person
data class PersonModel(
val name: String,
val popularity: Double,
val profilePath: String,
val id: Int,
val knownFor: List<KnownForModel>,
)
data class KnownForModel(
val tit... | 0 | Kotlin | 0 | 0 | 37729c911f39a355f8d0724e6a62de0f958b113e | 952 | MovieDbChallenge | Apache License 2.0 |
csstype-kotlin/src/jsMain/kotlin/web/cssom/PaddingBlockStart.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.cssom
typealias PaddingBlockStart = LengthProperty
| 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 109 | types-kotlin | Apache License 2.0 |
foundation/featuretoggles/datasource-overrides/src/main/kotlin/ru/pixnews/foundation/featuretoggles/datasource/overrides/OverridesDataSource.kt | illarionov | 305,333,284 | false | {"Kotlin": 1309325, "FreeMarker": 2734, "Shell": 855, "Fluent": 72} | /*
* Copyright (c) 2023, the Pixnews project authors and contributors. Please see the AUTHORS file for details.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package ru.pixnews.foundation.featuretoggles.datasource.overrides
import android.content.Context
i... | 0 | Kotlin | 0 | 2 | 8912bf1116dd9fe94d110162ff9a302e93af1509 | 6,600 | Pixnews | Apache License 2.0 |
platform/src/test/kotlin/com/samsung/healthcare/platform/adapter/persistence/project/task/ItemDatabaseAdapterTest.kt | S-HealthStack | 520,365,362 | false | null | package com.samsung.healthcare.platform.adapter.persistence.project.task
import com.samsung.healthcare.platform.NEGATIVE_TEST
import com.samsung.healthcare.platform.adapter.persistence.entity.project.task.ItemEntity
import io.mockk.coEvery
import io.mockk.mockk
import kotlinx.coroutines.flow.flowOf
import kotlinx.coro... | 2 | Kotlin | 2 | 7 | 8600eaa7c1d10734a0c90fe396eaf42ffdc10e73 | 1,330 | backend-system | Apache License 2.0 |
src/commonMain/kotlin/choliver/nespot/nes/VideoSink.kt | oliver-charlesworth | 251,006,755 | false | null | package choliver.nespot.nes
interface VideoSink {
enum class ColorPackingMode(
val convert: (Rgb) -> List<Int> // Output is big-endian
) {
BGRA({ listOf(it.b, it.g, it.r, 255) }),
ABGR({ listOf(255, it.b, it.g, it.r) })
}
data class Rgb(
val r: Int,
val g: Int,
val b: Int
)
val co... | 14 | Kotlin | 0 | 1 | e5d251b82e11f2986e8a732d55298c2ab0de3191 | 426 | nespot | MIT License |
sample/src/main/java/com/drake/brv/sample/ui/fragment/home/GameFragment.kt | liangjingkanji | 206,460,689 | false | null | package com.drake.brv.sample.ui.fragment.home
import com.drake.brv.sample.R
import com.drake.brv.sample.constants.Api
import com.drake.brv.sample.databinding.FragmentGameBinding
import com.drake.brv.sample.model.GameModel
import com.drake.brv.utils.dividerSpace
import com.drake.brv.utils.setup
import com.drake.engine.... | 18 | null | 327 | 2,576 | 7120b68fd39f5b88b9ac4316b31a9311ccaf3e49 | 1,338 | BRV | MIT License |
src/main/kotlin/network/handler/GroupMessagesHandler.kt | KatiumDev | 488,028,614 | false | null | /*
* Copyright 2022 Katium 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 applicable law or agreed t... | 0 | Kotlin | 0 | 6 | 996181191d9a01fd58c0cee055e582d173f6b6d9 | 1,607 | katium-client-tencent-qq | Apache License 2.0 |
app/src/main/java/com/example/weatherapp/extension/ViewExtensions.kt | jhwsx | 178,877,854 | false | {"Kotlin": 33040} | package com.example.weatherapp.extension
import android.content.Context
import android.view.View
import android.widget.TextView
/**
*
* @author wzc
* @date 2019\4\3
*/
// 扩展属性的用法:必须定义 get() 方法。
val View.ctx: Context
get() = context
var TextView.textColor: Int
get() = currentTextColor
set(value) {
... | 0 | Kotlin | 0 | 0 | 6b9924a63b7abc315c96641d83c5779f9ea6a69a | 528 | WeatherApp | MIT License |
presentation/src/commonMain/kotlin/kosh/presentation/transaction/rememberNextNonce.kt | niallkh | 855,100,709 | false | {"Kotlin": 1942525, "Swift": 25802} | package kosh.presentation.transaction
import androidx.compose.runtime.Composable
import kosh.domain.failure.Web3Failure
import kosh.domain.models.Address
import kosh.domain.models.ChainId
import kosh.domain.repositories.TransactionRepo
import kosh.presentation.core.di
import kosh.presentation.rememberLoad
@Composable... | 0 | Kotlin | 0 | 3 | c08a9f32c0f12bf01eeb366c471b079923ac73ff | 926 | kosh | MIT License |
geotabdrivesdk/src/main/java/com/geotab/mobile/sdk/module/appearance/AppearanceAdapter.kt | Geotab | 333,267,573 | false | {"Kotlin": 387965, "JavaScript": 23897} | package com.geotab.mobile.sdk.module.appearance
import com.geotab.mobile.sdk.models.enums.AppearanceType
interface AppearanceAdapter {
fun startMonitoringAppearance(onAppearanceChange: (result: AppearanceType) -> Unit)
fun stopMonitoringAppearance()
}
| 1 | Kotlin | 2 | 2 | 9d2b6363c999fde1064f315479b69e450e637a30 | 262 | mobile-sdk-android | MIT License |
src/day4.kts | AfzalivE | 317,962,201 | false | null | println("Start")
val requiredFields = listOf("byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid")
val input = readInput("day4.txt").readText()
val validNum = input.split("\n\n")
.asSequence()
.map { passport ->
val fullString = passport.replace("\n", " ")
return@map if (requiredFields.all {
... | 0 | Kotlin | 0 | 0 | cc5998bfcaadc99e933fb80961be9a20541e105d | 2,049 | AdventOfCode2020 | Apache License 2.0 |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/CommentsDisabledRounded.kt | karakum-team | 387,062,541 | false | {"Kotlin": 3079611, "TypeScript": 2249, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/CommentsDisabledRounded")
package mui.icons.material
@JsName("default")
external val CommentsDisabledRounded: SvgIconComponent
| 0 | Kotlin | 5 | 35 | 60404a8933357df15ecfd8caf6e83258962ca909 | 210 | mui-kotlin | Apache License 2.0 |
multisrc/overrides/animestream/animetitans/src/AnimeTitans.kt | aniyomiorg | 360,630,872 | false | {"Kotlin": 4099794} | package eu.kanade.tachiyomi.animeextension.ar.animetitans
import eu.kanade.tachiyomi.animeextension.ar.animetitans.extractors.AnimeTitansExtractor
import eu.kanade.tachiyomi.animeextension.ar.animetitans.extractors.SharedExtractor
import eu.kanade.tachiyomi.animeextension.ar.animetitans.extractors.VidYardExtractor
imp... | 375 | Kotlin | 138 | 342 | e4eb7cdf6379102c903338402d2b8b96b42d3fa7 | 3,243 | aniyomi-extensions | Apache License 2.0 |
0984.String Without AAA or BBB.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun strWithout3a3b(a: Int, b: Int): String {
var a = a
var b = b
val ans = StringBuilder()
while (a > 0 && b > 0) {
if (a > b) {
ans.append("aab")
a -= 2
b -= 1
} else if (a < b) {
ans.append("bba")
a -= 1
b -= 2
... | 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 537 | kotlin-leetcode | MIT License |
ledger/src/main/kotlin/org/knowledger/ledger/adapters/AdapterCollection.kt | fakecoinbase | 282,563,487 | false | null | package org.knowledger.ledger.adapters
import org.knowledger.ledger.core.adapters.AbstractStorageAdapter
import org.knowledger.ledger.data.LedgerData
import org.knowledger.ledger.data.adapters.PhysicalDataStorageAdapter
import org.knowledger.ledger.database.adapters.SchemaProvider
import org.knowledger.ledger.service.... | 0 | Kotlin | 0 | 0 | 8bc64987e1ab4d26663064da06393de6befc30ae | 2,173 | SeriyinslashKnowLedger | MIT License |
src/jvmMain/kotlin/org/hildan/chrome/devtools/domains/page/PageExtensionsJvm.kt | joffrey-bion | 304,337,222 | false | {"Kotlin": 162062, "HTML": 933} | package org.hildan.chrome.devtools.domains.page
import java.nio.file.Path
import kotlin.io.path.writeBytes
/**
* Captures a screenshot of the current page based on the given [options], and stores the resulting image into a new
* file at the given [outputImagePath]. If the file already exists, it is overwritten.
*/... | 5 | Kotlin | 8 | 45 | e21a3901ce344cf7f8b1e69756ee298f47d308e2 | 595 | chrome-devtools-kotlin | MIT License |
app/src/main/kotlin/com/juniperphoton/myersplash/activity/EditActivity.kt | JuniperPhoton | 67,424,471 | false | null | package com.juniperphoton.myersplash.activity
import android.animation.ValueAnimator
import android.annotation.SuppressLint
import android.app.WallpaperManager
import android.content.Intent
import android.graphics.*
import android.graphics.drawable.Animatable
import android.net.Uri
import android.os.Bundle
import andr... | 27 | Kotlin | 23 | 93 | d2e6da91c20b638445c60b089e9aa789c646d22b | 9,617 | MyerSplash.Android | MIT License |
gui/src/main/kotlin/org/goo/controllers/CurrenSessionMemoryWrapper.kt | kostya05983 | 186,656,239 | false | null | package org.goo.controllers
import org.goo.debugger.Debugger
import org.goo.interpreter.Interpreter
import org.goo.view.Editor
import java.io.PipedOutputStream
class CurrentSessionMemoryWrapper(val editor: Editor,
val outputStrategy: OutputToConsoleWindow) {
var out: PipedOutputS... | 0 | Kotlin | 0 | 0 | bf945ed8c88627ef0183144a9734826b8cfca457 | 541 | GooTest | MIT License |
test/com/shopping/service/JWTAuthServiceTest.kt | alialbaali | 285,645,104 | false | {"Kotlin": 224319} | package com.shopping.service
import com.shopping.*
import com.shopping.domain.dto.customer.request.SignInRequest
import com.shopping.domain.dto.customer.request.SignUpRequest
import com.shopping.domain.service.AuthService
import io.kotest.assertions.throwables.shouldNotThrowAny
import io.kotest.assertions.throwables.s... | 0 | Kotlin | 0 | 1 | e8d003386bfff065c9a775b4a808c2d7dd9acd87 | 4,704 | Shopally | Apache License 2.0 |
home/src/main/java/com/poke/montty/home/ui/model/pokemon/list/PokemonListUI.kt | EmmanuelMontt | 794,394,638 | false | {"Kotlin": 45452} | package com.poke.montty.home.ui.model.pokemon.list
data class PokemonListUI(
val count: Int,
val next: String? = null,
val previous: String? = null,
val results: List<PokemonListItemUI>
)
| 0 | Kotlin | 0 | 0 | e1deb42609212827949ecf48f7f27098f13882dd | 205 | poke-home | Apache License 2.0 |
app/src/main/java/com/syleiman/myfootprints/presentationLayer/activities/createAndEdit/editFootprintActivity/IEditFootprintActivityPresenterExt.kt | AlShevelev | 116,675,999 | false | null | package com.syleiman.myfootprints.presentationLayer.activities.createAndEdit.editFootprintActivity
import com.syleiman.myfootprints.common.files.IFileSingleOperation
/**
* EditFootprintActivityPresenter interface for other presenters
*/
interface IEditFootprintActivityPresenterExt
{
/** Show photos grid */
... | 1 | null | 1 | 2 | 11a243900f3a33b4b3aab358d4a2b08f9759dd8e | 897 | MyFootprints | MIT License |
src/main/kotlin/br/com/zup/edu/keymanager/register/NewPixKey.kt | gabrielBrandaoZp | 407,622,233 | true | {"Kotlin": 66381, "Dockerfile": 163} | package br.com.zup.edu.keymanager.register
import br.com.zup.edu.shared.validation.ValidPixKey
import br.com.zup.edu.shared.validation.ValidUUID
import io.micronaut.core.annotation.Introspected
import java.util.*
import javax.validation.Valid
import javax.validation.constraints.NotBlank
import javax.validation.constra... | 0 | Kotlin | 1 | 0 | 8eacd111c45dd665cdce7910a73c4cfc1dcd7e0e | 1,023 | orange-talents-07-template-pix-keymanager-grpc | Apache License 2.0 |
cinescout/database/src/commonMain/kotlin/cinescout/database/adapter/TmdbAuthStateValueAdapter.kt | 4face-studi0 | 280,630,732 | false | null | package cinescout.database.adapter
import app.cash.sqldelight.ColumnAdapter
import cinescout.database.model.DatabaseTmdbAuthStateValue
val TmdbAuthStateValueAdapter = object : ColumnAdapter<DatabaseTmdbAuthStateValue, String> {
override fun decode(databaseValue: String): DatabaseTmdbAuthStateValue =
Datab... | 19 | Kotlin | 2 | 3 | d64398507d60a20a445db1451bdd8be23d65c9aa | 485 | CineScout | Apache License 2.0 |
module_first/src/main/java/com/aleyn/module_first/ui/ResultActivity.kt | aleyn97 | 676,459,265 | false | {"Kotlin": 120849, "Java": 2660} | package com.aleyn.module_first.ui
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.aleyn.annotation.Route
import com.aleyn.module_first.R
@Route("/First/ActivityLaunch")
class ResultActivit... | 2 | Kotlin | 3 | 41 | 6d71b13d4bed4399bb398c7b97b83090fff6bb1e | 766 | router | Apache License 2.0 |
feature/episodes/src/main/kotlin/app/rickandmorty/episodes/navigation/EpisodesNavigation.kt | simonlebras | 628,022,976 | false | null | package app.rickandmorty.episodes.navigation
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.NavOptionsBuilder
import androidx.navigation.compose.composable
import app.rickandmorty.episodes.details.EpisodeDetailsScreen
import app.rickandmorty.episodes.... | 2 | Kotlin | 0 | 0 | e99d940482cf1a2678d8748938f3810d917ce0b0 | 1,429 | rickandmorty | MIT License |
app/src/main/java/com/anna/mindhealth/data/model/TherapistProfile.kt | AnnaL001 | 440,538,513 | false | {"Kotlin": 142965} | package com.anna.mindhealth.data.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class TherapistProfile(
var short_desc: String = "",
var country: String = "",
var gender: String = "",
var concerns: ArrayList<String> = arrayListOf(),
var helping_approach: Stri... | 0 | Kotlin | 0 | 0 | 32de5de74002717d1a7337ccbc03eb5929d8f28c | 561 | aad-practice-project-mindhealth | The Unlicense |
RetenoSdkPush/src/test/java/com/reteno/push/interceptor/click/IntentHandlerTest.kt | reteno-com | 545,381,514 | false | {"Kotlin": 1360551, "Java": 159640, "HTML": 17807, "Shell": 379} | package com.reteno.push.interceptor.click
import android.content.Context
import android.content.Intent
import android.content.pm.ActivityInfo
import android.content.pm.ResolveInfo
import android.net.Uri
import android.os.Bundle
import com.reteno.core.util.getResolveInfoList
import com.reteno.push.Constants.KEY_ES_LINK... | 1 | Kotlin | 2 | 1 | 8be261c2b571a7a6124c62c038dfcf97b1ccad3f | 4,664 | reteno-mobile-android-sdk | MIT License |
infra/src/main/kotlin/fr/sacane/jmanager/infrastructure/rest/Exception.kt | Sacane | 531,082,439 | false | {"Kotlin": 95099, "Vue": 34463, "TypeScript": 16890, "JavaScript": 602, "CSS": 134} | package fr.sacane.jmanager.infrastructure.rest
data class ErrorMessage(
var status: Int,
var message: String
)
class ForbiddenException(override val message: String) : RuntimeException(message)
class TimeOutException(override val message: String) : RuntimeException(message)
class NotFoundException(override va... | 0 | Kotlin | 0 | 0 | 5ba090de7425ba78eacc2cd2c21c13424278eb4e | 546 | JManager | MIT License |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/coroutines/InheritedTestCoroutineDispatcherTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.engine.coroutines
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.CoroutineDispatcher
@ExperimentalStdlibApi
class InheritedTestCoroutineDispatcherTest : FunSpec() {
init {
testCoroutineDispatcher = true
context("a contex... | 143 | null | 632 | 4,372 | 551bd92c0311ff3bf02975fb00e8b9b674fc9cd1 | 573 | kotest | Apache License 2.0 |
data/impl/src/main/kotlin/io/morfly/streaming/data/impl/ReviewsRemoteMediator.kt | Morfly | 398,528,749 | false | null | package io.morfly.streaming.data.impl
import androidx.paging.ExperimentalPagingApi
import androidx.paging.LoadType
import androidx.paging.PagingState
import androidx.paging.RemoteMediator
import androidx.room.withTransaction
import dagger.assisted.Assisted
import dagger.assisted.AssistedInject
import io.morfly.streami... | 2 | Kotlin | 11 | 97 | 9b97a86f0931060dcbb62384f959c2e511a8786f | 3,470 | MultiModuleMovies | MIT License |
svg-to-compose/src/commonMain/kotlin/dev/tonholo/s2c/domain/PathNodes.kt | rafaeltonholo | 659,782,425 | false | {"Kotlin": 337368, "Shell": 5369} | // Suppressing MagicNumber in this file since we need to use array positions to access the proper value
// while parsing the commands.
@file:Suppress("MagicNumber")
package dev.tonholo.s2c.domain
import dev.tonholo.s2c.domain.PathNodes.ArcTo
import dev.tonholo.s2c.domain.PathNodes.CurveTo
import dev.tonholo.s2c.domai... | 4 | Kotlin | 1 | 45 | 551441e87ba7bd62523754dd105a9edc925017b1 | 24,842 | svg-to-compose | MIT License |
app/src/main/java/com/neurowhai/pews/PewsFirebaseMessagingService.kt | NeuroWhAI | 275,617,402 | false | null | package com.neurowhai.pews
import android.Manifest
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.... | 0 | Kotlin | 1 | 2 | 013468724e7b2b14e282df2ff1b64712889bc515 | 8,211 | PersonalEarthquakeAlarm | MIT License |
analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/providers/LLFirCombinedKotlinSymbolProvider.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 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.analysis.low.level.api.fir.providers
import com.intellij.openapi.project.Project... | 155 | null | 5608 | 45,423 | 2db8f31966862388df4eba2702b2f92487e1d401 | 7,005 | kotlin | Apache License 2.0 |
cloud/aws/src/main/java/com/nimbusframework/nimbusaws/clients/websocket/ServerlessFunctionWebSocketClientApiGateway.kt | thomasjallerton | 163,180,980 | false | {"Kotlin": 1124638, "Java": 130052, "JavaScript": 12405, "CSS": 297, "Dockerfile": 148} | package com.nimbusframework.nimbusaws.clients.websocket
import com.nimbusframework.nimbuscore.clients.JacksonClient
import com.nimbusframework.nimbuscore.clients.websocket.ServerlessFunctionWebSocketClient
import software.amazon.awssdk.core.SdkBytes
import software.amazon.awssdk.services.apigatewaymanagementapi.ApiGat... | 4 | Kotlin | 4 | 39 | 5c3325caaf3fe9de9ffad130fd1e773c6f680e89 | 1,708 | nimbus-framework | MIT License |
app/src/test/java/org/who/ddccverifier/CQLEvaluatorTest.kt | WorldHealthOrganization | 430,942,275 | false | {"Kotlin": 240670, "HTML": 6961, "CSS": 3544, "Procfile": 68} | package org.who.ddccverifier
import androidx.test.core.app.ApplicationProvider
import ca.uhn.fhir.context.FhirContext
import ca.uhn.fhir.context.FhirVersionEnum
import com.google.android.fhir.FhirEngine
import com.google.android.fhir.FhirEngineProvider
import kotlinx.coroutines.runBlocking
import org.hl7.fhir.r4.model... | 0 | Kotlin | 3 | 9 | 0dc9d8b67da73ce6b93a62ee406f98ac7e2af9ce | 6,071 | ddcc-validator | Apache License 2.0 |
app/src/main/java/com/github/petrchatrny/puzzle8/view/SettingsFragment.kt | petrchatrny | 360,829,380 | false | null | package com.github.petrchatrny.puzzle8.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider... | 0 | Kotlin | 0 | 0 | 82ef601d4f196f0bb0ac63f8ec5c51df12d4b3fc | 1,572 | puzzle8 | MIT License |
core/src/main/java/com/crocodic/core/base/viewmodel/CoreViewModel.kt | yzzzd | 392,866,678 | false | null | package com.crocodic.core.base.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.crocodic.core.api.ApiResponse
import com.crocodic.core.base.activity.CoreActivity
import kotlinx.coroutines.Job
import org.greenrobot.eventbus.EventBus
abstract class CoreViewModel : ViewM... | 0 | Kotlin | 3 | 2 | c6ba04e78668497cac12d322bf46bf7cd65321ef | 695 | androidcore | Apache License 1.1 |
app/src/main/java/com/hotmail/or_dvir/appsfactory_lastfm/model/server_wrappers/ServerWrapperArtistsSearch.kt | or-dvir | 380,747,630 | false | null | package com.hotmail.or_dvir.appsfactory_lastfm.model.server_wrappers
import com.hotmail.or_dvir.appsfactory_lastfm.model.Artist
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* A wrapper class for the servers' response for retrieving search results for artists
*/
@JsonClass(generateAdapter =... | 0 | Kotlin | 0 | 1 | 1071c4177bbd64dce942364ecfd451675566ff0d | 1,179 | AppsFactory_LastFM | Apache License 2.0 |
app/src/main/java/com/xm/question/ui/question/model/QuestionItem.kt | jakal23 | 802,523,117 | false | {"Kotlin": 46423} | package com.xm.question.ui.question.model
data class QuestionItem(
val id: Int,
val question: String,
val answer: String
)
| 1 | Kotlin | 0 | 0 | 57c5ad8ca1d788c5f2bbff8e3bdd0625922dbf7e | 136 | XmQuestion | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/qldb/CfnLedgerDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.qldb
import io.cloudshiftdev.awscdkdsl.CfnTagDsl
import i... | 3 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 9,658 | awscdk-dsl-kotlin | Apache License 2.0 |
infrastructure/src/main/kotlin/dev/notypie/impl/command/InteractionPayloadParser.kt | TrulyNotMalware | 810,739,918 | false | {"Kotlin": 122649} | package dev.notypie.impl.command
import dev.notypie.domain.command.dto.interactions.InteractionPayload
interface InteractionPayloadParser {
fun parseStringPayload(payload: String): InteractionPayload
} | 0 | Kotlin | 0 | 0 | 56215ac26b0a955b9dba5cbb304b8f00c68c0f1a | 207 | CodeCompanion | MIT License |
src/main/kotlin/com/order/sample/order/infrastructure/json/ObjectMapperFactory.kt | gavageovanni | 800,253,604 | false | {"Kotlin": 7471} | package com.order.sample.order.infrastructure.json
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class ObjectMapperFactory {
@B... | 0 | Kotlin | 0 | 0 | a107bb85360e6c1ceb956a10594f92e2036b254a | 448 | order-transaction-outbox-sample | MIT License |
src/main/kotlin/io/nvtc/embeddedresources/project/task/service/TaskService.kt | cschaible | 366,153,662 | false | null | package io.nvtc.embeddedresources.project.task.service
import io.nvtc.embeddedresources.project.task.model.TaskStatusEnum
import io.nvtc.embeddedresources.project.task.repository.TaskRepository
import java.util.*
import org.springframework.data.domain.Pageable
import org.springframework.stereotype.Service
import org.s... | 0 | Kotlin | 0 | 2 | 508a06dbb5940ee9ad6f406b10935c2cc8fe8593 | 1,290 | spring-hateoas-embedded-resources | MIT License |
winmdj-core/src/main/kotlin/com/github/danielchemko/winmdj/core/autoobject/stubs/StubMethodSemanticsImpl.kt | danielchemko | 774,741,943 | false | {"Kotlin": 284901} | package com.github.danielchemko.winmdj.core.autoobject.stubs
import com.github.danielchemko.winmdj.core.MdObjectMapper
import com.github.danielchemko.winmdj.core.autoobject.BaseWinMdStub
import com.github.danielchemko.winmdj.core.mdspec.CLRMetadataType
import com.github.danielchemko.winmdj.core.mdspec.MethodSemantics... | 0 | Kotlin | 0 | 0 | 0d2a72ee7ea6f0dc05803b06039a8ac8bfc0dbd0 | 2,192 | winmdj | MIT License |
app/src/main/java/com/hydrofish/app/api/WaterData.kt | HydroFish-Waterloo | 748,731,716 | false | {"Kotlin": 273974} | package com.hydrofish.app.api
import java.text.DateFormat
data class WaterData(
val date: String,
val water_amount: Int,
)
| 3 | Kotlin | 0 | 0 | eadfc258a70804250726e316fcbde37f50265d5a | 133 | HydroFish | MIT License |
app/src/main/java/pudans/caturday/MainActivity.kt | pudans | 361,904,294 | false | null | package pudans.caturday
import android.content.Intent
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.AnimatedVisibilityScope
import androidx.compose.animation.cor... | 0 | Kotlin | 0 | 1 | 1424495b57bc08a1cfc9ff3342aae3dbc5f95a26 | 4,411 | Caturday | MIT License |
educational-core/src/com/jetbrains/edu/learning/stepik/hyperskill/HyperskillCourseUpdater.kt | telezhnaya | 264,863,128 | true | {"Kotlin": 2477547, "Java": 634238, "HTML": 131915, "CSS": 12844, "Python": 3994, "JavaScript": 315} | package com.jetbrains.edu.learning.stepik.hyperskill
import com.google.common.annotations.VisibleForTesting
import com.intellij.notification.Notification
import com.intellij.notification.NotificationType
import com.intellij.openapi.application.invokeAndWaitIfNeeded
import com.intellij.openapi.application.runWriteActio... | 0 | null | 0 | 0 | 9f9492f7505fb86df37c9d582814c075aa3a611d | 10,396 | educational-plugin | Apache License 2.0 |
app/src/main/java/com/smartherd/msgshareapp/AppConstants.kt | AshishBhoi | 152,084,574 | false | null | package com.smartherd.msgshareapp
object Constants {
const val USER_MSG_KEY = "user_message"
} | 0 | Kotlin | 0 | 0 | 4e403bea091eaf29d096361d6a81fae5c1d9be53 | 99 | KotlinApp1 | MIT License |
app/src/main/java/de/dhbw/mensaapp/ui/components/input/AnimatedChangingText.kt | SteveBinary | 621,552,225 | false | null | package de.dhbw.mensaapp.ui.components.input
import androidx.compose.animation.*
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.T... | 0 | Kotlin | 0 | 1 | 5e581880c96c54b0b20b2bb85e0c13c46157a822 | 2,171 | mensa-app | MIT License |
app/src/main/java/com/vension/mvp/ui/activitys/ProxyAvtivity.kt | Vension | 127,116,341 | false | null | package com.vension.mvp.ui.activitys
import android.os.Bundle
import android.support.v4.app.Fragment
import android.text.TextUtils
import android.view.WindowManager
import com.vension.frame.base.V_BaseFragment
import com.vension.frame.stacks.observers.ActivityObserver
import com.vension.frame.utils.VLogUtil
import com... | 1 | null | 1 | 1 | efa939c0325b1b05fad235a1314d87f9d3dc1338 | 2,738 | KV-MVP-Frame | Apache License 2.0 |
src/test/kotlin/io/andrewohara/awsmock/dynamodb/v2/V2GetItemUnitTest.kt | oharaandrew314 | 276,702,915 | false | {"Kotlin": 459818} | package io.andrewohara.awsmock.dynamodb.v2
import io.andrewohara.awsmock.dynamodb.DynamoFixtures
import io.andrewohara.awsmock.dynamodb.DynamoUtils.createCatsTable
import io.andrewohara.awsmock.dynamodb.MockDynamoDbV2
import io.andrewohara.awsmock.dynamodb.MockDynamoDbV2.Companion.toV2
import io.andrewohara.awsmock.dy... | 0 | Kotlin | 1 | 5 | abd135f64f0f6e5fdfce8ae8a30f0d8dd9166751 | 2,463 | mock-aws-java-sdk | Apache License 2.0 |
Android/NewsFresh/app/src/main/java/com/example/newsfresh/MainActivity.kt | PrathmeshMutke | 414,063,795 | false | {"Markdown": 11, "YAML": 6, "C++": 23, "Text": 2, "Ignore List": 5, "Dart": 29, "Java": 16, "C": 3, "Go": 10, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Batchfile": 1, "Proguard": 1, "Kotlin": 6, "XML": 18, "JavaScript": 2, "Python": 13} | package com.example.newsfresh
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import c... | 1 | null | 1 | 1 | 8e2efde35afe81b829f78a1c279637864a70c77f | 2,314 | HacktoberFest-2021 | MIT License |
Helpers/src/main/java/com/dg/helpers/LocationHelper.kt | MilliDevX | 195,803,662 | true | {"Kotlin": 102081} | package com.dg.helpers
@Suppress("unused")
object LocationHelper
{
private const val R = 6371.0
private const val M_PI = Math.PI
private const val DEG_TO_RAD = M_PI / 180.0
/**
* Calculates the distance between the specified locations
* @param latitude1
* @param longitude1
* @param... | 0 | Kotlin | 0 | 0 | bf461fd679287685bab0efe9abed5ec831cd7f1f | 1,154 | android-helpers | MIT License |
app/src/androidTest/java/com/alishatergholi/db/ProductDaoTest.kt | alishatergholi | 174,831,065 | false | null | package com.alishatergholi.db
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4
import com.alishatergholi.db.dao.ProductDao
import com.alishatergholi.utils.LiveDataTestUtil
import org.junit.Assert.*
i... | 1 | Kotlin | 1 | 4 | abd7b47fdad17ca8fd62b79692347b35dfa42314 | 1,894 | android-architecture-components | MIT License |
anvil-design/src/gen-material-1.2.0-alpha04/kotlin/dev/inkremental/dsl/google/android/material/bottomnavigation/BottomNavigationItemView.kt | inkremental | 205,363,267 | true | null | @file:Suppress("DEPRECATION", "UNCHECKED_CAST", "MemberVisibilityCanBePrivate", "unused")
package dev.inkremental.dsl.google.android.material.bottomnavigation
import com.google.android.material.bottomnavigation.BottomNavigationItemView
import dev.inkremental.Inkremental
import dev.inkremental.bind
import dev.inkremen... | 20 | Kotlin | 5 | 58 | 6e6241a0e9ac80a1edd1f0e100ad6bf0c4f8175e | 1,002 | inkremental | MIT License |
shared/src/commonMain/kotlin/com/rvcoding/imhere/data/local/DataStoreFactory.kt | revs87 | 842,125,970 | false | {"Kotlin": 137015, "Swift": 621, "HTML": 332, "CSS": 102} | package com.rvcoding.imhere.data.local
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.PreferenceDataStoreFactory
import androidx.datastore.preferences.core.Preferences
import com.rvcoding.imhere.domain.data.local.DataStoreFactory
import okio.Path.Companion.toPath
expect fun getDa... | 0 | Kotlin | 0 | 0 | 3276a4a97d5da205251e2bc4c4bb3f37d27ae773 | 574 | imhere-cmp | Apache License 2.0 |
core/src/commonMain/kotlin/dev/carlsen/flagkit/flagicons/AE.kt | acarlsen | 722,319,804 | false | {"Kotlin": 1629077, "Batchfile": 2673, "Swift": 590} | package dev.carlsen.flagkit.flagicons
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Brush.Companion.linearGradient
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx... | 0 | Kotlin | 1 | 21 | a630a5cdbb9749db3d83ad3b751740da42d84e16 | 3,938 | kmp-flagkit | MIT License |
app/src/main/java/com/github/hailouwang/demosforapi/widget/recyclerview/test8/ChildRecyclerView.kt | lichang2464 | 293,675,010 | true | {"Java": 4039904, "Dart": 125017, "Kotlin": 101373, "HTML": 64658, "Ruby": 4167, "C": 1889, "Groovy": 1869, "Swift": 949, "Objective-C": 785, "CMake": 228} | package com.github.hailouwang.demosforapi.widget.recyclerview.test8;
import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import androidx.recyclerview.widget.RecyclerView
import com.github.hailouwang.demosforapi.widget.recyclerview.test8.helper.FlingHe... | 0 | null | 0 | 1 | cdd5583c6aa34414ae59528357b9b20545b36d4b | 4,330 | AndroidGo | Apache License 2.0 |
app/src/androidTest/java/com/example/android/hilt/CustomTestRunner.kt | MesumAli2 | 582,915,798 | false | null | package com.example.android.hilt
import android.app.Application
import android.content.Context
import androidx.test.runner.AndroidJUnit4
import androidx.test.runner.AndroidJUnitRunner
import dagger.hilt.android.HiltAndroidApp
import dagger.hilt.android.testing.HiltTestApplication
import org.junit.runner.RunWith
cla... | 0 | Kotlin | 0 | 0 | eda7801da47310bcd2654f565f8ce35366e79423 | 593 | android-hilt-main | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/metrics/MetricRegister.kt | navikt | 192,487,799 | false | null | package no.nav.syfo.metrics
import io.prometheus.client.Counter
const val METRICS_NS = "syfostorebror"
val SM_OVERVAKET: Counter = Counter.build()
.namespace(METRICS_NS)
.name("sykmelding_overvaket_count")
.help("Antall sykmeldinger talt og prosessert av syfostorebror")
.register()
| 0 | Kotlin | 0 | 0 | bd28722af77b5ceb2fa6c521fb2a7459d6badf0a | 318 | syfostorebror | MIT License |
appupdater/src/main/java/ir/heydarii/appupdater/stores/MyketStore.kt | TrendingTechnology | 206,951,842 | true | {"Kotlin": 26544, "Java": 1151} | package ir.heydarii.appupdater.stores
import android.content.Context
import android.content.Intent
import android.net.Uri
import ir.heydarii.appupdater.pojomodel.Store
import ir.heydarii.appupdater.pojomodel.UpdaterStoreList
/**
* shows apk in bazaar store
*/
class MyketStore : Stores() {
override fun setStoreD... | 0 | null | 0 | 0 | ec2c54dbef4706c2a717e0794e096ece92d83f50 | 577 | AndroidAppUpdater | Apache License 2.0 |
compiler/src/main/kotlin/edu/cornell/cs/apl/viaduct/errors/UndefinedNameError.kt | apl-cornell | 169,159,978 | false | null | package edu.cornell.cs.apl.viaduct.errors
import edu.cornell.cs.apl.prettyprinting.Document
import edu.cornell.cs.apl.prettyprinting.plus
import edu.cornell.cs.apl.prettyprinting.times
import edu.cornell.cs.apl.viaduct.syntax.Located
import edu.cornell.cs.apl.viaduct.syntax.Name
import edu.cornell.cs.apl.viaduct.synta... | 20 | Kotlin | 4 | 11 | 2352c676305c595d235bc9024770fc622efb8aa2 | 951 | viaduct | MIT License |
io/http/src/test/kotlin/io/bluetape4k/http/hc5/examples/ClientMultiThreadedExecution.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.http.hc5.examples
import io.bluetape4k.http.hc5.AbstractHc5Test
import io.bluetape4k.http.hc5.classic.httpClientConnectionManager
import io.bluetape4k.http.hc5.classic.httpClientOf
import io.bluetape4k.junit5.concurrency.MultithreadingTester
import io.bluetape4k.logging.KLogging
import io.bluetap... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 2,304 | bluetape4k | MIT License |
bcmc/src/main/java/com/adyen/checkout/bcmc/BcmcOutputData.kt | leandromagnabosco | 533,836,687 | false | null | /*
* Copyright (c) 2020 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by caiof on 27/8/2020.
*/
package com.adyen.checkout.bcmc
import com.adyen.checkout.card.data.ExpiryDate
import com.adyen.checkout.components.base.OutputData
import co... | 2 | Kotlin | 0 | 0 | c154e989a08f1dc76cf90f6949878621cbbfa644 | 741 | testsonarcloud | MIT License |
libraries/lib-commons-core/src/main/java/com/corbellini/core/usecases/UseCase.kt | rcorbellini | 409,353,869 | false | null | package com.corbellini.core.usecases
import kotlinx.coroutines.flow.Flow
interface UseCase<T, P :UseCaseParam > {
suspend fun execute(params: P): Flow<Result<T>>
}
abstract class UseCaseParam | 0 | Kotlin | 0 | 6 | 3125a607a009f4caff048674b2af136665ad93c3 | 199 | GitHubApp | Apache License 2.0 |
app/src/main/java/com/example/todoapps/presentation/viewModel/EditTodoViewModel.kt | Jubayed-A | 743,035,596 | false | {"Kotlin": 15982} | package com.example.todoapps.presentation.viewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.todoapps.data.dao.TodosDao
import kotlinx.coroutines.launch
class EditTodoViewModel(todoId: L... | 0 | Kotlin | 0 | 0 | 6cc6474513ea84939f2106ea8719cdaf4733207d | 932 | OIBSIP-To-Do-Apps | MIT License |
src/studio/papercube/ipprobe/Main.kt | PaperCube | 135,261,702 | false | {"Kotlin": 12560} | package studio.papercube.ipprobe
import studio.papercube.library.argparser.Parameter
fun main(args: Array<String>) {
val availableConfigs: MutableList<Ip4Address> = ArrayList()
try {
val parameter = Parameter.resolve(args)
val argUnnamed = parameter.getUnnamedArg()
if (argUnnamed == nu... | 0 | Kotlin | 0 | 0 | 39573eb71ab0fb6ba07cf2d7921420afb0794ed0 | 2,784 | lan-ip-availability-prober | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.