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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shared/src/commonMain/kotlin/com/presta/customer/network/authDevice/client/PrestaAuthClient.kt | morgan4080 | 726,765,347 | false | null | package com.presta.customer.network.authDevice.client
import com.presta.customer.network.NetworkConstants
import com.presta.customer.network.authDevice.errorHandler.authErrorHandler
import com.presta.customer.network.authDevice.model.PrestaCheckAuthUserResponse
import com.presta.customer.network.authDevice.model.Prest... | 0 | Kotlin | 0 | 0 | d26cc0013c5bedf29d2f349b86e90052a0aca64e | 2,672 | kotlin-multiplatform | Apache License 2.0 |
lib_debug/src/main/java/com/ndhzs/lib/debug/crash/CrashActivity.kt | VegetableChicken-Group | 497,243,579 | false | null | package com.ndhzs.lib.debug.crash
import android.annotation.SuppressLint
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.os.Process
import android.text.Spannable
im... | 0 | Kotlin | 10 | 16 | 36d7f05c8c3f46b83f022b83d68edb02b281d111 | 5,915 | WanAndroid_Multi | MIT License |
modules/gallery/model/src/main/kotlin/nasa/gallery/model/Metadata.kt | jonapoul | 794,260,725 | false | {"Kotlin": 558516} | package nasa.gallery.model
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.ImmutableMap
import kotlinx.collections.immutable.toImmutableList
import kotlinx.collections.immutable.toImmutableMap
import kotlinx.serialization.SerializationException
import kotlinx.serialization.json.... | 1 | Kotlin | 0 | 1 | c1e163f2a7212200280d0d613a478543020c9278 | 3,596 | nasa-android | Apache License 2.0 |
dslitem/src/main/java/com/angcyo/item/style/IBadgeItem.kt | angcyo | 231,295,668 | false | null | package com.angcyo.item.style
import com.angcyo.dsladapter.DslAdapterItem
import com.angcyo.dsladapter.DslViewHolder
import com.angcyo.dsladapter.annotation.ItemInitEntryPoint
import com.angcyo.dsladapter.item.IDslItemConfig
import com.angcyo.item.R
import com.angcyo.widget.IBadgeView
/**
* 角标文本[BadgeTextView]item
... | 0 | Kotlin | 2 | 13 | 92c5a7c665636c7af4c1f497c41657653ae80326 | 1,402 | DslItem | MIT License |
ok-retrofit/src/test/kotlin/model.kt | jmfayard | 71,764,270 | false | null | import java.util.*
| 0 | Kotlin | 0 | 1 | 9e92090aa50127a470653f726b80335133dec38b | 20 | httplayground | ISC License |
app/src/main/java/life/hnj/sms2telegram/smshandler/SMSReceiver.kt | hyhugh | 383,148,797 | false | null | package life.hnj.sms2telegram.smshandler
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Build
import android.telephony.SmsMessage
import android.util.Log
import android.widget.Toast
import androidx.annotat... | 3 | null | 8 | 8 | 0ccd86b9a388163a43a3ce0e6f7efd6e933c88f6 | 4,263 | SMS2Telegram | MIT License |
js/js.translator/testData/box/enum/initializationOrder.kt | JakeWharton | 99,388,807 | false | null | package foo
enum class E {
A,
B {
init {
log("init B")
}
},
C;
init {
log("init E")
}
}
var l = ""
fun log(s: String) {
l += s + ";"
}
fun box(): String {
log("get Ea.A")
E.A.toString()
log("get E.B")
E.B.toString()
log("get E.C")
... | 184 | null | 5691 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 447 | kotlin | Apache License 2.0 |
ui/src/main/java/es/fnmtrcm/ceres/certificadoDigitalFNMT/ui/videocall/VideocallLastStepView.kt | CodeNationDev | 757,931,525 | false | {"Kotlin": 1417005, "C": 485745, "C++": 480977, "CMake": 283671, "Java": 166491} | package es.fnmtrcm.ceres.certificadoDigitalFNMT.ui.videocall
import android.content.Context
import android.content.res.Configuration
import android.net.Uri
import android.util.Log
import androidx.browser.customtabs.CustomTabsIntent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arra... | 0 | Kotlin | 0 | 0 | 9c5d7b9355c406992ff9126d4bd01d49d4778048 | 10,896 | FabricK | MIT License |
app/src/main/java/com/rkbapps/neetflix/viewmodelfactories/movies/VideoAndImagesViewModelFactory.kt | Rajkumarbhakta | 603,033,367 | false | null | package com.rkbapps.neetflix.viewmodelfactories.movies
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.rkbapps.neetflix.repository.movies.VideoAndImageRepository
import com.rkbapps.neetflix.viewmodels.movies.VideoAndImageViewModel
class VideoAndImagesViewModelFactory(
pr... | 0 | Kotlin | 0 | 0 | 83ef894f83cccdd399337bcbd11a399508e66fb4 | 589 | Neetflix | Apache License 2.0 |
common/data/remote/src/main/java/com/viplearner/common/data/remote/mapper/toNoteEntity.kt | VIPlearner | 678,766,501 | false | {"Kotlin": 272893} | package com.viplearner.common.data.remote.mapper
import com.viplearner.common.data.remote.dto.Note
import com.viplearner.common.domain.entity.NoteEntity
fun Note.toNoteEntity() =
NoteEntity(
uuid = uuid,
title = title,
content = content,
timeLastEdited = timeLastEdited,
isP... | 0 | Kotlin | 0 | 0 | becf4c8e908c26d578aa8387a8b9aee88d60ef27 | 373 | VIPNotes | MIT License |
src/main/kotlin/me/znepb/roadworks/datagen/TagProvider.kt | znepb | 674,486,233 | false | {"Kotlin": 303216, "Java": 1022} | package me.znepb.roadworks.datagen
import me.znepb.roadworks.Registry
import me.znepb.roadworks.RoadworksMain.ModId
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider.BlockTagProvider
import net.minecraft.registry.RegistryKeys
import net.mine... | 1 | Kotlin | 1 | 6 | c14b96b0c0c3e10aada1b2d56d72e0ce531e6731 | 6,390 | roadworks | MIT License |
autofill/autofill-impl/src/test/java/com/duckduckgo/autofill/impl/securestorage/RealSecureStorageKeyGeneratorTest.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11627106, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.securestorage
import com.duckduckgo.appbuildconfig.api.AppBuildConfig
import com.duckduckgo.autofill.impl.securestorage.DerivedKeySecretFactory
import com.duckduckgo.autofill.impl.securestorage.RealSecureStorageKeyGenerator
import java.security.Key
import org.junit.Assert.*
import org.junit.Be... | 0 | Kotlin | 0 | 0 | 54351d039b85138a85cbfc7fc3bd5bc53637559f | 2,086 | DuckDuckGo | Apache License 2.0 |
src/main/kotlin/org/move/ide/lineMarkers/CommandLineMarkerContributor.kt | pontem-network | 279,299,159 | false | null | package org.move.ide.lineMarkers
import com.intellij.execution.lineMarker.ExecutorAction
import com.intellij.execution.lineMarker.RunLineMarkerContributor
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.psi.PsiElement
import org.move.cli.runConfigurations.producers.aptos.AptosTestCommandConfigura... | 3 | null | 29 | 69 | d9950d24e9d5733c4e8aee0e0b41f6269b150a63 | 3,286 | intellij-move | MIT License |
Kotlin Koans EE plugin/lesson3/task6/Task.kt | Kotlin | 50,311,744 | false | null | // Return a list of customers, sorted by the ascending number of orders they made
fun Shop.getCustomersSortedByNumberOfOrders(): List<Customer> = TODO()
| 14 | null | 18 | 55 | 9028a7b3d5c7fc6f9b669deee4596f97f4272b8b | 153 | kotlin-koans-edu-obsolete | MIT License |
kotlin-electron/src/jsMain/generated/electron/utility/HandlerDetails.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package electron.utility
typealias HandlerDetails = electron.core.HandlerDetails
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 136 | kotlin-wrappers | Apache License 2.0 |
core/source/lu/kremi151/chatster/core/context/CommandContextImpl.kt | kremi151 | 236,162,378 | false | null | /**
* Copyright 2020 <NAME> (kremi151)
*
* 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 | 0 | 75fb4825de76b8b73d2957cdb87ee44bad55c933 | 1,684 | Chatster | Apache License 2.0 |
src/main/kotlin/infrastructure/api/RoomApi.kt | SmartOperatingBlock | 602,467,135 | false | null | /*
* Copyright (c) 2023. Smart Operating Block
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package infrastructure.api
import application.controller.RoomController
import application.presenter.api.deserial... | 1 | Kotlin | 0 | 1 | 610ebd9dd89b48ba68a310c3bcddd58bb407fab5 | 4,986 | building-management-microservice | MIT License |
shared/src/commonMain/kotlin/business/domain/main/Settings.kt | shlomyrep | 780,318,608 | false | {"Kotlin": 636415, "Swift": 15830, "Ruby": 290, "Shell": 228} | package business.domain.main
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Settings(
var idleModeType: String = "",
var idleThresholdInSeconds: Long = 0L,
var screenSaver: ScreenSaver = ScreenSaver(),
var generalSku: String = "122000358",
... | 0 | Kotlin | 0 | 0 | 90eca36b1f721ce6ddefceadbee95dc4a217cf49 | 588 | retailAiClient | MIT License |
hermit-core/src/test/kotlin/hermit/test/TestResetManager.kt | jeremiahvanofferen | 397,332,786 | false | null | /*
* Copyright (C) 2021-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 agreed t... | 12 | Kotlin | 2 | 0 | e4ac462fd97ff1e9ced5c298b48ad56f40dfa066 | 1,048 | Hermit | Apache License 2.0 |
ts-database/ts-mongodb/src/main/kotlin/cn/tursom/database/mongodb/subscriber/SuspendListDocumentSubscriber.kt | tursom | 213,611,087 | false | {"YAML": 1, "Gradle Kotlin DSL": 45, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 616, "Java": 6, "INI": 1, "Markdown": 3} | package cn.tursom.database.mongodb.subscriber
import cn.tursom.database.mongodb.MongoUtil
import org.bson.Document
import java.util.concurrent.Executor
import kotlin.coroutines.Continuation
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
@Suppress("ReactiveStreamsSubscriberImplementation"... | 0 | Kotlin | 2 | 8 | 6052adebd9c41edf7a44e77abdeb5ed01a526e8c | 911 | TursomServer | MIT License |
mobile_app1/module766/src/main/java/module766packageKt0/Foo279.kt | uber-common | 294,831,672 | false | null | package module766packageKt0;
annotation class Foo279Fancy
@Foo279Fancy
class Foo279 {
fun foo0(){
module766packageKt0.Foo278().foo5()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
fun foo5(){
foo4()
}
} | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 297 | android-build-eval | Apache License 2.0 |
machamp-oracle-spring-boot-starter/src/main/kotlin/io/github/yakovsirotkin/machamp/oracle/springboot/OracleAsyncTaskDaoAutoConfiguration.kt | YakovSirotkin | 456,107,227 | false | null | package io.github.yakovsirotkin.machamp.oracle.springboot
import com.fasterxml.jackson.databind.ObjectMapper
import io.github.yakovsirotkin.machamp.oracle.OracleAsyncTaskDao
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass
import org.springframework.boot.autoconfigure.condition.ConditionalOnM... | 5 | null | 1 | 8 | 17c2225f02e3800b6e1b7a7ff2b535abe5f0e28e | 1,388 | machamp | MIT License |
commons/src/commonMain/kotlin/org/jetbrains/letsPlot/commons/geometry/DoubleRectangle.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2023. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.commons.geometry
import org.jetbrains.letsPlot.commons.interval.DoubleSpan
import kotlin.math.max
import kotlin.math.min
class DoubleRectangle... | 97 | null | 49 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 6,576 | lets-plot | MIT License |
libnavui-tripprogress/src/main/java/com/mapbox/navigation/ui/tripprogress/TripProgressResult.kt | mapbox | 87,455,763 | false | {"Kotlin": 8885438, "Makefile": 8762, "Python": 7925, "Java": 4624} | package com.mapbox.navigation.ui.tripprogress
internal sealed class TripProgressResult {
data class RouteProgressCalculation(
val estimatedTimeToArrival: Long,
val distanceRemaining: Double,
val currentLegTimeRemaining: Double,
val totalTimeRemaining: Double,
val percentRout... | 508 | Kotlin | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 1,007 | mapbox-navigation-android | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMappingProps.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.entityresolution
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.IResolvable
imp... | 3 | null | 0 | 4 | e15f2e27e08adeb755ad44b2424c195521a6f5ba | 9,577 | kotlin-cdk-wrapper | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/MathSin.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,502 | compose-icon-collections | MIT License |
core/src/integration/kotlin/io/github/serpro69/kfaker/FakerIT.kt | serpro69 | 174,969,439 | false | null | package io.github.serpro69.kfaker
import io.github.serpro69.kfaker.provider.FakeDataProvider
import io.github.serpro69.kfaker.provider.Money
import io.github.serpro69.kfaker.provider.misc.StringProvider
import io.kotest.assertions.assertSoftly
import io.kotest.core.spec.style.DescribeSpec
import io.kotest.matchers.sho... | 33 | null | 40 | 394 | 01f7d376282911f90d085ac69be42b4e9cdb7f26 | 8,897 | kotlin-faker | MIT License |
src/main/kotlin/com/keygenqt/patterns/pattern/behavioral/chain_of_responsibility/ChainValidate.kt | keygenqt | 358,650,463 | false | null | package com.keygenqt.patterns.pattern.behavioral.chain_of_responsibility
class ChainValidate : HandlerBase() {
override fun handle(email: String, password: String) {
if (email.isBlank() || password.isBlank()) {
throw Exception("Error ChainValidate")
} else {
println("ChainVa... | 0 | Kotlin | 2 | 1 | 44863628b21f1bbacd5014b91d4be5998f8e6bbc | 401 | skill-patterns | Apache License 2.0 |
app/src/main/java/red/tetrakube/redcube/domain/models/MinimalActiveHub.kt | TetraKube-Red | 854,436,080 | false | {"Kotlin": 84315} | package red.tetrakube.redcube.domain.models
data class MinimalActiveHub (
val slug: String,
val name: String,
val token: String,
val apiURI: String
) | 0 | Kotlin | 0 | 0 | 69b1a6d22f581a9aa12cb8d8a52847e61674de54 | 166 | RedCube-Home | MIT License |
app/src/main/java/com/dluvian/voyage/ui/components/text/SmallHeader.kt | dluvian | 766,355,809 | false | {"Kotlin": 1049080} | package com.dluvian.voyage.ui.components.text
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
fun SmallHeader(header: String, modifier: Modifier = Modifier) {
Text(modifier = modifier,... | 36 | Kotlin | 4 | 40 | e117d2d00f1e92bc0d5117055169b03906feb479 | 384 | voyage | MIT License |
app/src/main/java/com/kylecorry/trail_sense/tools/maps/infrastructure/create/CreateMapFromFileCommand.kt | kylecorry31 | 215,154,276 | false | {"Kotlin": 2589968, "Python": 22919, "HTML": 18863, "Shell": 5290, "CSS": 5120, "JavaScript": 3814, "Batchfile": 2553} | package com.kylecorry.trail_sense.tools.maps.infrastructure.create
import android.content.Context
import com.kylecorry.andromeda.alerts.loading.ILoadingIndicator
import com.kylecorry.trail_sense.shared.extensions.onIO
import com.kylecorry.trail_sense.shared.io.UriPicker
import com.kylecorry.trail_sense.tools.maps.doma... | 456 | Kotlin | 66 | 989 | 41176d17b498b2dcecbbe808fbe2ac638e90d104 | 846 | Trail-Sense | MIT License |
src/util/iterators/filterInPlace.kt | JBWills | 291,822,812 | false | null | package util.iterators
fun <T, R : Comparable<R>> MutableList<T>.filterInPlace(
by: (T) -> Boolean
) {
var currIndex = 0
while (currIndex < size) {
if (by(get(currIndex))) {
currIndex += 1
} else {
removeAt(currIndex)
}
}
}
| 0 | Kotlin | 0 | 0 | 569b27c1cb1dc6b2c37e79dfa527b9396c7a2f88 | 258 | processing-sketches | MIT License |
app/src/main/java/com/cv4j/app/activity/GridViewFilterActivity.kt | imageprocessor | 76,771,374 | false | null | package com.cv4j.app.activity
import android.content.res.Resources
import android.graphics.BitmapFactory
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.cv4j.app.R
import com.cv4j.app.adapter.GridViewFilterAdapter
import com.cv4... | 15 | Java | 153 | 831 | 09b371cdfb402ab81c7d9fd2e5667902ea46e334 | 1,917 | cv4j | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/BookFont.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
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
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,758 | icons | MIT License |
demo1/src/main/kotlin/com/example/application/RoomHandler.kt | brandonlamb | 140,188,502 | false | {"Kotlin": 45565, "C#": 16796, "Shell": 203, "GDScript": 61} | package com.example.application
import akka.actor.ActorRef
import akka.actor.ActorRef.noSender
import com.example.domain.core.player.AddPlayer
import net.engio.mbassy.listener.Handler
import net.engio.mbassy.listener.Listener
import org.pmw.tinylog.Logger
@Listener
class RoomHandler(private val room: ActorRef) {
@H... | 0 | Kotlin | 1 | 1 | 88c7fc66e7841318bc94d6fa753f2d783f467275 | 431 | kotlin-smartfoxserver-demos | MIT License |
bot/admin/server/src/main/kotlin/model/UserSearchQuery.kt | theopenconversationkit | 84,538,053 | false | null | /*
* Copyright (C) 2017 VSCT
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 163 | null | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 1,372 | tock | Apache License 2.0 |
knowledgebase-gui/src/main/java/ru/usedesk/knowledgebase_gui/screens/categories/IOnCategoryClickListener.kt | usedesk | 127,645,126 | false | null | package ru.usedesk.knowledgebase_gui.screens.categories
internal interface IOnCategoryClickListener {
fun onCategoryClick(categoryId: Long,
articleTitle: String)
} | 0 | Kotlin | 4 | 3 | 3ee34eaeeaa0668e94cf8dadf78afad6901b52c4 | 192 | Android_SDK | MIT License |
codelabs/image_generation_basic/android/start/app/src/main/java/com/google/mediapipe/examples/imagegeneration/ImageGenerationHelper.kt | googlesamples | 555,519,447 | false | {"Jupyter Notebook": 940565, "JavaScript": 116392, "Kotlin": 46206, "HTML": 6974, "Python": 1494, "CSS": 1381} | package com.google.mediapipe.examples.imagegeneration
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import com.google.mediapipe.framework.image.BitmapExtractor
import com.google.mediapipe.framework.image.MPImage
... | 48 | Jupyter Notebook | 257 | 988 | 0fc6e2b809b13b7cb1de1792288409624f5f6007 | 1,838 | mediapipe | Apache License 2.0 |
src/test/MinorChordsTest.kt | UrielSarrazin | 243,283,788 | false | null | import Note.*
import Quality.*
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
@DisplayName("Minor Chords")
class MinorChordsTest {
@Test
fun keyOfC() {
val notes = listOf(C, D_SHARP, G)
val chord = resolve(notes)
assertMinor(chord, C)
}
@Test
fun... | 1 | Kotlin | 0 | 0 | 407934faeafd420244d37be9f03b49b8e1b40bf9 | 1,266 | chords | Apache License 2.0 |
core/network/src/main/java/com/wei/picquest/core/network/pagingsource/PixabayImagePagingSource.kt | azrael8576 | 725,428,435 | false | {"Kotlin": 346858} | package com.wei.picquest.core.network.pagingsource
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.wei.picquest.core.network.PqNetworkDataSource
import com.wei.picquest.core.network.model.NetworkImageDetail
class PixabayImagePagingSource(
private val pqNetworkDataSource: PqNetwor... | 11 | Kotlin | 0 | 8 | f6a0698aa72141fc64ee87fd9301e4ac923684de | 1,281 | picquest | Apache License 2.0 |
basick/src/main/java/com/mozhimen/basick/elemk/kotlin/properties/VarProperty.kt | mozhimen | 353,952,154 | false | {"Kotlin": 1460326, "Java": 3916, "AIDL": 964} | package com.mozhimen.basick.elemk.kotlin.properties
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
/**
* @ClassName PropertyDelegate
* @Description TODO
* @Author Mozhimen & <NAME>
* @Version 1.0
*/
open class VarProperty<T>(default: T) : ReadWriteProperty<Any?, T> {
private var _... | 1 | Kotlin | 6 | 118 | bbdd6ab9b945f04036c27add35c1cbd70c1b49f7 | 543 | SwiftKit | Apache License 2.0 |
app/src/main/java/com/michaelcarrano/detectivedroid/domain/GetAppListUseCase.kt | michaelcarrano | 23,555,546 | false | {"Kotlin": 65136, "Ruby": 2946, "Shell": 709} | package com.michaelcarrano.detectivedroid.domain
import com.michaelcarrano.detectivedroid.data.AppRepository
import com.michaelcarrano.detectivedroid.presentation.model.AppMapper
import com.michaelcarrano.detectivedroid.presentation.model.AppUiModel
import io.reactivex.Single
import javax.inject.Inject
class GetAppLi... | 9 | Kotlin | 8 | 81 | 59b80d2a4b89d1be224281ad43709f5204fe5b67 | 945 | detective-droid | Apache License 2.0 |
onsenui-kitchensink/src/main/kotlin/com/example/FormsPage.kt | adamint | 331,784,168 | true | {"Kotlin": 790864, "JavaScript": 29894, "HTML": 14557, "CSS": 3495, "Handlebars": 402} | package com.example
import pl.treksoft.kvision.core.onEvent
import pl.treksoft.kvision.form.text.TextInputType
import pl.treksoft.kvision.html.Align
import pl.treksoft.kvision.html.TAG
import pl.treksoft.kvision.html.label
import pl.treksoft.kvision.html.span
import pl.treksoft.kvision.html.tag
import pl.treksoft.kvis... | 0 | null | 0 | 0 | 3bd7767240f299ffd9233bac4963ad31c13750d5 | 8,326 | kvision-examples | MIT License |
src/test/kotlin/org/rustSlowTests/RsCompilerSourcesLazyBlockStubCreationTest.kt | intellij-rust | 42,619,487 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 5, "Markdown": 11, "TOML": 19, "Shell": 2, "Text": 124, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "XML": 140, "Kotlin": 2284, "INI": 3, "ANTLR": 1, "Rust": 362, "YAML": 131, "RenderScript": 1, "JSON": 6, "HTML": 198, "SVG": 136, "JFlex": 1, "Java": 1, "Python": 37} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rustSlowTests
import com.intellij.openapi.vfs.VirtualFile
import org.rust.ProjectDescriptor
import org.rust.WithStdlibRustProjectDescriptor
import org.rust.lang.core.stubs.RsLazyBlockStubCreationTest... | 1,841 | Kotlin | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 760 | intellij-rust | MIT License |
src/main/java/ru/hollowhorizon/hollowengine/common/npcs/IHollowNPC.kt | HollowHorizon | 586,593,959 | false | {"Kotlin": 190114, "Java": 99904} | package ru.hollowhorizon.hollowengine.common.npcs
import kotlinx.coroutines.runBlocking
import net.minecraft.nbt.CompoundTag
import ru.hollowhorizon.hc.client.models.gltf.Transform
import ru.hollowhorizon.hc.client.models.gltf.animations.PlayType
import ru.hollowhorizon.hc.client.models.gltf.manager.AnimatedEntityCapa... | 0 | Kotlin | 3 | 3 | 05a539a76504d0d409071de3d8222aafe93870f3 | 2,474 | HollowEngine | MIT License |
src/main/kotlin/me/melijn/melijnbot/database/embed/EmbedColorWrapper.kt | ToxicMushroom | 107,187,088 | false | null | package me.melijn.melijnbot.database.embed
import me.melijn.melijnbot.database.HIGHER_CACHE
import me.melijn.melijnbot.database.NORMAL_CACHE
class EmbedColorWrapper(private val embedColorDao: EmbedColorDao) {
suspend fun getColor(guildId: Long): Int {
val cached = embedColorDao.getCacheEntry(guildId, HIG... | 5 | Kotlin | 22 | 80 | 01107bbaad0e343d770b1e4124a5a9873b1bb5bd | 829 | Melijn | MIT License |
ktor-io/common/src/io/ktor/utils/io/core/Copy.kt | jakobkmar | 323,173,348 | false | null | package io.ktor.utils.io.core
import io.ktor.utils.io.core.internal.*
/**
* Copy all bytes to the [output].
* Depending on actual input and output implementation it could be zero-copy or copy byte per byte.
* All regular types such as [ByteReadPacket], [BytePacketBuilder], [AbstractInput] and [AbstractOutput]
* a... | 0 | null | 0 | 7 | ea35658a05cc085b97297a303a7c0de37efe0024 | 1,254 | ktor | Apache License 2.0 |
src/test/kotlin/no/nav/familie/ef/sak/infotrygd/InfotrygdPeriodeParser.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.infotrygd
import com.github.doyaaaaaken.kotlincsv.dsl.csvReader
import no.nav.familie.kontrakter.ef.infotrygd.InfotrygdEndringKode
import no.nav.familie.kontrakter.ef.infotrygd.InfotrygdPeriode
import java.net.URL
import java.time.LocalDate
import java.time.format.DateTimeFormatter
objec... | 8 | Kotlin | 2 | 0 | cc43ffc5d00f8a2ff011cf20d7c2e76844164477 | 3,308 | familie-ef-sak | MIT License |
renshi-fragments/src/test/kotlin/com/damianchodorek/renshi/utils/impl/StateTestImpl.kt | DamianChodorek | 129,797,476 | false | null | package com.damianchodorek.renshi.utils.impl
import com.damianchodorek.renshi.store.state.State
/**
* @author <NAME>
*/
data class StateTestImpl(
override val lastActionMark: Any? = null
) : State {
override fun clone(lastActionMark: Any?): State = copy(lastActionMark = lastActionMark)
} | 0 | Kotlin | 0 | 2 | c72df09782cdb9483bbde3503a167f2d5bc760b4 | 305 | renshi-redux | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ImageGlobe.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.ImageGlobe: ImageVector
get() {
if (_imageGlobe != null) {
... | 1 | null | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 5,061 | compose-fluent-ui | Apache License 2.0 |
core/src/main/java/com/infinitepower/newquiz/core/math/evaluator/internal/Expr.kt | joaomanaia | 443,198,327 | false | null | package com.infinitepower.newquiz.core.math.evaluator.internal
import java.math.BigDecimal
internal sealed class Expr {
abstract fun <R> accept(visitor: ExprVisitor<R>): R
}
internal class AssignExpr(
val name: Token,
val value: Expr
) : Expr() {
override fun <R> accept(visitor: ExprVisitor<R>): R {
... | 388 | null | 30 | 99 | 4741a80f1db8073c7d33499523117b446489bbf0 | 2,372 | newquiz | Apache License 2.0 |
src/main/kotlin/io/github/ydwk/ydwk/entities/guild/enums/MessageNotificationLevel.kt | YDWK | 527,250,343 | false | null | /*
* Copyright 2022 YDWK inc.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 9 | null | 1 | 2 | 7e479b29ddca2e0d9093ab8c5dae6892f5640d80 | 1,577 | YDWK | Apache License 2.0 |
feature_book_details/src/androidTest/java/com/allsoftdroid/feature/book_details/presentation/utils/FakeTrackListRepository.kt | pravinyo | 209,936,085 | false | null | package com.allsoftdroid.feature.book_details.presentation.utils
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.allsoftdroid.feature.book_details.data.model.TrackFormat
import com.allsoftdroid.feature.book_details.domain.model.AudioBookTrackDomainModel
import com.allsoftdroid.f... | 3 | Kotlin | 4 | 12 | 8358f69c0cf8dbde18904b0c3a304ec89b518c9b | 1,200 | AudioBook | MIT License |
src/test/kotlin/no/nav/pensjon/kalkulator/simulering/api/map/SimuleringMapperTest.kt | navikt | 596,104,195 | false | {"Kotlin": 591963, "Java": 1630, "Dockerfile": 153} | package no.nav.pensjon.kalkulator.simulering.api.map
import no.nav.pensjon.kalkulator.general.Alder
import no.nav.pensjon.kalkulator.general.Uttaksgrad
import no.nav.pensjon.kalkulator.person.Sivilstand
import no.nav.pensjon.kalkulator.simulering.*
import no.nav.pensjon.kalkulator.simulering.api.dto.*
import org.junit... | 3 | Kotlin | 0 | 0 | 759755891dc9ceca519515c7b54b5543fcd76088 | 3,968 | pensjonskalkulator-backend | MIT License |
app/src/main/java/com/dicoding/asclepius/data/retrofit/ApiService.kt | xirf | 791,855,561 | false | {"Kotlin": 38984} | package com.dicoding.asclepius.data.retrofit
import com.dicoding.asclepius.data.response.NewsResponse
import retrofit2.Call
import retrofit2.http.GET
interface ApiService {
@GET("top-headlines?country=id&category=health&q=kanker")
fun getNews(): Call<NewsResponse>
} | 0 | Kotlin | 0 | 0 | 74d5bfae46ec8328f7c02e05f3d7b6e7d698b2fe | 276 | asclepius | MIT License |
app/src/main/java/com/shannan/converter/data/source/local/RatesDatabase.kt | mohamedshanan | 359,087,790 | false | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 64fa3f1a2a11e8b56d8e7ae7daf224d17392b79c | 1,063 | CurrencyConverter | Apache License 2.0 |
compose/ui/ui-text/src/androidAndroidTest/kotlin/androidx/compose/ui/text/font/AndroidFontTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 0 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 2,743 | androidx | Apache License 2.0 |
ananas/src/main/java/iamutkarshtiwari/github/io/ananas/editimage/ImageEditorIntentBuilder.kt | iamutkarshtiwari | 125,080,173 | false | null | package iamutkarshtiwari.github.io.ananas.editimage
import android.content.Context
import android.content.Intent
class ImageEditorIntentBuilder @JvmOverloads constructor(private val context: Context,
private val sourcePath: String?,
... | 43 | null | 106 | 235 | 4ca9b159ec798946b437183f69eba89b823ae561 | 3,560 | Ananas | MIT License |
ktx-account-annotations/src/main/java/co/windly/ktxaccount/annotation/DefaultDouble.kt | tommus | 220,719,220 | false | null | package co.windly.ktxaccount.annotation
/**
* Indicates a wrapper methods for given Double property should be generated.
* <p>
* One can configure what default value will be used in case if given property was
* not set previously,
*/
@Target(AnnotationTarget.FIELD)
annotation class DefaultDouble(
/**
* The ... | 1 | Kotlin | 3 | 3 | f379ee6d1528af6a9eea8ccac01a124e835b0d6e | 446 | ktx-account | Apache License 2.0 |
plugins/kotlin/project-wizard/core/src/org/jetbrains/kotlin/tools/projectWizard/templates/JsClientTemplate.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.tools.projectWizard.templates
import org.jetbrains.annotations.NonNls
import org.jetbrains.kotlin.tools.projectWizard.WizardGradle... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 7,707 | intellij-community | Apache License 2.0 |
app/src/main/kotlin/com/absinthe/libchecker/features/applist/detail/ui/view/AppPropItemView.kt | LibChecker | 248,400,799 | false | null | package com.absinthe.libchecker.view.detail
import android.content.Context
import android.util.TypedValue
import android.view.ContextThemeWrapper
import android.view.ViewGroup
import android.widget.ImageView
import androidx.appcompat.widget.AppCompatImageButton
import androidx.appcompat.widget.AppCompatTextView
import... | 38 | null | 307 | 4,430 | 6a05bb1cff75020fd2f9f2421dfdb25b4e2cc0a9 | 3,113 | LibChecker | Apache License 2.0 |
eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/profiles/ProfileWriter.kt | Auxilor | 325,856,799 | false | {"Kotlin": 784230, "Java": 740080} | package com.willfp.eco.internal.spigot.data.profiles
import com.willfp.eco.core.EcoPlugin
import com.willfp.eco.core.data.keys.PersistentDataKey
import java.util.UUID
import java.util.concurrent.ConcurrentHashMap
/*
The profile writer exists as an optimization to batch writes to the database.
This is necessary becau... | 82 | Kotlin | 53 | 156 | 81de46a1c122a3cd6be06696b5b02d55fd9a73e5 | 2,097 | eco | MIT License |
base/src/main/kotlin/OpenSavvyBasePlugin.kt | CLOVIS-AI | 864,973,196 | false | {"Kotlin": 13992, "Shell": 556, "Dockerfile": 54} | package dev.opensavvy.conventions
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.provideDelegate
@Suppress("unused")
class OpenSavvyBasePlugin : Plugin<Project> {
override fun apply(target: Project) {
val appVersion: String? by target
val appGroup: String? by target
ta... | 0 | Kotlin | 0 | 0 | f8d3f1e184dd28dd6cea7e4e00efb6fb2fdb2ad1 | 530 | Gradle-conventions | Apache License 2.0 |
src/main/java/io/sc3/plethora/api/method/ArgumentExt.kt | SwitchCraftCC | 491,699,521 | false | null | package io.sc3.plethora.api.method
import dan200.computercraft.api.lua.IArguments
import dan200.computercraft.api.lua.LuaValues.badArgumentOf
import net.minecraft.util.math.Vec3d
import io.sc3.plethora.gameplay.modules.glasses.GlassesArgumentHelper
import io.sc3.plethora.util.Vec2d
fun IArguments.getVec2d(startIndex:... | 18 | null | 5 | 11 | 600451a6db8aecb8e6e006a14783e7d8910ca1d3 | 1,271 | Plethora-Fabric | MIT License |
sdk/src/main/java/app/knock/client/KnockFeed.kt | knocklabs | 712,054,463 | false | {"Kotlin": 39486} | package app.knock.client
import android.util.Log
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import org.phoenixframework.Channel
import org.phoenixframework.Message
import org.phoenixframework.Socket
import java.time.ZonedDateTime
@JsonIgnoreProper... | 1 | Kotlin | 0 | 0 | 881fbc99c35d2ae8a7ead8b8d6afe22d0a237081 | 12,919 | knock-android | MIT License |
embedded_video_lib/src/main/java/com/gapps/library/api/models/video/facebook/FacebookResponse.kt | TalbotGooday | 225,641,422 | false | {"Kotlin": 118314} | package com.gapps.library.api.models.video.facebook
import com.gapps.library.api.models.video.VideoPreviewModel
import com.gapps.library.api.models.video.base.BaseVideoResponse
import com.google.gson.annotations.SerializedName
data class FacebookResponse(
@SerializedName("author_name")
val authorName: String... | 3 | Kotlin | 5 | 38 | 39b1de22842a1d2ebee6edf5c2802ababd6b4f9f | 1,476 | Android-Oembed-Video | Apache License 2.0 |
admin/app/src/main/java/com/yazan98/groupyadmin/screens/TasksContainerScreen.kt | Yazan98 | 226,006,997 | false | {"Gradle": 6, "Java Properties": 4, "Shell": 2, "Text": 1, "Ignore List": 4, "Batchfile": 2, "Markdown": 1, "JSON": 2, "Proguard": 2, "Kotlin": 72, "XML": 143, "Java": 1} | package com.yazan98.groupyadmin.screens
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.yazan98.groupyadmin.R
class TasksContainerScreen : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVi... | 1 | null | 1 | 1 | bbefd5b4a567982d31cfb70ec2adb2a9fbb35ca2 | 476 | Groupy | Apache License 2.0 |
intellij-plugin/src/test/testData/migration/compat-to-operationbased/reworkInlineFragmentFields_after.kt | apollographql | 69,469,299 | false | {"Kotlin": 3463807, "Java": 198208, "CSS": 34435, "HTML": 5844, "JavaScript": 1191} | package com.example
import com.apollographql.apollo3.ApolloClient
import com.apollographql.apollo3.api.Adapter
import com.apollographql.apollo3.api.CompiledField
import com.apollographql.apollo3.api.CustomScalarAdapters
import com.apollographql.apollo3.api.Query
import com.apollographql.apollo3.api.json.JsonWriter
imp... | 164 | Kotlin | 654 | 3,750 | 174cb227efe76672cf2beac1affc7054f6bb2892 | 3,125 | apollo-kotlin | MIT License |
investigacionkotlin/app/src/main/java/com/example/investigacion/RecursoApi.kt | Goecamp | 868,163,784 | false | {"Kotlin": 13710} | package com.example.investigacion
import retrofit2.Call
import retrofit2.http.*
interface RecursoApi {
@GET("recursos")
fun getRecursos(): Call<List<Recurso>>
@GET("recursos/{id}")
fun getRecurso(@Path("id") id: Int): Call<Recurso>
@POST("recursos")
fun createRecurso(@Body recurso: Recurso):... | 0 | Kotlin | 0 | 0 | cf2431ffd804d204f0d24522a737d553e8de7b11 | 635 | Desafio3DMS | MIT License |
src/main/kotlin/org/move/cli/settings/PerProjectAptosConfigurable.kt | pontem-network | 279,299,159 | false | {"Kotlin": 2002896, "Move": 32503, "Lex": 5466, "HTML": 1904, "Java": 1275} | package org.move.cli.settings
import com.intellij.openapi.externalSystem.service.settings.ExternalSystemGroupConfigurable
import com.intellij.openapi.options.BoundConfigurable
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManager
import com.intellij.openapi.ui.DialogPanel
impor... | 8 | Kotlin | 25 | 66 | 34295007fb55b40012c87269b4720a1e018991b0 | 6,155 | intellij-move | MIT License |
koin-projects/koin-androidx-viewmodel/src/main/java/org/koin/androidx/viewmodel/compat/ViewModelCompat.kt | henriquehorbovyi | 277,036,450 | true | {"AsciiDoc": 5, "Markdown": 53, "Text": 3, "Ignore List": 6, "Gradle": 27, "Shell": 9, "Java Properties": 2, "Batchfile": 1, "INI": 9, "XML": 54, "Kotlin": 267, "Java": 6, "HTML": 2, "CSS": 1, "JavaScript": 2, "Proguard": 1, "YAML": 1} | /*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1 | Kotlin | 1 | 1 | f981f3810090b5e5e729f2f2d9aa2c077e74b0d7 | 2,357 | koin | Apache License 2.0 |
src/main/kotlin/di/Module.kt | numq | 518,925,394 | false | {"Kotlin": 86245} | package di
import file.*
import folder.*
import navigation.NavigationViewModel
import org.koin.dsl.bind
import org.koin.dsl.module
import transfer.*
import websocket.SocketClient
import websocket.SocketServer
import websocket.SocketService
val socket = module {
single { SocketClient() } bind SocketService.Client:... | 0 | Kotlin | 0 | 2 | d4e2c9888328657a0500b1b2e863926b9a122f9a | 1,693 | stash-desktop | MIT License |
play-services-core/src/main/kotlin/org/microg/gms/ui/PushNotificationFragment.kt | alexandruchircu | 230,924,375 | true | {"INI": 2, "YAML": 1, "Makefile": 1, "Gradle": 33, "Shell": 1, "Markdown": 1, "Text": 3, "Ignore List": 1, "Java Properties": 17, "XML": 162, "AIDL": 338, "Java": 656, "Protocol Buffer": 6, "Kotlin": 53, "SVG": 5, "Diff": 5, "Proguard": 2} | /*
* SPDX-FileCopyrightText: 2020, microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package org.microg.gms.ui
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.goo... | 0 | Java | 0 | 1 | 2076970d4052dd6438896f35319018202c6d7b73 | 2,131 | GmsCore | Apache License 2.0 |
app/src/main/java/com/ncs/o2/UI/Tasks/TaskPage/TaskDetailActivity.kt | arpitmx | 647,358,015 | false | {"Kotlin": 1345292} | package com.ncs.o2.UI.Tasks.TaskPage
import android.content.Intent
import android.content.IntentFilter
import android.net.ConnectivityManager
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import com.ncs.o2... | 1 | Kotlin | 2 | 2 | 3e92ac9f38735961aab7f415c85c35523d40d1bf | 5,220 | Oxygen | MIT License |
src/main/kotlin/com/pambrose/srcref/pages/Edit.kt | pambrose | 494,865,253 | false | null | package com.pambrose.srcref.pages
import com.github.pambrose.common.response.PipelineCall
import com.github.pambrose.common.response.respondWith
import com.pambrose.srcref.Api
import com.pambrose.srcref.Endpoints.EDIT
import com.pambrose.srcref.Endpoints.WHAT
import com.pambrose.srcref.QueryParams.ACCOUNT
import com.p... | 0 | Kotlin | 0 | 0 | 1820a6a709151dc0a03d38bdc4c00c0856bcaeba | 11,309 | srcref | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/notificationsalertsvsip/service/listeners/notifiers/PrisonVisitCanclledEventNotifier.kt | ministryofjustice | 603,045,531 | false | {"Kotlin": 110537, "Dockerfile": 1157} | package uk.gov.justice.digital.hmpps.notificationsalertsvsip.service.listeners.notifiers
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.notificationsalertsvsip.enums.VisitEventTy... | 3 | Kotlin | 0 | 1 | b8dcc8ace665a5d5760fc432550c161bce2f7ff4 | 1,247 | hmpps-notifications-alerts-vsip | MIT License |
src/main/kotlin/kotlinmud/helper/string/Matches.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.helper.string
fun String.matches(name: String): Boolean {
return name.toLowerCase().split(" ").any { it.length > 1 && it.startsWith(this.toLowerCase()) }
}
| 0 | Kotlin | 1 | 8 | 5560223c09f84fb79411391b301a8740e343ed4e | 179 | kotlinmud | MIT License |
server/src/main/kotlin/in/procyk/shin/db/ShortUrl.kt | avan1235 | 752,385,367 | false | {"Kotlin": 98746, "HTML": 3752, "Swift": 3219, "Dockerfile": 1187, "Makefile": 849} | package `in`.procyk.shin.db
import `in`.procyk.shin.shared.RedirectType
import org.jetbrains.exposed.dao.Entity
import org.jetbrains.exposed.dao.EntityClass
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IdTable
import org.jetbrains.exposed.sql.kotlin.datetime.timestamp
import org.pos... | 0 | Kotlin | 1 | 1 | 8900b7ae6150a76bc4fbd956b184e01bf2724193 | 1,592 | shin | MIT License |
inference/inference-tfjs/src/jsMain/kotlin/io.kinference.tfjs/operators/tensor/ArgMax.kt | JetBrains-Research | 244,400,016 | false | null | package io.kinference.tfjs.operators.tensor
import io.kinference.attribute.Attribute
import io.kinference.data.ONNXData
import io.kinference.graph.Contexts
import io.kinference.ndarray.arrays.NumberNDArrayTFJS
import io.kinference.operator.*
import io.kinference.protobuf.message.AttributeProto
import io.kinference.pro... | 7 | null | 7 | 95 | e47129b6f1e2a60bf12404d8126701ce7ef4db3a | 2,791 | kinference | Apache License 2.0 |
runtime/common/src/test/kotlin/kotlinx/serialization/protobuf/ProtobufReaderTest.kt | fvasco | 166,839,520 | true | {"Kotlin": 289081, "HTML": 2948, "Java": 1372} | /*
* Copyright 2017 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 agreed to... | 1 | Kotlin | 0 | 0 | e97b4f1f06c9522eae74cb886f109e3b2dceb6f0 | 1,747 | kotlinx.serialization | Apache License 2.0 |
app/src/main/java/dev/shorthouse/coinwatch/data/source/local/CoinLocalDataSource.kt | shorthouse | 655,260,745 | false | {"Kotlin": 359954} | package dev.shorthouse.coinwatch.data.source.local
import dev.shorthouse.coinwatch.data.source.local.model.FavouriteCoin
import kotlinx.coroutines.flow.Flow
class CoinLocalDataSource(private val favouriteCoinDao: FavouriteCoinDao) {
fun getFavouriteCoins(): Flow<List<FavouriteCoin>> {
return favouriteCoin... | 0 | Kotlin | 0 | 9 | ec946062b37a8c675798db0af440394a3c253d1d | 699 | CoinWatch | Apache License 2.0 |
mobile_app1/module994/src/main/java/module994packageKt0/Foo17.kt | uber-common | 294,831,672 | false | null | package module449packageKt0;
annotation class Foo17Fancy
@Foo17Fancy
class Foo17 {
fun foo0(){
module449packageKt0.Foo16().foo3()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
} | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 233 | android-build-eval | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | mbertram | 342,853,590 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 6f865528e61b5f8f9e2bf6f715de7c566a15365b | 3,910 | jetpack-compose-challenge-week1 | Apache License 2.0 |
compiler/testData/codegen/box/external/jvmStaticExternalPrivate.kt | JakeWharton | 99,388,807 | false | null | // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
// FULL_JDK
class C {
companion object {
private @JvmStatic external fun foo()
}
fun bar() {
foo()
}
}
fun box(): ... | 3 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 540 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/belindas_closet/screen/IndividualProductUpdate.kt | SeattleColleges | 656,918,420 | false | {"Kotlin": 132693} | package com.example.belindas_closet.screen
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column... | 39 | Kotlin | 4 | 5 | e4cb53c1fc86d44ea0ef34020215f91fb469763c | 14,771 | belindas-closet-android | MIT License |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/expect-actual-fun-or-class-ic/src/commonMain/kotlin/ExpectFunFoo.kt | JetBrains | 3,432,266 | false | null | expect fun foo(): Any
fun fooImpl() = secret | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 45 | kotlin | Apache License 2.0 |
src/main/kotlin/com/quasar/dorm/persistence/entity/AttributeEntity.kt | coolsamson7 | 856,851,180 | false | {"Kotlin": 131719, "ANTLR": 26817} | package com.quasar.dorm.persistence.entity
/*
* @COPYRIGHT (C) 2023 <NAME>
*
* All rights reserved
*/
import jakarta.persistence.*
import java.io.Serializable
data class AttributeId(private val entity: Int = 0, private val attribute: String = "") : Serializable
@Entity
@Table(name="ATTRIBUTE",
indexes = [
... | 0 | Kotlin | 0 | 0 | 8a0fa2f86c2e92c6b192c53bd485d2a078e1e27e | 1,267 | dorm | Apache License 2.0 |
src/main/kotlin/jp/assasans/araumi/tx/server/ecs/components/entrance/SessionSecurityPublicComponent.kt | AraumiTX | 604,259,602 | false | null | package jp.assasans.araumi.tx.server.ecs.components.entrance
import jp.assasans.araumi.tx.server.ecs.components.IComponent
import jp.assasans.araumi.tx.server.protocol.ProtocolId
@ProtocolId(1439792100478)
data class SessionSecurityPublicComponent(
val publicKey: String
) : IComponent
| 0 | Kotlin | 2 | 3 | 6adc36adc5f7d83c965143f5d3108f6d6ceaf186 | 290 | game-server | MIT License |
app/src/main/java/com/example/tiptime/UserRegister.kt | adorain | 786,890,454 | false | {"Kotlin": 365003} | package com.example.tiptime
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.semantics.SemanticsProperties.Password
import androidx.lifecycle.ViewModel
import com.example.tiptime.Data.Booking
import com.example.t... | 0 | Kotlin | 1 | 0 | 2405735cc1d0476e65157ddd05302ba8d0a6c6dc | 1,742 | development | Apache License 2.0 |
firebase-inappmessaging-display/src/test/java/com/google/firebase/inappmessaging/display/ktx/InAppMessagingDisplayTests.kt | firebase | 146,941,185 | false | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 442 | null | 575 | 2,270 | 0697dd3aadd6c13d9e2d321c75173992bfbaac3b | 2,533 | firebase-android-sdk | Apache License 2.0 |
imx-core-sdk-kotlin-jvm/src/main/kotlin/com/immutable/sdk/ImmutableX.kt | immutable | 467,767,205 | false | null | package com.immutable.sdk
import com.google.common.annotations.VisibleForTesting
import com.immutable.sdk.Constants.DEFAULT_MOONPAY_COLOUR_CODE
import com.immutable.sdk.api.AssetsApi
import com.immutable.sdk.api.BalancesApi
import com.immutable.sdk.api.CollectionsApi
import com.immutable.sdk.api.DepositsApi
import com... | 2 | null | 2 | 5 | 4a823d30db92356c325140874f5ba708547585ca | 46,200 | imx-core-sdk-kotlin-jvm | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceKeys.kt | WorldHeaven777 | 329,142,416 | false | null | package eu.kanade.tachiyomi.data.preference
/**
* This class stores the keys for the preferences in the application.
*/
object PreferenceKeys {
const val theme = "pref_theme_key"
const val rotation = "pref_rotation_type_key"
const val enableTransitions = "pref_enable_transitions_key"
const val do... | 0 | null | 1 | 2 | 7ef9dcbc12905f66966a7c561809f469b9c3d9db | 4,747 | MangaDesu | Apache License 2.0 |
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/util/LibraryUtils.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.api.impl.base.util
import com.intellij.openapi.vfs.StandardFileSystems
... | 9 | null | 4980 | 40,442 | 817f9f13b71d4957d8eaa734de2ac8369ad64770 | 2,037 | kotlin | Apache License 2.0 |
buildSrc/src/main/kotlin/trikita/anvilgen/DSLGeneratorTask.kt | anvil-ui | 29,293,245 | false | null | package trikita.anvilgen
import androidx.annotation.NonNull
import com.squareup.javapoet.*
import groovy.lang.Closure
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
import java.io.File
import java.lang.Deprecated
import java.lang.reflect.Method
import java.net.URL
import java.net.URLClassLoad... | 41 | null | 93 | 1,446 | 0825ae9556aac5dcae81c4bf176a2a1c1580f585 | 17,035 | anvil | MIT License |
chain-adapter/src/main/kotlin/com/d3/chainadapter/adapter/ChainAdapter.kt | BulatSaif | 188,790,713 | true | {"Kotlin": 952326, "Java": 385476, "Dockerfile": 6699, "Shell": 5689, "HTML": 5232, "Python": 4228, "Groovy": 449} | package com.d3.chainadapter.adapter
import com.d3.chainadapter.CHAIN_ADAPTER_SERVICE_NAME
import com.d3.chainadapter.provider.LastReadBlockProvider
import com.d3.commons.config.RMQConfig
import com.d3.commons.sidechain.iroha.IrohaChainListener
import com.d3.commons.sidechain.iroha.util.getBlockRawResponse
import com.d... | 0 | Kotlin | 0 | 0 | 11f0109480372549542f59f71b7e9b1bab604e30 | 5,834 | notary | Apache License 2.0 |
app/src/main/java/com/jacktor/batterylab/ApplicationBackup.kt | jacktor-stan | 773,048,759 | false | {"Kotlin": 705997, "Java": 4558, "C++": 3298, "C": 458, "CMake": 284} | package com.jacktor.batterylab
import android.app.backup.BackupAgent
import android.app.backup.BackupDataInput
import android.app.backup.BackupDataOutput
import android.os.ParcelFileDescriptor
import com.jacktor.batterylab.utilities.PreferencesKeys.BATTERY_LEVEL_TO
import com.jacktor.batterylab.utilities.PreferencesKe... | 0 | Kotlin | 1 | 3 | 6409caae85d430339d94b8802c3a8ecfb7ab746f | 2,787 | battery-lab | Apache License 2.0 |
compiler/testData/diagnostics/tests/inference/regressions/kt1718.kt | JakeWharton | 99,388,807 | false | null | // !CHECK_TYPE
//KT-1718 compiler error when not using temporary variable
package n
import java.util.ArrayList
import checkSubtype
fun test() {
val list = arrayList("foo", "bar") + arrayList("cheese", "wine")
checkSubtype<List<String>>(list)
//check it's not an error type
checkSubtype<Int>(<!TYPE_MIS... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 611 | kotlin | Apache License 2.0 |
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/internal/component/impl/DefaultLogArea.kt | Hexworks | 94,116,947 | false | null | package org.hexworks.zircon.internal.component.impl
import org.hexworks.cobalt.logging.api.LoggerFactory
import org.hexworks.zircon.api.builder.component.ParagraphBuilder
import org.hexworks.zircon.api.builder.component.TextBoxBuilder
import org.hexworks.zircon.api.component.*
import org.hexworks.zircon.api.component.... | 42 | null | 138 | 735 | 9eeabb2b30e493189c9931f40d48bae877cf3554 | 4,961 | zircon | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/qbusiness/IndexStatisticsPropertyDsl.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 5432532} | package com.faendir.awscdkkt.generated.services.qbusiness
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.qbusiness.CfnIndex
@Generated
public fun buildIndexStatisticsProperty(initializer: @AwsCdkDsl
CfnIndex.IndexStatisticsProper... | 1 | Kotlin | 0 | 4 | 3d0f80e3da7d0d87d9a23c70dda9f278dbd3f763 | 458 | aws-cdk-kt | Apache License 2.0 |
app/src/test/java/com/example/cupcake/ViewModelTests.kt | rsl50 | 552,575,222 | false | {"Kotlin": 22178} | package com.example.cupcake
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.example.cupcake.model.OrderViewModel
import org.junit.Assert.assertEquals
import org.junit.Rule
import org.junit.Test
class ViewModelTests {
@get:Rule
var instantTaskExecutorRule = InstantTaskExecutorRule... | 0 | Kotlin | 0 | 0 | fffa31a0bf7f4c20cb7c633f9b531d2b2634e12e | 1,280 | android-basics-kotlin-cupcake-app | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.