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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/github/thahnen/handler/Gradle.kt | thahnen | 394,457,833 | false | null | package com.github.thahnen.handler
import java.io.File
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.bundling.Jar
import org.gradle.kotlin.dsl.withGroovyBuilder
import com.github.thahnen.handler.base.BuildAutomation
import com.github.thahnen.util.BundleHandler
import com.githu... | 0 | Kotlin | 0 | 0 | 2e1b5344baa3ab987ce5af06080f98259975164f | 5,065 | GitDiffUpToDatePlugin | MIT License |
Library/src/main/java/com/sunzn/stream/library/bean/Data.kt | uncn | 224,794,648 | false | null | package com.sunzn.stream.library.bean
data class Data(var curSize: Int, var totSize: Int, var status: Int) | 0 | Kotlin | 0 | 0 | 27e0fc537974b436f2b7cfb1101859ed43687448 | 107 | stream | Apache License 2.0 |
app/src/main/java/com/boltuix/mvvm/di/NetworkRepository.kt | BoltUIX | 559,946,474 | false | {"Kotlin": 26791} | package com.boltuix.mvvm.di
import com.boltuix.mvvm.api.ApiService
import com.boltuix.mvvm.model.NewResponse
import com.boltuix.mvvm.utils.Resource
import retrofit2.Response
import javax.inject.Inject
/*
class NetworkRepository @Inject constructor(private val apiService: ApiService) {
suspend fun getTopHeadlines(... | 0 | Kotlin | 0 | 2 | d368735c0655f5c9e597b99928f1faa92f211c6b | 735 | REST-APIs-with-Retrofit-and-MVVM-architecture | Apache License 2.0 |
urbanairship-debug/src/main/java/com/urbanairship/debug/automation/ExtrasDetailsFragment.kt | urbanairship | 58,972,818 | false | {"Java": 4021541, "Kotlin": 1676659, "Python": 10137, "Shell": 661} | /* Copyright Airship and Contributors */
package com.urbanairship.debug.automation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.urbanairship.json.JsonMap
class ExtrasDetailsFragment : AutomationDetailsFragment() {
companion object {
const val ARGUMENT_EXTRAS = ... | 2 | Java | 124 | 106 | c6d288c430f1f6860c3e45083fdf55889ecfe11d | 699 | android-library | Apache License 2.0 |
kodein-di/src/commonMain/kotlin/org/kodein/di/expected.kt | Kodein-Framework | 34,046,231 | false | null | package org.kodein.di
import org.kodein.type.TypeToken
import org.kodein.type.erasedOf
import kotlin.reflect.KClass
/**
* Returns a type token representing the actual type of the given argument.
*
* @param T The type, or a parent type of, that the returned TypeToken will represent.
* @param obj An object whose ac... | 6 | null | 172 | 2,766 | 56047b539266df2e7316b0d58ea8c6f1d278521f | 733 | Kodein-DI | MIT License |
glfilter/src/main/java/com/example/glfilter/MainActivity.kt | Jesen0823 | 397,509,483 | false | {"Kotlin": 55180, "Java": 30627, "GLSL": 8986} | package com.example.glfilter
import android.Manifest
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.activity.result.contract.ActivityResultContracts
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
cla... | 0 | Kotlin | 0 | 0 | 38dbbdb1171f51ab331acb68f7deb60e9507d7b7 | 1,177 | OpenGLStart | Apache License 2.0 |
src/main/kotlin/br/com/correios/enderecador/tablemodel/IterableTableModel.kt | gustavo-veiga | 516,074,273 | false | null | package br.com.correios.enderecador.tablemodel
interface IterableTableModel<E> {
fun insertRow(element: E)
fun removeRow(element: E)
fun removeRowAt(row: Int)
fun getAt(row: Int): E
fun setAll(elements: List<E>)
fun setRowAt(row: Int, element: E)
fun indexOf(element: E): Int
fun ... | 0 | Kotlin | 0 | 0 | 8bd49b3c4832235ae47846f4066b6ffc8d17432a | 467 | correios-enderecador | MIT License |
src/main/kotlin/no/nav/eessi/pensjon/models/PensjonSakModel.kt | navikt | 178,813,650 | false | null | package no.nav.eessi.pensjon.models
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
data class SakInformasjon(
val sakId: String?,
val sakType: Saktype,
val sakStatus: SakStatus,
val saksbehandl... | 1 | Kotlin | 1 | 4 | 2ed45491a01e54b38a678776ab3e82ef9ee094ea | 721 | eessi-pensjon-journalforing | MIT License |
app/src/main/java/cn/iimedia/jb/mine/activity/RegisterActivity.kt | ncxnbrwa | 143,690,461 | false | {"Java": 3281499, "Kotlin": 269858, "Shell": 4971, "C++": 3780, "Makefile": 468} | package cn.iimedia.jb.mine.activity
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.view.View
import cn.iimedia.jb.R
import cn.iimedia.jb.common.Config
import cn.iimedia.jb.http.APIConstants
import cn.iimedia.jb.http.RetrofitHelper
import cn.iimedia.jb.http.bean.Regi... | 1 | null | 1 | 1 | f7336035401cab53cb0158d9218e17669c82c4f4 | 7,911 | jb | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/nl/kafka/model/KafkaMetadata.kt | navikt | 327,823,627 | false | {"Kotlin": 92405, "Dockerfile": 278} | package no.nav.syfo.nl.kafka.model
import java.time.OffsetDateTime
class KafkaMetadata(val timestamp: OffsetDateTime, val source: String)
| 1 | Kotlin | 0 | 0 | c5e1ca7b45350a598d2fdc1937dfe8fee86ca7ce | 140 | syfonlaltinn | MIT License |
src/main/kotlin/com/robotutor/loggingstarter/Logger.kt | IOT-echo-system | 731,112,615 | false | {"Kotlin": 11376} | package com.robotutor.loggingstarter
import com.robotutor.loggingstarter.LogDetails
import com.robotutor.loggingstarter.serializer.DefaultSerializer.serialize
import org.slf4j.LoggerFactory
class Logger(className: Class<out Any>) {
private val logger = LoggerFactory.getLogger(className)
fun info(details: Log... | 0 | Kotlin | 0 | 0 | bf28073703d3e937b97a5f15d86c7baceb8b5d42 | 497 | logging-starter | MIT License |
app/src/main/java/com/rewire/mobile/app/Model/Shares.kt | tyuksel53 | 123,280,726 | false | null | package com.rewire.mobile.app.Model
import java.io.Serializable
class Shares:Serializable{
var ID:Int? = null
var Header:String? = null
var Message:String? = null
var UserID:String? = null
var PublishedTime:String? = null
var UpVoteCount:Int? = null
var YorumCount:Int? = null
constr... | 0 | Kotlin | 1 | 10 | 45cbf7a570bc60b91b0e00e3a062b247926c12ee | 702 | RewireApp-Android | MIT License |
tmp/arrays/youTrackTests/843.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-41032
interface MyTests
abstract class MyTestsImpl(transform: (String) -> String) : MyTests
class ConcreteTest : MyTests by object : MyTestsImpl(transform = { it }) {} {
// ...
}
| 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 206 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/google/adux/shrine/ExpandedCart.kt | c5inco | 361,297,408 | false | null | package com.google.adux.shrine
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.*
import and... | 1 | Kotlin | 3 | 21 | 3534f152ee365be05b779d00246058a64c055c66 | 8,176 | Shrine-Compose | Apache License 2.0 |
app/src/main/java/com/example/todolistmqtt/ui/worker/TaskSyncWorker.kt | Digao1297 | 832,363,337 | false | {"Kotlin": 55136} | package com.example.todolistmqtt.ui.worker
import android.content.Context
import android.util.Log
import androidx.hilt.work.HiltWorker
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import com.example.TaskProto
import com.example.todolistmqtt.data.remote.mqtt.MQTTConstants
import com.exampl... | 0 | Kotlin | 0 | 0 | 69b92bf814ab5947785ec4d8522508626cf209e1 | 1,947 | ToDoListMqtt | MIT License |
light-model-client/src/commonMain/kotlin/org/modelix/client/light/WebsocketConnection.kt | modelix | 533,211,353 | false | null | /*
* Copyright (c) 2022.
*
* 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 ... | 32 | Kotlin | 0 | 4 | f1c5d5315a9a903095d1f275866b62ae7fdcb214 | 2,386 | modelix.core | Apache License 2.0 |
mobile/src/androidTest/java/ch/epfl/sdp/mobile/test/infrastructure/speech/android/AndroidSpeechRecognizerTest.kt | epfl-SDP | 462,385,783 | false | null | package ch.epfl.sdp.mobile.test.infrastructure.speech.android
import android.speech.RecognitionListener
import android.speech.SpeechRecognizer
import android.speech.SpeechRecognizer.RESULTS_RECOGNITION
import androidx.core.os.bundleOf
import ch.epfl.sdp.mobile.infrastructure.speech.SpeechRecognizer.Listener
import ch.... | 15 | Kotlin | 3 | 13 | 71f6e2a5978087205b35f82e89ed4005902d697e | 3,088 | android | MIT License |
src/main/kotlin/com/github/mikesafonov/jira/telegram/config/prometheus/JiraEventCounter.kt | MikeSafonov | 169,953,901 | false | null | package com.github.mikesafonov.jira.telegram.config.prometheus
import io.micrometer.core.instrument.Counter
import io.micrometer.core.instrument.MeterRegistry
import org.springframework.stereotype.Service
/**
* @author <NAME>
*/
@Service
class JiraEventCounter(meterRegistry: MeterRegistry) {
private val errorC... | 14 | Kotlin | 5 | 13 | 864c9a4cd25e1ece99c7940befad6bc478cf3e49 | 649 | jira-telegram-bot | MIT License |
plugins/kotlin/idea/tests/testData/editor/autoImport/constructorReference/constructorReference.kt | JetBrains | 2,489,216 | false | null | package main
fun test() {
val p = ::A
}<caret> | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 51 | intellij-community | Apache License 2.0 |
app/src/main/java/kr/co/witches/simplememo/ui/write/WriteViewModel.kt | juu124 | 554,712,442 | false | null | package kr.co.witches.simplememo.ui.write
import android.os.Looper
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import kr.co.witches.simplememo.data.database.repository.MemoRepository
import kr.co.witches.simplememo.model.MemoVO
class WriteViewModel ... | 0 | Kotlin | 0 | 0 | 78cac3d52b36fec125b01d49ca9b868ec38eca56 | 428 | SimpleMemo | MIT License |
core/model/src/main/java/com/qure/model/fishingspot/FishingSpotQuery.kt | hegleB | 613,354,773 | false | {"Kotlin": 509795} | package com.qure.model.fishingspot
import com.qure.model.memo.FieldFilter
import kotlinx.serialization.Serializable
@Serializable
data class FishingSpotQuery(
val structuredQuery: StructuredQuery,
)
@Serializable
data class StructuredQuery(
val from: List<CollectionId>,
val where: Where,
)
@Serializable... | 0 | Kotlin | 0 | 1 | f15b4e12dcfad492ef6b7c8a5748928027ccd2e4 | 447 | FishingMemory | The Unlicense |
core/model/src/main/java/com/qure/model/fishingspot/FishingSpotQuery.kt | hegleB | 613,354,773 | false | {"Kotlin": 509795} | package com.qure.model.fishingspot
import com.qure.model.memo.FieldFilter
import kotlinx.serialization.Serializable
@Serializable
data class FishingSpotQuery(
val structuredQuery: StructuredQuery,
)
@Serializable
data class StructuredQuery(
val from: List<CollectionId>,
val where: Where,
)
@Serializable... | 0 | Kotlin | 0 | 1 | f15b4e12dcfad492ef6b7c8a5748928027ccd2e4 | 447 | FishingMemory | The Unlicense |
shared/src/commonMain/kotlin/screens/SignUp.kt | SiracSeyidov | 698,767,127 | false | {"Kotlin": 33904, "Swift": 589, "Shell": 228} | package screens
import custom_views.MyTextField
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.com... | 0 | Kotlin | 0 | 0 | ebaedc9262ffeda8ba59984172d8b6b0a0f7ae19 | 5,786 | ComposeMultiplatformTest | Apache License 2.0 |
core-ktx/src/main/java/com/king/android/ktx/core/ContextKt.kt | AndroidKTX | 504,498,923 | false | null | package com.king.android.ktx.core
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.core.os.bundleOf
/**
* @author <a href="mailto:jenly1314... | 0 | Kotlin | 3 | 13 | 82416557e3e9c047ca4fc3f3525afe1ba10cd1cf | 1,678 | AndroidKTX | Apache License 2.0 |
app/src/main/java/com/fredprojects/helloworld/ui/navigation/modules/PWSModule.kt | FredNekrasov | 832,214,231 | false | {"Kotlin": 296555} | package com.fredprojects.helloworld.ui.navigation.modules
import android.Manifest
import android.content.pm.PackageManager
import androidx.activity.ComponentActivity
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compo... | 0 | Kotlin | 0 | 1 | 591c08f769e2d56f50c1480d7e81061e82fa6f11 | 3,325 | jetpack-compose-projects | MIT License |
plugin/src/main/kotlin/kiinse/me/plugins/minecore/plugin/listeners/OnJoinListener.kt | kiinse | 618,554,549 | false | null | // MIT License
//
// Copyright (c) 2022 kiinse
//
// 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, merg... | 0 | Kotlin | 0 | 0 | 879337b9ccf2aad3c5ebddfcb98b4a5484f36221 | 3,226 | MineCore | MIT License |
src/main/kotlin/com/pravega/backend/configuration/WebSocketConfiguration.kt | Nixlord | 289,683,938 | false | null | package com.pravega.backend.configuration
import com.pravega.backend.controllers.WebSocketHandler
import com.pravega.backend.controllers.interceptors.WebSocketInterceptor
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.... | 0 | Kotlin | 0 | 0 | 614a7c9072e2466549f5155c6239b76e7ab833c8 | 1,091 | sinhals-backend | MIT License |
benchmarks-android/src/androidTest/java/com/example/benchmark/VirtualFilesBenchmarks.kt | fzhinkin | 732,041,156 | false | {"Kotlin": 25735, "Python": 4075} | package com.example.benchmark
import androidx.benchmark.junit4.BenchmarkRule
import androidx.benchmark.junit4.measureRepeated
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.Parameterized
import org.junit.runners.Parameterized.Parameters
import java.io.FileInputStre... | 0 | Kotlin | 0 | 0 | 984275a9f640681e43023f6f72fc35818d0e938b | 2,416 | kotlinx-io-supplementary-benchmarks | Apache License 2.0 |
src/main/kotlin/com/IceCreamQAQ/Yu/util/ClassUtil.kt | IceCream-QAQ | 208,843,258 | false | {"Kotlin": 268993, "Java": 18526} | package com.IceCreamQAQ.Yu.util
object ClassUtil {
fun isTypeOf(clazz: Class<*>, parentType: Class<*>): Boolean =
parentType::class.java.isAssignableFrom(clazz)
} | 12 | Kotlin | 11 | 58 | 5f758196b1c21c962fd1cfe3370f113b2aa6f623 | 175 | Rain | Apache License 2.0 |
base/src/main/kotlin/com/bethibande/http/impl/http2/Http2Connection.kt | Bethibande | 646,437,650 | false | {"Kotlin": 91005} | package com.bethibande.http.impl.http2
import com.bethibande.http.HttpConnection
import com.bethibande.http.impl.http2.handler.ClientStreamInitializer
import com.bethibande.http.request.RequestHook
import io.netty.channel.Channel
import io.netty.channel.ChannelFuture
import io.netty.handler.codec.http2.Http2StreamChan... | 10 | Kotlin | 0 | 1 | 9c74a2df52a9fc2c756a900539ddc9c068e84855 | 1,356 | NettyHttpFramework | Apache License 2.0 |
data/src/main/java/ru/trisiss/data/local/mapper/NoteMapper.kt | Trisiss | 259,599,279 | false | null | package ru.trisiss.data.local.mapper
import ru.trisiss.data.local.model.NoteEntity
import ru.trisiss.domain.model.Note
/**
* Maps between Room database entity and model.
*/
class NoteMapper {
fun fromEntity(from: NoteEntity) = Note(from.id, from.noteTitle, from.noteText, from.timestamp)
fun toEntity(from: N... | 0 | Kotlin | 0 | 0 | 4c5e35d861afcb7c722d5947102da05d8bb2ef90 | 604 | TopNotes | MIT License |
app/src/main/java/de/ka/rgreed/ui/consensus/consensusdetail/suggestionlist/SuggestionsItemViewModel.kt | hothf | 288,734,066 | false | null | package de.ka.rgreed.ui.consensus.consensusdetail.suggestionlist
import android.view.View
import androidx.core.content.ContextCompat
import de.ka.rgreed.R
import de.ka.rgreed.repo.api.models.SuggestionResponse
/**
* A default suggestion item view model.
*/
class SuggestionsItemViewModel(
var item: SuggestionRes... | 0 | Kotlin | 0 | 1 | a6eddef3a2f8c7139805249bcfb48ef374743eb8 | 2,819 | rgreed-app | MIT License |
composeApp/src/androidMain/kotlin/backup/FilePicker.kt | thaapasa | 702,418,399 | false | {"Kotlin": 476702, "Swift": 661, "Shell": 262} | package fi.tuska.beerclock.backup
import android.app.Activity
import android.content.Intent
import android.net.Uri
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.runtime.Composable
import androidx.compose.runti... | 1 | Kotlin | 0 | 2 | ed954c500564d21d482609d62ff9b4178f4d6f64 | 1,411 | beerclock | Apache License 2.0 |
tjekSdk/src/main/java/com/tjek/sdk/api/models/OpeningHours.kt | shopgun | 5,290,629 | false | {"Git Config": 1, "Gradle": 4, "Markdown": 2, "Java Properties": 2, "YAML": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Proguard": 2, "XML": 36, "Kotlin": 97, "Java": 20, "JSON": 1} | package com.tjek.sdk.api.models
/*
* Copyright (C) 2022 Tjek
*
* 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 b... | 1 | null | 5 | 1 | 774080968e245e48425602dcb56260002137e728 | 2,776 | shopgun-android-sdk | Apache License 2.0 |
lib/src/main/java/nl/nl2312/okio/cipher/CipherSink.kt | erickok | 124,859,046 | false | null | package nl.nl2312.okio.cipher
import okio.Buffer
import okio.ForwardingSink
import okio.Sink
import javax.crypto.Cipher
/**
* Encrypts writes to a [Sink] on the fly given a pre-set [Cipher].
*
* <p>Chunked writing is unsupported; the written ciphered output is always finalised. However, partial writing (not
* dra... | 0 | Kotlin | 2 | 32 | b7cdc3d4dd6e6137c4d435fa745d682cdc4f9092 | 934 | okio-extensions | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/crypto/twotone/Nebulas.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.crypto.twotone
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import a... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,280 | VuesaxIcons | MIT License |
Lab6/src/main/kotlin/DevideAndConquer.kt | knu-3-velychko | 276,473,844 | false | null | import kotlin.random.Random
class DevideAndConquer(private val points: List<Point>, private val splitNumber: Int) {
val hull by lazy {
divide(points.toMutableList())
}
private fun divide(list: MutableList<Point>): List<Point> {
if (list.size <= splitNumber)
return JarvisMethod(... | 0 | Kotlin | 0 | 0 | b16603d78bf44f927f4f6389754a5d015a25f7e2 | 4,277 | ComputerGraphics | MIT License |
aoc-kotlin/src/main/kotlin/day02/Day02.kt | mahpgnaohhnim | 573,579,334 | false | null | package day02
import day02.enums.GameOption
import java.io.File
class Day02 {
companion object {
fun getMatchByLine(line: String, part2: Boolean = false): GameMatch {
val inputLine = line.split(" ")
if (inputLine.size != 2) {
throw Exception("Line is invalid")
... | 0 | Kotlin | 0 | 0 | c514152e9e2f0047514383fe536f7610a66aff70 | 2,233 | aoc-2022 | MIT License |
uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/expressions/KotlinCustomUBinaryExpression.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2021 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.uast.kotlin
import com.intellij.psi.PsiElement
import org.jetbrains.uast.*
class Kotli... | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 748 | intellij-kotlin | Apache License 2.0 |
load-the-image/src/main/java/com/lt/load_the_image/loader/image/FileLoadTheImage.kt | ltttttttttttt | 478,460,128 | false | {"Kotlin": 51069} | /*
* Copyright lt 2023
*
* 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 wri... | 1 | Kotlin | 3 | 33 | b0df20b73de63c7d2305676dc04507f7bc3a4c84 | 3,361 | load-the-image | Apache License 2.0 |
compiler/testData/diagnostics/tests/NamedFunctionTypeParameterInSupertype.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
abstract class A : Function1<Any, Unit>
abstract class B : (Int)->Unit
// Named parameter is prohibited because of possible inconsistency between
// type declaration and actual override
class C : (<!UNSUPPORTED!>x<!>: Int)->Unit {
override fun invoke(p1: Int): Unit {}
}
class D : (<!UNSUPPORTED!... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 489 | kotlin | Apache License 2.0 |
src/main/kotlin/me/thevipershow/connectionprotocol/event/server/ServerClosingEvent.kt | TheViperShow | 260,898,183 | false | null | // Copyright 2020 TheViperShow
//
// 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
//
package me.thevipershow.connectionprotocol.event.server
im... | 0 | Kotlin | 0 | 3 | 8f43e927c807721809c85aad5816b2163013c8ff | 526 | ConnectionProtocol | Apache License 2.0 |
src/test/kotlin/com/kh/service/AlarmSenderTest.kt | veluxer62 | 233,727,474 | false | null | package com.kh.service
import com.kh.api.config.AppConfig
import com.kh.util.mail.MailReader
import com.kh.util.mail.NaverMailReader
import com.kh.util.SecretProperties
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.springframework... | 10 | Kotlin | 0 | 1 | 3bd1ac68b6a6dbf985a58712e067b77413a790c8 | 1,877 | occupying | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/consumer/ws/BehandleInngaaendeJournalConsumer.kt | heyvard | 345,947,797 | false | {"Gradle": 1, "Markdown": 2, "CODEOWNERS": 1, "Gradle Kotlin DSL": 1, "SQL": 10, "Dockerfile": 3, "INI": 2, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Java Properties": 2, "Java": 45, "XML": 9, "Kotlin": 100, "YAML": 7, "SVG": 1} | package no.nav.syfo.consumer.ws
import log
import no.nav.syfo.behandling.FerdigstillJournalfoeringFerdigstillingIkkeMuligException
import no.nav.syfo.behandling.FerdigstillJournalfoeringJournalpostIkkeInngaaendeException
import no.nav.syfo.behandling.FerdigstillJournalfoeringObjektIkkeFunnetException
import no.nav.syf... | 1 | null | 1 | 1 | fe28e5708a0fdbc37809cf1a1139e216d764ddea | 6,944 | syfoinntektsmelding | MIT License |
app/src/main/java/io/ubyte/tldr/model/PageIdentifier.kt | bentarve | 446,247,450 | false | {"Kotlin": 49873} | package io.ubyte.tldr.model
data class PageIdentifier(
val id: Long,
val name: String,
val platform: String
) {
companion object {
fun mapToPageIdentifier(id: Long, name: String, platform: String) =
PageIdentifier(id, name, platform)
}
}
| 0 | Kotlin | 0 | 1 | 7e2dbe609e3223182d4045fa1a7498982719932a | 279 | tldr | Apache License 2.0 |
Android/app/src/main/java/com/didichuxing/doraemondemo/dokit/TestSimpleDokitFragmentKit.kt | didi | 144,705,602 | false | null | package com.didichuxing.doraemondemo.dokit
import android.app.Activity
import android.content.Context
import android.os.Bundle
import com.didichuxing.doraemondemo.R
import com.didichuxing.doraemonkit.kit.AbstractKit
import com.didichuxing.doraemonkit.kit.Category
/**
* @Author: changzuozhen
* @Date: 2020-12-22
*/
... | 252 | null | 3074 | 20,003 | 166a1a92c6fd509f6b0ae3e8dd9993f631b05709 | 865 | DoKit | Apache License 2.0 |
test/src/me/anno/tests/game/creeperworld/RockType.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.tests.game.creeperworld
import me.anno.image.Image
import me.anno.image.raw.IntImage
import me.anno.language.translation.NameDesc
class RockType(
val id: Int, val name: NameDesc,
val properties: Map<RockProperty, Float>,
val texture: Image
) {
constructor(id: Int, name: NameDesc, prope... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 449 | RemsEngine | Apache License 2.0 |
app/src/main/java/com/example/wingspanscores/room/ScoreAndPlayer.kt | ganaha | 329,210,232 | false | null | package com.example.wingspanscores.room
import androidx.room.Embedded
import androidx.room.Relation
data class ScoreAndPlayer(
@Embedded val score: Score,
@Relation(
parentColumn = "player_id",
entityColumn = "id",
entity = Player::class
) val player: Player
)
| 0 | Kotlin | 0 | 0 | 3d7383aa9d9fd65339ab5ec8ad10608934ddab08 | 299 | wingspanscores | MIT License |
app/src/main/java/com/andressaggudelo/navigation/ConfirmationFragment.kt | casa98 | 238,307,692 | false | null | package com.andressaggudelo.navigation
import android.content.Intent
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import android.widget.Toast
import androidx.core.app.ShareCompat
import androidx.databinding.DataBindingUtil
import com.andressaggudelo.navigation.databinding.Fragm... | 0 | Kotlin | 0 | 0 | 72a85f98d9232c681d6dcde6974c2e17698793a8 | 1,892 | Navigation | MIT License |
core/src/main/java/com/example/core/di/CoreNetworkModule.kt | rakhmukova | 716,540,491 | false | {"Kotlin": 364537} | package com.example.core.di
import com.example.core.network.AuthInterceptor
import dagger.Module
import dagger.Provides
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit
@Module
class CoreNetworkModule {
@Provides
fu... | 0 | Kotlin | 0 | 0 | 7707ae1fac0dcbf98b79596cda5f5308f5e908ab | 1,176 | travel-app | Apache License 2.0 |
attributes-kt/src/commonMain/kotlin/space/kscience/attributes/annotations.kt | SciProgCentre | 129,486,382 | false | {"Kotlin": 2003550, "ANTLR": 887} | /*
* Copyright 2018-2023 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.attributes
/**
* Marks declarations that are still experimental in the Attributes-kt APIs, which means that the design of the co... | 88 | Kotlin | 55 | 645 | 6c1a5e62bff541cca8065e4ab4c97d02a29d685a | 813 | kmath | Apache License 2.0 |
app/src/main/java/com/challenge/weather/data/WeatherRepositoryService.kt | temobgallardo | 878,532,101 | false | {"Kotlin": 47177} | package com.challenge.weather.data
import androidx.datastore.core.DataStore
import com.challenge.weather.data.local.WeatherToStore
import com.challenge.weather.domain.IWeatherRepository
import com.challenge.weather.domain.models.Weather
import kotlinx.coroutines.flow.first
import javax.inject.Inject
class WeatherRepo... | 0 | Kotlin | 0 | 0 | d27f9204d49eda04a91a9200ac1391538320a5b3 | 1,415 | weather-droid | MIT License |
src/jvmMain/kotlin/fr/acinq/lightning/bin/Actuals.kt | ACINQ | 769,273,066 | false | null | package fr.acinq.lightning.bin
import app.cash.sqldelight.db.QueryResult
import app.cash.sqldelight.db.SqlCursor
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver
import fr.acinq.bitcoin.Chain
import fr.acinq.bitcoin.PublicKey
import fr.acinq.lightning.bin.conf.EnvV... | 9 | null | 14 | 99 | 9414518536f32bba8e6c88c809a7e34f8bbdfa85 | 1,807 | phoenixd | Apache License 2.0 |
src/test/kotlin/net/notjustanna/testbot/HelpCommand.kt | NotJustAnna | 202,241,367 | false | null | package net.notjustanna.testbot
import org.kodein.di.Kodein
import org.kodein.di.KodeinAware
import org.kodein.di.generic.instance
import net.notjustanna.psi.commands.Category
import net.notjustanna.psi.commands.Command
import net.notjustanna.psi.commands.ICategory
import net.notjustanna.psi.commands.ICommand
import n... | 1 | null | 1 | 1 | dbf06eb87a74a92aad7c7d9c9af417fa383e01fe | 1,008 | psi-framework | Apache License 2.0 |
app/src/main/java/com/nide/pocketpass/ui/costomeview/PasswordWithIndicator.kt | IamDebashis | 536,854,826 | false | null | package com.nide.pocketpass.ui.costomeview
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.widget.doOnTextChanged
import com.nide.pocketpass.databinding.PasswordInputLayoutBinding
import com... | 0 | Kotlin | 0 | 0 | 3166737fa1d45beb78a09cd8b4490bd3334cbcd2 | 1,762 | pocketpass | MIT License |
src/app/src/main/kotlin/org/vaccineimpact/orderlyweb/security/clients/JWTCookieClient.kt | vimc | 173,126,600 | false | null | package org.vaccineimpact.orderlyweb.security.clients
import org.pac4j.http.client.direct.CookieClient
import org.vaccineimpact.orderlyweb.models.ErrorInfo
import org.vaccineimpact.orderlyweb.security.authentication.OrderlyWebBearerTokenAuthenticator
import org.vaccineimpact.orderlyweb.security.authentication.TokenVer... | 6 | Kotlin | 4 | 4 | 4c18736db6263fe8115699f036ab2469081bfb97 | 1,153 | orderly-web | MIT License |
example/src/main/java/app/futured/arkitekt/sample/ui/bottomsheet/ExampleViewState.kt | futuredapp | 124,508,581 | false | {"Kotlin": 357272, "Java": 1724, "Ruby": 1104} | package app.futured.arkitekt.sample.ui.bottomsheet
import app.futured.arkitekt.core.ViewState
import javax.inject.Inject
class ExampleViewState @Inject constructor() : ViewState
| 10 | Kotlin | 9 | 120 | 2a3d089342a53f4a09e6055a9076275974dc3f04 | 180 | arkitekt | MIT License |
tokenizer/src/commonMain/kotlin/com/xebia/functional/tokenizer/internal/SpecialTokens.kt | xebia-functional | 629,411,216 | false | null | package com.xebia.functional.tokenizer.internal
private const val ENDOFTEXT = "<|endoftext|>"
private const val FIM_PREFIX = "<|fim_prefix|>"
private const val FIM_MIDDLE = "<|fim_middle|>"
private const val FIM_SUFFIX = "<|fim_suffix|>"
private const val ENDOFPROMPT = "<|endofprompt|>"
internal val SPECIAL_TOKENS_X5... | 10 | Kotlin | 8 | 89 | a762a968c31778f0a314a204f6b10340cec38336 | 843 | xef | Apache License 2.0 |
buildSrc/src/main/kotlin/io/getstream/chat/android/command/release/plugin/ReleasePlugin.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | package io.getstream.chat.android.command.release.plugin
import io.getstream.chat.android.command.release.task.ReleaseTask
import io.getstream.chat.android.command.utils.registerExt
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.create
private const val CONFIG_CLOJURE_NAME = "... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 735 | stream-chat-android | FSF All Permissive License |
src/main/kotlin/me/earthme/mysm/data/mod/YsmVersionMetaArray.kt | Era4FunMC | 701,306,363 | false | {"Kotlin": 140635, "Java": 31228} | package me.earthme.mysm.data
import com.google.gson.Gson
data class YsmVersionMetaArray (
val versionMetas: Array<YsmVersionMeta>
){
companion object{
private val gson: Gson = Gson()
fun readFromJson(data: String): YsmVersionMetaArray{
return gson.fromJson(data,YsmVersionMetaArray... | 0 | Kotlin | 6 | 9 | 5203fa9d4f30f7e2a8e59541a2098eacb0d4fd87 | 691 | MyYsmNonFull | MIT License |
idea/testData/multiModuleHighlighting/multiplatform/withOverrides/common/common.kt | SuavePirate | 96,431,961 | true | {"Java": 23927249, "Kotlin": 23408331, "JavaScript": 138621, "Protocol Buffer": 57064, "HTML": 52379, "Lex": 18174, "Groovy": 14228, "ANTLR": 9797, "IDL": 8057, "Shell": 5436, "CSS": 4679, "Batchfile": 4437} | header fun foo(arg: Int): Int
<error>header fun foo(): Int</error>
| 0 | Java | 0 | 1 | 6200d078085457dafc86d896eba2c82e8022343f | 68 | kotlin | Apache License 2.0 |
idea/testData/multiModuleHighlighting/multiplatform/withOverrides/common/common.kt | SuavePirate | 96,431,961 | true | {"Java": 23927249, "Kotlin": 23408331, "JavaScript": 138621, "Protocol Buffer": 57064, "HTML": 52379, "Lex": 18174, "Groovy": 14228, "ANTLR": 9797, "IDL": 8057, "Shell": 5436, "CSS": 4679, "Batchfile": 4437} | header fun foo(arg: Int): Int
<error>header fun foo(): Int</error>
| 0 | Java | 0 | 1 | 6200d078085457dafc86d896eba2c82e8022343f | 68 | kotlin | Apache License 2.0 |
app/src/main/java/com/kradwan/codegeneartormvvmsample/presentation/_base/BaseViewModel.kt | kareemradwan | 466,471,601 | false | {"Kotlin": 44826} | package com.kradwan.codegeneartormvvmsample.presentation._base
import androidx.lifecycle.*
import androidx.navigation.NavDirections
import kotlinx.coroutines.*
abstract class BaseViewModel<StateEvent, ViewState> : ViewModel() {
private var _navigateScreen = MutableLiveData<NavDirections>()
val navigateScree... | 2 | Kotlin | 1 | 0 | 0483820a9b91783069aa1eec37e467a37ef650b9 | 1,563 | Android-Mvvm-Template | MIT License |
store/src/main/java/br/com/zup/nimbus/store/nimbus/CachedImageProvider.kt | ZupIT | 495,447,304 | false | {"Kotlin": 183596, "Shell": 1211} | package br.com.zup.nimbus.store.nimbus
import android.graphics.Bitmap
import br.com.zup.nimbus.compose.layout.configuration.DefaultImageProvider
/**
* An image provider with a very simple in-memory caching mechanism for remote images.
*/
class CachedImageProvider: DefaultImageProvider() {
private val cache = mu... | 2 | Kotlin | 4 | 7 | 59078f425b4e4e806f8c5d883df53a633432f61a | 525 | nimbus-layout-compose | Apache License 2.0 |
app/src/main/java/com/romandevyatov/bestfinance/utils/DateTimeUtils.kt | RomanDevyatov | 587,557,441 | false | {"Kotlin": 570252} | package com.romandevyatov.bestfinance.utils
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import android.widget.EditText
import com.romandevyatov.bestfinance.data.roomdb.converters.LocalDateTimeRoomTypeConverter
import java.text.SimpleDateFormat
import java.util.Calendar
class DateTimeUtils ... | 1 | Kotlin | 0 | 1 | bc88dc81ebb68a2f51f34d8051c38ca79ced5d1d | 2,248 | BestFinance | Apache License 2.0 |
hamming-error-correction/src/main/kotlin/com/pivovarit/hamming/domain/encode/HammingEncoder.kt | pivovarit | 101,035,547 | false | {"Maven POM": 30, "Text": 3, "Ignore List": 5, "Markdown": 32, "Batchfile": 1, "Shell": 1, "INI": 6, "Java": 110, "HTML": 5, "Kotlin": 22, "YAML": 5, "CODEOWNERS": 1, "AsciiDoc": 2, "SQL": 2, "JavaScript": 18, "JSON": 2, "CSS": 17, "SCSS": 15} | package com.pivovarit.hamming.domain.encode
import com.pivovarit.hamming.domain.BinaryString
import com.pivovarit.hamming.domain.EncodedString
import com.pivovarit.hamming.domain.encode.stateless.ParallelStatelessHammingEncoder
import com.pivovarit.hamming.domain.encode.stateless.SequentialStatelessHammingEncoder
int... | 7 | JavaScript | 37 | 131 | 54d34270d36139e0ff8f0fd04cc9f2e527f0626d | 598 | articles | Apache License 2.0 |
nomic-db/src/main/kotlin/nomic/db/NotCompiledBox.kt | sn3d | 105,742,759 | false | null | package nomic.db
import nomic.core.exception.NotCompiledBoxException
import nomic.compiler.Compiler
import nomic.core.*
/**
* @author vrabel.zdenko@gmail.com
*/
class NotCompiledBox(
override val name: String,
override val group: String,
override val version: String,
override val script: Script,
override val d... | 0 | Kotlin | 0 | 2 | 0f7bf3288eb135ae0279f570a9f2dd454bf59adb | 1,001 | nomic | Apache License 2.0 |
androidApp/src/main/java/com/prof18/moneyflow/features/addtransaction/AddTransactionScreen.kt | prof18 | 290,316,981 | false | null | package com.prof18.moneyflow.features.addtransaction
import android.content.res.Configuration
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Icon
import androidx.compose.material.... | 2 | null | 36 | 316 | 10dd0154ec3349d3f5ddbd5165e30558c91f2a5a | 10,948 | MoneyFlow | Apache License 2.0 |
design-system/src/debug/kotlin/org/a_cyb/sayitalarm/design_system/molecule/PopUpPickerPreview.kt | a-cyborg | 751,578,623 | false | {"Kotlin": 713068} | /*
* Copyright (c) 2024 <NAME> / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package org.a_cyb.sayitalarm.design_system.molecule
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import org... | 0 | Kotlin | 0 | 0 | f20079c06adf86e8297ab8322887c875715e6cd1 | 1,867 | SayItAlarm | Apache License 2.0 |
composeApp/src/commonMain/kotlin/me/bitlinker/compose800/App.kt | bitlinker | 759,543,125 | false | {"Kotlin": 49987, "HTML": 642, "Swift": 532, "JavaScript": 475, "CSS": 102} | import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.remember
import com.arkivanov.essenty.statekeeper.StateKeeper
import com.arkivanov.essenty.statekeeper.StateKeeperDispatcher
import me.bitlinker.compose800.repository.GameSettingsRepository
import m... | 0 | Kotlin | 0 | 1 | b9fe25457df6b5827c6bd59805fdb0c88f56eb15 | 1,270 | 0x800 | MIT License |
src/main/kotlin/no/nav/omsorgsdagermeldingapi/felles/LoggStatusFormat.kt | navikt | 317,523,234 | false | null | package no.nav.helse.prosessering.v1.asynkron.deleOmsorgsdager
//Brukes når man logger status i flyten. Formaterer slik at loggen er mer lesbar
internal fun formaterStatuslogging(id: String, melding: String): String {
return String.format("Melding med søknadID: %1$36s %2$1s", id, melding)
} | 1 | Kotlin | 1 | 0 | f6298e28c7ce0f2123203f128c9b254d22d4351d | 296 | omsorgsdageroverforingsoknad-prosessering | MIT License |
src/main/java/jukebot/framework/SubCommand.kt | Devoxin | 104,263,117 | false | null | package jukebot.framework
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
@kotlin.annotation.Target(AnnotationTarget.FUNCTION)
annotation class SubCommand(
val trigger: String,
val description: String
)
| 0 | Kotlin | 11 | 32 | aae5a159a6a9f53481ef3a863079f95a126606ae | 223 | JukeBot | Apache License 2.0 |
project-system-gradle/src/com/android/tools/idea/projectsystem/gradle/LinkedAndroidModuleGroupUtils.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,885 | android | Apache License 2.0 |
data/src/main/java/serat/maemaeen/data/repository/StoriesRemoteDataSource.kt | AliMansoorzare | 578,880,407 | false | null | package serat.maemaeen.data.repository
import kotlinx.coroutines.withContext
import serat.maemaeen.data.Api.StoryApi
import serat.maemaeen.data.mapper.StoryDataMapper
import serat.maemaeen.data.util.DispatchersProvider
import serat.maemaeen.domain.entiities.StoriesEntitiesItem
import serat.maemaeen.domain.util.Result
... | 0 | Kotlin | 0 | 0 | b5675394c5fa7af231d2b918fb77dfb2fcf078c8 | 877 | Android-Clean-Architecture | MIT License |
xml/xml-psi-impl/src/com/intellij/html/embedding/HtmlAttributeEmbeddedContentProvider.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.html.embedding
import com.intellij.lexer.BaseHtmlLexer
import com.intellij.lexer.isAttributeEmbedmentToken
import com.intellij.openapi.util.TextRange
import ... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,866 | intellij-community | Apache License 2.0 |
src/main/kotlin/online/senpai/schedbot/Launcher.kt | SenpaiOnline | 376,016,388 | false | null | package online.senpai.schedbot
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.options.default
import com.github.ajalt.clikt.parameters.options.option
import com.github.ajalt.clikt.parameters.options.required
import com.github.ajalt.clikt.parameters.types.enum
import com.github... | 4 | Kotlin | 1 | 0 | 3e9b27c5bcd10d736c81b667c0859e47689bb778 | 1,618 | schedbot | Apache License 2.0 |
app/src/test/java/uk/co/sentinelweb/qcstechtest/net/RepoRetrofitRepositoryTest.kt | sentinelweb | 212,645,607 | false | null | package uk.co.sentinelweb.qcstechtest.net
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.flextrade.jfixture.FixtureAnnotations
import com.flextrade.jfixture.annotations.Fixture
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.whenever
import kotlinx.coroutines... | 0 | Kotlin | 0 | 0 | c708afe20bbee3fd54b0598803517e32566bbc29 | 2,252 | qcs_test | Apache License 2.0 |
library/src/main/kotlin/com/devbrackets/android/exomedia/core/video/surface/ResizingTextureView.kt | brianwernick | 32,229,221 | false | null | /*
* Copyright (C) 2016 - 2021 ExoMedia Contributors,
* Copyright (C) 2014 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.o... | 26 | Kotlin | 370 | 1,956 | 201b76bc23a53e27b5ac66a943f478aa63266a73 | 12,317 | ExoMedia | Apache License 2.0 |
src/main/kotlin/com/example/demo/datafetchers/ShowsDataFetcher.kt | Netflix | 327,168,226 | false | null | /*
* Copyright 2021 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Kotlin | 19 | 39 | 00f553f9c243c0e2fcb987c8ed09e0869ea4aff6 | 1,512 | dgs-examples-kotlin | Apache License 2.0 |
app/src/main/java/com/raassh/gemastik15/view/fragments/reviewhistory/ReviewHistoryFragment.kt | NTS-NTS | 540,716,155 | false | {"Kotlin": 405622} | package com.raassh.gemastik15.view.fragments.reviewhistory
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.PopupMenu
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavCon... | 6 | Kotlin | 0 | 1 | 453b696b4c5f3a2b775efc5a4c81864692812896 | 6,299 | PPL-Gemastik-15-Android | MIT License |
app/src/main/java/de/rauschdo/eschistory/utility/DataSource.kt | rauschdo | 739,847,191 | false | {"Kotlin": 53992} | package de.rauschdo.eschistory.utility
import android.content.Context
import android.content.res.Resources
import com.google.gson.GsonBuilder
import de.rauschdo.eschistory.data.ContestsList
import de.rauschdo.eschistory.data.CountryList
import de.rauschdo.eschistory.utility.DataSource.parseJson
import io.realm.kotlin.... | 0 | Kotlin | 0 | 0 | 0b48e7ac79f1e3c6ee97fbac334638df6dd75890 | 1,243 | ESC-History | MIT License |
app/src/main/java/com/kieronquinn/app/discoverkiller/ui/screens/backgroundpicker/SettingsBackgroundPickerViewModel.kt | KieronQuinn | 273,963,637 | false | {"Kotlin": 417138, "Java": 18179, "AIDL": 4171} | package com.kieronquinn.app.discoverkiller.ui.screens.backgroundpicker
import android.content.Context
import android.graphics.Bitmap
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.kieronquinn.app.discoverkiller.components.splash.RemoteSplashLoader
import com.kieronquinn.app.dis... | 1 | Kotlin | 8 | 302 | 8a59868f5de7493b685c20a38239b08f8c1c9259 | 2,235 | DiscoverKiller | Apache License 2.0 |
JetpackTest/app/src/main/java/com/example/jetpacktest/MainViewModel.kt | Chiu-xaH | 860,949,434 | false | {"Kotlin": 556183, "C++": 23070, "CMake": 18778, "HTML": 5262, "Dart": 3816, "Swift": 2070, "C": 1425, "Java": 1162, "Objective-C": 38} | package com.example.jetpacktest
import android.view.animation.Transformation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
//LiveData
class MainViewModel(sz:Int) : ViewModel() {
val number : LiveData<Int>
get() = _number //隐秘写法
private... | 0 | Kotlin | 0 | 0 | 961ff7cd1d3b6c4b6e2cf2687cb5b01e643cd832 | 529 | Android-Practice | Apache License 2.0 |
komga/src/main/kotlin/org/gotson/komga/infrastructure/language/Utils.kt | thephpman | 358,859,805 | true | {"Kotlin": 699543, "Vue": 362588, "TypeScript": 86160, "JavaScript": 2807, "Shell": 2730, "HTML": 704, "Dockerfile": 552, "Sass": 309, "CSS": 295} | package org.gotson.komga.infrastructure.language
import java.util.Enumeration
import java.util.SortedMap
fun <T> List<T>.toIndexedMap(): SortedMap<Int, T> =
mapIndexed { i, e -> i to e }.toMap().toSortedMap()
fun <T> List<T>.toEnumeration(): Enumeration<T> {
return object : Enumeration<T> {
var count = 0
... | 0 | null | 0 | 0 | 9d3707534f0e016b3624dd6afa78f679da44532a | 614 | komga | MIT License |
src/test/kotlin/com/ecwid/apiclient/v3/CouponsTest.kt | Alexeyyy | 288,178,467 | true | {"Kotlin": 428980} | package com.ecwid.apiclient.v3
import com.ecwid.apiclient.v3.converter.toUpdated
import com.ecwid.apiclient.v3.dto.coupon.request.*
import com.ecwid.apiclient.v3.dto.order.enums.DiscountCouponApplicationLimit
import com.ecwid.apiclient.v3.dto.order.enums.DiscountCouponStatus
import com.ecwid.apiclient.v3.dto.order.enu... | 0 | Kotlin | 0 | 0 | c52ef344a82d1884a633354b4e6b97984e3147ba | 9,511 | ecwid-java-api-client | Apache License 2.0 |
data/src/main/java/com/nemesis/rio/data/mplus/scores/database/MythicPlusScoresDatabaseSource.kt | N3-M3-S1S | 370,791,918 | false | null | package com.nemesis.rio.data.mplus.scores.database
import com.nemesis.rio.data.profile.database.ProfileIDProvider
import com.nemesis.rio.data.profile.database.withProfileID
import com.nemesis.rio.domain.game.Expansion
import com.nemesis.rio.domain.mplus.scores.MythicPlusScore
import com.nemesis.rio.domain.mplus.scores... | 0 | Kotlin | 0 | 0 | 62dc309a7b4b80ff36ea624bacfa7b00b5d8607e | 1,677 | rio | MIT License |
async/src/main/kotlin/ktx/async/assets/wrapper.kt | itsabhiaryan | 152,832,509 | true | {"Kotlin": 786759, "GLSL": 68} | package ktx.async.assets
import com.badlogic.gdx.Application
import com.badlogic.gdx.assets.AssetDescriptor
import com.badlogic.gdx.assets.AssetLoaderParameters
import com.badlogic.gdx.assets.AssetManager
import com.badlogic.gdx.assets.loaders.AssetLoader
import com.badlogic.gdx.assets.loaders.FileHandleResolver
impor... | 0 | Kotlin | 0 | 0 | e806250c921c2d780e638a7d654d2f0af1e0732d | 5,849 | ktx | Creative Commons Zero v1.0 Universal |
parkingmanagement-api/src/main/kotlin/parkandrest/parkingmanagement/api/parkingmeter/CheckParkingSpaceRequest.kt | pokemzok | 166,366,410 | false | null | package parkandrest.parkingmanagement.api.parkingmeter
data class CheckParkingSpaceRequest(var parkingSpaceId: Long) | 0 | Kotlin | 0 | 1 | f079ade5c5407ac1d41dfb3432f8ba1b10c1b274 | 117 | parkandrest-kotlin | MIT License |
puzzlelayout/src/main/java/com/hypersoft/pzlayout/view/PuzzleView.kt | hypersoftdev | 859,698,909 | false | {"Kotlin": 308865} | package com.hypersoft.pzlayout.view
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Matrix
import android.graphics.Paint
import android.graphics.PointF
import android.graphics.RectF... | 0 | Kotlin | 1 | 0 | 420b9296ddbd5cbe033d4658568151333ef4e5c4 | 55,787 | PuzzleLayout | Apache License 2.0 |
library/src/main/kotlin/me/proxer/library/enums/NotificationFilter.kt | proxer | 43,981,937 | false | {"Kotlin": 492567} | package me.proxer.library.enums
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* Enum holding the available notification filters.
*
* @author <NAME>
*/
@JsonClass(generateAdapter = false)
enum class NotificationFilter {
@Json(name = "0")
ALL,
@Json(name = "1")
UNREAD,
... | 0 | Kotlin | 2 | 13 | f55585b485c8eff6da944032690fe4de40a58e65 | 351 | ProxerLibJava | MIT License |
kotlin/34.Find First and Last Position of Element in Sorted Array(在排序数组中查找元素的第一个和最后一个位置).kt | learningtheory | 141,790,045 | false | {"Python": 4025652, "C++": 1999023, "Java": 1995266, "JavaScript": 1990554, "C": 1979022, "Ruby": 1970980, "Scala": 1925110, "Kotlin": 1917691, "Go": 1898079, "Swift": 1827809, "HTML": 124958, "Shell": 7944} | /**
<p>Given an array of integers <code>nums</code> sorted in ascending order, find the starting and ending position of a given <code>target</code> value.</p>
<p>Your algorithm's runtime complexity must be in the order of <em>O</em>(log <em>n</em>).</p>
<p>If the target is not found in the array, return <code>[-1... | 0 | Python | 1 | 3 | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | 1,706 | leetcode | MIT License |
nbt_domain/src/main/java/com/example/nbt_domain/models/Food.kt | adnanharis | 326,511,418 | false | null | package com.example.nbt_domain.models
/**
* A sample model
*/
data class Food(var id: String, var name: String, var imageUrl: String, val category: String)
| 0 | Kotlin | 0 | 0 | 839f61fcdbb3f5ca547f2991554b107a8021dab4 | 159 | DinDinnTest | Apache License 2.0 |
clients/kotlin/generated/src/main/kotlin/io/swagger/client/models/MultibranchPipeline.kt | zhiwei55 | 127,058,165 | true | {"Java": 7756283, "C++": 3985373, "C#": 3367837, "PHP": 2639235, "HTML": 2016332, "Python": 1451773, "Swift": 1288941, "TypeScript": 1232093, "Ruby": 1108711, "JavaScript": 1092066, "Apex": 949936, "Perl": 725589, "Scala": 534194, "Objective-C": 470063, "Eiffel": 428606, "Shell": 359635, "ActionScript": 258239, "Go": 2... | /**
* <NAME>
* Jenkins API clients generated from Swagger / Open API specification
*
* OpenAPI spec version: 0.1.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger... | 0 | Java | 0 | 0 | 678b5477f5f9f00022b176c34b840055fb1b0a77 | 1,492 | swaggy-jenkins | MIT License |
zettai_step6_validation/src/main/kotlin/com/ubertob/fotf/zettai/queries/ToDoListProjection.kt | uberto | 654,026,766 | false | null | package com.ubertob.fotf.zettai.queries
import com.ubertob.fotf.zettai.domain.ListName
import com.ubertob.fotf.zettai.domain.ToDoItem
import com.ubertob.fotf.zettai.domain.ToDoList
import com.ubertob.fotf.zettai.domain.User
import com.ubertob.fotf.zettai.events.*
import com.ubertob.fotf.zettai.eventsourcing.*
import c... | 0 | Kotlin | 0 | 2 | 2f80b8f4022cacbf6d7a92919224f98d37453a4d | 2,332 | fotf | MIT License |
app/src/main/java/com/example/tangoapp/data/ApiService.kt | ispam | 381,165,084 | false | null | package com.example.tangoapp.data
import com.example.tangoapp.data.entities.News
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Headers
interface ApiService {
@Headers("Content-Type: application/json")
@GET("/v3/articles")
suspend fun getArticles(): Response<List<News>>
} | 0 | Kotlin | 0 | 0 | 5ab3fd745ffe8cfdf389c9f5422643100a358668 | 314 | tango_app | Apache License 2.0 |
src/test/kotlin/com/igorwojda/integer/stepsgenerator/Challenge.kt | igorwojda | 159,511,104 | false | null | package com.igorwojda.integer.stepsgenerator
import org.amshove.kluent.shouldBeEqualTo
import org.junit.jupiter.api.Test
fun generateSteps(n: Int): List<String> {
TODO("Add your solution here")
}
private class Test {
@Test
fun `steps n = 1`() {
val actual = generateSteps(1)
actual.size sh... | 5 | null | 236 | 958 | c6845b4cca1a32dc266d187497e1b38f5efaf43d | 818 | kotlin-coding-challenges | MIT License |
plugins/java-model-wrappers/src/org/jetbrains/kotlin/java/model/types/JeIntersectionType.kt | gigliovale | 89,726,097 | false | {"Java": 23302590, "Kotlin": 21941511, "JavaScript": 137521, "Protocol Buffer": 56992, "HTML": 49980, "Lex": 18051, "Groovy": 14093, "ANTLR": 9797, "IDL": 7706, "Shell": 5152, "CSS": 4679, "Batchfile": 3721} | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* 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... | 1 | Java | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 1,833 | kotlin | Apache License 2.0 |
app/src/main/java/com/vobbla16/mesh/ui/screens/lessonScreen/subscreens/DescriptionTab.kt | x3lfyn | 654,997,267 | false | {"Kotlin": 369716} | package com.vobbla16.mesh.ui.screens.lessonScreen.subscreens
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Materia... | 5 | Kotlin | 1 | 6 | f7120e47b483dc1da21125274f34c9570d1fd8b4 | 2,374 | libremesh | MIT License |
app/src/main/java/polyadapter/sample/CategoryDelegate.kt | trevjonez | 136,749,590 | false | null | package polyadapter.sample
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import polyadapter.PolyAdapter
import polyadapter.equalityItemCallback
import polyadapter.sample.databinding.CategoryItemBinding
import javax.inject.Inject
class CategoryDelegate @Inject constructor() : PolyAdapter.Bi... | 0 | Kotlin | 1 | 10 | 80ca796cc33d1909194a1ba41b9fe0ccdb0c31f5 | 1,043 | PolyAdapter-Android | Apache License 2.0 |
src/main/kotlin/com/antwerkz/bottlerocket/configuration/blocks/SystemLog.kt | evanchooly | 36,263,772 | false | null | package com.antwerkz.bottlerocket.configuration.blocks
import com.antwerkz.bottlerocket.configuration.ConfigBlock
import com.antwerkz.bottlerocket.configuration.types.Destination
import com.antwerkz.bottlerocket.configuration.types.RotateBehavior
import com.antwerkz.bottlerocket.configuration.types.TimestampFormat
imp... | 4 | Kotlin | 1 | 2 | dceb89cb720716a3fe13b3d64f53af1e4426108f | 920 | bottlerocket | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.