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/core/src/jsMain/kotlin/zakadabar/core/browser/button/ZkButton.kt | spxbhuhb | 290,390,793 | false | null | /*
* Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.core.browser.button
import kotlinx.browser.document
import org.w3c.dom.HTMLAnchorElement
import org.w3c.dom.HTMLElement
import org.w3c.dom.events.Event
import org.w3c.dom.events.Ke... | 3 | Kotlin | 3 | 24 | 2e0d94b6a77f79566c6cf0d0cff17b3ba6a9c6a1 | 8,811 | zakadabar-stack | Apache License 2.0 |
extensions/parcelize/src/main/kotlin/io/islandtime/extensions/parcelize/TimeZone.kt | worldsnas | 270,255,743 | false | {"Gradle Kotlin DSL": 12, "Java Properties": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Markdown": 2, "INI": 5, "Kotlin": 216, "Proguard": 1, "Java": 2, "YAML": 2, "XML": 4} | package io.islandtime.extensions.parcelize
import android.os.Parcel
import io.islandtime.TimeZone
import io.islandtime.toTimeZone
import kotlinx.android.parcel.Parceler
object TimeZoneParceler : Parceler<TimeZone> {
override fun create(parcel: Parcel): TimeZone {
return TimeZone(parcel.readString().orEmpt... | 1 | null | 1 | 1 | 84a0cc01f9856044bfed98df79b64d09e6250785 | 796 | island-time | Apache License 2.0 |
app/src/main/java/com/google/samples/apps/sunflower/GardenFragment.kt | evovetech | 142,468,564 | true | {"Kotlin": 80778} | /*
* Copyright 2018 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 ... | 0 | Kotlin | 0 | 0 | f6c356c5dcc67ff2bd988a78c348f4ef4f17329a | 2,851 | android-sunflower | Apache License 2.0 |
plugins/kotlin/jvm-debugger/test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractKotlinVariablePrintingTest.kt | siosio | 31,403,159 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.debugger.test
import com.intellij.debugger.engine.SuspendContextImpl
import com.intellij.execution.process.ProcessOutputTypes
... | 1 | null | 1 | 1 | 117af19733434a3d47889dc9f624094c0650fdde | 1,063 | intellij-community | Apache License 2.0 |
helpfulutils/src/main/java/com/programmersbox/helpfulutils/QuickAdapter.kt | jakepurple13 | 243,099,864 | false | null | package com.programmersbox.helpfulutils
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.recyclerview.widget.RecyclerView
/**
* A quick way to add items to the recyclerview.
* If the current ... | 10 | Kotlin | 1 | 8 | 904eb4dc9d6ca3024df1096a4a8ccadaca566a4c | 2,299 | HelpfulTools | Apache License 2.0 |
app/src/main/java/me/devsaki/hentoid/notification/delete/DeleteStartNotification.kt | fossdd | 373,047,223 | true | {"Java": 2126026, "Kotlin": 147458, "JavaScript": 656} | package me.devsaki.hentoid.notification.delete
import android.content.Context
import androidx.core.app.NotificationCompat
import me.devsaki.hentoid.R
import me.devsaki.hentoid.util.notification.Notification
class DeleteStartNotification : Notification {
override fun onCreateNotification(context: Context): andro... | 0 | null | 0 | 1 | f65bbd17fc46fb5ab27aec1fc11e98b2471bda0f | 742 | Hentoid | Apache License 2.0 |
cryptography/des/Des.kt | nothingelsematters | 135,926,684 | false | null | package des;
class InvalidKeyException: Throwable("8th bits are not 0")
fun Long.permute(permutation: List<Int>, size: Int = Long.SIZE_BITS): Long = permutation.foldIndexed(0L) {
index, result, element -> result or (takeBits(size - element, 1) shl (permutation.size - 1 - index))
}
fun List<Byte>.toLong(): Long =... | 1 | null | 3 | 5 | d442a3d25b579b96c6abda13ed3f7e60d1747b53 | 2,954 | university | Do What The F*ck You Want To Public License |
kotlin-modules/kotlin-core/kotlin-core-1/src/test/kotlin/cn/tuyucheng/taketoday/introduction/KotlinJavaInteroperabilityUnitTest.kt | tu-yucheng | 665,975,665 | false | {"Java": 23064539, "JavaScript": 3484231, "HTML": 808829, "Kotlin": 801709, "CSS": 689526, "TypeScript": 669186, "Groovy": 139102, "AspectJ": 71773, "Shell": 60634, "FreeMarker": 41357, "RAML": 38085, "ANTLR": 31940, "SCSS": 29096, "Mustache": 15860, "Gherkin": 15603, "Scala": 15349, "Python": 14777, "HCL": 13943, "Doc... | package cn.tuyucheng.taketoday.introduction
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class KotlinJavaInteroperabilityUnitTest {
@Test
fun givenLowercaseString_whenExecuteMethodFromJavaStringUtils_shouldReturnStringUppercase() {
//given
val name = "tom"
//whene
val res = StringUtil... | 1 | null | 1 | 1 | 1d22d457d31ec5b1f83196958477afd37dbd8939 | 381 | taketoday-tutorial4j-backup | MIT License |
kotlin/coroutin/src/main/kotlin/com/shengsiyuan/coroutine/day04/Coroutine02.kt | cuixbo | 538,532,557 | true | {"Java": 745660, "Kotlin": 323125, "JavaScript": 80254, "Dart": 24553, "Python": 8877, "HTML": 5008, "Objective-C": 4465, "Starlark": 1916, "Ruby": 776, "CSS": 773, "Thrift": 670, "Swift": 404, "Makefile": 273} | package com.shengsiyuan.coroutine.day04
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withTimeoutOrNull
/**
* Created by andy
* 2020/4/28.
* Email: <EMAIL... | 0 | null | 0 | 0 | 8934028fb0bf69c289b82f737682fa5565f1dd76 | 914 | ShengSiYuan | Apache License 2.0 |
docs/exPuzzlers/src/_02_expressive/_03_Long_Division/LongDivision.kt | bbejeck | 3,456,568 | true | null | namespace long.division
import std.io.*
fun main(args : Array<String>) {
// Problematic case does not compile
// val MICROS_PER_DAY_ : Long = 24 * 60 * 60 * 1000 * 1000;
// val MILLIS_PER_DAY_ : Long = 24 * 60 * 60 * 1000
// Solution:
val MICROS_PER_DAY : Long = 24.lng * 60 * 60 * 1000 * 1000;
... | 1 | Java | 1 | 2 | 18c480ba98bc1154eee06530df310fc6361d3933 | 420 | kotlin | Apache License 2.0 |
jetbrains-core/tst/software/aws/toolkits/jetbrains/ui/AsyncComboBoxTest.kt | JetBrains | 223,485,227 | true | {"Kotlin": 4152201, "C#": 95783, "Java": 35575, "Dockerfile": 1985} | // Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.ui
import com.intellij.testFramework.ApplicationRule
import org.assertj.core.api.Assertions.assertThat
import org.junit.Rule
import org.junit.Test
import org.mockit... | 6 | Kotlin | 4 | 9 | ccee3307fe58ad48f93cd780d4378c336ee20548 | 2,443 | aws-toolkit-jetbrains | Apache License 2.0 |
idea/idea-js/src/org/jetbrains/kotlin/idea/js/KotlinJavaScriptLibraryContentsTreeStructureProvider.kt | staltz | 38,581,975 | true | {"Java": 15450397, "Kotlin": 8578737, "JavaScript": 176060, "HTML": 22810, "Lex": 17327, "Protocol Buffer": 13024, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | /*
* Copyright 2010-2015 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... | 0 | Java | 0 | 1 | 80074c71fa925a1c7173e3fffeea4cdc5872460f | 1,783 | kotlin | Apache License 2.0 |
mobile/src/main/java/io/github/twoloops/weardocuments/adapters/NodeListAdapter.kt | ivanmarincic | 125,870,371 | false | {"Java": 3695630, "Kotlin": 142774} | package io.github.twoloops.weardocuments.adapters
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.google.android.gms.wearable.Node
import io.github.twoloops.weardocuments.R
class NodeListA... | 7 | Java | 1 | 2 | d6b3d76a735535a127bc53b59bb0a3a9532880bd | 1,198 | wear-documents | MIT License |
app/src/p_app/main/java/com/llj/architecturedemo/ui/activity/ActivityAnimFadeActivity.kt | liulinjie1990823 | 133,350,610 | false | {"Gradle": 94, "Python": 7, "JSON": 2, "Java Properties": 40, "Shell": 54, "Text": 149, "JavaScript": 32, "Ignore List": 72, "Markdown": 59, "Java": 651, "INI": 17, "Proguard": 56, "XML": 352, "Groovy": 16, "CMake": 13, "C++": 49, "C": 704, "Kotlin": 304, "Roff Manpage": 30, "YAML": 11, "CSS": 6, "JAR Manifest": 1, "HT... | package com.llj.architecturedemo.ui.activity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.llj.architecturedemo.MainMvcBaseActivity
import com.llj.architecturedemo.databinding.ActivityActivityAnimFadeBinding
import com.llj.application.router.CRouterClassName
@Route(pat... | 1 | null | 1 | 1 | 7c5d7fe1e5e594baba19778e0ed857325ce58095 | 558 | ArchitectureDemo | Apache License 2.0 |
tmp/arrays/kotlinAndJava/660.kt | mandelshtamd | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | //File Foo.java
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import org.jetbrains.annotations.NotNull;
public final class Foo {
private final String fld = "O";
@NotNull
private final Function0 indirectFldGetter = (Function0)(new Function0() {
@NotNull
public final String invoke()... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 847 | kotlinWithFuzzer | Apache License 2.0 |
analysis/low-level-api-fir/testData/lazyResolve/localFunctionInsideFunctionLiteral.kt | JetBrains | 3,432,266 | false | null | package one
open class ClassWithParameter(i: () -> Unit)
class TopLevelClass : ClassWithParameter({
fun fo<caret>o(param: String) {
}
}) | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 146 | kotlin | Apache License 2.0 |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/reporting/ReportingService.kt | matrix-org | 287,466,066 | false | null | /*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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 ... | 75 | Kotlin | 27 | 97 | 55cc7362de34a840c67b4bbb3a14267bc8fd3b9c | 1,004 | matrix-android-sdk2 | Apache License 2.0 |
app/src/main/java/com/hl3hl3/arcoremeasure/EntryActivity.kt | hl3hl3 | 106,644,060 | false | null | package com.hl3hl3.arcoremeasure
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.Logger
import com.google.ar.core.*
import com.google.ar.core.ArCoreApk.InstallStatus
import com.google.ar.core.examples.java.helloar.CameraPermissionHelper
import com.googl... | 3 | null | 46 | 98 | fc8fa4bef97e9693433818dc21992799dd4d9e4e | 3,272 | ARCoreMeasure | MIT License |
sample/src/main/java/com/kkagurazaka/reactive/repository/sample/KotlinDataClassEntity.kt | k-kagurazaka | 179,922,059 | false | null | package com.kkagurazaka.reactive.repository.sample
import com.kkagurazaka.reactive.repository.annotation.InMemoryEntity
import com.kkagurazaka.reactive.repository.annotation.PrefsEntity
import com.kkagurazaka.reactive.repository.annotation.PrefsKey
@InMemoryEntity
@PrefsEntity(typeAdapter = SomeClassListTypeAdapter::... | 0 | Kotlin | 1 | 2 | 84d4135b254fce892892809a65827535c8c4e881 | 731 | reactive-repository | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package16/Foo01652.kt | yamamotoj | 163,851,411 | false | {"Text": 1, "Ignore List": 30, "Markdown": 1, "Gradle": 34, "Java Properties": 11, "Shell": 6, "Batchfile": 6, "Proguard": 22, "Kotlin": 36021, "XML": 93, "INI": 1, "Java": 32, "Python": 2} | package com.github.yamamotoj.singlemoduleapp.package16
class Foo01652 {
fun method0() {
Foo01651().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun met... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 355 | android_multi_module_experiment | Apache License 2.0 |
app/src/main/java/uk/co/richyhbm/coinbag/requests/BlockchainInfo.kt | RichyHBM | 93,779,018 | false | {"Gradle": 4, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 4, "XML": 23, "Kotlin": 35} | package uk.co.richyhbm.coinbag.requests
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.scalars.ScalarsConverterFactory
import retrofit2.http.GET
import retrofit2.http.Path
object BlockchainInfo {
interface BlockchainInfoService {
@GET("/q/addressbalance/{address}")
fun ... | 1 | null | 1 | 1 | db2e6dfce7b6d0230dbe8631a254dfba3dc1dd6f | 1,017 | Coinbag | Apache License 2.0 |
src/main/kotlin/com/ort/howlingwolf/api/body/VillageCommitBody.kt | h-orito | 176,481,255 | false | {"Kotlin": 820146, "HTML": 245777, "Batchfile": 522, "Shell": 454} | package com.ort.howlingwolf.api.body
import javax.validation.constraints.NotNull
data class VillageCommitBody(
@field:NotNull(message = "コミット有無は必須")
val commit: Boolean?
) {
constructor() : this(null)
}
| 0 | Kotlin | 1 | 3 | ec5db8e5323ea79f4a23648a33f8e81a71df96dc | 217 | wolf4busy-api | MIT License |
engine/src/test/kotlin/TextSearchTest.kt | Cuupa | 236,094,744 | false | {"Batchfile": 2, "Shell": 1, "Maven POM": 10, "YAML": 9, "Text": 1, "Ignore List": 1, "Markdown": 3, "INI": 1, "HTML": 6, "CSS": 10, "JavaScript": 5, "Kotlin": 123, "JAR Manifest": 1, "AsciiDoc": 10, "Java": 11, "OASv3-yaml": 2} | import com.cuupa.classificator.engine.services.text.TextSearch
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
class TextSearchTest {
@Test
fun shouldFindText() {
val text = TextSearch("abc lorem sdsdfhsdhfsduhfsdhfshdfu ipsum dolor sit amet xyz")
val contains = tex... | 94 | JavaScript | 0 | 0 | ba3f2b743873a9eebd8919f5461ec53bb5cbc249 | 1,674 | classificator | MIT License |
base/base-common-jvm/src/main/java/dev/dexsr/klio/base/theme/md3/Padding.kt | flammky | 462,795,948 | false | {"Kotlin": 5222947} | package dev.dexsr.klio.base.theme.md3
data class Padding(
val left: Float = 0f,
val top: Float = 0f,
val right: Float = 0f,
val bottom: Float = 0f
)
| 0 | Kotlin | 6 | 56 | 2b8b4affab4306e351cfc8721c15a5bc7ecba908 | 154 | Music-Player | Apache License 2.0 |
app/src/main/java/net/laggedhero/gyg/core/models/ReviewAggregator.kt | laggedHero | 90,548,356 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 3, "XML": 8, "Kotlin": 31} | package net.laggedhero.gyg.core.models
data class ReviewAggregator(val status: Boolean = false,
val total: Long = 0,
val reviews: List<Review> = listOf(),
val message: String? = null)
| 1 | null | 1 | 1 | 07713d53a77ceeedc5a77ecb7578718d1e55d3da | 269 | GYG | Apache License 2.0 |
backend/src/main/java/com/paligot/confily/backend/sessions/SessionDb.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 897920, "Swift": 126158, "Shell": 1148, "Dockerfile": 576, "HTML": 338, "CSS": 102} | package com.paligot.confily.backend.sessions
import com.paligot.confily.backend.events.AddressDb
sealed class SessionDb(
open val id: String = "",
open val title: String = ""
)
data class TalkDb(
override val id: String = "",
override val title: String = "",
val level: String? = null,
val abs... | 9 | Kotlin | 6 | 143 | 8c0985b73422d6b388012d79c7ab33c054dc55c1 | 771 | Confily | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/appstream/CfnFleetVpcConfigPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.appstream
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.collections.C... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,531 | awscdk-dsl-kotlin | Apache License 2.0 |
rekt-core/src/commonMain/kotlin/org/hexalite/rekt/core/exception/CommandScopeNotAccessibleException.kt | Southdust | 526,995,338 | false | {"Kotlin": 42388, "Dockerfile": 115} | package org.hexalite.rekt.core.exception
/**
* An exception thrown (or bound to the right) to indicate that the command scope could not be accessible. There
* are many reasons to this, for example:
* * [Disconnected] - Cannot access command scope while the Redis client connection is not active.
* @author FromSynta... | 1 | Kotlin | 0 | 3 | 10db2ee3ed17c000550ccfe7441195c24fbf3195 | 612 | rekt | MIT License |
app/src/main/java/com/cheesecake/kickoff/MainActivity.kt | Shehab-m | 648,956,107 | false | null | package com.cheesecake.kickoff
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.lifecycle.lifecycleScope
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.asFlow
import kotlinx.coroutines.flow.... | 0 | Kotlin | 0 | 0 | c40751a97efddad849ea5330298d58fec7c8b721 | 643 | Kickoff | Apache License 2.0 |
BootShop/app/src/main/java/ar/edu/ort/bootsshop/screens/detail/DetailViewModel.kt | ORT-Argentina | 857,567,739 | false | {"Kotlin": 93777} | package ar.edu.ort.bootsshop.screens.detail
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import ar.edu.ort.bootsshop.data.Boot
class DetailViewModel : ViewModel() {
private var _item = MutableLiveData<Boot>()
fun setItem(item: Boot... | 0 | Kotlin | 0 | 5 | c99a79d84328eeba3d1ebd3624c3135e2b1a9019 | 730 | kotlin-compose | MIT License |
app/src/main/java/com/sbma/linkup/presentation/screens/nfc/NfcScanScreen.kt | ericaskari-metropolia | 694,027,591 | false | {"Kotlin": 323836, "HTML": 71958, "TypeScript": 19773, "Dockerfile": 577, "JavaScript": 256} | package com.sbma.linkup.presentation.screens.nfc
import androidx.compose.foundation.border
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.compos... | 0 | Kotlin | 1 | 1 | 436d8f46fc76a9d6af2ab5e997dc673d9ee1bf08 | 5,128 | sbma | MIT License |
mvvm-dagger/src/main/java/com/nphau/android/shared/screens/dialogs/SharedDialogFragment.kt | ThanhHuong98 | 432,947,065 | false | {"Kotlin": 165721, "Java": 1330, "Shell": 87} | package com.nphau.android.shared.screens.dialogs
import android.app.Dialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import com.google.android.materi... | 0 | null | 0 | 1 | ac0402ae4734285ef5e647d1f53a1f9f4a8d98cd | 1,847 | android.clean-architecture.mvvm | Apache License 2.0 |
socket/src/main/kotlin/com/oneliang/ktx/frame/socket/nio/ClientManager.kt | oneliang | 262,052,605 | false | null | package com.oneliang.ktx.frame.socket.nio
import com.oneliang.ktx.Constants
import com.oneliang.ktx.util.concurrent.ThreadPool
import com.oneliang.ktx.util.logging.LoggerManager
import java.nio.channels.Selector
import java.util.concurrent.locks.ReentrantLock
class ClientManager(
private val serverHost: String,
... | 0 | Kotlin | 2 | 0 | bfc153ac53fab0596a54bd8adb24ec0bdca79f3d | 2,448 | frame-kotlin | Apache License 2.0 |
GameList/app/src/main/java/com/examples/gamelist/MainActivity.kt | LucasBrizola | 194,750,452 | false | null | package com.examples.gamelist
import android.content.Intent
import android.os.Bundle
import com.google.android.material.snackbar.Snackbar
import androidx.appcompat.app.AppCompatActivity;
import android.view.Menu
import android.view.MenuItem
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx... | 0 | Kotlin | 0 | 0 | bc2f34012ccf1a4b9a29d9a6581d982aa808a6cb | 2,241 | fundatec.kotlin.gamelist | MIT License |
shared/src/commonMain/kotlin/di/repository/firebase/firebaseAuthRepositoryModule.kt | marazmone | 662,759,669 | false | {"Kotlin": 175669, "Swift": 1244, "Shell": 228, "Ruby": 101} | package di.repository.firebase
import data.repository.firebase.auth.FirebaseAuthRepositoryImpl
import domain.repository.FirebaseAuthRepository
import org.koin.dsl.module
fun firebaseAuthRepositoryModule() = module {
single<FirebaseAuthRepository> { FirebaseAuthRepositoryImpl(get()) }
}
| 5 | Kotlin | 1 | 5 | 89daee7d8c6416532802f46be3569fcae8f9fb13 | 293 | VocaFlow | Apache License 2.0 |
core/domain/src/main/java/com/hanbikan/nook/core/domain/util/SeaCreatureTranslator.kt | hanbikan | 737,877,468 | false | {"Kotlin": 289515} | package com.hanbikan.nook.core.domain.usecase
import com.hanbikan.nook.core.domain.model.SeaCreature
import com.hanbikan.nook.core.domain.repository.RemoteCollectionRepository
import javax.inject.Inject
private val seaCreatureNameToKorean: Map<String, String> = mapOf(
"seaweed" to "미역",
"sea grapes" to "바다포도"... | 0 | Kotlin | 0 | 0 | b66a7741f67559295d0c0c97a401c6c8d172437b | 1,918 | Nook | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/screens/login/LoginScreen.kt | levinzonr | 347,310,067 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 3d1fe3a22846b8cdb843d7c100e73f6cd1b9fa01 | 3,922 | compose-challenge-w3 | Apache License 2.0 |
frogoconsumeapi/src/main/java/com/frogobox/api/movie/response/SearchTvShow.kt | frogobox | 389,577,716 | false | null | package com.frogobox.api.movie.response
import com.frogobox.api.movie.model.SearchTvShowResult
data class SearchTvShow(
val page: Int?,
val results: List<SearchTvShowResult>?,
val total_pages: Int?,
val total_results: Int?
) | 0 | Kotlin | 1 | 6 | 79d274ef72381fe87f02a3c9d16f29bb23fda051 | 242 | frogo-consume-api | Apache License 2.0 |
android-aop-annotation/src/main/java/com/flyjingfish/android_aop_annotation/anno/AndroidAopReplaceMethodInvoke.kt | FlyJingFish | 722,020,803 | false | {"Kotlin": 191242, "Java": 47279} | package com.flyjingfish.android_aop_annotation.anno
/**
* 这个注解使用本库者用不到
*/
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.FUNCTION)
annotation class AndroidAopReplaceMethodInvoke(
/**
* @return 目标类名(包含包名)
*/
val targetClassName: String,
/**
* @return 替换类名(包含包名)
*/
... | 0 | Kotlin | 7 | 179 | fa8128d8e1b4d0e07ac81abe618c120328f005ef | 351 | AndroidAOP | Apache License 2.0 |
app/src/main/java/com/vivek/memerandomizer/presentation/meme/MemeScreenState.kt | V9vek | 495,830,048 | false | {"Kotlin": 13189} | package com.vivek.memerandomizer.presentation.meme
import com.vivek.memerandomizer.domain.model.Meme
data class MemeScreenState(
val meme: Meme = Meme(imgUrl = ""),
val isLoading: Boolean = false
)
| 0 | Kotlin | 1 | 3 | b63fe66ccc774394be49af16f3bfaf9c29028ea8 | 208 | MemeRandomizer | Apache License 2.0 |
compiler/src/main/kotlin/io/github/aplcornell/viaduct/syntax/intermediate/Statements.kt | apl-cornell | 169,159,978 | false | null | package io.github.apl_cornell.viaduct.syntax.intermediate
import io.github.apl_cornell.viaduct.syntax.Arguments
import io.github.apl_cornell.viaduct.syntax.FunctionNameNode
import io.github.apl_cornell.viaduct.syntax.HostNode
import io.github.apl_cornell.viaduct.syntax.JumpLabelNode
import io.github.apl_cornell.viaduc... | 31 | null | 5 | 20 | 567491fdcfd313bf287b8cdd374e80f1e005ac62 | 16,679 | viaduct | MIT License |
app/src/main/java/io/zoemeow/dutapp/view/Home.kt | ZoeMeow5466 | 493,732,599 | false | null | package io.zoemeow.dutapp.view
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import... | 5 | Kotlin | 2 | 0 | 4bfe9c241a444c1942ba7a549d5222348e448860 | 8,141 | DUTApp_API | MIT License |
src/main/kotlin/ru/reosfire/pixorio/EditableImage.kt | reosfire | 823,104,577 | false | {"Kotlin": 109363} | package ru.reosfire.pixorio
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.NativePaint
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.graphics.nativeCanvas
import androidx.compose.ui.unit.IntSize
import org.jetbrains.skia.*
import ru.reosfire.pixorio.e... | 0 | Kotlin | 0 | 2 | 4a6c3e8ced4dbe641f62b5d658b985eea83ea3f1 | 3,247 | Pixorio | Apache License 2.0 |
src/main/kotlin/linearregression/softmax/concise/Lr_softmax_concise2.kt | widi-nugroho | 397,121,501 | false | null | package linearregression.softmax.concise
import ai.djl.Device
import ai.djl.Model
import ai.djl.metric.Metrics
import ai.djl.ndarray.types.Shape
import ai.djl.nn.Blocks
import ai.djl.nn.SequentialBlock
import ai.djl.nn.core.Linear
import ai.djl.training.DefaultTrainingConfig
import ai.djl.training.EasyTrain
import ai.... | 0 | Kotlin | 0 | 0 | 542c1084f327c930c19a73d6b9b2c904d725e4c6 | 3,198 | diveintodeeplearning | Apache License 2.0 |
1_BASICS_WITH_EASY_EXPLAINATION/7_general_terms.kt | hariomop12 | 743,116,300 | false | {"Kotlin": 48858, "Nix": 98} | // 1 string templateing
// 2 Unit keyword
// 3 parameters
// 4 Short circuiting
// 5 type casting
// 6 concatenation
// 7 until
// 1 String Templateing
// what is String Templateing? --> String templateing is a way to include the values of the variables in a string
// for eg
// var name = "Kotlin"
// println("He... | 0 | Kotlin | 1 | 2 | 2814727f7dff3284de5e75ac32313389743105ab | 2,888 | Kotlin-Vibe | MIT License |
domain-forum/src/main/java/org/softeg/slartus/forpdaplus/domain_forum/DomainForumModule.kt | slartus | 21,554,455 | false | null | package org.softeg.slartus.forpdaplus.domain_forum
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.softeg.slartus.forpdaplus.core.repositories.ForumRepository
import org.softeg.slartus.forpdaplus.core.services.ForumService
import javax.i... | 6 | Java | 15 | 56 | 6f01ebaa862d58e1cce01bd7e70910d49fd2de80 | 643 | 4pdaClient-plus | Apache License 2.0 |
core/src/main/java/com/maku/core/domain/latest/Latest.kt | ma-za-kpe | 373,888,998 | false | null | package com.maku.core.domain.latest
import com.google.gson.annotations.SerializedName
data class Latest(
@SerializedName("drinks")
val drinks: List<Drink>
) | 0 | Kotlin | 0 | 0 | c4bf6fd6a82c4cd37c4ddd5a2aa4f495bdd5ec66 | 167 | Pombe | The Unlicense |
domain/src/main/kotlin/co/orange/domain/entity/response/SearchResultModel.kt | Orange-Co | 806,038,557 | false | {"Kotlin": 430580, "HTML": 2625} | package co.orange.domain.entity.response
data class SearchResultModel(
val searchedProductList: List<ProductModel>,
)
| 0 | Kotlin | 1 | 2 | b1f2b0b3025c5e27a07ad4e0406db5c1ffa777c7 | 123 | DDANZI_Android | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/pinpointemail/CfnConfigurationSetEventDestinationPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.pinpointemail
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestinationProps
@Generated
public fun buildCfnConfigurationSetEventDestinationProps(i... | 1 | Kotlin | 0 | 0 | 451a1e42282de74a9a119a5716bd95b913662e7c | 538 | aws-cdk-kt | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/pinpointemail/CfnConfigurationSetEventDestinationPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.pinpointemail
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestinationProps
@Generated
public fun buildCfnConfigurationSetEventDestinationProps(i... | 1 | Kotlin | 0 | 0 | 451a1e42282de74a9a119a5716bd95b913662e7c | 538 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/mappings/PolycreoHandlerMappingConfiguration.kt | polycreo | 236,256,103 | false | null | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 13 | Kotlin | 0 | 0 | b073fe206918aea557a8a5b92d907f08e6689b18 | 2,300 | polycreo-controllers | Apache License 2.0 |
app/src/androidTest/java/cat/fib/sharecommunity/PreferencesActivityTest.kt | albert-minana | 426,997,291 | false | null | package cat.fib.sharecommunity
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isChecked
import android... | 0 | Kotlin | 0 | 0 | 7f897f228e0b21c968a8827b6819b85c690afe31 | 4,746 | ShareCommunity | Apache License 2.0 |
src/main/java/com/mineinabyss/mobzy/mobs/CustomMob.kt | Paul1365972 | 260,586,209 | true | {"Kotlin": 160952} | package com.mineinabyss.mobzy.mobs
import com.mineinabyss.geary.ecs.components.get
import com.mineinabyss.geary.ecs.components.with
import com.mineinabyss.mobzy.api.nms.aliases.*
import com.mineinabyss.mobzy.api.nms.player.addKillScore
import com.mineinabyss.mobzy.ecs.components.death.DeathLoot
import com.mineinabyss.... | 0 | Kotlin | 0 | 0 | ba1cec1b06421bbfe67ea2c90bc7422a425f8a5a | 3,635 | Mobzy | MIT License |
features/episodes/src/main/java/com/ricknmorty/episodes/data/repos_impl/EpisodesRepository.kt | TejasDeshmukh19 | 872,638,641 | false | {"Kotlin": 113426} | package com.ricknmorty.episodes.data.repos_impl
import com.helpers.network.ApiResponse
import com.ricknmorty.data.domain.apis.IEpisodesApi
import com.ricknmorty.data.domain.repos.IEpisodesRepository
import com.ricknmorty.data.responses.EpisodeDto
import javax.inject.Inject
/**
* Created by <NAME> on 01/10/24.
*/
c... | 0 | Kotlin | 0 | 0 | 69c0f9c4571eaba0d21bfc832b28569dbf2226c2 | 603 | RicknMorty-Android | Apache License 2.0 |
src/test/kotlin/io/andrewohara/awsmock/dynamodb/backend/QueryTest.kt | oharaandrew314 | 276,702,915 | false | {"Kotlin": 459818} | package io.andrewohara.awsmock.dynamodb.backend
import io.andrewohara.awsmock.core.MockAwsException
import io.andrewohara.awsmock.dynamodb.DynamoFixtures
import io.andrewohara.awsmock.dynamodb.DynamoUtils.createCatsTable
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.matchers.collections.shouldBeE... | 3 | Kotlin | 1 | 5 | abd135f64f0f6e5fdfce8ae8a30f0d8dd9166751 | 4,608 | mock-aws-java-sdk | Apache License 2.0 |
app/src/androidTest/java/org/mp/newsapp/di/feature/home/HomeActivityInstrumentationTest.kt | mprasad2510 | 191,714,898 | false | null | package org.mp.newsapp.di.feature.home
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import android.support.test.espresso.NoMatchingViewException
import android.support.test.espresso.ViewAss... | 0 | Kotlin | 0 | 0 | 4162df644474222d1b6f356d092b40816b5ceec9 | 1,973 | NewsApp | The Unlicense |
src/main/kotlin/com/pandus/leetcode/solutions/daily/RegionsCutBySlashes.kt | bodyangug | 740,204,714 | false | {"Kotlin": 294942} | package com.pandus.leetcode.solutions.daily
// Reference: https://leetcode.com/problems/regions-cut-by-slashes
class RegionsCutBySlashes {
fun regionsBySlashes(grid: Array<String>): Int {
val n = grid.size
// 3n x 3n grid to represent each cell in the original grid as a 3x3 block
val expand... | 0 | Kotlin | 0 | 1 | 95f90c3703faf4bebf54b5901ea2bab41431b8b0 | 1,672 | leetcode-solutions | MIT License |
app/src/main/java/net/ballmerlabs/lesnoop/BackgroundScanService.kt | fmeef | 562,555,257 | false | null | package net.ballmerlabs.lesnoop
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
import android.util.Log
import androidx.core.app.NotificationCompat
import androidx.core.app.Notifica... | 0 | Kotlin | 0 | 1 | e727c895dbf42ac8967c648c2adcc0f3ab1a703e | 3,189 | blerf | Apache License 2.0 |
app/src/main/java/animation/constrainlayout/sample/com/sharedviewtransition/ui/activities/MonkeyListActivity.kt | crehmann | 134,263,987 | false | {"Kotlin": 10524} | package animation.constrainlayout.sample.com.sharedviewtransition.ui.activities
import android.os.Bundle
import android.support.v4.app.ActivityOptionsCompat
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.GridLayoutManager
import android.widget.ImageView
import animation.constrainlayou... | 0 | Kotlin | 0 | 0 | a869f2dd698e4000d8d616266f7ccab9a5e24397 | 1,289 | SharedViewTransitionExample | MIT License |
src/main/kotlin/g0101_0200/s0146_lru_cache/LRUCache.kt | javadev | 190,711,550 | false | null | package g0101_0200.s0146_lru_cache
// #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Hash_Table #Design #Linked_List
// #Doubly_Linked_List #Udemy_Linked_List #2022_09_03_Time_1116_ms_(97.93%)_Space_139.6_MB_(97.51%)
class LRUCache(capacity: Int) {
private val nodeMap = HashMap<Int, Node>()
privat... | 1 | null | 5 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 1,980 | LeetCode-in-Kotlin | MIT License |
domain/src/main/java/com/al/domain/usecase/FetchImageCase.kt | abdullahHanif | 381,480,403 | false | null | package com.al.domain.usecase
import com.al.domain.entity.ImageResponseEntity
import com.al.domain.repository.ExploreImagesRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class FetchImageCase @Inject constructor(private val exploreImagesRepository: ExploreImagesRepository) {
@Throws(Exc... | 0 | Kotlin | 0 | 1 | 0d0069d5cf524029f532b04e46fe5f01d4cc2ea7 | 458 | Explore | Apache License 2.0 |
server/src/main/java/ru/tanexc/server/presentation/screen/logs/LogsViewModel.kt | Tanexc | 813,623,229 | false | {"Kotlin": 77110} | package ru.tanexc.server.presentation.screen.logs
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.corout... | 0 | Kotlin | 0 | 1 | 5564198901a19d973b28f72b3ebdc94f5a39d59e | 2,492 | ServerClientApp | Apache License 2.0 |
search-service/src/main/kotlin/com/egm/stellio/search/model/TemporalEntitiesQuery.kt | stellio-hub | 257,818,724 | false | null | package com.egm.stellio.search.model
import com.egm.stellio.shared.model.QueryParams
data class TemporalEntitiesQuery(
val queryParams: QueryParams,
val temporalQuery: TemporalQuery,
val withTemporalValues: Boolean,
val withAudit: Boolean
)
| 48 | null | 9 | 22 | be972dcc28fab3e405a68544192f4037b8dfd54f | 259 | stellio-context-broker | Apache License 2.0 |
intellij.tools.ide.starter/src/com/intellij/ide/starter/report/ErrorType.kt | JetBrains | 499,194,001 | false | {"Kotlin": 555547, "C++": 3610, "Makefile": 713} | package com.intellij.ide.starter.report
enum class ErrorType{
ERROR, FREEZE, TIMEOUT;
companion object {
fun fromMessage(message: String): ErrorType =
if (message.startsWith("UI was frozen") || message.startsWith("Freeze in EDT")) FREEZE
else if (message.startsWith("Timeout of IDE run")) TIMEOUT
... | 0 | Kotlin | 6 | 17 | 63ca6f3a1d55ea46c3d2e55521a37831f9cb2a56 | 341 | intellij-ide-starter | Apache License 2.0 |
kmp/shared/persistent/src/commonMain/kotlin/com/egoriku/grodnoroads/shared/persistent/Selectable.kt | BehindWheel | 485,026,420 | false | {"Kotlin": 1186756, "Ruby": 5708, "Swift": 1889, "Shell": 830} | package com.egoriku.grodnoroads.shared.persistent
enum class Selectable {
AllEnabled,
AllDisabled,
Mixed
}
| 17 | Kotlin | 1 | 18 | 966f0fb26df6c3f443e3b328b81f9938aaa9cac5 | 120 | BehindWheelKMP | Apache License 2.0 |
kotlin-typescript/src/jsMain/generated/typescript/LanguageService.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Automatically generated - do not modify!
package typescript
import js.promise.Promise
sealed external interface LanguageService {
/** This is used as a part of restarting the language service. */
fun cleanupSemanticCache(): Unit
/**
* Gets errors indicating invalid syntax in a file.
*
... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 18,688 | kotlin-wrappers | Apache License 2.0 |
practise/delivery-fee-calculator/src/main/kotlin/org/wolt/com/pojo/DeliveryDetails.kt | saurvkmr | 614,988,508 | false | null | package org.wolt.com.pojo
import com.fasterxml.jackson.annotation.JsonFormat
import com.fasterxml.jackson.annotation.JsonProperty
import java.time.ZonedDateTime
import org.wolt.com.dto.DeliveryDetailsDto
class DeliveryDetails(
@JsonProperty("cart_value")
val cartValueInCents: Int,
@JsonProperty("delivery_distan... | 0 | Kotlin | 0 | 0 | 6553bc317481733c13da22ab0cf12820f825252a | 698 | lld-practise | Creative Commons Zero v1.0 Universal |
enrolment/src/main/kotlin/za/co/itschools/dev/enrolment/provider/FeatureProvider.kt | wax911 | 378,948,770 | false | null | package za.co.itschools.dev.enrolment.provider
import android.content.Context
import android.content.Intent
import za.co.itschools.dev.enrolment.component.content.EnrolmentContent
import za.co.itschools.dev.enrolment.component.screen.EnrolmentScreen
import za.co.itschools.dev.navigation.EnrolmentRouter
class FeatureP... | 3 | Kotlin | 0 | 1 | 6bff5e69b73780cf84a44c78e6132d8487b64395 | 510 | technical-assignment | Apache License 2.0 |
component/navigation/src/main/java/com/jtuffery/mealmanager/navigation/Navigator.kt | TufferyJordan | 395,443,919 | false | null | package com.jtuffery.mealmanager.navigation
import kotlinx.coroutines.flow.Flow
interface Navigator {
val navIntentFlow: Flow<NavIntent>
fun handle(navIntent: NavIntent)
} | 0 | Kotlin | 0 | 1 | 289ce167f229ae466898c8c1322f461eae669190 | 181 | MealManager | MIT License |
adapter_extension/src/main/kotlin/com/wuhenzhizao/adapter/extension/stickyHeader/Interceptors.kt | gitHubVoid | 115,085,013 | true | {"Kotlin": 163126, "Java": 11589} | package com.wuhenzhizao.adapter.extension.stickyHeader
import android.view.View
import com.wuhenzhizao.adapter.interfaces.Interceptor
/**
* Created by liufei on 2017/12/3.
*/
interface HeaderViewHolderCreateInterceptor<in VH> : Interceptor<VH> {
/**
* @param holder
*/
fun onCreateHeaderViewHolder(... | 0 | Kotlin | 0 | 0 | 4316041e7d7e6d5d701b78f9a5861a5c6e3d211d | 737 | kotlin-adapter | Apache License 2.0 |
crabzilla-pg-subscription/src/test/kotlin/io/github/crabzilla/subscription/AbstractSubscriptionTest.kt | crabzilla | 91,769,036 | false | {"Kotlin": 264917} | package io.github.crabzilla.subscription
import io.github.crabzilla.TestRepository
import io.github.crabzilla.command.CommandHandler
import io.github.crabzilla.command.CommandHandlerConfig
import io.github.crabzilla.command.CommandHandlerImpl
import io.github.crabzilla.context.CrabzillaContext
import io.github.crabzil... | 0 | Kotlin | 8 | 68 | 92907edd8c64696ceeb0873b2d157f427336bdaf | 3,825 | crabzilla | Apache License 2.0 |
desktop/src/main/kotlin/nebulosa/desktop/view/focuser/FocuserView.kt | tiagohm | 568,578,345 | false | null | package nebulosa.desktop.view.focuser
import nebulosa.desktop.view.View
interface FocuserView : View {
var status: String
var increment: Int
var maxIncrement: Int
var absolute: Int
var absoluteMax: Int
}
| 0 | Kotlin | 0 | 0 | 57780ec339ff4e3ec8d1965b7ddef7879861a814 | 231 | nebulosa | MIT License |
funcify-feature-eng-schema/src/main/kotlin/funcify/feature/schema/vertex/DefaultSourceJunctionVertex.kt | anticipasean | 458,910,592 | false | null | package funcify.feature.schema.vertex
import funcify.feature.schema.error.SchemaErrorResponse
import funcify.feature.schema.error.SchemaException
import funcify.feature.schema.index.CompositeSourceAttribute
import funcify.feature.schema.index.CompositeSourceContainerType
import funcify.feature.schema.path.SchematicPat... | 0 | Kotlin | 0 | 0 | 36031b948ab87f60924fe4413ac91b69e585cc23 | 1,128 | funcify-feature-eng | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ses/KinesisFirehoseDestinationPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ses
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination
@Generated
public fun buildKinesisFirehoseDestinationProperty(initializer: @AwsCdkDsl
CfnC... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 597 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/me/nobaboy/nobaaddons/features/chatcommands/impl/GuildCommands.kt | nobaboy | 867,566,026 | false | {"Kotlin": 99251} | package me.nobaboy.nobaaddons.features.chatcommands.impl
import me.nobaboy.nobaaddons.config.NobaConfigManager
import me.nobaboy.nobaaddons.features.chatcommands.ChatCommandManager
import me.nobaboy.nobaaddons.features.chatcommands.impl.shared.HelpCommand
import me.nobaboy.nobaaddons.features.chatcommands.impl.shared.... | 1 | Kotlin | 1 | 0 | 8ea9e9e423ff4c6f4af517541c6d7c8c984bb8ff | 1,868 | NobaAddons | The Unlicense |
core/src/main/java/com/chooongg/form/item/VariantBaseForm.kt | Chooongg | 706,083,573 | false | {"Kotlin": 382824} | package com.chooongg.form.item
import com.chooongg.form.FormAdapter
import com.chooongg.form.data.IFormGroupCreator
import com.chooongg.form.provider.BaseFormProvider
import com.chooongg.form.provider.VariantFormProvider
import com.chooongg.form.style.BaseStyle
import com.chooongg.form.style.NoneStyle
import com.chooo... | 0 | Kotlin | 0 | 0 | e773fe6bc11b169ad8a5f8139b3fcd7ab6176fd1 | 1,104 | FormAdapter | Apache License 2.0 |
lcc-infra/src/main/kotlin/com/joshmanisdabomb/lcc/network/BlockNetwork.kt | joshmanisdabomb | 537,458,013 | false | {"Kotlin": 2724329, "Java": 138822} | package com.joshmanisdabomb.lcc.network
import net.minecraft.util.math.BlockPos
import net.minecraft.util.math.Direction
import net.minecraft.world.BlockView
abstract class BlockNetwork<T>(val distance: Int) {
protected val directions = Direction.values()
fun discover(world: BlockView, start: T): NetworkRes... | 0 | Kotlin | 0 | 0 | a836162eaf64a75ca97daffa02c1f9e66bdde1b4 | 2,104 | loosely-connected-concepts | Creative Commons Zero v1.0 Universal |
TechConnetive/app/src/main/java/techconnective/herokuapp/com/configuracoes/SettingsDonateFragment.kt | techConnectiv | 238,940,219 | false | null | package techconnective.herokuapp.com.configuracoes
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.AlphaAnimation
i... | 0 | Kotlin | 0 | 0 | e5e4de1b7ee49c773415b7432f9f11d7fe9e70a5 | 3,641 | TechMobile | MIT License |
lib/src/main/java/com/kirkbushman/araw/http/EnvelopedMessageListing.kt | KirkBushman | 182,531,355 | false | null | package com.kirkbushman.araw.http
import com.kirkbushman.araw.http.base.Envelope
import com.kirkbushman.araw.http.base.EnvelopeKind
import com.kirkbushman.araw.http.listings.MessageListing
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
class EnvelopedMessageListi... | 9 | Kotlin | 9 | 84 | aeae071fa8d2a4e378de4a71420dc2a9792591f3 | 481 | ARAW | MIT License |
yandex-mapkit-kmp/src/iosMain/kotlin/ru/sulgik/mapkit/user_location/UserLocationView.ios.kt | SuLG-ik | 813,953,018 | false | {"Kotlin": 321441} | package ru.sulgik.mapkit.user_location
import ru.sulgik.mapkit.map.CircleMapObject
import ru.sulgik.mapkit.map.PlacemarkMapObject
import ru.sulgik.mapkit.map.toCommon
import YandexMapKit.YMKUserLocationView as NativeUserLocationView
public actual class UserLocationView internal constructor(
private val nativeUser... | 0 | Kotlin | 1 | 17 | 2d292b701adb2c538f8cd3ddf614250f9d6a444d | 885 | yandex-mapkit-kmp | Apache License 2.0 |
app/src/main/java/com/chydee/lacasadepapel/ui/game/GameFragment.kt | chydee | 247,469,238 | false | null | package com.chydee.lacasadepapel.ui.game
import android.animation.Animator
import android.content.Context
import android.os.Bundle
import android.os.VibrationEffect
import android.os.Vibrator
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androi... | 0 | Kotlin | 0 | 0 | ac2219cfa2923974ab24b9cdeaeca6f6c6eac189 | 8,430 | La-Casa-De-Papel | Apache License 2.0 |
kotlin/src/main/kotlin/be/kuleuven/speculaas/opgave4/fabrieken.kt | KULeuven-Diepenbeek | 226,268,892 | false | {"HTML": 6378, "JavaScript": 5252, "CSS": 3780, "Java": 1805, "Kotlin": 1461} | package be.kuleuven.speculaas.opgave4
import be.kuleuven.speculaas.Speculaas
interface SpeculaasFabriek {
fun bak(): List<Speculaas>
}
class GoedeSpeculaasFabriek : SpeculaasFabriek {
override fun bak(): List<Speculaas> {
return arrayListOf(Speculaas(), Speculaas(), Speculaas(), Speculaas(), Speculaa... | 0 | HTML | 3 | 0 | db58d44858c3065a786892e3ae5086499e414449 | 332 | ses-tdd-exercise-1-template | MIT License |
sms/src/main/java/com/beeper/sms/extensions/ContentResolverExtensions.kt | stumptownlabs | 610,818,444 | false | null | package com.beeper.sms.extensions
import android.content.ContentResolver
import android.content.ContentValues.TAG
import android.database.Cursor
import android.database.sqlite.SQLiteException
import android.net.Uri
import androidx.core.database.getStringOrNull
import com.beeper.sms.BuildConfig
import com.beeper.sms.Lo... | 0 | Kotlin | 0 | 0 | d667c9c4376ab1e4564ccdfd5d579124f14d5cf7 | 2,453 | beeper-android-sms | Apache License 2.0 |
android/app/src/main/kotlin/com/example/beesupp_frontend_flutter/MainActivity.kt | beesupp | 437,298,371 | false | {"Dart": 5098, "HTML": 3883, "Swift": 404, "Kotlin": 141, "Objective-C": 38} | package com.example.beesupp_frontend_flutter
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | cd4a2cb357b3f091519d976eeb62c650e089c472 | 141 | beesupp-frontend-flutter | MIT License |
app/src/main/java/io/github/tonnyl/mango/retrofit/UsersService.kt | TonnyL | 96,067,211 | false | null | /*
* Copyright (c) 2017 Lizhaotailang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 1 | null | 100 | 659 | 0e771001d1b8b06770d0a0d9f2a3dc222f976895 | 5,318 | Mango | MIT License |
app/src/main/java/me/tatocaster/stravagraph/features/home/presentation/HomeContract.kt | tatocaster | 138,839,186 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 41, "XML": 23, "Java": 2} | package me.tatocaster.stravagraph.features.home.presentation
import com.sweetzpot.stravazpot.activity.model.Activity
interface HomeContract {
interface View {
fun showError(message: String)
fun showActivitiesList(list: MutableList<Activity>)
}
interface Presenter {
fun getStravaA... | 1 | null | 1 | 1 | 83ac0b2d0d554918722576a9806987999be6cfba | 373 | CycloRoute | The Unlicense |
app/src/main/kotlin/com/mitch/my_unibo/ui/exams/components/TakenExamsButton.kt | seve-andre | 511,074,187 | false | {"Kotlin": 320965} | package com.mitch.my_unibo.ui.exams.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.com... | 0 | Kotlin | 0 | 2 | d10efb2a1676ecbf78643f88726b586a3d8c989d | 2,472 | myUniBo | Apache License 2.0 |
app/src/main/kotlin/com/mitch/my_unibo/ui/exams/components/TakenExamsButton.kt | seve-andre | 511,074,187 | false | {"Kotlin": 320965} | package com.mitch.my_unibo.ui.exams.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.com... | 0 | Kotlin | 0 | 2 | d10efb2a1676ecbf78643f88726b586a3d8c989d | 2,472 | myUniBo | Apache License 2.0 |
src/main/kotlin/com/thelastpickle/tlpcluster/containers/CassandraBuildJava8.kt | vidigalp | 188,292,037 | true | {"Kotlin": 96205, "Shell": 13932} | package com.thelastpickle.tlpcluster.containers
import com.github.dockerjava.api.model.AccessMode
import com.thelastpickle.tlpcluster.Context
import com.thelastpickle.tlpcluster.Docker
import com.thelastpickle.tlpcluster.Utils
import com.thelastpickle.tlpcluster.VolumeMapping
import java.io.File
class CassandraBuildJ... | 0 | Kotlin | 0 | 0 | 4c00af7f39ac4a1e3d109be4610904b7182136fb | 1,708 | tlp-cluster | Apache License 2.0 |
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/scopes/KtFirPackageScope.kt | BenNeighbour | 287,625,909 | true | {"Kotlin": 53557126, "Java": 7653262, "JavaScript": 185101, "HTML": 78949, "Lex": 23805, "TypeScript": 21756, "Groovy": 11196, "Swift": 9789, "CSS": 9270, "Shell": 7220, "Batchfile": 5727, "Ruby": 2655, "Objective-C": 444, "Scala": 80, "C": 59} | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.frontend.api.fir.scopes
import com.intellij.psi.search.GlobalSearchScope
im... | 0 | null | 0 | 2 | 0328fcaf5d7f3e3aef39ddd549f09d68914ed455 | 2,169 | kotlin | Apache License 2.0 |
app/src/main/java/com/app/skyss_companion/repository/BookmarkedStopGroupRepository.kt | martinheitmann | 339,335,251 | false | null | package com.app.skyss_companion.repository
import androidx.annotation.WorkerThread
import com.app.skyss_companion.dao.BookmarkedStopGroupDao
import com.app.skyss_companion.dao.StopGroupDao
import com.app.skyss_companion.model.BookmarkedStopGroup
import com.app.skyss_companion.model.StopGroup
import kotlinx.coroutines.... | 0 | Kotlin | 0 | 1 | a4a79e658643731cd76617cdb9458aa1f742d4c3 | 2,035 | bus-companion | MIT License |
src/main/kotlin/de/sirywell/methodhandleplugin/mhtype/typeSupport.kt | SirYwell | 551,940,996 | false | null | package de.sirywell.methodhandleplugin.mhtype
import com.intellij.psi.PsiExpression
import com.intellij.psi.PsiType
import de.sirywell.methodhandleplugin.MethodHandleBundle
fun typeMustNotBe(expression: PsiExpression, type: PsiType): MhType {
return Top.inspect(
MethodHandleBundle.message(
"pr... | 9 | Kotlin | 0 | 5 | 2f310625564f9112104907f97a3ff26998d54301 | 993 | HandleHints | MIT License |
libraries/tools/kotlin-gradle-plugin-api/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinCompilation.kt | haerulmuttaqin | 156,727,010 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.plugin
import org.gradle.api.Named
import org.gradle.api.attributes.HasAttributes
import org.gradle.api.file.Configurab... | 0 | null | 1 | 2 | 8f2117685f9f1b76b7f61ef67c0f58431bbf2f0e | 1,767 | kotlin | Apache License 2.0 |
app/src/main/java/com/ready/lolchamps/ui/main/MainViewModel.kt | KimReady | 396,788,559 | false | null | package com.ready.lolchamps.ui.main
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.ready.lolchamps.model.Champion
import com.ready.lolchamps.repository.MainRepository
import com.ready.lolchamps.ui.base.UiState
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.co... | 0 | Kotlin | 3 | 72 | 3d26627077bc04625ac149b5cd2cc3150f173a25 | 740 | LOL-Champs | Apache License 2.0 |
quickstart-kotlin/src/main/kotlin/org/quickstart/kotlin/Hello2.kt | youngzil | 140,260,338 | false | null | package org.quickstart.kotlin
/**
* @description TODO
*
* @author <EMAIL>
* @createTime 2019/9/14 11:30
*/
class Greeter(val name: String) {
fun greet() {
println("Hello World, $name")
}
}
fun main(args: Array<String>) {
Greeter("Greeter!").greet() // 创建一个对象不用 new 关键字
} | 24 | null | 4 | 3 | 4c0d48b576ad3230c026fb2cd323e80755fe415e | 307 | quickstart-framework | Apache License 2.0 |
app/src/main/java/com/ved/glide/PickerGlideImageLoader.kt | vedeng | 244,312,896 | false | null | package com.ved.glide
import android.app.Activity
import android.util.Log
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.pic.picker.loader.ImageLoader
/**
* Glide封装使用 图片选择库使用
*/
class PickerGlideImageLoader : ImageLoader {
fun displayImage(path: Any?, imageView: ImageView?) {
... | 0 | Kotlin | 0 | 0 | 8a92cd925b57a481a8e0422d225da2c5396bca22 | 876 | Bese | Creative Commons Zero v1.0 Universal |
adaptive-lib-auth/src/commonMain/kotlin/hu/simplexion/adaptive/auth/model/AuthenticationResult.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 1965729, "Java": 21738, "HTML": 5913, "JavaScript": 2910, "Shell": 687} | /*
* Copyright © 2020-2024, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.adaptive.auth.model
import hu.simplexion.adaptive.wireformat.builtin.EnumWireFormat
enum class AuthenticationResult {
UnknownPrincipal,
UnknownSession,
... | 22 | Kotlin | 0 | 1 | 3914e674d8ce9bedfb3d71628db639fcebf42bc6 | 683 | adaptive | Apache License 2.0 |
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/packageVersions.kt | quentin23soleil | 341,870,906 | true | {"Kotlin": 191211, "Dockerfile": 3493, "Shell": 3218, "PowerShell": 1708} | package org.jetbrains.compose.desktop.application.internal
import org.gradle.api.Project
import org.gradle.api.provider.Provider
import org.jetbrains.compose.desktop.application.dsl.Application
import org.jetbrains.compose.desktop.application.dsl.NativeDistributions
import org.jetbrains.compose.desktop.application.dsl... | 0 | null | 0 | 0 | c8f1a3df3253d3588ee444d08a767bd88c0f3e37 | 1,441 | compose-jb | Apache License 2.0 |
src/docs/guide/howto/monitor_http4k/example_tracing.kt | http4k | 86,003,479 | false | {"Kotlin": 3086987, "Java": 41165, "HTML": 12456, "CSS": 5391, "Shell": 3706, "JavaScript": 2853, "TypeScript": 2319, "Handlebars": 1941, "Python": 1714, "Pug": 944, "Dockerfile": 256} | package cookbook.monitoring
import org.http4k.client.ApacheClient
import org.http4k.core.HttpHandler
import org.http4k.core.HttpMessage
import org.http4k.core.Method.GET
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status.Companion.OK
import org.http4k.core.Uri
import org.http4... | 34 | Kotlin | 248 | 2,610 | 4e8d2f278a7c146bcf24380fb596590b430a66ad | 1,849 | http4k | Apache License 2.0 |
compiler/testData/ir/irText/declarations/annotations/argWithDefaultValueInAnnotationClass.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // TARGET_BACKEND: JVM
// FIR_IDENTICAL
// ISSUE: KT-52676
// FILE: Keyboard.java
public class Keyboard {
public static final int CHAR_NONE = 1234;
}
// FILE: main.kt
annotation class ModuleInfo(val keyBind: Int = Keyboard.CHAR_NONE) | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 241 | kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.