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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
core/src/main/kotlin/com/wafflestudio/snuttev/core/domain/lecture/model/SnuttLectureIdMap.kt | wafflestudio | 379,143,639 | false | {"Kotlin": 172741, "Dockerfile": 229} | package com.wafflestudio.snuttev.core.domain.lecture.model
import com.wafflestudio.snuttev.core.common.model.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.FetchType
import jakarta.persistence.JoinColumn
import jakarta.persistence.ManyToOne
@Entity
class Snut... | 0 | Kotlin | 2 | 4 | 255c6dea41eb3d1d49ff2b9dfaabec082f0ca66f | 618 | snutt-ev | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/ecs/FirelensLogRouterPropsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.ecs
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Boolean
import kotlin.Number
import kotl... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 24,217 | awscdk-dsl-kotlin | Apache License 2.0 |
ui/src/main/java/com/yumodev/ui/recyclerview/Define.kt | YumoDevTest | 104,735,993 | false | {"Java": 1284385, "Kotlin": 46687} | package com.yumodev.ui.recyclerview
/**
* Created by yumodev on 17/12/15.
*/
object Define {
val LOG_TAG : String = "ymui"
} | 1 | null | 1 | 1 | 3787405bd521f58e1e0d72de05532f20a1a60184 | 131 | AndroidOpenTest | Apache License 2.0 |
mobilesdk/src/main/java/com/swedbankpay/mobilesdk/Operation.kt | SwedbankPay | 209,749,704 | false | null | package com.swedbankpay.mobilesdk.merchantbackend
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonDeserializer
import com.google.gson.JsonElement
import com.google.gson.JsonSyntaxException
import com.google.gson.annotations.JsonAdapter
import com.swedbankpay.mobilesdk.merchantbackend.inter... | 27 | null | 2 | 5 | 98df28d4dda025aebef4f7ab415811ca687f3d73 | 1,734 | swedbank-pay-sdk-android | Apache License 2.0 |
tray-gtk/src/main/kotlin/com/hristogochev/tray/gtk/util/AttachUtil.kt | hristogochev | 634,594,951 | false | null | package com.hristogochev.tray.gtk.util
import com.hristogochev.tray.gtk.components.BaseMenu
import com.hristogochev.tray.gtk.components.MenuEntry
/**
* Executes an action on a submenu entry and then attaches it to a parent
*/
internal inline fun <T : MenuEntry> opcr(parent: BaseMenu, entry: T, op: T.() -> Unit = {}... | 0 | Kotlin | 0 | 1 | b05910164e45b3962c7753f729a17693e20c1912 | 377 | tray-gtk | Apache License 2.0 |
src/main/kotlin/de/eternalwings/bukkit/konversation/ChainablePrompt.kt | kumpelblase2 | 413,042,405 | false | null | package de.eternalwings.bukkit.konversation
import org.bukkit.conversations.Prompt
/**
* A prompt which allows setting a next prompt, so chaining them together.
*/
interface ChainablePrompt : Prompt {
/**
* Sets the prompt that should follow this prompt. What follow means, may depend
* on how the prom... | 0 | Kotlin | 0 | 2 | b2b0ff9cc7616cdc7e93fc7a462e09c4d4a2658d | 385 | konversation | MIT License |
compiler/testData/codegen/box/ieee754/differentTypesComparison.kt | JakeWharton | 99,388,807 | false | null | // IGNORE_BACKEND: JS_IR
fun box(): String {
if (0.toByte().compareTo(-0.0) != 1) return "fail 1.1"
if (0.toByte().compareTo(-0.0F) != 1) return "fail 1.2"
if (0.toByte().compareTo(Double.NaN) != -1) return "fail 1.3"
if (0.toByte().compareTo(Float.NaN) != -1) return "fail 1.4"
if (0.toShort().comp... | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,871 | kotlin | Apache License 2.0 |
app/src/main/java/io/github/namhyungu/keymap/ui/home/KeyModel.kt | namhyun-gu | 270,440,101 | false | null | package io.github.namhyungu.keymap.ui.home
import android.annotation.SuppressLint
import android.graphics.Typeface
import android.view.View
import android.widget.TextView
import androidx.core.view.isVisible
import com.airbnb.epoxy.EpoxyAttribute
import com.airbnb.epoxy.EpoxyModelClass
import com.airbnb.epoxy.EpoxyMode... | 0 | Kotlin | 0 | 0 | 68129a5a6841b85f0ad89de769a133b6d39ab337 | 2,933 | key-map | Apache License 2.0 |
app/src/main/java/com/github/edwnmrtnz/posko/data/model/User.kt | AndroidOnRails | 148,235,181 | false | null | package com.github.edwnmrtnz.posko.data.model
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonDeserializer
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import com.google.gson.annotations.SerializedName
import java.lang.reflect.Type
data class User(@SerializedName(... | 0 | Kotlin | 1 | 0 | 9cfce6c785bce9d6628e50e657e734539bbd7619 | 687 | posko-android | MIT License |
base/src/main/java/com/chrisjanusa/base/interfaces/BaseRestaurantFragment.kt | miamiheat710 | 209,855,968 | false | {"Kotlin": 223559} | package com.chrisjanusa.base.interfaces
import android.content.Context
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.lifecycleScope
import com.chrisjanusa.base.CommunicationHelper
import com.chrisjanusa.base.models.R... | 1 | Kotlin | 0 | 0 | cd1bfe507e320d2774869d926fd35bc721d2c218 | 1,838 | RandomRestaurantKotlin | MIT License |
adaptive-ui/src/commonMain/kotlin/fun/adaptive/ui/instruction/decoration/Color.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 2251135, "Java": 24502, "HTML": 7707, "JavaScript": 3880, "Shell": 687} | package `fun`.adaptive.ui.instruction.decoration
import `fun`.adaptive.adat.Adat
@Adat
class Color(
val value: UInt
) {
constructor(value: String) : this(value.parse())
/**
* @return [value] in "#ffffff" format
*/
fun toHexColor(): String =
"#${value.toString(16).padStart(6, '0')}"... | 30 | Kotlin | 0 | 3 | d6c0623918922416e3f2d6666b66626e25fb0704 | 741 | adaptive | Apache License 2.0 |
app/src/main/java/com/flowfoundation/wallet/page/notification/model/WalletNotification.kt | Outblock | 692,942,645 | false | {"Kotlin": 2412500, "Java": 104150} | package com.flowfoundation.wallet.page.notification.model
import com.flowfoundation.wallet.utils.svgToPng
import com.google.gson.annotations.SerializedName
import java.util.Date
data class WalletNotification(
@SerializedName("id")
val id: String,
@SerializedName("priority")
val priority: Priority,
... | 65 | Kotlin | 5 | 0 | 119cbc780cd345e9698a73e50bc68fba0eb71385 | 1,645 | FRW-Android | Apache License 2.0 |
src/main/java/net/boreeas/reweave/data/WelcomeMessage.kt | strangeglyph | 81,772,362 | false | {"Kotlin": 60457} | /*
* Copyright 2017 <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 ... | 0 | Kotlin | 0 | 0 | ea5e5685c61bd443c40057120535d8303546c005 | 769 | reweave | Apache License 2.0 |
src/test/kotlin/com/aemtools/lang/htl/annotator/RedundantELQuickFixTest.kt | iannovic | 107,144,305 | true | {"Kotlin": 618081, "HTML": 14958, "Lex": 3652} | package com.aemtools.lang.htl.annotator
import com.aemtools.constant.const.DOLLAR
import com.aemtools.util.writeCommand
import com.intellij.testFramework.InspectionFixtureTestCase
/**
* @author <NAME> */
class RedundantELQuickFixTest : InspectionFixtureTestCase() {
fun testRedundantELQuickFixForDataSlyUse() {
... | 0 | Kotlin | 0 | 0 | d9c1558872fd5e32f18e0bab0afa8f4495da95b0 | 1,736 | aemtools | MIT License |
kotlin-ext/src/main/kotlin/Base64.kt | nhalase | 603,235,279 | false | null | @file:Suppress("unused")
package dev.nhalase.kotlin
import java.nio.charset.Charset
import java.util.Base64
import java.util.UUID
internal val base64Encoder: Base64.Encoder = Base64.getEncoder()
internal val base64Decoder: Base64.Decoder = Base64.getDecoder()
fun UUID.toByteArray(charset: Charset = Charsets.UTF_8):... | 0 | Kotlin | 0 | 0 | 223b5c94b75cc9e17289415d5d210bef2c260142 | 1,063 | gradle-kotlin-starter | The Unlicense |
TimeTracker/app/src/main/java/github/informramiz/timetracker/data/cloudfunctions/model/GetUserWorkingHoursResponseApiModel.kt | informramiz | 336,497,767 | false | null | package github.informramiz.timetracker.data.cloudfunctions.model
import kotlinx.serialization.Serializable
@Serializable
data class GetUserWorkingHoursResponseApiModel(val preferredWorkingHours: Float? = null)
| 0 | Kotlin | 0 | 0 | 4a3ff709f0ce1e8526422cd0183cc263b2ee9139 | 212 | WorkLogTracker | MIT License |
src/test/kotlin/icfp2019/EatCloserThenFatherTests.kt | bspradling | 193,332,580 | true | {"JavaScript": 797310, "Kotlin": 85937, "CSS": 9434, "HTML": 5859} | package icfp2019
import icfp2019.model.*
import icfp2019.strategies.EatCloserThenFarther
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class EatCloserThenFatherTests {
@Test
fun testSimple() {
val problem3Input =
"(15,23),(16,23),(16,17),(15,17),(15,20),(12,20),... | 0 | JavaScript | 0 | 0 | 9f7e48cce858cd6a517d4fb69b9a0ec2d2a69dc5 | 2,448 | icfp-2019 | The Unlicense |
app/src/main/java/com/afl/waterReminderDrinkAlarmMonitor/utils/Dao.kt | sinansonmez | 399,841,253 | false | null | package com.afl.waterReminderDrinkAlarmMonitor.utils
import androidx.lifecycle.LiveData
import androidx.room.*
import androidx.room.Dao
import com.afl.waterReminderDrinkAlarmMonitor.model.Drink
import com.afl.waterReminderDrinkAlarmMonitor.model.Notification
import com.afl.waterReminderDrinkAlarmMonitor.model.Sum
impo... | 0 | Kotlin | 3 | 28 | 428c9283e4e54894ee6455e73af6f4564e7abba0 | 2,916 | WaterTracker | MIT License |
app/src/main/java/com/pratthamarora/todoapp/ui/fragments/AddFragment.kt | haarrisahmed | 287,224,584 | true | {"Kotlin": 28447} | package com.pratthamarora.todoapp.ui.fragments
import android.os.Bundle
import android.view.*
import android.widget.EditText
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import com.pratthamarora.todoapp.R... | 0 | null | 0 | 0 | 7d561daa3d1db3440cc460ed1fcd8ae71a5d0e3c | 2,432 | TodoList_App | MIT License |
ktfx-commons/src/main/kotlin/ktfx/bindings/ComparisonsBinding.kt | hanggrian | 102,934,147 | false | null | @file:Suppress("NOTHING_TO_INLINE")
package ktfx.bindings
import javafx.beans.binding.Bindings
import javafx.beans.binding.DoubleBinding
import javafx.beans.binding.NumberBinding
import javafx.beans.value.ObservableNumberValue
/** @see kotlin.comparisons.maxOf */
inline fun maxOf(a: ObservableNumberValue, b: Observa... | 1 | null | 2 | 19 | 6e5ec9fedf8359423c31a2ba64cd175bc9864cd2 | 2,549 | ktfx | Apache License 2.0 |
data/RF01081/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF01081"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
8 to 1... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 805 | Rfam-for-RNArtist | MIT License |
auth/src/main/java/com/albro/storyapp/auth/AuthActivity.kt | rifkyhaekal | 640,716,208 | false | null | package com.codersandeep.shopeaze
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class AuthActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 1 | 606a83047bc734d616615d70bf5b7bf9026a4be5 | 370 | StoryApp | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/CheckOutCalendar.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,310 | icons | MIT License |
src/main/kotlin/flowexamples/e05/E05SimpleScript.kt | utilihive | 379,294,885 | false | null | package flowexamples.e05
import org.intellij.lang.annotations.Language
object E05SimpleScript {
@Language("ES6")
val simpleScript = """
return {
message : input.payload.value
}
""".trimIndent()
} | 0 | Kotlin | 2 | 4 | 00228fe692e65ce9ab400c811d69de4049cec3f9 | 249 | flow-developer-example-project-mvn | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/assessments/jpa/repositories/GroupRepository.kt | uk-gov-mirror | 356,783,294 | true | {"Kotlin": 334511, "JavaScript": 24640, "Mustache": 4105, "Dockerfile": 1313, "Shell": 181} | package uk.gov.justice.digital.assessments.jpa.repositories
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
import uk.gov.justice.digital.assessments.jpa.entities.GroupEntity
import java.util.UUID
@Repository
interface GroupRepository : JpaRepository<Group... | 0 | Kotlin | 0 | 0 | 708a25169cd7b73075bb996ea379fe982d6f5649 | 446 | ministryofjustice.hmpps-assessments-api | MIT License |
subprojects/common/elastic/src/main/kotlin/com/avito/android/elastic/ElasticRoundRobinHttpServiceFactory.kt | avito-tech | 230,265,582 | false | null | package com.avito.android.elastic
import com.avito.http.RetryInterceptor
import com.google.gson.Gson
import okhttp3.HttpUrl
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.create
internal class ElasticRoundRobinHttpServiceFactory(
private... | 8 | null | 50 | 414 | bc94abf5cbac32ac249a653457644a83b4b715bb | 1,770 | avito-android | MIT License |
app/src/main/java/com/detmir/kkppt3/views/ProjectItemView.kt | detmir | 358,579,304 | false | null | package com.detmir.kkppt3.views
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import android.widget.TextView
import com.detmir.kkppt3.R
import com.detmir.recycli.annotations.RecyclerItemStateBinder
import com.detmir.recycli.annotati... | 2 | Kotlin | 2 | 22 | 35a3592de39a97e86081e7c048d9a5d187337bb0 | 1,338 | recycli | Apache License 2.0 |
feature-search/src/main/java/de/niklasbednarczyk/nbweather/feature/search/screens/overview/SearchOverviewScreen.kt | NiklasBednarczyk | 529,683,941 | false | null | package de.niklasbednarczyk.nbweather.feature.search.screens.overview
import androidx.activity.compose.BackHandler
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.hilt.navigation.compose.hiltViewModel
import com.google.accompanist.permissions.MultiplePermission... | 15 | Kotlin | 0 | 0 | e6af34b6b65007853acc6cf2bf4c3f9b5ff26359 | 4,522 | NBWeather | MIT License |
app/src/main/java/com/suromo/magic/util/ListUtil.kt | weixingtai | 485,994,313 | false | null | package com.suromo.magic.util
import androidx.compose.foundation.lazy.LazyListState
/**
* author : weixingtai
* e-mail : <EMAIL>
* time : 2022/04/2022/4/29
* desc :
*/
val LazyListState.isScrolled: Boolean
get() = firstVisibleItemIndex > 0 || firstVisibleItemScrollOffset > 0
| 0 | Kotlin | 0 | 0 | ac40dcdf3f41a81ee895b0be957d1802529a71a6 | 291 | Magic | MIT License |
libs/rest/rest/src/main/kotlin/net/corda/httprpc/HttpFileUpload.kt | corda | 346,070,752 | false | null | package net.corda.httprpc
import java.io.InputStream
/**
* This object allows custom [RestResource] endpoints to upload a file and gives the implementation a handle on the
* file's content and metadata.
*
* To add file upload to an [RestResource] endpoint, declare a parameter with this type on the function with t... | 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 1,449 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/berteodosio/seriemesmo/presentation/home/viewModel/HomeNavigationEvent.kt | berteodosio | 362,337,835 | false | null | package com.berteodosio.seriemesmo.presentation.home.viewModel
sealed class HomeNavigationEvent {
class NavigateToShowDetails(val showId: Long) : HomeNavigationEvent()
} | 0 | Kotlin | 0 | 0 | 79acd890ffdab3f37ef9fe82a6b7dc6073714b00 | 176 | serie-mesmo | MIT License |
filesystem/src/commonMain/kotlin/error/Interrupted.kt | illarionov | 848,247,126 | false | {"Kotlin": 1306808, "ANTLR": 6038, "TypeScript": 3148, "CSS": 1042, "FreeMarker": 450, "JavaScript": 89} | /*
* Copyright 2024, the wasi-emscripten-host project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package at.released.weh.filesystem.error
import a... | 1 | Kotlin | 0 | 4 | 8cb136a17cbece15d9e2b0cc9286f35613a149a4 | 698 | wasi-emscripten-host | Apache License 2.0 |
core/src/main/java/com/example/core/Utils.kt | Rarj | 587,352,870 | false | null | package com.example.movee
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
fun formatDate(date: String): String {
val parser = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault())
val formatter = SimpleDateFormat("dd MMM yyyy", Locale.getDefault())
return formatter.format(par... | 0 | Kotlin | 0 | 0 | baaa7c7a0a5c84cae42c209dcc23c768d907808b | 346 | moveee | MIT License |
app/src/main/java/com/example/androiddevchallenge/presentation/ui/components/home/HomeScreen.kt | timlam9 | 348,776,523 | 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 | 1 | 6ba21d49459b88ded2be8d032dc3355242563fac | 1,227 | ComposeWeatherApp | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonregister/integration/GetPrisonNames.kt | ministryofjustice | 337,466,567 | false | {"Kotlin": 321410, "Dockerfile": 1443, "Shell": 238} | package uk.gov.justice.digital.hmpps.prisonregister.integration
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.CsvSource
import org.springframework.test.web.reactive.server.WebTestClient
import uk.gov.j... | 2 | Kotlin | 1 | 2 | 23ad6fd7c134253c7830d43a4cf090c6bef3e9b3 | 4,873 | prison-register | MIT License |
core/model/src/main/java/online/partyrun/partyrunapplication/core/model/running_result/ui/RunnerRecordUiModel.kt | SWM-KAWAI-MANS | 649,352,661 | false | {"Kotlin": 734078} | package online.partyrun.partyrunapplication.core.model.running_result.ui
import java.time.LocalDateTime
data class RunnerRecordUiModel(
val altitude: Double,
val latitude: Double,
val longitude: Double,
val time: LocalDateTime,
val distance: Double
)
| 2 | Kotlin | 1 | 14 | 5d982218815afb4c08e700113cfd8957906994a4 | 273 | party-run-application | MIT License |
idea/src/org/jetbrains/kotlin/idea/findUsages/findUsageUtils.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-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 agre... | 1 | null | 37 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 3,591 | kotlin | Apache License 2.0 |
app/src/main/java/com/app/whakaara/data/preferences/converters/PreferencesConverter.kt | ahudson20 | 531,856,934 | false | {"Kotlin": 293477, "Shell": 761} | package com.app.whakaara.data.preferences.converters
import androidx.room.TypeConverter
import com.app.whakaara.data.preferences.AppTheme
import com.app.whakaara.data.preferences.SettingsTime
import com.app.whakaara.data.preferences.VibrationPattern
class PreferencesConverter {
@TypeConverter
fun toVibrationP... | 1 | Kotlin | 1 | 3 | e73647f133f90ce203fa073f69724d8f89341fc7 | 785 | whakaara | MIT License |
kgl-vulkan/src/jvmMain/kotlin/com/kgl/vulkan/enums/ExternalMemoryFeatureNV.kt | NikkyAI | 168,431,916 | true | {"Kotlin": 1894114, "C": 1742775} | /**
* Copyright [2019] [<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 w... | 0 | Kotlin | 0 | 0 | 51dfa8a4c655ff8bcf017d8d4a2eb660e14473ed | 1,402 | kgl | Apache License 2.0 |
android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/cellular/CellularGeneration.kt | betomoedano | 462,599,485 | true | {"TypeScript": 7804102, "Kotlin": 3383974, "Objective-C": 2722124, "Swift": 1723956, "Java": 1686584, "JavaScript": 847793, "C++": 310224, "C": 237463, "Objective-C++": 191888, "Ruby": 167983, "Shell": 59271, "HTML": 31107, "CMake": 25754, "Batchfile": 89, "CSS": 42} | package abi48_0_0.expo.modules.cellular
import abi48_0_0.expo.modules.kotlin.types.Enumerable
enum class CellularGeneration(val value: Int) : Enumerable {
UNKNOWN(0),
CG_2G(1),
CG_3G(2),
CG_4G(3),
CG_5G(4),
}
| 0 | TypeScript | 0 | 4 | 52d6405570a39a87149648d045d91098374f4423 | 221 | expo | MIT License |
mayazuc/android/app/src/main/java/ionic/mayazuc/MediaNotificationBuilder.kt | brabebhin | 786,996,718 | false | {"Kotlin": 118384, "TypeScript": 26252, "CSS": 8666, "Java": 4918, "HTML": 1049, "JavaScript": 351} | package ionic.mayazuc
import android.content.Context
import android.os.Bundle
import androidx.media3.common.Player.*
import androidx.media3.session.CommandButton
import androidx.media3.session.DefaultMediaNotificationProvider
import androidx.media3.session.MediaSession
import com.google.common.collect.ImmutableList
c... | 0 | Kotlin | 0 | 0 | 2dc63409d5f2e6489e62f12372723338e80b00e6 | 1,939 | Mayazuc-Android | MIT License |
src/main/kotlin/io/archx/txblog/data/service/UserService.kt | wang-si-yuan | 327,761,173 | false | {"JavaScript": 227980, "Kotlin": 115816, "PLpgSQL": 32635, "HTML": 24475, "Sass": 3921} | package io.archx.txblog.data.service
import com.baomidou.mybatisplus.extension.kotlin.KtUpdateWrapper
import com.baomidou.mybatisplus.extension.service.IService
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
import io.archx.txblog.common.def.CodeDef
import io.archx.txblog.common.exception.MessageCo... | 0 | JavaScript | 0 | 0 | d3a6d560ef0ebd76223b2620a55356e0fb632393 | 2,394 | tx-blog-kotlin | MIT License |
j2k/new/tests/testData/newJ2k/enum/implicitlyPrivateConstructorsEnum.kt | JetBrains | 278,369,660 | false | null | enum class JavaEnum {
A("a"),
B;
constructor(x: String) {
this.x = x
}
constructor() {
x = "default"
}
protected var x: String
}
| 284 | null | 5162 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 176 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/shared/sensors/Accelerometer.kt | TrendingTechnology | 268,941,914 | true | {"Kotlin": 217677} | package com.kylecorry.trail_sense.shared.sensors
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorManager
import com.kylecorry.trail_sense.weather.domain.LowPassFilter
class Accelerometer(context: Context): BaseSensor(context, Sensor.TYPE_... | 0 | null | 0 | 0 | ba8786be4ac8deb02f3f0cbc71f4b11420cd09fa | 786 | Trail-Sense | MIT License |
typescript-kotlin/src/main/kotlin/typescript/CaseClause.kt | turansky | 393,199,102 | false | null | // Automatically generated - do not modify!
package typescript
external interface CaseClause : Node {
/*
readonly kind: SyntaxKind.CaseClause;
readonly parent: CaseBlock;
readonly expression: Expression;
readonly statements: NodeArray<Statement>;
*/
}
| 0 | Kotlin | 1 | 10 | bcf03704c0e7670fd14ec4ab01dff8d7cca46bf0 | 278 | react-types-kotlin | Apache License 2.0 |
library/src/main/java/io/callstats/event/special/LogEvent.kt | callstats-io | 129,705,126 | false | null | package io.callstats.event.special
import io.callstats.event.SessionEvent
/**
* You can submit application error logs using this event. You will be able to search for them and also categorize them.
*
* @param level "debug" "info" "warn" "error" "fatal"
* @param message application message
* @param messageType "t... | 1 | Kotlin | 2 | 5 | 65b22d6d4154169b0e32bc5e5b1441a4615a7ac0 | 511 | callstats-android | MIT License |
app/src/main/java/com/github/liaoheng/codec/demo/MApplication.kt | liaoheng | 368,392,831 | false | {"C": 1019340, "Java": 149028, "C++": 49610, "Kotlin": 5666, "Objective-C": 3945, "CMake": 3622} | package com.github.liaoheng.codec.demo
import android.app.Application
import com.github.liaoheng.codec.Codec
import com.github.liaoheng.codec.view.CodecView
import com.github.liaoheng.common.Common
/**
* @author liaoheng
* @version 2020-04-20 21:19
*/
class MApplication : Application() {
override fun onCreat... | 0 | C | 1 | 0 | 6b87daa15b5d351fc5266e7791c0f32f6bc60ace | 489 | android-codec | Apache License 2.0 |
idea/testData/checker/TypeArgumentsNotAllowed.kt | JakeWharton | 99,388,807 | false | null | package foo
open class A<T>
fun <T> f(<warning descr="[UNUSED_PARAMETER] Parameter 't' is never used">t</warning>: T<error descr="[TYPE_ARGUMENTS_NOT_ALLOWED] Type arguments are not allowed for type parameters"><T></error>) {}
fun <T> use(<warning descr="[UNUSED_PARAMETER] Parameter 'b' is never used">b</warning>: f... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 423 | kotlin | Apache License 2.0 |
app/src/main/java/com/hamzasharuf/runningtracker/utils/LineChartConfiguration.kt | hamzasharuf | 295,946,507 | false | null | package com.hamzasharuf.runningtracker.utils
import android.content.Context
import android.graphics.Color
import androidx.core.content.res.ResourcesCompat
import com.hamzasharuf.runningtracker.R
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject
object LineChartConfiguration {
pr... | 0 | Kotlin | 0 | 1 | 3e7be9df2833084a50cf934694678433c51692aa | 935 | RunningTracker | Apache License 2.0 |
src/commonMain/kotlin/pw/binom/property/AbstractMutableProperty.kt | caffeine-mgn | 516,913,057 | false | {"Kotlin": 49553} | package pw.binom.property
import pw.binom.web.Listener
abstract class AbstractMutableProperty<T> : MutableProperty<T>, AbstractProperty<T>() {
private var bindedListener: Listener? = null
protected open suspend fun onValueUpdated(oldValue: T, newValue: T) {}
private var firstCallAfterBind = false
pr... | 0 | Kotlin | 0 | 0 | a10748ab1fbcdb39c8b117ab1efdbcc7afc1bdba | 1,557 | web-ui | Apache License 2.0 |
designer/src/com/android/tools/idea/uibuilder/surface/layout/LayoutUtils.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,588 | android | Apache License 2.0 |
src/main/kotlin/Solvers.kt | thomasnield | 128,618,143 | false | null | import javafx.application.Platform
import org.ojalgo.okalgo.expression
import org.ojalgo.okalgo.expressionsbasedmodel
import org.ojalgo.okalgo.variable
import org.ojalgo.optimisation.Variable
enum class Solver {
TOMS_BRANCH_AND_PRUNE {
// A branch-and-bound algorithm
inner class GridCellBranch(va... | 0 | Kotlin | 15 | 56 | b221ae31726ffe8dacc22caba31ae46cdc6d5003 | 7,753 | kotlin-sudoku-solver | Apache License 2.0 |
src/main/kotlin/com/theapache64/stackzy/data/local/AndroidApp.kt | mulieriq | 339,401,559 | true | {"Kotlin": 109341} | package com.theapache64.stackzy.data.local
import com.malinskiy.adam.request.pkg.Package
import com.theapache64.stackzy.ui.common.AlphabetCircle
class AndroidApp(
val appPackage: Package
) : AlphabetCircle() {
override fun getTitle(): String {
return appPackage.name.split(".").last().capitalize()
... | 0 | null | 0 | 1 | 11cb821d8b0d29b3afff19ed219b50a7587b0ab3 | 483 | stackzy | Apache License 2.0 |
navigation/graph-builder/src/main/kotlin/ru/maksonic/beresta/navigation/graph_builder/destination/EditNoteDestination.kt | maksonic | 580,058,579 | false | null | package ru.maksonic.beresta.navigation.graph_builder.destination
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.ui.Modifier
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavType
import androidx.navigation.navArgument
import com.google.accompanist.navigation.a... | 0 | Kotlin | 0 | 0 | f01672d89b5772c250d237ce5f3db4f73e3af819 | 1,037 | Beresta | MIT License |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/models/dataclass/Notification.kt | Kroguc | 112,961,848 | false | {"Gradle": 4, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Proguard": 1, "Kotlin": 377, "XML": 225, "Java": 1} | package io.github.feelfreelinux.wykopmobilny.models.dataclass
data class Notification(
val author : Author,
val body : String,
val date : String,
val url : String,
var new : Boolean
) | 1 | null | 1 | 1 | 63bdf6c1c168b747714a7051f7637dca7e48c88d | 224 | WykopMobilny | MIT License |
compose-macos-theme/src/commonMain/kotlin/io/chozzle/composemacostheme/modifiedofficial/MacTextFieldDefaults.kt | Chozzle | 319,032,373 | false | null | package io.chozzle.composemacostheme.modifiedofficial
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.FastOutLinearInEasing
import androidx.compose.animation.core.keyframes
import androidx.compose.animation.core.tween
import androidx.compose.foundation.interaction.Interacti... | 1 | Kotlin | 7 | 235 | 1f966daa7d8e00eca0a6a02dc289236af39469e9 | 11,471 | compose-macos-theme | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/ui/player/settings/sheets/StreamsCatalogSheet.kt | aniyomiorg | 358,887,741 | false | null | package eu.kanade.tachiyomi.ui.player.settings.sheets
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.clickable
impo... | 24 | null | 8 | 4,992 | 823099f775ef608b7c11f096da1f50762dab82df | 7,292 | aniyomi | Apache License 2.0 |
app/src/main/java/com/twoics/geo/map/Map.kt | DiabloZX | 646,790,672 | false | null | package com.twoics.geo.map
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.lifecyc... | 0 | Kotlin | 0 | 0 | 4c09313a547ca1fe505e103b1bb9ab37a6d54b92 | 6,602 | RMP | MIT License |
app/src/main/java/com/skyyo/samples/features/navigationCores/tab2/Tab2ViewModel.kt | Skyyo | 385,529,955 | false | {"Kotlin": 557302} | package com.skyyo.samples.features.navigationCores.tab2
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.skyyo.samples.utils.NavigationDispatcher
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class Tab2ViewModel @Inject constructo... | 5 | Kotlin | 5 | 77 | 1319c3d29da4865d6f1931ee18137cdfc1715891 | 441 | samples | MIT License |
valuedef-common/src/main/java/com/bennyhuo/kotlin/valuedef/common/utils/KtNameFunctionExtensions.kt | bennyhuo | 439,819,685 | false | null | package com.bennyhuo.kotlin.valuedef.common.utils
import org.jetbrains.kotlin.psi.KtExpression
import org.jetbrains.kotlin.psi.KtNamedFunction
import org.jetbrains.kotlin.psi.KtReturnExpression
import org.jetbrains.kotlin.psi.psiUtil.lastBlockStatementOrThis
/**
* Created by benny at 2022/1/17 10:37 AM.
*/
val KtNa... | 0 | Kotlin | 0 | 4 | 5b5ebfe900e25372d3c076b24dfb175945866a38 | 656 | KotlinValueDef | MIT License |
src/main/kotlin/com/bfkelsey/api/ApiApplication.kt | bfkelsey | 49,966,208 | false | null | package com.bfkelsey.api
import com.fasterxml.jackson.module.kotlin.KotlinModule
import com.bfkelsey.api.jdbi.ProviderDAO
import com.bfkelsey.api.resources.ProviderResource
import io.dropwizard.Application
import io.dropwizard.db.DataSourceFactory
import io.dropwizard.jdbi.DBIFactory
import io.dropwizard.migrations.Mi... | 0 | Kotlin | 1 | 3 | 9831193cc3f70b3faf6d9c482d0ed6f321eda531 | 1,521 | dropwizard-kotlin-api-example | MIT License |
compiler/backend/src/org/jetbrains/kotlin/codegen/intrinsics/ArrayConstructor.kt | JakeWharton | 99,388,807 | true | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,005 | kotlin | Apache License 2.0 |
src/main/kotlin/net/stellarica/packserve/command/configReloadCommand.kt | Stellarica | 637,239,505 | false | null | package net.stellarica.packserve.command
import com.mojang.brigadier.Command
import com.mojang.brigadier.builder.LiteralArgumentBuilder
import com.velocitypowered.api.command.BrigadierCommand
import com.velocitypowered.api.command.CommandSource
import net.stellarica.packserve.PackServe
fun configReloadCommand() = Bri... | 0 | Kotlin | 0 | 2 | ffc67b6f8eaab6a5fe9d987f413778bd45c0af43 | 615 | PackServe | MIT License |
KotlinIntlAndroid/kotlin-intl-android/src/main/java/com/nativeframe/kotlin/intl/android/ui/CountriesSpinnerAdapter.kt | nativeframe | 782,114,259 | false | {"Kotlin": 41539} | package com.nativeframe.kotlin.intl.android.ui
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.ImageView
import android.widget.SpinnerAdapter
import android.widget.TextView
import com.nativ... | 0 | Kotlin | 0 | 1 | 6f2cf5cf802c1fdfff22e006feec75b25f445a86 | 2,522 | kotlin-intl-android | Apache License 2.0 |
src/main/kotlin/io/codenetics/ann/graphql/dto/NeuronDto.kt | PaulMllr | 153,035,869 | false | null | package io.codenetics.ann.graphql.dto
/**
* Created by Pavel Laktiushkin on 14.03.2019
*/
data class NeuronDto(
val id: String,
val description: String?) | 0 | Kotlin | 0 | 0 | 0180f40ccdb36f1ca3be4a16324a7e8340e3054c | 173 | ann | Apache License 2.0 |
tezos-core/src/main/kotlin/it/airgap/tezos/core/converter/encoded/Ed25519Signature.kt | airgap-it | 460,351,851 | false | null | package it.airgap.tezos.core.converter.encoded
import it.airgap.tezos.core.Tezos
import it.airgap.tezos.core.internal.annotation.InternalTezosSdkApi
import it.airgap.tezos.core.internal.context.withTezosContext
import it.airgap.tezos.core.internal.converter.Converter
import it.airgap.tezos.core.internal.coreModule
imp... | 0 | Kotlin | 2 | 1 | c5af5ffdd4940670bd66842580d82c2b9d682d84 | 1,397 | tezos-kotlin-sdk | MIT License |
user/src/main/kotlin/it/unibo/lss/parking_system/entity/UserInfo.kt | lbracchi | 600,515,402 | false | null | package it.unibo.lss.parking_system.entity
import kotlinx.serialization.Serializable
@Serializable
data class UserInfo(
val email: String,
val name: String
) | 0 | Kotlin | 0 | 0 | f7aea6e6cad6475c2f7ae654671456e796865b19 | 167 | test-parking | MIT License |
frontend-example/modules/material-design/src/main/kotlin/io/github/andrewk2112/kjsbox/frontend/example/materialdesign/components/header/sections/notificationMessage.kt | andrew-k-21-12 | 497,585,003 | false | null | package io.github.andrewk2112.kjsbox.frontend.example.materialdesign.components.header.sections
import io.github.andrewk2112.kjsbox.frontend.designtokens.Context
import io.github.andrewk2112.kjsbox.frontend.designtokens.StyleValues
import io.github.andrewk2112.kjsbox.frontend.designtokens.Theme
import io.github.andrew... | 0 | Kotlin | 0 | 2 | dc496b07d07b47ef69301d591a83619fecdcc956 | 4,299 | kjs-box | MIT License |
packages/library-base/src/commonMain/kotlin/io/realm/kotlin/internal/RealmSetInternal.kt | realm | 235,075,339 | false | null | /*
* Copyright 2022 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 188 | Kotlin | 42 | 610 | 107ad3b592fd9adccb476b1835d4579f13d7e765 | 12,351 | realm-kotlin | Apache License 2.0 |
common/src/test/kotlin/io/rippledown/model/TestEventTest.kt | TimLavers | 513,037,911 | false | {"Kotlin": 1309914, "Gherkin": 117611} | package io.rippledown.model
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
// ORD1
internal class TestEventTest {
val tsh = Attribute(3, "TSH")
@Test
fun construction() {
... | 0 | Kotlin | 0 | 0 | 4d3a0820aa4d27b84e9e07159e877fe9ada47bdb | 982 | OpenRDR | MIT License |
twint-action/src/test/java/com/adyen/checkout/twint/action/internal/ui/DefaultTwintActionDelegateTest.kt | Adyen | 91,104,663 | false | null | /*
* Copyright (c) 2023 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by oscars on 21/11/2023.
*/
package com.adyen.checkout.twint.internal.ui
import android.app.Activity
import androidx.lifecycle.SavedStateHandle
import ch.twint.paymen... | 27 | null | 66 | 126 | c45a6ee4d2039163ae075436a9d1231ffcb16f5c | 12,184 | adyen-android | MIT License |
core/app_ui_compose/src/main/java/tw/com/deathhit/core/app_ui_compose/Color.kt | Deathhit | 718,070,517 | false | {"Kotlin": 159032} | package tw.com.deathhit.core.app_ui_compose
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF246D00)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFA6F780)
val md_theme_light_onPrimaryContainer = Color(0xFF062100)
val md_theme_light_sec... | 0 | Kotlin | 0 | 1 | 8ec8cc77acac5e29a67e3194cff5769202f51687 | 3,207 | SunflowerClone | Apache License 2.0 |
sample/src/main/java/com/facebook/samples/litho/kotlin/collection/TabsCollectionKComponent.kt | facebook | 80,179,724 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | 88 | null | 765 | 7,703 | 8bde23649ae0b1c594b9bdfcb4668feb7d8a80c0 | 3,137 | litho | Apache License 2.0 |
mobile/core/data/dao/src/main/java/co/kr/parkjonghun/whatishedoingwithandroid/outside/dao/datastore/UserDataStoreDao.kt | ParkJong-Hun | 695,838,859 | false | {"Kotlin": 173854} | package co.kr.parkjonghun.whatishedoingwithandroid.outside.dao.datastore
import android.content.Context
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
import co.kr.parkjonghun.whatishedoingwithandroid.outside.datastore.userDataStore
import co.kr.parkjong... | 19 | Kotlin | 1 | 2 | c7cca67357dac308a2fb4644e31058ae8dc0d9f7 | 2,710 | wihd | Apache License 2.0 |
data/slack-jackson-dto/src/main/kotlin/io/hndrs/slack/api/contract/jackson/group/conversations/Create.kt | hndrs | 168,710,332 | false | null | package com.kreait.slack.api.contract.jackson.group.conversations
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo
import com.kreait.slack.api.contract.jackson.common.types.Channel
import com.kreait.slack.api.... | 57 | null | 13 | 16 | 89c5a6ddd0cbac522dd9cd4324901bf2907369a8 | 1,935 | slack-spring-boot-starter | MIT License |
kotpass/src/test/kotlin/app/keemobile/kotpass/resources/ChaChaRes.kt | keemobile | 384,214,968 | false | null | package app.keemobile.kotpass.resources
internal object ChaChaRes {
val ChaChaTestCases = listOf(
StreamCipherTestCase(
rounds = 8,
key = "00000000000000000000000000000000" +
"00000000000000000000000000000000",
iv = "0000000000000000",
output ... | 4 | Kotlin | 1 | 9 | 0e123c087c6ec516492f33c0140497debfb3ba15 | 6,686 | kotpass | MIT License |
src/main/kotlin/org/wfanet/measurement/measurementconsumer/stats/MetricStatistics.kt | world-federation-of-advertisers | 349,561,061 | false | null | /*
* Copyright 2023 The Cross-Media Measurement 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 appl... | 88 | null | 11 | 36 | ba2d2d8d3d4527d844e6d168273b1c2fabfd5d4e | 2,938 | cross-media-measurement | Apache License 2.0 |
src/main/kotlin/org/wfanet/measurement/measurementconsumer/stats/MetricStatistics.kt | world-federation-of-advertisers | 349,561,061 | false | null | /*
* Copyright 2023 The Cross-Media Measurement 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 appl... | 88 | null | 11 | 36 | ba2d2d8d3d4527d844e6d168273b1c2fabfd5d4e | 2,938 | cross-media-measurement | Apache License 2.0 |
app/src/main/java/com/sample/samples/screens/AudioTrack.kt | Ethan1983 | 861,518,075 | false | {"Kotlin": 28194} | package com.sample.samples.screens
import android.widget.Toast
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
i... | 0 | Kotlin | 0 | 0 | dcfeb1395d8930b364f06c9675c395e9a64471ec | 2,170 | Sample | Apache License 2.0 |
intellij-idea/src/test/kotlin/com/itangcent/intellij/config/ConfigReaderDevEnvSupporterTest.kt | Earth-1610 | 178,314,657 | false | {"Kotlin": 1216447, "Java": 35079, "Shell": 3153} | package com.itangcent.intellij.config
import com.google.inject.Inject
import com.itangcent.intellij.context.ActionContext
import com.itangcent.intellij.extend.guice.with
import com.itangcent.intellij.jvm.dev.DevEnv
import com.itangcent.mock.AdvancedContextTest
import org.junit.jupiter.api.Test
import kotlin.test.asser... | 0 | Kotlin | 5 | 8 | af802e7ea26b233610c9d35af89365c93f48158b | 987 | intellij-kotlin | Apache License 2.0 |
src/controllers/UsersController.kt | Penguin-Dream-Team | 312,890,302 | false | {"Kotlin": 68374, "Dockerfile": 1208} | package controllers
import application.UserList
import application.user
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.locations.*
import io.ktor.response.*
import io.ktor.routing.*
import models.User
import org.kodein.di.instance
import org.kodein.di.ktor.di
import responses.SuccessResponse
import ... | 0 | Kotlin | 0 | 0 | e6303704451ed5467dfa5c71ad95bc412ff2d00f | 789 | PenguBank-Server | MIT License |
app/src/main/java/io/github/zwieback/familyfinance/business/preference/custom/filter/IncludeLastDaysOfPreviousMonthOnStartDatePreference.kt | zwieback | 111,666,879 | false | null | package io.github.zwieback.familyfinance.business.preference.custom.filter
import android.content.Context
import android.util.AttributeSet
import androidx.core.content.res.TypedArrayUtils
import androidx.preference.Preference
import io.github.zwieback.familyfinance.R
import io.github.zwieback.familyfinance.core.prefer... | 0 | Kotlin | 0 | 0 | a640c6ce73ca195f2ee5e41ed71fbf6169d9bb3e | 1,727 | FamilyFinance | Apache License 2.0 |
src/main/kotlin/me/syari/ss/core/time/ScheduleTimeEveryWeek.kt | SecondStoryServer | 247,193,075 | false | null | package me.syari.ss.core.time
import java.time.DayOfWeek
data class ScheduleTimeEveryWeek(
val dayOfWeek: DayOfWeek,
val hour: Int,
val minute: Int
) {
fun getNextMinute(): ScheduleTimeEveryWeek {
return create(dayOfWeek, hour, minute + 1)
}
val everyDay by lazy { ScheduleTimeEveryDay... | 0 | null | 1 | 1 | ec274625b2287b23ae416b8d8aa35212e2fd2b71 | 938 | SS-Core | Apache License 2.0 |
notifikasjon/src/test/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/notifikasjon/OpprettOppgaveServiceTest.kt | navikt | 495,713,363 | false | {"Kotlin": 771119, "Dockerfile": 68} | package no.nav.helsearbeidsgiver.inntektsmelding.notifikasjon
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.testsupport.TestRapid
import no.nav.helsearbeidsgiver.felles.BehovType
import no.nav.helsearbeidsgiver.felles.DataFelt
import no.nav.helsearbeidsgiver.felles.EventName
import no... | 13 | Kotlin | 0 | 2 | 11ec9e855b5ea4242bbef27746e728fe8890ed25 | 5,358 | helsearbeidsgiver-inntektsmelding | MIT License |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/controlFlow/orderUtil.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-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 agre... | 6 | null | 0 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 1,987 | intellij-community | Apache License 2.0 |
kotlin-samples/src/main/java/com/jetbrains/domain/Wheel.kt | trishagee | 72,853,830 | true | {"Text": 3, "Ignore List": 4, "Markdown": 2, "Maven POM": 2, "Kotlin": 20, "Java": 179, "YAML": 2, "JSON": 3, "XML": 27, "HTML": 3, "HTTP": 1, "JavaScript": 3, "CSS": 1, "JSON with Comments": 1, "Batchfile": 1, "Shell": 1, "INI": 1, "SQL": 3, "SVG": 1, "Unity3D Asset": 5} | package com.jetbrains.domain
class Wheel | 4 | Java | 5 | 4 | f685e4842350321722dfe6018f2e4daabb0e7b39 | 42 | intellij-samples | MIT License |
app/src/main/java/com/dosti/scamfolio/ui/theme/Theme.kt | zeroParanoie | 803,017,723 | false | {"Kotlin": 145065} | package com.dosti.scamfolio.ui.theme
import android.app.Activity
import androidx.compose.foundation.background
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
impor... | 0 | Kotlin | 2 | 0 | 7c289f15d0bde345ffad4322f31e95d0cda6e9a3 | 2,435 | ScamFolio | Do What The F*ck You Want To Public License |
app/src/main/java/com/mjpc13/sensorstreamer/ui/fragments/TrackingFragment.kt | mjpc13 | 553,780,688 | false | null | package com.mjpc13.sensorstreamer.ui.fragments
import android.content.Intent
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import com.mjpc13.sensorstre... | 2 | Kotlin | 0 | 0 | bc1a3d3cccf3fbca38f47edb4da3d2f472a6aa9b | 8,475 | SensorStreamer | MIT License |
src/main/kotlin/com/cycode/plugin/settings/ApplicationSettingsConfigurable.kt | cycodehq | 661,784,325 | false | {"Kotlin": 199124} | package com.cycode.plugin.settings
import com.cycode.plugin.Consts
import com.cycode.plugin.components.settingsWindow.SettingsWindow
import com.cycode.plugin.services.cycode
import com.cycode.plugin.services.pluginSettings
import com.intellij.openapi.options.SearchableConfigurable
import com.intellij.openapi.project.P... | 1 | Kotlin | 0 | 1 | e63cce021c1f58fbd023da971d4e401a04b6c90c | 2,808 | intellij-platform-plugin | MIT License |
jvm/src/main/kotlin/com/jetbrains/infra/pgpVerifier/Sha256ChecksumSignatureVerifier.kt | JetBrains | 383,109,473 | false | {"Kotlin": 28690, "C#": 22144} | package com.jetbrains.infra.pgpVerifier
import java.io.InputStream
import java.nio.file.Files
import java.nio.file.Path
import java.security.MessageDigest
class Sha256ChecksumSignatureVerifier(private val pgpSignaturesVerifier: PgpSignaturesVerifier) {
private val sha256WithFileNameRegex = Regex("([0-9a-f]{64})[... | 0 | Kotlin | 3 | 3 | c33fc3ca9a58570a369b8e3b94411b0dd3b7925e | 2,929 | download-pgp-verifier | Apache License 2.0 |
src/main/kotlin/io/articulus/fhir/model/dstu3/Address.kt | Articulus-Tech | 160,540,104 | false | null | //
// Generated from FHIR Version 3.0.1.11917 on 2018-12-05T09:46:12.461
//
// 2018, Articulus
//
package io.articulus.fhir.model.dstu3
import kotlin.collections.List
/**
* An address expressed using postal conventions (as opposed to GPS or other location definition formats)
*
* An address expressed using po... | 0 | Kotlin | 0 | 3 | 90b7b912048fc61ad3696497d1ceaf76459852cb | 1,518 | kotlin-fhir-model | Apache License 2.0 |
feature-account-impl/src/main/java/jp/co/soramitsu/feature_account_impl/presentation/account/details/AccountDetailsFragment.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_account_impl.presentation.account.details
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.lifecycle.lifecycleScope
import coil.ImageLoader
import jp.co.soramitsu.common.base.BaseFragment
import jp.co.soramitsu.common.di.FeatureUt... | 1 | null | 14 | 54 | 9d3659e4f142cc4e0270c149ddfb8bd0d6a9eefc | 4,139 | fearless-Android | Apache License 2.0 |
app/src/main/kotlin/dev/atick/safety/repository/auth/AuthRepositoryImpl.kt | atick-faisal | 609,303,624 | false | {"Kotlin": 210519} | package dev.atick.safety.repository.auth
import dev.atick.storage.preferences.data.PreferencesDatastore
import javax.inject.Inject
class AuthRepositoryImpl @Inject constructor(
private val preferencesDatastore: PreferencesDatastore
) : AuthRepository {
override suspend fun saveUserId(userId: String): Result<U... | 2 | Kotlin | 1 | 1 | 4964d4350dab3670ffe9e8552427537f044d158c | 529 | Safety-Android | Apache License 2.0 |
kohii-core/src/main/java/kohii/v1/core/RecycledRendererProvider.kt | eneim | 138,487,627 | false | {"Kotlin": 701013, "Java": 17388, "Shell": 1177} | /*
* Copyright (c) 2019 <NAME>, <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 49 | Kotlin | 50 | 370 | 79f5ec327e3db627d88b089931b63d1e28e4e2ee | 2,186 | kohii | Apache License 2.0 |
app/src/main/java/com/disfluency/components/grid/TwoColumnGridItemSpan.kt | UTN-FRBA-Mobile | 638,009,160 | false | null | package com.disfluency.components.grid
import androidx.compose.foundation.lazy.grid.GridItemSpan
/**
* Custom GridItemSpan to allow grids of two columns
* to have its last element occupy the width of both columns
*/
fun TwoColumnGridItemSpan(index: Int, listSize: Int): GridItemSpan{
val lineSpan = if(index == ... | 1 | Kotlin | 0 | 0 | 44142e38a9c5a6e4422767c439997e187f28f098 | 399 | Disfluency | MIT License |
library/src/main/kotlin/chat/tamtam/botsdk/model/response/SendMessage.kt | Litemn | 175,861,105 | true | {"Kotlin": 109750} | package chat.tamtam.botsdk.model.response
import kotlinx.serialization.Optional
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* This message you will get as Response after sent message to chat
*
* @param chatId - identifier of chat where created message
* @param messageId -... | 0 | Kotlin | 0 | 0 | fcfc679cf672d4402651e3ffbb0bfaa6f2b99c69 | 616 | TamTamBotApiClientDsl | Apache License 2.0 |
minchat-cli/src/main/kotlin/io/minchat/cli/ui/ListView.kt | MinChat-official | 604,238,971 | false | {"Kotlin": 394469} | package io.minchat.cli.ui
import androidx.compose.runtime.Composable
/**
* Displays [elements] by passing entries in it to the [display] function.
*/
@Composable
inline fun <T> ListView(
elements: Iterable<T>,
display: @Composable (T) -> Unit
) {
elements.forEach { display(it) }
}
/**
* Displays [elements] by ... | 0 | Kotlin | 0 | 3 | 8f70585146311efe9fc49e4e3b93eb8becb92cba | 575 | MinChat | Apache License 2.0 |
android/app/src/main/java/github/tornaco/android/thanos/start/chart/StartChartState.kt | Tornaco | 228,014,878 | false | null | package github.tornaco.android.thanos.start.chart
import github.tornaco.android.thanos.widget.pie.ChartItem
data class StartChartState(
val isLoading: Boolean,
val totalTimes: Long,
val category: Category,
val entries: List<ChartItem<String>>,
)
| 239 | Java | 26 | 509 | 2c3531b7c2f23a1cabc7d0de2131257c57ff920b | 264 | Thanox | Apache License 2.0 |
event-sourcing/main/common/db/dao/module/ModuleDAO.kt | grifguitar | 469,521,979 | false | {"Kotlin": 71873, "Java": 39627, "Dockerfile": 151} | package common.db.dao.module
import com.mongodb.rx.client.Success
import common.db.Event
import rx.Observable
interface ModuleDAO<E : Event> {
fun addEvent(event: E): Observable<Success>
fun getAllEventsForUser(userId: Long): Observable<E>
fun getAllEvents(): Observable<E>
fun getCount(): Observab... | 0 | Kotlin | 0 | 0 | 066d47162951d75b5697ea812bd6beadf8f201d1 | 332 | soft-design | Apache License 2.0 |
app/src/androidTest/java/com/blinkist/easylibrary/features/library/LibraryPageObject.kt | tfcporciuncula | 130,910,784 | false | null | package com.blinkist.easylibrary.features.library
import androidx.recyclerview.widget.RecyclerView
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.swipeDown
import androidx.test.espresso.assertion.ViewAssertions.doesN... | 0 | null | 2 | 14 | efac1f7e9c6f6b06ddc7e32e6d4263faa32dea6e | 4,434 | easy-library | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.