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/example/mypersonalassistant/activity/WeatherActivity.kt | daleu | 181,526,203 | false | null | package com.example.mypersonalassistant.activity
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.PackageManager
... | 0 | Kotlin | 0 | 1 | 45e39f17605bf56bf2437e71534f173416218630 | 13,144 | PDTMA-Project | MIT License |
src/main/kotlin/org/rdf4k/connection.kt | cosmin-marginean | 603,066,630 | false | null | package org.rdf4k
import org.eclipse.rdf4j.repository.RepositoryConnection
fun RepositoryConnection.useBatch(batchSize: Int, use: (StatementsBatch) -> Unit) {
StatementsBatch(this, batchSize).use(use)
}
| 0 | Kotlin | 0 | 0 | 9085339b776db0ab160617fdb7ca6dc8fead12b8 | 209 | rdf4k | Apache License 2.0 |
application/src/main/kotlin/com/lukinhasssss/catalogo/application/category/delete/DeleteCategoryUseCase.kt | Lukinhasssss | 643,341,523 | false | {"Kotlin": 70572, "Shell": 678} | package com.lukinhasssss.catalogo.application.category.delete
import com.lukinhasssss.catalogo.application.UnitUseCase
import com.lukinhasssss.catalogo.domain.category.CategoryGateway
class DeleteCategoryUseCase(
private val categoryGateway: CategoryGateway
) : UnitUseCase<String>() {
override fun execute(an... | 0 | Kotlin | 0 | 0 | 754e31f7763deaee9a32ce17fabd499b200e82bd | 432 | catalogo-de-videos | MIT License |
app/src/main/java/com/suihan74/utilities/AccountLoader.kt | suihan74 | 207,459,108 | false | null | package com.suihan74.utilities
import android.content.Context
import android.util.Log
import com.google.gson.Gson
import com.suihan74.hatenaLib.Account
import com.suihan74.hatenaLib.HatenaClient
import com.suihan74.satena.models.PreferenceKey
import com.suihan74.utilities.exceptions.TaskFailureException
import com.sys... | 18 | Kotlin | 1 | 6 | fa5fba07d394882560639799d7f0ffb821b53b1d | 8,139 | Satena | MIT License |
src/main/kotlin/dev/mbo/projectstatus/ExtensionInt.kt | mbogner | 716,219,898 | false | {"Kotlin": 21948, "HTML": 2233, "JavaScript": 536, "Dockerfile": 262, "Shell": 213, "CSS": 127} | package dev.mbo.projectstatus
fun Int.toHexString(): String = toString(16)
| 0 | Kotlin | 0 | 0 | 0bc47e8a63972f017c600bf46f1d1af354cf693f | 76 | mite-project-status | Apache License 2.0 |
commonlib/src/main/java/com/athlon/commonlib/data/IDataType.kt | AthlonH | 355,796,856 | false | null | package com.athlon.commonlib.data
interface IDataType {
var dataType: Int
} | 0 | Kotlin | 0 | 0 | a878b20a7f7951a8b27dad7e8186b273f0ec77fe | 80 | AndroidAppCommonLib | MIT License |
commonlib/src/main/java/com/athlon/commonlib/data/IDataType.kt | AthlonH | 355,796,856 | false | null | package com.athlon.commonlib.data
interface IDataType {
var dataType: Int
} | 0 | Kotlin | 0 | 0 | a878b20a7f7951a8b27dad7e8186b273f0ec77fe | 80 | AndroidAppCommonLib | MIT License |
auth/src/main/kotlin/dev/atick/auth/models/AuthScreenData.kt | atick-faisal | 433,148,965 | false | {"Kotlin": 337134} | /*
* Copyright 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 to in w... | 6 | Kotlin | 4 | 9 | b2a342d9d73c924af678f9169baf3fbdf6a7e866 | 1,311 | Jetpack-Compose-Starter | Apache License 2.0 |
app/src/main/java/com/iceberry/mqtttest/viewModel/fragment/ProfileDetailViewModel.kt | Iceberry-qdd | 390,901,812 | false | null | package com.iceberry.mqtttest.viewModel.fragment
import androidx.lifecycle.ViewModel
class ProfileDetailViewModel : ViewModel() {
// TODO: Implement the ViewModel
} | 0 | Kotlin | 0 | 0 | e15d2725d900d7ee770efc375381ea41b43dd038 | 170 | Creative-Challenge-MQTTTest | MIT License |
preview/src/test/kotlin/com/example/knest/dtos/ParameterMapDto.kt | evgenii-shcherbakov | 547,946,181 | false | null | package com.example.knest.dtos
import com.google.gson.annotations.SerializedName
data class ParameterMapDto(@SerializedName("id") val id: List<String>) | 0 | Kotlin | 0 | 0 | 1eaff64d52a7952709aacae17bcd7e7a40b65164 | 153 | knest | MIT License |
okio/src/commonTest/kotlin/okio/util.kt | xubob | 193,060,660 | true | {"Kotlin": 492700, "Java": 285584, "Shell": 1709} | package okio
import kotlin.random.Random
fun Char.repeat(count: Int): String {
return toString().repeat(count)
}
fun segmentSizes(buffer: Buffer): List<Int> {
return generateSequence(buffer.head) { segment -> segment.next.takeIf { it !== buffer.head }}
.map { segment -> segment.limit - segment.pos }
.toL... | 0 | Kotlin | 0 | 0 | d7fcee8db94177ac4d02e205f928d8425f352d52 | 1,461 | okio | Apache License 2.0 |
nfcreader/src/test/java/com/oscarg798/amiibowiki/nfcreader/NFCReaderViewModelTest.kt | aliceresponde | 337,563,939 | true | {"Kotlin": 899960, "Shell": 3744} | /*
* Copyright 2020 <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, distribute, subl... | 0 | null | 0 | 0 | d2d0a1c4edaa4031b3fa89af93c3d93a79ffb016 | 6,204 | AmiiboWiki | MIT License |
app/src/main/java/org/booncode/thebabyapp/common/BraState.kt | boon-code | 194,670,236 | false | null | package org.booncode.thebabyapp.common
/** Current state of the view */
enum class BraState(val value: Int) : Valuable<Int> {
None(0),
Left(1),
Right(2);
override fun getValue(): Int {
return value
}
companion object {
fun from(value: Int): BraState = fromEnum(value)
}
} | 0 | Kotlin | 0 | 0 | 93bb6380f5462ecdd59313155331b01b75568ecf | 319 | the-baby-app | MIT License |
jupyter-lib/shared-compiler/src/main/kotlin/org/jetbrains/kotlinx/jupyter/libraries/Resources.kt | Kotlin | 63,066,291 | false | {"Kotlin": 1079875, "JavaScript": 40044, "CSS": 16243, "Python": 15441, "Jupyter Notebook": 1290, "Shell": 74} | package org.jetbrains.kotlinx.jupyter.libraries
import java.io.IOException
fun loadResourceFromClassLoader(
path: String,
classLoader: ClassLoader,
): String {
val resource = classLoader.getResource(path)
resource != null && return resource.readText()
throw IOException("Resource $path not found on... | 79 | Kotlin | 107 | 1,115 | 9ef5bf3ef682734c9d4be3244bfb0ecaf727ea66 | 335 | kotlin-jupyter | Apache License 2.0 |
core/components/src/main/java/de/cleema/android/core/components/AvatarImage.kt | sandstorm | 840,235,083 | false | {"Kotlin": 955115, "Ruby": 1773} | /*
* Created by Kumpels and Friends on 2022-12-21
* Copyright © 2022 Kumpels and Friends. All rights reserved.
*/
package de.cleema.android.core.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androi... | 0 | Kotlin | 0 | 1 | ddcb7ddedbbefb8045e7299e14a2ad47329fc53e | 1,364 | cleema-android | MIT License |
smooth-data/src/main/java/io/smooth/data/BaseResourceCoordinator.kt | smooth-io | 366,466,107 | false | null | package io.smooth.data
import io.smooth.data.coordinator.DataChangeResolutionType
import io.smooth.data.coordinator.ResourceCoordinator
import io.smooth.data.fetch.FailedResult
import io.smooth.data.fetch.FetchResult
import io.smooth.data.fetch.NoResult
import io.smooth.data.fetch.SuccessResult
import io.smooth.data.r... | 0 | Kotlin | 0 | 0 | 36f2cd8d969611d94b85ae9b236415037f085176 | 5,351 | smooth | MIT License |
app/src/main/java/com/personal/weathering/weather/data/mappers/WeatherMappers.kt | Avvami | 702,061,643 | false | null | package com.personal.weathering.weather.data.mappers
import androidx.compose.ui.util.fastFilter
import androidx.compose.ui.util.fastMap
import androidx.compose.ui.util.fastMapIndexed
import androidx.compose.ui.util.fastMapNotNull
import com.personal.weathering.R
import com.personal.weathering.core.util.convertStringTo... | 0 | null | 1 | 2 | eb6c7b47d90bde7fb0b35f985b20ea06872de0df | 8,148 | Weathering | MIT License |
src/test/kotlin/com/nmincuzzi/ipweather/adapter/IpStackAdapterTest.kt | NicoMincuzzi | 266,125,569 | false | null | package com.nmincuzzi.ipweather.adapter
import com.fasterxml.jackson.databind.node.ObjectNode
import com.nmincuzzi.ipweather.builders.IpStackResponseBodyBuilder
import com.nmincuzzi.ipweather.infrastructure.IpStackAdapter
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
imp... | 0 | Kotlin | 0 | 1 | a7f6b5b7e16d1ef4fdd2d180dc58d114c39a72d4 | 1,271 | ipweather | Apache License 2.0 |
sample/src/test/java/com/bonacode/modernmvi/presentation/feature/dogs/create/DogCreateViewRobot.kt | clooss95 | 343,762,785 | false | null | package com.bonacode.modernmvi.presentation.feature.dogs.create
import com.bonacode.modernmvi.core.ViewRobot
import com.bonacode.modernmvi.sample.presentation.feature.dogs.create.DogCreateIntent
import com.bonacode.modernmvi.sample.presentation.feature.dogs.create.DogCreatePresenter
import com.bonacode.modernmvi.sampl... | 0 | Kotlin | 2 | 36 | 763f40aa542ed17139a190c0d7533f06d04e6fab | 2,247 | modern_mvi | MIT License |
app/src/main/java/com/vishalag53/pokedex/response/pokemonSpecies/Name.kt | vishalag53 | 659,343,908 | false | null | package com.vishalag53.pokedex.response.pokemonSpecies
data class Name(
val language: Language,
val name: String
) | 0 | Kotlin | 0 | 0 | 37cac1be043832a3ca53f0159130547c59ff33dc | 123 | Pokedex | Apache License 2.0 |
amity-sample-app/src/main/java/com/amity/sample/ascsdk/messagelist/CustomMessageSenderActivity.kt | EkoCommunications | 137,022,637 | false | {"Kotlin": 463101, "Java": 39462} | package com.amity.sample.ascsdk.messagelist
import android.app.Activity
import android.os.Bundle
import com.amity.socialcloud.sdk.chat.AmityChatClient
import com.amity.sample.ascsdk.common.activity.KeyValueInputActivity
import com.amity.sample.ascsdk.intent.OpenCustomMessageSenderIntent
import com.google.gson.JsonObj... | 0 | Kotlin | 2 | 2 | cfe4c6fca78fbf3505901499689fc5f94408f9a2 | 1,527 | EkoMessagingSDKAndroidSample | Apache License 2.0 |
src/main/kotlin/dev/vality/rateboss/service/ConversionService.kt | valitydev | 543,001,951 | false | {"Kotlin": 76453} | package dev.vality.rateboss.service
import org.apache.commons.math3.fraction.BigFraction
import org.springframework.stereotype.Service
@Service
class ConversionService {
fun convertAmount(amount: Long, rate: BigFraction): BigFraction {
return BigFraction(amount)
.multiply(BigFraction(rate.num... | 2 | Kotlin | 1 | 0 | 96af8979ba3d2af5570862decb3355fdd38ac6b7 | 355 | rate-boss | Apache License 2.0 |
app/src/main/java/com/astroscoding/jokesapp/presentation/screen/on_boarding/OnBoardingScreen.kt | Astroa7m | 459,685,492 | false | {"Kotlin": 134726} | package com.astroscoding.jokesapp.presentation.screen.on_boarding
import androidx.annotation.DrawableRes
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.spring
import androidx.compose.foundation.Image
import androidx.compose.f... | 0 | Kotlin | 2 | 5 | 691a420baf3b7be90d24f1bfdd988d944837a8d4 | 10,327 | clean_architecture_mvvm_jokes_app | MIT License |
src/test/kotlin/org/inge84/useme/kusmbackend/KusmBackendApplicationTests.kt | javierlopez-jls | 729,027,304 | false | {"Kotlin": 509} | package org.inge84.useme.kusmbackend
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class KusmBackendApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | c54d7f67b20113cc565a5f322a02be1f74135578 | 221 | usm-ktx-backend | The Unlicense |
{{cookiecutter.repo_name}}/app/src/main/java/core/BaseFragment.kt | tlgbltcn | 138,037,278 | true | {"Kotlin": 20616, "Python": 2257} | package {{ cookiecutter.package_name }}.core
import android.arch.lifecycle.ViewModelProviders
import android.databinding.DataBindingUtil
import android.databinding.ViewDataBinding
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v4.app.Fragment
import android.view.LayoutInfla... | 0 | Kotlin | 0 | 2 | 0df93e95ce72091cc5aa2014407999e038ae831c | 1,108 | kotlin-android-mvvm-starter | MIT License |
sample/src/main/java/com/daimler/mbcommonkit/sample/tracking/LoggerTrackingService.kt | Daimler | 199,816,847 | false | null | package com.daimler.mbcommonkit.sample.tracking
import com.daimler.mbloggerkit.MBLoggerKit
class LoggerTrackingService : SampleTrackingService, OtherSampleTrackingService {
override val id: String = this::class.java.canonicalName
override fun track(event: SampleTrackingEvent.MyEvent) {
MBLoggerKit.d... | 0 | Kotlin | 0 | 0 | 725d0101a8e50ec1545c5b681591517079198d6d | 971 | MBSDK-CommonKit-Android | MIT License |
app/src/main/java/uk/gov/onelogin/mainnav/nav/MainNavGraph.kt | govuk-one-login | 671,139,547 | false | {"Kotlin": 611350, "Shell": 12866, "Ruby": 1762} | package uk.gov.onelogin.mainnav.nav
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import androidx.navigation.navigation
import uk.gov.onelogin.mainnav.MainNavRoutes
import uk.gov.onelogin.mainnav.ui.MainNavScreen
object MainNavGraph {
fun NavGraphBuilder.mainNavRoutesFlo... | 2 | Kotlin | 0 | 4 | 8158433162764dc72a99006c51c8e84206e101bc | 630 | mobile-android-one-login-app | MIT License |
app/src/main/java/com/example/movieapp/test/MovieListActivity.kt | zyrridian | 667,212,925 | false | {"Kotlin": 232410} | package com.example.movieapp.test
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Parcelable
import android.widget.Toast
import androidx.activity.viewModels
import androidx.recyclerview.widget.GridLayoutManager
import com.example.movieapp.MovieListAdapter
import com.example.m... | 0 | Kotlin | 0 | 0 | 71749cd9d2ccb4d5e89cbea0c778d5de0d63cc8d | 7,956 | tmdb-movie-list-app | MIT License |
idea/tests/testData/multiModuleQuickFix/other/convertPropertyToFunction/jvm/jvm.kt | JetBrains | 278,369,660 | false | null | actual class Main(
actual val name: String
) | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 48 | intellij-kotlin | Apache License 2.0 |
kotlin.web.demo.server/examples/Kotlin in Action/Chapter 7/7.5/3_3_ImplementingDelegatedProperties2.kt | arrow-kt | 117,599,238 | true | {"Shell": 3, "Gradle": 21, "Text": 15, "YAML": 3, "INI": 4, "Java Properties": 12, "Ignore List": 2, "Batchfile": 1, "XML": 23, "Markdown": 45, "JSON": 152, "HTML": 3, "JavaScript": 20, "Kotlin": 546, "SVG": 16, "CSS": 19, "AsciiDoc": 1, "Java": 109, "JAR Manifest": 2, "SQL": 2, "Dockerfile": 3} | package ch07.ex5_3_3_ImplementingDelegatedProperties2
import java.beans.PropertyChangeSupport
import java.beans.PropertyChangeListener
import kotlin.reflect.KProperty
open class PropertyChangeAware {
protected val changeSupport = PropertyChangeSupport(this)
fun addPropertyChangeListener(listener: PropertyCha... | 2 | Kotlin | 2 | 7 | 7165d9568d725c9784a1e7525f35bab93241f292 | 1,473 | try.arrow-kt.io | Apache License 2.0 |
konsist_test/src/test/kotlin/com/igorwojda/showcase/konsisttest/TestKonsistTest.kt | igorwojda | 158,460,787 | false | {"Kotlin": 106132} | package com.igorwojda.showcase.konsisttest
import com.lemonappdev.konsist.api.Konsist
import com.lemonappdev.konsist.api.ext.list.functions
import com.lemonappdev.konsist.api.verify.assertFalse
import org.junit.jupiter.api.Test
// Check test coding rules.
class TestKonsistTest {
@Test
fun `don't use JUnit4 T... | 15 | Kotlin | 897 | 6,503 | de16176f6f4457c11a87bb085aa237d8231c8357 | 553 | android-showcase | MIT License |
app/src/main/kotlin/de/uni_marburg/mathematik/ds/serval/model/Event.kt | Thames1990 | 101,338,851 | false | null | package de.uni_marburg.mathematik.ds.serval.model
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
import android.location.Location
import android.support.annotation.StringRes
import com.google.android.gms.maps.model.LatLng
import com.mikepenz.community_material_typeface_libr... | 2 | Kotlin | 0 | 0 | 9cb9c7de4a6075f800e84a612a07c8e2efaa5c1a | 6,768 | aardvark | MIT License |
composeApp/src/commonMain/kotlin/com/ethossoftworks/land/ui/common/TextField.kt | ethossoftworks | 662,813,245 | false | {"Kotlin": 209395, "Swift": 14097, "Shell": 703} | package com.ethossoftworks.land.ui.common
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.fo... | 0 | Kotlin | 0 | 0 | 4f80493cb1ddc91b21d077c562d34fe6dbae71db | 1,590 | LANd | MIT License |
app/src/main/java/com/dosti/scamfolio/ui/view/HomepageView.kt | zeroParanoie | 803,017,723 | false | {"Kotlin": 145065} | package com.dosti.scamfolio.ui.view
import android.annotation.SuppressLint
import android.content.res.Configuration
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
imp... | 0 | Kotlin | 2 | 0 | 7c289f15d0bde345ffad4322f31e95d0cda6e9a3 | 10,157 | ScamFolio | Do What The F*ck You Want To Public License |
code/kotlin/basic/collections-v.kt | fabiomsr | 64,830,191 | false | null | val users = getUsers()
users.sortedBy { it.lastname }
| 5 | Cirru | 80 | 552 | e2714a04282aa667dc848f6b4cc4a9dc5de8d982 | 54 | from-java-to-kotlin | MIT License |
kotlin-typescript/src/jsMain/generated/typescript/ResolvedConfigFileName.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Automatically generated - do not modify!
package typescript
/**
* Branded string for keeping track of when we've turned an ambiguous path
* specified like "./blah" to an absolute path to an actual
* tsconfig file, e.g. "/root/blah/tsconfig.json"
*/
typealias ResolvedConfigFileName = Any /* string & {
_isRe... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 354 | kotlin-wrappers | Apache License 2.0 |
impl/misskeyv13/src/main/kotlin/dev/usbharu/multim/misskey/v13/model/NotesHybridTimeline.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.misskey.v13.model
import dev.usbharu.multim.misskey.v13.model.components.MisskeyNeedAuth
import dev.usbharu.multim.misskey.v13.model.components.Note
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.Serializer
import kotlinx.seria... | 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 2,195 | multim | Apache License 2.0 |
backend/src/test/kotlin/de/mcella/spring/learntool/workspace/WorkspaceServiceTest.kt | sitMCella | 251,022,990 | false | null | package de.mcella.spring.learntool.workspace
import de.mcella.spring.learntool.UnitTest
import de.mcella.spring.learntool.workspace.exceptions.InvalidWorkspaceNameException
import de.mcella.spring.learntool.workspace.exceptions.WorkspaceAlreadyExistsException
import de.mcella.spring.learntool.workspace.storage.Workspa... | 0 | Kotlin | 0 | 0 | 32b3b651e9365c9518a2eeae6bc4720670239a14 | 4,098 | learn-tool | MIT License |
presentation/ui/src/main/java/com/jfmr/ac/test/presentation/ui/component/ButtonComponents.kt | JuanPolea | 425,060,476 | false | {"Kotlin": 167334} | package com.jfmr.ac.test.presentation.ui.component
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import... | 0 | Kotlin | 0 | 0 | afd776b3e6e7e0c1a03a9cffb4e40e609da5c48c | 3,425 | AC-Test | Apache License 2.0 |
app/src/main/java/com/android/virgilsecurity/virgilback4app/chat/contactsList/ThreadsListFragmentPresenter.kt | VirgilSecurity | 111,100,617 | false | null | package com.android.virgilsecurity.virgilback4app.chat.contactsList
import android.content.Context
import com.android.virgilsecurity.virgilback4app.AppVirgil
import com.android.virgilsecurity.virgilback4app.model.ChatThread
import com.android.virgilsecurity.virgilback4app.util.RxEthree
import com.android.virgilsecurit... | 1 | Kotlin | 20 | 25 | 66512e12f8919d37bea902a6af1981e51a7b51af | 3,459 | chat-back4app-android | Apache License 2.0 |
kakao/src/main/kotlin/io/github/kakaocup/kakao/common/matchers/SwipeRefreshLayoutMatcher.kt | KakaoCup | 370,697,938 | false | null | @file:Suppress("unused")
package com.agoda.kakao.common.matchers
import android.view.View
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import org.hamcrest.Description
import org.hamcrest.TypeSafeMatcher
class SwipeRefreshLayoutMatcher(private val refreshing: Boolean) : TypeSafeMatcher<View>() {
o... | 13 | null | 28 | 330 | 578e2c729541e51cd584159404417234f0cbbce1 | 687 | Kakao | Apache License 2.0 |
native/native.tests/testData/standalone/entryPoint/mainOverloadingNoArgs.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // OUTPUT_DATA_FILE: mainOverloading.out
import kotlin.test.*
fun main() {
println("OK")
}
fun <T> main(args: Array<String>) {
fail()
}
fun main(args: Array<Int>) {
fail()
}
fun main(args: Array<String>, second_arg: Int) {
fail()
}
class Foo {
fun main(args: Array<String>) {
fail()
... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 324 | kotlin | Apache License 2.0 |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/widgets/link/linkitem/LinkItemPresenterFactory.kt | altaf933 | 122,962,254 | false | {"Gradle": 4, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Proguard": 1, "Kotlin": 485, "XML": 261, "Java": 4} | package io.github.feelfreelinux.wykopmobilny.ui.widgets.link.linkitem
import io.github.feelfreelinux.wykopmobilny.api.links.LinksApi
import io.github.feelfreelinux.wykopmobilny.base.Schedulers
import io.github.feelfreelinux.wykopmobilny.utils.SettingsPreferencesApi
import io.github.feelfreelinux.wykopmobilny.utils.use... | 1 | null | 1 | 1 | 0c2d9fc015a5bef5b258481e4233d04ab5705a49 | 655 | WykopMobilny | MIT License |
fir/src/org/jetbrains/kotlin/idea/fir/api/applicator/HLApplicatorInputProvider.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.fir.api.applicator
import com.intellij.psi.PsiElement
import org.jetbrains.... | 191 | null | 4372 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 1,492 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/icu/windea/pls/lang/search/selector/ParadoxSelector.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.lang.search.selector
import icu.windea.pls.lang.search.*
/**
* 用于指定如何选择需要查询的目标(定义、本地化、文件等)。
*
* @see ParadoxQuery
*/
interface ParadoxSelector<T> {
/**
* 选择单个目标时是否选用。
*/
fun selectOne(target: T): Boolean = true
/**
* 选择多个目标时是否选用。
*/
fun select(target... | 12 | null | 5 | 41 | 99e8660a23f19642c7164c6d6fcafd25b5af40ee | 532 | Paradox-Language-Support | MIT License |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/utils/ShareUtil.kt | Waboodoo | 34,525,124 | false | null | package ch.rmy.android.http_shortcuts.utils
import android.content.Context
import android.content.Intent
import ch.rmy.android.framework.extensions.logException
import ch.rmy.android.framework.extensions.showToast
import ch.rmy.android.framework.extensions.startActivity
import ch.rmy.android.http_shortcuts.R
object S... | 23 | Kotlin | 87 | 547 | 09eaa8438d452f95e73d57183b198c4b52d05789 | 917 | HTTP-Shortcuts | MIT License |
app/src/main/java/com/example/finalselfieapp/CameraFragment.kt | magacek | 718,877,828 | false | {"Kotlin": 20860} | package com.example.finalselfieapp
import android.Manifest
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.camera.core.*
import androidx.camera.l... | 0 | Kotlin | 0 | 0 | 9524c43bcc54279d9e1993ca8085d352c5b0b408 | 5,899 | FinalSelfieApp | Apache License 2.0 |
wui/src/main/kotlin/pages/course_exercise/CourseExerciseStudentOldSubmissionTabComp.kt | kspar | 160,047,508 | false | {"Kotlin": 1303133, "HTML": 333112, "CSS": 89438, "Python": 10393, "JavaScript": 536, "Shell": 509} | package pages.course_exercise
import components.code_editor.CodeEditorComp
import dao.CourseExercisesStudentDAO
import dao.ExerciseDAO
import kotlinx.coroutines.await
import rip.kspar.ezspa.Component
import rip.kspar.ezspa.doInPromise
class CourseExerciseStudentOldSubmissionTabComp(
private var submission: Cours... | 1 | Kotlin | 3 | 4 | aba55db4fb9c018839078512ef6f1d05321da7e6 | 1,381 | easy | MIT License |
app/src/main/java/com/akshar/callautodelete/MyApp.kt | Akshar062 | 865,892,799 | false | {"Kotlin": 6538} | package com.akshar.callautodelete
import android.app.Application
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
createNotificationChannel(this)
scheduleFileCleanup(this)
}
} | 0 | Kotlin | 0 | 0 | 436a3f14f8afe987e67c034e10479b0ecf57d26e | 233 | CallAutoDelete | Apache License 2.0 |
android-transport/testSrc/com/android/tools/idea/transport/DeployableFileTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 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 | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 3,730 | android | Apache License 2.0 |
Primeiros passos em Kotlin/Multiplicação Simples.kt | Leo0liveira | 388,514,178 | false | null | /*Desafio
Você receberá dois valores inteiros. Faça a leitura e em seguida calcule o produto entre estes dois valores. Atribua esta operação à variável PROD, mostrando esta de acordo com a mensagem de saída esperada (exemplo abaixo).
Entrada
A entrada contém 2 valores inteiros.
Saída
Exiba a variável PROD conforme... | 0 | Kotlin | 0 | 1 | 013d50bb78b9d4ac60d1599b72c52ce4d994f7ae | 580 | Desafios-Kotlin-Santander | MIT License |
transport/src/commonMain/kotlin/com/genesys/cloud/messenger/transport/core/StateMachine.kt | MyPureCloud | 425,920,457 | false | {"Kotlin": 471292, "Swift": 107568, "Shell": 5872, "Ruby": 4062} | package com.genesys.cloud.messenger.transport.core
internal interface StateMachine {
var currentState: MessagingClient.State
var stateListener: ((MessagingClient.State) -> Unit)?
var stateChangedListener: ((StateChange) -> Unit)?
fun onConnectionOpened()
@Throws(IllegalStateException::class)
f... | 4 | Kotlin | 6 | 9 | 6ff023cb09b63a84aaa6fe292c1ba77c991d6435 | 631 | genesys-messenger-transport-mobile-sdk | MIT License |
src/test/kotlin/com/code_intelligence/cifuzz/test/android/MultiProjectAndroidTest.kt | CodeIntelligenceTesting | 613,793,747 | false | {"Kotlin": 56168} | package com.code_intelligence.cifuzz.test.android
import com.code_intelligence.cifuzz.android.capitalized
import com.code_intelligence.cifuzz.test.fixture.CIFuzzPluginTest
import org.gradle.testkit.runner.TaskOutcome
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.containsString
import org.ha... | 0 | Kotlin | 0 | 4 | 4e4b1952cebe2ed63a7a2c5e1e60570b95dc7d01 | 8,404 | cifuzz-gradle-plugin | Apache License 2.0 |
wework/src/main/java/com/magic/wework/apis/com/tencent/wework/foundation/logic/ConversationService.kt | graysign | 256,120,123 | false | null | package com.magic.wework.apis.com.tencent.wework.foundation.logic
import com.magic.wework.mirror.com.tencent.wework.foundation.logic.Classes.ConversationService
import com.magic.wework.mirror.com.tencent.wework.foundation.logic.Methods
import de.robv.android.xposed.XposedHelpers
object ConversationService {
/**
... | 0 | null | 79 | 26 | fc82c867d6b13b3dcf0bd63e2feaa066c6193fe2 | 10,777 | XMagicHooker | MIT License |
infrastructure/src/main/kotlin/com/example/infrastructure/persistence/entity/exercise/ItemAreaRelationshipEntity.kt | PARKPARKWOO | 737,782,254 | false | {"Kotlin": 359730, "Dockerfile": 780} | package com.example.infrastructure.persistence.entity.exercise
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.Table
const val ITEM_AREA_RELATIONSHIP_TABLE_N... | 11 | Kotlin | 0 | 0 | 3ada73884b3b6fc4b0a011f0c5b3615c248fe14a | 652 | barbellrobot-backend | Apache License 2.0 |
infra/src/fanpoll/infra/Application.kt | csieflyman | 359,559,498 | false | null | /*
* Copyright (c) 2021. fanpoll All rights reserved.
*/
package fanpoll.infra
import fanpoll.infra.app.AppFeature
import fanpoll.infra.auth.SessionAuthPlugin
import fanpoll.infra.auth.principal.MyPrincipal
import fanpoll.infra.base.exception.ExceptionUtils
import fanpoll.infra.base.exception.InternalServerExceptio... | 1 | Kotlin | 4 | 39 | 7aeb2e7501305256fefb8c676807fa63f912d413 | 4,131 | multi-projects-architecture-with-Ktor | MIT License |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/common/barcode/QRCodeScanRender.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 2673868, "TypeScript": 704141, "Swift": 350138, "Vue": 146618, "SCSS": 39016, "Objective-C": 17350, "Shell": 11193, "HTML": 10807, "JavaScript": 3998, "CSS": 818} | package org.dweb_browser.browser.common.barcode
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.animateColor
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import android... | 54 | Kotlin | 4 | 11 | 2a129afdf353564b3dd93ad2ad6dd6528c43413b | 15,924 | dweb_browser | MIT License |
libraries/domain/src/main/java/com/aliumujib/artic/domain/usecases/articles/GetArticleDetails.kt | aliumujib | 210,103,091 | false | {"Kotlin": 448715} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 6 | 47 | 3306935c9c45a888e81819b56b83c478c63e9640 | 1,614 | Artic | Apache License 2.0 |
app/src/main/java/com/example/sports/ui/SportsScreenGeneral.kt | Dasnib1 | 718,813,237 | false | {"Kotlin": 38875} | package com.example.sports.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.R... | 0 | Kotlin | 0 | 0 | 2bc822205a2801f6aeaf94fc6d08f9646d5aec76 | 5,445 | Deportes | Apache License 2.0 |
geolocation/geofence/app/src/main/java/com/digitalwellbeingexperiments/toolkit/geofence/Trigger.kt | googlecreativelab | 202,726,924 | false | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 18 | Kotlin | 60 | 309 | a8776ca49fe0ba8762579cb190f50859c821eca9 | 954 | digital-wellbeing-experiments-toolkit | Apache License 2.0 |
server/src/main/kotlin/net/horizonsend/ion/server/command/starship/BlueprintCommand.kt | HorizonsEndMC | 461,042,096 | false | {"Kotlin": 2639199, "Java": 15809, "Shell": 1414, "JavaScript": 78} | package net.horizonsend.ion.server.command.starship
import co.aikar.commands.InvalidCommandArgument
import co.aikar.commands.PaperCommandManager
import co.aikar.commands.annotation.CommandAlias
import co.aikar.commands.annotation.CommandCompletion
import co.aikar.commands.annotation.CommandPermission
import co.aikar.c... | 9 | Kotlin | 27 | 9 | fe1564a2b27ca321c2c7b19c8e3eec58b5c435ae | 14,461 | Ion | MIT License |
src/main/kotlin/dev/bogwalk/batch4/Problem42.kt | bog-walk | 381,459,475 | false | null | package dev.bogwalk.batch4
import dev.bogwalk.util.maths.isTriangularNumber
import dev.bogwalk.util.maths.lcm
import kotlin.math.sqrt
/**
* Problem 42: Coded Triangle Numbers
*
* https://projecteuler.net/problem=42
*
* Goal: Given an integer, if it is a triangle number tN, return its corresponding term n;
* oth... | 0 | Kotlin | 0 | 0 | 62b33367e3d1e15f7ea872d151c3512f8c606ce7 | 2,287 | project-euler-kotlin | MIT License |
modules/core/arrow-core-data/src/test/kotlin/arrow/core/extensions/NumberHashTest.kt | sraaphorst | 220,067,528 | true | {"Kotlin": 2587853, "CSS": 152663, "JavaScript": 67900, "HTML": 23177, "Scala": 8150, "Java": 4465, "Shell": 3043, "Ruby": 1598} | package arrow.core.extensions
import arrow.test.UnitSpec
import arrow.test.laws.HashLaws
class NumberHashTest : UnitSpec() {
init {
testLaws(
HashLaws.laws(Long.hash(), Long.eq()) { it.toLong() },
HashLaws.laws(Int.hash(), Int.eq()) { it },
HashLaws.laws(Double.hash(), Double.eq()) { it.toDou... | 0 | null | 0 | 0 | c3fa9ec8567da5bfbd9ecaac2bc055c908dfac00 | 529 | arrow | Apache License 2.0 |
app/src/main/java/com/app/missednotificationsreminder/binding/model/BaseViewStateViewEffectModel.kt | httpdispatch | 45,973,237 | false | null | package com.app.missednotificationsreminder.binding.model
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.*
@OptIn(ExperimentalCoroutinesApi::class)
open class BaseViewStateViewEffectModel<
VIEW_STATE,
VIEW_EFFECT,
PARTIAL_CHANGES : ViewStatePartialChanges<VI... | 46 | null | 22 | 73 | 8f8c012f6ebc63c8a6262ac0e7afbbd89f798355 | 748 | MissedNotificationsReminder | Apache License 2.0 |
repository/src/main/java/com/shy/study/repository/network/api/ApiService.kt | RDSunhy | 358,170,019 | false | null | package com.shy.study.repository.network.api
import androidx.lifecycle.LiveData
import com.shy.study.repository.entity.Banner
import com.shy.study.repository.network.ApiResponse
import retrofit2.http.GET
interface ApiService {
@GET("https://wanandroid.com/wxarticle/chapters/json")
fun getBanner(): LiveData<A... | 0 | Kotlin | 0 | 0 | 7c4fb634a259088ed7028bc4674ffac836d9fda6 | 342 | ComponentPackage | Apache License 2.0 |
app/src/main/java/com/ozan/cleanpokedex/extension/ListExtension.kt | ozantas | 364,196,126 | false | null | package com.ozan.cleanpokedex.extension
fun <T> List<T>.mergeWith(second: List<T>): List<T> {
val list = ArrayList(this)
list.addAll(second)
return list
} | 2 | Kotlin | 1 | 9 | 26bf815189f266dfab8673fc6a5ef12ba705eb81 | 167 | CleanPokedex | Apache License 2.0 |
app/src/main/java/io/appwrite/messagewrite/models/network/Contact.kt | abnegate | 777,669,864 | false | {"Kotlin": 59858} | package io.appwrite.messagewrite.models.network
data class Contact(
val ownerId: String,
val userId: String,
)
| 0 | Kotlin | 0 | 0 | c8a3574c53c211cb98ea445f645865412716a91a | 120 | hackathon-chat | MIT License |
src/commonMain/kotlin/data/gems/InscribedOrnateTopaz.kt | marisa-ashkandi | 332,658,265 | false | null | package data.gems
import character.Stats
import data.model.Color
import data.model.Gem
import data.model.Quality
import kotlin.js.JsExport
@JsExport
class InscribedOrnateTopaz : Gem(28363, "Inscribed Ornate Topaz", "inv_misc_gem_opal_01.jpg", null, Color.ORANGE, Quality.EPIC) {
override var phase: Int = 1
ove... | 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 480 | tbcsim | MIT License |
library-network/src/main/java/com/soar/network/exception/ExceptionEngine.kt | SoarY | 682,506,278 | false | null | package com.soar.cloud.retrofit
import com.google.gson.JsonParseException
import com.soar.cloud.util.NetworkUtils
import org.json.JSONException
import retrofit2.HttpException
import java.net.ConnectException
import java.net.SocketTimeoutException
import java.net.UnknownHostException
import java.text.ParseException
/... | 0 | Kotlin | 0 | 0 | 551f4cbb3ebc2e0409555d1e826e2f349c78e11a | 3,343 | MVVMComDesignKt | Apache License 2.0 |
src/main/java/com/kingmang/lazurite/libraries/lzr/utils/artify/styles/impl/StarwarsStyle.kt | ArtyomKingmang | 652,611,608 | false | {"Kotlin": 539876, "Java": 380684} | package com.kingmang.lazurite.libraries.lzr.utils.artify.styles.impl
import com.kingmang.lazurite.libraries.lzr.utils.artify.styles.IArtifyStyle
class StarwarsStyle : IArtifyStyle {
override val styleName: String
get() = "starwars"
override fun getArtMap(): Map<Char, String> {
return mapOf(
... | 2 | Kotlin | 15 | 142 | 2e8318b549d16cd8612baa242ae0a7e7c45f3c86 | 17,950 | Lazurite | MIT License |
app/src/main/java/com/yuriisurzhykov/pointdetector/presentation/points/list/PointsListViewModel.kt | yuriisurzhykov | 524,002,724 | false | {"Kotlin": 274520, "Java": 1023} | package com.yuriisurzhykov.pointdetector.presentation.points.list
import android.location.Location
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.yuriisurzhykov... | 1 | Kotlin | 0 | 2 | f9b12ffa6dafe283dc8738e7f0eeb0328f7f547b | 4,092 | PointDetector | MIT License |
src/main/kotlin/cn/vove7/plugin/rest/filetype/RestHostInjector.kt | Vove7 | 211,596,099 | false | null | package cn.vove7.plugin.rest.filetype
import com.intellij.lang.injection.MultiHostInjector
import com.intellij.lang.injection.MultiHostRegistrar
import com.intellij.psi.PsiElement
import cn.vove7.plugin.rest.psi.RestHeaders
import cn.vove7.plugin.rest.psi.RestResponseBody
import cn.vove7.plugin.rest.psi.RestResponse
i... | 2 | Kotlin | 6 | 50 | d8650bef5eede23f7e9197af1c5db961e3a89f73 | 2,992 | retrofit-rest-client | Apache License 2.0 |
src/main/kotlin/cn/vove7/plugin/rest/filetype/RestHostInjector.kt | Vove7 | 211,596,099 | false | null | package cn.vove7.plugin.rest.filetype
import com.intellij.lang.injection.MultiHostInjector
import com.intellij.lang.injection.MultiHostRegistrar
import com.intellij.psi.PsiElement
import cn.vove7.plugin.rest.psi.RestHeaders
import cn.vove7.plugin.rest.psi.RestResponseBody
import cn.vove7.plugin.rest.psi.RestResponse
i... | 2 | Kotlin | 6 | 50 | d8650bef5eede23f7e9197af1c5db961e3a89f73 | 2,992 | retrofit-rest-client | Apache License 2.0 |
src/main/kotlin/gln/renderbuffer/renderbuffer.kt | kotlin-graphics | 105,462,120 | false | null | @file:Suppress("NOTHING_TO_INLINE")
package gln.renderbuffer
import glm_.vec2.Vec2i
import gln.GetRenderbuffer
import gln.gl
import gln.identifiers.GlFramebuffer
import kool.*
import org.lwjgl.opengl.GL30
import org.lwjgl.opengl.GL30C
import java.nio.IntBuffer
import kotlin.properties.Delegates
var renderbufferName... | 9 | Kotlin | 7 | 84 | 56d89fcb4c778fbdf2b2595792e0c1ca1110ef3d | 1,335 | gln | Apache License 2.0 |
app/src/main/java/com/skl/putya/audiorecorder/player/PlayerViewModel.kt | putyasekar | 416,651,968 | false | null | package com.skl.putya.audiorecorder.player
import android.arch.lifecycle.ViewModel
class PlayerViewModel(val playerRepository: PlayerRepository) : ViewModel() {
fun getRecordings() = playerRepository.getRecordings()
} | 0 | Kotlin | 0 | 0 | 3878ace8e879355efd17b77dd16a88b9a611975d | 224 | SimpleAudioRecorder | MIT License |
libs/messaging/messaging/src/main/kotlin/net/corda/messaging/api/publisher/HttpRpcClient.kt | corda | 346,070,752 | false | {"Kotlin": 20585419, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.messaging.api.publisher
import net.corda.v5.base.exceptions.CordaRuntimeException
import java.net.URI
import java.net.http.HttpResponse
/**
* Interface for posting requests of and receiving responses over HTTP.
* HttpRpcClient instances can be created via the [PublisherFactory].
*/
interface Http... | 11 | Kotlin | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 1,706 | corda-runtime-os | Apache License 2.0 |
protocol/osrs-226/src/main/kotlin/net/rsprox/protocol/game/outgoing/decoder/codec/misc/client/ResetInteractionModeDecoder.kt | blurite | 822,339,098 | false | {"Kotlin": 5997123, "HCL": 3626} | package net.rsprox.protocol.game.outgoing.decoder.codec.misc.client
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ClientProt
import net.rsprot.protocol.metadata.Consistent
import net.rsprox.protocol.ProxyMessageDecoder
import net.rsprox.protocol.game.outgoing.decoder.prot.GameServerProt
import net.rsp... | 9 | Kotlin | 12 | 31 | 78fb08c23ec5bedd194371627586005b50b01ada | 823 | rsprox | MIT License |
app/src/androidTest/java/com/duckduckgo/app/widget/ui/AddWidgetInstructionsViewModelTest.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11627106, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.widget.ui
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import com.duckduckgo.app.widget.ui.AddWidgetInstructionsViewModel.Command
import com.duckduckgo.app.widget.ui.AddWidgetInstructionsViewModel.Command.Close
import com.duckduckgo.... | 0 | Kotlin | 0 | 0 | 54351d039b85138a85cbfc7fc3bd5bc53637559f | 1,871 | DuckDuckGo | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/appmesh/CfnRouteRouteSpecPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.appmesh
import io.cloudshiftdev.awscdkdsl.common.CdkDslMa... | 3 | null | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 8,295 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/vn/loitp/app/activity/customviews/viewpager/detectviewpagerswipeout2/ViewPagerSwipeOut2Activity.kt | tplloi | 126,578,283 | false | null | package vn.loitp.app.activity.customviews.viewpager.detectviewpagerswipeout2
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.annotation.IsFullScreen
import com.annotation.LogTag
import com.core... | 0 | Kotlin | 0 | 6 | b6c11ccff814d25ff368013ea6dd8a6b5d987ff1 | 2,003 | basemaster | Apache License 2.0 |
src/main/kotlin/com/lapanthere/flink/api/kotlin/typeutils/DataClassTypeInformation.kt | cyberdelia | 553,305,526 | false | null | package com.lapanthere.flink.api.kotlin.typeutils
import org.apache.flink.api.common.ExecutionConfig
import org.apache.flink.api.common.operators.Keys
import org.apache.flink.api.common.typeinfo.TypeInformation
import org.apache.flink.api.common.typeutils.CompositeType
import org.apache.flink.api.common.typeutils.Type... | 1 | null | 0 | 9 | 0aca8f905a3f1677d3247e1e3e65075edf0adf78 | 7,701 | flink-kotlin | MIT License |
vscode/src/jsMain/kotlin/vscode/IDisposable.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package vscode
/**
* Represents a type which can release resources, such
* as event listening or a timer.
*/
@Suppress("WRONG_EXTERNAL_DECLARATION")
external fun interface IDisposable {
/**
* Dispose this object.
*/
fun dispose(): Any?
}
| 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 252 | kotlin-externals | MIT License |
src/main/kotlin/me/tomasan7/jecnaapi/data/article/NewsPage.kt | Tomasan7 | 499,780,295 | false | {"Kotlin": 151702, "Java": 5755} | package me.tomasan7.jecnaapi.data.article
import kotlinx.serialization.Serializable
import me.tomasan7.jecnaapi.util.emptyMutableLinkedList
import me.tomasan7.jecnaapi.util.setAll
/**
* Holds all the [articles][Article] on the main news page.
*/
@Serializable
data class NewsPage(val articles: List<Article>)
{
c... | 0 | Kotlin | 1 | 4 | 0805a277260e265a017648c0d5bc1f1f4cb5eab3 | 816 | JecnaAPI | MIT License |
2518.Number of Great Partitions.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun countPartitions(nums: IntArray, k: Int): Int {
var s: Long = 0
for (v in nums) {
s += v.toLong()
}
if (s < k * 2) {
return 0
}
val n = nums.size
val f = Array(n + 1) { LongArray(k) }
f[0][0] = 1
var ans: Long = 1
for (i in 1..n) {
... | 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 803 | kotlin-leetcode | MIT License |
src/commonMain/kotlin/net/dinkla/raytracer/utilities/Timer.kt | jdinkla | 38,753,756 | false | {"Kotlin": 490829, "Shell": 239} | package net.dinkla.raytracer.utilities
import com.soywiz.klock.DateTime
class Timer {
private var start: Double = 0.0
private var end: Double = 0.0
val duration: Long
get() = (end - start).toLong()
fun start() {
start = timeStamp()
}
fun stop() {
end = timeStamp()
... | 0 | Kotlin | 2 | 5 | fdf196ff5370a5e64f27c6e7ea66141a25d17413 | 376 | from-the-ground-up-ray-tracer | Apache License 2.0 |
evervault-core/src/commonMain/kotlin/com/evervault/sdk/core/DataType.kt | evervault | 658,816,254 | false | null | package com.evervault.sdk.core
internal enum class DataType(val header: String) {
STRING("string"),
BOOLEAN("boolean"),
NUMBER("number"),
} | 0 | Kotlin | 0 | 1 | b68d125c1307ee6bf8cd5132447185792e3225c5 | 152 | evervault-multiplatform | MIT License |
app/src/main/java/com/handheld/exp/receivers/OverlayServiceReceiver.kt | Teppichseite | 812,666,925 | false | {"Kotlin": 78569, "Shell": 993} | package com.handheld.exp.receivers
import android.app.ActivityManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import com.handheld.exp.OverlayService
import com.handheld.exp.utils.InfoUtils
class OverlayServiceReceiver : BroadcastRec... | 0 | Kotlin | 0 | 7 | 3c6898c0a5643d9606deef0690192bdc7ffa24e5 | 1,386 | HandheldExp | MIT License |
protocol/osrs-225/osrs-225-desktop/src/main/kotlin/net/rsprot/protocol/game/outgoing/codec/specific/NpcSpotAnimSpecificEncoder.kt | blurite | 771,753,685 | false | {"Kotlin": 11331205} | package net.rsprot.protocol.game.outgoing.codec.specific
import net.rsprot.buffer.JagByteBuf
import net.rsprot.crypto.cipher.StreamCipher
import net.rsprot.protocol.ServerProt
import net.rsprot.protocol.game.outgoing.prot.GameServerProt
import net.rsprot.protocol.game.outgoing.specific.NpcSpotAnimSpecific
import net.r... | 4 | Kotlin | 6 | 27 | 9b1573071d281e6ef5ac9094411f2a18a65b2290 | 829 | rsprot | MIT License |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/components/role/adapter/RoleItem.kt | sceyt | 549,073,085 | false | null | package com.sceyt.chat.ui.presentation.changerole.adapter
import com.sceyt.chat.models.role.Role
data class RoleItem(
val role: Role
) {
var checked: Boolean = false
}
| 0 | null | 1 | 2 | 92717e7a0201600396bacddaa279f8a07a298650 | 182 | sceyt-chat-android-uikit | MIT License |
src/me/anno/mesh/fbx/FBX6000.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.mesh.fbx
import me.anno.ecs.components.mesh.Mesh
import me.anno.io.Streams.consumeMagic
import me.anno.io.Streams.readLE16
import me.anno.io.Streams.readLE32
import me.anno.io.Streams.readLE64
import me.anno.io.Streams.readLE64F
import me.anno.utils.structures.CountingInputStream
import me.anno.utils.s... | 0 | Kotlin | 3 | 9 | 94bc7c74436aa567ec3c19f386dd67af0f1ced00 | 9,329 | RemsEngine | Apache License 2.0 |
commonUi/src/main/java/io/github/pelmenstar1/digiDict/common/ui/selectionDialogs/SingleSelectionIntDialogFragment.kt | pelmenstar1 | 512,710,767 | false | {"Kotlin": 1238378, "Python": 531} | package io.github.pelmenstar1.digiDict.common.ui.selectionDialogs
import android.os.Bundle
import androidx.annotation.StringRes
import kotlin.math.max
import kotlin.math.min
class SingleSelectionIntDialogFragment : SingleSelectionDialogFragment<Int>() {
private class IntProgressionChoicesProvider(
private... | 6 | Kotlin | 0 | 3 | 62f9519a065f1b9f27d200636b07e11d88a270f6 | 3,520 | DigiDictionary | MIT License |
app/src/main/java/com/example/android/marsphotos/network/MarsPhoto.kt | Kudlayra | 485,685,702 | false | null | package com.example.android.marsphotos.network
import com.squareup.moshi.Json
data class MarsPhoto(val id: String, @Json(name = "img_src") val imgSrcUrl: String)
| 0 | null | 0 | 1 | fede02cdf519c6b01ca90d09d960f5172fe05816 | 164 | MarsPhotos | Apache License 2.0 |
mbcarkit/src/test/java/com/daimler/mbcarkit/network/model/ApiServiceResponseTest.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbcarkit.network.model
import org.assertj.core.api.SoftAssertions
import org.assertj.core.api.junit.jupiter.SoftAssertionsExtension
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@ExtendWith(SoftAssertionsExtension::class)
class ApiServiceResponseTest {
@T... | 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 1,198 | MBSDK-Mobile-Android | MIT License |
app/src/main/java/com/example/antiquemall/util/abstractwrapper/AbstractAdListener.kt | oguz-sahin | 403,886,945 | false | null | package com.example.antiquemall.util.abstractwrapper
import com.example.antiquemall.util.manager.AnalyticsManager.ADS_CLICKED
import com.example.antiquemall.util.manager.AnalyticsManager.ADS_CLOSED
import com.example.antiquemall.util.manager.AnalyticsManager.sendEvent
import com.huawei.hms.ads.AdListener
/**
* Creat... | 0 | Kotlin | 0 | 1 | d9204d865253840eab7331dee476f110d706ef17 | 599 | AntiqueMall | The Unlicense |
composeApp/src/androidMain/kotlin/com/app/focus/ClockAndroid.kt | Mirror83 | 715,891,908 | false | {"Kotlin": 28130} | package com.app.focus
import ClockComponents
import PomodoroTimer
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import com.app.focus.notifications.makeTimerNotification
@Composable
fun... | 0 | Kotlin | 0 | 0 | e775cf73c1436ee1cf57b435e64e51aad2e778a4 | 1,429 | focus | MIT License |
wisefy/src/androidTest/java/com/isupatches/wisefy/GetNearbyAccessPointsTests.kt | project-kotinos | 277,452,347 | true | {"Kotlin": 889521, "Java": 4130} | package com.isupatches.wisefy
import com.isupatches.wisefy.callbacks.GetNearbyAccessPointsCallbacks
import com.isupatches.wisefy.constants.MISSING_PARAMETER
import com.isupatches.wisefy.internal.base.BaseInstrumentationTest
import org.junit.Assert.assertEquals
import org.junit.Test
import org.mockito.Mockito.mock
impo... | 0 | Kotlin | 0 | 0 | ce593f621b127bf869f20e33580d99cfdc2c1223 | 6,225 | WiseFy | Apache License 2.0 |
miruken/src/main/kotlin/com/miruken/api/once/OnceHandler.kt | Miruken-Kotlin | 120,325,905 | false | null | package com.miruken.api.once
import com.miruken.callback.*
import com.miruken.concurrent.Promise
import com.miruken.map.map
class OnceHandler
@Provides @Singleton
constructor() : Handler() {
@Handles
fun once(once: Once, composer: Handling): Promise<*> {
val strategy = composer.map<OnceStrate... | 0 | Kotlin | 1 | 0 | 9c568c023e74da8ae5b38d2fa45839cccaf95dd8 | 444 | Miruken | MIT License |
src/main/kotlin/software/onepiece/limits/spec/ContainerSpec.kt | jjohannes | 167,727,850 | false | null | package software.onepiece.limits.spec
class ContainerSpec(
private val projectName: String,
private val typeName: String,
private val coordinatesType: CoordinatesSpec = NullSpec,
private val containedType: Spec = NullSpec,
private val containedSubTypes: List<ContainerSpec> = emp... | 0 | Kotlin | 0 | 0 | a85cfa8238a90ea230ab2ba6dc09585b70dcfa2d | 21,468 | onepiece-limits | Apache License 2.0 |
app/src/test/java/com/lordinatec/minesweepercompose/gameplay/extensions/FloatExtensionsTest.kt | joven-health-mike | 839,055,407 | false | {"Kotlin": 138246} | /*
* Copyright Lordinatec LLC 2024
*/
package com.lordinatec.minesweepercompose.gameplay.extensions
import com.lordinatec.minesweepercompose.extensions.formatString
import kotlinx.coroutines.test.runTest
import org.junit.Assert.assertThrows
import kotlin.test.Test
import kotlin.test.assertEquals
class FloatExtensi... | 13 | Kotlin | 0 | 1 | bc3608e6ec8d7b368a3f78ce88a30ad48daacec1 | 1,115 | MinesweeperCompose | MIT License |
subprojects/teamcity-metrics-collector/src/main/kotlin/com/avito/teamcity/metric/TeamcityBuildDurationMetric.kt | avito-tech | 230,265,582 | false | null | package com.avito.teamcity.metric
import com.avito.android.graphite.GraphiteMetric
import com.avito.graphite.series.SeriesName
import org.jetbrains.teamcity.rest.Build
import java.time.Duration
internal class TeamcityBuildDurationMetric(
private val build: Build,
) {
private val base: SeriesName = SeriesName... | 7 | null | 50 | 414 | bc94abf5cbac32ac249a653457644a83b4b715bb | 881 | avito-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.