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/me/bristermitten/plumber/command/CommandAspectConfig.kt | knightzmc | 205,340,852 | false | null | package me.bristermitten.plumber.command
import co.aikar.commands.PaperCommandManager
import me.bristermitten.plumber.aspect.AspectConfig
interface CommandAspectConfig : AspectConfig<CommandAspect> {
fun beforeRegistration(commandManager: PaperCommandManager)
fun afterRegistration(commandManager: PaperCommand... | 0 | Kotlin | 1 | 5 | 94086cda311397d42e7b603daaffbeb877f14177 | 331 | plumber | MIT License |
kotlin/com/google/pegtyped/Core.kt | google | 282,078,906 | false | null | // Copyright 2020 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 in ... | 0 | Kotlin | 3 | 3 | d79b6fd5acfa3e94b4cfd8d90a31dfe6f2597306 | 2,570 | peg-typed | Apache License 2.0 |
services/csm.cloud.project.activity/src/test/kotlin/com/bosch/pt/csm/cloud/projectmanagement/util/AuthorizationTestUtils.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: Robert Bosch Power Tools GmbH, 2018 - 2021
*
* ************************************************************************
*/
package com.bosch.pt.csm.cloud.projectmanagement.util
import com.bosch.pt.csm.cloud.proje... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 1,614 | bosch-pt-refinemysite-backend | Apache License 2.0 |
app/src/main/java/ren/imyan/kirby/ui/ResViewHolder.kt | KirbyAssistant | 316,526,859 | false | null | package ren.imyan.kirby.ui
import androidx.recyclerview.widget.RecyclerView
import ren.imyan.kirby.databinding.ItemResBinding
/**
* @author EndureBlaze/炎忍 https://github.com.EndureBlaze
* @data 2021-02-10 19:46
* @website https://imyan.ren
*/
class ResViewHolder(itemResBinding: ItemResBinding) : RecyclerView.View... | 0 | Kotlin | 0 | 2 | d2bfb15d59373646ab360d09dd8a16d22c9ca571 | 590 | Kirby_Assistant_New | MIT License |
src/main/kotlin/li/cli/oc/blockentity/Netsplitter.kt | rschulman | 321,812,124 | true | {"Kotlin": 146460} | package li.cli.oc.blockentity
import li.cli.oc.blockentity.commons.TecBlockEntity
import li.cli.oc.components.BlockEntitiesComponent
class Netsplitter: TecBlockEntity(BlockEntitiesComponent.Netsplitter) | 0 | Kotlin | 0 | 1 | 5f7e00057e053151967990b5a5db63184a2d22c8 | 205 | OpenComputers | Creative Commons Zero v1.0 Universal |
searchExecutorUseCase/src/main/java/com/krawczyk/maciej/searchUseCase/SearchExecutor.kt | mkAndroDev | 600,088,308 | false | null | package com.krawczyk.maciej.searchUseCase
import com.krawczyk.maciej.repository.Repository
import com.krawczyk.maciej.searchUseCase.models.SearchDataItem
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
class SearchExecutor(
private val repository: Repository
) {
suspend fun provideSear... | 0 | Kotlin | 0 | 0 | e9add518f32fb6319e47850fa8f8305723e492cb | 502 | PicturesFinder | Apache License 2.0 |
app/src/main/java/com/movicom/informativeapplicationcovid19/network/retrofit/CountyService.kt | SebastianRV26 | 289,597,953 | false | null | package com.movicom.informativeapplicationcovid19.network.retrofit
import com.movicom.informativeapplicationcovid19.models.Cases
import com.movicom.informativeapplicationcovid19.models.Country
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
/**
* Servicios de paises.
*/
interface CountySe... | 0 | Kotlin | 0 | 1 | bf3bc1dfc9bdb3cb71a503f81a0cb778240283a2 | 506 | Info-COVID-App | MIT License |
library/src/main/java/com/github/welshk/eirene/exoplayer/EireneView.kt | welshk91 | 181,618,313 | false | {"Kotlin": 43172, "Java": 385} | package com.github.welshk.eirene.exoplayer
import android.content.Context
import android.net.Uri
import android.os.Handler
import android.view.KeyEvent
import android.view.View
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.ProgressBar
import android.widget.TextView
import andr... | 3 | Kotlin | 0 | 2 | 0db7fdb9ae0916145a6e1e6fe46369179f6ab4ad | 8,718 | Eirene | Apache License 2.0 |
animationer/src/main/java/com/base/animation/item/StringDisplayItem.kt | zzechao | 705,970,999 | false | {"Kotlin": 194616, "Java": 3902} | package com.base.animation.item
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PointF
import android.os.Build
import android.text.Layout
import android.text.StaticLayout
import android.text.TextPaint
import com.base.animation.IClickIntercept
import com.base.animation.model.AnimDra... | 0 | Kotlin | 0 | 5 | 5eb66d218da0553330836e9b885d03aff78bbf9a | 2,703 | CanvasAnimation | Apache License 2.0 |
data/src/main/java/com/paypay/data/local/CurrenciesLocalSourceImpl.kt | oianmol | 508,191,089 | false | null | package com.mm.data.local
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.intPreferencesKey
import androidx.datastore.preferences.core.longPreferencesKey
import androidx.paging.Pag... | 1 | Kotlin | 1 | 4 | 8a152bfe52ea57fb4954f7a27e7d4d3513a42d42 | 4,402 | CurrencyConverter | Apache License 2.0 |
Mobile_APP_Smart_Presence/app/src/main/java/it/polito/interdisciplinaryProjects2021/smartpresence/others/SettingFragment.kt | stlssg | 495,092,024 | false | {"Kotlin": 367522, "Python": 180614} | package it.polito.interdisciplinaryProjects2021.smartpresence.others
import android.annotation.SuppressLint
import android.app.AlarmManager
import android.app.PendingIntent
import android.app.TimePickerDialog
import android.content.Context
import android.content.Context.ALARM_SERVICE
import android.content.Intent
impo... | 0 | Kotlin | 0 | 0 | f9caa2d54a30b32210ad7eb0a18c998da00b3d1f | 23,666 | Interdisciplinary-project | MIT License |
app/src/main/java/com/vwoom/timelapsegallery/data/repository/ProjectRepository.kt | CEThompson | 209,829,812 | false | null | package com.vwoom.timelapsegallery.data.repository
import com.vwoom.timelapsegallery.camera2.SensorData
import com.vwoom.timelapsegallery.data.dao.CoverPhotoDao
import com.vwoom.timelapsegallery.data.dao.PhotoDao
import com.vwoom.timelapsegallery.data.dao.ProjectDao
import com.vwoom.timelapsegallery.data.dao.ProjectSc... | 0 | Kotlin | 0 | 1 | d65a824720af3ec630d9a6919fa884ce1042ea25 | 8,593 | TimeLapseGallery | Apache License 2.0 |
core/src/com/efm/ui/gameScreen/RightStructure.kt | mmarlewski | 611,681,057 | false | {"Kotlin": 1093910, "Shell": 814} | package com.efm.ui.gameScreen
import com.badlogic.gdx.scenes.scene2d.Actor
import com.badlogic.gdx.scenes.scene2d.ui.ImageButton
import com.badlogic.gdx.scenes.scene2d.ui.Window
import com.badlogic.gdx.utils.Align
import com.badlogic.gdx.utils.Timer
import com.efm.*
import com.efm.Map
import com.efm.assets.*
import co... | 1 | Kotlin | 0 | 3 | b05515da1aecfae7b9f47036ed089dafe1fc95d2 | 8,150 | escape-from-morasko | MIT License |
feature/theme-selector/api/src/main/java/ru/maksonic/beresta/feature/theme_selector/api/ThemeSelectorUiApi.kt | maksonic | 580,058,579 | false | null | package ru.maksonic.beresta.feature.theme_selector.api
import androidx.compose.runtime.Composable
/**
* @Author maksonic on 28.02.2023
*/
interface ThemeSelectorUiApi {
@Composable
fun BottomSheet(isVisibleSheet: Boolean, hideSheet: () -> Unit)
} | 0 | Kotlin | 0 | 0 | 5704d413cd57a8eabe27b02a185a999fce2ca1e4 | 258 | Beresta | MIT License |
src/main/kotlin/com/JavaSnakes/states/menu/MenuPanel.kt | TakingItCasual | 180,385,488 | false | null | package com.javasnakes.states.menu
import com.javasnakes.Main
import com.javasnakes.states.game.GamePanel
import com.javasnakes.states.game.InitSnakes
import com.javasnakes.util.CustomJCheckBox
import com.javasnakes.util.CustomJSpinner
import com.javasnakes.util.GameState
import com.javasnakes.util.GridPos
import com.... | 0 | Kotlin | 0 | 0 | 0aa7ca3dfee4fdc2a36e6da1614032d473563817 | 7,550 | JavaSnakes | MIT License |
ktor-hosts/ktor-test-host/src/org/jetbrains/ktor/testing/TestApplicationResponse.kt | hallefy | 94,839,121 | true | {"Kotlin": 1099285, "Java": 61833, "FreeMarker": 6356, "CSS": 5404, "HTML": 1999, "JavaScript": 1451} | package org.jetbrains.ktor.testing
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.cio.*
import org.jetbrains.ktor.host.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.response.*
import org.jetbrains.ktor.util.*
class TestApplicationResponse(call: ApplicationCall) : BaseApplicationRespo... | 0 | Kotlin | 0 | 1 | b5dcbe5b740c2d25c7704104e01e0a01bf53d675 | 1,643 | ktor | Apache License 2.0 |
app/src/main/java/com/linocondor/twitchstreamapp/RockPaperScissorGameActivity.kt | linocondor | 402,490,166 | false | null | package com.linocondor.twitchstreamapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_rock_paper_scissor_game.*
class RockPaperScissorGameActivity : AppCompatActivity() {
var playerChoice: String? = null
var ... | 0 | Kotlin | 0 | 0 | 7f4ce94b89d40457be828bae904f2f556103ac50 | 4,291 | TwitchStreamApp | MIT License |
src/test/kotlin/funkotlin/fp_in_kotlin_book/FpInKotlinBookApplicationTests.kt | kdzido | 739,888,353 | false | {"Kotlin": 9188} | package funkotlin.fp_in_kotlin_book
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class FpInKotlinBookApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 5276a23d2374eba98416278c7a8a89781f9a12ea | 223 | fp-in-kotlin-book | MIT License |
Ppap/app/src/main/java/com/jeongg/ppap/data/dto/subscribe/SubscribeUpdateResponseDTO.kt | PnuPostAlarmProject | 674,548,015 | false | {"Kotlin": 212611} | package com.jeongg.ppap.data.dto.subscribe
import kotlinx.serialization.Serializable
@Serializable
data class SubscribeUpdateResponseDTO(
val subscribeId: Long = 0,
val title: String = "",
val noticeLink: String? = null,
val isActive: Boolean = false
)
| 0 | Kotlin | 0 | 5 | 72891ce370d952b5c9d4c9016ad488791595051b | 271 | android | MIT License |
app/src/main/java/com/developersbreach/jetpackcomposesamples/ui/components/AppBar.kt | RajashekarRaju | 346,706,416 | false | null | package com.developersbreach.jetpackcomposesamples.ui.components
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compo... | 0 | Kotlin | 3 | 37 | 84e33db0d37e4e59661af48a7029034012823f1f | 1,759 | jetpack-compose-samples | Apache License 2.0 |
afterpay/src/main/kotlin/com/afterpay/android/model/CheckoutV3Configuration.kt | afterpay | 401,543,659 | false | {"Kotlin": 267211, "HTML": 1088} | package com.afterpay.android.model
import android.net.Uri
import com.afterpay.android.AfterpayEnvironment
import java.net.URL
data class CheckoutV3Configuration(
val shopDirectoryMerchantId: String,
val region: AfterpayRegion,
val environment: AfterpayEnvironment,
) {
internal val shopDirectoryId: Str... | 0 | Kotlin | 1 | 0 | 71d7879ffc47dda0dc9e6dc5272e607dc086bea3 | 2,164 | sdk-android-button | Apache License 2.0 |
src/main/kotlin/Main.kt | joseph-simutis | 859,358,318 | false | {"Kotlin": 1721} | package io.github.josephsimutis
import com.github.ajalt.clikt.core.main
import com.github.ajalt.clikt.parameters.options.versionOption
fun main(args: Array<String>) = TodoList().versionOption("1.0.0-pre.1").main(args) | 0 | Kotlin | 0 | 1 | 8496b05f9236d98ec1c577e1e7d48443fd8b98c1 | 219 | todo-list | The Unlicense |
app/src/main/java/com/github/firenox89/shinobooru/utility/Constants.kt | Firenox89 | 61,946,482 | false | null | package com.github.firenox89.shinobooru.utility
/**
* Created by firenox on 9/10/17.
*/
object Constants {
const val BOARD_INTENT_KEY = "board.key"
const val TAGS_INTENT_KEY = "tags.key"
const val POSITION_INTENT_KEY = "position.key"
const val FILE_LOADER_NAME = "FileLoader"
} | 1 | Kotlin | 2 | 6 | eccf4688b861f0df7feeb72084064c5cf84759f2 | 296 | Shinobooru | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/CfnSpotFleetPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ec2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ec2.CfnSpotFleetProps
@Generated
public fun buildCfnSpotFleetProps(initializer: @AwsCdkDsl CfnSpotFleetProps.Builder.() -> Unit):
... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 395 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/me/ftmc/hotpot/contents/HotpotContents.kt | FishMagic | 723,117,949 | false | {"Kotlin": 201833, "Java": 15586} | package me.ftmc.hotpot.contents
import net.minecraft.inventory.Inventory
import net.minecraft.recipe.BlastingRecipe
import net.minecraft.recipe.CampfireCookingRecipe
import net.minecraft.recipe.RecipeManager
import net.minecraft.recipe.RecipeType
import java.util.concurrent.ConcurrentHashMap
object HotpotContents {
... | 0 | Kotlin | 0 | 2 | 021bc66ba8ba2755fca60ce8d2e84189e8ddd15b | 1,254 | EveryXHotpot-Fabric | MIT License |
domain/auth/src/main/kotlin/io/github/siyual_park/auth/domain/authorization/AllowAllAuthorizeFilter.kt | siyul-park | 403,557,925 | false | null | package io.github.siyual_park.auth.domain.authorization
import io.github.siyual_park.auth.domain.Principal
import io.github.siyual_park.auth.domain.scope_token.ScopeToken
import org.springframework.stereotype.Component
@Component
class AllowAllAuthorizeFilter : AuthorizeFilter {
override fun isSubscribe(principal... | 8 | Kotlin | 0 | 18 | 332711a52465e0a10c0125aecf52dd00e247cf58 | 396 | spring-webflux-multi-module-boilerplate | MIT License |
data-android/src/main/java/ly/david/data/common/NetworkModule.kt | lydavid | 458,021,427 | false | null | package ly.david.data.common
import android.content.Context
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import java.io.File
import javax.inject.Singleton
import ly.david.data.BuildConf... | 54 | Kotlin | 0 | 4 | 052613fefaeb5a687ee36d0f3889d9a120224994 | 1,831 | MusicSearch | Apache License 2.0 |
src/main/kotlin/biz/koziolek/adventofcode/coords2d.kt | pkoziol | 434,913,366 | false | {"Kotlin": 491336, "Shell": 1892} | package biz.koziolek.adventofcode
import kotlin.math.abs
import kotlin.math.pow
import kotlin.math.sqrt
data class Coord(val x: Int, val y: Int) {
operator fun plus(other: Coord) = Coord(x + other.x, y + other.y)
operator fun minus(other: Coord) = Coord(x - other.x, y - other.y)
operator fun unaryMinus() ... | 0 | Kotlin | 0 | 0 | b61360ccc85a8c365aa9e03a87b547a63f3c92ae | 2,416 | advent-of-code | MIT License |
src/test/kotlin/kfx/OptionUTest.kt | deeperunderstanding | 113,335,211 | false | null | @file:Suppress("UNREACHABLE_CODE")
package kfx
import io.kotlintest.matchers.shouldBe
import io.kotlintest.specs.FunSpec
import kfx.None
import kfx.Option
import kfx.Some
class OptionUTest : FunSpec() {
init {
test("Invoking an Option from a value should return a Some of that value") {
Option... | 0 | Kotlin | 0 | 0 | aa0450930c525d814c189eccb2ad18c35e49586a | 2,190 | kfx | MIT License |
app/src/main/java/com/alienspace/moviedb/core/presentation/MainActivity.kt | santhosh-anbazhagan | 818,302,254 | false | {"Kotlin": 50205} | package com.alienspace.moviedb.core.presentation
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.fillMaxSize
import ... | 0 | Kotlin | 0 | 0 | 370e3703ccc720339a8d01acb5f8edb13ba6c6bc | 3,003 | MovieDB | MIT License |
app/src/main/java/com/alienspace/moviedb/core/presentation/MainActivity.kt | santhosh-anbazhagan | 818,302,254 | false | {"Kotlin": 50205} | package com.alienspace.moviedb.core.presentation
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.fillMaxSize
import ... | 0 | Kotlin | 0 | 0 | 370e3703ccc720339a8d01acb5f8edb13ba6c6bc | 3,003 | MovieDB | MIT License |
library/src/main/java/com/freakyaxel/nfc/card/CardState.kt | alexpopa95 | 574,745,516 | false | null | package com.freakyaxel.nfc.card
enum class CardState {
UNKNOWN, ACTIVE, LOCKED
}
| 0 | Kotlin | 0 | 2 | 8c27dc1b4da6f095ecc5e3f7fb82463e8d3ef4aa | 86 | nfc-card-reader | MIT License |
data/src/main/java/com/android/techtest/data/entities/Result.kt | mayuresh21 | 598,045,553 | false | null | package com.android.techtest.data.entities
import com.google.gson.annotations.SerializedName
data class Result(
@SerializedName("abstract")
val abstract: String,
@SerializedName("adx_keywords")
val adxKeywords: String,
@SerializedName("asset_id")
val assetId: Long,
@SerializedName("byline"... | 0 | Kotlin | 0 | 0 | 4dc2042ba211db59798b15eea3f3eb296358d51a | 1,316 | MostPopularArticles | Apache License 2.0 |
src/main/kotlin/com/destered/afa_vkr/dialog/EnterDialog.kt | Destered12 | 813,610,104 | false | {"Kotlin": 49029} | package com.destered.afa_vkr.dialog
import com.destered.afa_vkr.UtilsFile
import com.destered.afa_vkr.core.DialogController
import com.destered.afa_vkr.model.ItemModel
import com.intellij.openapi.ui.DialogWrapper
import java.awt.BorderLayout
import java.awt.Component
import java.awt.event.KeyEvent
import java.awt.even... | 0 | Kotlin | 0 | 0 | 7655812ae81ef13b642464342267106d262937c3 | 4,431 | AFA | Apache License 2.0 |
openapi/checking/checker/src/main/kotlin/org/sollecitom/chassis/openapi/checking/checker/rules/EnforceOperationDescriptionDifferentFromSummaryRule.kt | sollecitom | 669,483,842 | false | {"Kotlin": 868890, "Java": 30834} | package org.sollecitom.chassis.openapi.checking.checker.rules
import io.swagger.v3.oas.models.OpenAPI
import org.sollecitom.chassis.openapi.checking.checker.model.OperationWithContext
import org.sollecitom.chassis.openapi.checking.checker.model.allOperations
import org.sollecitom.chassis.openapi.checking.checker.rule.... | 0 | Kotlin | 0 | 2 | 0d5098080bee96f4595fd5384d29bda3bda55037 | 1,261 | chassis | MIT License |
app/src/main/java/com/capyreader/app/ui/articles/FeedActionMenuItems.kt | jocmp | 610,083,236 | false | {"Kotlin": 812621, "Ruby": 1236, "Makefile": 1211} | package com.capyreader.app.ui.articles
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.DropdownMenuItem
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
i... | 33 | Kotlin | 4 | 147 | 196690b776eebdecd4562e357a629277fec9cfe9 | 1,079 | capyreader | MIT License |
app/src/main/java/com/android/sensyneapplication/domain/search/SearchEntryRegexProcessor.kt | mobileappconsultant | 310,363,474 | false | null | package com.android.sensyneapplication.domain.search
import com.android.sensyneapplication.domain.database.DBConstants.retrieveAllRegexAsList
class SearchEntryRegexProcessor : RegexProcessor {
override fun process(searchEntry: String): List<String> {
return retrieveAllRegexAsList()
.filter { ... | 0 | Kotlin | 0 | 1 | 7071b065bbc66dd47b55fa42ef1f75636425df7a | 397 | SensedyneTestProject | MIT License |
src/main/kotlin/org/epistatic/springkotlin/service/FileService.kt | SergeMerzliakov | 181,463,252 | false | null | /*
* Copyright 2019 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 5 | a847cdabcf6ff57b5eb528de4c36d73bff9a9735 | 785 | javafx-kotlin-spring | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/kinesisfirehose/CopyCommandPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.kinesisfirehose
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream
@Generated
public fun buildCopyCommandProperty(initializer: @AwsCdkDsl
CfnDeliverySt... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 485 | aws-cdk-kt | Apache License 2.0 |
utbot-cli-go/src/main/kotlin/org/utbot/cli/go/util/IoUtils.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.cli.go.util
import java.io.InputStream
import java.io.OutputStream
fun copy(from: InputStream, to: OutputStream?) {
val buffer = ByteArray(10240)
var len: Int
while (from.read(buffer).also { len = it } != -1) {
to?.write(buffer, 0, len)
}
} | 396 | Kotlin | 31 | 91 | ca7df7c1665cdab2a5d8bc2619611e02e761a228 | 284 | UTBotJava | Apache License 2.0 |
getting-started/src/main/java/com/pubnub/components/example/getting_started/ChatApplication.kt | pubnub | 440,843,223 | false | {"Kotlin": 70810} | package com.pubnub.components.example.getting_started
import android.app.Application
import android.util.Log
import androidx.room.RoomDatabase
import androidx.sqlite.db.SupportSQLiteDatabase
import com.pubnub.components.DefaultDatabase
import com.pubnub.components.data.Database
import com.pubnub.components.data.channe... | 1 | Kotlin | 4 | 2 | a66121d0ceb7f99c568a2928c48280bfa481c3af | 2,802 | chat-components-android-examples | MIT License |
app/src/main/java/com/nhanbt/demo_kotlin_native/features/note/presentation/notes/components/NoteItem.kt | vfa-nhanbt | 578,101,663 | false | null | package com.nhanbt.demo_kotlin_native.features.note.presentation.notes.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
impor... | 0 | Kotlin | 0 | 0 | 2e62e112456510f631b6dbea37c7949d295b530b | 2,733 | demo-android-native | MIT License |
winterhold/src/main/java/winterhold/cards/destruction/Frostbolt.kt | runttekita | 327,278,240 | true | {"Kotlin": 89760, "Java": 257} | package winterhold.cards.destruction
import com.megacrit.cardcrawl.actions.AbstractGameAction
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction
import com.megacrit.cardcrawl.cards.DamageInfo
import com.megacrit.cardcrawl.characters.AbstractPlayer
import com.megacrit.cardcrawl.dungeons.AbstractDungeon
impor... | 0 | Kotlin | 0 | 0 | b9440804bb233c178cc731b53e5024c04e3e4c3d | 1,896 | StS-Winterhold | MIT License |
clef-workflow-api/clef-workflow-api-operation/clef-workflow-api-operation-engine/src/main/java/io/arkitik/clef/workflow/api/operation/engine/MainClefWorkflowEngine.kt | arkitik | 443,436,455 | false | {"Kotlin": 433170, "Shell": 268, "Dockerfile": 244} | package io.arkitik.clef.workflow.api.operation.engine
import io.arkitik.clef.workflow.api.function.action.bean.store.ActionBeanStore
import io.arkitik.clef.workflow.api.operation.action.ActionSdkImpl
import io.arkitik.clef.workflow.api.operation.element.ElementSdkImpl
import io.arkitik.clef.workflow.api.operation.stag... | 0 | Kotlin | 0 | 0 | 785e1b4ee583b6a6e3ea01e656eecd8365f171ef | 1,840 | clef-workflow | Apache License 2.0 |
chasm/src/commonTest/kotlin/io/github/charlietap/chasm/embedding/fixture/ReferenceValue.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 2038041, "WebAssembly": 45714} | package io.github.charlietap.chasm.embedding.fixture
import io.github.charlietap.chasm.embedding.shapes.Value
fun publicReferenceValue() = publicFunctionReferenceValue()
fun publicExternReferenceValue(
referenceValue: Value.Reference = publicReferenceValue(),
) = Value.Reference.Extern(referenceValue)
fun publi... | 5 | Kotlin | 3 | 67 | a452ab9e37504517b43118f636a28f54e7bcb57c | 401 | chasm | Apache License 2.0 |
ProfileService/src/main/kotlin/com/github/saboteur/beeline/profileservice/config/properties/AppProperties.kt | insotriplesix | 256,169,374 | false | null | package com.github.saboteur.beeline.profileservice.config.properties
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.context.annotation.Primary
import org.springframework.stereotype.Component
@Primary
@Component
@ConfigurationProperties(prefix = "app")
data class ... | 0 | Kotlin | 0 | 1 | 1266d45fe626d43daa302c69380ced87fcd8fcef | 369 | beeline-task | MIT License |
app/src/main/java/io/exzocoin/wallet/modules/settings/main/MainSettingsHelper.kt | rexdev0211 | 403,525,735 | false | {"Kotlin": 2356794, "Shell": 2039, "Ruby": 966} | package io.exzocoin.wallet.modules.settings.main
import io.exzocoin.core.entities.Currency
class MainSettingsHelper {
fun displayName(baseCurrency: Currency): String {
return baseCurrency.code
}
}
| 0 | Kotlin | 1 | 0 | 1ed5d80490ecf1574499cafa5aad922c4ea9a362 | 217 | exzo-android-wallet-main | MIT License |
src/main/kotlin/phonon/puppet/PuppetPlugin.kt | phonon | 278,514,975 | false | null | /*
* PuppetPlugin
*
* Implement bukkit plugin interface
*/
package phonon.puppet
import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin
import java.io.File
import kotlin.system.measureTimeMillis
import phonon.puppet.Puppet
import phonon.puppet.objects.Mesh
import phonon.puppet.objects.Skeleton
import ... | 0 | Kotlin | 0 | 9 | 55b6d7055fd6bed9377bebfa39b7084dd24d9341 | 2,468 | minecraft-puppet | MIT License |
api/src/main/kotlin/nebulosa/api/data/serializers/FilterWheelSerializer.kt | tiagohm | 568,578,345 | false | null | package nebulosa.api.data.serializers
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.ser.std.StdSerializer
import nebulosa.indi.device.filterwheel.FilterWheel
import org.springframework.beans.factory.annotation.Qualifier
im... | 0 | Kotlin | 0 | 1 | d2c659aec508726618dadf76043a6b47d7f9a74a | 993 | nebulosa | MIT License |
api/src/main/kotlin/nebulosa/api/data/serializers/FilterWheelSerializer.kt | tiagohm | 568,578,345 | false | null | package nebulosa.api.data.serializers
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.ser.std.StdSerializer
import nebulosa.indi.device.filterwheel.FilterWheel
import org.springframework.beans.factory.annotation.Qualifier
im... | 0 | Kotlin | 0 | 1 | d2c659aec508726618dadf76043a6b47d7f9a74a | 993 | nebulosa | MIT License |
app/src/main/java/com/example/bitnow/ui/liveprice/LivePriceFragment.kt | shanesmith66 | 354,096,380 | false | null | package com.example.bitnow.ui.liveprice
import android.annotation.SuppressLint
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.text.method.LinkMovementMethod
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.wid... | 0 | Kotlin | 0 | 0 | 5078eccf5dcb797d9ceccb23159b426619c617ea | 5,977 | BitNow | Adobe Glyph List License |
multiplatform/ui/src/commonMain/kotlin/multiplatform/ui/listeners/Disposable.kt | Alaksion | 743,354,018 | false | {"Kotlin": 129019, "Ruby": 4071} | package multiplatform.ui.listeners
interface Disposable {
fun onDispose()
} | 0 | Kotlin | 0 | 0 | d0ec5de69c4b01dc30cb56a3e4078edf7d15a37e | 82 | ImagefyAndroid | MIT License |
ANDROID APP/app/src/main/java/com/app/hbcu/model/country/CountryResponse.kt | CodeCraftsCanvas | 426,396,978 | false | {"C++": 4530070, "C": 930961, "Swift": 378772, "Kotlin": 308625, "Python": 247661, "M4": 171945, "Makefile": 95271, "Shell": 54819, "HTML": 50621, "CSS": 43194, "Roff": 35838, "QMake": 26144, "Assembly": 7639, "Objective-C++": 7326, "Java": 2100, "Ruby": 931} | package com.app.hbcu.model.country
import com.google.gson.annotations.SerializedName
data class CountryResponse(
@field:SerializedName("data")
val data: Data? = null,
@field:SerializedName("message")
val message: Message? = null,
@field:SerializedName("status")
val status: String? = null
)
data class Countr... | 1 | C++ | 0 | 0 | a1a999af442f81d760cef5b50e2976fc8b3cff79 | 1,114 | hbcur | MIT License |
example/src/test/kotlin/my/pack/util.kt | mfarsikov | 308,982,204 | false | null | package my.pack
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import org.flywaydb.core.Flyway
import javax.sql.DataSource
import kotlin.reflect.full.isSubclassOf
import kotlin.test.fail
object TestUtil {
val ds: DataSource = HikariDataSource(HikariConfig().apply {
jdbcUrl... | 1 | Kotlin | 0 | 23 | a648d4806a44598f1660c785aad6f53154f922fa | 1,184 | kotgres | Apache License 2.0 |
KotlinTut/src/KotlinTut.kt | jacksonbaxter | 143,739,188 | false | {"Kotlin": 1848} | package demo
fun main(args : Array<String>){
println("Hello, world!")
val name="Jackson"
var myAge=17
var bigInt: Int = Int.MAX_VALUE
var smallInt: Int= Int.MIN_VALUE
println("Biggest Int : "+bigInt)
println("Smallest Int : "+smallInt)
var bigLong: Long=Long.MAX_VALUE
var smallLong:... | 0 | Kotlin | 0 | 0 | cf56f3c90f48d8c79874fd94da906d8e49a5881a | 1,790 | kotlin-tutorial | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Language.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
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 androidx.compose.ui.gr... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 6,110 | icons | MIT License |
app-core/src/main/kotlin/com/flab/hsw/core/domain/user/aggregate/PasswordEncryptor.kt | f-lab-edu | 545,756,758 | false | {"Kotlin": 249863, "Vim Snippet": 765} | package com.flab.hsw.core.domain.user.aggregate
import org.mindrot.jbcrypt.BCrypt
interface PasswordEncryptor {
fun encrypt(plainText: String): String
fun isMatched(plainText: String, hashedPassword: String): Boolean
companion object {
fun newInstance(): PasswordEncryptor = PasswordEncryptorImp... | 2 | Kotlin | 4 | 5 | 90dd69cbef256eff7cb852abfc2573719a1fb5f1 | 676 | hello-study-world | MIT License |
presentation/src/main/java/tgo1014/listofarts/presentation/ui/screens/home/HomeScreen.kt | Tgo1014 | 433,974,074 | false | {"Kotlin": 109720} | package tgo1014.listofarts.presentation.ui.screens.home
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
impo... | 0 | Kotlin | 0 | 0 | c5ff1bad2c76d745624c2a1830b334b1f0c5146b | 8,270 | listOfArts | Apache License 2.0 |
app/src/main/java/com/wanjuuuuu/androiddictionary/viewmodels/TermDetailViewModel.kt | Wanjuuuuu | 275,293,496 | false | null | package com.wanjuuuuu.androiddictionary.viewmodels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.wanjuuuuu.androiddictionary.data.GettingTermRepository
import com.wanjuuuuu.androiddictionary.data.Term... | 6 | Kotlin | 0 | 0 | a4e7d0922f320e42d58744de124164073b497204 | 1,383 | AndroidDictionary | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Arrowup1.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
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 androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,122 | VuesaxIcons | MIT License |
app/src/main/java/io/github/drumber/kitsune/data/source/network/auth/model/RefreshAccessToken.kt | Drumber | 406,471,554 | false | {"Kotlin": 993796, "Ruby": 2109} | package io.github.drumber.kitsune.data.source.network.auth.model
import com.fasterxml.jackson.annotation.JsonProperty
data class RefreshAccessToken(
@JsonProperty("grant_type")
val grantType: String = "refresh_token",
@JsonProperty("refresh_token")
val refreshToken: String
)
| 6 | Kotlin | 4 | 92 | ba6f2a69cb71a9fd71d4825921ff6d9b6300471e | 294 | Kitsune | Apache License 2.0 |
src/main/kotlin/com/company/testing/domain/friend/usecases/GetFriendsUseCase.kt | danielspeixoto | 320,617,331 | false | null | package com.company.testing.domain.friend.usecases
import com.company.testing.domain.friend.Friend
import com.company.testing.domain.friend.IFriendBoundary
class GetFriendsUseCase(
private val friendRepository: IFriendBoundary.IFriendRepository,
private val meetNewPeopleService: IFriendBoundary.IMeetN... | 0 | Kotlin | 0 | 0 | 2ef547c096c32c4684cc2d541e317a5e676592ae | 663 | SimpleTesting | Apache License 2.0 |
app/src/main/java/com/adamormsby/l10n_samples/date_format/DateFuncs.kt | aormsby | 471,865,904 | false | {"Kotlin": 10589} | package com.adamormsby.l10n_samples.date_format
import android.content.Context
import android.text.format.DateUtils
import java.text.DateFormat
import java.util.*
/**
* Returns only time value from [Date], respects Locale
* @return [String]
*/
fun Date.asTime(context: Context): String =
DateUtils.formatDateTim... | 0 | Kotlin | 2 | 1 | e7f064dceccc6527d14d57f44c71091dd629995e | 2,770 | android-l10n-samples | MIT License |
apps/mobile_app/src/main/kotlin/dev/marlonlom/demos/ajv_cappa/catalog/search/CatalogSearchViewModel.kt | marlonlom | 673,522,039 | false | null | /*
* Copyright (c) 2023 Marlonlom
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, V... | 0 | Kotlin | 0 | 0 | 54333684e479ad7c32ea1234eadfbf298ee99d43 | 4,088 | ajv-cappa | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/sendlegalmailtoprisonsapi/prisonersearch/PrisonerSearchResultsProcessor.kt | ministryofjustice | 424,655,284 | false | null | package uk.gov.justice.digital.hmpps.sendlegalmailtoprisonsapi.prisonersearch
import com.microsoft.applicationinsights.TelemetryClient
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.prisonersearch.model.PagePrisoner
import uk.gov.justice.digital.hmpps.prisonersearch.model.Prisoner
... | 1 | null | 0 | 4 | 8da52ceaa15de57f460aa91a24f6c7fb28390a46 | 6,300 | send-legal-mail-to-prisons-api | MIT License |
app/src/main/java/com/clay/covid_19helper/models/CountryData.kt | Clay-CL | 285,802,279 | false | null | package com.clay.covid_19helper.models
import com.google.gson.annotations.SerializedName
data class CountryData(
@SerializedName("countries")
val countries: List<Country>
) | 0 | Kotlin | 0 | 2 | 214b8f686de644e742a1d62dd67ddee7262186ff | 183 | COVID-19-Helper | MIT License |
app/src/main/java/fr/kokyett/rsspire/adapters/ItemSwipedCallback.kt | Kokyett | 640,213,902 | false | {"Kotlin": 157989} | package fr.kokyett.rsspire.adapters
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BlendMode
import android.graphics.BlendModeColorFilter
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.PorterDuff
import android.o... | 0 | Kotlin | 0 | 1 | 84bf480bfedf19d430bb0c3344c8d4b68cccdd7f | 6,810 | RSSpire | Do What The F*ck You Want To Public License |
core/notifications/src/main/java/com/popos/core/notifications/di/NotificationsModule.kt | skniyajali | 644,752,474 | false | {"Kotlin": 5045629, "Shell": 16584, "Ruby": 1461, "Java": 232} | /*
* Copyright 2024 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 36 | Kotlin | 0 | 1 | 628145480ea4aefd28b1ed7c4d4d653336aeff6f | 1,037 | PoposRoom | Apache License 2.0 |
cinescout/history/domain/src/commonMain/kotlin/cinescout/history/domain/model/HistoryStoreKey.kt | fardavide | 280,630,732 | false | null | package cinescout.history.domain.model
import cinescout.screenplay.domain.model.SeasonAndEpisodeNumber
import cinescout.screenplay.domain.model.id.ContentIds
import cinescout.screenplay.domain.model.id.EpisodeIds
import cinescout.screenplay.domain.model.id.MovieIds
import cinescout.screenplay.domain.model.id.Screenpla... | 8 | Kotlin | 2 | 6 | dcbd0a0b70d6203a2ba1959b797038564d0f04c4 | 1,631 | CineScout | Apache License 2.0 |
app/src/main/kotlin/com/github/otakusenpai/shoppinglist/MainActivity.kt | OtakuSenpai | 181,103,488 | false | null | package com.github.otakusenpai.shoppinglist
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import com.github.otakusenpai.shoppinglist.R
class MainActivity : AppCompatActivity(), View.OnClickListener {
private ... | 0 | Kotlin | 0 | 0 | 29261136208fc6fcc57e05687daa4f2dcaee6a77 | 1,219 | ShoppingList | MIT License |
RSS/app/src/main/java/br/ufpe/cin/if710/rss/db/SQLiteAnkoHelper.kt | igormatos | 151,011,800 | true | {"Kotlin": 29308} | package br.ufpe.cin.if710.rss.db
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import br.ufpe.cin.if710.rss.ItemRSS
import org.jetbrains.anko.db.*
class SQLiteAnkoHelper(context: Context) :
ManagedSQLiteOpenHelper(context, "rss_app", null, 1) {
override fun onCreate(db: SQL... | 0 | Kotlin | 0 | 0 | c8dd4ca9e5b66986f49b797e9c1a67589cfcfad0 | 3,506 | exercicio-rss-2 | MIT License |
domain/src/main/java/com/movingmaker/domain/usecase/FindPasswordUseCase.kt | Comment-Diary | 458,682,004 | false | null | package com.movingmaker.domain.usecase
import com.movingmaker.domain.model.UiState
import com.movingmaker.domain.model.mapUiState
import com.movingmaker.domain.model.toUiState
import com.movingmaker.domain.repository.ForSignUpRepository
import javax.inject.Inject
class FindPasswordUseCase @Inject constructor(
pri... | 7 | Kotlin | 1 | 2 | cf9f329970d83181c41a6cfc0470cd2712301f6f | 540 | CommentDiary-AOS | MIT License |
src/main/kotlin/grd/kotlin/authapi/controllers/ApiMetadataController.kt | gardehal | 708,548,046 | false | {"Kotlin": 457997, "Shell": 612, "HTML": 331} | package grd.kotlin.authapi.controllers
import grd.kotlin.authapi.Log
import grd.kotlin.authapi.dto.*
import grd.kotlin.authapi.exceptions.*
import grd.kotlin.authapi.models.AUser
import grd.kotlin.authapi.models.ApiMetadata
import grd.kotlin.authapi.services.ApiMetadataService
import grd.kotlin.authapi.services.Contro... | 0 | Kotlin | 0 | 0 | ba9bd85c945039dad910cdfa6831abc9c313cfc1 | 4,396 | kotlin-auth-api | MIT License |
trap/src/main/java/com/cursorinsight/trap/transport/TrapHttpTransport.kt | cursorinsight | 687,551,862 | false | {"Kotlin": 182422} | package com.cursorinsight.trap.transport
import android.util.Log
import java.io.BufferedOutputStream
import java.io.BufferedWriter
import java.io.IOException
import java.io.OutputStreamWriter
import java.net.HttpURLConnection
import java.net.URI
import javax.net.ssl.HttpsURLConnection
/**
* The HTTP transport layer ... | 0 | Kotlin | 0 | 2 | 92950a62bddc1c225c76ec4dc2c80fa015187020 | 2,832 | ci-trap-android | MIT License |
ui/src/main/java/com/fibelatti/ui/foundation/Ime.kt | fibelatti | 165,537,939 | false | null | package com.fibelatti.ui.foundation
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.ime
import androidx.compose.runtime.Composable
import androidx.compose.runtime.State
import androidx.compose.runtime.rememberUpdatedState
import androidx.compose.ui.platform.LocalDensity... | 5 | Kotlin | 10 | 95 | c6ff28fea78b4785ea02eace40f5811c83e8e14a | 504 | pinboard-kotlin | Apache License 2.0 |
src/test/kotlin/com/jetbrains/kotlin/structuralsearch/search/KotlinSSObjectExpressionTest.kt | JetBrains | 250,351,744 | false | null | package com.jetbrains.kotlin.structuralsearch.search
import com.jetbrains.kotlin.structuralsearch.KotlinSSResourceInspectionTest
class KotlinSSObjectExpressionTest : KotlinSSResourceInspectionTest() {
override fun getBasePath(): String = "objectExpression"
fun testObject() {
doTest(
"""
... | 9 | Kotlin | 2 | 17 | 40f5895867975ee38b60333033672b7957bfb491 | 963 | intellij-structural-search-for-kotlin | Apache License 2.0 |
spring-boot-kotlin-2/src/main/kotlin/com/baeldung/consoleapp/CommandLineFirstComponent.kt | Baeldung | 260,481,121 | false | {"Kotlin": 1855665, "Java": 48276, "HTML": 4883, "Dockerfile": 292} | package com.baeldung.consoleapp
import org.slf4j.LoggerFactory
import org.springframework.boot.CommandLineRunner
import org.springframework.core.annotation.Order
import org.springframework.stereotype.Component
@Component
@Order(0)
class CommandLineFirstComponent: CommandLineRunner {
private val log = LoggerFacto... | 14 | Kotlin | 294 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 487 | kotlin-tutorials | MIT License |
src/main/java/com/smart/adapter/util/ScreenUtils.kt | lihangleo2 | 701,979,196 | false | {"Kotlin": 74313, "Java": 4386} | package com.smart.adapter.util
import android.content.Context
import android.graphics.Point
import android.os.Build
import android.view.WindowManager
/**
* @Author leo
* @Date 2023/10/7
*/
object ScreenUtils {
@JvmStatic
fun getScreenWidth(context: Context): Int {
val wm = context.getSystemService... | 0 | Kotlin | 0 | 8 | 4ec2689637ddc6afdf82c354a3f61ac7d64783e9 | 641 | smartVpageAdapterlibrary | MIT License |
app/src/main/java/com/bayraktar/healthybackandneck/ui/Favourite/FavouriteMain/TabFragments/Back/BackFragment.kt | OzerBAYRAKTAR | 681,364,096 | false | {"Kotlin": 364437} | package com.bayraktar.healthybackandneck.ui.Favourite.FavouriteMain.TabFragments.Back
import android.app.AlertDialog
import android.os.Bundle
import android.view.Gravity
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget... | 0 | Kotlin | 0 | 0 | ceae13ca4678f1575ea6010e72f762e20817a972 | 5,093 | HealthyBackandNeck | MIT License |
src/main/kotlin/quux/jbytedit/render/ListItem.kt | GenericException | 450,583,447 | false | null | package quux.jbytedit.render
abstract class ListItem | 0 | Kotlin | 1 | 2 | 9a9a50eee376e94f0409ddfbb48fb38969ecbc12 | 53 | JBytedit | Apache License 2.0 |
src/main/kotlin/io/mikael/karslet/operators/TerminalOperator.kt | mikaelhg | 80,386,896 | false | {"Kotlin": 14984} | package io.mikael.karslet.operators
import io.mikael.karslet.Parser
/**
* A matcher with no children.
*/
abstract class TerminalOperator<T> : Parser<T> | 0 | Kotlin | 0 | 4 | 5e71ad4b1f38aa83864bfa6b951dbd01c1cf508d | 155 | kotlin-peg-dsl | Apache License 2.0 |
src/main/kotlin/no/kommune/oslo/maskinporten/client/MaskinportenAdminApiClient.kt | oslokommune | 344,368,703 | false | null | package no.kommune.oslo.maskinporten.client
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.nimbusds.jose.jwk.RSAKey
import no.kommune.oslo.jwt.JwtAuthClient
import okhttp3.Request
import okhttp3.RequestBody.Companion.toRequestBody
import org.slf4j.Logger
im... | 0 | Kotlin | 1 | 2 | de3186d941c08237d78ee3a77390632975a1e46a | 6,556 | maskinporten-cli | MIT License |
clients/ktorm-schema/generated/src/main/kotlin/org/openapitools/database/models/UserWebsiteVerifyRequest.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | /**
* Pinterest REST API
* Pinterest's REST API
*
* The version of the OpenAPI document: 5.12.0
* Contact: blah+oapicf@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 1,842 | pinterest-sdk | MIT License |
validator/src/commonMain/kotlin/io/github/charlietap/chasm/validator/error/StartFunctionValidatorError.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 2038041, "WebAssembly": 45714} | package io.github.charlietap.chasm.validator.error
sealed interface StartFunctionValidatorError : ModuleValidatorError {
data object UnknownFunction : StartFunctionValidatorError
data object InvalidStartFunction : StartFunctionValidatorError
}
| 5 | Kotlin | 3 | 67 | a452ab9e37504517b43118f636a28f54e7bcb57c | 254 | chasm | Apache License 2.0 |
app/src/main/java/br/com/paulosalvatore/movilenext_day1_room/view/WordListAdapter.kt | paulosalvatore | 156,523,671 | false | null | package br.com.paulosalvatore.movilenext_day1_room.view
import android.content.Context
import android.support.v7.widget.RecyclerView.Adapter
import android.support.v7.widget.RecyclerView.ViewHolder
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
... | 0 | Kotlin | 0 | 0 | 7befabe4041149281149378ddc974a49b7e09a96 | 1,371 | MovileNext_Day1_Room | MIT License |
app/src/main/java/com/fanjiaxing/criminalintent/ui/commit/CrimeViewModel.kt | fjxplus | 432,184,628 | false | null | package com.fanjiaxing.criminalintent.ui.commit
import android.net.Uri
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.fanjiaxing.criminalintent.logic.Repository
import com.fanjiaxing.criminalintent.logic.model.Crime
import java.io.File... | 0 | Kotlin | 0 | 0 | fb16e4844f6340052f1d13132dbcaf21a30f30c5 | 954 | CriminalIntent | Apache License 2.0 |
framework/src/main/java/cn/framework/common/http/MessageType.kt | zxdposter | 538,310,941 | false | {"Kotlin": 172634} | package cn.framework.common.http
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonValue
enum class MessageType(private val type: String, val message: String) {
/**
* 警告消息.
*/
WARNING("WARNING", "操作警告"),
/**
* 正常消息.
*/
SUCCESS("SUCCESS... | 0 | Kotlin | 1 | 1 | 5d6856d82263f5c8e3d98b6d1183b2d737088db8 | 836 | great-microservice-gradle-kotlin | Apache License 2.0 |
app/src/main/java/com/ismailhakkiaydin/movies/model/detail/MovieGenre.kt | ihaydinn | 257,322,443 | false | null | package com.ismailhakkiaydin.movies.model.detail
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
data class MovieGenre (
@SerializedName("id")
var genresId: Int,
@SerializedName("name")
var name: String?
) : Parcelable {
constructor(parcel: ... | 0 | Kotlin | 3 | 9 | d5e705ad132173dae73df07c7717af1d77fac60d | 906 | movies-app | MIT License |
vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/docs/methods/DocsEditMethod.kt | alatushkin | 156,866,851 | false | null | package name.alatushkin.api.vk.generated.docs.methods
import com.fasterxml.jackson.core.type.TypeReference
import name.alatushkin.api.vk.VkMethod
import name.alatushkin.api.vk.api.VkSuccess
/**
* Edits a document.
*
* [https://vk.com/dev/docs.edit]
* @property [owner_id] User ID or community ID. Use a negative... | 2 | Kotlin | 3 | 10 | 123bd61b24be70f9bbf044328b98a3901523cb1b | 1,539 | kotlin-vk-api | MIT License |
video-common-ui/src/main/java/com/kaleyra/video_common_ui/utils/extensions/ActivityExtensions.kt | KaleyraVideo | 686,975,102 | false | {"Kotlin": 3508512, "Shell": 7470, "Python": 6756, "Java": 1213} | /*
* Copyright 2023 Kaleyra @ https://www.kaleyra.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 0 | Kotlin | 0 | 1 | 18f298f0e37b089d1ef530eea70bd5e5b9016f9b | 2,709 | VideoAndroidSDK | Apache License 2.0 |
app/src/main/java/com/chatwaifu/mobile/ui/theme/Theme.kt | Voine | 603,770,379 | false | null | package com.chatwaifu.mobile.ui.theme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
var globalDarkTheme: Boolean = false
@Composa... | 8 | C++ | 100 | 951 | 14092ac66c2afd51de06bb126fd102cec869eb8e | 3,014 | ChatWaifu_Mobile | MIT License |
core/src/main/java/it/airgap/beaconsdk/core/storage/ExtendedStorage.kt | airgap-it | 303,679,512 | false | null | package it.airgap.beaconsdk.core.storage
import it.airgap.beaconsdk.core.data.AppMetadata
import it.airgap.beaconsdk.core.data.Peer
import it.airgap.beaconsdk.core.data.Permission
import it.airgap.beaconsdk.core.internal.BeaconConfiguration
import kotlinx.coroutines.flow.Flow
import kotlin.reflect.KClass
public inter... | 2 | Kotlin | 4 | 6 | f4183c4f64f49cb2b453425465847f97542bdc8f | 2,578 | beacon-android-sdk | MIT License |
connectors/aws/sns/src/commonMain/kotlin/com/river/connector/aws/sns/SnsClient.kt | River-Kt | 539,201,163 | false | {"Kotlin": 449492, "Shell": 268, "Python": 126} | package com.river.connector.aws.sns
import com.river.connector.aws.sns.model.PublishMessageRequest
import com.river.connector.aws.sns.model.PublishMessageResponse
expect interface SnsClient {
suspend fun publishBatch(
topicArn: String,
messages: List<PublishMessageRequest>,
): List<PublishMess... | 29 | Kotlin | 3 | 72 | 8f19d1f6852ad4875d424e01ab571314d648a7b3 | 335 | river | MIT License |
app/src/main/java/io/github/wulkanowy/data/repositories/NoteRepository.kt | bujakpvp | 167,613,504 | true | {"Kotlin": 413721, "IDL": 131} | package io.github.wulkanowy.data.repositories
import com.github.pwittchen.reactivenetwork.library.rx2.ReactiveNetwork
import com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.InternetObservingSettings
import io.github.wulkanowy.data.db.entities.Note
import io.github.wulkanowy.data.db.entities.Semeste... | 0 | Kotlin | 0 | 0 | 4da812af392ffbdf55960f8bb8d0d0f46721531b | 2,041 | wulkanowy | Apache License 2.0 |
buildSrc/src/main/java/Dependencies.kt | Michax94 | 152,717,481 | false | null | object Versions {
const val minSdk = "21"
const val targetSdk = "28"
const val versionCode = 1
const val versionName = "1.0"
const val kotlin = "1.2.71"
const val gradle = "3.2.0"
const val fabric = "1.+"
const val crashlytics = "2.9.5"
const val timber = "4.7.1"
const val appC... | 1 | Kotlin | 0 | 0 | ca757e617063825e3ce3939d0cb96c3c854458a1 | 5,366 | BaseKotlinApp | Apache License 2.0 |
app/src/main/java/com/example/tonwallet/pages/WIP/Template.kt | asnov | 625,657,380 | false | null | package com.example.tonwallet.pages.WIP
import android.content.res.Configuration
import android.util.Log
import androidx.compose.foundation.layout.Column
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Previe... | 0 | Kotlin | 0 | 2 | fea002002caaa87f8d0364f59d3e573a051d73fb | 894 | TONWallet | MIT License |
data/src/main/java/com/softvision/data/database/dao/TVShowsDAO.kt | blavi | 338,291,420 | false | null | package com.softvision.data.database.dao
import androidx.room.*
import com.softvision.data.database.base.TMDB_MOVIES
import com.softvision.data.database.base.TMDB_TV_SHOWS
import com.softvision.data.database.model.MovieEntity
import com.softvision.data.database.model.PartialTVShowEntity
import com.softvision.data.data... | 0 | Kotlin | 1 | 0 | e7cdb5955017eaed7e63d5283fdcd95ae949cfdb | 1,675 | MVI-MvRx-Hilt-Kotlin | Apache License 2.0 |
inline/src/test/kotlin/collections/iterable/SingleIntIterableTest.kt | pull-vert | 209,649,296 | false | null | package collections
import kotlin.test.*
class SingleIntIterableTest {
@Test
fun verifySingleIntIterable() {
val initialValue = 42
val singleIntIterable = SingleIntIterable(initialValue)
val values = mutableListOf<Int>()
for (value in singleIntIterable) {
values.ad... | 0 | Kotlin | 0 | 0 | 2bf6a041b34a31765ecfbc6f925831f4d9351e07 | 430 | kotlin-play | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/iam/CustomizeRolesOptionsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.iam
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Boolean
import kotlin.String
import kotl... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 1,662 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/dimitrilc/freemediaplayer/domain/UpdateGlobalPlaylistAndActiveMediaUseCase.kt | dmitrilc | 443,821,454 | false | null | package com.dimitrilc.freemediaplayer.domain
import com.dimitrilc.freemediaplayer.data.entities.MediaItem
import com.dimitrilc.freemediaplayer.data.repos.MediaManager
import javax.inject.Inject
class UpdateGlobalPlaylistAndActiveMediaUseCase @Inject constructor(
private val mediaManager: MediaManager) {
opera... | 15 | Kotlin | 0 | 1 | dbdc5a2b4f3875fc71f405723ccf1a4a18116110 | 472 | FreeMediaPlayer | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.