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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
server/server/src/main/kotlin/org/jetbrains/bsp/bazel/server/sync/languages/android/AndroidLanguagePlugin.kt | JetBrains | 826,262,028 | false | null | package org.jetbrains.bsp.bazel.server.sync.languages.android
import ch.epfl.scala.bsp4j.BuildTarget
import org.jetbrains.bsp.bazel.info.BspTargetInfo
import org.jetbrains.bsp.bazel.server.dependencygraph.DependencyGraph
import org.jetbrains.bsp.bazel.server.paths.BazelPathsResolver
import org.jetbrains.bsp.bazel.serv... | 6 | null | 6 | 45 | 1d79484cfdf8fc31d3a4b214655e857214071723 | 4,366 | hirschgarten | Apache License 2.0 |
Mobilex/src/commonMain/kotlin/au/com/crazybean/mobilex/repository/auth/network/AuthNetworkDataSource.kt | ravishanker | 203,143,699 | false | null | package au.com.crazybean.mobilex.repository.auth.network
import au.com.crazybean.mobilex.data.model.Auth
import au.com.crazybean.mobilex.data.responses.AuthResponse
import au.com.crazybean.mobilex.repository.auth.AuthDataSource
import au.com.crazybean.mobilex.sdk.network.HttpConfig
import au.com.crazybean.mobilex.sdk.... | 3 | Kotlin | 1 | 0 | 551b457c5ddb6095ef70f6bcb91be6dd80b1a1db | 855 | kurir-x | Apache License 2.0 |
app/src/main/java/com/movies/douqi/base/BaseBindingActivity.kt | kuzzh | 163,270,378 | true | {"Kotlin": 172198, "Java": 3423} | package com.movies.douqi.base
import androidx.lifecycle.ViewModel
import com.movies.douqi.inject.ViewModelFactory
import dagger.android.support.DaggerAppCompatActivity
import javax.inject.Inject
import kotlin.reflect.KClass
/**
* @author donnieSky
* @created_at 2018/8/27.
* @description
* @version
*/
abstract cl... | 0 | Kotlin | 0 | 0 | 0c749449664c0fc729a2ed67a9ce4f4d70ca4514 | 459 | Digging | MIT License |
bpdm-gate/src/main/kotlin/org/eclipse/tractusx/bpdm/gate/service/SiteService.kt | eclipse-tractusx | 526,621,398 | false | null | /*******************************************************************************
* Copyright (c) 2021,2023 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are ma... | 36 | Kotlin | 6 | 2 | c279eab5b76bd4db7778ae00af1787f222844129 | 6,905 | bpdm | Apache License 2.0 |
feature-explorer-impl/src/main/kotlin/com/blacksquircle/ui/feature/explorer/data/repository/ExplorerRepositoryImpl.kt | massivemadness | 100,590,072 | false | null | /*
* Copyright 2023 Squircle CE contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 49 | null | 75 | 708 | 2622fcc49a1d71ea1dec87c460d4586d671646c0 | 5,767 | Squircle-CE | Apache License 2.0 |
graphql-core/src/main/kotlin/io/github/wickedev/graphql/types/ID.kt | wickedev | 439,584,762 | false | {"Kotlin": 269467, "JavaScript": 6748, "Java": 2439, "CSS": 1699} | @file:Suppress("MemberVisibilityCanBePrivate", "unused")
package io.github.wickedev.graphql.types
import io.github.wickedev.graphql.extentions.encodeBase64
import kotlin.reflect.KClass
data class ID(val type: String, val value: String) {
companion object {
val Empty = ID("", "")
}
val encoded: ... | 0 | Kotlin | 0 | 19 | d6913beaecf9e7ef065acdb1805794a10b07d55e | 690 | graphql-jetpack | The Unlicense |
src/test/kotlin/io/justdevit/libs/statemachine/dsl/builder/StateMachineConfigurationBuilderTest.kt | temofey1989 | 433,707,820 | false | null | package io.justdevit.libs.statemachine.dsl.builder
import io.justdevit.libs.statemachine.action.TransitionAction
import io.justdevit.libs.statemachine.guard.TransitionGuard
import io.mockk.isMockKMock
import io.mockk.mockk
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.j... | 1 | Kotlin | 0 | 0 | 325276532f3b0fe9bf9abd3ebbc3636d5d80ecb1 | 2,353 | state-machine | Apache License 2.0 |
Chapter01/src/main/kotlin/13_Data_Classes.kt | PacktPublishing | 373,735,637 | false | null | data class User(val username: String, private val password: String) {
fun hidePassword() = "*".repeat(password.length)
}
fun main() {
val user = User("Alexey", "abcd1234")
println(user.hidePassword())
} | 0 | Kotlin | 9 | 7 | 887086024fbc675d35deb2d077ef0f4ed3d158e6 | 215 | Kotlin-Design-Patterns-and-Best-Practices | MIT License |
src/main/kotlin/io/titandata/titan/providers/local/RemoteList.kt | pioro | 249,677,535 | true | {"Kotlin": 220162, "Shell": 3605, "Dockerfile": 762, "Batchfile": 464, "PowerShell": 170} | /*
* Copyright (c) 2019 by Delphix. All rights reserved.
*/
package io.titandata.titan.providers.local
import io.titandata.client.apis.RemotesApi
import io.titandata.serialization.RemoteUtil
class RemoteList (
private val remotesApi: RemotesApi = RemotesApi()
) {
private val n = System.lineSeparator()
... | 4 | null | 0 | 0 | da9cc4f29beb6cb5553ff2836ede8473082a2025 | 620 | titan | Apache License 2.0 |
j2k/new/src/org/jetbrains/kotlin/nj2k/expressions.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2018 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.nj2k
import com.intellij.psi.PsiElement
import com.intellij.psi.tree.TokenSet
im... | 214 | null | 4829 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 12,077 | intellij-kotlin | Apache License 2.0 |
app/src/main/kotlin/dev/aaa1115910/bv/component/controllers2/MenuController.kt | aaa1115910 | 571,702,700 | false | null | package dev.aaa1115910.bv.component.controllers2
import android.content.Context
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.expandHorizontally
import androidx.compose.animation.shrinkHorizontally
import androidx.compose.fou... | 23 | null | 97 | 999 | e93863f4f266485e16e1768fcea6e6b9ad0b276b | 19,090 | bv | MIT License |
app/src/main/java/wannabit/io/cosmostaion/data/model/req/JsonRpcRequest.kt | cosmostation | 418,314,439 | false | null | package wannabit.io.cosmostaion.data.model.req
data class JsonRpcRequest(
val method: String, val jsonrpc: String, val id: Long, val params: List<Any?>
) {
constructor(method: String, params: List<Any?>) : this(
method, "2.0", 1, params
)
}
data class EstimateGasParams(
val from: String?,
... | 0 | null | 43 | 83 | b04f3615c7c7b4407d719e160155a8c03fbae3a9 | 581 | cosmostation-android | MIT License |
library/src/main/java/com/github/ushiosan23/android_utilities/android/activity/ActivityCompat.kt | Ushiosan23 | 381,842,600 | false | null | package com.github.ushiosan23.android_utilities.android.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
/**
* Custom activity.
* This activity load layout automatically, only you need to define [contentView] property to load target layout.
*
* @see AppCompatActivity
* @see IActi... | 0 | Kotlin | 1 | 0 | fde8e00cb3123018288c6cbd5a0f5730ef5ba18c | 1,388 | android_utilities | MIT License |
compiler/fir/analysis-tests/testData/resolve/checkers/notUselessCast_1.kt | JetBrains | 3,432,266 | false | null | // ISSUE: KT-42136
// WITH_STDLIB
open class Base
class Derived : Base()
fun test_0(d: Derived) {
fun take(d: Derived) {}
take(d <!USELESS_CAST!>as Derived<!>) // should be USELESS_CAST
}
fun test_1() {
val list = listOf<Any>().map { Derived() as Base }.toMutableList() // should be no USELESS_CAST
li... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 490 | kotlin | Apache License 2.0 |
app/src/main/java/com/jamal_aliev/paginator/MainViewModel.kt | jamal-wia | 745,495,585 | false | null | package com.jamal_aliev.paginator
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewModelScope
import com.jamal_aliev.paginator.MainViewState.DataState
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.async
import ... | 0 | null | 0 | 3 | b8857d079cd5d76b978cc6672d10b12859b2354a | 2,927 | Paginator | MIT License |
src/main/kotlin/com/bruce/calculator/RpnInvoker.kt | gitbruce | 186,278,558 | false | null | package com.bruce.calculator
import java.text.DecimalFormat
import java.util.*
class RpnInvoker {
val valueStack = Stack<Double>()
val undoStack = Stack<Command>()
private val calculator = Calculator()
private var positionIndex = 0
fun parse(input: String) {
positionIndex = 1
val... | 0 | Kotlin | 0 | 0 | 9b1c69471602969f6a7dbab2a814e1282bd4ebbf | 3,045 | rpn | Apache License 2.0 |
Android/app/src/main/java/com/example/pro_diction/data/dto/SignDto.kt | GDSC-SWU | 738,141,316 | false | {"Kotlin": 373175, "Java": 92597, "Python": 59149, "Jupyter Notebook": 47255, "Dockerfile": 342} | package com.example.pro_diction.data.dto
import androidx.annotation.DrawableRes
data class SignDto(
@DrawableRes
val image: Int,
val name: String
)
| 0 | Kotlin | 0 | 1 | 51ced1607b5336ce33becce66f408d53c7e3358e | 162 | 2024-ProDiction-SolutionChallenge | MIT License |
compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/11.kt | JetBrains | 3,432,266 | false | null | // !DIAGNOSTICS: -UNUSED_EXPRESSION
// SKIP_TXT
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE)
*
* SECTIONS: dfa
* NUMBER: 11
* DESCRIPTION: Raw data flow analysis test
* HELPERS: classes, objects, typealiases, functions, enumClasses, interfaces, sealedClasses
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-28369... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,720 | kotlin | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/iam/ManagedPolicyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.iam
import io.cloudshiftdev.awscdkdsl.common.CdkDslMarker... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 7,938 | awscdk-dsl-kotlin | Apache License 2.0 |
fuzzer/fuzzing_output/crashing_tests/verified/useSiteVariance.kt-446984019.kt | ItsLastDay | 102,885,402 | false | null | import kotlin.reflect.KVariance
import kotlin.test.assertEquals
class Fourple<A, B, C, D>
fun Int.foo(): Fourple<String, in String, out String, * > = null!!
fun listOfStrings(): List<String> = null!!
fun box(): String {
assertEquals(listOf(KVariance.INVARIANT, KVariance.IN, KVariance.OUT, null), ::foo.returnType.argume... | 2 | null | 1 | 6 | 56f50fc307709443bb0c53972d0c239e709ce8f2 | 514 | KotlinFuzzer | MIT License |
rssparser/src/main/java/com/prof/rssparser/caching/CachedFeedDao.kt | htchien | 298,763,244 | true | {"Kotlin": 211322, "Java": 14901} | package com.prof.rssparser.caching
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
internal abstract class CachedFeedDao {
@Query(CacheConstants.QUERY_GET_CACHED_PROJECT)
abstract suspend fun getCachedProject(urlHash: Int): CachedFee... | 0 | null | 0 | 1 | 571ed1b71b4e70e39394f3115eb98c360254dd98 | 622 | RSS-Parser | Apache License 2.0 |
src/main/kotlin/com/atlassian/performance/tools/jiraactions/page/IssueCreateDialog.kt | swidnow2 | 206,813,097 | true | {"Kotlin": 142073, "Java": 1959, "Shell": 145} | package com.atlassian.performance.tools.jiraactions.page
import com.atlassian.performance.tools.jiraactions.api.page.JiraErrors
import com.atlassian.performance.tools.jiraactions.api.page.form.IssueForm
import com.atlassian.performance.tools.jiraactions.api.page.isElementPresent
import com.atlassian.performance.tools.... | 0 | null | 0 | 0 | 82319990663d5d6bbd7f3eb1ff775ad369beca33 | 3,351 | jira-actions | Apache License 2.0 |
src/main/kotlin/com/github/oowekyala/ijcc/ide/structureview/JccFileStructureTreeElement.kt | oowekyala | 160,946,520 | false | {"Kotlin": 636577, "HTML": 12321, "Lex": 10654, "Shell": 1940, "Just": 101} | package com.github.oowekyala.ijcc.ide.structureview
import com.github.oowekyala.ijcc.lang.model.GrammarNature.JJTREE
import com.github.oowekyala.ijcc.lang.model.SyntheticToken
import com.github.oowekyala.ijcc.lang.psi.*
import com.github.oowekyala.ijcc.util.associateByToMostlySingular
import com.intellij.ide.structure... | 11 | Kotlin | 6 | 44 | c514083a161db56537d2473e42f2a1d4bf57eee1 | 3,621 | intellij-javacc | MIT License |
src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/BowAura.kt | Rmejia39 | 733,988,804 | false | {"Kotlin": 2304965, "Java": 1271227, "GLSL": 13515, "JavaScript": 8926} | /*
* FDPClient Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge by LiquidBounce.
* https://github.com/SkidderMC/FDPClient/
*/
package net.ccbluex.liquidbounce.features.module.modules.combat
import net.ccbluex.liquidbounce.event.EventTarget
import net.ccblue... | 3 | Kotlin | 0 | 0 | b48c4e83c888568111a6665037db7fd3f7813ed3 | 4,161 | FDPClient | MIT License |
src/test/kotlin/LeidenAlgorithmTests.kt | Mishavint | 364,892,431 | false | null | import org.junit.jupiter.api.*
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.assertDoesNotThrow
import visualizer.view.*
import com.github.doyaaaaaken.kotlincsv.dsl.csvReader
import visualizer.model.Algorithms
class LeidenAlgorithmTests {
private val graphView = GraphView()
@BeforeEac... | 0 | Kotlin | 0 | 0 | 5d88c0ca3e4f9836021cfe67cab79895fcc49c8c | 1,127 | Graph-Visualizer | Apache License 2.0 |
services/csm.cloud.project.activity/src/test/kotlin/com/bosch/pt/csm/cloud/projectmanagement/project/project/facade/listener/strategies/state/CleanupStateFromProjectDeletedEventTest.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2021
*
* ************************************************************************
*/
package com.bosch.pt.csm.cloud.projectmanagement.project.project.facade.listener.strategies.stat... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 2,919 | bosch-pt-refinemysite-backend | Apache License 2.0 |
domain/monster-compendium/core/src/commonMain/kotlin/br/alexandregpereira/hunter/monster/compendium/domain/GetMonsterCompendiumBaseUseCase.kt | alexandregpereira | 347,857,709 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | 6 | null | 5 | 85 | 46a636ec6fe5a60101e761847c85776180c6f5b2 | 1,807 | Monster-Compendium | Apache License 2.0 |
app/src/main/java/com/example/car_builder/Car.kt | EikeMB | 700,591,077 | false | {"Kotlin": 92113} | package com.example.car_builder
class Car(var userEmail: String, var name:String, var parts: List<CarPart>, var vin:Int) {
}
| 3 | Kotlin | 0 | 0 | a7833fed4b4408ab743bae9658eb067178e18dd9 | 130 | AppDev2_Project | MIT License |
src/test/kotlin/de/bringmeister/spring/aws/kinesis/metrics/MetricsOutboundStreamTest.kt | bringmeister | 125,221,797 | false | null | package de.bringmeister.spring.aws.kinesis.metrics
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.doThrow
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.nhaarman.mockito_kotlin.whenever
import de.bringmeister.spring.aws.kinesis.KinesisOutbou... | 5 | null | 6 | 24 | 1133096e4355403f50bb38ba46e7a98d7ead450f | 2,624 | aws-kinesis-spring-boot-starter | MIT License |
app/src/test/kotlin/com/example/videogames/HttpControllersTests.kt | raoulsson | 600,711,983 | false | null | package com.example.videogames
//import org.springframework.restdocs.RestDocumentationExtension
//import org.springframework.restdocs.RestDocumentationContextProvider
//import org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document
//import org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.d... | 0 | Kotlin | 0 | 0 | 0999cfbdf83a6a13681757ea1f502cd4799fd019 | 3,130 | gradle-kotlin-spring | MIT License |
src/main/kotlin/icu/windea/pls/script/codeStyle/ParadoxScriptCodeStyleSettingsProvider.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.script.codeStyle
import com.intellij.application.options.*
import com.intellij.psi.codeStyle.*
import icu.windea.pls.*
class ParadoxScriptCodeStyleSettingsProvider : CodeStyleSettingsProvider() {
override fun createCustomSettings(settings: CodeStyleSettings) = ParadoxScriptCodeStyleSettings(se... | 1 | Kotlin | 1 | 7 | 037b9b4ba467ed49ea221b99efb0a26cd630bb67 | 778 | Paradox-Language-Support | MIT License |
app/src/main/java/com/elhady/movies/domain/mappers/TrailerMapper.kt | islamelhady | 301,591,032 | false | {"Kotlin": 393174} | package com.elhady.movies.domain.mappers
import com.elhady.movies.data.remote.response.video.VideoDto
import com.elhady.movies.domain.models.Trailer
import com.elhady.movies.utilities.getKey
import javax.inject.Inject
class TrailerMapper @Inject constructor() : Mapper<VideoDto, Trailer> {
override fun map(input: ... | 1 | Kotlin | 0 | 0 | 37d0a811fa3c107a6018a80dcb443b4d340a96a3 | 416 | movie-night-v2 | Apache License 2.0 |
app/src/main/java/com/javavirys/mvvmsample/presentation/adapter/ProgramAdapter.kt | javavirys | 369,163,438 | false | null | /*
* Copyright (C) 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 0 | 4efbbe88fb89dbe737f5d5aabb9d3e068e04a29d | 1,783 | MvvmSample | Apache License 2.0 |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasExpectedMarker.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.highlighter.markers
import com.intellij.openapi.util.NlsContexts
import com.intellij.psi.PsiElement
import org.jetbrains.kotl... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 2,093 | intellij-community | Apache License 2.0 |
src/main/kotlin/me/hanslovsky/alkorithms/compare/BooleanComparator.kt | hanslovsky | 246,364,714 | false | null | package me.hanslovsky.alkorithms.compare
interface BooleanComparator {
fun compare(b1: Boolean, b2: Boolean): Int
val reversed get() = this.let { object : BooleanComparator { override fun compare(b1: Boolean, b2: Boolean) = it.compare(b2, b1) } }
companion object {
// TODO replace with SAM conversi... | 0 | Kotlin | 0 | 0 | 70e947c8fdaf58c8f09921fc6b192edde4483297 | 559 | alkorithms | MIT License |
composeApp/src/commonMain/kotlin/me/gustavolopezxyz/common/money/CurrencyPair.kt | gusaln | 736,062,721 | false | {"Kotlin": 304914} | /*
* Copyright (c) 2023. <NAME>. All rights reserved.
*/
package me.gustavolopezxyz.common.money
import androidx.compose.runtime.Immutable
@Immutable
data class CurrencyPair(val baseCurrency: Currency, val counterCurrency: Currency, val value: Double) {
override fun toString(): String {
return "$baseCu... | 0 | Kotlin | 0 | 1 | d1e56bb6dce4a0d9c430a8d4f6bcf67b1249ea52 | 667 | wimm | MIT License |
app/src/main/java/io/ak1/paper/data/repositories/image/ImageRepository.kt | akshay2211 | 165,540,070 | false | null | /*
* Copyright (C) 2022 akshay2211 (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 5 | Kotlin | 25 | 150 | 44fd2eebfc52adee516d64171aef03f64fdbe1c1 | 963 | Paper | Apache License 2.0 |
clashJ/src/main/kotlin/io/github/maicolantali/Client.kt | MaicolAntali | 665,565,216 | false | {"Kotlin": 210542} | package io.github.maicolantali
import io.github.maicolantali.exception.BadGatewayException
import io.github.maicolantali.exception.InvalidCredentialException
import io.github.maicolantali.exception.MaintenanceException
import io.github.maicolantali.exception.NotFoundException
import io.github.maicolantali.http.query.P... | 1 | Kotlin | 0 | 0 | be0bae7345fc88830ff5a2c0ea34dc41171502c6 | 28,969 | clashJ | MIT License |
app/src/test/java/com/babylon/wallet/android/presentation/dialogs/address/AddressDetailsDialogViewModelTest.kt | radixdlt | 513,047,280 | false | null | @file:OptIn(ExperimentalCoroutinesApi::class)
package com.babylon.wallet.android.presentation.dialogs.address
import androidx.lifecycle.SavedStateHandle
import app.cash.turbine.test
import com.babylon.wallet.android.domain.usecases.GetResourcesUseCase
import com.babylon.wallet.android.domain.usecases.VerifyAddressOnL... | 7 | null | 6 | 9 | 36c670dd32d181e462e9962d476cb8a370fbe4fe | 20,736 | babylon-wallet-android | Apache License 2.0 |
src/main/kotlin/com/poseplz/server/infrastructure/naver/NaverGeoCodeService.kt | pobu-team | 678,194,623 | false | {"Kotlin": 164925, "HTML": 51573, "Dockerfile": 340, "CSS": 122} | package com.poseplz.server.infrastructure.naver
import com.poseplz.server.domain.geocode.GeoCodeService
import com.poseplz.server.domain.photobooth.Coordinates
import org.springframework.stereotype.Component
@Component
class NaverGeoCodeService(
private val naverApiClient: NaverApiClient,
) : GeoCodeService {
... | 0 | Kotlin | 0 | 0 | aee909c988149f0d67847c42c956a1b6cb8e4378 | 712 | poseplz-server | MIT License |
src/test/kotlin/no/nav/k9brukerdialogapi/ytelse/pleiepengerlivetssluttfase/domene/ArbeidIPeriodeTest.kt | navikt | 460,765,798 | false | {"Kotlin": 835877, "Dockerfile": 103} | package no.nav.k9brukerdialogapi.ytelse.pleiepengerlivetssluttfase.domene
import no.nav.k9.søknad.felles.type.Periode
import no.nav.k9brukerdialogapi.TestUtils.Companion.verifiserFeil
import no.nav.k9brukerdialogapi.TestUtils.Companion.verifiserIngenFeil
import no.nav.k9brukerdialogapi.ytelse.pleiepengerlivetssluttfas... | 1 | Kotlin | 0 | 0 | 5d7c40c3b0303d90f4ae374acb6e6e9a6baedf42 | 6,138 | k9-brukerdialog-api | MIT License |
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/CalendarLocale.kt | VexorMC | 838,305,267 | false | {"Kotlin": 104238872, "Java": 66757679, "C++": 9111230, "AIDL": 628952, "Python": 306842, "Shell": 199496, "Objective-C": 47117, "TypeScript": 38627, "HTML": 28384, "Swift": 21386, "Svelte": 20307, "ANTLR": 19860, "C": 15043, "CMake": 14435, "JavaScript": 6457, "GLSL": 3842, "CSS": 1760, "Batchfile": 295} | /*
* 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... | 0 | Kotlin | 0 | 2 | 9730aa39ce1cafe408f28962a59b95b82c68587f | 1,750 | compose | Apache License 2.0 |
android/app/src/main/kotlin/com/v2ray/ang/ui/MainRecyclerAdapter.kt | PsrkGrmez | 759,525,035 | false | {"Kotlin": 336480, "Dart": 77560, "Java": 9475, "Swift": 689, "Objective-C": 38} | package com.xray.lite.ui.adapters
import android.graphics.Color
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.google.gson.Gson
import com.tenc... | 1 | Kotlin | 7 | 85 | 1a6d3d8e6c6edcfd3be8f23bee339e1c83ab9346 | 12,732 | ChiselBox | MIT License |
watch/src/jvmTest/kotlin/matt/file/watch/test/test.kt | mgroth0 | 513,680,528 | false | null | package matt.file.watch.test
import matt.file.MFile
import matt.file.watch.createFileSizeProp
import matt.test.Tests
import kotlin.test.Test
import kotlin.time.Duration.Companion.seconds
class WatchTests : Tests() {
@Test
fun createAWatchProp() {
MFile.createTempFile("abc", "efg").createFileSizeProp(... | 0 | Kotlin | 0 | 0 | 682be5934dc72e5cc524ef5d6489763cc567ff54 | 338 | file | MIT License |
notebooks/visualization/src/org/jetbrains/plugins/notebooks/visualization/outputs/NotebookOutputInlayControllerUtil.kt | ingokegel | 72,937,917 | true | null | package org.jetbrains.plugins.notebooks.visualization.outputs
import com.intellij.openapi.editor.ex.EditorGutterComponentEx
import org.jetbrains.annotations.TestOnly
import org.jetbrains.plugins.notebooks.visualization.SwingClientProperty
import org.jetbrains.plugins.notebooks.visualization.outputs.impl.CollapsingComp... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,099 | intellij-community | Apache License 2.0 |
src/main/kotlin/no/nav/klage/clients/dokarkiv/DokArkivClient.kt | navikt | 598,507,066 | false | {"Kotlin": 252260, "Dockerfile": 134} | package no.nav.klage.clients.dokarkiv
import no.nav.klage.util.TokenUtil
import no.nav.klage.util.getLogger
import org.springframework.beans.factory.annotation.Value
import org.springframework.http.HttpHeaders
import org.springframework.http.MediaType
import org.springframework.stereotype.Component
import org.springfr... | 2 | Kotlin | 0 | 0 | fe9d7ebd523bf9130410a222bce48f3e1c87fc92 | 10,518 | kabin-api | MIT License |
kotlin/src/main/java/com/mcxiaoke/next/kotlin/Crypto.kt | zhanghuanWang | 54,374,600 | true | {"INI": 11, "Gradle": 13, "Text": 7, "Shell": 2, "Markdown": 12, "Batchfile": 1, "Ignore List": 6, "XML": 91, "Java": 225, "Java Properties": 1, "Kotlin": 11} | /**
*/
package com.mcxiaoke.next.kotlin
import android.util.Base64
import java.io.UnsupportedEncodingException
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
import java.security.SecureRandom
import java.util.*
import javax.crypto.Cipher
import javax.crypto.SecretKeyFactory
import j... | 0 | Java | 0 | 0 | 69fe6cb7de5b58e310aa18419f412a26efcc5169 | 14,829 | Android-Next | Apache License 2.0 |
feature/home/src/main/java/com/kanyideveloper/presentation/home/mymeal/MyMealScreen.kt | JoelKanyi | 554,742,212 | false | null | /*
* Copyright 2022 Joel Kanyi.
*
* 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... | 12 | Kotlin | 9 | 69 | 040b552070450d2e2b34cd1817eece7145fb2086 | 10,972 | MealTime | Apache License 2.0 |
newm-server/src/main/kotlin/io/newm/server/features/user/database/UserTable.kt | projectNEWM | 447,979,150 | false | null | package io.newm.server.features.user.database
import io.newm.server.auth.oauth.model.OAuthType
import io.newm.server.features.user.model.UserVerificationStatus
import org.jetbrains.exposed.dao.id.UUIDTable
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.javatime.CurrentDateTime
import org.jetb... | 1 | null | 4 | 9 | 3809a375cc159b540eb35e78fe3d0bdea0c24f6e | 3,328 | newm-server | Apache License 2.0 |
app/src/main/java/com/wuruoye/know/ui/home/UserFragment.kt | ruoyewu | 183,387,390 | false | null | package com.wuruoye.know.ui.home
import android.app.Activity.RESULT_OK
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
impor... | 1 | null | 1 | 1 | 2de5a7fdecc8c135463c99c47cde417de0cbe2ec | 9,191 | know2 | Apache License 2.0 |
app/src/main/java/com/elementary/tasks/core/os/PendingIntentWrapper.kt | naz013 | 165,067,747 | false | null | package com.elementary.tasks.core.os
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
object PendingIntentWrapper {
fun getActivity(
context: Context,
requestCode: Int,
intent: Intent,
flags: Int,
ignoreIn13: Boolean = false
... | 0 | null | 3 | 6 | a6eecfda739be05a4b84e7d47284cd9e2bc782d6 | 1,727 | reminder-kotlin | Apache License 2.0 |
src/main/kotlin/rsa/UpdateInformation.kt | BAC2-Graf-Rohatynski | 208,084,653 | false | null | package error
import org.json.JSONObject
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import enumstorage.update.UpdateInformation.Application
import enumstorage.update.UpdateInformation.Changes
import enumstorage.update.UpdateInformation.Version
import enumstorage.update.UpdateInformation.Update
import java.... | 0 | null | 1 | 1 | 375706d0676eb289988e904dbba95a84792aed10 | 2,579 | RsaEncryptionModule | MIT License |
app/src/main/java/com/example/background/workers/CleanupWorker.kt | cerberusv2px | 155,056,338 | false | {"Java": 25187, "Kotlin": 2815} | package com.example.background.workers
import android.content.Context
import android.text.TextUtils
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.example.background.Constants
import java.io.File
class CleanupWorker constructor(
context: Context,
workerPar... | 1 | null | 1 | 1 | 189ddfb0647183aeca427543e62ee4a7f89fa29a | 1,294 | android-workmanager-sample | Apache License 2.0 |
app/main/oppgavestyring/Dto.kt | navikt | 466,112,140 | false | null | package oppgavestyring
import no.nav.aap.dto.kafka.*
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.*
data class DtoInnstillingParagraf_11_6(
val harBehovForBehandling: Boolean,
val harBehovForTiltak: Boolean,
val harMulighetForÅKommeIArbeid: Boolean,
val individuellBegrunn... | 11 | Kotlin | 0 | 1 | 3dc039db4f60ca3ab560843fb9396ce81472d134 | 8,677 | aap-oppgavestyring | MIT License |
plugins/kotlin/base/facet/src/org/jetbrains/kotlin/idea/facet/KotlinFacetTypeImpl.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.facet
import com.intellij.facet.Facet
import com.intellij.facet.ui.FacetEditor
import com.intellij.facet.ui.MultipleFacetSett... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,166 | intellij-community | Apache License 2.0 |
mobilesdk/src/main/java/com/swedbankpay/mobilesdk/PreOrderPurchaseIndicator.kt | SwedbankPay | 209,749,704 | false | null | package com.swedbankpay.mobilesdk
import com.google.gson.annotations.SerializedName
/**
* Purchase indicator values for [RiskIndicator].
*/
@Suppress("unused")
enum class PreOrderPurchaseIndicator {
/**
* Merchandise available now
*/
@SerializedName("01") MERCHANDISE_AVAILABLE,
/**
* Mer... | 1 | Kotlin | 2 | 5 | 98df28d4dda025aebef4f7ab415811ca687f3d73 | 416 | swedbank-pay-sdk-android | Apache License 2.0 |
app/src/main/java/com/muratozturk/mova/domain/use_case/details/movie/images/GetMovieImagesUseCase.kt | muratozturk5 | 587,507,400 | false | null | package com.muratozturk.mova.domain.use_case.details.movie.images
import com.muratozturk.mova.domain.repository.MovaRepository
import javax.inject.Inject
class GetMovieImagesUseCase @Inject constructor(private val repository: MovaRepository) {
operator fun invoke(movieId: Int) = repository.getMovieImages(movieId)... | 0 | Kotlin | 13 | 96 | 280ced4d70d4e2f9e7c4549b5c919cc7cd821146 | 322 | Mova | MIT License |
app/src/main/java/com/moegirlviewer/api/editingRecord/bean/ComparePageResult.kt | koharubiyori | 449,942,456 | false | null | package com.moegirlviewer.api.editingRecord.bean
import com.google.gson.annotations.SerializedName
data class ComparePageResult(
val compare: Compare
) {
data class Compare(
@SerializedName("*")
val _asterisk: String,
val diffsize: Int,
val fromcomment: String,
val fromuser: String,
val fr... | 1 | Kotlin | 2 | 16 | e09753e76c11932d6f7344302d48f7a214cccf3a | 432 | Moegirl-plus-native | MIT License |
utils/idgenerators/src/test/kotlin/io/bluetape4k/idgenerators/hashids/HashIdsSupportTest.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.idgenerators.hashids
import io.bluetape4k.collections.asParallelStream
import io.bluetape4k.idgenerators.flake.Flake
import io.bluetape4k.idgenerators.snowflake.GlobalSnowflake
import io.bluetape4k.idgenerators.uuid.TimebasedUuidGenerator
import io.bluetape4k.junit5.concurrency.MultithreadingTest... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 4,891 | bluetape4k | MIT License |
api/src/main/kotlin/rchabot/tournament/api/infrastructure/secondary/mapper/PlayerMapper.kt | RomainChabot | 667,018,086 | false | null | package rchabot.tournament.api.infrastructure.secondary.mapper
import rchabot.tournament.api.domain.entity.Player
import rchabot.tournament.api.domain.entity.Pseudo
import rchabot.tournament.api.domain.entity.Ranking
import rchabot.tournament.api.domain.entity.Score
import rchabot.tournament.api.infrastructure.seconda... | 0 | Kotlin | 0 | 0 | d4a1868b260cb73243dd2639def22b95c17b74b8 | 734 | tournament-v2 | MIT License |
foryouandme/src/main/java/com/foryouandme/core/arch/navigation/action/AuthActions.kt | 4YouandMeData | 610,425,317 | false | null | package com.foryouandme.core.arch.navigation.action
import com.foryouandme.core.activity.FYAMActivity
fun authActivityAction(): ActivityAction =
{
(it as FYAMActivity).auth()
} | 0 | Kotlin | 0 | 0 | bc82972689db5052344365ac07c8f6711f5ad7fa | 194 | 4YouandMeAndroid | MIT License |
app/shared/fwup/impl/src/commonTest/kotlin/build/wallet/fwup/FwupManifestParserTests.kt | proto-at-block | 761,306,853 | false | {"C": 10474259, "Kotlin": 8243078, "Rust": 2779264, "Swift": 893661, "HCL": 349246, "Python": 338898, "Shell": 136508, "TypeScript": 118945, "C++": 69203, "Meson": 64811, "JavaScript": 36398, "Just": 32977, "Ruby": 13559, "Dockerfile": 5934, "Makefile": 3915, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.fwup
import build.wallet.fwup.FwupManifestParser.FwupSlot.A
import build.wallet.fwup.FwupManifestParser.FwupSlot.B
import build.wallet.fwup.FwupManifestParser.ParseFwupManifestSuccess
import build.wallet.fwup.ParseFwupManifestError.ParsingError
import build.wallet.fwup.ParseFwupManifestError.Unkno... | 3 | C | 16 | 113 | 694c152387c1fdb2b6be01ba35e0a9c092a81879 | 6,711 | bitkey | MIT License |
subprojects/assemble/proguard-guard/src/main/kotlin/com/avito/android/proguard_guard/shadowr8/R8TaskPrinter.kt | avito-tech | 230,265,582 | false | null | package com.avito.android.proguard_guard.shadowr8
import com.android.build.gradle.internal.tasks.R8Task
import com.avito.logger.GradleLoggerPlugin
internal fun R8Task.print() {
val logger = GradleLoggerPlugin.getLoggerFactory(this).create("R8TaskPrinter")
with(logger) {
info("enableDesugaring: ${enab... | 8 | null | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 2,546 | avito-android | MIT License |
mobile/src/main/java/com/cm/media/entity/vod/parse/ResolvedVod.kt | zhangwenxue | 157,227,854 | false | {"Java": 1368464, "Kotlin": 17634} | package com.cm.media.entity.vod.parse
data class ResolvedVod(var streams: List<ResolvedStream>?, var lang: String?) | 0 | Java | 1 | 2 | bf6facc4047e52af024d75e06cea4fd432d1dc4d | 116 | CMMedia | Apache License 2.0 |
src/test/kotlin/NecklaceMatchingTests.kt | Botbusters4635 | 247,878,247 | false | null | import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertEquals
@DisplayName("Necklace Matching Tests")
class NecklaceMatchingTests {
@Test
fun... | 0 | Kotlin | 0 | 0 | cb35ad3ba2779cc12f8a642029c6631c328a0623 | 1,472 | Botbusters-Tutorial-World | MIT License |
app/src/main/java/com/o2/glucomate/ui/home/HomeViewModel.kt | yasiralijaved | 680,929,799 | false | null | package com.o2.glucomate.ui.home
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import com.o2.glucomate.db.AppDatabase
import com.o2.glucomate.db.tables.GlucoseEntry
import com.o2.glucomate.repository.GlucoseEntryRepository
import kotlinx.coroutines.D... | 0 | Kotlin | 0 | 0 | fe6f34b6b4b010fe931209140e1c7b48ee9e679f | 1,523 | GlucoMate | Apache License 2.0 |
src/main/kotlin/io/slama/core/commands.kt | SlamaFR | 374,733,122 | false | {"Kotlin": 101736} | package io.slama.core
import io.slama.utils.command
import io.slama.utils.integer
import io.slama.utils.invoke
import io.slama.utils.option
import net.dv8tion.jda.api.JDA
import net.dv8tion.jda.api.entities.Guild
import net.dv8tion.jda.api.interactions.commands.Command
import net.dv8tion.jda.api.interactions.commands.... | 3 | Kotlin | 1 | 3 | d63cae8003eb2173015930920d54bb49a6c3fc80 | 3,169 | UGE-Bot | MIT License |
codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/customizations/FlexibleChecksumMiddlewareTests.kt | awslabs | 278,475,105 | false | null | package software.amazon.smithy.aws.swift.codegen.customizations
import io.kotest.matchers.string.shouldContainOnlyOnce
import org.junit.jupiter.api.Test
import software.amazon.smithy.aws.swift.codegen.TestContext
import software.amazon.smithy.aws.swift.codegen.TestUtils
import software.amazon.smithy.aws.swift.codegen.... | 204 | null | 69 | 349 | a918bcfe1d739c4e9df1546ca27dc3b4874eb033 | 5,992 | aws-sdk-swift | Apache License 2.0 |
src/main/kotlin/main.kt | dron4ik89 | 421,977,175 | false | {"Kotlin": 9852} | fun main(args: Array<String>) {
val longest = "900080003010030080300706002703000208001205900609000704200807001070020060500040007"
println("Custom data:")
println(longest)
val start = System.currentTimeMillis()
try {
val board = Board(longest)
val solver = Solver()
val so... | 0 | Kotlin | 1 | 1 | 252269cfd42df2ae311c491a7c3a2ecedc4e68fc | 620 | Kotlin-Sudoku-Solver | Apache License 2.0 |
src/main/kotlin/net/aruneko/chaindigger/ChainDigger.kt | aruneko | 404,251,353 | false | null | package net.aruneko.chaindigger
import net.aruneko.chaindigger.listeners.ChainDiggerListener
import org.bukkit.plugin.java.JavaPlugin
class ChainDigger : JavaPlugin() {
override fun onEnable() {
val config = this.config
val defaultRange = 5
config.addDefault("range", defaultRange)
... | 0 | Kotlin | 0 | 0 | 6138f8a25622b7e333c153d14f3be75dbc621438 | 570 | ChainDigger | MIT License |
src/main/kotlin/dev/ocpd/jsensible/rules/java/Java11Rules.kt | ocpddev | 587,719,778 | false | null | package dev.ocpd.jsensible.rules.java
import com.tngtech.archunit.lang.ArchRule
import com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses
import java.net.URI
import java.nio.file.Path
import java.nio.file.Paths
import java.util.*
/**
* Contains rules that are applicable to Java 11 and later.
*/
object Ja... | 7 | Kotlin | 1 | 1 | 1f65208df3dad383821b243ad4a0fa3bc466e957 | 1,504 | jsensible | Apache License 2.0 |
app/src/main/java/com/faskn/app/weatherapp/repo/SearchCitiesRepository.kt | furkanaskin | 215,724,494 | false | null | package com.rahul.app.weatherapp.repo
import NetworkBoundResource
import androidx.lifecycle.LiveData
import com.rahul.app.weatherapp.core.Constants.NetworkService.RATE_LIMITER_TYPE
import com.rahul.app.weatherapp.db.entity.CitiesForSearchEntity
import com.rahul.app.weatherapp.domain.datasource.searchCities.SearchCitie... | 2 | null | 117 | 560 | 18e891729d5e792073cd4934e5b5416d12bddca7 | 1,888 | Weatherapp | MIT License |
app/src/main/java/com/remonh87/comfortfood/MainActivity.kt | remonh87 | 256,946,600 | false | null | package com.remonh87.comfortfood
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.activity.viewModels
import io.flutter.embedding.android.FlutterActivity
import io.flutter.plugin.common.MethodChannel
class MainActivity :... | 2 | Kotlin | 0 | 0 | 2a2fa6175600129d6dc5693acbd1476e8c4471eb | 1,045 | comfortfood | MIT License |
modules/rest-service/src/main/kotlin/org/veupathdb/service/vdi/service/datasets/list-datasets.kt | VEuPathDB | 575,990,672 | false | null | package org.veupathdb.service.vdi.service.datasets
import org.veupathdb.service.vdi.db.AccountDB
import org.veupathdb.service.vdi.generated.model.*
import org.veupathdb.service.vdi.model.UserDetails
import org.veupathdb.vdi.lib.common.field.DatasetID
import org.veupathdb.vdi.lib.common.field.ProjectID
import org.veupa... | 9 | Kotlin | 0 | 0 | f16c152c5523fc906efd14e2efb5e956863efd3a | 3,775 | vdi-service | Apache License 2.0 |
compiler/testData/cli/jvm/noReflect.kt | JakeWharton | 99,388,807 | true | null | import kotlin.reflect.*
fun foo() {
String::class.primaryConstructor
listOf(42)
}
| 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 91 | kotlin | Apache License 2.0 |
lamblin-local-runner/src/main/kotlin/com/lamblin/local/runner/LamblinDelegator.kt | BorislavShekerov | 148,893,257 | false | null | /*
* Lamblin
* Copyright 2018 Borislav Shekerov
* Licensed under Apache 2.0: https://github.com/BorislavShekerov/lamblin/blob/master/LICENSE
*/
package com.lamblin.local.runner
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent
import com.amazonaws.services.lambda.runtime.events.APIGa... | 1 | Kotlin | 1 | 5 | 3746fabcba23fdea63e232650e1d2e4f2f9462e5 | 2,035 | lamblin | Apache License 2.0 |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/OmSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.lineawesomeicons
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
... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 3,862 | compose-icons | MIT License |
src/commonMain/kotlin/character/classes/warrior/talents/ImprovedMortalStrike.kt | marisa-ashkandi | 332,658,265 | false | null | package character.classes.warrior.talents
import character.Talent
class ImprovedMortalStrike(currentRank: Int) : Talent(currentRank) {
companion object {
const val name = "Improved Mortal Strike"
}
override val name: String = Companion.name
override val maxRank: Int = 5
}
| 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 300 | tbcsim | MIT License |
src/commonMain/kotlin/character/classes/warrior/talents/ImprovedMortalStrike.kt | marisa-ashkandi | 332,658,265 | false | null | package character.classes.warrior.talents
import character.Talent
class ImprovedMortalStrike(currentRank: Int) : Talent(currentRank) {
companion object {
const val name = "Improved Mortal Strike"
}
override val name: String = Companion.name
override val maxRank: Int = 5
}
| 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 300 | tbcsim | MIT License |
demo/src/main/java/com/sokarcreative/stepperview/MainActivity.kt | sokarcreative | 124,039,121 | false | {"Gradle": 4, "Java Properties": 4, "Shell": 1, "XML": 22, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "Proguard": 2, "Java": 2, "Kotlin": 4} | package com.sokarcreative.stepperview
import android.os.Bundle
import android.os.Handler
import android.support.v7.app.AppCompatActivity
import android.text.Editable
import android.text.InputFilter
import android.text.Spanned
import android.text.TextWatcher
import android.widget.RadioGroup
import kotlinx.android.synth... | 0 | Kotlin | 0 | 1 | 32019cf7b8f31a648c56dc56f445b7aa8a95f4e9 | 3,384 | StepperView | Apache License 2.0 |
src/en/suryascans/src/eu/kanade/tachiyomi/extension/en/suryascans/SuryaScans.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6409055, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.en.suryascans
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
class SuryaScans : MangaThemesia("Surya Scans", "https://suryatoon.com", "en")
| 8 | Kotlin | 2 | 19 | 88bafd3e5fb05cd4690fc46e4a7d624a2595e7f3 | 197 | komikku-extensions | Apache License 2.0 |
appcenter/src/main/java/com/example/appcenter/utilities/DaoDataHelper.kt | vickypathak123 | 381,272,556 | false | null | package com.example.appcenter.utilities
import android.content.Context
import com.example.appcenter.retrofit.model.ModelAppCenter
import com.example.jdrodi.utilities.SPUtil
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* DaoDataHelper.kt - Store model data helper.
* @author: <NAME>
* @d... | 1 | null | 1 | 2 | 73f9feea0fa77c9df2e6275eec837ae15e07f2be | 1,108 | VasundharaCommonCode | MIT License |
kotlinpoet-ktx/tests/src/com/hendraanggrian/kotlinpoet/collections/TypeNameMapTest.kt | hendraanggrian | 209,613,746 | false | null | package com.hendraanggrian.kotlinpoet.collections
import com.google.common.truth.Truth.assertThat
import com.squareup.kotlinpoet.CHAR
import com.squareup.kotlinpoet.asTypeName
import kotlin.test.Test
class TypeNameMapTest {
private val map = TypeNameMap(mutableMapOf())
@Test
fun test() {
map[CHAR... | 1 | Kotlin | 0 | 3 | 9c7ec6bf017caf34bd20ff4853eb851c791e87af | 636 | kotlinpoet-ktx | Apache License 2.0 |
TheMovieDBDagger_v3_Animation/app/src/main/java/com/androidavanzado/popcorn/api/response/Person.kt | miguelcamposedu | 261,391,292 | false | null | package com.androidavanzado.popcorn.api.response
data class Person(
val adult: Boolean,
val gender: Int,
val id: Int,
val known_for: List<KnownFor>,
val known_for_department: String,
val name: String,
val popularity: Double,
val profile_path: String
) | 0 | Kotlin | 0 | 0 | 919c6738203d900c9c96b16f32ba66e915ec266b | 284 | kotlinintroduccion | MIT License |
app/src/main/java/com/a10miaomiao/bilimiao/commponents/comment/VideoCommentView.kt | 10miaomiao | 142,169,120 | false | null | package com.a10miaomiao.bilimiao.commponents.comment
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Color
import android.os.Parcelable
import android.text.Spannable
import android.view.Gravity
import android.view.View
import android.widget.ImageView
import androidx.cor... | 44 | null | 38 | 977 | 1d59b82ba30b4c2e83c781479d09c48c3a82cd47 | 10,447 | bilimiao2 | Apache License 2.0 |
kotlinpoet-dsl/src/main/kotlin/com/hendraanggrian/kotlinpoet/collections/TypeVariableNameCollection.kt | hendraanggrian | 209,613,746 | false | null | package com.hendraanggrian.kotlinpoet.collections
import com.hendraanggrian.kotlinpoet.SpecLoader
import com.hendraanggrian.kotlinpoet.createSpecLoader
import com.hendraanggrian.kotlinpoet.genericsBy
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.TypeName
import com.squareup.kotlinpoet.TypeVar... | 1 | Kotlin | 0 | 3 | 98f4ea811ea25b6a85334a15ae90bddd5f015592 | 3,928 | kotlinpoet-ktx | Apache License 2.0 |
web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleBuilder.kt | wm3 | 376,524,043 | true | {"Kotlin": 609747, "Dockerfile": 5716, "Shell": 5673, "HTML": 2801, "PowerShell": 1708, "Groovy": 1415, "CSS": 1022, "JavaScript": 203} | package org.jetbrains.compose.web.css
import kotlin.properties.ReadOnlyProperty
interface StyleBuilder {
fun property(propertyName: String, value: StylePropertyValue)
fun variable(variableName: String, value: StylePropertyValue)
fun property(propertyName: String, value: String) = property(propertyName, v... | 0 | null | 0 | 0 | 603901b814d39cc1c04b6d955510ad51482aebd0 | 4,603 | compose-jb | Apache License 2.0 |
shared/src/commonMain/kotlin/com/kgurgul/cpuinfo/data/local/IUserPreferencesRepository.kt | kamgurgul | 105,620,694 | false | null | package com.kgurgul.cpuinfo.data.local
import com.kgurgul.cpuinfo.data.local.model.UserPreferences
import kotlinx.coroutines.flow.Flow
interface IUserPreferencesRepository {
val userPreferencesFlow: Flow<UserPreferences>
suspend fun setApplicationsSortingOrder(isAscending: Boolean)
suspend fun setProce... | 31 | null | 98 | 658 | ea3ec63943992cc457faeeaf52d0a451fad49f5a | 532 | cpu-info | Apache License 2.0 |
src/main/kotlin/org/rust/lang/core/resolve/ref/RustUseGlobReferenceImpl.kt | johan-sun | 75,816,553 | true | {"Kotlin": 956110, "Rust": 96870, "Java": 69391, "Lex": 19613, "HTML": 8553, "Shell": 377, "RenderScript": 229} | package org.rust.lang.core.resolve.ref
import com.intellij.psi.PsiElement
import org.rust.lang.core.completion.RustCompletionEngine
import org.rust.lang.core.psi.RustCompositeElement
import org.rust.lang.core.psi.RustNamedElement
import org.rust.lang.core.psi.RustUseGlobElement
import org.rust.lang.core.resolve.RustRe... | 0 | Kotlin | 0 | 0 | 438d1998dc0b100436a93eaef155cd4d68adccdf | 776 | intellij-rust | MIT License |
src/main/kotlin/Main.kt | Akardian | 510,512,493 | false | null | import prison.Prison
fun main(args: Array<String>) {
println("Program arguments: ${args.joinToString()} \n")
val prison = Prison()
prison.printStats()
var won = 0
var lost = 0
var played = 0
val runNumber = 100000
val repeat = 10
println("\nNumber of Runs: ${runNumber * repeat} \n"... | 0 | Kotlin | 0 | 0 | 0f49fab06979e40e8094bca761418775813b50c2 | 729 | Prisoners-Riddle | MIT License |
app/src/main/java/com/moshimoshi/app/domain/usecases/user/UserUseCasesImpl.kt | fsalom | 745,398,229 | false | {"Kotlin": 57054} | package com.moshimoshi.app.domain.usecases.user
import com.moshimoshi.app.domain.repositories.UserRepository
class UserUseCasesImpl(private val repository: UserRepository): UserUseCases {
override suspend fun getMe() {
repository.getMe()
}
} | 0 | Kotlin | 0 | 1 | 78053b14d117bdd00d25b83cbb2216a27efb03b3 | 259 | moshimoshi | MIT License |
src/main/kotlin/com/github/ifgeny87/playnio/controllers/GameController.kt | ifgeny87 | 96,071,716 | false | {"JavaScript": 36251, "Kotlin": 10253, "HTML": 1339, "CSS": 205} | package com.github.ifgeny87.playnio.controllers
import com.beust.klaxon.*
import com.github.ifgeny87.common.distance
import com.github.ifgeny87.playnio.actors.Robot
import com.github.ifgeny87.playnio.sockets.ClientGameSocket
import java.util.concurrent.CopyOnWriteArraySet
class GameController : Runnable {
// список... | 0 | JavaScript | 0 | 0 | 4019405b1251a3621d2ec4ded060bb60cbbb7783 | 3,922 | playnio | Apache License 2.0 |
graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithEnum/expected/types/Query.kt | Netflix | 317,379,776 | false | null | package com.netflix.graphql.dgs.codegen.cases.projectionWithEnum.expected.types
import com.fasterxml.jackson.`annotation`.JsonIgnoreProperties
import com.fasterxml.jackson.`annotation`.JsonProperty
import com.fasterxml.jackson.`annotation`.JsonTypeInfo
import com.fasterxml.jackson.databind.`annotation`.JsonDeserialize... | 95 | null | 96 | 181 | 57b2e1e6db8da146cfa590a0c331ac15ef156085 | 1,613 | dgs-codegen | Apache License 2.0 |
api/token/src/test/kotlin/uk/co/baconi/oauth/api/token/AuthorisationCodeGrantTest.kt | beercan1989 | 345,334,044 | false | {"Kotlin": 518336, "JavaScript": 63785, "TypeScript": 5223, "Dockerfile": 4449, "HTML": 1187} | package uk.co.baconi.oauth.api.token
import io.kotest.assertions.assertSoftly
import io.kotest.matchers.collections.shouldContainExactly
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.shouldBeInstanceOf
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.jupiter.api.... | 1 | Kotlin | 0 | 0 | 2fc541ddcabe344543d023f2e633b3c111546c33 | 2,896 | oauth-api | Apache License 2.0 |
server/src/test/java/de/zalando/zally/rule/zalando/PluralizeResourceNamesRuleTest.kt | hpdang | 148,153,657 | false | null | package de.zalando.zally.rule.zalando
import de.zalando.zally.getContextFromFixture
import de.zalando.zally.rule.ContentParseResult
import de.zalando.zally.rule.ContentParseResultAssert.Companion.assertThat
import de.zalando.zally.rule.DefaultContextFactory
import de.zalando.zally.rule.ZallyAssertions.assertThat
impor... | 0 | null | 1 | 415 | 91bc7341a5b8d9a65bc67e8ca680b6c423d6c684 | 5,817 | zally | MIT License |
app/src/test/java/com/example/marsphotos/fake/FakeNetworkMarsPhotosRepository.kt | bobbyecho | 564,105,681 | false | null | package com.example.marsphotos.fake
import com.example.marsphotos.data.MarsPhotoRepository
import com.example.marsphotos.model.MarsPhoto
class FakeNetworkMarsPhotosRepository: MarsPhotoRepository {
override suspend fun getMarsPhotos(): List<MarsPhoto> {
return FakeDataSource.photosList
}
} | 0 | Kotlin | 0 | 1 | 464efc34532730d92412aa76e2e1c144eec4e7b7 | 296 | ktx-mars-photo-compose-repository-viewmodel | Apache License 2.0 |
jupiter/src/main/kotlin/com/fleshgrinder/junit/jupiter/jackson/JacksonInjector.kt | Fleshgrinder | 521,609,301 | false | {"Kotlin": 178761} | package com.fleshgrinder.junit.jupiter.jackson
/**
* Provides the ability to inject any of the various Jackson mappers via
* constructor injection in JUnit.
*/
public class JacksonInjector
| 0 | Kotlin | 0 | 0 | a5b95e1b68060bed29f6d72619134664eb216ffe | 193 | junit | The Unlicense |
app/src/main/java/com/example/buangin_v1/custom_view/PasswordValidation.kt | Buwang-in | 647,663,283 | false | null | package com.example.buangin_v1.custom_view
import android.content.Context
import android.graphics.Canvas
import android.text.Editable
import android.text.InputType
import android.text.Selection
import android.text.TextWatcher
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
imp... | 0 | Kotlin | 1 | 0 | 75e2990a9d3cc3d9f9c5ec109e73aba5f74195ea | 2,910 | buwang.in-mobile | MIT License |
GenesisAndroid/src/main/java/com/emerchantpay/gateway/genesisandroid/api/exceptions/UnexpectedException.kt | GenesisGateway | 132,108,784 | false | null | package com.emerchantpay.gateway.genesisandroid.api.exceptions
class UnexpectedException : GenesisException {
constructor(message: String) : super(message) {}
constructor(message: String?, cause: Throwable?) : super(message, cause) {}
companion object {
private const val serialVersionUID = 1L
... | 0 | Kotlin | 2 | 1 | d08e83d53c959a1dc48c46560b297f84075b2946 | 328 | android_sdk | MIT License |
app/src/main/java/ru/nlct/nationalkeyboard/data/database/KeyboardLanguageEntity.kt | NLCodeTeam | 490,878,159 | false | {"Kotlin": 57762} | package ru.nlct.nationalkeyboard.data.database
import androidx.room.ColumnInfo
import androidx.room.Entity
@Entity(
tableName = KeyboardLanguageEntity.Schema.TABLE_NAME,
primaryKeys = [KeyboardLanguageEntity.Schema.LANGUAGE_ID]
)
data class KeyboardLanguageEntity(
@ColumnInfo(name = Schema.LANGUAGE_ID) va... | 0 | Kotlin | 0 | 1 | 4a3918a44f5b86b896d5af76eb79c6eb1653f3b9 | 663 | NationalKeyboard | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.