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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
thelema-kx/src/commonMain/kotlin/org/ksdfv/thelema/g3d/node/TranslationNode.kt | cybernetics | 365,452,918 | true | {"Kotlin": 3356187, "C": 552354, "Java": 355550, "HTML": 6211, "Makefile": 260} | /*
* 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 | null | 0 | 0 | c274a903f0a4d17e5ef14773efa144ee8c8809dd | 1,632 | thelema-engine | Apache License 2.0 |
app/src/main/java/com/ncs/o2/Data/Room/NotificationRepository/NotificationDAO.kt | arpitmx | 647,358,015 | false | null | package com.ncs.o2.Data.Room.NotificationRepository
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.ncs.o2.Domain.Models.Notification
/*
File : NotificationDAO -> com.ncs.o2.Room.Notif... | 3 | null | 2 | 2 | 677ab173afc381aa77862fb19061009e697c117c | 1,109 | Oxygen | Apache License 2.0 |
src/main/kotlin/at/mpichler/aoc/solutions/year2022/Day08.kt | mpichler94 | 656,873,940 | false | null | package at.mpichler.aoc.solutions.year2022
import at.mpichler.aoc.lib.Day
import at.mpichler.aoc.lib.PartSolution
import kotlin.math.max
open class Part8A : PartSolution() {
internal lateinit var wood: Wood
override fun parseInput(text: String) {
val trees = text.trim().split("\n").map { it.toCharArr... | 0 | Kotlin | 0 | 1 | ef20a54e04452175134bfe9fd05fd8e57505730e | 3,442 | advent-of-code-kotlin | MIT License |
net.akehurst.language/agl-processor/src/commonTest/kotlin/thridparty/projectIT/test_MetaTyperLanguage.kt | dhakehurst | 197,245,665 | false | {"Kotlin": 3541898, "ANTLR": 64742, "Rascal": 17698, "Java": 14313, "PEG.js": 6866, "JavaScript": 5287, "BASIC": 22} | /*
* Copyright (C) 2023 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* 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... | 3 | Kotlin | 7 | 45 | 177abcb60c51efcfc2432174f5d6620a7db89928 | 6,892 | net.akehurst.language | Apache License 2.0 |
selvbestemt-lagre-im-service/src/test/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/selvbestemtlagreimservice/LagreSelvbestemtImServiceTest.kt | navikt | 495,713,363 | false | {"Kotlin": 1215265, "PLpgSQL": 153, "Dockerfile": 68} | package no.nav.helsearbeidsgiver.inntektsmelding.selvbestemtlagreimservice
import io.kotest.assertions.fail
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.equality.shouldBeEqualToIgnoringFields
import io.kotest.matchers.ints.shouldBeExactly
import io.kotest.matchers.nulls.shouldNotBeNull
import io.... | 9 | Kotlin | 0 | 2 | f8e33771e305712986eeb7c9d38edfd8d5f24a7b | 23,229 | helsearbeidsgiver-inntektsmelding | MIT License |
app/src/main/java/com/helloappscrmfsm/features/newcollection/model/NewCollectionListResponseModel.kt | DebashisINT | 744,363,248 | false | {"Kotlin": 14015110, "Java": 1003163} | package com.helloappscrmfsm.features.newcollection.model
import com.helloappscrmfsm.app.domain.CollectionDetailsEntity
import com.helloappscrmfsm.base.BaseResponse
import com.helloappscrmfsm.features.shopdetail.presentation.model.collectionlist.CollectionListDataModel
/**
* Created by Saikat on 15-02-2019.
*/
class... | 0 | Kotlin | 0 | 0 | 63ccd9d6d67e2d4ee5afad9d7836396e32b2f953 | 510 | HelloAppsCRM | Apache License 2.0 |
core/src/main/kotlin/com/neqsoft/reso/cpu/Process.kt | neqsoft | 193,400,642 | false | null | package com.neqsoft.reso.cpu
data class Process(
val id: Int = -1,
val timeStamp: Long = -1,
val priority: Int = -1,
val commandPath: String? = null
)
| 7 | Kotlin | 0 | 0 | 677ce1a2091101da71f3a2773196b7f15bd2447a | 184 | reso | Apache License 2.0 |
core/network/src/main/java/com/azuredragon/core/network/httpclient/NetworkTimeoutConfig.kt | bastionkid | 536,519,741 | false | null | package com.azuredragon.core.network.httpclient
class NetworkTimeoutConfig(
val readTimeout: Long = 10,
val connectTimeout: Long = 10,
val writeTimeout: Long = 10,
) | 0 | Kotlin | 0 | 0 | ca22bbdfc1c6e9263d33693f03e1e67d7cef2630 | 178 | android-app-template | Apache License 2.0 |
app/src/main/java/com/mindmap/viewModel/NotesViewModel.kt | Ahamed-Rahman | 871,154,859 | false | {"Kotlin": 48781} | package com.kikunote.viewModel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.kikunote.dao.NoteDao
import com.kikunote.database.NoteRoomDatabase
import com.kikunote.entity.Note
class NotesViewModel(appli... | 0 | Kotlin | 0 | 0 | 0f1b58b228e02c005b407618af58a73155a47299 | 1,443 | MindMap | MIT License |
MVVMSample/base/src/main/java/com/thepreraktrivedi/android/mvvm/foundation/utils/Resource.kt | prerak-trivedi | 134,478,996 | false | {"Kotlin": 28354} | package com.thepreraktrivedi.android.mvvm.foundation.utils
/**
* Inspired by https://developer.android.com/topic/libraries/architecture/guide.html#addendum.
*
* This represents a simple resource from the network that our services will return
* to indicate success or failure.
*/
class Resource<T> private construct... | 0 | Kotlin | 0 | 0 | 70783231dc1fde62983f7c60149c11969ca74175 | 943 | mvvm-sample | MIT License |
src/main/kotlin/one/devos/osuv2kt/models/event/BeatmapsetApproveEvent.kt | devOS-Sanity-Edition | 856,181,413 | false | {"Kotlin": 49164} | package one.devos.osuv2kt.models.event
public data class BeatmapsetApproveEvent(
public val approval: Approval,
public val beatmapset: EventBeatmapset,
public val user: EventUser
)
| 0 | Kotlin | 0 | 0 | ebefb4d6ad7003c46c4e482d8229af8df6552b81 | 194 | osuv2kt | MIT License |
core/src/main/kotlin/de/uulm/se/couchedit/processing/common/modbus/ModificationBusStateCache.kt | sp-uulm | 303,650,849 | false | null | package de.uulm.se.couchedit.processing.common.modbus
import de.uulm.se.couchedit.processing.common.controller.ModificationPort
import de.uulm.se.couchedit.processing.common.model.diffcollection.TimedDiffCollection
import io.reactivex.Flowable
import io.reactivex.Observable
import io.reactivex.Observer
/**
* Caches ... | 0 | Kotlin | 0 | 0 | 595266c0bca8f2ee6ff633c4b45b91e5f3132cc4 | 1,439 | CouchEdit | Apache License 2.0 |
jdroid-android-sample/src/main/java/com/jdroid/android/sample/ui/google/admob/ActivityBannerFragment.kt | petsnarua | 258,267,623 | true | {"Kotlin": 742915, "Java": 383189, "HTML": 3936, "Shell": 2559, "JavaScript": 564} | package com.jdroid.android.sample.ui.google.admob
import com.jdroid.android.fragment.AbstractFragment
import com.jdroid.android.sample.R
class ActivityBannerFragment : AbstractFragment() {
override fun getContentFragmentLayout(): Int? {
return R.layout.empty_fragment
}
}
| 0 | null | 0 | 0 | 8b4d1654fdabe6d2e13487f8045a83b2e6e0e5fe | 291 | jdroid-android | Apache License 2.0 |
lib/ui-compose/src/main/java/se/gustavkarlsson/skylight/android/lib/ui/compose/Banner.kt | gustavkarlsson | 128,669,768 | false | null | package se.gustavkarlsson.skylight.android.lib.ui.compose
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.Spacer
import andro... | 0 | Kotlin | 3 | 6 | c3b1b53a73a1de97ad0e6e9645ddae1df5815800 | 1,951 | skylight-android | MIT License |
core/src/main/kotlin/gropius/dto/input/issue/CreateIssueRelationInput.kt | ccims | 487,996,394 | false | {"Kotlin": 1063836, "TypeScript": 442524, "MDX": 61402, "JavaScript": 25165, "HTML": 17174, "CSS": 4796, "Shell": 2363} | package gropius.dto.input.issue
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
import com.expediagroup.graphql.generator.scalars.ID
import gropius.dto.input.common.Input
@GraphQLDescription("Input for the createIssueRelation mutation")
class CreateIssueRelationInput(
@GraphQLDescription(... | 5 | Kotlin | 1 | 0 | bb12f96a6fd775199f72fc259b9c3747974a6608 | 654 | gropius-backend | MIT License |
app/src/main/java/com/example/floplayer/MainActivity.kt | FlowerHop | 458,470,565 | false | {"Kotlin": 20221} | package com.example.floplayer
import android.Manifest
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.IBinder
import android.util.Log
import and... | 0 | Kotlin | 0 | 0 | 5b0b74a207cf7847418afcc7c608883e61d85d3d | 3,473 | FloPlayer | Apache License 2.0 |
src/reserved/kotlin/icu/windea/pls/util/ParadoxModPackager.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package com.windea.plugin.idea.paradox.tool
import com.intellij.util.io.*
import java.io.*
import java.util.concurrent.*
import java.util.concurrent.atomic.*
import java.util.zip.*
import kotlin.system.*
object ModPackager {
private const val defaultPackageName = "mod.zip"
/**
* 将指定的mod列表目录中的所有mod目录中的文件打包到该mod目... | 12 | null | 5 | 7 | 037b9b4ba467ed49ea221b99efb0a26cd630bb67 | 2,943 | Paradox-Language-Support | MIT License |
core/src/main/java/com/codeabovelab/tpc/core/processor/Label.kt | codeabovelab | 159,236,130 | false | {"Gradle": 7, "YAML": 5, "Shell": 1, "Text": 4, "Ignore List": 1, "Batchfile": 1, "Markdown": 5, "Kotlin": 153, "Java Properties": 1, "Java": 2, "XML": 1} | package com.codeabovelab.tpc.core.processor
import com.codeabovelab.tpc.util.compare
import com.codeabovelab.tpc.util.thenCompare
/**
*/
data class Label(
val label: String,
val similarity: Double
): Comparable<Label> {
override fun compareTo(other: Label): Int {
return compare(this.similarity, o... | 0 | Kotlin | 0 | 0 | ee62aeecc62baefabd6085ad659e6cf5a1b237ff | 395 | text-compliance | Apache License 2.0 |
lib/src/main/java/com/flexcode/multiselectcalendar/utils/addOrRemoveIfExists.kt | Felix-Kariuki | 708,437,440 | false | {"Kotlin": 49763} | package com.flexcode.multiselectcalendar.utils
import android.os.Build
import java.time.DayOfWeek
import java.time.LocalDate
internal fun Collection<LocalDate>.addOrRemoveIfExists(date: LocalDate) = if (contains(date)) {
this - date
} else {
this + date
}
internal infix fun DayOfWeek.daysUntil(other: DayOfWe... | 0 | Kotlin | 0 | 2 | 7a63ab758bfd31aaae67933e8566ed5363a113c8 | 475 | MultiSelectCalendar | Apache License 2.0 |
app/src/main/java/zlc/season/desolatordemo/MainActivity.kt | ssseasonnn | 452,103,441 | false | null | package zlc.season.desolatordemo
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import zlc.season.desolator.Desolator
import zlc.season.desolator.PluginData
import zlc.season.desolatordemo.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
val binding by lazy { A... | 0 | Kotlin | 0 | 2 | dae89c9d27b80f25e2a283482571c6d69b7b86ac | 1,229 | Desolator | Apache License 2.0 |
src/_13coroutines/main.kt | Ladicek | 16,640,929 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Kotlin": 21, "Java": 3} | package _13coroutines
import kotlinx.coroutines.*
suspend fun waitAndSee(i: Int) {
delay(5000)
println("Hello, world! $i")
}
suspend fun deepThought() = coroutineScope {
async {
delay(1000)
42
}
}
fun main() = runBlocking {
val answer = deepThought()
for (i in 1..100_000) {
... | 1 | null | 1 | 1 | 9a89e01f88dd8b0170fe92200acd7b66bb63f3d2 | 458 | kotlin-talk-examples | Apache License 2.0 |
app/src/main/java/kr/co/treegames/tagfeed/data/source/repository/AccountRepository.kt | rlaejdwls | 205,060,921 | false | null | package kr.co.treegames.tagfeed.data.source.repository
import kr.co.treegames.tagfeed.data.model.Account
import kr.co.treegames.tagfeed.data.model.User
import kr.co.treegames.tagfeed.data.source.AccountDataSource
import kr.co.treegames.tagfeed.data.source.remote.AccountRemoteDataSource
/**
* Created by Hwang on 2018... | 0 | Kotlin | 0 | 0 | e7d9433e4ab8b230da4c468395ed3909474ad0c6 | 1,185 | Tagfeed | The Unlicense |
sample-rabbit/src/test/kotlin/com/github/lemfi/kest/samplerabbit/TestReadWrite.kt | lemfi | 316,065,076 | false | null | package com.github.lemfi.kest.samplerabbit
import com.github.lemfi.kest.core.cli.`assert that`
import com.github.lemfi.kest.core.cli.eq
import com.github.lemfi.kest.core.model.`by intervals of`
import com.github.lemfi.kest.core.model.ms
import com.github.lemfi.kest.core.model.seconds
import com.github.lemfi.kest.core.... | 3 | Kotlin | 0 | 5 | 0a0fd0ab2fa69475a11ed91a4ce743a276e30742 | 3,575 | kest | Apache License 2.0 |
src/main/java/com/github/kornilova_l/flamegraph/plugin/server/converters/file_to_call_traces/yourkit_csv/Converter.kt | Raynos | 131,701,440 | false | null | package com.github.kornilova_l.flamegraph.plugin.server.converters.calltraces.yourkit.csv
import com.github.kornilova_l.flamegraph.plugin.server.converters.calltraces.FileToCallTracesConverterBase
import com.github.kornilova_l.flamegraph.plugin.server.trees.util.TreesUtil
import com.github.kornilova_l.flamegraph.plugi... | 1 | null | 1 | 1 | 41bc10bd85f600dc5061d4aaa051f2f813ad887d | 4,914 | flamegraph-visualizer | MIT License |
src/main/kotlin/herbaccara/toss/payments/model/submall/Payout.kt | herbaccara | 605,863,825 | false | null | package herbaccara.toss.payments.model.submall
import com.fasterxml.jackson.annotation.JsonFormat
import herbaccara.toss.payments.model.Failure
import java.time.LocalDate
import java.time.LocalDateTime
data class Payout(
val payoutKey: String,
val requestId: String? = null,
val subMallId: String,
@fi... | 0 | Kotlin | 0 | 1 | de11b9e2cc0a8d8e109e8c29168a10691625b05d | 681 | spring-boot-starter-toss-payments | MIT License |
shared/src/commonMain/kotlin/com/multiplatform/kmmcc/common/Constants.kt | shahrozekhan | 735,403,154 | false | {"Kotlin": 109638, "Ruby": 2612, "Swift": 602} | package com.multiplatform.kmmcc.common
object Constants {
object ExhangeRateParams {
const val ACCESS_KEY = "access_key"
}
object ExchangeRateConstants{
const val DEFAULT_CURRENCY = "EUR"
const val DEFAULT_CURRENCY_NAME = "Euro"
const val DEFAULT_CURRENCY_RATE = 1.0
}
... | 0 | Kotlin | 2 | 7 | 752550778dcd971a9d1a61dec9e57480c994dc99 | 352 | KMPCurrencyConvertor | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonperson/service/ReferenceDataCodeServiceTest.kt | ministryofjustice | 805,355,441 | false | {"Kotlin": 402602, "Dockerfile": 1365} | package uk.gov.justice.digital.hmpps.prisonperson.service
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.I... | 2 | Kotlin | 0 | 1 | b6243b3cc37f12bfb2499ce35e4ff01ab9c86bbb | 3,725 | hmpps-prison-person-api | MIT License |
app/app-todo/src/main/kotlin/community/flock/demo/app/todo/TodoConfiguration.kt | jerrevanveluw | 197,761,627 | false | {"YAML": 2, "SQL": 3, "Shell": 2, "Ignore List": 15, "Dockerfile": 5, "Text": 2, "Makefile": 1, "Markdown": 6, "Maven POM": 11, "GraphQL": 3, "Kotlin": 63, "INI": 8, "JSON with Comments": 2, "JSON": 6, "HTML": 5, "robots.txt": 1, "SVG": 1, "TSX": 8, "CSS": 2, "JavaScript": 20, "EditorConfig": 1, "MDX": 3, "Java": 4} | package community.flock.demo.app.todo
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.PropertySource
@Configuration
@ComponentScan(basePackages = ["community.flock.demo.app.todo.pipe"])
@PropertySourc... | 11 | Kotlin | 0 | 0 | feacd25e745a916f6cd113ec9c55c01c6c57c247 | 375 | system-demo | MIT License |
packages/cinterop/src/androidInstrumentedTest/kotlin/io/realm/kotlin/test/sync/SyncEnumTests.kt | realm | 235,075,339 | false | null | /*
* Copyright 2022 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 242 | null | 57 | 942 | df49eefacba8f57653e232203f44003643468463 | 5,453 | realm-kotlin | Apache License 2.0 |
app/src/main/kotlin/de/digitalService/useID/ui/components/pin/PinDigitRow.kt | digitalservicebund | 486,188,046 | false | null | package de.digitalService.useID.ui.components.pin
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compo... | 2 | null | 2 | 5 | bfb1bea70b827563f80ff9828439de37197a431f | 2,356 | useid-app-android | MIT License |
riistaandroid/src/test/java/fi/riista/mobile/test/MockUtils.kt | suomenriistakeskus | 78,840,058 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 2, "Text": 4, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 4, "Gradle Kotlin DSL": 1, "Kotlin": 1344, "XML": 401, "Java": 161, "Protocol Buffer": 1, "JSON": 1} | package fi.riista.mobile.test
import android.location.Location
import org.mockito.Mockito.`when`
import org.mockito.Mockito.mock
object MockUtils {
@JvmStatic
fun mockLocation(lat: Double, lng: Double): Location {
val location = mock(Location::class.java)
`when`(location.latitude).thenReturn(... | 0 | Kotlin | 0 | 3 | 23645d1abe61c68d649b6d0ca1d16556aa8ffa16 | 408 | oma-riista-android | MIT License |
common/src/main/kotlin/net/spaceeye/vmod/utils/SafeEventEmitter.kt | SuperSpaceEye | 751,999,893 | false | {"Kotlin": 646100, "Java": 15286} | package net.spaceeye.vmod.utils
import java.util.concurrent.ConcurrentHashMap
class SafeEventEmitter<T> {
val events = ConcurrentHashMap.newKeySet<(data: T, unsubscribe: () -> Unit) -> Unit>()
fun on(fn: (data: T, unsubscribe: () -> Unit) -> Unit) {
events.add(fn)
}
fun emit(data: T) = synch... | 1 | Kotlin | 7 | 5 | a11a858a5a1226b734ca24142a727e301cc55c9a | 693 | VMod | MIT License |
common/src/main/kotlin/net/spaceeye/vmod/utils/SafeEventEmitter.kt | SuperSpaceEye | 751,999,893 | false | {"Kotlin": 646100, "Java": 15286} | package net.spaceeye.vmod.utils
import java.util.concurrent.ConcurrentHashMap
class SafeEventEmitter<T> {
val events = ConcurrentHashMap.newKeySet<(data: T, unsubscribe: () -> Unit) -> Unit>()
fun on(fn: (data: T, unsubscribe: () -> Unit) -> Unit) {
events.add(fn)
}
fun emit(data: T) = synch... | 1 | Kotlin | 7 | 5 | a11a858a5a1226b734ca24142a727e301cc55c9a | 693 | VMod | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/incidentreporting/dto/response/TypeConstantDescription.kt | ministryofjustice | 725,638,590 | false | {"Kotlin": 534764, "Dockerfile": 1371} | package uk.gov.justice.digital.hmpps.incidentreporting.dto.response
import com.fasterxml.jackson.annotation.JsonInclude
import io.swagger.v3.oas.annotations.media.Schema
@Schema(description = "Incident type constant", accessMode = Schema.AccessMode.READ_ONLY)
@JsonInclude(JsonInclude.Include.ALWAYS)
data class TypeCo... | 2 | Kotlin | 0 | 0 | 9c7bc19ef7a3d9d8cffdb6e81dd4006ac50e4af8 | 1,022 | hmpps-incident-reporting-api | MIT License |
aws/src/main/kotlin/com/lloydramey/cfn/model/aws/applicationautoscaling/StepScalingPolicyConfiguration.kt | lnr0626 | 81,515,031 | false | null | /*
* Copyright 2017 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 0 | Kotlin | 0 | 1 | e383e32debc24800fc2ac6dadfe8210895722602 | 1,071 | cfn-templates | Apache License 2.0 |
src/test/kotlin/no/nav/familie/ef/sak/infrastruktur/config/FamilieDokumentClientMock.kt | navikt | 206,805,010 | false | {"Kotlin": 3753233, "Gherkin": 163948, "Dockerfile": 180} | package no.nav.familie.ef.sak.infrastruktur.config
import io.mockk.every
import io.mockk.mockk
import no.nav.familie.ef.sak.brev.FamilieDokumentClient
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Primary
imp... | 7 | Kotlin | 2 | 0 | 99225c88abc1cd121ade95b478604a8ace332e85 | 817 | familie-ef-sak | MIT License |
core/src/main/java/com/wassim/showcase/core/utils/SafeApiCallHelper.kt | WassimBenltaief | 275,135,668 | false | null | package com.wassim.showcase.utils
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
/**
* Wrap a suspending API [call] in a try/catch.
* returns either a [Result.Success] or [Result.Error].
*/
suspend fun <T : Any> safeApiCall(
dispatcher: CoroutineDispatcher,
call: suspen... | 0 | Kotlin | 0 | 0 | 91a8a266bdc8578e56d7514a70270bd1ad02836a | 510 | albums | Apache License 2.0 |
core/src/main/kotlin/dev/minutest/Node.kt | dmcg | 148,457,652 | false | null | package dev.minutest
import dev.minutest.internal.translatingAssumptions
/**
* [Node]s form a tree of [Context]s and [Test]s.
*
* [F] is the type of the fixture that will be supplied *to* the node.
*/
sealed class Node<F> {
abstract val name: String
internal abstract val markers: List<Any>
// The id ... | 4 | Kotlin | 10 | 99 | 75a969ff708d1b17bdb8778e7c68c07d3386629f | 1,766 | minutest | Apache License 2.0 |
app/src/main/java/com/fredhappyface/ewesticker/adapter/StickerPackAdapter.kt | FredHappyface | 376,077,568 | false | {"Kotlin": 43201} | package com.fredhappyface.ewesticker.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import coil.load
import com.fredhappyface.ewesticker.R
import com.fredhappyface.ewesticker.utilities.StickerClickListener
import com.fredhappyface.ewesticker.vi... | 2 | Kotlin | 6 | 49 | 22e2238f7ba76dc351215a293435473771c3a64c | 1,447 | Android.EweSticker | MIT License |
good-practices/SOLID-using-Kotlin/src/interface_segregation/fixed/VideoPlayer.kt | arturschaefer | 427,090,600 | false | {"C": 48055, "Kotlin": 24446, "C++": 16696, "Dart": 3630, "QMake": 168} | package interface_segregation.fixed
interface VideoPlayer: Player {
fun startVideo()
} | 0 | C | 0 | 0 | 04c34298739cab13b5cd755b4c6786fc1fe236cd | 91 | computer-science-studies | Apache License 2.0 |
circuit-retained/src/jvmMain/kotlin/com/slack/circuit/retained/CanRetainChecker.jvm.kt | slackhq | 523,011,227 | false | null | // Copyright (C) 2022 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package com.slack.circuit.retained
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
/** No-op on the JVM! */
@Composable
internal actual fun rememberCanRetainChecker(): () -> Boolean {
return reme... | 28 | Kotlin | 33 | 938 | f2675bd0ded86b2970f3f9f2ce306ce075998435 | 341 | circuit | Apache License 2.0 |
backend/src/main/kotlin/com/olafros/live/model/Fixture.kt | olros | 324,783,973 | false | {"TypeScript": 116209, "Kotlin": 89944, "Makefile": 227, "Dockerfile": 156} | package com.olafros.live.model
import com.fasterxml.jackson.annotation.JsonBackReference
import com.fasterxml.jackson.annotation.JsonManagedReference
import org.springframework.security.authentication.AnonymousAuthenticationToken
import org.springframework.security.core.context.SecurityContextHolder
import java.time.O... | 0 | TypeScript | 0 | 0 | f836e3a92a75d2adff111e56c68584ddd49af20a | 3,934 | Live | MIT License |
src/test/kotlin/dev/arli/openapi/generator/RequestBodyJsonGeneratorTest.kt | alipovatyi | 487,519,792 | false | {"Kotlin": 451322} | package dev.arli.openapi.generator
import com.google.common.truth.Truth.assertThat
import dev.arli.openapi.model.MediaType
import dev.arli.openapi.model.MediaTypeObject
import dev.arli.openapi.model.RequestBodyObject
import dev.arli.openapi.model.SchemaObject
import dev.arli.openapi.model.property.DataType
import dev.... | 0 | Kotlin | 1 | 1 | 3637b43dc2e255f263b559a5a80ebf80f3e78d96 | 4,655 | ktor-openapi | Apache License 2.0 |
app/src/main/java/com/dreamsoftware/vaultkeeper/domain/usecase/GetCardByIdUseCase.kt | sergio11 | 792,732,251 | false | {"Kotlin": 448412, "CMake": 1838, "C++": 630} | package com.dreamsoftware.vaultkeeper.domain.usecase
import com.dreamsoftware.brownie.core.BrownieUseCaseWithParams
import com.dreamsoftware.vaultkeeper.domain.model.SecureCardBO
import com.dreamsoftware.vaultkeeper.domain.repository.IPreferenceRepository
import com.dreamsoftware.vaultkeeper.domain.repository.ISecureC... | 0 | Kotlin | 0 | 1 | f2090421603dfe09df2772b32b91690cb35afe56 | 790 | vault_keeper_android | MIT License |
compiler/testData/codegen/box/ranges/forInUntil/forInUntilChar.kt | JakeWharton | 99,388,807 | true | null | // WITH_STDLIB
import kotlin.test.assertEquals
fun box(): String {
testChar()
testNullableChar()
return "OK"
}
private fun testChar() {
var sum = ""
for (ch in '1' until '5') {
sum = sum + ch
}
assertEquals("1234", sum)
}
private fun testNullableChar() {
var sum = ""
for ... | 181 | Kotlin | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 423 | kotlin | Apache License 2.0 |
ultravox_client/src/main/java/ai/ultravox/UltravoxSession.kt | fixie-ai | 847,847,042 | false | {"Kotlin": 20971} | package ai.ultravox
import android.content.Context
import android.os.Build
import android.util.Log
import io.livekit.android.LiveKit
import io.livekit.android.events.RoomEvent
import io.livekit.android.events.collect
import io.livekit.android.room.Room
import kotlinx.collections.immutable.toImmutableList
import kotlin... | 0 | Kotlin | 0 | 0 | 59e46c60efd8d74489555b89d6c662edcb1b5014 | 14,107 | ultravox-client-sdk-android | Apache License 2.0 |
app/src/androidTest/java/com/example/amphibians/InstrumentationTests.kt | D-xan | 567,060,796 | false | {"Kotlin": 13935} |
package com.example.amphibians
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.test.core.app.launchActivity
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplaye... | 0 | Kotlin | 0 | 0 | 6695269f088b4b35096cecd796580546b8c9718b | 1,566 | Amphibians | Apache License 2.0 |
compiler/testData/diagnostics/tests/inference/kt28654.kt | BradOselo | 367,097,840 | false | null | // !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_VARIABLE
// Related issue: KT-28654
fun <K> select(): K = <!TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH{OI}, TYPE_MISMATCH{NI}!>run <!TYPE_MISMATCH{NI}!>{ <!TYPE_MISMATCH{OI}!><!>}<!><!>
fun test() {
val x: Int = select()
val t = <!NEW_INFERENCE_NO_INFORMATION_FOR_PAR... | 1 | null | 1 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 395 | kotlin | Apache License 2.0 |
nanoha/src/main/kotlin/com/kotcrab/fate/nanoha/NanohaPaths.kt | RikuNoctis | 165,883,449 | false | null | /*
* Copyright 2017-2018 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | Kotlin | 0 | 1 | 04d0a219269e17c97cca54f71ae11e348c9fb070 | 1,298 | fate-explorer | Apache License 2.0 |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/quickfix/ReorderParametersFix.kt | xGreat | 182,651,778 | false | {"Text": 7190, "INI": 570, "YAML": 416, "Ant Build System": 10, "Batchfile": 28, "Shell": 616, "Markdown": 680, "Ignore List": 125, "Git Revision List": 1, "Git Attributes": 10, "EditorConfig": 244, "XML": 7188, "SVG": 3739, "Kotlin": 48905, "Java": 80666, "HTML": 3312, "Java Properties": 214, "Gradle": 419, "Maven POM... | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.quickfix
import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.openapi.actionSystem.ex.ActionUtil
import com.intellij.openapi.editor.Editor
... | 1 | null | 1 | 1 | fb5f23167ce9cc53bfa3ee054b445cf4d8f1ce98 | 5,076 | intellij-community | Apache License 2.0 |
core/ui/src/main/java/com/mcgrady/xproject/core/ui/progressview/animation/DefaultAnimationOrchestrator.kt | mcgrady911 | 208,754,271 | false | null | /*
* Copyright 2022 mcgrady
*
* 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 | null | 1 | 1 | 8120d889c9cc471870cfef6fe553ca1585c6f9c7 | 3,051 | xskeleton | Apache License 2.0 |
app/src/main/java/com/jadynai/kotlindiary/mvredux/ReduxKotlinActivity.kt | JadynAi | 136,196,478 | false | null | package com.jadynai.kotlindiary.mvredux
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.jadyn.ai.kotlind.function.ui.click
import com.jadynai.kotlindiary.R
import kotlinx.android.synthetic.main.activity_redux.*
import org.reduxkotlin.Reducer
import org.reduxkotlin.createStore
import... | 0 | Kotlin | 6 | 17 | 9c5efa0da4346d9f3712333ca02356fa4616a904 | 1,246 | Kotlin-D | Apache License 2.0 |
dispatch-detekt/src/main/java/dispatch/detekt/rules/AndroidXLifecycleScope.kt | RBusarow | 206,223,913 | false | null | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 27 | null | 6 | 136 | 4b231ef18802c064375eee7a58326f8283794dcd | 2,991 | Dispatch | Apache License 2.0 |
PermissionProxy/src/main/java/com/shuaijie/permissionproxy/permissionRequest/V4PermissionRequest.kt | ShuaiJieJiao | 187,758,772 | false | null | package com.shuaijie.permissionproxy.permissionRequest
import android.content.pm.PackageManager
import android.os.Build
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import com.shuaijie.permissionproxy.PermissionProxyInterface
import com.shuaijie.permissionproxy.PermissionProxy... | 0 | Kotlin | 0 | 2 | e79159d9910f250ed9cdd7070e274f92ce52a2ad | 3,954 | PermissionApply | Apache License 2.0 |
utilcode/pkg/src/main/java/com/blankj/utilcode/pkg/feature/app/AppActivity.kt | zhumengke | 166,954,413 | false | null | package com.blankj.utilcode.pkg.feature.app
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.blankj.lib.base.BaseBackActivity
import com.blankj.utilcode.pkg.Config
import com.blankj.utilcode.pkg.R
import com.blankj.utilcode.pkg.helper.PermissionH... | 0 | null | 0 | 1 | cb6283cb847762c2c19723d60d5c84f81bcc4a9b | 5,333 | AndroidUtilCode | Apache License 2.0 |
Android/voiceroomkit/src/main/java/com/netease/yunxin/kit/voiceroomkit/impl/model/VoiceRoomInfo.kt | netease-kit | 291,626,681 | false | null | /*
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
package com.netease.yunxin.kit.voiceroomkit.impl.model
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
import java.io.Seria... | 1 | null | 32 | 76 | ce97861a91f6524d393688d847c6ee334ccd374b | 663 | NEChatroom | MIT License |
packages/kotlin/src/main/kotlin/org/openapitools/client/models/MetadataPage.kt | symbol-blockchain-community | 766,145,378 | false | {"JSON": 7, "Text": 3, "Ignore List": 7, "Shell": 9, "Markdown": 1850, "OASv3-yaml": 4, "Go": 284, "Go Checksums": 1, "YAML": 11, "Go Module": 1, "Gradle": 4, "Scala": 1, "Maven POM": 1, "INI": 5, "Batchfile": 2, "Java": 544, "XML": 3, "Swift": 276, "Ruby": 1, "Microsoft Visual Studio Solution": 1, "C#": 543, "Kotlin":... | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import o... | 0 | Java | 0 | 0 | f7862757c30b452766f10ca7e161f715edaa5016 | 781 | symbol-rest-client | MIT License |
components/src/main/kotlin/com/exyui/android/debugbottle/components/okhttp/LoggingInterceptor3.kt | kiruto | 66,073,375 | false | null | package com.exyui.android.debugbottle.components.okhttp
import android.util.Log
import com.exyui.android.debugbottle.components.DTSettings
import okhttp3.*
import okio.Buffer
import java.io.IOException
/**
* Created by yuriel on 11/14/16.
*/
internal class LoggingInterceptor3 : Interceptor {
override fun interc... | 5 | null | 91 | 853 | 0e307fefedeba01e355f40def5b16611cca6abde | 3,632 | debug-bottle | Apache License 2.0 |
platform/platform-impl/src/com/intellij/platform/ide/impl/customization/BaseJetBrainsExternalProductResourceUrls.kt | jlauridsen | 149,529,111 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.platform.ide.impl.customization
import com.intellij.openapi.application.ApplicationInfo
import com.intellij.openapi.updateSettings.impl.PatchInfo
import com.intellij.openapi.upd... | 1 | null | 1 | 1 | 1e51e91f3a31729149d31672e78d812c2f9a1957 | 4,289 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/room/RoomFragment.kt | orient33 | 163,295,059 | false | {"Kotlin": 249179, "Java": 231810} | package com.example.room
import android.content.Context
import android.os.AsyncTask
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.Li... | 0 | Kotlin | 0 | 1 | 5ffdc7610045e6c0e23479585e03c473f95b8ca9 | 2,566 | demoKotlin | Apache License 2.0 |
app/src/main/java/de/dhelleberg/spotifykidsplayer/ui/play/PlayFragment.kt | hovisto | 788,609,462 | true | {"Java Properties": 2, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Proguard": 1, "Kotlin": 14, "Java": 1} | package de.dhelleberg.spotifykidsplayer.ui.play
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import com.spotify.protocol.types.ImageUri
import com.spoti... | 0 | null | 0 | 0 | 6f2f860fcc54f260c1063d0a376073a6cdaddcbb | 3,002 | spotify-kids-player | Apache License 2.0 |
app/src/main/java/io/tokend/template/features/urlconfig/logic/UpdateUrlConfigFromScannedUseCase.kt | tokend | 153,459,333 | false | null | package io.tokend.template.features.urlconfig.logic
import io.reactivex.Completable
import io.reactivex.Single
import io.tokend.template.extensions.tryOrNull
import io.tokend.template.features.urlconfig.model.InvalidUrlConfigSourceException
import io.tokend.template.features.urlconfig.model.UrlConfig
import io.tokend.... | 1 | null | 9 | 24 | e24d98599fa02ded440ebfdeef05190553574703 | 1,983 | android-client | Apache License 2.0 |
app/src/main/java/com/webaddicted/imagepickercompressor/view/imgpicker/ImagePickerActivity.kt | webaddicted | 145,557,043 | false | {"Kotlin": 84832} | package com.webaddicted.imagepickercompressor.view.imgpicker
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.view.View
import androidx.databinding.ViewDataBinding
import com.webaddicted.imagepickercompressor.R
import com.webaddicted.imagepickercompressor.databind... | 1 | Kotlin | 1 | 8 | 4ae43de81614af09f37e79773a79bc9d43a32618 | 2,945 | ImagePickerCompressor | Apache License 2.0 |
idea/testData/refactoring/extractFunction/duplicates/singleExpression.kt | JakeWharton | 99,388,807 | false | null | // PARAM_TYPES: kotlin.Int
// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: value-parameter a: kotlin.Int defined in foo
// PARAM_DESCRIPTOR: value-parameter b: kotlin.Int defined in foo
// SIBLING:
fun foo(a: Int, b: Int): Int {
return <selection>a + b*a</selection> + 1
}
fun bar() {
fun f() = 1
val a = ... | 284 | null | 5162 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 468 | kotlin | Apache License 2.0 |
dialogresources/src/main/kotlin/base/dialogresources/domain/extensions/DialogExtensions.kt | icarohs7 | 195,282,763 | false | {"Git Config": 1, "Python": 4, "Gradle Kotlin DSL": 35, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "XML": 274, "Batchfile": 1, "Markdown": 1, "Kotlin": 199, "Java": 1, "INI": 1, "Proguard": 2, "YAML": 1} | package base.dialogresources.domain.extensions
import android.app.Dialog
import base.dialogresources.presentation.dialogs.BaseFullscreenMaterialDialog
import base.dialogresources.presentation.dialogs.BaseMaterialDialog
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.... | 1 | null | 1 | 1 | 03a6c01262a4e7bb99eaf73fff8215220a9d1e7a | 1,237 | unox-android-resmodules | MIT License |
src/main/kotlin/org/rust/ide/structure/RustImplTreeElement.kt | seeekr | 59,655,019 | true | {"Git Config": 1, "Gradle": 3, "Markdown": 8, "Java Properties": 2, "Shell": 1, "Text": 68, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "YAML": 1, "Rust": 290, "XML": 30, "HTML": 8, "RenderScript": 1, "TOML": 5, "Kotlin": 246, "Java": 1, "JFlex": 1} | package org.rust.ide.structure
import com.intellij.ide.structureView.StructureViewTreeElement
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase
import org.rust.lang.core.psi.RustImplItem
import org.rust.lang.core.psi.RustImplMethodMember
import org.rust.lang.core.psi.RustType
import org.rust.lang.co... | 0 | Kotlin | 0 | 0 | f475ed62a35ae471d7d7ebbcd82baea27e9a59a9 | 1,068 | intellij-rust | MIT License |
app/src/main/java/app/krunal3kapadiya/mlglossary/base/SharedPrefsProvider.kt | krunal3kapadiya | 179,922,645 | false | null | package app.krunal3kapadiya.mlglossary.base
/*
* Copyright (c) 2018. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel a... | 1 | null | 2 | 2 | 2c87912363df919d931cb7852f98d765c222f579 | 4,150 | ML-Glossary | Apache License 2.0 |
cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/Holder.kt | Fraunhofer-AISEC | 225,386,107 | false | null | /*
* Copyright (c) 2023, Fraunhofer AISEC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 85 | null | 62 | 281 | 4b2d95b66ccd87ac7e97e1f23ace67265a533ab8 | 1,780 | cpg | Apache License 2.0 |
compiler/tests-common/org/jetbrains/kotlin/codegen/AbstractDumpDeclarationsTest.kt | AlexeyTsvetkov | 17,321,988 | false | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | null | 0 | 2 | 72a84083fbe50d3d12226925b94ed0fe86c9d794 | 2,890 | kotlin | Apache License 2.0 |
.kotlin_alpha/services/opensearch/src/main/kotlin/com/example/search/UpdateDomain.kt | awsdocs | 66,023,605 | false | null | //snippet-sourcedescription:[UpdateDomain.kt demonstrates how modify a cluster configuration of the specified domain.]
//snippet-keyword:[AWS SDK for Kotlin]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon OpenSearch Service]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[10/26/2021]
//snippet-sour... | 24 | null | 3179 | 4,473 | d52f77aafcaee1ab0b5d13005e4a029d53afd2a0 | 2,115 | aws-doc-sdk-examples | Apache License 2.0 |
samples/server/petstore/kotlin-server/javalin-6/src/main/kotlin/org/openapitools/server/Main.kt | OpenAPITools | 133,134,007 | false | null | package org.openapitools.server
import io.javalin.Javalin
import io.javalin.apibuilder.ApiBuilder.*
import org.openapitools.server.apis.PetApi
import org.openapitools.server.apis.PetApiServiceImpl
import org.openapitools.server.apis.StoreApi
import org.openapitools.server.apis.StoreApiServiceImpl
import org.openapito... | 4,939 | null | 6547 | 21,692 | 30ff0d7ca9c01cc6bea7e9b0914493223645956f | 2,121 | openapi-generator | Apache License 2.0 |
ontrack-ui-graphql/src/main/java/net/nemerosa/ontrack/graphql/schema/GQLTypeValidationRun.kt | nemerosa | 19,351,480 | false | {"Kotlin": 9333894, "JavaScript": 3071568, "Java": 1043391, "HTML": 507221, "Groovy": 372843, "CSS": 137546, "Less": 35335, "Dockerfile": 6298, "Shell": 5086} | package net.nemerosa.ontrack.graphql.schema
import graphql.Scalars.GraphQLInt
import graphql.schema.GraphQLNonNull
import graphql.schema.GraphQLObjectType
import graphql.schema.GraphQLObjectType.newObject
import graphql.schema.GraphQLTypeReference
import net.nemerosa.ontrack.graphql.schema.authorizations.GQLInterfaceA... | 48 | Kotlin | 26 | 96 | 759f17484c9b507204e5a89524e07df871697e74 | 5,423 | ontrack | MIT License |
app/src/main/java/com/enecuum/app/App.kt | Enecuum | 334,141,314 | false | null | package com.enecuum.app
import android.content.Context
import android.content.ContextWrapper
import androidx.multidex.MultiDex
import androidx.multidex.MultiDexApplication
import com.enecuum.app.di.networkModule
import com.enecuum.app.di.appModule
import com.enecuum.lib.api.main.Api
import com.enecuum.lib.api.main.Api... | 0 | Kotlin | 1 | 0 | f684608e30373068d7d94566606c5c4530f184f1 | 1,039 | android-slim-app | MIT License |
ospf-kotlin-utils/src/main/fuookami/ospf/kotlin/utils/multi_array/Shape.kt | fuookami | 359,831,793 | false | {"Kotlin": 1433872, "Vue": 46326, "Rust": 23739, "Python": 6611, "JavaScript": 5100, "HTML": 1369, "CSS": 1302} | package fuookami.ospf.kotlin.utils.multi_array
class DimensionMismatchingException(
val dimension: Int,
val vectorDimension: Int
) : Throwable() {
override val message: String = "Dimension should be $dimension, not $vectorDimension."
}
class OutOfShapeException(
val dimension: Int,
val length: Int... | 0 | Kotlin | 0 | 1 | fdeeb1e4bf3bd4ec486beb69840f881123a2a628 | 8,200 | ospf-kotlin | Apache License 2.0 |
net/craftventure/core/ride/trackedride/segment/ForkRouterSegment.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.core.ride.trackedride.segment
import com.squareup.moshi.JsonClass
import net.craftventure.core.ride.trackedride.*
import org.bukkit.util.Vector
class ForkRouterSegment(
id: String,
displayName: String,
trackedRide: TrackedRide,
private val forkSegments: MutableList<RoutingEnt... | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 4,138 | open-plugin-parts | MIT License |
app/src/main/java/hu/mostoha/mobile/android/huki/model/mapper/HomeUiModelMapper.kt | RolandMostoha | 386,949,428 | false | {"Kotlin": 816494, "Java": 21937, "Shell": 308} | package hu.mostoha.mobile.android.huki.model.mapper
import androidx.annotation.DrawableRes
import hu.mostoha.mobile.android.huki.R
import hu.mostoha.mobile.android.huki.model.domain.Geometry
import hu.mostoha.mobile.android.huki.model.domain.HikingRoute
import hu.mostoha.mobile.android.huki.model.domain.Landscape
impo... | 0 | Kotlin | 1 | 6 | b0b10fd3b3fb58da8e278c8c6ac1a107a51e33b5 | 7,874 | HuKi-Android | The Unlicense |
app/src/main/java/com/xktt/renovation/constant/Constant.kt | yang95C | 520,758,473 | false | null | package com.xktt.renovation.constant
/**
* @author admin
* @date 2018/11/21
* @desc
*/
object Constant{
const val BASE_URL = "http://zxapi.feishulive.com"
// const val BASE_URL = "http://testapi.feishulive.com"
}
| 0 | Kotlin | 0 | 0 | b096e458ceff8ce9d5ef668473cfa09b709010c1 | 228 | BaseProject | Apache License 2.0 |
app/src/main/java/com/andrei/jetpack/swissandroid/di/mainviewpagerpagescope/GradesViewModelModule.kt | CosmaAndrei | 224,259,279 | false | null | package com.andrei.jetpack.swissandroid.di.mainviewpagerpagescope
import androidx.lifecycle.ViewModel
import com.andrei.jetpack.swissandroid.ui.main.viewmodels.GradesViewModel
import com.andrei.jetpack.swissandroid.viewmodel.ViewModelKey
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
/*
... | 0 | Kotlin | 0 | 0 | 8b75de3e1ba07607204e2a78998dfd6e55300e68 | 646 | SwissAndroid | MIT License |
Kotlin/ArrayInit.kt | maniero | 78,631,930 | false | null | import java.util.*
fun main(args: Array<String>) {
val numeros: IntArray = intArrayOf(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
val numeros2 = Array(10, { i -> i })
println(Arrays.toString(numeros))
println(Arrays.toString(numeros2))
}
//https://pt.stackoverflow.com/q/292702/101
| 1 | null | 163 | 963 | 7ae9e1c241eac25135a690e5475e6f5c96cb0b21 | 284 | SOpt | MIT License |
boot/acp-spring-boot-starter/src/main/kotlin/io/github/zhangbinhub/acp/boot/conf/SwaggerConfiguration.kt | zhangbinhub | 279,298,314 | false | {"Gradle": 22, "Shell": 2, "Text": 2, "Ignore List": 1, "Batchfile": 2, "INI": 4, "Markdown": 6, "Java": 80, "YAML": 25, "XML": 16, "Kotlin": 201, "Java Properties": 3, "JSON": 2, "HTML": 1} | package io.github.zhangbinhub.acp.boot.conf
import org.springframework.boot.context.properties.ConfigurationProperties
/**
* Swagger 配置
*
* @author zhang by 14/01/2019 15:07
* @since JDK 11
*/
@ConfigurationProperties(prefix = "acp.swagger")
class SwaggerConfiguration {
/**
* 是否启用,默认:false
*/
... | 0 | Kotlin | 4 | 8 | 3d63305f56fed8302fc63fa45d6ebd30cbbd8c3e | 343 | acp | Apache License 2.0 |
content/src/main/kotlin/com/alfresco/content/apis/PreferencesApi.kt | Alfresco | 243,303,915 | false | null | /**
* NOTE: This class is auto generated by the Swagger Gradle Codegen for the following API: Alfresco Content Services REST API
*
* More info on this tool is available on https://github.com/Yelp/swagger-gradle-codegen
*/
package com.alfresco.content.apis
import com.alfresco.content.models.Error
import com.alfres... | 0 | Kotlin | 2 | 2 | 90ca037e3a50612a16434576dc3e4fd23187f333 | 3,462 | alfresco-android-kotlin-api | Apache License 2.0 |
app/src/main/java/io/chaldeaprjkt/yumetsuki/worker/WorkerEventDispatcherImpl.kt | nullxception | 548,504,514 | false | {"Kotlin": 317977} | package io.chaldeaprjkt.yumetsuki.worker
import android.content.Context
import androidx.work.WorkManager
import dagger.hilt.android.qualifiers.ApplicationContext
import io.chaldeaprjkt.yumetsuki.data.gameaccount.entity.HoYoGame
import io.chaldeaprjkt.yumetsuki.data.settings.entity.CheckInSettings
import io.chaldeaprjk... | 0 | Kotlin | 0 | 8 | a36a22281ab16d7902a839cbda0071c5eafe2061 | 3,481 | yumetsuki | MIT License |
PrimitiveArray.kt | Jolanrensen | 373,833,068 | false | null | @file:Suppress("NOTHING_TO_INLINE", "OVERRIDE_BY_INLINE", "unused")
import kotlin.random.Random
sealed interface PrimitiveArray<T : Comparable<T>> : List<T> {
val actualData: Any
/**
* Sets the element at the given [index] to the given [value]. This method can be called using the index operator.
*... | 0 | Kotlin | 0 | 2 | 67f287cbb259dd54f5a8cd736ba36270d49e22f5 | 80,112 | KotlinGenericPrimitiveArrays | Apache License 2.0 |
device/src/test/java/org/watsi/enrollment/device/db/models/MemberWithThumbnailModelTest.kt | Meso-Health | 227,515,211 | false | null | package org.watsi.enrollment.device.db.models
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
import org.threeten.bp.Instant
import org.watsi.enrollment.device.factories.MemberModelFactory
import org.watsi.enrollment.device.factories.PhotoModelFactory
import java.util.UUID... | 0 | Kotlin | 3 | 1 | bba562b15e5e34d3239f417c45c6ec4755510c68 | 2,054 | meso-enrollment | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/LampOff.kt | walter-juan | 868,046,028 | false | {"Kotlin": 20416825} | package com.woowla.compose.icon.collections.tabler.tabler.outline
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.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | Kotlin | 0 | 1 | b037895588c2f62d069c724abe624b67c0889bf9 | 2,818 | compose-icon-collections | MIT License |
src/es/nekoscans/src/eu/kanade/tachiyomi/extension/es/nekoscans/NekoScans.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.es.nekoscans
import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.Response
import java.util.concurrent.TimeUnit
class NekoScans : ZeistManga(
"NekoScans",
"https://www.nekoscans.org",
"es",
)... | 22 | Kotlin | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 847 | komikku-extensions | Apache License 2.0 |
core/src/commonMain/kotlin/org/kobjects/kowa/core/expr/CodeWriter.kt | kobjects | 340,712,554 | false | null | package org.kobjects.kowa.core.expr
/** Glorified string builder with indent support */
class CodeWriter(
val sb: StringBuilder = StringBuilder(),
val indent: String = "\n"
) {
fun indented() = CodeWriter(sb, "$indent ")
fun newLine() {
sb.append(indent)
}
fun write(vararg values: An... | 0 | null | 0 | 3 | c93bcf637b6ff83bdbdb93f1a7b0cfb995e31e41 | 665 | kowa | Apache License 2.0 |
eux-nav-rinasak-datasync-webapp/src/main/kotlin/eux/nav/rinasak/datasync/controller/PopulateNavRinasakController.kt | navikt | 690,514,430 | false | {"Kotlin": 74609, "HTML": 20594, "CSS": 1860, "Makefile": 140, "Dockerfile": 128} | package eux.nav.rinasak.datasync.controller
import eux.nav.rinasak.datasync.service.CaseStoreRecordsService
import no.nav.security.token.support.core.api.Unprotected
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping
import org... | 0 | Kotlin | 0 | 0 | df52c44a0d590cc5d6128c46e29dde31868ea827 | 1,125 | eux-nav-rinasak-datasync | MIT License |
app/src/main/java/com/tmvlg/smsreceiver/domain/freenumber/FreeNumberRepository.kt | aifsbei | 376,591,680 | false | null | package com.tmvlg.smsreceiver.domain.freenumber
import androidx.lifecycle.LiveData
interface FreeNumberRepository {
fun addFreeNumber(freeNumber: FreeNumber)
fun getFreeNumberList() : LiveData<List<FreeNumber>>
fun getFreeNumber(freeNumberId: Int) : FreeNumber
fun filterFreeNumberList(query: Strin... | 0 | Kotlin | 1 | 2 | ce9a182c23ab33494201dd096966a6690fda8b40 | 402 | SMS-Receiver | MIT License |
src/main/kotlin/org/rust/lang/core/psi/impl/RsFile.kt | torkleyy | 87,803,437 | false | null | package org.rust.lang.core.psi.impl
import com.intellij.extapi.psi.PsiFileBase
import com.intellij.openapi.fileTypes.FileType
import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.FileViewProvider
import com.intellij.psi.PsiDirectory
import com.intellij.psi.Ps... | 1 | null | 1 | 1 | 9f545171d9c40b5e223e3c85a4d6bcdcb2aac3d0 | 4,673 | intellij-rust | MIT License |
components/filemngr/listing/impl/src/androidMain/kotlin/com/flipperdevices/filemanager/listing/impl/composable/LoadedFilesComposable.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.filemanager.listing.impl.composable
import androidx.compose.animation.Crossfade
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.lazy.grid.LazyGridScope
import androidx.compose.foundation.lazy.grid.... | 21 | null | 174 | 1,528 | 8f293e596741a6c97409acbc8de10c7ae6e8d8b0 | 4,097 | Flipper-Android-App | MIT License |
src/main/kotlin/starter/Misc.kt | kboduch | 254,468,070 | false | null | package starter
import screeps.api.*
import screeps.api.structures.Structure
import screeps.api.structures.StructureSpawn
fun <T> List<T>.filterOrReturnExistingIfEmpty(predicate: (T) -> Boolean): List<T> {
val old = this
val result = this.filter(predicate)
if (result.isNotEmpty())
return result
... | 0 | Kotlin | 0 | 0 | 4562be624093b44c4229a98a6ec36107a4e70de1 | 3,552 | screeps | MIT License |
app/src/main/java/com/yorick/cokotools/ui/components/CokoDropMenu.kt | Yorick-Ryu | 542,501,945 | false | {"Kotlin": 179759, "Java": 13012} | package com.yorick.cokotools.ui.components
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowDropDown
import androidx.compose.material.icons.filled.ArrowDropUp
import andr... | 1 | Kotlin | 2 | 3 | 6e2b0f838546aa940211287d01aa2f1e8da8b7ce | 2,142 | CokoTools | Apache License 2.0 |
feature-staking-impl/src/main/java/com/dfinn/wallet/feature_staking_impl/domain/validations/rewardDestination/RewardDestinationValidationPayload.kt | finn-exchange | 500,972,990 | false | null | package com.dfinn.wallet.feature_staking_impl.domain.validations.rewardDestination
import com.dfinn.wallet.feature_staking_api.domain.model.StakingState
import java.math.BigDecimal
class RewardDestinationValidationPayload(
val availableControllerBalance: BigDecimal,
val fee: BigDecimal,
val stashState: St... | 0 | Kotlin | 0 | 0 | 6cc7a0a4abb773daf3da781b7bd1dda5dbf9b01d | 339 | dfinn-android-wallet | Apache License 2.0 |
src/main/kotlin/me/alllex/tbot/api/model/InlineKeyboardMarkupBuilder.kt | alllex | 660,585,275 | false | {"Kotlin": 1258534, "HTML": 533598} | package me.alllex.tbot.api.model
/**
* Creates an [InlineKeyboardMarkup] using the provided [block].
*
* Example:
* ```
* val markup = inlineKeyboard {
* row {
* button("Yes", "yes")
* button("No", "no")
* }
* button("Cancel", "maybe")
* }
* ```
*
* Creates the following markup:
* ``... | 3 | Kotlin | 1 | 21 | 031a619605dee12840cdf460e535523c22998c79 | 4,126 | telegram-bot-kit | MIT License |
app/src/main/java/com/example/filler/constants/gui/Persistence.kt | oriolagobat | 494,453,008 | false | null | package com.example.filler.constants.gui
const val DB_END_TIME = "endTime"
const val DB_ELAPSED_TIME = "elapsedTime"
const val DB_ALIAS = "alias"
const val DB_OUTCOME = "outcome"
const val DB_GRID_SIZE = "gridSize"
const val DB_NUM_COLORS = "numColors"
const val DB_CONQUERED_AREA = "conqueredArea" | 1 | Kotlin | 0 | 1 | 27f15dfa611d15b9a15888bf87a408b992c3ef04 | 299 | Filler-Game-2 | MIT License |
base_component/src/main/java/com/william/base_component/rx/SchedulerUtils.kt | Seachal | 357,416,143 | true | {"Kotlin": 166552, "Java": 22100} | package com.william.base_component.rx
import com.william.base_component.rx.scheduler.*
fun <T> ioToMain(): IoMainScheduler<T> {
return IoMainScheduler()
}
fun <T> ioToIo(): IoIoScheduler<T> {
return IoIoScheduler()
}
fun <T> computationToMain(): ComputationMainScheduler<T> {
return ComputationMainSchedu... | 0 | null | 0 | 0 | e4dc012c41c599055e62316e2055daad3177fb9c | 603 | EasyKotlin | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ServiceListPresenter.kt | jonfhancock | 360,288,231 | false | null | package com.example.androiddevchallenge
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.toMutableStateMap
import com.example.androiddevchallenge.data.Categories
import com.example.androiddevchallenge.data.Repository
import com.example.androiddevchallenge.data.Services
import com.example.... | 0 | Kotlin | 0 | 0 | 8173989e7b56e3b7dc90f0e93ea761bd11adb9f8 | 1,499 | 2021-Eng-Summit-Workshop | Apache License 2.0 |
cryptanil/src/main/java/com/primesoft/cryptanil/views/MainView.kt | narekignoyan | 671,499,495 | false | null | package com.primesoft.cryptanil.views
interface MainView : AppView, NavigationView | 0 | Kotlin | 0 | 0 | 4074b2e4bc0832c365aa14588ba083fa3873a127 | 83 | Cryptanil | MIT License |
data/src/main/java/com/anangkur/wallpaper/data/repository/RemoteRepository.kt | anangkur | 281,979,916 | false | {"Kotlin": 109025} | package com.anangkur.wallpaper.data.repository
import com.anangkur.wallpaper.data.model.Collection
import com.anangkur.wallpaper.data.model.Wallpaper
interface RemoteRepository {
suspend fun fetchWallpaper(clientId: String): List<Wallpaper>
suspend fun fetchCollection(clientId: String): List<Collection>
s... | 6 | Kotlin | 1 | 8 | e893dfec250c6a5bb9440609038d8b3d3c9c471b | 687 | walla | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.