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/runtime/runtime/src/commonTest/kotlin/androidx/compose/runtime/changelist/TestOperations.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... | 29 | null | 784 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,197 | androidx | Apache License 2.0 |
core-spring-data-jpa/src/test/kotlin/nxcloud/foundation/core/data/jpa/test/TestController.kt | Sunshow | 554,021,772 | false | {"Kotlin": 99507, "Java": 9505} | package nxcloud.foundation.core.data.jpa.test
import nxcloud.foundation.core.data.support.context.DataQueryContext
import nxcloud.foundation.core.data.support.context.DataQueryContextHolder
import nxcloud.foundation.core.data.support.enumeration.DataQueryMode
import org.springframework.data.domain.Example
import org.s... | 0 | Kotlin | 0 | 3 | f492aa62ed5afcaba7cc6735eab7d13b017c4452 | 2,229 | nxcloud-foundation-core | Apache License 2.0 |
android/src/main/java/expo/modules/yoco/enums/ReactNativeYocoSupportedCurrency.kt | tolypash | 686,369,643 | false | {"Kotlin": 22300, "TypeScript": 20553, "Swift": 12454, "Ruby": 5253, "JavaScript": 3496, "Objective-C++": 2729, "Objective-C": 327, "C": 103} | package expo.modules.yoco.enums
import expo.modules.kotlin.types.Enumerable
enum class SupportedCurrency(val value: String): Enumerable {
UNKNOWN("UNKNOWN"),
ZAR("ZAR");
}
class SupportedCurrencyAdaptor(value: String) {
private var currency = SupportedCurrency.UNKNOWN
init {
this.currency = ... | 0 | Kotlin | 0 | 6 | 25abbc10f5b8f0a3025e4be791e4faf877b37f86 | 932 | react-native-yoco | MIT License |
src/remolynk/android/app/src/main/kotlin/com/dhanabhon/remolynk/MainActivity.kt | Dhanabhon | 388,111,628 | false | {"Dart": 10707, "Swift": 404, "Kotlin": 127, "Objective-C": 38} | package com.dhanabhon.remolynk
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | ffa1d43e964d7b1d403d75b368a979221a79fb29 | 127 | remolynk | MIT License |
src/test/kotlin/g1701_1800/s1760_minimum_limit_of_balls_in_a_bag/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g1701_1800.s1760_minimum_limit_of_balls_in_a_bag
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun minimumSize() {
assertThat(Solution().minimumSize(intArrayOf(9), 2), equalTo(3))
... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 567 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/com/example/hrautomation/data/api/TokenApi.kt | SasikSiderking | 547,823,297 | false | null | package com.example.hrautomation.data.api
import com.example.hrautomation.data.model.TokenResponse
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query
interface TokenApi {
@GET("/authorization")
suspend fun checkEmail(@Query("e... | 7 | Kotlin | 0 | 0 | 87637914d791b5cd4cc824dec3115615351df719 | 583 | HRautomation | MIT License |
src/main/kotlin/one/devsky/bettervanilla/extensions/MaterialExtensions.kt | CoasterFreakDE | 586,574,646 | false | null | package one.devsky.bettervanilla.extensions
import com.destroystokyo.paper.MaterialTags
import com.google.common.collect.Multimap
import org.bukkit.Material
import org.bukkit.Tag
import org.bukkit.inventory.ItemStack
import org.bukkit.inventory.meta.ItemMeta
import org.bukkit.inventory.meta.SkullMeta
import org.bukkit... | 0 | Kotlin | 0 | 0 | 2d208561b0dfa49be3e544c298aa1d95178cc910 | 4,168 | BetterVanilla | MIT License |
src/main/kotlin/org/veupathdb/lib/cli/diamond/commands/DiamondCommandConfig.kt | VEuPathDB | 848,883,430 | false | {"Kotlin": 233473} | package org.veupathdb.lib.cli.diamond.commands
import com.fasterxml.jackson.annotation.JsonGetter
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import org.veupathdb.lib.cli.diamond.DiamondCommand
import org.veupathdb.lib.cli.diamond.util.DiamondCommandConfigDeserializer
@JsonDeserialize(using = Dia... | 0 | Kotlin | 0 | 0 | 02bf4922c8d1a344fb5cde5e748b759679f921de | 490 | lib-jvm-diamondcli | Apache License 2.0 |
src/main/kotlin/com/dev/userservice/controller/UserController.kt | i4ba1 | 774,224,013 | false | {"Kotlin": 5143} | package com.dev.userservice.controller
import com.dev.userservice.dto.UserCreateRequest
import com.dev.userservice.dto.UserUpdateRequest
import com.dev.userservice.model.User
import com.dev.userservice.service.UserService
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.*
... | 0 | Kotlin | 0 | 0 | de268ec6184dcc4bc5ba238773eaec5617442899 | 1,352 | kotlin-spring-be | MIT License |
src/main/kotlin/com/gmail/blueboxware/libgdxplugin/filetypes/skin/inspections/SkinMissingPropertyInspection.kt | payne911 | 294,020,584 | false | null | package com.gmail.blueboxware.libgdxplugin.filetypes.skin.inspections
import com.gmail.blueboxware.libgdxplugin.filetypes.skin.psi.SkinElementVisitor
import com.gmail.blueboxware.libgdxplugin.filetypes.skin.psi.SkinObject
import com.gmail.blueboxware.libgdxplugin.message
import com.gmail.blueboxware.libgdxplugin.utils... | 1 | null | 1 | 1 | fa9452b97ddcbe0d19e4958967de8e6ad9acf9a7 | 2,177 | LibGDXPlugin | Apache License 2.0 |
java/java-impl/src/com/intellij/refactoring/extractMethod/newImpl/inplace/InplaceExtractMethodCollector.kt | marvinso1978 | 312,467,573 | true | 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.refactoring.extractMethod.newImpl.inplace
import com.intellij.internal.statistic.eventLog.EventLogGroup
import com.intellij.internal.statistic.eventLog.event... | 0 | null | 0 | 0 | ef407f90eedc9140c18512d3b3bb533733ece2ae | 1,814 | intellij-community | Apache License 2.0 |
src/test/kotlin/com/github/themartdev/intellijgleam/parser/GleamParsingTestCase.kt | themartdev | 842,744,615 | false | {"Kotlin": 103991, "Java": 36259, "Lex": 9408, "Gleam": 7555} | package com.github.themartdev.intellijgleam.parser
import com.github.themartdev.intellijgleam.lang.GleamLanguage
import com.github.themartdev.intellijgleam.lang.parser.GleamParserDefinition
import com.intellij.lang.Language
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiErrorElement
import com.intellij.... | 4 | Kotlin | 0 | 3 | be1f5aaf6fde3c82c8db88292c74874d49b4f4fb | 3,379 | intellij-gleam | Apache License 2.0 |
app/test/innsending/routes/InnsendingTest.kt | navikt | 678,522,979 | false | {"Kotlin": 116961, "Dockerfile": 1056} | package innsending.routes
import innsending.Fakes
import innsending.TestConfig
import innsending.TokenXGen
import innsending.dto.FilMetadata
import innsending.dto.Innsending
import innsending.postgres.PostgresDAO
import innsending.postgres.PostgresTestBase
import innsending.postgres.transaction
import innsending.redis... | 1 | Kotlin | 0 | 0 | bde083fd1b3c8fc046703484ce6bdccd73259dac | 10,102 | aap-innsending | MIT License |
plugins/kotlin/idea/tests/testData/inspectionsLocal/convertObjectToDataObject/compatibleReadResolve.kt | xGreat | 182,651,778 | false | null | // COMPILER_ARGUMENTS: -XXLanguage:+DataObjects
import java.io.Serializable
object<caret> Foo : Serializable {
private fun readResolve(): Any = Foo
}
| 1 | null | 1 | 1 | fb5f23167ce9cc53bfa3ee054b445cf4d8f1ce98 | 155 | intellij-community | Apache License 2.0 |
compose_material3/src/main/java/dev/vengateshm/compose_material3/api_android/credential_manager/SignUpResult.kt | vengateshm | 670,054,614 | false | {"Kotlin": 2003980, "Java": 55066} | package dev.vengateshm.compose_material3.api_android.credential_manager
sealed class SignUpResult {
data class Success(val username: String) : SignUpResult()
data object Cancelled : SignUpResult()
data object Failure : SignUpResult()
} | 0 | Kotlin | 0 | 1 | 6f18741487b0946df5bda06292341d44988602b4 | 248 | Android-Kotlin-Jetpack-Compose-Practice | Apache License 2.0 |
platform/lang-impl/src/com/intellij/ide/hierarchy/actions/ActivateHierarchyToolWindowAction.kt | ingokegel | 72,937,917 | true | 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.ide.hierarchy.actions
import com.intellij.icons.AllIcons
import com.intellij.ide.actions.ToolWindowEmptyStateAction
import com.intellij.ide.hierarchy.Hierarc... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,179 | intellij-community | Apache License 2.0 |
src/main/kotlin/g1501_1600/s1536_minimum_swaps_to_arrange_a_binary_grid/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g1501_1600.s1536_minimum_swaps_to_arrange_a_binary_grid
// #Medium #Array #Greedy #Matrix #2023_06_12_Time_336_ms_(100.00%)_Space_54.8_MB_(100.00%)
class Solution {
fun minSwaps(grid: Array<IntArray>): Int {
val len = grid.size
var swap = 0
val preProcess = IntArray(len)
fo... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 1,171 | LeetCode-in-Kotlin | MIT License |
array/src/commonTest/kotlin/array/ComposeTest.kt | lokedhs | 236,192,362 | false | null | package array
import kotlin.test.Test
import kotlin.test.assertFailsWith
class ComposeTest : APLTest() {
@Test
fun compose2Arg0() {
parseAPLExpression("¯2 3 4 (×∘-) 1000").let { result ->
assertDimension(dimensionsOfSize(3), result)
assertArrayContent(arrayOf(2000, -3000, -4000... | 0 | Kotlin | 2 | 28 | b2926f3958c168bbe81cda5dc0953d7207688243 | 3,998 | array | MIT License |
godot-kotlin/src/nativeGen/kotlin/godot/Camera2D.kt | raniejade | 166,207,411 | false | null | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import gdnative.godot_string
import godot.core.Allocator
import godot.core.Godot
import godot.core.Variant
import godot.core.VariantArray
import godot.core.Vector2
import kotlin.Boolean
import kotlin.Float
import kotli... | 12 | Kotlin | 4 | 51 | 5c1bb2a1f1d2187375bf50c0445b42c88f37989f | 31,210 | godot-kotlin | MIT License |
src/test/kotlin/com/github/natche/gravatarjavaclient/profile/GravatarProfileRequestHandlerTest.kt | NathanCheshire | 599,843,085 | false | {"Kotlin": 130964, "Java": 129185} | package com.github.natche.gravatarjavaclient.profile
import com.github.natche.gravatarjavaclient.exceptions.GravatarJavaClientException
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.Test
/**
* Tests for the [GravatarProfileReque... | 0 | Kotlin | 0 | 2 | d55cc03c01863003af0add207f4d24c9dce86cbb | 1,338 | GravatarJavaClient | MIT License |
app/src/main/java/com/starbase/bankwallet/entities/ActiveAccount.kt | Sonar-LaunchPad | 410,111,846 | true | {"Kotlin": 2429867, "Shell": 2039, "Ruby": 966} | package com.starbase.bankwallet.entities
import androidx.room.Entity
@Entity(primaryKeys = ["primaryKey"])
class ActiveAccount(
val accountId: String,
val primaryKey: String = "active_account"
)
| 0 | null | 0 | 0 | 1327d5f457ae383bf6849ef8816c859a1536f150 | 213 | unstoppable-wallet-android | MIT License |
sink-connector/src/test/kotlin/org/neo4j/connectors/kafka/sink/Neo4jCudIT.kt | neo4j | 665,115,793 | false | null | /*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [https://neo4j.com]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 6 | null | 5 | 4 | 47f615d59ad6dcf054471aa672499ab6b0fbc38b | 54,363 | neo4j-kafka-connector | Apache License 2.0 |
app/src/main/java/com/kyant/pixelmusic/util/Gradient.kt | Kyant0 | 334,608,108 | false | null | package com.jetpack.composechips.component
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import... | 1 | null | 12 | 95 | e94362a4bc9c6da13b1a1848dce528975bf52b13 | 1,477 | PixelMusic | Apache License 2.0 |
app/src/main/java/com/dinhlam/sharebox/ui/list/modelview/ShareListDateModelView.kt | dinhlamvn | 532,200,939 | false | null | package com.dinhlam.sharebox.ui.list.modelview
import android.view.View
import com.dinhlam.sharebox.R
import com.dinhlam.sharebox.base.BaseListAdapter
import com.dinhlam.sharebox.base.BaseSpanSizeLookup
import com.dinhlam.sharebox.databinding.ModelViewShareListDateBinding
data class ShareListDateModelView(
val id... | 0 | Kotlin | 0 | 0 | 6d3899d4b7220951d247c35d7c95248b196a30b2 | 1,103 | sharebox | MIT License |
src/main/kotlin/icu/windea/pls/config/config/CwtGameRuleConfig.kt | DragonKnightOfBreeze | 328,104,626 | false | {"Kotlin": 3176872, "Java": 164709, "Lex": 42932, "HTML": 24956, "Shell": 2741} | package icu.windea.pls.config.config
import com.intellij.psi.*
import icu.windea.pls.cwt.psi.*
class CwtGameRuleConfig(
override val pointer: SmartPsiElementPointer<out PsiElement>,
override val info: CwtConfigGroupInfo,
val config: CwtMemberConfig<*>,
val name: String
): CwtConfig<PsiElement> //CwtProperty | Cwt... | 10 | Kotlin | 5 | 29 | f7b621fe700bb8bae07193f885b94adf97187cc1 | 326 | Paradox-Language-Support | MIT License |
app/src/main/java/com/erkindilekci/lifelog/data/local/entity/ImageToUpload.kt | erkindilekci | 658,015,395 | false | null | package com.erkindilekci.lifelog.data.local.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.erkindilekci.lifelog.util.Constants.IMAGE_TO_UPLOAD_TABLE
@Entity(tableName = IMAGE_TO_UPLOAD_TABLE)
data class ImageToUpload(
@PrimaryKey(autoGenerate = true)
val id: Int = 0,
val rem... | 0 | Kotlin | 0 | 0 | 44d0202cd392385521cc10fe577521ce7abfe652 | 397 | LifeLog | Apache License 2.0 |
domain/src/main/java/io/github/markyav/domain/ControlNet.kt | MarkYav | 783,295,010 | false | {"Kotlin": 84272} | package io.github.markyav.domain
import androidx.compose.ui.graphics.ImageBitmap
/**
* Main interface to generate an image using ControlNet.
*/
interface ControlNet {
suspend fun process(params: ControlNetParams): ImageBitmap?
} | 0 | Kotlin | 0 | 0 | f45d6c36f04e339adc48ac8e6782e2d89e32c76a | 236 | Sketchi | Apache License 2.0 |
app/src/main/java/foo/bar/foreapollo3/feature/launch/LaunchesState.kt | erdo | 403,370,042 | false | null | package foo.bar.foreapollo3.feature.launch
import foo.bar.foreapollo3.LaunchesQuery
import foo.bar.foreapollo3.message.ErrorMessage
import java.util.*
const val NO_ID = "(no launch)"
val NO_LAUNCH = Launch(NO_ID, "no site", false, "")
data class LaunchesState(
val isBusy: Boolean,
val launch: Launch,
va... | 0 | Kotlin | 0 | 4 | 9226e17931e5a410288c63c07222356c01781696 | 1,147 | apollo3-android-sample | Apache License 2.0 |
storyid/src/main/java/ru/breffi/storyid/auth/common/AuthHandler.kt | storyclm | 251,337,609 | false | null | package ru.breffi.storyid.auth.common
import ru.breffi.storyid.auth.common.model.IdException
import ru.breffi.storyid.auth.common.model.IdRequestDetails
import ru.breffi.storyid.auth.common.model.IdValueResult
interface AuthHandler {
interface AuthLostListener {
fun onAuthLost(refreshRequestDetails: IdR... | 1 | null | 1 | 1 | a28fdca8ffb8f15410c509fcb357793b890084fe | 480 | story-id-android | MIT License |
compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirSuspendLimitationsChecker.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 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.fir.analysis.checkers.declaration
import org.jetbrains.kotlin.diagnostics.Diagno... | 182 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,086 | kotlin | Apache License 2.0 |
build-tools/agp-gradle-api/src/main/java/com/android/build/api/variant/HasTestFixturesBuilder.kt | RivanParmar | 526,653,590 | false | {"Java": 48334972, "Kotlin": 8896058, "HTML": 109232, "Lex": 13233, "ReScript": 3232, "Makefile": 2194} | /*
* Copyright (C) 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 app... | 1 | Java | 2 | 17 | 8fb2bb1433e734aa9901184b76bc4089a02d76ca | 1,240 | androlabs | Apache License 2.0 |
android/src/main/kotlin/com/eopeter/fluttermapboxnavigation/models/Waypoint.kt | eopeter | 199,620,016 | false | null | package com.eopeter.fluttermapboxnavigation.models
import com.google.gson.annotations.SerializedName
import com.mapbox.geojson.Point
import java.io.Serializable
/**
* A simple class to capture how most people will express a waypoint.
*/
data class Waypoint(
@SerializedName("name")
val name: String = "",
... | 15 | null | 141 | 189 | 83325fdad56d278f75ea2a68640f456d3a1ce5ac | 968 | flutter_mapbox_navigation | Apache License 2.0 |
tinbo-charts/src/main/kotlin/io/gitlab/arturbosch/tinbo/charts/ChartsPlugin.kt | arturbosch | 66,214,435 | false | null | package io.gitlab.arturbosch.tinbo.charts
import io.gitlab.arturbosch.tinbo.api.marker.Command
import io.gitlab.arturbosch.tinbo.api.plugins.TinboContext
import io.gitlab.arturbosch.tinbo.api.plugins.TinboPlugin
import org.springframework.stereotype.Component
/**
* @author <NAME>
*/
@Component
class ChartsPlugin : ... | 1 | null | 1 | 6 | 85a74b80b081e374360475f4979e5adffbf91436 | 515 | Tinbo | Apache License 2.0 |
component-toolkit/src/jvmMain/kotlin/com/macaosoftware/component/DesktopComponentRender.kt | pablichjenkov | 135,388,611 | false | null | package com.macaosoftware.component
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Composi... | 0 | null | 5 | 95 | 198b61ee7bb8b777868b64066f9004e070e63856 | 1,629 | macao-sdk | The Unlicense |
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/rbd.kt | fkorotkov | 84,911,320 | false | null | // GENERATED
package com.fkorotkov.kubernetes
import io.fabric8.kubernetes.api.model.PersistentVolumeSpec as model_PersistentVolumeSpec
import io.fabric8.kubernetes.api.model.RBDPersistentVolumeSource as model_RBDPersistentVolumeSource
import io.fabric8.kubernetes.api.model.RBDVolumeSource as model_RBDVolumeSource
imp... | 6 | null | 19 | 317 | ef8297132e6134b6f65ace3e50869dbb2b686b21 | 754 | k8s-kotlin-dsl | MIT License |
CommonRecycler-Kotlin/src/main/java/com/shuyu/commonrecycler/xrecycler/progressindicator/AVLoadingIndicatorView.kt | CarGuo | 74,585,853 | false | null | package com.shuyu.commonrecycler.xrecycler.progressindicator
import android.annotation.TargetApi
import android.content.Context
import android.content.res.TypedArray
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.os.Build
import android.support.annotation.IntD... | 1 | null | 61 | 260 | c759af9544aa025a7ab15991f6b3c5fabc3b3f68 | 11,957 | LazyRecyclerAdapter | MIT License |
app/src/main/java/com/tzt/customizekt/MainActivity.kt | tzt1994 | 263,828,419 | false | null | package com.tzt.customizekt
import android.view.View
import android.widget.Toast
import com.tzt.common.basedepency.base.BaseActivity
import com.tzt.common.basedepency.widget.Toobar
import com.tzt.common.basedepency.widget.ToobarParams
class MainActivity : BaseActivity() {
override fun layoutResID(): Int {
... | 0 | Kotlin | 1 | 5 | b3ede59ae12d614fc827dddb5c506cb103cc3211 | 871 | customizeKt | Apache License 2.0 |
src/main/java/jarek/SimpleJavaClient.kt | jarekczek | 167,042,712 | false | null | package jarek
import java.io.BufferedReader
import java.io.InputStreamReader
import java.lang.Exception
import java.net.Socket
import java.net.URL
import java.net.URLConnection
object SimpleJavaClient {
@JvmStatic
fun main(args: Array<String>) {
val connections = mutableListOf<URLConnection>()
for(i in 1.... | 1 | null | 1 | 1 | 839020cdde50d0d80a9579be868400bd08a03d1c | 1,077 | asyncWww | MIT License |
app/src/main/java/com/letitplay/maugry/letitplay/user_flow/ui/screen/channels/ChannelAdapter.kt | LetItPlay | 113,900,291 | false | null | package com.letitplay.maugry.letitplay.user_flow.ui.screen.channels
import android.support.v7.util.DiffUtil
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.RecyclerView.NO_POSITION
import android.view.ViewGroup
import com.letitplay.maugry.letitplay.R
import com.letitplay.maugry.letitplay... | 8 | Kotlin | 1 | 0 | 74380c7cf5fe6ce8f307cd82d7e90f2e9704eacd | 3,376 | AndroidClient | Apache License 2.0 |
app/src/main/kotlin/com/chipcerio/moovy/data/source/local/PopularMoviesLocalSource.kt | chipcerio | 104,817,992 | false | {"Gradle": 3, "Markdown": 3, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Java Properties": 1, "Proguard": 1, "Kotlin": 36, "XML": 13, "Java": 1} | package com.chipcerio.moovy.data.source.local
import android.content.SharedPreferences
import com.chipcerio.moovy.common.Constants.HAS_TMDB_CONFIG
import com.chipcerio.moovy.common.Constants.IMG_BASE_URL
import com.chipcerio.moovy.common.Constants.IMG_WIDTH
import com.chipcerio.moovy.common.edit
import com.chipcerio.m... | 0 | Kotlin | 0 | 0 | 4879bb7fe8194cd0825e8d03adfed35a461ab658 | 2,038 | moovy | Apache License 2.0 |
kotlin/kotlin-formal/examples/fuzzer/inlineTryExpr.kt21287552.kt_minimized.kt | antlr | 5,958,314 | false | null | inline fun <T> tryOrElse(f1: (() -> T), f2: (() -> T)): T = try {
f1()
}catch(e: Exception) {
(f2)!!()
}
fun testIt() = "abc" + tryOrElse({}, {}) + "ghi" | 529 | null | 3668 | 9,910 | 6581f29d0cb63e3e337cd6dacec6602e34aa88d3 | 153 | grammars-v4 | MIT License |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package27/Foo02707.kt | yamamotoj | 163,851,411 | false | {"Text": 1, "Ignore List": 30, "Markdown": 1, "Gradle": 34, "Java Properties": 11, "Shell": 6, "Batchfile": 6, "Proguard": 22, "Kotlin": 36021, "XML": 93, "INI": 1, "Java": 32, "Python": 2} | package com.github.yamamotoj.module2.package27
class Foo02707 {
fun method0() {
Foo02706().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun method5() {... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 347 | android_multi_module_experiment | Apache License 2.0 |
CustomViewTest/app/src/main/java/com/example/lt/customviewtest/view/RandomColorTextView.kt | maxdylan | 252,929,536 | false | null | package com.example.lt.customviewtest.view
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.os.Build
import android.util.AttributeSet
import android.view.View
import androidx.annotation.RequiresApi
import androidx.appcompat.widget.... | 1 | null | 1 | 1 | db3ee7b07c8d1fd35d24d53c6d79bb8fa13eb7c8 | 1,316 | rwx_test | Apache License 2.0 |
idea/testData/intentions/conventionNameCalls/replaceGetOrSet/notOperator.kt | gigliovale | 89,726,097 | false | null | // IS_APPLICABLE: false
package p
class C
fun C.get(s: String) = s
fun foo(c: C) {
c.<caret>get("x")
}
| 0 | null | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 110 | kotlin | Apache License 2.0 |
commons/src/main/java/com/samagra/commons/models/geofencing/GeofencingInitials.kt | hardikm9850 | 687,311,848 | false | {"Java Properties": 8, "Markdown": 4, "Gradle": 14, "Shell": 3, "Batchfile": 3, "Text": 4, "Ignore List": 10, "Git Config": 1, "INI": 6, "Proguard": 8, "Kotlin": 231, "XML": 739, "JSON": 8, "robots.txt": 1, "HTML": 2, "CSS": 1, "JavaScript": 3, "Java": 1152, "YAML": 1, "GraphQL": 3, "XSLT": 6} | package com.samagra.commons.models.geofencing
import com.google.gson.annotations.SerializedName
data class GeofencingInitials(
@SerializedName("fencing_radius") var fencingRadius: Int? = null
) | 1 | null | 1 | 1 | 0dcf0b044da0ac6b58960ac8cce2f2db5910961c | 199 | Nipun-Lakshya-App | MIT License |
app/src/main/java/org/wikipedia/userprofile/ContributionsActivity.kt | kevinesaa | 312,931,076 | true | {"INI": 2, "Shell": 7, "YAML": 1, "Gradle": 6, "Text": 2, "Markdown": 2, "Batchfile": 1, "Ignore List": 2, "XML": 602, "Java Properties": 3, "SVG": 1, "Python": 5, "Jinja": 1, "Proguard": 2, "JSON": 53, "Java": 591, "Kotlin": 89} | package org.wikipedia.userprofile
import android.content.Context
import android.content.Intent
import org.wikipedia.activity.SingleFragmentActivity
import org.wikipedia.analytics.SuggestedEditsFunnel
class ContributionsActivity : SingleFragmentActivity<ContributionsFragment>() {
public override fun createFragment... | 0 | null | 0 | 0 | 819bf83b1fc1d252cd3e58309bb8ab0c896bfb1e | 628 | apps-android-wikipedia | Apache License 2.0 |
shared/src/commonMain/kotlin/ui/screens/post/items/ItemPostBookmark.kt | FebrianDev | 709,151,433 | false | {"Kotlin": 312460, "Ruby": 1723, "Swift": 1695, "Shell": 228} | package ui.screens.post.items
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layou... | 0 | Kotlin | 0 | 0 | 383cc85cf6ba4436322d24cb2dd31d6a32903ba7 | 8,677 | TellUs | Apache License 2.0 |
service/src/main/kotlin/net/devslash/Runner.kt | devslash-paul | 152,959,898 | false | null | package net.devslash
/**
* Timeouts.
* Use `0` to specify infinite.
* Negative value mean to use the system's default value.
*/
@Suppress("MemberVisibilityCanBePrivate")
class ConfigBuilder {
/**
* Max time between TCP packets - default 10 seconds.
*/
var followRedirects: Boolean = false
/**
* Max ... | 7 | Kotlin | 2 | 9 | 9346d497282869958f913bb84459921f53e3288e | 1,435 | fetchDSL | MIT License |
contract-summary/common/src/main/kotlin/fund/cyber/contract/common/delta/apply/UpdateContractSummaryProcess.kt | KevinLiLu | 141,660,908 | true | {"Kotlin": 576953, "Dockerfile": 1315, "Shell": 168} | package fund.cyber.contract.common.delta.apply
import fund.cyber.cassandra.common.CqlContractSummary
import fund.cyber.common.kafka.reader.SinglePartitionTopicLastItemsReader
import fund.cyber.contract.common.delta.ContractSummaryDelta
import fund.cyber.contract.common.delta.DeltaMerger
import fund.cyber.contract.comm... | 0 | Kotlin | 0 | 0 | d5f015ac97bd21ce964090167fa7f78b02f6a02f | 10,957 | cyber-search | MIT License |
domain/src/main/kotlin/no/nav/su/se/bakover/domain/vilkår/bosituasjon/KunneIkkeLeggeTilBosituasjonEpsGrunnlag.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.domain.vilkår.bosituasjon
import no.nav.su.se.bakover.domain.søknadsbehandling.KunneIkkeLeggeTilGrunnlag
sealed class KunneIkkeLeggeTilBosituasjonEpsGrunnlag {
object FantIkkeBehandling : KunneIkkeLeggeTilBosituasjonEpsGrunnlag()
object KlarteIkkeHentePersonIPdl : KunneIkkeLeggeT... | 0 | Kotlin | 0 | 1 | d7157394e11b5b3c714a420a96211abb0a53ea45 | 514 | su-se-bakover | MIT License |
app/src/main/java/io/bibuti/opennews/ui/onboarding/SplashFragment.kt | bibutikoley | 325,942,445 | false | null | package io.bibuti.opennews.ui.onboarding
import android.os.Bundle
import android.view.View
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import dagger.hilt.android.AndroidEntryPoint
import io.bibuti.opennews.R
import io.bibuti.opennews.core.BaseFragment
import io.bibuti... | 0 | Kotlin | 0 | 1 | c59e27f8bc771d8339728657f7ee96d0e5d26520 | 827 | OpenNews | MIT License |
app/src/main/java/com/example/collegeapp20/faculity/ItemFaculityCard.kt | adarshroy369 | 668,218,768 | false | null | package com.example.collegeapp.ui.theme.faculity
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.selection.selectable
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.runtime.C... | 0 | Kotlin | 0 | 0 | 6e59cbf37fb744e036bea19f5a08e03859ec1d05 | 2,617 | MyCollegeApp | MIT License |
app/src/main/java/id/agis/databaseinspectorsample/viewmodel/NotesViewModel.kt | lana-jo | 613,776,948 | false | null | package id.agis.databaseinspectorsample.viewmodel
import android.app.Application
import androidx.lifecycle.*
import id.agis.databaseinspectorsample.database.NoteRepository
import id.agis.databaseinspectorsample.model.Note
class NotesViewModel(application: Application) : AndroidViewModel(application) {
private lat... | 0 | Kotlin | 0 | 1 | 95f6ebd8ad3c2138d8d065e8327a62be3dfe3af3 | 1,001 | NoteApp | MIT License |
app/src/main/java/net/kuama/documentscanner/enums/EOpenCvStatus.kt | Kuama-IT | 281,395,743 | false | {"Kotlin": 53570} | package net.kuama.documentscanner.enums
enum class EOpenCvStatus {
LOADED, ERROR
}
| 3 | Kotlin | 29 | 152 | 222047c4166c5236e9ef0be263572a206dc8c03d | 88 | android-document-scanner | MIT License |
site/src/jsMain/kotlin/example/shadcn_kotlin/ui/components/MarkDownTable.kt | dead8309 | 657,395,822 | false | null | package example.shadcn_kotlin.ui.components
import androidx.compose.runtime.Composable
import org.jetbrains.compose.web.dom.Div
import org.jetbrains.compose.web.dom.Table
@Composable
fun mdTable(
content: @Composable () -> Unit
) {
Div({ classes("my-6","w-full","overflow-y-auto") }) {
Table({ classes(... | 0 | Kotlin | 0 | 4 | 8413055f558c4fccaee9f39fe372d21ff6d466c8 | 373 | shadcn-kotlin | MIT License |
src/main/kotlin/org/kivo/kipooo/modules/UsageModules.kt | KivoMCStudio | 468,971,369 | false | {"Kotlin": 4895} | package org.kivo.kipooo.modules
import org.kivo.kipooo.Kipooo
interface UsageModules : EssentialModules {
fun getUsage() : String? {
return Kipooo.getYaml("setting")?.getString(modulesName() + ".usage")
}
fun getMessage() : String? {
return Kipooo.getYaml("setting")?.getString(modulesNam... | 0 | Kotlin | 0 | 0 | 2dbdf5c3a68c33a034d30e0dd87532ed282d46a9 | 346 | Kipooo-Reborn | MIT License |
app/src/main/java/com/example/fuelcalculator/PriceActivity.kt | math-nazario | 857,853,503 | false | {"Kotlin": 10667} | package com.example.fuelcalculator
import android.content.Intent
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.example.fuelcalculator.databinding.ActivityPri... | 0 | Kotlin | 0 | 0 | 4c6a0d110131ab689348fd2d10d71fe10cb865e5 | 2,055 | fuelCalculator | The Unlicense |
app/src/main/java/com/yousfi/hayatiineApp/ui/fragment/search/SearchFragment.kt | yousfiriadh | 423,231,665 | false | {"Kotlin": 119026} | package com.yousfi.hayatiineApp.ui.fragment.search
import androidx.lifecycle.ViewModelProviders
import com.yousfi.hayatiine.ui.base.BaseFragment
import com.yousfi.hayatiineApp.R
import com.yousfi.hayatiineApp.databinding.SearchFragmentBinding
import com.yousfi.hayatiineApp.ui.fragment.add.AddViewModel
class SearchFra... | 0 | Kotlin | 0 | 0 | f04afee026ecef6f6d3b913690c2d480fc4a3eb7 | 720 | hayatiineapp | Apache License 2.0 |
sources/DirectDependency/src/iosMain/kotlin/org/jetbrains/kotlin/direct/useTransitive_iOS.kt | dsavvinov | 553,557,867 | false | {"Kotlin": 45982, "Swift": 604, "Shell": 363, "Batchfile": 326} | package org.jetbrains.kotlin.direct
import org.jetbrains.kotlin.transitive.TransitiveExpect
fun consumeTransitiveExpectInIOS(tc: TransitiveExpect) {
// Common API is callable, and returns whatever value is specified in respective (iOS, here) 'actual'-implementation
require(tc.value == "Transitive, iOS")
... | 0 | Kotlin | 0 | 1 | 09be33e11d5c5c407aab2aef1e2f61ee5b0a67f0 | 434 | barebones-kotlin-multiplatform | Apache License 2.0 |
src/main/kotlin/hm/binkley/dice/DiceParser.kt | binkley | 259,950,798 | false | null | @file:Suppress("MemberVisibilityCanBePrivate")
package hm.binkley.dice
import hm.binkley.dice.DieShift.ONE
import hm.binkley.dice.DieShift.ZERO
import lombok.Generated
import org.parboiled.BaseParser
import org.parboiled.Parboiled.createParser
import org.parboiled.Rule
import org.parboiled.annotations.BuildParseTree
... | 8 | Kotlin | 0 | 0 | a1aae4e6f1da12498ec60a711ad44d9ca74b9b88 | 6,393 | kotlin-dice | The Unlicense |
domain/src/main/kotlin/com/lukinhasssss/admin/catalogo/domain/Entity.kt | Lukinhasssss | 551,493,782 | false | null | package com.lukinhasssss.admin.catalogo.domain
import com.lukinhasssss.admin.catalogo.domain.validation.ValidationHandler
abstract class Entity<ID : Identifier>(
open val id: ID
) {
abstract fun validate(handler: ValidationHandler)
}
| 0 | Kotlin | 0 | 3 | 4dbe90c6032a4729e5aa4b0a52d3d54dcb74b7e0 | 245 | admin-catalogo-de-videos-kotlin | MIT License |
module-domain/src/main/kotlin/io/klaytn/finder/config/jpa/FinderDbSet1Config.kt | klaytn | 678,353,482 | false | {"Kotlin": 1734759, "Solidity": 71874, "Shell": 3957} | package io.klaytn.finder.config.jpa
import com.zaxxer.hikari.HikariDataSource
import io.klaytn.finder.infra.db.DbConstants
import org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotati... | 7 | Kotlin | 0 | 0 | 9826584d291c7ec1a383d91f7238046de2c45656 | 2,892 | finder-api | MIT License |
src/main/kotlin/Orchestrator.kt | rdf-connect | 782,188,424 | false | {"Kotlin": 95719, "TypeScript": 91368} | package technology.idlab
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import technology.idlab.broker.Broker
import technology.idlab.broker.impl.SimpleBroker
import technology.idlab.intermediate.IRRunner
import technology.idlab.intermediate.IRStage
import technology.idlab.runner.Runner
impo... | 13 | Kotlin | 0 | 1 | bc5a5d8fd053c25a938bfbd9ff8a1c299332b19d | 2,069 | orchestrator | MIT License |
crypto/src/main/kotlin/net/rsprot/crypto/crc/CyclicRedundancyCheck.kt | blurite | 771,753,685 | false | {"Kotlin": 1458066} | package net.rsprot.crypto.crc
import io.netty.buffer.ByteBuf
/**
* A helper object for calculating CRC-32 for a given slice of bytes.
*/
public object CyclicRedundancyCheck {
/**
* The 32-bit CRC table.
*/
private val CRC32 =
IntArray(256) { index ->
var crc = index
... | 4 | Kotlin | 0 | 7 | b72a9ddbbf607e357b783c4c8a1f5dc91b5de4f0 | 1,494 | rsprot | MIT License |
src/main/kotlin/cz/startnet/utils/pgdiff/schema/DBObject.kt | lovelysystems | 289,426,236 | false | null | package cz.startnet.utils.pgdiff.schema
import cz.startnet.utils.pgdiff.PgDiffUtils
import java.io.PrintWriter
open class DBObject(val objectType: String, val name: String, val position: Int) {
var comment: String? = null
var owner: String? = null
open fun quotedIdentifier() = PgDiffUtils.getQuotedName(... | 2 | Kotlin | 0 | 0 | add115b5aefdaf06719e43f2890f6767a44d363b | 1,438 | apgdiff | MIT License |
09-manage-cancellation/projects/starter/ManageCancellation/src/main/kotlin/com/raywenderlich/managecancellation/WithTimeoutExample.kt | raywenderlich | 281,980,214 | false | null | package com.raywenderlich.managecancellation
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withTimeout
fun main() = runBlocking {
withTimeout(1500L) {
repeat(1000) { i ->
println("$i. Crunching numbers [Beep.Boop.Beep]...")
delay(500L)
}
}
} | 2 | Shell | 17 | 20 | 4f8b003be08cda6af1e42e256cba597fbf8d18d3 | 317 | kco-materials | Apache License 2.0 |
09-manage-cancellation/projects/starter/ManageCancellation/src/main/kotlin/com/raywenderlich/managecancellation/WithTimeoutExample.kt | raywenderlich | 281,980,214 | false | null | package com.raywenderlich.managecancellation
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withTimeout
fun main() = runBlocking {
withTimeout(1500L) {
repeat(1000) { i ->
println("$i. Crunching numbers [Beep.Boop.Beep]...")
delay(500L)
}
}
} | 2 | Shell | 17 | 20 | 4f8b003be08cda6af1e42e256cba597fbf8d18d3 | 317 | kco-materials | Apache License 2.0 |
whynotimagecarousel/src/main/java/org/imaginativeworld/whynotimagecarousel/model/CarouselGravity.kt | ImaginativeShohag | 240,220,327 | false | {"Kotlin": 60297} | package org.imaginativeworld.whynotimagecarousel.model
enum class CarouselGravity(val value: Int) {
START(0),
CENTER(1)
}
| 8 | Kotlin | 61 | 423 | 1272cc9617d82b8dfb0346b9b500315ad7a056eb | 131 | Why-Not-Image-Carousel | Apache License 2.0 |
app/src/main/java/io/matchmore/ticketing/Contract.kt | matchmore | 114,889,318 | false | null | package io.matchmore.ticketing
object Contract {
const val PROPERTY_CONCERT = "concert"
const val PROPERTY_PRICE = "price"
const val PROPERTY_DEVICE_TYPE = "deviceType"
const val PROPERTY_IMAGE = "image"
const val DEVICE_TYPE_MOBILE = "mobile"
const val DEVICE_TYPE_PIN = "pin"
const val D... | 0 | Kotlin | 0 | 2 | 23926768388beb44b719e7a559d141688ab2285b | 351 | android-ticketing-app | MIT License |
app/src/main/java/ir/sajjad/textsaver/adapter/TextSaverAdapter.kt | Sajjad-sojoudi | 714,687,430 | false | {"Kotlin": 13453} | package ir.sajjad.textsaver.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.TextureView
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import ir.sajjad.textsaver.R
import ir.sajjad.text... | 0 | Kotlin | 0 | 1 | 39cf660db816615d9089a2f7173c6bde86416678 | 1,342 | text_saver | MIT License |
dd-sdk-android/src/main/kotlin/com/datadog/android/log/internal/net/LogOkHttpUploader.kt | clevertrevor | 230,969,891 | true | {"Kotlin": 514004} | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-2019 Datadog, Inc.
*/
package com.datadog.android.log.internal.net
import android.os.Build
im... | 0 | Kotlin | 0 | 0 | 0b05e72b75246b5771058b47cb1d29e7bf5b90f0 | 3,319 | dd-sdk-android | Apache License 2.0 |
src/domain/user/src/main/kotlin/yapp.be.domain/service/ModifyUserDomainService.kt | YAPP-Github | 634,126,325 | false | null | package yapp.be.domain.service
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import yapp.be.domain.model.User
import yapp.be.domain.port.inbound.ModifyUserUseCase
import yapp.be.domain.port.inbound.model.ModifyUserTokenCommand
import yapp.be.domain.port.o... | 2 | Kotlin | 0 | 3 | 6c5310cd9aa71b5af29f63e5c0c2db4532e57827 | 1,079 | 22nd-Web-Team-2-BE | Apache License 2.0 |
app/src/main/java/com/example/fulllab/ContadoActivity.kt | dossantoscarlos | 172,508,222 | false | null | package com.example.fulllab
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_contado.*
class ContadoActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(sav... | 0 | Kotlin | 0 | 0 | dbaa1d8668fbd50e9f658443d1b2d95c44d5d836 | 553 | appAndroid | Apache License 2.0 |
benchmark/src/main/java/com/t8rin/imagetoolboxlite/benchmark/BaselineProfileGenerator.kt | T8RIN | 767,600,774 | false | null | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under ... | 5 | null | 176 | 8 | f8fe322c2bde32544e207b49a01cfeac92c187ce | 1,214 | ImageToolboxLite | Apache License 2.0 |
src/main/kotlin/com/mineinabyss/idofront/serialization/recipes/ShapelessRecipeIngredients.kt | MineInAbyss | 234,201,953 | false | null | package com.mineinabyss.idofront.serialization.recipes
import com.mineinabyss.idofront.serialization.SerializableItemStack
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.bukkit.Bukkit
import org.bukkit.Material
import org.bukkit.NamespacedKey
import org.bukkit.Tag
import o... | 8 | null | 6 | 8 | 9d990f6fa6fdd23230995c5861d05686a69e7862 | 1,860 | Idofront | MIT License |
@old/korge-ui/src/commonMain/kotlin/com/soywiz/korge/ui/korui/KoruiFrameView.kt | korlibs | 80,095,683 | false | null | package com.soywiz.korge.ui.korui
import com.soywiz.korge.ui.*
import com.soywiz.korge.view.*
import com.soywiz.korui.*
import com.soywiz.korui.ui.*
class KoruiFrameView(factory: UIFactory, skin: UISkin = factory.skin) : Widget(factory) {
lateinit var frame: Frame
lateinit var application: Application
}
suspend fu... | 102 | Kotlin | 64 | 1,192 | 7fa8c9981d09c2ac3727799f3925363f1af82f45 | 739 | korge | Apache License 2.0 |
app/src/main/java/org/simple/clinic/registration/confirmpin/RegistrationConfirmPinEffect.kt | simpledotorg | 132,515,649 | false | {"Kotlin": 6129044, "Shell": 1660, "HTML": 545} | package org.simple.clinic.registration.confirmpin
import org.simple.clinic.user.OngoingRegistrationEntry
sealed class RegistrationConfirmPinEffect
data class ValidatePinConfirmation(
val pinConfirmation: String,
val entry: OngoingRegistrationEntry
) : RegistrationConfirmPinEffect()
sealed class Registration... | 8 | Kotlin | 74 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 645 | simple-android | MIT License |
src/main/kotlin/io/snyk/plugin/snykcode/core/SnykCodeIgnoreInfoHolder.kt | snyk | 117,852,067 | false | {"Kotlin": 1106719, "Java": 216224, "JavaScript": 9475, "HCL": 562} | package io.snyk.plugin.snykcode.core
import ai.deepcode.javaclient.core.DeepCodeIgnoreInfoHolderBase
import com.intellij.openapi.project.Project
import io.snyk.plugin.SnykFile
import io.snyk.plugin.getSnykTaskQueueService
import io.snyk.plugin.ui.SnykBalloonNotificationHelper
import java.io.File
class SnykCodeIgnoreI... | 6 | Kotlin | 31 | 51 | bf772d7cd71bb8dc5a0471e1d3418c6d6857ec09 | 2,620 | snyk-intellij-plugin | Apache License 2.0 |
application/src/main/kotlin/com/lomeone/application/plugins/Routing.kt | lomeone | 874,520,301 | false | {"Kotlin": 8148} | package com.lomeone.application.plugins
import io.ktor.resources.*
import io.ktor.server.application.Application
import io.ktor.server.application.install
import io.ktor.server.resources.*
import io.ktor.server.resources.Resources
import io.ktor.server.response.*
import io.ktor.server.routing.*
import kotlinx.serializ... | 0 | Kotlin | 0 | 0 | 6909a2e3798ee282205bf4a1347ad66f3673adbf | 739 | fn-reservation-service | MIT License |
cardcomponent/src/main/java/com/akribase/cardcomponent/models/data/Gradient.kt | akri16 | 439,890,982 | false | {"Kotlin": 38747} | package com.akribase.cardcomponent.models.data
data class Gradient(
val colors: List<String>,
val angle: Int = 0
)
| 0 | Kotlin | 1 | 4 | 8300824afabfe0170f42772840d3e6e98900d0af | 124 | ContextualCards | MIT License |
src/main/kotlin/io/github/oxisto/reticulated/ast/expression/booleanops/OrTest.kt | AndHager | 244,382,209 | true | {"Kotlin": 276598, "ANTLR": 26984, "Python": 2008} | /*
* Copyright (c) 2020, <NAME> and <NAME>. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 0 | Kotlin | 0 | 0 | 95b24f52e1c2e37c004048e1e8274885b3fa08ed | 1,512 | reticulated-python | Apache License 2.0 |
parserss/src/main/java/com/github/muhrifqii/parserss/RSSObjectBase.kt | muhrifqii | 203,285,159 | false | null | package com.github.muhrifqii.parserss
import java.io.Serializable
interface RSSObject : Serializable
interface TitleEnabledObject : RSSObject {
var title: String?
}
interface DescriptionEnabledObject : RSSObject {
var description: String?
}
interface LinkEnabledObject : RSSObject {
var link: String?
}
... | 2 | Kotlin | 1 | 17 | c38d56d4567ded6d5bc6c6d532afc370f5e898c0 | 2,535 | ParseRSS | MIT License |
ldk-bukkit/ldk-bukkit-depend-placeholderapi/src/main/kotlin/com/lgou2w/ldk/bukkit/depend/PlaceholderExpansionProxy.kt | fossabot | 219,468,022 | true | {"Kotlin": 1346841} | /*
* Copyright (C) 2016-2019 The lgou2w <<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... | 0 | null | 0 | 0 | 906641be162efb3a3fa36a6256ae332aa4c4fdc5 | 1,622 | ldk | Apache License 2.0 |
app/src/main/java/database/DatabaseDao.kt | KlawitChanyut | 283,827,601 | false | null | package database
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface DatabaseDao {
@Insert(onConflict = OnConflictStrategy.IGNORE)
suspend fun addname(name: NameList)
@Query("SELECT * FR... | 0 | Kotlin | 0 | 0 | 793e1b2b6e15e7f89551a4cbaf9a29d72140f367 | 407 | MyFirstApp | Apache License 2.0 |
networking/src/main/java/com/handstandsam/shoppingapp/di/NetworkGraph.kt | handstandsam | 88,684,499 | false | null | package com.handstandsam.shoppingapp.di
import com.handstandsam.shoppingapp.models.NetworkConfig
import com.handstandsam.shoppingapp.network.ShoppingService
import com.handstandsam.shoppingapp.repository.CategoryRepo
import com.handstandsam.shoppingapp.repository.ItemRepo
import com.handstandsam.shoppingapp.repository... | 1 | Kotlin | 29 | 213 | b31a23b65da0769649b93f94bf5c3be343a40389 | 2,108 | ShoppingApp | Apache License 2.0 |
src/main/kotlin/no/nav/k9/los/tjenester/saksbehandler/saksliste/SaksbehandlerOppgavekoApis.kt | navikt | 238,874,021 | false | {"Kotlin": 1838238, "JavaScript": 741, "Shell": 657, "Dockerfile": 309, "PLpgSQL": 167} | package no.nav.k9.los.tjenester.saksbehandler.saksliste
import io.ktor.server.application.*
import io.ktor.server.locations.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import no.nav.k9.los.domene.modell.OppgaveKø
import no.nav.k9.los.domene.repository.OppgaveKøRepository
import no.nav.k9.los.int... | 7 | Kotlin | 0 | 0 | dafab3e6b11e37349f0fa19f06a7ed6af7eedff1 | 1,686 | k9-los-api | MIT License |
app/src/main/java/com/firdous/cleancodearch/util/DataMapper.kt | firdousakond | 509,160,391 | false | null | package com.firdous.cleancodearch.util
import com.firdous.cleancodearch.data.source.local.entity.MovieEntity
import com.firdous.cleancodearch.data.source.remote.response.MovieItem
import com.firdous.cleancodearch.domain.model.Movie
object DataMapper {
fun mapResponseToEntity(input: List<MovieItem>): List<MovieEn... | 0 | Kotlin | 0 | 1 | c256ca54b5064552444e062da2992f23b2dc105a | 971 | android-clean-code-arch | Apache License 2.0 |
app/src/main/java/com/example/filler/gui/results/viewmodel/ResultsViewModel.kt | oriolagobat | 494,453,008 | false | null | package com.example.filler.gui.results.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class ResultsViewModel : ViewModel() {
val firstCreation: MutableLiveData<Boolean> by lazy {
MutableLiveData<Boolean>(true)
}
} | 1 | Kotlin | 0 | 1 | 27f15dfa611d15b9a15888bf87a408b992c3ef04 | 272 | Filler-Game-2 | MIT License |
src/main/kotlin/org/teamvoided/templatemod/TemplateMod.kt | theendercore | 674,191,573 | false | null | package org.teamvoided.templatemod
import net.fabricmc.fabric.api.item.v1.FabricItemSettings
import net.minecraft.client.gui.screen.ingame.HandledScreens
import net.minecraft.feature_flags.FeatureFlags
import net.minecraft.registry.Registries
import net.minecraft.registry.Registry
import net.minecraft.screen.ScreenHan... | 0 | Kotlin | 0 | 0 | cca2c4335932dcb31312b019799b42042559e78e | 1,703 | Packed | MIT License |
android/app/src/main/kotlin/com/chicagoroboto/features/speakerdetail/SpeakerNavigator.kt | 360Conferences | 82,859,185 | false | null | package com.chicagoroboto.features.speakerdetail
import android.view.View
interface SpeakerNavigator {
fun navigateToSpeaker(id: String, image: View? = null)
} | 10 | Kotlin | 32 | 136 | c9bdbee1cdc686c6866fd9231353ee91bbe6623a | 165 | chicago-roboto | Apache License 2.0 |
common/src/main/java/com/yuriikonovalov/common/presentation/addedittransaction/tag/TagEvent.kt | yuriikonovalov | 563,974,428 | false | {"Kotlin": 872022} | package com.yuriikonovalov.common.presentation.addedittransaction.tag
import com.yuriikonovalov.common.application.entities.Tag
sealed class TagEvent {
object ClearInput : TagEvent()
data class ReturnSelectedTags(val tags: List<Tag>) : TagEvent()
} | 0 | Kotlin | 0 | 0 | 8063508f836512fc8f8a0ba18f794bb895ee2449 | 258 | budgethub | MIT License |
octicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/octicons/octicons/ThreeBars16.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.octicons.octicons
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.Stro... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,277 | compose-icon-collections | MIT License |
core/src/commonMain/kotlin/work/socialhub/kmisskey/entity/Field.kt | uakihir0 | 756,689,268 | false | {"Kotlin": 248708, "Shell": 2141, "Makefile": 316} | package work.socialhub.kmisskey.entity
import kotlinx.serialization.Serializable
import kotlin.js.JsExport
@JsExport
@Serializable
open class Field {
var name: String? = null
var value: String? = null
}
| 0 | Kotlin | 1 | 6 | db806204a0cba52eb99554bcee38658ba1d4f63e | 213 | kmisskey | MIT License |
sykepenger-model/src/main/kotlin/no/nav/helse/utbetalingstidslinje/Utbetalingstidslinjesubsumsjon.kt | navikt | 193,907,367 | false | {"Kotlin": 6676387, "PLpgSQL": 2738, "Dockerfile": 168} | package no.nav.helse.utbetalingstidslinje
import java.time.LocalDate
import no.nav.helse.etterlevelse.Subsumsjonslogg
import no.nav.helse.etterlevelse.Tidslinjedag
import no.nav.helse.etterlevelse.UtbetalingstidslinjeBuilder
import no.nav.helse.hendelser.Periode
import no.nav.helse.sykdomstidslinje.Sykdomstidslinje
im... | 2 | Kotlin | 7 | 3 | 7351c7849507f3baed5292e1b54c6464d5d35611 | 3,034 | helse-spleis | MIT License |
data/local/src/commonMain/kotlin/studio/forface/covid/data/local/utils/databaseUtils.kt | 4face-studi0 | 245,708,616 | false | null | package studio.forface.covid.data.local.utils
import com.squareup.sqldelight.Transacter
import studio.forface.covid.data.local.Database
/**
* Standalone class for execute a [Database.transaction]
* Its purpose is to be able to run a Transaction without depending by [Database]
*
* @author <NAME>
*/
internal class... | 2 | Kotlin | 0 | 6 | ebabaf30bcb5d9cd46bfb7132a6046cc56f86362 | 598 | Covid19 | Apache License 2.0 |
app/src/main/java/com/nuevo/gameness/ui/pages/personal/profile/adapter/TeamUsersAdapter.kt | arbabkh | 873,814,880 | false | {"Kotlin": 538078} | package com.nuevo.gameness.ui.pages.personal.profile.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.nuevo.gameness.data.model.settings.Datum
import com.nuevo.gameness.databinding.ItemGamersParentBinding
import com.nuevo.gameness.ui.base.BaseRecyclerAdapter
... | 0 | Kotlin | 0 | 0 | 80d7b04385a2cd516b8157dbea19dd821c30fcc9 | 1,441 | gameness-android | MIT License |
app/src/main/java/com/nuevo/gameness/ui/pages/personal/profile/adapter/TeamUsersAdapter.kt | arbabkh | 873,814,880 | false | {"Kotlin": 538078} | package com.nuevo.gameness.ui.pages.personal.profile.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.nuevo.gameness.data.model.settings.Datum
import com.nuevo.gameness.databinding.ItemGamersParentBinding
import com.nuevo.gameness.ui.base.BaseRecyclerAdapter
... | 0 | Kotlin | 0 | 0 | 80d7b04385a2cd516b8157dbea19dd821c30fcc9 | 1,441 | gameness-android | MIT License |
vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/account/ChangePasswordResponse.kt | alatushkin | 156,866,851 | false | null | package name.alatushkin.api.vk.generated.account
open class ChangePasswordResponse(
val token: String? = null,
val secret: String? = null
) | 2 | Kotlin | 3 | 10 | 123bd61b24be70f9bbf044328b98a3901523cb1b | 149 | kotlin-vk-api | MIT License |
feature/chart/src/main/java/com/niyaj/feature/chart/bar/StackedBarChart.kt | skniyajali | 644,752,474 | false | null | package com.niyaj.feature.chart.bar
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime... | 42 | null | 0 | 3 | f068f418b7691ab2959e12ff6ec900c4bd92bfb5 | 5,657 | PoposRoom | Apache License 2.0 |
app/src/main/java/com/coding/zxm/wanandroid/search/model/HotWordEntity.kt | ZhangXinmin528 | 283,199,248 | false | null | package com.coding.zxm.wanandroid.search.model
import com.chad.library.adapter.base.entity.MultiItemEntity
import com.coding.zxm.wanandroid.search.adapter.HotWordAdapter
/**
* Created by ZhangXinmin on 2020/8/19.
* Copyright (c) 2020 . All rights reserved.
* 用于热词的搜索
*/
data class HotWordEntity(
var id: Int,
... | 0 | Kotlin | 1 | 3 | 226f612382444b8853651590d6ef019363f536f1 | 427 | WanAndroid | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.