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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
backend/geometric.figure/src/main/kotlin/com/restful/geometric/figure/entity/Cube.kt | viniciusdsandrade | 801,693,852 | false | {"Kotlin": 25288, "TypeScript": 14648, "JavaScript": 5725, "CSS": 4984, "HTML": 2087} | package com.restful.geometric.figure.entity
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.persistence.Column
import jakarta.persistence.DiscriminatorValue
import jakarta.persistence.Entity
@Entity(name = "Cube")
@DiscriminatorValue("cube")
@Schema(description = "Represents a cube entity.")
data cla... | 0 | Kotlin | 0 | 0 | d28f8664ecd42062b9cc9ee4dc0e8206ede7a036 | 1,427 | spring-with-kotlin-and-react | MIT License |
analyser_architecture/src/main/kotlin/org/archguard/architecture/view/module/PipesAndFilterArchitecture.kt | archguard | 460,910,110 | false | {"Kotlin": 1763628, "Java": 611399, "TypeScript": 11395, "C#": 5593, "Dockerfile": 2549, "C": 1223, "Shell": 926, "JavaScript": 400, "Go": 291, "Scala": 97, "Python": 42, "Rust": 32} | package org.archguard.architecture.view.module
import org.archguard.architecture.detect.PotentialExecArch
import org.archguard.architecture.view.module.pipesandfilters.Filter
import org.archguard.architecture.view.module.pipesandfilters.Pipe
import org.archguard.architecture.view.module.shared.Dependency
class PipesA... | 1 | Kotlin | 89 | 575 | 049f3cc8f2c0e2c34e65bb0049f645caa5be9bf8 | 600 | archguard | MIT License |
sqlite-open-helper/src/jvmAndAndroid/kotlin/internal/platform/SystemExt.jvmAndAndroid.kt | illarionov | 769,429,996 | false | null | /*
* Copyright 2024, the wasm-sqlite-open-helper 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.
* SPDX-License-Identifier: Apache-2.0
*/
package ru.pixnews.wasm.sqlite.open.helper.inte... | 1 | null | 1 | 3 | a108f071520ab5e20fad01cb3b9a6e91549914dd | 531 | wasm-sqlite-open-helper | Apache License 2.0 |
app/src/main/java/com/santansarah/blescanner/utils/BleConstants.kt | santansarah | 588,753,371 | false | null | package com.santansarah.blescanner.utils
import timber.log.Timber
const val UUID_DEFAULT = "-0000-1000-8000-00805F9B34FB"
sealed class ParsableCharacteristic(val uuid: String) {
object Appearance: ParsableCharacteristic("00002A01$UUID_DEFAULT".lowercase()) {
fun getCategories(bytes: ByteArray): String ... | 0 | Kotlin | 0 | 2 | ade3a414b342b3018d3e304088bff30ff0d48746 | 695 | ble-scanner | MIT License |
simple-github/src/main/kotlin/com/androidhuman/example/simplegithub/di/module/DatabaseModule.kt | eunmindev | 140,866,128 | true | {"Kotlin": 50382} | package com.androidhuman.example.simplegithub.di.module
import android.arch.persistence.room.Room
import android.content.Context
import com.androidhuman.example.simplegithub.data.local.SearchHistoryDao
import com.androidhuman.example.simplegithub.data.local.SimpleGithubDatabase
import dagger.Module
import dagger.Provi... | 0 | Kotlin | 0 | 0 | 8efb23740dbf3ec592bb7afafdfcffeb0cafb984 | 815 | Week2-Project | Apache License 2.0 |
point/src/main/kotlin/ru/kyamshanov/mission/point/network/dtos/LabelDto.kt | KYamshanov | 672,550,797 | false | {"Kotlin": 148114, "Java": 32298, "CSS": 7503, "FreeMarker": 1980, "Dockerfile": 1201, "Shell": 1160} | package ru.kyamshanov.mission.point.network.dtos
data class LabelRsDto(
val items: List<LabelDto>
)
data class LabelDto(
val id: String,
val title: String,
val color: Long,
)
| 6 | Kotlin | 0 | 0 | 77522c1094d36f9bdb92bca3dfc0b30e21ddf3d8 | 193 | Mission-backend | Apache License 2.0 |
point/src/main/kotlin/ru/kyamshanov/mission/point/network/dtos/LabelDto.kt | KYamshanov | 672,550,797 | false | {"Kotlin": 148114, "Java": 32298, "CSS": 7503, "FreeMarker": 1980, "Dockerfile": 1201, "Shell": 1160} | package ru.kyamshanov.mission.point.network.dtos
data class LabelRsDto(
val items: List<LabelDto>
)
data class LabelDto(
val id: String,
val title: String,
val color: Long,
)
| 6 | Kotlin | 0 | 0 | 77522c1094d36f9bdb92bca3dfc0b30e21ddf3d8 | 193 | Mission-backend | Apache License 2.0 |
src/commonMain/kotlin/com/fgrutsch/compose/ViewModel.kt | fgrutsch | 697,150,309 | false | {"Kotlin": 58319, "HTML": 328} | package com.fgrutsch.compose
interface ViewModel {
val title: String
val description: String
val route: Route
}
| 0 | Kotlin | 0 | 2 | f2584c807e362fb2c3faad74e623ced568738a87 | 125 | kotlin-compose-for-web | Apache License 2.0 |
app/src/main/java/com/insiderser/android/calculator/domain/ObservableUseCase.kt | insiderser | 239,313,612 | false | null | /*
* Copyright 2020 Oleksandr Bezushko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publ... | 0 | Kotlin | 0 | 0 | 68596a7c0f2b6b0ba40da24736e623ee94acb210 | 2,822 | calculator | MIT License |
src/nativeGen/kotlin/godot/VisualShaderNodeTransformConstant.kt | piiertho | 237,614,467 | true | {"Kotlin": 5300589} | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import godot.core.Godot
import godot.core.Transform
import godot.core.Variant
import godot.core.VariantArray
import kotlin.Unit
import kotlin.reflect.KCallable
import kotlinx.cinterop.CFunction
import kotlinx.cinterop.... | 0 | null | 0 | 1 | 3a8c598040f9b47b2b8cf8f5432543f61d6f83e8 | 2,522 | godot-kotlin | MIT License |
app/src/main/java/sancho/gnarlymusicplayer/PlaybackQueue.kt | h67ma | 183,931,354 | false | null | @file:Suppress("ConvertTwoComparisonsToRangeCheck") // just let me focus on the logic
package sancho.gnarlymusicplayer
import sancho.gnarlymusicplayer.models.QueueItem
import java.io.File
import java.util.Collections
object PlaybackQueue
{
var queue = mutableListOf<QueueItem>()
var currentIdx: Int = 0
var autoCl... | 0 | Kotlin | 1 | 4 | 4d868ee3221a4908c0f5932296f6abc3a91a0e3d | 4,566 | GnarlyMusicPlayer | MIT License |
src/main/kotlin/g2501_2600/s2582_pass_the_pillow/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g2501_2600.s2582_pass_the_pillow
// #Easy #Math #Simulation #2023_07_11_Time_122_ms_(85.71%)_Space_32.3_MB_(100.00%)
@Suppress("NAME_SHADOWING")
class Solution {
fun passThePillow(n: Int, time: Int): Int {
var time = time
time %= ((n - 1) * 2)
return n - kotlin.math.abs(n - 1 - tim... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 331 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/com/example/visuallithuanian/adapter/FlashcardsMediumAdapter.kt | klaus19 | 541,931,828 | false | {"Kotlin": 802605} | package com.example.visuallithuanian.adapter
import android.annotation.SuppressLint
import android.content.Context
import android.content.SharedPreferences
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import and... | 10 | Kotlin | 5 | 9 | c8fc72a51bbbb8bf0b92a1f2c851cc4966029bdc | 20,459 | Labas | Apache License 2.0 |
src/main/kotlin/com/cpiassistant/actions/AddTenant.kt | andrzejhalicki | 842,165,993 | false | {"Kotlin": 68771} | package com.cpiassistant.actions
import AddTenantDialog
import TenantInfo
import TenantStateComponent
import com.cpiassistant.nodes.Tenant
import com.cpiassistant.services.CpiService
import com.cpiassistant.services.TreeService
import com.intellij.notification.Notification
import com.intellij.notification.Notification... | 1 | Kotlin | 0 | 3 | 36a93fc109bca48a84260d2970769216b7d4b658 | 3,990 | intellij-cpi-assistant | MIT License |
2023/src/test/kotlin/Day10Test.kt | dlew | 498,498,097 | false | {"Kotlin": 273159, "TypeScript": 60083, "JavaScript": 262} | import org.junit.jupiter.api.Test
import utils.getResourceAsString
import kotlin.test.assertEquals
class Day10Test {
@Test
fun part1_sample1() {
assertEquals(4, Day10.part1(getResourceAsString("day10-sample1.txt")))
}
@Test
fun part1_sample2() {
assertEquals(8, Day10.part1(getResourceAsString("day10... | 0 | Kotlin | 0 | 0 | bb7494aa33da1d63de8c382e858fee51e609b703 | 988 | advent-of-code | MIT License |
app/src/main/java/com/vmenon/mpo/di/DaggerComponentProviders.kt | hitoshura25 | 91,402,384 | false | null | package com.vmenon.mpo.di
import android.app.Application
import android.util.Log
import com.vmenon.mpo.BuildConfig
import com.vmenon.mpo.R
import com.vmenon.mpo.auth.framework.di.dagger.BiometricsComponent
import com.vmenon.mpo.auth.framework.di.dagger.DaggerAuthComponent
import com.vmenon.mpo.auth.framework.di.dagger... | 15 | Kotlin | 0 | 1 | ed1c5d36fcb6d3bc7c1b39d46bc3384634fc86ef | 2,613 | Media-Player-Omega-Android | Apache License 2.0 |
src/main/kotlin/de/paulweber/plugins/StatusPages.kt | pumapaul | 456,547,231 | false | {"Kotlin": 33998} | package de.paulweber.plugins
import io.ktor.application.*
import io.ktor.features.*
import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.response.*
fun Application.configureStatusPages() {
install(StatusPages) {
status(HttpStatusCode.NotFound) {
call.respond(TextContent("${it.va... | 0 | Kotlin | 0 | 0 | 2aa21af57a95cd3d77e53b5eb6d05f498571dd8d | 530 | spenderino-backend | MIT No Attribution |
src/main/kotlin/com/oxyggen/c4k/qa/QueueAnalyzer.kt | oxgl | 182,864,291 | false | null | package com.oxyggen.c4k.qa
import com.oxyggen.c4k.config.Config
import com.oxyggen.c4k.event.EngineEvent
import com.oxyggen.c4k.event.QueueEvent
import com.oxyggen.c4k.store.TargetMemoryStore
import com.oxyggen.c4k.persistency.Target
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.Channel
import kotlinx... | 0 | Kotlin | 0 | 0 | 27d54a4de7c4f53c760b82b20965da8996028ae0 | 4,619 | c4k | MIT License |
app/src/main/java/dog/snow/androidrecruittest/ui/splash/SplashViewModel.kt | grandefirano | 291,034,967 | true | {"Kotlin": 41237} | package dog.snow.androidrecruittest.ui.splash
import android.util.Log
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import dog.snow.androidrecruittest.ui.shared.Event
import dog.snow.androidrecruittest.repository.CacheUpdateResult
import dog.snow.androidrecruittest.repository.Repository
im... | 0 | Kotlin | 0 | 0 | 65a5fb4152020d7fe68ef43379857c0e84dbdfe7 | 2,169 | android-recruitment-test | Apache License 2.0 |
android/src/main/java/com/alpha0010/pdf/PdfUtilModule.kt | khanhduong1303 | 415,558,116 | false | null | package com.alpha0010.pdf
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.pdf.PdfRenderer
import android.os.ParcelFileDescriptor
import android.util.Base64
import com.facebook.react.bridge.*
import java.io.*
import java.util.concurrent.locks.Lock
impo... | 0 | Kotlin | 0 | 0 | 0cae2d13f6939562f186f40a3f491135ac974e31 | 4,706 | react-native-pdf-page-viewer | MIT License |
agora.core/src/commonMain/kotlin/org/agorahq/agora/core/api/data/Resource.kt | agorahq | 228,175,670 | false | null | package org.agorahq.agora.core.api.data
import com.soywiz.klock.DateTime
import org.agorahq.agora.core.api.security.User
/**
* A [Resource] is an [Entity] which has textual [content] and an [owner]
* with some additional metadata. [Page]s and [PageElement]s are common
* [Resource] types.
*/
interface Resource : E... | 28 | Kotlin | 0 | 0 | a7aeabc25d31e11090f37733de2b8ec138d1de3b | 515 | agora | Apache License 2.0 |
app/src/main/java/com/wordpress/anujsaxenadev/googlemaps/features/map/webview_interceptor/StreamInterruptionListener.kt | anujsaxenadev | 715,621,535 | false | {"Kotlin": 69508, "HTML": 450, "JavaScript": 225, "CSS": 90} | package com.wordpress.anujsaxenadev.googlemaps.features.map.webview_interceptor
import android.webkit.WebResourceRequest
import android.webkit.WebResourceResponse
interface StreamInterruptionListener{
suspend fun callNetworkAndGetData(request: WebResourceRequest, requestIdentifier: String): Result<WebResourceResp... | 0 | Kotlin | 0 | 0 | 9e29a36b511cf49dcf73b4bba9ab2f916044f6cb | 362 | GoogleMaps | MIT License |
app/src/main/java/com/maltebucksch/androiddatabindingmvvm/list/ListActivity.kt | maltebucksch | 104,355,778 | false | null | package com.maltebucksch.androiddatabindingmvvm.list
import android.os.Bundle
import com.maltebucksch.androiddatabindingmvvm.R
import com.maltebucksch.androiddatabindingmvvm.base.BaseActivity
class ListActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedIn... | 0 | Kotlin | 0 | 1 | 381a577ac6dfef471a7dcd1f687cca1f5c261c95 | 530 | android-databinding-mvvm | Apache License 2.0 |
buildSrc/src/main/java/Versions.kt | tillhub | 564,204,500 | false | null | object Versions {
object Plugins {
const val DETEKT = "1.18.1"
}
object Tools {
const val TIMBER = "5.0.1"
}
object Kotlin {
const val COROUTINES = "1.6.0"
}
object AndroidX {
const val CORE_KTX = "1.7.0"
}
object Google {
const val ZXING ... | 0 | Kotlin | 0 | 0 | d8f64f2e2dd006b20998220b01b031755294915f | 718 | print-engine | Apache License 2.0 |
kmath-functions/src/commonMain/kotlin/space/kscience/kmath/integration/MultivariateIntegrand.kt | SciProgCentre | 129,486,382 | false | null | /*
* Copyright 2018-2021 KMath 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 space.kscience.kmath.integration
import space.kscience.kmath.linear.Point
import space.kscience.kmath.misc.FeatureSet
public class Multivariate... | 91 | null | 52 | 600 | 83d9e1f0afb3024101a2f90a99b54f2a8b6e4212 | 968 | kmath | Apache License 2.0 |
ChattingApp/app/src/main/java/com/example/chattingapp/ChatViewActivity.kt | DevendraShendkar | 832,998,785 | false | {"Kotlin": 307947} | package com.example.chattingapp
import android.annotation.SuppressLint
import android.app.Dialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.uti... | 0 | Kotlin | 0 | 3 | f3b0067d01476a21d047caad75256e7cc58ec280 | 14,282 | Chatting-App | Apache License 2.0 |
src/main/kotlin/no/skatteetaten/aurora/gobo/graphql/scalars/UrlScalar.kt | Skatteetaten | 135,263,220 | false | {"Kotlin": 729888, "HTML": 1433, "Shell": 426} | package no.skatteetaten.aurora.gobo.graphql.scalars
import graphql.language.StringValue
import graphql.schema.Coercing
import graphql.schema.CoercingParseValueException
import graphql.schema.CoercingSerializeException
import java.net.MalformedURLException
import java.net.URL
object UrlScalar : Coercing<URL, String> {... | 0 | Kotlin | 0 | 3 | 9a28e1d711756479696672f139568fdeadb74ac1 | 835 | gobo | Apache License 2.0 |
domain/src/test/java/com/iuturakulov/domain/usecases/ChatUseCaseTest.kt | IslombekTurakulov | 486,182,592 | false | null | package com.iuturakulov.domain.usecases
import com.iuturakulov.domain.entities.ChatEntity
import com.iuturakulov.domain.entities.Message
import com.iuturakulov.domain.entities.UserEntity
import com.iuturakulov.domain.repositories.ChatRepository
import kotlinx.coroutines.runBlocking
import org.junit.Test
import org.jun... | 0 | Kotlin | 0 | 1 | 83e7e14e596552b34f02598b1434951d54153fe5 | 3,636 | HSEApple | MIT License |
Utils/src/main/java/com/el3asas/utils/utils/customToast.kt | AhmedSheref96 | 472,786,377 | false | null | package com.el3asas.utils.utils
import android.content.Context
import android.graphics.Color
import android.view.Gravity
import android.widget.TextView
import android.widget.Toast
import androidx.core.content.ContextCompat
import com.el3asas.utils.R
fun showToast(
context: Context,
stringId: Int,
iconId: ... | 0 | Kotlin | 0 | 0 | ba820a48b1f33e5192d2018d9d9963b6e19640c7 | 848 | My-Utils | Apache License 2.0 |
app/src/main/java/com/congnt/retrofitkotlindeferred/service/PlaceholderApi.kt | cong91 | 167,219,764 | false | null | package com.congnt.retrofitkotlindeferred.service
import com.congnt.retrofitkotlindeferred.data.PlaceholderPhotos
import com.congnt.retrofitkotlindeferred.data.PlaceholderPosts
import com.congnt.retrofitkotlindeferred.data.PlaceholderUsers
import kotlinx.coroutines.Deferred
import retrofit2.Response
import retrofit2.h... | 0 | Kotlin | 0 | 0 | 5944d468bd3ef0a3cdfde4fecfe313821f9f8057 | 612 | retrofitkotlindeferredtype | MIT License |
ui/src/test/kotlin/org/wcl/mfn/ui/integration/uielements/pageobjectmodel/ContractControllerPageModel.kt | warnettconsultingltd | 809,363,042 | false | {"Kotlin": 57760, "HTML": 6681, "CSS": 4145} | package org.wcl.mfn.ui.integration.uielements.pageobjectmodel
import org.openqa.selenium.*
import org.wcl.mfn.config.ui.common.NavigationBarConfig
import org.wcl.mfn.config.ui.tools.ContractCalculatorConfig
class ContractControllerPageModel(
private val driver: WebDriver,
private val navigationBarConfig: Navi... | 0 | Kotlin | 0 | 0 | 736f94fe30c021bd8579d09646e92b46265c8884 | 4,711 | wcl-mfn-manager | Apache License 2.0 |
data/RF03451/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF03451"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
4 to 9... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 2,520 | Rfam-for-RNArtist | MIT License |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/AdsClick.kt | karakum-team | 387,062,541 | false | {"Kotlin": 2961484, "TypeScript": 2249, "JavaScript": 1167, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/AdsClick")
package mui.icons.material
@JsName("default")
external val AdsClick: SvgIconComponent
| 0 | Kotlin | 5 | 35 | d12f6b1ad1b215ad7d3d9f27e24d48ada9b7fe2d | 180 | mui-kotlin | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/s3/OnCloudTrailBucketEventOptionsDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.s3
import cloudshift.awscdk.common.CdkDslMarker
import cloudsh... | 4 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 4,174 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/example/ageinminutes/MainActivity.kt | arunrr | 685,020,057 | false | null | package com.example.ageinminutes
import android.app.DatePickerDialog
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.TextView
import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Date
import jav... | 0 | Kotlin | 0 | 0 | 3039ea2a32e81eb6655698a977dd97c178d10723 | 2,559 | AgeInMinutes | MIT License |
src/main/kotlin/io/github/uinnn/interfaces/interfaces/Acessible.kt | uinnn | 389,811,015 | false | null | package io.github.uinnn.interfaces.interfaces
import io.github.uinnn.interfaces.GraphicalInterface
import io.github.uinnn.interfaces.common.Action
import org.bukkit.entity.Player
typealias AccessAction = Action<GraphicalInterface>
typealias AccessSet = HashSet<AccessAction>
/**
* Represents a accessible object for ... | 0 | Kotlin | 0 | 2 | 454dc86587fe251aa4ab1191cd0d1a52346b1b0b | 1,213 | interface-framework | MIT License |
core/src/main/kotlin/net/kotlinx/validation/konform/KonformValidationSupport.kt | mypojo | 565,799,715 | false | {"Kotlin": 1495826, "Jupyter Notebook": 13540, "Java": 9531} | package net.kotlinx.validation.konform
import io.konform.validation.ValidationBuilder
import io.konform.validation.jsonschema.minLength
//==================================================== 벨리데이션 한글 메세지. 참고만 해주세요 ======================================================
fun ValidationBuilder<String>.minLengthKr(name:... | 0 | Kotlin | 0 | 1 | 1b361a5ae8aae718f0e81768452e6803c0990e71 | 423 | kx_kotlin_support | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/fragment/SubmissionIntroFragment.kt | CoraLibre | 268,867,734 | true | null | package de.rki.coronawarnapp.ui.submission.fragment
import android.os.Bundle
import android.view.View
import android.view.accessibility.AccessibilityEvent
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.databinding.Fr... | 5 | Kotlin | 3 | 36 | 8e3d915aa194cae0645ff668cca2114d9bb3d7c2 | 1,582 | CoraLibre-android | Apache License 2.0 |
newsapi/src/test/java/com/dfl/newsapi/NewsApiRepositoryTest.kt | Guneetgstar | 270,092,273 | true | {"Kotlin": 17621} | package com.dfl.newsapi
import com.dfl.newsapi.builder.NewsQuery
import com.dfl.newsapi.enums.SortBy
import com.dfl.newsapi.model.ArticlesDto
import io.reactivex.Observable
import io.reactivex.schedulers.Schedulers
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.ap... | 0 | Kotlin | 0 | 0 | 03b1c5bd3cab1510c9a8df50ab87d58479ec8807 | 1,716 | News-API-Kotlin | Apache License 2.0 |
backend/src/main/kotlin/dev/kviklet/kviklet/security/LoginController.kt | kviklet | 687,049,294 | false | {"Kotlin": 261537, "TypeScript": 163731, "HTML": 2400, "Dockerfile": 1972, "JavaScript": 1930, "CSS": 593, "Shell": 25} | package dev.kviklet.kviklet.security
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.security.authenticat... | 9 | Kotlin | 12 | 99 | 79a2668fbf66f6a6984b09d5520b1b60667e73ee | 3,435 | kviklet | MIT License |
app/src/main/java/com/mohsenoid/rickandmorty/domain/characters/CharactersRepository.kt | mohsenoid | 229,392,634 | false | {"Kotlin": 124887} | package com.mohsenoid.rickandmorty.domain.characters
import com.mohsenoid.rickandmorty.domain.RepositoryGetResult
import com.mohsenoid.rickandmorty.domain.characters.model.Character
interface CharactersRepository {
suspend fun getCharacters(charactersIds: Set<Int>): RepositoryGetResult<Set<Character>>
suspen... | 0 | Kotlin | 2 | 10 | 976f04ad1587ed46e4d37af14da6a95cef5b070e | 522 | Rick-and-Morty | Apache License 2.0 |
app/src/main/java/com/rochakmasalefsm/features/meetinglist/api/MeetingRepo.kt | DebashisINT | 506,515,321 | false | {"Kotlin": 10813758, "Java": 949697} | package com.rochakmasalefsm.features.meetinglist.api
import com.rochakmasalefsm.app.Pref
import com.rochakmasalefsm.features.meetinglist.model.MeetingListResponseModel
import io.reactivex.Observable
/**
* Created by Saikat on 21-01-2020.
*/
class MeetingRepo(val apiService: MeetingApi) {
fun meetingList(): Obse... | 0 | Kotlin | 0 | 0 | 49fd7ebd90f729f14e75177da0ab68c6c129826f | 441 | RochakMasale | Apache License 2.0 |
examples/src/commonMain/kotlin/org/kobjects/parserlib/examples/expressions/ExpressionParser.kt | kobjects | 455,979,563 | false | {"Kotlin": 17076, "Ruby": 1599} | package org.kobjects.parserlib.examples.expressions
import org.kobjects.parserlib.expressionparser.ConfigurableExpressionParser
/**
* Tailored towards the BASIC interpreter
*/
object ExpressionParser : ConfigurableExpressionParser<Tokenizer, Context, Evaluable>(
{ scanner, context -> ExpressionParser.parsePrim... | 0 | Kotlin | 0 | 3 | 55990d510ef3323e1ac826b6812a26d6cd3d8149 | 3,344 | parsek | Apache License 2.0 |
src/main/kotlin/es/horm/easyadldetektplugin/stdlib/operations/rule/MayReferenceOperation.kt | Tommyten | 585,151,541 | false | null | package es.horm.easyadldetektplugin.stdlib.operations.rule
import es.horm.easyadldetektplugin.mermaid.HasMermaidFlowChartRepresentation
import es.horm.easyadldetektplugin.model.ComponentArgument
import es.horm.easyadldetektplugin.model.EasyAdlComponent
import es.horm.easyadldetektplugin.model.ExecutionScope
import es.... | 0 | Kotlin | 0 | 0 | 80174f2d81ab46e96449dce8bf3a2bab6aaeb9eb | 1,225 | easyAdlDetektPlugin | Apache License 2.0 |
features/favourite/domain/src/main/java/com/hisham/bushar/favourite/domain/usecases/FetchFavouriteMoviesUseCase.kt | ghatasheh | 425,988,635 | false | {"Kotlin": 63651} | package com.hisham.bushar.favourite.domain.usecases
import com.hisham.bushar.favourite.domain.FavouriteRepository
import com.hisham.bushar.favourite.domain.state.Favourite
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class FetchFavouriteMoviesUseCase @Inject constructor(
private val favouriteRep... | 0 | Kotlin | 0 | 0 | 3d22bff2bd4744ee97009b8bc1e8e47196e42165 | 454 | bushar | Apache License 2.0 |
src/test/kotlin/com/github/mpe85/grampa/input/InputBufferTests.kt | mpe85 | 138,511,038 | false | {"Kotlin": 270203, "Java": 1073} | package com.github.mpe85.grampa.input
import com.ibm.icu.impl.StringSegment
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.StringSpec
import io.kotest.inspectors.forAll
import io.kotest.matchers.shouldBe
class InputBufferTests : StringSpec({
val buffers = listOf(
Strin... | 7 | Kotlin | 1 | 13 | 61322a954688699da72dba951d5b5310d1035931 | 2,862 | grampa | MIT License |
app/src/main/java/com/sunnyweather/android/ui/place/PlaceAdapter.kt | ronghuwz | 832,850,460 | false | {"Kotlin": 39091} | //package com.sunnyweather.android.ui.place
//
//import android.view.LayoutInflater
//import android.view.View
//import android.view.ViewGroup
//import android.widget.TextView
//import androidx.fragment.app.Fragment
//import androidx.recyclerview.widget.RecyclerView
//import com.sunnyweather.android.R
//import com.sunn... | 0 | Kotlin | 0 | 0 | d6c02b546edb07ef554b1938e3890fe68f2a75c1 | 4,618 | SunnyWeather | Apache License 2.0 |
app/src/main/java/com/example/santanderprojectdio/ui/main/viewmodel/TaskViewModel.kt | MariaLuiza-CS | 387,580,447 | false | null | package com.example.santanderprojectdio.ui.main.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.example.santanderprojectdio.data.room.TaskDatabase
import com.example.santanderprojectdio.data.model... | 0 | Kotlin | 0 | 3 | 12958cb75488b841567974b7f63e82747fc1770e | 1,339 | SantanderBootcampDio | MIT License |
src/jvmMain/kotlin/net/dinkla/raytracer/films/Film.kt | jdinkla | 38,753,756 | false | {"Kotlin": 467610, "Shell": 457} | package net.dinkla.raytracer.films
import korlibs.image.bitmap.Bitmap32
import korlibs.image.color.RGBA
import korlibs.image.format.PNG
import korlibs.image.format.writeBitmap
import korlibs.io.file.Vfs
import korlibs.io.file.VfsFile
import korlibs.io.file.std.localCurrentDirVfs
import net.dinkla.raytracer.colors.Colo... | 0 | Kotlin | 2 | 5 | 72ca9b79eb22d9e4f6b7ccfb896427966c20e934 | 941 | from-the-ground-up-ray-tracer | Apache License 2.0 |
app/src/main/java/com/nicolas/nicolsflix/models/MovieSearchList.kt | Aleixo-Dev | 335,638,746 | false | null | package com.nicolas.nicolsflix.models
import com.nicolas.nicolsflix.data.model.Movie
data class MovieSearchList(
var searchMovies: List<Movie>? = emptyList()
)
| 7 | Kotlin | 1 | 2 | 3bbcb59c04c353bc312b9410c59d3a186cc85673 | 166 | NicolsFlix | MIT License |
src/commonMain/kotlin/app/thelema/g2d/Sprite.kt | zeganstyl | 275,550,896 | false | null | /*
* Copyright 2020-2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 3 | Kotlin | 5 | 61 | 8e2943b6d2de3376ce338025b58ff31c14097caf | 7,860 | thelema-engine | Apache License 2.0 |
src/main/kotlin/in/nerd_is/wallhaven4kotlin/model/Color.kt | Loong-T | 128,535,793 | false | {"HTML": 67074, "Kotlin": 51602} | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | HTML | 0 | 0 | d3ee1a972620aaf2401e683e160d0db069252740 | 1,090 | wallhaven4kotlin | Apache License 2.0 |
app/src/main/java/io/github/fate_grand_automata/ui/main/MainActivity.kt | ArthurKun21 | 743,056,546 | false | {"Kotlin": 1232730} | package io.github.fate_grand_automata.ui.main
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.material3.windowsizeclass.calculateWin... | 17 | Kotlin | 0 | 1 | c60de700818d189b1f0904aa91c232c6bfde1ea8 | 1,906 | FGA-Preview | MIT License |
app/src/main/java/com/example/journalsapp/JournalApplication.kt | OverLordN7 | 602,915,635 | false | null | package com.example.journalsapp
import android.app.Application
import com.example.journalsapp.data.AppContainer
import com.example.journalsapp.data.DefaultAppContainer
class JournalApplication: Application() {
lateinit var container: AppContainer
override fun onCreate() {
super.onCreate()
con... | 0 | Kotlin | 0 | 0 | 8bd06dd8bd83ccda0b5fb0572abbc09c89c1200c | 358 | JournalsApp | The Unlicense |
contract/src/main/java/pt/hdn/contract/adapters/ZonedDateTimeTypeAdapter.kt | HDNAdministrator | 343,557,533 | false | null | package pt.hdn.contract.adapters
import com.google.gson.*
import java.lang.reflect.Type
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter.ISO_LOCAL_DATE_TIME
import java.time.format.DateTimeFormatterBuilder
class ZonedDateTimeTypeAdapter : JsonSerializer<ZonedDateTime>, JsonDeserializer<ZonedDa... | 0 | Kotlin | 0 | 0 | e8dbe2d6dc136683ee4aaa463a39480facdd7e76 | 1,000 | Contract-ktx | MIT License |
samples/simple-routing/src/main/java/com/badoo/ribs/samples/simplerouting/simple_routing_child2/SimpleRoutingChild2Node.kt | simona-anomis | 337,463,518 | true | {"Kotlin": 1186530} | package com.badoo.ribs.samples.simplerouting.simple_routing_child2
import com.badoo.ribs.core.Node
import com.badoo.ribs.core.modality.BuildParams
import com.badoo.ribs.core.plugin.Plugin
import com.badoo.ribs.core.view.RibView
internal class SimpleRoutingChild2Node(
buildParams: BuildParams<*>,
viewFactory: ... | 0 | null | 0 | 0 | a9d5cc6dbb9e2bf8cf9240d0e835dc43aefc5cde | 530 | RIBs | Apache License 2.0 |
app/src/main/java/com/hot/pocketdoctor/data/datasource/treatment/ReservationDataSourceImpl.kt | DSCHUFS | 449,558,792 | false | {"Kotlin": 138363} | package com.hot.pocketdoctor.data.datasource.treatment
import com.hot.pocketdoctor.data.api.TreatmentService
import com.hot.pocketdoctor.data.model.request.reservation.ReqReservationSuccessData
import com.hot.pocketdoctor.data.model.response.treatment.ResReservationSuccessData
class ReservationDataSourceImpl(val trea... | 1 | Kotlin | 1 | 2 | f1939b678d0758bab9477a24f4b5b6ebfafacd4b | 543 | Solution-Challenge-2022-Pocket-Doctor-App | MIT License |
tiny-engine/src/commonMain/kotlin/com/github/minigdx/tiny/lua/StdLib.kt | minigdx | 609,999,724 | false | null | package com.github.minigdx.tiny.lua
import com.github.mingdx.tiny.doc.TinyArg
import com.github.mingdx.tiny.doc.TinyArgs
import com.github.mingdx.tiny.doc.TinyCall
import com.github.mingdx.tiny.doc.TinyFunction
import com.github.mingdx.tiny.doc.TinyLib
import com.github.minigdx.tiny.engine.GameOptions
import com.githu... | 0 | Kotlin | 0 | 1 | 8266dcfa479d8275812c1b7e71952c8e0260ee3a | 7,932 | tiny | MIT License |
base/core_navigation/src/main/java/com/nstudiosappdev/core/navigation/features/DashboardFragment.kt | harrunisk | 231,150,453 | false | null | package com.nstudiosappdev.core.navigation.features
import androidx.fragment.app.Fragment
import com.nstudiosappdev.core.navigation.PACKAGE_NAME
import com.nstudiosappdev.core.navigation.loadFragmentOrReturnNull
object DashboardFragment : Feature<Fragment> {
private const val BIT_COIN_MARKET_PRICE_FRAGMENT =
... | 0 | Kotlin | 1 | 15 | b0059ae52e7875b78815bfe80a9384adb213846e | 500 | Games | MIT License |
defitrack-rest/defitrack-erc20/src/main/java/io/defitrack/erc20/protocolspecific/SushiswapTokenIdentifier.kt | decentri-fi | 426,174,152 | false | {"Kotlin": 1193627, "Java": 1948, "Dockerfile": 909} | package io.defitrack.erc20.protocolspecific
import io.defitrack.erc20.ERC20
import io.defitrack.erc20.LpContractReader
import io.defitrack.protocol.Protocol
import io.defitrack.token.TokenType
import org.springframework.stereotype.Component
@Component
class SushiswapTokenIdentifier : DefaultLpIdentifier(Protocol.SUSH... | 53 | Kotlin | 6 | 10 | 898a65f3ac11b69b5db3d12251df678b10f22b64 | 477 | defi-hub | MIT License |
data/src/main/java/com/keelim/cnubus/data/api/response/ErrorMessage.kt | keelim | 202,127,420 | false | null | /*
* Designed and developed by 2021 keelim (<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 l... | 6 | Kotlin | 0 | 1 | 836c7fca6793ed74249f9430c798466b1a7aaa27 | 1,111 | project_cnuBus | Apache License 2.0 |
src/main/kotlin/com/github/aszecsei/crowtech/common/materials/Material.kt | crow-maki | 730,847,703 | false | {"Kotlin": 102455} | package com.github.aszecsei.crowtech.common.materials
import com.github.aszecsei.crowtech.common.materials.properties.MaterialProperty
import com.github.aszecsei.crowtech.common.registries.MaterialRegistry
import com.github.aszecsei.crowtech.utils.Reference
import net.minecraft.resources.ResourceLocation
import java.u... | 0 | Kotlin | 0 | 0 | f80c0fab4283761835464c599dded3134b0bde7c | 1,116 | crowtech | MIT License |
P2/P2-Solutions/app/src/main/java/ir/mag/interview/note/ui/main/dialog/CreateFolderDialog.kt | ali-sedaghi | 543,013,588 | false | null | package ir.mag.interview.note.ui.main.dialog
import android.content.Context
import androidx.appcompat.app.AlertDialog
import androidx.lifecycle.LifecycleOwner
import ir.mag.interview.note.R
class CreateFolderDialog
constructor(
private val lifecycleOwner: LifecycleOwner,
val context: Context,
private val ... | 0 | Kotlin | 0 | 0 | b263a52ef170eab291f405823ae036c84d4c8347 | 1,320 | IUST-MN-Assignments | MIT License |
src/test/java/no/nav/arbeidsgiver/sykefravarsstatistikk/api/publiseringsdatoer/api/PubliseringsdatoerServiceTest.kt | navikt | 201,881,144 | false | {"Kotlin": 479663, "Java": 309808, "Shell": 1600, "Dockerfile": 213} | package no.nav.arbeidsgiver.sykefravarsstatistikk.api.publiseringsdatoer.api
import no.nav.arbeidsgiver.sykefravarsstatistikk.api.applikasjon.PubliseringsdatoerService
import no.nav.arbeidsgiver.sykefravarsstatistikk.api.applikasjon.domenemodeller.ImporttidspunktDto
import no.nav.arbeidsgiver.sykefravarsstatistikk.api... | 0 | Kotlin | 2 | 0 | f2e2935e3c91d83013de849a90408c6b698a3fc1 | 3,905 | sykefravarsstatistikk-api | MIT License |
cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/execution/operators/transform/LimitOperator.kt | vitrivr | 160,775,368 | false | {"Kotlin": 2317843, "Dockerfile": 548} | package org.vitrivr.cottontail.dbms.execution.operators.transform
import kotlinx.coroutines.flow.Flow
import org.vitrivr.cottontail.core.basics.Record
import org.vitrivr.cottontail.core.database.ColumnDef
import org.vitrivr.cottontail.dbms.execution.operators.basics.Operator
import org.vitrivr.cottontail.dbms.executio... | 16 | Kotlin | 18 | 26 | 50cc8526952f637d685da9d18f4b1630b782f1ff | 1,267 | cottontaildb | MIT License |
app/src/main/java/ru/nikstep/alarm/ui/settings/holder/Setting.kt | nikita715 | 224,504,692 | false | null | package ru.nikstep.alarm.ui.settings.holder
import androidx.viewbinding.ViewBinding
import ru.nikstep.alarm.model.Identifiable
class Setting(
override val id: Long,
val title: String? = null,
val description: String? = null,
val type: SettingType,
val itemBuilder: (Setting, ViewBinding) -> Unit
) ... | 0 | Kotlin | 0 | 1 | 5eae531ba4a8184f4f8abfefcbab2c4486efc003 | 334 | spotify-alarm-clock | Apache License 2.0 |
protocol/src/main/kotlin/com/github/traderjoe95/mls/protocol/error/KeyPackageMismatchError.kt | Traderjoe95 | 757,448,383 | false | {"Kotlin": 1143520} | package com.github.traderjoe95.mls.protocol.error
import com.github.traderjoe95.mls.protocol.crypto.CipherSuite
import com.github.traderjoe95.mls.protocol.types.framing.enums.ProtocolVersion
sealed interface KeyPackageMismatchError : GroupCreationError, JoinError {
data class ProtocolVersionMismatch(val group: Prot... | 0 | Kotlin | 0 | 1 | 70bd7110b08713ae9425bbad6e6da13fa6fed8f3 | 507 | mls-kotlin | MIT License |
liteapi-tl/src/liteserver/LiteServerAccountId.kt | ton-community | 448,983,229 | false | {"Kotlin": 1194581} | @file:UseSerializers(HexByteArraySerializer::class)
package org.ton.lite.api.liteserver
import kotlinx.io.bytestring.ByteString
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.ton.crypto.HexByteArraySerializer
import org.ton.tl.B... | 21 | Kotlin | 24 | 80 | 7eb82e9b04a2e518182ebfc56c165fbfcc916be9 | 1,270 | ton-kotlin | Apache License 2.0 |
src/main/kotlin/com/projectcitybuild/plugin/SpigotIntegration.kt | projectcitybuild | 42,997,941 | false | null | package com.projectcitybuild.plugin
interface SpigotIntegration {
fun onEnable() = run { }
fun onDisable() = run { }
}
| 8 | Kotlin | 0 | 2 | 670536a5832dd6c3dbde0ba2f94f74a6ec576ed3 | 128 | PCBridge | MIT License |
data/media_item/src/androidTest/java/com/deathhit/data/media_item/config/TestMediaApiModule.kt | Deathhit | 494,422,640 | false | {"Kotlin": 205216} | package com.deathhit.data.media_item.config
import com.deathhit.core.media_api.MediaApiModule
import com.deathhit.core.media_api.MediaApiService
import com.deathhit.core.media_api.test.FakeMediaApiService
import dagger.Module
import dagger.Provides
import dagger.hilt.components.SingletonComponent
import dagger.hilt.te... | 0 | Kotlin | 0 | 2 | 00b6b7acd4f756f324e08f1889f0d0883d6faa44 | 772 | YouTooBeAlike | Apache License 2.0 |
app/src/main/kotlin/com/harison/core/app/api/BaseResponse.kt | Hung2299 | 735,100,037 | false | {"Kotlin": 133847} | package com.harison.core.app.api
sealed class BaseResponse<out R> {
data class Success<out R>(val result: R) : BaseResponse<R>()
data class Failure<out R>(val code: Int, val message: String?) : BaseResponse<R>()
data class UnknownError(val throwable: Throwable?) : BaseResponse<Nothing>()
}
fun <T : Any> B... | 0 | Kotlin | 0 | 0 | 9faf0a3e230f990aac2e2a1731ce38c5f550d7cc | 1,432 | android-base-quick-ads | MIT License |
15_Android_MVVM_Architecture/app/src/main/java/com/hellohasan/mvvm_food_app/feature/food_details/view/FoodDetailsActivity.kt | hasancse91 | 297,706,458 | false | null | package com.hellohasan.mvvm_food_app.feature.food_details.view
import android.os.Bundle
import android.view.View
import androidx.appcompat.widget.Toolbar
import androidx.lifecycle.ViewModelProvider
import com.bumptech.glide.Glide
import com.hellohasan.mvvm_food_app.R
import com.hellohasan.mvvm_food_app.core.BaseActiv... | 0 | Kotlin | 4 | 12 | 89c245c45007e076eacf927aa17c7698e660d0db | 2,188 | android-course-v2 | MIT License |
app/src/main/kotlin/io/github/bsfranca2/athena/dto/user/PrivilegeDto.kt | bsfranca2 | 275,465,877 | false | null | package io.github.bsfranca2.athena.dto.user
data class PrivilegeDto(val name: String) | 11 | Kotlin | 0 | 0 | 8a048990c1a6ebf23a567490476fc7e41fdadc71 | 86 | Athena | MIT License |
src/main/kotlin/no/nav/tiltakspenger/vedtak/rivers/tiltak/ArenaTiltakMottattDTO.kt | navikt | 574,550,381 | false | null | package no.nav.tiltakspenger.vedtak.rivers.tiltak
import no.nav.tiltakspenger.libs.arena.tiltak.ArenaTiltaksaktivitetResponsDTO
import java.time.LocalDateTime
data class ArenaTiltakMottattDTO(
val respons: ArenaTiltaksaktivitetResponsDTO,
val ident: String,
val journalpostId: String,
val innhentet: Lo... | 0 | Kotlin | 0 | 1 | e5b75826073e893a5448d05bf013a133383605b9 | 335 | tiltakspenger-vedtak-rivers | MIT License |
app/src/main/java/com/oky2abbas/sms2html/backup/BackupView.kt | oky2abbas | 165,665,044 | false | null | package com.oky2abbas.sms2html.backup
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.oky2abbas.sms2html.R
import com.oky2abbas.sms2html.extention.isPermission
import com.oky2abbas.sms2html.helper.Sneak... | 0 | Kotlin | 0 | 2 | 61b8e151d1fa09a9744405842b693618d90184b2 | 1,737 | smsExtraction | MIT License |
plugin/src/main/kotlin/org/gradle/kotlin/dsl/BuildConfigClassSpecDSL.kt | gmazzo | 172,272,573 | false | {"Kotlin": 78964, "Java": 12617} | package org.gradle.kotlin.dsl
import com.github.gmazzo.buildconfig.BuildConfigClassSpec
import com.github.gmazzo.buildconfig.BuildConfigDsl
import com.github.gmazzo.buildconfig.BuildConfigField
import org.gradle.api.Action
import org.gradle.api.NamedDomainObjectProvider
import org.gradle.api.provider.Provider
import j... | 1 | Kotlin | 22 | 520 | 1915769d15de49799e4637b7d48c500b1ea322ec | 2,934 | gradle-buildconfig-plugin | MIT License |
app/src/main/java/moe/tlaster/openween/core/model/comment/CommentModel.kt | OpenWeen | 69,312,077 | false | null | package moe.tlaster.openween.core.model.comment
import com.fasterxml.jackson.annotation.JsonProperty
import moe.tlaster.openween.core.model.BaseModel
import moe.tlaster.openween.core.model.status.MessageModel
/**
* Created by Tlaster on 2016/9/2.
*/
class CommentModel : BaseModel() {
@field:JsonProperty("sour... | 3 | Kotlin | 1 | 11 | 9ace2dd55be92979561b6ec8f6c4fde8f3c045d3 | 594 | OpenWeen.Droid | MIT License |
android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/AppUtils.kt | hiennguyen92 | 410,387,374 | false | null | package com.hiennv.flutter_callkit_incoming
import android.content.Context
import android.content.Intent
import android.os.Bundle
object AppUtils {
fun getAppIntent(context: Context, action: String? = null, data: Bundle? = null): Intent? {
val intent = context.packageManager.getLaunchIntentForPackage(cont... | 61 | Kotlin | 155 | 99 | c44da3b5083fb9986e31f39631769ccfa8fdc9ce | 631 | flutter_callkit_incoming | MIT License |
app/src/main/java/pnu/hakathon/anyone/dao/StoreListDao.kt | manson112 | 278,081,028 | false | null | package pnu.hakathon.anyone.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import pnu.hakathon.anyone.entity.StoreModel
@Dao
interface StoreListDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insert(sm: StoreModel)
@Q... | 0 | Kotlin | 0 | 0 | 3c6beb9845ae6c6d4ab105ab651368e81df00886 | 669 | 2020_PNU_Hakathon_Anyone_Android | The Unlicense |
shared/domain/src/main/java/dev/eduayuso/cleansamples/shared/domain/entities/PostEntity.kt | eduayuso | 340,966,656 | false | null | package dev.eduayuso.cleansamples.shared.domain.entities
import kotlinx.serialization.Serializable
@Serializable
class PostEntity(
var id: String? = null,
var text: String? = null,
var image: String? = null,
var likes: Int? = null,
var publishDate: String? = null,
var tags: List<String>? = nu... | 1 | Kotlin | 0 | 0 | d42fe931d229636596b7e969405e5c9d04e3a290 | 510 | clean_samples | Apache License 2.0 |
shared/domain/src/main/java/dev/eduayuso/cleansamples/shared/domain/entities/PostEntity.kt | eduayuso | 340,966,656 | false | null | package dev.eduayuso.cleansamples.shared.domain.entities
import kotlinx.serialization.Serializable
@Serializable
class PostEntity(
var id: String? = null,
var text: String? = null,
var image: String? = null,
var likes: Int? = null,
var publishDate: String? = null,
var tags: List<String>? = nu... | 1 | Kotlin | 0 | 0 | d42fe931d229636596b7e969405e5c9d04e3a290 | 510 | clean_samples | Apache License 2.0 |
app/src/main/java/com/harryjjacobs/musiq/ui/itemlist/ItemRecyclerViewAdapter.kt | harryjjacobs | 250,503,030 | false | {"Kotlin": 49469} | package com.harryjjacobs.musiq.ui.itemlist
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.harryjjacobs.musiq.ui.itemlist.dummy.DummyContent.DummyItem
/**
* [RecyclerView.Adapter] that can display a [DummyItem] and... | 0 | Kotlin | 0 | 0 | d21844a7caec6b0a0892e069e782648896f0b433 | 1,746 | MUSiQ | MIT License |
app/src/main/java/com/example/weatherlicious/ui/addfragment/AddFragmentViewModel.kt | agul1no | 513,198,414 | false | {"Kotlin": 108184} | package com.example.weatherlicious.ui.addfragment
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.weatherlicious.data.model.searchautocomplete.CityItem
import com.example.weatherlicious.data.source.local.entities.City
import com.... | 6 | Kotlin | 0 | 1 | f8cba961c67876675f29dcfb0040e2ed4522e0e9 | 2,207 | Weatherlicious | MIT License |
src/ch5PrimitiveTypes/5.2SwapBits.kt | codingstoic | 138,465,452 | false | {"Kotlin": 17019} | package ch5PrimitiveTypes
fun main(args: Array<String>) {
println(swap(10, 0, 3))
}
fun swap(x: Int, j: Int, i: Int): Int {
var xCopy = x
if(x.shr(i).and(1) != x.shr(j).and(1)){
xCopy = x.xor(1.shl(i).or(1.shl(j)))
}
return xCopy
}
| 0 | Kotlin | 0 | 2 | fdec1aba315405e140f605aa00a9409746cb518a | 264 | elements-of-programming-interviews-solutions | MIT License |
ktx-datetime/src/commonTest/kotlin/tech/antibytes/kfixture/mock/RandomStub.kt | bitPogo | 471,069,650 | false | {"Kotlin": 1155858} | /*
* Copyright (c) 2024 Matthias Geisler (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package tech.antibytes.kfixture.mock
import kotlin.js.JsName
import kotlin.random.Random
class RandomStub(
@JsName("nextBitStub")
var nextBits: ((Int) -> Int)? = null,
@... | 0 | Kotlin | 1 | 12 | 52ccc8a29b0429fc07335cd4926169d254a78551 | 4,391 | kfixture | Apache License 2.0 |
thirdparty/controlsfx-commons/src/test/kotlin/ktfx/controlsfx/controls/DecoratorTest.kt | DaiYuANg | 793,634,590 | false | {"Kotlin": 1047713, "Java": 752} | package ktfx.controlsfx.controls
import com.hendraanggrian.ktfx.test.initToolkit
import javafx.scene.Node
import javafx.scene.control.Button
import javafx.scene.control.Hyperlink
import javafx.scene.control.Label
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.a... | 0 | Kotlin | 0 | 0 | fd2639358ef8be4ff38615ee8bc831a58fd2609e | 1,490 | ktfx | Apache License 2.0 |
src/main/java/com/dzen/campfire/api/requests/publications/RPublicationsReport.kt | ZeonXX | 381,983,751 | false | {"Kotlin": 1087578} | package com.dzen.campfire.api.requests.publications
import com.dzen.campfire.api.tools.client.Request
import com.sup.dev.java.libs.json.Json
open class RPublicationsReport(
var publicationId: Long,
var comment:String
) : Request<RPublicationsReport.Response>() {
companion object {
val E_... | 0 | Kotlin | 2 | 5 | 6f3b371624fb66a065bcbaa6302830c574c55e9f | 768 | CampfireApi | Apache License 2.0 |
src/commonMain/kotlin/com/github/kotlinizer/mqtt/Logger.kt | kotlinizer | 182,853,094 | false | null | package com.github.kotlinizer.mqtt
abstract class Logger(private val level: Level) {
fun e(throwable: Throwable? = null, message: () -> String = { "" }) {
if (level >= Level.ERROR) {
logError(message(), throwable)
}
}
fun d(message: () -> String) {
if (level >= Level.D... | 0 | Kotlin | 3 | 3 | 02fa88d75c676f55d33ae7df213b009982b7dc1d | 788 | kotlin-mqtt-client | Apache License 2.0 |
src/jvmMain/kotlin/me/devnatan/yoki/util/Json.kt | DevNatan | 392,883,613 | false | null | @file:JvmName("JsonJvm")
package me.devnatan.yoki.util
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
private val json: Json = Json {
ignoreUnknownKeys = true
isLenient = true
allowStructuredMapKeys = true
}
public actual ... | 9 | Kotlin | 4 | 19 | c4a7f9deed0b5154d371b8df5fd330a0b6d43183 | 528 | yoki | MIT License |
android/tinySSB/app/src/main/java/nz/scuttlebutt/tremolavossbol/utils/Bipf.kt | ssbc | 668,897,290 | false | null | package nz.scuttlebutt.tremolavossbol.utils
import android.util.Log
import nz.scuttlebutt.tremolavossbol.utils.Bipf.Companion.BIPF_BOOLNONE
import kotlin.experimental.and
import kotlin.experimental.or
import nz.scuttlebutt.tremolavossbol.utils.Bipf.Companion.BIPF_BYTES
import nz.scuttlebutt.tremolavossbol.utils.Bipf.... | 0 | null | 17 | 29 | fee99079ac2820711e1e853cba0e7aacc8765fea | 18,014 | tinySSB | MIT License |
src/test/java/com/maximebertheau/emoji/EmojiManagerTest.kt | maxoumime | 87,093,017 | false | null | package com.maximebertheau.emoji
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
@RunWith(JUnit4::class)
class EmojiManagerTest {
@Test
fun `getForAlias with unknown alias returns empty`() {
// GIVEN
// WHEN
val emoji = ... | 1 | Kotlin | 4 | 8 | 0cf9ac559304909f25661685532ead48db155d80 | 3,187 | emoji-data-java | MIT License |
clients/kotlin-server/generated/src/main/kotlin/org/openapitools/server/models/CreateEmbeddingResponseUsage.kt | oapicf | 529,246,487 | false | {"Markdown": 6348, "YAML": 73, "Text": 16, "Ignore List": 52, "JSON": 1138, "Makefile": 3, "JavaScript": 1042, "F#": 585, "XML": 468, "Shell": 47, "Batchfile": 10, "Scala": 2313, "INI": 31, "Dockerfile": 17, "Maven POM": 22, "Java": 6356, "Emacs Lisp": 1, "Haskell": 39, "Swift": 263, "Ruby": 555, "OASv3-yaml": 19, "Cab... | /**
* OpenAI API
* The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
*
* The version of the OpenAPI document: 2.0.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not ed... | 2 | Java | 0 | 4 | c04dc03fa17b816be6e9a262c047840301c084b6 | 791 | openapi-openai | MIT License |
quest-maker/app/src/main/java/com/example/quest_maker/presentation/selection/SelectionData.kt | CharmingPineapple | 654,628,167 | false | {"Java": 102932, "Kotlin": 66689} | package com.example.quest_maker.presentation.selection
import com.example.domain.models.author.Item
data class SelectionData(
val selectedItemList: List<Item>,
val selectedInjuryList: List<Item>,
val selectedCurseList: List<Item>,
val maxItem: Int = 4,
val maxInjury: Int = 3,
val maxCurse: In... | 1 | null | 1 | 1 | c44985c0abaeead7c717d7c7947277586e330a31 | 349 | quest-maker | Apache License 2.0 |
app/src/main/java/com/example/consultplus/view/ui/activity/DoctorActivity.kt | aouadimed | 562,307,266 | false | {"Kotlin": 143534} | package com.example.consultplus.view.ui.activity
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Menu
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentTransaction
import androidx.navigatio... | 0 | Kotlin | 0 | 1 | 1e2f4711e4621a8f20e5740f2d264e3e798b4097 | 2,119 | Consult-Plus-App | MIT License |
data/traktauth/src/commonMain/kotlin/app/tivi/data/traktauth/TraktAuthRepository.kt | chrisbanes | 100,624,553 | false | null | /*
* Copyright 2017 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 20 | Kotlin | 792 | 5,749 | 5dc4d831fd801afab556165d547042c517f98875 | 2,565 | tivi | Apache License 2.0 |
services/csm.cloud.project.api.timeseries/src/main/kotlin/com/bosch/pt/csm/cloud/projectmanagement/craft/craft/domain/CraftId.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2023
*
* ************************************************************************
*/
package com.bosch.pt.csm.cloud.projectmanagement.craft.craft.domain
import com.fasterxml.jackso... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 503 | bosch-pt-refinemysite-backend | Apache License 2.0 |
keel-api/src/main/kotlin/com/netflix/spinnaker/keel/api/plugins/SupportedVersioningStrategy.kt | xiaoruiguo | 297,827,408 | true | {"Kotlin": 2019679, "Java": 15861, "Shell": 1691, "Slim": 359} | package com.netflix.spinnaker.keel.api.plugins
import com.netflix.spinnaker.keel.api.artifacts.VersioningStrategy
/**
* Tuple of [VersioningStrategy] type name (e.g. "deb", "docker", etc.) and the
* corresponding [VersioningStrategy] sub-class, used to facilitate registration
* and discovery of supported versionin... | 0 | null | 0 | 0 | cf87aceff5a1a969f608ca39b3ba18a5b864dd8b | 486 | keel | Apache License 2.0 |
src/main/kotlin/com/github/wenpiner/tron/block/data/transaction/RetResult.kt | Wenpiner | 689,049,588 | false | {"Kotlin": 46764} | package com.github.wenpiner.tron.block.data.transaction
enum class RetResult {
SUCCESS,
FAILED,
UNRECOGNIZED
} | 0 | Kotlin | 0 | 1 | f717d4eba045cfb75a6b24dfa7a339040efa18e0 | 123 | TronApi | MIT License |
src/main/kotlin/com/github/wenpiner/tron/block/data/transaction/RetResult.kt | Wenpiner | 689,049,588 | false | {"Kotlin": 46764} | package com.github.wenpiner.tron.block.data.transaction
enum class RetResult {
SUCCESS,
FAILED,
UNRECOGNIZED
} | 0 | Kotlin | 0 | 1 | f717d4eba045cfb75a6b24dfa7a339040efa18e0 | 123 | TronApi | MIT License |
libs/jdbc-test/main/libs/jdbc/PostgresContainer.kt | navikt | 797,896,421 | false | {"Kotlin": 107410} | package libs.jdbc
import libs.postgres.JdbcConfig
import libs.utils.env
import org.testcontainers.containers.PostgreSQLContainer
class PostgresContainer(appname: String) : AutoCloseable {
private val container = PostgreSQLContainer("postgres:15").apply {
if (!isGHA()) {
withLabel("service", ap... | 1 | Kotlin | 0 | 0 | bf331d27910d3c67cb350e9856882ecbf2c7e361 | 1,225 | helved-libs | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.