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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/moegirlviewer/api/account/bean/LoginTokenBean.kt | koharubiyori | 449,942,456 | false | null | package com.moegirlviewer.api.account.bean
data class LoginTokenBean(
val batchcomplete: String,
val query: Query
) {
data class Query(
val tokens: Tokens
) {
data class Tokens(
val logintoken: String
)
}
} | 1 | Kotlin | 2 | 16 | e09753e76c11932d6f7344302d48f7a214cccf3a | 235 | Moegirl-plus-native | MIT License |
library/src/main/java/renetik/android/core/logging/CSLog.kt | renetik | 506,035,450 | false | null | package renetik.android.core.logging
import android.content.Context
import renetik.android.core.extensions.content.toast
import renetik.android.core.kotlin.CSUnexpectedException
import renetik.android.core.kotlin.primitives.leaveEndOfLength
import renetik.android.core.kotlin.then
import renetik.android.core.kotlin.toS... | 0 | null | 1 | 3 | aa6a08a94f4faac94a53d2cb6570436e388b0508 | 6,148 | renetik-android-core | MIT License |
app/src/main/java/com/leetcode_kotlin/Task/twoSum/TwoSum/ContainmsDublicate/ContainsDublicate.kt | Ashwagandha-coder | 568,689,282 | false | {"Kotlin": 13356, "Java": 808} | package com.leetcode_kotlin.Task.twoSum.TwoSum.ContainmsDublicate
fun containsDuplicate(nums: IntArray): Boolean {
var set = mutableSetOf<Int>()
for (i in nums)
set.add(i)
if (set.size == nums.size)
return false
else
return true
}
fun sol2(nums: IntArray): Boolean {
va... | 0 | Kotlin | 0 | 0 | 66b4c1a095edc7663214be4de80081904586b794 | 490 | leetcode_kotlin | MIT License |
app/src/main/java/com/vivy/app/shared/network/RequestInfo.kt | ShabanKamell | 201,554,520 | false | null | package com.vivy.app.shared.network
import retrofit2.HttpException
data class RequestInfo(
var inlineHandling: ((HttpException) -> Boolean)? = null,
var retryCallback: () -> Unit = {},
var showLoading: Boolean = true
) {
fun inlineHandling(inlineHandling: ((HttpException) -> Boolean)?): R... | 1 | Kotlin | 2 | 2 | e710420c2ec077eea322eae387885ca81faf8338 | 544 | Vivy | Apache License 2.0 |
wire-schema/src/commonMain/kotlin/com/squareup/wire/schema/internal/parser/OneOfElement.kt | square | 12,274,147 | false | null | /*
* Copyright (C) 2014 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 163 | null | 570 | 4,244 | 74715088d7d2ee1fdd6d3e070c8b413eefc7e5bd | 1,611 | wire | Apache License 2.0 |
phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/settings/ElectrumView.kt | ACINQ | 192,964,514 | false | null | /*
* Copyright 2021 ACINQ SAS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 97 | null | 96 | 666 | 011c8b85f16ea9ad322cbbba2461439c5e2b0aed | 16,769 | phoenix | Apache License 2.0 |
src/test/kotlin/no/nav/familie/ef/sak/tilbakekreving/TilbakekrevingControllerTest.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.tilbakekreving
import no.nav.familie.ef.sak.OppslagSpringRunnerTest
import no.nav.familie.ef.sak.behandling.BehandlingService
import no.nav.familie.ef.sak.behandling.domain.Behandling
import no.nav.familie.ef.sak.behandling.domain.BehandlingType
import no.nav.familie.ef.sak.fagsak.FagsakS... | 8 | Kotlin | 2 | 0 | d1d8385ead500c4d24739b970940af854fa5fe2c | 3,452 | familie-ef-sak | MIT License |
widgets/src/androidMain/kotlin/dev/icerock/moko/widgets/core/screen/Screen.kt | icerockdev | 218,209,603 | false | null | /*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.widgets.screen
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Parcelable
import android... | 40 | Kotlin | 29 | 334 | 63ea65d622f702432a5b5d1f587ba0fb8a81f95e | 6,181 | moko-widgets | Apache License 2.0 |
shared/src/commonMain/kotlin/data/repositories/TimerRepository.kt | Appmilla | 803,336,812 | false | {"Kotlin": 20413, "Swift": 6349} | package data.repositories
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.PreferenceDataStoreFactory
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.intPreferencesKey
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow... | 0 | Kotlin | 1 | 4 | 0c5f7b45bdaaaa0481e4e4f79e95e9447feea1c4 | 1,408 | KMPJetpackDemo | Apache License 2.0 |
domain/src/main/java/com/ujizin/leafy/domain/usecase/alarm/load/LoadAlarmUseCase.kt | ujizin | 442,024,281 | false | {"Kotlin": 349427} | package com.ujizin.leafy.domain.usecase.alarm
import com.ujizin.leafy.domain.model.Alarm
import com.ujizin.leafy.domain.result.Result
import kotlinx.coroutines.flow.Flow
/**
* Load alarm use case.
* */
interface LoadAlarm {
/**
* Load alarm on data source.
*
* @param id the alarm's id
* */
... | 7 | Kotlin | 1 | 4 | 27e28e5984a0fef94d3aa8d7c813ba1851cfd4f3 | 392 | Leafy | Apache License 2.0 |
rsocket-core/src/commonMain/kotlin/io/rsocket/kotlin/core/RSocketServerBuilder.kt | rsocket | 109,894,810 | false | null | /*
* Copyright 2015-2020 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 app... | 27 | null | 36 | 515 | 88e692837137a99de18cfbe69b9a52ac5626a5f9 | 1,664 | rsocket-kotlin | Apache License 2.0 |
libausbc/src/main/java/com/jiangdg/ausbc/render/effect/EffectZoom.kt | jiangdongguo | 105,255,685 | false | null | /*
* Copyright 2017-2022 Jiangdg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 447 | null | 792 | 2,323 | ebfd9437eb6e23e30f583a0151474b2fa6267fca | 1,593 | AndroidUSBCamera | Apache License 2.0 |
instrumented/integration/src/androidTest/kotlin/com/datadog/android/sdk/integration/sessionreplay/textfields/SrTextFieldsMaskUserInputTest.kt | DataDog | 219,536,756 | false | {"Kotlin": 9121111, "Java": 1179237, "C": 79303, "Shell": 63055, "C++": 32351, "Python": 5556, "CMake": 2000} | /*
* 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.sessionreplay.images
imp... | 60 | Kotlin | 60 | 151 | d7e640cf6440ab150c2bbfbac261e09b27e258f4 | 1,400 | dd-sdk-android | Apache License 2.0 |
zoomimage-view/src/main/kotlin/com/github/panpf/zoomimage/view/subsampling/internal/TileDrawHelper.kt | panpf | 647,222,866 | false | null | /*
* Copyright (C) 2023 panpf <panpfpanpf@outlook.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 applica... | 8 | null | 7 | 98 | bdc00e862498830df39a205de5d3d490a5f04444 | 7,551 | zoomimage | Apache License 2.0 |
price/src/main/kotlin/de/richargh/springkotlinhexagonal/properties/PropertyPrinting.kt | Richargh | 165,030,359 | false | null | package de.richargh.springkotlinhexagonal.properties
import java.util.*
internal fun printProperties() {
val applicationProperties = Properties().apply {
load(Thread.currentThread().contextClassLoader.getResourceAsStream("application.properties"))
}
val devProperties = Properties().apply {
... | 0 | Kotlin | 0 | 1 | f91b0de43d49dc596daeccc8fc0c929e65eb0de9 | 660 | spring-kotlin-hexagonal | MIT License |
app/src/main/kotlin/ir/thatsmejavad/backgroundable/screens/settings/SettingsScreen.kt | javadjafari1 | 642,709,238 | false | {"Kotlin": 431381} | package ir.thatsmejavad.backgroundable.screens.settings
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layo... | 2 | Kotlin | 2 | 30 | 23d62ddbd08b8996319699e505e11a180fcba62e | 5,296 | Backgroundable | Apache License 2.0 |
collect_app/src/androidTest/java/org/odk/collect/android/benchmark/SearchBenchmarkTest.kt | getodk | 40,213,809 | false | {"Java": 3378614, "Kotlin": 2749754, "JavaScript": 2830, "Shell": 2689} | package org.odk.collect.android.benchmark
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.blankOrNullString
import org.hamcrest.Matchers.not
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import org.junit.runne... | 283 | Java | 1372 | 717 | 63050fdd265c42f3c340f0ada5cdff3c52a883bc | 2,433 | collect | Apache License 2.0 |
src/test/kotlin/model/ReferencePositionTest.kt | JSAbrahams | 279,637,335 | false | null | package model
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.shouldBe
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import main.kotlin.model.ReferencePosition
class ReferencePositionTest : FreeSpec({
"a referen... | 23 | Kotlin | 1 | 1 | d8c3c22352646972e110b2599a3901b89593d313 | 1,019 | Academic-Journal | MIT License |
src/main/kotlin/frc/chargers/wpilibextensions/ratelimit/AngularVelocityRateLimiter.kt | frc-5160-the-chargers | 497,722,545 | false | {"Kotlin": 438322, "Java": 56704} | package frc.chargers.wpilibextensions.ratelimit
import com.batterystaple.kmeasure.quantities.AngularAcceleration
import com.batterystaple.kmeasure.quantities.AngularVelocity
import com.batterystaple.kmeasure.quantities.Quantity
import com.batterystaple.kmeasure.quantities.abs
import edu.wpi.first.math.filter.SlewRateL... | 3 | Kotlin | 0 | 2 | ef0bca03f00901ffcc5508981089edced59f91aa | 1,851 | ChargerLib | MIT License |
src/main/kotlin/no/nav/dagpenger/soknad/orkestrator/behov/løsere/PermittertFiskeforedlingBehovløser.kt | navikt | 758,018,874 | false | {"Kotlin": 186367, "HTML": 701, "Dockerfile": 109} | package no.nav.dagpenger.soknad.orkestrator.behov.løsere
import no.nav.dagpenger.soknad.orkestrator.behov.Behovløser
import no.nav.dagpenger.soknad.orkestrator.behov.BehovløserFactory.Behov.Permittert
import no.nav.dagpenger.soknad.orkestrator.behov.Behovmelding
import no.nav.dagpenger.soknad.orkestrator.opplysning.as... | 3 | Kotlin | 0 | 0 | dfb07db7092c5984706cb6fd98b7bc63e3752186 | 1,502 | dp-soknad-orkestrator | MIT License |
sample/src/main/java/com/example/sample/ui/MainViewModel.kt | crow-misia | 429,544,850 | false | null | package com.example.sample.ui
import android.app.Application
import android.content.Context
import androidx.core.content.edit
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.viewModelScope
import com.amazonaws.mobileconnectors.iot.AWSIoTKeystoreHe... | 0 | Kotlin | 0 | 0 | bf46c3f734cc7c11bd19889316054e9fbbda02de | 7,020 | aws-sdk-android-ktx | Apache License 2.0 |
src/main/kotlin/org/rust/lang/core/macros/RsMacroDataWithHash.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.macros
import org.rust.lang.core.macros.errors.ResolveMacroWithoutPsiError
import org.rust.lang.core.psi.RsFunction
import org.rust.lang.core.psi.ext.RsMacroDefinitionBase
import org.r... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 3,395 | intellij-rust | MIT License |
webauthnkit/src/main/kotlin/webauthnkit/core/data/AuthenticatorAttachment.kt | lyokato | 166,183,654 | false | null | package webauthnkit.core.data
enum class AuthenticatorAttachment(
private val rawValue: String
) {
Platform("platform"),
CrossPlatform("cross-platform");
override fun toString(): String {
return rawValue
}
}
| 1 | null | 5 | 22 | 7646b8b3f7eb6442832696e34fb7625288d41349 | 239 | WebAuthnKit-Android | MIT License |
lib-moshi/src/main/java/net/codefeet/lemmyandroidclient/gen/types/ListRegistrationApplicationsResponse.kt | Flex4Reddit | 648,927,752 | false | null | package net.codefeet.lemmyandroidclient.gen.types
import android.os.Parcelable
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import kotlin.collections.List
import kotlinx.parcelize.Parcelize
@Parcelize
@JsonClass(generateAdapter = true)
public data class ListRegistrationApplicationsResponse(
@J... | 0 | Kotlin | 0 | 0 | 8028bbf4fc50d7c945d20c7034d6da2de4b7c0ac | 449 | lemmy-android-client | MIT License |
canvas2_lp/src/main/java/com/angcyo/canvas2/laser/pecker/util/LPConstant.kt | angcyo | 229,037,684 | false | null | package com.angcyo.canvas2.laser.pecker.util
import com.angcyo.library.component.hawk.HawkPropertyValue
import com.angcyo.library.unit.IRenderUnit
import com.angcyo.library.unit.InchRenderUnit
import com.angcyo.library.unit.MmRenderUnit
import com.angcyo.library.unit.PxRenderUnit
/**
* 常量
* @author <a href="mailto:... | 0 | Kotlin | 4 | 3 | ce8ef6bdd49421a0973367828242ee74bc95b0af | 1,205 | UICoreEx | MIT License |
app/src/main/java/com/example/webexandroid/HomeActivity.kt | wxsd-sales | 563,005,023 | false | {"Kotlin": 383358} | package com.example.webexandroid
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import com.example.webexandroid.auth.LoginActivit... | 0 | Kotlin | 1 | 0 | ddf63685454955a2afa0eea0bcc81b3e67edc764 | 3,135 | peer-support-demo-app | MIT License |
app/src/main/java/com/ogamoga/developerslive/screens/main/PagerAdapter.kt | ogamoga | 403,120,927 | false | {"Kotlin": 31703} | package com.ogamoga.developerslive.screens.main
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.ogamoga.developerslive.screens.item.ItemFragment
class PagerAdapter(
fragment: Fragment
) : FragmentStateAdapter(fragment) {
override fun getItemCount(): Int... | 0 | Kotlin | 0 | 0 | cfc73aa6fdcbc0009bcf6605ab964b316237a176 | 429 | DevelopersLife | MIT License |
modules/dokkatoo-plugin/src/testFixtures/kotlin/kotestStringMatchers.kt | adamko-dev | 598,382,061 | false | null | package dev.adamko.dokkatoo.utils
import io.kotest.assertions.print.print
import io.kotest.matchers.MatcherResult
import io.kotest.matchers.neverNullMatcher
import io.kotest.matchers.should
import io.kotest.matchers.shouldNot
infix fun String?.shouldContainAll(substrings: Iterable<String>): String? {
this should c... | 671 | null | 409 | 9 | cfebdcc16620c6972283b4d6c8159cdae61e9b65 | 2,015 | dokkatoo | Apache License 2.0 |
FluentUI.Demo/src/main/java/com/microsoft/fluentuidemo/demos/PersistentBottomSheetActivity.kt | Anthonysidesapp | 454,785,341 | false | null | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
package com.microsoft.fluentuidemo.demos
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.view.Gravity... | 36 | null | 65 | 9 | 61cbb5799bba74342b342cd98680286a96f27f70 | 14,454 | fluentui-android | MIT License |
app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceAdapter.kt | az4521 | 176,152,541 | false | null | package eu.kanade.tachiyomi.ui.browse.source
import eu.davidea.flexibleadapter.FlexibleAdapter
import eu.davidea.flexibleadapter.items.IFlexible
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.util.system.getResourceColor
/**
* Adapter that holds the catalogue cards.
*
* @param controller instance of [Sour... | 22 | null | 18 | 471 | a72df3df5073300e02054ee75dc990d196cd6db8 | 1,292 | TachiyomiAZ | Apache License 2.0 |
appcompose/src/main/java/com/developersancho/hb/compose/app/widgets/ProgressIndicator.kt | developersancho | 523,126,274 | false | {"Kotlin": 182195} | package com.developersancho.component
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.MaterialTheme
import androidx.compose.runt... | 3 | Kotlin | 33 | 8 | 3557e85b86699d8c053a9fc370077ef580a8019a | 2,206 | HB.Case.Android | Apache License 2.0 |
server/src/main/kotlin/io/github/alessandrojean/tankobon/interfaces/api/rest/dto/SystemStatusDto.kt | alessandrojean | 609,405,137 | false | null | package io.github.alessandrojean.tankobon.interfaces.api.rest.dto
data class SystemStatusDto(
val status: SystemStatus,
val isDevelopment: Boolean,
val isDemo: Boolean,
val version: String,
)
enum class SystemStatus {
OPERATIONAL, PROBLEMS, NO_DATABASE
}
| 0 | Kotlin | 0 | 1 | cb28b68c0b6f3b1de7f77450122a609295396c28 | 267 | tankobon | MIT License |
serverless-simulator/opendc/opendc-core/src/main/kotlin/com/atlarge/opendc/core/failure/FailureDomain.kt | atlarge-research | 297,702,102 | false | {"Jupyter Notebook": 11330813, "Kotlin": 547073, "Python": 15018, "R": 1048} | /*
* MIT License
*
* Copyright (c) 2020 atlarge-research
*
* 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,... | 0 | Jupyter Notebook | 1 | 2 | 11c772bcb3fc7a7c2590d6ed6ab979b78cb9fec9 | 1,644 | opendc-serverless | MIT License |
android/app/src/main/kotlin/com/babanomania/CleanHabits/SingleHabitWidgetConfigureActivity.kt | clean-apps | 287,965,692 | false | null | package com.babanomania.CleanHabits
import android.app.Activity
import android.appwidget.AppWidgetManager
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.AdapterView
imp... | 2 | Dart | 11 | 19 | 91b4c604d8714f93bd72735eee88d2c0712108d8 | 7,943 | CleanHabits | Apache License 2.0 |
runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/net/IpV4Addr.kt | smithy-lang | 294,823,838 | false | {"Kotlin": 4171610, "Smithy": 122979, "Python": 1215} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.net
/**
* An IPv4 address as defined by [RFC 791](https://www.rfc-editor.org/rfc/rfc791)
* @param octets The four eight-bit integers that make up this address
*/
pub... | 36 | Kotlin | 26 | 82 | ad18e2fb043f665df9add82083c17877a23f8610 | 3,038 | smithy-kotlin | Apache License 2.0 |
src/main/kotlin/br/com/devsrsouza/kotlinbukkitapi/tooling/menu/Declaration.kt | DevSrSouza | 278,207,597 | false | null | package tech.carcadex.kotlinbukkitkit.tooling.menu
data class MenuDeclaration(
val displayname: String,
val lines: Int,
val slots: List<MenuSlotDeclaration>
)
data class MenuSlotDeclaration(
val line: Int,
val slot: Int,
val item: String,
val isSelected: Boolean = false
)
| 2 | null | 4 | 15 | 5532f33f821cb7daaab4b253c4f0a9c2c8ac3f58 | 319 | KotlinBukkitAPI-Tooling | MIT License |
app/src/main/java/com/hover/stax/domain/use_case/financial_tips/TipsUseCase.kt | UseHover | 286,494,631 | false | {"Kotlin": 1033610, "Java": 88968, "Shell": 274, "Ruby": 235} | /*
* Copyright 2022 Stax
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 106 | Kotlin | 72 | 79 | 5b735dc215b63533420fe899c579a42a44f598ea | 1,648 | Stax | Apache License 2.0 |
app/src/main/java/com/example/loginsesame/helper/LogAssert.kt | sw21-tug | 350,454,499 | false | null | package com.example.loginsesame.helper
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStreamReader
import java.util.regex.Matcher
import java.util.regex.Pattern
import kotlin.jvm.Thr... | 19 | null | 5 | 1 | 684325336e50fad9482073faf56596f70732739f | 1,803 | Team_17 | MIT License |
app/src/main/java/com/example/pokedex/network/Pokemon/PokemonStats.kt | RamziJabali | 389,429,666 | false | {"Kotlin": 35432} | package com.example.pokedex.network.Pokemon
import com.google.gson.annotations.SerializedName
data class PokemonStats(
@SerializedName("base_stat")
val pokemonBaseStat: Int,
@SerializedName("stat")
val pokemonStatType: PokemonStatStype
)
| 0 | Kotlin | 0 | 2 | 59e60563e32feabb07abb1cb22839f0c81a7c37a | 256 | pokedex-android | Apache License 2.0 |
src/main/kotin/com/hewking/kotlin/other/OperatorOverloading.kt | hewking | 215,742,339 | false | null | package main.kotin.com.hewking.kotlin.other
/**
* @program: kotlinPractice
* @description: ${description}
* @author: hewking
* @create: 2019-10-17 16:46
**/
data class Point(val x: Int,val y: Int)
operator fun Point.unaryMinus() = Point(-x,-y)
val point = Point(10,20)
fun main(){
print(-point)
} | 0 | Kotlin | 0 | 0 | 7f3d18a87b6c2239d048ea70575933228e23fb19 | 310 | kotlinPractice | Apache License 2.0 |
features/series/src/main/java/com/chesire/nekome/app/series/list/DialogExtensions.kt | rmwthorne | 330,431,997 | true | {"Kotlin": 498067, "Ruby": 7559, "JavaScript": 64} | package com.chesire.nekome.app.series.list
import androidx.fragment.app.Fragment
import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.lifecycle.lifecycleOwner
import com.afollestad.materialdialogs.list.listItems
import com.afollestad.materialdialogs.list.listItemsMultiChoice
impor... | 0 | null | 0 | 0 | c941c4e1fed0ed76ff28948d9d9bfe7fa280117f | 2,262 | Nekome | Apache License 2.0 |
compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/impl/IrEnumConstructorCallImpl.kt | arrow-kt | 109,678,056 | false | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 125 | null | 4903 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 2,357 | kotlin | Apache License 2.0 |
core/src/main/java/de/markusressel/kutepreferences/core/preference/action/ActionPreferenceBehavior.kt | markusressel | 129,962,741 | false | {"Kotlin": 271957, "Shell": 2347, "Makefile": 701} | package de.markusressel.kutepreferences.core.preference.action
import de.markusressel.kutepreferences.core.preference.KuteItemBehavior
import de.markusressel.kutepreferences.core.preference.category.shimmerLengthMillis
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow... | 6 | Kotlin | 0 | 12 | dd5c034d2a6d18a05ed8c75227dd598525cd0916 | 1,189 | KutePreferences | The Unlicense |
app/src/main/java/com/example/alertasullana/ui/viewmodel/PerfilViewModel.kt | peteragurto | 711,549,330 | false | {"Kotlin": 83226} | package com.example.alertasullana.ui.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.alertasullana.data.repository.FirebaseRepository
import com.example.alertasullana.data.repository.UsuarioRepository
class PerfilViewModel(p... | 0 | Kotlin | 0 | 3 | 517eeee7f35b6bb3c7a7a5c3b9e53b8ff37263c6 | 1,968 | app-alerta-sullana | MIT License |
server/src/main/kotlin/com/studystream/app/server/feature/account/routes/Create.kt | ImpossibleAccuracy | 834,219,225 | false | {"Kotlin": 158719, "Dockerfile": 625} | package com.studystream.app.server.feature.account.routes
import com.studystream.domain.model.Account
import com.studystream.domain.security.Permission
import com.studystream.domain.repository.AuthRepository
import com.studystream.app.server.feature.account.Accounts
import com.studystream.app.server.mapper.toDto
impor... | 0 | Kotlin | 0 | 0 | a34321630eacff596bbcd117a292bd4a52429c49 | 1,576 | study-stream | The Unlicense |
ui/galleries/presenter/impl/src/test/kotlin/com/adjectivemonk2/pixels/ui/galleries/presenter/impl/AccountImageUrlGeneratorTest.kt | Sripadmanabans | 300,346,280 | false | null | package com.adjectivemonk2.pixels.ui.galleries.common.impl
import com.google.common.truth.Truth.assertThat
import org.junit.jupiter.api.Test
internal class AccountImageUrlGeneratorTest {
@Test fun `Account thumbnail url generator test`() {
val id = "account id"
val actual = AccountImageUrlGenerator().thumb... | 11 | null | 0 | 2 | c925014bad38c7eb659282806289f8f453b78f30 | 450 | Pixels | Apache License 2.0 |
underwave/src/androidTest/kotlin/com/aallam/underwave/internal/view/ViewManagerTest.kt | Aallam | 229,120,653 | false | null | package com.aallam.underwave.internal.view
import android.os.Handler
import com.aallam.underwave.extension.MainCoroutineRule
import com.aallam.underwave.extension.runBlocking
import com.aallam.underwave.internal.cache.memory.bitmap.BitmapPool
import com.aallam.underwave.internal.image.Bitmap
import com.aallam.underwav... | 0 | Kotlin | 0 | 0 | 0403c4c9cfdfc07a0de9e8e079c5cff00a15e421 | 3,101 | Underwave | Apache License 2.0 |
kotlin-typescript/src/jsMain/generated/typescript/ForInitializer.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Automatically generated - do not modify!
package typescript
sealed external interface ForInitializer : Node
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 113 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/shell/view/CodeBlockStatisticsView.kt | darthmachina | 637,608,931 | false | {"Kotlin": 174636, "CSS": 1921, "JavaScript": 301} | package shell.view
import MarkdownPostProcessorContext
import core.functions.TaskStatisticFunctions.Companion.totalCompleted
import core.functions.TaskStatisticViewFunctions.Companion.total
import core.functions.TaskStatisticViewFunctions.Companion.totalWeekFive
import core.functions.TaskStatisticViewFunctions.Compani... | 0 | Kotlin | 0 | 1 | e0f77b158313707cd5bde0519d9ecba2f2b69c21 | 5,094 | underling-obsidian | MIT License |
src/main/java/cn/edu/kmust/flst/web/vo/backstage/website/WebsiteVo.kt | zbeboy | 128,647,683 | false | {"Maven POM": 1, "Text": 2, "Ignore List": 1, "XML": 115, "Markdown": 1, "Kotlin": 90, "Java": 154, "INI": 3, "YAML": 3, "HTML": 31, "SVG": 1, "CSS": 45, "JavaScript": 300, "SQL": 1} | package cn.edu.kmust.flst.web.vo.backstage.website
/**
* Created by zbeboy 2018-04-16 .
**/
open class WebsiteVo {
var address: String? = null
var addressEn: String? = null
var zipCode: String? = null
var phone: String? = null
var fax: String? = null
} | 2 | JavaScript | 0 | 0 | 895b865c6fec882a46f3b47f94e69bbda89724b3 | 275 | FLST | MIT License |
krossbow-stomp-core/src/commonTest/kotlin/org/hildan/krossbow/stomp/instrumentation/KrossbowInstrumentationTest.kt | joffrey-bion | 190,066,229 | false | null | package org.hildan.krossbow.stomp.instrumentation
import kotlinx.coroutines.launch
import kotlinx.coroutines.test.runBlockingTest
import org.hildan.krossbow.stomp.StompErrorFrameReceived
import org.hildan.krossbow.stomp.frame.StompCommand
import org.hildan.krossbow.stomp.sendText
import org.hildan.krossbow.test.Krossb... | 12 | null | 7 | 82 | e72a8d8254399e439c454b2d0a689011c297b22e | 4,050 | krossbow | MIT License |
src/main/kotlin/io/github/ydwk/ydwk/evm/handler/handlers/role/GuildRoleUpdateHandler.kt | YDWK | 527,250,343 | false | null | /*
* Copyright 2022 YDWK 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 5 | null | 1 | 2 | 7dd752abeb27614da13f97a962a19a7b4360ea15 | 1,451 | YDWK | Apache License 2.0 |
src/main/kotlin/fr/zakaoai/coldlibrarybackend/ColdLibraryBackendApplication.kt | zakaoai | 344,490,461 | false | {"Kotlin": 57777, "Dockerfile": 318} | package fr.zakaoai.coldlibrarybackend
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration
import org.springframework.boot.runApplication
import org.springframework.cache.annotation.EnableCaching
@SpringBo... | 11 | Kotlin | 0 | 0 | 9d6baea25631486bcc00382433b385cea2500cb2 | 529 | cold-library-backend | MIT License |
oidc-spec-oauth/src/commonMain/kotlin/OAuth.kt | LSafer | 723,829,331 | false | {"Kotlin": 203655} | /*
* Copyright 2023 cufy.org and meemer.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 law o... | 0 | Kotlin | 0 | 1 | 9f8b20446ca6e172af376d8c73066d4f60b7953c | 12,144 | oidc-spec | Apache License 2.0 |
abp-demo/abp-demo-sso-server/src/main/kotlin/com/abomb4/abp/UserServiceMain.kt | abomb4 | 141,275,739 | false | {"Maven POM": 8, "Text": 1, "Ignore List": 1, "Markdown": 1, "YAML": 5, "XML": 3, "SQL": 4, "Kotlin": 21, "Java": 3, "HTML": 2} | /*
* Copyright 2019 abomb4
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1 | Kotlin | 0 | 0 | fe0db00b7aab633570212e8a7f83adf69ae1f17b | 1,121 | ab-platform | Apache License 2.0 |
app/src/main/java/com/yazag/navigationhomework/ui/home/HomeFragment.kt | oren345 | 692,884,084 | false | {"Kotlin": 10203} | package com.yazag.navigationhomework.ui.home
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.navigation.fragment.findNavController
import androidx.viewbinding.ViewBinding... | 0 | Kotlin | 0 | 0 | c63a40b0cc3ced895c76482d800152a07cb2a977 | 1,353 | NavigationHomework | MIT License |
presentation/src/main/java/com/doctoror/splittor/presentation/groupsoverview/GroupsOverviewContent.kt | Doctoror | 639,914,602 | false | null | package com.doctoror.splittor.presentation.groupsoverview
import androidx.compose.foundation.Image
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx... | 0 | Kotlin | 0 | 2 | f8ae7f4ca61f85b606b51a34c85790702cb2319d | 4,524 | Android-MVPVM-Architecture-Demo | Apache License 2.0 |
quartz/src/main/java/com/vitorpamplona/quartz/crypto/Hkdf.kt | vitorpamplona | 587,850,619 | false | {"Kotlin": 3777160, "Shell": 1488, "Java": 921} | /**
* Copyright (c) 2024 <NAME>
*
* 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, publish, di... | 5 | Kotlin | 3 | 995 | 0bb39f91b9dddf81dcec63f3d97674f26872fbd0 | 2,508 | amethyst | MIT License |
demo-transactions/src/main/kotlin/io/holixon/cqrshexagonaldemo/demoparent/transactions/command/application/port/inbound/customer/CreateCustomerInPort.kt | holixon | 747,608,283 | false | {"Kotlin": 69299, "Shell": 72} | package io.holixon.cqrshexagonaldemo.demoparent.transactions.command.application.port.inbound.customer
import io.holixon.cqrshexagonaldemo.demoparent.transactions.command.domain.model.common.Name
import io.holixon.cqrshexagonaldemo.demoparent.transactions.command.domain.model.customer.Customer
interface CreateCustome... | 3 | Kotlin | 0 | 0 | e634c14ca89f3de72f53ae6680c8ca12c539d6a7 | 384 | cqrs-meets-hexagonal | Apache License 2.0 |
app/src/main/java/com/ajce/hostelmate/nightstudy/inmates/InmatesRequestNightStudyActivity.kt | Jithin-Jude | 256,905,231 | false | null | package com.ajce.hostelmate.nightstudy.inmates
import android.appwidget.AppWidgetManager
import android.os.Bundle
import android.view.View
import android.widget.ArrayAdapter
import android.widget.RemoteViews
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.ajce.hostelmate.R
import... | 0 | Kotlin | 1 | 1 | da95b289d6767dceec57e07718f0ad283ad1dfc4 | 3,388 | HostelMate_AJCE | MIT License |
app/src/main/java/com/midnight/musictest/framwork/repository/mapper/LyricMapperDb.kt | alireza-87 | 458,341,195 | false | {"Kotlin": 89723} | package com.midnight.musictest.framwork.repository.mapper
import com.midnight.core.domain.LyricModelCore
import com.midnight.musictest.framwork.repository.local.model.LyricModelDb
import javax.inject.Inject
class LyricMapperDb @Inject constructor(){
fun toCore(data:LyricModelDb?):LyricModelCore?{
data?.le... | 0 | Kotlin | 0 | 1 | c3550105a46a1b1cc09db081bcb845c52a56ef5a | 481 | WhoSings | MIT License |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/substring/ReplaceSubstringWithSubstringBeforeAfterIntentions.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.inspections.substring
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import org.jetbra... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,636 | intellij-community | Apache License 2.0 |
relateddigital-android/src/main/java/com/relateddigital/relateddigital_android/inapp/spintowin/SpinToWinWebDialogFragment.kt | relateddigital | 379,568,070 | false | null | package com.relateddigital.relateddigital_google.inapp.slotmachine
import android.annotation.SuppressLint
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.ConsoleMessage
import andro... | 0 | null | 2 | 6 | ba181b42af58532a51314b1f61a69f479fa11516 | 5,244 | relateddigital-android | Amazon Digital Services License |
libraries/tools/src/main/kotlin/com/ave/vastgui/tools/utils/permission/PermissionRegister.kt | SakurajimaMaii | 353,212,367 | false | {"Kotlin": 1119175, "Java": 31062} | /*
* Copyright 2022 VastGui <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 8 | Kotlin | 6 | 64 | 81c5ca59680143d9523c01852d9587a8d926c1c3 | 5,145 | Android-Vast-Extension | Apache License 2.0 |
feature/quiz/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/quiz/participation/ConnectionStatusUi.kt | ls1intum | 537,104,541 | false | {"Kotlin": 1958120, "Dockerfile": 1306, "Shell": 1187} | package de.tum.informatics.www1.artemis.native_app.feature.quiz.participation
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Wifi
import androidx.compose.material.icons.filled... | 21 | Kotlin | 0 | 6 | ef1ce4b9f87f09f4271f87ca6912b093bcad11a5 | 1,432 | artemis-android | MIT License |
usecases/src/main/kotlin/usecase/usecases/common/File.kt | semicolondsm | 418,085,977 | false | null | package usecase.usecases.common
import io.ktor.http.content.*
import java.io.File
fun writeFile(requestFile: PartData.FileItem, filePath: String) {
val savedFile = File(filePath)
val directoryPath = filePath.substring(0, filePath.lastIndexOf("/"))
val directory = File(directoryPath)
if (!directory.e... | 1 | Kotlin | 0 | 0 | f75470363d95ff8ef5044a795b7aa0f7e70bd3a1 | 585 | Leesauce-Server | MIT License |
biometric/src/main/java/dev/skomlach/biometric/compat/engine/internal/face/facelock/FacelockOldModule.kt | sergeykomlach | 317,847,167 | false | null | /*
* Copyright (c) 2023 <NAME> aka Salat-Cx65; Original project https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* 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 ... | 6 | null | 19 | 94 | 9555725a28227e28079a6dbc5da7c91d8b9634bb | 14,049 | AdvancedBiometricPromptCompat | Apache License 2.0 |
idea/tests/org/jetbrains/kotlin/idea/stubs/DebugTextByStubTest.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 191 | null | 4372 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 10,728 | kotlin | Apache License 2.0 |
app/src/main/kotlin/com/ivanovsky/passnotes/domain/usecases/FindNoteForAutofillUseCase.kt | aivanovski | 95,774,290 | false | null | package com.ivanovsky.passnotes.domain.usecases
import com.ivanovsky.passnotes.data.entity.Note
import com.ivanovsky.passnotes.data.entity.OperationResult
import com.ivanovsky.passnotes.domain.DispatcherProvider
import com.ivanovsky.passnotes.presentation.autofill.model.AutofillStructure
import com.ivanovsky.passnotes... | 4 | Kotlin | 1 | 7 | dc4abdf847393919f5480129b64240ae0469b74c | 2,227 | kpassnotes | Apache License 2.0 |
app/src/main/java/com/example/glossaryapp/fragments/ProductListFragment.kt | adamcreeves | 296,684,271 | false | {"Kotlin": 88550} | package com.example.glossaryapp.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import com.android.volley.Request
import com.android.volley.toolbox.... | 0 | Kotlin | 0 | 0 | bdac2e3fbebf36c02d1a120d5aad27c88ce6c6c3 | 2,375 | GroceryApp | MIT License |
mobilepayments/src/main/java/com/begateway/mobilepayments/models/network/request/Checkout.kt | begateway | 205,831,098 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 67, "Kotlin": 72} | package com.begateway.mobilepayments.models.network.request
import com.begateway.mobilepayments.models.network.AdditionalFields
import com.google.gson.annotations.SerializedName
class Checkout(
@SerializedName("version") val version: Double = 2.1,
@SerializedName("test") val test: Boolean = false,
@Serial... | 1 | null | 3 | 1 | 9710bcc3b349cfedda6c2b035cf750a2ede26533 | 7,592 | begateway-android-sdk | MIT License |
core/src/main/kotlin/nz/co/jedsimson/lgp/core/environment/RandomHelpers.kt | JedS6391 | 88,687,241 | false | null | package nz.co.jedsimson.lgp.core.environment
import kotlin.math.ceil
import kotlin.math.ln
import kotlin.math.pow
import kotlin.random.Random
/**
* Return a random element from the given list.
*/
fun <T> Random.choice(list: List<T>): T {
val randomMultiplier = this.nextDouble()
return list[(randomMultiplie... | 5 | Kotlin | 4 | 17 | a4f11315b07435fec14c20a186913af8404d247b | 2,117 | LGP | MIT License |
VertxAnnoCore/src/main/kotlin/io/github/johnfg10/vertxanno/annotations/fieldannotations/Disable.kt | johnfg2610 | 126,643,220 | false | {"Kotlin": 13739} | package io.github.johnfg10.vertxanno.annotations.fieldannotations
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class Disable() | 0 | Kotlin | 0 | 0 | 0f2122151b7851753db4186b6742b8c61a79a845 | 168 | VertxAnnotation | The Unlicense |
src/main/kotlin/no/nav/lydia/sykefraversstatistikk/api/FilterverdierDto.kt | navikt | 444,072,054 | false | null | package no.nav.lydia.sykefraværsstatistikk.api
import ia.felles.definisjoner.bransjer.Bransjer
import kotlinx.serialization.Serializable
import no.nav.lydia.ia.sak.domene.IAProsessStatus
import no.nav.lydia.sykefraværsstatistikk.api.geografi.Fylke
import no.nav.lydia.sykefraværsstatistikk.api.geografi.Kommune
import n... | 2 | null | 0 | 2 | 4026bea42d89710f23d52baaab4d19d592f247da | 1,282 | lydia-api | MIT License |
source/app/src/main/java/com/apion/apionhome/ui/adapter/HouseAdapter.kt | ApionTech | 386,238,144 | false | null | package com.apion.apionhome.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import com.apion.apionhome.base.BaseAdapter
import com.apion.apionhome.base.BaseViewHolder
import com.apion.apionhome.data.model.House
import com.apion.apionhome.databinding.ItemHouseBinding
class HouseAdapter(priv... | 0 | Kotlin | 1 | 0 | 24ddb088ffd985dcd34e3e8deeb5edcc1d717558 | 1,088 | apion_home | Apache License 2.0 |
src/test/kotlin/no/nav/dagpenger/soknad/orkestrator/behov/BehovløserFactoryTest.kt | navikt | 758,018,874 | false | {"Kotlin": 253872, "HTML": 1388, "Dockerfile": 109} | package no.nav.dagpenger.soknad.orkestrator.behov
import io.kotest.matchers.shouldBe
import io.mockk.mockk
import no.nav.dagpenger.soknad.orkestrator.opplysning.db.OpplysningRepositoryPostgres
import no.nav.helse.rapids_rivers.testsupport.TestRapid
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jup... | 2 | Kotlin | 0 | 0 | bcb167cb9d0fc04eb299dee4514a798a11b8e097 | 1,667 | dp-soknad-orkestrator | MIT License |
src/test/kotlin/io/vlang/ide/codeInsight/ReferenceImporterTest.kt | vlang | 754,996,747 | false | null | package org.vlang.ide.codeInsight
class ReferenceImporterTest : ReferenceImporterTestBase() {
fun `test simple`() = doTest(
"""
module main
fn main() {
os.read_file('')
}
""".trimIndent(),
"""
module main
... | 5 | null | 5 | 33 | a0d2cbfa63b995d93aaca3c80676f0c2f9bef117 | 1,674 | intellij-v | MIT License |
app/src/main/java/com/review/architecture/todoapp/domain/DeleteTaskUseCase.kt | j-a-s-o-n | 571,954,395 | false | null | package com.review.architecture.todoapp.domain
import com.review.architecture.todoapp.data.source.TasksRepository
import com.review.architecture.todoapp.util.wrapEspressoIdlingResource
class DeleteTaskUseCase(
private val tasksRepository: TasksRepository
) {
suspend operator fun invoke(taskId: String) {
... | 0 | Kotlin | 0 | 0 | 98733f92665d89d39a0cface3b86cb924a587b09 | 425 | architecture | Apache License 2.0 |
Parent/app/src/main/kotlin/com/github/midros/istheapp/ui/fragments/social/InteractorSocial.kt | mfa237 | 156,900,862 | false | null | package com.github.midros.istheapp.ui.fragments.social
import android.content.Context
import androidx.fragment.app.FragmentManager
import com.github.midros.istheapp.data.rxFirebase.InterfaceFirebase
import com.github.midros.istheapp.ui.activities.base.BaseInteractor
import com.github.midros.istheapp.utils.Consts.CHILD... | 2 | null | 227 | 6 | faab27dae4fbf7cb6b341fdd94f670ecb2308742 | 1,601 | Open-source-android-spyware | Apache License 2.0 |
core/src/main/kotlin/com/deflatedpickle/rawky/event/EventChangeTool.kt | DeflatedPickle | 197,672,095 | false | null | /* Copyright (c) 2022 DeflatedPickle under the MIT license */
package com.deflatedpickle.rawky.event
import com.deflatedpickle.haruhi.api.event.AbstractEvent
import com.deflatedpickle.rawky.api.Tool
object EventChangeTool : AbstractEvent<Tool<*>>()
| 7 | Kotlin | 6 | 27 | b8859e8f706132574996a5157a99145515aac52e | 252 | Rawky | MIT License |
src/main/kotlin/com/github/nenadjakic/eav/dto/converter/EntityRequestToEntityConverter.kt | nenadjakic | 782,709,579 | false | {"Kotlin": 148939, "Dockerfile": 366} | package com.github.nenadjakic.eav.dto.converter
import com.github.nenadjakic.eav.dto.EntityAddRequest
import com.github.nenadjakic.eav.entity.Entity
import org.modelmapper.AbstractConverter
class EntityRequestToEntityConverter : AbstractConverter<EntityAddRequest, Entity>() {
override fun convert(source: EntityAd... | 0 | Kotlin | 0 | 2 | d729c8314a35e529c49548847ab42b4edcf86db2 | 442 | eav-platform | MIT License |
src/main/kotlin/tech/alexib/plaid/client/model/TransactionsRefreshResponse.kt | ruffCode | 353,222,079 | false | null | /*
* Copyright 2020 Alexi Bre
*
* 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 i... | 0 | Kotlin | 0 | 0 | f937243bdd86fc656097f2154c08e8aa3dad399a | 1,317 | plaid-kotlin | Apache License 2.0 |
platform/new-ui-onboarding/src/com/intellij/platform/ide/newUiOnboarding/steps/NavigationBarStep.kt | FWDekker | 400,854,910 | 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.platform.ide.newUiOnboarding.steps
import com.intellij.ide.ui.UISettings
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.popup.Balloon
import com.inte... | 1 | null | 1 | 1 | 66271fc05fdfe2b2e530f7edc1b564f38c6dc7b2 | 1,593 | intellij-community | Apache License 2.0 |
core/src/main/kotlin/sampler/SamplerFactory.kt | numq | 683,026,324 | false | {"Kotlin": 267900, "C++": 13067, "Java": 4521, "CMake": 2370} | package sampler
import factory.SuspendFactory
class SamplerFactory : SuspendFactory<SamplerFactory.Parameters, Sampler> {
data class Parameters(val sampleRate: Int, val channels: Int)
override suspend fun create(parameters: Parameters) = with(parameters) {
Sampler.create(sampleRate = sampleRate, chan... | 0 | Kotlin | 0 | 8 | ad4491c4bf45f033e094db5c101aac85c4fc206f | 344 | Klarity | Apache License 2.0 |
lib/src/main/java/io/ashkay/crashgrabber/api/CrashGrabber.kt | Ash-Kay | 678,936,244 | false | {"Kotlin": 37783} | package io.ashkay.crashgrabber.api
import android.content.Context
import android.content.Intent
import android.content.pm.ShortcutInfo
import android.content.pm.ShortcutManager
import android.graphics.drawable.Icon
import android.os.Build
import android.util.Log
import androidx.core.content.getSystemService
import cra... | 0 | Kotlin | 1 | 2 | 6557457455eb46966c8f1cae2f583e72bdc179c1 | 4,306 | CrashGrabber | MIT License |
src/main/kotlin/io/offscale/openfoodfacts/client/apis/ReadRequestsApi.kt | SamuelMarks | 866,322,014 | false | {"Kotlin": 537174} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package io.offscale.openfoodfacts.client.apis
i... | 0 | Kotlin | 0 | 1 | 0ba56f72b5d3ac32b20083ea70c28ca26c6bbdeb | 12,995 | openfoodfacts-kotlin-openapi | Apache License 2.0 |
src/main/kotlin/com/zhaoch23/dialog/CommandSrDialog.kt | sakurarealm | 740,696,969 | false | {"Kotlin": 9169} | package com.zhaoch23.dialog
import org.bukkit.command.CommandSender
import taboolib.common.platform.command.CommandBody
import taboolib.common.platform.command.CommandHeader
import taboolib.common.platform.command.mainCommand
import taboolib.common.platform.command.subCommand
import taboolib.expansion.createHelper
@... | 0 | Kotlin | 0 | 0 | 8b64c6f451149dc629b12a778a694a3ed362970c | 750 | SrChemDialog | MIT License |
compiler-plugin-ksp/src/main/kotlin/com/ing/zkflow/processors/serialization/hierarchy/types/Basic.kt | ing-bank | 550,239,957 | false | {"Kotlin": 1610321, "Shell": 1609} | package com.ing.zkflow.processors.serialization.hierarchy.types
import com.google.devtools.ksp.symbol.KSTypeReference
import com.ing.zkflow.processors.serialization.hierarchy.SerializingHierarchy
import com.ing.zkflow.serialization.serializer.WrappedFixedLengthKSerializerWithDefault
import com.ing.zkflow.tracking.Trac... | 0 | Kotlin | 4 | 9 | f6e2524af124c1bdb2480f03bf907f6a44fa3c6c | 1,237 | zkflow | MIT License |
mui-kotlin/src/jsMain/kotlin/mui/material/TableHead.mui.kt | karakum-team | 387,062,541 | false | {"Kotlin": 3037818, "TypeScript": 2249, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual
import web.cssom.ClassName
@JsVirtual
sealed external interface MuiMenuButton {
companion object {
@JsValue("MuiMenuButton-root")
... | 1 | Kotlin | 5 | 35 | f8b65644caf9131e020de00a02718f005a84b45d | 355 | mui-kotlin | Apache License 2.0 |
app/src/main/java/com/example/fuelrecords/EditActivity.kt | Naillin | 751,082,021 | false | {"Kotlin": 18474} | package com.example.fuelrecords
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import androidx.appcompat.app.AppCompatActivity
import androidx.co... | 0 | Kotlin | 0 | 0 | 736989f9171e73a37dda08f4000508bed176ad85 | 3,970 | FuelRecords | MIT License |
prime-router/src/main/kotlin/config/validation/JsonSchemaValidationService.kt | CDCgov | 304,423,150 | false | null | package gov.cdc.prime.router.config.validation
import gov.cdc.prime.router.common.JacksonMapperUtilities
import java.io.File
import java.io.InputStream
/**
* Service used to validate YAML files against a JSON schema
*/
interface JsonSchemaValidationService {
/**
* Validate the YAML structure of a file
... | 1,458 | null | 39 | 71 | 81f5d3c284982ccdb7f24f36fc69fdd8fac2a919 | 2,255 | prime-reportstream | Creative Commons Zero v1.0 Universal |
src/main/kotlin/br/com/gamemods/nbtmanipulator/NbtFloat.kt | PowerNukkit | 188,149,180 | false | {"Git Config": 1, "Gradle Kotlin DSL": 2, "Markdown": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Java": 1, "Kotlin": 35, "YAML": 2, "SCSS": 1} | package br.com.gamemods.nbtmanipulator
/**
* A tag which wraps a float value.
* @property value The wrapped value
*/
public data class NbtFloat(var value: Float) : NbtTag() {
/**
* Returns a string representation of the tag's value.
*
* The returned string is compatible with string constructors o... | 1 | Kotlin | 1 | 9 | b63a1bd4a406310097e314ef911650026dd812cb | 953 | NBT-Manipulator | MIT License |
Java-Kotlin/src/main/java/string/_1221/SolutionKt.kt | jamesxuhaozhe | 179,408,126 | false | {"Java": 350846, "Go": 185307, "Kotlin": 56063, "Shell": 72} | package string._1221
/**
* Problem link: https://leetcode-cn.com/problems/split-a-string-in-balanced-strings/
*
* Time complexity: O(n)
*
* Space complexity: O(1)
*/
class SolutionKt {
fun balancedStringSplit(s: String): Int {
var result = 0
var num = 0
s.forEachIndexed { _, c ->
... | 1 | Java | 1 | 4 | ea4c60f8f78b42081430b99e0c766c0513461877 | 531 | LeetCode-Java-Kotlin | MIT License |
app/src/main/java/net/yslibrary/monotweety/AppComponent.kt | hele-jeremy | 213,795,534 | true | {"Kotlin": 231238} | package net.yslibrary.monotweety
import com.twitter.sdk.android.core.TwitterSession
import dagger.Component
import net.yslibrary.monotweety.analytics.Analytics
import net.yslibrary.monotweety.base.RefWatcherDelegate
import net.yslibrary.monotweety.base.di.AppScope
import net.yslibrary.monotweety.base.di.Names
import n... | 0 | null | 0 | 0 | 7a65de7fd72953d66ab9b62ba6e4e3eb274aaefe | 1,199 | monotweety | Apache License 2.0 |
Code/core/presentation/designsystem/src/main/java/com/istudio/core/presentation/designsystem/dimen/CustomDimens.kt | devrath | 794,443,472 | false | {"Kotlin": 73074} | package com.istudio.core.presentation.designsystem.dimen
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.runtime.staticCompositionLocalOf
import com.istudio.core.presentation.designsystem.dimen.screens.Intr... | 0 | Kotlin | 0 | 0 | f30231da5264fb16d4c9beab71abe0691ad329a0 | 1,785 | RunTracer | Apache License 2.0 |
web-regresjonstest/src/main/kotlin/no/nav/su/se/bakover/web/komponenttest/Komponenttest.kt | navikt | 227,366,088 | false | {"Kotlin": 9172373, "Shell": 4369, "TSQL": 1233, "Dockerfile": 800} | package no.nav.su.se.bakover.web.komponenttest
import io.ktor.server.application.Application
import io.ktor.server.testing.ApplicationTestBuilder
import io.ktor.server.testing.testApplication
import no.nav.su.se.bakover.client.Clients
import no.nav.su.se.bakover.common.infrastructure.config.ApplicationConfig
import no... | 7 | Kotlin | 1 | 1 | f187a366e1b4ec73bf18f4ebc6a68109494f1c1b | 10,773 | su-se-bakover | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfigurationProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.config
import io.cloudshiftdev.awscdk.IResolvable
import io.cloudshiftdev.awscdk.common.CdkDslMarker
... | 4 | Kotlin | 0 | 4 | db2b3a364f5e74d8f80490e7850da7f1e7f1e7d0 | 20,023 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/example/mcard/domain/viewModels/basic/other/SettingsViewModel.kt | Ilyandr | 548,715,167 | false | null | package com.example.mcard.domain.viewModels.basic.other
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.mcard.R
import com.example.mcard.domain.models.basic.other.SettingsModel
import com.example.mcard.repository.di.AppComponent
i... | 0 | Kotlin | 0 | 1 | a5287fc7b7488994f9cfd840cd8c92f11607ef8d | 3,303 | MCard-indicative | MIT License |
examples/src/test/kotlin/examples/onnx/cv/OnnxEfficientNetTestSuite.kt | JetBrains | 249,948,572 | false | null | /*
* Copyright 2020 JetBrains s.r.o. and Kotlin Deep Learning project contributors. All Rights Reserved.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package examples.onnx.cv
import examples.Basic
import examples.onnx.cv.custom.efficientnet.*
import ... | 71 | Kotlin | 69 | 727 | 033c0e3a959a7083ff97fad6ac4907d5dbc65bd1 | 3,162 | KotlinDL | Apache License 2.0 |
app/src/main/java/com/example/project_music/adapters/base_adapters/BaseAdapterCallBack.kt | Ikrom27 | 671,861,023 | false | null | package com.example.project_music.adapters.base_adapters
import android.view.View
interface BaseAdapterCallBack<T> {
fun onItemClick(model: T, view: View)
fun onLongClick(model: T, view: View)
}
| 0 | Kotlin | 0 | 0 | b8bc250f274a5ac64f7d2e393fc1c8be848bada1 | 205 | MusicClub | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.