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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/yveschiong/macrofit/bus/events/Event.kt | yveschiong | 135,364,946 | false | {"Kotlin": 130902} | package com.yveschiong.macrofit.bus.events
open class Event
| 0 | Kotlin | 0 | 0 | 57a923fe85f7a69d3da87d4835cd453522f3d009 | 61 | macro-fit | MIT License |
data/src/main/java/com/droidcon/cleanrepository/data/model/remote/GitHubUserEvent.kt | alerecchi | 172,200,451 | false | null | package com.droidcon.cleanrepository.data.model.remote
data class GitHubUserEvent(
val id: Long,
val type: String?,
val actor: Actor?,
val repo: Repo?,
val created_at: String?
)
data class Actor(
val display_login: String?,
val avatar_url: String?
)
data class Repo(
val name: String?,... | 0 | Kotlin | 1 | 9 | 9e18e5262e88c190b1cd111939fa42b6c5a5e3d0 | 343 | droidcon-clean-repository | Apache License 2.0 |
general-gossip/src/main/java/com/song/general/gossip/message/GossipDigestAckMessage.kt | aCoder2013 | 102,945,038 | false | null | package com.song.general.gossip.message
import com.song.general.gossip.EndpointState
import com.song.general.gossip.GossipDigest
import java.io.Serializable
import java.net.SocketAddress
/**
* Created by song on 2017/9/9.
*/
class GossipDigestAckMessage(val gossipDigests: List<GossipDigest>, val endpointStateMap: M... | 0 | Kotlin | 0 | 1 | a00ba170324038384f0147121197cfc93ff3ad8e | 368 | general | Apache License 2.0 |
shared/src/commonMain/kotlin/com/example/moviemania/di/SharedModules.kt | swap-musale | 632,415,238 | false | null | package com.example.moviemania.di
import com.example.moviemania.data.remote.MovieService
import com.example.moviemania.data.remote.RemoteDataSource
import com.example.moviemania.data.repository.MovieRepositoryImpl
import com.example.moviemania.domain.repository.MovieRepository
import com.example.moviemania.domain.useC... | 0 | Kotlin | 0 | 3 | 5e09dcafa1833ec0202ddc58a10fa963d6f11d37 | 1,029 | Movie-Mania-KMM | Apache License 2.0 |
app/src/test/java/io/github/wellingtoncosta/feed/infrastructure/api/CommentApiTest.kt | wellingtoncosta | 196,209,803 | false | {"Kotlin": 72101} | package io.github.wellingtoncosta.feed.infrastructure.api
import io.github.wellingtoncosta.feed.asJson
import io.github.wellingtoncosta.feed.extensions.dispatches
import io.github.wellingtoncosta.feed.extensions.responses
import io.github.wellingtoncosta.feed.infrastructure.network.api.fuel.CommentFuelApi
import io.gi... | 0 | Kotlin | 0 | 6 | 3644d65e7b3e3338b72b25ce7a578a1eae8512e7 | 2,248 | feed | MIT License |
generator/src/main/kotlin/app/softwork/kotlin/actions/GenerateTypesafeAction.kt | hfhbd | 776,921,082 | false | {"Kotlin": 20427} | package app.softwork.kotlin.actions
import com.squareup.kotlinpoet.*
import kotlinx.serialization.json.*
import java.io.*
private fun String.toCamelCase(): String = replace("-(.)".toRegex()) {
it.groups[1]!!.value.replaceFirstChar { it.uppercaseChar() }
}
public fun File.generateCode(outputFile: File) {
buff... | 9 | Kotlin | 0 | 4 | 7e65005b2420e56b51c176a45248c7b632304d56 | 3,242 | kotlin-actions | Apache License 2.0 |
BinarySearchTrees/src/main/kotlin/binarysearchtrees/Trees.kt | spbu-coding-2022 | 617,809,640 | false | null | package binarysearchtrees
import binarysearchtrees.redblacktree.RedBlackTree
// initializing functions
fun <K : Comparable<K>, V> binarySearchTreeOf(): BinarySearchTree<K, V> {
return RedBlackTree<K, V>()
}
fun <K : Comparable<K>, V> binarySearchTreeOf(
vararg args: Pair<K, V>
): BinarySearchTree<K, V> {
... | 1 | Kotlin | 0 | 1 | 780e9d419b7305fa2c3f685bb8d9feb6f776b86b | 438 | trees-12 | MIT License |
app/src/main/java/com/nicolas/nicolsflix/data/db/entity/MovieEntity.kt | Aleixo-Dev | 335,638,746 | false | null | package com.nicolas.nicolsflix.data.db.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.nicolas.nicolsflix.data.model.Movie
@Entity(tableName = "movies")
data class MovieEntity(
@field:PrimaryKey(autoGenerate = true) val id: Int?,
@field:Col... | 7 | Kotlin | 1 | 2 | 3bbcb59c04c353bc312b9410c59d3a186cc85673 | 1,171 | NicolsFlix | MIT License |
store/hbase/src/commonMain/kotlin/maryk/datastore/hbase/processors/processDeleteUpdate.kt | marykdb | 290,454,412 | false | {"Kotlin": 3301282, "JavaScript": 1004} | package maryk.datastore.hbase.processors
import kotlinx.coroutines.flow.MutableSharedFlow
import maryk.core.clock.HLC
import maryk.core.exceptions.RequestException
import maryk.core.models.IsRootDataModel
import maryk.core.query.responses.DeleteResponse
import maryk.core.query.responses.UpdateResponse
import maryk.cor... | 1 | Kotlin | 1 | 8 | 5dfd79ad1939493e7a1153a3fb8e943c650febea | 2,434 | maryk | Apache License 2.0 |
platforms/papermc/core/src/main/kotlin/com/mineinabyss/geary/papermc/listeners/InheritPrefabsOnLoad.kt | MineInAbyss | 306,093,350 | false | null | package com.mineinabyss.geary.papermc.listeners
import com.mineinabyss.geary.autoscan.AutoScan
import com.mineinabyss.geary.ecs.accessors.TargetScope
import com.mineinabyss.geary.ecs.api.annotations.Handler
import com.mineinabyss.geary.ecs.api.systems.GearyListener
import com.mineinabyss.geary.prefabs.events.PrefabLoa... | 20 | Kotlin | 9 | 16 | 593b32d64f5921b92d45a1c78374492618d67fe4 | 601 | Geary | MIT License |
projects/refer-and-monitor-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/provider/entity/DeliveryUnit.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 3187768, "HTML": 53512, "D2": 27334, "Ruby": 23805, "Shell": 12351, "SCSS": 5850, "JavaScript": 3054, "HCL": 2712, "Dockerfile": 2103} | package uk.gov.justice.digital.hmpps.integrations.delius.provider.entity
import jakarta.persistence.Column
import jakarta.persistence.Convert
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.JoinColumn
import jakarta.persistence.ManyToOne
import jakarta.persistence.Table
impor... | 3 | Kotlin | 0 | 2 | cf8b0d3d921564ff3a0832fe0b007daeb7b29fd9 | 1,174 | hmpps-probation-integration-services | MIT License |
management/src/main/kotlin/at/tuwien/ase/cardlabs/management/util/Region.kt | flofriday | 750,336,268 | false | {"Kotlin": 524281, "TypeScript": 149533, "Python": 32297, "Scheme": 3611, "Dockerfile": 608, "CSS": 580, "JavaScript": 221, "PowerShell": 185} | package at.tuwien.ase.cardlabs.management.util
enum class Region {
GLOBAL,
CONTINENT,
COUNTRY,
}
| 0 | Kotlin | 0 | 0 | 6fc0a6dc80bd4b6adf6d7fee7921af8a361d03eb | 110 | CardLabs | Apache License 2.0 |
src/main/kotlin/nl/skbotnl/chatog/commands/ChatConfigReload.kt | SKBotNL | 622,933,082 | false | {"Kotlin": 99929, "JavaScript": 2244, "Python": 1785} | package nl.skbotnl.chatog.commands
import club.minnced.discord.webhook.WebhookClient
import net.dv8tion.jda.api.entities.Activity
import nl.skbotnl.chatog.ChatOG
import nl.skbotnl.chatog.Config
import nl.skbotnl.chatog.DiscordBridge
import nl.skbotnl.chatog.LanguageDatabase
import org.bukkit.Bukkit
import org.bukkit.c... | 0 | Kotlin | 1 | 2 | bf71a90f366cb601e83d676118da425450fdcbca | 1,342 | Chat-OG | The Unlicense |
restaurants-service/src/test/kotlin/net/plshark/restaurant/TakeoutContainerCreateTest.kt | twinklehawk | 239,237,198 | false | null | package net.plshark.restaurant
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class TakeoutContainerCreateTest {
@Test
fun `toTakeoutContainer should copy the object data into a takeout container with the provided ID`() {
val create = TakeoutContainerCreate("te... | 1 | Kotlin | 0 | 0 | baa70824c27117b5f2c1e89bbc6ffc213f79a8b9 | 437 | restaurants | Apache License 2.0 |
codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/protocols/Ec2Query.kt | Velfi | 409,718,503 | true | {"Rust": 1140720, "Kotlin": 853578, "Python": 4690, "Shell": 1483, "RenderScript": 351} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.smithy.rust.codegen.smithy.protocols
import software.amazon.smithy.model.Model
import software.amazon.smithy.model.pattern.UriPattern
import software.amazon.smithy.model.shapes.... | 0 | null | 0 | 0 | 5b2f7c670b4de5ab6b412aaa3d748f07ba4e57ba | 4,465 | smithy-rs | Apache License 2.0 |
app/src/main/java/com/brilliancesoft/mushaf/framework/utils/OnPageSelectedListener.kt | vipafattal | 189,261,183 | false | null | package com.brilliancesoft.mushaf.framework.utils
import androidx.viewpager.widget.ViewPager
/**
* Created by ${User} on ${Date}
*/
@FunctionalInterface
interface OnPageSelectedListener: ViewPager.OnPageChangeListener {
override fun onPageScrollStateChanged(state: Int) {}
override fun onPageScrolled(positio... | 8 | null | 1 | 3 | 782abb77ed3a284e8329b990c14d4e417a748ab2 | 382 | Mushaf | Apache License 2.0 |
compiler/testData/cfg/controlStructures/returnsInWhen.kt | JakeWharton | 99,388,807 | false | null | fun illegalWhenBlock(a: Any): Any {
when(a) {
is Int -> return a
}
} | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 84 | kotlin | Apache License 2.0 |
designernews/src/main/java/io/plaidapp/designernews/domain/CommentsWithRepliesAndUsersUseCase.kt | thuongleit | 145,416,694 | true | {"Gradle": 10, "Java Properties": 2, "Markdown": 5, "Shell": 5, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Proguard": 2, "Kotlin": 151, "HTML": 1, "XML": 247, "Java": 86, "JSON": 1, "SVG": 11, "YAML": 1} | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Java | 0 | 1 | 38e997b51aa08003db8f9fcc539ee3d97c83f31c | 3,233 | plaid | Apache License 2.0 |
patch-aar-support/src/main/java/com/feelschaotic/sdkhotfix/sdk/service/ResponListener.kt | typer9527 | 471,725,747 | false | null | package com.feelschaotic.sdkhotfix.sdk.service
/**
* service接口请求结果回调
* @author feelschaotic
* @create 2019/5/5.
*/
interface RespondListener<in T> {
fun onSuccess(response: T)
fun onError(e: Exception)
}
| 0 | null | 1 | 1 | e0b46cb4f369d0cf1dfc5dc76c42425e76209e47 | 218 | Robust-gradle | Apache License 2.0 |
compiler-plugins/parcelize/src/org/jetbrains/kotlin/parcelize/ide/quickfixes/ParcelRemoveCustomWriteToParcel.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2017 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... | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 1,254 | intellij-kotlin | Apache License 2.0 |
store/src/main/java/com/nytimes/android/external/store4/impl/SourceOfTruthWithBarrier.kt | eyalgu | 225,930,547 | false | null | package com.nytimes.android.external.store4.impl
import com.nytimes.android.external.store4.ResponseOrigin
import com.nytimes.android.external.store4.impl.operators.mapIndexed
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import ... | 1 | null | 1 | 1 | 5816adabe57d0376fa88e2cd6dc9549ead2c6b9f | 4,017 | Store | Apache License 2.0 |
src/main/kotlin/com/deflatedpickle/lookatmystuff/client/api/PlayerData.kt | DeflatedPickle | 574,434,287 | false | {"Java": 19178, "Kotlin": 10832} | /* Copyright (c) 2022 DeflatedPickle under the MIT license */
package com.deflatedpickle.lookatmystuff.client.api
data class PlayerData(
val sneaking: Boolean,
val arm: Int,
)
| 1 | null | 1 | 1 | e2145da26083eba4812903256991d947921950e1 | 186 | LookAtMyStuff | MIT License |
tests/runtimes/java/kotlin/src/main/kotlin/com/serverless/Handler.kt | dherault | 51,905,436 | false | {"JavaScript": 584235, "Python": 5347, "Shell": 4336, "Ruby": 3127, "Go": 2601, "TypeScript": 1256, "Scala": 1032, "Groovy": 964, "Kotlin": 868, "Makefile": 407, "Dockerfile": 392} | package com.serverless
import com.amazonaws.services.lambda.runtime.Context
import com.amazonaws.services.lambda.runtime.RequestHandler
import com.amazonaws.services.lambda.runtime.events.APIGatewayV2ProxyRequestEvent
import com.amazonaws.services.lambda.runtime.events.APIGatewayV2ProxyResponseEvent
import com.fasterx... | 115 | JavaScript | 794 | 5,189 | 9bd2fe67a1989d87e632ed8cb4f5e6fb3dd5e325 | 868 | serverless-offline | MIT License |
autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/di/AutofillModule.kt | marcosholgado | 551,513,476 | false | null | /*
* Copyright (c) 2022 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 1 | null | 1 | 1 | 2a9ea4f2dd45754e459b146c236312e626b9e225 | 1,962 | Android | Apache License 2.0 |
sdk/src/test/java/com/mapbox/maps/SnapshotterDelegateTest.kt | daniel-j-h | 391,086,634 | false | null | package com.mapbox.maps
import com.mapbox.common.ShadowLogger
import com.mapbox.geojson.Point
import io.mockk.*
import org.junit.Assert
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import java.lang.Il... | 1 | null | 1 | 1 | 34e5fc100cef18d3ef32beaf9cd75adb93b3a00c | 4,171 | mapbox-maps-android | Apache License 2.0 |
transpiler/java/com/google/j2cl/transpiler/backend/kotlin/KotlinGeneratorStage.kt | google | 94,876,336 | false | null | /*
* Copyright 2021 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 22 | Java | 113 | 871 | 610194b57243c767b219ea01c489b5ffca8b60b0 | 2,255 | j2cl | Apache License 2.0 |
idea/testData/codeInsight/generate/testFrameworkSupport/testNG/setUpExists.kt | JakeWharton | 99,388,807 | true | null | // ACTION_CLASS: org.jetbrains.kotlin.idea.actions.generate.KotlinGenerateTestSupportActionBase$SetUp
// NOT_APPLICABLE
// CONFIGURE_LIBRARY: TestNG@plugins/testng/lib/testng.jar
import org.testng.annotations.BeforeMethod
import org.testng.annotations.Test
@Test class A {<caret>
@BeforeMethod
fun setUp() {
... | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 370 | kotlin | Apache License 2.0 |
app/src/main/java/com/acclex/verificationdemo/MainActivity.kt | Acclex | 165,626,009 | false | null | package com.acclex.verificationdemo
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 1 | Java | 1 | 10 | 3ef1a690ef2a20d6a93e8b976a5b630df495222f | 1,483 | VerificationInput | MIT License |
app/src/main/java/com/sucho/kodeinexample/feature/main/randomjoke/RandomJokeFragment.kt | suchoX | 146,607,257 | false | null | package com.sucho.kodeinexample.feature.main.randomjoke
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleOwner
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.sucho.kodeinexample.R... | 1 | Kotlin | 11 | 27 | 29403cabe081ee522c1250be6a26662d7586f611 | 1,296 | Kodein-MVVM | Apache License 2.0 |
agrirouter-api-java-api/src/main/kotlin/com/dke/data/agrirouter/api/factories/impl/CapabilitiesMessageContentFactory.kt | larskn | 225,865,563 | true | {"YAML": 1, "AsciiDoc": 1, "Maven POM": 4, "Markdown": 3, "Text": 1, "Ignore List": 1, "SVG": 2, "Shell": 1, "XML": 1, "Java": 117, "Kotlin": 70} | package com.dke.data.agrirouter.api.factories.impl
import agrirouter.request.payload.endpoint.Capabilities
import com.dke.data.agrirouter.api.factories.impl.parameters.CapabilitiesMessageParameters
import com.google.protobuf.ByteString
class CapabilitiesMessageContentFactory {
fun message(parameters: Capabilitie... | 0 | Java | 0 | 0 | e414983a77b4bfee184204124586e7bc0bbb16d7 | 1,089 | agrirouter-api-java | Apache License 2.0 |
plugins/package-search/src/com/jetbrains/packagesearch/intellij/plugin/ui/toolwindow/panels/management/packages/ComputeModuleTreeModel.kt | ingokegel | 72,937,917 | false | null | /*******************************************************************************
* Copyright 2000-2022 JetBrains s.r.o. and contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,397 | intellij-community | Apache License 2.0 |
packages/app/core/data/src/main/java/com/posttrip/journeydex/core/data/model/mission/Mission.kt | Woo-Dong93 | 821,739,845 | false | {"Kotlin": 258025, "TypeScript": 73819} | package com.posttrip.journeydex.core.data.model.mission
import android.graphics.Color
import com.posttrip.journeydex.core.data.model.travel.Character
import kotlinx.serialization.Serializable
enum class MissionStatus(val title: String, val colorLong: Long) {
ACTIVE("참여중",0xFFAEF4A9),
PENDING("참여하기", 0xFFADDCF... | 3 | Kotlin | 0 | 0 | eb79029bfa1dab2300c2b75c45eef6ca9a859dd1 | 805 | PostTrip | MIT License |
kgl-vulkan/src/nativeMain/kotlin/com/kgl/vulkan/enums/StencilOp.kt | BrunoSilvaFreire | 223,607,080 | true | {"Kotlin": 1880529, "C": 10037} | /**
* Copyright [2019] [Dominic Fischer]
*
* 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 agree... | 0 | null | 0 | 0 | 74de23862c29404e7751490331cbafbef310bd63 | 1,225 | kgl | Apache License 2.0 |
src/main/kotlin/net/sportsday/routes/v1/LocationsRouter.kt | Sports-day | 589,245,462 | false | {"Kotlin": 214586, "Dockerfile": 330} | package net.sportsday.routes.v1
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.plugins.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import net.sportsday.models.OmittedLocation
import net.sportsday.models.Permission
import net.sports... | 5 | Kotlin | 0 | 1 | 32a29be6fd9122c4796cd2ae7bad07cbd2fc3fb3 | 4,048 | SportsDayAPI | Apache License 2.0 |
cli/src/commonMain/me/strangepan/tasks/cli/command/common/CommonParser.kt | StrangePan | 231,948,379 | false | null | package me.strangepan.tasks.cli.command.common
import omnia.cli.`in`.CommandLine
import me.strangepan.tasks.cli.parser.ParserUtil
class CommonParser {
fun <T> parse(commandLine: CommandLine, specificArguments: T): CommonArguments<T> {
return CommonArguments(
specificArguments,
!ParserUtil.getFla... | 0 | Kotlin | 0 | 3 | 58d2ee65228e71a1b1468978c99385b12fb66726 | 388 | tasks | The Unlicense |
library/src/main/java/io/easyprefs/contract/Has.kt | kishandonga | 277,233,141 | false | {"Kotlin": 110493, "Java": 10816} | package io.easyprefs.contract
interface Has {
fun key(key: String): Boolean
fun empty(): Boolean
} | 0 | Kotlin | 3 | 10 | fb3f81b0907af664e4c1807e0349ef52715276d8 | 107 | EasyPrefs | MIT License |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/media/MovieAiFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.media
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 | 3,536 | compose-icon-collections | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/IceSkate.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,541 | icons | MIT License |
app/src/main/java/com/depromeet/threedays/property/BuildPropertyModule.kt | depromeet12th | 548,194,728 | false | null | package com.depromeet.threedays.property
import com.depromeet.threedays.buildproperty.BuildPropertyRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
class Buil... | 0 | Kotlin | 1 | 15 | 1cc08fcf2b038924ab0fe5feaaff548974f40f4d | 542 | three-days-android | MIT License |
feature/history/src/main/java/ksnd/hiraganaconverter/feature/history/ConvertHistoryScreen.kt | kosenda | 565,470,862 | false | null | package ksnd.hiraganaconverter.feature.history
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.found... | 5 | null | 0 | 27 | b64170978b292fa0409afd420de42880b6dc8c9d | 8,600 | hiragana-converter | Apache License 2.0 |
app/src/androidTest/java/uk/ryanwong/catnews/app/ui/SkyCatNewsTestRule.kt | ryanw-mobile | 531,291,511 | false | {"Kotlin": 302262} | /*
* Copyright (c) 2022. Ryan Wong (hello@ryanwong.co.uk)
*/
package uk.ryanwong.catnews.app.ui
import androidx.compose.ui.test.junit4.AndroidComposeTestRule
import androidx.test.ext.junit.rules.ActivityScenarioRule
import uk.ryanwong.catnews.app.MainActivity
import uk.ryanwong.catnews.app.ui.theme.CatNewsTheme
ty... | 8 | Kotlin | 1 | 0 | 965df57bcf9054a269d8027d2e00c987eab85b99 | 640 | cat-news | Apache License 2.0 |
kotest-framework/kotest-framework-api/src/commonMain/kotlin/io/kotest/core/spec/style/scopes/FeatureSpecContainerContext.kt | rgmz | 398,368,607 | true | {"Kotlin": 3044586, "CSS": 352, "Java": 145} | package io.kotest.core.spec.style.scopes
import io.kotest.core.spec.KotestDsl
import io.kotest.core.spec.resolvedDefaultConfig
import io.kotest.core.test.NestedTest
import io.kotest.core.test.TestContext
import io.kotest.core.test.TestType
import io.kotest.core.test.createNestedTest
import io.kotest.core.test.createTe... | 0 | null | 0 | 0 | 7303265bdca3baccac68baba49fc9681ff1b18f0 | 3,639 | kotest | Apache License 2.0 |
app/main/arenaoppslag/modeller/Minimum.kt | navikt | 690,073,639 | false | {"Kotlin": 53972, "Shell": 697, "Dockerfile": 150} | package arenaoppslag.modeller
import arenaoppslag.perioder.Periode
data class Minimum(
val perioder: Periode
)
/*
data class Periode(
val fraOgMedDato: LocalDate,
val tilOgMedDato: LocalDate?
)
*/ | 0 | Kotlin | 0 | 0 | f11042108ea15d39f3a5d5b2ce8e8036a8776287 | 212 | aap-arenaoppslag | MIT License |
app/src/main/java/com/example/osen/model/Score.kt | maulanarasoky | 272,947,464 | false | {"Kotlin": 219965, "Java": 4140} | package com.example.osen.model
data class Score(
val id: Int?,
val studentId: Int?,
val uts: Int?,
val persentaseUts: Int?,
val uas: Int?,
val persentaseUas: Int?,
val assessment1: Int?,
val persentaseAssessment1: Int?,
val assessment2: Int?,
val persentaseAssessment2: Int?,
... | 0 | Kotlin | 0 | 0 | 56555265c46b0a443d81a7b489ed7e190e6c25c7 | 1,185 | OSEN | MIT License |
src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/GraalVM.kt | DomainDrivenArchitecture | 671,424,521 | false | {"Kotlin": 403360, "Shell": 38541, "Python": 3745, "Vim Script": 457, "Dockerfile": 374} | package org.domaindrivenarchitecture.provs.desktop.infrastructure
import org.domaindrivenarchitecture.provs.framework.core.Prov
import org.domaindrivenarchitecture.provs.framework.core.ProvResult
import org.domaindrivenarchitecture.provs.framework.ubuntu.web.base.downloadFromURL
const val GRAAL_VM_VERSION = "21.0.2"
... | 0 | Kotlin | 0 | 1 | 6f5560274df005d16426d40c0e2aaf0e2db532d6 | 1,888 | provs | Apache License 2.0 |
sykepenger-serde/src/main/kotlin/no/nav/helse/serde/migration/V304FjerneArbeidsledigSykmeldingsperioder.kt | navikt | 193,907,367 | false | {"Kotlin": 6542815, "PLpgSQL": 2738, "Dockerfile": 168} | package no.nav.helse.serde.migration
import com.fasterxml.jackson.databind.node.ObjectNode
internal class V304FjerneArbeidsledigSykmeldingsperioder: JsonMigration(version = 304) {
override val description = "lagrer egenmeldingsdager på vedtaksperiode"
override fun doMigration(jsonNode: ObjectNode, meldingerS... | 2 | Kotlin | 7 | 3 | fc9b0c7dc3dd3a755f3cc191f35f1c510e62a2cd | 638 | helse-spleis | MIT License |
realm/realm-library/src/testObjectServer/kotlin/io/realm/internal/log/obfuscator/TokenObfuscatorTest.kt | realm | 4,084,908 | false | {"Java": 6325742, "Kotlin": 1979843, "C++": 712592, "Shell": 39714, "JavaScript": 11116, "CMake": 10173, "Groovy": 5431, "Dockerfile": 5146, "Python": 4275, "HTML": 2519} | /*
* Copyright 2020 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 400 | Java | 1747 | 11,450 | e564a45fbeabb4710ac5fcd231c107642dd4aa83 | 2,019 | realm-java | Apache License 2.0 |
core/src/commonMain/kotlin/work/socialhub/kbsky/model/plc/DIDDetails.kt | uakihir0 | 735,265,237 | false | {"Kotlin": 221471, "Shell": 1425, "Makefile": 315} | package work.socialhub.kbsky.model.plc
import kotlinx.serialization.Serializable
import work.socialhub.kbsky.model.atproto.server.DidDocUnion
@Serializable
class DIDDetails : DidDocUnion() {
var id: String? = null
var alsoKnownAs: List<String>? = null
var verificationMethod: List<DIDDetailsVerificationMet... | 3 | Kotlin | 1 | 7 | ff9e1649652acb85c3aabda7d1709a47e02ceb02 | 384 | kbsky | MIT License |
telegram-bot/src/jsMain/kotlin/eu/vendeli/tgbot/utils/BotUtils.js.kt | vendelieu | 496,567,172 | false | {"Kotlin": 853822, "CSS": 356} | package eu.vendeli.tgbot.utils
import eu.vendeli.tgbot.TelegramBot
import eu.vendeli.tgbot.interfaces.InputListener
import eu.vendeli.tgbot.types.User
import eu.vendeli.tgbot.types.internal.ChainLink
import kotlinx.coroutines.Dispatchers
internal actual val PROCESSING_DISPATCHER = Dispatchers.Unconfined
@Suppress("N... | 4 | Kotlin | 9 | 141 | 35c7b46ebd2dc6a9587065a80b4a5a5fc251f354 | 786 | telegram-bot | Apache License 2.0 |
src/main/kotlin/org/opensearch/replication/rest/ReplicateIndexHandler.kt | opensearch-project | 323,830,219 | false | {"Kotlin": 1005221, "Python": 17931, "Shell": 8517} | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
package org.opensearch.re... | 77 | Kotlin | 58 | 48 | 0cc41c620b96a4798adbe2237e48b67269e3e509 | 1,832 | cross-cluster-replication | Apache License 2.0 |
utils/src/main/java/mobdao/com/openquiz/utils/enums/InitialScreenType.kt | diegohkd | 209,090,263 | false | null | package mobdao.com.openquiz.utils.enums
enum class InitialScreenType {
LOGIN,
HOME
}
| 0 | Kotlin | 0 | 0 | 3ba3f957840711869af81c9a63c5495111cbe817 | 94 | OpenQuizAndroid | Apache License 2.0 |
android/app/src/main/kotlin/com/example/chesslib_dart/MainActivity.kt | maksimbulva | 328,442,850 | false | {"Dart": 38982, "HTML": 1515, "Swift": 404, "Kotlin": 130, "Objective-C": 38} | package com.example.chesslib_dart
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | cab7f21d2ff72176e4924072fcd873c8d5851851 | 130 | chesslib_dart | MIT License |
app/src/main/java/com/siziksu/services/ui/activity/BindingServiceActivity.kt | Siziksu | 43,915,739 | false | null | package com.siziksu.services.ui.activity
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.os.Bundle
import android.os.IBinder
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snack... | 0 | Kotlin | 0 | 0 | 82c572f931d8d0712a2aca0dd3a75a41be4ec2d0 | 4,183 | android-services | Apache License 2.0 |
app/src/main/java/com/furkanaskin/app/podpocket/service/ApiCallback.kt | furkanaskin | 183,442,441 | false | null | package com.furkanaskin.app.podpocket.service
import com.furkanaskin.app.podpocket.core.BaseCallBack
/**
* Created by Furkan on 18.04.2019
*/
class ApiCallback<T>(baseCallBack: BaseCallBack<T>?) : BaseRetrofitCallback<T>(baseCallBack) | 3 | Kotlin | 18 | 109 | 9af0d1052f83cfb79824e2eaa96ade938cdefdfe | 239 | podpocket | MIT License |
modulecheck-dagger/src/main/kotlin/modulecheck/dagger/TaskScope.kt | RBusarow | 316,627,145 | false | null | /*
* Copyright (C) 2021-2023 Rick Busarow
* 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 ag... | 76 | null | 7 | 95 | 24e7c7667490630d30cf8b59cd504cd863cd1fba | 1,930 | ModuleCheck | Apache License 2.0 |
app/src/main/java/com/example/social_network/CustomArFragment.kt | vh64g | 540,971,923 | false | null | package com.example.social_network
import android.os.Bundle
import android.view.*
import android.widget.FrameLayout
import com.google.ar.core.CameraConfig
import com.google.ar.core.CameraConfigFilter
import com.google.ar.core.Config
import com.google.ar.core.Session
import com.google.ar.sceneform.ux.ArFragment
import ... | 0 | Kotlin | 0 | 0 | d916b000d7911ddd36576304ac7f7ec1538bdf8e | 1,414 | SoChat-PGR | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/example/apidemo/home/ui/MainActivity.kt | vigneshdharma | 470,810,837 | false | {"Kotlin": 11402} | package com.example.apidemo.home.ui
import android.app.Dialog
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.*
import android.widget.Toast
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager... | 0 | Kotlin | 0 | 0 | e3b26fdeddf364ebae71ae5ea9df4bf2a09655ba | 3,631 | ApiDemo | Apache License 2.0 |
src/main/kotlin/paillier/Paillier.kt | perun-network | 824,164,250 | false | {"Kotlin": 155715} | package perun_network.ecdsa_threshold.paillier
import perun_network.ecdsa_threshold.math.*
import perun_network.ecdsa_threshold.pedersen.PedersenParameters
import java.math.BigInteger
/**
* Represents the public key in the Paillier cryptosystem.
*
* @property n The modulus, calculated as n = p * q, where p and q a... | 0 | Kotlin | 0 | 0 | de39fe1d9c86f68ae4b6fa4b40f6e3e481f61796 | 9,899 | atala-prism-threshold | Apache License 2.0 |
QuickBind/src/main/java/com/wpf/app/quickbind/annotations/LoadSp.kt | walgr | 487,438,913 | false | {"Kotlin": 831704, "Shell": 865} | package com.wpf.app.quickbind.annotations
/**
* Created by 王朋飞 on 2022/6/15.
*/
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
annotation class LoadSp(
val fileName: String = "QuickViewSpBindFile",
val key: String,
val defaultValue: String = ""
)
| 0 | Kotlin | 3 | 29 | 6b4da7f07e347ca6d4fbaa7a555ebcedde1494d6 | 287 | Quick | MIT License |
src/main/kotlin/actions/todos/ClearCompleted.kt | kazokmr | 438,429,973 | false | {"CSS": 30027, "Kotlin": 20664, "HTML": 489, "JavaScript": 166} | package actions.todos
import redux.RAction
class ClearCompleted : RAction | 0 | CSS | 0 | 0 | f14c069c17cefa5059e7c3e32a221a4a5c94a430 | 75 | kotlin-react-redux-tutorial | MIT License |
app/src/main/java/com/beyondguo/androidgoo/goga/corountines/base/UserAdapter.kt | beyondgjc | 672,481,991 | false | null | package com.beyondguo.androidgoo.goga.corountines.base
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.appcompat.widget.AppCompatTextView
import androidx.recyclerview.widget.RecyclerView
import com.beyondguo.androidgoo.R
import c... | 0 | Kotlin | 0 | 0 | 4d8cbc992256752dc6087072e879cb388ddf95b6 | 1,557 | AndroidGo | Apache License 2.0 |
kotlin/src/main/java/app/rive/runtime/kotlin/core/Loop.kt | rive-app | 299,578,948 | false | {"Kotlin": 481737, "C++": 226882, "Shell": 13569, "CMake": 5713, "Makefile": 2292, "Java": 1207} | package app.rive.runtime.kotlin.core
enum class Loop {
ONESHOT, LOOP, PINGPONG, AUTO;
companion object {
fun fromIndex(index: Int): Loop {
val maxIndex = entries.size
if (index < 0 || index > maxIndex) {
throw IndexOutOfBoundsException("Invalid Loop index value ... | 44 | Kotlin | 31 | 355 | 234d29324f22a0d60a377f9dedaaf371bda70427 | 432 | rive-android | MIT License |
WoWSFT-Shared/src/main/kotlin/WoWSFT/model/gameparams/ship/component/planes/HangarSetting.kt | EdibleBug | 205,816,473 | false | {"Kotlin": 191889, "HTML": 109419, "JavaScript": 60672, "CSS": 60604} | package WoWSFT.model.gameparams.ship.component.planes
class HangarSetting
{
var maxValue = 0
var restoreAmount = 0
var startValue = 0
var timeToRestore = 0.0
} | 0 | Kotlin | 1 | 5 | b601669cf870e368b4d98033f9cf9c1997e93d1e | 176 | WoWSFT-Kotlin | MIT License |
src/main/kotlin/leetcode/Problem2210.kt | fredyw | 28,460,187 | false | null | package leetcode
/**
* https://leetcode.com/problems/count-hills-and-valleys-in-an-array/
*/
class Problem2210 {
fun countHillValley(nums: IntArray): Int {
val list = mutableListOf<Int>()
for (i in nums.indices) {
list += if (i == 0) {
nums[i]
} else {
... | 1 | null | 1 | 4 | a59d77c4fd00674426a5f4f7b9b009d9b8321d6d | 822 | leetcode | MIT License |
bitapp/src/main/java/com/atech/bit/ui/fragments/notification/NotificationFragment.kt | BIT-Lalpur-App | 489,575,997 | false | {"Kotlin": 580740} | package com.atech.bit.ui.fragments.notification
import android.content.SharedPreferences
import android.os.Bundle
import android.view.View
import android.viewbinding.library.fragment.viewBinding
import androidx.navigation.fragment.findNavController
import com.atech.bit.R
import com.atech.bit.databinding.FragmentNotifi... | 7 | Kotlin | 5 | 13 | e37d4ae69f818b0067fc82a57239b0adfa944880 | 3,126 | BIT-App | MIT License |
Olebo/src/jvmMain/kotlin/model/tools/Clipboard.kt | TristanBoulesteix | 158,809,102 | false | null | package jdr.exia.model.tools
import java.awt.Toolkit
import java.awt.datatransfer.StringSelection
fun saveToClipboard(content: String) =
Toolkit.getDefaultToolkit().systemClipboard.setContents(StringSelection(content), null) | 0 | Kotlin | 0 | 1 | a80419a07c37b546a9496e653de3f158632ab47b | 230 | Olebo | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/lineduotone/maplocation/MapArrowRight.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.lineduotone.maplocation
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.StrokeCap.Co... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 2,455 | SolarIconSetAndroid | MIT License |
src/main/kotlin/io/github/andrewbgm/reactswingruntime/impl/message/messages/CreateViewMessage.kt | AndrewBGM | 352,441,655 | false | null | package io.github.andrewbgm.reactswingruntime.impl.message.messages
import com.google.gson.annotations.*
import io.github.andrewbgm.reactswingruntime.api.*
data class CreateViewMessage(
@Expose val id: String,
@Expose val type: IRemoteComponentType,
@Expose val props: Map<String, Any?>,
) : IMessage
| 0 | Kotlin | 0 | 3 | 9fd9037178cb3bc5a0e3f899d4cea051a3336d3f | 309 | react-swing-runtime | MIT License |
mbcarkit/src/test/java/com/daimler/mbcarkit/network/model/ApiAllowedBoolsTest.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbcarkit.network.model
import com.daimler.mbcarkit.business.model.command.capabilities.AllowedBools
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.EnumSource
internal class ApiAllo... | 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 761 | MBSDK-Mobile-Android | MIT License |
platform/vcs-log/impl/src/com/intellij/vcs/log/graph/DefaultColorGenerator.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.vcs.log.graph
import com.intellij.ui.JBColor
import com.intellij.vcs.log.paint.ColorGenerator
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
import java.awt.Color
impor... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,226 | intellij-community | Apache License 2.0 |
applications/workers/release/rest-worker/src/e2eTest/kotlin/net/corda/applications/workers/rest/http/TestToolkitImpl.kt | corda | 346,070,752 | false | {"Kotlin": 18686067, "Java": 321931, "Smarty": 79539, "Shell": 56594, "Groovy": 28415, "TypeScript": 5826, "PowerShell": 4985, "Solidity": 2024} | package net.corda.applications.workers.rest.http
import net.corda.rest.RestResource
import net.corda.rest.client.RestClient
import net.corda.rest.client.config.RestClientConfig
import java.util.concurrent.atomic.AtomicInteger
class TestToolkitImpl(private val testCaseClass: Class<Any>, private val baseAddress: String... | 130 | Kotlin | 15 | 42 | 6ef36ce2d679a07abf7a5d95a832e98bd4d4d763 | 1,777 | corda-runtime-os | Apache License 2.0 |
advanced-sample/src/main/kotlin/me/aartikov/replica/advanced_sample/core/DI.kt | aartikov | 438,253,231 | false | null | package me.aartikov.replica.advanced_sample.core
import com.arkivanov.decompose.ComponentContext
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import me.aartikov.replica.advanced_sample.core.debug_tools.DebugTools
import me.aartikov.replica.advan... | 0 | null | 1 | 33 | dc55d0cb727b6854224ceb8b1a1d0d87c7faaddf | 2,345 | Replica | MIT License |
src/main/kotlin/de/flapdoodle/fx/lazy/AbstractLazy.kt | flapdoodle-oss | 231,620,257 | false | null | package de.flapdoodle.fx.lazy
abstract class AbstractLazy<T: Any> : LazyValue<T>{
protected var changeListener: List<ChangedListener<T>> = emptyList()
override fun addListener(listener: ChangedListener<T>) {
changeListener = changeListener + listener
}
override fun removeListener(listener: ChangedListene... | 1 | null | 1 | 1 | 2c39e73edb0d1eefd277c1e31d2ed7042cf62029 | 380 | photosync | Apache License 2.0 |
kalaha-api/src/main/kotlin/com/game/bol/kalaha/exceptions/KalahaGameExceptions.kt | yash-goli | 434,577,742 | false | {"Kotlin": 28661, "TypeScript": 9595, "HTML": 1721, "CSS": 1415, "Dockerfile": 482, "Shell": 27} | package com.game.bol.kalaha.exceptions
data class KalahaGameExceptionResponseModel(val timeStamp:String, val exceptionType:String, val message:String)
data class KalahaApiException (override val message:String) : RuntimeException(message) | 0 | Kotlin | 0 | 0 | 2b4a283d1b0d89b5c146c248429d7d12c94d0b98 | 240 | kalaha-game | MIT License |
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirEnumEntrySymbol.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 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.analysis.api.fir.symbols
import com.intellij.psi.PsiElement
import org.jetbrains... | 155 | Kotlin | 5608 | 45,423 | 2db8f31966862388df4eba2702b2f92487e1d401 | 2,694 | kotlin | Apache License 2.0 |
HelloConsole/src/commonMain/kotlin/com/thomaskuenneth/helloconsole/HelloConsole.kt | tkuenneth | 299,943,174 | false | {"Makefile": 19941, "Swift": 4953, "Kotlin": 2878, "QMake": 1163, "C++": 445, "HTML": 100} | package com.thomaskuenneth.helloconsole
fun main(args: Array<String>) {
val name = if (args.size == 1)
args[0]
else
getName()
print("Hello, $name")
} | 0 | Makefile | 0 | 0 | 351e1c478a17b90ec7cb4c58e8194cb765e73daf | 178 | KotlinNativeExamples | Apache License 2.0 |
app/src/main/java/com/chooloo/www/koler/ui/callactions/CallActionsPresenter.kt | dzungpv | 351,679,995 | true | {"Kotlin": 140962, "Java": 4545} | package com.chooloo.www.koler.ui.callactions
import android.view.KeyEvent
import com.chooloo.www.koler.ui.base.BasePresenter
import com.chooloo.www.koler.util.call.CallManager
class CallActionsPresenter<V : CallActionsContract.View> :
BasePresenter<V>(),
CallActionsContract.Presenter<V> {
private var _is... | 0 | null | 0 | 0 | b41e19e399ae66e2f552725f3276284720543af5 | 1,187 | koler | MIT License |
processor/src/main/java/com/kevinmost/auto/value/defensive_copy/processor/DefensiveCopyExtension.kt | kevinmost | 72,481,714 | false | {"Gradle": 4, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Java Properties": 1, "Java": 12, "Kotlin": 7, "XML": 6} | @file:JvmName("DefensiveCopyExtensionUtil")
package com.kevinmost.auto.value.defensive_copy.processor
import com.google.auto.value.extension.AutoValueExtension
import com.google.auto.value.extension.AutoValueExtension.Context
import com.kevinmost.auto.value.defensive_copy.adapter.DefensiveCopier
import com.kevinmost.... | 1 | Kotlin | 2 | 3 | a75c8faabe45df051683caf654cea0f3b38d5187 | 6,348 | auto-value-defensive-copy | Apache License 2.0 |
core/src/main/kotlin/io/wax911/sample/core/presenter/CorePresenter.kt | fossabot | 223,555,788 | true | {"Kotlin": 288406, "Java": 19109} | package io.wax911.sample.core.presenter
import android.content.Context
import co.anitrend.arch.core.presenter.SupportPresenter
import io.wax911.sample.data.util.Settings
class CorePresenter(
context: Context,
settings: Settings
): SupportPresenter<Settings>(context, settings)
| 0 | Kotlin | 0 | 0 | 50be1a136fc46fb0eaccc041ef40eca2f4c67771 | 287 | support-arch | Apache License 2.0 |
src/com/blackoutburst/wally/utils/CommandUtils.kt | Blackoutburst | 296,468,102 | false | null | package com.blackoutburst.wally.utils
import com.blackoutburst.wally.core.UserOption
import com.blackoutburst.wally.core.Wally
import com.blackoutburst.wally.core.WallyUser
import com.blackoutburst.wally.core.commands.CommandManager
import com.blackoutburst.wally.core.commands.DisplayPreference
import com.blackoutburs... | 0 | Kotlin | 4 | 4 | 9c075ab0c5dc8754b01d202055ca54a64473303c | 5,852 | Wally | Do What The F*ck You Want To Public License |
src/main/kotlin/io/github/coteji/utils/Printer.kt | coteji | 418,582,790 | false | null | /*
* Copyright (c) 2020 - 2021 Coteji 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 require... | 0 | Kotlin | 0 | 0 | 6b217d97da14beb95491a50a1f1d885de27df30d | 1,029 | coteji-cli | Apache License 2.0 |
src/state/api/Charge.kt | yorae39 | 464,176,357 | false | {"Kotlin": 60335} | package state.api
interface Charge {
fun calculateTheCostOfTheTaxiRide(time: Double, distance: Double): Double
} | 0 | Kotlin | 0 | 0 | 2d5a321f6e60ae91028adda860ab2d75c0b37ed1 | 117 | design-patterns-kotlin | MIT License |
app/src/main/java/cn/cqautotest/sunnybeach/ui/activity/CollectionDetailListActivity.kt | anjiemo | 378,095,612 | false | {"Kotlin": 1615160, "Java": 17208, "HTML": 2257, "JavaScript": 1720} | package cn.cqautotest.sunnybeach.ui.activity
import android.content.Context
import androidx.activity.viewModels
import by.kirich1409.viewbindingdelegate.viewBinding
import cn.cqautotest.sunnybeach.R
import cn.cqautotest.sunnybeach.app.PagingActivity
import cn.cqautotest.sunnybeach.databinding.CollectionDetailListActiv... | 1 | Kotlin | 26 | 148 | 5d9b1a38bd594bced70cd4f5b7963815a9dfe005 | 3,117 | SunnyBeach | Apache License 2.0 |
src/main/java/com/cuupa/dms/ui/dialog/ConfirmDoneDialog.kt | Cuupa | 237,699,088 | false | null | package com.cuupa.dms.ui.dialog
import com.cuupa.dms.UIConstants
import com.vaadin.flow.component.Component
import com.vaadin.flow.component.button.Button
import com.vaadin.flow.component.dialog.Dialog
import com.vaadin.flow.component.html.Label
import com.vaadin.flow.component.orderedlayout.HorizontalLayout
import co... | 27 | Kotlin | 0 | 0 | e09d126c6b114cca47e950c4e27843218dacdd55 | 1,301 | dms | MIT License |
domain/src/main/java/com/knowing/domain/entity/auth/FetchGoogleSignInResponseEntity.kt | Allie-Knowing | 509,683,939 | false | {"Kotlin": 35592} | package com.knowing.domain.entity.auth
data class FetchGoogleSignInResponseEntity(
val data: GoogleSignInEntity
){
data class GoogleSignInEntity(
val access_token: String,
val refresh_token: String,
val is_first_login: Boolean
)
}
| 1 | Kotlin | 0 | 0 | fce7dc9c0dce4dad7046d4be9c1e81d64e7d828b | 268 | Draven | MIT License |
wow-elasticsearch/src/main/kotlin/me/ahoo/wow/elasticsearch/SnapshotIndexNameConverter.kt | Ahoo-Wang | 628,167,080 | false | null | /*
* Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].
* 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.... | 1 | Kotlin | 0 | 2 | bd40a49bba298a5ec3e579ae7158b4ff0f38c4f2 | 1,050 | Wow | Apache License 2.0 |
COVIDNow/app/src/main/java/site/yoonsang/covidnow/model/CovidInfo.kt | yoonsangkwak | 373,764,795 | false | null | package site.yoonsang.covidnow.model
import com.google.gson.annotations.SerializedName
data class CovidInfo(
@SerializedName("caseCount")
val caseCount: String,
@SerializedName("casePercentage")
val casePercentage: String,
@SerializedName("checkingCounter")
val checkingCounter: String,
@S... | 0 | Kotlin | 0 | 1 | 4e67b2fcf48d6dd82ac7d126b0c1ae0c776ed7b6 | 1,992 | COVID_Now | MIT License |
COVIDNow/app/src/main/java/site/yoonsang/covidnow/model/CovidInfo.kt | yoonsangkwak | 373,764,795 | false | null | package site.yoonsang.covidnow.model
import com.google.gson.annotations.SerializedName
data class CovidInfo(
@SerializedName("caseCount")
val caseCount: String,
@SerializedName("casePercentage")
val casePercentage: String,
@SerializedName("checkingCounter")
val checkingCounter: String,
@S... | 0 | Kotlin | 0 | 1 | 4e67b2fcf48d6dd82ac7d126b0c1ae0c776ed7b6 | 1,992 | COVID_Now | MIT License |
app/src/main/java/com/campuscoders/posterminalapp/presentation/cashier_and_daily_report/views/CalendarFragment.kt | CampusCoders | 690,583,133 | false | {"Kotlin": 344950, "Java": 47354} | package com.campuscoders.posterminalapp.presentation.cashier_and_daily_report.views
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.campuscoders.posterminalapp.databinding.FragmentCalendarBinding
class ... | 0 | Kotlin | 0 | 3 | 0eb328344938d51be27583c6d5e5e90724924292 | 916 | PosTerminalApp | MIT License |
src/main/kotlin/io/github/realyusufismail/jconfig/JConfigObject.kt | RealYusufIsmail | 535,208,646 | false | {"Kotlin": 19796} | /*
* Copyright 2022 <NAME> (RealYusufIsmail)
*
*
* 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... | 4 | Kotlin | 1 | 1 | df97e1f0fa11fa884a3e2ea4248185b48466d276 | 2,798 | JConfig | Apache License 2.0 |
domain/src/test/kotlin/com/seanshubin/kotlin/tryme/domain/crypto/Sha256HashTest.kt | SeanShubin | 129,466,612 | false | null | package com.seanshubin.kotlin.tryme.domain.crypto
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
class Sha256HashTest {
@Test
fun sameThingsHashSame() {
// given
val oneWayHash: OneWayHash =
Sha256Hash()
// when
val hash1... | 2 | null | 1 | 1 | 1803f204372d994130167749c22f825c51c6a434 | 774 | kotlin-tryme | The Unlicense |
sdk/src/main/java/com/qonversion/android/sdk/internal/provider/UserStateProvider.kt | qonversion | 224,974,105 | false | {"Kotlin": 604976, "Java": 9442, "Ruby": 2698} | package com.qonversion.android.sdk.internal.provider
internal interface UserStateProvider {
val isUserStable: Boolean
}
| 2 | Kotlin | 21 | 122 | 619465b65dbf2612486ec3adad9b0a8750d76c7b | 125 | android-sdk | MIT License |
app/src/main/java/org/hmispb/patientregistration/room/PatientDao.kt | ken1000minus7 | 531,992,128 | false | null | package org.hmispb.patientregistration.room
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import org.hmispb.patientregistration.model.Patient
@Dao
interface PatientDao {
@Insert
suspend fun insertPatient(patient: ... | 0 | Kotlin | 2 | 1 | 51887f2785d2f5106cb69378b3dbd9344126ecfb | 924 | Patient-Registration | MIT License |
compiler/testData/diagnostics/tests/smartCasts/varChangedInLocalInitializer.fir.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | fun foo() {
class My {
val x: Int
init {
var y: Int?
y = 42
x = y.hashCode()
}
}
} | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 150 | kotlin | Apache License 2.0 |
src/test/kotlin/io/github/verissimor/lib/jpamagicfilter/operator/LikeFilterOperatorTest.kt | verissimor | 444,221,850 | false | null | package io.github.verissimor.lib.jpamagicfilter.operator
import io.github.verissimor.lib.jpamagicfilter.BaseTest
import org.hamcrest.Matchers.hasSize
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.springframework.test.web.servlet.get
class LikeFilterOperatorTest : BaseTest() {
@T... | 0 | Kotlin | 0 | 4 | cf1ec55bc2a691c6d7d10380f0eb26910f738989 | 1,751 | jpa-magic-filter | Apache License 2.0 |
src/main/kotlin/kuda/driverapi/prop/MemoryType.kt | kudakit | 712,138,104 | false | {"Kotlin": 145484} | package kuda.driverapi.prop
/**
* @property HOST Host memory
* @property DEVICE Device memory
* @property ARRAY Array memory
* @property UNIFIED Unified device or host memory
*/
enum class MemoryType(val byte : Byte) {
HOST(0x01),
DEVICE(0x02),
ARRAY(0x03),
UNIFIED(0x04)
} | 0 | Kotlin | 0 | 1 | 738980648c41984d09353a7dfab2d813ec13573c | 295 | kuda-12.2 | MIT License |
Toolkits/aqrcode/src/main/java/com/atoolkit/aqrcode/page/AScanView.kt | Suaix | 614,829,857 | false | null | package com.atoolkit.aqrcode.page
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.LinearGradient
import android.graphics.Matrix
import android.graphics.Paint
import android.graphics.Paint.Style
import android.graphics.Re... | 0 | Kotlin | 0 | 2 | f20df50b68ed17f17c72db73e3da5ee98635d4df | 15,266 | AToolkit | MIT License |
feature/feed/domain/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/feed/domain/implementation/worker/FeedDownloadWorker.kt | savvasdalkitsis | 485,908,521 | false | null | package com.savvasdalkitsis.uhuruphotos.feature.feed.domain.implementation.worker
import android.content.Context
import androidx.hilt.work.HiltWorker
import androidx.work.WorkerParameters
import com.savvasdalkitsis.uhuruphotos.feature.feed.domain.implementation.broadcast.CancelFeedDownloadWorkBroadcastReceiver
import ... | 49 | Kotlin | 13 | 228 | f43ba3fa89429aeadd8e2a8de7f14b628e62f228 | 2,034 | uhuruphotos-android | Apache License 2.0 |
app/src/main/java/com/fantasyfang/developmenttool/repository/id/IdInfoLocalDataStore.kt | fantasy1022 | 257,029,907 | false | null | package com.fantasyfang.developmenttool.repository.id
import android.Manifest
import android.content.Context
import androidx.annotation.RequiresPermission
import androidx.lifecycle.LiveData
import androidx.lifecycle.liveData
import com.fantasyfang.developmenttool.data.IdInfo
import com.fantasyfang.developmenttool.data... | 0 | Kotlin | 0 | 0 | 1bca4516624b4c8c04986245806046a969e69486 | 1,179 | DevelopmentTool | Apache License 2.0 |
app/src/main/java/com/example/soya/Activities/AjakanActivity.kt | havidalbar | 211,352,301 | false | null | package com.example.soya.Activities
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.soya.R
import kotlinx.android.synthetic.main.activity_ajakan.*
class AjakanActivity: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle... | 0 | Kotlin | 2 | 0 | ed2717255dbb2550170e11a017fca65beeb1cb9a | 589 | Soya | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.