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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PrimFastKotlin/KotlinAction/app/src/main/java/com/prim/gkapp/ui/login/LoginPresenter.kt | zyl4265097 | 248,767,646 | true | {"Markdown": 5, "Text": 1, "Shell": 8, "JSON": 13, "Ignore List": 28, "JavaScript": 8, "Java Properties": 12, "Gradle": 35, "Batchfile": 7, "XML": 200, "Proguard": 18, "Java": 150, "INI": 3, "Kotlin": 93, "CMake": 1, "YAML": 1, "Git Attributes": 1, "Starlark": 3, "OpenStep Property List": 4, "Objective-C": 4} | package com.prim.gkapp.ui.login
import android.content.Context
import com.prim.gkapp.BuildConfig
import com.prim.gkapp.data.UserData
import com.prim.lib_base.mvp.impl.BasePresenter
/**
* @desc
* @author prim
* @time 2019-05-29 - 07:32
* @version 1.0.0
*/
class LoginPresenter : BasePresenter<LoginActivity>() {
... | 0 | Java | 0 | 0 | dba30a1b3518da41cdc5c492f70b8d3ae4146ee4 | 1,186 | PrimFastApp | Apache License 2.0 |
sample/movie/ticketing/src/commonMain/kotlin/io/github/trueangle/blackbox/sample/movie/ticketing/domain/model/Cinema.kt | trueangle | 687,002,862 | false | {"Kotlin": 13941} | package io.github.trueangle.blackbox.sample.movie.ticketing.domain.model
import kotlinx.collections.immutable.ImmutableList
data class Cinema(
val id: Long,
val name: String,
val address: String,
val city: String,
val showTimes: ImmutableList<ShowTime>
)
data class ShowTime(
val id: Long,
... | 0 | Kotlin | 0 | 6 | 7de102e681a92d0c417c0f50c7af30cea4b63bb3 | 448 | Blackbox | Apache License 2.0 |
module-link/src/main/java/com/affise/attribution/module/link/usecase/LinkResolveUseCaseImpl.kt | affise | 496,592,599 | false | {"Kotlin": 816143, "JavaScript": 39328, "HTML": 33916} | package com.affise.attribution.module.link.usecase
import com.affise.attribution.executors.ExecutorServiceProvider
import com.affise.attribution.modules.link.AffiseLinkCallback
import com.affise.attribution.network.HttpClient
import com.affise.attribution.network.HttpResponse
import com.affise.attribution.utils.isRedi... | 0 | Kotlin | 0 | 3 | a419ebe6c0d3b1ed601cd3b127f315fc74836161 | 1,878 | sdk-android | MIT License |
core/src/test/java/com/bed/core/domain/parameters/authentication/ResetParameterTest.kt | bed72 | 674,410,644 | false | {"Kotlin": 151713, "Shell": 492} | package com.bed.core.domain.parameters.authentication
import org.junit.Test
import org.junit.Assert.assertEquals
import com.bed.core.values.getFirstMessage
internal class ResetParameterTest {
@Test
fun `Should try validate ResetParameter return valid`() {
ResetParameter("code", "P@ssw0rD").map { (cod... | 0 | Kotlin | 0 | 1 | 16e9323baf729459e7eff97881ae130d11cf3973 | 1,573 | Hogwarts | MIT License |
app/src/main/java/com/jthou/wanandroidkotlin/repository/KnowledgeSystemListRepository.kt | jthou20121212 | 210,117,827 | false | null | package com.jthou.wanandroidkotlin.repository
import androidx.lifecycle.LiveData
import androidx.paging.PagedList
import com.jthou.wanandroidkotlin.data.DataRepository
import com.jthou.wanandroidkotlin.data.entity.Article
/**
* @author jthou
* @version 1.0.0
* @date 22-09-2019
*/
class KnowledgeSystemListReposito... | 0 | Kotlin | 0 | 0 | 7518eccff844b4c9191f69b7d9c6b72b13373f49 | 524 | WanAndroidKotlin | Apache License 2.0 |
komapper-core/src/main/kotlin/org/komapper/core/DryRunResult.kt | komapper | 349,909,214 | false | null | package org.komapper.core
data class DryRunResult(
val sql: String = "",
val sqlWithArgs: String = "",
val args: List<Value> = emptyList(),
val throwable: Throwable? = null,
val description: String = "",
)
| 6 | Kotlin | 0 | 16 | 7092a2bd24b609a1816bf05c89730259ff45178d | 227 | komapper | Apache License 2.0 |
app/src/main/java/org/xtimms/ridebus/ui/routes/details/stop/StopsOnRouteAdapter.kt | ridebus-by | 379,109,231 | false | null | package org.xtimms.ridebus.ui.routes.details.stop
import org.xtimms.ridebus.ui.routes.details.RouteDetailsController
import org.xtimms.ridebus.ui.routes.details.stop.base.BaseStopsAdapter
class StopsOnRouteAdapter(
controller: RouteDetailsController
) : BaseStopsAdapter<StopOnRouteItem>(controller) {
var ite... | 0 | Kotlin | 0 | 7 | 086da0d23cdbb238c35622053568361802ebd2bc | 598 | ridebus | Apache License 2.0 |
feature-wallet-impl/src/main/java/jp/co/soramitsu/wallet/impl/data/historySource/HistorySourceProvider.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.wallet.impl.data.historySource
import jp.co.soramitsu.runtime.multiNetwork.ChainRegistry
import jp.co.soramitsu.runtime.multiNetwork.chain.model.Chain
import jp.co.soramitsu.wallet.impl.data.network.subquery.OperationsHistoryApi
import jp.co.soramitsu.xnetworking.basic.networkclient.SoramitsuNe... | 15 | null | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 1,792 | fearless-Android | Apache License 2.0 |
mylib-qrcode/src/test/kotlin/QRCodeTest.kt | ismezy | 140,005,112 | false | null | /*
* Copyright © 2020 ismezy (<EMAIL>)
*
* 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... | 0 | Kotlin | 0 | 0 | 09793d3b8994839ca8a924f10b25dd131149b5dd | 1,425 | mylib | Apache License 2.0 |
server/src/main/kotlin/net/eiradir/server/culling/EntitiesUnculledEvent.kt | Eiradir | 635,460,745 | false | null | package net.eiradir.server.culling
import com.badlogic.ashley.core.Entity
import net.eiradir.server.map.ChunkDimensions
import net.eiradir.server.map.EiradirMap
data class EntitiesCulledEvent(private val map: EiradirMap, val chunkPos: ChunkDimensions, val entities: Collection<Entity>) {
override fun toString(): S... | 13 | Kotlin | 0 | 0 | fd732d283c6c72bbd0d0127bb86e8daf7e5bf3cd | 429 | eiradir-server | MIT License |
platform/external-system-impl/src/com/intellij/openapi/externalSystem/autoimport/changes/VirtualFilesChangesProvider.kt | ingokegel | 284,920,751 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.externalSystem.autoimport.changes
import com.intellij.openapi.Disposable
import com.intellij.openapi.externalSystem.autoimport.AsyncFileChangeListene... | 191 | null | 4372 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,563 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/philosophyquotes/data/model/Quote.kt | WillACosta | 536,141,267 | false | {"Kotlin": 38147} | package com.example.philosophyquotes.data.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.example.philosophyquotes.core.constants.AppConstants
import com.google.gson.annotations.SerializedName
@Entity(tableName = AppConstants.DATA_SOURCE.TABLE_NAME)
class Q... | 0 | Kotlin | 0 | 0 | 6dced3869dbae7ff1deddf04c0e6903804d964e1 | 772 | philosophy_quotes | Apache License 2.0 |
src/main/kotlin/jp/nephy/penicillin/models/BadgeCount.kt | 7u4 | 162,947,832 | true | {"Kotlin": 259979} | @file:Suppress("UNUSED")
package jp.nephy.penicillin.models
import jp.nephy.jsonkt.JsonObject
import jp.nephy.jsonkt.delegation.*
data class BadgeCount(override val json: JsonObject): PenicillinModel {
val dmUnreadCount by int("dm_unread_count")
val ntabUnreadCount by int("ntab_unread_count")
val totalUn... | 0 | Kotlin | 0 | 0 | 747aa281b512072d99e9b03cfe68b6c54d98b6f0 | 361 | Penicillin | MIT License |
src/main/kotlin/com/wg2/storefront/products/ProductService.kt | working-group-two | 653,561,464 | false | {"Kotlin": 18064, "Vue": 15432, "HTML": 842, "CSS": 270} | package com.wg2.storefront.products
import com.wg2.storefront.GrpcShared
import com.wgtwo.api.v0.products.ProductServiceGrpc
import com.wgtwo.api.v0.products.ProductsProto
import com.wgtwo.api.v0.products.ProductsProto.ListProductsForTenantRequest
import org.slf4j.LoggerFactory
data class Product(
val id: String,... | 0 | Kotlin | 0 | 0 | 04c221a418e0f1ee014a80622b782796f5b37cab | 1,275 | storefront-example | Apache License 2.0 |
andfun-kotlin-dev-bytes-starter-code/app/src/main/java/com/example/android/devbyteviewer/util/Util.kt | cpinan | 202,233,134 | 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... | 1 | null | 1 | 4 | c30b0eee00c88364bb5aefbcad06f6677b52df8b | 1,415 | Android-Associate-Developer-Training | Apache License 2.0 |
kodando-mobx/src/main/kotlin/kodando/mobx/ActionContext.kt | kodando | 81,663,289 | false | null | package kodando.mobx
interface ActionContext {
val actionName: String
}
| 12 | Kotlin | 5 | 76 | f1428066ca01b395c1611717fde5463ba0042b19 | 75 | kodando | MIT License |
app/src/main/java/com/codelab/theming/ui/start/theme/Shape.kt | Tonnie-Dev | 404,807,035 | false | {"Kotlin": 33592} | package com.codelab.theming.ui.start.theme
import android.graphics.drawable.shapes.Shape
import androidx.compose.foundation.shape.CutCornerShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
import androidx.compose.ui.unit.dp
val JetnewsShapes = Shapes(
//Sha... | 0 | Kotlin | 0 | 0 | 36413c3dd985e96c0a4a0337055d6dfd8245ba41 | 638 | ComposeTheming | Apache License 2.0 |
sample-tencent/src/main/java/com/melody/tencentmap/myapplication/ui/RoutePlanScreen.kt | TheMelody | 543,049,561 | false | {"Kotlin": 1503767} | // MIT License
//
// Copyright (c) 2022 被风吹过的夏天
//
// 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, mer... | 2 | Kotlin | 5 | 60 | 8a867728136bdb97f156ce57381437864c196382 | 5,845 | OmniMap-Compose | MIT License |
src/main/kotlin/com/github/weewar/mapviewer/controllers/ImageController.kt | JafarSadik | 97,445,382 | false | null | package com.github.weewar.mapviewer.controllers
import com.github.weewar.mapviewer.dao.WeewarMapDAO
import com.github.weewar.mapviewer.model.*
import com.github.weewar.mapviewer.service.WeewarMapRenderer
import com.github.weewar.mapviewer.utils.Images
import org.springframework.http.*
import org.springframework.stereo... | 0 | Kotlin | 0 | 1 | 78d4104130340fda3c0c2d3ecbe578f7f524c113 | 1,918 | weewar-map-viewer | Apache License 2.0 |
src/me/anno/image/ImageReader.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 9711019, "C": 236481, "GLSL": 9454, "Java": 7682, "Lua": 4315} | package me.anno.image
import me.anno.cache.AsyncCacheData
import me.anno.gpu.texture.TextureLib.blackTexture
import me.anno.gpu.texture.TextureLib.whiteTexture
import me.anno.image.raw.*
import me.anno.io.files.BundledRef
import me.anno.io.files.FileFileRef
import me.anno.io.files.FileReference
import me.anno.io.files... | 0 | Kotlin | 3 | 17 | adca85186e6781391fd2dca12067ef062d22cba4 | 10,861 | RemsEngine | Apache License 2.0 |
data/models/src/main/java/com/kafka/data/model/item/Doc.kt | vipulyaara | 612,950,214 | false | {"Kotlin": 635130, "JavaScript": 440999, "HTML": 11959, "CSS": 7888, "Shell": 2974} | package com.kafka.data.model.item
import com.kafka.data.model.StringListSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Doc(
@SerialName("genre")
@Serializable(with = StringListSerializer::class)
val collection: List<String>? = null,
... | 5 | Kotlin | 6 | 86 | fa64a43602eecac8b93ae9e8b713f6d29ba90727 | 1,530 | Kafka | Apache License 2.0 |
src/main/kotlin/io/beansnapper/flow/engine/Start.kt | waveskimmer | 310,305,080 | false | {"Kotlin": 17193} | package io.beansnapper.flow.engine
| 0 | Kotlin | 0 | 0 | cd33834f463f12498ba559ce5e9b1fc6cb6b162b | 36 | snap-flow | Apache License 2.0 |
src/test/kotlin/unit/org/kollektions/examples/advanced/ValuesToRanges.kt | AlexCue987 | 203,469,269 | false | null | package org.kollektions.examples.advanced
import org.kollektions.consumers.*
import org.kollektions.dispatchers.consumeWithResetting
import java.time.LocalDateTime
import java.util.*
import kotlin.test.Test
import kotlin.test.assertEquals
class ValuesToRanges {
val wednesdayMorning = LocalDateTime.of(2019, 10, 9,... | 0 | Kotlin | 1 | 21 | 126470f2126b3211bd70e8f167bd20e0f87088d9 | 2,968 | konsumers | Apache License 2.0 |
src/main/kotlin/person/Person.kt | MSDNicrosoft | 842,585,344 | false | {"Kotlin": 7793} | package person
class Person {
val entity = Entity()
val eyes = Eyes()
val minds = mapOf<Any, Any>()
val memories = Memories()
val heart = Any()
val dreams = listOf<Any>()
val wishes = Any()
val intentions = Any()
val emotions = Emotions()
val travelWith = listOf<Any>()... | 0 | Kotlin | 0 | 0 | c84e271b1862a146156445a285a54a949a1670de | 1,079 | IfLoveEqualsTrue | The Unlicense |
app/src/main/java/stark/android/appbase/demo/db/DbDemoActivity.kt | jhwing | 67,675,497 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 3, "Proguard": 2, "Java": 16, "XML": 52, "Kotlin": 84} | package stark.android.appbase.demo.db
import android.os.Bundle
import stark.android.appbase.activity.BaseToolbarActivity
import stark.android.appbase.activity.setBaseContentView
import stark.android.appbase.activity.setToolbar
class DbDemoActivity : BaseToolbarActivity() {
override fun onCreate(savedInstanceStat... | 1 | null | 1 | 1 | 6edac4ffb158542ee66f1911e4560ee924b99fc5 | 449 | AndroidAppBase | Apache License 2.0 |
example/src/main/java/co/infinum/example/Extensions.kt | infinum | 54,713,189 | false | null | package co.infinum.example
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.ImageFormat
import android.graphics.YuvImage
import android.media.Image
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.camera.cor... | 15 | null | 52 | 374 | 5f9a7106043b68013aa65c65f8e552f64a46e8c5 | 10,070 | Android-GoldenEye | Apache License 2.0 |
treeview/src/main/java/com/funny/treeview/TreeActivity.kt | FunCoder0676 | 241,558,625 | false | null | package com.funny.treeview
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.facade.annotation.Route
@Route(path = "/tree/tree")
class TreeActivity: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedIns... | 0 | Kotlin | 0 | 1 | 2f9e3e251992659ab25a8f3a028290d113226a7d | 387 | WanAlpha | Apache License 2.0 |
library/src/main/java/io/zhuliang/photopicker/api/Action.kt | Pigcasso | 125,020,235 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "INI": 3, "Proguard": 2, "XML": 38, "Kotlin": 29, "Java": 2} | package io.zhuliang.photopicker.api
/**
* @author Zhu Liang
*/
interface Action<in T> {
fun onAction(requestCode: Int, result: T)
} | 1 | null | 1 | 1 | 6b13a78275948b0df6630ee0e291108766802d39 | 140 | PhotoPicker | Apache License 2.0 |
app/src/main/java/com/example/theatre/features/spectacles/domain/repository/PerformanceRepository.kt | 2023Constanta | 601,772,348 | false | null | package com.example.theatre.features.spectacles.domain.repository
import com.example.theatre.core.domain.model.common.performance.Performance
import com.example.theatre.core.domain.model.common.performance.PerformancePlace
import com.example.theatre.core.domain.model.common.performance.PerformancePlaceLocation
/**
*... | 0 | Kotlin | 0 | 0 | 454794e98ed30e795d769ba304ecf092c7df2582 | 996 | Theatre | Apache License 2.0 |
sample/src/main/java/nz/co/trademe/konfigure/sample/examples/restart/RestartUtil.kt | Hazer | 206,080,261 | true | {"Kotlin": 69841} | package nz.co.trademe.konfigure.sample.examples.restart
import android.content.Intent
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snackbar.Snackbar
/**
* Extension function for displaying a Snackbar with a restart app action.
*/
@JvmOverloads
fun AppCo... | 0 | Kotlin | 0 | 1 | a0b1f323abf7220456753966f1fe321cc1a6f9d8 | 1,167 | konfigure | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/ui/extensions/SelectorDialog.kt | fahimaltinordu | 312,207,740 | false | null | package io.horizontalsystems.bankwallet.ui.extensions
import android.content.Context
import android.os.Bundle
import android.view.*
import android.view.inputmethod.InputMethodManager
import android.widget.TextView
import androidx.core.view.isVisible
import androidx.fragment.app.DialogFragment
import androidx.recyclerv... | 163 | null | 170 | 4 | d3094c4afaa92a5d63ce53583bc07c8fb343f90b | 3,448 | WILC-wallet-android | MIT License |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/mono/MonoToolEnvironment.kt | JetBrains | 49,584,664 | false | null | /*
* Copyright 2000-2021 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... | 3 | null | 25 | 91 | a0101341b8322dce1bc27104603ff9e788892990 | 1,989 | teamcity-dotnet-plugin | Apache License 2.0 |
app/src/main/java/tech/salvatore/livro_android_kotlin_paulo_salvatore/view/navigation/NavigationActivity.kt | paulosalvatore | 387,030,484 | false | null | package tech.salvatore.livro_android_kotlin_paulo_salvatore.view.navigation
import android.os.Bundle
import android.view.View
import android.view.ViewTreeObserver
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.fragment.NavHostFragment
import androidx.navi... | 0 | Kotlin | 6 | 7 | 7ff57a05e57a6a09b8ca27085f9fca51c5dcbddb | 3,463 | Livro_Android_Kotlin_PauloSalvatore | MIT License |
test-automation-feign/src/main/kotlin/com/nortal/test/feign/interceptor/LoggingInterceptor.kt | nortal | 504,492,420 | false | {"Kotlin": 332735, "Java": 39099, "CSS": 6064, "JavaScript": 2198, "Gherkin": 2044, "HTML": 377} | /**
* Copyright (c) 2022 Nortal AS
*
* 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,... | 0 | Kotlin | 2 | 2 | 6deaf66c37d6a9cc78c49a81ea59779ad95e5c7f | 1,979 | test-automation | MIT License |
app/src/main/java/org/wikipedia/main/MainActivity.kt | contextu-al | 590,289,323 | false | {"Kotlin": 2150635, "Java": 405441, "Python": 22955, "Shell": 3215, "Jinja": 533} | package org.wikipedia.main
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.View
import androidx.appcompat.view.ActionMode
import androidx.appcompat.widget.Toolbar
import androidx.fragment.app.Fragm... | 0 | Kotlin | 0 | 2 | 453802bf9852d3ef880beb9f73b2b1d6b4932eae | 13,062 | wikipedia | Apache License 2.0 |
src/main/kotlin/org/teamvoided/dusk_autumn/block/sapling/SaplingGenerators.kt | TeamVoided | 737,359,498 | false | {"Kotlin": 361125, "Java": 3800} | package org.teamvoided.dusk_autumn.block.sapling
import net.minecraft.block.sapling.TreeGrower
import org.teamvoided.dusk_autumn.DuskAutumns.id
import org.teamvoided.dusk_autumn.data.worldgen.DuskConfiguredFeature
import java.util.*
object SaplingGenerators {
val CASCADE = TreeGrower(
id("cascade").toStr... | 0 | Kotlin | 0 | 0 | ad953436fb5aa692d897d635c052b646a94a5aa9 | 712 | DuskBlocks | MIT License |
lego/lego_plugins/src/main/java/com/lego/plugins/basic/utility/ContextExtension.kt | ruichard | 775,792,965 | false | {"Kotlin": 369040, "Java": 13237} | package com.lego.plugins.basic.utility
import com.android.builder.model.BuildType
import com.ktnail.x.pascalToCamel
import com.ktnail.x.uriToPascal
import com.lego.plugins.basic.exception.LegoProjectPathNotSetException
import com.lego.plugins.context.ContextPlugin
import com.lego.plugins.extension.context.ContextExten... | 0 | Kotlin | 0 | 1 | 63771a1c5c604a13964976ef81787e8fd3b41c51 | 1,438 | Lego | Apache License 2.0 |
src/main/kotlin/lwaf_3D/DrawContext3D.kt | exerro | 160,990,895 | false | null | package lwaf_3D
import lwaf_core.*
import org.lwjgl.opengl.GL11
import org.lwjgl.opengl.GL14
import org.lwjgl.opengl.GL30
open class DrawContext3D(
val view: GLView,
val camera: Camera = Camera()
): GLResource {
private val framebuffer = GLFramebuffer(view.size.x.toInt(), view.size.y.toInt())
... | 1 | Kotlin | 0 | 0 | 732f76f981fcb00ba486708965be2944a9d82b4d | 4,545 | LWAF | MIT License |
compiler/testData/psi/recovery/unnamedParameter/firstInLambda.kt | JakeWharton | 99,388,807 | true | null | val foo = { : Int -> 0 } | 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 24 | kotlin | Apache License 2.0 |
zenet/request/src/main/kotlin/br/com/khomdrake/request/RequestHandler.kt | KhomDrake | 776,191,044 | false | {"Kotlin": 92853} | package br.com.khomdrake.request
import android.content.Context
import androidx.annotation.VisibleForTesting
import br.com.arch.toolkit.livedata.response.MutableResponseLiveData
import br.com.arch.toolkit.livedata.response.ResponseLiveData
import br.com.khomdrake.request.cache.DiskVault
import br.com.khomdrake.request... | 0 | Kotlin | 0 | 0 | cee648d765ca6c18a3be00160da00c1a73cb7545 | 3,810 | Zenet | Apache License 2.0 |
payment-sdk-core/src/main/java/payment/sdk/android/core/api/CoroutinesGatewayHttpClient.kt | network-international | 187,156,001 | false | {"Kotlin": 375118, "Java": 39575} | package payment.sdk.android.core.api
import android.os.Build
import androidx.annotation.UiThread
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.json.JSONObject
import java.io.BufferedReader
import java.io.Buf... | 3 | Kotlin | 7 | 5 | dea297485b5bc45c1f1263a9c406abec3d72f497 | 6,169 | payment-sdk-android | MIT No Attribution |
kotlin-mui-icons/src/main/generated/mui/icons/material/BrandingWatermarkSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/BrandingWatermarkSharp")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val BrandingWatermarkSharp: SvgIconComponent
| 10 | Kotlin | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 226 | kotlin-wrappers | Apache License 2.0 |
backend.native/tests/serialization/vararg.kt | mano7onam | 122,908,795 | true | {"Kotlin": 4630329, "C++": 803727, "Groovy": 137600, "C": 119742, "Objective-C++": 66838, "Swift": 29084, "JavaScript": 19411, "Shell": 11621, "Batchfile": 7004, "Python": 4775, "Objective-C": 3532, "Pascal": 1698, "Java": 782, "HTML": 185} | fun bar(vararg x: Int) {
x.forEach {
println(it)
}
println("size: ${x.size}")
}
inline fun foo() = bar(17, 19, 23, *intArrayOf(29, 31))
| 0 | Kotlin | 0 | 12 | d5169f2370a6b20ae91fc31999fe5ebefcb4344d | 158 | kotlin-native | Apache License 2.0 |
db-objekts-postgresql/src/generated-sources/kotlin/com/dbobjekts/postgresql/testdb/core/Core.kt | jaspersprengers | 576,889,038 | false | null | package com.dbobjekts.postgresql.testdb.core
import com.dbobjekts.metadata.Schema
object Core : Schema("core", listOf(Address, AllTypesNil, Composite, CompositeForeignKey, Country, Department, Employee, EmployeeAddress, EmployeeDepartment)) | 0 | Kotlin | 1 | 3 | d744e819a566ec0a3dbf6d2ff95feee4f58bbea6 | 240 | db-objekts | Apache License 2.0 |
library/src/main/java/cloud/pace/sdk/api/pay/generated/request/paymentTokens/GetPaymentTokensAPI.kt | pace | 303,641,261 | false | null | /*
* PLEASE DO NOT EDIT!
*
* Generated by SwagGen with Kotlin template.
* https://github.com/pace/SwagGen
*/
package cloud.pace.sdk.api.pay.generated.request.paymentTokens
import cloud.pace.sdk.api.pay.PayAPI
import cloud.pace.sdk.api.pay.generated.model.*
import cloud.pace.sdk.api.utils.EnumConverterFactory
imp... | 0 | Kotlin | 0 | 3 | ed4d7b1e2e0d72f9d5f7ffc8c9ccf3df6940eefe | 3,567 | cloud-sdk-android | MIT License |
src/main/kotlin/com/example/controller/time/LastFetchTimeManager.kt | Huythanh0x | 629,448,338 | false | null | package com.example.controller.time
import com.example.data.dao.CouponDAO
import com.example.utils.Constants
import org.json.JSONObject
import java.io.File
import java.io.FileWriter
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter
class LastFetchTimeManager {
compa... | 0 | Kotlin | 0 | 0 | 67bfc607779bfa0cf5e39248cd81bc28c369bd81 | 1,364 | UdemyCouponKtorServer | MIT License |
src/main/kotlin/com/between_freedom_and_space/mono_backend/posts/api/routing/PostsInformationRouting.kt | Between-Freedom-and-Space | 453,797,438 | false | {"Kotlin": 614504, "HTML": 8733, "Dockerfile": 503, "Shell": 166} | package com.between_freedom_and_space.mono_backend.posts.api.routing
import com.between_freedom_and_space.mono_backend.common.api.PageParams
import com.between_freedom_and_space.mono_backend.common.api.Response
import com.between_freedom_and_space.mono_backend.common.components.ModelMapper
import com.between_freedom_a... | 0 | Kotlin | 0 | 1 | 812d8257e455e7d5b1d0c703a66b55ed2e1dcd35 | 7,274 | Mono-Backend | Apache License 2.0 |
modules/module-compose/src/main/java/com/bbgo/module_compose/activity/ComposeActivity.kt | bbggo | 371,705,786 | false | null | package com.bbgo.module_compose
import android.app.Activity
import android.os.Bundle
import android.text.Html
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.fou... | 3 | null | 9 | 8 | 9c983af26f5bd9cd5e08b7a6080190305738b435 | 14,556 | WanAndroid | Apache License 2.0 |
Session 12 - Firabase II/Exercise 1/app/src/main/java/com/harbourspace/unsplash/data/UnsplashCollection.kt | m-4-s-h-4 | 670,582,935 | false | null | package com.harbourspace.unsplash.data
import android.os.Parcelable
import androidx.room.Entity
import kotlinx.parcelize.Parcelize
@Entity
@Parcelize
data class UnsplashCollection(
val cover_photo: CoverPhoto,
val description: String?,
val id: String,
val last_collected_at: String,
val links: Link... | 1 | Kotlin | 2 | 0 | a18e9f68eed9eed28997a824abca1201d189a2b3 | 518 | hw10 | Apache License 2.0 |
reactive/kotlinx-coroutines-rx2/src/RxMaybe.kt | weverb2 | 183,635,586 | false | {"Shell": 6, "Gradle": 44, "Markdown": 45, "Java Properties": 9, "Ignore List": 2, "Batchfile": 4, "Text": 28, "Kotlin": 692, "Gemfile.lock": 1, "YAML": 2, "Ruby": 1, "SCSS": 5, "HTML": 4, "JavaScript": 3, "Proguard": 4, "XML": 20, "JSON": 2, "CSS": 1, "Java": 1} | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.rx2
import io.reactivex.*
import kotlinx.coroutines.*
import kotlin.coroutines.*
/**
* Creates cold [maybe][Maybe] that will run a given [block] in a coroutine.
* Every time the ... | 1 | null | 1 | 1 | 4d5246a31e67e02c29e86f0e40f10fd307bdf673 | 2,280 | kotlinx.coroutines | Apache License 2.0 |
base/src/main/java/jp/juggler/util/data/BinPack.kt | tateisu | 89,120,200 | false | null | package jp.juggler.util
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.InputStream
import java.io.OutputStream
/**
* BinPack format
*
* アプリサーバからプッシュサービス経由で受け取るデータを包む。
* - 構造的にはJSONに似ている。階層を持つデータをエンコードできる。
*
* Pros:
* - バイト配列をエンコードできる。
* - 整数、浮動少数をエンコードできる。
* - エンコードされ... | 37 | null | 23 | 238 | f20f9fee8ef29bfcbba0f4c610ca8c2fb1c29d4f | 7,503 | SubwayTooter | Apache License 2.0 |
composeApp/src/desktopMain/kotlin/org/openswim/database/dao/RelayTypes.kt | Grufoony | 856,821,082 | false | {"Kotlin": 22774} | package org.openswim.database.dao
import org.jetbrains.exposed.dao.IntEntity
import org.jetbrains.exposed.dao.IntEntityClass
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IntIdTable
object RelayTypes : IntIdTable("relay_types") {
val name = varchar("name", 255)
}
class RelayTyp... | 5 | Kotlin | 0 | 0 | 48eefb6253bd150599f2dfa9d88a90ea8d795df6 | 454 | OpenSwim | MIT License |
src/main/kotlin/nest/Spawning.kt | Seveen | 288,517,608 | false | null | package nest
import creature.Role
import creature.roleToEssence
import screeps.api.*
import screeps.api.structures.StructureSpawn
fun spawn(spawn: StructureSpawn, role: Role, energy: Int) {
val essence = roleToEssence(role)
val body: Array<BodyPartConstant> = essence.createBody(energy)
val newName = "$... | 0 | Kotlin | 0 | 0 | ed959ae2b2e6d6d1195a338de3cbf45e700f8a6c | 685 | screeps-ai | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Bucket.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,831 | icons | MIT License |
app/src/main/java/dev/albertus/expensms/ui/components/GroupedTransactionList.kt | albertusdev | 864,469,705 | false | null | package dev.albertus.expensms.ui.components
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.co... | 5 | null | 1 | 8 | f13b993dded9342fd89678e9e26e43fa3e390917 | 1,512 | expensms | MIT License |
src/main/kotlin/playground/common/messaging/logging/DragonMessagingErrorHandler.kt | dtkmn | 596,118,171 | false | {"Kotlin": 333222, "Dockerfile": 763} | package playground.common.messaging.logging
import playground.common.observability.logging.MDC_KEY_LOG_EVENT
import playground.common.observability.logging.kv
import playground.common.messaging.consumer.MessageListenerContainerStartHelper
import io.sentry.Sentry
import org.apache.kafka.clients.consumer.Consumer
import... | 0 | Kotlin | 0 | 0 | 49b517c2197a6fa79a8532225ce294b213f2356a | 4,177 | kotlin-playground | MIT License |
src/test/kotlin/no/nav/eessi/pensjon/prefill/sed/krav/PrefillP2000_AP_LOP_UTLANDTest.kt | navikt | 358,172,246 | false | null | package no.nav.eessi.pensjon.prefill.sed.krav
import io.mockk.every
import io.mockk.mockk
import no.nav.eessi.pensjon.eux.model.SedType
import no.nav.eessi.pensjon.eux.model.sed.Nav
import no.nav.eessi.pensjon.eux.model.sed.SED
import no.nav.eessi.pensjon.personoppslag.Fodselsnummer
import no.nav.eessi.pensjon.persono... | 2 | Kotlin | 0 | 4 | b5d65bb8df9a82e0640e5ba0eaec85e338501802 | 6,228 | eessi-pensjon-prefill | MIT License |
app/src/main/java/com/aaron/yespdf/filepicker/IViewAllContract.kt | aaronzzx | 206,055,620 | false | null | package com.aaron.yespdf.filepicker
import androidx.annotation.StringRes
import com.aaron.yespdf.common.IModel
import com.aaron.yespdf.common.IPresenter
import com.aaron.yespdf.common.IView
import com.blankj.utilcode.util.SDCardUtils.SDCardInfo
import java.io.File
import java.util.*
import kotlin.collections.ArrayList... | 4 | Java | 7 | 41 | c2428c2984968b2d4feb23e69a4b82379f90d893 | 1,295 | YESPDF | Apache License 2.0 |
test/org/jetbrains/r/classes/s4/RS4IdentifierCompletionTest.kt | Mervap | 368,684,017 | true | {"Kotlin": 2985484, "Java": 794911, "R": 35713, "CSS": 23692, "Lex": 14254, "HTML": 6049, "Rebol": 19} | /*
* Copyright 2000-2019 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 org.jetbrains.r.classes.s4
import org.jetbrains.r.completion.IdentifierBaseCompletionTest
class RS4IdentifierCompletionTest : IdentifierBaseCompletionTest() {
... | 0 | Kotlin | 0 | 0 | f6fc7683881127e1b8033786447ebce683659ea3 | 716 | Rplugin | Apache License 2.0 |
serialization/src/test/kotlin/io/github/airflux/serialization/dsl/reader/array/item/specification/ArrayNullableItemSpecTest.kt | airflux | 336,002,943 | false | null | /*
* Copyright 2021-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 3 | 3 | 9dfcfe4ec288e27f150beeef12dff45f131d0805 | 9,530 | airflux-serialization | Apache License 2.0 |
kgl-vulkan/src/nativeMain/kotlin/com/kgl/vulkan/structs/FormatProperties.kt | BrunoSilvaFreire | 223,607,080 | true | {"Kotlin": 1880529, "C": 10037} | /**
* Copyright [2019] [<NAME>]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | null | 0 | 0 | 74de23862c29404e7751490331cbafbef310bd63 | 963 | kgl | Apache License 2.0 |
lib/src/main/kotlin/com/aballano/mnemonik/Memoize.kt | aballano | 85,889,713 | false | null | package com.aballano.mnemonik
import com.aballano.mnemonik.tuples.Quadruple
import com.aballano.mnemonik.tuples.Quintuple
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.ConcurrentMap
private const val DEFAULT_CAPACITY = 256
/**
* Functions must be pure for the caching technique to work.
... | 0 | Kotlin | 2 | 42 | 943d4b0a59b2ee273bda7fc64c67c2bb10c03ebf | 4,366 | mnemonik | Apache License 2.0 |
app/src/main/java/com/ahmedtikiwa/fxapp/MainActivity.kt | akitikkx | 371,123,034 | false | null | package com.ahmedtikiwa.fxapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupActionBarWithNavController
import ... | 0 | Kotlin | 0 | 0 | a782a5a5f6960b3926e670faa37d8f9b5f4355e1 | 1,478 | fx-app | MIT License |
src/test/kotlin/no/nav/familie/ef/sak/felles/util/FeatureToggleTestUtil.kt | navikt | 206,805,010 | false | {"Kotlin": 3922371, "Gherkin": 163948, "Dockerfile": 187} | package no.nav.familie.ef.sak.felles.util
import io.mockk.every
import io.mockk.mockk
import no.nav.familie.ef.sak.infrastruktur.featuretoggle.FeatureToggleService
import no.nav.familie.ef.sak.infrastruktur.featuretoggle.Toggle
fun mockFeatureToggleService(enabled: Boolean = true): FeatureToggleService {
val mock... | 5 | Kotlin | 2 | 0 | 28d379f72763347782d5afd01fa7639caff7b011 | 516 | familie-ef-sak | MIT License |
app/src/main/java/com/delishstudio/delish/model/UserManager.kt | evangelionmanuhutu | 737,305,479 | false | null | package com.delishstudio.delish.model
import com.delishstudio.delish.system.DatabaseStrRef
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.FirebaseDatabase
import com.google.firebase.data... | 0 | null | 0 | 1 | c2dd1febdb285d96f9f8d472e20580426f42bb73 | 2,870 | Delish | Apache License 2.0 |
app/src/main/java/com/socketmobile/stockcount/helper/PreferenceHelper.kt | hightop0924 | 638,576,997 | false | null | /** Copyright © 2018 Socket Mobile, Inc. */
package com.socketmobile.stockcount.helper
import android.content.Context
import android.preference.PreferenceManager
const val SHOW_INSTRUCTION_KEY = "HaveToShowInstruction"
const val AUTO_ADD_QUANTITY_KEY = "AutoAddQuantity"
const val D600_SUPPORT_KEY = "D600Support"
c... | 0 | Kotlin | 0 | 0 | b2dfabf0ace9c802880732ecb608e03adb61f265 | 1,985 | code_scanner_demo | Apache License 2.0 |
core/src/com/elementalg/minigame/ILeaderboard.kt | simple0x47 | 294,504,550 | false | null | package com.elementalg.minigame
interface ILeaderboard {
fun addScore(score: Float)
fun getHighScore(): Float
fun getWorldHighScore(): Float
fun showLeaderboard()
} | 0 | Kotlin | 0 | 0 | 2a5580033c278905a5b1665afe6b34a72993602b | 182 | drop-the-finger | MIT License |
src/test/kotlin/dev/monosoul/jooq/container/GenericDatabaseContainerTest.kt | monosoul | 497,003,599 | false | null | package dev.monosoul.jooq.container
import dev.monosoul.jooq.settings.Database
import dev.monosoul.jooq.settings.Image
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.junit5.MockKExtension
import io.mockk.mockk
import io.mockk.verify
import org.junit.jupiter.api.BeforeEach
import org.junit... | 4 | Kotlin | 5 | 9 | f3cc5cbaf77e3a2a22c767fee75de4f809cea477 | 4,755 | jooq-gradle-plugin | Apache License 2.0 |
language-server/src/test/kotlin/tools/samt/ls/SymbolsTest.kt | samtkit | 602,288,830 | false | {"Kotlin": 612474, "Batchfile": 1420, "Shell": 1226} | package tools.samt.ls
import org.eclipse.lsp4j.DocumentSymbol
import org.eclipse.lsp4j.Position
import org.eclipse.lsp4j.Range
import org.eclipse.lsp4j.SymbolKind
import tools.samt.common.SourceFile
import kotlin.test.Test
import kotlin.test.assertEquals
class SymbolsTest {
@Test
fun `getSymbols returns corre... | 0 | Kotlin | 0 | 8 | fbb3ed090f5c3f72a7330a4dd687345c67d6e786 | 3,665 | core | MIT License |
store/src/commonMain/kotlin/org/mobilenativefoundation/store/store5/StoreBuilder.kt | MobileNativeFoundation | 226,169,258 | false | null | /*
* Copyright 2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 57 | null | 202 | 3,174 | f9072fc59cc8bfe95cfe008cc8a9ce999301b242 | 4,624 | Store | Apache License 2.0 |
example/shared/src/androidMain/kotlin/com/splendo/kaluga/example/shared/di/DependencyInjection.kt | splendo | 191,371,940 | false | {"Kotlin": 6494822, "Swift": 172024, "Shell": 1514} | /*
Copyright 2022 Splendo Consulting B.V. The Netherlands
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 appli... | 87 | Kotlin | 7 | 315 | 4094d5625a4cacb851b313d4e96bce6faac1c81f | 10,191 | kaluga | Apache License 2.0 |
node-kotlin/src/jsMain/kotlin/node/fs/writeFileSync.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("node:fs")
package node.fs
/**
* Returns `undefined`.
*
* The `mode` option only affects the newly created file. See {@link open} for more details.
*
* For detailed information, see the documentation of the asynchronous version of
* this API: {@link wr... | 0 | null | 6 | 26 | 3ca49a8f44fc8b46e393ffe66fbd81f8b4943c18 | 561 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/JRobertFinal/footballapp/data/team/TeamDataSource.kt | TTVBlu | 786,035,434 | false | {"Kotlin": 102209} | package com.JRobertFinal.footballapp.data.team
import com.JRobertFinal.footballapp.data.team.remote.response.Team
import io.reactivex.Observable
interface TeamDataSource {
fun getTeamList(id : String): Observable<List<Team>>
fun getTeamDetail(id : String): Observable<List<Team>>
fun getSearchTeam(query : ... | 0 | Kotlin | 0 | 0 | 7f46c5a151920020e0c7febdeae15bfd6e34cdc7 | 353 | Footballapp | MIT License |
compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/jvm.kt | JakeWharton | 99,388,807 | true | null | package test
actual typealias Writer = java.io.Writer
| 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 55 | kotlin | Apache License 2.0 |
src/jvm/src/aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProviderJVM.kt | awslabs | 267,704,046 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.crt.auth.credentials
import kotlinx.coroutines.*
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.future.asCompletableFuture
import kotlinx.coroutines.runBlockin... | 5 | Kotlin | 3 | 1 | c93e78ae4bf73c99384a253febca917c6aa7dd40 | 2,897 | aws-crt-kotlin | Apache License 2.0 |
data/src/main/java/dev/mslalith/focuslauncher/data/database/dao/HiddenAppsDao.kt | mslalith | 453,114,601 | false | null | package dev.mslalith.focuslauncher.data.database.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import dev.mslalith.focuslauncher.data.database.entities.HiddenAppRoom
import dev.mslalith.focuslauncher.data.utils.Co... | 8 | Kotlin | 5 | 40 | 3298e2505e9f3eb6f8760b603586bd8c60d065e4 | 1,177 | focus_launcher | Apache License 2.0 |
sample/src/main/java/com/expresspay/sample/ui/ExpresspaySaleActivity.kt | ExpresspaySa | 601,645,134 | false | {"Kotlin": 432395, "Java": 48886} | /*
* Property of Expresspay (https://expresspay.sa).
*/
package com.expresspay.sample.ui
import android.app.DatePickerDialog
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.children
import com.expresspay.sam... | 0 | Kotlin | 2 | 0 | 8526a6a83fd0cdc5d11260521faf19c08260217d | 9,862 | expresspay-android-sdk-code | MIT License |
app/src/main/java/com/selin/rickandmortycomposeapp/ui/theme/main/MainActivity.kt | selinihtyr | 726,901,132 | false | {"Kotlin": 72229} | package com.selin.rickandmortycomposeapp.ui.theme.main
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import andro... | 0 | Kotlin | 0 | 1 | 2a9d01fc368aae352610c9565e4dd713e1195dd6 | 7,828 | RickAndMortyComposeApp | MIT License |
src/main/kotlin/com/codeperfection/shipit/dto/common/PageDto.kt | codeperfection | 730,719,882 | false | {"Kotlin": 106653, "Dockerfile": 567} | package com.codeperfection.shipit.dto.common
data class PageDto<T>(
val totalElements: Long,
val totalPages: Int,
val elements: List<T>
)
| 0 | Kotlin | 0 | 0 | fbc1dc3aed31cf83d40fff3f988ca53b4033e0ac | 151 | ship-it | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/apptest/BatchPropertyDsl.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 5468147} | package com.faendir.awscdkkt.generated.services.apptest
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.apptest.CfnTestCase
@Generated
public fun buildBatchProperty(initializer: @AwsCdkDsl CfnTestCase.BatchProperty.Builder.() -> Unit ... | 1 | Kotlin | 0 | 4 | c4f13bc5f85f50a5e554f90571a36ff62308c035 | 422 | aws-cdk-kt | Apache License 2.0 |
news-mobile/android/app/src/main/kotlin/com/news/mobile/MainActivity.kt | PkayJava | 263,666,006 | false | {"Dart": 107886, "Java": 78760, "TSQL": 25214, "Swift": 404, "HTML": 314, "Kotlin": 120, "Objective-C": 38} | package com.news.mobile
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 9 | Dart | 0 | 1 | e73cd30430aaa037b10d638eef9b969b870f9d0a | 120 | news-master | Apache License 2.0 |
ListaUsuario/app/src/main/java/com/rodrigo/listausuario/MainActivity.kt | cassiofm | 382,967,684 | false | null | package com.rodrigo.listausuario
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 0 | Kotlin | 0 | 0 | ee75a080ae06c2ddd4ab1a0ed26bed81c08dc293 | 1,620 | mobile | MIT License |
app/src/main/java/com/torr/coroutinesplayground/MainActivity.kt | 21TORR | 186,792,097 | false | null | package com.torr.coroutinesplayground
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
support... | 0 | Kotlin | 0 | 0 | 3923c45a7a2e4cf2feb92bfdd012af33f75f632d | 464 | mmm-kotlin-coroutines | MIT License |
app/src/main/java/com/nsk/app/widget/MainCateAdapterWithBinding.kt | StephenGiant | 230,359,216 | false | null | package com.nsk.app.widget
import com.nsk.app.base.BaseAdapterWithBinding
import com.nsk.app.base.BaseViewHolder
import com.nsk.app.caikangyu.R
class MainCateAdapterWithBinding(listData: List<Any>) : BaseAdapterWithBinding<Any>(listData) {
var selectPosition = 0
override fun getLayoutResource(viewType: Int): ... | 1 | null | 1 | 1 | d4bd736b90989a2a8b774dafcc57ab8aa42aabae | 631 | fuckcky | Apache License 2.0 |
compiler/testData/diagnostics/testsWithJsStdLib/jsCode/badAssignment.kt | JakeWharton | 99,388,807 | true | null | // !DIAGNOSTICS: -UNUSED_PARAMETER
fun Int.foo(x: Int) {
js("this = x<!JSCODE_ERROR!><!>;")
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 97 | kotlin | Apache License 2.0 |
app/src/main/kotlin/com/rajankali/plasma/compose/layout/MovieComposables.kt | rajandev17 | 308,975,838 | false | null | /*
* MIT License
*
* Copyright (c) 2020 rajandev17
*
* 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, modif... | 1 | Kotlin | 26 | 99 | 7d1db3a5c186d099a33ef6c9bef7596b3d0e1edf | 7,007 | Plasma | MIT License |
src/main/kotlin/com/wynnlab/minestom/listeners/player inventory click listeners.kt | WynnLab | 389,421,865 | false | null | package com.wynnlab.minestom.listeners
import com.wynnlab.minestom.core.player.checkPlayerItems
import com.wynnlab.minestom.core.player.modifiedSkills
import com.wynnlab.minestom.items.ItemTypeId
import com.wynnlab.minestom.items.itemTypeIdTag
import com.wynnlab.minestom.items.skillRequirementsTag
import com.wynnlab.m... | 0 | Kotlin | 0 | 5 | 96d970229f94503986bec40cc997b188427aae74 | 4,803 | WynnLab-Minestom | MIT License |
kandy-lets-plot/src/main/kotlin/org/jetbrains/kotlinx/kandy/letsplot/layers/context/aes/WithYEnd.kt | Kotlin | 502,039,936 | false | null | /*
* Copyright 2020-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.kotlinx.kandy.letsplot.layers.context.aes
import org.jetbrains.kotlinx.dataframe.DataColumn
import org.jetbrains.kotlinx.dataframe.columns.ColumnReference
import org.jetbrains.kotlinx.kand... | 78 | Kotlin | 0 | 98 | 0e54a419c188b5e6dbee8a95af5213c7ac978bb6 | 1,667 | kandy | Apache License 2.0 |
ground/src/test/java/com/google/android/ground/repository/UserMediaRepositoryTest.kt | google | 127,777,820 | false | {"Kotlin": 1400241} | /*
* Copyright 2023 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 235 | Kotlin | 115 | 245 | bb5229149eb3687923a8391f30f7279e477562a8 | 1,842 | ground-android | Apache License 2.0 |
src/test/kotlin/org/wfanet/measurement/integration/k8s/EmptyClusterCorrectnessTest.kt | world-federation-of-advertisers | 349,561,061 | false | null | /*
* Copyright 2022 The Cross-Media Measurement Authors
*
* 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... | 98 | null | 11 | 36 | b5c84f8051cd189e55f8c43ee2b9cc3f3a75e353 | 21,168 | cross-media-measurement | Apache License 2.0 |
kswift-gradle-plugin/src/main/kotlin/dev/icerock/moko/kswift/plugin/KmTypeExt.kt | icerockdev | 392,317,237 | false | null | /*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.kswift.plugin
import io.outfoxx.swiftpoet.ANY_OBJECT
import io.outfoxx.swiftpoet.BOOL
import io.outfoxx.swiftpoet.DeclaredTypeName
import io.outfoxx.swiftpoet.FunctionTypeName
import io.ou... | 34 | null | 19 | 315 | 511bb27bccbb96912b9848c8b740a08a5bee94f5 | 5,314 | moko-kswift | Apache License 2.0 |
app/src/main/java/com/alpriest/energystats/ui/theme/Theme.kt | alpriest | 606,081,400 | false | null | package com.alpriest.energystats.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
... | 7 | Kotlin | 3 | 3 | b0094f9774a280bca91c40dfee1da0216c4cd01f | 1,538 | EnergyStats-Android | MIT License |
app/src/main/java/com/alpriest/energystats/ui/theme/Theme.kt | alpriest | 606,081,400 | false | null | package com.alpriest.energystats.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
... | 7 | Kotlin | 3 | 3 | b0094f9774a280bca91c40dfee1da0216c4cd01f | 1,538 | EnergyStats-Android | MIT License |
app/src/main/java/online/litterae/worldnewsin/view/VideoEntry.kt | YuriShakhov | 275,418,170 | false | null | package online.litterae.worldnewsin.view
class VideoEntry(
val text: String,
val videoId: String,
val date: String
) | 0 | Kotlin | 0 | 0 | e8f8820b08c3cd9ebec1b9048f3ec0ce17f774b8 | 129 | world-news-in | Apache License 2.0 |
FE/Algo/app/src/main/java/com/d204/algo/data/repository/remote/ProblemRemote.kt | OneDayOneAlgorithm | 702,771,315 | false | {"Kotlin": 214386, "Java": 137214, "Python": 31787, "HTML": 4437, "JavaScript": 3222, "Dockerfile": 537} | package com.d204.algo.data.repository.remote
import com.d204.algo.data.api.NetworkResult
import com.d204.algo.data.model.Problem
interface ProblemRemote {
suspend fun getProblems(): NetworkResult<List<Problem>>
suspend fun getProblem(problemId: Long): NetworkResult<Problem>
suspend fun getStrongProblems(u... | 0 | Kotlin | 0 | 0 | 273bf6fc4072767e40984d98a47c4a8af0c059b2 | 674 | AlgoArium | MIT License |
sweetdependency-gradle-plugin/src/main/java/com/highcapable/sweetdependency/gradle/helper/GradleHelper.kt | HighCapable | 643,245,749 | false | {"Kotlin": 298044} | /*
* SweetDependency - An easy autowire and manage dependencies Gradle plugin.
* Copyright (C) 2019-2023 HighCapable
* https://github.com/HighCapable/SweetDependency
*
* Apache License Version 2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | 0 | Kotlin | 0 | 32 | 2cbf00e997d1788caa398df7b899d96f571caa87 | 4,828 | SweetDependency | Apache License 2.0 |
ScalerAndroidPlugin/src/main/kotlin/dev/danperez/gradle/handlers/extensions/ScalerAndroidLibraryExtension.kt | danielPerez97 | 711,319,077 | false | {"Kotlin": 51781} | package dev.danperez.gradle.handlers.extensions
import org.gradle.api.provider.Property
public abstract class ScalerAndroidLibraryExtension {
internal abstract val namespace: Property<String>
} | 0 | Kotlin | 0 | 2 | 486dcefe637cdf2005896d4de2fbae0e660393bf | 199 | Scaler | Apache License 2.0 |
mobile/src/main/java/ch/epfl/sdp/mobile/ui/tournaments/Contest.kt | epfl-SDP | 462,385,783 | false | null | package ch.epfl.sdp.mobile.ui.tournaments
import androidx.compose.foundation.clickable
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ListItem
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
impor... | 15 | Kotlin | 3 | 13 | 71f6e2a5978087205b35f82e89ed4005902d697e | 2,046 | android | MIT License |
app/src/main/java/cdio/group21/litaire/data/Move.kt | Zahedm45 | 508,737,533 | false | {"Kotlin": 208551} | package cdio.group21.litaire.data
import Card
data class Move(
val isMoveToFoundation: Boolean,
val card: Card,
val indexOfSourceBlock: Byte, // source, 8 = waste
val indexOfDestination: Byte
)
| 0 | Kotlin | 0 | 1 | 543bd8847adfa583a00026bf6dbb0df94be868ee | 200 | klondike_solitaire_solver | MIT License |
app/src/main/kotlin/com/chatter/omeglechat/presentation/ChatScreen/ChatScreen.kt | z0xyz | 677,695,548 | false | null | package com.chatter.omeglechat
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import android... | 0 | null | 0 | 1 | 65e892170a65a99895cc5e96cfd63a1456ad3ad7 | 5,042 | omeglechat | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.