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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.kt | JakeWharton | 99,388,807 | true | null | //ALLOW_AST_ACCESS
package test
public interface InheritVarargNotNull {
public interface Super {
public fun foo(vararg p: String)
public fun dummy() // to avoid loading as SAM interface
}
public interface Sub: Super {
override fun foo(vararg p: String)
}
}
| 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 301 | kotlin | Apache License 2.0 |
app/src/main/java/com/codepath/apps/restclienttemplate/models/Tweet.kt | gauravjoshi1 | 469,453,865 | false | null | package com.codepath.apps.restclienttemplate.models
import android.os.Parcelable
import android.text.format.DateUtils
import kotlinx.parcelize.Parcelize
import org.json.JSONArray
import org.json.JSONObject
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
import kotlin.collections.Ar... | 2 | Kotlin | 0 | 0 | 59411611c6157bebd3136fae15dd6b09918593c7 | 2,088 | TwitterClient | Apache License 2.0 |
android/library-magiccube/src/main/java/com/hellobike/magiccube/v2/node/VListViewNode.kt | hellof2e | 651,011,094 | false | {"Kotlin": 499995, "Objective-C": 421129, "JavaScript": 39299, "Java": 29943, "Swift": 24514, "Ruby": 5345, "TypeScript": 3969, "Shell": 255} | package com.hellobike.magiccube.v2.node
import com.hellobike.magiccube.model.contractmodel.BaseViewModel
class VListViewNode(baseViewModel: BaseViewModel, type: String) : VNode(baseViewModel, type) | 3 | Kotlin | 9 | 60 | 8123fdaafa9ee7eaeee43fb73789b7fa3feac697 | 199 | Wukong | Apache License 2.0 |
backend/src/com/origin/model/OpenedObjectsList.kt | arksu | 121,673,260 | false | {"Kotlin": 253117, "Java": 115908, "TypeScript": 90348, "Vue": 57057, "SCSS": 7024, "Shell": 794, "HTML": 791, "JavaScript": 628, "Dockerfile": 146} | package com.origin.model
import com.origin.ObjectID
import com.origin.model.`object`.container.ContainerMessage
import com.origin.net.InventoryClose
import com.origin.net.InventoryUpdate
import org.slf4j.Logger
import org.slf4j.LoggerFactory
/**
* список "открытых" объектов для взаимодействия с их инвентарями
*/
cl... | 0 | Kotlin | 2 | 5 | ca458cb20e3f2ff9876d0987b80b66daf68f8117 | 1,913 | origin_webgl | MIT License |
backend/src/com/origin/model/OpenedObjectsList.kt | arksu | 121,673,260 | false | {"Kotlin": 253117, "Java": 115908, "TypeScript": 90348, "Vue": 57057, "SCSS": 7024, "Shell": 794, "HTML": 791, "JavaScript": 628, "Dockerfile": 146} | package com.origin.model
import com.origin.ObjectID
import com.origin.model.`object`.container.ContainerMessage
import com.origin.net.InventoryClose
import com.origin.net.InventoryUpdate
import org.slf4j.Logger
import org.slf4j.LoggerFactory
/**
* список "открытых" объектов для взаимодействия с их инвентарями
*/
cl... | 0 | Kotlin | 2 | 5 | ca458cb20e3f2ff9876d0987b80b66daf68f8117 | 1,913 | origin_webgl | MIT License |
app/src/main/kotlin/com/ivanovsky/passnotes/presentation/autofill/model/MutableAutofillStructure.kt | aivanovski | 95,774,290 | false | null | package com.ivanovsky.passnotes.presentation.autofill.model
import androidx.annotation.RequiresApi
import java.lang.StringBuilder
data class MutableAutofillStructure(
var applicationId: String? = null,
var isWebView: Boolean = false,
var webDomain: String? = null,
var webScheme: String? = null,
va... | 4 | null | 1 | 7 | dc4abdf847393919f5480129b64240ae0469b74c | 1,491 | kpassnotes | Apache License 2.0 |
socket/src/main/java/com/yaman/socket/SocketUtil.kt | Yamanaswal | 456,149,278 | false | null | package com.yaman.socket
import android.util.Log
import io.socket.client.IO
import io.socket.client.Socket
object SocketUtil {
private val tag = "SocketUtil : "
private lateinit var mSocket: Socket
fun initSocket(url: String, mOptions: IO.Options) {
try {
mSocket = IO.socket(url, mOp... | 0 | Kotlin | 0 | 0 | c35643be2972e1fa36e6c55866e34c22c2184388 | 938 | Library_Store | MIT License |
idea/idea-frontend-independent/src/org/jetbrains/kotlin/idea/caches/trackers/modificationTrackerUtil.kt | nskvortsov | 367,097,840 | true | null | /*
* 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.caches.trackers
import com.intellij.openapi.module.Module
import com.intell... | 0 | Kotlin | 0 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 824 | kotlin | Apache License 2.0 |
plugins/terminal/src/org/jetbrains/plugins/terminal/exp/TerminalBlocksController.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.terminal.exp
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.invokeLater
import com.intellij.openapi.diagnostic.thisL... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,355 | intellij-community | Apache License 2.0 |
app/src/main/java/com/zsoltbertalan/flickslate/presentation/ui/search/GenreDetailViewModel.kt | herrbert74 | 779,374,786 | false | null | package com.zsoltbertalan.flickslate.presentation.ui.search
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import com.zsoltbertalan.flickslate.domain.api.GenreRepository
import dagger.hilt.android.lifecycle.HiltVie... | 1 | null | 2 | 3 | 26e2bf7a1212c756054bff20b87f097ae6f61963 | 739 | FlickSlate | Apache License 2.0 |
feature-governance-api/src/main/java/io/novafoundation/nova/feature_governance_api/data/network/blockhain/model/PreImage.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8137060, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_governance_api.data.network.blockhain.model
import jp.co.soramitsu.fearless_utils.runtime.definitions.types.generics.GenericCall
class PreImage(val encodedCall: ByteArray, val call: GenericCall.Instance)
| 12 | Kotlin | 6 | 9 | 618357859a4b7af95391fc0991339b78aff1be82 | 245 | nova-wallet-android | Apache License 2.0 |
base/src/main/java/com/otaku/fetch/base/di/modules/ViewModelModule.kt | snehilrx | 480,652,667 | false | null | package com.otaku.fetch.base.di.modules
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
@Module
@InstallIn(ViewModelComponent::class)
object ViewModelModule | 2 | Kotlin | 6 | 60 | bb0ddca3dc6cb8410094d1e46516452153662d91 | 217 | Fetch | MIT License |
app/src/main/kotlin/com/architects/pokearch/ui/components/image/ArchAsyncImage.kt | timacosta | 709,007,461 | false | {"Kotlin": 259065} | package com.architects.pokearch.ui.components.image
import android.util.Log
import androidx.compose.foundation.Image
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.ColorFilter... | 0 | Kotlin | 0 | 3 | bedd946fa112147fb0ac38eb7d1af682dc240709 | 2,299 | PokeArch | Apache License 2.0 |
sqliteorg/src/main/java/org/dbtools/android/room/sqliteorg/ext/SQLiteDatabaseExt.kt | jeffdcamp | 97,744,030 | false | null | @file:Suppress("unused")
package org.dbtools.android.room.sqliteorg.ext
import org.dbtools.android.room.sqliteorg.SqliteOrgDatabaseUtil
import org.sqlite.database.sqlite.SQLiteDatabase
/**
* Check to see if a column in a database exists, if it does not... alter query will be run
* @param tableName table for column... | 0 | null | 7 | 43 | f6524c4eaec1217794993e970e29a1f3f0303db7 | 2,629 | dbtools-room | Apache License 2.0 |
sample-android/src/androidTest/kotlin/InstrumentedTest.kt | bholota | 243,821,284 | true | {"Kotlin": 12376, "Swift": 10220, "Objective-C": 1183, "C": 137} | import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import dev.michallaskowski.kuiks.sample.sharedTests.TestExample
import junit.framework.TestCase.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class ExampleI... | 0 | null | 0 | 0 | db928bd591055d52d396be718659fb241815b855 | 758 | kuiks | Apache License 2.0 |
app/src/main/java/com/unchained/itemtouchexample/ItemTouchHelperCallback.kt | Jachu5 | 112,017,606 | false | null | package com.unchained.itemtouchexample
import android.graphics.Canvas
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.helper.ItemTouchHelper
class ItemTouchHelperCallback(val adapter: ItemTouchHelperAdapter) : ItemTouchHelper.Callback() {
override fun getMovementFlags(recyclerView:... | 1 | Kotlin | 0 | 2 | 1592a6c5b2ce9b8c28642b88333f33d5f50c0752 | 1,990 | recycler | Apache License 2.0 |
lib/src/apiTest/kotlin/com/lemonappdev/konsist/architecture/assertarchitecture/architecture5/Architecture5Test.kt | LemonAppDev | 621,181,534 | false | null | package com.lemonappdev.konsist.architecture.assertarchitecture.architecture5
import com.lemonappdev.konsist.api.Konsist
import com.lemonappdev.konsist.api.architecture.KoArchitectureCreator.architecture
import com.lemonappdev.konsist.api.architecture.KoArchitectureCreator.assertArchitecture
import com.lemonappdev.kon... | 8 | null | 26 | 995 | 603d19e179f59445c5f4707c1528a438e4595136 | 5,282 | konsist | Apache License 2.0 |
common/src/main/java/com/mrl/pixiv/common/viewmodel/Middleware.kt | master-lzh | 656,227,310 | false | {"Kotlin": 470541} | package com.mrl.pixiv.common.viewmodel
import android.util.Log
import com.mrl.pixiv.common.data.DispatcherEnum
import com.mrl.pixiv.common.data.Rlt
import com.mrl.pixiv.util.NetworkExceptionUtil
import com.mrl.pixiv.util.TAG
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import ... | 0 | Kotlin | 0 | 8 | f31d9f7965ec415f045851530ccfd6d76715ac24 | 3,255 | PiPixiv | Apache License 2.0 |
src/main/kotlin/abc/188-a.kt | kirimin | 197,707,422 | false | null | package abc
import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
val x = sc.nextInt()
val y = sc.nextInt()
println(problem188a(x, y))
}
fun problem188a(x: Int, y: Int): String {
return if (Math.abs(x - y) < 3) "Yes" else "No"
} | 0 | Kotlin | 1 | 5 | c6e31eb2fb5b73456bdfac07b2528d401c6c884a | 278 | AtCoderLog | The Unlicense |
src/commonMain/kotlin/xyz/calcugames/combinatory/calculatory/calculator.kt | CalculusGames | 789,830,158 | false | {"Kotlin": 19961, "Shell": 424} | package xyz.calcugames.combinatory.calculatory
import xyz.calcugames.combinatory.CombiMap
import xyz.calcugames.combinatory.Operation
/**
* Calculates all the possible number combinations given a map and operations.
* @param map The map to calculate.
*/
fun combinations(map: CombiMap): Set<Double> =
combinatio... | 1 | Kotlin | 0 | 1 | 3a490eb97ccef647ed98d0a4704832d0f0dc1e75 | 1,763 | calculatory | MIT License |
app/src/main/java/com/boringdroid/systemui/AllAppsWindow.kt | SunshinyLyq | 373,845,652 | true | {"Kotlin": 39557} | package com.boringdroid.systemui
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Outline
import android.graphics.PixelFormat
import android.graphics.Point
import android.os.Handler
import android.os.Message
import android.util.DisplayMetrics
import android.util.Log
import ... | 0 | Kotlin | 0 | 0 | a8f9f0d20d9d922cf788d785713d868735e46f2f | 5,967 | vendor_packages_apps_BoringdroidSystemUI | Apache License 2.0 |
feature/settings/src/main/java/com/aidventory/feature/settings/presentation/supplyuses/SupplyUsesViewModel.kt | yuriikonovalov | 615,443,609 | false | null | package com.aidventory.feature.settings.presentation.supplyuses
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.aidventory.core.common.result.Result
import com.aidventory.core.domain.usecases.AddSupplyUseUseCase
import com.aidventory.core.domain.usecases.DeleteSupplyUseUseCase
i... | 0 | Kotlin | 0 | 0 | 9753d24aca8bb645cef085498124e58e9cda451a | 2,461 | aidventory | MIT License |
kanzankazuLibs/src/main/java/com/kanzankazu/kanzanutil/kanzanextension/RxExtension.kt | kanzankazu | 552,512,175 | false | {"Kotlin": 547261, "Java": 59675} | /**
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxkotlin:2.2.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
*/
@file:Suppress("NULLABLE_TYPE_PARAMETER_AGAINST_NOT_NULL_TYPE_PARAMETER")
package com.kanzankazu.kanzanutil.kanzanextension
import io.reactivex.Compl... | 0 | Kotlin | 0 | 0 | bfe04603d529e386780a9fd6b4ca389435e87fcb | 2,884 | Kanzan_Android_Libs | Apache License 2.0 |
app/src/main/java/com/kunal/fampay/ui/adapters/CardsGroupAdapter.kt | imkunalshah | 448,211,268 | false | null | package com.kunal.fampay.ui.adapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.kunal.fampay.R
import com.kunal.fampay.data.prefs.Preferences
import com.kunal.fampay.data.network.mo... | 0 | Kotlin | 0 | 0 | bc3d1329a9e4c832d435f97c57c063509d1cdd2d | 3,396 | Fampay | MIT License |
kotlin-node/src/jsMain/generated/node/fs/BigIntStatsFs.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package node.fs
sealed external interface BigIntStatsFs : StatsFsBase<js.core.BigInt>
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 141 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/nullpointer/nourseCompose/ui/share/measureGraphList/MeasureGraphAndListLandscape.kt | Hcnc100 | 734,531,705 | false | {"Kotlin": 126563} | package com.nullpointer.nourseCompose.ui.share.measureGraphList
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.lazy.grid.LazyGridState
import androidx.compose.runtime.Composable
import ... | 0 | Kotlin | 0 | 0 | 0880a76cd818c2c90e82a798d8354a966c9165b1 | 2,260 | NurseCompose2 | MIT License |
app/src/main/java/com/lianyi/paimonsnotebook/ui/widgets/widget/AppWidgetCommon3X2.kt | QooLianyi | 435,314,581 | false | {"Kotlin": 1942953} | package com.lianyi.paimonsnotebook.ui.widgets.widget
import com.lianyi.paimonsnotebook.ui.widgets.core.BaseAppWidget
class AppWidgetCommon3X2 : BaseAppWidget() {
} | 1 | Kotlin | 2 | 36 | 692b93b7e712903c795e1a2ce79859af14e2c197 | 165 | PaimonsNotebook | MIT License |
src/main/kotlin/me/nickp0is0n/escapefromthicgrim/ui/ConsoleUIHandler.kt | NickP0is0n | 528,446,816 | false | {"Kotlin": 40898} | package me.nickp0is0n.escapefromthicgrim.ui
import me.nickp0is0n.escapefromthicgrim.gamelogic.GameSession
import me.nickp0is0n.escapefromthicgrim.gamelogic.GameState
import me.nickp0is0n.escapefromthicgrim.models.field.entities.AggressiveCellEntity
import me.nickp0is0n.escapefromthicgrim.models.field.entities.SellerCe... | 0 | Kotlin | 0 | 0 | a45b92df69a3b827e9e6a5d9890914244d090ae4 | 6,809 | EscapeFromThicgrim | MIT License |
app/src/release/java/me/ykrank/s1next/BuildTypeModule.kt | UFR6cRY9xufLKtx2idrc | 853,383,380 | false | {"Kotlin": 1174002, "Java": 356564, "HTML": 20430} | package me.ykrank.s1next
import android.content.Context
import dagger.Module
import dagger.Provides
import me.ykrank.s1next.widget.net.AppData
import me.ykrank.s1next.widget.net.Data
import me.ykrank.s1next.widget.net.Image
import okhttp3.OkHttpClient
/**
* Provides instances of the objects according to build type w... | 0 | Kotlin | 0 | 0 | 7cfc58523207dc5ed5df4525c2e3de087cf9e8b9 | 894 | test24 | Apache License 2.0 |
app/src/release/java/me/ykrank/s1next/BuildTypeModule.kt | UFR6cRY9xufLKtx2idrc | 853,383,380 | false | {"Kotlin": 1174002, "Java": 356564, "HTML": 20430} | package me.ykrank.s1next
import android.content.Context
import dagger.Module
import dagger.Provides
import me.ykrank.s1next.widget.net.AppData
import me.ykrank.s1next.widget.net.Data
import me.ykrank.s1next.widget.net.Image
import okhttp3.OkHttpClient
/**
* Provides instances of the objects according to build type w... | 0 | Kotlin | 0 | 0 | 7cfc58523207dc5ed5df4525c2e3de087cf9e8b9 | 894 | test24 | Apache License 2.0 |
wallet-issuance/src/main/java/com/android/identity/issuance/hardcoded/resources.kt | openwallet-foundation-labs | 248,844,077 | false | {"Kotlin": 3108908, "Java": 682870, "Python": 85755, "JavaScript": 28064, "HTML": 841, "Shell": 372, "CSS": 286, "Dockerfile": 267} | package com.android.identity.issuance.hardcoded
import kotlin.io.encoding.Base64
import kotlin.io.encoding.ExperimentalEncodingApi
// This file is needed until we create a resource-accessing interface that can be
// used on both server and the client. Right now resources are just hard-coded here
// (and images are in... | 106 | Kotlin | 72 | 140 | 8a5eaf75c73aecd0446b5404b2862c12f96909d2 | 11,202 | identity-credential | Apache License 2.0 |
core/src/main/java/com/ke/hs_tracker/core/entity/Zone.kt | keluokeda | 469,693,055 | false | {"Kotlin": 372770} | package com.ke.hs_tracker.core.entity
enum class Zone {
/**
* 战场
*/
Play,
/**
* 牌库
*/
Deck,
/**
* 发现的牌的位置
*/
SetAside,
/**
* 墓地 打出的法术牌和死亡的随从会进入
*/
Graveyard,
/**
* 手牌
*/
Hand
}
internal fun String.toZone(fallback: Zone = Zo... | 8 | Kotlin | 31 | 216 | b4c42c2ecf385f0f9b18bf5656f1ede42795ef20 | 430 | hs_tracker | MIT License |
kotlin/src/javafx/scene/control/BigDecimalValueFactory.kt | SaschaZ | 144,776,953 | false | null | @file:Suppress("MemberVisibilityCanBePrivate", "unused")
package javafx.scene.control
import com.gapps.bitmexhelper.kotlin.ui.BigDecimalStringConverter
import com.gapps.utils.max
import com.gapps.utils.min
import javafx.beans.property.SimpleObjectProperty
import java.math.BigDecimal
class BigDecimalValueFactory(_min... | 0 | null | 2 | 1 | fad373c4353459f26715e3ceb7feb136ff41ea84 | 2,517 | BitMEX-Helper | Apache License 2.0 |
interactors/src/main/java/com/thefuntasty/interactors/BaseSingler.kt | okalman | 193,893,166 | true | {"Kotlin": 142401, "FreeMarker": 8054, "Java": 6806, "Ruby": 1104} | package com.thefuntasty.interactors
import io.reactivex.Single
/**
* Base interactor which wraps [Single]. Instance of this
* interactor can be simply executed in cooperation with
* [com.thefuntasty.interactors.disposables.DisposablesOwner] interface.
*
* Wrapped stream is subscribed on [io.reactivex.schedulers.... | 0 | Kotlin | 1 | 0 | 7564acba0e67ec86bd141904c774b8fcf8cced58 | 1,387 | mvvm-android | MIT License |
assemblyadapter-common-pager/src/androidTest/java/com/github/panpf/assemblyadapter/common/pager/test/FragmentItemFactoryTest.kt | panpf | 42,781,599 | false | null | package com.github.panpf.assemblyadapter.common.pager.test
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.github.panpf.assemblyadapter.pager.FragmentItemFactory
import org... | 0 | Kotlin | 33 | 169 | 00cf02eb1b2be82685a2997d5473579246e256c8 | 1,929 | assembly-adapter | Apache License 2.0 |
app/src/main/kotlin/batect/cli/options/defaultvalues/EnvironmentVariableDefaultValueProviderFactory.kt | uBuFun | 190,537,998 | true | {"Kotlin": 1851760, "Shell": 13393, "Groovy": 11432, "Python": 10433, "Dockerfile": 5030, "JavaScript": 4104, "Java": 1097, "HTML": 878} | /*
Copyright 2017-2019 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 1 | Kotlin | 1 | 1 | 346d411d404a8f2cd080bf3e91078aed7a6a256c | 1,351 | batect | Apache License 2.0 |
moove/application/src/main/kotlin/io/charlescd/moove/application/deployment/impl/UndeployInteractorImpl.kt | ZupIT | 249,519,503 | false | null | /*
*
* * Copyright 2020, 2021 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
* *
* * 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/LIC... | 93 | TypeScript | 76 | 343 | a65319e3712dba1612731b44346100e89cd26a60 | 5,226 | charlescd | Apache License 2.0 |
egklib/src/jvmMain/kotlin/electionguard/cli/RunConvertManifest.kt | votingworks | 425,905,229 | false | {"Kotlin": 1346228, "Java": 246571} | package electionguard.cli
import electionguard.core.productionGroup
import electionguard.publish.makePublisher
import electionguard.publish.readAndCheckManifestBytes
import kotlinx.cli.ArgParser
import kotlinx.cli.ArgType
import kotlinx.cli.required
/** Convert Manifest CLI. */
fun convertManifest(args: Array<String>... | 35 | Kotlin | 3 | 8 | f1d67fe015c653c36cb6dbbc5cd092f6fa25cf9b | 1,208 | electionguard-kotlin-multiplatform | MIT License |
app/src/main/java/com/privateinternetaccess/android/utils/AmazonPurchaseUtil.kt | pia-foss | 229,341,983 | false | {"Git Config": 1, "Gradle": 4, "Go": 3, "Markdown": 3, "CODEOWNERS": 1, "Java Properties": 2, "Shell": 15, "Text": 2, "Ignore List": 9, "reStructuredText": 1, "Java": 213, "Kotlin": 123, "YAML": 7, "INI": 1, "XML": 462, "JSON": 2, "HTML": 3, "CMake": 1, "C": 60, "Roff Manpage": 2, "desktop": 1, "QMake": 1, "C++": 1, "O... | package com.privateinternetaccess.android.utils
import android.content.Context
import androidx.lifecycle.MutableLiveData
import com.amazon.device.iap.PurchasingListener
import com.amazon.device.iap.PurchasingService
import com.amazon.device.iap.model.*
import com.privateinternetaccess.android.model.events.PricingLoade... | 6 | Java | 16 | 35 | 8c380f875a1a3328f95a1e9ff460588041175f3d | 2,822 | mobile-android-legacy | MIT License |
src/main/kotlin/org/vitrivr/cottontail/client/language/dml/BatchInsert.kt | vitrivr | 170,489,332 | false | null | package org.vitrivr.cottontail.client.language.dml
import org.vitrivr.cottontail.client.language.basics.LanguageFeature
import org.vitrivr.cottontail.client.language.extensions.parseColumn
import org.vitrivr.cottontail.client.language.extensions.parseEntity
import org.vitrivr.cottontail.grpc.CottontailGrpc
/**
* A B... | 2 | Kotlin | 1 | 4 | c3c67be55b68eb175ca8fecdd219cccd9332bd88 | 2,799 | cottontaildb-proto | MIT License |
app/src/main/java/com/example/job_app/feature_application_form/ui/ApplicationFormScreen.kt | Fred062f | 786,834,835 | false | {"Kotlin": 73392} | package com.example.job_app.feature_application_form.ui
import android.content.pm.PackageManager
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform... | 0 | Kotlin | 0 | 1 | 76e270e171702c3427319004baa14873d4b16054 | 6,095 | job-app | MIT License |
src/main/kotlin/com/korealm/compApp/models/Order.kt | kosail | 861,949,379 | false | {"Kotlin": 26170} | package com.korealm.compApp.models
import com.korealm.compApp.models.enums.OrderCategory
import com.korealm.compApp.models.enums.OrderStatus
import com.korealm.compApp.models.enums.RideDirection
import java.time.LocalTime
// Order class is sealed because in that way it can only be inherited by the classes defined wit... | 0 | Kotlin | 0 | 0 | 1cbda38dee908b41fd833588d3972b82a58572eb | 1,759 | CompApps-Backend-Server | MIT License |
testedeperformance03/app/src/main/java/com/camelloncase/testedeperformance03/ui/recover/RecoverFragment.kt | franciscocamellon | 469,836,942 | false | null | package com.camelloncase.testedeperformance03.ui.recover
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import androidx.lifecycle.... | 0 | Kotlin | 1 | 0 | 237551f1b471df881c0fcf722c3647c5b77ae388 | 2,418 | kotlinDevelopment_SecurityMonetizationPublication | Academic Free License v3.0 |
app/src/main/java/dev/thiaago/finn/FinnApplication.kt | thiaagodev | 683,539,394 | false | {"Kotlin": 97147} | package dev.thiaago.finn
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class FinnApplication: Application() {} | 0 | Kotlin | 0 | 2 | 73c5db63d337a8bc6ba2c1733ea44cfa6e68f48d | 156 | Finn | Creative Commons Attribution 4.0 International |
kotlin-4-devs-java/src/main/kotlin/br/com/erudio/section08/_0803/Lambdas.kt | leandrocgsi | 463,957,505 | false | null | package br.com.erudio.section08._0803
fun main() {
val students = getStudents()
val combos = students.map { a -> "${a.name} : ${a.age}"}
println("Combos: $combos")
println("The oldest student is: ${students.maxByOrNull { it.age }}")
println("Student with longest name is: ${students.filter { it.na... | 0 | Kotlin | 1 | 2 | fed429722c6590867027c18464cc642b8a42135a | 340 | kotlin-4-devs-java | Apache License 2.0 |
authentication/src/main/kotlin/com/uber/sdk2/auth/request/AuthDestination.kt | uber | 46,449,357 | false | {"Java": 475289, "Kotlin": 114386, "Shell": 941, "Groovy": 214} | /*
* Copyright (C) 2024. Uber Technologies
*
* 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 o... | 47 | Java | 125 | 292 | d581a91c555bf3d1ca8963259fc193b1da7bfa31 | 1,786 | rides-android-sdk | MIT License |
app/src/main/java/com/carin/data/mappers/UserMapper.kt | MEI-Grupo-4-CarIn | 773,390,235 | false | {"Kotlin": 242704} | package com.carin.data.mappers
import com.carin.R
import com.carin.data.local.entities.UserEntity
import com.carin.data.remote.dto.UserDto
import com.carin.data.remote.dto.UserUpdateRequest
import com.carin.data.remote.dto.auth.AuthRegisterDto
import com.carin.data.remote.dto.auth.AuthRegisterRequest
import com.carin.... | 4 | Kotlin | 0 | 0 | 70ea4c4ce707f3a7a1dd1e4daaf0d31302ef26c1 | 2,506 | CarIn.AndroidApp | MIT License |
app/src/main/java/com/goldenowl/ecommerce/ui/auth/BaseAuthFragment.kt | longnghia | 490,517,031 | false | {"Kotlin": 599604, "Shell": 367} | package com.goldenowl.ecommerce.ui.auth
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigati... | 0 | Kotlin | 1 | 3 | 2fce27c406981cac795c8dce80ffac832abf14e3 | 4,145 | E-Commerce-Application | MIT License |
app/src/main/java/org/p2p/wallet/infrastructure/InfrastructureModule.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.infrastructure
import org.koin.core.module.dsl.factoryOf
import org.koin.core.module.dsl.singleOf
import org.koin.dsl.bind
import org.koin.dsl.module
import org.p2p.core.glide.GlideManager
import org.p2p.solanaj.utils.crypto.Pbkdf2HashGenerator
import org.p2p.wallet.appsflyer.AppsFlyerService
im... | 9 | Kotlin | 14 | 23 | 2badf683d824c57654b12ea0c023f96e1a5d0c19 | 1,961 | key-app-android | MIT License |
app/src/main/java/com/example/data/repository/UserRepository.kt | jaumard | 109,184,160 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 4, "Java": 7, "XML": 14, "Kotlin": 19} | package com.example.data.repository
import com.example.database.dao.UserDao
import com.example.network.api.UserApi
import io.reactivex.Single
import javax.inject.Inject
class UserRepository @Inject constructor(val userApi: UserApi, userDao: UserDao) {
fun getUser() : Single<String>{
return Single.just("u... | 1 | null | 1 | 1 | 2cabec26007f8d00fc3f880226b11e7f38e71f8a | 338 | android-MVVM-boilerplate | Apache License 2.0 |
NomadFinal/app/src/main/java/com/example/nomadfinal/data/Request.kt | alexandersuglio | 312,923,486 | false | null | package com.example.nomadfinal.data
import android.util.Log
import java.net.URL
// Request handles the network request based on the url and
// reads the text response and returns in a string format.
class Request (private val url: String) {
fun run():String {
val forecastJson = URL(url).readText()
... | 0 | Kotlin | 0 | 0 | a96b94edffbebdd4a6da9772d5ab2cfe1d49ba64 | 401 | AndroidFinalProject | MIT License |
benchmarking/app/src/main/java/com/example/macrobenchmark_codelab/ui/JetsnackApplication.kt | googlecodelabs | 511,457,161 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2 | Kotlin | 6 | 8 | 8c6ccd7f686a3ad06880dd524f5c7cccbf9e8383 | 1,093 | android-performance | Apache License 2.0 |
app/src/main/java/com/example/theatre/features/info/presentation/ui/detail/person/PersonFragment.kt | 2023Constanta | 601,772,348 | false | null | package com.example.theatre.features.info.presentation.ui.detail.person
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import androidx.fragment.app.Fragment
import androidx.navigation.findNavController
import by.kirich1409.viewbindingdelegate.viewBinding
import com.bumptech.glide.Glide
... | 0 | Kotlin | 0 | 0 | 454794e98ed30e795d769ba304ecf092c7df2582 | 3,748 | Theatre | Apache License 2.0 |
smokkx/src/commonMain/kotlin/pl/mareklangiewicz/smokkx/SMokKX0.kt | mareklangiewicz | 168,856,095 | false | {"Kotlin": 35072} | package pl.mareklangiewicz.smokkx
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlin.coroutines.Continuation
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext
import kotlin.coroutines.suspendCoroutine
class SMokKX0<T>(var autoCancel: Boolean = false, var autoRes... | 0 | Kotlin | 0 | 3 | f213552efab84157e2b8644246316985dfb11960 | 1,159 | SMokK | Apache License 2.0 |
gaia-sdk-java/gaia-sdk-core/src/test/kotlin/gaia/sdk/core/hmac/HMACPerceptionTest.kt | leftshiftone | 218,051,248 | false | {"Python": 597076, "TypeScript": 553203, "Kotlin": 517386, "JavaScript": 6976, "ANTLR": 2281} | package gaia.sdk.core.hmac
import gaia.sdk.GaiaCredentials
import gaia.sdk.core.AuthorizationTestHelper
import gaia.sdk.core.PerceptionTest
import org.junit.jupiter.api.Disabled
class HMACPerceptionTest : PerceptionTest(){
override fun retrieveCredentials() : GaiaCredentials {
return AuthorizationTestHel... | 8 | Python | 2 | 1 | 10190c1de4b2b5f1d4a5f014602c4ccc5c11bee4 | 359 | gaia-sdk | MIT License |
konveyor/src/test/java/com/avito/konveyor/adapter/SimpleAdapterPresenterTest.kt | avito-tech | 97,838,838 | false | {"Kotlin": 31752, "Java": 194} | package com.avito.konveyor.adapter
import com.avito.konveyor.blueprint.Item
import com.avito.konveyor.blueprint.ItemPresenter
import com.avito.konveyor.blueprint.ItemView
import com.avito.konveyor.blueprint.ViewTypeProvider
import com.avito.konveyor.data_source.ListDataSource
import com.avito.konveyor.util.Is
import c... | 4 | Kotlin | 6 | 48 | 73e361aa7485e48f4ded0af48f7289651cd2a734 | 2,254 | Konveyor | MIT License |
openai-client/client/src/commonMain/kotlin/com/xebia/functional/openai/models/RunStepDetailsToolCallsCodeOutputLogsObject.kt | xebia-functional | 629,411,216 | false | {"Kotlin": 4240359, "TypeScript": 67083, "Mustache": 18713, "Java": 8890, "CSS": 7836, "JavaScript": 4283, "HTML": 678} | /**
* 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 com.xebia.functional.openai.models
import kotlinx.serialization.*
i... | 40 | Kotlin | 16 | 162 | e8a62e98e2a6a2f8958045a8098987583d3e8b0a | 1,079 | xef | Apache License 2.0 |
src/test/kotlin/com/gwax/scryfall/ScryfallChangelogTest.kt | gwax | 114,571,850 | false | null | package com.gwax.scryfall
import com.github.kittinunf.fuel.core.Client
import com.github.kittinunf.fuel.core.FuelManager
import com.github.kittinunf.fuel.core.Request
import com.github.kittinunf.fuel.core.Response
import com.rometools.rome.feed.synd.SyndEntry
import com.rometools.rome.feed.synd.SyndEntryImpl
import co... | 0 | Kotlin | 0 | 0 | 8848f9c8c0d55876e687ab7be23a9eb93484d2b1 | 3,738 | mtgssm2k | MIT License |
src/main/kotlin/com/javapda/smartcalculator/SmartCalculator.kt | javapda | 830,228,933 | false | {"Kotlin": 38514} | package com.javapda.smartcalculator
class SmartCalculator(val smartCalculatorVariableDictionary: SmartCalculatorVariableDictionary = vd) {
fun somethingToTest(): Int = 34
fun userInput(userInputGiven: String): Boolean {
if (userInputGiven.isBlank()) return true
val userInput=userInputGiven.trim... | 0 | Kotlin | 0 | 0 | 8fddb81d0c3229f5a2b4c09257437db0670b87c8 | 4,060 | smart-calculator-kotlin | Apache License 2.0 |
imitate/src/main/java/com/engineer/imitate/algo/links/Client.kt | jileiadmin | 247,250,795 | false | {"Java": 1866570, "Kotlin": 379882, "HTML": 70618, "JavaScript": 32332, "CSS": 14617, "Groovy": 557, "Shell": 334, "Ruby": 300, "Batchfile": 55} | package com.engineer.imitate.algo.links
/**
* @author rookie
* @since 12-10-2019
*/
private val datas = arrayOf("a", "b", "c", "d", "e", "f")
fun main(args: Array<String>) {
val nodes = SingleLinkedList<String>()
for (data in datas) {
nodes.insertToHead(data)
}
nodes.printAll()
nodes... | 0 | Java | 0 | 2 | c3599ecb85973e2539f5263ff7c9a4d23333bd27 | 966 | AndroidAnimationExercise | Apache License 2.0 |
stumperd/src/main/kotlin/Deduplicate.kt | cs124-illinois | 585,572,354 | false | {"Kotlin": 451116, "ANTLR": 73858, "TypeScript": 35484, "HTML": 11586, "Java": 8215, "Dockerfile": 2100, "Shell": 691} | package edu.illinois.cs.cs124.stumperd
import com.mongodb.client.MongoCollection
import com.mongodb.client.model.Filters
import com.mongodb.client.model.IndexOptions
import com.mongodb.client.model.Indexes
import com.mongodb.client.model.UpdateOptions
import com.mongodb.client.model.Updates
import org.bson.BsonDocumen... | 0 | Kotlin | 0 | 0 | 62336c97df41b72d0d117b706a2c227a75703fb5 | 1,588 | questioner | MIT License |
clients/keycloak/src/main/kotlin/internal/Client.kt | eclipse-apoapsis | 760,319,414 | false | {"Kotlin": 2994047, "Dockerfile": 24090, "Shell": 6277} | /*
* Copyright (C) 2022 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
*
* 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://w... | 18 | Kotlin | 2 | 9 | 0af70d6382a86f0ebc35d9b377f4229c6a71637a | 1,145 | ort-server | Apache License 2.0 |
app/src/main/java/com/afdhal_fa/treasure/core/utils/SingleLiveEvent.kt | Fuadafdhal | 307,046,917 | false | null | package com.afdhal_fa.treasure.core.utils
import android.util.Log
import androidx.annotation.MainThread
import androidx.annotation.Nullable
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import java.util.concurrent.atomic.AtomicBoolean
class Singl... | 0 | Kotlin | 0 | 1 | 5b45872b51c34dc908a8f082a46a308162fa8315 | 984 | Treasure | Apache License 2.0 |
app/src/main/java/com/afdhal_fa/treasure/core/utils/SingleLiveEvent.kt | Fuadafdhal | 307,046,917 | false | null | package com.afdhal_fa.treasure.core.utils
import android.util.Log
import androidx.annotation.MainThread
import androidx.annotation.Nullable
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import java.util.concurrent.atomic.AtomicBoolean
class Singl... | 0 | Kotlin | 0 | 1 | 5b45872b51c34dc908a8f082a46a308162fa8315 | 984 | Treasure | Apache License 2.0 |
application/src/main/kotlin/net/codebot/application/presentation/LayoutEvent.kt | irene-myan | 641,283,120 | false | null | // Copyright (c) 2023 <NAME>, <NAME>, <NAME>, <NAME>
package net.codebot.application.presentation
import javafx.event.Event
import javafx.event.EventType
// Custom Events Reference: https://fxdocs.github.io/docs/html5/#_event_handling
class LayoutEvent(eventType: EventType<out Event?>?)
: Event(eventType) {
... | 0 | Kotlin | 0 | 0 | 4cf307626b029bd25fa2d36f0afd3c36dc510196 | 431 | JotJungle | MIT License |
compiler/testData/diagnostics/tests/functionLiterals/suspend/enabled.kt | Greeneisgood | 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... | // LANGUAGE: -SuspendFunctionsInFunInterfaces, +JvmIrEnabledByDefault
fun interface I {
suspend fun foo()
} | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 112 | kotlinWithFuzzer | Apache License 2.0 |
src/test/java/uk/gov/justice/digital/hmpps/keyworker/integration/KeyWorkerDeallocationIntegrationTest.kt | ministryofjustice | 118,432,830 | false | {"Java": 582178, "Kotlin": 151040, "Groovy": 37850, "Mustache": 1803, "Dockerfile": 1267, "Shell": 177} | package uk.gov.justice.digital.hmpps.keyworker.integration
import org.junit.jupiter.api.Test
class KeyWorkerDeallocationIntegrationTest : IntegrationTest() {
companion object {
const val PRISON_ID = "LEI"
const val OFFENDER_NO_1 = "A1234XY"
const val OFFENDER_NO_2 = "A6676RS"
}
@Test
fun `Existin... | 7 | Java | 4 | 2 | 83569084cc886f56d96dbd69e687d33b44ca3606 | 1,085 | keyworker-api | MIT License |
lib-login-api/src/main/java/com/xsolla/lib_login/entity/request/Attributes.kt | xsolla | 233,092,015 | false | null | package com.xsolla.lib_login.entity.request
import com.xsolla.lib_login.entity.common.UserAttribute
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal data class GetAttributesBody(
@SerialName("keys")
val keys: List<String>,
@SerialName("publisher_proj... | 1 | Kotlin | 5 | 9 | 5f14ce11e41ab638145bbf394d215b7333824e27 | 687 | store-android-sdk | Apache License 2.0 |
android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/print/PrintPackage.kt | betomoedano | 462,599,485 | true | {"TypeScript": 7804102, "Kotlin": 3383974, "Objective-C": 2722124, "Swift": 1723956, "Java": 1686584, "JavaScript": 847793, "C++": 310224, "C": 237463, "Objective-C++": 191888, "Ruby": 167983, "Shell": 59271, "HTML": 31107, "CMake": 25754, "Batchfile": 89, "CSS": 42} | package abi47_0_0.expo.modules.print
import android.content.Context
import abi47_0_0.expo.modules.core.BasePackage
import abi47_0_0.expo.modules.core.ExportedModule
class PrintPackage : BasePackage() {
override fun createExportedModules(context: Context): List<ExportedModule> {
return listOf(PrintModule(context... | 0 | TypeScript | 0 | 4 | 52d6405570a39a87149648d045d91098374f4423 | 329 | expo | MIT License |
okio-wasifilesystem/src/wasmWasiMain/kotlin/okio/internal/preview1/OFlags.kt | square | 17,812,502 | false | {"Kotlin": 1559919, "Java": 43685, "Shell": 1180} | // Copyright 2019-2023 the Contributors to the WASI Specification
// This file is adapted from the WASI preview1 spec here:
// https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md
package okio.internal.preview1
/**
* `oflags: `Record`.
*
* Open flags used by path_open.
*/
typealias oflags = Int
/... | 89 | Kotlin | 1178 | 8,795 | 0f6c9cf31101483e6ee9602e80a10f7697c8f75a | 570 | okio | Apache License 2.0 |
android-core/src/main/java/com/mparticle/internal/KitsLoadedListenerConfiguration.kt | mParticle | 42,615,957 | false | null | package com.mparticle.internal
import com.mparticle.Configuration
internal class KitsLoadedListenerConfiguration(private var kitsLoadedListener: KitsLoadedListener) : Configuration<KitFrameworkWrapper> {
override fun configures() = KitFrameworkWrapper::class.java
override fun apply(kitFrameworkWrapper: KitFra... | 26 | null | 62 | 58 | 94284f5f789f19872b21d75e063f9362675e217a | 401 | mparticle-android-sdk | Apache License 2.0 |
dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/Olingo4UriDsl.kt | bearBoy80 | 564,572,724 | true | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 0 | Java | 0 | 0 | 8455c3a9f3dd2c1ad7c765055208b23576005819 | 7,339 | camel | Apache License 2.0 |
nodecore-cli/src/main/java/nodecore/cli/serialization/BalancePayload.kt | VeriBlock | 179,742,374 | false | null | package nodecore.cli.serialization
import com.google.gson.annotations.SerializedName
import nodecore.api.grpc.RpcGetBalanceReply
import org.veriblock.core.utilities.extensions.formatAtomicLongWithDecimal
class BalancePayload(
reply: RpcGetBalanceReply
) {
@SerializedName("confirmed")
val confirmed = reply... | 72 | null | 16 | 12 | ef06c51c1410ba59da13403b65e367b21dcfed21 | 747 | nodecore | MIT License |
kirinmaru-android/src/main/java/stream/reconfig/kirinmaru/android/util/prefs/GsonPrefModel.kt | amirulzin | 121,656,356 | false | {"Gradle": 5, "Markdown": 2, "Java Properties": 1, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "EditorConfig": 1, "Proguard": 1, "JSON": 1, "Kotlin": 158, "XML": 54, "INI": 1, "Java": 6, "YAML": 1} | package stream.reconfig.kirinmaru.android.util.prefs
import android.content.SharedPreferences
import com.google.gson.Gson
import commons.android.core.prefs.PrefModel
import java.lang.reflect.Type
/**
* PrefModel based on a Gson-friendly type [T].
*
* Data is stored as JSON string.
*
* If [T] is nullable, set the... | 1 | null | 1 | 1 | 15c1eeafe8f467a55008b402e30d97e6966926f3 | 718 | Kirinmaru | Apache License 2.0 |
kotlin/agree-thread/src/main/kotlin/com/heaven7/study/kotlin/agree_thread/compose_job.kt | LightSun | 103,363,180 | false | {"Text": 67, "Ignore List": 64, "Markdown": 16, "Java": 1322, "Gradle": 139, "Shell": 63, "Batchfile": 54, "Java Properties": 64, "JavaScript": 2693, "HTML": 10, "JAR Manifest": 2, "ANTLR": 2, "JSON": 63, "YAML": 6, "C": 705, "Dockerfile": 1, "INI": 16, "XML": 378, "SQL": 2, "C++": 14753, "Proguard": 33, "CMake": 16, "... | package com.heaven7.study.kotlin.agree_thread
import kotlinx.coroutines.experimental.CommonPool
import kotlinx.coroutines.experimental.async
import kotlinx.coroutines.experimental.delay
import kotlinx.coroutines.experimental.runBlocking
import kotlin.system.measureTimeMillis
//执行2个协程代码
fun main(args: Array<String>) ... | 1 | null | 1 | 1 | 48eb3500a00b69bca78242fd648cc1f818b394b0 | 1,751 | research-institute | Apache License 2.0 |
app/src/main/java/com/hdk24/basemvvm/domain/repository/MovieRepository.kt | hdk24 | 267,482,838 | false | null | package com.hdk24.basemvvm.domain.repository
import com.hdk24.basemvvm.presentation.model.Movie
import io.reactivex.Single
/*
* Created by Hanantadk on 22/03/20.
* Copyright (c) 2020. All rights reserved.
* Last modified 22/03/20.
*/
interface MovieRepository {
fun fetchMovie(page: Int): Single<List<Movie... | 0 | null | 6 | 9 | 8fa27de9aeac7fa79c59f128645ac8d7d4418a7c | 325 | base-mvvm-kotlin | The Unlicense |
backend/src/main/kotlin/database/H2Database.kt | stanbar | 162,640,520 | false | null | /*
* Copyright 2019 Stanislaw stasbar Baranski
*
* 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... | 8 | null | 1 | 1 | 3869ac8147d854b9fde6442398d89cfc51f5b401 | 1,059 | stasbar-app | Apache License 2.0 |
base/src/main/java/com/base/injection/module/ImageLoaderModule.kt | nmhung | 141,799,780 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 4, "XML": 226, "Kotlin": 98} | package com.base.injection.module
import android.content.Context
import com.base.imageloader.ImageLoader
import com.base.injection.scope.ApplicationScope
import dagger.Module
import dagger.Provides
/**
* Created by vophamtuananh on 1/13/18.
*/
@Module(includes = [AppContextModule::class])
class ImageLoaderModule {... | 0 | Kotlin | 1 | 0 | ba76ec5f52396a4a8877c7256dd6aacada1cf2f2 | 461 | TwitSplit | MIT License |
stripe/src/main/java/io/github/cchristou3/CyParking/SingletonHolder.kt | cchristou3 | 305,769,007 | false | null | package io.github.cchristou3.CyParking
/**
* Purpose: Allow the subclassing companion object to pass
* arguments in its Singleton class.
* It uses a double-checked locking system to ensure thread safety and
* uses a technique known as lazy initialization to initialize the instance
* only when first accessed.
*
... | 2 | null | 1 | 1 | 3e684bd66e1421a05dce58a588b28b1d980a4737 | 1,299 | CyParking | Apache License 2.0 |
workflow-testing/src/test/java/com/squareup/workflow1/FlowWorkersTest.kt | square | 268,864,554 | false | {"Kotlin": 1320478, "Shell": 2325, "Ruby": 1690, "Java": 806} | @file:Suppress("EXPERIMENTAL_API_USAGE")
package com.squareup.workflow1
import com.squareup.workflow1.testing.test
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.consumeEach
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flo... | 173 | Kotlin | 99 | 995 | daf192e24d7b47943caf534e62e4b70d08028100 | 2,368 | workflow-kotlin | Apache License 2.0 |
app/src/main/java/github/com/st235/expandablebottombar/screens/StylesActivity.kt | st235 | 173,377,910 | false | {"Gradle": 5, "INI": 3, "Shell": 1, "Text": 2, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Proguard": 1, "XML": 58, "Kotlin": 51, "Java": 1, "YAML": 1} | package github.com.st235.expandablebottombar.screens
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import github.com.st235.expandablebottombar.R
class StylesActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 2 | Kotlin | 60 | 783 | a0abc55616b9f711e41e3a38b0af0cccda24d0c9 | 377 | ExpandableBottomBar | MIT License |
MyPractice/app/src/main/java/com/example/mypractice/kotlin/TestConstructor.kt | yujintao529 | 63,918,338 | false | {"Java": 6634760, "C": 330310, "Kotlin": 261899, "C++": 235498, "AIDL": 3824, "CMake": 3765, "Objective-C++": 706, "Shell": 410} | package com.example.mypractice.kotlin
import android.content.Context
import android.util.AttributeSet
import android.view.ViewGroup
class MyView : ViewGroup {
@JvmOverloads
constructor(context: Context, attrs: AttributeSet? = null) : super(context, attrs) {
System.out.println("constructor ")
}
... | 1 | Java | 1 | 1 | 70c8757c79099e222c93124c63b6351b65508fb2 | 569 | android_practice | Apache License 2.0 |
impl/java/tracing/src/test/kotlin/br/com/guiabolso/tracing/factory/CompositeTracerEngineTest.kt | lsimoesguiabolso | 253,566,862 | false | null | package br.com.guiabolso.tracing.factory
import br.com.guiabolso.tracing.engine.TracerEngine
import com.nhaarman.mockito_kotlin.*
import org.junit.jupiter.api.Test
import org.mockito.ArgumentMatchers.anyList
import java.io.Closeable
class CompositeTracerEngineTest {
private val mockEngine1: TracerEngine<*> = moc... | 1 | null | 1 | 1 | cce42bc474476a941f5b4eddb26afa74ec58cc83 | 4,278 | events-protocol | Apache License 2.0 |
ecommerce-cart/src/main/kotlin/com/kotato/context/ecommerce/modules/order/domain/update/status/succeeded/OrderSucceededEvent.kt | kotato | 110,930,032 | false | null | package com.kotato.context.ecommerce.modules.order.domain.update.status.succeeded
import com.kotato.shared.domainevent.DomainEvent
import java.time.ZonedDateTime
data class OrderSucceededEvent(val aggregateId: String,
val occurredOn: ZonedDateTime) : DomainEvent {
override fun aggrega... | 2 | Kotlin | 26 | 25 | 15db3d036f273de1bf4bb603398a0d24bc3c6ade | 396 | axon-examples | MIT License |
src/main/kotlin/br/com/ot6/shared/clients/bcb/dtos/DeletePixKeyClientReturn.kt | Joao-Nunes-Zup | 398,877,471 | true | {"Kotlin": 75606} | package br.com.ot6.shared.clients.bcb.dtos
data class DeletePixKeyClientReturn(
val key: String,
val participant: String,
val deletedAt: String
)
| 0 | Kotlin | 0 | 0 | d4d3a24430bf2c54670521543a529c9e3c4304f6 | 159 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
Module - Navigation/NavStarterOfDoom/app/src/main/java/com/javadude/navstarterofdoom/BaseFragment.kt | javadude | 165,342,053 | false | null | package com.javadude.navstarterofdoom
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.navigation.NavDirections
import androidx.navigation.findNavController
abs... | 0 | null | 2 | 3 | a86009e0faead46b0abcf51eefb4edfe993b2b37 | 725 | 605.686-samples | Apache License 2.0 |
shared/src/commonMain/kotlin/com/nimesh/vasani/melodybeatblastkmp/chartdetails/ChartDetails.kt | NimeshVasani | 778,497,675 | false | {"Kotlin": 1083587, "Swift": 1032, "HTML": 239, "Ruby": 228, "JavaScript": 152} | package com.nimesh.vasani.melodybeatblastkmp.chartdetails
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation... | 0 | Kotlin | 0 | 0 | 4c09e28cce471dbdb8ae0847ba92a1f13fdef131 | 9,314 | melody_BeatBlast_KMP | Info-ZIP License |
annotationprocessortesting-kt/src/main/java/com/tickaroo/tikxml/annotationprocessing/DateConverter.kt | Tickaroo | 46,920,047 | false | null | /*
* Copyright (C) 2015 <NAME>
* Copyright (C) 2015 Tickaroo, 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 r... | 47 | null | 46 | 420 | cd5d868cf5988c66755f9ff6da043abc27a0fa6f | 1,217 | tikxml | Apache License 2.0 |
app/src/main/java/com/example/missingpets/models/ResultadoRegistroUsuario.kt | UTN-FRBA-Mobile | 409,980,590 | false | {"Kotlin": 140503, "Java": 13882} | package com.example.missingpets.models
data class ResultadoLoginUsuario(
val exitoso: Usuario? = null,
val error: String? = null
)
| 0 | Kotlin | 0 | 0 | e2c3332e28877d23b15ce92bc29adda82e707bee | 140 | MissingPets | MIT License |
app/src/main/java/com/workfort/pstuian/util/lib/koin/RepositoryModule.kt | arhanashik | 411,942,559 | false | {"Kotlin": 1116286} | package com.workfort.pstuian.util.lib.koin
import com.workfort.pstuian.app.data.local.batch.BatchService
import com.workfort.pstuian.app.data.local.config.ConfigService
import com.workfort.pstuian.app.data.local.course.CourseService
import com.workfort.pstuian.app.data.local.database.AppDatabase
import com.workfort.ps... | 0 | Kotlin | 0 | 2 | 9c51ec4d4d477ae739b922c49127ac69844f4d6e | 3,556 | PSTUian-android | Apache License 2.0 |
app/src/main/java/com/synrgyacademy/finalproject/adapter/PassengerDetailAdapter.kt | Synrgy-Academy-Final-Project | 738,116,027 | false | {"Kotlin": 429514, "Ruby": 1824} | package com.synrgyacademy.finalproject.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.synrgyacademy.domain.model.pa... | 0 | Kotlin | 0 | 0 | d7fefca1200efd6eae4a33a34ef0511d90dfd54a | 2,907 | Android | MIT License |
lib/src/main/kotlin/be/zvz/koyo/GenshinImpact.kt | JellyBrick | 624,200,267 | false | null | package be.zvz.koyo
import be.zvz.koyo.constants.Headers
import be.zvz.koyo.constants.Routes
import be.zvz.koyo.dto.CodeRedemptionResult
import be.zvz.koyo.dto.GenshinCharacterIdsAndServerAndRoleId
import be.zvz.koyo.dto.GenshinCharacters
import be.zvz.koyo.dto.GenshinDailyClaim
import be.zvz.koyo.dto.GenshinDailyClai... | 7 | Kotlin | 0 | 1 | d46d77e6786bf803d0d9e98e49d6b42b3f99c5ef | 25,065 | Koyo | Apache License 2.0 |
app/src/main/java/com/m2s/carservice/data/model/NotificationData.kt | Nassr-Allah | 612,661,134 | false | null | package com.m2s.carservice.data.model
data class NotificationData(
val title: String,
val message: String
)
| 0 | Kotlin | 0 | 1 | 70c74793299a6b980cd6744f60f876b7ad283221 | 117 | Car-Service-App | MIT License |
graphql-core/src/main/kotlin/io/github/wickedev/graphql/types/Order.kt | wickedev | 439,584,762 | false | {"Kotlin": 269467, "JavaScript": 6748, "Java": 2439, "CSS": 1699} | package io.github.wickedev.graphql.types
data class Order(
val property: String,
val direction: Direction?
) | 0 | Kotlin | 0 | 19 | d6913beaecf9e7ef065acdb1805794a10b07d55e | 117 | graphql-jetpack | The Unlicense |
example-core/src/main/kotlin/io/github/dehuckakpyt/telegrambotexample/handling/ExceptionCommand.kt | DEHuckaKpyT | 670,859,055 | false | {"Kotlin": 517509} | package io.github.dehuckakpyt.telegrambotexample.handling
import io.github.dehuckakpyt.telegrambot.handling.BotHandling
import io.github.dehuckakpyt.telegrambotexample.exception.CustomException
/**
* Created on 27.12.2023.
*<p>
*
* @author <NAME>
*/
fun BotHandling.exceptionCommand() {
command("/exception")... | 1 | Kotlin | 0 | 9 | fd400d4222cf7b10964bb350a943f4d6e7c6f5bd | 391 | telegram-bot | Apache License 2.0 |
app/src/main/java/com/muzafferus/cryptotrackerapp/ui/home/HomeFragment.kt | Muzafferus | 502,466,839 | false | null | package com.muzafferus.cryptotrackerapp.ui.home
import android.os.Bundle
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.fragment.app.viewModels
import androidx.recyclerview.widget.LinearLayoutManager
import com.muzafferus.cryptotrackerapp.R
import com.muzafferus.cryptotrackerapp.d... | 0 | Kotlin | 0 | 0 | 4d616bae7bc21d3e7864df930f63e34ce5ff12b9 | 4,265 | Crypto-Tracker-App | Apache License 2.0 |
app/src/main/java/com/hd/charts/app/Navigation.kt | dautovicharis | 738,676,725 | false | {"Kotlin": 108700} | package com.hd.charts.app
sealed class ChartScreen(val route: String) {
data object MainScreen : ChartScreen("main")
data object LineChartScreen : ChartScreen("lineChart")
data object PieChartScreen : ChartScreen("pieChart")
data object BarChartScreen : ChartScreen("barChart")
data object StackedBa... | 1 | Kotlin | 2 | 40 | 5cc6af9855e68c82d98f7d08bcba4ec5027db925 | 367 | Charts | MIT License |
okio/src/nativeMain/kotlin/okio/internal/-ZlibNative.kt | square | 17,812,502 | false | {"Kotlin": 1559919, "Java": 43685, "Shell": 1180} | // ktlint-disable filename
/*
* Copyright (C) 2024 Square, 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 require... | 89 | Kotlin | 1178 | 8,795 | 0f6c9cf31101483e6ee9602e80a10f7697c8f75a | 2,537 | okio | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/skills/crafting/spinning/SpinningData.kt | 2011Scape | 578,880,245 | false | {"Kotlin": 8904349, "Dockerfile": 1354} | package gg.rsmod.plugins.content.skills.crafting.spinning
import gg.rsmod.plugins.api.cfg.Items
enum class SpinningData(
val raw: List<Int>,
val product: Int,
val levelRequirement: Int,
val experience: Double,
val rawName: String,
) {
WOOL(
raw = listOf(Items.WOOL),
product = I... | 39 | Kotlin | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,715 | game | Apache License 2.0 |
uicomponent-compose/core/src/main/java/io/github/droidkaigi/feeder/core/util/MultiLangTextExt.kt | DroidKaigi | 283,062,475 | false | null | package io.github.droidkaigi.feeder.core.language
import android.content.res.Configuration
import androidx.annotation.StringRes
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import io.github.droidkaigi.feeder.Lang
import io.github.droidkaigi.feeder.MultiLangText
import jav... | 45 | Kotlin | 189 | 633 | 3fb47a7b7b245e5a7c7c66d6c18cb7d2a7b295f2 | 1,108 | conference-app-2021 | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.