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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
samples/aap-midi-device-service/src/main/java/org/androidaudioplugin/midideviceservice/WebUIHelper.kt | atsushieno | 186,288,472 | false | null | package org.androidaudioplugin.midideviceservice
import android.content.Context
import org.androidaudioplugin.AudioPluginHostHelper
import org.androidaudioplugin.PluginInformation
import org.androidaudioplugin.PortInformation
import java.io.ByteArrayOutputStream
import java.io.InputStreamReader
import java.util.zip.Zi... | 26 | C++ | 1 | 32 | 712dddf1ba76df04a2f5fb780e499f1bd480dd07 | 3,988 | android-audio-plugin-framework | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/VCpuCountRangeRequestPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ec2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ec2.CfnSpotFleet
@Generated
public fun buildVCpuCountRangeRequestProperty(initializer: @AwsCdkDsl
CfnSpotFleet.VCpuCountRangeReque... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 485 | aws-cdk-kt | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/VCpuCountRangeRequestPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ec2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ec2.CfnSpotFleet
@Generated
public fun buildVCpuCountRangeRequestProperty(initializer: @AwsCdkDsl
CfnSpotFleet.VCpuCountRangeReque... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 485 | aws-cdk-kt | Apache License 2.0 |
src/test/kotlin/io/cloudflight/license/gradle/test/util/BuildResultExt.kt | cloudflightio | 490,456,141 | false | {"Kotlin": 89100, "Java": 6193} | package io.cloudflight.license.gradle.test.util
import org.gradle.testkit.runner.BuildResult
private val lineEndingRegex = "\r\n|\r".toRegex()
val BuildResult.normalizedOutput: String
get() {
return this.output.replace(lineEndingRegex, "\n");
} | 1 | Kotlin | 1 | 2 | 5d697a290ac02d210fda29e3bd222caa8864dd5d | 263 | license-gradle-plugin | Apache License 2.0 |
doc-processor-gradle-plugin/src/main/kotlin/nl/jolanrensen/docProcessor/defaultProcessors/IncludeDocProcessor.kt | Jolanrensen | 583,384,731 | false | null | package nl.jolanrensen.docProcessor.defaultProcessors
import nl.jolanrensen.docProcessor.DocContent
import nl.jolanrensen.docProcessor.DocumentableWrapper
import nl.jolanrensen.docProcessor.ProgrammingLanguage.JAVA
import nl.jolanrensen.docProcessor.ProgrammingLanguage.KOTLIN
import nl.jolanrensen.docProcessor.TagDocP... | 2 | Kotlin | 0 | 10 | 5c48bffd09a762854c7e207bab16fcb757c66778 | 9,600 | docProcessorGradlePlugin | MIT License |
appbaselib/src/main/java/dev/entao/kan/appbase/ex/StateList.kt | yangentao | 181,066,094 | false | null | @file:Suppress("unused")
package dev.entao.kan.appbase.ex
import android.content.res.ColorStateList
import android.graphics.drawable.Drawable
import android.graphics.drawable.StateListDrawable
enum class ViewState(val value: Int) {
Selected(android.R.attr.state_selected), Unselected(-android.R.attr.state_select... | 0 | Kotlin | 0 | 0 | 9b7d92aaa4613eca98642760ea5c0a97aabb366b | 4,298 | appbase | MIT License |
android/src/main/kotlin/com/airship/flutter/Extensions.kt | imjacobclark | 260,253,263 | true | {"Dart": 40785, "Kotlin": 32813, "Swift": 32634, "Shell": 3417, "Ruby": 3161, "Objective-C": 369} | package com.airship.flutter
import android.os.Build
import android.os.Bundle
import android.service.notification.StatusBarNotification
import androidx.annotation.RequiresApi
import com.urbanairship.analytics.CustomEvent
import com.urbanairship.json.JsonMap
import com.urbanairship.push.NotificationInfo
import com.urban... | 0 | null | 0 | 0 | 66332788fc8e7bcf18efec06a8a3b297de25d108 | 1,852 | airship-flutter | Apache License 2.0 |
src/main/kotlin/org/thiyagu/reactive/domain/MessageDecorator.kt | thiyagu06 | 232,384,825 | false | null | package org.thiyagu.reactive.domain
import software.amazon.awssdk.services.sqs.model.Message
data class MessageDecorator(val isSuccessfullyProcessed: Boolean, val message: Message)
| 11 | Kotlin | 0 | 2 | f0b6847fddf404d9dbd023ae1361567f7900f395 | 183 | reactive-sqs-consumer | Apache License 2.0 |
core/src/test/java/com/github/marcherdiego/swipecompare/core/base/CrosshairSwipeCompareLayoutTest.kt | marcherdiego | 369,514,995 | false | null | package com.github.marcherdiego.swipecompare.core.base
import android.app.Application
import android.content.Context
import android.graphics.Color
import android.graphics.PorterDuff.Mode
import android.util.AttributeSet
import android.view.View
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
im... | 0 | Kotlin | 0 | 1 | 01ab4c776ff90313392fee8a5a1249dd2b4988df | 13,888 | swipe-compare | Apache License 2.0 |
src/test/kotlin/com/github/mpe85/grampa/rule/CodePointPredicateRuleTests.kt | mpe85 | 138,511,038 | false | null | package com.github.mpe85.grampa.rule
import com.github.mpe85.grampa.context.ParserContext
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import io.mockk.every
import io.mockk.mockk
import java.util.function.Predicate
class CodePointPredicateRuleTes... | 7 | null | 1 | 13 | ecbd5593a7dee03c07e70aba35ec479a4d43db1e | 1,663 | grampa | MIT License |
app/src/main/java/com/flexcode/devspace/github/domain/model/Followers.kt | Felix-Kariuki | 533,876,693 | false | null | package com.flexcode.devspace.github.domain.model
import kotlinx.serialization.Serializable
@Serializable
data class Followers(
val avatar_url: String?,
val id: Int?,
val login: String?,
)
| 0 | Kotlin | 1 | 6 | 64fa5ef872adeb4c746accdbabe7cfd6c468cfc8 | 203 | DevSpace | MIT License |
app/src/main/java/com/flexcode/devspace/github/domain/model/Followers.kt | Felix-Kariuki | 533,876,693 | false | null | package com.flexcode.devspace.github.domain.model
import kotlinx.serialization.Serializable
@Serializable
data class Followers(
val avatar_url: String?,
val id: Int?,
val login: String?,
)
| 0 | Kotlin | 1 | 6 | 64fa5ef872adeb4c746accdbabe7cfd6c468cfc8 | 203 | DevSpace | MIT License |
tea-time-travel-plugin/src/main/java/io/github/xlopec/tea/time/travel/plugin/feature/notification/Command.kt | Xlopec | 188,455,731 | false | {"Kotlin": 494935, "Shell": 1565} | package io.github.xlopec.tea.time.travel.plugin.feature.notification
import io.github.xlopec.tea.time.travel.plugin.integration.Command
import io.github.xlopec.tea.time.travel.plugin.integration.Message
import io.github.xlopec.tea.time.travel.plugin.integration.NotifyCommand
import io.github.xlopec.tea.time.travel.plu... | 0 | Kotlin | 1 | 11 | c7e980cd095d09920724cae2dbcda40a493a2206 | 1,156 | Tea-bag | MIT License |
app/src/androidTest/java/me/rei_m/hyakuninisshu/ApplicationTest.kt | tiepdotme | 215,685,396 | true | {"Kotlin": 511033, "Java": 22413, "HTML": 14459} | ///*
// * Copyright (c) 2018. <NAME>
// *
// * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
// * compliance with the License. You may obtain a copy of the License at
// *
// * http://www.apache.org/licenses/LICENSE-2.0
// *
// * Unless required by applicable law or... | 0 | null | 0 | 0 | c98fffd659ae4206c5de6c91ee58ac7b4e4a9618 | 939 | android_hyakuninisshu | Apache License 2.0 |
GCMessengerSDKSample/app/src/main/java/com/genesys/cloud/messenger/sample/data/repositories/JsonSampleRepository.kt | MyPureCloud | 551,090,287 | false | {"Kotlin": 25855, "Java": 608} | package com.genesys.cloud.messenger.sample.data.repositories
import android.content.Context
import com.google.gson.Gson
import com.google.gson.JsonObject
import java.lang.ref.WeakReference
class JsonSampleRepository(context: Context) : SampleRepository {
private val wContext: WeakReference<Context> = WeakReferen... | 1 | Kotlin | 1 | 2 | 35ab54ffa819685b8e9ee616a99337cc6ff471ee | 946 | mobiledx-samples-android | MIT License |
GCMessengerSDKSample/app/src/main/java/com/genesys/cloud/messenger/sample/data/repositories/JsonSampleRepository.kt | MyPureCloud | 551,090,287 | false | {"Kotlin": 25855, "Java": 608} | package com.genesys.cloud.messenger.sample.data.repositories
import android.content.Context
import com.google.gson.Gson
import com.google.gson.JsonObject
import java.lang.ref.WeakReference
class JsonSampleRepository(context: Context) : SampleRepository {
private val wContext: WeakReference<Context> = WeakReferen... | 1 | Kotlin | 1 | 2 | 35ab54ffa819685b8e9ee616a99337cc6ff471ee | 946 | mobiledx-samples-android | MIT License |
app/src/main/java/com/example/driverchecker/media/FrameExtractorInterface.kt | mackness33 | 631,218,727 | false | {"Kotlin": 362643, "Python": 11567} | package com.example.driverchecker.media
interface FrameExtractorInterface {
fun onCurrentFrameExtracted(currentFrame: Frame)
fun onAllFrameExtracted(processedFrameCount: Int, processedTimeMs: Long)
} | 0 | Kotlin | 0 | 0 | 99865b5db7b100cab5234c28a0fecd19226ab701 | 208 | driver_checker | MIT License |
compiler/testData/diagnostics/tests/when/guard/elvisOperator.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // LANGUAGE: +WhenGuards
// DIAGNOSTICS: -SENSELESS_COMPARISON, -USELESS_IS_CHECK, -DUPLICATE_LABEL_IN_WHEN
sealed class NullableBooleanHolder(val value: Boolean?)
fun elvisInGuard(x: Any, y: Boolean?) {
when (x) {
is NullableBooleanHolder <!UNSUPPORTED_FEATURE!>if y ?: y<!> -> 1
is NullableBoolea... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 669 | kotlin | Apache License 2.0 |
src/test/kotlin/Day09Test.kt | tahlers | 725,424,936 | false | {"Kotlin": 65626} | import aoc23.Day09
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
class Day09Test : FunSpec({
val sample = """
0 3 6 9 12 15
1 3 6 10 15 21
10 13 16 21 30 45
""".trimIndent()
test("calculate sum of extrapolated values of sample") {
val result = Day09.calcu... | 0 | Kotlin | 0 | 0 | 0cd9676a7d1fec01858ede1ab0adf254d17380b0 | 1,078 | advent-of-code-23 | Apache License 2.0 |
ComposeAnimationKit/src/main/java/com/lie/composeanimationkit/animation/EatBeanAnimation.kt | LiePy | 568,339,579 | false | null | /*
* Copyright (c) 2023.
* @username: LiePy
* @file: EatBeanAnimation.kt
* @project: ComposeAnimationKit
* @model: ComposeAnimationKit.ComposeAnimationKit.main
* @date: 2023/2/18 上午12:53
*/
package com.lie.composeanimationkit.animation
import androidx.compose.animation.core.*
import androidx.compose.foundation... | 0 | Kotlin | 0 | 7 | 52e21e3f3f88b7da7d1bd345714edda7bc57d0e8 | 2,278 | ComposeAnimationKit | Apache License 2.0 |
src/main/kotlin/top/kikt/excel/writer/ExcelTypeAnno.kt | CaiJingLong | 571,610,899 | false | null | package top.kikt.excel.writer
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
annotation class ExcelTypeAnno(
val value: ExcelType
) | 0 | Kotlin | 0 | 1 | 9619e8525aad6065907b815b28fb3c7ef6d61b98 | 161 | excel_kt | Apache License 2.0 |
app/src/main/java/com/example/runningroute/ui/fragments/SetupFragment.kt | tej1562 | 379,552,782 | false | null | package com.example.runningroute.ui.fragments
import android.content.SharedPreferences
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.navigation.NavOptions
import androidx.navigation.fragment.findNavController
import com.example.runningroute.R
import com.example... | 0 | Kotlin | 1 | 0 | f2fbde1ca889d58f74555e372c181278236a8027 | 2,318 | RunningRoute | Apache License 2.0 |
app/src/main/java/com/funnypaper/simme/data/local/dao/MetaDataDao.kt | FunnyPaper | 731,113,350 | false | {"Kotlin": 213861} | package com.funnypaper.simme.data.local.dao
import androidx.room.Dao
import androidx.room.Query
import com.funnypaper.simme.data.local.entity.MetaDataEntity
import kotlinx.coroutines.flow.Flow
@Dao
interface MetaDataDao : ICRUDDao<MetaDataEntity> {
@Query("SELECT * FROM meta_data")
fun getAllMetaData(): Flow<... | 0 | Kotlin | 0 | 0 | 711014b27bb8394006587a0f698232f3e43e63a4 | 712 | SIMME | MIT License |
idea/testData/intentions/addBracesToAllBranches/if3.kt | JetBrains | 278,369,660 | false | null | // IS_APPLICABLE: false
fun test(i: Int) {
<caret>if (i == 1) {
println(1)
} else if (i == 2) {
println(2)
} else {
println(3)
}
}
fun println(i: Int) {} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 194 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/mobi/appcent/openai/models/CreateChatCompletionStreamResponseChoices.kt | AppcentMobile | 624,070,344 | false | null | package mobi.appcent.openai.models
import com.google.gson.annotations.SerializedName
/**
* Created by erenalpaslan on 9.04.2023
*/
data class CreateChatCompletionStreamResponseChoices(
val delta: ChatCompletionResponseMessage,
val index: Int,
@SerializedName("finish_reason")
val finishReason: String... | 1 | Kotlin | 0 | 6 | 0bcf3b69ff1ba8e337113f74e4b0fb8880b28c06 | 324 | ACMOpenAI-Android | MIT License |
picture_library/src/main/java/com/luck/picture/lib/instagram/PictureSelectorInstagramStyleActivity.kt | MoustafaShahin | 365,029,122 | false | null | package com.luck.picture.lib.instagram
import android.Manifest
import android.net.Uri
import android.os.Handler
import android.os.SystemClock
import android.view.View
import android.widget.Button
import android.widget.ImageView
import com.luck.picture.lib.camera.listener.CameraListener
import java.io.File
import java.... | 0 | Kotlin | 0 | 0 | 6cc5ff6a5c86c491a852304c58ce979ed42d6225 | 92,703 | InsGallery | Apache License 2.0 |
src/test/kotlin/com/quakbo/euler/Euler10Test.kt | quincy | 120,237,243 | false | null | package com.quakbo.euler
import org.hamcrest.CoreMatchers.`is`
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
class Euler10Test {
@Test
fun `sum of primes below 10 is 17`() {
assertThat(Sieve(10).primes().sum(), `is`(17L))
}
}
| 0 | Kotlin | 0 | 0 | 01d96f61bda6e87f1f58ddf7415d9bca8a4913de | 270 | euler-kotlin | The Unlicense |
bsky/src/main/kotlin/com/milkcocoa/info/milkyway/api/bsky/graph/GetListMutes.kt | milkcocoa0902 | 777,786,753 | false | {"Kotlin": 218032} | package com.milkcocoa.info.milkyway.api.bsky.graph
import com.milkcocoa.info.milkyway.atproto.method.AtProtocolGet
import com.milkcocoa.info.milkyway.bsky.action.BskyActions
import com.milkcocoa.info.milkyway.domain.Domain
import com.milkcocoa.info.milkyway.models.AtProtocolModel
import com.milkcocoa.info.milkyway.mod... | 0 | Kotlin | 0 | 0 | e8cf6757bc1041e3b3b381e4ad3ce5e64e869d19 | 1,080 | Milkyway | MIT License |
src/main/kotlin/org/flux/lexical/form/InternalFormRecord.kt | alexandrustoica | 108,236,730 | false | {"Kotlin": 15313, "FLUX": 575, "Dockerfile": 163} | package org.flux.lexical.form
import org.flux.lexical.token.Token
internal data class InternalFormRecord(
val value: Token,
val symbolKey: Int? = null) | 0 | Kotlin | 0 | 1 | 4fd4924ccbadb8cffd2c3eb070ba7f8ff2e5a043 | 170 | flux-lex | MIT License |
android/src/main/java/com/sevencooks/rnbranch/JsonUtils.kt | sevencooks-gmbh-co-kg | 386,330,637 | false | null | package com.sevencooks.rnbranch
import com.facebook.react.bridge.WritableArray
import com.facebook.react.bridge.WritableMap
import com.facebook.react.bridge.WritableNativeArray
import com.facebook.react.bridge.WritableNativeMap
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
@Throws... | 0 | Kotlin | 0 | 0 | 34d0d19aac72646a022a800fdcc776092b5c6e86 | 1,731 | sc-react-native-branch | MIT License |
syftlib/src/main/java/org/openmined/syft/domain/LocalConfiguration.kt | telred-llc | 256,431,100 | true | {"Kotlin": 89649, "Java": 657} | package org.openmined.syft.domain
data class LocalConfiguration(
val downloadPath: String,
val modelLocation: String,
val plansLocation: String
)
| 0 | null | 0 | 0 | c244e606ce463140619ae877fc2ce25d18f665a0 | 159 | KotlinSyft | Apache License 2.0 |
app/src/main/java/com/wisnu/kurniawan/composetodolist/features/todo/detail/ui/TaskScreen.kt | riskikukuh | 411,303,348 | true | {"Kotlin": 514647} | package com.wisnu.kurniawan.composetodolist.features.todo.detail.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fill... | 0 | null | 0 | 0 | ce8bb48334442a5e57c245b89354d92c798bdc5a | 9,002 | Compose-ToDo | Apache License 2.0 |
android/src/main/kotlin/com/tpay/TpayPlugin.kt | tpay-com | 738,105,442 | false | {"Kotlin": 88018, "Dart": 76302, "Swift": 62685, "Ruby": 2220, "Objective-C": 38} | package com.tpay
import androidx.annotation.NonNull
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
impo... | 1 | Kotlin | 1 | 1 | 5579f558df6d019b539fc197b61cfbc760d0b857 | 1,667 | tpay-flutter | MIT License |
app/src/main/java/com/yjf/myvideo/ui/publish/PublishActivity.kt | onemorechoice | 302,218,017 | false | null | package com.yjf.myvideo.ui.publish
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.yjf.libnavannotion.ActivityDestination
import com.yjf.myvideo.R
@ActivityDestination(pageUrl = "main/tabs/publish")
class PublishActivity : AppCompatActivity() {
override fun onCreate(savedInstan... | 0 | Kotlin | 0 | 0 | da73f50296c5718717e0c0d33a27e625dac2b584 | 440 | MyVideo | Apache License 2.0 |
Tweet.kt | Melliebaron | 469,009,612 | false | {"Kotlin": 11210} | package com.codepath.apps.restclienttemplate.models
import org.json.JSONArray
import org.json.JSONObject
class Tweet {
var body: String=""
var createAt: String=""
var user: User?=null
companion object{
fun fromJson(jsonObject: JSONObject): Tweet{
val tweet=Tweet()
twee... | 1 | Kotlin | 0 | 0 | baf08dc656cf1d17680eef14e6a3e5f67b992d13 | 804 | TwitterApp | Apache License 2.0 |
testing/cpbs/packaging-verification-app-v1/src/main/kotlin/com/r3/corda/testing/packagingverification/MintRequest.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package com.r3.corda.testing.packagingverification
data class MintRequest(
val stateValues: List<Long>
)
| 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 110 | corda-runtime-os | Apache License 2.0 |
src/test/kotlin/it/norangeb/algorithms/datastructures/dictionary/HashTableTest.kt | norangebit-unisannio-computer-science | 172,945,724 | false | null | /*
* MIT License
*
* Copyright (c) 2019 norangebit
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modif... | 0 | Kotlin | 0 | 0 | 6a554c55c4d151da0a4fc45d63b79e5fde9e1286 | 2,571 | lm-tecniche-di-programmazione | MIT License |
library/src/main/kotlin/org/mjdev/libs/barcodescanner/bysquare/data/InvoiceItemsBase.kt | mimoccc | 804,873,510 | false | {"Kotlin": 244846, "Shell": 336} | package org.mjdev.libs.barcodescanner.bysquare.data
import org.mjdev.libs.barcodescanner.bysquare.base.BysquareDocument
import org.mjdev.libs.barcodescanner.bysquare.base.InvalidValueException
import org.mjdev.libs.barcodescanner.bysquare.data.invoiceitems.InvoiceLines
open class InvoiceItemsBase : BysquareDocument {... | 0 | Kotlin | 0 | 0 | 6f99b62284c335faeef849c5cee8771ffc760ed6 | 649 | barcodescanner | Apache License 2.0 |
idea/tests/testData/structuralsearch/countFilter/minConstructorCallee.kt | JetBrains | 278,369,660 | false | null | <warning descr="SSR">open class Foo</warning>
class Bar: Foo() | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 63 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/breezefieldsalesramoagritech/features/newcollection/model/NewCollectionListResponseModel.kt | DebashisINT | 854,564,608 | false | {"Kotlin": 15901808, "Java": 1029155} | package com.breezefieldsalesramoagritech.features.newcollection.model
import com.breezefieldsalesramoagritech.app.domain.CollectionDetailsEntity
import com.breezefieldsalesramoagritech.base.BaseResponse
import com.breezefieldsalesramoagritech.features.shopdetail.presentation.model.collectionlist.CollectionListDataMode... | 0 | Kotlin | 0 | 0 | 29fd3e9483a3ba334f6f81e124877e1e357f8c6f | 562 | RamoAgritech | Apache License 2.0 |
app/src/main/java/com/isanz/inmomarket/MiniPropertyFragment.kt | Zenin0 | 777,260,226 | false | {"Kotlin": 100948} | package com.isanz.inmomarket
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.bumptech.glide.Glide
impo... | 0 | Kotlin | 0 | 1 | f7f9d57baf763527bb0f55a9eaf796f26d37e2eb | 2,527 | InmoMarket | Creative Commons Zero v1.0 Universal |
java/tesseract-ipc/src/main/java/one/tesseract/ipc/activity/ActivityMonitor.kt | tesseract-one | 515,723,398 | false | {"Rust": 104480, "Kotlin": 26798} | //===------------ ActivityMonitor.kt --------------------------------------------===//
// Copyright 2022, Tesseract Systems, 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
//
//... | 4 | Rust | 2 | 2 | c544442aa1cd96173ba7f9bac09b5eae2fd5bbb8 | 2,456 | Tesseract.android | Apache License 2.0 |
reflekt-plugin/src/test/resources/org/jetbrains/reflekt/plugin/compiler/code-gen/general-library-calling/objects/objects-5/objects-5.kt | JetBrains-Research | 293,503,377 | false | {"Kotlin": 397259, "Java": 35379} | // FILE: TestCase.kt
import org.jetbrains.reflekt.Reflekt
import org.jetbrains.reflekt.test.common.*
fun main() {
Reflekt.objects().withSuperType<AInterface1>().toList()
}
| 13 | Kotlin | 9 | 325 | ae53618880e5eb610ddeb2792d63208eade951a8 | 177 | reflekt | Apache License 2.0 |
app/src/main/java/com/example/foodapp/ui/fragments/recipes/Recipes.kt | AkosoCodes | 689,351,385 | false | {"Kotlin": 27659} | package com.example.foodapp.ui.fragments.recipes
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget... | 0 | Kotlin | 0 | 0 | 37f39094ab0fa821db1305351c93a97335b51e15 | 4,478 | Recipe-Finder-App | MIT License |
app/src/main/java/ru/beryukhov/coffeegram/aa/Film.kt | phansier | 274,754,270 | false | null | package ru.beryukhov.coffeegram.aa
import android.os.Build
import androidx.annotation.ColorRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.... | 3 | null | 25 | 379 | 3081b82ecae2dd6bf8e894ec3680885b41b426c6 | 9,145 | Coffeegram | Apache License 2.0 |
libraries/core/src/main/kotlin/io/element/android/libraries/core/coroutine/ChildScopeOf.kt | element-hq | 546,522,002 | false | {"Kotlin": 8692554, "Python": 57175, "Shell": 39911, "JavaScript": 20399, "Java": 9607, "HTML": 9416, "CSS": 2519, "Ruby": 44} | /*
* Copyright (c) 2023 New Vector Ltd
*
* 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... | 263 | Kotlin | 129 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 1,528 | element-x-android | Apache License 2.0 |
app/src/test/java/me/ycdev/android/devtools/sampler/sys/SysCpuTrackerTest.kt | yongce | 12,663,172 | false | {"Gradle": 9, "Git Config": 1, "INI": 1, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "XML": 43, "Java": 6, "Java Properties": 1, "YAML": 1, "Kotlin": 58, "Proguard": 2} | package me.ycdev.android.devtools.sampler.sys
import android.os.SystemClock
import com.google.common.truth.Truth.assertThat
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import io.mockk.every
import io.mockk.mockkStatic
import me.ycdev.android.devtools.sampler.cpu.CpuUtils
import me.ycdev.androi... | 0 | Kotlin | 5 | 5 | 7a543019bb63189d1ca253c68753e746ca332970 | 2,406 | DevTools | Apache License 2.0 |
plugins/tower/src/main/kotlin/tower/api/Packets.kt | pluginloader | 354,578,063 | false | null | package tower.api
interface Packet
interface Request<T: Response>
interface Response | 0 | Kotlin | 0 | 0 | e039d256d2e26ffeee55bd3c4f46de973b024b3a | 87 | mono | MIT License |
features/quarterlies/src/test/kotlin/app/ss/quarterlies/QuarterliesUseCaseImplTest.kt | Adventech | 65,243,816 | false | {"Kotlin": 1669895, "Java": 17228, "CSS": 9010, "JavaScript": 7718, "HTML": 2229, "Shell": 544} | package app.ss.quarterlies
import app.ss.models.SSQuarterly
import app.ss.quarterlies.model.GroupedQuarterlies
import app.ss.quarterlies.model.spec
import kotlinx.collections.immutable.persistentListOf
import org.amshove.kluent.shouldBeEqualTo
import org.junit.Test
class QuarterliesUseCaseImplTest {
private val ... | 2 | Kotlin | 49 | 171 | 2cc105ea76c7fdf979b0b6ee1098f413c1aa009d | 1,455 | sabbath-school-android | MIT License |
SimpleFlashCard/app/src/main/java/com/greimul/simpleflashcard/viewmodel/DeckViewModel.kt | GreimuL | 241,758,695 | false | null | package com.greimul.simpleflashcard.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.greimul.simpleflashcard.db.Deck
import com.greimul.simpleflashcard.db.DeckDatabase
import com.greimul.simpleflas... | 0 | Kotlin | 0 | 0 | 31a78786053a86c568da9daddd99b7e0ff94a70b | 1,089 | SimpleFlashCard | MIT License |
src/main/kotlin/team/msg/hiv2/domain/reservation/application/validator/ReservationValidatorImpl.kt | GSM-MSG | 634,687,373 | false | {"Kotlin": 200364, "Dockerfile": 177} | package team.msg.hiv2.domain.reservation.application.validator
import org.springframework.stereotype.Component
import team.msg.hiv2.domain.homebase.exception.NotReserveHomeBaseHourException
import java.time.DayOfWeek
import java.time.LocalDateTime
@Component
class ReservationValidatorImpl : ReservationValidator {
... | 1 | Kotlin | 0 | 12 | db8d80b868a1cc02b27ec5b8fad357cc67039b5c | 1,391 | Hi-v2-BackEnd | MIT License |
app/src/main/java/com/sample/data/Repository.kt | TylerOHearn | 654,736,981 | false | null | package com.sample.data
import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.sample.data.entities.Characters
import com.sample.data.entities.TvShowData
import com.sample.networking.RetrofitClient
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
object Repository {
... | 0 | Kotlin | 0 | 0 | 016b37034328a8c12a8a8e89ec72082f64e670d3 | 994 | Doughnuts-Directory | Apache License 2.0 |
dashkit/src/main/kotlin/io/horizontalsystems/dashkit/messages/GetMasternodeListDiffMessage.kt | horizontalsystems | 147,199,533 | false | null | package io.horizontalsystems.dashkit.messages
import io.horizontalsystems.bitcoincore.extensions.toReversedHex
import io.horizontalsystems.bitcoincore.io.BitcoinOutput
import io.horizontalsystems.bitcoincore.network.messages.IMessage
import io.horizontalsystems.bitcoincore.network.messages.IMessageSerializer
class Ge... | 39 | null | 68 | 157 | ced5801e55d0fd27f4b092022e9df6c23831e73b | 1,023 | bitcoin-kit-android | MIT License |
Notification/src/main/java/com/sdk/notification/model/legacy/InPlayerPaymentCardFailedNotification.kt | inplayer-org | 161,477,099 | false | null | package com.sdk.notification.model.legacy
import com.sdk.notification.model.notification.InPlayerNotificationEntity
data class InPlayerPaymentCardFailedNotification(val resource: InPlayerPaymentCardFailedNotificationResource,
override val type: String, override val ti... | 3 | null | 1 | 5 | b604c08c35143cb3e8b15ad99876a08dad0efb13 | 536 | inplayer-android-sdk | MIT License |
src/main/kotlin/com/miro/miroappoauth/controllers/InstallController.kt | seregamorph | 372,196,244 | false | null | package com.miro.miroappoauth.controllers
import com.miro.miroappoauth.config.AppProperties
import com.miro.miroappoauth.services.TokenService
import com.miro.miroappoauth.utils.getCurrentRequest
import org.springframework.http.server.ServletServerHttpRequest
import org.springframework.stereotype.Controller
import org... | 0 | Kotlin | 0 | 0 | 29946bca7ea1a83c5fb9d5149ce73c33037a65c4 | 1,768 | miro-app-oauth | Apache License 2.0 |
app/src/main/java/github/alexzhirkevich/studentbsuby/ui/common/animatedComposable.kt | geugenm | 689,629,461 | false | null | package github.alexzhirkevich.studentbsuby.ui.common
import androidx.compose.animation.*
import androidx.compose.runtime.Composable
import androidx.navigation.NavBackStackEntry
import androidx.navigation.NavDeepLink
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import github.... | 3 | null | 0 | 6 | a89ff407beb83aa9a6fb5c21c319e6bf84e75e2a | 1,630 | student-bsu-by | MIT License |
src/main/kotlin/br/com/zup/edu/pix/integracao/bcb/enums/AccountType.kt | fabricio-leitao | 355,903,645 | true | {"Kotlin": 88677} | package br.com.zup.edu.pix.integracao.bcb.enums
import br.com.zup.edu.TipoDeConta
import br.com.zup.edu.TipoDeConta.CONTA_CORRENTE
import br.com.zup.edu.TipoDeConta.CONTA_POUPANCA
enum class AccountType() {
NOT_FOUND,
CACC,
SVGS;
companion object {
fun by(domainType: TipoDeConta): AccountTy... | 0 | Kotlin | 0 | 0 | 87d0943ae3e6bb38c1d1bbd66813304cdc829168 | 507 | orange-talents-02-template-pix-keymanager-grpc | Apache License 2.0 |
vgscollect/src/main/java/com/verygoodsecurity/vgscollect/widget/VGSEditText.kt | verygoodsecurity | 273,198,410 | false | {"Kotlin": 1118374, "Python": 210} | package com.verygoodsecurity.vgscollect.widget
import android.content.Context
import android.graphics.Color
import android.text.InputType
import android.util.AttributeSet
import android.util.TypedValue
import android.view.Gravity
import com.verygoodsecurity.vgscollect.core.model.state.FieldState
import android.view.in... | 6 | Kotlin | 8 | 8 | 237826181dc852687874fca87c9dddd4a9a686f2 | 5,969 | vgs-collect-android | MIT License |
src/main/kotlin/spready/ui/script/ScriptModel.kt | r0m4n27 | 358,370,207 | false | null | package spready.ui.script
import javafx.beans.property.SimpleStringProperty
import spready.lisp.EvalException
import spready.ui.SpreadModel
import spready.ui.status.Err
import spready.ui.status.Ok
import spready.ui.status.StatusEvent
import tornadofx.FX
import tornadofx.ViewModel
import tornadofx.getValue
import torna... | 0 | Kotlin | 0 | 0 | fed5ea84ea671ef0b1bc9845b973da93468828b0 | 1,304 | spready | MIT License |
src/main/kotlin/build/buf/gradle/GenerateConfiguration.kt | bufbuild | 291,329,569 | false | {"Kotlin": 113367, "Java": 9644, "Makefile": 1153} | // Copyright 2023 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | 12 | Kotlin | 13 | 48 | 74c1f4d0fb92f0512d66b348571c48db85989bf4 | 2,309 | buf-gradle-plugin | Apache License 2.0 |
compiler/src/main/java/motif/compiler/CompilerUtil.kt | arunpandian22 | 146,786,013 | true | {"Java": 208938, "Kotlin": 153683, "Shell": 931} | /*
* Copyright (c) 2018 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 0 | Java | 0 | 0 | 054ace7c630994d28aa7ec996a1a04dd8eea6f7b | 1,675 | motif | Apache License 2.0 |
app/src/main/java/com/example/graphchallenge/GraphApplication.kt | roquebuarquejr | 648,137,157 | false | null | package com.example.graphchallenge
import android.app.Application
import androidx.room.Room
import com.example.graphchallenge.data.AppDataBase
class GraphApplication: Application() {
private lateinit var dataBase: AppDataBase
override fun onCreate() {
super.onCreate()
dataBase = Room.databa... | 0 | Kotlin | 0 | 0 | cc8c15dc2aa3f56148def1820f81eaaeaba2c680 | 572 | GraphChallenge | The Unlicense |
app/src/main/java/io/de4l/app/ui/SensorValueFragment.kt | DE4L-Project | 344,428,847 | false | null | package io.de4l.app.ui
import android.content.res.Resources
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.ImageButton
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.asLiveData
... | 0 | Kotlin | 1 | 0 | 9eef70dacebbca438c0abe6daa087ab1ea7000cb | 3,376 | de4l-sensor-android-app | MIT License |
persistence/h2/src/main/kotlin/io/mailit/persistence/h2/H2ApplicationRepository.kt | awelless | 467,556,925 | false | null | package io.mailit.persistence.h2
import io.mailit.core.model.Slice
import io.mailit.core.model.application.Application
import io.mailit.core.model.application.ApplicationState
import io.mailit.core.spi.DuplicateUniqueKeyException
import io.mailit.core.spi.application.ApplicationRepository
import io.mailit.persistence.... | 3 | Kotlin | 0 | 1 | d00f3a5a0be21eb355bae27f6d9655b3ee1bd9c3 | 3,162 | mail-it | MIT License |
src/main/java/com/sai628/androidutils/kotlin/db/Cursor.kt | Sai628 | 125,969,001 | false | null | /*
* Copyright (C) 2017 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 | 541094f163848390aece389c3e94cc1b1b5812a8 | 3,215 | AndroidUtils-Kotlin | Apache License 2.0 |
platform-support/src/androidMain/kotlin/io/ashdavies/content/PlatformContext.android.kt | ashdavies | 36,688,248 | false | {"Kotlin": 242859, "HCL": 19950, "Shell": 5280, "Mustache": 2101} | package io.ashdavies.content
public actual typealias PlatformContext = android.content.Context
| 47 | Kotlin | 31 | 118 | 8a2b586a61097647827fb8ede111baedc0353e93 | 96 | playground.ashdavies.dev | Apache License 2.0 |
idea/testData/inspections/unusedSymbol/function/classMemberOverriddenUsed.kt | JakeWharton | 99,388,807 | true | null | open class Klass {
open fun used() {
}
}
class Subklass: Klass() {
override fun used() {
}
}
fun main(args: Array<String>) {
println(args)
Subklass().used()
} | 284 | Kotlin | 5162 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 184 | kotlin | Apache License 2.0 |
app/src/main/java/flaskoski/rs/smartmuseum/model/ItemRepositoryComponent.kt | flaskoski | 173,016,051 | false | null | package flaskoski.rs.smartmuseum.model
/**
* Copyright (c) 2019 Felipe Ferreira Laskoski
* código fonte licenciado pela MIT License - https://opensource.org/licenses/MIT
*/
//import dagger.Component
//
//@Component
interface ItemRepositoryComponent {
fun getDataRepository() : ItemRepository
} | 0 | Kotlin | 0 | 1 | 2e180a388298e0b827cea35daef4593ec52f5811 | 300 | SmartMuseum | MIT License |
dial-phone-core/src/commonMain/kotlin/de/mtorials/dialphone/core/cache/TimelineCache.kt | mtorials | 272,526,016 | false | null | package de.mtorials.dialphone.core.cache
interface TimelineCache {
} | 1 | Kotlin | 0 | 6 | 1f78fed1af1287069fa8c6c585f868cd75e372f9 | 69 | dial-phone | Apache License 2.0 |
src/main/kotlin/de/debuglevel/streetdirectory/postalcode/extraction/overpass/PostalcodeListHandler.kt | debuglevel | 349,827,124 | false | null | package de.debuglevel.streetdirectory.postalcode.extraction.overpass
import de.debuglevel.openstreetmap.overpass.EmptyResultSetException
import de.debuglevel.openstreetmap.overpass.InvalidResultSetException
import de.debuglevel.openstreetmap.overpass.OverpassResultHandler
import de.debuglevel.streetdirectory.postalcod... | 9 | Kotlin | 1 | 1 | 131a0c6faa11a0c7cfea72e7c109eeb7bf1dcf97 | 2,072 | street-lister | The Unlicense |
app/src/main/java/com/twilio/conversations/app/viewModel/SplashViewModel.kt | twilio | 351,834,939 | false | null | package com.twilio.conversations.app.viewModel
import android.os.SystemClock
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.twilio.conversations.app.common.SingleLiveEvent
import com.twilio.conversations.app.common.enums.ConversationsError
import com.twilio.conversations.app.co... | 3 | Kotlin | 7 | 7 | 3d7660e01b23cea30231d3e1523dd9ebceff21d8 | 1,813 | twilio-conversations-demo-kotlin | MIT License |
app/src/main/java/com/tonyakitori/citrep/data/repositories/impl/StorageRepositoryImpl.kt | AntonioHReyes | 482,385,777 | false | {"Kotlin": 117199} | package com.tonyakitori.citrep.data.repositories.impl
import android.net.Uri
import com.tonyakitori.citrep.data.repositories.StorageRepository
import com.tonyakitori.citrep.data.source.remote.StorageDataSource
import com.tonyakitori.citrep.domain.utils.Response
import kotlinx.coroutines.Dispatchers
import kotlinx.coro... | 0 | Kotlin | 0 | 5 | 0f53b259b0dff98de4bd1ee8d39efc624a00576e | 795 | CitRep-appwrite | MIT License |
AnimationTest/app/src/main/java/wang/ralf/animationtest/SearchActivity.kt | RalfNick | 129,595,568 | false | null | package wang.ralf.animationtest
import android.support.v7.app.AppCompatActivity
/**
* @author Ralf(wanglixin)
* DESCRIPTION
* @name SearchActivity
* @email -
* @date 2019/08/08 19:35
**/
class SearchActivity : AppCompatActivity() {
} | 1 | null | 4 | 7 | 277b7b30945811e14bdae17a3b467111c1be1cd7 | 241 | AndroidPractice | Apache License 2.0 |
lint-rule/src/main/java/com/innovattic/lint/multiplesyntheticimport/MultipleSyntheticImportDetector.kt | Innovattic | 269,682,121 | false | null | @file:Suppress("UnstableApiUsage")
package com.innovattic.lint.multiplesyntheticimport
import com.android.tools.lint.client.api.UElementHandler
import com.android.tools.lint.detector.api.Detector
import com.android.tools.lint.detector.api.JavaContext
import com.android.tools.lint.detector.api.SourceCodeScanner
import... | 0 | Kotlin | 0 | 2 | b6906ab02bd57e8a744b2b5c5fcf62dff3157a31 | 2,449 | multiple-synthetic-import-lint | Apache License 2.0 |
feature/authorization/dependencies/src/commonMain/kotlin/org/timemates/app/authorization/dependencies/AuthorizationDataModule.kt | timemates | 575,537,317 | false | {"Kotlin": 317807} | package org.timemates.app.authorization.dependencies
import app.cash.sqldelight.db.SqlDriver
import io.timemates.data.database.TimeMatesAuthorizations
import org.koin.core.annotation.Module
import org.koin.core.annotation.Named
import org.koin.core.annotation.Singleton
import org.timemates.app.authorization.data.Datab... | 19 | Kotlin | 0 | 28 | 806b99ab0244c78dde0f38ece768d478dce101c4 | 2,067 | app | MIT License |
alchemy-core/src/commonMain/kotlin/com/alchemy/sdk/core/model/PrivateTransactionCall.kt | tguerin | 534,856,094 | false | null | package com.alchemy.sdk.core.model
import com.alchemy.sdk.util.HexString
import kotlinx.serialization.Serializable
@Serializable
data class PrivateTransactionCall(
val tx: HexString,
val maxBlockNumber: HexString? = null,
val preferences: Preferences? = null,
) {
@Serializable
class Preferences(va... | 4 | Kotlin | 0 | 3 | 9768a7ab07d9955e3036c32b1f4497527f237b34 | 338 | alchemy-sdk-kotlin | MIT License |
app/src/main/java/com/kickstarter/viewmodels/BackingViewModel.kt | kickstarter | 76,278,501 | false | {"Kotlin": 5269841, "Java": 317201, "Ruby": 22177, "Shell": 6325, "Makefile": 3750} | package com.kickstarter.viewmodels
import android.content.Intent
import android.util.Pair
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.kickstarter.libs.CurrentUserTypeV2
import com.kickstarter.libs.Environment
import com.kickstarter.libs.rx.transformers.Transformers
import... | 8 | Kotlin | 989 | 5,752 | a9187fb484c4d12137c7919a2a53339d67cab0cb | 4,845 | android-oss | Apache License 2.0 |
y2019/src/main/kotlin/adventofcode/y2019/Day24.kt | Ruud-Wiegers | 434,225,587 | false | {"Kotlin": 503769} | package adventofcode.y2019
import adventofcode.io.AdventSolution
import adventofcode.io.solve
import adventofcode.util.collections.firstDuplicate
import adventofcode.util.vector.Vec3
fun main() = Day24.solve()
object Day24 : AdventSolution(2019, 24, "Planet of Discord") {
override fun solvePartOne(input: String... | 0 | Kotlin | 0 | 3 | fc35e6d5feeabdc18c86aba428abcf23d880c450 | 3,564 | advent-of-code | MIT License |
y2019/src/main/kotlin/adventofcode/y2019/Day24.kt | Ruud-Wiegers | 434,225,587 | false | {"Kotlin": 503769} | package adventofcode.y2019
import adventofcode.io.AdventSolution
import adventofcode.io.solve
import adventofcode.util.collections.firstDuplicate
import adventofcode.util.vector.Vec3
fun main() = Day24.solve()
object Day24 : AdventSolution(2019, 24, "Planet of Discord") {
override fun solvePartOne(input: String... | 0 | Kotlin | 0 | 3 | fc35e6d5feeabdc18c86aba428abcf23d880c450 | 3,564 | advent-of-code | MIT License |
jvm-common/src/main/kotlin/org/digma/intellij/plugin/idea/userstats/UserStatsService.kt | digma-ai | 472,408,329 | false | {"Kotlin": 1436542, "Java": 561454, "C#": 114857, "HTML": 13384, "FreeMarker": 12094, "Shell": 10162} | package org.digma.intellij.plugin.idea.userstats
import com.intellij.collaboration.async.disposingScope
import com.intellij.openapi.Disposable
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupActivity
import kotlinx.coroutines.delay
im... | 425 | Kotlin | 7 | 27 | 99fb73df55635268659795392a3cd5872cba6ddc | 2,612 | digma-intellij-plugin | MIT License |
kactoos-jvm/src/main/kotlin/nnl/rocks/kactoos/scalar/Reduced.kt | neonailol | 117,650,092 | false | null | package nnl.rocks.kactoos.scalar
import nnl.rocks.kactoos.BiFunc
import nnl.rocks.kactoos.KBiFunc
import nnl.rocks.kactoos.KScalar
import nnl.rocks.kactoos.Scalar
/**
* Reduce iterable via BiFunc.
*
* ```
* Reduced(
* { head, tail -> head + tail },
* IterableOf({ 1 }, { 2 }, { 3 }, { 4 })
* ).invoke()
* ```
... | 0 | Kotlin | 1 | 19 | ce10c0bc7e6e65076b8ace90770b9f7648facf4a | 879 | kactoos | MIT License |
app/src/main/java/com/example/alarmclock/presentation/alarm_screen/ui/SoundBottomSheet.kt | info-kareemmohamed | 795,287,595 | false | null | package com.example.alarmclock.presentation.alarm_screen.ui
import android.content.Context
import android.os.Bundle
import android.view.ContextThemeWrapper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.RadioButton
import an... | 1 | null | 0 | 1 | 5bd6fbca1197f2b663d15f2fbd460ca9ea9795b8 | 3,523 | WakeUp | MIT License |
app/src/main/java/org/simple/clinic/summary/bloodsugar/view/BloodSugarItemView.kt | abhishekvermax | 238,414,803 | true | {"Kotlin": 3095300, "C": 680052, "Java": 8206, "Shell": 1878, "Makefile": 635} | package org.simple.clinic.summary.bloodsugar.view
import android.content.Context
import android.text.style.TextAppearanceSpan
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import kotlinx.android.synthetic.main.patientsummary_bloodsugar_item_content.view.*
import ... | 0 | null | 0 | 0 | 458730f232eab371dd8f3ddaa3d46b1a0a22d8bc | 2,743 | simple-android | MIT License |
app/src/main/java/ru/aasmc/whishlist/persistence/WishlistDatabase.kt | aasmc | 423,582,559 | false | null | package ru.aasmc.whishlist.persistence
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import ru.aasmc.whishlist.Wishlist
@Database(entities = [Wishlist::class], version = 1)
@TypeConverters(StringListConverter::class)
abstract class WishlistDatabase : RoomDatabase(... | 0 | Kotlin | 0 | 0 | d5d479bc4da4b4053ccec2d0e541c1d31da86f3b | 372 | WhishListTDD | The Unlicense |
compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/lookahead/LookaheadWithDisappearingMoveableContentDemo.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2022 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... | 23 | Kotlin | 740 | 4,353 | 3492e5e1782b1524f2ab658f1728c89a35c7336d | 5,830 | androidx | Apache License 2.0 |
src/main/kotlin/no/nav/aap/rest/tokenx/TokenXFilterFunction.kt | navikt | 432,668,965 | false | {"Kotlin": 45041} | package no.nav.aap.rest.tokenx
import org.springframework.http.HttpHeaders.AUTHORIZATION
import org.springframework.web.reactive.function.client.ClientRequest
import org.springframework.web.reactive.function.client.ClientResponse
import org.springframework.web.reactive.function.client.ExchangeFilterFunction
import org... | 0 | Kotlin | 0 | 2 | 95e865fade630320cbc8afa81342f721c5591133 | 2,042 | aap-domain | MIT License |
src/main/kotlin/no/nav/aap/rest/tokenx/TokenXFilterFunction.kt | navikt | 432,668,965 | false | {"Kotlin": 45041} | package no.nav.aap.rest.tokenx
import org.springframework.http.HttpHeaders.AUTHORIZATION
import org.springframework.web.reactive.function.client.ClientRequest
import org.springframework.web.reactive.function.client.ClientResponse
import org.springframework.web.reactive.function.client.ExchangeFilterFunction
import org... | 0 | Kotlin | 0 | 2 | 95e865fade630320cbc8afa81342f721c5591133 | 2,042 | aap-domain | MIT License |
kommand-examples/example3/src/commonMain/kotlin/com/kgit2/kommand/Main.kt | kgit2 | 553,675,958 | false | {"Rust": 32398, "Kotlin": 31384, "C": 5343, "Just": 4423, "Dockerfile": 155} | package com.kgit2.kommand
import com.kgit2.kommand.process.Command
import com.kgit2.kommand.process.Stdio
fun main() {
Command("echo")
.arg("nothing")
.stdout(Stdio.Null)
.spawn()
.wait()
}
| 1 | Rust | 1 | 50 | bf4d2143eea45880c88e145a26703fe9d171072f | 228 | kommand | Apache License 2.0 |
app/src/main/java/com/example/o2zadanie/data/ticket/TicketRepositoryImpl.kt | apaluk | 609,522,268 | false | null | package com.example.o2zadanie.data.ticket
import com.example.o2zadanie.core.notification.O2NotificationManager
import com.example.o2zadanie.data.ticket.remote.O2ActivationApi
import com.example.o2zadanie.domain.model.TicketState
import com.example.o2zadanie.domain.repository.TicketRepository
import kotlinx.coroutines.... | 0 | Kotlin | 0 | 0 | 4eee4e1cd83940e29be3b5cc221b2c9723a25c11 | 2,514 | o2zadanie | MIT License |
old/circular-reference-test/test2/src/main/java/de/honoka/test/spring/crt/test2/CrtTest2Application.kt | kosaka-bun | 535,548,503 | false | null | package de.honoka.test.spring.crt.test2
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.FilterType
//region ComponentScan
//另一种在Spring容器中排除指定Comp... | 0 | null | 0 | 111 | 7372d37a9612d6a0d4536810a0b85c9941d64992 | 755 | test-projects | MIT License |
rest/src/main/kotlin/org/flaxo/rest/manager/ValidationManager.kt | tcibinan | 112,068,459 | false | null | package org.flaxo.rest.manager
import org.flaxo.model.data.Course
/**
* Validation manager that can activate, deactivate and refresh validation for concrete course.
*/
interface ValidationManager {
/**
* Activates current validation for [course].
*/
fun activate(course: Course)
/**
* De... | 30 | null | 6 | 9 | a745d82604737699699210267ad5d2aa552f92d8 | 511 | flaxo | Apache License 2.0 |
bbfgradle/tmp/results/diffCompile/befspum.kt | DaniilStepanov | 346,008,310 | false | null | // Different compile happens on:JVM ,JVM -Xnew-inference -Xuse-ir
fun box() {
val l:Any
l = ArrayList<Int>()
val iterator = l.iterator()
if (iterator == null)
if (iterator!!.hasNext()) {}
}
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 201 | kotlinWithFuzzer | Apache License 2.0 |
karibu-testing-v23/kt23-tests/src/main/kotlin/com/github/mvysny/kaributesting/v10/MultiselectComboBoxTest.kt | mvysny | 123,093,803 | false | {"Kotlin": 532947, "Groovy": 94172, "Java": 36434, "TypeScript": 3124} | package com.github.mvysny.kaributesting.v10
import com.github.mvysny.dynatest.DynaNodeGroup
import com.github.mvysny.dynatest.DynaTestDsl
import com.github.mvysny.dynatest.expectList
import com.github.mvysny.dynatest.expectThrows
import com.github.mvysny.kaributesting.v23.getSuggestionItems
import com.github.mvysny.ka... | 12 | Kotlin | 13 | 99 | 106ebc1e0a0aa2747f2863c8b2cbe470c1070b87 | 3,792 | karibu-testing | Apache License 2.0 |
shared/presentation/src/commonMain/kotlin/com/moonlightbutterfly/rigplay/gamelist/model/GameListItem.kt | Dragoonov | 653,808,838 | false | null | package com.moonlightbutterfly.rigplay.gamelist.model
data class GameListItem(
val id: Int,
val title: String,
val imageUrl: String
) | 0 | Kotlin | 0 | 0 | 9c54dd44affb5197c25723adf9da5f7402472a96 | 146 | RigPlay | Apache License 2.0 |
ontrack-model/src/main/java/net/nemerosa/ontrack/model/security/ConfidentialStore.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.model.security
interface ConfidentialStore {
/**
* Persists the payload of key to a persisted storage (such as disk.)
* The expectation is that the persisted form is secure.
*/
fun store(key: String, payload: ByteArray)
/**
* Reverse operation of [store]
... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 678 | ontrack | MIT License |
cathode-sync/src/main/java/net/simonvt/cathode/remote/sync/SyncUserActivity.kt | SimonVT | 9,478,484 | false | null | /*
* Copyright (C) 2013 <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... | 11 | null | 9 | 99 | 29d916efcd1dbb8ddac1fc2600b2bfbe6ee84c27 | 1,139 | cathode | Apache License 2.0 |
app/src/main/java/com/emretnkl/myshopapp/feature/basket/BasketViewModel.kt | emretnkl | 559,308,167 | false | null | package com.emretnkl.myshopapp.feature.basket
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.map
import kotlinx.c... | 0 | Kotlin | 0 | 1 | 77ee7168cf5484f38f0665082c7dd26b38973622 | 1,037 | MyShopApp | Apache License 2.0 |
designsystem/src/main/kotlin/com/natura/android/resources/Theme.kt | natura-cosmeticos | 221,710,026 | false | null | package com.natura.android.resources
import android.content.Context
import android.graphics.drawable.Drawable
import android.util.TypedValue
import androidx.core.content.ContextCompat
fun getColorTokenFromTheme(context: Context, attrColorId: Int): Int {
val value = TypedValue()
context.theme.resolveAttribute(... | 12 | Kotlin | 10 | 45 | eb582d75c610f276cd34480b55ab8b36186d0225 | 949 | natds-android | ISC License |
common/src/main/kotlin/streams/utils/StreamsUtils.kt | neo4j-contrib | 125,791,389 | false | null | package streams.utils
object StreamsUtils {
@JvmStatic val UNWIND: String = "UNWIND \$events AS event"
@JvmStatic val WITH_EVENT_FROM: String = "WITH event, from"
@JvmStatic val STREAMS_CONFIG_PREFIX = "streams."
@JvmStatic val STREAMS_SINK_TOPIC_PREFIX = "sink.topic.cypher."
@JvmStatic val LE... | 55 | null | 71 | 173 | ba881f87e0706602470fe2d2dbfa60524f7f142c | 965 | neo4j-streams | Apache License 2.0 |
search-service/src/main/kotlin/com/egm/stellio/search/model/EntityType.kt | stellio-hub | 257,818,724 | false | {"Kotlin": 1717826, "Dockerfile": 2088, "Shell": 1825} | package com.egm.stellio.entity.model
import java.net.URI
data class EntityType(
val id: URI,
val type: String = "EntityType",
val typeName: String,
val attributeNames: List<String>
)
| 50 | Kotlin | 8 | 27 | a740e148f22e05c0add8b841fe976dccdb98cf59 | 201 | stellio-context-broker | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.