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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/tonnoz/errorhandling/ErrorhandlingApplication.kt | tonnoz | 710,644,819 | false | {"Kotlin": 21473} | package com.tonnoz.errorhandling
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class ErrorhandlingApplication
fun main(args: Array<String>) {
runApplication<ErrorhandlingApplication>(*args)
}
| 0 | Kotlin | 0 | 0 | 5413e5a47f363cb0bf6f733b2e4b46e811e8c8ae | 288 | functional-errors-kotlin | MIT License |
src/me/anno/io/base/BaseReader.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.io.base
import me.anno.Build
import me.anno.io.Saveable
import me.anno.utils.types.Strings.isBlank2
import org.apache.logging.log4j.LogManager
import java.io.IOException
abstract class BaseReader {
private val withPtr = ArrayList<Saveable>()
private val withoutPtr = ArrayList<Saveable>()
... | 0 | null | 3 | 23 | 69aa0fd02cd06ce4106542e902fa57df80c0d4cf | 3,736 | RemsEngine | Apache License 2.0 |
tools/api-classes-generator/src/main/kotlin/Graph.kt | JustinMullin | 238,797,090 | true | {"Kotlin": 310490, "C": 6051, "Shell": 1900} | class Graph<T>(elements: List<T>, sortFun: (T, T) -> Boolean) {
val nodes = mutableListOf<Node<T>>()
init {
for (vertex in elements)
nodes.add(Node(vertex))
for (v1 in nodes)
for (v2 in nodes)
if (sortFun(v1.value, v2.value)) {
v2.chil... | 0 | Kotlin | 0 | 0 | debe14101a48ca926477ac333cd465e60a6aebc0 | 2,224 | godot-kotlin | Apache License 2.0 |
graphql/src/test/kotlin/com/joe/quizzy/graphql/groupme/GroupMeServiceTest.kt | josephlbarnett | 257,994,447 | false | null | package com.joe.quizzy.graphql.groupme
import assertk.assertFailure
import assertk.assertThat
import assertk.assertions.contains
import assertk.assertions.hasSize
import assertk.assertions.isEqualTo
import assertk.assertions.messageContains
import com.fasterxml.jackson.databind.ObjectMapper
import com.joe.quizzy.persi... | 3 | Kotlin | 0 | 2 | d3cd4e2e100c253c57ac5b3ee2f8e9a9f113492d | 2,560 | quizzy | Apache License 2.0 |
src/main/kotlin/matt/gui/app/app.kt | mgroth0 | 365,616,809 | false | null | package matt.gui.app
import javafx.application.Platform
import javafx.stage.Screen
import javafx.stage.Window
import matt.async.thread.daemon
import matt.exec.app.App
import matt.file.MFile
import matt.file.commons.LogContext
import matt.file.commons.mattLogContext
import matt.fx.control.fxapp.DEFAULT_THROW_ON_APP_THR... | 0 | Kotlin | 0 | 0 | fa89cf699f29059ed63f64d1ac67ef74ad404bdc | 7,559 | gui | MIT License |
coil-compose-base/src/main/java/coil/compose/ImagePainter.kt | yschimke | 423,768,439 | true | {"Kotlin": 668482, "Shell": 1324} | @file:SuppressLint("ComposableNaming")
@file:Suppress("unused")
package coil.compose
import android.annotation.SuppressLint
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import androidx.compose.runtime.Composable
import android... | 0 | null | 0 | 0 | 7d1cf331a6287b896882ab9a5aab1201c62f9773 | 15,389 | coil | Apache License 2.0 |
app/src/main/java/com/luuu/seven/module/news/ComicNewsFragment.kt | oteher | 288,484,684 | false | {"Kotlin": 223873} | package com.luuu.seven.module.news
import android.arch.lifecycle.Observer
import android.os.Bundle
import android.support.design.widget.AppBarLayout
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentTransaction
import com.luuu.seven.R
import com.luuu.seven.WebActivity
import com.luuu.... | 0 | null | 0 | 0 | 56d8fc35e2cd2281e9b96806f0d35d9e0c02f3e1 | 3,817 | Seven | MIT License |
app/app/src/main/java/com/example/genshin_wiki/repository/interfaces/IWeaponRepository.kt | SlavaPerryAyeKruchkovenko | 600,055,723 | false | null | package com.example.genshin_wiki.repository.interfaces
import com.example.genshin_wiki.data.converters.WeaponConverter
interface IWeaponRepository {
suspend fun getAllWeapons(): List<WeaponConverter>
suspend fun getWeaponById(id: String): WeaponConverter
suspend fun updateWeapon(weapon:WeaponConverter): W... | 0 | Kotlin | 0 | 0 | bd98b658211d3a73f12c96a356af3ad95f18ddd4 | 435 | Genshin_Wiki | MIT License |
presentation/src/main/java/com/anytypeio/anytype/presentation/home/HomeScreenViewModel.kt | anyproto | 647,371,233 | false | null | package com.anytypeio.anytype.presentation.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewModelScope
import com.anytypeio.anytype.analytics.base.Analytics
import com.anytypeio.anytype.analytics.base.EventsDictionary
import com.anytypeio.anytype.core_m... | 45 | null | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 71,635 | anytype-kotlin | RSA Message-Digest License |
src/main/java/com/tang/intellij/lua/index/IndexManager.kt | EmmyLua | 79,353,335 | false | null | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 137 | Kotlin | 278 | 1,628 | 27490df76b8c787b78c0d5e9e7e3c40aef4f637b | 10,178 | IntelliJ-EmmyLua | Apache License 2.0 |
6_technician_android_app/app/src/main/java/com/sap/mobile/mahlwerk/extension/Task+Status.kt | alinamatei-dev | 401,294,557 | false | null | package com.sap.mobile.mahlwerk.extension
import com.sap.cloud.android.odata.odataservice.Task
import com.sap.mobile.mahlwerk.model.FinalReportStatus
import com.sap.mobile.mahlwerk.model.TaskStatus
/** Convenience property for representing the status of a Task */
val Task.taskStatus: TaskStatus
get() {
re... | 1 | null | 1 | 1 | 509637c7be2fbf1b5b606df57b8cec64c6e44b4f | 587 | cloud-mobile-end2end-sample | Apache License 2.0 |
codegen-renderers/src/main/kotlin/io/vrap/codegen/languages/php/model/PhpCollectionRenderer.kt | davidweterings | 179,671,623 | true | {"Kotlin": 182085, "RAML": 37920, "PHP": 1522, "Dockerfile": 201, "Shell": 84} | package io.vrap.codegen.languages.php.model;
import com.google.inject.Inject
import com.google.inject.name.Named
import io.vrap.codegen.languages.php.PhpSubTemplates
import io.vrap.codegen.languages.php.extensions.*
import io.vrap.rmf.codegen.di.VrapConstants
import io.vrap.rmf.codegen.io.TemplateFile
import io.vrap.r... | 0 | Kotlin | 0 | 0 | c38e63b40feffc21d8c2a1862dc40f148534d1d1 | 5,193 | rmf-codegen | Apache License 2.0 |
platform/projectModel-impl/src/com/intellij/workspaceModel/ide/legacyBridge/ModifiableRootModelBridge.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.workspaceModel.ide.legacyBridge
import com.intellij.openapi.projectRoots.ProjectJdkTable
import com.intellij.openapi.projectRoots.Sdk
import com.intellij.ope... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 922 | intellij-community | Apache License 2.0 |
components/core/log/src/androidMain/kotlin/com/flipperdevices/core/log/TimberKtx.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 4167715, "FreeMarker": 10352, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.core.log
import timber.log.Timber
actual inline fun error(logMessage: () -> String) {
if (BuildConfig.INTERNAL) {
Timber.e(logMessage.invoke())
}
}
actual inline fun error(error: Throwable, logMessage: () -> String) {
if (BuildConfig.INTERNAL) {
Timber.e(error, ... | 21 | Kotlin | 174 | 1,528 | 8f293e596741a6c97409acbc8de10c7ae6e8d8b0 | 1,004 | Flipper-Android-App | MIT License |
oneadapter/src/main/java/com/idanatz/oneadapter/external/states/States.kt | HAIWWH | 203,148,196 | true | {"Kotlin": 35462} | package com.idanatz.oneadapter.external.states
import org.jetbrains.annotations.NotNull
sealed class State<M>
abstract class SelectionState<M> : State<M>() {
companion object {
val TAG: String = SelectionState::class.java.simpleName
}
abstract fun selectionEnabled(@NotNull model: M): Boolean
... | 0 | Kotlin | 0 | 0 | bcc0fe2290d092731d3c4b23c4f38d7807a7302a | 383 | OneAdapter | MIT License |
okhttp/src/jvmMain/kotlin/okhttp3/internal/connection/RealConnection.kt | square | 5,152,285 | false | null | /*
* 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 under the Apache License, Version 2.0
* (the "License"); you... | 7 | null | 8732 | 41,455 | b97eeacaa31a2c72a9396f5a4eab82f69b39cda8 | 27,441 | okhttp | Apache License 2.0 |
app/src/main/java/com/example/retrofit/data/User.kt | edgarvaldez99 | 225,200,862 | false | null | package com.example.retrofit.data
import com.google.gson.annotations.SerializedName
data class User(
@SerializedName("id")
val id: String,
@SerializedName("name")
val name: String,
@SerializedName("email")
val email: String,
@SerializedName("username")
val username: String,
@Serial... | 0 | Kotlin | 0 | 0 | b9a9a631ec71bf82d9aa3ff226d64cf48bc5b443 | 827 | android-retrofit-example | MIT License |
app/src/main/java/com/kcteam/features/SearchLocation/SearchLocationFragment.kt | DebashisINT | 558,234,039 | false | null | package com.dryftdynamics.features.SearchLocation
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.location.Address
import android.location.Geocoder
import android.location.Location
import a... | 0 | null | 1 | 1 | e6114824d91cba2e70623631db7cbd9b4d9690ed | 24,966 | NationalPlastic | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Peugeot.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 31,404 | compose-icons | MIT License |
client-android/app/src/main/java/stasis/client_android/StasisClientDependencies.kt | sndnv | 153,169,374 | false | {"Scala": 3373826, "Kotlin": 1821771, "Dart": 853650, "Python": 363474, "Shell": 70265, "CMake": 8759, "C++": 4051, "HTML": 2655, "Dockerfile": 1942, "Ruby": 1330, "C": 691, "Swift": 594, "JavaScript": 516} | package stasis.client_android
import stasis.client_android.lib.ops.backup.Providers as BackupProviders
import stasis.client_android.lib.ops.recovery.Providers as RecoveryProviders
import android.app.Application
import android.content.SharedPreferences
import android.os.HandlerThread
import android.os.Process
import da... | 1 | Scala | 4 | 53 | d7b3002880814039b332b3d5373a16b57637eb1e | 17,043 | stasis | Apache License 2.0 |
app/src/main/java/com/seif/booksislandapp/presentation/home/categories/book_categories/BookCategoriesFragment.kt | SeifEldinMohamed | 570,587,114 | false | null | package com.seif.booksislandapp.presentation.home.categories.book_categories
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findN... | 1 | Kotlin | 0 | 0 | 91cf4e2aeb3032305c61382a36eae95b44e058c0 | 3,902 | Books-Island-App | Apache License 2.0 |
app/src/main/java/br/com/github/ui/common/liveData/LiveDataSingleEvent.kt | petersongfarias | 642,393,181 | false | null | package br.com.github.ui.common.liveData
import androidx.annotation.MainThread
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import timber.log.Timber
import java.util.concurrent.atomic.AtomicBoolean
class LiveDataSingleEvent<T> : MutableLiveData<... | 0 | Kotlin | 0 | 0 | 845820dd6030199458efbf9ed4116a7a7ca315a1 | 1,150 | GitApp | Apache License 2.0 |
src/commonMain/kotlin/mahjongutils/hora/Hora.kt | ssttkkl | 547,654,890 | false | null | @file:OptIn(ExperimentalSerializationApi::class)
package mahjongutils.hora
import kotlinx.serialization.EncodeDefault
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import mahjongutils.hanhu.ChildPoint
import mahjongutils.hanhu.ParentPoint
import mahjongutils.hanhu... | 0 | Kotlin | 0 | 4 | 256395761c45294cf1f385f4f95df82cc886993c | 5,061 | mahjong-utils | MIT License |
support/hibernate-reactive/src/main/kotlin/com/linecorp/kotlinjdsl/support/hibernate/reactive/extension/StageStatelessSessionExtensions.kt | line | 442,633,985 | false | null | package com.linecorp.kotlinjdsl.support.hibernate.reactive.extension
import com.linecorp.kotlinjdsl.SinceJdsl
import com.linecorp.kotlinjdsl.querymodel.jpql.delete.DeleteQuery
import com.linecorp.kotlinjdsl.querymodel.jpql.select.SelectQuery
import com.linecorp.kotlinjdsl.querymodel.jpql.update.UpdateQuery
import com.... | 7 | null | 86 | 705 | 3a58ff84b1c91bbefd428634f74a94a18c9b76fd | 2,298 | kotlin-jdsl | Apache License 2.0 |
example/composeApp/src/commonMain/kotlin/presentation/ui/home/HomeScreen.kt | KryptonReborn | 803,884,694 | false | {"Kotlin": 207738, "Swift": 594, "HTML": 323} | package presentation.ui.home
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.runtime.Composable
import androidx.co... | 1 | Kotlin | 1 | 1 | 11d6d7f09b2e0d157bb91398b4b53a38f564677e | 6,886 | blockfrost-kotlin-sdk | Apache License 2.0 |
src/test/kotlin/care/better/platform/web/template/converter/raw/context/setter/LinkContextSetterTest.kt | better-care | 343,549,109 | false | null | /* Copyright 2021 Better Ltd (www.better.care)
*
* 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 ... | 0 | Kotlin | 1 | 1 | 4aa47c5c598be6687dc2c095b1f7fcee49702a28 | 4,506 | web-template | Apache License 2.0 |
app/src/main/java/id/krafterstudio/androidarch/infrastructure/data/note/NoteApi.kt | sjarifHD | 161,516,916 | false | null | package id.krafterstudio.androidarch.infrastructure.data.note
import io.reactivex.Completable
import io.reactivex.Flowable
import retrofit2.http.GET
import retrofit2.http.POST
/**
* Created by sjarifhd on 11/12/18.
* Innovation, eFishery
*/
interface NoteApi {
@GET("notes")
fun getNotes(): Flowable<Mutable... | 0 | Kotlin | 0 | 1 | cb3942140b978cdcd28fd15edbcbc5c70e2872ba | 505 | AndroidArch | The Unlicense |
lab_assignments/MortgageCalculator/app/src/main/java/com/android/cecs453/mortgagecalculator/Prefs.kt | neoNite77 | 593,476,822 | false | null | package com.android.cecs453.mortgagecalculator
import android.content.Context
import android.content.SharedPreferences
import android.preference.PreferenceManager
import android.util.Log
class Prefs (context1: Context) {
private var context: Context? = context1
private var amount:Float=200000.0f
private va... | 0 | Kotlin | 0 | 0 | a706a171051da6d7a0a53d41f26a713c21ac0ff4 | 1,430 | android_kotlin | Apache License 2.0 |
økonomi/infrastructure/src/test/kotlin/økonomi/infrastructure/kvittering/consumer/lokal/LokalKvitteringJobTest.kt | navikt | 227,366,088 | false | {"Kotlin": 9236522, "Shell": 4372, "TSQL": 1233, "Dockerfile": 800} | package økonomi.infrastructure.kvittering.consumer.lokal
import arrow.core.nonEmptyListOf
import arrow.core.right
import io.kotest.matchers.shouldBe
import no.nav.su.se.bakover.common.Rekkefølge
import no.nav.su.se.bakover.common.UUID30
import no.nav.su.se.bakover.common.domain.Saksnummer
import no.nav.su.se.bakover.c... | 4 | Kotlin | 1 | 1 | ed28832346c1f839ea3a489eae8cc623079a0a2f | 5,292 | su-se-bakover | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Messageremove.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 4,719 | VuesaxIcons | MIT License |
playground/app/src/main/kotlin/io/github/composegears/valkyrie/playground/icons/lazy/outlined/Add.kt | ComposeGears | 778,162,113 | false | {"Kotlin": 777429} | package io.github.composegears.valkyrie.playground.icons.lazy.outlined
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp
import io.github.comp... | 27 | Kotlin | 6 | 321 | f0647081b15b907ad92b38c33eb62179ffd0f969 | 1,110 | Valkyrie | Apache License 2.0 |
lib/src/main/java/net/opatry/ticktick/entity/TaskUpdateRequest.kt | opatry | 739,177,691 | false | null | /*
* Copyright (c) 2024 Olivier Patry
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publi... | 0 | null | 0 | 2 | be4a41bb293395fb6ae0db7709462b8551c41171 | 2,929 | ticktick-kt | MIT License |
fir/src/org/jetbrains/kotlin/idea/quickfix/fixes/WrapWithSafeLetCallFixFactories.kt | JetBrains | 278,369,660 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.quickfix.fixes
import com.intellij.openapi.diagnostic.Logger
import com.intellij.psi.PsiElement
import com.intellij.psi.SmartPsiElementPointer
import com.intellij.... | 284 | null | 5162 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 18,911 | intellij-kotlin | Apache License 2.0 |
iminling-core/src/main/kotlin/com/iminling/core/config/rest/ClientHttpResponseWrapper.kt | konghanghang | 340,850,176 | false | null | package com.iminling.core.config.rest
import com.iminling.common.json.JsonUtil
import com.iminling.core.config.value.ResultModel
import org.springframework.http.HttpHeaders
import org.springframework.http.client.AbstractClientHttpResponse
import org.springframework.http.client.ClientHttpResponse
import org.springframe... | 0 | Kotlin | 0 | 1 | 9f2cb7d85ad7364ff3aa92bfd5eb15db9b23809a | 1,793 | base-iminling-core | MIT License |
instrumented/integration/src/androidTest/kotlin/com/datadog/android/sdk/integration/trace/ConsentPendingNotGrantedTracesTest.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.sdk.integration.trace
import androidx.te... | 44 | Kotlin | 60 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 1,631 | dd-sdk-android | Apache License 2.0 |
library/src/commonMain/kotlin/org/jraf/klibnotion/model/property/spec/RelationPropertySpec.kt | BoD | 330,462,851 | false | {"Kotlin": 634624} | /*
* This source is part of the
* _____ ___ ____
* __ / / _ \/ _ | / __/___ _______ _
* / // / , _/ __ |/ _/_/ _ \/ __/ _ `/
* \___/_/|_/_/ |_/_/ (_)___/_/ \_, /
* /___/
* repository.
*
* Copyright (C) 2021-present Benoit 'BoD<NAME> (<EMAIL>)
*
* Licensed under the Apa... | 26 | Kotlin | 4 | 45 | 5c5c8c1916ae9204913f6fad39d34fa82480ce64 | 1,969 | klibnotion | Apache License 2.0 |
subprojects/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/codegen/ApiTypeProviderTest.kt | JohanWranker | 121,043,472 | false | null | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,663 | null | 4552 | 2 | e089307757e7ee7e1a898e84841bd2100ff7ef27 | 7,324 | gradle | Apache License 2.0 |
educational-core/src/com/jetbrains/edu/learning/VirtualFileExt.kt | JetBrains | 43,696,115 | false | null | @file:JvmName("VirtualFileExt")
package com.jetbrains.edu.learning
import com.intellij.openapi.application.invokeAndWaitIfNeeded
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.editor.Document
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.ex.EditorEx
import com... | 7 | null | 49 | 99 | cfc24fe13318de446b8adf6e05d1a7c15d9511b5 | 9,829 | educational-plugin | Apache License 2.0 |
HW_1/app/src/main/java/com/example/tipcalculator/MainActivity.kt | salcortes96 | 381,897,263 | false | null | package com.example.tipcalculator
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.widget.AbsSeekBar
import android.widget.SeekBar
import kotlinx.android.synthetic.main.activity_main.*
private c... | 0 | Kotlin | 0 | 0 | 4f50bc22c0854d82dd2f384aceaef09523c2a088 | 2,725 | 523-Assignments | MIT License |
src/main/kotlin/no/nav/fo/veilarbregistrering/arbeidsforhold/adapter/ArbeidsforholdDto.kt | navikt | 131,013,336 | false | {"Kotlin": 892366, "PLpgSQL": 853, "PLSQL": 546, "Dockerfile": 87} | package no.nav.fo.veilarbregistrering.arbeidsforhold.adapter
data class ArbeidsforholdDto (
val arbeidsgiver: ArbeidsgiverDto? = null,
val ansettelsesperiode: AnsettelsesperiodeDto? = null,
val arbeidsavtaler: List<ArbeidsavtaleDto> = emptyList(),
val navArbeidsforholdId: Int? = null,
) | 17 | Kotlin | 5 | 6 | 68dabd12cfa5af1eb0a3af33fd422a3e755ad433 | 304 | veilarbregistrering | MIT License |
app/src/androidTest/java/com/duckduckgo/app/email/ui/EmailProtectionSignInViewModelTest.kt | cmonfortep | 252,403,423 | true | {"Gemfile.lock": 1, "Git Config": 1, "Gradle": 44, "Shell": 6, "JSON": 159, "Markdown": 20, "Java Properties": 4, "Text": 28, "Ignore List": 40, "Batchfile": 1, "EditorConfig": 3, "XML": 779, "Ruby": 2, "Kotlin": 1519, "YAML": 15, "CMake": 1, "Proguard": 1, "HTML": 276, "JavaScript": 239, "C++": 1, "INI": 1, "Java": 8,... | /*
* Copyright (c) 2021 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 5 | Kotlin | 671 | 3 | c03633f7faee192948e68c3897c526c323ee0f2e | 9,528 | Android | Apache License 2.0 |
src/main/kotlin/view/utils/elementCss/properties/Grid.kt | mzaart | 160,255,325 | false | null | package view.utils.elementCss.properties
import org.w3c.dom.HTMLElement
import view.utils.extensions.nonNull
/**
* Sets CSS properties related to a CSS grid.
*/
class Grid: CssProperty {
var rowGap: CssDimen = Dimension("grid-row-gap")
var columnGap: CssDimen = Dimension("grid-column-gap")
var rowCoun... | 0 | Kotlin | 0 | 0 | 00a0988c448e4668dc95fa8b74d65ab7c4e2456f | 828 | MaterialDesignJsViewRenderer | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/courthearingeventreceiver/model/HearingType.kt | ministryofjustice | 377,493,306 | false | null | package uk.gov.justice.digital.hmpps.courthearingeventreceiver.model
import com.fasterxml.jackson.annotation.JsonProperty
import jakarta.validation.constraints.NotBlank
data class HearingType(
@NotBlank
@JsonProperty("id")
val id: String,
@NotBlank
@JsonProperty("description")
val description: String,
... | 3 | null | 1 | 1 | 629ae872de45051facfeb2a950ef684b90835e4d | 397 | court-hearing-event-receiver | MIT License |
mobile-ui/src/main/java/com/lekaha/simpletube/ui/model/BrowseDetailViewModel.kt | lekaha | 122,983,306 | false | null | package com.lekaha.simpletube.ui.model
import android.arch.lifecycle.LifecycleObserver
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import com.lekaha.simpletube.presentation.ViewResponse
import com.lekaha.simpletube.presentation.browse.Bro... | 0 | Kotlin | 1 | 2 | 6ee542991cb6d960e30c37b9b279a4f76c37b238 | 2,081 | youtube-like-video-player | MIT License |
app/src/main/java/com/group21/buggycontrol/Bluetooth_handler.kt | danielbara00 | 356,573,998 | false | null | package com.group21.buggycontrol
class Bluetooth_handler {
} | 2 | Kotlin | 0 | 0 | ceef3fbd7246eaa67fe0161f4c4a322d1b16630c | 61 | buggy-remote-controller | The Unlicense |
aoc2020/aoc2020-kotlin/src/main/kotlin/de/havox_design/aoc2020/day17/ConwayCubes.kt | Gentleman1983 | 737,309,232 | false | {"Kotlin": 967489, "Java": 684008, "Scala": 57186, "Groovy": 40975, "Python": 25970} | package de.havox_design.aoc2020.day17
import de.havox_design.aoc.utils.kotlin.helpers.mapToInt
class ConwayCubes(private var filename: String) {
private val data = getResourceAsText(filename)
lateinit var lowerBounds: IntArray
lateinit var upperBounds: IntArray
lateinit var hyperspace: IntTrie
fu... | 3 | Kotlin | 0 | 1 | 9019bc3c7f7822fbf8423cf689ca8ec76759a223 | 3,067 | advent-of-code | Apache License 2.0 |
app/src/main/java/br/com/siecola/androidproject02/network/OauthTokenInterceptor.kt | siecola | 246,328,556 | false | null | package br.com.siecola.androidproject02.network
import android.util.Log
import br.com.siecola.androidproject02.util.SharedPreferencesUtils
import okhttp3.Interceptor
import okhttp3.Response
private const val TAG = "OauthTokenInterceptor"
class OauthTokenInterceptor() : Interceptor {
override fun intercept(chain:... | 0 | Kotlin | 0 | 0 | 57fc03a1b0a49359132ce63abb4ea8fa59124230 | 736 | android_project02 | MIT License |
src/main/kotlin/pebloop/zoocraft/ZoocraftData.kt | Pebloop | 838,973,124 | false | {"Kotlin": 65182, "Java": 12951} | package pebloop.zoocraft
import net.minecraft.entity.Entity
import net.minecraft.entity.EntityType
import net.minecraft.entity.passive.RabbitEntity
import net.minecraft.util.TypeFilter
import pebloop.zoocraft.Zoocraft
class ZoocraftData {
val zooEntities: ArrayList<EntityType<*>> = ArrayList()
init {
... | 0 | Kotlin | 0 | 0 | 8bda77c2403e142c1a7f37aee3b7dba64e8b4db3 | 1,137 | zoocraft | Creative Commons Zero v1.0 Universal |
buildSrc/src/main/java/TestLibs.kt | muryno | 557,522,285 | false | {"Kotlin": 79104} | object TestLibs {
private val v = BuildDepVersions
//TEST -----------------------------------------------------------------------------------------------
const val JUNIT = "junit:junit:4.13.2"
const val CORE_TEST = "androidx.arch.core:core-testing:2.1.0"
const val MOCKITO_INLINE = "org.mockito:mock... | 0 | Kotlin | 10 | 80 | 234d61043893bf451a6c71029fef59d48fb705b1 | 2,076 | CleanArchitecture_Modularization | MIT License |
app/src/main/java/com/nativemobilebits/loginflow/screens/LoginScreen.kt | Adith628 | 680,420,322 | false | null | package com.nativemobilebits.loginflow.screens
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
im... | 0 | Kotlin | 1 | 0 | 9f5015648d6dc237484a61a385ebe253a09dbaac | 3,653 | HospitalFinder | MIT License |
app/src/main/java/com/rphmelo/routeapp/extensions/CommonExtension.kt | Rphmelo | 278,460,237 | false | null | package com.rphmelo.routeapp.extensions
import android.content.Context
import com.rphmelo.routeapp.util.DialogUtil
fun Context.tryRun(message: String? = null, block: () -> Unit) {
try {
block()
} catch (e: Exception) {
DialogUtil.showMessageDialog(this, message)
}
} | 0 | Kotlin | 0 | 0 | 1ab1ff42f92490f1909606c2c4578f3bcfbda307 | 296 | RouteApp | MIT License |
src/lib/kotlin/slatekit-tests/src/test/kotlin/test/setup/SampleRolesByKey.kt | slatekit | 55,942,000 | false | {"Kotlin": 2307012, "Shell": 14611, "Java": 14216, "Swift": 1555} | package test.setup
import kiit.apis.Api
import kiit.apis.Action
import kiit.apis.AuthModes
import kiit.common.auth.Roles
@Api(area = "samples", name = "roleskey", desc = "sample to test security", roles= ["admin"], auth = AuthModes.KEYED)
class SampleRolesByKey {
@Action(desc = "no roles allows access by anyone... | 3 | Kotlin | 13 | 112 | d17b592aeb28c5eb837d894e98492c69c4697862 | 960 | slatekit | Apache License 2.0 |
app/src/main/java/uy/com/temperoni/recipes/ui/model/Recipe.kt | leandro-temperoni | 443,648,979 | false | null | package uy.com.temperoni.recipes.ui.model
/**
* @author <NAME>
*/
data class Recipe(val id: String,
val images: List<String>,
val ingredients: List<Ingredient>,
val introduction: String,
val name: String,
val instructions: List... | 1 | Kotlin | 0 | 0 | 43253a02591b08e04f9be76abd19c58cfa5b422d | 335 | recipes-android | Apache License 2.0 |
src/main/kotlin/services/endpoints/TournamentStubV4.kt | MiniClem | 278,005,521 | false | null | package services.endpoints
import retrofit2.Call
import retrofit2.http.*
interface TournamentStubV4 {
/**
* Create a mock tournament code for the given tournament.
*
* @param count The number of codes to create (max 1000)
* @param tournamentId The tournament ID
*/
@POST("/lol/tournam... | 0 | null | 1 | 4 | 75f0664713ded855285edb79bf844ff2f5be8665 | 3,830 | Kotlin-Riot-Api-Wrapper | Apache License 2.0 |
plugins/evaluation-plugin/src/com/intellij/cce/evaluable/golf/LineCompletionGolfFeature.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 com.intellij.cce.evaluable.golf
import com.intellij.cce.core.Language
import com.intellij.cce.core.Suggestion
import com.intellij.cce.core.SuggestionKind
import com.intellij.cce.evaluable.Ev... | 229 | null | 4931 | 15,571 | 92c8aad1c748d6741e2c8e326e76e68f3832f649 | 2,904 | intellij-community | Apache License 2.0 |
sdk-incubator-lib/src/main/java/cash/z/ecc/android/sdk/WalletCoordinator.kt | zcash | 151,763,639 | false | null | package cash.z.ecc.android.sdk.demoapp
import android.content.Context
import cash.z.ecc.android.sdk.Synchronizer
import cash.z.ecc.android.sdk.demoapp.model.PersistableWallet
import cash.z.ecc.android.sdk.demoapp.util.Twig
import cash.z.ecc.android.sdk.demoapp.util.fromResources
import cash.z.ecc.android.sdk.ext.onFir... | 2 | null | 9 | 51 | 45f1c473b2531ca47213657c9ef26d25fffeda1d | 6,451 | zcash-android-wallet-sdk | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/Shared.kt | natieklopper | 348,878,504 | 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 | 0 | f50a565b747e1116f142389ebb81a293870f2969 | 2,111 | compose-weatherbee | Apache License 2.0 |
compiler/testData/diagnostics/tests/callableReference/generic/genericFunctionsWithNullableTypes.kt | JakeWharton | 99,388,807 | false | null | // !CHECK_TYPE
// !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE
fun <T, R> foo(x: T): R = TODO()
fun <T, R> bar(x: T, y: R, f: (T) -> R): Pair<T, R?> = TODO()
inline fun <reified T, reified R> baz(x: T, y: R, f: (T) -> R) {}
data class Pair<A, B>(val a: A, val b: B)
fun <T> test(x: T) {
bar(1, "", ::foo).ch... | 184 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,435 | kotlin | Apache License 2.0 |
lite/examples/image_segmentation/android/lib_interpreter/src/main/java/org/tensorflow/lite/examples/imagesegmentation/tflite/ModelExecutionResult.kt | tensorflow | 141,200,054 | false | null | /*
* Copyright 2019 Google LLC
*
* 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 applicable law or agreed to ... | 78 | null | 6061 | 5,860 | 56524742e739278cc52e2fcfc978e81d64cfcbd3 | 869 | examples | Apache License 2.0 |
app/src/main/java/com/roadster/roam/basesetup/base/BaseUseCase.kt | Atul206 | 510,028,347 | false | {"Kotlin": 118252} | package com.roadster.roam.basesetup.base
import com.neev.owner.network.ErrorEntity
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
abstract class BaseUseCase<out Type, in Params> {
/**
* this should be call... | 0 | Kotlin | 1 | 0 | 46ed3bd53e40ec7edf5a6063c6f8f8e556dc2225 | 1,201 | baserepo | MIT License |
Dispatcher/src/main/kotlin/net/milosvasic/dispatcher/executors/TaskExecutor.kt | milos85vasic | 81,421,926 | false | {"HTML": 324249, "Kotlin": 39697, "Shell": 174} | package net.milosvasic.dispatcher.executors
import java.util.concurrent.BlockingQueue
import java.util.concurrent.LinkedBlockingDeque
import java.util.concurrent.ThreadPoolExecutor
import java.util.concurrent.TimeUnit
internal class TaskExecutor private constructor(corePoolSize: Int, maximumPoolSize: Int, queue: Bloc... | 0 | HTML | 0 | 4 | bd446682d021bcf06892622aa7b620d4b8d4db9b | 611 | Dispatcher | Apache License 2.0 |
src/test/kotlin/ii887522/oxy/collection/LinkedListTest.kt | ii887522 | 350,205,715 | false | null | package ii887522.oxy.collection
import org.junit.Assert.*
import org.junit.Test
class LinkedListTest {
@Test fun `test set`() {
val numbers = LinkedList<Int>()
numbers.append(0)
numbers.append(1)
numbers.append(2)
assertThrows(IllegalArgumentException::class.java) { numbers[-1] = 3 }
assertT... | 0 | Kotlin | 0 | 0 | 12dc0748d78e95dc6f465fa337378bd32b465191 | 13,573 | oxy | MIT License |
app/src/main/java/com/msg/gcms/presentation/base/BaseActivity.kt | GSM-MSG | 465,292,111 | false | null | package com.msg.gfo_v2.gfo.ui.base
import android.os.Bundle
import android.os.PersistableBundle
import android.widget.Toast
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
abstract class BaseAc... | 8 | Kotlin | 0 | 8 | 65ba9a3e762676b9032ae8031f937e2b338b78f0 | 1,000 | GCMS-Android | MIT License |
ktor-server/ktor-server-plugins/ktor-server-auth-jwt/jvm/test/io/ktor/server/auth/jwt/JWTAuthTest.kt | ktorio | 40,136,600 | false | null | package io.ktor.auth.jwt
import com.auth0.jwk.*
import com.auth0.jwt.*
import com.auth0.jwt.algorithms.*
import com.nhaarman.mockito_kotlin.*
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.testing.*
import org.junit.Test... | 302 | null | 806 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 12,614 | ktor | Apache License 2.0 |
ktor-server/ktor-server-plugins/ktor-server-auth-jwt/jvm/test/io/ktor/server/auth/jwt/JWTAuthTest.kt | ktorio | 40,136,600 | false | null | package io.ktor.auth.jwt
import com.auth0.jwk.*
import com.auth0.jwt.*
import com.auth0.jwt.algorithms.*
import com.nhaarman.mockito_kotlin.*
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.testing.*
import org.junit.Test... | 302 | null | 806 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 12,614 | ktor | Apache License 2.0 |
frontend/analyzer/src/commonMain/kotlin/checker/CheckExpr.kt | aripiprazole | 328,030,547 | false | null | package org.plank.analyzer.checker
import org.plank.analyzer.element.TypedAccessExpr
import org.plank.analyzer.element.TypedAssignExpr
import org.plank.analyzer.element.TypedBlockExpr
import org.plank.analyzer.element.TypedCallExpr
import org.plank.analyzer.element.TypedConstExpr
import org.plank.analyzer.element.Type... | 3 | null | 1 | 56 | df1e88540f19f6a3878b6395084c7508070ab41d | 9,365 | plank | MIT License |
examples/QuickStart/app/src/main/java/com/ntt/skyway/example/quickstart/MainActivity.kt | skyway | 594,002,280 | false | null | package com.ntt.skyway.example.quickstart
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.ntt.skyway.core.SkyWayContext
import com.ntt.skyway.core.channel.Publication
import com.ntt.skyway.core.content.Stream
import com.ntt.skyway.core.content.local.source.Au... | 0 | Kotlin | 0 | 0 | 38a7202a2c3e7a2367a332f822b1f54a8c7bb5de | 3,728 | android-sdk | MIT License |
app/src/androidTest/java/com/steleot/jetpackcompose/playground/compose/ui/LocalLifecycleOwnerScreenTest.kt | Vivecstel | 338,792,534 | false | null | package com.steleot.jetpackcompose.playground.compose.ui
import androidx.compose.ui.test.junit4.createComposeRule
import com.steleot.jetpackcompose.playground.compose.theme.TestTheme
import org.junit.Rule
import org.junit.Test
class LocalLifecycleOwnerScreenTest {
@get:Rule
val composeTestRule = createCompos... | 1 | null | 46 | 346 | 0161d9c7bf2eee53270ba2227a61d71ba8292ad0 | 533 | Jetpack-Compose-Playground | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/client/smtss/SmtssClient.kt | navikt | 192,538,863 | false | {"Kotlin": 412342, "Dockerfile": 277} | package no.nav.syfo.client
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.request.accept
import io.ktor.client.request.get
import io.ktor.client.request.header
import io.ktor.http.ContentType
import io.ktor.http.HttpStatusCode
import io.ktor.http.contentType
import net.logstash.... | 1 | Kotlin | 1 | 0 | c549d53ac0e30228ec430c5798699ea7b142d28d | 2,849 | syfosmmottak | MIT License |
json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/internal/factories/object/PatternPropertiesAssertionFactory.kt | OptimumCode | 665,024,908 | false | {"Kotlin": 701490, "Shell": 919} | package io.github.optimumcode.json.schema.internal.factories.`object`
import io.github.optimumcode.json.pointer.JsonPointer
import io.github.optimumcode.json.schema.AnnotationKey
import io.github.optimumcode.json.schema.OutputCollector
import io.github.optimumcode.json.schema.internal.AnnotationKeyFactory
import io.gi... | 8 | Kotlin | 3 | 33 | 20ad6e2e642ad7c98554c1788392bbbfc423c068 | 3,149 | json-schema-validator | MIT License |
app/src/main/java/com/zasa/hashr/HomeViewModel.kt | zansangeeth | 507,636,039 | false | {"Kotlin": 8260} | package com.zasa.hashr
import android.util.Log
import androidx.lifecycle.ViewModel
import java.security.MessageDigest
/**
**@Project -> HashR
**@Author -> Sangeeth on 6/27/2022
*/
class HomeViewModel : ViewModel() {
fun getHash(etPlainText : String, algorithm : String) : String{
val bytes = MessageDig... | 0 | Kotlin | 0 | 0 | 80d30fb75e88ba67cdd25df0ef6e524569e9775f | 542 | HashR | Apache License 2.0 |
src/commonMain/kotlin/org/angproj/crypt/sec/Secp256Random1.kt | angelos-project | 677,062,617 | false | {"Kotlin": 9244687} | /**
* Copyright (c) 2023 by <NAME> <<EMAIL>>.
*
* This software is available under the terms of the MIT license. Parts are licensed
* under different terms if stated. The legal terms are attached to the LICENSE file
* and are made available on:
*
* https://opensource.org/licenses/MIT
*
* SPDX-License-Iden... | 0 | Kotlin | 0 | 0 | e59676c8cbf2a612573ff0fc93389184633d4ace | 3,411 | angelos-project-crypt | MIT License |
auth/data/src/main/java/com/google/android/horologist/auth/data/googlesignin/AuthUserMapper.kt | google | 451,563,714 | false | null | /*
* Copyright 2022 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 applic... | 71 | null | 69 | 430 | bcfd31399a85d9eef772947fec6765a905d3529c | 1,402 | horologist | Apache License 2.0 |
solana/src/main/java/org/p2p/solanaj/model/types/EpochInfo.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4750125, "HTML": 3064848, "Java": 296719, "Groovy": 1601, "Shell": 1252, "JavaScript": 1067} | package org.p2p.solanaj.model.types
import com.google.gson.annotations.SerializedName
import java.math.BigInteger
data class EpochInfo(
@SerializedName("absoluteSlot")
val absoluteSlot: BigInteger,
@SerializedName("blockHeight")
val blockHeight: BigInteger,
@SerializedName("epoch")
val epoch: ... | 4 | Kotlin | 18 | 33 | 1fe956b7969902842ea8ce235a00054136573fe6 | 539 | key-app-android | MIT License |
ui/src/main/java/io/snabble/sdk/ui/payment/CreditCardInputFragment.kt | snabble | 124,525,499 | false | null | package io.snabble.sdk.ui.payment
import android.os.Bundle
import android.view.View
import io.snabble.sdk.PaymentMethod
import io.snabble.sdk.ui.BaseFragment
import io.snabble.sdk.ui.R
open class CreditCardInputFragment : BaseFragment(
layoutResId = R.layout.snabble_fragment_cardinput_creditcard,
waitForProje... | 1 | Kotlin | 0 | 6 | a91cf68f7837ffdd9aa41d0e1e58d84fb85a41cc | 1,019 | Android-SDK | MIT License |
src/main/kotlin/no/nav/bidrag/vedtak/api/grunnlag/HentGrunnlagResponse.kt | navikt | 331,260,160 | false | null | package no.nav.bidrag.vedtak.api.grunnlag
import com.fasterxml.jackson.annotation.JsonRawValue
import io.swagger.v3.oas.annotations.media.Schema
@Schema
data class HentGrunnlagResponse(
@Schema(description = "Grunnlag-id")
val grunnlagId: Int = 0,
@Schema(description = "Referanse til grunnlaget")
va... | 1 | Kotlin | 0 | 1 | 1c992bec3115c84742b3b1fb944ce76912dd1f80 | 543 | bidrag-vedtak | MIT License |
forgerock-auth/src/test/java/org/forgerock/android/auth/FRLifeCycleListenerTest.kt | ForgeRock | 215,203,638 | false | null | /*
* Copyright (c) 2023 ForgeRock. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package org.forgerock.android.auth
import android.content.Context
import android.net.Uri
import androidx.test.ext.junit.runners.And... | 24 | null | 23 | 35 | b59cfab7ccd80b1b2b877bf9caa0f31fed1f2c37 | 6,565 | forgerock-android-sdk | MIT License |
demo/src/main/java/com/michaelflisar/composethemer/demo/composables/Drawer.kt | MFlisar | 616,470,400 | false | null | package com.michaelflisar.composethemer.demo.composables
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ColorLens
import androidx.compose.ma... | 0 | Kotlin | 0 | 0 | 3ebcc33c3f0bceb86abc960c92202ef86536dfb6 | 9,029 | ComposeThemer | Apache License 2.0 |
common/core/src/commonMain/kotlin/com/trafi/maas.account.ui.internal/RequirementsListViewConstants.kt | trafi | 287,312,105 | false | null | package com.trafi.maas.account.ui.internal
import com.trafi.ui.theme.internal.CurrentTheme
class RequirementsListViewConstants(theme: CurrentTheme) {
val textStyle = theme.typographyScale.textM
val textColor = theme.colorPalette.grayScale.gray600
}
| 4 | Kotlin | 2 | 9 | a471fed0a538a7de45193be6fe0f0c0798e6cf2f | 259 | maas-components | Apache License 2.0 |
app/src/main/java/com/thetechsamurai/foodonwheelz/orderHandling/CartActivity.kt | himanshu-1608 | 276,752,026 | false | null | package com.thetechsamurai.foodonwheelz.orderHandling
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.os.SystemClock
import android.provider.Settings
import android.view.View
import android.widget.*
import androidx.appcompat.app.AlertDialog
import androidx... | 1 | Kotlin | 0 | 0 | eb33ddb90b55aa50d06d51616aded73e2fc8a48b | 6,454 | food-on-wheelz | MIT License |
compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirFile.kt | damenez | 189,964,139 | true | {"Markdown": 56, "Gradle": 497, "Gradle Kotlin DSL": 215, "Java Properties": 12, "Shell": 11, "Ignore List": 10, "Batchfile": 9, "Git Attributes": 1, "Protocol Buffer": 12, "Java": 5238, "Kotlin": 43905, "Proguard": 7, "XML": 1594, "Text": 9172, "JavaScript": 239, "JAR Manifest": 2, "Roff": 209, "Roff Manpage": 34, "IN... | /*
* Copyright 2000-2018 JetBrains s.r.o. 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.declarations
import org.jetbrains.kotlin.fir.BaseTransformedType
import org.jetbrains.kotlin.fir.FirSession
import org.jet... | 0 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 1,194 | kotlin | Apache License 2.0 |
lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/CardProvisionResponseTest.kt | lithic-com | 658,974,440 | false | null | // File generated from our OpenAPI spec by Stainless.
package com.lithic.api.models
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class CardProvisionResponseTest {
@Test
fun createCardProvisionResponse() {
val cardProvisionResponse =
CardProvisionRes... | 1 | null | 0 | 2 | 68cf1467469c6794e6dcb24a4a6e2542563d44c0 | 546 | lithic-kotlin | Apache License 2.0 |
core/domain/src/main/java/com/hellguy39/hellnotes/core/domain/use_case/note/DeleteNoteUseCase.kt | HellGuy39 | 572,830,054 | false | null | package com.hellguy39.hellnotes.core.domain.use_case.note
import com.hellguy39.hellnotes.core.domain.repository.local.ChecklistRepository
import com.hellguy39.hellnotes.core.domain.repository.local.LabelRepository
import com.hellguy39.hellnotes.core.domain.repository.local.NoteRepository
import com.hellguy39.hellnotes... | 1 | Kotlin | 0 | 9 | 548d59c0f641df6e1f3ddd9c220904631ca5351b | 1,042 | HellNotes | Apache License 2.0 |
felles-test/src/main/kotlin/no/nav/helsearbeidsgiver/felles/test/mock/MockData.kt | navikt | 495,713,363 | false | null | package no.nav.helsearbeidsgiver.felles.test.mock
import no.nav.helsearbeidsgiver.felles.ForespoerselType
import no.nav.helsearbeidsgiver.felles.ForespurtData
import no.nav.helsearbeidsgiver.felles.ForrigeInntekt
import no.nav.helsearbeidsgiver.felles.ForslagInntekt
import no.nav.helsearbeidsgiver.felles.ForslagRefusj... | 18 | Kotlin | 0 | 2 | e3e267c925349c7285289b94b9806cace5112008 | 3,780 | helsearbeidsgiver-inntektsmelding | MIT License |
packages/HilltopCrawler/src/main/kotlin/nz/govt/eop/hilltop_crawler/api/parsers/HilltopMeasurments.kt | Greater-Wellington-Regional-Council | 528,176,417 | false | {"Kotlin": 248210, "TypeScript": 206033, "Batchfile": 66171, "Shell": 54151, "PLpgSQL": 42581, "ASL": 6123, "SCSS": 4684, "JavaScript": 4383, "Dockerfile": 2524, "HTML": 1578, "CSS": 860} | package nz.govt.eop.hilltop_crawler.api.parsers
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty
data class HilltopMeasurements(
@JacksonXmlProperty(localName = "DataSource")
@JacksonXmlElementWrapper(useW... | 13 | Kotlin | 3 | 5 | 292ce1c7eb3039957f0774e018832625c7a336d5 | 1,247 | Environmental-Outcomes-Platform | MIT License |
layout-ui/src/main/java/com/android/tools/componenttree/treetable/TreeTableHeader.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2022 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... | 5 | Kotlin | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 7,362 | android | Apache License 2.0 |
app/src/main/java/com/chen/app/navigationtest/MainActivity.kt | justine0423 | 275,700,085 | true | {"Kotlin": 2115008} | package com.chen.app.navigationtest
import android.os.Bundle
import androidx.navigation.findNavController
import androidx.navigation.fragment.FragmentNavigator
import androidx.navigation.fragment.findNavController
import com.chen.app.R
import com.chen.app.ui.simple.toolbar.SimpleFirstFragment
import com.chen.basemodul... | 0 | null | 0 | 0 | 383dbd509b344910abd998ddab141614b113cf5b | 560 | EasyAndroid | Apache License 2.0 |
src/me/anno/io/zip/InnerLazyImageFile.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 9469405, "C": 236481, "GLSL": 9454, "Java": 7643, "Lua": 4315} | package me.anno.io.files.inner.lazy
import me.anno.image.Image
import me.anno.image.ImageReadable
import me.anno.image.bmp.BMPWriter
import me.anno.io.files.FileReference
import me.anno.io.files.Signature
import me.anno.io.files.inner.InnerFile
import me.anno.io.files.inner.SignatureFile
import java.io.ByteArrayInputS... | 0 | Kotlin | 3 | 16 | f33d03ccf246b8ba27f47bac4671ddafb7e027a3 | 1,930 | RemsEngine | Apache License 2.0 |
app/src/main/java/com/example/androidboilderplatecode/utils/AppConstants.kt | tusharthetruth | 444,371,856 | false | {"Kotlin": 18036} | package com.example.androidboilderplatecode.utils
object AppConstants {
const val BASE_URL:String="https://google.com"
const val SAMPLE_ENTRIES:String="https://api.publicapis.org/entries"
} | 0 | Kotlin | 0 | 0 | eb5586ac93cee18bc97ea84861eab88e261b1f8a | 198 | MVVM-Hilt-Retrofit-Coroutine | Apache License 2.0 |
core/data/src/main/java/org/the_chance/honeymart/data/source/remote/models/StatusResponse.kt | TheChance101 | 647,400,117 | false | {"Kotlin": 1218713} | package org.the_chance.honeymart.data.source.remote.models
data class StatusResponse(
val message: String?,
val code: Int
)
| 3 | Kotlin | 7 | 21 | 50200e0ec0802cdadc282b09074a19c96df3220c | 133 | Honey-Mart-Android-Client | Apache License 2.0 |
shared/models/src/commonMain/kotlin/com/paligot/confily/models/inputs/CreatingEventInput.kt | GerardPaligot | 444,230,272 | false | null | package org.gdglille.devfest.models.inputs
import kotlinx.datetime.Clock
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class CreatingEventInput(
val name: String,
val year: String,
val address: String,
@SerialName("open_feedback_id")
val openF... | 9 | null | 6 | 143 | 8c0985b73422d6b388012d79c7ab33c054dc55c1 | 1,405 | Confily | Apache License 2.0 |
examples/e2e/src/main/kotlin/dev/s7a/example/gofile/Main.kt | sya-ri | 517,628,038 | false | {"Kotlin": 98972, "HTML": 44707} | @file:JvmName("Main")
package dev.s7a.example.gofile
import dev.s7a.gofile.GofileClient
import dev.s7a.gofile.GofileFolderOption
import dev.s7a.gofile.GofileTier
import dev.s7a.gofile.uploadFile
import java.util.Calendar
import kotlin.io.path.createTempFile
import kotlin.io.path.writeText
suspend fun main() {
va... | 2 | Kotlin | 0 | 5 | d38f084ddd5244ce36422fb44db6a2d420c9eb28 | 1,997 | Gofile.kt | Apache License 2.0 |
shared/common/src/main/java/com/sadri/common/compose/CardItem.kt | sepehrsadri | 577,511,564 | false | {"Kotlin": 57847} | package com.sadri.common.compose
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMa... | 0 | Kotlin | 0 | 0 | 2ee26111d7ff892d2f1d23c182894245cb7e8258 | 2,691 | KittenAppComposeUI | Apache License 2.0 |
app/src/main/java/com/rokoblak/gittrendingcompose/data/repo/GitRepoDetailsRepo.kt | oblakr24 | 641,592,280 | false | {"Kotlin": 146539} | package com.rokoblak.gittrendingcompose.data.repo
import com.rokoblak.gittrendingcompose.data.datasource.RemoteRepoDetailsDataSource
import com.rokoblak.gittrendingcompose.domain.model.ExpandedGitRepositoryDetails
import com.rokoblak.gittrendingcompose.data.model.RepoDetailsInput
import com.rokoblak.gittrendingcompose... | 0 | Kotlin | 0 | 0 | 46b9059ec372952253f0b310eac51f69f0574967 | 1,733 | GitTrendingCompose | Apache License 2.0 |
app/src/main/java/org/nekomanga/presentation/components/dialog/RemoveFilterDialog.kt | nekomangaorg | 182,704,531 | false | null | /*
package org.nekomanga.presentation.components.dialog
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.text.selection.LocalTextSelectionColors
import androidx.compose.material.ripple.LocalRippleTheme
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Bu... | 83 | null | 119 | 2,261 | 3e0f16dd125e6d173e29defa7fcb62410358239d | 3,022 | Neko | Apache License 2.0 |
src/aoc22/Day17.kt | mihassan | 575,356,150 | false | {"Kotlin": 103728} | @file:Suppress("PackageDirectoryMismatch")
package aoc22.day17
import aoc22.day17.Direction.Companion.move
import aoc22.day17.Direction.Companion.toDirection
import kotlin.math.ceil
import lib.Collections.histogram
import lib.Collections.repeat
import lib.Point
import lib.Solution
import lib.Ranges.contains
// Not u... | 0 | Kotlin | 0 | 0 | 65ff26890731046a7201f79b79247c8202a75014 | 5,379 | aoc-kotlin | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/problems/secondaryConstructorCfg.kt | JetBrains | 3,432,266 | false | null | // IGNORE_REVERSED_RESOLVE
// !DUMP_CFG
class B(p0: String) {
val p1 = p0
val p2: Int = p0.length
var p3: String
constructor(p0: String, p1: String) : this(p0) {
p3 = p1
}
init {
<!VAL_REASSIGNMENT!>p1<!> = <!ASSIGNMENT_TYPE_MISMATCH!>p0.length<!>
p3 = ""
}
}
| 176 | null | 5601 | 47,397 | a47dcc227952c0474d27cc385021b0c9eed3fb67 | 312 | kotlin | Apache License 2.0 |
src/main/kotlin/com/igorini/togepibot/gui/keyword/TiredKeyword.kt | igorini | 123,990,696 | false | null | package com.igorini.togepibot.gui.keyword
/** Represents a keyword for text and sound associated with "Tired" */
object TiredKeyword : Keyword() {
override fun folder() = "tired"
override fun voiceRus() = listOf("уставать", "устал", "утомило", "утомился", "утомилась", "устала", "усталый", "усталая", "устали")
... | 0 | Kotlin | 0 | 0 | 80de398881b5999dfd107b12c9a279915788306b | 492 | togepi-bot | Apache License 2.0 |
incubator/clients/kroviz/src/main/kotlin/org/apache/causeway/client/kroviz/ui/builder/FieldSetBuilder.kt | apache | 6,935,442 | false | null | /*
* 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 under the Apache License, Version 2.0 (the
* "License")... | 4 | null | 294 | 751 | cfb994d281118effa2363528c6d5cf74c8c64cae | 2,207 | causeway | Apache License 2.0 |
library/analytics/analytics-api-no-op/src/main/java/reactivecircus/analytics/noop/NoOpAnalyticsApi.kt | ReactiveCircus | 142,655,149 | false | null | package reactivecircus.analytics.noop
import reactivecircus.analytics.AnalyticsApi
object NoOpAnalyticsApi : AnalyticsApi {
override fun setCurrentScreenName(screenName: String, screenClass: String) = Unit
override fun setEnableAnalytics(enable: Boolean) = Unit
override fun setUserId(userId: String?) =... | 7 | Kotlin | 5 | 8 | b97fb5b8f161f29b70db1de6446af76166f42aa4 | 471 | release-probe | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.