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/no/nav/omsorgspenger/FuelHttp.kt | navikt | 314,496,410 | false | null | package no.nav.omsorgspenger
import com.github.kittinunf.fuel.*
import com.github.kittinunf.fuel.core.Request
import com.github.kittinunf.fuel.core.Response
import com.github.kittinunf.fuel.coroutines.awaitByteArrayResponseResult
import io.ktor.server.application.ApplicationCall
import io.ktor.http.ContentType
import ... | 7 | Kotlin | 0 | 0 | 87d0cfc14760a41ee8396d762ee058dcf993555b | 3,914 | omsorgspenger-proxy | MIT License |
booster-transform-asm/src/test/kotlin/com/didiglobal/booster/transform/asm/ClassNodeTest.kt | didi | 182,968,735 | false | {"Kotlin": 413557, "Java": 145867, "JavaScript": 1885} | package com.didiglobal.booster.transform.asm
import com.didiglobal.booster.build.AndroidSdk
import java.io.InputStream
import java.util.jar.JarFile
import kotlin.test.Test
class ClassNodeTest {
@Test
fun `test textify`() {
JarFile(AndroidSdk.getAndroidJar()).use { jar ->
val clazz = jar.g... | 41 | Kotlin | 577 | 4,831 | 3a72faebf8590537983ca74c0012b69636da3b5d | 466 | booster | Apache License 2.0 |
app/src/main/java/com/ecommerce/shopdaily/data/db/Converters.kt | milosursulovic | 591,296,419 | false | {"Kotlin": 203950} | package com.ecommerce.shopdaily.data.db
import androidx.room.TypeConverter
class Converters {
@TypeConverter
fun fromList(list: List<String>): String = list.joinToString(";")
@TypeConverter
fun toList(str: String): List<String> = str.split(";")
} | 33 | Kotlin | 0 | 0 | a79e27bf415c223f5c4880635674e91579e0ec7d | 265 | shop-daily | MIT License |
src/main/kotlin/db/Manager.kt | neelkamath | 250,690,176 | false | null | package com.neelkamath.omniChatBackend.db
import com.neelkamath.omniChatBackend.db.tables.*
import com.neelkamath.omniChatBackend.graphql.dataTransferObjects.DeletedAccount
import com.neelkamath.omniChatBackend.graphql.dataTransferObjects.DeletedContact
import com.neelkamath.omniChatBackend.graphql.dataTransferObjects... | 8 | Kotlin | 2 | 9 | a475c268c5d5a312f9950608d7a4e164db848d26 | 6,755 | omni-chat-backend | MIT License |
bot/src/main/kotlin/io/dwak/reddit/bot/network/slack/SlackService.kt | burntcookie90 | 62,111,571 | false | null | package io.dwak.reddit.bot.network.slack
import io.dwak.reddit.bot.network.SlackLoginManager
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
import retrofit2.http.Path
import rx.Observable
interface SlackService {
@FormUrlEncoded
@POST("/services/{id1}/{id2}/{id3}")
f... | 8 | Kotlin | 0 | 2 | 7dc6d3c86bdacfb3fe47a581f09a9f659f934e50 | 980 | redditbot | MIT License |
stropping/src/main/java/com/juul/stropping/Engine.kt | JuulLabs | 212,921,125 | false | null | package com.juul.stropping
import android.app.Application
import dagger.android.DispatchingAndroidInjector
import java.lang.reflect.Type
import kotlin.reflect.KClass
interface Engine {
fun <T : Any> overwrite(type: Type, value: T, named: String?)
fun <K : Any, V : Any> addIntoMap(
keyType: Type,
... | 7 | Kotlin | 1 | 4 | e4ae810bebe070a4be4ec3bc646d1245c532ac73 | 807 | stropping | Apache License 2.0 |
src/jvmTest/kotlin/org/treeWare/metaModel/validation/AssociationValidationTests.kt | tree-ware | 214,941,384 | false | null | package org.treeWare.metaModel.validation
import org.treeWare.metaModel.assertJsonStringValidationErrors
import org.treeWare.metaModel.newTestMetaModelJson
import kotlin.test.Test
class AssociationValidationTests {
@Test
fun `Association must have info`() {
val testPackageJson = """
| {
... | 36 | Kotlin | 0 | 1 | d356908bb3914dd28c23ef27690c42566c8fab32 | 6,813 | tree-ware-kotlin-core | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EfsVolumeConfiguration.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.ecs
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObjec... | 1 | Kotlin | 0 | 4 | db2b3a364f5e74d8f80490e7850da7f1e7f1e7d0 | 8,948 | kotlin-cdk-wrapper | Apache License 2.0 |
online-banking-pl/src/main/java/com/adyen/checkout/onlinebankingpl/OnlineBankingPLComponentState.kt | Adyen | 91,104,663 | false | null | /*
* Copyright (c) 2023 <NAME>
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by ozgur on 20/2/2023.
*/
package com.adyen.checkout.onlinebankingpl
import com.adyen.checkout.components.core.PaymentComponentData
import com.adyen.checkout.component... | 28 | Kotlin | 59 | 96 | 1f000e27e07467f3a30bb3a786a43de62be003b2 | 745 | adyen-android | MIT License |
app/src/main/java/com/ss/moviedb_kotlin/ui/top_rated/TopRatedAdapter.kt | bryanless | 479,805,947 | false | null | package com.ss.moviedb_kotlin.ui.top_rated
import android.graphics.drawable.Drawable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.findNavController
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androi... | 0 | Kotlin | 0 | 1 | 37e2692ebdcafdd715ad92cbe89ad5f392990380 | 3,786 | MovieDB-Kotlin | MIT License |
src/jvmMain/kotlin/matt/obs/listen/listen.kt | mgroth0 | 521,720,515 | false | {"Kotlin": 227057} | @file:JvmName("ListenJvmKt")
package matt.obs.listen
import matt.model.flowlogic.latch.SimpleThreadLatch
import matt.obs.prop.ObsVal
fun <T> ObsVal<T>.awaitThisToBe(t: T) {
val latch = SimpleThreadLatch()
whenEqualsOnce(t) {
latch.open()
}
latch.await()
}
| 0 | Kotlin | 0 | 0 | 4a3763d921fe01ee60e287cbdef2c2fe079aa366 | 270 | obs | MIT License |
app/src/main/java/com/example/bhagavadgita/di/module/ApplicationModule.kt | AakashPatil1 | 705,740,336 | false | {"Kotlin": 37317, "Java": 2124} | package com.example.bhagavadgita.di.module
import android.content.Context
import androidx.room.Room
import com.example.bhagavadgita.roomdb.BhagavadGitaDao
import com.example.bhagavadgita.roomdb.MyDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.App... | 0 | Kotlin | 0 | 0 | 6eeb83eac42cb5b6fe72c01d0c41ceee6658cb0a | 880 | Bhagavad-Gita | MIT License |
app/src/main/java/com/example/bhagavadgita/di/module/ApplicationModule.kt | AakashPatil1 | 705,740,336 | false | {"Kotlin": 37317, "Java": 2124} | package com.example.bhagavadgita.di.module
import android.content.Context
import androidx.room.Room
import com.example.bhagavadgita.roomdb.BhagavadGitaDao
import com.example.bhagavadgita.roomdb.MyDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.App... | 0 | Kotlin | 0 | 0 | 6eeb83eac42cb5b6fe72c01d0c41ceee6658cb0a | 880 | Bhagavad-Gita | MIT License |
buildSrc/src/main/java/io/github/chenfei0928/android/DRouter.kt | chenfei0928 | 130,954,695 | false | null | package io.github.chenfei0928.android
import io.github.chenfei0928.Env
import io.github.chenfei0928.util.implementation
import com.didi.drouter.RouterPluginKt
import com.didi.drouter.plugin.RouterSetting
import org.gradle.api.Project
import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.dependencies
/**
* ... | 1 | null | 0 | 8 | bbe587216a2450deb19af90ea4d7d24d23443dd1 | 1,026 | Util | MIT License |
mbmobilesdk/src/main/java/com/daimler/mbmobilesdk/tou/HtmlUserAgreementActivity.kt | rafalzawadzki | 208,997,288 | true | {"Kotlin": 1297852, "Groovy": 4489} | package com.daimler.mbmobilesdk.tou
import android.content.Context
import android.content.Intent
import androidx.databinding.ViewDataBinding
import androidx.lifecycle.ViewModelProviders
import com.daimler.mbmobilesdk.BR
import com.daimler.mbmobilesdk.R
import com.daimler.mbmobilesdk.utils.checkParameterNotNull
import ... | 0 | null | 0 | 0 | 1a924f70fbde5d731cdfde275e724e6343ee6ebe | 2,060 | MBSDK-Mobile-Android | MIT License |
app/src/main/kotlin/jp/co/yumemi/android/code_check/topActivity.kt | QuatBaThien | 529,918,427 | false | null | /*
* Copyright © 2021 YUMEMI Inc. All rights reserved.
*/
package jp.co.yumemi.android.code_check
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import androidx.navigation.findNavController
import androidx.navigatio... | 0 | Kotlin | 0 | 0 | d8c15f6a48deb80dd2f9bf240335f73e23267592 | 817 | android-engineer-codecheck-main | Apache License 2.0 |
App/app/src/main/java/com/migueldemollet/dressmeapp/screens/logIn/LogInViewModel.kt | migueldemollet | 484,456,592 | false | {"Kotlin": 115511, "Python": 46548, "JavaScript": 5281, "Shell": 1463} | package com.migueldemollet.dressmeapp.screens.logIn
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.util.Patterns
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifec... | 0 | Kotlin | 0 | 2 | 18fda61d8a1f5145dfcb1440b6f04b8ca9bf9190 | 4,108 | DressMeApp | MIT License |
src/main/kotlin/com/buckstabue/stickynotes/idea/stickynotelist/ShowStickyNotesAction.kt | Buckstabue | 225,958,036 | false | null | package com.buckstabue.stickynotes.idea.stickynotelist
import com.buckstabue.stickynotes.idea.stickynotelist.StickyNoteListAnalytics.Source
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.... | 9 | Kotlin | 2 | 9 | ab07743f043a69a6a7c19d8f36bf483e1205fc06 | 1,171 | sticky_notes_idea | Apache License 2.0 |
dialogs/gdpr/src/main/java/com/michaelflisar/dialogs/GDPRViewManager.kt | MFlisar | 533,172,718 | false | {"Kotlin": 446157} | package com.michaelflisar.dialogs
import android.os.Bundle
import android.os.Parcelable
import android.text.Html
import android.text.SpannableStringBuilder
import android.text.method.LinkMovementMethod
import android.text.style.*
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup... | 3 | Kotlin | 1 | 9 | 43fc1279039933c0943ea7f4c3516358cfaeccae | 16,496 | MaterialDialogs | Apache License 2.0 |
mui-kotlin/src/jsMain/kotlin/mui/material/FormControlLabel.mui.kt | karakum-team | 387,062,541 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package mui.material
import csstype.ClassName
@Suppress("NAME_CONTAINS_ILLEGAL_CHARS")
// language=JavaScript
@JsName("""(/*union*/{root: 'MuiFormControlLabel-root', labelPlacementStart: 'MuiFormControlLabel-labe... | 0 | null | 5 | 34 | a5270a395943b069d41891c29e904d4d2f776789 | 778 | mui-kotlin | Apache License 2.0 |
src/main/kotlin/io/github/noodlemind/yamlkotlin/YamlToKotlinPlugin.kt | noodlemind | 838,168,090 | false | {"Kotlin": 67126} | package io.github.noodlemind.yamlkotlin
import org.gradle.api.Plugin
import org.gradle.api.Project
/**
* The YamlToKotlinPlugin class is a plugin that generates Kotlin classes from YAML schema definitions. It implements the Plugin<Project> interface.
*
* @property apply The apply function overrides the apply funct... | 0 | Kotlin | 0 | 0 | 4f737ef7709bd09a4c055a5b8023eb8a01038f15 | 3,172 | yaml-to-kotlin | MIT License |
app/shared/state-machine/ui/public/src/commonTest/kotlin/build/wallet/statemachine/recovery/cloud/FullAccountCloudSignInAndBackupUiStateMachineImplTests.kt | proto-at-block | 761,306,853 | false | null | package build.wallet.statemachine.recovery.cloud
import app.cash.turbine.ReceiveTurbine
import app.cash.turbine.plusAssign
import build.wallet.analytics.events.EventTrackerMock
import build.wallet.analytics.events.TrackedAction
import build.wallet.analytics.events.screen.id.CloudEventTrackerScreenId
import build.walle... | 0 | null | 9 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 13,247 | bitkey | MIT License |
app/src/main/java/com/pr0gramm/app/services/Storage.kt | mopsalarm | 30,804,448 | false | {"Kotlin": 1414351, "Shell": 6752, "Python": 1124} | package com.pr0gramm.app.services
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.storage.StorageManager
import android.provider.DocumentsContract
import androidx.core.content.getSystemService
import androidx.documentfile.provider.DocumentFi... | 39 | Kotlin | 38 | 284 | d6917f3ec16b6664a90a4519843f3d3d4ccae2cf | 5,484 | Pr0 | MIT License |
shared/src/commonMain/kotlin/com/example/myapplication/shared/main/store/MainStore.kt | karateka-git | 750,803,785 | false | {"Kotlin": 51626, "Swift": 10940} | package com.example.myapplication.shared.main.store
import com.arkivanov.mvikotlin.core.store.Store
import com.example.myapplication.shared.editComponent.EditMode
import com.example.myapplication.shared.main.store.MainStore.Intent
import com.example.myapplication.shared.main.store.MainStore.Label
import com.example.my... | 0 | Kotlin | 0 | 0 | 706554009392d73a6c5dc326184b2bac1ea010e5 | 1,089 | family_shopping | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/educationandworkplanapi/app/resource/mapper/timeline/TimelineEventResourceMapperTest.kt | ministryofjustice | 653,598,082 | false | {"Kotlin": 1503984, "Mustache": 2705, "Dockerfile": 1375} | package uk.gov.justice.digital.hmpps.educationandworkplanapi.app.resource.mapper.timeline
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.InjectMocks
import org.mockito.Mock
import org.mockito.junit.jupiter.Mockito... | 4 | Kotlin | 0 | 2 | 731053e81e60e00164756390324211792db4996b | 5,993 | hmpps-education-and-work-plan-api | MIT License |
app/src/main/java/com/esaudev/hackathonmoure/domain/model/OnBoardingPage.kt | Rviewer-Challenges | 533,425,960 | false | null | package com.esaudev.hackathonmoure.domain.model
import androidx.annotation.DrawableRes
data class OnBoardingPage(
val title: String,
val subtitle: String,
@DrawableRes val image: Int
)
| 0 | Kotlin | 1 | 3 | 7a0dece305acfc61b190bc2e7f7eadf72e846200 | 199 | SF5hStO2IYiOf8wcs5rX | MIT License |
app/src/main/java/com/example/tiptime/MainActivity.kt | m3rcury02 | 657,723,220 | false | null | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | Kotlin | 0 | 0 | b15733a2596e087bb45811a98ce955a632633332 | 6,190 | Tipper | Apache License 2.0 |
src/main/kotlin/me/aberrantfox/hotbot/listeners/VoiceChannelListener.kt | the-programmers-hangout | 251,075,497 | false | null | package me.aberrantfox.hotbot.listeners
import com.google.common.eventbus.Subscribe
import me.aberrantfox.kjdautils.extensions.jda.descriptor
import me.aberrantfox.kjdautils.internal.logging.BotLogger
import net.dv8tion.jda.core.events.guild.voice.GuildVoiceJoinEvent
import net.dv8tion.jda.core.events.guild.voice.Guil... | 2 | Kotlin | 0 | 1 | 2edd95266192b03b60454573dcfd2d5d785c6af5 | 958 | HotBot | MIT License |
src/main/kotlin/org/arend/injection/InjectionHighlightingPass.kt | sloboegen | 382,276,129 | true | {"Kotlin": 1558918, "Lex": 12241, "Java": 4242, "HTML": 1172} | package org.arend.injection
import com.intellij.codeHighlighting.TextEditorHighlightingPass
import com.intellij.codeInsight.daemon.impl.AnnotationHolderImpl
import com.intellij.codeInsight.daemon.impl.HighlightInfo
import com.intellij.codeInsight.daemon.impl.UpdateHighlightersUtil
import com.intellij.lang.annotation.A... | 0 | null | 0 | 0 | 66cbc59f9c01629a58c42f120f4e4b3e4d1798c3 | 3,819 | intellij-arend | Apache License 2.0 |
src/main/kotlin/com/mazekine/nova/models/SearchTransactionsInput.kt | mazekine | 321,032,816 | false | null | package com.mazekine.nova.models
import com.google.gson.annotations.Expose
data class SearchTransactionsInput(
@Expose val userAddress: String,
@Expose val addressType: String,
@Expose val workspaceId: String?,
@Expose val groupKind: TransactionGroupKind?,
@Expose val orderBy: TransactionOrderBy?,... | 0 | Kotlin | 0 | 0 | f89a7ff2669691923ea7b00312df213ada80ae09 | 644 | nova-lib | Apache License 2.0 |
node/src/test/kotlin/net/corda/node/internal/security/RPCPermissionResolverTest.kt | corda | 70,137,417 | false | {"Kotlin": 10675960, "Java": 275115, "C++": 239894, "Python": 37811, "Shell": 28324, "CSS": 23544, "Groovy": 14725, "CMake": 5393, "Dockerfile": 2574, "Batchfile": 1777, "PowerShell": 660, "C": 454} | package net.corda.node.internal.security
import net.corda.core.messaging.RPCOps
import net.corda.node.internal.rpc.proxies.RpcAuthHelper.methodFullName
import org.junit.Test
import java.time.ZonedDateTime
import kotlin.test.assertEquals
class RPCPermissionResolverTest {
@Suppress("unused")
interface Alpha :... | 62 | Kotlin | 1087 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 1,646 | corda | Apache License 2.0 |
course-catalog-service/src/main/kotlin/com/kotlinspring/entity/Instructor.kt | Robertz25 | 565,742,228 | false | {"Kotlin": 15210} |
package com.kotlinspring.entity
import java.util.*
import javax.persistence.*
@Entity
@Table(name = "INSTRUCTORS")
data class Instructor(
@Id
var id: Int? ,
val name: String,
@OneToMany(
mappedBy = "instructor",
cascade = [CascadeType.ALL],
orphanRemoval = true
)
var c... | 0 | Kotlin | 0 | 0 | be53f2daefcdefb06a0c2048eebb3b053f943e8a | 360 | KotlinSpringBoot | MIT License |
apps/greeting-service/src/main/kotlin/micro/apps/greeting/GreetingApplication.kt | pgoreutn | 294,115,726 | false | null | package micro.apps.greeting
import javax.enterprise.context.ApplicationScoped
import javax.ws.rs.ApplicationPath
import javax.ws.rs.core.Application
import org.eclipse.microprofile.openapi.annotations.OpenAPIDefinition
import org.eclipse.microprofile.openapi.annotations.info.Contact
import org.eclipse.microprofile.open... | 0 | Kotlin | 0 | 0 | cace18fcb48a42b6b94d5425f44a31d7cb66899d | 999 | micro-app | MIT License |
app/src/main/java/com/github/oheger/wificontrol/MainActivity.kt | oheger | 646,529,710 | false | {"Kotlin": 53435} | /*
* Copyright 2023-2024 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1 | Kotlin | 0 | 0 | f285441e22a75244d199a54eafd36b3ac80e0157 | 2,298 | WifiControl | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAddition.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 140726596} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.iam
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.IInspectable
import io.... | 1 | Kotlin | 0 | 4 | e15f2e27e08adeb755ad44b2424c195521a6f5ba | 7,459 | kotlin-cdk-wrapper | Apache License 2.0 |
src/main/kotlin/io/babydevelopers/babybot/domain/GithubRepository.kt | babiesdev | 544,065,515 | false | null | package io.babydevelopers.babybot.domain
data class GithubRepository(
val name: String,
val url: String,
val commits: List<Commit>,
)
| 5 | Kotlin | 1 | 3 | 95e6a007200918bf50fdb1dd0bef8e6b8cca26fa | 147 | baby-bot | MIT License |
fiks-arkiv-forenklet-arkivering/src/main/kotlin/no/ks/fiks/io/arkiv/model/metadatakatalog/v2/SkjermingDokumentType.kt | ks-no | 462,694,499 | false | {"Kotlin": 138061, "Java": 12286} | package no.ks.fiks.io.arkiv.model.metadatakatalog.v2
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.SkjermingDokument
enum class SkjermingDokumentType(val value: SkjermingDokument) {
SKJERMING_AV_HELE_DOKUMENTET(SkjermingDokument().also { it.kode = "H"; it.beskrivelse = "Skjerming av hele dokumentet" }... | 2 | Kotlin | 0 | 0 | f88536a130ab79cff6e8cd39260a20f818356d52 | 457 | fiks-arkiv-client-java | MIT License |
androidApp/src/main/java/hr/dtakac/prognoza/androidsettings/AndroidSettingsRepository.kt | davidtakac | 387,038,134 | false | null | package hr.dtakac.prognoza.androidsettings
import android.content.SharedPreferences
import android.os.Build
import androidx.core.content.edit
import javax.inject.Inject
private const val THEME_SETTING_KEY = "theme_setting_key"
private const val MOOD_MODE_KEY = "mood_mode_key"
class AndroidSettingsRepository @Inject ... | 24 | Kotlin | 11 | 194 | 2ff651b1b6470441fc81066f84271feacc855195 | 1,584 | prognoza | MIT License |
app/src/main/java/com/signnow/sdk_sample/contracts/ContractsActivity.kt | SignNowInc | 462,222,458 | false | null | package com.signnow.sdk_sample.contracts
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.DividerItemDecoration
import android... | 0 | Kotlin | 0 | 1 | 04a0c18dc6559f9c8b1abefddd318b5cec504558 | 2,968 | android-sdk | Apache License 2.0 |
project/kimmer/src/main/kotlin/org/babyfish/kimmer/sql/Association.kt | babyfish-ct | 447,936,858 | false | {"Kotlin": 967243} | package org.babyfish.kimmer.sql
import org.babyfish.kimmer.Draft
import org.babyfish.kimmer.meta.ImmutableType
import org.babyfish.kimmer.produce
import kotlin.reflect.KClass
interface Association<S, SID, T, TID>: Entity<AssociationId<SID, TID>>
where S: Entity<SID>, T: Entity<TID>, SID: Comparable<SID>, TID: Compara... | 0 | Kotlin | 3 | 37 | 8345d9112292b7f13aaccae681bc91cb51fa9315 | 1,556 | kimmer | MIT License |
designer/src/com/android/tools/idea/uibuilder/type/PreferenceScreenFileType.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2018 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 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,567 | android | Apache License 2.0 |
app/src/main/java/de/hsaugsburg/teamulster/sohappy/config/ImageAnalyzerConfig.kt | teamulster | 289,924,548 | false | null | package de.hsaugsburg.teamulster.sohappy.config
/**
* This data class stores a ImageAnalyzerConfig.
*
* @property faceDetector a package string to the selected faceDetectorImpl
* @property smileDetector a package string to the selected smileDetectorImpl
*/
data class ImageAnalyzerConfig(
val faceDetector: Str... | 0 | Kotlin | 0 | 9 | 0bceb03f47f0d72320de9080ada19bc7473795c7 | 1,459 | soHappy | MIT License |
src/main/kotlin/org/monsim/api/accounting/CashAccounter.kt | jimdmorgan | 310,986,865 | false | null | package org.monsim.api.accounting
import org.monsim.bean.Bill
import org.monsim.bean.domain.Game
interface CashAccounter {
/**
* Applies a bill (which contains a debitor, a creditor, and an amount).
* All the debitor's available cash is immediately taken and given to the creditor.
* So if the bill... | 1 | null | 1 | 1 | 0c97854234c874a6e5fa4b649ec0ca7719d77c21 | 996 | monsim | MIT License |
integration/common/datapool-sender/src/main/kotlin/io/holunda/polyflow/datapool/sender/SimpleDataEntryCommandSender.kt | holunda-io | 135,994,693 | false | null | package io.holunda.polyflow.datapool.sender
import com.fasterxml.jackson.databind.ObjectMapper
import io.holunda.camunda.taskpool.api.business.*
import io.holunda.camunda.variable.serializer.serialize
import io.holunda.polyflow.datapool.DataEntrySenderProperties
import io.holunda.polyflow.datapool.projector.DataEntryP... | 24 | null | 26 | 68 | 0a80b87e49127b355d62f8a32e91a6c355d11419 | 4,309 | camunda-bpm-taskpool | Apache License 2.0 |
feature-author/src/main/java/com/google/samples/apps/nowinandroid/feature/author/navigation/AuthorNavigation.kt | smallooo | 500,649,010 | false | {"Kotlin": 993485, "Shell": 10203} | /*
* 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 applica... | 0 | Kotlin | 0 | 0 | 3fb8df16ea14651abd628986b9645679ac7c28d2 | 1,549 | radio-android | Apache License 2.0 |
src/main/kotlin/uk/co/baconi/playground/models/Request.kt | beercan1989 | 556,317,174 | false | {"Kotlin": 11959} | package uk.co.baconi.playground.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("request")
data class Request(
val authentication: Authentication,
val requestOne: RequestOne? = null,
val requestTwo: RequestTwo? = null,
)
| 0 | Kotlin | 0 | 0 | e6bcc929407cd53ec65bb99e73a651153b50bdd7 | 302 | playground-ktor-client-xml | Apache License 2.0 |
core/bitmaps/api/src/main/java/com/shevelev/wizard_camera/core/bitmaps/api/type_detector/ImageType.kt | AlShevelev | 262,626,159 | false | null | package com.shevelev.wizard_camera.core.bitmaps.api.type_detector
enum class ImageType {
JPEG,
PNG,
UNDEFINED
} | 1 | Kotlin | 5 | 53 | 61adcb56875f38ec92b66a686b9449efef580f74 | 124 | WizardCamera | Apache License 2.0 |
android/app/src/main/java/com/zulipmobile/notifications/FCMPushNotifications.kt | izyrtm | 209,246,630 | false | null | @file:JvmName("FCMPushNotifications")
package com.zulipmobile.notifications
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.media.AudioAttributes
i... | 16 | null | 0 | 1 | 85434875de768c6f2bd9b97540983a8f2126a7ff | 7,390 | izyrtm-mobile | Apache License 2.0 |
tilbakekreving/domain/src/main/kotlin/tilbakekreving/domain/ErUtfylt.kt | navikt | 227,366,088 | false | {"Kotlin": 9248077, "Shell": 4372, "TSQL": 1233, "Dockerfile": 800} | package tilbakekreving.domain
import dokument.domain.brev.Brevvalg
import tilbakekreving.domain.vurdering.VurderingerMedKrav
sealed interface ErUtfylt : Tilbakekrevingsbehandling {
override val vurderingerMedKrav: VurderingerMedKrav
override val vedtaksbrevvalg: Brevvalg.SaksbehandlersValg
}
| 2 | Kotlin | 1 | 1 | 9fbc1f8db1063c2375380bb776e27299e30591c9 | 303 | su-se-bakover | MIT License |
main/src/main/kotlin/com/tasomaniac/devwidget/main/WidgetViewHolder.kt | tasomaniac | 117,675,057 | false | null | package com.tasomaniac.devwidget.main
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.tasomaniac.devwidget.extensions.inflate
import com.tasomaniac.devwidget.widget.preview.WidgetListData
import com.tasomaniac.devwidget.widget.preview.WidgetView
inter... | 5 | Kotlin | 5 | 35 | c8f25f18a1b7f86146e21567cbe0aa7847e4451c | 954 | DevWidget | Apache License 2.0 |
fixpatches/src/commonTest/kotlin/com/saveourtool/sarifutils/utils/SarifUtilsTest.kt | saveourtool | 572,423,694 | false | {"Kotlin": 90229, "Shell": 601, "C#": 111, "Python": 99} | package com.saveourtool.sarifutils.utils
import io.github.detekt.sarif4k.SarifSchema210
import okio.Path
import okio.Path.Companion.toPath
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
@Suppress("TOO_LONG_FUNCTION")
class ... | 5 | Kotlin | 0 | 9 | 27b2a835defe90cd60d657b6e713afd8d4e19da6 | 7,662 | sarif-utils | MIT License |
server/src/test/kotlin/com/adobe/testing/s3mock/dto/BucketLifecycleConfigurationTest.kt | adobe | 97,753,277 | false | null | /*
* Copyright 2017-2024 Adobe.
*
* 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 ... | 17 | null | 180 | 826 | 2a375f602dc130d5a789b2812e2b8760c6689e87 | 3,104 | S3Mock | Apache License 2.0 |
autocompletelocation/src/main/java/com/jesualex/autocompletelocation/AutocompleteAdapter.kt | jesualex | 198,845,053 | false | null | package com.jesualex.autocompletelocation
import android.content.Context
import android.graphics.Typeface
import android.text.style.CharacterStyle
import android.text.style.StyleSpan
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.TextView
import com.goo... | 0 | null | 7 | 12 | 824cdabfc22d4741cbc929c1b8529f69d4acedcc | 1,559 | AutocompleteLocationAndroid | Apache License 2.0 |
annotations/src/main/kotlin/dev/medzik/ktor/annotations/Methods.kt | M3DZIK | 836,210,871 | false | {"Kotlin": 10701} | // Annotation values is used in the KSP processor.
@file:Suppress("UNUSED")
package dev.medzik.ktor.annotations
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.FUNCTION)
annotation class GET(vararg val routes: String = ["/"])
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.FUNCTION)
a... | 0 | Kotlin | 0 | 1 | 16a1065e6368b446f754e6893f198c39b5744b8d | 1,041 | ktor-annotated | MIT License |
ui/ui_image_details/src/androidTest/kotlin/siarhei/luskanau/iot/doorbell/ui/imagedetails/slide/ImageDetailsSlideFragmentTest.kt | siarhei-luskanau | 79,257,367 | false | null | package siarhei.luskanau.iot.doorbell.ui.imagedetails.slide
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.lifecycle.Lifecycle
import androidx.test.espresso.Espresso
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.matcher.ViewMatchers
import com.karu... | 0 | Kotlin | 0 | 1 | a364c332ab2aca3ed1df3affbf17d52d9f2dcce3 | 2,927 | android-iot-doorbell | MIT License |
app/src/main/java/com/lttrung/dormitory/domain/usecases/ForgotPasswordUseCase.kt | lttrung2001 | 622,933,615 | false | null | package com.lttrung.dormitory.domain.usecases
import io.reactivex.rxjava3.core.Single
import javax.inject.Singleton
@Singleton
interface ForgotPasswordUseCase {
fun execute(username: String): Single<Unit>
} | 0 | Kotlin | 0 | 0 | c53837bf9b491beb1876c86e798fc06be8943868 | 212 | dormitory | MIT License |
app/src/main/java/com/honeybilly/cleanbrowser/activity/web/MoreMenuAdapter.kt | liqQi | 140,266,723 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 30, "XML": 42, "Java": 5} | package com.honeybilly.cleanbrowser.activity.web
import android.support.v7.widget.RecyclerView
import android.util.TypedValue
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.honeybilly.cleanbrowser.R
import com.honeybilly.cleanbrowser.data.Me... | 0 | Kotlin | 0 | 0 | 175c1c0f3dc328f16c371895704d08e5ff31fedb | 2,656 | simplebrowser | Apache License 2.0 |
library/messaging/core/headers/src/main/kotlin/io/github/ustudiocompany/uframework/messaging/header/MessageVersionHeader.kt | uStudioCompany | 745,407,841 | false | {"Kotlin": 184532} | package io.github.ustudiocompany.uframework.messaging.header
import io.github.ustudiocompany.uframework.messaging.header.type.MessageVersion
import io.github.ustudiocompany.uframework.messaging.message.header.Header
import io.github.ustudiocompany.uframework.messaging.message.header.Headers
import kotlin.text.Charsets... | 0 | Kotlin | 0 | 0 | 2a550c48beb81ca236f8219c944a3cad693b5bfe | 628 | u-framework | Apache License 2.0 |
ui/ui-core/src/androidMain/kotlin/androidx/compose/ui/window/AndroidDialog.kt | syntaxxxxx | 306,333,033 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | null | 1 | 1 | e4ce477393fc1026f45fe67b73d8400f19e83975 | 5,461 | androidx | Apache License 2.0 |
shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/features/settings/vm/SettingsRouter.kt | soniccat | 302,971,014 | false | null | package com.aglushkov.wordteacher.shared.features.settings.vm
interface SettingsRouter {
fun openGoogleAuth()
fun signOutGoogle()
} | 0 | Kotlin | 1 | 3 | d853cd31e7a609777bffb6ceef18461cccf8222d | 140 | WordTeacher | MIT License |
src/day9/result.kt | davidcurrie | 437,645,413 | false | {"Kotlin": 37294} | package day9
import java.io.File
data class Coord(val x: Int, val y: Int)
fun Map<Coord, Int>.neighbours(coord: Coord) =
listOf(Pair(-1, 0), Pair(0, -1), Pair(1, 0), Pair(0, 1))
.map { Coord(coord.x + it.first, coord.y + it.second) }
.filter { contains(it) }
.toSet()
fun Map<Coord, Int>.... | 0 | Kotlin | 0 | 0 | dd37372420dc4b80066efd7250dd3711bc677f4c | 1,210 | advent-of-code-2021 | MIT License |
java/kotlin/src/main/kotlin/terra/wasm/v1beta1/QueryParamsRequestKt.kt | dimitar-petrov | 413,042,055 | true | {"Git Config": 1, "Text": 1, "Ignore List": 3, "Makefile": 3, "Markdown": 3, "Gradle Kotlin DSL": 5, "INI": 2, "Shell": 3, "Batchfile": 1, "Java": 181, "Kotlin": 917, "JSON with Comments": 1, "JSON": 3, "Git Attributes": 1, "EditorConfig": 1} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: terra/wasm/v1beta1/query.proto
package terra.wasm.v1beta1;
@kotlin.jvm.JvmSynthetic
inline fun queryParamsRequest(block: terra.wasm.v1beta1.QueryParamsRequestKt.Dsl.() -> Unit): terra.wasm.v1beta1.QueryOuterClass.QueryParamsRequest =
terra.wasm.v1... | 0 | null | 0 | 0 | 06fcb6a1e57962a46af0aebb90b5b110e0b42435 | 1,440 | terra.proto | Apache License 2.0 |
app/src/main/java/com/rkbk60/quickflick/domain/MultiTapManager.kt | dooteeen | 228,537,354 | false | {"HTML": 655334, "Kotlin": 149292, "CSS": 17660, "Python": 15120, "Makefile": 1880} | package com.rkbk60.quickflick.domain
/**
* simple class to memory multi tap count and preferences.
* @param cancelFlick can or cannot cancel flick with multi tap
* @param cancelInput can or cannot cancel input only with multi tap twice
*/
class MultiTapManager(private val cancelFlick: Boolean, private val cancelIn... | 0 | HTML | 0 | 0 | c7c1adeb7b91d3e4d7b0262b27505776407b5c91 | 974 | QuickFlick | MIT License |
js/js.translator/testFiles/java/arrayList/cases/isEmpty.kt | chirino | 3,596,099 | true | null | package foo
import java.util.ArrayList;
fun box(): Boolean {
val a = ArrayList<Int>();
a.add(3)
return !(a.isEmpty) && (ArrayList<Int>().isEmpty);
} | 0 | Java | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 162 | kotlin | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/MoneyOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/MoneyOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val MoneyOutlined: SvgIconComponent
| 10 | Kotlin | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 208 | kotlin-wrappers | Apache License 2.0 |
RichTextEditorJavaFX/src/main/java/net/dankito/richtexteditor/java/fx/toolbar/SearchViewStyle.kt | yunjaena | 287,743,931 | true | {"Kotlin": 309438, "JavaScript": 22147, "Java": 6999, "CSS": 3525, "HTML": 729} | package net.dankito.richtexteditor.java.fx.toolbar
import net.dankito.richtexteditor.command.ToolbarCommandStyle
import net.dankito.utils.javafx.ui.image.JavaFXImageReference
data class SearchViewStyle(
val toolbarCommandStyle: ToolbarCommandStyle = ToolbarCommandStyle(),
val searchFieldWidth: Double... | 0 | null | 0 | 0 | fd5c74a527a1df802971667902a749a173b471e2 | 708 | RichTextEditor | Apache License 2.0 |
core/src/main/kotlin/io/github/restioson/kettle/entity/component/PixmapComponent.kt | Restioson | 91,720,429 | false | null | package io.github.restioson.kettle.entity.component
import com.badlogic.ashley.core.Component
import com.badlogic.gdx.graphics.Pixmap
import com.badlogic.gdx.utils.Pool
/**
* Component for Pixmaps
*/
class PixmapComponent() : Component, Pool.Poolable {
var pixmap: Pixmap? = null
constructor(pixmap: Pixmap... | 0 | Kotlin | 0 | 4 | 84c2fb79c920144ed25f72bbdc6918213de39e94 | 404 | kettle-engine | Apache License 2.0 |
app/src/main/java/com/concordium/wallet/ui/tokens/tokens/TokensOverviewActivity.kt | Concordium | 750,205,274 | false | {"Kotlin": 1641344, "Java": 247867, "HTML": 31416, "CSS": 256} | package com.concordium.wallet.ui.tokens.tokens
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.core.view.isVisible
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.GridLayou... | 6 | Kotlin | 0 | 1 | 35ce1e40d756c9dabef4d72c2766a47c309f53ab | 4,766 | cryptox-android | Apache License 2.0 |
easymvp/src/main/java/com/xdja/easymvp/utils/ViewExt.kt | yuan9034 | 280,068,333 | false | null | package com.xdja.easymvp.utils
import android.view.View
/**
* @author yuanwanli
* @des 针对view的扩展
* @date 2019/7/30
*/
/*
扩展点击事件,参数为方法
*/
fun View.onClick(method: () -> Unit): View {
setOnClickListener { method() }
return this
}
/*
扩展视图可见性
*/
fun View.setVisible(visible: Boolean) {
this.vis... | 0 | Kotlin | 0 | 1 | 85290317abc7dc62de12c73a6b8e195a8323b45b | 372 | EasyMvp | Apache License 2.0 |
app/src/main/java/cn/edu/hpu/eyepetizer/mvp/presenter/HomePresenter.kt | happySteveQi | 132,235,061 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 23, "Kotlin": 25} | package cn.edu.hpu.eyepetizer.mvp.presenter
import android.content.Context
import cn.edu.hpu.eyepetizer.mvp.contract.HomeContract
import cn.edu.hpu.eyepetizer.mvp.model.HomeModel
import cn.edu.hpu.eyepetizer.mvp.model.bean.HomeBean
import cn.edu.hpu.eyepetizer.utils.applySchedulers
import io.reactivex.Observable
/**
... | 1 | null | 1 | 1 | 73291d047b342d2cb807f066d8ed65f993e9aa94 | 1,258 | graduate_design | Apache License 2.0 |
app/src/main/java/com/tutuland/dogdroid/data/info/DogInfoRepository.kt | tutuland | 469,736,215 | false | null | package com.tutuland.dogdroid.data.info
import com.tutuland.dogdroid.data.info.local.DogInfoLocalSource
import com.tutuland.dogdroid.data.info.remote.DogInfoRemoteSource
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.onEach
impo... | 0 | Kotlin | 0 | 1 | 4f97d3b9722a0a0685c37a8455ec7cd0f8a39016 | 1,486 | DogDroid | MIT License |
mvvmhabit/src/main/java/me/cya/retrofit/callback/BaseResponseCallback.kt | troyzqmingming | 228,771,476 | true | {"Java": 482223, "Kotlin": 11144} | package me.cya.retrofit.callback
import me.cya.retrofit.exception.ResponseThrowable
interface BaseResponseCallback<T> {
fun onResponseSuccess(result: T)
fun onResponseError(exception: ResponseThrowable)
} | 0 | Java | 0 | 0 | 88bd1660000b80c03b697e4f7974548e182c8fdd | 217 | MVVMHabit | Apache License 2.0 |
app/src/main/kotlin/jp/cordea/butler/model/overview/MonitorData.kt | CORDEA | 65,520,948 | false | null | package jp.cordea.butler.model.overview
import com.squareup.moshi.Json
import jp.cordea.butler.model.ClockMonitor
import jp.cordea.butler.model.RespTimeMonitor
/**
* Created by <NAME> on 2016/07/12.
*/
data class MonitorData(@Json(name = "hudson.node_monitors.ArchitectureMonitor") val architectureMonitor: String?,
... | 0 | Kotlin | 0 | 0 | 8ba6e453bbd49e527bc46ddce28e44b13eb18381 | 545 | Butler | Apache License 2.0 |
livekit-android-sdk/src/main/java/io/livekit/android/renderer/SurfaceViewRenderer.kt | livekit | 339,892,560 | false | null | /*
* Copyright 2023-2024 LiveKit, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 58 | null | 65 | 167 | 94ffb6ce6924951be5bc184f351f99972d5cc3d1 | 1,281 | client-sdk-android | Apache License 2.0 |
src/test/kotlin/org/treeWare/server/ktor/CommonModuleTests.kt | tree-ware | 283,844,157 | false | null | package org.treeWare.server.ktor
import io.ktor.application.Application
import io.ktor.http.HttpMethod
import io.ktor.http.HttpStatusCode
import io.ktor.server.testing.handleRequest
import io.ktor.server.testing.withTestApplication
import kotlin.test.Test
import kotlin.test.assertEquals
class CommonModuleTests {
... | 5 | Kotlin | 0 | 0 | e7c10b3873d3acbad883a7faeef4cc3ebc0477ab | 596 | tree-ware-kotlin-server | Apache License 2.0 |
VideoCompositionSample/src/main/java/dev/chromeos/videocompositionsample/presentation/ui/screens/player/PlayerFragment.kt | chromeos | 419,334,870 | false | null | /*
* Copyright (c) 2021 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 agree... | 0 | Kotlin | 2 | 7 | 7a91156a14bd4a735a9bcaa42b8e09c1ad92e08f | 14,013 | video-composition-sample | Apache License 2.0 |
NoMoneyTrip/app/src/main/java/com/mtjin/nomoneytrip/data/phone/source/PhoneAuthRepositoryImpl.kt | mtjin | 267,286,962 | false | null | package com.mtjin.nomoneytrip.data.phone.source
import com.google.firebase.database.DatabaseReference
import com.mtjin.nomoneytrip.utils.TEL
import com.mtjin.nomoneytrip.utils.USER
import com.mtjin.nomoneytrip.utils.uuid
import io.reactivex.Completable
class PhoneAuthRepositoryImpl(private val database: DatabaseRefer... | 1 | Kotlin | 5 | 32 | 5d6f32adb70a8ef0ea536a263cdf42701bbcc5c0 | 764 | NoMoneyTrip | MIT License |
android/app/src/androidTest/java/com/trustwallet/core/app/utils/Extensions.kt | jacob-creech | 174,363,444 | true | {"C": 1329839, "C++": 600639, "Swift": 307361, "Java": 77749, "HTML": 40952, "Ruby": 38940, "CMake": 35993, "Python": 33811, "Kotlin": 26964, "Shell": 6876, "Objective-C": 5065, "Dockerfile": 1643, "Nix": 138} | package com.trustwallet.core.app.utils
fun ByteArray.toHex(): String {
return Numeric.toHexString(this)
}
fun String.toHexBytes(): ByteArray {
return Numeric.hexStringToByteArray(this)
}
fun String.toHexByteArray(): ByteArray {
return Numeric.hexStringToByteArray(this)
} | 0 | C | 0 | 0 | d5a1497c8d50685030ea752332dc28f48c82da36 | 287 | wallet-core | MIT License |
feature_stackoverflow/src/main/java/com/akexorcist/example/feature_stackoverflow/vo/ui/Profile.kt | akexorcist | 174,211,788 | false | {"Kotlin": 84268} | package com.akexorcist.example.feature_stackoverflow.vo.ui
import android.os.Parcel
import android.os.Parcelable
data class Profile(
val id: Long = -1,
val name: String?,
val image: String?,
val url: String?,
val location: String?,
val reputation: Int = 0,
val badge: Badge?
) : Parcelable ... | 0 | Kotlin | 1 | 0 | 3955220884b1d00afb577d8ec6f90dda6157c355 | 1,267 | AkexorcistProfile | Apache License 2.0 |
jsonparser/src/main/java/tomatobean/jsonparser/typeadapter/MapTypeAdapter.kt | gtomato | 113,842,358 | false | null | package tomatobean.jsonparser.typeadapter
import org.json.JSONObject
import tomatobean.jsonparser.*
import kotlin.reflect.KClass
import kotlin.reflect.KType
import kotlin.reflect.jvm.jvmErasure
class HashMapTypeAdapter: TypeAdapter<HashMap<*, *>>() {
override fun write(output: JsonWriter, value: HashMap<*, *>?, ... | 0 | Kotlin | 0 | 5 | c6fe3eb34b22512c3144f46a7b31ccb7b5399ce9 | 1,460 | Kotlin-JsonParser | MIT License |
src/app/src/main/java/com/example/followme/RouteActivity.kt | SE-I1-Follow-Me | 567,193,859 | false | null | package com.example.followme
import android.content.Intent
import android.os.Bundle
import android.preference.PreferenceManager
import android.widget.ImageButton
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import org.osmdroid.config.Configuration.getInstance
import org.os... | 9 | Kotlin | 0 | 4 | 826fb3b124215e3aabadfb30fe487173524b8e09 | 5,891 | SE-Projekt-I1 | Creative Commons Attribution 4.0 International |
src/main/kotlin/dev/deepslate/fallacy/common/command/Handler.kt | Mottle | 841,231,519 | false | {"Kotlin": 80855} | package dev.deepslate.fallacy.common.command
import dev.deepslate.fallacy.Fallacy
import net.neoforged.bus.api.SubscribeEvent
import net.neoforged.fml.common.EventBusSubscriber
import net.neoforged.neoforge.event.RegisterCommandsEvent
@EventBusSubscriber(modid = Fallacy.MOD_ID)
object Handler {
@SubscribeEvent
... | 0 | Kotlin | 0 | 0 | 85daae781c927c0390792a2de808b66e769bf84c | 611 | Fallacy | MIT License |
src/main/kotlin/de/rehatech/homeekt/Homee.kt | Rehatech22-23 | 575,597,791 | false | null | package de.rehatech.homeekt
import com.google.gson.Gson
import de.rehatech.homeekt.model.*
import okhttp3.*
import okhttp3.RequestBody.Companion.toRequestBody
import org.json.JSONObject
import java.util.concurrent.TimeUnit
import kotlinx.coroutines.*
import java.security.MessageDigest
import java.util.*
import kotlin.... | 0 | Kotlin | 0 | 0 | 8957d188a5bc0c7fd5ce7e8cc4057bea4eefec0b | 8,140 | homeekt | MIT License |
livechart/src/main/java/com/yabu/livechart/model/DataPoint.kt | Pfuster12 | 272,056,161 | false | null | package com.yabu.livechart.model
data class DataPoint(val x: Float,
val y: Float) | 9 | Kotlin | 11 | 96 | f61fa4fad141ea60f2027f81bce50cd23219753a | 103 | LiveChart | MIT License |
loader/src/main/java/com/romanwuattier/loader/internal/downloader/DownloaderModule.kt | RomanWuattier | 127,255,011 | false | null | package com.romanwuattier.loader.internal.downloader
import com.romanwuattier.loader.internal.converter.ConverterFactory
import com.romanwuattier.loader.internal.converter.ConverterStrategy
import com.romanwuattier.loader.ConverterType
import com.romanwuattier.loader.internal.utils.checkMainThread
import okhttp3.OkHtt... | 0 | Kotlin | 0 | 1 | a0a40ec757a65dc836d69c59115e59fb2a298ac0 | 1,294 | StringsLoader | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/digitalprisonreportinglib/service/ReportDefinitionService.kt | ministryofjustice | 697,333,274 | false | {"Kotlin": 224622} | package uk.gov.justice.digital.hmpps.digitalprisonreportinglib.service
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.digitalprisonreportinglib.controller.model.RenderMethod
import uk.gov.justice.digital.hmpps.digitalprisonreportinglib.controller.model.ReportDefinition
import uk.gov.... | 3 | Kotlin | 0 | 1 | 5bfaf9700792b630a376a4298dcafad8d70f8aac | 1,403 | hmpps-digital-prison-reporting-lib | MIT License |
app/src/main/java/com/google/mlkit/updatestatus/UpdateStatusActivity.kt | wmksoftsolutions | 380,124,677 | false | {"Java": 98128, "Kotlin": 85730} | package com.google.mlkit.updatestatus
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.mlkit.home.Data
import com.google.mlkit.home.TrackStatusResponse
import com.google.mlkit.s... | 0 | Java | 0 | 0 | 5d83e2f9c838a878909e926f49f927a46408c6b7 | 4,385 | SafariTrans | Apache License 2.0 |
protobuf-to-taxi/src/main/java/lang/taxi/generators/protobuf/TaxiGenerator.kt | taxilang | 601,101,781 | false | {"Kotlin": 1681931, "ANTLR": 66122, "TypeScript": 12542, "JavaScript": 4324, "Shell": 1468, "Java": 1454, "MDX": 425} | package lang.taxi.generators.protobuf
import com.squareup.wire.schema.Location
import com.squareup.wire.schema.Schema
import com.squareup.wire.schema.SchemaLoader
import lang.taxi.TaxiDocument
import lang.taxi.generators.GeneratedTaxiCode
import lang.taxi.generators.Logger
import lang.taxi.generators.SchemaWriter
impo... | 8 | Kotlin | 5 | 75 | 9ec062c26b5d616b340104b5d5a7ae53142a12a0 | 1,457 | taxilang | Apache License 2.0 |
flavors/Kotlin/ApproximatePi.kt | CitrusPunk | 200,368,534 | false | null | // NEED:
// Java & Kotlin Compiler (kotlinc) installed
// USAGE:
// first type "kotlinc ApproximatePi.kt -include-runtime -d ApproximatePi.jar" to compile to a .jar-file
// second type "java -jar .\ApproximatePi.jar"
package ApproximatePi
fun main(args : Array<String>) {
var repeat:Boolean = true;
while (repea... | 1 | null | 1 | 1 | 99b48dbe8f5653eea497476ff48a914307a9458f | 1,434 | approximatePi | MIT License |
src/main/kotlin/org/pushingpixels/artemis/shaders/ShaderRenderEffectDemo1.kt | kirill-grouchnikov | 455,667,291 | false | {"Kotlin": 144584} | /*
* Copyright (c) 2021-23 Artemis, <NAME>. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 0 | Kotlin | 7 | 141 | 8e57e17f7a1b8e35d3d620c10774f26f980b63cb | 2,664 | artemis | Apache License 2.0 |
test/src/main/kotlin/io/github/airflux/functional/kotest/ResultMatchers.kt | airflux | 717,503,226 | false | {"Kotlin": 137793} | /*
* Copyright 2023-2023 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 1 | 0 | fb3093ad5116b1cd88f7d97f420871c401cf608f | 2,730 | airflux-functional | Apache License 2.0 |
android/app/src/main/java/dev/fredag/cheerwithme/happening/HappeningsRepository.kt | fredagsdeploy | 191,515,654 | false | null | package dev.fredag.cheerwithme.happening
import dev.fredag.cheerwithme.data.backend.BackendService
import dev.fredag.cheerwithme.data.backend.CreateHappening
import dev.fredag.cheerwithme.data.backend.Happening
import dev.fredag.cheerwithme.data.backend.HappeningId
import kotlinx.coroutines.flow.Flow
import kotlinx.co... | 15 | Kotlin | 0 | 0 | dfba80fe28fa457cf69919639c80d4d4822a7813 | 2,264 | cheer-with-me | MIT License |
ds3-autogen-go/src/main/kotlin/com/spectralogic/ds3autogen/go/utils/GoNamingUtil.kt | SpectraLogic | 43,916,943 | false | {"Gradle": 13, "Markdown": 8, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Java": 486, "JSON": 7, "Git Attributes": 9, "XML": 182, "Kotlin": 89, "FreeMarker": 19, "Fluent": 151, "Java Properties": 2} | /*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. 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. A copy of the License i... | 0 | Java | 4 | 4 | 9c94ab811c002cbc978e27735512adaf543cd58e | 1,858 | ds3_autogen | Apache License 2.0 |
app/src/main/java/com/fredrikbogg/android_chat_app/ui/chats/ChatsFragment.kt | dgewe | 288,984,096 | false | null | package com.fredrikbogg.android_chat_app.ui.chats
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNav... | 0 | Kotlin | 35 | 87 | cff2f947a4496e46cbaa750b4e3fa768ba2308f0 | 2,535 | Chat-App-Android | MIT License |
src/main/kotlin/no/nav/eessi/pensjon/personidentifisering/relasjoner/RelasjonsHandler.kt | navikt | 178,813,650 | false | null | package no.nav.eessi.pensjon.personidentifisering.relasjoner
import no.nav.eessi.pensjon.eux.kanInneholdeIdentEllerFdato
import no.nav.eessi.pensjon.eux.model.BucType
import no.nav.eessi.pensjon.eux.model.SedType.*
import no.nav.eessi.pensjon.eux.model.sed.SED
import no.nav.eessi.pensjon.personoppslag.pdl.model.SEDPer... | 2 | null | 3 | 6 | ecffc4ad04aa9da50a0a7de401e5b9eb5ea34f95 | 3,445 | eessi-pensjon-journalforing | MIT License |
transferwise/src/main/java/com/transferwise/banks/util/Helpers.kt | Ryggs | 335,055,882 | true | {"Kotlin": 446684} | /*
* Copyright 2019 TransferWise Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | null | 0 | 1 | ea0aa12bca3f1c15fbaad29c62b36893d7ce09a6 | 930 | banks-reference-android | Apache License 2.0 |
src/main/kotlin/no/roedt/lokallag/LokallagService.kt | Roedt | 300,015,002 | false | null | package no.roedt.lokallag
import io.quarkus.panache.common.Sort
import jakarta.enterprise.context.ApplicationScoped
import no.roedt.person.Postnummer
@ApplicationScoped
class LokallagService(val repository: LokallagRepository) {
fun findById(lokallag: Int): Lokallag = repository.findById(lokallag)
fun findAl... | 11 | Kotlin | 0 | 0 | fdca6b0524d1f2d3c53edbb026c5f2ee736e7559 | 1,373 | ringesentralen-backend | MIT License |
av/FFmpegAndroid-master/app/src/main/java/com/frank/ffmpeg/tool/JsonParseTool.kt | wangpengfei1992 | 444,720,156 | false | {"C": 15356987, "Kotlin": 1926516, "Java": 1439280, "Makefile": 697532, "Shell": 397449, "C++": 160245, "GLSL": 104693, "CMake": 58126, "M4": 43504, "Assembly": 40776, "CSS": 20448, "Perl": 10762, "Groovy": 9011, "HTML": 2612, "Batchfile": 789} | package com.frank.ffmpeg.tool
import android.text.TextUtils
import android.util.Log
import com.frank.ffmpeg.model.AudioBean
import com.frank.ffmpeg.model.MediaBean
import com.frank.ffmpeg.model.VideoBean
import org.json.JSONObject
/**
* the tool of parsing json
* Created by frank on 2020/1/8.
*/
object JsonParse... | 0 | C | 0 | 0 | 2e078f0c510515be47e6713357fa87089af8fdae | 7,165 | TestDemoList | Apache License 2.0 |
app/src/main/java/com/sebastijanzindl/galore/data/repository/impl/CocktailRepositoryImpl.kt | m1thrandir225 | 743,270,603 | false | {"Kotlin": 355549} | package com.sebastijanzindl.galore.data.repository.impl
import com.sebastijanzindl.galore.data.network.KtorAPIService
import com.sebastijanzindl.galore.data.repository.CocktailRepository
import com.sebastijanzindl.galore.domain.models.Cocktail
import com.sebastijanzindl.galore.domain.models.UserLikedCocktail
import co... | 0 | Kotlin | 0 | 0 | 3a8523e4c8f38020c909ab04c98275b13bb329d9 | 4,117 | galore-android | MIT License |
cards/src/main/java/com/hatfat/cards/results/swipe/SearchResultsSwipeViewModel.kt | scottrick | 337,184,629 | false | null | package com.hatfat.cards.results.swipe
import androidx.lifecycle.*
import com.hatfat.cards.data.DataReady
import com.hatfat.cards.data.SearchResults
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class SearchResultsSwipeViewModel @Inject constructor(
savedStateHandle:... | 0 | Kotlin | 0 | 0 | cab290ccb06ac4158fc36eee24b6e4cb4a085dc1 | 1,928 | cards | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.