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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
core/src/debug/kotlin/ru/mobileup/template/core/debug_tools/RealDebugTools.kt | MobileUpLLC | 485,284,340 | false | null | package ru.mobileup.template.core.debug_tools
import android.content.Context
import com.chuckerteam.chucker.api.ChuckerCollector
import com.chuckerteam.chucker.api.ChuckerInterceptor
import com.chuckerteam.chucker.api.RetentionManager
import me.aartikov.replica.client.ReplicaClient
import me.aartikov.replica.devtools.... | 1 | null | 2 | 8 | 75c3350979d4d2a92d8b685194b80ef3747201e9 | 1,547 | MobileUp-Android-Template | MIT License |
app/src/main/java/jp/osdn/gokigen/thetaview/brainwave/BrainwaveSummaryData.kt | MRSa | 747,974,948 | false | {"Kotlin": 321183} | package jp.osdn.gokigen.thetaview.brainwave
import kotlin.experimental.and
@ExperimentalUnsignedTypes
class BrainwaveSummaryData
{
// 3-byte value : delta (0.5 - 2.75Hz), theta (3.5 - 6.75Hz), low-alpha (7.5 - 9.25Hz), high-alpha (10 - 11.75Hz), low-beta (13 - 16.75Hz), high-beta (18 - 29.75Hz), low-gamma (31 - ... | 0 | Kotlin | 0 | 0 | a4ecad82ba955919de2bb16e18da2a2b6c2c7cfc | 3,740 | ThetaView | Apache License 2.0 |
liveview-android/src/androidTest/java/com/dockyard/liveviewtest/liveview/runner/LiveViewTestRunner.kt | liveview-native | 459,214,950 | false | {"Kotlin": 891540, "Elixir": 5480} | package com.dockyard.liveviewtest.liveview.runner
import android.os.Bundle
import com.karumi.shot.ShotTestRunner
class LiveViewTestRunner : ShotTestRunner() {
override fun onCreate(args: Bundle) {
// This parameter must be passed via command line in order to generate the screenshot
// reference im... | 56 | Kotlin | 2 | 67 | 240f7357a7c4df2623268c39b6a93a57e2f49b96 | 682 | liveview-client-jetpack | MIT License |
app/src/main/java/io/homeassistant/companion/android/util/icondialog/IconDialogFragment.kt | home-assistant | 179,008,173 | false | {"Kotlin": 2639109, "Ruby": 3180} | package io.homeassistant.companion.android.util.icondialog
import android.os.Bundle
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.ui.platform.ComposeView
import androidx.fragment.app.DialogFragment
import com.mikepenz.ic... | 190 | Kotlin | 636 | 2,296 | 11367c2193316cec9579791b38006fab094293de | 1,800 | android | Apache License 2.0 |
src/test/kotlin/no/nav/syfo/LegeerklaringMapperTest.kt | navikt | 192,538,863 | false | {"Kotlin": 177545, "Dockerfile": 278} | package no.nav.syfo
import no.nav.helse.eiFellesformat.XMLEIFellesformat
import no.nav.syfo.model.toLegeerklaring
import no.nav.syfo.util.extractLegeerklaering
import no.nav.syfo.util.fellesformatUnmarshaller
import no.nav.syfo.util.getFileAsString
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.... | 1 | Kotlin | 1 | 0 | c64088d0e5c5ee9db77e3342d50c0b52b3c250b1 | 8,607 | pale-2 | MIT License |
features/categories/src/main/java/com/aliumujib/artic/categories/ui/CategoryListFragment.kt | aliumujib | 210,103,091 | false | {"Kotlin": 448725} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 6 | 47 | ad986536632f532d0d24aa3847bdef33ab7a5d16 | 6,148 | Artic | Apache License 2.0 |
14_HATEOAS/rest-with-spring-boot-and-kotlin-erudio/src/main/kotlin/br/com/erudio/controller/PersonController.kt | leandrocgsi | 471,486,043 | false | null | package br.com.application.controller
import br.com.application.data.vo.v1.PersonVO
import br.com.application.data.vo.v2.PersonVO as PersonVOV2
import br.com.application.services.PersonService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.MediaType
import org.springfram... | 0 | null | 2 | 21 | 26f2f450b93bb647f64b12d3b67cac3642913fb9 | 2,366 | rest-with-spring-boot-and-kotlin-erudio | Apache License 2.0 |
app/src/main/java/com/google/firebase/example/fireeats/util/FirestoreInitializer.kt | firebase | 105,568,229 | false | null | package com.google.firebase.example.fireeats.util
import android.content.Context
import androidx.startup.Initializer
import com.google.firebase.example.fireeats.BuildConfig
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Firebase
... | 10 | null | 156 | 262 | 6a833afd107d3bece1436bb2cec6ec1588c6c3a5 | 1,039 | friendlyeats-android | Apache License 2.0 |
app/src/main/java/com/niyaj/popos/features/reports/presentation/ReportsEvent.kt | skniyajali | 579,613,644 | false | null | package com.niyaj.popos.features.reports.presentation
sealed class ReportsEvent {
data class SelectDate(val date: String) : ReportsEvent()
data class OnChangeOrderType(val orderType: String = "") : ReportsEvent()
data class OnChangeCategoryOrderType(val orderType: String = "") : ReportsEvent()
data... | 4 | Kotlin | 0 | 1 | 43bffb61e5634c11887f32eb08448f09fa95d51e | 518 | POS-Application | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/Blur.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.Blur: ImageVector
get() {
if (_blur != null) {
... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,201 | compose-fluent-ui | Apache License 2.0 |
src/test/kotlin/com/example/realworld/unit/handler/ExceptionHandlerTest.kt | brunohenriquepj | 367,784,702 | false | null | package com.example.realworld.unit.handler
import com.example.realworld.dto.ErrorResponse
import com.example.realworld.handler.ExceptionHandler
import com.example.realworld.util.builder.common.StringBuilder
import io.kotest.matchers.collections.shouldContainAll
import org.junit.jupiter.api.Test
class ExceptionHandler... | 7 | Kotlin | 0 | 2 | a3da13258606924f185b249545955e142f783b92 | 786 | spring-boot-kotlin-realworld | MIT License |
src/test/kotlin/com/example/realworld/unit/handler/ExceptionHandlerTest.kt | brunohenriquepj | 367,784,702 | false | null | package com.example.realworld.unit.handler
import com.example.realworld.dto.ErrorResponse
import com.example.realworld.handler.ExceptionHandler
import com.example.realworld.util.builder.common.StringBuilder
import io.kotest.matchers.collections.shouldContainAll
import org.junit.jupiter.api.Test
class ExceptionHandler... | 7 | Kotlin | 0 | 2 | a3da13258606924f185b249545955e142f783b92 | 786 | spring-boot-kotlin-realworld | MIT License |
app/src/main/java/fr/free/nrw/commons/contributions/WikipediaInstructionsDialogFragment.kt | misaochan | 43,427,766 | false | null | package fr.free.nrw.commons.contributions
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
import androidx.fragment.app.DialogFragment
import fr.free.nrw.commons.R
import kotlinx.android.synthetic.main.dialog_add_to_wik... | 1 | null | 1 | 3 | 3c6c05016ed1750c110a4670229126bc8ef789a9 | 2,020 | apps-android-commons | Apache License 2.0 |
plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/Browser.kt | aws | 91,485,909 | false | null | // Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.amazonq.webview
import com.intellij.openapi.Disposable
import com.intellij.ui.jcef.JBCefJSQuery
import org.cef.CefApp
import software.aws.toolkits.jetbrain... | 519 | null | 220 | 757 | a81caf64a293b59056cef3f8a6f1c977be46937e | 3,014 | aws-toolkit-jetbrains | Apache License 2.0 |
src/test/kotlin/eu/pretix/jsonlogic/JsonLogicTests.kt | pretix | 440,528,125 | true | {"Kotlin": 24536} | package eu.pretix.jsonlogic
import com.fasterxml.jackson.databind.ObjectMapper
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
/**
* Runs official tests from jsonlogic.com
*/
private const val testUrl = "http://jsonlogic.com/tests.json"... | 0 | Kotlin | 0 | 1 | 91a79fee81276ef97689a0cc31984b5d2832166c | 10,570 | json-logic-kotlin | MIT License |
kaspresso/src/main/kotlin/com/kaspersky/kaspresso/device/exploit/Exploit.kt | KasperskyLab | 208,070,025 | false | null | package com.kaspersky.kaspresso.device.exploit
import com.kaspersky.kaspresso.annotations.RequiresAdbServer
/**
* The interface for exploitation.
*
* Required: Started AdbServer
* 1. Download a file "kaspresso/artifacts/desktop.jar"
* 2. Start AdbServer => input in cmd "java jar path_to_file/desktop.jar"... | 55 | null | 150 | 1,784 | 9c94128c744d640dcd646b86de711d2a1b9c3aa1 | 1,727 | Kaspresso | Apache License 2.0 |
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github356.kt | FasterXML | 23,404,083 | false | null | package com.fasterxml.jackson.module.kotlin.test.github
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import org.junit.Test
import kotlin.test.assertEquals
class TestGithub356 {
p... | 77 | Kotlin | 175 | 932 | fa8ee76a8a00443aa6e8cc401c4e0868219d2d5b | 1,909 | jackson-module-kotlin | Apache License 2.0 |
app/src/main/java/giuliolodi/gitnav/data/DataManagerImpl.kt | GLodi | 67,536,967 | false | null | /*
* Copyright 2017 GLodi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 3 | null | 5 | 26 | 3311c38d74dc1e7d28cba344815aa908e6915e64 | 19,102 | GitNav | Apache License 2.0 |
app/src/main/java/giuliolodi/gitnav/data/DataManagerImpl.kt | GLodi | 67,536,967 | false | null | /*
* Copyright 2017 GLodi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 3 | null | 5 | 26 | 3311c38d74dc1e7d28cba344815aa908e6915e64 | 19,102 | GitNav | Apache License 2.0 |
composeApp/src/wasmJsMain/kotlin/augmy/interactive/com/main.kt | Let-s-build-something | 867,003,530 | false | {"Kotlin": 108818, "HTML": 2487, "JavaScript": 1633, "CSS": 690} | package augmy.interactive.com
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.window.ComposeViewport
import androidx.navigation.compose.currentBackStackEntryAsState
import androidx.nav... | 0 | Kotlin | 0 | 1 | b352de83416659e791829eb89c464512e397d9ee | 2,659 | website-brand | Apache License 2.0 |
src/main/kotlin/org/arend/toolWindow/errors/tree/ArendErrorTreeListener.kt | JetBrains | 96,068,447 | false | null | package org.arend.toolWindow.errors.tree
import org.arend.typechecking.error.ArendError
interface ArendErrorTreeListener {
fun errorAdded(arendError: ArendError) {}
fun errorRemoved(arendError: ArendError) {}
} | 45 | null | 12 | 90 | b11d0906f9a0d9680675a418cdc50b98e2d33c92 | 220 | intellij-arend | Apache License 2.0 |
src/main/java/jp/osak/haggledehaghag/viewmodel/TokenView.kt | haggle-de-haghag | 363,896,456 | false | {"TypeScript": 133798, "Kotlin": 50837, "HTML": 7203, "JavaScript": 3623, "CSS": 946, "SCSS": 844, "Java": 231} | package jp.osak.haggledehaghag.viewmodel
import jp.osak.haggledehaghag.model.TokenWithAmount
data class TokenView(
val id: Int, // token id
val title: String,
val text: String,
val amount: Int,
) {
constructor(t: TokenWithAmount) : this(t.token.id, t.token.title, t.token.text, t.amount)
}
| 7 | TypeScript | 0 | 0 | d11bcb3f9c2805e3f212c92200674eab4e1c8193 | 312 | haggle-de-haghag | MIT License |
app/src/main/kotlin/com/github/plplmax/notes/ui/note/NoteViewModel.kt | plplmax | 469,630,612 | false | null | /*
* MIT License
*
* Copyright (c) 2022 Maksim Ploski
*
* 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, mo... | 0 | Kotlin | 0 | 1 | 8690d42601b792cbccdc213a3978fa8e9fa78554 | 2,356 | notes | MIT License |
komga/src/main/kotlin/org/gotson/komga/infrastructure/security/KomgaPrincipal.kt | weblate | 337,108,059 | true | {"Kotlin": 649407, "Vue": 319074, "TypeScript": 80153, "JavaScript": 2803, "Shell": 1904, "HTML": 704, "Dockerfile": 608, "Sass": 309, "CSS": 252} | package org.gotson.komga.infrastructure.security
import org.gotson.komga.domain.model.KomgaUser
import org.springframework.security.core.GrantedAuthority
import org.springframework.security.core.authority.SimpleGrantedAuthority
import org.springframework.security.core.userdetails.UserDetails
class KomgaPrincipal(
... | 0 | null | 0 | 1 | 09c35a4f1fb15e5142f3d29feea01c2616a04dcd | 869 | komga | MIT License |
vtp-pensjon-application/src/main/kotlin/no/nav/pensjon/vtp/mocks/oppgave/sak/SakRestTjeneste.kt | navikt | 254,055,233 | false | null | package no.nav.pensjon.vtp.mocks.oppgave.sak
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import no.nav.pensjon.vtp.mocks.oppgave.gask.sak.v1.GsakRepo
import no.nav.pensjon.vtp.testmodell.personopplysning.PersonModellRepository
import org.springframework.http.HttpStatus
import org.sprin... | 3 | Kotlin | 0 | 1 | 8f6cd906d9af506afb1c4dfe2234a136d52e2e69 | 1,572 | vtp-pensjon | MIT License |
src/main/kotlin/com/mcjeffr/shotbowplayercountapi/models/Count.kt | McJeffr | 289,536,253 | false | null | package com.mcjeffr.shotbowplayercountapi.models
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.mcjeffr.shotbowplayercountapi.utils.CountDeserializer
import java.time.Instant
/**
* This class represents all the recorded counts at a specific point in time.
*
* @author McJeffr
*/
@JsonD... | 0 | Kotlin | 0 | 0 | 0f4b3168fc91f24f8b2e825cfb3648c0c3efddfb | 609 | shotbow-playercount-api | MIT License |
modules/data/src/main/java/eu/automateeverything/data/plugins/PluginCategory.kt | tomaszbabiuk | 488,678,209 | true | {"Java Properties": 16, "Gradle": 28, "Shell": 1, "Markdown": 15, "Batchfile": 1, "Text": 1, "Ignore List": 2, "Kotlin": 415, "SVG": 64, "INI": 2, "Java": 199, "HTML": 5, "JSON": 2, "JavaScript": 12, "Vue": 48} | /*
* Copyright (c) 2019-2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 1 | 0 | f1163bb95b9497c70ed48db0bcaf4e7050218e7a | 734 | automate-everything | Apache License 2.0 |
src/main/kotlin/org/rust/lang/core/parser/util.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.parser
import com.intellij.lang.LanguageParserDefinitions
import com.intellij.lang.PsiBuilder
import com.intellij.lang.PsiBuilderFactory
import com.intellij.lang.parser.GeneratedParser... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 1,925 | intellij-rust | MIT License |
app/src/main/java/com/skydoves/githubfollows/view/adapter/GithubUserAdapter.kt | morristech | 119,827,224 | true | {"Kotlin": 55251, "Java": 16814} | package com.skydoves.githubfollows.view.adapter
import android.view.View
import com.skydoves.githubfollows.R
import com.skydoves.githubfollows.models.Follower
import com.skydoves.githubfollows.models.GithubUser
import com.skydoves.githubfollows.view.viewholder.BaseViewHolder
import com.skydoves.githubfollows.view.view... | 0 | Kotlin | 0 | 0 | cd4b4aa8b215aadac4cafa62c5b15b687446ecfd | 1,849 | GithubFollows | MIT License |
app/src/main/java/academy/bangkit/lanting/di/RemoteModule.kt | fhrii | 368,801,393 | false | null | package academy.bangkit.lanting.di
import academy.bangkit.lanting.data.remote.RemoteAPI
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
class RemoteModule {
@Provides
fun provideAPIService()... | 1 | Kotlin | 1 | 1 | 224efe4e6cda949249e0b543aac56e9d5d57cd35 | 342 | lanting | MIT License |
app/src/main/java/com/example/android/guesstheword/MainActivity.kt | joyce93 | 225,303,031 | false | null | /*
* Copyright (C) 2019 Google 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... | 1 | null | 1 | 1 | 5d410b03d2fc4ac62022326810aa2281b1e9dce9 | 1,372 | GuessTheWord-Starter | Apache License 2.0 |
guides/micronaut-data-access-mybatis/kotlin/src/test/kotlin/example/micronaut/GenreControllerTest.kt | micronaut-projects | 326,986,278 | false | null | package example.micronaut
import example.micronaut.domain.Genre
import example.micronaut.genre.GenreSaveCommand
import example.micronaut.genre.GenreUpdateCommand
import io.micronaut.core.type.Argument
import io.micronaut.http.HttpHeaders
import io.micronaut.http.HttpRequest
import io.micronaut.http.HttpResponse
import... | 209 | null | 31 | 36 | f40e50dc8f68cdb3080cb3802d8082ada9ca6787 | 4,650 | micronaut-guides | Creative Commons Attribution 4.0 International |
application/KotlinConcepts/app/src/main/java/com/istudio/app/modules/module_demos/kotlin_annotations/utils/stringDef/UserStatus.kt | devrath | 339,281,472 | false | {"Kotlin": 478593, "Java": 3273} | package com.istudio.app.modules.module_demos.kotlin_annotations.utils.stringDef
import androidx.annotation.StringDef
object UserStatus {
const val ACTIVE = "active"
const val IN_ACTIVE = "inactive"
const val BANNED = "banned"
@Retention(AnnotationRetention.SOURCE)
@StringDef(ACTIVE, IN_ACTIVE, B... | 0 | Kotlin | 22 | 246 | b87ccbc3cba789ec81744acde724274137204283 | 359 | KotlinAlchemy | Apache License 2.0 |
src/main/kotlin/com/hakim/ui/broker/TestListener.kt | HaKIMus | 511,521,860 | false | null | package com.hakim.ui.broker
import io.micronaut.configuration.kafka.annotation.KafkaKey
import io.micronaut.configuration.kafka.annotation.KafkaListener
import io.micronaut.configuration.kafka.annotation.OffsetReset
import io.micronaut.configuration.kafka.annotation.Topic
@KafkaListener(offsetReset = OffsetReset.EARL... | 0 | Kotlin | 0 | 0 | 68c85942634a099e6c83dae2341eb875eeb5037d | 492 | sparkles | MIT License |
features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/state/MarketState.kt | MathRoda | 507,060,394 | false | {"Kotlin": 446115, "Swift": 4323, "Ruby": 2379, "Java": 624} | package com.mathroda.favorites.state
import com.mathroda.domain.CoinById
data class MarketState(
private val loading: Boolean = false,
val coin: CoinById? = null,
val error: String = ""
) {
val isLoading: Boolean
get() = loading && coin != null
}
| 0 | Kotlin | 41 | 297 | cf303ba50bad35a816253bee5b27beee5ea364b8 | 273 | DashCoin | Apache License 2.0 |
app/src/main/java/id/co/woiapp/data/remote/service/LoginService.kt | bintangeditya | 340,482,979 | false | null | package id.co.woiapp.data.remote.service
import id.co.woiapp.data.entities.Book
import id.co.woiapp.data.entities.RootResponse
import id.co.woiapp.data.entities.User
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
interface LoginService {
// @GET("book/user... | 0 | Kotlin | 0 | 0 | a88ef6c24baa270b03c3637d4f95beb335316e5b | 479 | WorkOnItApp | Apache License 2.0 |
app/src/main/java/com/example/instagramclone/main/MyPostsScreen.kt | slatqh | 700,506,198 | false | {"Kotlin": 67631} | package com.devkm.snapmania.main
import android.net.Uri
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.backgro... | 0 | Kotlin | 0 | 0 | b1222df400489503f3f47e31b6a1485f58f9c14e | 8,680 | instagramClone-Android | MIT License |
src/main/kotlin/com/bridgecrew/analytics/AnalyticsService.kt | bridgecrewio | 644,310,885 | false | null | package com.bridgecrew.analytics
import com.bridgecrew.services.scan.FullScanStateService
import com.bridgecrew.services.scan.ScanTaskResult
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.project.Pr... | 11 | Kotlin | 0 | 0 | 890fd364497db79b125490b0cd074443318b90a5 | 8,185 | prisma-cloud-jetbrains-ide | Apache License 2.0 |
shared/src/commonMain/kotlin/util/ImageProvider.kt | mbakgun | 629,040,507 | false | {"Kotlin": 63999, "Ruby": 2296, "Swift": 771, "HTML": 453, "Shell": 228} | package util
import androidx.compose.ui.unit.Dp
data class ImageProvider(val columnCount: Int, val itemHeight: Dp)
internal expect fun getImageProvider(): ImageProvider
| 2 | Kotlin | 19 | 220 | 9d1de4c3dcddf23cdba4a94bbb213f07eb81c608 | 172 | midjourney-images-compose-multiplatform | MIT License |
src/main/kotlin/slatemagic/shape/spring/SpellShapeFrame.kt | Jempasam | 717,593,852 | false | {"Kotlin": 146073, "Java": 1020} | package slabmagic.shape.spring
import slabmagic.shape.SpellShape
import slabmagic.shape.painter.GraphicsPainter
import java.awt.Color
import java.awt.Graphics
import javax.swing.JPanel
class SpellShapeFrame(val shape: SpellShape, val color: Color): JPanel(){
override fun paint(g: Graphics) {
super.paint(... | 0 | Kotlin | 0 | 0 | c91b03b212ea6be392fa3723183fd27b1ef7f8e2 | 658 | SlateMagic | Creative Commons Zero v1.0 Universal |
src/test/kotlin/common/UnitTest.kt | HugoTigre | 169,423,160 | false | null | package common
import org.junit.jupiter.api.Tag
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.junit.jupiter.MockitoExtension
@ExtendWith(MockitoExtension::class)
@Tag("integration")
annotation class IntegrationTest | 0 | Kotlin | 0 | 0 | 423f06cb5cc6ff09dee9b6bd1504087a525d84ba | 240 | demo-kafka-cli | MIT License |
app/src/main/java/zlc/season/bracerapp/MainActivity.kt | df13954 | 326,544,320 | true | {"Kotlin": 50466} | package zlc.season.bracerapp
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import zlc.season.bracer.start
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedIns... | 0 | null | 0 | 0 | 5d11c1f2ab6f70d66a2046cf5d981aeb208eec03 | 580 | Bracer | Apache License 2.0 |
compiler/testData/diagnostics/tests/constantEvaluator/isPure/unaryMinusIndepWoExpType.kt | JetBrains | 3,432,266 | false | null | package test
// val p1: true
<!DEBUG_INFO_CONSTANT_VALUE("true")!>val p1 = -1<!>
// val p2: false
<!DEBUG_INFO_CONSTANT_VALUE("false")!>val p2 = -1.toLong()<!>
// val p3: false
<!DEBUG_INFO_CONSTANT_VALUE("false")!>val p3 = -1.toByte()<!>
// val p4: false
<!DEBUG_INFO_CONSTANT_VALUE("false")!>val p4 = -1.toInt()<!>... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 402 | kotlin | Apache License 2.0 |
drop-in/src/main/java/com/adyen/checkout/dropin/internal/ui/ActionComponentDialogFragment.kt | Adyen | 91,104,663 | false | null | /*
* Copyright (c) 2022 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by josephj on 31/8/2022.
*/
package com.adyen.checkout.dropin.internal.ui
import android.content.DialogInterface
import android.content.Intent
import android.os.Bu... | 36 | null | 66 | 120 | 2e4fe733c112518b9ec75fcf2dca1aaa711b2458 | 9,207 | adyen-android | MIT License |
app/src/test/java/com/example/android/architecture/blueprints/todoapp/statistics/StatisticsUtilsTest.kt | graffiti75 | 617,140,886 | false | null | package com.example.android.architecture.blueprints.todoapp.statistics
import com.example.android.architecture.blueprints.todoapp.data.Task
import org.hamcrest.CoreMatchers.`is`
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Assert.assertEquals
import org.junit.Test
class StatisticsUtilsTest {
/**
... | 0 | Kotlin | 0 | 0 | 86ee2e29f4edaed26cefcf56cee6445623c8391d | 2,366 | ToDoTesting | Apache License 2.0 |
player/src/main/java/com/gang/test/player/dtpv/youtube/views/CircleClipTapView.kt | pacoblack | 607,573,689 | false | {"Gradle": 5, "JSON": 864, "Java Properties": 8, "Markdown": 5, "Shell": 2, "Text": 24, "HTML": 1, "Batchfile": 2, "INI": 8, "Proguard": 11, "XML": 556, "Kotlin": 191, "Java": 335, "SQL": 4, "Unix Assembly": 2, "Motorola 68K Assembly": 9, "Ignore List": 1} | package com.ntduc.videoplayer.video.player.dtpv.youtube.views
import android.animation.Animator
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Path
import android.util.AttributeSet
import android.view.View
impor... | 0 | Java | 0 | 0 | eab622a0f037418f1d8149139f5ac479f0845637 | 5,970 | my_kotlin_android | Apache License 2.0 |
reactive-core-jakarta/src/test/kotlin/com/linecorp/kotlinjdsl/querydsl/where/ReactiveQueryDslImplWhereTest.kt | line | 442,633,985 | false | null | package com.linecorp.kotlinjdsl.querydsl.where
import com.linecorp.kotlinjdsl.query.clause.where.WhereClause
import com.linecorp.kotlinjdsl.query.spec.predicate.AndSpec
import com.linecorp.kotlinjdsl.query.spec.predicate.OrSpec
import com.linecorp.kotlinjdsl.query.spec.predicate.PredicateSpec
import com.linecorp.kotli... | 26 | Kotlin | 60 | 504 | f28908bf432cf52f73a9573b1ac2be5eb4b2b7dc | 8,415 | kotlin-jdsl | Apache License 2.0 |
core/model/src/main/kotlin/ru/resodostudios/cashsense/core/model/data/Subscription.kt | f33lnothin9 | 674,320,726 | false | null | package ru.resodostudios.cashsense.core.model.data
import kotlinx.datetime.Instant
import java.math.BigDecimal
data class Subscription(
val id: String,
val title: String,
val amount: BigDecimal,
val currency: String,
val paymentDate: Instant,
val notificationDate: Instant?,
val repeatingIn... | 0 | null | 3 | 8 | 0117df61689868a7c0196246e0fb4caaed3f1b5a | 335 | cashsense | Apache License 2.0 |
app/src/main/java/com/cindaku/nftar/modules/PicassoModule.kt | metacdq | 564,567,451 | false | {"Kotlin": 180571} | package com.cindaku.nftar.modules
import com.squareup.picasso.Picasso
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class PicassoModule {
@Provides
@Singleton
fun getPicasso(): Picasso{
return Picasso.get()
}
} | 0 | Kotlin | 1 | 0 | 5c6eb7dbc44ece846b9b01d365a1f32e1ce80284 | 272 | nftar-android | MIT License |
platform/lang-impl/src/com/intellij/execution/runners/ConsoleTitleGen.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-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... | 6 | null | 1 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 2,044 | intellij-community | Apache License 2.0 |
test-utils/testData/api/overridee/javaOverrideInSource.kt | google | 297,744,725 | false | {"Kotlin": 2173589, "Shell": 5321, "Java": 3893} | /*
* Copyright 2023 Google LLC
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
*
* 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.apac... | 370 | Kotlin | 268 | 2,854 | a977fb96b05ec9c3e15b5a0cf32e8e7ea73ab3b3 | 2,637 | ksp | Apache License 2.0 |
app/src/main/java/org/oppia/android/app/onboarding/OnboardingViewModel.kt | harshpatel63 | 330,956,278 | true | {"Kotlin": 5294875, "Starlark": 152600, "Java": 32457, "Shell": 8681} | package org.oppia.android.app.onboarding
import androidx.databinding.ObservableField
import androidx.lifecycle.ViewModel
import org.oppia.android.app.viewmodel.ObservableViewModel
import javax.inject.Inject
/** [ViewModel] for [OnboardingFragment]. */
class OnboardingViewModel @Inject constructor() : ObservableViewMo... | 0 | Kotlin | 0 | 1 | c42dca3eb6c69821784063fb18621a81473735ce | 500 | oppia-android | Apache License 2.0 |
community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateMavenProjectAndConfigureKotlinGuiTest.kt | weiqiangzheng | 146,094,397 | false | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.projectWizard.kotlin.createProject
import com.intellij.ide.projectWizard.kotlin.model.*
import com.intellij.testGuiFramework.util.*
import org.junit.Test... | 0 | null | 0 | 1 | b803c8dc2b996ad983a5d1d4de21c6eae06eec78 | 3,637 | intellij-community | Apache License 2.0 |
app/src/main/java/fr/free/nrw/commons/upload/structure/depictions/DepictModel.kt | commons-app | 42,032,884 | false | {"Java": 1801851, "Kotlin": 1433772, "PHP": 3156, "Shell": 1449, "Makefile": 595} | package fr.free.nrw.commons.upload.structure.depictions
import fr.free.nrw.commons.explore.depictions.DepictsClient
import fr.free.nrw.commons.nearby.Place
import fr.free.nrw.commons.repository.UploadRepository
import io.github.coordinates2country.Coordinates2Country
import io.reactivex.Flowable
import io.reactivex.Ob... | 571 | Java | 1179 | 997 | 93f1e1ec299a78dac8a013ea21414272c1675e7b | 3,330 | apps-android-commons | Apache License 2.0 |
src/main/kotlin/com/theapache64/stackzy/ui/feature/MainActivity.kt | arkivanov | 352,727,599 | true | {"Kotlin": 206547} | package com.theapache64.stackzy.ui.feature
import androidx.compose.ui.unit.IntSize
import com.arkivanov.decompose.extensions.compose.jetbrains.rememberRootComponent
import com.theapache64.cyclone.core.Activity
import com.theapache64.cyclone.core.Intent
import com.theapache64.stackzy.App
import com.theapache64.stackzy.... | 0 | null | 0 | 3 | 4d5a6004b3e05f12e004ad528aec5f94105171e0 | 1,251 | stackzy | Apache License 2.0 |
app/src/main/java/com/example/fragmentlifecycle/BlankFragment.kt | Devanshsati | 802,178,084 | false | {"Kotlin": 3351} | package com.example.fragmentlifecycle
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
class BlankFragment : Fragment() {
over... | 0 | Kotlin | 0 | 0 | 50c577599f6d38206a07846fa8c5d5f74dce7a10 | 1,793 | FragmentLifeCycle-Android | Apache License 2.0 |
app/src/main/java/dev/esnault/bunpyro/android/display/compose/SimpleScreen.kt | esnaultdev | 242,479,002 | false | null | package dev.esnault.bunpyro.android.display.compose
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.runtime.Composable
import androidx.navigation.NavController
/**
* A simple screen with a top app bar and some [content... | 2 | Kotlin | 1 | 9 | 89b3c7dad2c37c22648c26500016d6503d27019e | 789 | BunPyro | Intel Open Source License |
src/me/anno/ecs/components/cache/AnimationCache.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.ecs.components.cache
import me.anno.cache.CacheSection
import me.anno.ecs.components.anim.AnimTexture
import me.anno.ecs.components.anim.Animation
import me.anno.ecs.components.anim.Skeleton
import me.anno.ecs.prefab.PrefabByFileCache
import me.anno.io.files.FileReference
object AnimationCache : Prefa... | 0 | Kotlin | 0 | 7 | bacd7c79b8b34765d157012a08d728008c4b2d9a | 994 | RemsEngine | Apache License 2.0 |
compiler/testData/codegen/box/invokedynamic/sam/kt51868_contravariantGenericSam.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // IGNORE_BACKEND_FIR: JVM_IR
// FIR status: "ClassCastException: String cannot be cast to StringBuilder".
// FIR always takes the parameter type and erases type projections in it to obtain the SAM type. This is incorrect, see KT-51868 and KT-52428.
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// CHECK_BY... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,170 | kotlin | Apache License 2.0 |
app/src/main/java/com/smtm/mvvm/data/db/entity/mapper/UserDocumentEntityMapper.kt | asus4862 | 293,993,826 | false | null | package com.smtm.mvvm.data.db.entity.mapper
import com.smtm.mvvm.data.db.entity.BookmarkEntity
import com.smtm.mvvm.data.repository.user.model.UserDocument
/**
*
**/
object UserDocumentEntityMapper {
fun toEntity(imageDocument: UserDocument): BookmarkEntity {
return imageDocument.run {
Boo... | 0 | Kotlin | 0 | 0 | c535bd319d7a77fb9d5df8524313026d1b3ce2da | 941 | MVVMArchitecture | Apache License 2.0 |
app/src/main/java/com/smtm/mvvm/data/db/entity/mapper/UserDocumentEntityMapper.kt | asus4862 | 293,993,826 | false | null | package com.smtm.mvvm.data.db.entity.mapper
import com.smtm.mvvm.data.db.entity.BookmarkEntity
import com.smtm.mvvm.data.repository.user.model.UserDocument
/**
*
**/
object UserDocumentEntityMapper {
fun toEntity(imageDocument: UserDocument): BookmarkEntity {
return imageDocument.run {
Boo... | 0 | Kotlin | 0 | 0 | c535bd319d7a77fb9d5df8524313026d1b3ce2da | 941 | MVVMArchitecture | Apache License 2.0 |
addressbook-main/src/main/kotlin/com/addressbook/aop/LoggingAspect.kt | dredwardhyde | 164,920,046 | false | null | package com.addressbook.aop
import com.fasterxml.jackson.databind.ObjectMapper
import org.aspectj.lang.ProceedingJoinPoint
import org.aspectj.lang.annotation.Around
import org.aspectj.lang.annotation.Aspect
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
@Aspect
@Component
class Loggin... | 0 | null | 7 | 9 | cb69285f5b796bb2c0c3930120a4e1b287132ae7 | 1,055 | addressbook | Apache License 2.0 |
addressbook-main/src/main/kotlin/com/addressbook/aop/LoggingAspect.kt | dredwardhyde | 164,920,046 | false | null | package com.addressbook.aop
import com.fasterxml.jackson.databind.ObjectMapper
import org.aspectj.lang.ProceedingJoinPoint
import org.aspectj.lang.annotation.Around
import org.aspectj.lang.annotation.Aspect
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
@Aspect
@Component
class Loggin... | 0 | null | 7 | 9 | cb69285f5b796bb2c0c3930120a4e1b287132ae7 | 1,055 | addressbook | Apache License 2.0 |
plugins/kotlinx-serialization/testData/diagnostics/NullabilityIncompatible.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
// WITH_STDLIB
// FILE: annotation.kt
package kotlinx.serialization
import kotlin.annotation.*
/*
Until the annotation is added to the serialization runtime,
we have to create an annotation with that name in the project itself
*/
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RU... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,154 | kotlin | Apache License 2.0 |
clients/graphql-kotlin-client-serialization/src/test/kotlin/com/expediagroup/graphql/client/serialization/data/EnumQuery.kt | ExpediaGroup | 148,706,161 | false | null | /*
* Copyright 2021 Expedia, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 68 | null | 345 | 1,739 | d3ad96077fc6d02471f996ef34c67066145acb15 | 1,404 | graphql-kotlin | Apache License 2.0 |
room/compiler-processing/src/main/java/androidx/room/compiler/processing/XExecutableElement.kt | easyandroid-cc | 367,029,992 | true | {"Java Properties": 49, "Shell": 65, "INI": 3, "Text": 4795, "Gradle": 562, "Markdown": 84, "Ignore List": 36, "Java": 5498, "XML": 14013, "HTML": 17, "Kotlin": 4945, "Python": 32, "JSON": 46, "Proguard": 44, "Protocol Buffer": 37, "Protocol Buffer Text Format": 54, "CMake": 3, "C++": 5, "SVG": 4, "Ant Build System": 5... | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | null | 0 | 1 | 7cbc7c6d26449a2896afd8eb332d32fc8e00cc2e | 1,593 | androidx | Apache License 2.0 |
examples/plugin/src/io/github/tozydev/patek/examples/commands/GmGuiCommand.kt | tozydev | 773,615,401 | false | {"Kotlin": 128971, "Java": 2674} | package io.github.tozydev.patek.examples.commands
import dev.jorel.commandapi.kotlindsl.playerExecutor
import io.github.tozydev.patek.commands.command
import io.github.tozydev.patek.examples.gui.gameModeGui
fun gmGuiCommand() =
command("gmGui") {
withShortDescription("Open the game mode GUI")
with... | 0 | Kotlin | 0 | 1 | f5b0fd5ba40c51dd53934d3bb5b41052675fb205 | 471 | patek | MIT License |
backend/src/main/kotlin/com/lucasalfare/flrefs/main/usecase/UserServices.kt | LucasAlfare | 794,789,183 | false | {"Kotlin": 66207, "HTML": 5527, "Dockerfile": 664} | package com.lucasalfare.flrefs.main.usecase
import com.lucasalfare.flrefs.main.domain.model.dto.LoginRequestDTO
import com.lucasalfare.flrefs.main.domain.repository.UserRepository
object UserServices {
lateinit var userRepository: UserRepository
suspend fun create(email: String, plainPassword: String) =
use... | 0 | Kotlin | 0 | 1 | f4a30a613070681dacd0965aa751187e46e351b0 | 479 | FL-Refs | MIT License |
compiler/testData/codegen/boxAgainstJava/sam/kt11519Constructor.kt | JakeWharton | 99,388,807 | true | null | // SKIP_JDK6
// FILE: Custom.java
class Custom<K, V> {
private K k;
private V v;
public Custom(K k, V v) {
this.k = k;
this.v = v;
}
public interface MBiConsumer<T, U> {
void accept(T t, U u);
}
public void forEach(MBiConsumer<? super K, ? super V> action) {
... | 181 | Kotlin | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 800 | kotlin | Apache License 2.0 |
idea/testData/codeInsight/moveUpDown/parametersAndArguments/classParams6.kt | JakeWharton | 99,388,807 | true | null | // MOVE: up
// IS_APPLICABLE: false
class A(
<caret>b: Int,
c: Int,
a: Int
) {
}
| 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 106 | kotlin | Apache License 2.0 |
app/src/main/java/com/pratthamarora/proman/model/User.kt | PratthamArora | 266,790,024 | false | null | package com.rizeq.promana.model
import android.os.Parcel
import android.os.Parcelable
data class User(
val id: String = "",
val name: String = "",
val email: String = "",
val image: String = "",
val mobile: Long = 0,
val fcmToken: String = ""
) : Parcelable {
constructor(source: Parcel) : ... | 0 | null | 4 | 9 | 0db90b3ba2fc17afbb8dcb9cf8b3ab5a7b2c0c77 | 1,095 | ProMan | MIT License |
units-common/src/commonMain/kotlin/repo/IUnitRepository.kt | crowdproj | 508,534,078 | false | {"Kotlin": 228068, "Dockerfile": 467} | package com.crowdproj.units.common.repo
interface IUnitRepository {
suspend fun createUnit(rq: DbUnitRequest): DbUnitResponse
suspend fun readUnit(rq: DbUnitIdRequest): DbUnitResponse
suspend fun updateUnit(rq: DbUnitRequest): DbUnitResponse
suspend fun deleteUnit(rq: DbUnitIdRequest): DbUnitResponse
... | 1 | Kotlin | 2 | 0 | 7d0023a952e540ccd45769d61ceab8acd700bc6b | 1,387 | crowdproj-units | Apache License 2.0 |
desktopApp/src/commonMain/kotlin/com/foreverrafs/superdiary/JvmAnalytics.kt | rafsanjani | 315,355,130 | false | {"Kotlin": 319164, "Shell": 1002, "Swift": 851, "Ruby": 816} | package com.foreverrafs.superdiary
import com.foreverrafs.superdiary.core.analytics.AnalyticsEvents
import com.foreverrafs.superdiary.core.analytics.AnalyticsTracker
class JvmAnalytics : AnalyticsTracker {
override fun trackEvent(event: AnalyticsEvents) {
TODO("Implement JVM analytics")
}
}
| 12 | Kotlin | 0 | 8 | 79839cf672e3e911835bcfa63b31760afab71cce | 310 | superdiary | MIT License |
compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/window/Menu.desktop.kt | JetBrains | 351,708,598 | false | null | /*
* Copyright 2021 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 applica... | 30 | null | 950 | 59 | 3fbd775007164912b34a1d59a923ad3387028b97 | 25,460 | androidx | Apache License 2.0 |
intellij-idea/src/main/kotlin/com/itangcent/intellij/config/rule/PsiFieldContext.kt | Earth-1610 | 178,314,657 | false | {"Kotlin": 1216447, "Java": 35079, "Shell": 3153} | package com.itangcent.intellij.config.rule
import com.intellij.psi.PsiDocCommentOwner
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiField
import com.intellij.psi.PsiModifierListOwner
import com.itangcent.common.utils.SimpleExtensible
import com.itangcent.common.utils.cache
import com.itangcent.intellij... | 0 | Kotlin | 5 | 8 | af802e7ea26b233610c9d35af89365c93f48158b | 1,458 | intellij-kotlin | Apache License 2.0 |
reactive-albums-api/src/test/kotlin/nl/juraji/reactive/albums/api/pictures/PictureCommandControllerTest.kt | Juraji | 290,577,996 | false | null | package nl.juraji.reactive.albums.api.pictures
import com.fasterxml.jackson.databind.ObjectMapper
import com.marcellogalhardo.fixture.Fixture
import com.marcellogalhardo.fixture.next
import com.ninjasquad.springmockk.MockkBean
import io.mockk.every
import io.mockk.mockk
import nl.juraji.reactive.albums.api.ApiTestConf... | 0 | Kotlin | 0 | 1 | 205927ceb1ce19e27e2b2aa83f61eeda968613d1 | 5,942 | reactive-albums | MIT License |
uikit/src/main/java/com/sendbird/uikit/internal/extensions/MessageListAdapterExtensions.kt | sendbird | 350,188,329 | false | null | package com.sendbird.uikit.internal.extensions
import com.sendbird.uikit.activities.adapter.MessageListAdapter
import com.sendbird.uikit.internal.interfaces.OnSubmitButtonClickListener
private var submitButtonClickListener: OnSubmitButtonClickListener? = null
internal var MessageListAdapter.submitButtonClickListener: ... | 1 | null | 43 | 34 | 28c5f2f88014060dedf7a22003a3dba4da84cb42 | 530 | sendbird-uikit-android | MIT License |
src/main/kotlin/fr/shikkanime/dtos/ConfigDto.kt | Shikkanime | 725,527,999 | false | {"Kotlin": 628695, "FreeMarker": 142641, "JavaScript": 2805, "SCSS": 1949, "Dockerfile": 1019, "Shell": 812, "Fluent": 69} | package fr.shikkanime.dtos
import java.util.*
data class ConfigDto(
val uuid: UUID?,
val propertyKey: String?,
var propertyValue: String?,
)
| 4 | Kotlin | 0 | 4 | 82a29d666167ae9583952042e752d95631ef44bf | 155 | core | Apache License 2.0 |
kotlin/src/main/kotlin/net/timafe/angkor/service/UserService.kt | tillkuhn | 219,713,329 | false | null | package net.timafe.angkor.service
import net.timafe.angkor.domain.User
import net.timafe.angkor.domain.dto.UserSummary
import net.timafe.angkor.domain.enums.EntityType
import net.timafe.angkor.repo.UserRepository
import net.timafe.angkor.security.SecurityUtils
import net.timafe.angkor.security.ServiceAccountToken
impo... | 23 | null | 4 | 9 | b467cdf5f7e73c9dd2d6130ca5ca44d129f094c1 | 8,346 | angkor | Apache License 2.0 |
library/src/main/java/com/cube/styleguide/adapter/viewholder/ColorItemViewHolder.kt | 3sidedcube | 620,468,694 | false | null | package com.cube.styleguide.adapter.viewholder
import android.view.LayoutInflater
import android.widget.LinearLayout
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.cube.styleguide.R
import com.cube.styleguide.databinding.ColorBannerViewBinding
import com.cube.sty... | 0 | Kotlin | 0 | 0 | ed6857ecc447b5062c90284424d261e94844a0b3 | 2,482 | guidestyle-android-client | Apache License 2.0 |
serverless-simulator/opendc/opendc-compute/src/test/kotlin/com/atlarge/opendc/compute/virt/HypervisorTest.kt | atlarge-research | 297,702,102 | false | {"Jupyter Notebook": 11330813, "Kotlin": 547073, "Python": 15018, "R": 1048} | /*
* MIT License
*
* Copyright (c) 2020 atlarge-research
*
* 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,... | 0 | Jupyter Notebook | 1 | 2 | 11c772bcb3fc7a7c2590d6ed6ab979b78cb9fec9 | 3,614 | opendc-serverless | MIT License |
app/android/ui/core/public/src/main/kotlin/build/wallet/ui/components/status/StatusBanner.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.ui.components.status
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.com... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 2,902 | bitkey | MIT License |
app/src/main/java/com/example/tmdbapi/screens/commons/StandardScaffold.kt | EliYakubov7 | 791,484,600 | false | {"Kotlin": 106735} | package com.example.tmdbapi.screens.commons
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material.BottomNavigation
import androidx.compose.material.BottomNavigationItem
import androidx.compose.material.Icon
import androidx.compose.material.Text
import androidx.compose.material3.Exper... | 0 | Kotlin | 0 | 0 | 6f688c61bc2e4987be664794bf068d2e92b7e911 | 3,118 | Movies-App | Apache License 2.0 |
main/src/main/kotlin/desktopnotification/desktopnotification.kt | sacchie | 394,621,052 | false | null | package main.desktopnotification
import main.Client
import main.Notification
import main.NotificationId
import main.keywordmatch.matchKeyword
import java.time.OffsetDateTime
import java.time.ZoneOffset
typealias Updater = (update: (cur: Set<NotificationId>) -> Set<NotificationId>) -> Unit
interface Service {
fun... | 25 | Kotlin | 2 | 0 | 91467034ecc0d53827241b96fccc980ca8b58393 | 865 | satchi | MIT License |
shared/src/commonMain/kotlin/com/shady/dogskmm/entities/Breed.kt | Shady-Selim | 436,758,919 | false | {"Kotlin": 13931, "Swift": 4751} | package com.shady.dogskmm.entities
import kotlinx.serialization.Serializable
@Serializable
data class Breed(
val id : Int,
val name : String
)
/*val weight : WeightHeight,
val height : WeightHeight,
val id : Int,
val name : String,
val bred_for : String,
val breed_group : String,
val life_span : String,
val ... | 0 | Kotlin | 0 | 0 | 9a478398113b7d4f2de6a288c10f0b71c2118636 | 397 | Dogs-KMM | Apache License 2.0 |
zircon.core/src/main/kotlin/org/codetome/zircon/api/builder/graphics/BoxBuilder.kt | mdr0id | 142,499,841 | true | {"Kotlin": 772586, "Java": 70338} | package org.codetome.zircon.api.builder.graphics
import org.codetome.zircon.api.Size
import org.codetome.zircon.api.TextCharacter
import org.codetome.zircon.api.builder.Builder
import org.codetome.zircon.api.builder.TextCharacterBuilder
import org.codetome.zircon.api.graphics.Box
import org.codetome.zircon.api.graphic... | 0 | Kotlin | 0 | 0 | 58cade5b8ecb2663d6880d3220db70f6e7bb6f91 | 2,019 | zircon | MIT License |
app/src/androidTest/java/com/chesire/nekome/helpers/AuthProviderExtensions.kt | ashishkharcheiuforks | 256,973,577 | true | {"Kotlin": 498067, "Ruby": 7559, "JavaScript": 64} | package com.chesire.nekome.helpers
import com.chesire.nekome.kitsu.AuthProvider
/**
* Tells the [AuthProvider] that a user is logged in, used to skip login.
*/
fun AuthProvider.login() {
accessToken = "fakeAccessToken"
}
| 0 | null | 0 | 0 | c941c4e1fed0ed76ff28948d9d9bfe7fa280117f | 229 | Nekome | Apache License 2.0 |
WeatherApp/app/src/main/java/mobg/g58093/weather_app/network/responses/WeatherResponse.kt | FilipeDevs | 743,950,504 | false | {"Kotlin": 106084} | package mobg.g58093.weather_app.network.responses
import kotlinx.serialization.Serializable
@Serializable
data class WeatherResponse(
val coord: Coords,
val main: MainWeatherInfo,
val weather: List<WeatherInfo>,
val sys: SysInfo,
val wind: WindInfo,
val visibility: Int,
val name: String,
... | 0 | Kotlin | 0 | 1 | 829b681f18c1d8afeec243c9ca35f348cea38d20 | 354 | weatherAppAndroid | MIT License |
library/src/main/java/com/wahidabd/library/utils/coroutine/EmitResource.kt | wahidabd | 705,005,842 | false | {"Kotlin": 201319} | package com.wahidabd.library.utils.coroutine
import com.wahidabd.library.data.Resource
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.flow
/**
* Created by Wahid on 3/27/2023.
* Github wahidabd.
*/
abstract class EmitResource <Request, Response> {
pri... | 0 | Kotlin | 0 | 7 | e4b36cd6bfe6a60540c98aad4308c1dbb812c20a | 978 | onelib | MIT License |
tests-with-me/src/main/java/com/github/aivanovski/testswithme/flow/runner/listener/FlowLifecycleListener.kt | aivanovski | 815,197,496 | false | {"Kotlin": 800559, "Clojure": 13655, "Shell": 1883, "Scala": 850, "Dockerfile": 375} | package com.github.aivanovski.testswithme.flow.runner.listener
import arrow.core.Either
import com.github.aivanovski.testswithme.entity.Flow
import com.github.aivanovski.testswithme.entity.exception.FlowExecutionException
import com.github.aivanovski.testswithme.flow.commands.StepCommand
interface FlowLifecycleListen... | 0 | Kotlin | 0 | 0 | 0366b4dc9afc396dcb782c2bf1cb8ad230895a18 | 751 | tests-with-me | Apache License 2.0 |
Hora_Codar3-Kotlin/Act3(exc3).kt | cunhagustavo | 862,427,443 | false | {"Kotlin": 23694} | //3 - Escreva um algoritmo para imprimir os números de 1 (inclusive) a 10 (inclusive) em ordem decrescente.
//Exemplo: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
fun main(){
var cont = 11
while (cont > 1){
cont = cont - 1
println("$cont")
}
} | 0 | Kotlin | 0 | 0 | ccdff9b1585380a2bd93b6ddf2bb588acea49bdf | 254 | Hora_Codar_Kotlin | MIT License |
detekt-rules-naming/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/naming/MatchingDeclarationName.kt | detekt | 71,729,669 | false | null | package io.gitlab.arturbosch.detekt.rules.naming
import io.gitlab.arturbosch.detekt.api.ActiveByDefault
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Configuration
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.artu... | 190 | null | 772 | 6,253 | c5d7ed3da2824534d0e15f8404ad4f1c59fb553c | 4,436 | detekt | Apache License 2.0 |
dependency-injection/src/main/java/studio/lunabee/di/RepositoryModule.kt | LunabeeStudio | 624,544,471 | false | null | /*
* Copyright (c) 2023-2023 Lunabee Studio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 0 | Kotlin | 0 | 0 | 9e5d38b7c54e500062c4d8efcc61a753a7c6ddce | 5,074 | oneSafe6_SDK_Android | Apache License 2.0 |
backend/src/main/kotlin/metrik/project/infrastructure/github/feign/GithubFeignClient.kt | thoughtworks | 351,856,572 | false | null | package metrik.project.infrastructure.github.feign
import feign.RequestInterceptor
import feign.RequestTemplate
import metrik.project.infrastructure.github.feign.response.BranchResponse
import metrik.project.infrastructure.github.feign.response.CommitResponse
import metrik.project.infrastructure.github.feign.response.... | 19 | null | 86 | 348 | def6a52cb7339f6a422451710083177b9c79689a | 2,904 | metrik | MIT License |
app/src/main/java/com/codepath/apps/restclienttemplate/TimelineActivity.kt | WazahatAttar | 469,019,168 | false | null | package com.codepath.apps.restclienttemplate
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import androidx.recyclerview.widget.LinearLayoutManager
import an... | 2 | Kotlin | 0 | 0 | cb46047ce88eb3dac788752874fb5d54c5311b35 | 3,352 | RestClientTemplateKotlin | Apache License 2.0 |
falkon-dao/src/test/kotlin/com/jayrave/falkon/dao/query/QueryBuilderImplTest.kt | jayrave | 65,279,209 | false | null | package com.jayrave.falkon.dao.query
import com.jayrave.falkon.dao.lib.qualifiedName
import com.jayrave.falkon.dao.query.testLib.*
import com.jayrave.falkon.dao.testLib.TableForTest
import com.jayrave.falkon.sqlBuilders.lib.JoinInfo
import com.jayrave.falkon.sqlBuilders.lib.WhereSection.Predicate.OneArgPredicate
impor... | 6 | Kotlin | 2 | 12 | ce42d553c578cd8e509bbfd7effc5d56bf3cdedd | 3,894 | falkon | Apache License 2.0 |
Project/app/src/main/java/com/kotlin/jaesungchi/jetpack_navigation/ThirdFragment.kt | Jaesungchi | 245,988,193 | false | null | package com.kotlin.jaesungchi.jetpack_navigation
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
class ThirdFragment : Fragment(){
override fu... | 0 | Kotlin | 0 | 0 | b4221b3934f3a721bc9d46363094f95c3c392d63 | 923 | Jetpack-Navigation-Example | Apache License 2.0 |
Project/app/src/main/java/com/kotlin/jaesungchi/jetpack_navigation/ThirdFragment.kt | Jaesungchi | 245,988,193 | false | null | package com.kotlin.jaesungchi.jetpack_navigation
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
class ThirdFragment : Fragment(){
override fu... | 0 | Kotlin | 0 | 0 | b4221b3934f3a721bc9d46363094f95c3c392d63 | 923 | Jetpack-Navigation-Example | Apache License 2.0 |
forgerock-auth/src/test/java/org/forgerock/android/auth/callback/BooleanAttributeInputCallbackTest.kt | ForgeRock | 215,203,638 | false | {"Java": 1350991, "Kotlin": 942810, "CSS": 2849, "FreeMarker": 2042, "C++": 785, "Makefile": 330} | /*
* Copyright (c) 2023 ForgeRock. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package org.forgerock.android.auth.callback
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.assertj.core.api.Assert... | 22 | Java | 23 | 35 | e423b0918be31db87c0cefff5dbaadee4a578989 | 3,107 | forgerock-android-sdk | MIT License |
src/day25/Day25.kt | dkoval | 572,138,985 | false | null | package day25
import readInput
private const val DAY_ID = "25"
fun main() {
val snafuToIntDigits = mapOf('=' to -2, '-' to -1, '0' to 0, '1' to 1, '2' to 2)
val intToSnafuDigits = mapOf(0 to '0', 1 to '1', 2 to '2', -2 to '=', -1 to '-')
fun snafuToInt(num: String): Long {
var ans = 0L
f... | 0 | Kotlin | 1 | 0 | 791dd54a4e23f937d5fc16d46d85577d91b1507a | 1,462 | aoc-2022-in-kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.