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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/test/kotlin/com/github/nenadjakic/eav/controller/EntityControllerTest.kt | nenadjakic | 782,709,579 | false | null | package com.github.nenadjakic.eav.controller
import com.github.nenadjakic.eav.dto.EntityAddRequest
import com.github.nenadjakic.eav.dto.EntityResponse
import com.github.nenadjakic.eav.dto.EntityUpdateRequest
import com.github.nenadjakic.eav.security.JwtService
import com.github.nenadjakic.eav.security.model.SecurityUs... | 0 | null | 0 | 2 | d729c8314a35e529c49548847ab42b4edcf86db2 | 5,373 | eav-platform | MIT License |
packages/cactus-plugin-ledger-connector-fabric/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/FileBase64.kt | RafaelAPB | 241,220,244 | true | {"Markdown": 534, "YAML": 326, "JSON with Comments": 89, "JSON": 375, "JavaScript": 76, "Ignore List": 86, "CODEOWNERS": 2, "Text": 19, "Git Attributes": 1, "SVG": 13, "Gradle": 56, "Makefile": 40, "INI": 27, "Shell": 191, "Batchfile": 24, "XML": 14, "Kotlin": 695, "Dockerfile": 50, "Go": 130, "Go Checksums": 16, "Go M... | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import ... | 50 | TypeScript | 3 | 6 | 4c94bf21ee570349995c61204fe60a2dc6a35766 | 1,134 | blockchain-integration-framework | Apache License 2.0 |
dbinspector/src/main/kotlin/com/infinum/dbinspector/DbInspector.kt | brahmantya | 321,405,181 | false | null | package com.infinum.dbinspector
import android.content.Intent
import com.infinum.dbinspector.ui.Presentation
import com.infinum.dbinspector.ui.databases.DatabasesActivity
import com.infinum.dbinspector.ui.shared.logger.DeadTree
import timber.log.Timber
import timber.log.Timber.DebugTree
object DbInspector {
@Jvm... | 0 | Kotlin | 0 | 0 | 2faef15dacd9fb8d21e41cc5100b1a91c82b80d2 | 743 | P.MOBILE-TUGAS-MODUL10 | Apache License 2.0 |
app/src/main/java/com/deonolarewaju/product_catalogue/presentation/details/ProductDetailsViewModel.kt | deonwaju | 729,797,385 | false | {"Kotlin": 48833} | package com.deonolarewaju.product_catalogue.presentation.details
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.deonolarewaju.product_catalogue.domai... | 0 | Kotlin | 0 | 1 | fead009cfd7e36c09d4c8965c768c6b6f12d75d8 | 1,126 | Product-catalogue | MIT License |
ktest-integration/ktest-rest/src/main/kotlin/run/smt/ktest/rest/rest.kt | saksmt | 115,024,215 | false | null | package run.smt.ktest.rest
import run.smt.ktest.config.config
import run.smt.ktest.rest.impl.RestContextRegistry
/**
* Entry point for REST API DSL
*/
val rest = RestContextRegistry(config)
| 17 | Kotlin | 2 | 12 | 22ba03a69dcf04d95c9e3f5b1c3740ef4dcd07e5 | 194 | ktest | MIT License |
Themer/src/main/kotlin/dev/vendicated/aliucordplugs/themer/settings/ThemerSettings.kt | Vendicated | 370,103,505 | false | {"Kotlin": 219859, "Java": 90817, "JavaScript": 3425, "Shell": 1232} | /*
* Ven's Aliucord Plugins
* Copyright (C) 2021 Vendicated
*
* 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
*/
package dev.vendicated.ali... | 7 | Kotlin | 28 | 209 | a1decb53c13219145ef2336c818d5e2b348f61cc | 10,086 | AliucordPlugins | Apache License 2.0 |
app/src/main/java/com/milad/githoob/ui/launch/LaunchViewModel.kt | cloner93 | 425,942,827 | false | {"Kotlin": 177291, "Java": 19564} | package com.milad.githoob.ui.launch
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.... | 1 | Kotlin | 1 | 15 | 5336a47605afeacd0c3334b92845eba4579091e6 | 2,136 | GitHoob | MIT License |
encoding/src/commonMain/kotlin/diglol/encoding/InternalApi.kt | diglol | 398,510,655 | false | {"Kotlin": 50480} | package diglol.encoding
@Target(
AnnotationTarget.CLASS,
AnnotationTarget.PROPERTY,
AnnotationTarget.FUNCTION,
AnnotationTarget.TYPEALIAS
)
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
annotation class InternalApi
| 3 | Kotlin | 1 | 9 | 6f16529086116fcfea849759d12d2c634a1c47b4 | 228 | encoding | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/comprehend/CfnDocumentClassifierDocumentClassifierInputDataConfigPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.comprehend
import io.cloudshiftdev.awscdkdsl.common.CdkDs... | 4 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 8,099 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/eneskayiklik/word_diary/feature/settings/domain/model/License.kt | Enes-Kayiklik | 651,794,521 | false | null | package com.eneskayiklik.word_diary.feature.settings.domain.model
import com.mikepenz.aboutlibraries.entity.Library
data class License(
val title: String,
val license: String?,
val version: String?,
val author: String?
)
fun Library.toLicence() = try {
License(
title = name,
licen... | 0 | Kotlin | 0 | 3 | 236d4c497d7e141f1536fb62f7458459420d1fe9 | 504 | WordDiary | MIT License |
components/firstpair/impl/src/main/java/com/flipperdevices/firstpair/impl/composable/searching/ComposableSearchingProgress.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.firstpair.impl.composable.searching
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import and... | 2 | Kotlin | 31 | 293 | 522f873d6dcf09a8f1907c1636fb0c3a996f5b44 | 2,389 | Flipper-Android-App | MIT License |
streaming/testSrc/com/android/tools/idea/streaming/emulator/EmulatorUiSettingsControllerTest.kt | JetBrains | 60,701,247 | false | {"Kotlin": 49550960, "Java": 35837871, "HTML": 1217714, "Starlark": 909188, "C++": 357481, "Python": 106384, "C": 71782, "Lex": 66732, "NSIS": 58538, "AIDL": 35382, "Shell": 26938, "CMake": 26798, "JavaScript": 18437, "Smali": 7580, "Batchfile": 6951, "RenderScript": 4411, "Makefile": 2495, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2023 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... | 3 | Kotlin | 219 | 921 | dbd9aeae0dc5b8c56ce2c7d51208ba26ea0f169b | 4,065 | android | Apache License 2.0 |
app/src/main/java/ai/deepar/deepar_example/home/HomePage.kt | LK1919 | 835,766,213 | false | {"Kotlin": 185117, "Java": 1149} | package ai.deepar.deepar_example.home
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import ai.deepar.deepar_example.R
import ai.deepar.deepar_example.databinding.ActivityPatientMyAppointmentsBinding
import ai.dee... | 0 | Kotlin | 0 | 0 | c3784e097cc490935607aa3510811200b5f9f3f8 | 4,505 | capstone-delux | MIT License |
storage/db-core/src/main/kotlin/io/raemian/storage/db/core/token/RefreshToken.kt | depromeet | 717,344,375 | false | null | // package io.raemian.storage.db.core.token
//
// import jakarta.persistence.Entity
// import jakarta.persistence.Id
//
// @Entity
// class RefreshToken(
// @Id
// val id: Long,
// val key: String,
// val value: String,
// )
| 9 | null | 0 | 1 | e7973d2ce47441043eb2aee2a917d77c8c9ccec5 | 241 | amazing3-be | Apache License 2.0 |
tabulate-core/src/main/kotlin/io/github/voytech/tabulate/core/model/alignment/HorizontalAlignment.kt | voytech | 262,033,710 | false | {"Kotlin": 829177, "Java": 7351, "Shell": 679} | package io.github.voytech.tabulate.core.model.alignment
interface HorizontalAlignment {
fun getHorizontalAlignmentId() : String
} | 19 | Kotlin | 0 | 2 | 8a33d3b65128d9ebac6edf5b2f8e93fd4947041c | 134 | tabulate | Apache License 2.0 |
src/test/kotlin/io/github/orioncraftmc/sprawlkt/tests/generated/JustifyContentRowMaxWidthAndMarginTest.kt | OrionCraftMC | 491,301,394 | false | null | package io.github.orioncraftmc.sprawlkt.tests.generated
import io.github.orioncraftmc.sprawlkt.geometry.Size
import io.github.orioncraftmc.sprawlkt.geometry.Size.Companion.undefinedNumber
import io.github.orioncraftmc.sprawlkt.node.Sprawl
import io.github.orioncraftmc.sprawlkt.node.Sprawl.computeLayout
import io.githu... | 1 | Kotlin | 0 | 2 | e621000ccb9f5c1351e4c26c997cf93e8dcf4497 | 2,868 | SprawlKt | MIT License |
stripe/src/test/java/com/stripe/android/model/CustomerSourceTest.kt | https-brandenburghamanda-gmail-com | 334,261,301 | false | null | package com.stripe.android.model
import com.stripe.android.model.SourceFixtures.CUSTOMER_SOURCE_CARD
import com.stripe.android.model.parsers.CustomerSourceJsonParser
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotNull
import kotlin.test.assertNull
import org.json.JSONException
impo... | 0 | null | 0 | 1 | 92bbcc76182fc17f6c4b1d8f1a88dc5fae88dffe | 2,124 | stripe-android | MIT License |
app/src/main/java/com/example/noteappcompose/data/source/remote/dataSource/NotesRemoteDataSource.kt | adelayman1 | 576,742,511 | false | null | package com.example.noteappcompose.data.source.remote.dataSource
import com.example.noteappcompose.data.source.remote.endPoints.NotesApiService
import com.example.noteappcompose.data.source.remote.responseModels.BaseApiResponse
import com.example.noteappcompose.data.source.remote.responseModels.NoteResponseModel
impor... | 0 | Kotlin | 2 | 10 | 582e632671b5352b4fd59f9f8c5377513676f749 | 1,991 | ComposeNotesAppRetrofit | MIT License |
app/src/main/java/com/stratagile/qlink/ui/activity/defi/DefiRateActivity.kt | qlcchain | 115,608,966 | false | null | package com.stratagile.qlink.ui.activity.defi
import android.animation.ObjectAnimator
import android.app.Activity
import android.os.Bundle
import android.support.v4.view.ViewPager
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
import com.pawegio.... | 1 | null | 18 | 46 | 1c8066e4ebbb53c7401751ea3887a6315ccbe5eb | 13,856 | QWallet-Android | MIT License |
app/src/main/java/com/stratagile/qlink/ui/activity/defi/DefiRateActivity.kt | qlcchain | 115,608,966 | false | null | package com.stratagile.qlink.ui.activity.defi
import android.animation.ObjectAnimator
import android.app.Activity
import android.os.Bundle
import android.support.v4.view.ViewPager
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
import com.pawegio.... | 1 | null | 18 | 46 | 1c8066e4ebbb53c7401751ea3887a6315ccbe5eb | 13,856 | QWallet-Android | MIT License |
buildSrc/src/main/java/com/google/firebase/gradle/plugins/DackkaPlugin.kt | firebase | 146,941,185 | false | null | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 442 | null | 575 | 2,270 | 0697dd3aadd6c13d9e2d321c75173992bfbaac3b | 10,598 | firebase-android-sdk | Apache License 2.0 |
plugins/uast-kotlin/testData/Declarations.kt | cypressious | 52,316,479 | true | {"Java": 17992465, "Kotlin": 15424948, "JavaScript": 177557, "Protocol Buffer": 44176, "HTML": 38996, "Lex": 17538, "ANTLR": 9689, "CSS": 9358, "Groovy": 7541, "IDL": 5313, "Shell": 4704, "Batchfile": 3703} | class Declarations {
val a: String = "a"
var b: String
get() = "A"
set(v) { println(v) }
val c: String
class NestedClass {
val b: String = "b"
}
inner class InnerClass {
val c: CharSequence = a
}
companion object {
val CONST_VAL = 1
}
co... | 0 | Java | 0 | 1 | 0e0cbfd89bee55f51c09f77f84759ed2269a0778 | 458 | kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/regressions/SpecififcityByReceiver.kt | chirino | 3,596,099 | true | null | fun Any.equals(<!UNUSED_PARAMETER!>other<!> : Any?) : Boolean = true
fun main(args: Array<String>) {
val command : Any = 1
command<!UNNECESSARY_SAFE_CALL!>?.<!>equals(null)
command.equals(null)
}
| 0 | Java | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 211 | kotlin | Apache License 2.0 |
SERVER/src/main/kotlin/com/konix/data/dto/response/CompaniesMetadataResponseDTO.kt | singhtwenty2 | 809,094,089 | false | {"Kotlin": 369846, "Dockerfile": 414} | package com.konix.data.dto.response
import kotlinx.serialization.Serializable
@Serializable
data class CompaniesMetadataResponseDTO(
val id: Int,
val name: String,
val symbol: String,
val marketCap: Double
)
| 0 | Kotlin | 0 | 1 | b744b0797548d2c1dbec21ba684b4691471dbfc4 | 226 | konix-TEP | MIT License |
profilers/src/com/android/tools/profilers/perfetto/traceprocessor/TraceProcessorModel.kt | phpc0de | 470,555,455 | 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... | 0 | null | 1 | 1 | 79e20f027ca1d047b91aa7acd92fb71fa2968a09 | 12,629 | idea-android | Apache License 2.0 |
compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/ViewLayer.android.kt | JetBrains | 351,708,598 | false | null | /*
* Copyright 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 applica... | 6 | null | 983 | 59 | e18ad812b77fc8babb00aacfcea930607b0794b5 | 17,674 | androidx | Apache License 2.0 |
app/src/main/java/com/main/maybe/miplayer/ui/fragment/HomeFragment.kt | luciferldy | 37,312,180 | false | null | package com.main.maybe.miplayer.ui.fragment
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.V... | 3 | null | 10 | 15 | 3e109274305815a009ebb8b2974fcd042ca4e609 | 4,357 | miplayer | Apache License 2.0 |
clients/kotlin-vertx/generated/src/main/kotlin/org/openapitools/server/api/model/HudsonMasterComputer.kt | oapicf | 90,140,540 | false | {"Java": 12530173, "C++": 7972103, "PHP": 4475625, "TypeScript": 3228611, "Python": 3082826, "Rust": 2800453, "HTML": 2428440, "C#": 2318013, "JavaScript": 1592129, "Kotlin": 1468601, "R": 1219437, "Scala": 1119819, "Ada": 1009616, "C": 985434, "Perl": 962381, "Dart": 896698, "Crystal": 872405, "Haskell": 763757, "Apex... | /**
* <NAME>
* Jenkins API clients generated from Swagger / Open API specification
*
* The version of the OpenAPI document: 2.0.1-pre.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
p... | 30 | Java | 12 | 19 | 277d791c0d363a4d93832bec8a581d4c01297b18 | 2,009 | swaggy-jenkins | MIT License |
app/src/main/java/com/qingmei2/sample/di/HttpClientModule.kt | ngima | 234,334,329 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Markdown": 2, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "XML": 23, "Kotlin": 82, "Java": 2} | package com.qingmei2.sample.di
import com.qingmei2.sample.BuildConfig
import com.qingmei2.sample.http.interceptor.BasicAuthInterceptor
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import org.kodein.di.Kodein
import org.kodein.di.generic.bind
import org.kodein.di.... | 1 | null | 1 | 1 | da57f583c1cedd860b7c6abc39092413c133c245 | 2,440 | MVVM-Architecture | Apache License 2.0 |
src/tests/specification/instacli/spec/InstacliTestSuite.kt | Hes-Siemelink | 617,124,378 | false | {"Kotlin": 110587, "Shell": 36} | package instacli.spec
import instacli.cli.CliFile
import instacli.commands.InternalHttpServer
import instacli.commands.userPrompt
import instacli.util.MockUser
import org.junit.jupiter.api.*
import java.nio.file.Path
class InstacliTestSuite {
@BeforeEach
fun setup() {
userPrompt = MockUser()
}
... | 0 | Kotlin | 0 | 2 | c1e99c95d981370c0454044bd5db1759448d770e | 1,051 | instacli | Apache License 2.0 |
src/test/kotlin/snyk/amplitude/api/VariantTest.kt | snyk | 117,852,067 | false | {"Kotlin": 1060353, "Java": 67741, "JavaScript": 9475, "SCSS": 3094, "HCL": 562} | package snyk.amplitude.api
import com.google.gson.Gson
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotNull
import org.junit.Test
class VariantTest {
private val gson: Gson = Gson()
@Test
fun `parse variant with deprecated key field`() {
val json = """{"key":"on"}"""
... | 8 | Kotlin | 32 | 52 | cf827a6642c0110f618df30d5839703b5c8071bd | 706 | snyk-intellij-plugin | Apache License 2.0 |
src/main/kotlin/hw8/views/MainMenu.kt | vol0n | 341,698,683 | false | {"Kotlin": 116397} | package hw8.views
import hw8.Invite
import hw8.PlayerInfo
import hw8.app.Styles
import hw8.controllers.WebGameController
import io.ktor.util.KtorExperimentalAPI
import tornadofx.View
import tornadofx.action
import tornadofx.borderpane
import tornadofx.drawer
import tornadofx.item
import tornadofx.menu
import tornadofx... | 0 | Kotlin | 0 | 0 | 45f9a341c5ddd92ce0c67721395af365674ee81b | 1,606 | spbu_kotlin_hw | Apache License 2.0 |
java/kotlin/src/main/kotlin/cosmos/base/v1beta1/DecCoinKt.kt | dimitar-petrov | 413,042,055 | true | {"Kotlin": 3495003, "TypeScript": 2945432, "Java": 1230297, "Shell": 1036, "Makefile": 712} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/base/v1beta1/coin.proto
package cosmos.base.v1beta1;
@kotlin.jvm.JvmSynthetic
inline fun decCoin(block: cosmos.base.v1beta1.DecCoinKt.Dsl.() -> Unit): cosmos.base.v1beta1.CoinOuterClass.DecCoin =
cosmos.base.v1beta1.DecCoinKt.Dsl._create(co... | 0 | null | 0 | 0 | 06fcb6a1e57962a46af0aebb90b5b110e0b42435 | 2,127 | terra.proto | Apache License 2.0 |
todo-mvp/src/main/java/com/github/bassaer/todomvp/BasePresenter.kt | bassaer | 125,229,420 | false | null | package com.github.bassaer.todomvp
/**
* Created by nakayama on 2018/03/18.
*/
public interface BasePresenter {
fun start()
} | 0 | Kotlin | 0 | 0 | 80384491292a090504d36e496ed3986596711d73 | 132 | android-architecture-patterns | Apache License 2.0 |
app/src/main/java/com/ww7h/ww/common/utils/SignUtil.kt | hiww7h | 177,269,079 | false | null | package com.ww7h.ww.common.utils
import android.content.Context
import android.content.pm.PackageManager
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
object SignUtil {
fun getSignMd5Str(context: Context, packgeName: String): String {
try {
val packageInfo ... | 1 | null | 2 | 4 | e43d426384f35971508e1ae6d61aef868168764e | 1,643 | Android-common | MIT License |
src/main/kotlin/model/classes/IntMatrix.kt | MaxBuster380 | 622,688,076 | false | null | import java.lang.Exception
import java.lang.IndexOutOfBoundsException
/**
* Integer Matrix
* @author MaxBuster
*/
class IntMatrix {
// INSTANCE ATTRIBUTES
private val values : MutableList<MutableList<Int>>
private val nbRows : Int
private val nbColumns : Int
// CONSTRUCTORS
constructor(nbR... | 0 | Kotlin | 0 | 3 | c77168a15f7da11c44a7ebaec8fb9a1cd826b1b7 | 5,478 | OneShot-Color-Filter | MIT License |
src/main/kotlin/dp/SPS.kt | yx-z | 106,589,674 | false | null | package dp
import util.*
// Shortest Palindromic Supersequence
// given a String S[1..n], find the shortest palindromic superseuqnce of S
fun main(args: Array<String>) {
val arr = "TWENTYONE".toCharArray().toList().toOneArray()
println(arr.sps()) // TWENToYOtNEwt -> 13 (inserted characters are lowercased)
}
fun On... | 0 | Kotlin | 0 | 1 | 15494d3dba5e5aa825ffa760107d60c297fb5206 | 1,679 | AlgoKt | MIT License |
idea/testData/refactoring/extractFunction/controlFlow/evaluateExpression/evalExpressionBodyFunction.kt | staltz | 38,581,975 | true | {"Markdown": 34, "XML": 687, "Ant Build System": 40, "Ignore List": 8, "Git Attributes": 1, "Kotlin": 18510, "Java": 4307, "Protocol Buffer": 4, "Text": 4085, "JavaScript": 63, "JAR Manifest": 3, "Roff": 30, "Roff Manpage": 10, "INI": 7, "HTML": 135, "Groovy": 20, "Maven POM": 50, "Gradle": 71, "Java Properties": 10, "... | // PARAM_TYPES: kotlin.Int
// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: value-parameter val a: kotlin.Int defined in foo
// PARAM_DESCRIPTOR: value-parameter val b: kotlin.Int defined in foo
// SIBLING:
fun foo(a: Int, b: Int): Int = <selection>a + b</selection>
| 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 266 | kotlin | Apache License 2.0 |
common/src/main/java/com/piriurna/common/composables/scaffold/ADNavigationItem.kt | piriurna | 542,623,945 | false | {"Kotlin": 95640} | package com.piriurna.common.composables.scaffold
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.material.icons.Icons
import androi... | 0 | Kotlin | 0 | 0 | 948d38f31bb3b8b618224960b3db78cd4bcb2ee9 | 2,441 | AndroidDog | MIT License |
feature-ledger-impl/src/main/java/io/novafoundation/nova/feature_ledger_impl/presentation/account/connect/generic/finish/FinishImportGenericLedgerViewModel.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11121812, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.feature_ledger_impl.presentation.account.connect.generic.finish
import io.novafoundation.nova.common.resources.ResourceManager
import io.novafoundation.nova.feature_account_api.domain.interfaces.AccountInteractor
import io.novafoundation.nova.feature_account_api.presenatation.account.cre... | 12 | Kotlin | 30 | 50 | 127f8739ca86dc74d006f018237daed0de5095a1 | 1,511 | nova-wallet-android | Apache License 2.0 |
va_code/app/src/main/java/com/mvrc/viewapp/presentation/sign_up/view_model/SignUpFormEvent.kt | MarcoBendinelli | 789,851,376 | false | {"Kotlin": 547994} | package com.mvrc.viewapp.presentation.sign_up.view_model
/**
* Sealed class representing events related to the Sign Up form.
*/
sealed class SignUpFormEvent {
/**
* Event indicating a change in the email field.
*
* @param email The updated email value.
*/
data class EmailChanged(val emai... | 0 | Kotlin | 0 | 0 | 1c570950bd1d8e122e83414c1b0ff6d731a2d3fb | 802 | View-Android-Mobile-App | MIT License |
src/en/zoro/src/eu/kanade/tachiyomi/animeextension/en/zoro/Zoro.kt | MoonLGH | 410,582,925 | true | {"Kotlin": 1919153, "Java": 6463} | package eu.kanade.tachiyomi.animeextension.en.zoro
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animeextension.en.zoro.extractors.ZoroExtractor
import eu.kanade.tachiyomi.animeext... | 0 | Kotlin | 0 | 0 | 6741e2f3b1994238796cb025337fcc707b43da8a | 14,072 | aniyomi-tachiyomi-ext | Apache License 2.0 |
android/quest/src/androidTest/java/org/smartregister/fhircore/quest/ui/shared/components/ActionableButtonTest.kt | opensrp | 339,242,809 | false | null | /*
* Copyright 2021 Ona 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 140 | Kotlin | 16 | 27 | 1772266e561a2176aa88bfcbcb2368fe1f80add0 | 2,850 | fhircore | Apache License 2.0 |
app/src/main/java/at/rtr/rmbt/android/ui/adapter/QosTestDetailPagerAdapter.kt | rtr-nettest | 195,193,208 | false | null | package at.rtr.rmbt.android.ui.adapter
import android.content.Context
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import at.rtr.rmbt.android.R
import at.rtr.rmbt.android.ui.fragment.QosTestDetail... | 1 | null | 8 | 6 | f9fc150c71452b9ef9027f1506e216d9dda40235 | 1,606 | open-rmbt-android | Apache License 2.0 |
src/main/kotlin/ru/scuroneko/furniture/ModBlocks.kt | ScuroNeko | 796,769,478 | false | {"Kotlin": 174165} | package ru.scuroneko.furniture
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
import net.minecraft.block.Block
import net.minecraft.block.BlockSetType
import net.minecraft.block.Blocks
import net.minecraft.block.entity.BlockEntity
import net.minecraft.block.entity.BlockEntityType
import n... | 0 | Kotlin | 0 | 0 | 9e689b5a62eaca19fea192a376a0d9d1bad390f7 | 15,027 | ScuroFurniture | MIT License |
src/main/kotlin/ru/scuroneko/furniture/ModBlocks.kt | ScuroNeko | 796,769,478 | false | {"Kotlin": 174165} | package ru.scuroneko.furniture
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
import net.minecraft.block.Block
import net.minecraft.block.BlockSetType
import net.minecraft.block.Blocks
import net.minecraft.block.entity.BlockEntity
import net.minecraft.block.entity.BlockEntityType
import n... | 0 | Kotlin | 0 | 0 | 9e689b5a62eaca19fea192a376a0d9d1bad390f7 | 15,027 | ScuroFurniture | MIT License |
plugins/ksp/testData/api/resolveJavaType.kt | android | 263,405,600 | false | null | // TEST PROCESSOR: ResolveJavaTypeProcessor
// EXPECTED:
// kotlin.Int
// kotlin.String?
// kotlin.IntArray?
// C.T?
// C.PFun.P?
// kotlin.collections.MutableList<out kotlin.collections.MutableSet<kotlin.Double?>?>?
// kotlin.collections.MutableList<in kotlin.collections.MutableList<out kotlin.Double?>?>?
// Bar?
// k... | 1 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 845 | kotlin | Apache License 2.0 |
app/src/main/java/uk/nhs/nhsx/sonar/android/app/registration/RegistrationManager.kt | nhsx | 261,523,644 | false | null | /*
* Copyright © 2020 NHSX. All rights reserved.
*/
package uk.nhs.nhsx.sonar.android.app.registration
import android.content.Context
import androidx.annotation.VisibleForTesting
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import androidx.work.BackoffPolicy
import androidx.work.Constraints... | 0 | Kotlin | 146 | 793 | ebcb3221b89333d9f555592aebc934d06608d784 | 4,136 | COVID-19-app-Android-BETA | MIT License |
livingdoc-repositories/src/main/kotlin/org/livingdoc/repositories/config/RepositoryDefinition.kt | LivingDoc | 85,412,044 | false | null | package org.livingdoc.repositories.config
import org.livingdoc.repositories.DocumentRepository
/**
* A RepositoryDefinition describes a single [DocumentRepository] inside a [RepositoryConfiguration].
*
* @see DocumentRepository
* @see RepositoryConfiguration
*/
data class RepositoryDefinition(
var name: Stri... | 34 | null | 16 | 14 | f3d52b8bacbdf81905e4b4a753d75f584329b297 | 417 | livingdoc | Apache License 2.0 |
app/src/main/java/com/zacharee1/systemuituner/services/Manager.kt | zacharee | 221,786,635 | false | {"Kotlin": 681812, "AIDL": 1172} | package com.zacharee1.systemuituner.services
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.ServiceI... | 29 | Kotlin | 174 | 994 | 27672d3a0ad7caf1dce360dc1a0651926903b8a8 | 6,708 | Tweaker | MIT License |
ui-home/src/test/java/dev/sasikanth/twine/home/util/PagingTestUtil.kt | msasikanth | 516,650,081 | false | {"Kotlin": 364930} | package dev.sasikanth.twine.home.util
import androidx.paging.DifferCallback
import androidx.paging.NullPaddedList
import androidx.paging.PagingData
import androidx.paging.PagingDataDiffer
internal suspend fun <T : Any> PagingData<T>.collectDataForTest(): List<T> {
val differCallback = object : DifferCallback {
... | 1 | Kotlin | 0 | 27 | 6c259de1a818da155a29a3837a85326e1b132955 | 997 | tweet-unroll-android | Apache License 2.0 |
idea/testData/intentions/branched/ifThenToSafeAccess/doesNotinlineValueIfUsedMoreThanOnce.kt | gigliovale | 89,726,097 | false | null | fun maybeFoo(): String? {
return "foo"
}
fun doSomething<T>(a: T) {}
fun main(args: Array<String>) {
val foo = maybeFoo()
doSomething(foo)
if (foo != null<caret>) {
foo.length
}
else {
null
}
}
| 0 | null | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 240 | kotlin | Apache License 2.0 |
app-client-web/src/main/kotlin/StatisticsComponent.kt | smal-sergey | 277,090,015 | false | null | import com.smalser.common.Game
import com.smalser.common.Statistics
import kotlinx.css.*
import kotlinx.css.properties.border
import kotlinx.css.properties.borderBottom
import kotlinx.css.properties.borderLeft
import react.*
import react.dom.*
import styled.*
object TableStyles : StyleSheet("TableStyles") {
val ta... | 0 | Kotlin | 0 | 0 | a243f833935cc9387583029e979960939909f41a | 3,320 | kotlin-multiplatform-example | Apache License 2.0 |
feature/player/src/main/kotlin/dev/dexsr/klio/player/shared/PlaybackMediaDescription.kt | flammky | 462,795,948 | false | {"Kotlin": 5222947} | package dev.dexsr.klio.library.shared
import dev.dexsr.klio.base.UNSET
data class PlaybackMediaDescription(
val title: String?,
val subtitle: String?
): UNSET<PlaybackMediaDescription> by Companion {
companion object : UNSET<PlaybackMediaDescription> {
override val UNSET: PlaybackMediaDescriptio... | 0 | Kotlin | 6 | 56 | a452c453815851257462623be704559d306fb383 | 423 | Music-Player | Apache License 2.0 |
src/test/kotlin/me/grison/aoc/y2022/AllDaysTest.kt | agrison | 315,292,447 | false | null | package me.grison.aoc.y2022
import me.grison.aoc.Day
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.core.Is.`is`
import org.junit.jupiter.api.DynamicTest
import org.junit.jupiter.api.TestFactory
data class Answer(val inst: () -> Day, val part1: Any, val part2: Any)
class AllDaysTest {
@TestFact... | 0 | Kotlin | 4 | 20 | ea6899817458f7ee76d4ba24d36d33f8b58ce9e8 | 1,622 | advent-of-code | Creative Commons Zero v1.0 Universal |
src/commonTest/kotlin/serialize/task/TestTaskStatus.kt | nuhkoca | 222,564,952 | true | {"Kotlin": 956270, "Ruby": 4462} | package serialize.task
import com.algolia.search.model.task.TaskStatus
import kotlinx.serialization.json.JsonLiteral
import serialize.TestSerializer
import unknown
internal class TestTaskStatus : TestSerializer<TaskStatus>(TaskStatus) {
override val items = listOf(
TaskStatus.Published to JsonLiteral(Ta... | 0 | null | 0 | 0 | ffbc7a8b16f9544df2e02cca5206420724f7d3c5 | 487 | algoliasearch-client-kotlin | MIT License |
confluence-plugin/src/main/java/com/networkedassets/git4c/boundary/GetPredefinedRepositoryBranchesResultRequest.kt | rpaasche | 321,741,515 | true | {"Kotlin": 798728, "JavaScript": 351426, "Java": 109291, "Groovy": 55451, "CSS": 37375, "ANTLR": 19544, "Gherkin": 15007, "HTML": 14268, "Shell": 4490, "Ruby": 1378, "Batchfile": 1337, "PowerShell": 716} | package com.networkedassets.git4c.boundary
import com.networkedassets.git4c.boundary.outbound.Branches
import com.networkedassets.git4c.core.usecase.async.BackendRequestForAsyncResult
class GetPredefinedRepositoryBranchesResultRequest(requestId: String) : BackendRequestForAsyncResult<Branches>(requestId) | 0 | Kotlin | 0 | 0 | e55391b33cb70d66bbf5f36ba570fb8822f10953 | 308 | git4c | Apache License 2.0 |
mobile-common-lib/src/commonMain/kotlin/fi/riista/common/domain/groupHunting/dto/GroupHuntingDiaryDTO.kt | suomenriistakeskus | 78,840,058 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 2, "Text": 4, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 4, "Gradle Kotlin DSL": 1, "Kotlin": 1344, "XML": 401, "Java": 161, "Protocol Buffer": 1, "JSON": 1} | package fi.riista.common.domain.groupHunting.dto
import fi.riista.common.domain.groupHunting.model.GroupHuntingDiary
import kotlinx.serialization.Serializable
@Serializable
data class GroupHuntingDiaryDTO(
val harvests: List<GroupHuntingHarvestDTO>,
val observations: List<GroupHuntingObservationDTO>,
val ... | 0 | Kotlin | 0 | 3 | 23645d1abe61c68d649b6d0ca1d16556aa8ffa16 | 936 | oma-riista-android | MIT License |
app/src/main/java/com/z299studio/pbfree/DetailFragment.kt | zhuqianqian | 24,934,090 | false | null | package com.z299studio.pbfree
import android.os.Bundle
import android.view.*
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
impo... | 1 | null | 13 | 22 | 73823d7865cf4e52436ec5950cf9f695104a0941 | 2,427 | Passbook | Apache License 2.0 |
components-compose/src/main/java/uk/gov/hmrc/components/compose/ui/theme/Theme.kt | hmrc | 299,591,950 | false | null | /*
* Copyright 2023 HM Revenue & Customs
*
* 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... | 2 | null | 3 | 7 | f51ffb49fac6d44fad0fbc2df95b02ea989840da | 10,909 | android-components | Apache License 2.0 |
test-utils/src/main/kotlin/dev/restate/e2e/utils/KafkaContainer.kt | restatedev | 489,007,488 | false | {"Kotlin": 145330, "TypeScript": 71722, "Java": 64358, "Shell": 2387, "Dockerfile": 413} | // Copyright (c) 2023 - Restate Software, Inc., Restate GmbH
//
// This file is part of the Restate SDK Test suite tool,
// which is released under the MIT license.
//
// You can find a copy of the license in file LICENSE in the root
// directory of this repository or package, or at
// https://github.com/restatedev/sdk... | 6 | Kotlin | 3 | 3 | c69673ba4599268fc4f6595cd55593967cccb46c | 2,293 | e2e | MIT License |
sample-kotlin/src/main/java/com/nearit/sample_kotlin/MyApplication.kt | nearit | 59,191,252 | false | null | package com.nearit.sample_kotlin
import android.app.Application
import android.widget.Toast
import android.widget.Toast.LENGTH_SHORT
import it.near.sdk.NearItManager
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
NearItManager.getInstance().setProximityNotificat... | 0 | Kotlin | 3 | 10 | 6f74e30a2dc8ac3db9c13a8f5d316c6a34fda044 | 474 | Android-SDK | MIT License |
src/main/kotlin/com/flixis/scanner/view/Settings.kt | Flixis | 270,761,572 | false | null | package com.flixis.scanner.view
import tornadofx.*
//TODO
class Settings : View("My View") {
override val root = borderpane {
}
}
| 0 | Kotlin | 0 | 0 | cf2343abe54926e7c7323f8822c86e7462f55063 | 140 | Auto-Scanner | MIT License |
android/app/src/main/java/com/tvd12/freechat/constant/Commands.kt | youngmonkeys | 152,706,853 | false | null | package com.tvd12.freechat.constant
/**
* Created by tavandung12 on 10/3/18.
*/
object Commands {
const val SUGGEST_CONTACTS = "1"
const val ADD_CONTACTS = "2"
const val CHAT_SYSTEM_MESSAGE = "4"
const val CHAT_GET_CONTACTS = "5"
const val CHAT_USER_MESSAGE = "6"
const val SEARCH_CONTACTS =... | 1 | null | 20 | 34 | 9079939d7bd33d9b0e050a130df8b0d931bf13a0 | 329 | freechat | Apache License 1.1 |
app/src/main/java/org/oppia/android/app/devoptions/mathexpressionparser/MathExpressionParserFragment.kt | oppia | 148,093,817 | false | null | package org.oppia.android.app.devoptions.mathexpressionparser
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import org.oppia.android.app.fragment.FragmentComponentImpl
import org.oppia.android.app.fragment.InjectableFra... | 508 | null | 517 | 315 | 95699f922321f49a3503783187a14ad1cef0d5d3 | 1,146 | oppia-android | Apache License 2.0 |
app/src/main/java/com/minhdtm/example/we_note/domain/usecase/GetAllUsersUseCase.kt | hide-your-code | 501,632,307 | false | null | package com.minhdtm.example.we_note.domain.usecase
import com.minhdtm.example.we_note.data.model.User
import com.minhdtm.example.we_note.domain.repositories.UserRepository
import com.minhdtm.example.we_note.domain.usecase.base.FlowUseCase
import com.minhdtm.example.we_note.presentations.di.MainDispatcher
import kotlin... | 0 | Kotlin | 0 | 0 | 4f0b8a963251fe12d921dfb973cfb4316f485fb5 | 764 | we_note | Apache License 2.0 |
cccev-core/src/jvmMain/kotlin/cccev/core/certification/service/CertificationValuesFillerService.kt | komune-io | 746,816,569 | false | {"Kotlin": 345488, "TypeScript": 93204, "MDX": 92741, "Gherkin": 28441, "Makefile": 5690, "JavaScript": 2459, "HTML": 1853, "Dockerfile": 1787, "CSS": 605} | package cccev.core.certification.service
import cccev.commons.utils.mapAsync
import cccev.core.certification.entity.CertificationRepository
import cccev.core.certification.entity.RequirementCertification
import cccev.core.certification.entity.SupportedValue
import cccev.core.certification.entity.isFulfilled
import ccc... | 2 | Kotlin | 0 | 0 | f6a4e3ea8a8f80b2b6224fa05335cf4bb7ae770a | 8,794 | connect-cccev | Apache License 2.0 |
webui/src/main/kotlin/com/simiacryptus/skyenet/apps/general/PlanChatApp.kt | SimiaCryptus | 619,329,127 | false | {"Kotlin": 781804, "JavaScript": 60230, "SCSS": 31588, "HTML": 5642, "Scala": 5538, "Java": 2053} | package com.simiacryptus.skyenet.apps.general
import com.simiacryptus.jopenai.API
import com.simiacryptus.jopenai.ChatClient
import com.simiacryptus.jopenai.models.OpenAITextModel
import com.simiacryptus.skyenet.apps.plan.*
import com.simiacryptus.skyenet.core.platform.Session
import com.simiacryptus.skyenet.core.plat... | 1 | Kotlin | 0 | 1 | 68fc3756084f30fd5a5c64200abd55b1b4fe7c11 | 5,951 | SkyeNet | Apache License 2.0 |
app/src/main/java/com/carlosgub/coroutines/features/books/data/mapper/PostDataMapper.kt | dungnguyen87 | 478,834,666 | false | null | package com.carlosgub.coroutines.features.books.data.mapper
import com.carlosgub.coroutines.core.mapper.Mapper
import com.carlosgub.coroutines.features.books.data.datasource.rest.response.PostResponseData
import com.carlosgub.coroutines.features.books.domain.model.PostEntity
class PostDataMapper : Mapper<PostResponse... | 0 | Kotlin | 0 | 0 | d13e4d6922b0149081001529ec4eb01dae035057 | 639 | Fetch-Technology-Test | Apache License 2.0 |
s_bpm/src/main/kotlin/sbpm_solution/bpms/sbpm/dume.kt | atim333 | 534,139,851 | false | {"Kotlin": 190328} | package sbpm_solution.bpms.sbpm
class dume {
} | 0 | Kotlin | 0 | 0 | 5884b562b576df27baa634952ab4fbaad0e4c98d | 47 | sbpm_solution | Apache License 2.0 |
app/src/main/java/com/example/bank_branch_details/network/model/Access_BranchCode.kt | SawThanDar18 | 192,281,355 | false | null | package com.example.bank_branch_details.network.model
import com.google.gson.annotations.SerializedName
class Access_BranchCode (val branchCode : String, val appVersion : String) | 0 | Kotlin | 0 | 0 | 37f7c03ded5f5cdf62a77cebc4b5963d0381de56 | 180 | Bank_Branch_Details | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/subjectaccessrequestworker/mockservers/PrisonApiMockServer.kt | ministryofjustice | 748,250,175 | false | {"Kotlin": 379980, "Mustache": 234771, "Shell": 7048, "Dockerfile": 1161} | package uk.gov.justice.digital.hmpps.subjectaccessrequestworker.mockservers
import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.client.WireMock.aResponse
import com.github.tomakehurst.wiremock.client.WireMock.get
import com.github.tomakehurst.wiremock.client.WireMock.matching
... | 2 | Kotlin | 0 | 1 | 82d22434568c80edb191920f67aa4e1cf583657a | 1,064 | hmpps-subject-access-request-worker | MIT License |
app/src/main/java/social/entourage/android/onboarding/onboard/OnboardingPhase2Fragment.kt | ReseauEntourage | 30,242,877 | false | {"Kotlin": 1851766} | package social.entourage.android.onboarding.onboard
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.CountDownTimer
import android.text.Editable
import android.text.Html
import android.text.Te... | 1 | Kotlin | 2 | 9 | 46ca9370f0db0415bd868f0008ba2ff1d41f2f3c | 7,177 | entourage-android | MIT License |
app/src/main/kotlin/com/gcode/vastutils/activity/NetStateActivity.kt | SakurajimaMaii | 353,212,367 | false | null | /*
* Copyright 2022 VastGui
*
* 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... | 5 | null | 4 | 34 | 3ac2ce67b9bab4a801d79f83fc0f80f234a1481e | 2,856 | VastUtils | Apache License 2.0 |
app/src/main/java/com/example/android/taskinterop/MainActivity.kt | googlesamples | 313,345,462 | false | null | /* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | null | 6 | 6 | 6f6ac5ff79528bf9191ccef36204a7c6d58030d4 | 5,031 | task-interop | Apache License 2.0 |
library/core/validation/src/test/kotlin/de/lise/fluxflow/validation/jakarta/TestModelWithRecursiveProp.kt | lisegmbh | 740,936,659 | false | {"Kotlin": 732955} | package de.lise.fluxflow.validation.jakarta
import jakarta.validation.Valid
class TestModelWithRecursiveProp {
@Valid
var someProp: TypeWithRecursiveProp? = null
} | 20 | Kotlin | 0 | 7 | 03a99c536434660fc2cde3df9e220991ff487599 | 173 | fluxflow | Apache License 2.0 |
app/src/main/java/com/arindam/camerax/ui/base/BaseFragmentCompose.kt | arindamxd | 185,732,147 | false | {"Kotlin": 118672} | package com.arindam.camerax.ui.base
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.StringRes
import androidx.compose.ui.platform.ComposeView
import androidx.core.content.ContextCompat... | 2 | Kotlin | 21 | 99 | b5266acd99b72f0cb16e3ffb04b47767a8988244 | 2,868 | android-camerax | Apache License 2.0 |
app/src/main/java/com/wgy/recycleclient/ui/adapter/ActivityRecommendAdapter.kt | Gaoyuan-Wang | 451,928,127 | false | {"Kotlin": 125594} | package com.wgy.recycleclient.ui.adapter
import android.content.Intent
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import androidx.recyclerview.widget.RecyclerView
import com.w... | 0 | Kotlin | 0 | 0 | ba34b9270b49f3801ecf316e9e2766941ffb8a4a | 2,532 | RecycleClient | Apache License 2.0 |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/components/channel_info/members/adapter/holders/ChannelMembersViewHolderFactory.kt | sceyt | 549,073,085 | false | {"Kotlin": 2713714, "Java": 107920} | package com.sceyt.chatuikit.presentation.components.channel_info.members.adapter.holders
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.sceyt.chatuikit.SceytChatUIKit
import com.sceyt.chatuikit.databinding.SceytItemChannelMembersBinding
import com.sceyt.chatu... | 0 | Kotlin | 1 | 2 | 92717e7a0201600396bacddaa279f8a07a298650 | 2,741 | sceyt-chat-android-uikit | MIT License |
app/src/main/java/com/qihaocai/flixsterv2/Movies.kt | Arstal | 545,219,588 | false | null | package com.qihaocai.flixsterv2
import com.google.gson.annotations.SerializedName
class Movies {
@JvmField
@SerializedName("title")
var title: String? = null
@JvmField
@SerializedName("poster_path")
var imageUrl: String? = null
@JvmField
@SerializedName("overview")
var descripti... | 1 | Kotlin | 0 | 0 | bdbf938376a7df905c6503060a62fba53963ce8a | 422 | FlixsterV2 | Apache License 2.0 |
code/testutils/src/main/java/com/adobe/marketing/mobile/util/NetworkRequestHelper.kt | adobe | 706,036,703 | false | {"Kotlin": 199092, "Java": 53945, "Shell": 3706, "Makefile": 2043} | /*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you 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 la... | 0 | Kotlin | 2 | 0 | e290ab17ebe6230e771c227e3b77d20d63a7dd42 | 11,768 | aepsdk-testutils-android | Apache License 2.0 |
api/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/api/response/RedisTimeoutResponse.kt | navikt | 495,713,363 | false | null | @file:UseSerializers(UuidSerializer::class)
package no.nav.helsearbeidsgiver.inntektsmelding.api.response
import kotlinx.serialization.EncodeDefault
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import no.nav.helsearbeid... | 13 | null | 0 | 2 | ac27b5b7ab057a45d64d31524cbe3cfbb9666489 | 863 | helsearbeidsgiver-inntektsmelding | MIT License |
test/fixtures/general/src/main/kotlin/pkt1/VarargReference.kt | seachicken | 349,989,943 | false | {"Common Lisp": 292446, "Java": 5483, "Kotlin": 5450, "Dockerfile": 1633} | package pkt1
class VarargReference {
fun method(vararg vs: VarargHelper) {
method(*vs)
}
}
| 3 | Common Lisp | 1 | 13 | b233d85ffde99ef23926ad8c4000ef5a8829dae3 | 108 | inga | MIT License |
country_data/src/test/java/TestConvert.kt | igor-alyoshin | 265,827,953 | true | {"Gradle": 4, "YAML": 3, "Java Properties": 3, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Text": 1, "Markdown": 3, "Proguard": 2, "Java": 7, "XML": 128, "INI": 1, "Kotlin": 2, "JSON": 1} | import com.blongho.country_data.World
import com.google.gson.Gson
import org.junit.Test
import java.io.File
class TestConvert {
@Test
fun test(){
val path = "src/main/res"
val imagesPath = "$path/drawable"
val file = File(imagesPath)
val icons = file.listFiles() ?: emptyArray(... | 0 | Java | 0 | 0 | 6b9baa57ca66a16b7cddac9b84a818f05192111e | 1,083 | worldCountryData | MIT License |
Desktop/src/jvmMain/kotlin/io/nacular/doodle/skia/Utils.kt | nacular | 108,631,782 | false | null | package io.nacular.doodle.skia
import io.nacular.doodle.drawing.AffineTransform
import io.nacular.doodle.drawing.Color
import io.nacular.doodle.geometry.Path
import io.nacular.doodle.geometry.Point
import io.nacular.doodle.geometry.Polygon
import io.nacular.doodle.geometry.Rectangle
import io.nacular.doodle.geometry.t... | 4 | Kotlin | 19 | 450 | 2aba993826fcd67dcc825259d6fc7736039de5db | 1,625 | doodle | MIT License |
src/test/kotlin/io/imotions/bson4k/encoder/BsonClassEncoderTest.kt | imotions | 338,147,158 | false | null | /*
* Copyright 2022 iMotions A/S
*
* 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... | 2 | null | 0 | 6 | 6194962a071937ce42eed7f64c6b3e837427dc18 | 4,412 | bson4k | Apache License 2.0 |
src/main/java/io/github/intellij/dlanguage/codeinsight/render/BasicRenderer.kt | ErnyTech | 146,434,208 | false | null | package io.github.intellij.dlanguage.codeinsight.render
import com.intellij.codeInsight.lookup.LookupElement
import com.intellij.codeInsight.lookup.LookupElementPresentation
import io.github.intellij.dlanguage.codeinsight.dcd.completions.DCDCompletionKind
import io.github.intellij.dlanguage.codeinsight.dcd.completions... | 1 | null | 1 | 1 | b0fcc09ebe4287d60a1d35ba9e4387564e30a42d | 2,558 | intellij-dlanguage | MIT License |
buildSrc/src/main/kotlin/karakum/table/Generator.kt | karakum-team | 393,199,102 | false | null | package karakum.table
import karakum.common.GENERATOR_COMMENT
import karakum.common.Suppress.NOTHING_TO_INLINE
import karakum.common.fileSuppress
import karakum.common.writeCode
import java.io.File
private val DEFAULT_IMPORTS = listOf(
"js.promise.Promise",
"kotlin.js.RegExp",
"js.collections.JsMap",
... | 0 | null | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 2,500 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/example/myapplication2/DataQuestions.kt | veridetta | 669,381,677 | false | null | package com.example.myapplication2
object DataQuestions {
const val TOTAL_QUESTION_KEY: String = "total_question"
const val SCORE_KEY: String = "score"
private val objectId = arrayOf(
// Present Tense (ID 1-10)
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
// Past Tense (ID 11-20)
11, 12,... | 0 | Kotlin | 0 | 0 | 0b37e9f9be943ba46fee6f76b4d4f09e4ffbee2f | 7,144 | QuizEng | MIT License |
qatoolkit-inspector-core/src/main/java/com/github/iojjj/bootstrap/pub/qatoolkit/inspector/Order.kt | Iojjj | 429,845,456 | false | {"Kotlin": 694141} | package com.github.iojjj.bootstrap.pub.qatoolkit.inspector
/**
* Annotation that specifies order in which object inspection happens.
* @property value Order of inspection. Smaller numbers results in earlier inspection.
*/
@Retention(AnnotationRetention.RUNTIME)
annotation class Order(val value: Int = 0)
| 0 | Kotlin | 1 | 3 | 8f131d8132b0deb6a638d2a66fdf1d53911cca32 | 309 | QA-Toolkit | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/model/BulkAppointment.kt | ministryofjustice | 533,838,017 | false | null | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.model
import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.v3.oas.annotations.media.Schema
import java.time.LocalDateTime
@Schema(
description = "Describes a list of activities created as part of a single bulk operation",
)
data class... | 4 | Kotlin | 0 | 1 | 9f121ceca8be8482d39edc7cd16180ae586e5b34 | 1,012 | hmpps-activities-management-api | MIT License |
lib/src/main/kotlin/stumpers/Cleaning.kt | cs124-illinois | 585,572,354 | false | {"Kotlin": 402255, "ANTLR": 73858, "TypeScript": 31780, "HTML": 11586, "Java": 8021, "Dockerfile": 924} | @file:Suppress("unused")
package edu.illinois.cs.cs125.questioner.lib.stumpers
import com.mongodb.client.MongoCollection
import com.mongodb.client.model.Filters
import edu.illinois.cs.cs125.jeed.core.KtLintArguments
import edu.illinois.cs.cs125.jeed.core.Source
import edu.illinois.cs.cs125.jeed.core.googleFormat
impo... | 0 | Kotlin | 0 | 1 | ab0abe4d3ab2ef61a417bf0ddab607f867f6c74c | 2,694 | questioner | MIT License |
squash-core/src/org/jetbrains/squash/schema/DatabaseSchema.kt | vyasenenko | 138,751,073 | true | {"Kotlin": 248042} | package org.jetbrains.squash.schema
import org.jetbrains.squash.change.ChangeLogController
import org.jetbrains.squash.definition.*
import org.jetbrains.squash.dialect.*
/**
* Provides facilities for querying and modifying database schema
*/
interface DatabaseSchema {
fun tables(): Sequence<SchemaTable>
f... | 0 | Kotlin | 0 | 0 | 290a89ff97c6515b85055dc8966d93528cb467ab | 1,159 | squash | Apache License 2.0 |
src/main/kotlin/care/better/pf4j/ksp/processor/ExtensionSymbolProcessor.kt | better-care | 701,811,405 | false | {"Kotlin": 10503} | /* Copyright 2023 Better Ltd (www.better.care)
*
* 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 | Kotlin | 1 | 3 | f1c6c97568bdd3761b3a33eae2bd310652a0ab43 | 7,839 | pf4j-kotlin-symbol-processing | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/educationandworkplanapi/app/database/jpa/mapper/conversation/ConversationNoteEntityMapper.kt | ministryofjustice | 653,598,082 | false | {"Kotlin": 1450725, "Mustache": 2705, "Dockerfile": 1375} | package uk.gov.justice.digital.hmpps.educationandworkplanapi.app.database.jpa.mapper.conversation
import org.mapstruct.Mapper
import org.mapstruct.Mapping
import uk.gov.justice.digital.hmpps.domain.learningandworkprogress.conversation.ConversationNote
import uk.gov.justice.digital.hmpps.domain.learningandworkprogress.... | 4 | Kotlin | 0 | 2 | 7c64ff394d9f16bfe66652a59f8a3a87de34d0a3 | 1,917 | hmpps-education-and-work-plan-api | MIT License |
KotlinMultiplatform/XFullStack/composeApp/src/commonMain/kotlin/domain/repositories/view/ViewRepositoryImplementation.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 2456135, "Dart": 1066884, "Python": 319400, "Rust": 180589, "Swift": 147761, "C++": 113494, "CMake": 94132, "Go": 45704, "HTML": 21089, "Ruby": 12424, "C": 8043, "Shell": 5675, "PowerShell": 3045, "Nix": 2616, "Makefile": 1480, "JavaScript": 781, "CSS": 588, "Objective-C": 380, "Dockerfile": 32} | package domain.repositories.view
import core.models.realm.ViewDB
import data.request.ViewRequest
import domain.services.view.ViewDBService
import domain.services.view.ViewRemoteService
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
import utils.Logger
import utils.LoggerLevel
import utils.XFull... | 0 | Kotlin | 10 | 21 | 8393123d6d6b49cbde723737762428d1c23dd391 | 1,418 | development_learning | MIT License |
core/src/main/java/ir/amirab/validator/Rule.kt | amir1376 | 462,953,343 | false | {"Kotlin": 35669} | package ir.amirab.validator
import ir.amirab.validator.result.ValidationResult
interface Rule<in INPUT,out RESULT: ValidationResult>{
suspend fun validate(input:INPUT):RESULT
} | 0 | Kotlin | 1 | 13 | 6769bbe93494c7a557933838db662abc2ba28285 | 182 | kotlin-validator | Apache License 2.0 |
app/src/main/java/com/babylon/wallet/android/presentation/account/composable/AssetMetadataRow.kt | radixdlt | 513,047,280 | false | null | package com.babylon.wallet.android.presentation.account.composable
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.RowScope
import ... | 9 | null | 5 | 6 | 2509c9bd9b5db75bc4d793f98d3ac055a8ae4730 | 7,790 | babylon-wallet-android | Apache License 2.0 |
idscp2/src/main/kotlin/de/fhg/aisec/ids/idscp2/idscp_core/fsm/DynamicTimer.kt | rajesh-ibm-power | 333,355,999 | true | {"Kotlin": 603521, "Java": 571930, "TypeScript": 78380, "HTML": 44870, "Shell": 17139, "CSS": 14035, "Python": 7090, "Handlebars": 5731, "Dockerfile": 3711, "Prolog": 2993, "HCL": 2131, "Harbour": 190} | package de.fhg.aisec.ids.idscp2.idscp_core.fsm
import java.util.concurrent.locks.ReentrantLock
/**
* A DynamicTimer class that provides an API to the FSM to start and cancel timeout threads
* without a fixed timeout delay (in ms)
* The timer ensures that no canceled timer is able to trigger a timeout transitions
... | 0 | Kotlin | 0 | 0 | 11fcc55b0bb38d9fe9b4b968db35e2b7ea322b63 | 1,103 | trusted-connector | Apache License 2.0 |
app/src/main/java/br/com/programadordeelite/gdc/codelab/datamanagement/viewmodelfactory/GameViewModel.kt | treslines | 346,119,037 | false | null | package com.prado.android.codelab.datamanagement.viewmodelfactory
import androidx.lifecycle.ViewModel
import timber.log.Timber
class GameViewModel: ViewModel() {
// a palavra atual, inicialmente vazia
var word = ""
// o placar atual de pontuação
var score = 0
// lista de palavras que devem ser a... | 0 | Kotlin | 9 | 67 | 1ff9f927390e4da543951fe0d1adc155d2ac8fd5 | 1,435 | aad | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.