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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ethereum/src/test/kotlin/com/rarible/blockchain/scanner/ethereum/test/TestEthereumScannerConfiguration.kt | rarible | 389,552,724 | false | null | package com.rarible.blockchain.scanner.ethereum.test
import com.rarible.blockchain.scanner.ethereum.EnableEthereumScanner
import com.rarible.blockchain.scanner.ethereum.configuration.EthereumScannerProperties
import com.rarible.blockchain.scanner.ethereum.subscriber.EthereumLogEventListener
import com.rarible.blockcha... | 1 | Kotlin | 6 | 4 | 2730ee09f70a3e8d9bbe60ea7a2a9259dc0be999 | 2,373 | blockchain-scanner | MIT License |
src/main/kotlin/no/njoh/pulseengine/core/graphics/api/TextureArray.kt | NiklasJohansen | 239,208,354 | false | {"Kotlin": 846455, "GLSL": 39054, "PostScript": 178} | package no.njoh.pulseengine.core.graphics.api
import no.njoh.pulseengine.core.asset.types.Texture
import no.njoh.pulseengine.core.graphics.api.TextureFilter.*
import no.njoh.pulseengine.core.graphics.api.TextureFormat.*
import org.lwjgl.opengl.ARBFramebufferObject.glGenerateMipmap
import org.lwjgl.opengl.ARBInternalfo... | 0 | Kotlin | 0 | 1 | c45a8028e1cef5259b76281a7d6083bcbfc51915 | 3,806 | PulseEngine | MIT License |
app/src/main/java/io/github/evaogbe/diswantin/data/Dispatchers.kt | evaogbe | 878,521,080 | false | {"Kotlin": 758804} | package io.github.evaogbe.diswantin.data
import javax.inject.Qualifier
@Qualifier
@Retention(AnnotationRetention.BINARY)
annotation class IoDispatcher
| 0 | Kotlin | 0 | 0 | f57cb78c515dd39718885bd948d13871e7f0a5d7 | 153 | diswantin-android | MIT License |
packages/graalvm/src/main/kotlin/elide/runtime/gvm/internals/intrinsics/js/JsProxy.kt | elide-dev | 506,113,888 | false | null | /*
* Copyright (c) 2024 Elide Technologies, Inc.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing,... | 75 | null | 16 | 97 | 652036fb4e8394e8ad1aced2f4bbfaa9e00a5181 | 5,850 | elide | MIT License |
domain/src/main/java/com/moraware/domain/usecase/user/ChangePasswordFailure.kt | lpalac4 | 520,184,920 | false | null | package com.moraware.domain.usecase.user
import com.moraware.domain.interactors.Failure
class ChangePasswordFailure(): Failure.FeatureFailure() {
} | 0 | Kotlin | 0 | 0 | 39812a9a320bcebed883b5f6f804dfd43458f816 | 149 | mango | MIT License |
plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt | oss-review-toolkit | 107,540,288 | false | {"Kotlin": 5110480, "JavaScript": 333852, "Shell": 127273, "HTML": 98970, "Python": 51191, "Haskell": 30438, "FreeMarker": 27693, "CSS": 27239, "Dockerfile": 19565, "Swift": 12129, "Ruby": 10007, "Roff": 7688, "Vim Snippet": 6802, "Scala": 6656, "Starlark": 3270, "Go": 1909, "C++": 882, "Java": 559, "Rust": 280, "Emacs... | /*
* Copyright (C) 2021 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.a... | 304 | Kotlin | 309 | 1,590 | ed4bccf37bab0620cc47dbfb6bfea8542164725a | 12,275 | ort | Apache License 2.0 |
src/main/kotlin/no/nav/pensjon/saksbehandling/database/DataSourceConfig.kt | navikt | 216,753,506 | false | null | package no.nav.pensjon.saksbehandling.database
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import no.nav.pensjon.saksbehandling.ApplicationProperties.getFromEnvironment
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.slf4j.LoggerFactory.getLogger
internal object D... | 0 | Kotlin | 0 | 0 | db70d3b1054f6a9f539838a95121d1c602810e54 | 1,294 | pensjon-saksbehandling-feilmetrikker | MIT License |
app/src/main/java/com/example/game_app/SettingsFragment.kt | Gotalicp | 704,093,487 | false | {"Kotlin": 36593} | package com.example.game_app
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.game_app.databinding.FragmentSettingsBinding
class SettingsFragment : Fragment(R.layout.fragment_settings) {
priv... | 0 | Kotlin | 0 | 1 | 9f5df910565e248db9dc445595b8d011fca933bd | 771 | game-app | MIT License |
CommonService/src/main/java/com/example/commonservice/ApiManager.kt | tuozhaobing | 162,947,170 | false | {"Gradle": 8, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 7, "Batchfile": 1, "Markdown": 1, "Proguard": 6, "Java": 10, "XML": 62, "Kotlin": 39, "INI": 1, "JSON": 1, "Gradle Kotlin DSL": 1} | package com.example.commonservice
import com.example.commonsdk.http.RetrofitInstance
import com.example.commonservice.article.ArticleService
import com.example.commonservice.weather.WeatherService
/**
* @author
* @Date 2019/1/1
* @description
* @since 1.0.0
*/
val article_url = "http://interface.meiriyiwen.com/a... | 0 | Kotlin | 1 | 2 | 2b14dd0d104b8c6fd1e9978e6051a7083c1906f6 | 1,095 | ModularsArchitectureDemo | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/model/prisonsapi/InmateDetail.kt | ministryofjustice | 515,276,548 | false | {"Kotlin": 5867027, "Shell": 8042, "Dockerfile": 1780} | package uk.gov.justice.digital.hmpps.approvedpremisesapi.model.prisonsapi
data class InmateDetail(
val offenderNo: String,
val inOutStatus: InOutStatus,
val assignedLivingUnit: AssignedLivingUnit?,
)
data class AssignedLivingUnit(
val agencyId: String,
val locationId: Long,
val description: String?,
val... | 21 | Kotlin | 2 | 3 | 2f64473b26ffe6df9c77ca0c81f436a32d7a7310 | 391 | hmpps-approved-premises-api | MIT License |
sample/src/main/java/com/anggrayudi/storage/sample/activity/FileCompressionActivity.kt | anggrayudi | 288,174,740 | false | null | package com.anggrayudi.storage.sample.activity
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.documentfile.provider.DocumentFile
import com.anggrayudi.storage.callback.ZipCompressionCallback
import com.anggrayudi.storage.file.MimeType
import com.anggrayudi.storage.file.co... | 3 | Kotlin | 64 | 507 | 710dc6547258080b85f25a1eaac4de8f34df1d89 | 5,250 | SimpleStorage | Apache License 2.0 |
Skyflow/src/main/kotlin/Skyflow/collect/elements/utils/Spacespan.kt | skyflowapi | 396,648,989 | false | null | package com.aditya.unitymessenger.utils
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Paint.FontMetricsInt
import android.text.style.ReplacementSpan
class SpaceSpan : ReplacementSpan() {
override fun getSize(
paint: Paint,
text: CharSequence,
start: I... | 6 | null | 2 | 7 | 0ffcbf43c2767d6324f29952e8ce94d354aa57d8 | 804 | skyflow-android | MIT License |
backend/src/test/kotlin/com/github/davinkevin/podcastserver/extension/json/JsonAssert.kt | davinkevin | 13,350,152 | false | null | package com.github.davinkevin.podcastserver.extension.json
import net.javacrumbs.jsonunit.assertj.JsonAssert
import net.javacrumbs.jsonunit.assertj.JsonAssertions
import org.springframework.test.web.reactive.server.WebTestClient
/**
* Created by kevin on 2019-02-19
*/
fun WebTestClient.BodyContentSpec.assertThatJso... | 1 | null | 42 | 188 | 7f4272b889325a1689c9dd10c8bf43fbd9a2beb5 | 519 | Podcast-Server | Apache License 2.0 |
src/main/kotlin/com/dotori/v2/domain/member/presentation/data/dto/MemberDto.kt | Team-Ampersand | 569,110,809 | false | {"Kotlin": 421826, "Shell": 827} | package com.dotori.v2.domain.member.presentation.data.dto
import com.dotori.v2.domain.member.enums.Gender
import com.dotori.v2.domain.rule.enums.Rule
data class MemberDto(
val id: Long,
val memberName: String,
val stuNum: String,
val gender: Gender,
val rule: List<Rule>
) | 2 | Kotlin | 3 | 15 | 6647b1f03ae7424af188d0003ad7025f992dca11 | 294 | Dotori-server-V2 | Apache License 2.0 |
src/main/kotlin/org/jitsi/jibri/metrics/JibriMetricsContainer.kt | jitsi | 51,473,177 | false | {"Kotlin": 383048, "Shell": 8636, "Java": 1620} | /*
* Copyright @ 2024-Present 8x8, 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 agr... | 82 | Kotlin | 313 | 609 | bdf9fc5e676f8629708e5ccd68406ca00258e712 | 756 | jibri | Apache License 2.0 |
src/main/kotlin/org/jitsi/jibri/metrics/JibriMetricsContainer.kt | jitsi | 51,473,177 | false | {"Kotlin": 383048, "Shell": 8636, "Java": 1620} | /*
* Copyright @ 2024-Present 8x8, 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 agr... | 82 | Kotlin | 313 | 609 | bdf9fc5e676f8629708e5ccd68406ca00258e712 | 756 | jibri | Apache License 2.0 |
build-logic/metrics/src/main/kotlin/com/vk/id/health/metrics/buildspeed/VKIDBuildSpeedStep.kt | VKCOM | 696,297,549 | false | {"Kotlin": 800967, "Shell": 14785, "AIDL": 3429, "JavaScript": 1182} | package com.vk.id.health.metrics.buildspeed
import com.vk.id.health.metrics.VKIDHealthMetricsExtension
import com.vk.id.health.metrics.VKIDHeathMetricsStep
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.invocation.Gradle
import org.gradle.api.provider.Provider
import org.gradle.api.prov... | 1 | Kotlin | 1 | 23 | 9a3ee0cc0243874354793c7dcb7d58d6aa5b10bc | 6,674 | vkid-android-sdk | MIT License |
build-logic/metrics/src/main/kotlin/com/vk/id/health/metrics/buildspeed/VKIDBuildSpeedStep.kt | VKCOM | 696,297,549 | false | {"Kotlin": 800967, "Shell": 14785, "AIDL": 3429, "JavaScript": 1182} | package com.vk.id.health.metrics.buildspeed
import com.vk.id.health.metrics.VKIDHealthMetricsExtension
import com.vk.id.health.metrics.VKIDHeathMetricsStep
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.invocation.Gradle
import org.gradle.api.provider.Provider
import org.gradle.api.prov... | 1 | Kotlin | 1 | 23 | 9a3ee0cc0243874354793c7dcb7d58d6aa5b10bc | 6,674 | vkid-android-sdk | MIT License |
core/src/commonMain/kotlin/it/unibo/tuprolog/core/impl/IntegerImpl.kt | tuProlog | 230,784,338 | false | {"Kotlin": 3949669, "Java": 18690, "ANTLR": 10366, "CSS": 1535, "JavaScript": 894, "Prolog": 818} | package it.unibo.tuprolog.core.impl
import it.unibo.tuprolog.core.Integer
import it.unibo.tuprolog.core.Numeric
import it.unibo.tuprolog.core.Scope
import it.unibo.tuprolog.core.Term
import it.unibo.tuprolog.core.TermVisitor
import org.gciatto.kt.math.BigDecimal
import org.gciatto.kt.math.BigInteger
@Suppress("Equals... | 92 | Kotlin | 14 | 93 | 3223ffc302e5da0efe2b254045fa1b6a1a122519 | 1,725 | 2p-kt | Apache License 2.0 |
kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt | utopia-rise | 289,462,532 | false | null | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 69 | null | 39 | 580 | fd1af79075e7b918200aba3302496b70c76a2028 | 14,874 | godot-kotlin-jvm | MIT License |
lib/src/test/kotlin/net/dean/jraw/test/integration/DeserializationTest.kt | mattbdean | 19,762,540 | false | null | package net.dean.jraw.test.integration
import com.winterbe.expekt.should
import net.dean.jraw.RedditClient
import net.dean.jraw.models.Submission
import net.dean.jraw.models.Subreddit
import net.dean.jraw.models.SubredditSort
import net.dean.jraw.test.TestConfig
import org.jetbrains.spek.api.Spek
import org.jetbrains.... | 38 | null | 126 | 352 | fa1efa33729d42c6d2fc52f4cf67eabcb75e3be9 | 3,614 | JRAW | MIT License |
src/main/kotlin/Ciclos.kt | rodolfopenia | 678,217,867 | false | null | fun main(args: Array<String>) {
val listaDeFrutas = listOf("Manzana", "Pera", "Frambuesa", "Durazno")
for(fruta in listaDeFrutas){
println("Hoy voy a comer la fruta llamada $fruta")
}
listaDeFrutas.forEach{
fruta -> println("Hoy voy a comer la fruta nueva llamada $fruta")
}
... | 0 | Kotlin | 0 | 0 | 57310137dd851bc4c0e2a7939fc49f40462aa385 | 519 | learningKotlin | MIT License |
app/src/main/java/com/keepsimple/smallhabits/TaskHistoryLog.kt | ETSEmpiricalStudyKotlinAndroidApps | 496,746,420 | true | {"Kotlin": 150081} | package com.keepsimple.smallhabits
class TaskHistoryLog(
var progressPercent: Int = 0,
var progressString: String = "",
var memoString: String = "",
var memoImage: String = "") {} | 0 | null | 0 | 0 | 216fa3716bc294a69b31beb1ad9966c9922f35ce | 196 | SmallHabits | Apache License 2.0 |
lib_tiktok/src/main/java/me/luzhuo/lib_tiktok/cache/PreloadTask.kt | LZLuzhuo | 579,716,908 | false | {"Kotlin": 41407, "Java": 23091} | /* Copyright 2021 Luzhuo. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 0 | Kotlin | 0 | 0 | f6972c16a4e463bb67b46795c737b513ae5e56ff | 3,053 | TiktokLibrary | Apache License 2.0 |
app/adapter/src/main/kotlin/net/averak/gsync/adapter/handler/admin_api/interceptor/InterceptorPriority.kt | averak | 697,429,765 | false | {"Kotlin": 118988, "Groovy": 100615, "Java": 4456, "Makefile": 1201, "Dockerfile": 287} | package net.averak.gsync.adapter.handler.admin_api.interceptor
/**
* インターセプターの実行優先度
*/
enum class InterceptorPriority {
HIGH,
MEDIUM,
LOW,
}
| 18 | Kotlin | 0 | 1 | 289aec33c894dc44f5c74b5b209ca024046ca4b7 | 157 | gsync | MIT License |
app/src/main/java/com/marknkamau/justjava/ui/checkout/CheckoutPresenter.kt | panaito | 185,960,547 | true | {"Kotlin": 173054} | package com.marknkamau.justjava.ui.checkout
import com.marknjunge.core.auth.AuthService
import com.marknjunge.core.data.firebase.ClientDatabaseService
import com.marknjunge.core.data.firebase.WriteListener
import com.marknkamau.justjava.data.local.CartDao
import com.marknkamau.justjava.data.local.PreferencesRepository... | 0 | Kotlin | 0 | 0 | d1ee69b12759f9fe64cb14f1e28bade5c9688f1f | 2,598 | JustJava-Android | Apache License 2.0 |
src/main/kotlin/io/github/kr8gz/egghunt/Extensions.kt | kr8gz | 766,143,964 | false | {"Kotlin": 28779, "Java": 7097} | package io.github.kr8gz.egghunt
import io.github.kr8gz.egghunt.database.Database
import io.github.kr8gz.egghunt.world.EggPosition
import net.minecraft.entity.player.PlayerEntity
import net.minecraft.text.MutableText
import net.minecraft.text.Text
import net.minecraft.util.Formatting
import net.minecraft.util.math.Bloc... | 0 | Kotlin | 0 | 1 | 61267a44bbcdcc7167c3fafb394b9c9f4dc7b5f2 | 651 | EggHunt | MIT License |
compiler/src/test/kotlin/dev/ssch/minijava/compiler/expressions/CastTest.kt | stefanschoeberl | 275,000,340 | false | null | package dev.ssch.minijava.compiler.expressions
import dev.ssch.minijava.compiler.util.CompilerTest
import org.junit.jupiter.api.Test
class CastTest : CompilerTest() {
@Test
fun `cast values`() {
val output = """
int a = (int) 123;
int b = (int) 123f;
float c = (flo... | 0 | Kotlin | 0 | 0 | 86747f69e59e558dc2b4bd0d427a3a8b3f36de48 | 2,242 | MiniJava-Compiler | MIT License |
src/commonMain/kotlin/buffers/SequentialWriter.kt | lost-illusi0n | 526,792,772 | false | null | package dev.sitar.kio.buffers
import dev.sitar.kio.ByteOrder
import dev.sitar.kio.Pool
import dev.sitar.kio.Slice
import dev.sitar.kio.fullSlice
import dev.sitar.kio.use
public interface SequentialWriter {
public val bufferPool: Pool<Buffer>
public var writeIndex: Int
public fun ensureSequentialCapacity... | 0 | Kotlin | 0 | 2 | ff84336f0a3732ab9ba6d369198c018b473d2d4d | 1,454 | kio | MIT License |
sqlite-embedder-chicory/src/jvmMain/kotlin/ru/pixnews/wasm/sqlite/open/helper/chicory/host/module/wasi/WasiHostFunctionHandleFactory.kt | illarionov | 769,429,996 | false | {"Kotlin": 1121283, "C": 65190, "C++": 61910} | /*
* Copyright 2024, the wasm-sqlite-open-helper project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package ru.pixnews.wasm.sqlite.open.helper.chic... | 0 | Kotlin | 0 | 1 | 71bb361bc20bba7e43287360fdb725ec0b9f8f67 | 601 | wasm-sqlite-open-helper | Apache License 2.0 |
src/org/elixir_lang/psi/ElixirFile.kt | KronicDeth | 22,329,177 | false | null | package org.elixir_lang.psi
import org.elixir_lang.psi.impl.ProcessDeclarationsImpl
import com.intellij.extapi.psi.PsiFileBase
import com.intellij.openapi.fileTypes.FileType
import com.intellij.psi.*
import org.elixir_lang.ElixirLanguage
import org.elixir_lang.ElixirFileType
import com.intellij.psi.scope.PsiScopeProce... | 590 | null | 153 | 1,815 | b698fdaec0ead565023bf4461d48734de135b604 | 5,406 | intellij-elixir | Apache License 2.0 |
service/src/test/kotlin/no/nav/su/se/bakover/service/personhendelser/PersonhendelseServiceTest.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.service.personhendelser
import arrow.core.left
import arrow.core.nonEmptyListOf
import arrow.core.right
import io.kotest.matchers.shouldBe
import no.nav.su.se.bakover.common.AktørId
import no.nav.su.se.bakover.common.Fnr
import no.nav.su.se.bakover.common.toNonEmptyList
import no.nav.su.se... | 6 | Kotlin | 0 | 1 | d7157394e11b5b3c714a420a96211abb0a53ea45 | 9,485 | su-se-bakover | MIT License |
agp-7.1.0-alpha01/tools/base/build-system/integration-test/lint/src/test/java/com/android/build/gradle/integration/lint/LintStandaloneCustomRuleTest.kt | jomof | 502,039,754 | true | {"Markdown": 63, "Java Properties": 56, "Shell": 31, "Batchfile": 12, "Proguard": 30, "CMake": 10, "Kotlin": 3443, "C++": 594, "Java": 4446, "HTML": 34, "Makefile": 14, "RenderScript": 22, "C": 30, "JavaScript": 2, "CSS": 3, "INI": 11, "Filterscript": 11, "Prolog": 1, "GLSL": 1, "Gradle Kotlin DSL": 5, "Python": 12, "D... | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 2,628 | CppBuildCacheWorkInProgress | Apache License 2.0 |
agp-7.1.0-alpha01/tools/base/build-system/integration-test/lint/src/test/java/com/android/build/gradle/integration/lint/LintStandaloneCustomRuleTest.kt | jomof | 502,039,754 | true | {"Markdown": 63, "Java Properties": 56, "Shell": 31, "Batchfile": 12, "Proguard": 30, "CMake": 10, "Kotlin": 3443, "C++": 594, "Java": 4446, "HTML": 34, "Makefile": 14, "RenderScript": 22, "C": 30, "JavaScript": 2, "CSS": 3, "INI": 11, "Filterscript": 11, "Prolog": 1, "GLSL": 1, "Gradle Kotlin DSL": 5, "Python": 12, "D... | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 2,628 | CppBuildCacheWorkInProgress | Apache License 2.0 |
idea/testData/multiModuleQuickFix/memberFunParameterToReceiverByHeader/header/header.kt | dgrachev28 | 101,798,165 | false | null | // "Convert parameter to receiver" "true"
header class Foo {
fun foo(n: Int, <caret>s: String)
}
fun Foo.test() {
foo(1, "2")
} | 0 | null | 0 | 1 | 4ada69242104c8ce265383400797ed37d74c7fe9 | 137 | kotlin | Apache License 2.0 |
rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeLiteralTest.kt | leiq2005 | 313,834,036 | true | {"Gradle Kotlin DSL": 10, "Shell": 3, "Markdown": 1, "Batchfile": 2, "Text": 2, "Ignore List": 1, "Kotlin": 155, "Java": 211, "ANTLR": 7, "YAML": 5, "Java Properties": 1, "INI": 1, "XML": 1} | /*
* Copyright 2020 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 0 | null | 0 | 0 | decf842c45b95b71e2d196035efb59b1618a4803 | 2,941 | rewrite | Apache License 2.0 |
kafka-client-kotlin/src/main/kotlin/com/seigneurin/strings/SimpleStringConsumer.kt | aseigneurin | 53,060,060 | false | null | package com.seigneurin.strings
import org.apache.kafka.clients.consumer.KafkaConsumer
import org.apache.kafka.common.serialization.StringDeserializer
import java.util.Properties
fun main(args: Array<String>) {
val props = Properties()
props["bootstrap.servers"] = "localhost:9092"
props["group.id"] = "mygr... | 3 | Java | 25 | 48 | 6fede051dc4269d1913154521eeb79a201b4685f | 777 | kafka-sandbox | MIT License |
fuzzer/fuzzing_output/crashing_tests/verified/minimized/simpleTopLevelFunction.kt607689525.kt_minimized.kt | ItsLastDay | 102,885,402 | false | null | fun box(): String = ((::foo))!!!!.callBy(mapOf()) | 1 | Kotlin | 1 | 6 | bb80db8b1383a6c7f186bea95c53faff4c0e0281 | 49 | KotlinFuzzer | MIT License |
frames/src/main/java/com/checkout/frames/style/component/default/DefaultAddressSummaryComponentStyle.kt | checkout | 140,300,675 | false | null | package com.checkout.frames.style.component.default
import com.checkout.frames.R
import com.checkout.frames.model.Margin
import com.checkout.frames.model.CornerRadius
import com.checkout.frames.model.Shape
import com.checkout.frames.model.BorderStroke
import com.checkout.frames.style.component.addresssummary.AddressSu... | 14 | null | 37 | 51 | 6eda7b1a9331c5fb1ababa205e3f3123f1b56ff3 | 3,224 | frames-android | MIT License |
lib/src/main/java/com/kotlin/inaction/blog/delegate/_02_builtin_delegates/_02_observable.kt | jhwsx | 167,022,805 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 3, "Proguard": 1, "Kotlin": 426, "XML": 14, "Java": 86, "desktop": 1} | package com.kotlin.inaction.blog.delegate._02_builtin_delegates
import kotlin.properties.Delegates
import kotlin.reflect.KProperty
/**
*
* @author wangzhichao
* @since 2021/3/7
*/
class Person1 {
var address: String by Delegates.observable("not entered yet!") {
property: KProperty<*>, oldValue: String... | 1 | null | 1 | 1 | 1e28292ee86cf8ce42b90c78b1c17cb143801a73 | 530 | KotlinInAction | MIT License |
jvm/jvm-analysis-tests/src/com/intellij/codeInspection/tests/sourceToSink/SourceToSinkFlowInspectionTestBase.kt | ingokegel | 72,937,917 | false | null | package com.intellij.codeInspection.tests.sourceToSink
import com.intellij.codeInspection.sourceToSink.SourceToSinkFlowInspection
import com.intellij.testFramework.LightProjectDescriptor
abstract class SourceToSinkFlowInspectionTestBase : TaintedTestBase() {
override val inspection: SourceToSinkFlowInspection = So... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 484 | intellij-community | Apache License 2.0 |
paparazzi/src/main/java/app/cash/paparazzi/internal/resources/base/BasicValueResourceItemBase.kt | cashapp | 176,338,719 | false | null | /*
* Copyright (C) 2023 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 126 | null | 214 | 2,290 | a47d3a28700ad0994c45975a5cd0e86e834a9a81 | 4,304 | paparazzi | Apache License 2.0 |
compiler/testData/moduleProtoBuf/simple/BarFileFacade1.kt | JakeWharton | 99,388,807 | false | null | package bar
fun file1() {}
| 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 28 | kotlin | Apache License 2.0 |
node-api/src/main/kotlin/net/corda/nodeapi/internal/protonwrapper/messages/ReceivedMessage.kt | corda | 70,137,417 | false | null | package net.corda.node.internal.protonwrapper.messages
import net.corda.core.utilities.NetworkHostAndPort
/**
* An extension of ApplicationMessage that includes origin information.
*/
interface ReceivedMessage : ApplicationMessage {
val sourceLegalName: String
val sourceLink: NetworkHostAndPort
fun com... | 62 | null | 1077 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 346 | corda | Apache License 2.0 |
AlivcUgsvDemo/AUIVideoEditor/src/main/java/com/aliyun/svideo/editor/EditorConfig.kt | GH6324 | 554,806,307 | false | {"Java Properties": 5, "Gradle": 63, "Shell": 8, "Markdown": 5, "Git Attributes": 1, "Batchfile": 4, "Ignore List": 38, "Proguard": 31, "Java": 806, "XML": 802, "INI": 20, "Kotlin": 216, "Text": 2, "HTML": 1, "JSON": 135, "GLSL": 6, "C++": 22, "C": 3} | package com.aliyun.svideo.editor
import com.aliyun.svideosdk.common.struct.common.VideoDisplayMode
import com.aliyun.svideosdk.common.struct.common.VideoQuality
import com.aliyun.svideosdk.common.struct.encoder.VideoCodecs
public class EditorConfig {
companion object {
const val RATIO_MODE_3_4 = 3.0f/4
... | 1 | null | 1 | 1 | 9273dac29ec4d9890085b251f2daacc1afc652ee | 989 | MONE_demo_opensource_android | Open LDAP Public License v2.6 |
idea/testData/refactoring/nameSuggester/NameArrayOfClasses.kt | JakeWharton | 99,388,807 | false | null | class A() {}
fun <T> array(vararg t : T) : Array<T> = t as Array<T>
fun a() {
<selection>array(A(), A())</selection>
}
/*
array
arrayOfAs
*/ | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 146 | kotlin | Apache License 2.0 |
modules/openapi-json-schema-generator-gradle-plugin/src/test/kotlin/MetaTaskDslTest.kt | OpenAPITools | 540,861,753 | false | null | package org.openapitools.generator.gradle.plugin
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome
import org.testng.annotations.Test
import java.io.File
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class MetaTaskDslTest : TestBase() {
override var temp: F... | 54 | null | 6547 | 8 | 392c3131ff7bfe414507b10601960c985cf9be1a | 1,943 | openapi-json-schema-generator | Apache License 2.0 |
modules/openapi-json-schema-generator-gradle-plugin/src/test/kotlin/MetaTaskDslTest.kt | OpenAPITools | 540,861,753 | false | null | package org.openapitools.generator.gradle.plugin
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome
import org.testng.annotations.Test
import java.io.File
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class MetaTaskDslTest : TestBase() {
override var temp: F... | 54 | null | 6547 | 8 | 392c3131ff7bfe414507b10601960c985cf9be1a | 1,943 | openapi-json-schema-generator | Apache License 2.0 |
compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/sessionCreationUtils.kt | BradOselo | 367,097,840 | true | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir
import com.intellij.openapi.project.Project
import com.intellij.psi.search.G... | 1 | null | 1 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 3,945 | kotlin | Apache License 2.0 |
radar-commons-android/src/main/java/org/radarbase/util/SynchronizedReference.kt | RADAR-base | 85,591,443 | false | {"C++": 2958963, "Kotlin": 809848, "Java": 517842, "C": 289748, "HTML": 42350, "PHP": 10200, "Makefile": 8527, "RenderScript": 997} | package org.radarbase.util
import java.io.IOException
import java.lang.ref.WeakReference
class SynchronizedReference<T>(private val supplier: () -> T) {
private var ref: WeakReference<T>? = null
@Synchronized
@Throws(IOException::class)
fun get(): T = ref?.get()
?: supplier().also { r... | 40 | C++ | 7 | 5 | f62557c1721e9f4b74a84fbadfb3b052d6bab8e7 | 347 | radar-commons-android | Apache License 2.0 |
idea/tests/testData/intentions/changeVisibility/protected/notForFinalClass2.kt | JetBrains | 278,369,660 | false | null | // IS_APPLICABLE: false
final class ExplicitFinalClass <caret>public constructor() | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 82 | intellij-kotlin | Apache License 2.0 |
implementation/src/test/kotlin/com/aoc/intcode/droid/cryo/droid/DroidOutputTest.kt | TomPlum | 227,887,094 | false | null | package com.aoc.intcode.droid.cryo.droid
import assertk.assertThat
import assertk.assertions.isEmpty
import assertk.assertions.isEqualTo
import com.aoc.input.TestInputReader
import com.aoc.intcode.droid.cryo.security.AirlockPassword
import com.aoc.intcode.droid.cryo.security.SecurityAnalysis
import com.aoc.math.Direct... | 7 | null | 1 | 2 | 12d47cc9c50aeb9e20bcf110f53d097d8dc3762f | 4,755 | advent-of-code-2019 | Apache License 2.0 |
marcel-compilation/marcel-parser/src/test/kotlin/com/tambapps/marcel/parser/MarcelParserTest.kt | tambapps | 587,877,674 | false | {"Maven POM": 26, "Text": 1, "Ignore List": 11, "Markdown": 87, "Kotlin": 465, "Gradle Kotlin DSL": 5, "INI": 4, "Java Properties": 4, "Shell": 5, "Batchfile": 2, "Proguard": 8, "XML": 83, "Java": 226, "YAML": 1, "JavaScript": 1, "TOML": 1, "Gradle": 5, "JFlex": 1} | package com.tambapps.marcel.parser
import com.tambapps.marcel.lexer.LexToken
import com.tambapps.marcel.lexer.MarcelLexer
import com.tambapps.marcel.lexer.TokenType
import com.tambapps.marcel.parser.cst.AnnotationCstNode
import com.tambapps.marcel.parser.cst.AccessCstNode
import com.tambapps.marcel.parser.cst.ClassCst... | 0 | Java | 0 | 7 | 83bf3562f8bb6b43fe5d6f2e13c9ed5ad3300bce | 17,196 | marcel | Apache License 2.0 |
android/src/com/android/tools/idea/editors/literals/internal/LiteralsClassUtil.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 3 | null | 220 | 912 | d88742a5542b0852e7cb2dd6571e01576cb52841 | 13,082 | android | Apache License 2.0 |
src/Avançado/SobrecarcaDeOperadores.kt | ravi2612 | 327,423,746 | false | {"XML": 11, "Text": 1, "Git Attributes": 1, "Markdown": 1, "Kotlin": 109, "Java": 1, "Ignore List": 1} | package Avançado
data class Ponto(val x: Int, val y:Int) {
operator fun plus(other: Ponto) : Ponto {
return Ponto(x + other.x, y + other.y)
}
operator fun unaryMinus(): Ponto {
return Ponto(-x , -y)
}
}
fun main() {
val ponto1 = Ponto(10, 20)
val ponto2 = Ponto(10, 20)
printl... | 0 | Kotlin | 0 | 0 | 10bcb2e03dc1074a92b7914c9d157f2246dd8f78 | 361 | Kotlin | MIT License |
app/src/main/java/id/koridor50/jesika/ui/member_list/MemberListViewModel.kt | aflahtaqiu | 278,828,615 | false | null | package id.koridor50.jesika.ui.member_list
import android.content.Context
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import id.koridor50.jesika.common.PrefKey
import id.koridor50.jesika.data.model.LocalCommunity
import id.koridor50.jesika.data... | 0 | Kotlin | 0 | 0 | bec689788328844876af276910db68a03b45c366 | 2,350 | jesika | MIT License |
librarys/LogHelper/src/main/java/com/aqrlei/helper/log/config/SimpleLogPrinterConfig.kt | AqrLei | 278,292,323 | false | {"Gradle Kotlin DSL": 14, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 140, "XML": 22, "Java": 3} | package com.aqrlei.helper.log.config
import com.aqrlei.helper.log.LogLevel
/**
* created by AqrLei on 2020/5/19
*/
class SimpleLogPrinterConfig : ILogPrinterConfig {
companion object {
fun create() = SimpleLogPrinterConfig()
}
override var level: Int = LogLevel.VERBOSE
} | 0 | Kotlin | 0 | 0 | d90a6a63dc9aeedfa38f3c3e76160e28641dcd41 | 297 | AndroidLibs | Apache License 2.0 |
app/src/main/java/org/stepic/droid/core/presenters/FiltersPresenter.kt | Ujjawal-Anand | 142,415,269 | false | null | package org.stepic.droid.core.presenters
import org.stepic.droid.core.filters.contract.FiltersPoster
import org.stepic.droid.core.presenters.contracts.FiltersView
import org.stepic.droid.di.catalog.CatalogScope
import org.stepic.droid.model.StepikFilter
import org.stepic.droid.preferences.SharedPreferenceHelper
import... | 0 | null | 0 | 1 | 256a90051eefe8db83f7053914004905bbb1f8d0 | 883 | stepik-android | Apache License 2.0 |
hello-world/src/aula06_estrutura_diretorios/App.kt | CastroFilipe | 356,699,365 | false | null | package aula06_estrutura_diretorios
fun main(){
val usuario = Usuario("Renato", 35, true, 2)
println(usuario.getInfoUsuario())
val soma = somar(2,4)
println(soma)
println(subtrair(10, 7))
} | 1 | null | 1 | 1 | e5898ce38abea603dc2e1793a40728e258d42a16 | 213 | lab-kotlin-basico | The Unlicense |
activators/dialogflow/src/main/kotlin/com/justai/jaicf/activator/dialogflow/DialogflowActivatorContext.kt | just-ai | 246,869,336 | false | null | package com.justai.jaicf.activator.dialogflow
import com.google.cloud.dialogflow.v2.Intent
import com.google.cloud.dialogflow.v2.QueryResult
import com.justai.jaicf.activator.intent.IntentActivatorContext
import com.justai.jaicf.context.ActivatorContext
data class DialogflowActivatorContext(
override val intent: ... | 21 | null | 39 | 241 | cc076db73e03bf89db2ab94e7f48c8736735706b | 895 | jaicf-kotlin | Apache License 2.0 |
RecyclerViewDemo/src/main/java/pwj/study/headerfooter/OnFragmentInteractionListener.kt | a-pwj | 182,354,866 | false | null | package pwj.study.headerfooter
interface OnFragmentInteractionListener {
fun onFragmentInteraction()
} | 0 | Kotlin | 0 | 0 | 79d2bca871dadd2c7d6c60582ec5bf38eafda908 | 107 | study-master | Apache License 2.0 |
LoopIndicatorLibrary/src/main/java/com/lyhv/library/IndicatorConfig.kt | lyhv | 202,688,179 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 12, "XML": 21, "Java": 2} | package com.lyhv.library
/**
* Created by lyhv on August 18, 2019
* Copyright @ est-rouge. All rights reserved
*/
object IndicatorConfig {
const val LOOP_COUNT = 10_000
const val MAX_STEP_INDEX_ANIMATION = 3
}
| 0 | Kotlin | 0 | 0 | 84276491072e15161631e3c092ec25fda1af2d5b | 222 | android-loopIndicator_recycler | MIT License |
data/src/main/kotlin/ru/bykov/footballteams/entity/ApiEnvelope.kt | grine4ka | 419,372,892 | false | null | package ru.bykov.footballteams.entity
import com.google.gson.annotations.SerializedName
class ApiEnvelope<T>(
@SerializedName("errors")
val errors: List<ErrorEntity>,
@SerializedName("response")
val response: T,
@SerializedName("results")
val results: Int
) | 5 | Kotlin | 0 | 0 | ea1894aecc34f875562f1c6dc5a51580b859c8c2 | 283 | footea | MIT License |
ui-home/src/main/java/io/github/reactivecircus/streamlined/home/HomeViewModel.kt | ReactiveCircus | 233,422,078 | false | null | package io.github.reactivecircus.streamlined.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
import com.squareup.workflow1.ui.renderWorkflowIn
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
impor... | 2 | Kotlin | 5 | 70 | 64b3bddcfe66bb376770b506107e307669de8005 | 634 | streamlined | Apache License 2.0 |
app/TaskManagerPlus/app/src/main/java/maif/taskmanagerplus/ui/task/ui/AddTaskActivity.kt | maiconfang | 867,286,298 | false | {"Kotlin": 40210} | package maif.taskmanagerplus.ui.task.ui
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.CheckBox
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity
import maif.taskmanagerplus.R
class AddTaskActivity : Ap... | 0 | Kotlin | 0 | 0 | 09826d038529e49c76c153b13ccf96dbb263cc11 | 1,365 | taskmanagerplus-android-app | MIT License |
src/main/kotlin/api/type/ShippingAddress.kt | iseki0 | 195,287,997 | false | {"HTML": 520443, "Kotlin": 390011} | @file:Suppress("SpellCheckingInspection", "unused")
package api.type
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonProperty
/**
* This object represents a shipping address.
*
* @param[countryCode] ISO 3166-1 alph... | 0 | HTML | 0 | 1 | 1d72031badfcb48f1093b18fafc175679e55fe1e | 1,190 | telebotKt | Do What The F*ck You Want To Public License |
app/src/main/java/com/example/androiddevchallenge/utils/TheKtx.kt | wajahatkarim3 | 344,743,346 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 8 | 13d6c543c23c0ac1e4c6f4258a8314b2bee725ef | 957 | letime | Apache License 2.0 |
frameanimation/src/main/java/com/yuyashuai/frameanimation/repeatmode/RepeatInfinite.kt | yuyashuai | 74,862,716 | false | null | package com.yuyashuai.frameanimation.repeatmode
import com.yuyashuai.frameanimation.FrameAnimation
/**
* @author yuyashuai 2019-05-08.
* the original order 1 2 3 4 5
* playing order 1 2 3 4 5 1 2 3 4 5 ...
*/
class RepeatInfinite : RepeatStrategy {
private lateinit var paths: MutableList<FrameAnimation.Pat... | 10 | null | 45 | 296 | a076d9c34a971b01b91b708c4c4900ae732b1c87 | 752 | FrameAnimation | Apache License 2.0 |
sample-android/src/main/kotlin/com/github/panpf/zoomimage/sample/ui/base/LifecycleAndroidViewModel.kt | panpf | 647,222,866 | false | {"Kotlin": 3004367, "Shell": 724} | /*
* Copyright (C) 2022 panpf <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 2 | Kotlin | 7 | 98 | bdc00e862498830df39a205de5d3d490a5f04444 | 3,043 | zoomimage | Apache License 2.0 |
core/src/main/kotlin/com/fibelatti/core/extension/View.kt | fibelatti | 158,119,258 | false | null | @file:Suppress("TooManyFunctions")
package com.fibelatti.core.extension
import android.animation.LayoutTransition
import android.content.Context
import android.content.res.TypedArray
import android.graphics.drawable.Drawable
import android.net.Uri
import android.text.Editable
import android.text.TextWatcher
import an... | 0 | Kotlin | 0 | 4 | 8689cb557e91c9ac4809ab1820bf6f257d96711f | 19,674 | fibelatti-core | Apache License 2.0 |
src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt | keiyoushi | 740,710,728 | false | {"Kotlin": 6020795, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.all.imhentai
import eu.kanade.tachiyomi.multisrc.galleryadults.GalleryAdults
import eu.kanade.tachiyomi.multisrc.galleryadults.cleanTag
import eu.kanade.tachiyomi.multisrc.galleryadults.imgAttr
import okhttp3.FormBody
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.OkHtt... | 301 | Kotlin | 323 | 1,404 | 1adfe6d606802149f4a71965ab71a361d19226b9 | 5,853 | extensions-source | Apache License 2.0 |
app/src/main/java/com/foodiedev/useractivitydetection/util/Constants.kt | sriharsha1507 | 288,730,748 | false | null | package com.foodiedev.useractivitydetection.util
object Constants {
const val REQUEST_CODE_ACTIVITY_TRANSITION = 123
const val REQUEST_CODE_INTENT_ACTIVITY_TRANSITION = 122
const val ACTIVITY_TRANSITION_NOTIFICATION_ID = 111
const val ACTIVITY_TRANSITION_STORAGE = "ACTIVITY_TRANSITION_STORAGE"
} | 1 | Kotlin | 4 | 6 | d22cb5e5bc08438ba354a14def48fbace1630138 | 313 | user_activity_detection | MIT License |
app/src/main/java/com/bonacode/securehome/ui/feature/main/controlpanel/partition/ControlPanelPartitionFunctionsViewModel.kt | clooss95 | 327,694,923 | false | null | package com.bonacode.securehome.ui.feature.main.controlpanel.partition
import androidx.hilt.Assisted
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import com.bonacode.securehome.domain.feature.action.usecase.partition.BuildStartAlarmG... | 0 | Kotlin | 1 | 2 | 1c51da1e85e1a80aac491abe07b878ed61fe032d | 7,875 | secure_home_2.0 | MIT License |
library/src/commonMain/kotlin/schema/parse/SchemaParser.kt | CloudPlayer114514 | 831,723,741 | false | {"Kotlin": 48631} | package com.yunbao.kotlin.schema.schema.parse
import com.yunbao.kotlin.schema.schema.info.SchemaInfo
import com.yunbao.kotlin.schema.schema.info.schemaInfoFactory
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.json.JsonEl... | 0 | Kotlin | 0 | 2 | 86cea487b8f7482f6ff1d7a382131038c05441af | 1,241 | kotlin-json-schema | Apache License 2.0 |
app/src/main/java/com/ibtikar/mvvm_starter_koin_coroutines/ui/base/BaseActivity.kt | KhaledSherifSayed | 390,161,266 | false | null | package com.ibtikar.mvvm_starter_koin_coroutines.ui.base
import android.content.Context
import android.content.res.Configuration
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
i... | 0 | Kotlin | 0 | 0 | 303c848269194d0407a2a5cb582546d987cfd6eb | 2,546 | NewsApp | The Unlicense |
frogothemoviedbapi/src/main/java/com/frogobox/frogothemoviedbapi/data/response/SearchMovies.kt | amirisback | 244,968,500 | false | null | package com.frogobox.frogothemoviedbapi.data.response
import com.frogobox.frogothemoviedbapi.data.model.SearchMovieResult
data class SearchMovies(
val page: Int?,
val results: List<SearchMovieResult>?,
val total_pages: Int?,
val total_results: Int?
) | 0 | Kotlin | 2 | 17 | ba2dd472185525a52c505e353c04fc5cc8f501b0 | 268 | consumable-code-movie-tmdb-api | Apache License 2.0 |
sample-app/src/main/kotlin/com/example/sampleapp/repository/MuserRepository.kt | gebogebogebo | 494,746,279 | false | {"Kotlin": 17049, "HTML": 2079} | package com.example.sampleapp.repository
import org.springframework.data.jpa.repository.JpaRepository
/**
* SpringBootとJPAを使ったRepositoryクラス
* Spring Data JPAで提供されているAPIではできない処理を記述する
*/
interface MuserRepository : JpaRepository<Muser, String> {
// テーブルへアクセスするための基本的な処理はJPAが用意してくれているのでSQLを書かなくてよい
// JPAのJpaRe... | 0 | Kotlin | 0 | 0 | 0cd03ffa0736f30c923f3ff6b0036686e7f8f933 | 444 | spring-security-re-auth | MIT License |
lib_web/src/main/java/com/lqk/web/bean/InfoBean.kt | liqiankun1229 | 540,239,882 | false | null | package com.lqk.web.bean
import android.os.Parcel
import android.os.Parcelable
/**
* @author LQK
* @time 2020/6/16 17:39
* @remark
*/
class InfoBean : Parcelable {
var userType: Int = 0
var userName: String = ""
var userSex: String = ""
constructor() : this(0, "", "")
constructor(parcel: Parc... | 0 | Kotlin | 0 | 0 | 31049e978a21a3c3f152150615ae177885e6589c | 1,103 | ComposeCalculator | Apache License 2.0 |
client/slack-spring-api-client/src/main/kotlin/com/kreait/slack/api/spring/group/groups/SpringGroupsMethodGroup.kt | ramyaravi-opsmx | 317,497,071 | true | {"Kotlin": 1216622, "Shell": 935} | package com.kreait.slack.api.spring.group.groups
import com.kreait.slack.api.group.groups.GroupsArchiveMethod
import com.kreait.slack.api.group.groups.GroupsCreateChildMethod
import com.kreait.slack.api.group.groups.GroupsCreateMethod
import com.kreait.slack.api.group.groups.GroupsHistoryMethod
import com.kreait.slack... | 0 | null | 0 | 0 | d2eb88733f0513665b8a625351b599feba926b69 | 3,252 | slack-spring-boot-starter | MIT License |
src/main/kotlin/no/nav/familie/ef/sak/opplysninger/søknad/domain/Søknadsverdier.kt | navikt | 206,805,010 | false | {"Kotlin": 3668552, "Gherkin": 163894, "Dockerfile": 180} | package no.nav.familie.ef.sak.opplysninger.søknad.domain
import no.nav.familie.ef.sak.opplysninger.søknad.mapper.DokumentasjonMapper
import no.nav.familie.ef.sak.vilkår.dto.DokumentasjonDto
import java.time.LocalDateTime
import java.time.YearMonth
data class Søknadsverdier(
val barn: Set<SøknadBarn>,
val føds... | 7 | Kotlin | 2 | 0 | f61f94927ab9d746034e0dbe54c822ecce427973 | 4,029 | familie-ef-sak | MIT License |
implementation/src/test/kotlin/com/aoc/intcode/droid/cryo/droid/InventoryTest.kt | TomPlum | 227,887,094 | false | null | package com.aoc.intcode.droid.cryo.droid
import assertk.assertThat
import assertk.assertions.isEqualTo
import assertk.assertions.isNull
import com.aoc.intcode.droid.cryo.droid.Inventory
import com.aoc.intcode.droid.cryo.droid.Item
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
class InventoryTe... | 7 | null | 1 | 2 | 12d47cc9c50aeb9e20bcf110f53d097d8dc3762f | 2,261 | advent-of-code-2019 | Apache License 2.0 |
features-home/src/main/kotlin/com/apoorvgupta/splash/viewmodel/SplashViewModel.kt | apoorvgupta25 | 797,378,079 | false | {"Kotlin": 151081} | package com.apoorvgupta.splash.viewmodel
import com.apoorvgupta.core.base.BaseViewModel
import com.apoorvgupta.splash.intents.SplashIntent
import com.apoorvgupta.splash.intents.SplashNavEffect
import com.apoorvgupta.splash.intents.SplashViewState
import com.apoorvgupta.splash.intents.SplashViewStates
import dagger.hil... | 4 | Kotlin | 0 | 0 | a30e1aa8d6fd84273adecf7f97fc9e5691158bc7 | 1,466 | news-shots-android-app | The Unlicense |
app/src/main/java/com/gradientepolimorfico/monedapp/Entities/Divisa.kt | UTN-FRBA-Mobile | 149,198,446 | false | null | package com.gradientepolimorfico.monedapp.Entities
import android.text.TextUtils
import com.github.mikephil.charting.data.Entry
import com.gradientepolimorfico.monedapp.Services.ExchangeRateResponse
import java.util.*
class Divisa {
var codigo: String? = null
var fecha: String? = null
var valor: Float? =... | 0 | Kotlin | 0 | 0 | c07da5c90712aa51848bf93a9f503b9e1c3fdc93 | 2,125 | DivisApp | MIT License |
app/src/main/java/com/iteration/koreanlearningpal/module/Word.kt | EspylArva | 373,602,069 | false | null | package com.iteration.koreanlearningpal.module
class Word(
val koreanWord : String,
val frenchWord : String) {
} | 0 | Kotlin | 0 | 0 | ccf108e5dae36a952f1d9db97562dd25d557dfb5 | 122 | Korean-Learning-Pal | MIT License |
app/src/main/java/be/hogent/faith/faith/skyscraper/goal/ActionAdapter.kt | hydrolythe | 353,694,404 | false | null | package be.hogent.faith.faith.skyscraper.goal
import android.graphics.drawable.GradientDrawable
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.databinding.DataBindingUtil
import and... | 0 | Kotlin | 0 | 0 | 14c6aec4b3c0a42bc73a7f779964d166fffeea20 | 4,501 | FAITHAndroid | The Unlicense |
application/src/test/kotlin/com/lukinhasssss/admin/catalogo/application/UseCaseTest.kt | Lukinhasssss | 551,493,782 | false | null | package com.lukinhasssss.admin.catalogo.application
import com.lukinhasssss.admin.catalogo.domain.Identifier
import io.mockk.clearAllMocks
import io.mockk.junit5.MockKExtension
import org.junit.jupiter.api.extension.BeforeEachCallback
import org.junit.jupiter.api.extension.ExtendWith
import org.junit.jupiter.api.exten... | 0 | Kotlin | 0 | 3 | 4dbe90c6032a4729e5aa4b0a52d3d54dcb74b7e0 | 739 | admin-catalogo-de-videos-kotlin | MIT License |
smithy-swift-codegen/src/test/kotlin/serde/xml/TimeStampEncodeGenerationTests.kt | smithy-lang | 242,852,561 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package serde.xml
import MockHTTPRestXMLProtocolGenerator
import TestContext
import defaultSettings
import getFileContents
import io.kotest.matchers.string.shouldContainOnlyOnce
import org.junit.jupite... | 8 | null | 28 | 28 | f259354f4e0db3066a8d48c9b4f9974a0a355610 | 5,339 | smithy-swift | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersionProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.elasticbeanstalk
import io.cloudshiftdev.awscdk.IResolvable
import io.cloudshiftdev.awscdk.common.Cdk... | 1 | Kotlin | 0 | 4 | ddf2bfd2275b50bb86a667c4298dd92f59d7e342 | 8,197 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/ttenushko/androidmvi/demo/domain/weather/model/Place.kt | ttenushko | 210,157,066 | false | null | package com.ttenushko.androidmvi.demo.domain.weather.model
import com.google.gson.annotations.SerializedName
data class Place(
@field:SerializedName("id") val id: Long,
@field:SerializedName("name") val name: String,
@field:SerializedName("countyCode") val countyCode: String,
@field:SerializedName("lo... | 0 | Kotlin | 0 | 0 | bba82b6b28f53b88de21d273f56d334a1595a70a | 353 | android-mvi | Apache License 2.0 |
router/src/main/java/com/kotlin/android/router/provider/IBaseProvider.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.router.provider
import android.content.Context
import com.alibaba.android.arouter.facade.template.IProvider
/**
* 创建者: zl
* 创建时间: 2020/6/5 10:11 AM
* 描述: 先空着,后续根据具体情况进行扩展
*/
interface IBaseProvider : IProvider{
override fun init(context: Context?) {
}
} | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 295 | Mtime | Apache License 2.0 |
idea/tests/testData/indentationOnNewline/emptyParameters/EmptyParameterInSetter.after.kt | JetBrains | 278,369,660 | false | null | class Test {
var a: Boolean
get() = false
set(
<caret>
)
}
// SET_FALSE: ALIGN_MULTILINE_METHOD_BRACKETS
// IGNORE_FORMATTER | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 165 | intellij-kotlin | Apache License 2.0 |
sdks/kotlin/registry_api/v1/ResolutionMetadataDidUrlKt.kt | knox-networks | 595,429,463 | false | {"Rust": 17246636, "C++": 6138133, "C#": 3083132, "JavaScript": 2183132, "TypeScript": 1665259, "Kotlin": 1249671} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: registry_api/v1/registry.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package registry_api.v1;
@kotlin.jvm.JvmName("-initializeresolutionMetadataDidUrl")
public inline f... | 0 | Rust | 1 | 0 | 16af58a5dc1e9e51859be4a6e0f6791b7adcb2f2 | 3,426 | grpc-sdks | Apache License 2.0 |
game-api/src/main/java/org/runestar/client/game/api/PlayerAppearance.kt | forsco | 177,540,856 | true | {"Kotlin": 1368739, "Java": 984619} | package org.runestar.client.game.api
import org.runestar.client.game.raw.access.XPlayerAppearance
import java.util.*
inline class PlayerAppearance(val accessor: XPlayerAppearance) {
val items: Map<EquipmentSlot, Int> get() {
return EnumMap<EquipmentSlot, Int>(EquipmentSlot::class.java).apply {
... | 0 | Kotlin | 0 | 0 | b15c07570af82377bcd2be48b00a5e9708be08ab | 1,580 | client | MIT License |
app/src/main/java/com/pigeoff/rss/db/RSSDbItem.kt | 16arpi | 357,496,459 | false | null | package com.pigeoff.rss.db
import androidx.room.*
@Entity
data class RSSDbItem (
@PrimaryKey(autoGenerate = true) var id: Int = 0,
//Channel
var channelId: Int = 0,
var channelUrl: String = "",
var channelTitle: String = "",
var channelDescription: String = "",
var channelImageUrl: String ... | 1 | Kotlin | 1 | 1 | e38cb930fdd511269f8dc6549a8a569a8996f5b5 | 887 | Fox-RSS | Apache License 2.0 |
app/src/main/java/com/pigeoff/rss/db/RSSDbItem.kt | 16arpi | 357,496,459 | false | null | package com.pigeoff.rss.db
import androidx.room.*
@Entity
data class RSSDbItem (
@PrimaryKey(autoGenerate = true) var id: Int = 0,
//Channel
var channelId: Int = 0,
var channelUrl: String = "",
var channelTitle: String = "",
var channelDescription: String = "",
var channelImageUrl: String ... | 1 | Kotlin | 1 | 1 | e38cb930fdd511269f8dc6549a8a569a8996f5b5 | 887 | Fox-RSS | Apache License 2.0 |
sketch-core/src/androidTest/kotlin/com/github/panpf/sketch/core/test/request/DownloadResultTest.kt | panpf | 14,798,941 | false | null | /*
* Copyright (C) 2022 panpf <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 7 | null | 309 | 1,978 | 82ffde1ff148311bb5b36eb70a4c82224d1f3af4 | 1,679 | sketch | Apache License 2.0 |
src/main/java/org/mtransit/android/ui/news/details/NewsDetailsFragment.kt | mtransitapps | 24,649,585 | false | null | @file:JvmName("NewsDetailsFragment") // ANALYTICS
package org.mtransit.android.ui.news.details
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.os.bundleOf
import androidx.core.view.isVisible
import androidx.fragment.app.viewModels
impo... | 4 | Java | 4 | 32 | 3018463656aedb986066ca2c59f925d062a5782a | 8,904 | mtransit-for-android | Apache License 2.0 |
vico/core/src/main/java/com/patrykandpatrick/vico/core/collections/ArrayDelegates.kt | patrykandpatrick | 338,848,755 | false | null | /*
* Copyright 2022 by <NAME> and <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 ... | 8 | Kotlin | 95 | 978 | 3e24d5d78b35b51eb186dbedcae4d81101fd1b9d | 1,372 | vico | Apache License 2.0 |
app/src/main/kotlin/com/madness/collision/unit/UnitsAdapter.kt | HardikDG | 290,127,452 | true | {"Kotlin": 1065746, "Java": 46700} | /*
* Copyright 2020 Clifford Liu
*
* 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 | null | 0 | 0 | 1689a11f9f659500ab87751ffdb9612f2bc734cd | 2,975 | boundo | Apache License 2.0 |
chasm/src/commonMain/kotlin/io/github/charlietap/chasm/embedding/transform/ImportableMapper.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 2038087, "WebAssembly": 45714} | package io.github.charlietap.chasm.embedding.transform
import io.github.charlietap.chasm.embedding.shapes.Function
import io.github.charlietap.chasm.embedding.shapes.Global
import io.github.charlietap.chasm.embedding.shapes.Importable
import io.github.charlietap.chasm.embedding.shapes.Memory
import io.github.charlieta... | 5 | Kotlin | 3 | 67 | dd6fa51262510ecc5ee5b03866b3fa5d1384433b | 1,009 | chasm | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.