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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Data-Remote/src/main/kotlin/com/watched/data/remote/common/api/LoggingInterceptorFactory.kt | heitorcolangelo | 261,010,590 | false | null | package com.watched.data.remote.common.api
import com.watched.data.remote.common.BuildConfiguration
import okhttp3.logging.HttpLoggingInterceptor
internal object LoggingInterceptorFactory {
internal fun getLoggingInterceptor(configuration: BuildConfiguration): HttpLoggingInterceptor {
val interceptor = Ht... | 0 | Kotlin | 0 | 0 | 884c639a7ef3bbe614391e006fa3b419b32a5d5f | 556 | Watched | Apache License 2.0 |
core/src/commonMain/kotlin/com/pstep/kmp/health/records/CaloriesRecord.kt | Maximum21 | 772,105,852 | false | {"Kotlin": 50334, "Swift": 815, "Shell": 228, "Ruby": 190} | package com.pstep.kmp.health.records
import com.pstep.kmp.health.HealthDataType
import com.pstep.kmp.health.IntervalRecord
import kotlinx.datetime.Instant
/**
* Captures the number of calories burned since the last reading. Each calorie is only reported once so
* records shouldn't have overlapping time. The start t... | 0 | Kotlin | 0 | 0 | 5874d610c7472f7be2e90a54fb45319282b7101c | 892 | HealthKMP | Apache License 2.0 |
app/src/main/java/za/co/varsitycollege/st10204772/opsc7312_poe/InputValidation.kt | Allana-Morris | 849,370,322 | false | {"Kotlin": 161039} | package za.co.varsitycollege.st10204772.opsc7312_poe
import android.content.ContentValues.TAG
import android.text.Editable
import android.util.Log
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.Locale
class InputValidation {
fun isStringInput(input: String): Boolean{
r... | 0 | Kotlin | 0 | 1 | 9f1f78dd5bee8c360759465f1e6802ed08c32865 | 1,866 | OPSC7312_POE | MIT License |
data/src/main/kotlin/com/andremion/data/repository/mapper/VenueMapper.kt | andremion | 122,661,183 | false | null | /*
* Copyright (c) 2018. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 5 | Kotlin | 97 | 647 | 654ed1020b5633c3d529adf9cea66372db4a5383 | 862 | Theatre | Apache License 2.0 |
src/main/kotlin/pw/aru/commands/music/voting/VoteShuffle.kt | annathelibri | 127,363,282 | false | {"Kotlin": 561547, "HTML": 2926, "Dockerfile": 475, "Shell": 430} | package pw.aru.commands.music.voting
import com.sedmelluq.discord.lavaplayer.track.AudioTrack
import pw.aru.bot.commands.Command
import pw.aru.bot.commands.ICommand
import pw.aru.bot.commands.context.CommandContext
import pw.aru.bot.commands.help.*
import pw.aru.bot.music.MusicPlayer
import pw.aru.bot.music.MusicSyste... | 0 | Kotlin | 0 | 0 | 479b02aa4a813d716c4e1b61088bfed1408d8955 | 1,298 | arudiscord | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/mediapackage/CfnPackagingConfigurationDashManifestPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.mediapackage
import io.cloudshiftdev.awscdkdsl.common.Cdk... | 3 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 4,078 | awscdk-dsl-kotlin | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/bold/electronicdevices/TurntableMinimalistic.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.bold.electronicdevices
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Co... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,055 | SolarIconSetAndroid | MIT License |
tikrana-http-server/src/main/kotlin/plenix/tikrana/http/Codecs.kt | xrrocha | 541,767,473 | false | {"Kotlin": 46588} | package plenix.tikrana.http
import arrow.core.Either
import arrow.core.flatMap
import arrow.core.left
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
import plenix.tikrana.util.ApplicationFailure
... | 0 | Kotlin | 0 | 0 | 45d9f5b7ee7c85901e754b4c9120c933658ff796 | 3,338 | tikrana | Apache License 2.0 |
app/src/main/java/com/actively/home/ui/SyncInProgressItem.kt | actively-pw | 671,584,612 | false | {"Kotlin": 364808} | package com.actively.home.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Card
import androidx.compose.material3.CircularProg... | 0 | Kotlin | 0 | 0 | 33c791dfa6ce82a6ccacb1b5cdb39d2a26302ef4 | 1,291 | actively-mobile | MIT License |
android/src/main/kotlin/com/tahamalas/internet_speed_test/InternetSpeedTestPlugin.kt | EdwinRomelta | 404,302,142 | true | {"Swift": 37378, "Kotlin": 13313, "Dart": 12386, "Ruby": 4342, "Objective-C": 767} | package com.tahamalas.internet_speed_test
import android.app.Activity
import fr.bmartel.speedtest.SpeedTestReport
import fr.bmartel.speedtest.SpeedTestSocket
import fr.bmartel.speedtest.inter.IRepeatListener
import fr.bmartel.speedtest.inter.ISpeedTestListener
import fr.bmartel.speedtest.model.SpeedTestError
import an... | 0 | Swift | 0 | 0 | 78e68493b03eef66c40c683d4be80685fc28d1d3 | 12,452 | internet_speed_test | MIT License |
core/domain/src/main/kotlin/app/surgo/core/domain/interactors/RemoveAlbumFromLibrary.kt | tsukiymk | 382,220,719 | false | null | package app.surgo.core.domain.interactors
import app.surgo.core.data.repositories.albums.AlbumsRepository
import app.surgo.core.domain.Interactor
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import javax.inject.Inject
class RemoveAlbumFromLibrary @Inject constructor(
private val alb... | 0 | Kotlin | 0 | 0 | a364fa99ea63c6b18268ad26b3bb4c0a0603a98f | 640 | surgo | Apache License 2.0 |
app/src/androidTest/kotlin/cz/covid19cz/erouska/screenObject/BluetoothPermisionScreen.kt | rdpanek | 255,146,257 | false | null | package cz.covid19cz.erouska.screenObject
import android.os.Build
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
import androidx.test.uiautomator.UiSelector
import cz.... | 1 | Kotlin | 1 | 1 | 5cc0b3c8878b0952853832fe0d1e69f4bebf7308 | 1,131 | erouska-automaty | MIT License |
app/src/main/java/com/yuchen/howyo/plan/payment/PaymentViewModel.kt | ione0213 | 418,168,888 | false | null | package com.yuchen.howyo.plan.payment
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.yuchen.howyo.data.Payment
import com.yuchen.howyo.data.Plan
import com.yuchen.howyo.data.Result
import com.yuchen.howyo.data.User
import com.yuchen.howyo.dat... | 0 | Kotlin | 0 | 0 | b63a8c79f881923bb049ada5081fdde63280639f | 4,000 | HowYo | MIT License |
ktor-generator/src/commonMain/kotlin/io/ktor/start/util/FileMode.kt | robstoll | 186,965,206 | true | {"Kotlin": 462537, "HTML": 11844, "Java": 4473, "CSS": 1049} | package io.ktor.start.util
data class FileMode(val mode: Int) {
constructor(octalMode: String) : this(octalMode.toInt(8))
}
| 0 | Kotlin | 0 | 0 | 86d8f9721d510366471151cd1b8082fbde08cf00 | 129 | ktor-init-tools | Apache License 2.0 |
integration-testing/src/functionalTest/kotlin/kotlinx.atomicfu.gradle.plugin.test/framework/runner/BuildScriptConfigurator.kt | Kotlin | 99,576,820 | false | {"Kotlin": 310810, "Shell": 762, "Java": 487} | /*
* Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.atomicfu.gradle.plugin.test.framework.runner
import java.io.*
/**
* This function adds a given repository to the repositories {} blocks declared in build files:
* // settings.gradle:
* plu... | 57 | Kotlin | 58 | 917 | b94c6bd887ec48a5b172cacc0a1dac3f76c4fdbb | 1,714 | kotlinx-atomicfu | Apache License 2.0 |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/particle/ColoredEndParticleEffectFactory.kt | fzzyhmstrs | 461,338,617 | false | {"Kotlin": 1749387, "Java": 107325} | package me.fzzyhmstrs.amethyst_imbuement.particle
import com.mojang.brigadier.StringReader
import net.minecraft.network.PacketByteBuf
import net.minecraft.particle.ParticleEffect
import net.minecraft.particle.ParticleType
class ColoredEndParticleEffectFactory: ParticleEffect.Factory<ColoredEndParticleEffect> {
ov... | 10 | Kotlin | 8 | 4 | 4d30be7c0ad573ef67a4e464afb0a43e1fc77697 | 1,065 | ai | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Fog.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,474 | icons | MIT License |
app/src/main/java/com/lianyi/paimonsnotebook/ui/screen/items/components/search/ItemFilterContent.kt | QooLianyi | 435,314,581 | false | {"Kotlin": 1891848} | package com.lianyi.paimonsnotebook.ui.screen.items.components.search
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.spring
import androidx.compose.animation.slideIn
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOut
import android... | 1 | Kotlin | 2 | 36 | 6be6297c7c6d01971587e0549b54478000c90e3a | 8,045 | PaimonsNotebook | MIT License |
flowbinding-android/src/androidTest/java/reactivecircus/flowbinding/android/view/ViewClickedFlowTest.kt | ReactiveCircus | 201,777,295 | false | null | package reactivecircus.flowbinding.android.view
import android.view.View
import androidx.test.filters.LargeTest
import com.google.common.truth.Truth.assertThat
import org.junit.Test
import reactivecircus.blueprint.testing.action.clickView
import reactivecircus.flowbinding.android.fixtures.view.AndroidViewFragment
impo... | 6 | Kotlin | 43 | 894 | 25e5b9723211d37c3cb36daae8649cc1d603691a | 1,126 | FlowBinding | Apache License 2.0 |
api/src/main/kotlin/com/duj/example/cleankt/api/entrypoint/controller/ParkingLotController.kt | CorreiaEduardo | 415,375,934 | false | {"Kotlin": 24682} | package com.duj.example.cleankt.api.entrypoint.controller
import com.duj.example.api.util.ApplicationLogger
import com.duj.example.cleankt.api.entrypoint.controller.dto.request.CreateParkingLotRequest
import com.duj.example.cleankt.api.entrypoint.controller.dto.response.CreateParkingLotResponse
import com.duj.example.... | 0 | Kotlin | 0 | 0 | d3b8b989919517501fd1fa19c8a9807d95bbd8b1 | 2,224 | ex-clean-spring-kt | MIT License |
api/src/main/kotlin/com/duj/example/cleankt/api/entrypoint/controller/ParkingLotController.kt | CorreiaEduardo | 415,375,934 | false | {"Kotlin": 24682} | package com.duj.example.cleankt.api.entrypoint.controller
import com.duj.example.api.util.ApplicationLogger
import com.duj.example.cleankt.api.entrypoint.controller.dto.request.CreateParkingLotRequest
import com.duj.example.cleankt.api.entrypoint.controller.dto.response.CreateParkingLotResponse
import com.duj.example.... | 0 | Kotlin | 0 | 0 | d3b8b989919517501fd1fa19c8a9807d95bbd8b1 | 2,224 | ex-clean-spring-kt | MIT License |
app/src/main/java/com/anamarin/bitcoinpricesapp/core/di/modules/ViewModelModule.kt | anamarin09041995 | 228,681,425 | false | null | package com.anamarin.bitcoinpricesapp.core.di.modules
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.anamarin.bitcoinpricesapp.core.utils.viewModelUtil.AppViewModelFactory
import com.anamarin.bitcoinpricesapp.presentation.viewmodels.MainViewModel
import dagger.Binds
import d... | 0 | Kotlin | 0 | 0 | 886261390e5bf1dedf24032bb9b2078512768664 | 954 | BitcoinPricesApp | MIT License |
app/src/main/java/com/example/twitturin/home/presentation/sealed/HomeUIEvent.kt | extractive-mana-pulse | 708,689,521 | false | {"Kotlin": 307475, "Java": 2351} | package com.example.twitturin.home.presentation.sealed
sealed class HomeUIEvent {
data object OpenDrawer: HomeUIEvent()
data object NavigateToPublicPost: HomeUIEvent()
} | 1 | Kotlin | 0 | 1 | dfad532fa64f5c0ca92c8e5c2f29e5925d6b7d93 | 181 | Twittur-In- | MIT License |
src/main/kotlin/no/nav/familie/baks/mottak/task/OppdaterOgFerdigstillJournalpostTask.kt | navikt | 221,166,975 | false | {"Kotlin": 663460, "Java": 28936, "Dockerfile": 165} | package no.nav.familie.baks.mottak.task
import io.micrometer.core.instrument.Counter
import io.micrometer.core.instrument.Metrics
import no.nav.familie.baks.mottak.integrasjoner.DokarkivClient
import no.nav.familie.baks.mottak.integrasjoner.JournalpostClient
import no.nav.familie.baks.mottak.integrasjoner.Journalstatu... | 3 | Kotlin | 0 | 1 | 4951787fdb86a097d49a71c51441c77466b79e8c | 4,519 | familie-baks-mottak | MIT License |
graaljs-evaluator/src/test/kotlin/com/rapatao/projects/ruleset/engine/evaluator/graaljs/GraalJSEvaluatorTest.kt | rapatao | 428,859,473 | false | {"Kotlin": 124643} | package com.rapatao.projects.ruleset.engine.evaluator.graaljs
import com.rapatao.projects.ruleset.engine.BaseEvaluatorTest
import com.rapatao.projects.ruleset.engine.helper.ExposeEngineTestOperator
class GraalJSEvaluatorTest : BaseEvaluatorTest(
GraalJSEvaluator(
operators = listOf(
ExposeEngi... | 0 | Kotlin | 0 | 2 | e6339a7cf3fd37a2bdc585e148cf7055820e1912 | 358 | ruleset-engine | Apache License 2.0 |
jsonrpc/src/main/java/me/uport/sdk/jsonrpc/experimental/CoroutineExtensions.kt | jimjag | 166,115,241 | true | {"Kotlin": 489456, "Java": 409} | package me.uport.sdk.jsonrpc.experimental
import me.uport.sdk.jsonrpc.JsonRPC
import me.uport.sdk.jsonrpc.JsonRpcLogItem
import org.kethereum.model.SignatureData
import org.kethereum.model.Transaction
import java.math.BigInteger
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlin... | 0 | Kotlin | 0 | 0 | 6de7b9351cdc0a99cc63ee9c1a8bda5040cc14d3 | 3,077 | uport-android-sdk | Apache License 2.0 |
helperlib/src/main/java/com/itachi1706/helperlib/helpers/URLHelper.kt | itachi1706 | 230,937,973 | false | null | package com.itachi1706.helperlib.helpers
import android.util.Log
import androidx.annotation.WorkerThread
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStreamReader
import java.net.HttpURLConnection
import java.net.URL
import javax.net.ssl.HttpsURLConnection
import javax.net.ssl.SSLExcept... | 1 | null | 0 | 1 | cdc21fa6bfa0486241a2d2a98d91bf2c6a0ec95a | 4,381 | AndroidHelperLib | MIT License |
android/app/src/main/kotlin/realdream/ghomi/weather_forecast/MainActivity.kt | abbasghomi | 308,482,012 | false | {"Dart": 33308, "Swift": 500, "Kotlin": 137, "Objective-C": 38} | package realdream.ghomi.weather_forecast
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 550188474f502b5a1699ca408f7f5997b91bb27e | 137 | Weather-forecast-Flutter-sample | MIT License |
app/src/main/java/com/philpot/nowplayinghistory/util/ColorGenerator.kt | MattPhilpot | 237,510,155 | false | null | package com.philpot.nowplayinghistory.util
import java.util.*
/**
* Created by MattPhilpot on 11/29/2017.
*/
enum class ColorGenerator(private val list: List<Long>, private val random: Random = Random()) {
DEFAULT(arrayListOf(0xfff16364, 0xfff58559, 0xfff9a43e, 0xffe4c62e, 0xff67bf74, 0xff59a2be, 0xff2093cd, 0x... | 0 | Kotlin | 0 | 0 | cd909d3d8f4f136ee1b067d35f994e595a0da038 | 675 | NowPlayingHistory | Apache License 2.0 |
src/main/kotlin/dev/syoritohatsuki/fstatsbackend/routing/v2/UsersRoute.kt | fStats | 501,329,892 | false | null | package dev.syoritohatsuki.fstatsbackend.routing.v2
import dev.syoritohatsuki.fstatsbackend.dao.impl.ProjectDAOImpl
import dev.syoritohatsuki.fstatsbackend.dao.impl.UserDAOImpl
import dev.syoritohatsuki.fstatsbackend.mics.Database.SUCCESS
import dev.syoritohatsuki.fstatsbackend.mics.respondMessage
import io.ktor.http.... | 0 | Kotlin | 0 | 0 | b9df37c3db068fda19492ec520021c484125443b | 1,848 | fstats-backend | MIT License |
llama-stack-client-kotlin-core/src/main/kotlin/com/llama_stack_client/api/services/async/RewardScoringServiceAsyncImpl.kt | meta-llama | 854,913,926 | false | {"Kotlin": 2020773, "Shell": 2562} | // File generated from our OpenAPI spec by Stainless.
package com.llama_stack_client.api.services.async
import com.llama_stack_client.api.core.ClientOptions
import com.llama_stack_client.api.core.RequestOptions
import com.llama_stack_client.api.core.http.HttpMethod
import com.llama_stack_client.api.core.http.HttpRequ... | 0 | Kotlin | 2 | 0 | ee76c5aec1d582dbbd2759d084ba16b8b74f04ea | 2,179 | llama-stack-client-kotlin | Apache License 2.0 |
extension-recyclerview/src/main/java/com/stanfit/android/extension/recyclerview/RecyclerView+Paging.kt | stanfit | 258,159,175 | false | null | package com.stanfit.android.extension.recyclerview
import androidx.recyclerview.widget.RecyclerView
/**
* Paging listener pending.
*/
private val pagingListeners = mutableMapOf<Int, RecyclerViewPagingListener>()
/**
* Add paging listener.
*
* @param initialPage initial paging index.
* @param visibleThreshold i... | 1 | Kotlin | 0 | 1 | d188377ea090777a5d591fc72d19b5b32fddd6e3 | 1,231 | android-extension | MIT License |
rowi-core/src/main/kotlin/com/abyssaldev/rowi/core/results/ArgumentContractMissingResult.kt | jacksonrakena | 324,772,735 | false | null | package com.abyssaldev.rowi.core.results
data class ArgumentContractMissingResult(val contractId: String): Result(false, "No argument contract is configured for contract ID `${contractId}`.") | 0 | Kotlin | 0 | 2 | 6db407401d3a43c062683808815d180c74063189 | 192 | rowi | MIT License |
shared/src/commonMain/kotlin/com/example/shared/model/PagedRepoSearchResult.kt | droibit | 366,763,922 | false | null | package com.example.shared.model
import com.example.shared.data.source.local.db.Repo
data class PagedRepoSearchResult(
val repos: List<Repo>,
val nextPage: Int?
) {
val hasRepos get() = repos.isNotEmpty()
constructor() : this(emptyList(), null)
fun merge(existingRepos: List<Repo>) = copy(repos =... | 0 | Kotlin | 0 | 0 | 4814d79b81cb99360f61479e07962e26761cdfb4 | 346 | kmm-github-browser-sample | MIT License |
spring/data-core/src/main/kotlin/com/linecorp/kotlinjdsl/spring/data/querydsl/SpringDataCriteriaUpdateQueryDsl.kt | line | 442,633,985 | false | null | package com.linecorp.kotlinjdsl.spring.data.querydsl
import com.linecorp.kotlinjdsl.querydsl.CriteriaUpdateQueryDsl
import com.linecorp.kotlinjdsl.spring.data.querydsl.predicate.SpringDataPredicateDsl
interface SpringDataCriteriaUpdateQueryDsl :
CriteriaUpdateQueryDsl,
SpringDataPredicateDsl
| 26 | Kotlin | 60 | 504 | f28908bf432cf52f73a9573b1ac2be5eb4b2b7dc | 303 | kotlin-jdsl | Apache License 2.0 |
src/main/kotlin/build/buf/intellij/manifest/Manifest.kt | bufbuild | 467,643,829 | false | null | // Copyright 2022-2024 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 4 | null | 2 | 15 | d2454be37d7d100bb19c7c11590ab31586cab686 | 4,605 | intellij-buf | Apache License 2.0 |
emscripten-runtime/src/commonMain/kotlin/ext/EmscriptenFdFlagsMapper.kt | illarionov | 848,247,126 | false | {"Kotlin": 1343464, "ANTLR": 6038, "TypeScript": 3148, "CSS": 1042, "FreeMarker": 450, "JavaScript": 89} | /*
* Copyright 2024, the wasi-emscripten-host project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package at.released.weh.emcripten.runtime.ext
imp... | 0 | Kotlin | 0 | 4 | 774f9d4fc1c05080636888c4fe03049fdb038a8d | 1,056 | wasi-emscripten-host | Apache License 2.0 |
data/src/main/java/com/pp/moviefy/data/remote/model/common/ApiTranslations.kt | pauloaapereira | 356,418,263 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | e174b88ab2397720c47f81c06603794e142bd91f | 1,664 | Moviefy | Apache License 2.0 |
network/core/src/commonMain/kotlin/co/yml/network/core/response/HttpStatusCode.kt | yml-org | 504,124,065 | false | null | package co.yml.network.core.response
/**
* Enum for [HttpStatusCode] group type.
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status">https://developer.mozilla.org/en-US/docs/Web/HTTP/Status</a>
*/
enum class HttpStatusCodeType {
INFORMATION,
SUCCESS,
REDIRECT,
CLIENT_ERROR,
... | 1 | Kotlin | 2 | 5 | 2b5162b3e687d81546d9c7ce7a666b3a2b6df889 | 22,326 | ynetwork-android | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/dialogmote/domain/BehandlerType.kt | navikt | 331,892,633 | false | {"Kotlin": 1057529, "Dockerfile": 226} | package no.nav.syfo.dialogmote.domain
enum class BehandlerType() {
FASTLEGE,
}
| 1 | Kotlin | 0 | 0 | 66a2d688d5da82e4fc5b988ea3cb2fd122e15107 | 84 | isdialogmote | MIT License |
app/src/androidTest/java/com/springer/patryk/myshelf/ExampleInstrumentedTest.kt | Gralls | 121,849,162 | false | null | package com.springer.patryk.myshelf
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing docu... | 0 | Kotlin | 0 | 0 | ef37154262e3919b177ac11de99d8356fa663249 | 665 | My-Shelf | Apache License 2.0 |
odk/extension/src/main/java/io/samagra/odk/collect/extension/modules/StorageInteractorModule.kt | jayesh212 | 668,156,153 | true | {"Java Properties": 6, "Gradle": 42, "Shell": 3, "Markdown": 24, "YAML": 3, "INI": 31, "Git Attributes": 1, "Batchfile": 1, "Ignore List": 34, "Gradle Kotlin DSL": 1, "Kotlin": 607, "Text": 2, "XML": 545, "Java": 783, "JSON": 5, "HTML": 1, "JavaScript": 1, "Proguard": 5} | package io.samagra.odk.collect.extension.modules
import android.content.Context
import dagger.Module
import dagger.Provides
import io.samagra.odk.collect.extension.annotations.LocalStorage
import io.samagra.odk.collect.extension.handlers.LocalStorageHandler
import io.samagra.odk.collect.extension.interactors.StorageIn... | 0 | Java | 0 | 1 | d707b7798b7e3420105a4d321cf331263d96344d | 569 | odk-collect-extension | Apache License 2.0 |
app/src/main/java/com/example/noteasap/ui/forgetPassword/ForgetPasswordViewModel.kt | Gopa11313 | 359,194,196 | false | {"Java": 475432, "Kotlin": 191352, "Assembly": 158} | package com.example.noteasap.ui.forgetPassword
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class ForgetPasswordViewModel:ViewModel(){
val _forgetemail=MutableLiveData<String>()
val forgetemail:LiveData<String>
get() = _forgetemail
... | 1 | null | 1 | 1 | 492272be8de6069b666d18cad047bef5ca1e1848 | 323 | NoteAsap | MIT License |
app/src/main/java/com/example/cryptoflow/api/ModuleItem.kt | Naphtali-cpu | 428,728,616 | false | null | package com.example.cryptoflow.api
interface ModuleItem | 0 | Kotlin | 1 | 2 | c0dd08f6b534af9bd1a7349529bf40e772ae84f1 | 56 | Crypto-View | The Unlicense |
app/src/main/java/com/xception/messaging/features/channels/fragments/ConversationFragment.kt | ajmirB | 107,774,504 | false | null | package com.xception.messaging.features.channels.fragments
import android.content.Context
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.view.*
import android.widget.EditText
import android.widget.ImageView
import com.airbnb.epoxy.EpoxyRecyclerView
import com.sendbird.andr... | 0 | Kotlin | 0 | 1 | fe8cebb90e7a96a469ffb6645e7cc6ec6934bb91 | 4,749 | Messaging | Apache License 2.0 |
core/di/src/commonMain/kotlin/com/nesterov/veld/di/feature/spell/SpellDataModule.kt | anaesthez | 793,406,212 | false | {"Kotlin": 213998, "Ruby": 1684, "Swift": 522, "HTML": 275} | package com.nesterov.veld.di.feature.spell
import com.nesterov.veld.data.SpellRepositoryImpl
import com.nesterov.veld.domain.SpellRepository
import com.nesterov.veld.network.dnd.DND5eRemoteSource
interface SpellDataModule {
val repository: SpellRepository
class Default(
spellSource: DND5eRemoteSource... | 0 | Kotlin | 0 | 0 | 4273e340299452c008884a3634b6df1deb25b797 | 499 | veld | MIT License |
j2k/testData/fileOrElement/protected/inheritorsSamePackage.kt | yusuke | 54,976,085 | true | {"Markdown": 33, "XML": 694, "Ant Build System": 45, "Ignore List": 7, "Git Attributes": 1, "Kotlin": 23393, "Java": 4354, "Protocol Buffer": 7, "Text": 5173, "JavaScript": 66, "JAR Manifest": 3, "Roff": 174, "Roff Manpage": 19, "INI": 19, "HTML": 191, "Groovy": 23, "Java Properties": 15, "Maven POM": 53, "Gradle": 80,... | package test
open class BaseInheritorSamePackage protected constructor() {
protected fun foo() {
}
protected var i = 1
}
internal class DerivedInheritorSamePackage : BaseInheritorSamePackage() {
fun usage1() {
val base = BaseInheritorSamePackage()
base.foo()
val i = base.i
... | 0 | Java | 0 | 0 | cbb6f7ed6344cc524478fb0d762e61854474afce | 326 | kotlin | Apache License 2.0 |
code/debugger/src/main/kotlin/org/fbme/debugger/common/state/ResourceState.kt | JetBrains | 267,360,098 | false | null | package org.fbme.debugger.common.state
import org.fbme.debugger.common.getChildrenStates
import org.fbme.lib.iec61499.declarations.ResourceDeclaration
class ResourceState : State {
val children: Map<String, FBState>
constructor(typeDeclaration: ResourceDeclaration) {
children = typeDeclaration.getChi... | 12 | null | 15 | 19 | 3198be65e4b63e4405ee7e523ec64f28d1231ba5 | 567 | fbme | Apache License 2.0 |
shared/src/commonMain/kotlin/link/socket/kore/model/agent/bundled/prompt/TestAgentAgent.kt | socket-link | 724,331,833 | false | {"Kotlin": 164684, "Swift": 623, "Shell": 228} | package link.socket.kore.model.agent.bundled.prompt
import link.socket.kore.model.agent.AgentDefinition
class TestAgentAgent(override val prompt: String) : AgentDefinition() {
override val name: String = "Empty System Prompt"
} | 0 | Kotlin | 1 | 5 | b4fb4a145422d0ec8eb7fd0f2112297a74288801 | 233 | kore-ai | Apache License 2.0 |
app/src/main/java/com/github/skytoph/simpleweather/domain/weather/mapper/WarningRainDomainToUiMapper.kt | skytoph | 482,520,275 | false | {"Kotlin": 376392} | package com.github.skytoph.simpleweather.domain.weather.mapper
import com.github.skytoph.simpleweather.R
import com.github.skytoph.simpleweather.core.Mapper
import com.github.skytoph.simpleweather.core.util.formatter.ProbabilityFormatter
import com.github.skytoph.simpleweather.core.util.formatter.TimeFormatter
import ... | 0 | Kotlin | 0 | 0 | 68b7ff8c2f81578c63ba2b305de4d3e387b533dd | 1,365 | SimpleWeather | MIT License |
API/src/main/kotlin/net/sourcebot/impl/command/RestartCommand.kt | RoMeAh-zz | 299,405,471 | true | {"Kotlin": 207948} | package net.sourcebot.impl.command
import net.dv8tion.jda.api.entities.Message
import net.sourcebot.api.command.RootCommand
import net.sourcebot.api.command.argument.Arguments
import net.sourcebot.api.response.EmptyResponse
import net.sourcebot.api.response.ErrorResponse
import net.sourcebot.api.response.InfoResponse
... | 0 | null | 0 | 0 | 32c7bccb80e27745c339b5cc582b4416d06de58e | 1,185 | Source | MIT License |
app/src/main/java/com/jorgedguezm/elections/data/injection/vm/ViewModelModule.kt | Narsuf | 52,900,182 | false | null | package com.jorgedguezm.elections.data.injection.vm
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.jorgedguezm.elections.presentation.main.MainViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
@Module
internal abstract class ViewModelM... | 0 | Kotlin | 0 | 1 | 4373973217dc8a5f75cc07bf5a48fd781e4820fc | 593 | Elections | Apache License 2.0 |
idea/testData/quickfix/moveToConstructorParameters/memberExtensionProperty.kt | gigliovale | 89,726,097 | false | {"Java": 23302590, "Kotlin": 21941511, "JavaScript": 137521, "Protocol Buffer": 56992, "HTML": 49980, "Lex": 18051, "Groovy": 14093, "ANTLR": 9797, "IDL": 7706, "Shell": 5152, "CSS": 4679, "Batchfile": 3721} | // "class org.jetbrains.kotlin.idea.quickfix.InitializePropertyQuickFixFactory$MoveToConstructorParameters" "false"
// ACTION: Make 'n' abstract
// ACTION: Make internal
// ACTION: Make private
// ACTION: Make protected
// ERROR: Property must be initialized or be abstract
class A {
<caret>val Int.n: Int
} | 0 | Java | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 311 | kotlin | Apache License 2.0 |
app/src/main/java/com/pg/cloudcleaner/presentation/ui/MainActivity.kt | prateekgupta22195 | 556,909,764 | false | {"Kotlin": 100649, "Java": 60} | package com.pg.cloudcleaner.presentation.ui
import android.Manifest.permission.READ_EXTERNAL_STORAGE
import android.Manifest.permission.WRITE_EXTERNAL_STORAGE
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
imp... | 1 | Kotlin | 0 | 2 | e7b24119ae94d6518b7a3b3f7d04b444773427dc | 4,714 | free-memory-android | MIT License |
relax-business-component/src/main/java/com/ustory/relax_business_component/utils/ViewUtil.kt | UCodeUStory | 146,243,987 | false | null | package com.ustory.relax_business_component.utils
import android.app.Activity
import android.content.Context
import android.graphics.drawable.StateListDrawable
import android.support.v4.content.ContextCompat
import android.text.Html
import android.text.TextUtils
import android.util.DisplayMetrics
import android.util.T... | 0 | Kotlin | 17 | 250 | 7bd38ad751eb929514f996deaf08a19c24860be2 | 3,730 | Relax | MIT License |
tmp/arrays/youTrackTests/7781.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-24475
suspend inline fun <R> inlined(
crossinline step: suspend () -> R
): R = notInlined { step() }
suspend fun <R> notInlined(
block: suspend () -> R
): R = block()
| 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 197 | bbfgradle | Apache License 2.0 |
ZomboidFilesGenerator/src/main/kotlin/br/com/tntnp/data/Clothing.kt | danilo-favoratti | 638,769,057 | false | null | package br.com.tntnp.data
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement
@JacksonXmlRootElement(localName = "outfitManager")
data clas... | 0 | Kotlin | 0 | 0 | 77765cc992ada4bda6019eb9516b8dd0343e3066 | 2,179 | ZomboidShirtGenerator | Apache License 2.0 |
app/src/main/java/com/devjay/writtersdiary/ui/MainActivity.kt | samueljuma | 376,926,309 | false | null | package com.devjay.writtersdiary.ui
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toolbar
import androidx.databinding.DataBindingUtil
import androidx.drawerlayout.widget.DrawerLayout
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfig... | 0 | Kotlin | 0 | 4 | 816592da849e5a47938102a6fb843750b4ea160d | 1,510 | Writters-Diary | Apache License 2.0 |
oracle-base/src/main/kotlin/com/indigo/flow/CreateClaimDef.kt | agavrilov-atb | 124,576,588 | false | {"JavaScript": 5684893, "Kotlin": 128175, "TypeScript": 36159, "HTML": 23608, "CSS": 570} | package com.indigo.flow
import co.paralleluniverse.fibers.Suspendable
import net.corda.core.flows.FlowLogic
import net.corda.core.flows.InitiatingFlow
import net.corda.core.identity.Party
import net.corda.core.utilities.unwrap
@InitiatingFlow
class CreateClaimDef(val oracle: Party, val schema: String) : FlowLogic<Str... | 0 | JavaScript | 0 | 0 | 7dce83acd2ec916de0a5bd97d3a90dee7acb69e8 | 435 | indigo | Apache License 2.0 |
app/src/main/java/com/example/pmrtest/MyFireBaseMessagingService.kt | JetLiTheQT | 637,039,533 | false | null | package com.example.pmrtest
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import androidx.core.app.NotificationCompat
import com.google.firebase.database.FirebaseDatabase
import com.google.firebase.messaging.FirebaseMessagingService
... | 0 | Kotlin | 0 | 0 | 2d02021c93a2f48e289ec4f1cdb8c1c0136c0fd4 | 2,697 | pmrtest | MIT License |
app/src/main/kotlin/com/thekhaeng/materialstyletemplate/tab/FoundationFragment.kt | nontravis | 87,284,931 | false | {"Kotlin": 105356, "Java": 1197} | package com.thekhaeng.materialstyletemplate.tab
import android.os.Bundle
import android.view.ViewGroup
import com.thekhaeng.materialstyletemplate.R
import com.thekhaeng.materialstyletemplate.base.BaseFragment
import kotlinx.android.synthetic.main.fragment_tab_foundation.foundation_appbar as appbar
import kotlinx.andro... | 1 | Kotlin | 36 | 174 | 804e1cd36159a778a27ad4c6162b12d725c99b93 | 2,104 | material-design-guideline | Apache License 2.0 |
src/main/kotlin/org/rust/lang/core/resolve/LangItems.kt | andreycizov | 97,798,894 | true | {"Kotlin": 1602745, "Rust": 81982, "Lex": 19046, "HTML": 8810, "Java": 1121, "Shell": 760, "RenderScript": 15} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.resolve
import com.intellij.openapi.project.Project
import org.rust.lang.core.psi.RsFile
import org.rust.lang.core.psi.RsImplItem
import org.rust.lang.core.psi.RsTraitItem
import org.r... | 0 | Kotlin | 0 | 0 | 78754355e3cc823d75292f596d5c4ca1c17b26ad | 6,381 | intellij-rust | MIT License |
tooling/src/jvmMain/kotlin/dev/datlag/tooling/Platform.kt | DatL4g | 739,165,922 | false | {"Kotlin": 532513} | package dev.datlag.tooling
import org.apache.commons.lang3.SystemUtils
import java.awt.Desktop
import java.net.URI
import java.util.*
import kotlin.coroutines.cancellation.CancellationException
actual data object Platform {
actual val isAndroid: Boolean = false
actual val isAndroidJvm: Boolean = false
ac... | 0 | Kotlin | 0 | 3 | e4d2bf45d9d34e80107e9b1558fd982e511ab28c | 10,470 | tooling | Apache License 2.0 |
core/download/src/main/kotlin/app/surgo/core/download/DownloadManager.kt | tsukiymk | 382,220,719 | false | {"Kotlin": 889558, "Shell": 553, "CMake": 252, "C++": 166} | package app.surgo.core.download
import android.content.Context
class DownloadManager(
val context: Context
) {
fun start() {
}
fun pause() {
}
}
| 0 | Kotlin | 0 | 0 | 99038e0621ecc17e47965c3b352391c6a780f26c | 169 | surgo | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/config/ManagedRuleDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.config
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.String
import kotlin.Unit
import software.amazon.awscdk.services.config.ManagedRule
import software.amazon.awscdk.services.config.ManagedRuleProps
import software.constructs.Co... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 865 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/hibernate/v2/testyourandroid/ui/hardware/DefectivePixelsActivity.kt | himphen | 369,255,395 | false | null | package hibernate.v2.testyourandroid.ui.hardware
import android.graphics.drawable.GradientDrawable
import android.os.Bundle
import android.os.CountDownTimer
import android.view.WindowManager
import androidx.core.content.ContextCompat
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import hibernate... | 0 | Kotlin | 1 | 0 | d9a0966651a1c6c48912b578fff9ade8d84dcb7b | 2,469 | TestYourAndroid | Apache License 2.0 |
sample/src/main/java/com/locationpicker/sample/application/ApplicationClass.kt | Prog-MohamedAbdelnaser | 223,954,056 | false | {"Kotlin": 123748} | package com.locationpicker.sample.application
import android.app.Activity
import android.app.Application
import android.content.ComponentName
import android.content.Context
import android.content.res.Configuration
import android.os.Bundle
import com.locationpicker.sample.di.LanguageUseCaseProvider
import com.locationp... | 1 | Kotlin | 1 | 4 | 93348985a1fb8ae5b3e7d58efeae4edcad4cbf71 | 2,821 | location-picker-places-search-lib | MIT License |
kotlin-analytics/src/main/kotlin/com/sofakingforever/analytics/events/CustomEvent.kt | sofakingforever | 145,484,396 | false | null | package com.sofakingforever.analytics.events
import com.sofakingforever.analytics.AnalyticsKit
import com.sofakingforever.analytics.events.base.Event
/**
* Implement this interface in your class, if it is a "custom" event.
*
* It will carry a name, and a parameter map.
* Both might vary, according to the kit para... | 0 | Kotlin | 9 | 77 | afc7b781351d41914028b92aa6a78f588e165cff | 528 | solid-kotlin-analytics | Apache License 2.0 |
kids/android/app/src/main/kotlin/media/bcc/kids_app/MainActivity.kt | bcc-code | 504,450,061 | false | {"Dart": 7285432, "JavaScript": 2739373, "Ruby": 6203, "HTML": 3506, "Shell": 3301, "Makefile": 3176, "Swift": 2404, "Kotlin": 1661, "TypeScript": 792, "CSS": 750, "Java": 333, "Objective-C": 105, "MATLAB": 83} | package media.bcc.kids
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.android.FlutterFragmentActivity
class MainActivity : FlutterFragmentActivity() {
}
| 31 | Dart | 3 | 10 | a5526822aad459faf1ded453e75f81069d81f6ca | 189 | bcc-media-app | Apache License 2.0 |
app/src/main/java/com/gituser/hassanusman/di/component/ApplicationComponent.kt | HassanUsman | 159,128,309 | false | {"Gradle": 3, "Java Properties": 2, "Text": 1, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "Kotlin": 28, "XML": 17, "Java": 1} | package com.gituser.hassanusman.di.component
import android.app.Application
import android.content.Context
import com.gituser.hassanusman.di.module.ApplicationModule
import com.gituser.hassanusman.di.scope.ApplicationContext
import dagger.Component
import javax.inject.Singleton
@Singleton
@Component(modules = arrayOf... | 1 | null | 1 | 1 | 07055ecac9e5dcdf10fb2cacf81ea1a6034ca514 | 479 | GitUser | Apache License 2.0 |
src/Inputs.kt | ederpadilla | 93,013,152 | false | null | /**
* Created by ederpadilla on 31/05/17.
*/
fun main(arg : Array<String>){
/*Variables**/
print("Ingresa un nombre")
var x = readLine()// this its an input
var y = 12
var age = 28
print("Ingresa una edad")
var agetwo : Int = readLine()!!.toInt()//estamos esperando un input null y lo convierte... | 0 | Kotlin | 0 | 0 | 4b55212f7ba6ee76ecd4a046f8b17f5d82f45dc0 | 953 | MyIntellijKotlinProject | Apache License 2.0 |
app/src/main/java/com/philpot/nowplayinghistory/widget/RecyclerViewHolder.kt | MattPhilpot | 237,510,155 | false | null | package com.philpot.nowplayinghistory.widget
import android.support.v7.widget.RecyclerView
import android.view.View
/**
* Created by MattPhilpot on 10/30/2017.
*/
abstract class RecyclerViewHolder<E>(itemView: View) : RecyclerView.ViewHolder(itemView) {
protected var entity: E? = null
fun updateWithItem(e... | 0 | Kotlin | 0 | 0 | cd909d3d8f4f136ee1b067d35f994e595a0da038 | 862 | NowPlayingHistory | Apache License 2.0 |
generator/web/src/main/kotlin/me/kcra/takenaka/generator/web/components/badge.kt | zlataovce | 596,960,001 | false | null | /*
* This file is part of takenaka, licensed under the Apache License, Version 2.0 (the "License").
*
* Copyright (c) 2023 <NAME>
*
* 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... | 5 | Kotlin | 0 | 8 | bf716f44463c88d9079e2a3296ca07593d8da692 | 3,821 | takenaka | Apache License 2.0 |
gis/src/commonMain/kotlin/jetbrains/gis/geoprotocol/json/ResponseJsonFormatter.kt | OLarionova-HORIS | 253,743,859 | true | {"Kotlin": 4757586, "Python": 533272, "C": 2826, "CSS": 1948, "Shell": 1773, "JavaScript": 1048} | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.gis.geoprotocol.json
import jetbrains.datalore.base.json.*
import jetbrains.datalore.base.spatial.GeoRectangle
import jetbrains.datalore.base.typedGeometry.... | 0 | Kotlin | 0 | 0 | 89e30a574fe2de3da17186acdbe1cf427d66d87f | 6,372 | lets-plot | MIT License |
jokenpo/android/app/src/main/kotlin/com/example/jokenpo/MainActivity.kt | marcos-inja | 403,778,828 | false | {"Dart": 26531, "Swift": 1616, "Kotlin": 521, "Objective-C": 152} | package com.example.jokenpo
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | 9484bb892c6125fd93587660aed6a36d555e97a4 | 124 | apps-flutter | MIT License |
android-lib-and-app-with-mpp/lib/src/jsLibMain/kotlin/JsLibClass.kt | h0tk3y | 139,852,818 | false | null | package com.example.lib
class JsLibClass
actual class ExpectedLibClass | 3 | null | 5640 | 68 | 71ae083c84de8f484ad6ed1d7317c2524a2229f4 | 72 | k-new-mpp-samples | Apache License 2.0 |
DataFlow/mvrx/src/main/java/friendlyrobot/nyc/architecture/mvrx/ui/RedditPostsFragment.kt | friendlyrobotnyc | 190,274,471 | false | null | package friendlyrobot.nyc.architecture.mvrx.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import com.airbnb.epoxy.EpoxyRecyclerView
import com.ai... | 0 | Kotlin | 1 | 5 | 007433a14435f55c6e208ced194c0e727bcf6056 | 1,995 | FriendlyArchitecture | MIT License |
src/main/kotlin/com/github/tyrrx/buntenachtaddr/language/psi/CreatePsiElement.kt | bluehands | 509,068,691 | false | null | package com.github.tyrrx.buntenachtaddr.language.psi
import com.github.tyrrx.buntenachtaddr.language.AddRLanguage
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFileFactory
import com.intellij.psi.impl.PsiFileFactoryImpl
import com.intellij.psi.tree.IElementTy... | 0 | Kotlin | 0 | 0 | 8eeab90ad55326035071968dde3036f8f4476a92 | 610 | Sample-language-plugin-for-IntelliJ | Apache License 2.0 |
magick-kt/src/commonMain/kotlin/imagemagick/statistics/Moments.kt | Gounlaf | 692,782,810 | false | {"Kotlin": 954080, "C": 942148, "C++": 3285} | package imagemagick.statistics
import imagemagick.MagickImage
import imagemagick.core.enums.PixelChannel
import imagemagick.helpers.associateWithNotNull
import imagemagick.magicknative.statistics.NativeMoments
import kotlinx.cinterop.ExperimentalForeignApi
import kotlin.contracts.ExperimentalContracts
import kotlin.ex... | 0 | Kotlin | 0 | 0 | a075a88d293b5c77668d8079c73b463c2d601fc8 | 1,256 | Magick.KT | MIT License |
MomentumSDK/src/commonMain/kotlin/com/mwaibanda/momentum/data/eventDTO/EventsDTO.kt | MwaiBanda | 509,266,324 | false | {"Kotlin": 498123, "Swift": 281506, "Ruby": 2617} | package com.mwaibanda.momentum.data.eventDTO
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class EventsDTO (
@SerialName("data")
val collection: List<EventDTO>
) | 0 | Kotlin | 3 | 36 | a8831d17bdfb4d6dcfdb9b42141ed4e2286e63e6 | 226 | Momentum | MIT License |
product-group-repo-in-memory/src/commonMain/kotlin/PrgrpInMemoryRepo.kt | crowdproj | 508,540,199 | false | {"Kotlin": 270309} | package com.crowdproj.marketplace.product.group.repo.inmemory
import com.benasher44.uuid.uuid4
import com.crowdproj.marketplace.product.group.common.helpers.errorRepoConcurrency
import com.crowdproj.marketplace.product.group.common.models.PrgrpError
import com.crowdproj.marketplace.product.group.common.models.PrgrpGro... | 0 | Kotlin | 3 | 1 | dd2ee2aa0c4c3e0e3cabcdf3db42fcd8304b093f | 6,542 | crowdproj-product-groups | Apache License 2.0 |
app/src/main/java/com/rudione/tranquilhaven/ui/store/shop/adapters/SpecialProductsAdapter.kt | Rudione | 579,201,331 | false | null | package com.rudione.tranquilhaven.ui.store.shop.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.rudione.... | 0 | Kotlin | 0 | 0 | cc78257603c5a2be7d7fc1a893e418432e399b0f | 2,059 | TranquilHaven | MIT License |
pokechu/app/src/main/java/fr/amazer/pokechu/PokechuApplication.kt | Tarik-B | 572,524,394 | false | {"Kotlin": 188925, "Python": 91692} | package fr.amazer.pokechu
import android.content.Context
import androidx.appcompat.app.AppCompatDelegate
import androidx.preference.PreferenceManager
import com.akexorcist.localizationactivity.ui.LocalizationApplication
import fr.amazer.pokechu.data.*
import fr.amazer.pokechu.database.PokechuDatabase
import fr.amazer.... | 1 | Kotlin | 0 | 1 | 034768c6d702ee55c0faa6d71be8b1f5e555e8ff | 2,770 | pokechu | MIT License |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/system/Loader2Line.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.system
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.Str... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 4,694 | compose-icon-collections | MIT License |
net/craftventure/core/map/renderer/MapTask.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.core.map.renderer
interface MapTask<T : MapEntryRenderer> {
fun isRunning(): Boolean
@Throws(IllegalStateException::class)
fun start(renderer: T)
} | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 186 | open-plugin-parts | MIT License |
tegro-bot/src/main/kotlin/money/tegro/bot/ton/JettonTransfer.kt | TegroTON | 607,921,195 | false | {"Kotlin": 492434, "Java": 37393, "Dockerfile": 341} | package money.tegro.bot.ton
import org.ton.block.Coins
import org.ton.block.Either
import org.ton.block.Maybe
import org.ton.block.MsgAddressInt
import org.ton.cell.Cell
import org.ton.cell.CellBuilder
import org.ton.cell.CellSlice
import org.ton.tlb.*
import org.ton.tlb.constructor.AnyTlbConstructor
import org.ton.tl... | 21 | Kotlin | 4 | 7 | 6e3419f3f4d870a6e7e5703a87d44a009b99e477 | 2,513 | Telegram-Cryptocurrency-Wallet-TON-Kotlin | MIT License |
src/main/kotlin/com/grundleborg/kson/JsonParser.kt | grundleborg | 127,345,270 | false | null | /*
* Copyright 2018 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 1 | Kotlin | 0 | 0 | 163c34033f41a386e89128e6d1c8f01032b0bb05 | 6,534 | kson | Apache License 2.0 |
src/main/kotlin/Day02.kt | Yeah69 | 317,335,309 | false | null | class Day02 : Day() {
override val label: String get() = "02"
private val policyAndPasswordRegex: Regex = """(\d+)-(\d+) (.): (.*)""".toRegex()
private data class PolicyAndPassword (val min: Int, val max: Int, val Char: Char, val password: String)
private val policyAndPasswords by lazy { input
... | 0 | Kotlin | 0 | 0 | 348b07bdedc35091ab92d0fd9922af55f8ab1dab | 1,263 | AdventOfCodeKotlin | The Unlicense |
src/main/kotlin/cn/rtast/fancybot/entity/mc/Skin.kt | RTAkland | 848,208,941 | false | {"Kotlin": 309459} | /*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/2
*/
package cn.rtast.fancybot.entity.mc
import com.google.gson.annotations.SerializedName
data class Skin(
val properties: List<Property>,
) {
data class Property(
val value: String,
)
}
data class DecodedSkin(
val textu... | 0 | Kotlin | 0 | 1 | 7e851e831a471247d06353bf8e4067a9cbb4a1e5 | 478 | FancyBot | Apache License 2.0 |
src/test/kotlin/org/izaguirre/chip8/core/BcTest.kt | ivanizag | 299,099,598 | false | null | package org.izaguirre.chip8.core
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
internal class BcTest {
companion object {
const val ERROR_ADDRESS = 0x310
const val ERROR_REG_10 = 0x3
const val ERROR_REG_1 = 0x4
const val END_ADDRESS = 0x30e
co... | 0 | Kotlin | 0 | 0 | 4838d92d436445e7f7165d275ced68a36cb8b3fa | 1,013 | ktChip8 | MIT License |
MyFirstCleanArchitectureApp/app/src/main/java/com/kks/myfirstcleanarchitectureapp/common/Pageable.kt | kaungkhantsoe | 368,704,246 | false | null | package com.kks.myfirstcleanarchitectureapp.common
/**
* Created by kaungkhantsoe on 5/17/21.
**/
interface Pageable {
} | 0 | Kotlin | 0 | 1 | cdacf61158367d184964521e9bdf11275d7f67f4 | 123 | CleanArchitecture_MVVM_Sample | MIT License |
erc20/core/src/test/kotlin/com/rarible/protocol/erc20/core/repository/TransferHistoryRepositoryIt.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.erc20.core.repository
import com.rarible.core.test.ext.MongoTest
import com.rarible.ethereum.domain.EthUInt256
import com.rarible.ethereum.listener.log.domain.LogEvent
import com.rarible.ethereum.listener.log.domain.LogEventStatus
import com.rarible.protocol.erc20.core.IntegrationTest
impo... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 7,489 | ethereum-indexer | MIT License |
src/test/resources/simple-changelog.kts | redundent | 100,302,975 | true | {"Kotlin": 286601, "Groovy": 878} | import org.liquibase.kotlin.*
databaseChangeLog(logicalFilePath = ".") {
preConditions {
sqlCheck(expectedResult = 1) {
""
}
}
changeSet(id = "1", author = "Jason Blackwell") {
}
} | 0 | Kotlin | 2 | 9 | eea7769d146a6c886e54bacd510b1d2664ccddd3 | 192 | liquibase-kotlin-dsl | Apache License 2.0 |
android/watchface/src/main/java/com/benoitletondor/pixelminimalwatchface/settings/screens/WatchSettingsScreen.kt | benoitletondor | 236,035,670 | false | null | /*
* Copyright 2022 <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 agre... | 13 | Kotlin | 35 | 161 | b52591c3f9f416864935664942f633d8ca71bac8 | 3,401 | PixelMinimalWatchFace | Apache License 2.0 |
app/src/main/java/com/example/noteit/Database/NotesRepository.kt | Catnatsuki | 618,691,669 | false | null | package com.example.noteit.Database
import androidx.lifecycle.LiveData
import com.example.noteit.Models.Note
class NotesRepository(private val noteDao: NoteDao) {
val allNotes : LiveData<List<Note>> = noteDao.getAllNotes()
suspend fun insert(note: Note){
noteDao.insert(note)
}
suspend fun d... | 0 | Kotlin | 0 | 3 | 9dc00e26849cfb04c5dea19d631fd77216747a19 | 471 | Note-It | MIT License |
vk-sdk-api/src/main/java/com/vk/sdk/api/groups/methods/GroupsGetBanned.kt | wesshi-tiktok | 358,352,248 | true | {"Kotlin": 4764291, "Java": 37555} | /**
* The MIT License (MIT)
*
* Copyright (c) 2019 vk.com
*
* 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 | null | 0 | 0 | 32898fa706e4064118ae18327649e89a22fc6070 | 2,887 | vk-android-sdk | MIT License |
src/Day06.kt | er453r | 572,440,270 | false | null | fun main() {
fun findUniqueSequence(haystack: String, sequenceLength: Int): Int {
return sequenceLength + haystack.windowed(sequenceLength).indexOfFirst { it.toSet().size == sequenceLength }
}
fun part1(input: List<String>) = findUniqueSequence(input.first(), 4)
fun part2(input: List<String>) ... | 0 | Kotlin | 0 | 0 | 9f98e24485cd7afda383c273ff2479ec4fa9c6dd | 497 | aoc2022 | Apache License 2.0 |
src/main/kotlin/com/scavi/brainsqueeze/adventofcode/util/FileHelper.kt | Scavi | 68,294,098 | false | {"Java": 1449516, "Kotlin": 59149} | package com.scavi.brainsqueeze.adventofcode.util
import java.io.File
class FileHelper {
companion object {
fun fileForUnitTest(relativePath: String): File {
val path = File(System.getProperty("user.dir"), relativePath)
if (!path.exists()) {
throw IllegalArgumentExce... | 1 | null | 1 | 1 | 79550cb8ce504295f762e9439e806b1acfa057c9 | 1,445 | BrainSqueeze | Apache License 2.0 |
app/src/main/java/ru/tech/papricoin/presentation/ui/utils/Screen.kt | T8RIN | 476,364,479 | false | {"Kotlin": 94271} | package ru.tech.papricoin.presentation.ui.utils
sealed class Screen(val route: String) {
object CoinListScreen : Screen(route = "coin_list")
object CoinDetailsScreen : Screen(route = "coin_details")
object FavoriteCoinsScreen : Screen(route = "favorite_coins")
}
| 0 | Kotlin | 1 | 47 | fd513fb72a7bf56e31d0e96d5dae8f39d4dd84a2 | 276 | PapriCoin | Apache License 2.0 |
visualizer/src/main/kotlin/io/github/ksmirenko/kotlin/visualizer/FunctionFinder.kt | ml-in-programming | 105,779,025 | false | null | package io.github.ksmirenko.kotlin.visualizer
import com.intellij.psi.JavaRecursiveElementVisitor
import com.intellij.psi.PsiElement
import io.github.ksmirenko.kotlin.featureCalc.utils.buildFileBasedSignature
import org.jetbrains.kotlin.psi.KtNamedFunction
class FunctionFinder(
private val shouldPrintToConsol... | 1 | Jupyter Notebook | 1 | 7 | 8a999beafc6222feb715a9bb9ef9fd670d414856 | 1,471 | kotlin-code-anomaly | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.