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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compose/foundation/foundation/src/test/kotlin/androidx/compose/foundation/text2/input/TextEditFilterTest.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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... | 20 | Kotlin | 819 | 4,682 | 9ddc33236c8976556d20e1a9432b66280e307547 | 2,556 | androidx | Apache License 2.0 |
src/main/kotlin/demos/AldousBroderDemo.kt | andeemarks | 568,036,348 | false | {"Kotlin": 44224} | package demos
import DistanceGrid
import ImageMazePainter
import algos.AldousBroder
import com.github.ajalt.mordant.rendering.AnsiLevel
import com.github.ajalt.mordant.rendering.TextColors
import com.github.ajalt.mordant.rendering.TextStyle
import com.github.ajalt.mordant.terminal.Terminal
class AldousBroderDemo(priv... | 0 | Kotlin | 0 | 0 | 8284b3e65e4783c22b99b76eb99cee01ff0439ed | 999 | mazes-kotlin | MIT License |
browser-kotlin/src/jsMain/kotlin/web/svg/SVGSwitchElement.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
package web.svg
sealed external class SVGSwitchElement :
SVGGraphicsElement
| 0 | Kotlin | 6 | 22 | 00321b7e81352bc3d7243dd6631e1fb178f528c8 | 126 | types-kotlin | Apache License 2.0 |
vocabularies/generator/src/main/kotlin/net/subroh0508/otonashi/vocabulary/generator/internal/HttpClient.kt | subroh0508 | 175,314,339 | false | null | package net.subroh0508.otonashi.vocabulary.generator.internal
import okhttp3.OkHttpClient
import okhttp3.Request
internal object HttpClient {
private val client = OkHttpClient()
fun fetch(url: String): String {
val request = Request.Builder()
.url(url)
.build()
return... | 1 | Kotlin | 0 | 10 | bbf62cd0f24ec8b8133e144ec8d1bf04f55dcd8a | 424 | otonashi | MIT License |
app/src/main/java/com/nadafeteih/bookstore/viewModel/savedBook/SavedBookViewModel.kt | NadaFeteiha | 590,720,352 | false | {"Kotlin": 70843} | package com.nadafeteih.bookstore.viewModel.savedBook
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.nadafeteih.bookstore.useCase.GetSavedBooksUseCase
import com.nadafeteih.bookstore.useCase.SaveBookUseCase
import com.nadafeteih.bookstore.viewModel.home.BookUIState
import com.na... | 1 | Kotlin | 2 | 7 | 3758e5543d5053271777c073ecbcec5636c92934 | 1,617 | BookStore | Apache License 2.0 |
src/commonMain/kotlin/app/thelema/shader/node/GLSLVec2Literal.kt | zeganstyl | 275,550,896 | false | null | /*
* Copyright 2020-2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 3 | Kotlin | 5 | 61 | 8e2943b6d2de3376ce338025b58ff31c14097caf | 1,340 | thelema-engine | Apache License 2.0 |
fuzzer/src/test/resources/compilerTestData/codegen/box/reflection/mapping/extensionProperty.kt | ItsLastDay | 102,885,402 | false | null | import kotlin.reflect.jvm.*
import kotlin.test.assertEquals
class K(var value: Long)
var K.ext: Double
get() = value.toDouble()
set(value) {
this.value = value.toLong()
}
fun box(): String {
val p = K::ext
val getter = p.javaGetter!!
val setter = p.javaSetter!!
assertEquals(gett... | 2 | Kotlin | 0 | 6 | 56f50fc307709443bb0c53972d0c239e709ce8f2 | 717 | KotlinFuzzer | MIT License |
rd-kt/rd-framework/src/test/kotlin/com/jetbrains/rd/framework/test/cases/contexts/ContextWithExtTest.kt | JetBrains | 107,686,809 | false | null | package com.jetbrains.rd.framework.test.cases.contexts
import com.jetbrains.rd.framework.RdContext
import com.jetbrains.rd.framework.test.util.RdFrameworkTestBase
import demo.demoModel
import demo.extModel
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.params.ParameterizedTest
import org... | 36 | null | 53 | 384 | cbf1373f7a764d0aeccee3146c814a69cea34ae7 | 1,630 | rd | Apache License 2.0 |
privacy-config/privacy-config-impl/src/main/java/com/duckduckgo/privacy/config/impl/features/useragent/RealUserAgent.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2022 DuckDuckGo
*
* 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 ... | 49 | null | 847 | 3,198 | be3bcd0ff64a25d9732b72a618c27accce467a5a | 1,812 | Android | Apache License 2.0 |
app/src/main/java/com/arturkowalczyk300/cryptocurrencyprices/model/Repository.kt | arturkowalczyk300 | 488,542,310 | false | {"Kotlin": 136239} | package com.arturkowalczyk300.cryptocurrencyprices.model
import android.app.Application
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import com.arturkowalczyk300.cryptocurrencyprices.model.room.*
import com.arturkowalczyk300.cry... | 3 | Kotlin | 1 | 4 | 21b78750311a6163eeb1bc33dfc03eec47005249 | 10,475 | android-cryptocurrency-prices | Apache License 2.0 |
app/src/main/java/com/flowfoundation/wallet/page/walletrestore/WalletRestoreActivity.kt | Outblock | 692,942,645 | false | {"Kotlin": 2425609, "Java": 104150} | package com.flowfoundation.wallet.page.walletrestore
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import androidx.lifecycle.ViewModelProvider
import com.flowfoundation.wallet.base.activity.BaseActivity
import com.flowfoundation.wallet.databinding.Ac... | 93 | Kotlin | 5 | 0 | 6ecc281292b80741d976c738b67da0c3384323c7 | 1,997 | FRW-Android | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BrandTwilio.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
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
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,695 | compose-icon-collections | MIT License |
src/main/kotlin/com/blr19c/falowp/bot/system/plugin/event/EventManager.kt | falowp-bot | 736,172,318 | false | {"Kotlin": 229423, "HTML": 3910} | package com.blr19c.falowp.bot.system.plugin.event
import com.blr19c.falowp.bot.system.Log
import com.blr19c.falowp.bot.system.api.BotApi
import com.blr19c.falowp.bot.system.listener.events.HelpEvent
import com.blr19c.falowp.bot.system.listener.hooks.EventPluginExecutionHook
import com.blr19c.falowp.bot.system.plugin.E... | 0 | Kotlin | 0 | 6 | 4dfb4620ce2ef529bcf27bc1b719587eb668b56e | 2,024 | falowp-bot-system | Apache License 2.0 |
presentation/src/main/kotlin/io/petros/github/presentation/feature/ViewExtensions.kt | ParaskP7 | 140,927,471 | false | {"Kotlin": 118109} | package io.petros.github.presentation.feature
import android.support.annotation.ColorRes
import android.support.annotation.LayoutRes
import android.view.View
import android.view.ViewGroup
import io.petros.github.data.getColorCompat
fun ViewGroup.inflate(@LayoutRes resource: Int): View {
return View.inflate(contex... | 0 | Kotlin | 1 | 9 | ad9c53165db32af9ca08e4ae3ca4ea9b30e24d2e | 462 | sample-code-github | Apache License 2.0 |
backend/src/main/kotlin/daniil/backend/api/impl/ChannelApiImpl.kt | Yellowtyler | 704,670,810 | false | null | package daniil.backend.api.impl
import daniil.backend.api.ChannelApi
import daniil.backend.dto.channel.*
import daniil.backend.service.ChannelService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.spring... | 0 | null | 0 | 1 | e4fcc14a0f221f27270d2e1ff66e0941e81ff5b9 | 1,828 | mytube | Apache License 2.0 |
src/main/kotlin/indi/midreamsheep/app/tre/ui/page/mainpage/MainPage.kt | Simple-Markdown | 744,897,915 | false | {"Kotlin": 264030, "Java": 62889} | package indi.midreamsheep.app.tre.ui.page.mainpage
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.Icon
imp... | 0 | Kotlin | 0 | 3 | f0c575f55da4e535bf4b99b0b67474d7f9c9e4da | 5,242 | SMarkdown | Apache License 2.0 |
subprojects/android-test/ui-testing-core/src/main/kotlin/com/avito/android/test/page_object/SimpleScreen.kt | avito-tech | 230,265,582 | false | null | package com.avito.android.test.page_object
import androidx.annotation.CallSuper
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.withId
import com.avito.android.screen.BaseScreenChecks
import com.avito.android.screen.Screen
import com.avito.android.test.InteractionC... | 10 | null | 50 | 414 | bc94abf5cbac32ac249a653457644a83b4b715bb | 1,443 | avito-android | MIT License |
feature/add-record/src/main/kotlin/com/kevlina/budgetplus/feature/add/record/ui/BookSelector.kt | kevinguitar | 517,537,183 | false | null | package com.kevlina.budgetplus.feature.add.record.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.co... | 2 | null | 0 | 9 | 9c964e063efdf797f84f58fcc3e8b17da75f8309 | 5,571 | budgetplus-android | MIT License |
core/domain/src/main/kotlin/com/wansenai/dto/basic/AddOrUpdateCustomerDTO.kt | wansenai | 605,630,517 | false | null | /*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file... | 37 | null | 4 | 66 | 7cb630645f167eaadf20939df034a319b7132665 | 1,320 | eairp | Apache License 2.0 |
app/src/main/java/com/davemorrissey/labs/subscaleview/sample/extension/views/FreehandView.kt | davemorrissey | 109,281,052 | false | null | package com.davemorrissey.labs.subscaleview.sample.extension.views
import android.content.Context
import android.graphics.*
import android.graphics.Paint.Cap
import android.graphics.Paint.Style
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import android.view.View.OnTouchLis... | 0 | Kotlin | 8 | 35 | 53e3c2343cf62c114d53c814898d98e8edf602b7 | 4,508 | ssiv-kotlin-sample | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsaccreditedprogrammesapi/client/oasysApi/model/OasysBehaviour.kt | ministryofjustice | 615,402,552 | false | {"Kotlin": 555496, "Shell": 9504, "Dockerfile": 1415} | package uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.client.oasysApi.model
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
data class OasysBehaviour(
val temperControl: String?,
val problemSolvingSkills: String?,
val awarenessOfConsequences: ... | 0 | Kotlin | 0 | 0 | b29d1cc17bacb1313cf5e5994624e00588041443 | 598 | hmpps-accredited-programmes-api | MIT License |
vector/src/withvoip/java/im/vector/app/features/call/conference/JitsiService.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2021 New Vector Ltd
*
* 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 agr... | 91 | null | 6 | 9 | a2c060c687b0aa69af681138c5788d6933d19860 | 7,739 | tchap-android | Apache License 2.0 |
app/src/main/kotlin/com/machinerychorus/lifeprogresswallpaper/LifeWallpaper.kt | ethanmdavidson | 417,362,838 | false | {"Kotlin": 30873} | package com.machinerychorus.lifeprogresswallpaper
import android.app.WallpaperColors
import android.content.SharedPreferences
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.os.Build
import android.service.wallpaper.WallpaperService
import android.view.SurfaceH... | 2 | Kotlin | 3 | 13 | 5a5647615b23848f3ba4154f2579b45d3b722e65 | 9,493 | DeathProgress | The Unlicense |
src/jsMain/kotlin/com/severett/planetxcompose/js/Main.kt | severn-everett | 640,801,543 | false | {"Kotlin": 82527, "CSS": 23454, "HTML": 683} | package com.severett.planetxcompose.js
import com.severett.planetxcompose.js.ui.components.AppContent
import org.jetbrains.compose.web.renderComposable
fun main() {
renderComposable(rootElementId = "root") {
AppContent()
}
}
| 0 | Kotlin | 0 | 0 | 2175bdb9ab634826abb561c71f902c5bd4577b92 | 243 | PlanetXCompose | Apache License 2.0 |
shared/src/commonTest/kotlin/me/saket/press/shared/db/BaseDatabaeTest.kt | saket | 201,701,386 | false | null | package me.saket.press.shared.db
import com.squareup.sqldelight.db.SqlDriver
import me.saket.press.PressDatabase
import me.saket.press.shared.sync.createJson
import kotlin.test.AfterTest
expect fun inMemorySqlDriver(): SqlDriver
/**
* Creates an in-memory database and closes it before and after each test.
* This c... | 13 | null | 110 | 1,849 | 5f64350ec51402f3e6aeff145cbc35438780a03c | 680 | press | Apache License 2.0 |
app/src/main/java/com/steleot/jetpackcompose/playground/datastore/SettingsProtoSerializer.kt | Vivecstel | 338,792,534 | false | {"Kotlin": 1538487} | package com.steleot.jetpackcompose.playground.datastore
import androidx.datastore.core.Serializer
import com.google.protobuf.InvalidProtocolBufferException
import com.steleot.jetpackcompose.playground.BuildConfig
import com.steleot.jetpackcompose.playground.theme.ColorPalette
import timber.log.Timber
import java.io.In... | 2 | Kotlin | 46 | 346 | 0161d9c7bf2eee53270ba2227a61d71ba8292ad0 | 1,144 | Jetpack-Compose-Playground | Apache License 2.0 |
4_swing.main.kts | hexagontk | 788,570,576 | false | {"Kotlin": 9147, "Java": 1970, "HTML": 1548} | #!/usr/bin/env kotlin
/*
* 4. SWING INTERFACES
*/
@file:DependsOn("com.formdev:flatlaf:3.4.1")
import com.formdev.flatlaf.FlatDarculaLaf
import java.io.File
import java.nio.file.Path
import java.nio.file.Paths
import javax.swing.*
import javax.swing.WindowConstants.EXIT_ON_CLOSE
/*
* To display Swing application... | 0 | Kotlin | 0 | 2 | d56f39589313e04db681bf013ed4a372186d10df | 1,103 | kotlin_as_if_it_was_python | MIT License |
app/src/main/java/an/maguste/android/archsamples/ui/mvvm/MVVMFragment.kt | AnnGal | 309,823,069 | false | null | package an.maguste.android.archsamples.ui.mvvm
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import an... | 0 | Kotlin | 0 | 0 | 331e6b2428f273cc9b2a6dfd9a9a3588acf49d5f | 2,119 | ArchitectureSample | Apache License 2.0 |
kite-core/src/test/java/jp/co/cyberagent/kite/core/KiteMemoScopeTest.kt | cats-oss | 262,991,077 | false | null | package jp.co.cyberagent.kite.core
import io.kotest.assertions.throwables.shouldNotThrowAny
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import jp.co.cyberagent.kite.testcommon.memoize
import kotlinx.coroutines.Dispatchers
import kotl... | 0 | Kotlin | 1 | 20 | d47da96072d5a964de854cc94c8ca4369fd97dca | 1,476 | kite | Apache License 2.0 |
modules/wasm-binary/src/commonMain/kotlin/tree/instructions/SimdLoadInstruction.kt | wasmium | 761,480,110 | false | {"Kotlin": 352107, "JavaScript": 200} | package org.wasmium.wasm.binary.tree.instructions
import org.wasmium.wasm.binary.tree.Opcode
import org.wasmium.wasm.binary.visitors.FunctionBodyVisitor
public class SimdLoadInstruction(
public override val opcode: Opcode,
public override val alignment: UInt,
public override val offset: UInt,
) : AlignOff... | 0 | Kotlin | 0 | 1 | f7ddef76630278616d221e7c8251adf0f11b9587 | 493 | wasmium-wasm-binary | Apache License 2.0 |
app/src/main/java/uz/javokhirjambulov/tmdbclient/data/repository/artist/datasourceImpl/ArtistLocalDataSourceImpl.kt | JavokhirJambulov | 834,870,015 | false | {"Kotlin": 70299} | package uz.javokhirjambulov.tmdbclient.data.repository.artist.datasourceImpl
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import uz.javokhirjambulov.tmdbclient.data.db.ArtistDao
import uz.javokhirjambulov.tmdbclient.data.model.artist.Artist
import uz.j... | 0 | Kotlin | 0 | 0 | 5f9cd63aa962627932eb622935b5f7f44039110a | 916 | TMDB_App | MIT License |
app/src/main/java/com/lucianbc/receiptscan/presentation/receipt/ReceiptFragment.kt | lucianbc | 183,749,890 | false | null | package com.lucianbc.receiptscan.presentation.receipt
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.luc... | 13 | null | 1 | 2 | 05950c87f2eda6f53f886e340459aa13cdbdd621 | 1,880 | ReceiptScan | Apache License 2.0 |
compiler/frontend/src/org/jetbrains/kotlin/psi/synthetics/SyntheticClassOrObjectDescriptor.kt | gigliovale | 89,726,097 | false | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | null | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 9,034 | kotlin | Apache License 2.0 |
src/main/kotlin/io/kadena/pact/intellij/language/psi/PactFile.kt | lukeribchester | 513,030,883 | false | {"Kotlin": 24714, "Lex": 4062} | package io.kadena.pact.intellij.language.psi
import com.intellij.extapi.psi.PsiFileBase
import com.intellij.openapi.fileTypes.FileType
import com.intellij.psi.FileViewProvider
import io.kadena.pact.intellij.PactFileType
import io.kadena.pact.intellij.PactLanguage
import org.jetbrains.annotations.NotNull
class PactFil... | 2 | Kotlin | 0 | 2 | 4e2812c4605e8fef49ce4beacdf366b0b95dfea5 | 603 | pact-intellij | MIT License |
app/src/main/java/cl/panmu/stroller/TabbedMainActivity.kt | LeandroPintoT | 648,867,137 | false | {"Kotlin": 89058} | package cl.panmu.stroller
import android.app.AlertDialog
import android.content.res.ColorStateList
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.TableLayout
import android.widget.Toast
import androidx.activity.viewModels
import androidx.app... | 0 | Kotlin | 0 | 0 | efdd76cdc986845ab4c825c455735970e366711b | 12,897 | Stroller | Apache License 2.0 |
ui/common/src/iosMain/kotlin/ly/david/musicsearch/ui/common/topappbar/TopAppBarWithFilter.ios.kt | lydavid | 458,021,427 | false | null | package ly.david.musicsearch.ui.common.topappbar
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.TopAppBarScrollBehavior
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compos... | 119 | null | 0 | 22 | 94228bfad5473e3a3d86c1f3b8273689df7a4421 | 2,058 | MusicSearch | Apache License 2.0 |
src/test/kotlin/io/vlang/lang/completion/ChanInitCompletionTest.kt | vlang | 754,996,747 | false | null | package io.vlang.lang.completion
class ChanInitCompletionTest : CompletionTestBase() {
fun `test fields`() = checkEquals(
"""
module main
fn main() {
ch := chan int{/*caret*/}
}
""".trimIndent(), 0,
"cap"
)
fun `test second field`() = c... | 4 | null | 5 | 33 | 5b05a7b1f71ef8dcd7f26425a756259081fe5122 | 702 | intellij-v | MIT License |
src/main/java/com/wald/mainject/inject/extension/impl/DefaultDependencyDescriptionResolver.kt | Waldemared | 338,810,220 | false | null | package com.wald.mainject.inject.extension.impl
import com.wald.mainject.inject.DependencyDescriptor
import com.wald.mainject.inject.DependencyInfo
import com.wald.mainject.inject.extension.DependencyDescriptorResolver
import com.wald.mainject.inject.qualify.qualifier
import com.wald.mainject.inject.qualify.qualifiers... | 1 | null | 1 | 1 | eb8ea2dc2697f1d96636cceb1e97ca044b2fd89f | 624 | mainject-core | MIT License |
server/src/main/kotlin/kotlinbars/server/Main.kt | jamesward | 350,496,939 | 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 i... | 2 | null | 5 | 47 | 8d5443a7f72f1ba10ec2ad171a5dfe193b3e7be4 | 3,073 | kotlin-bars | Apache License 2.0 |
features/app-widgets/src/main/java/app/ss/widgets/glance/WidgetLoading.kt | Adventech | 65,243,816 | false | {"Kotlin": 1669895, "Java": 17228, "CSS": 9010, "JavaScript": 7718, "HTML": 2229, "Shell": 544} | package app.ss.widgets.glance
import androidx.compose.runtime.Composable
import androidx.glance.GlanceModifier
import androidx.glance.GlanceTheme
import androidx.glance.appwidget.CircularProgressIndicator
import androidx.glance.layout.Alignment
import androidx.glance.layout.Box
import androidx.glance.layout.fillMaxSiz... | 2 | Kotlin | 49 | 171 | 2cc105ea76c7fdf979b0b6ee1098f413c1aa009d | 628 | sabbath-school-android | MIT License |
androidApp/src/androidTest/java/com/gplay/app/feature/home/HomeViewTest.kt | lukma | 529,747,563 | false | {"Kotlin": 140900, "Swift": 26911} | package com.gplay.app.feature.home
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.core.text.HtmlCompat
import androidx.paging.compose.collectAsLazyPagingItems
import com.gplay.app.ui.GPlayScaffold
import com.gplay.app.ui.theme.GPlayTheme
import com.gplay.app.... | 0 | Kotlin | 0 | 1 | 06828523a53ce3e35963fd1536264e3110b8cfed | 2,288 | sample-kmm | Apache License 2.0 |
lib_mangax/src/main/kotlin/com/crow/mangax/copymanga/glide/AppOnGlideProgressListener.kt | crowforkotlin | 610,636,509 | false | {"Kotlin": 988386, "CMake": 2776, "C++": 2732, "Makefile": 1968} | package com.crow.mangax.copymanga.glide
fun interface AppOnGlideProgressListener {
fun doOnProgress(url: String, isComplete: Boolean, percentage: Int, bytesRead: Long, totalBytes: Long)
} | 13 | Kotlin | 7 | 250 | 6589a636788baff27760da5f47b61eeefb52abf0 | 192 | CopyMangaX | Apache License 2.0 |
app/src/main/java/ru/rshbdigital/farmhub/core/api/model/NWCounter.kt | MaksimZotov | 720,237,303 | false | {"Kotlin": 4780} | package ru.rshbdigital.farmhub.core.api.model
data class NWCounter(
val count: Int? = null
) | 0 | Kotlin | 0 | 0 | 9d84d35989f288c30980dffa6e3fc62cd2fc6cdf | 97 | FarmHub | MIT License |
compose/ui/ui-graphics/src/androidMain/kotlin/androidx/compose/ui/graphics/layer/LayerManager.android.kt | androidx | 256,589,781 | false | {"Kotlin": 102794437, "Java": 64412412, "C++": 9138104, "AIDL": 617598, "Python": 310931, "Shell": 189529, "TypeScript": 40586, "HTML": 35176, "Groovy": 27482, "ANTLR": 26700, "Svelte": 20307, "CMake": 18033, "C": 16982, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28 | Kotlin | 937 | 5,108 | 89ec14e39cf771106a8719337062572717cbad31 | 5,730 | androidx | Apache License 2.0 |
src/test/kotlin/solutions/constantTime/iteration6/RegionTaxCalculatorTest.kt | daniel-rusu | 669,564,782 | false | {"Kotlin": 70190} | package solutions.constantTime.iteration5
import dataModel.base.TaxBracket
import org.junit.jupiter.api.Test
import sampleData.SampleTaxBrackets
import solutions.TaxCalculatorValidator
import utilities.TaxBracketGenerator
import kotlin.random.Random
class MinBracketTaxCalculatorTest {
@Test
fun `produces the ... | 0 | Kotlin | 0 | 1 | f5f63e1eeb3b3fe137d99b2c94bd50f5016167d0 | 1,639 | tax-calculator | MIT License |
app/src/main/java/com/example/textingapplication/SmsListener.kt | travispavletich | 206,397,717 | false | null | package com.example.textingapplication
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.telephony.SmsMessage
import android.util.Log
import java.lang.Exception
class SmsListener : BroadcastReceiver() {
... | 0 | Kotlin | 0 | 0 | 88cbfd0cd24686c2757062d67ff1eef04bf5295b | 2,880 | TextingAndroidApp | MIT License |
platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsProjectLogErrorHandler.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.vcs.log.impl
import com.google.common.collect.EnumMultiset
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.util.concurrency.annotations.RequiresEdt
import ... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,260 | intellij-community | Apache License 2.0 |
sqllin-driver/src/linuxMain/kotlin/com/ctrip/sqllin/driver/platform/UtilsLinux.kt | ctripcorp | 570,015,389 | false | null | package com.ctrip.sqllin.driver.platform
import kotlinx.cinterop.ByteVar
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.toKString
/**
* The tools with Linux implementation
* @author yqiao
*/
internal actual fun bytesToString(bv: CPointer<ByteVar>): String = bv.toKString()
internal actual inline val sep... | 1 | C | 5 | 154 | 0c15e7e49ec75ae403b0e213c6205a0bc1d92013 | 352 | SQLlin | Apache License 2.0 |
src/main/java/com/github/ai/autokpass/presentation/ui/root/RootViewModel.kt | aivanovski | 473,610,974 | false | {"Kotlin": 288569} | package com.github.ai.autokpass.presentation.ui.root
import androidx.compose.ui.Alignment
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.WindowPlacement
import androidx.compose.ui.window.WindowPosition
import androidx.compo... | 1 | Kotlin | 0 | 1 | 4f9d3bebbde84056b8d721dae71aca15932d0b5c | 1,346 | autokpass | Apache License 2.0 |
src/main/kotlin/it/czerwinski/intellij/common/ui/ErrorLogTreeModel.kt | sczerwinski | 283,832,623 | false | null | /*
* Copyright 2020-2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 27 | null | 1 | 9 | ca6ee47083cdca9b52cd2a59994d12a4a10033eb | 1,394 | wavefront-obj-intellij-plugin | Apache License 2.0 |
lib/src/main/java/net/imoya/android/preference/util/TimePeriodPreferenceUtil.kt | IceImo-P | 392,544,118 | false | null | /*
* Copyright (C) 2022 IceImo-P
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Kotlin | 0 | 0 | 77d4a8374389e7c67d857762c3626526f8418b98 | 2,265 | ImoyaAndroidPreferenceLib | Apache License 2.0 |
src/main/java/com/denisbelobrotski/eye_tracking_library/algorithm/EyeTracker.kt | DenisBelobrotski | 354,017,403 | false | null | package by.swiftdrachen.eye_tracking_library.algorithm
import by.swiftdrachen.eye_tracking_library.abstraction.IEyeProcessor
import by.swiftdrachen.eye_tracking_library.abstraction.IEyeTrackerConfig
import by.swiftdrachen.eye_tracking_library.abstraction.IRectDetector
import by.swiftdrachen.eye_tracking_library.cv_uti... | 0 | null | 0 | 1 | 7f7654914023a0f572abb79274081475edb724c5 | 11,291 | eye-tracking-library | MIT License |
core/src/main/kotlin/org/tenkiv/kuantify/fs/hardware/channel/FSDigitalOutput.kt | Tenkiv | 183,814,098 | false | null | /*
* Copyright 2019 Tenkiv, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, dist... | 0 | Kotlin | 0 | 4 | cc774f93c7d47f84c4e22aeb032e48451478beb8 | 9,115 | kuantify | MIT License |
modules/core/arrow-instances-data/src/main/kotlin/arrow/instances/eithert.kt | raosuj | 157,551,397 | true | {"Kotlin": 1365489, "CSS": 118712, "HTML": 10089, "JavaScript": 8493, "Java": 4465, "Shell": 3043} | package arrow.instances
import arrow.Kind
import arrow.core.*
import arrow.data.EitherT
import arrow.data.EitherTOf
import arrow.data.EitherTPartialOf
import arrow.data.fix
import arrow.typeclasses.*
interface EitherTFunctorInstance<F, L> : Functor<EitherTPartialOf<F, L>> {
fun FF(): Functor<F>
override fun <A,... | 0 | Kotlin | 0 | 0 | b911e960173bf21dcaab04dd702457e718158c36 | 6,310 | arrow | Apache License 2.0 |
app/src/main/java/com/santimattius/paging/MainActivity.kt | santimattius | 295,560,177 | false | null | package com.santimattius.paging
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.ExperimentalFoundationApi
import coil.annotation.ExperimentalCoilApi
import com.santimattius.paging.ui.screen.HomeRoute
@ExperimentalC... | 0 | Kotlin | 0 | 4 | 75083390066ad4850d94bb7f3e6af5e19511407c | 610 | android-sample-paging | Apache License 2.0 |
src/main/kotlin/main.kt | junron | 207,942,044 | false | null | package main
import http.download
import http.downloadMediaFiles
import http.getVideoData
import io.ktor.client.HttpClient
import kotlinx.coroutines.runBlocking
import main.util.getM3U8FileByFormat
import main.util.parseResolutions
import main.util.parseStreamUrl
import me.tongfei.progressbar.ProgressBarBuilder
import... | 0 | Kotlin | 0 | 1 | 2cc40936e8567e9a587f7d6c4f86efd21d47b955 | 1,980 | toggle-download | MIT License |
apollo/apollo-appsync/src/main/java/com/amplifyframework/apollo/appsync/AppSyncAuthorizer.kt | aws-amplify | 177,009,933 | false | {"Java": 5271326, "Kotlin": 3564857, "Shell": 28043, "Groovy": 11755, "Python": 3681, "Ruby": 1874} | /*
* Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 105 | Java | 115 | 245 | 14c71f38f052a964b96d7abaff6e157bd21a64d8 | 2,141 | amplify-android | Apache License 2.0 |
MyPayTemplate/app/src/main/java/br/uea/transirie/mypay/mypaytemplate2/ui/home/Venda/SelecaoProdutosActivity.kt | gldnjmat17 | 438,400,051 | false | {"Kotlin": 501915} | package br.uea.transirie.mypay.mypaytemplate2.ui.home.Venda
import android.app.AlertDialog
import android.app.SearchManager
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Gravity
import android.view.Menu
import a... | 0 | Kotlin | 0 | 0 | bef2b21101aee9c8f985498532385eee18cb0e05 | 9,930 | MyPets---Aplicativo | MIT License |
atomicfu-gradle-plugin/src/test/kotlin/kotlinx/atomicfu/plugin/gradle/test/JsProjectTest.kt | Kotlin | 99,576,820 | false | null | package kotlinx.atomicfu.plugin.gradle.test
import kotlinx.atomicfu.plugin.gradle.internal.*
import kotlinx.atomicfu.plugin.gradle.internal.BaseKotlinScope
import org.junit.Test
class JsProjectTest : BaseKotlinGradleTest("js-simple") {
private fun BaseKotlinScope.createProject() {
buildGradleKts {
... | 38 | Kotlin | 47 | 573 | b40401ea459cf5cbc616e20d5b30281ad072dd72 | 1,560 | kotlinx.atomicfu | Apache License 2.0 |
luakt-extension/src/main/kotlin/com/github/only52607/luakt/extension/LuaValueExtensions.kt | only52607 | 269,326,871 | false | null | @file:Suppress("UNUSED")
package com.github.only52607.luakt.extension
import org.luaj.vm2.*
val LuaValue.nullable: LuaValue?
get() = if (isnil()) null else this
val LuaValue.tableValue: LuaTable
get() = checktable()
val LuaValue.tableValueOrNull: LuaTable?
get() = if (istable()) checktable() else null
... | 1 | null | 5 | 18 | 1ebf17bf9fc0b28c5ba292b4abe85451d9ad4848 | 3,341 | luakt | MIT License |
core/src/main/kotlin/net/olegg/aoc/utils/Vector4D.kt | 0legg | 110,665,187 | false | null | package net.olegg.aoc.utils
import kotlin.math.abs
data class Vector4D(
var x: Int = 0,
var y: Int = 0,
var z: Int = 0,
var w: Int = 0,
) {
operator fun plus(other: Vector4D) = Vector4D(x + other.x, y + other.y, z + other.z, w + other.w)
operator fun plusAssign(other: Vector4D) = run {
x += other.x
... | 0 | null | 1 | 8 | 3006775fc2d1da3b12303029b9f35d2793c912df | 1,317 | adventofcode | MIT License |
app/src/main/java/com/pri/architecture_boilerplate/util/Extensions.kt | priyanka-rani | 218,155,486 | false | null | package com.pri.architecture_boilerplate.util
import android.annotation.SuppressLint
import android.text.Editable
import android.text.TextUtils
import android.text.TextWatcher
import android.view.View
import android.widget.*
import com.google.android.material.textfield.TextInputLayout
import com.pri.architecture_boile... | 1 | null | 1 | 1 | 18a74203aebf027e66254925663023aefb6b685b | 2,444 | architecture_dagger_binding_pri | Apache License 2.0 |
plugins/maven/testFramework/src/com/intellij/maven/testFramework/MavenTestCase.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.maven.testFramework
import com.intellij.diagnostic.ThreadDumper
import com.intellij.execution.wsl.WSLDistribution
import com.intellij.execution.wsl.WslDistributionManager
import... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 27,922 | intellij-community | Apache License 2.0 |
composeApp/src/androidMain/kotlin/com/unwur/mabiaho/MainActivity.kt | anwar-pasaribu | 772,492,453 | false | {"Kotlin": 215360, "Ruby": 4931, "Swift": 568, "HTML": 304} | package com.unwur.mabiaho
import App
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core... | 0 | Kotlin | 0 | 0 | f817777fd67976f3ad11bca051606f908cbc9aff | 6,702 | Mabia | MIT License |
idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/ScriptConfigurationManagerImpl.kt | walltz556 | 219,828,597 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.core.script
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer
impor... | 7 | null | 0 | 1 | f17e9ba9febdabcf7a5e0f17e4be02e0f9e87f13 | 13,744 | kotlin | Apache License 2.0 |
infra/src/main/kotlin/uk/co/developmentanddinosaurs/apps/poker/infra/application/PokerVpc.kt | development-and-dinosaurs | 717,724,846 | false | {"Kotlin": 87536} | package uk.co.developmentanddinosaurs.apps.poker.infra.application
import software.amazon.awscdk.services.ec2.IVpc
import software.amazon.awscdk.services.ec2.VpcLookupOptions
import software.constructs.Construct
import software.amazon.awscdk.services.ec2.Vpc as AwsVpc
class PokerVpc {
companion object {
p... | 9 | Kotlin | 0 | 2 | 73ed46c666bbdfb1cac462a37e968c7fdd2416a2 | 598 | planning-poker | MIT License |
app/src/main/java/com/etasdemir/ethinspector/ui/shared/AddressViewModel.kt | etasdemir | 584,191,764 | false | null | package com.etasdemir.ethinspector.ui.shared
import androidx.compose.material3.*
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.etasdemir.ethinspector.data.Repository
import com.etasdemir.ethinspector.data.domain_model.*
import com.etasdemir.ethinspector.ui.components.AddressSa... | 0 | null | 0 | 4 | 753c16ebcb2973bdef76078bb391792892187826 | 4,451 | eth-inspector | MIT License |
app/src/main/java/com/apdallahyousry/customgalleryapplication/ui/views/AlbumDetailsFragment.kt | apdallah | 751,674,668 | false | {"Kotlin": 35155} | package com.apdallahyousry.customgalleryapplication.ui.views
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.GridLayoutManager
imp... | 0 | Kotlin | 0 | 0 | 4cfdf99aec4d0f439db430436d8014f5b10bfb4b | 1,907 | CustomGalleryApplicationTask | MIT License |
kdenticon/src/main/kotlin/com/github/thibseisel/kdenticon/draw/raster/Edge.kt | thibseisel | 109,754,408 | false | null | /*
* Copyright 2017 <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 ... | 1 | Kotlin | 0 | 2 | 52696593537f83ba3c853894d5d83af0e27a7fdb | 1,117 | Kdenticon | Apache License 2.0 |
feature/home/src/main/kotlin/com/finwise/feature/home/HomeNavigation.kt | nimaiwalsh | 757,345,803 | false | {"Kotlin": 69208, "Shell": 2385} | package com.finwise.feature.home
import androidx.compose.runtime.getValue
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import kotlinx.serialization.Serializabl... | 0 | Kotlin | 0 | 0 | 883c3d7fba139be2e208a2f84688f5dd60e5a4dd | 881 | finwise | Apache License 2.0 |
compiler/testData/codegen/box/reflection/callBy/simpleMemberFunciton.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... | class A(val result: String = "OK") {
fun foo(x: Int = 42): String {
assert(x == 42) { x }
return result
}
}
fun box(): String = A::foo.callBy(mapOf(A::foo.parameters.first() to A()))
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 208 | kotlin | Apache License 2.0 |
app/src/main/java/me/codeenzyme/welearn/di/modules/NetworkModule.kt | Victor-El | 305,075,837 | false | null | package me.codeenzyme.welearn.di.modules
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ApplicationComponent
import me.codeenzyme.welearn.data.remote.*
import javax.inject.Singleton
@InstallIn(ApplicationComponent::class)
@Module
abstract class NetworkModul... | 0 | Kotlin | 1 | 1 | 47e6e41b881c2654281ae128043293a435f8c2ae | 711 | WeLearn | MIT License |
src/main/kotlin/table/x1f6.kt | oklookat | 808,293,457 | false | {"Kotlin": 806745, "Python": 4615} | package table
internal val x0fc = listOf(
"", // 0x00
"", // 0x01
"", // 0x02
"", // 0x03
"", // 0x04
"", // 0x05
"", // 0x06
"", // 0x07
"", // 0x08
"", // 0x09
"", // 0x0a
"", // 0x0b
"", // 0x0c
"", // 0x0d
"", // 0x0e
"", // 0x0f
"", // 0x10
"", // 0x11
"", // 0x12
"", // 0x13
"", // 0x14
"", // 0x15
"", // 0x16
"... | 0 | Kotlin | 0 | 0 | b85c17dfaeef152a7d8313f612570149d0b6acba | 3,116 | unidecode4k | MIT License |
Chapter16/Chapter16/KotlinRuntimePermission/app/src/main/java/com/packtpub/kotlinruntimepermission/MainActivity.kt | PacktPublishing | 153,045,590 | false | {"Java": 307910, "Kotlin": 6839} | package com.packtpub.kotlinruntimepermission
import android.Manifest
import android.content.pm.PackageManager
import android.support.v4.app.ActivityCompat
import android.support.v4.content.ContextCompat
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
i... | 0 | Java | 22 | 31 | e7959b7586b83542ae4251dd4e3d0002f5a54d0a | 2,933 | Android-9-Development-Cookbook | MIT License |
protocol/osrs-223/src/main/kotlin/net/rsprox/protocol/game/incoming/decoder/codec/objs/OpObj4Decoder.kt | blurite | 822,339,098 | false | null | package net.rsprox.protocol.game.incoming.decoder.codec.objs
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ClientProt
import net.rsprox.protocol.ProxyMessageDecoder
import net.rsprox.protocol.game.incoming.decoder.prot.GameClientProt
import net.rsprox.protocol.game.incoming.model.objs.OpObj
import net... | 9 | null | 4 | 9 | 41535908e6ccb633c8f2564e8961efa771abd6de | 829 | rsprox | MIT License |
protocol/osrs-223/src/main/kotlin/net/rsprox/protocol/game/incoming/decoder/codec/objs/OpObj4Decoder.kt | blurite | 822,339,098 | false | null | package net.rsprox.protocol.game.incoming.decoder.codec.objs
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ClientProt
import net.rsprox.protocol.ProxyMessageDecoder
import net.rsprox.protocol.game.incoming.decoder.prot.GameClientProt
import net.rsprox.protocol.game.incoming.model.objs.OpObj
import net... | 9 | null | 4 | 9 | 41535908e6ccb633c8f2564e8961efa771abd6de | 829 | rsprox | MIT License |
src/main/kotlin/external/composition_api/provide_inject.kt | SorenV | 208,917,750 | false | null | @file:JsModule("@vue/composition-api")
package external.composition_api
external interface InjectionKey : Symbol
external fun <T> provide(key: Symbol, value: T)
external fun <T> provide(key: String, value: T)
external fun <T> inject(key: Symbol): Any? /* T | Unit */
external fun <T> inject(key: String): Any? /* T | ... | 2 | Kotlin | 2 | 34 | 1e83d2d27390890747cbd79315a825caf7ec98d6 | 442 | kotlin-vue | Apache License 2.0 |
Chapter04/src/main/kotlin/com/rivuchk/packtpub/reactivekotlin/chapter04/chapter4_19.kt | PacktPublishing | 111,785,750 | false | null | package com.rivuchk.packtpub.reactivekotlin.chapter04
import io.reactivex.Flowable
fun main(args: Array<String>) {
val flowable = Flowable.range(1,111)//(1)
flowable.buffer(10)
.subscribe { println(it) }
} | 0 | Kotlin | 36 | 71 | a2333e22fc1190dbacefba46cdf8c0339d509d75 | 227 | Reactive-Programming-in-Kotlin | MIT License |
src/main/kotlin/ltd/lths/wireless/ikuai/router/network/interfaces/wan/AdslWan.kt | LTHS20 | 487,755,461 | false | null | package ltd.lths.wireless.ikuai.router.network.interfaces.wan
import com.google.gson.JsonObject
/**
* ikuai-entourage
* ltd.lths.wireless.ikuai.router.network.interfaces.wan.AdslWan
*
* @author Score2
* @since 2022/06/10 23:58
*/
interface AdslWan : WanInterface {
val json: JsonObject
var username: St... | 0 | null | 0 | 3 | 22f7a15a63e9808de132e743a5186412e2012d2c | 625 | ikuai-entourage | MIT License |
library/src/main/java/io/nyris/sdk/network/model/io/nyris/sdk/OfferResponse.kt | nyris | 128,911,315 | false | null | /*
* Copyright (C) 2018 nyris GmbH
*
* 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 t... | 0 | null | 2 | 5 | f699e11470339a01e36f6d92926921359f5d2b21 | 1,368 | SDK.Android | Apache License 2.0 |
car-rental-analytics/src/main/kotlin/com/lvb/studies/kotlin/api/dto/CarPostDTO.kt | Velosofurioso | 636,948,488 | false | null | package com.lvb.studies.kotlin.api.dto
import com.fasterxml.jackson.annotation.JsonInclude
@JsonInclude
data class CarPostDTO(
val model: String = "",
val brand: String = "",
val price: Double = 0.0,
val description: String = "",
val engineVersion: String = "",
val city: String = "",
val ... | 0 | Kotlin | 0 | 0 | 21bc34004b70bd5b08fe85fa21b99a1c003012cf | 468 | api-car-rental | MIT License |
app/src/main/java/org/sesac/management/view/adapter/recyclerview/NoticeRecyclerViewAdapter.kt | SeSAC-3th | 703,429,812 | false | {"Kotlin": 178829} | package org.sesac.management.view.adapter.recyclerview
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import org.sesac.management.data.local.Notice
import org.sesac.management.databinding.ItemNoticeBinding
import org.sesac.management.util.extension.set... | 4 | Kotlin | 4 | 0 | eed031a47183b52c48a333187264a1e42f8879f1 | 1,672 | SeSalChai | MIT License |
core/src/main/kotlin/gropius/repository/issue/timeline/RemovedAffectedEntityEventRepository.kt | ccims | 487,996,394 | false | {"Kotlin": 1075633, "TypeScript": 458570, "MDX": 61340, "JavaScript": 27194, "HTML": 19890, "CSS": 4796, "Shell": 2363} | package gropius.repository.issue.timeline
import gropius.model.issue.timeline.RemovedAffectedEntityEvent
import gropius.repository.GropiusRepository
import org.springframework.stereotype.Repository
/**
* Repository for [RemovedAffectedEntityEvent]
*/
@Repository
interface RemovedAffectedEntityEventRepository : Grop... | 7 | Kotlin | 1 | 0 | a91ea183ad7c671143947fa793e95b43444136ab | 369 | gropius-backend | MIT License |
app/src/main/java/com/github/psm/moviedb/ui/person/PersonViewModel.kt | Pidsamhai | 371,868,606 | false | {"Kotlin": 243787, "CMake": 1715} | package com.github.psm.moviedb.ui.person
import androidx.lifecycle.LiveData
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.github.psm.moviedb.db.BoxStore
import com.github.psm.moviedb.db.model.person.Person
import com.github.psm.movied... | 1 | Kotlin | 1 | 3 | 6f4e67ee83349604b3396902469f4c3a83a68c3c | 1,822 | movie_db | Apache License 2.0 |
okio/src/mingwX64Main/kotlin/okio/Windows.kt | square | 17,812,502 | false | {"Kotlin": 1559919, "Java": 43685, "Shell": 1180} | /*
* Copyright (C) 2020 Square, 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 agre... | 89 | Kotlin | 1178 | 8,795 | 0f6c9cf31101483e6ee9602e80a10f7697c8f75a | 1,962 | okio | Apache License 2.0 |
services/csm.cloud.project.activity/src/main/kotlin/com/bosch/pt/csm/cloud/projectmanagement/project/taskschedule/facade/listener/strategies/activity/TaskScheduleAggregateComparator.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2021
*
* *************************************************************************
*/
package com.bosch.pt.csm.cloud.projectmanagement.project.taskschedule.facade.listener.strategies.acti... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 4,474 | bosch-pt-refinemysite-backend | Apache License 2.0 |
common/src/main/java/com/strategair/strategy/common/image/ImageLoader.kt | phantomVK | 219,900,125 | false | null | package com.strategair.strategy.common.image
import com.strategair.strategy.common.image.implement.ContentLoader
import com.strategair.strategy.common.image.implement.UserAvatar
object ImageLoader {
@JvmStatic
val user = UserAvatar
@JvmStatic
val content = ContentLoader
}
| 0 | Kotlin | 0 | 0 | e93a8f1bbb0bec955ee7bde977b778d27575d5f5 | 293 | Strategy | Apache License 2.0 |
kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/openshift/runtimeArtifacts.kt | ichaki5748 | 124,968,379 | true | {"Kotlin": 309714} | // GENERATED
package com.fkorotkov.openshift
import io.fabric8.openshift.api.model.SourceBuildStrategy
import kotlin.collections.List
fun SourceBuildStrategy.`runtimeArtifact`(block: io.fabric8.openshift.api.model.ImageSourcePath.() -> Unit = {}) {
val newObject = io.fabric8.openshift.api.model.ImageSourcePath()
... | 0 | Kotlin | 0 | 0 | b00b6ddb4b851a864a2737a3374603f7db659af7 | 383 | k8s-kotlin-dsl | MIT License |
src/main/kotlin/dev/willebrands/intellij/sloppyfocus/veto/VetoableFocusSwitcher.kt | jwillebrands | 526,333,491 | false | {"Kotlin": 14096} | package dev.willebrands.intellij.sloppyfocus.veto
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.IdeFocusManager
import dev.willebrands.intellij.sloppyfocus.FocusSwitcher
import java.awt.Component
class VetoableFocusSwitcher(private... | 3 | Kotlin | 0 | 4 | 3616e458ed7cef93fd28ca0bf7ff769deac6007f | 789 | ij-sloppy-focus | MIT License |
app/src/test/java/net/yupol/transmissionremote/app/analytics/AnalyticsTest.kt | y-polek | 58,270,602 | false | null | package net.yupol.transmissionremote.app.analytics
import com.google.firebase.analytics.FirebaseAnalytics.Event
import com.google.firebase.analytics.FirebaseAnalytics.Param
import org.junit.Test
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify
class AnalyticsTest {
private val analyticsProvider = ... | 43 | null | 38 | 159 | 498ac08ce7011a6c57cd8e97026485bf066f589a | 1,234 | TransmissionRemote | Apache License 2.0 |
app/src/main/java/com/bendaniel10/weatherlite/app/WeatherLiteApplication.kt | bendaniel10 | 95,213,073 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 1, "XML": 17, "Kotlin": 12} | package com.bendaniel10.weatherlite.app
import android.app.Application
/**
* Created by bendaniel on 22/06/2017.
*/
class WeatherLiteApplication : Application() {
override fun onCreate() {
super.onCreate()
instance = this
}
companion object {
lateinit var instance: WeatherLite... | 0 | Kotlin | 0 | 4 | f41cb73a232d19aef5c25c657a7a27a8a62eeeec | 579 | weather-lite-kotlin | Apache License 2.0 |
Engine/src/main/kotlin/dev/rakrae/gameengine/core/Game.kt | kraemer-raimund | 387,230,355 | false | {"Kotlin": 174907} | package dev.rakrae.gameengine.core
import dev.rakrae.gameengine.scene.Scene
abstract class Game : GameLifeCycleReceiver {
abstract val title: String
abstract val scene: Scene
private val engine: Engine by lazy { Engine(this) }
val window get() = engine.window
fun start() = engine.start()
f... | 0 | Kotlin | 0 | 0 | 989040fceaf8b980fce45227a01611c85a940ef9 | 348 | game-engine | MIT License |
analysis/low-level-api-fir/testData/fileStructure/functionWithImplicitTypeAndFunctionInsideScript.kts | 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... | package myPack
@Target(
AnnotationTarget.PROPERTY,
AnnotationTarget.TYPE_PARAMETER,
AnnotationTarget.FUNCTION,
AnnotationTarget.VALUE_PARAMETER,
AnnotationTarget.TYPE,
AnnotationTarget.EXPRESSION,
)
@Retention(AnnotationRetention.SOURCE)
annotation class Anno(val number: Int)/* DeclarationStruc... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,515 | kotlin | Apache License 2.0 |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/transformations/TransformationUtil.kt | playbar | 82,760,271 | 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... | 1 | null | 1 | 1 | b8af29ff552e564d23ee97cec93d5f4f51636be9 | 2,426 | intellij-community | Apache License 2.0 |
feature-editTodo/src/main/java/com/riyusoft/todo/feature/edittodo/EditTodoViewModel.kt | jeonhoeun | 520,344,732 | false | {"Kotlin": 70352, "Shell": 578, "HTML": 509} | package com.riyusoft.todo.feature.edittodo
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.riyusoft.todo.core.data.repository.todo.TodoRepository
import com.riyusoft.todo.core.model.Todo
import com.riyusoft.todo.feature.edittodo.navigat... | 1 | Kotlin | 0 | 0 | 175e250d1e53da29ce8b9bb5e4f24ae513d9404b | 3,466 | aos-todo-cleanarch-compose-tdd | MIT License |
src/main/kotlin/com/expansemc/bending/api/collision/CollisionResult.kt | ExpanseMC | 272,346,844 | false | null | package com.expansemc.bending.api.collision
enum class CollisionResult {
WINS,
LOSES,
UNDEFINED
} | 0 | Kotlin | 0 | 0 | c663dbc917c02c2896769fa30ff927cf5aa212ad | 110 | bending-api | MIT License |
api/src/main/kotlin/no/nav/poao_tilgang/api/dto/request/policy_input/NavAnsattNavIdentTilgangTilNavEnhetPolicyInputV1Dto.kt | navikt | 491,417,288 | false | {"Kotlin": 324038, "Dockerfile": 95} | package no.nav.poao_tilgang.api.dto.request.policy_input
data class NavAnsattNavIdentTilgangTilNavEnhetPolicyInputV1Dto(
val navIdent: String,
val navEnhetId: String
)
| 7 | Kotlin | 4 | 0 | e53575bb6b637763bf23e175af127345a2ebf55b | 171 | poao-tilgang | MIT License |
project/src/main/kotlin/cga/exercise/components/geometry/Transformable.kt | JannikAlx | 389,366,062 | true | {"Kotlin": 171322, "GLSL": 16707} | package cga.exercise.components.geometry
import org.joml.Matrix4f
import org.joml.Vector3f
import org.joml.Vector4f
open class Transformable(var modelMatrix: Matrix4f = Matrix4f(), var parent: Transformable? = null) {
/**
* Rotates object around its own origin.
* @param pitch radiant angle around x-axi... | 0 | Kotlin | 0 | 0 | 36b6fe8d014673cfab60b54722b150594235b3a1 | 5,519 | Cayuga | MIT License |
sample/src/main/java/com/xtensolutions/sample/ui/fragment/RestaurantFragment.kt | riontech-xten | 337,764,638 | false | null | package com.xtensolutions.sample.ui.fragment
import android.os.Bundle
import android.view.View
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
... | 0 | Kotlin | 0 | 1 | 22f4df855cbd945635128ab1e8a116e5c8ca435c | 2,678 | StoryLayout | Apache License 2.0 |
app/src/main/java/changhwan/experiment/sopthomework/data/remote/model/response/wrapper/ResponseWrapper.kt | 29th-WE-SOPT-Android-Part | 413,076,866 | false | null | package changhwan.experiment.sopthomework.data.remote.model.response.wrapper
data class ResponseWrapper<T>(
val status: Int,
val success: Boolean,
val message: String,
val data: T?
)
| 0 | Kotlin | 0 | 1 | e9929a84a4bd840a013b2e11139d55b6b77475b7 | 200 | Android-Changhwan | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.