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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbEngineVersion.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.rds
import io.cloudshiftdev.awscdk.common.CdkObject
import kotlin.String
/**
* The versions for the... | 1 | Kotlin | 0 | 4 | 305b2af4703c09194822c8ad2c508fdfeb021cc5 | 14,379 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/soup/nolan/ui/splash/SplashFragment.kt | NolanApp | 197,888,252 | false | null | package soup.nolan.ui.splash
import android.animation.Animator
import android.content.Context
import android.os.Bundle
import android.view.View
import android.view.animation.OvershootInterpolator
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.FragmentN... | 1 | Kotlin | 2 | 9 | 1c7d166034e19ca5774cab43d14a425fdc6fe03e | 3,383 | Nolan-Android | Apache License 2.0 |
uikit/src/main/java/com/sendbird/uikit/consts/CreatableChannelType.kt | sendbird | 350,188,329 | false | null | package com.sendbird.uikit.consts
/**
* The creatable channel type in the UIKit
*
* @since 1.2.0
*/
enum class CreatableChannelType {
/**
* Normal group channel type
*/
Normal,
/**
* Super group channel type
*/
Super,
/**
* Broadcast channel type
*/
Broadcast... | 1 | null | 43 | 39 | 8319e300cee44d7cada8dd172f3db38cbd4f13a0 | 323 | sendbird-uikit-android | MIT License |
security/src/main/java/com/root/security/encoding/hex/HexDecoder.kt | adessoTurkey | 246,803,496 | false | {"Kotlin": 262786, "Shell": 866} | package com.root.security.encoding.hex
import com.root.security.encoding.Decoder
/**
* @author haci
* @version 0.0.1
* @since 0.0.1
* Adesso Security Module.
* created on 21.11.2021
*/
class HexDecoder : Decoder {
override fun decode(encoded: String): ByteArray =
encoded.chunked(2).map { it.toInt(1... | 31 | Kotlin | 13 | 35 | b34346a815204c966311f0c879b66e05a10eab13 | 350 | android-sample-app | Apache License 2.0 |
game/src/main/kotlin/org/rsmod/game/model/clock/ClockMap.kt | rsmod | 293,875,986 | false | {"Kotlin": 812861} | package org.rsmod.game.model.clock
import org.rsmod.game.model.vars.VariableMap
public class ClockMap(private val delegate: VariableMap) : MutableMap<Int, Int> by delegate
| 2 | Kotlin | 63 | 79 | e1e1a85d7a4d1840ca0738e3401d18ee40424860 | 174 | rsmod | ISC License |
bindings-graalvm240/src/jvmMain/kotlin/host/module/emscripten/function/EmscriptenConsoleError.kt | illarionov | 848,247,126 | false | {"Kotlin": 993693, "TypeScript": 3148, "CSS": 1042, "FreeMarker": 450, "JavaScript": 89} | /*
* Copyright 2024, the wasi-emscripten-host 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 at.released.weh.bindings.graalvm240.host.m... | 0 | Kotlin | 0 | 2 | eaa94b81d4da64d2ea763eb2cfe61a386d56f092 | 1,623 | wasi-emscripten-host | Apache License 2.0 |
examples/kotlin-pingpong/src/main/kotlin/io/cloudstate/examples/pingpong/PingPongEntity.kt | cloudstateio | 229,098,795 | false | {"Gradle Kotlin DSL": 7, "Markdown": 8, "Shell": 2, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 5, "INI": 2, "Protocol Buffer": 8, "Kotlin": 27, "Java": 10, "Makefile": 1, "JSON": 1, "AsciiDoc": 10} | package io.cloudstate.examples.pingpong
import com.google.protobuf.Empty
import io.cloudstate.javasupport.EntityId
import io.cloudstate.javasupport.eventsourced.*
@EventSourcedEntity
class PingPongEntity(@param:EntityId private val entityId: String) {
private var sentPings = 0
private var seenPings = 0
p... | 8 | Kotlin | 5 | 8 | e99e1035398a865d618020253580609feb080869 | 2,757 | kotlin-support | Apache License 2.0 |
analysis/analysis-api/testData/components/resolver/singleByPsi/typeAlias/missingDependency/sources/FunctionListAliasUnresolvedListAlias.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // IGNORE_FE10
// MODULE: dependency1
// MODULE_KIND: Source
// FILE: FunctionAlias.kt
package dependency1
typealias FunctionAlias = (String) -> Int
// MODULE: dependency2
// MODULE_KIND: Source
// FILE: ListAlias.kt
package dependency2
typealias ListAlias<A> = List<A>
// MODULE: dependency3(dependency1, dependenc... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 674 | kotlin | Apache License 2.0 |
usekase-rx/src/main/kotlin/guru/stefma/cleancomponents/usecase/rx/MaybeUseCase.kt | henrypra | 193,890,764 | true | {"Kotlin": 25761} | package guru.stefma.cleancomponents.usecase.rx
import io.reactivex.Maybe
/**
* A extension over the generic [RxUseCase] which wrap a [result][R] into a [Maybe] instance.
*
* It will use the provided [executionScheduler] and [postExecutionScheduler] as
* [Maybe.subscribeOn] and [Maybe.observeOn].
*
* @param P th... | 0 | Kotlin | 0 | 0 | 3ba4e992d1f93d2502b493b01ae4f46213b0d277 | 653 | UseKase | MIT License |
plugins/gradle/testSources/org/jetbrains/plugins/gradle/testFramework/fixtures/impl/graldeJvm/GradleJvmResolver.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.gradle.testFramework.fixtures.impl.graldeJvm
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.ap... | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 3,768 | intellij-community | Apache License 2.0 |
src/main/kotlin/nullable/SafeCalls.kt | softbluecursoscode | 603,710,984 | false | {"Kotlin": 30194} | package nullable
fun main() {
//val s1: String? = "abcde"
val s1: String? = null
println(s1)
val s2 = s1?.uppercase()
println(s2)
val s3 = s2?.reversed()
println(s3)
val l = s3?.length
println(l)
}
| 0 | Kotlin | 2 | 5 | d1685053cad799d678364687ea0977d9c727b14d | 239 | kotlin | MIT License |
app/src/main/java/com/yusuf/yusuf_mucahit_solmaz_final/presentation/authPage/state/SessionState.kt | Yusuf-Solmaz | 815,625,981 | false | {"Kotlin": 177426} | package com.yusuf.yusuf_mucahit_solmaz_final.presentation.authPage.state
import com.yusuf.yusuf_mucahit_solmaz_final.data.datastore.model.CurrentUser
data class SessionState(
val user: CurrentUser? = null,
val isLoading: Boolean = false,
val error: String? = null
) | 0 | Kotlin | 0 | 1 | 24b65e7e12a40cbc231b48ac68722012d9247126 | 279 | Turkcell-Final-Project | Apache License 2.0 |
core/testdata/format/multiplatform/packagePlatformsFromMembers/jvm.kt | Kotlin | 21,763,603 | false | null | package foo.bar
fun buz() {}
| 372 | null | 8 | 2,799 | ed6c67bd55ad0211b9be40dda3027340eecd5919 | 30 | dokka | Apache License 2.0 |
app/src/main/kotlin/id/android/anvil/home/data/HomeResponse.kt | budioktaviyan | 289,841,025 | false | null | package id.android.anvil.home.data
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class HomeResponse(
@SerialName("results")
val results: List<Result>?) {
@Serializable
data class Result(
@SerialName("id")
val id: Long?,
@SerialName("title")
... | 0 | Kotlin | 1 | 8 | 95b229edb583a27b2a25d779a8b3ea7e9aa81a13 | 593 | anvil-sample | MIT License |
src/main/kotlin/com/timepath/launcher/Protocol.kt | TimePath | 11,700,775 | false | null | package com.timepath.launcher
import java.rmi.Remote
import java.rmi.RemoteException
public interface Protocol : Remote {
throws(RemoteException::class)
public fun newFrame()
}
| 0 | Kotlin | 0 | 1 | a28108a97e84255dda534f7312a0275ececeb02c | 188 | launcher | Artistic License 2.0 |
Edu-Cpp/src/com/jetbrains/edu/cpp/CppCourseProjectGenerator.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.cpp
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.vcs.VcsConfiguration
import com.jetbrains.cmake.CMakeListsFileType
import com.jetbrains.edu.learning.CourseInfoHolder
import com.jetbrains.edu.learning.courseDir
import com... | 5 | Kotlin | 44 | 118 | 39021d5e309c7f2f445176c385ffd2028b1c8a30 | 3,795 | educational-plugin | Apache License 2.0 |
sources/frontend/schema/test/org/jetbrains/amper/frontend/schema/BuildNestedCompletionSchemaTest.kt | JetBrains | 709,379,874 | false | {"Kotlin": 1917051, "Java": 288926, "Shell": 107894, "Batchfile": 66223, "Lex": 16216, "Swift": 14457, "Ruby": 4736, "Dockerfile": 1327} | /*
* Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.amper.frontend.schema
import org.jetbrains.amper.frontend.builders.NestedCompletionSchemaBuilder
import org.jetbrains.amper.frontend.builders.iterateThrough
import org.... | 0 | Kotlin | 30 | 988 | 6a2c7f0b86b36c85e9034f3de9bfe416516b323b | 1,801 | amper | Apache License 2.0 |
form/src/main/java/com/feiyilin/form/FormItem.kt | tianzhuqiao | 286,871,550 | false | null | package com.feiyilin.form
import android.graphics.Color
import android.graphics.RectF
import android.graphics.drawable.Drawable
import android.util.Size
import android.view.Gravity
import android.view.inputmethod.EditorInfo
import androidx.recyclerview.widget.RecyclerView
import java.lang.Exception
import java.text.Nu... | 2 | Kotlin | 2 | 7 | 3d2c8b372b7838b9678bae99b8a2f479f608ec83 | 20,522 | form | Apache License 2.0 |
app/src/main/java/fi/carterm/clearskiesweather/models/api/OneCallWeather.kt | mjcarterdev | 408,523,445 | false | null | package fi.carterm.clearskiesweather.models.api
import com.google.gson.annotations.Expose
/*
Copyright (c) 2021 Kotlin Data Classes Generated from JSON powered by http://www.json2kotlin.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation file... | 0 | Kotlin | 0 | 0 | 447f8e7cf3fce270108b1e23b742ded699930f24 | 1,567 | ClearSkiesWeather | MIT License |
polyfill/src/main/kotlin/me/xx2bab/polyfill/res/ResourceMergePreHookConfigureAction.kt | 2BAB | 150,435,649 | false | null | package me.xx2bab.polyfill.res
import com.android.build.api.variant.ApplicationVariant
import com.android.build.gradle.internal.DependencyResourcesComputer
import com.android.build.gradle.internal.tasks.factory.dependsOn
import com.android.build.gradle.tasks.MergeResources
import me.xx2bab.polyfill.getTaskContainer
im... | 1 | Kotlin | 4 | 68 | ffd96c102aa5c5aa28f3d4e0078298d028d5f1d4 | 2,469 | Polyfill | Apache License 2.0 |
components/gateway/src/integrationTest/kotlin/net/corda/p2p/gateway/messaging/http/TrustStoresMapIntegrationTests.kt | corda | 346,070,752 | false | {"Kotlin": 20275574, "Java": 317447, "Smarty": 115257, "Shell": 54303, "Groovy": 30246, "PowerShell": 6274, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.p2p.gateway.messaging.http
import net.corda.data.identity.HoldingIdentity
import net.corda.libs.configuration.SmartConfigImpl
import net.corda.messaging.api.publisher.config.PublisherConfig
import net.corda.messaging.api.records.Record
import net.corda.data.p2p.GatewayTruststore
import net.corda.mess... | 32 | Kotlin | 25 | 63 | 40262c68452c2548903cabed3f19dca2417fefef | 2,733 | corda-runtime-os | Apache License 2.0 |
ComposePdfViewer/app/src/main/java/dev/seabat/android/composepdfviewer/ui/screens/pdfviewer/PdfViewerViewModel.kt | seabat | 685,948,686 | false | {"Kotlin": 119827} | package dev.seabat.android.composepdfviewer.ui.screens.pdfviewer
import android.graphics.Bitmap
import android.graphics.pdf.PdfRenderer
import android.os.ParcelFileDescriptor
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dev.seabat.android.composepdfviewer.ui.screens.ScreenStateTy... | 0 | Kotlin | 0 | 0 | 74398340d6960c4591382c46474167c7abff8050 | 4,743 | pdf_viewer | Apache License 2.0 |
platform/src/main/kotlin/researchstack/backend/application/port/incoming/dashboard/CreateDashboardUseCase.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297740, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.application.port.incoming.dashboard
interface CreateDashboardUseCase {
suspend fun createDashboard(studyId: String, command: CreateDashboardCommand): String
}
| 1 | Kotlin | 9 | 29 | edd76f219cdb10c8151b8ac14175b1e818a6036a | 194 | backend-system | Apache License 2.0 |
android/features/auth/src/main/kotlin/io/chefbook/features/auth/ui/blocks/SignUpPasswordForm.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.features.auth.ui.blocks
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.... | 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 2,322 | chefbook-mobile | Apache License 2.0 |
android/features/auth/src/main/kotlin/io/chefbook/features/auth/ui/blocks/SignUpPasswordForm.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.features.auth.ui.blocks
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.... | 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 2,322 | chefbook-mobile | Apache License 2.0 |
src/main/kotlin/de/lobbenmeier/stefan/downloadlist/ui/DownloadList.kt | StefanLobbenmeier | 564,771,762 | false | {"Kotlin": 84564} | package de.lobbenmeier.stefan.downloadlist.ui
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.Mo... | 10 | Kotlin | 0 | 21 | c3007567ae7295c7437483318eaa5f1341300203 | 720 | yt-dlp-compose | MIT License |
packages/jetbrains-plugin/src/main/kotlin/com/mongodb/jbplugin/editor/models/DataSourceModel.kt | mongodb-js | 797,134,624 | false | {"Kotlin": 724955, "Java": 3236, "Shell": 1673, "HTML": 254} | package com.mongodb.jbplugin.editor.models
import com.intellij.database.dataSource.LocalDataSource
import com.mongodb.jbplugin.editor.services.*
/**
* Interface for DataSourceComboBox to interact with DataSourceService and EditorService
*/
interface DataSourceModel {
fun getStoredDataSource(): LocalDataSource?
... | 0 | Kotlin | 0 | 4 | b22403a93e5acb4c7d22383efd9d5bb2545369a5 | 639 | intellij | Apache License 2.0 |
app/src/main/java/com/example/assignment_n4/fragments/DashboardFragment.kt | btu-lukakldiashvili | 320,275,721 | false | null | package com.example.assignment_n4.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.assignment_n4.R
class DashboardFragment : Fragment(R.layout.fragment_dashboard) {
override fun on... | 0 | Kotlin | 0 | 0 | fd9246c2443e77a9971ed62312ba986f277cba4f | 534 | Assignment-N4 | MIT License |
src/main/kotlin/no/nav/helse/stonadsstatistikk/OldUtbetalingRiver.kt | navikt | 303,649,527 | false | null | package no.nav.helse.stonadsstatistikk
import no.nav.helse.rapids_rivers.*
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.*
private val log: Logger = LoggerFactory.getLogger("stonadsstatistikk")
internal class OldUtbetalingRiver(
... | 0 | Kotlin | 0 | 0 | 6b59caeeeed8b16a892a04c27ae29522e7396da4 | 3,142 | helse-spre-stonadsstatistikk | MIT License |
app/src/main/java/com/rendox/performancetracker/Routine.kt | DanielRendox | 677,956,193 | false | null | package com.rendox.performancetracker
import kotlin.math.roundToInt
data class Routine(
var name: String,
var progress: Float,
) {
companion object {
fun convertProgressToFloat(progress: Int) =
progress / 100f
fun convertProgressToInt(progress: Float) =
(progress *... | 0 | Kotlin | 0 | 1 | 8832517b574043be2427e4c68103b5af66b3fe32 | 346 | PerformanceTracker | MIT License |
workshopspace/src/test/kotlin/de/tarent/academy/kotlin/SpekCalculatorTest.kt | msch0304 | 137,726,296 | true | {"Maven POM": 4, "Text": 1, "Ignore List": 1, "Markdown": 2, "Kotlin": 49, "YAML": 1, "Java": 2} | package de.tarent.academy.kotlin
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.api.dsl.on
import org.junit.Assert.assertEquals
import org.junit.platform.runner.JUnitPlatform
import org.junit.runner.RunWith
@RunWith(JUnitPla... | 0 | Kotlin | 0 | 0 | 4010ea00f42766e7a3a8fb236a827cef95103bf3 | 1,024 | kotlin-workshop | MIT License |
src/main/java/moe/taiho/minijaba/ast/BinaryExp.kt | swordfeng | 115,345,822 | false | null | package moe.taiho.minijaba.ast
abstract class BinaryExp(var left: Exp, var right: Exp) : Exp()
| 0 | Kotlin | 1 | 4 | 0ba472f11ef99d8711a039be359c787a87d4e13d | 96 | MiniJaba | Do What The F*ck You Want To Public License |
app/src/main/java/com/breezefieldsalesnexara/features/addshop/api/areaList/AreaListRepo.kt | DebashisINT | 853,206,720 | false | {"Kotlin": 15915533, "Java": 1027888} | package com.breezefieldsalesnexara.features.addshop.api.areaList
import com.breezefieldsalesnexara.app.Pref
import com.breezefieldsalesnexara.features.addshop.model.AreaListResponseModel
import io.reactivex.Observable
/**
* Created by Saikat on 14-May-20.
*/
class AreaListRepo(val apiService: AreaListApi) {
fun... | 0 | Kotlin | 0 | 0 | 1f5486857f0f6669d5af4587f2f1c0548697d73d | 500 | Nexara | Apache License 2.0 |
sample/app/src/main/java/com/eightsines/holycyclesample/MainActivity.kt | restorer | 146,767,692 | false | null | package com.eightsines.holycyclesample
import android.arch.lifecycle.Lifecycle
import android.os.Bundle
import android.widget.ScrollView
import com.eightsines.holycycle.app.ViewControllerAppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : ViewControllerAppCompatActivity() {
... | 1 | null | 1 | 1 | 35c5019dc49be57ab446c6d2e4841bce03382f9a | 2,458 | holycycle | MIT License |
src/main/kotlin/wotw/util/MultiMap.kt | ori-community | 387,772,660 | false | {"Kotlin": 480235, "Dockerfile": 790, "Shell": 117} | package wotw.util
class MultiMap<K, V>(private val backingMap: MutableMap<K, MutableSet<V>>): Map<K, MutableSet<V>> by backingMap{
constructor(): this(hashMapOf())
override operator fun get(key: K): MutableSet<V>{
return backingMap.getOrPut(key){ mutableSetOf()}
}
fun add(key: K, value: V){
... | 16 | Kotlin | 2 | 4 | 4ff0cbbd7632665d14d3dae6214e08a334b108b3 | 977 | wotw-rando-server | MIT License |
plugins/evaluation-plugin/core/src/com/intellij/cce/metric/CodeGolfMetrics.kt | n-p-s | 260,671,208 | false | null | package com.intellij.cce.metric
import com.intellij.cce.core.Session
import com.intellij.cce.metric.util.Sample
abstract class CodeGolfMetric<T : Number> : Metric {
protected var sample = Sample()
private fun T.alsoAddToSample(): T = also { sample.add(it.toDouble()) }
protected fun computeMoves(session: Sessi... | 1 | null | 1 | 1 | 4c0b14bf482ceebb6454a367d067be0a748b4e05 | 3,121 | intellij-community | Apache License 2.0 |
compose-destinations-codegen/src/main/java/com/ramcosta/composedestinations/codegen/writers/sub/DestinationContentFunctionWriter.kt | raamcosta | 402,228,168 | false | null | package com.ramcosta.composedestinations.codegen.writers.sub
import com.ramcosta.composedestinations.codegen.commons.*
import com.ramcosta.composedestinations.codegen.model.DestinationGeneratingParams
import com.ramcosta.composedestinations.codegen.model.Importable
import com.ramcosta.composedestinations.codegen.model... | 67 | null | 126 | 3,008 | 15b3a38e70ccf494ace213845d41ed8390e94957 | 6,926 | compose-destinations | Apache License 2.0 |
apps/etterlatte-brev-api/src/main/kotlin/no/nav/etterlatte/brev/brevbaker/BrevbakerService.kt | navikt | 417,041,535 | false | {"Kotlin": 7195015, "TypeScript": 1739060, "Handlebars": 26265, "Shell": 12687, "HTML": 1734, "CSS": 598, "PLpgSQL": 556, "Dockerfile": 547} | package no.nav.etterlatte.brev.brevbaker
import no.nav.etterlatte.brev.Slate
import no.nav.etterlatte.brev.model.BrevID
import no.nav.etterlatte.brev.model.Pdf
import no.nav.etterlatte.libs.common.retryOgPakkUt
import org.slf4j.LoggerFactory
import java.util.Base64
class BrevbakerService(
private val brevbakerKli... | 9 | Kotlin | 0 | 6 | 400cdaeff6d8b4e25ab632de70a6bb627f9138a6 | 1,089 | pensjon-etterlatte-saksbehandling | MIT License |
mockk/common/src/test/kotlin/io/mockk/it/CoroutinesTest.kt | sudheerchilumula | 280,036,342 | true | {"Kotlin": 630076, "C++": 67450, "Java": 50523, "HTML": 14565, "JavaScript": 2101, "Shell": 1970, "CMake": 1067, "CSS": 348} | package io.mockk.it
import io.mockk.*
import io.mockk.impl.InternalPlatform
import kotlin.test.Test
import kotlin.test.assertEquals
class CoroutinesTest {
val mock = mockk<MockCls>()
val spy = spyk<MockCls>()
@Test
fun simpleCoroutineCall() {
coEvery { mock.coOtherOp(1, any()) } answers { 2 +... | 0 | null | 0 | 1 | 9898da50f59ca866bb54701162fbaa4bf71dcc56 | 1,364 | mockk | Apache License 2.0 |
app/src/main/java/me/hexile/odexpatcher/core/SELinux.kt | giacomoferretti | 293,629,531 | false | {"Kotlin": 97502, "Shell": 9943} | /*
* Copyright 2020 Giacomo Ferretti
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 10 | Kotlin | 12 | 70 | fffee1ff0928c6c1cdadb1953bdd47d57c4c3588 | 1,700 | odex-patcher | Apache License 2.0 |
app/src/main/java/com/satvikfoods/features/weather/api/WeatherRepo.kt | DebashisINT | 503,250,676 | false | {"Kotlin": 10746565, "Java": 948000} | package com.satvikfoods.features.weather.api
import com.satvikfoods.base.BaseResponse
import com.satvikfoods.features.task.api.TaskApi
import com.satvikfoods.features.task.model.AddTaskInputModel
import com.satvikfoods.features.weather.model.ForeCastAPIResponse
import com.satvikfoods.features.weather.model.WeatherAPIR... | 0 | Kotlin | 0 | 0 | 9c88ec580f6db313d1518553007a5a4f17bf1388 | 676 | SatvikFoods | Apache License 2.0 |
idea/testData/quickfix/moveToConstructorParameters/memberPropertyInInterface.kt | JakeWharton | 99,388,807 | false | null | // "class org.jetbrains.kotlin.idea.quickfix.InitializePropertyQuickFixFactory$MoveToConstructorParameters" "false"
// ACTION: Make internal
// ACTION: Make private
// ACTION: Make protected
interface A {
<caret>val n: Int
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 228 | kotlin | Apache License 2.0 |
library/src/main/java/com/github/pelmenstar1/rangecalendar/selection/Cell.kt | pelmenstar1 | 454,918,220 | false | null | @file:Suppress("NOTHING_TO_INLINE")
package com.github.pelmenstar1.rangecalendar.selection
@JvmInline
internal value class Cell(val index: Int) {
val gridX: Int
get() = index % 7
val gridY: Int
get() = index / 7
val isUndefined: Boolean
get() = index < 0
val isDefined: Boole... | 6 | Kotlin | 0 | 10 | 10bc2cfc7f27b99fdb63abd41f8cf4e2baca558b | 624 | RangeCalendar | MIT License |
android/app/src/test/java/xyz/loshine/flutternga/GbkDecodeTest.kt | partnercloudsupport | 167,949,868 | true | {"Dart": 133585, "Kotlin": 9887, "Ruby": 2208, "Objective-C": 781} | package xyz.loshine.flutternga
import com.google.gson.Gson
import com.google.gson.JsonObject
import org.junit.Test
import java.nio.charset.Charset
class GbkDecodeTest {
@Test
fun decode() {
val wrong = String("你好,世界".toByteArray(Charset.forName("gbk")), Charset.forName("utf8"))
println(wrong)... | 0 | Dart | 0 | 0 | ba39c6142c2e32f338ecc05cae68f49142e98d6e | 936 | flutter-nga | Apache License 2.0 |
app/src/test/java/aki/pvnghe/unittestapi/MainPresenterTest.kt | nghephamvan | 172,025,358 | false | {"Gradle": 5, "Java Properties": 2, "Markdown": 4, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Git Attributes": 1, "Proguard": 3, "Kotlin": 38, "XML": 38, "Java": 2} | package aki.pvnghe.unittestapi
import aki.pvnghe.domain.users.activity.MainPresenter
import aki.pvnghe.domain.users.activity.MainView
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mock
import org.mockito.Mockito
import org.mockito.Mockito.verify
import org.powermock.m... | 0 | Kotlin | 0 | 1 | af1bfe1e4498b02618dfa9be9d497dd176ba5873 | 989 | android_clean_architecture | The Unlicense |
src/main/kotlin/com/github/dankinsoid/appcodeassets/models/TemplateRenderingIntent.kt | dankinsoid | 505,212,247 | false | {"Kotlin": 87862} | package com.github.dankinsoid.appcodeassets.models
enum class TemplateRenderingIntent {
template,
original;
fun title(): String {
return when (this) {
template -> "Template"
original -> "Original"
}
}
} | 0 | Kotlin | 0 | 0 | 69f835a9d670fd1c7aaf1647e742db6f33f1ec96 | 260 | AppCodeAssets | Microsoft Public License |
app/src/main/java/project/android/rauljcs5/ui/screen/game/GameActivity.kt | RaulJCS5 | 614,399,919 | false | null | package project.android.rauljcs5.ui.screen.game
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.runtime.collec... | 0 | Kotlin | 0 | 0 | 3059e2be33fbedd9daa8fbd5cc1a5e5adf9e3c1e | 2,847 | Tic-tac-toe-android | MIT License |
src/main/kotlin/com/github/lppedd/cc/ui/CCDialogWrapperPeer.kt | lppedd | 208,670,987 | false | null | package com.github.lppedd.cc.ui
import com.github.lppedd.cc.CCIcons
import com.intellij.ide.ui.UISettings
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.openapi.ui.DialogWrapper.IdeModalityType
import com.intellij.openapi.ui.impl.DialogWrapperPeerImpl
impor... | 34 | null | 19 | 333 | 5d55768a47a31a10147e7d69f2be261d028d1b85 | 2,841 | idea-conventional-commit | MIT License |
src/main/kotlin/miragefairy2023/modules/fairy/recipe.kt | MirageFairy | 594,492,956 | false | null | package miragefairy2023.modules.fairy
import miragefairy2023.InitializationScope
import miragefairy2023.modules.CommonFairyEntry
import miragefairy2023.modules.DemonItemCard
import miragefairy2023.modules.MirageFlourCard
import miragefairy2023.modules.MirageFlourItem
import miragefairy2023.modules.passiveskill.BiomePa... | 0 | Kotlin | 0 | 1 | 074271cb721c52a9b7dbd5c0326bdd2f37edbd31 | 5,157 | MirageFairy2023 | Apache License 2.0 |
app/src/main/java/com/awalideck/moovies/popularmovies/LoadStateViewHolder.kt | davidwekesar | 376,802,342 | false | null | package com.awalideck.moovies.popularmovies
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ProgressBar
import android.widget.TextView
import androidx.core.view.isVisible
import androidx.paging.LoadState
import androidx.recyclerview.widget.RecyclerView
import com.awalideck.moovie... | 0 | Kotlin | 0 | 0 | 9de6ffac3c5c79015b958fc9780f9f21518ef3d6 | 1,298 | Moovies | MIT License |
cesium-kotlin/src/main/kotlin/cesium/Axis.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("cesium")
@file:JsNonModule
package cesium
/**
* An enum describing the x, y, and z axes and helper conversion functions.
* @see <a href="https://cesium.com/docs/cesiumjs-ref-doc/global.html#Axis">Online Documentation</a>
*/
external enum class Axis {
... | 0 | null | 5 | 18 | 83aa7866b2353ee7daf1521611bf7f91ea8b0a9b | 481 | types-kotlin | Apache License 2.0 |
src/test/kotlin/SorterTest.kt | MrReallyYo | 610,137,458 | false | null | import com.github.mrreallyyo.api.RuleComparator
import com.github.mrreallyyo.api.definitions.ItemFilter
import java.io.File
import kotlin.test.Test
import kotlin.test.assertNotNull
class SorterTest {
@Test
fun read() {
val test = "merged.xml"
val filter = SorterTest::class.java.classLoader.ge... | 0 | Kotlin | 0 | 0 | ae0fc7081be1f9781ecd4df98de26b299a8c2bf8 | 671 | leitemfilter-api | MIT License |
core/src/main/java/com/crocodic/core/base/fragment/CoreFragment.kt | yzzzd | 392,866,678 | false | null | package com.crocodic.core.base.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
i... | 0 | Kotlin | 3 | 2 | 213646a0f11e572fc63cf953c4fd4b0c00a0d298 | 1,095 | androidcore | Apache License 1.1 |
src/commonTest/kotlin/io/github/optimumcode/json/schema/base/JsonSchemaDraft201909Test.kt | OptimumCode | 665,024,908 | false | {"Kotlin": 438156} | package io.github.optimumcode.json.schema.base
import io.github.optimumcode.json.schema.ErrorCollector
import io.github.optimumcode.json.schema.JsonSchemaLoader
import io.github.optimumcode.json.schema.SchemaType.DRAFT_2019_09
import io.kotest.assertions.assertSoftly
import io.kotest.assertions.withClue
import io.kote... | 4 | Kotlin | 0 | 7 | f1ff524ea30e6b023e28388cb1b21d20b67b8c75 | 4,769 | json-schema-validator | MIT License |
mobile/src/main/java/com/aptopayments/mobile/repository/paymentsources/usecases/GetPaymentSourcesUseCase.kt | ShiftFinancial | 130,093,227 | false | {"Markdown": 2, "Gradle": 5, "Text": 1, "Ignore List": 1, "Kotlin": 492, "JSON": 41, "XML": 2, "YAML": 1} | package com.aptopayments.mobile.repository.paymentsources.usecases
import com.aptopayments.mobile.data.paymentsources.PaymentSource
import com.aptopayments.mobile.interactor.UseCase
import com.aptopayments.mobile.network.NetworkHandler
import com.aptopayments.mobile.repository.paymentsources.PaymentSourcesRepository
i... | 0 | Kotlin | 0 | 5 | f79b3c532ae2dfec8e571b315401ef03d8e507f9 | 872 | shift-sdk-android | MIT License |
app/src/main/java/com/diegomedina/notesapp/presentation/view/home/profile/ProfileFragment.kt | magelac94 | 221,345,236 | false | null | package com.diegomedina.notesapp.presentation.view.home.profile
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.diegomedina.notesapp.R
import com.diegomedina.notesapp.data.c... | 0 | Kotlin | 0 | 0 | 2022fb7fcf73ee876f46852da3f8aebb78d4d055 | 1,729 | Obligatorio2Android | MIT License |
app/src/main/java/com/dede/sonimei/data/search/SearchSong.kt | hushenghao | 133,592,946 | false | null | package com.dede.sonimei.data.search
import android.os.Parcel
import android.os.Parcelable
import com.dede.sonimei.data.BaseSong
import com.dede.sonimei.util.extends.notNull
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import io.reactivex.Observable
/**
* Created by hsh... | 0 | null | 18 | 99 | 5ddce06b4cfde3472156aed0693893e3ada7c09c | 2,223 | music | Apache License 2.0 |
app/src/main/java/com/thejawnpaul/gptinvestor/features/company/presentation/ui/WebViewScreen.kt | jawnpaul | 777,897,163 | false | {"Kotlin": 157930} | package com.thejawnpaul.gptinvestor.features.company.presentation.ui
import android.annotation.SuppressLint
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Arro... | 0 | Kotlin | 2 | 9 | b3e8959714fa70dd4afb89c08e8a468355e1f9a0 | 2,883 | gpt-investor-android | MIT License |
src/main/kotlin/de/pixel/restriddle/challenges/StartChallenge.kt | HacktoberfestMunich | 391,101,431 | false | null | package de.pixel.restriddle.challenges
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
import javax.servlet.http.HttpServletRequest
@Rest... | 0 | Kotlin | 0 | 0 | 6d5332b53fa6f12e6d1cfb1cdbf7f267ecd5d09b | 1,266 | rest-riddle | MIT License |
telegram/src/main/kotlin/tech/stephenlowery/telegram/handlers/joingame/JoinGameCommandHandler.kt | sglowery | 272,840,524 | false | null | package tech.stephenlowery.telegram.handlers.joingame
import com.github.kotlintelegrambot.entities.Message
import tech.stephenlowery.rpgbot.core.game.Game
import tech.stephenlowery.rpgbot.core.game.GameManager
import tech.stephenlowery.telegram.handlers.TelegramCommandHandler
object JoinGameCommandHandler : TelegramC... | 0 | Kotlin | 0 | 0 | f91af53ff194f280173175ee07fca718b9f98453 | 1,254 | stephens-rpg-bot | MIT License |
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/session/NavigationSession.kt | mapbox | 87,455,763 | false | {"Kotlin": 9692008, "Python": 65081, "Java": 36829, "HTML": 17811, "Makefile": 9840, "Shell": 7129} | package com.mapbox.navigation.core.trip.session
import com.mapbox.navigation.core.MapboxNavigation
import com.mapbox.navigation.core.directions.session.RoutesObserver
import com.mapbox.navigation.core.directions.session.RoutesUpdatedResult
import com.mapbox.navigation.core.history.MapboxHistoryRecorder
import com.mapb... | 508 | Kotlin | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 5,641 | mapbox-navigation-android | Apache License 2.0 |
src/test/kotlin/de/quantummaid/documaid/usecases/link/LinkSpecs.kt | quantummaid | 230,588,078 | false | null | /**
* Copyright (c) 2020 <NAME> - https://quantummaid.de/.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you un... | 16 | Kotlin | 0 | 2 | f9cf862e1ab8d539e0ef01227a555121f7354339 | 10,501 | documaid | Apache License 2.0 |
app/src/main/java/br/com/alura/ceep/ui/activity/FormNotaActivity.kt | Luiz-Filipee | 803,032,201 | false | {"Kotlin": 23668} | package br.com.alura.ceep.ui.activity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View.GONE
import android.view.View.VISIBLE
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import br.com.alura.ceep.R
import br.com.alura.cee... | 0 | Kotlin | 0 | 0 | 128ae30b4ea72df0466e22f40ef2d256c913cb57 | 4,443 | CeepApi | MIT License |
extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/intention_action/SnippetType.kt | KyleFin | 392,461,099 | true | {"Dart": 438261, "TypeScript": 33762, "Kotlin": 29254, "CMake": 7001, "C++": 3966, "HTML": 3366, "Ruby": 2684, "Swift": 1678, "Java": 1426, "JavaScript": 1263, "Objective-C": 829, "Shell": 782, "C": 670} | package com.bloc.intellij_generator_plugin.intention_action
enum class SnippetType {
BlocBuilder, BlocListener, BlocProvider, BlocConsumer, RepositoryProvider
} | 0 | null | 0 | 0 | 70eb8ca0b4f34467416e355cb308868e0be0c525 | 165 | bloc | MIT License |
app/src/main/java/br/com/wakim/eslpodclient/ui/settings/view/SettingsActivity.kt | wakim | 52,843,851 | false | null | package br.com.wakim.eslpodclient.ui.settings.view
import android.os.Bundle
import br.com.wakim.eslpodclient.R
import br.com.wakim.eslpodclient.ui.view.BaseActivity
import br.com.wakim.eslpodclient.util.extensions.loadAds
import butterknife.BindView
import com.google.android.gms.ads.NativeExpressAdView
class Settings... | 0 | Kotlin | 1 | 6 | a92dad2832f087f97fcbf9b2b7973a31efde551c | 672 | esl-pod-client | Apache License 2.0 |
src/main/java/io/github/lunarwatcher/aoc/day2/Day2.kt | LunarWatcher | 160,042,659 | false | null | package io.github.lunarwatcher.aoc.day2
import io.github.lunarwatcher.aoc.commons.readFile
import java.lang.RuntimeException
fun day2(part: Boolean){
val ids = readFile("day2part1.txt", String::class.java)
val res = if(!part) day2part1processor(ids) else day2part2processor(ids)
println(res)
}
fun day2pa... | 0 | Kotlin | 0 | 1 | 99f9b05521b270366c2f5ace2e28aa4d263594e4 | 1,540 | AoC-2018 | MIT License |
common_base_ui/src/main/java/com/fido/common/common_base_ui/ext/RecyclerViewExt.kt | SevenUpup | 588,455,697 | false | {"Kotlin": 924080, "Java": 425445, "Groovy": 7694, "Shell": 426} | package com.fido.common.common_base_ui.ext
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.view.View
import android.view.ViewGroup
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.DividerItemDecoration
import a... | 0 | Kotlin | 0 | 2 | 01b0e239a3097da6dadc35606ab1a0eb0154db75 | 16,459 | common_utils | MIT License |
app/src/main/java/com/kerite/pokedex/util/AndroidUtils.kt | Kerite | 535,721,279 | false | {"Kotlin": 187667, "CMake": 1639, "C++": 342} | package com.kerite.pokedex.util
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.core.app.NotificationCompat
fun makeStatusNotification(message: String, context: Context) {
val builder = NotificationCompat.Builder(context, "")
}
fun getDrawableId... | 0 | Kotlin | 0 | 2 | 98758205bdf25480bab8d19d92a0daa839a0e7e2 | 799 | PokeDex-android | Apache License 2.0 |
app/src/main/kotlin/dev/smartification/feature/list/ListViewModel.kt | smartification-dev | 727,231,903 | false | {"Kotlin": 23702} | package dev.smartification.feature.list
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.smartification.feature.list.ListAction.LoadNames
import dev.smartification.reducers.ReducerViewModel
import dev.smartification.reducers.Reducers
import kotlinx.coroutines.flow.MutableSharedFlow
import javax.inject.Inj... | 0 | Kotlin | 0 | 1 | 101c8788cdbdc9a355048f7f568448d757717864 | 588 | reducer-view-model | Apache License 2.0 |
library-base/src/main/java/com/example/fragment/library/base/fragment/BaseFragment.kt | miaowmiaow | 364,865,870 | false | null | package com.example.fragment.library.base.fragment
import android.content.Context.INPUT_METHOD_SERVICE
import android.os.Bundle
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.ImageView
import android.widget.RelativeLayout
import androidx.fragment.app.Fragment
import c... | 0 | null | 135 | 611 | 436b948279190224be49c692c8762e853eb71895 | 1,828 | FragmentProject | Apache License 2.0 |
app/src/main/java/com/sneyder/cryptotracker/ui/news/NewsProvider.kt | Sneyder2328 | 148,389,983 | false | {"Gradle": 3, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "XML": 77, "Java Properties": 1, "JSON": 7, "Kotlin": 124, "Java": 4, "HTML": 3, "PHP": 48, "Markdown": 110, "CSS": 1, "YAML": 1} | /*
* Copyright (C) 2018 <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 wr... | 1 | null | 1 | 1 | b186aa51399d30e951b44bf10f111fb4af205fca | 831 | CryptoTracker | Apache License 2.0 |
gradle-plugin/plugin/src/functionalTest/kotlin/com/emergetools/android/gradle/NoAppProjectPathPluginTest.kt | EmergeTools | 645,957,551 | false | {"Kotlin": 255570} | package com.emergetools.android.gradle
import com.emergetools.android.gradle.base.EmergeGradleRunner
import org.junit.jupiter.api.Test
class NoAppProjectPathPluginTest : EmergePluginTest() {
@Test
fun noAppProjectPath() {
EmergeGradleRunner.create("no-app-project-path")
.withArguments("uploadReleaseAab... | 3 | Kotlin | 1 | 9 | 8174b9c6e2d7791e01363aabd4d287736bfa38c4 | 386 | emerge-android | Apache License 2.0 |
python/src/com/jetbrains/python/packaging/management/PythonRepositoryManager.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.python.packaging.management
import com.intellij.openapi.project.Project
import com.intellij.openapi.projectRoots.Sdk
import com.jetbrains.python.packaging.repository.PyPackageR... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,239 | intellij-community | Apache License 2.0 |
browser-core/src/commonMain/kotlin/nolambda/uibook/clipboard/ClipboardManager.kt | esafirm | 361,358,677 | false | {"Kotlin": 219816, "Ruby": 684, "Shell": 157} | package nolambda.uibook.clipboard
/**
* Interface for managing clipboard
*/
interface ClipboardManager {
fun copyToClipboard(text: String)
}
| 6 | Kotlin | 0 | 72 | cc2ba1acbb2a7cefd92e1261748dddfdd2a75bbe | 149 | compose-ui-book | MIT License |
exSysBar/src/main/java/com/erolc/exbar/WindowInsets.kt | ErolC | 426,540,083 | false | null | package com.erolc.exbar
import android.app.Activity
import android.os.Build
import android.view.View
import android.view.Window
import android.view.WindowInsets
import android.view.WindowInsetsController
import android.widget.FrameLayout
import androidx.annotation.RequiresApi
import androidx.core.view.ViewCompat
impor... | 0 | Kotlin | 0 | 0 | b735bcb6e1768dcfb7f7e702944957f64c9748a9 | 1,712 | ExSystemBar | The Unlicense |
src/main/kotlin/no/nav/helse/spock/PersonPåminnelser.kt | navikt | 222,412,594 | false | {"Kotlin": 61315, "Dockerfile": 169} | package no.nav.helse.spock
import kotliquery.queryOf
import kotliquery.sessionOf
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.MessageContext
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helse.rapids_rivers.River
import org.slf4j.LoggerFactory
import java.time.Loca... | 0 | Kotlin | 0 | 0 | e850715d0db22a6bec0a060f71af254700402b07 | 2,846 | helse-spock | MIT License |
app/src/main/java/edu/stanford/kellenvu/mymaps/models/UserMap.kt | GracelessGhost | 423,344,510 | false | null | package edu.stanford.kellenvu.mymaps.models
import java.io.Serializable
data class UserMap(val title: String, val places: List<Place>) : Serializable | 0 | Kotlin | 0 | 0 | 518b9d89c618c7bff32a6bb43c19cee94cb376ba | 151 | my-maps | Apache License 2.0 |
dynadoc-kotlinserialization/src/test/kotlin/org/dynadoc/serialization/KotlinJsonSerializerTests.kt | pgdoc | 804,607,125 | false | {"Kotlin": 52788} | package org.dynadoc.serialization
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import org.dynadoc.core.Document
import org.dynadoc.core.DocumentKey
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.skyscreamer.jsonassert.JSONAssert
imp... | 0 | Kotlin | 0 | 0 | 1bbe01f14f4802201904a613c0f60d260659f028 | 2,013 | dynadoc | Apache License 2.0 |
packages/library-sync/src/commonMain/kotlin/io/realm/mongodb/internal/CredentialImpl.kt | rbqren000 | 418,789,113 | true | {"Kotlin": 942076, "C++": 50360, "JavaScript": 8846, "Shell": 8282, "SWIG": 7334, "CMake": 4154, "Dockerfile": 2460, "C": 1395} | /*
* Copyright 2021 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | 92d2b7dd64b4a17009acd34aa9811f9f3831cf89 | 1,587 | realm-kotlin | DOC License |
core/data/datasource/src/main/java/com/github/smmousavi/datasource/local/DefaultProductLocalDataSource.kt | smmousavi8872 | 808,052,211 | false | {"Kotlin": 76157} | package com.github.smmousavi.datasource.local
import com.github.smmousavi.database.dao.ProductDao
import com.github.smmousavi.database.entity.ProductEntity
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class DefaultProductLocalDataSource @Inject constructor(private val productDao: ProductDao) :
P... | 0 | Kotlin | 0 | 0 | d3dbb00b0f4268ca6e88f3ab676df966cfcda433 | 1,041 | Hafhashtad | Apache License 2.0 |
SuperShortcutsPhone/src/main/java/net/geekstools/supershortcuts/PRO/ApplicationsShortcuts/Adapters/SelectionListAdapter.kt | GeeksEmpireOfficial | 180,521,200 | false | null | /*
* Copyright © 2020 By Geeks Empire.
*
* Created by Elias Fazel
* Last modified 5/10/20 9:41 AM
*
* Licensed Under MIT License.
* https://opensource.org/licenses/MIT
*/
package net.geekstools.supershortcuts.PRO.ApplicationsShortcuts.Adapters
import android.annotation.SuppressLint
import android.content.Conte... | 0 | null | 1 | 7 | ab21b11d956c504c536d203d7836da067798c3b1 | 12,546 | SuperShortcuts | MIT License |
opengl/src/main/java/jp/eita/canvasgl/glcanvas/GLES20IdImpl.kt | kineita | 259,238,111 | false | {"Kotlin": 332968} | /*
* Copyright [2020 - Present] [<NAME> - 瑛太 (eita)] [kineita (Github)]
*
* 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 requ... | 0 | Kotlin | 0 | 3 | 2f772bd831553553b05bc5f809a38b57d126f82e | 1,618 | android-opengl-view | Apache License 2.0 |
app/src/main/java/com/codepath/wishlist/Wish.kt | AnvitaLingampalli | 540,701,121 | false | {"Kotlin": 5780} | package com.codepath.wishlist
class Wish(
val name: String,
val price: String,
val url: String) {
} | 1 | Kotlin | 0 | 0 | 04dc8c02a0f8df226ff1f200f0ae80c0c9575664 | 112 | Wishlist | Apache License 2.0 |
src/main/kotlin/com/github/lazoyoung/craftgames/game/GameResource.kt | jho5245 | 251,030,107 | true | {"Kotlin": 171861, "Java": 24114, "Groovy": 97} | package com.github.lazoyoung.craftgames.game
import com.github.lazoyoung.craftgames.Main
import com.github.lazoyoung.craftgames.coordtag.AreaCapture
import com.github.lazoyoung.craftgames.coordtag.CoordTag
import com.github.lazoyoung.craftgames.coordtag.TagMode
import com.github.lazoyoung.craftgames.exception.FaultyCo... | 0 | null | 0 | 0 | 7a6f7237091a902d9fe206a1b1140a05f046f61c | 7,607 | CraftGames | MIT License |
src/main/kotlin/org/starlitmc/extensions/BlockPosExt.kt | StarlitMC | 783,358,315 | false | {"Kotlin": 64860, "Java": 3180} | @file:Suppress("UNUSED")
package com.starlitmc.extensions
import net.minecraft.util.math.BlockPos
import net.minecraft.world.World
fun BlockPos.isAir(world: World): Boolean {
return world.getBlockState(this).isAir
}
fun BlockPos.isSolidBlock(world: World): Boolean {
return world.getBlockState(this).isSolidBlo... | 0 | Kotlin | 0 | 0 | fd5d4bae06a5aaa43320b8870110c80045822475 | 805 | StarlitUtils | Creative Commons Zero v1.0 Universal |
core/pokemon-species/src/main/kotlin/com/yerastov/assignment/pokedex/core/pokemon/species/domain/PokemonSpeciesRepository.kt | alterpie | 592,035,814 | false | null | package com.yerastov.assignment.pokedex.core.pokemon.species.domain
import com.yerastov.assignment.pokedex.core.pokemon.species.domain.model.PokemonSpecies
import kotlinx.coroutines.flow.Flow
interface PokemonSpeciesRepository {
fun getAllPokemonSpecies(): Flow<List<PokemonSpecies>>
fun getPokemonSpecies(id:... | 0 | Kotlin | 0 | 0 | f6bb6b082eb8311c12b860b65a33cac54f19c8e9 | 581 | Pokedex | Apache License 2.0 |
postgresql-async/src/main/java/com/github/jasync/sql/db/postgresql/exceptions/ColumnDecoderNotFoundException.kt | godpan | 150,828,573 | true | {"Markdown": 12, "Gradle": 11, "Shell": 6, "Procfile": 1, "Ignore List": 4, "Batchfile": 3, "Text": 4, "YAML": 2, "Java Properties": 4, "Kotlin": 330, "XML": 4, "Java": 7, "Gradle Kotlin DSL": 1, "INI": 1, "SQL": 1, "SVG": 1} | package com.github.jasync.sql.db.postgresql.exceptions
class ColumnDecoderNotFoundException(kind: Int) : IllegalArgumentException("There is no decoder available for kind %s".format(kind))
| 0 | Kotlin | 0 | 1 | 85480063b1eb6f1f2794aa2e19da2e5764890383 | 189 | jasync-sql | Apache License 2.0 |
app/src/main/java/ca/pkay/rcloneexplorer/RemoteConfig/RemoteConfig.kt | GET100PERCENT | 697,317,095 | false | {"Java Properties": 2, "YAML": 4, "Gradle": 5, "Shell": 1, "Roff Manpage": 1, "Markdown": 7, "Batchfile": 1, "Text": 4, "Ignore List": 4, "Proguard": 2, "XML": 243, "Java": 111, "Kotlin": 28} | package ca.pkay.rcloneexplorer.RemoteConfig
import android.content.Context
import android.os.Bundle
import android.util.TypedValue
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.SearchView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
... | 1 | null | 1 | 1 | 4be8c2381e8cb2a01ce21a952411844e512c5b8f | 8,313 | Round-Sync | MIT License |
IIAM/app/src/main/java/com/app/iiam/conditions/ConditionsAdapter.kt | mallardj | 347,413,960 | false | {"Text": 1, "Ignore List": 4, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Batchfile": 1, "JSON": 1, "Proguard": 1, "Kotlin": 91, "XML": 104, "Java": 5} | package com.app.iiam.conditions
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.app.iiam.R
import com.app.iiam.database.entities.Conditions
import com.bumptech.glide.Glide
import kotlinx.... | 0 | JavaScript | 0 | 0 | c41276fd8b7c2708cac541ffcf0aecf1767feb57 | 5,054 | iiam | MIT License |
app/src/main/java/prabin/timsina/documentscanner/MainApplication.kt | prabint | 747,002,474 | false | {"Gradle Kotlin DSL": 4, "INI": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "EditorConfig": 1, "Markdown": 4, "YAML": 2, "Proguard": 2, "XML": 18, "Kotlin": 33, "Java": 173} | package prabin.timsina.documentscanner
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
import org.opencv.android.OpenCVLoader
import timber.log.Timber
@HiltAndroidApp
class MainApplication : Application() {
override fun onCreate() {
super.onCreate()
if (BuildConfig.DEBUG)... | 0 | Java | 0 | 0 | 37293bf194778301e1319b5d9d6ec1884c4525e8 | 781 | DocuScanAndroid | The Unlicense |
samples/packages/metadata-impact-report/src/main/kotlin/com/atlan/pkg/mdir/metrics/AwO.kt | atlanhq | 520,357,429 | false | {"Gradle Kotlin DSL": 35, "Java Properties": 1, "Markdown": 3, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "TOML": 1, "INI": 1, "Pickle": 40, "Kotlin": 190, "JSON": 12, "YAML": 6, "CODEOWNERS": 1, "Dockerfile": 2, "Java": 1185, "XML": 5, "Fluent": 81, "FreeMarker": 11} | /* SPDX-License-Identifier: Apache-2.0
Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.pkg.mdir.metrics
import com.atlan.AtlanClient
import com.atlan.model.assets.Asset
import com.atlan.model.search.FluentSearch.FluentSearchBuilder
import com.atlan.pkg.mdir.Reporter
import com.atlan.pkg.mdir.metrics.AUM.Compani... | 0 | Java | 2 | 3 | 010f6a0e735be4b9f0a1e4e4133aea2fccb5c367 | 1,509 | atlan-java | Creative Commons Attribution 4.0 International |
libmine/src/main/java/com/earth/libmine/record/LibMineRecordActivity.kt | engineerrep | 643,933,914 | false | {"Java": 2291635, "Kotlin": 1651449} | package com.earth.libmine.record
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.alibaba.android.arouter.facade.annotation.Route
import com.earth.libbase.base.BaseA... | 1 | null | 1 | 1 | 415e0417870b6ff2c84a9798d1f3f3a4e6921354 | 2,756 | EarthAngel | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ivschat/FirehoseDestinationConfigurationPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ivschat
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ivschat.CfnLoggingConfiguration
@Generated
public fun buildFirehoseDestinationConfigurationProperty(initializer: @AwsCdkDsl
Cf... | 1 | Kotlin | 0 | 0 | 451a1e42282de74a9a119a5716bd95b913662e7c | 581 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/ru/illine/openai/telegram/bot/model/type/TelegramBotLogLevelType.kt | Illine | 617,508,146 | false | null | package ru.illine.openai.telegram.bot.model.type
import com.github.kotlintelegrambot.logging.LogLevel
enum class TelegramBotLogLevelType(
val logLevel: LogLevel
) {
ALL(LogLevel.All()),
NONE(LogLevel.None),
NETWORK_BASIC(LogLevel.Network.Basic),
NETWORK_HEADERS(LogLevel.Network.Headers),
ERRO... | 0 | Kotlin | 0 | 0 | d407c3482d7b93fbaa30ae5ee2e2b16f80ce38b7 | 341 | openai-telegram-bot | MIT License |
base/src/commonMain/kotlin/tech/alexib/yaba/model/Transaction.kt | ruffCode | 377,878,114 | false | null | /*
* Copyright 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 in wr... | 9 | Kotlin | 1 | 6 | ca86e5a60d0fcc2accfd6c12da07a334558cce0e | 3,404 | yaba-kmm | Apache License 2.0 |
mobile/src/main/java/com/samsung/health/mobile/presentation/ui/ListView.kt | LunaTemmerman | 802,026,065 | false | {"Kotlin": 76597, "Java": 30762} | /*
* Copyright 2023 Samsung Electronics Co., Ltd. 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 0 | Kotlin | 0 | 0 | 290a3cca35bd3a353dff13585a258c0ff1eff513 | 3,124 | Tracker | Apache License 2.0 |
langsmith-java-core/src/main/kotlin/com/langsmith/api/models/PublicDatasetRunStatCreateParams.kt | langchain-ai | 774,515,765 | false | {"Kotlin": 2288977, "Shell": 1314, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
package com.langsmith.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterx... | 1 | Kotlin | 0 | 2 | 922058acd6e168f6e1db8d9e67a24850ab7e93a0 | 24,228 | langsmith-java | Apache License 2.0 |
langsmith-java-core/src/main/kotlin/com/langsmith/api/models/PublicDatasetRunStatCreateParams.kt | langchain-ai | 774,515,765 | false | {"Kotlin": 2288977, "Shell": 1314, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
package com.langsmith.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterx... | 1 | Kotlin | 0 | 2 | 922058acd6e168f6e1db8d9e67a24850ab7e93a0 | 24,228 | langsmith-java | Apache License 2.0 |
app/src/main/java/com/nqmgaming/todoapplab/data/local/MigrationDb.kt | nqmgaming | 810,425,673 | false | {"Kotlin": 67594} | package com.nqmgaming.todoapplab.data.local
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
object MigrationDb {
val MIGRATION_1_2 = object : Migration(1, 2) {
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE `new_todos` (`id` ... | 0 | Kotlin | 0 | 1 | e5ef963b27a6dfdc1d6d5084f5ee867c6d7e73bd | 887 | TodoAppLab | MIT License |
dd-sdk-android/src/main/kotlin/com/datadog/android/core/internal/persistence/file/advanced/CacheFileMigrator.kt | DataDog | 219,536,756 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.core.internal.persistence.file.advanced
... | 28 | Kotlin | 32 | 72 | 51c64b7d7b09049a149fd3e7f473fafa63b10326 | 1,990 | dd-sdk-android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.