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/com/example/android/coordinatedeffort/behaviors/navbars/ButtonsLayoutBehavior.kt | gdragan | 214,374,692 | true | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 32, "Java": 14, "Kotlin": 8} | package com.example.android.coordinatedeffort.behaviors.navbars
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.isGone
import com.google.android.material.botto... | 0 | Java | 0 | 0 | 8afd0b9700bed9b93df2bcb195c4ee547fac8094 | 1,319 | coordinated-effort | MIT License |
kotlin-electron/src/jsMain/generated/electron/renderer/OnResponseStartedListenerDetails.kt | JetBrains | 93,250,841 | false | {"Kotlin": 11411371, "JavaScript": 154302} | package electron.renderer
typealias OnResponseStartedListenerDetails = electron.core.OnResponseStartedListenerDetails
| 28 | Kotlin | 173 | 1,250 | 9e9dda28cf74f68b42a712c27f2e97d63af17628 | 120 | kotlin-wrappers | Apache License 2.0 |
wow-core/src/test/kotlin/me/ahoo/wow/saga/stateless/ExchangeCommandStreamKtTest.kt | Ahoo-Wang | 628,167,080 | false | {"Kotlin": 1902621, "Java": 34050, "TypeScript": 31834, "HTML": 11619, "Lua": 3978, "JavaScript": 2288, "Dockerfile": 820, "SCSS": 500, "Less": 342} | package me.ahoo.wow.saga.stateless
import io.mockk.mockk
import me.ahoo.wow.api.event.DomainEvent
import me.ahoo.wow.event.SimpleDomainEventExchange
import org.hamcrest.MatcherAssert.*
import org.hamcrest.Matchers.*
import org.junit.jupiter.api.Test
class ExchangeCommandStreamKtTest {
@Test
fun setCommandStr... | 6 | Kotlin | 8 | 98 | eed438bab2ae009edf3a1db03396de402885c681 | 502 | Wow | Apache License 2.0 |
app/src/main/java/dev/marcos/podcast/MainActivity.kt | mrcsxsiq | 360,927,587 | false | null | package dev.marcos.podcast
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.LinearLayout
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.viewpager2.widget.ViewPager2
import co... | 10 | Kotlin | 0 | 0 | eaf4d8402a0036f298b47baa4f02ca2d7e4a01d7 | 3,281 | Podcast | Apache License 2.0 |
domain/src/test/kotlin/com/example/domain/ClarifyingQuestionsSpec.kt | upelsin | 133,687,964 | false | null | package com.example.domain
import com.example.domain.models.*
import com.example.domain.submitProposal.ClarifyingQuestions
import com.example.domain.submitProposal.ClarifyingQuestions.Command.INIT
import com.example.domain.submitProposal.ClarifyingQuestions.Command.UpdateAnswer
import com.example.domain.submitProposal... | 0 | Kotlin | 0 | 0 | 94462f1294059f8078c0f6e34caabc3c2eadd44d | 6,379 | true-clean-architecture | Apache License 2.0 |
shared/java/top/fpsmaster/features/impl/render/MoreParticles.kt | FPSMasterTeam | 816,161,662 | false | {"Java": 620089, "Kotlin": 396547, "GLSL": 2647} | package top.fpsmaster.features.impl.render
import net.minecraft.block.BlockRedstoneDiode
import net.minecraft.block.state.BlockStateBase
import net.minecraft.block.state.BlockWorldState
import net.minecraft.entity.Entity
import net.minecraft.entity.EntityLivingBase
import net.minecraft.init.Blocks
import net.minecraft... | 19 | Java | 34 | 97 | 34a00cc1834e80badd0df6f5d17ae027163d0ce9 | 4,970 | FPSMaster | MIT License |
app/src/main/kotlin/net/primal/android/explore/db/TrendingHashtagDao.kt | PrimalHQ | 639,579,258 | false | {"Kotlin": 2548226} | package net.primal.android.explore.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
@Dao
interface TrendingHashtagDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun upsertAll(data: List<Trend... | 56 | Kotlin | 4 | 98 | 438072af7f67762c71c5dceffa0c83dedd8e2e85 | 520 | primal-android-app | MIT License |
app/src/main/java/com/zhou/android/kotlin/album/AlbumScrollListener.kt | maxiaozhou1234 | 81,295,250 | false | null | package com.zhou.android.kotlin.album
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.SnapHelper
open class AlbumScrollListener : RecyclerView.OnScrollListener {
private var helper: SnapHelper
private var currentPosition = RecyclerView.NO_POSITION
constructor(helper: SnapH... | 0 | Java | 72 | 91 | 1ac1fb02463856a47fd71b9925f8212693b84926 | 1,487 | AndroidDemo | MIT License |
Section 20 - Aplicativo - Gasto Viagem/Projects/GastoViagem/app/src/main/kotlin/business/TravelCostBusiness.kt | vilaJJ | 861,494,712 | false | {"Kotlin": 131603, "Java": 1684} | package business
import business.enums.TravelCostValidateResult
import business.interfaces.IValidate
import entity.TravelCost
internal class TravelCostBusiness : IValidate<TravelCost, TravelCostValidateResult> {
override fun validate(value: TravelCost): TravelCostValidateResult {
with(value) {
... | 0 | Kotlin | 0 | 0 | bbf9ccbd09aac27cadd8fd9fad226a86d68da992 | 824 | Course_AndroidKotlinDevelopment_GF | The Unlicense |
src/basic_control_flow/DoWhile.kt | tumininucodes | 326,037,478 | false | null | package basic_control_flow
fun main() {
var sum = 1
do {
sum += 2
println(sum)
} while (sum < 3)
while (true) {
sum += 3
println(sum)
if (sum >= 200) {
break
}
}
} | 0 | Kotlin | 0 | 1 | cd7f87ebaabde14000879097a912f796f971ba90 | 246 | kotlin | MIT License |
src/basic_control_flow/DoWhile.kt | tumininucodes | 326,037,478 | false | null | package basic_control_flow
fun main() {
var sum = 1
do {
sum += 2
println(sum)
} while (sum < 3)
while (true) {
sum += 3
println(sum)
if (sum >= 200) {
break
}
}
} | 0 | Kotlin | 0 | 1 | cd7f87ebaabde14000879097a912f796f971ba90 | 246 | kotlin | MIT License |
src/main/kotlin/com/hiberus/anaya/redmineeditor/components/CalendarComponent.kt | anayaHiberus | 645,313,511 | false | {"Kotlin": 210045, "Java": 692, "Batchfile": 504, "Shell": 240, "CSS": 43} | package com.hiberus.anaya.redmineeditor.components
import com.hiberus.anaya.redmineeditor.dialogs.MyException
import com.hiberus.anaya.redmineeditor.model.AppController
import com.hiberus.anaya.redmineeditor.model.ChangeEvent
import com.hiberus.anaya.redmineeditor.model.Model
import com.hiberus.anaya.redmineeditor.uti... | 1 | Kotlin | 0 | 3 | b0bac42c74907f2b29b832a2e6bd1d57f3831e5f | 7,540 | redmineeditor | Creative Commons Attribution 4.0 International |
src/main/kotlin/li/cli/oc/blockentity/Assembler.kt | rschulman | 321,812,124 | true | {"Kotlin": 146460} | package li.cli.oc.blockentity
import li.cli.oc.blockentity.commons.TecBlockEntity
import li.cli.oc.components.BlockEntitiesComponent
class Assembler: TecBlockEntity(BlockEntitiesComponent.Assembler) | 0 | Kotlin | 0 | 1 | 5f7e00057e053151967990b5a5db63184a2d22c8 | 200 | OpenComputers | Creative Commons Zero v1.0 Universal |
infrastructure/gateway/src/main/kotlin/com/hyosakura/gateway/config/CorsConfig.kt | LovesAsuna | 452,657,888 | false | null | package com.hyosakura.gateway.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.cors.CorsConfiguration
import org.springframework.web.cors.reactive.CorsWebFilter
import org.springframework.web.cors.reactive.UrlBasedCorsC... | 0 | Kotlin | 0 | 0 | 3a65bc1383e9a161d3a1e036551d9990437f4881 | 820 | OnlineEducation | MIT License |
src/main/kotlin/br/com/lucascm/mangaeasy/micro_api_monolito/core/service/HandleExceptions.kt | manga-easy | 627,169,031 | false | {"Kotlin": 251162, "Dockerfile": 130} | package br.com.lucascm.mangaeasy.micro_api_monolito.core.service
import br.com.lucascm.mangaeasy.micro_api_monolito.core.entities.BusinessException
import br.com.lucascm.mangaeasy.micro_api_monolito.core.entities.ResultEntity
import br.com.lucascm.mangaeasy.micro_api_monolito.core.entities.StatusResultEnum
import io.s... | 0 | Kotlin | 1 | 3 | 15fd84cde173a9973225b5563fd137271e3d0c8f | 952 | manga_easy_micro_api_monolito | MIT License |
app/src/main/java/com/bsuir/bsuirschedule/presentation/viewModels/ScheduleViewModel.kt | Saydullin | 526,953,048 | false | null | package com.bsuir.bsuirschedule.presentation.viewModels
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.bsuir.bsuirschedule.BuildConfig
import com.bsuir.bsuirschedule.domain.models.*
import com.bsuir.bsuirschedule.domain.models.scheduleS... | 0 | Kotlin | 0 | 4 | edb67f1ec3602227f4a4a757bc89a6ec587160c3 | 23,258 | BSUIR_Schedule | Creative Commons Zero v1.0 Universal |
compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDataClassNonPublicConstructorChecker.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2024 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.fir.analysis.checkers.declaration
import org.jetbrains.kotlin.config.LanguageFea... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,189 | kotlin | Apache License 2.0 |
fundamentos/fundamentos-gerais/src/main/kotlin/e/maisfuncoes/06-MaisFuncoes-Generics.kt | CarlosRobertoMedeiros | 725,864,363 | false | {"Kotlin": 64689, "Java": 78} | package e.maisfuncoes
fun main() {
println(calcularMedia(1f,2f,3f,5.75f))
println(calcularMediaOpcao2(false,2f,3f,5.75f))
}
//Exemplo de Genérics cuidado com os tipos de dados de entrada
fun <T> calcularMedia(vararg notas: T):Float{
var soma=0f
for (n in notas) {
if (n is Float) soma +=n
}... | 0 | Kotlin | 0 | 0 | 79bdb9a8f3d77df959149285ca5ab444f26c65b5 | 716 | repo-kotlin-developer- | RSA Message-Digest License |
core/network/src/main/java/com/hankki/core/network/StringExt.kt | Team-Hankki | 816,081,730 | false | {"Kotlin": 597927} | package com.hankki.core.network
fun String?.isJsonObject(): Boolean = this?.startsWith("{") == true && this.endsWith("}")
fun String?.isJsonArray(): Boolean = this?.startsWith("[") == true && this.endsWith("]")
| 1 | Kotlin | 0 | 43 | 959b647e3b42fe1ae96d85c87ea7cc7ebfb74266 | 213 | hankki-android | Apache License 2.0 |
src/main/kotlin/org/elm/workspace/commandLineTools/ElmFormatCLI.kt | harxki | 173,057,537 | true | {"Kotlin": 865685, "Java": 76672, "Elm": 11060, "Lex": 5783, "HTML": 370} | package org.elm.workspace.commandLineTools
import com.intellij.execution.ExecutionException
import com.intellij.execution.process.ProcessOutput
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.command.CommandProcessor
import com.intellij.openapi.diagnostic.logger
import com.intell... | 0 | Kotlin | 0 | 0 | ca49fc75e1d9e0d05dbbdd10171b729bdcb455ec | 3,906 | intellij-elm | MIT License |
libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/js/KotlinJsTargetPreset.kt | leo-from-spb | 176,960,056 | true | {"Kotlin": 34511216, "Java": 7467969, "JavaScript": 152998, "HTML": 73852, "Lex": 23159, "IDL": 10758, "ANTLR": 9803, "Shell": 7727, "Groovy": 6893, "Batchfile": 5362, "CSS": 4679, "Objective-C": 182, "Scala": 80} | /*
* 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.
*/
@file:Suppress("PackageDirectoryMismatch") // Old package for compatibility
package org.jetbrains.kotlin.gradle.plugin.mpp
import org.gradle.api.Project
im... | 0 | Kotlin | 0 | 0 | 7f08ecee3919f4648a0a1f9254932a269809c680 | 1,792 | kotlin | Apache License 2.0 |
LAB9/app/src/main/java/com/example/lab9/DatabaseHelper.kt | pear05 | 568,747,747 | false | null | package com.example.lab9
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class DatabaseHelper(context : Context) :
SQLiteOpenHelper(context, DATABASE_NAME, null, DB_VERSION)... | 0 | Kotlin | 0 | 0 | c490b4a539d9cedf9073ac913efaee4c5946d2fd | 1,464 | Kotlin_sample_projects | The Unlicense |
directappupdate/src/main/java/com/micoder/directappupdate/viewmodel/NotificationViewModel.kt | Micoder-dev | 807,587,959 | false | {"Kotlin": 34355} | package com.micoder.directappupdate.viewmodel
import android.annotation.SuppressLint
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.micoder.directappupdate.di.DirectAppUpdateNotificat... | 0 | Kotlin | 0 | 0 | 152a2adc27e1cc27f6ee0fd94f01e799b1e746fd | 1,710 | DirectAppUpdate | MIT License |
src/main/kotlin/api/common/Beans.kt | cdimascio | 151,765,325 | false | null | package api.common
import api.users.UsersService
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class Beans {
@Bean
fun userService(): UsersService {
return UsersService()
}
}
| 0 | Kotlin | 8 | 22 | f99b10ba0686abc82ddcd13993f804644f29af2c | 277 | kotlin-spring-mvc-template | Apache License 2.0 |
app/src/main/java/com/jadebyte/jadeplayer/main/common/view/ZoomOutPageTransformer.kt | wilburt | 177,040,268 | false | null | // Copyright (c) 2019 . <NAME>. All Rights Reserved.
package com.jadebyte.jadeplayer.main.common.view
import android.view.View
import androidx.viewpager.widget.ViewPager
import kotlin.math.abs
import kotlin.math.max
/**
* Created by Wilberforce on 2019-05-02 at 01:58.
*
* Original source: https://developer.androi... | 5 | Kotlin | 28 | 75 | e8b887c5074c6dde830252e322869d0ff8d362c5 | 1,950 | Jade-Player | Apache License 2.0 |
src/main/kotlin/entity/berries/BerryFirmness.kt | Tykok | 518,240,433 | false | null | package entity.berries
import entity.common.Name
import entity.common.NamedApiResource
/**
* @link https://pokeapi.co/docs/v2#berry-firmnesses
* @author Tykok
* @version 1.0.0
* @since 2022-07-27
*/
class BerryFirmness(
val id: Number,
val name: String,
/**
* A list of the berries with this fir... | 12 | Kotlin | 0 | 1 | b017ec3b0cacc436e6ce975610b6bb9209e88026 | 532 | PokeAPI-Kotlin | MIT License |
buildSrc/src/main/kotlin/Dependency.kt | AChep | 160,681,782 | false | {"Kotlin": 130814} | /**
* @author <NAME>
*/
data class Dependency(
val name: String,
val version: String,
val notation: Any,
val type: DependencyType
) | 4 | Kotlin | 0 | 8 | 0a067570b49474a049960d892a72749ca3cb903c | 149 | literaryclock | Apache License 2.0 |
app/src/main/java/com/zxhhyj/music/ui/common/AlbumMotionBlur.kt | ZXHHYJ | 675,785,532 | false | {"Kotlin": 422646} | package com.zxhhyj.music.ui.common
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import android.view.animation.LinearInterpolator
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
... | 0 | Kotlin | 1 | 9 | c09f7c5904379e42d85d0d64f2842717e7bf177e | 5,520 | StarMusic | Apache License 2.0 |
app/src/main/java/ar/edu/unlam/mobile/scaffold/ui/components/GameScore.kt | unlam-tec-movil | 691,293,842 | false | {"Kotlin": 348767} | package ar.edu.unlam.mobile.scaffold.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.materi... | 3 | Kotlin | 0 | 0 | 62f24b5a8117891e1656c23a6b6bd6289d54f198 | 1,820 | A3-2023-H2-Cartas-Super | MIT License |
covpass-sdk/src/test/java/de/rki/covpass/sdk/utils/serialization/BirthDateSerializerTest.kt | ljxx | 388,073,819 | false | null | /*
* (C) Copyright IBM Deutschland GmbH 2021
* (C) Copyright IBM Corp. 2021
*/
package de.rki.covpass.sdk.utils.serialization
import assertk.assertThat
import assertk.assertions.isEqualTo
import de.rki.covpass.sdk.cert.models.BirthDate.Companion.BIRTH_DATE_EMPTY
import io.mockk.*
import kotlinx.serialization.encod... | 0 | Kotlin | 0 | 2 | 390a45d0c8231e8203439018d0e6702ecb0f0d05 | 4,130 | android-covpass-app | Apache License 2.0 |
android/app/src/main/java/com/fabirt/debty/domain/model/Movement.kt | fabirt | 349,736,814 | false | {"Kotlin": 164948} | package com.fabirt.debty.domain.model
data class Movement(
val id: Int,
val personId: Int,
val amount: Double,
/**
* Time in milliseconds since Epoch.
*/
val date: Long,
val description: String,
val type: MovementType
) | 0 | Kotlin | 8 | 46 | fd9e7b97728f57c93104caa1c4c6ae70ff770ec7 | 258 | debty-v2 | MIT License |
app/src/main/java/com/eyepetizer/android/ui/MainActivity.kt | VIPyinzhiwei | 259,029,682 | false | null | /*
* Copyright (c) 2020. vipyinzhiwei <vipyinzhiwei@gmail.com>
*
* 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 ... | 3 | null | 404 | 1,759 | bc2feccace17deac2917ae26728915030ed6ed22 | 9,992 | Eyepetizer | Apache License 2.0 |
app/src/main/java/com/eyepetizer/android/ui/MainActivity.kt | VIPyinzhiwei | 259,029,682 | false | null | /*
* Copyright (c) 2020. vipyinzhiwei <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 3 | null | 404 | 1,759 | bc2feccace17deac2917ae26728915030ed6ed22 | 9,977 | Eyepetizer | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/passport/encrypted/abstracts/EncryptedPassportElementWithPhoneNumber.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.types.passport.encrypted.abstracts
import dev.inmo.tgbotapi.types.passport.encrypted.EncryptedElementSerializer
import kotlinx.serialization.Serializable
@Serializable(EncryptedElementSerializer::class)
interface EncryptedPassportElementWithPhoneNumber : EncryptedPassportElement {
val ph... | 9 | Kotlin | 10 | 99 | 8206aefbb661db936d4078a8ef7cc9cecb5384e4 | 339 | TelegramBotAPI | Apache License 2.0 |
feature/system/src/main/kotlin/top/chengdongqing/weui/feature/system/screens/Notification.kt | chengdongqing | 782,566,304 | false | {"Kotlin": 894390} | package top.chengdongqing.weui.feature.system.screens
import android.Manifest
import android.annotation.SuppressLint
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import androidx.compose.runtime.Composable
import androidx.compose.ui... | 0 | Kotlin | 3 | 8 | eb773e75aacb801cb24adb41db9fe17224eb883a | 2,706 | WeUI | Apache License 2.0 |
src/main/kotlin/no/tornado/tornadofx/idea/annotator/CSSColorAnnotator.kt | edvin | 58,163,963 | false | null | package no.tornado.tornadofx.idea.annotator
import com.intellij.lang.annotation.AnnotationHolder
import com.intellij.lang.annotation.Annotator
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.inte... | 22 | null | 22 | 70 | c02e7b8743c2d0213a6a2f6d1a823610fc3c14dd | 14,641 | tornadofx-idea-plugin | Apache License 2.0 |
http4k-incubator/src/main/kotlin/org/http4k/openapi/v3/server/server.kt | hoi-nx | 266,249,576 | true | {"Kotlin": 1692877, "JavaScript": 133282, "Java": 31515, "Shell": 10165, "HTML": 4506, "Python": 1592, "CSS": 832} | package org.http4k.openapi.v3.server
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier.OPERATOR
import com.squareup.kotlinpoet.TypeSpec
import org.http4k.openapi.v3.OpenApi3Spec
import org.http4k.openapi.v3.apiName
fun OpenApi3Spec.buildServer(endpoints: List<FunSpec>) =
TypeSpec.obj... | 0 | null | 0 | 0 | 2be3d93e98c09e1d8f5986a932e82852560e22c2 | 599 | http4k | Apache License 2.0 |
src/main/kotlin/com/example/ddd/order/domain/repositories/OrderRepository.kt | cesar-lp | 485,152,561 | false | null | package com.example.ddd.order.domain.repositories
import com.example.ddd.order.domain.models.entities.Order
interface OrderRepository {
fun save(order: Order): Order
fun get(id: String): Order?
fun getAll(): Set<Order>
fun getByClient(clientId: String): Set<Order>
} | 0 | Kotlin | 0 | 0 | 094ea43a68cc6a50a5a42c1dfbb26726faaaa0b8 | 281 | kotlin-ddd-example | MIT License |
modules/domain/src/main/java/eu/automateeverything/domain/automation/NotAutomationNode.kt | tomaszbabiuk | 488,678,209 | false | null | /*
* Copyright (c) 2019-2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Kotlin | 1 | 0 | 6508322d8b83553e18bdde8a3ebe7c0a37aed744 | 936 | automate-everything | Apache License 2.0 |
_pending/Projemanag_v51/app/src/main/java/com/projemanag/adapters/TaskListItemsAdapter.kt | luannguyen252 | 371,359,679 | false | null | package com.projemanag.adapters
import android.content.Context
import android.content.res.Resources
import android.util.Log
import android.view.DragEvent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.Toast
import andro... | 0 | Kotlin | 0 | 1 | a9b5aef8662a1808042c820c3dfac02e1efd5800 | 12,147 | my-android-journey | MIT License |
src/main/kotlin/com/cognifide/gradle/aem/tooling/rcp/Rcp.kt | killakam3084 | 224,489,898 | true | {"Kotlin": 642093, "Shell": 5281, "Java": 2130, "Batchfile": 267} | package com.cognifide.gradle.aem.tooling.rcp
import com.cognifide.gradle.aem.AemDefaultTask
import org.gradle.api.tasks.TaskAction
open class Rcp : AemDefaultTask() {
init {
description = "Copy JCR content from one instance to another."
}
fun options(configurer: RcpClient.() -> Unit) {
t... | 0 | null | 0 | 0 | 8aadf05f2e8fd5b11b4a98b22492880bfafdddf9 | 1,089 | gradle-aem-plugin | Apache License 2.0 |
door-runtime/src/commonJvmJs/kotlin/com/ustadmobile/door/room/RoomDatabaseJdbcImplHelper.kt | UstadMobile | 344,538,858 | false | null | package com.ustadmobile.door.room
import com.ustadmobile.door.jdbc.Connection
import com.ustadmobile.door.jdbc.DataSource
import com.ustadmobile.door.room.InvalidationTracker
import com.ustadmobile.door.room.RoomDatabase
import com.ustadmobile.door.util.TransactionMode
/**
* Contains logic that is used by generated... | 0 | Kotlin | 0 | 89 | 58f93d9057ece78cc3f8be3d4d235c0204a15f11 | 1,039 | door | Apache License 2.0 |
src/test/kotlin/no/nav/arbeidsgiver/sykefravarsstatistikk/api/integrasjoner/kafka/EmbeddedKafkaBrokerConfig.kt | navikt | 201,881,144 | false | {"Kotlin": 796531, "Shell": 1600, "Dockerfile": 213} | package no.nav.arbeidsgiver.sykefravarsstatistikk.api.infrastruktur.kafka
import no.nav.arbeidsgiver.sykefravarsstatistikk.api.config.KafkaTopic
import org.springframework.boot.test.context.TestConfiguration
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Profile
import... | 1 | Kotlin | 2 | 0 | fd3e4795c206dd0565fb8fc968504f0df5acae09 | 917 | sykefravarsstatistikk-api | MIT License |
exampleapp/src/androidTest/java/com/gerardbradshaw/exampleapp/squareview/SquareViewAndroidTest.kt | GerardBradshaw | 294,220,706 | false | null | package com.gerardbradshaw.exampleapp.squareview
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.gerardbradshaw.exampleapp.R
import com.gerardbradshaw.exampleapp.SquareViewActivity
import com.gerardbradshaw.exampleapp.squareview.SquareViewAndroi... | 0 | Kotlin | 0 | 1 | 1327b8d9bd92d71703f28d56e4763c1cbe03b085 | 6,795 | ColorPicker | Apache License 2.0 |
packages/expo-image/android/src/main/java/expo/modules/image/okhttp/ExpoImageOkHttpClientGlideModule.kt | derekstavis | 184,342,737 | false | null | package expo.modules.image.okhttp
import android.content.Context
import com.bumptech.glide.Glide
import com.bumptech.glide.Registry
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader
import com.bumptech.glide.load.model.GlideUrl
import com.bumptech.glide.modu... | 1 | null | 1 | 2 | e377f0cd22db5cd7feb8e80348cd7064db5429b1 | 820 | expo | MIT License |
Retos/Reto #14 - OCTAL Y HEXADECIMAL [Fácil]/kotlin/jaimefere.kt | mouredev | 581,049,695 | false | {"Python": 4194087, "JavaScript": 1590517, "Java": 1408944, "C#": 782329, "Kotlin": 533858, "TypeScript": 479964, "Rust": 357628, "Go": 322940, "PHP": 288620, "Swift": 278290, "C": 223896, "Jupyter Notebook": 221090, "C++": 175187, "Dart": 159755, "Ruby": 71132, "Perl": 52923, "VBScript": 49663, "HTML": 45912, "Raku": ... | class BasesNumber(
var decimal: Int,
var octa: String = "",
var hexa: String = ""
) {
override fun toString(): String {
return "decimal: $decimal - octadecimal: $octa - hexadecimal: $hexa"
}
}
fun Int.toOctadecimal(): String {
var result = ""
var rest = this.mod(8)
var quotient:... | 1 | Python | 2974 | 5,192 | f8c44ac12756b14a32abf57cbf4e0cd06ad58088 | 1,293 | retos-programacion-2023 | Apache License 2.0 |
kotlinextensions/src/main/kotlin/com/widget/cardview/CardValidator.kt | SimformSolutionsPvtLtd | 118,210,511 | false | null | package com.widget.cardview
import java.util.Arrays
import kotlin.collections.ArrayList
class CardValidator(cardNo :String) {
private var cardNumber :String? = null
private var checkDigit :Int = 0
val isValidCardNumber :Boolean
get() {
if(cardNumber!!.trim {it <= ' '}.isEmpty())
... | 0 | Kotlin | 2 | 7 | 211b47986e3a7993f85ca0a0ce9ff3141f3ae140 | 3,520 | Kotlin-Extensions | Apache License 2.0 |
KMM_example/src/main/java/com/example/kmmExample/android/EncryptionActivity.kt | rKaiProgrammer | 565,355,427 | false | {"Kotlin": 20716, "Swift": 5786} | package com.example.kmmExample.android
import android.os.Bundle
import com.example.kmmExample.Encryption
import com.example.kmmExample.Greeting
import com.example.kmmExample.android.databinding.ActivityEncryptionBinding
import com.example.kmmExample.android.databinding.ActivityMainBinding
class EncryptionActivity :... | 0 | Kotlin | 0 | 0 | d630a442a518390949149fcebe33f4668eaba614 | 806 | KMM-example | Apache License 2.0 |
cmpe/common/src/desktopMain/kotlin/xyz/mcxross/cohesive/cps/utils/FileUtils.kt | mcxross | 514,846,313 | false | null | package xyz.mcxross.cohesive.cps.utils
import xyz.mcxross.cohesive.common.frontend.utils.delete
import xyz.mcxross.cohesive.common.frontend.utils.exists
import xyz.mcxross.cohesive.common.frontend.utils.isDirectory
import xyz.mcxross.cohesive.common.frontend.utils.isZip
import xyz.mcxross.cohesive.common.frontend.util... | 0 | Kotlin | 0 | 3 | be630e050c060bc5155e7ef7a65e3bc909ec58d6 | 5,024 | cohesive | Apache License 2.0 |
core/src/main/java/me/kwsk/odptlibrary/core/api/bus/OdptBusStopPoleTimetableResponse.kt | teracy | 115,876,824 | false | null | package me.kwsk.odptlibrary.core.api.bus
import com.google.gson.annotations.SerializedName
import me.kwsk.odptlibrary.core.api.common.*
import org.threeten.bp.Instant
import org.threeten.bp.LocalTime
import org.threeten.bp.ZoneId
import org.threeten.bp.ZonedDateTime
/**
* バス停標柱時刻表
*/
class OdptBusStopPoleTimetableR... | 0 | null | 0 | 5 | b3fa9249598148fc9cca0574cb62998e42b538f9 | 3,159 | OdptLibrary | Apache License 2.0 |
blockball-api/src/main/java/com/github/shynixn/blockball/api/business/service/GameExecutionService.kt | Shynixn | 78,865,055 | false | {"Kotlin": 1036766, "Dockerfile": 2558, "Shell": 2544} | package com.github.shynixn.blockball.api.business.service
import com.github.shynixn.blockball.api.persistence.entity.Game
/**
* Created by Shynixn 2019.
* <p>
* Version 1.2
* <p>
* MIT License
* <p>
* Copyright (c) 2019 by Shynixn
* <p>
* Permission is hereby granted, free of charge, to any person obtaining ... | 0 | Kotlin | 23 | 66 | a2e598f2062072635b32d7a8dbc7c1bde8b65ded | 1,690 | BlockBall | Apache License 2.0 |
tools/ingress-testing/api-client/src/main/kotlin/uk/gov/justice/digital/hmpps/client/ApiClient.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4250610, "HTML": 70066, "D2": 42781, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.client
import org.springframework.stereotype.Component
import org.springframework.web.client.RestClient
@Component
class ApiClient(private val restClient: RestClient) {
fun getTest(delay: Int) = restClient
.get()
.uri("/test/$delay")
.exchange { _, res ... | 3 | Kotlin | 0 | 2 | 76197df3761bc90253cbf0ec8854a9324d807a7c | 353 | hmpps-probation-integration-services | MIT License |
kcrypto/src/main/kotlin/org/bouncycastle/kcrypto/cert/CertificateBuilder.kt | bcgit | 196,159,414 | false | {"Kotlin": 458444, "HTML": 419} | package org.bouncycastle.kcrypto.cert
import org.bouncycastle.asn1.ASN1ObjectIdentifier
import org.bouncycastle.asn1.x500.X500Name
import org.bouncycastle.asn1.x509.AlgorithmIdentifier
import org.bouncycastle.asn1.x509.Extensions
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
import org.bouncycastle.cert.X509v... | 0 | Kotlin | 15 | 69 | dc86103f5fef1baf9f6e1cdff17bbf31927637ab | 6,435 | bc-kotlin | MIT License |
account_manager/src/main/java/in/windrunner/account_manager/TokenRequestApi.kt | dimskiy | 477,723,999 | false | null | package `in`.windrunner.account_manager
sealed class TokenRequestApi {
abstract class WithUsernamePassword : TokenRequestApi() {
abstract suspend fun getToken(userName: String, password: String): String
}
} | 0 | Kotlin | 0 | 0 | 947cf94cdff1e047be09a92e154928cf6e6c819a | 226 | android_accounts | MIT License |
app/src/main/java/com/example/mrokey/besttrip/features/authentication/forgot/ForgotPasswordActivity.kt | youknowbaron | 139,706,638 | false | {"Kotlin": 109066} | package com.example.mrokey.besttrip.features.authentication.forgot
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.Button
import android.widget.Toast
import com.example.mrokey.besttrip.R
import kotlinx.android.synthetic.main.activity_forgot_passwo... | 0 | Kotlin | 0 | 0 | 7677b547e6ef21729c6212bff39e62a6c7da8d86 | 1,485 | week45-TogetherWeGo | Apache License 2.0 |
src/main/kotlin/com/cultureamp/eventsourcing/Route.kt | cultureamp | 252,301,864 | false | {"Kotlin": 213724, "Java": 2634, "Shell": 1465} | package com.cultureamp.eventsourcing
import kotlin.reflect.KClass
data class Route<CC : CreationCommand, UC : UpdateCommand, M : EventMetadata>(
val creationCommandClass: KClass<CC>,
val updateCommandClass: KClass<UC>,
val executionContextClass: KClass<M>,
val aggregateConstructor: AggregateConstructo... | 3 | Kotlin | 6 | 53 | 3b71cd86f075e2d7c124d9706698cacc559f9db5 | 3,445 | kestrel | Apache License 2.0 |
src/main/kotlin/org/teamvoided/dusk_autumn/block/SixWayFacingBlock.kt | TeamVoided | 737,359,498 | false | {"Kotlin": 562762, "Java": 6328} | package org.teamvoided.dusk_autumn.block
import com.mojang.serialization.MapCodec
import net.minecraft.block.Block
import net.minecraft.block.BlockState
import net.minecraft.item.ItemPlacementContext
import net.minecraft.state.StateManager
import net.minecraft.state.property.DirectionProperty
import net.minecraft.stat... | 0 | Kotlin | 0 | 0 | 8b5b16f6f4bdc2038f63a10808dd58897912c329 | 1,528 | DusksAndDungeons | MIT License |
src/commonMain/kotlin/net/orandja/obor/tags/CborDateTime.kt | L-Briand | 289,461,298 | false | {"Kotlin": 233324} | package net.orandja.obor.tags
import kotlinx.serialization.Serializable
import net.orandja.obor.annotations.CborTag
import kotlin.jvm.JvmInline
@CborTag(0, true)
@Serializable
@JvmInline
value class CborDateTime(val dateTime: String) {
override fun toString(): String = dateTime
} | 0 | Kotlin | 0 | 9 | d5e54a02a8a2c7fda8cf93cad9ae1f1ee1bfe802 | 286 | obor | The Unlicense |
src/test/kotlin/IgnoreArraysOrderTest.kt | mkfl3x | 615,517,304 | false | {"Kotlin": 29043} | import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.mkfl3x.jsondelta.*
class IgnoreArraysOrderTest : BaseTest() {
private val expectedArrayJson = "[1, 2, 3]"
private val actualArrayJson = "[3, 2, 1]"
private val expectedArrayFieldJson = """
{
"val": t... | 0 | Kotlin | 0 | 7 | 5124080cddec2b70b09b3ed8e90aee72e9fe8e4a | 2,154 | json-delta | MIT License |
app/src/main/java/dev/tran/nam/gobear/mapper/DataMapper.kt | NamTranDev | 163,314,406 | false | null | package dev.tran.nam.gobear.mapper
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class DataMapper @Inject
internal constructor(val articleModelMapper: ArticleModelMapper)
| 0 | Kotlin | 0 | 0 | a1e2ff41ff708cbc867253bf27a1d2ac5dafa029 | 195 | GoBear | Apache License 2.0 |
quide-crawler/src/main/kotlin/io/gitlab/arturbosch/quide/crawler/cli/CLI.kt | arturbosch | 78,001,298 | false | null | package io.gitlab.arturbosch.quide.crawler.cli
import io.gitlab.arturbosch.kutils.readLines
import io.gitlab.arturbosch.quide.crawler.Console
import io.gitlab.arturbosch.quide.crawler.pipe.GitPipe
/**
* @author <NAME>
*/
object CLI {
fun run(args: Args) {
with(args) {
require(input != null) { "Unexpected nul... | 9 | Kotlin | 1 | 1 | 01f9ba759c2bf08e7c57ecdd8bbe6fd4454696ec | 649 | quide | Apache License 2.0 |
zircon.core/src/main/kotlin/org/codetome/zircon/api/color/TextColorFactory.kt | opencollective | 119,803,967 | false | null | package org.codetome.zircon.api.color
import org.codetome.zircon.internal.color.DefaultTextColor
import java.awt.Color
import java.util.regex.Pattern
/**
* Use this factory to create [TextColor]s.
*/
object TextColorFactory {
/**
* The default foreground color is `WHITE`.
*/
@JvmField
val DEF... | 0 | null | 1 | 1 | 3c1cd8aa4b6ddcbc39b9873c54ac64e3ec6cda4d | 2,280 | zircon | MIT License |
app/src/main/java/com/fourthwall/android/di/NetworkServiceModule.kt | sancarbar | 425,257,426 | false | {"Kotlin": 27006} | package com.fourthwall.android.di
import com.fourthwall.android.BuildConfig
import com.fourthwall.android.network.service.PicsumService
import com.fourthwall.android.utils.ISO_DATE_FORMAT
import com.google.gson.GsonBuilder
import com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory
import da... | 0 | Kotlin | 0 | 0 | 450ef704b018a54fde80c1b403d0fca1f4489161 | 1,973 | fourthwall-android-challenge | Apache License 2.0 |
app/src/main/java/me/amitshekhar/ridesharing/ui/maps/MapsActivity.kt | universal9622 | 776,662,268 | false | null | package com.mindorks.ridesharing.ui.maps
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Color
import android.os.Bundle
import android.os.Looper
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.appcom... | 6 | null | 456 | 4 | e1cfc921dc0e13683ca662f87af0f0fedeb44fb4 | 16,618 | app-rs-uber-lyft | Apache License 2.0 |
components/archive/impl/src/main/java/com/flipperdevices/archive/impl/composable/page/ArchivePage.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.archive.impl.composable.page
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.runtime.Composable
import andr... | 3 | null | 29 | 267 | 6b116430ac0b16c9fe0a00d119507de6fff5474a | 1,466 | Flipper-Android-App | MIT License |
project-system-gradle-psd/src/com/android/tools/idea/gradle/structure/daemon/PsSdkIndexCheckerDaemon.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2022 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 | Kotlin | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,566 | android | Apache License 2.0 |
app/src/main/java/app/eluvio/wallet/network/dto/v2/MediaPageSectionDto.kt | eluv-io | 719,801,077 | false | {"Kotlin": 748789, "Java": 22753} | package app.eluvio.wallet.network.dto.v2
import app.eluvio.wallet.network.dto.AssetLinkDto
import app.eluvio.wallet.network.dto.v2.permissions.DtoWithPermissions
import app.eluvio.wallet.network.dto.v2.permissions.PermissionsDto
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAda... | 8 | Kotlin | 1 | 0 | d9fc4a936b1b8c0186812fc75faaaf6ffbcec7f5 | 2,177 | elv-wallet-android | MIT License |
nav/safeargs/tests/common/src/com/android/tools/idea/nav/safeargs/psi/java/LightArgsAndBuilderClassInferredTypeTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 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 app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 9,908 | android | Apache License 2.0 |
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/ReactHitSlopView.kt | react-native-tvos | 177,633,560 | false | {"C++": 4398815, "Java": 2649623, "JavaScript": 2551815, "Objective-C++": 1803949, "Kotlin": 1628327, "Objective-C": 1421207, "Ruby": 453872, "CMake": 109113, "TypeScript": 85912, "Shell": 58251, "C": 57980, "Assembly": 14920, "HTML": 1473, "Swift": 739} | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.touch
import android.graphics.Rect
/**
* This interface should be implemented by all [View] subclas... | 7 | C++ | 147 | 942 | 692bc66a98c8928c950bece9a22d04c13f0c579d | 464 | react-native-tvos | MIT License |
play-services-maps/core/mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/AbstractGoogleMap.kt | kazimmt | 645,813,057 | false | null | package org.microg.gms.maps.mapbox
import android.content.Context
import android.location.Location
import android.os.Bundle
import android.util.DisplayMetrics
import android.util.Log
import com.google.android.gms.dynamic.IObjectWrapper
import com.google.android.gms.dynamic.ObjectWrapper
import com.google.android.gms.m... | 990 | null | 1707 | 96 | 30e774b23b845d20eb82f8a611345cf32fdc991e | 6,132 | mMicroG | Apache License 2.0 |
app/src/main/java/com/abidria/presentation/scene/show/SceneDetailView.kt | jordifierro | 98,501,336 | false | null | package com.abidria.presentation.scene.show
import com.abidria.data.scene.Scene
interface SceneDetailView {
fun showScene(scene: Scene)
fun navigateToEditScene(sceneId: String, experienceId: String)
}
| 0 | null | 1 | 2 | f6ec0112c4a555232c8544e4f380dd733dddb286 | 212 | abidria-android | Apache License 2.0 |
populator/coroutine-source-cache/src/main/java/com/cube/fusion/populator/coroutinesourcecache/cache/LruDataCache.kt | 3sidedcube | 465,637,089 | false | {"Kotlin": 145310} | package com.cube.fusion.populator.coroutinesourcecache.cache
import android.util.LruCache
/**
* [FusionDataCache] implementation utilising Android [LruCache] to store pages in memory with a maximum size
*
* Created by <NAME> on 10/March/2022.
* Copyright ® 3SidedCube. All rights reserved.
*
* @param cache the L... | 0 | Kotlin | 0 | 0 | 8b12af27a4a6bb5641c744681989bc0f06dc60c9 | 840 | Android-Fusion-Core | MIT License |
src/main/kotlin/com/ridi/books/helper/view/BindingAdapters.kt | ridi | 70,668,180 | false | {"Java Properties": 2, "Gradle": 1, "Proguard": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Markdown": 1, "Kotlin": 27, "XML": 1, "Java": 2, "YAML": 1} | package com.ridi.books.helper.view
import android.graphics.drawable.GradientDrawable
import android.view.View
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.annotation.Px
import androidx.databinding.BindingAdapter
import com.ridi.books.helper.text.makeSpannedFromHtml
class BindingA... | 0 | Kotlin | 0 | 3 | 8a72a827a5ad747c7194836dbf3fbae1327e189b | 1,621 | rbhelper-android | MIT License |
examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/Dependencies.kt | JetBrains | 293,498,508 | false | null | package example.imageviewer
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.snapshots.SnapshotStateList
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.ImageBitmap
import example.imageviewer.filter.PlatformContext
import example.imageviewe... | 64 | null | 1174 | 16,150 | 7e9832f6494edf3e7967082c11417e78cfd1d9d0 | 5,043 | compose-multiplatform | Apache License 2.0 |
app/src/main/java/dev/teogor/ceres/presentation/feature/home/HomeFragment.kt | teogor | 555,090,893 | false | null | /*
* Copyright 2022 teogor (<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 applica... | 6 | Kotlin | 3 | 22 | dd556d2f43fa8b0fd44edf9d091d8059a9c8caac | 1,261 | ceres | Apache License 2.0 |
philarios-structurizr/src/main/kotlin/io/philarios/structurizr/sugar/PersonBuilder.kt | taxpon | 180,252,847 | true | {"Kotlin": 666395, "Ruby": 7769, "Shell": 1002, "HTML": 398} | package io.philarios.structurizr.sugar
import io.philarios.structurizr.Location
import io.philarios.structurizr.PersonBuilder
import io.philarios.structurizr.RelationshipBuilder
fun <C, T : Any> PersonBuilder<C>.id(id: T) {
id(id.hierarchicalId())
}
fun <C, T : Any> PersonBuilder<C>.relationship(destinationId: T... | 0 | Kotlin | 0 | 0 | ea311f14fe3e62ea5f2b76f13bafe76ac5dfe073 | 601 | philarios | MIT License |
app/src/main/kotlin/de/marionoll/wgautoconnect/service/NetworkMonitorService.kt | MarioNoll | 749,964,440 | false | {"Kotlin": 81070} | package de.marionoll.wgautoconnect.service
import android.Manifest
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.conten... | 1 | Kotlin | 1 | 4 | 71dd60d9e99bdc6ebaacd3499622fbbab5508c69 | 8,519 | WG-Auto-Connect | MIT License |
app/src/main/java/org/mightyfrog/android/s4fd/details/tabcontents/attributes/AttributesAdapter.kt | dena-appleseed | 85,302,865 | true | {"Kotlin": 121067, "Java": 54160} | package org.mightyfrog.android.s4fd.details.tabcontents.attributes
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.raizlabs.android.dbflow.sql.language.Select
import org.mightyfrog.android.... | 0 | Kotlin | 0 | 0 | 99527af4124c33e3599160e5311da6dc9e32ad60 | 2,535 | S4FD | Apache License 2.0 |
common/src/main/java/jp/co/soramitsu/common/domain/GetEducationalStoriesUseCase.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5206254, "Java": 18796} | package jp.co.soramitsu.common.domain
import jp.co.soramitsu.common.data.OnboardingStoriesDataSource
class GetEducationalStoriesUseCase(private val storiesDataSource: OnboardingStoriesDataSource) {
operator fun invoke() = storiesDataSource.stories
}
| 11 | Kotlin | 27 | 83 | 0ff0b5dd515b72316dbe7c995a33459d7a4160b9 | 256 | fearless-Android | Apache License 2.0 |
mediator/src/test/kotlin/no/nav/dagpenger/saksbehandling/saksbehandler/SaksbehandlerOppslagImplTest.kt | navikt | 571,475,339 | false | {"Kotlin": 420779, "PLpgSQL": 7983, "Mustache": 4238, "HTML": 699, "Dockerfile": 77} | package no.nav.dagpenger.saksbehandling.saksbehandler
import io.kotest.matchers.shouldBe
import io.ktor.client.engine.mock.MockEngine
import io.ktor.client.engine.mock.respond
import io.ktor.client.engine.mock.respondError
import io.ktor.http.ContentType
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpStatusCo... | 1 | Kotlin | 0 | 0 | acd8745348d9187b179e0c1f11f4730c0feba5f0 | 3,828 | dp-saksbehandling | MIT License |
repo/gradle-build-conventions/asm-deprecating-transformer/src/main/kotlin/org/jetbrains/kotlin/build/asm/AsmDeprecationExtension.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2024 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.build.asm
import com.github.difflib.DiffUtils
import com.github.difflib.UnifiedD... | 184 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 7,593 | kotlin | Apache License 2.0 |
app/src/main/java/com/utsman/osmapp/MainActivity.kt | utsmannn | 631,322,826 | false | null | package com.utsman.osmapp
import android.graphics.drawable.Drawable
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layo... | 1 | Kotlin | 2 | 6 | 8513df0e09c2e5f13e17e15ce9581446ff3025de | 10,105 | osm-android-compose | Apache License 2.0 |
app/src/main/java/com/example/mytunes/model/MusicData.kt | MinusMallard | 780,522,151 | false | {"Kotlin": 176701} | package com.example.mytunes.model
import com.google.gson.annotations.SerializedName
data class MusicData(
@SerializedName("success") val success: Boolean,
@SerializedName("data") val data: MusicDataDetails
)
data class MusicDataDetails(
@SerializedName("id") val id: String?,
@SerializedName("name") v... | 0 | Kotlin | 0 | 1 | 90cae21311d20c53de1fb80c6a5a7685bbedf9f6 | 1,248 | My-Tunes | MIT License |
rubik/rubik_plugins/src/main/java/com/rubik/plugins/RubikPlugin.kt | baidu | 504,447,693 | false | {"Kotlin": 607049, "Java": 37304} | /**
* Copyright (C) Baidu 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 applica... | 1 | Kotlin | 7 | 153 | 065ba8f4652b39ff558a5e3f18b9893e2cf9bd25 | 1,378 | Rubik | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/assessrisksandneeds/services/AssessmentOffenceServiceTest.kt | ministryofjustice | 373,137,019 | false | {"Kotlin": 311917, "Dockerfile": 1027} | package uk.gov.justice.digital.hmpps.assessrisksandneeds.services
import io.mockk.every
import io.mockk.junit5.MockKExtension
import io.mockk.mockk
import io.mockk.mockkStatic
import io.mockk.verify
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.T... | 5 | Kotlin | 0 | 0 | f7ce36f529e0d66528f08b3d9bf2c036ca390104 | 11,509 | hmpps-assess-risks-and-needs | MIT License |
Application/src/os/default/kotlin/net/milosvasic/factory/mail/application/OSInit.kt | Server-Factory | 325,304,402 | true | {"Kotlin": 6435, "Shell": 198} | package net.milosvasic.factory.mail.application
import net.milosvasic.factory.log
import net.milosvasic.factory.web_service.application.BuildInfo
object OSInit : Runnable {
override fun run() = log.v("Starting: ${BuildInfo.versionName}, ${BuildInfo.version}")
} | 0 | Kotlin | 0 | 2 | 4b53b63247af11c96cabe4b8f169257855cfa832 | 268 | Web-Service-Factory | Apache License 2.0 |
android/src/main/java/com/theoplayer/source/SourceAdapter.kt | THEOplayer | 500,366,784 | false | {"TypeScript": 287744, "Swift": 285892, "Kotlin": 210202, "CSS": 168106, "Objective-C": 14818, "JavaScript": 8487, "Ruby": 4706, "HTML": 851, "Shell": 613, "Starlark": 602, "C": 208} | package com.theoplayer.source
import android.text.TextUtils
import android.util.Log
import com.facebook.react.bridge.Arguments
import com.google.gson.Gson
import com.theoplayer.android.api.error.THEOplayerException
import com.facebook.react.bridge.ReadableMap
import com.facebook.react.bridge.WritableArray
import com.f... | 9 | TypeScript | 20 | 55 | f29a525a0c2ebb6f33ed8540f80024999e7672dc | 14,821 | react-native-theoplayer | MIT License |
idea/tests/testData/inspectionsLocal/complexRedundantLet/letNoSafeCall.kt | JetBrains | 278,369,660 | false | null | // PROBLEM: none
// WITH_RUNTIME
fun foo() {
val foo: String = ""
foo.let<caret> {
it.length
}
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 118 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/app/moodtrack_android/di/DatabaseModule.kt | martinheitmann | 431,879,047 | false | {"Kotlin": 272822} | package com.app.moodtrack_android.di
import android.content.Context
import androidx.room.Room
import com.app.moodtrack_android.database.AppDatabase
import com.app.moodtrack_android.database.dao.FileDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.Applic... | 0 | Kotlin | 1 | 0 | 9b774c65c5e99e646c50370f17d97575b07ac46b | 893 | moodtrack-android | MIT License |
turtle/src/test/kotlin/com/lordcodes/turtle/ShellRunExceptionTest.kt | lordcodes | 202,986,234 | false | null | package com.lordcodes.turtle
import com.google.common.truth.Truth.assertThat
import org.junit.jupiter.api.Test
internal class ShellRunExceptionTest {
@Test
fun message() {
val message = ShellRunException(1, "unexpected input").message
assertThat(message).isEqualTo("Running shell command faile... | 4 | Kotlin | 3 | 94 | 39e1bd599be780f30b39cea15657756881e077b2 | 374 | turtle | Apache License 2.0 |
app/src/main/java/com/justwayward/reader/manager/SettingManager.kt | petma | 198,171,907 | true | {"Kotlin": 1560776, "Java": 34640, "JavaScript": 31488, "HTML": 5286, "CSS": 4040} | /**
* Copyright 2016 JustWayward Team
*
*
* 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... | 0 | Kotlin | 0 | 0 | d011466692aae7c583ab8a264f760f7ff7d17458 | 6,550 | BookReader-1 | Apache License 2.0 |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/uicomponents/channels/viewmodels/ChannelsViewModel.kt | sceyt | 549,073,085 | false | {"Kotlin": 2675924, "Java": 107920} | package com.sceyt.chatuikit.presentation.uicomponents.channels.viewmodels
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.sceyt.chat.models.user.User
import com.sceyt.chatuikit.data.models.LoadKeyData
import com.sceyt.chatuikit.data.models.PaginationResponse
import com.sce... | 0 | Kotlin | 1 | 2 | ce9c1b95555fadaafcd11f0d073fcdb07ca49600 | 9,113 | sceyt-chat-android-uikit | MIT License |
module-common/src/main/kotlin/io/klaytn/finder/infra/utils/ValidatorUtils.kt | klaytn | 678,353,482 | false | {"Kotlin": 1783784, "Solidity": 71874, "Shell": 4003} | package io.klaytn.finder.infra.utils
class ValidatorUtils {
companion object {
private val emailRegEx = Regex("^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+$")
fun isValidEmail(email: String): Boolean {
return emailRegEx.matches(email)
}
fun isValidWebSiteAddress(we... | 7 | Kotlin | 0 | 0 | 19229490436cf5c0096f25310959286645dc3914 | 428 | finder-api | MIT License |
examples/kotlin-spring-kafka-consumer/src/main/kotlin/no/njm/WorkshopMessageListener.kt | njmittet | 468,862,154 | false | null | package no.njm
import org.apache.kafka.clients.consumer.ConsumerRecord
import org.springframework.kafka.annotation.KafkaListener
import org.springframework.kafka.support.Acknowledgment
import org.springframework.stereotype.Component
@Component
class WorkshopMessageListener {
private val log = getLogger()
@K... | 0 | null | 2 | 1 | cccc4c88b43f841a16f747b164c6fd5795c7fe51 | 2,002 | kafka-workshop | MIT License |
src/test/kotlin/io/github/michaelliv/lucene4k/QueryBuilderKtTest.kt | Michaelliv | 484,571,545 | false | {"Kotlin": 22378} | package io.github.michaelliv.lucene4k
import io.kotest.core.spec.style.ShouldSpec
import io.kotest.matchers.collections.shouldHaveSize
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.shouldBeTypeOf
import org.apache.lucene.index.Term
import org.apache.lucene.search.BooleanClause
import org.apache.lu... | 0 | Kotlin | 0 | 0 | 6e4ec1edf1a096431a0af203d02f9d61b41b743c | 3,206 | lucene4k | MIT License |
src/main/kotlin/rchabot/model/Tournament.kt | RomainChabot | 401,110,284 | false | null | package rchabot.model
import org.bson.types.ObjectId
import rchabot.common.annotation.Default
data class Tournament @Default constructor(
val _id: ObjectId?,
val name: String,
var players: List<Player> = listOf()
) {
constructor(name: String) : this(_id = null, name = name)
}
| 0 | Kotlin | 0 | 0 | fb7c3847b6eec77ff9f8e038128438175000b0aa | 295 | tournament | MIT License |
app/src/main/java/edu/rosehulman/condrak/roseschedule/RightNowFragment.kt | keith-cr | 164,172,313 | false | null | package edu.rosehulman.condrak.roseschedule
import android.os.Bundle
import android.os.Handler
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.fragment_right_now.view.*
import org.joda.time.LocalTime... | 0 | Kotlin | 0 | 0 | 1c371a063edb6ba014bc34e7195ee5d5aae7b10d | 4,439 | rose-schedule | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsmanageadjudicationsapi/utils/MigrationEntityBuilder.kt | ministryofjustice | 416,301,250 | false | {"Kotlin": 1591749, "Dockerfile": 1411} | package uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.utils
import uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.dtos.AdjudicationMigrateDto
import uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.dtos.DisIssued
import uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.dtos.MigrateD... | 6 | Kotlin | 0 | 3 | cd206a32c034551b38ba7b9a21e28711a9124127 | 5,875 | hmpps-manage-adjudications-api | MIT License |
kotlin-node/src/jsMain/generated/node/vm/MemoryMeasurementTotal.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package node.vm
sealed external interface MemoryMeasurementTotal {
var jsMemoryEstimate: Double
var jsMemoryRange: js.array.JsTuple2<Double, Double>
}
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 214 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/example/trendingtimes/ui/activity/ReadNewsActivity.kt | adityarai004 | 671,452,116 | false | {"Kotlin": 142912} | package com.example.trendingtimes.ui.activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebView
import androidx.appcompat.widget.Toolbar
import com.example.trendingtimes.R
class ReadNewsActivity : AppCompatActivity() {
companion object {
const val EXTRA... | 0 | Kotlin | 0 | 1 | 90b2b3f7330fd5368739d55c049760fdfeb4c76b | 1,013 | TrendingTimes | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.