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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
processor/src/main/kotlin/com/intuit/hooks/plugin/ksp/validation/HookPropertyValidations.kt | intuit | 342,405,057 | false | null | package com.intuit.hooks.plugin.ksp.validation
import arrow.core.ValidatedNel
import arrow.core.invalidNel
import arrow.core.valid
import arrow.core.zip
import com.google.devtools.ksp.symbol.KSPropertyDeclaration
import com.intuit.hooks.plugin.codegen.HookInfo
import com.intuit.hooks.plugin.codegen.HookProperty
inter... | 6 | Kotlin | 6 | 30 | 4e3e909bb2106d34bc82c51ddd76631a0aeffc6c | 1,789 | hooks | MIT License |
statestreammodule/src/main/java/com/bitatron/statestream/schedulers/SchedulersProvider.kt | andreasmichaelides | 192,808,198 | false | null | package com.bitatron.statestream.schedulers
import io.reactivex.Scheduler
interface SchedulersProvider {
fun io(): Scheduler
fun computation(): Scheduler
fun mainThread(): Scheduler
fun fixedPool(): Scheduler
fun single(): Scheduler
}
| 0 | Kotlin | 0 | 0 | 7171f4906d6fc62ca21e9460268c7730be3d657b | 262 | StateStream | Apache License 2.0 |
advent-of-code2015/src/main/kotlin/day9/Advent9.kt | REDNBLACK | 128,669,137 | false | {"Text": 41, "Ignore List": 1, "Markdown": 6, "Kotlin": 167, "Scala": 64, "INI": 2, "XML": 49, "HTML": 43, "Java": 3} | package day9
import parseInput
import permutations
import splitToLines
/**
--- Day 9: All in a Single Night ---
Every year, Santa manages to deliver all of his presents in a single night.
This year, however, he has some new locations to visit; his elves have provided him the distances between every pair of location... | 0 | Kotlin | 0 | 0 | e282d1f0fd0b973e4b701c8c2af1dbf4f4a149c7 | 2,772 | courses | MIT License |
platform/core-api/src/com/intellij/openapi/vfs/VirtualFileCustomDataProvider.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.vfs
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.openapi.project.Project
import kotlinx.coroutines.flow.Flow
import org.jetbrains.annota... | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 949 | intellij-community | Apache License 2.0 |
app/src/main/java/com/borabor/movieapp/presentation/adapter/GenreAdapter.kt | bbor98 | 510,432,451 | false | {"Kotlin": 205881} | package com.borabor.movieapp.presentation.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.borabor... | 0 | Kotlin | 4 | 15 | 369393ac387ed6c1c30939831b60c78b51f6f56a | 1,514 | movieapp-mvvm-clean-architecture | MIT License |
Motocitizen/src/motocitizen/dictionary/AccidentStatus.kt | elagin | 41,307,837 | true | {"Java": 581809, "Kotlin": 164510} | package motocitizen.dictionary
enum class AccidentStatus constructor(override val code: String, override val text: String) : Dictionary<String> {
ACTIVE("a", "Активный"),
ENDED("e", "Отбой"),
HIDDEN("h", "Скрыт");
// CONFLICT("w", "Конфликт"),
// DUPLICATE("d", "Дубль");
} | 1 | Java | 0 | 1 | 0b7bfd41c7701d19872deebd83fce0d60908383e | 292 | motocitizen | MIT License |
app/src/main/java/com/example/missingpets/models/Mascota/ResultadoBuscarMascota.kt | UTN-FRBA-Mobile | 409,980,590 | false | {"Kotlin": 140503, "Java": 13882} | import com.example.missingpets.network.Mascota
data class ResultadoBuscarMascota(
val exitoso: Mascota? = null,
val error: String? = null
)
| 0 | Kotlin | 0 | 0 | e2c3332e28877d23b15ce92bc29adda82e707bee | 149 | MissingPets | MIT License |
compiler/tests-spec/testData/diagnostics/linked/constant-literals/integer-literals/long-integer-literals/p-1/neg/2.4.kt | haerulmuttaqin | 156,727,010 | false | null | // !CHECK_TYPE
// SKIP_TXT
/*
KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
SECTIONS: constant-literals, integer-literals, long-integer-literals
PARAGRAPH: 1
SENTENCE: [2] An integer literal with the long literal mark has type kotlin.Long; an integer literal without it has one of the types kotlin.Int/kotlin.Short/kotli... | 0 | null | 1 | 2 | 8f2117685f9f1b76b7f61ef67c0f58431bbf2f0e | 1,814 | kotlin | Apache License 2.0 |
src/main/kotlin/id/walt/rest/auditor/AuditorRestController.kt | walt-id | 392,607,264 | false | null | package id.walt.rest.auditor
import id.walt.auditor.PolicyRegistry
import id.walt.auditor.VerificationPolicy
import id.walt.auditor.VerificationResult
import io.javalin.http.Context
import io.javalin.plugin.openapi.dsl.document
import org.apache.http.HttpStatus
object AuditorRestController {
fun listPolicies(ctx... | 9 | null | 12 | 24 | 4969d28b86e9db35c3026de3605675577448cdaf | 1,388 | waltid-ssikit | Apache License 2.0 |
src/main/java/net/oxyopia/vice/events/TitleEvent.kt | Oxyopiia | 689,119,282 | false | {"Kotlin": 209777, "Java": 65380, "HTML": 7789} | package net.oxyopia.vice.events
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo
class TitleEvent(val title: String, val callbackInfo: CallbackInfo) : ViceEvent()
| 2 | Kotlin | 1 | 2 | 00395944da31504c429bdac18523606478cb585f | 183 | ViceMod | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Instructables.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... | 15 | null | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 32,189 | compose-icons | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Instructables.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... | 15 | null | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 32,189 | compose-icons | MIT License |
packages/backend/src/test/kotlin/hollybike/api/base/BaseConfig.kt | DELTSV | 777,759,578 | false | {"Kotlin": 302503, "Dart": 212346, "TypeScript": 85671, "HCL": 42406, "C++": 23049, "CMake": 19422, "JavaScript": 6951, "CSS": 2966, "Swift": 1864, "C": 1425, "HTML": 381, "Dockerfile": 230, "Shell": 149, "Objective-C": 38} | package hollybike.api.base
import hollybike.api.services.storage.StorageMode
data class BaseConfig(
val storageMode: StorageMode,
val isOnPremise: Boolean = true,
) | 9 | Kotlin | 0 | 3 | 1dc30d416494074920d344bbb79d97c60d0e7d9c | 168 | hollybike | MIT License |
src/main/kotlin/eZmaxApi/models/EzsigntemplateMinusEditObjectMinusV1MinusRequest.kt | eZmaxinc | 271,950,932 | false | null | /**
* eZmax API Definition (Full)
*
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.16
* Contact: <EMAIL>
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this fil... | 0 | Kotlin | 0 | 0 | fad1a7a8b3f744256968e67e5f60044063cb551c | 846 | eZmax-SDK-kotlin | MIT License |
pudding/src/main/java/com/zcy/pudding/Choco.kt | o0o0oo00 | 176,275,589 | false | null | package com.zcy.pudding
import android.animation.ObjectAnimator
import android.content.Context
import android.graphics.*
import android.graphics.drawable.Drawable
import android.os.Build
import android.os.Handler
import android.text.TextUtils
import android.util.AttributeSet
import android.util.Log
import android.view... | 1 | Kotlin | 34 | 382 | b6ae287ac25db7a027ab90a631ffc6fd5d741987 | 11,340 | Pudding | MIT License |
samples/2-multifile/pack.kts | DrewCarlson | 371,519,366 | false | {"Kotlin": 173035} | module("hello_world") {
version = "0.0.1"
kotlinVersion = "1.9.10"
description = "A sample with code split between two files."
}
| 8 | Kotlin | 0 | 6 | 5e774a99b9ac18d3103901a058fe7d5ee43c5305 | 141 | ktpack | MIT License |
core/algorithm/src/main/kotlin/com/github/xnovo3000/gigapass/core/algorithm/obscurer/StringObscurer.kt | xNovo3000 | 748,154,551 | false | {"Kotlin": 22700} | package com.github.xnovo3000.gigapass.core.algorithm.obscurer
interface StringObscurer {
fun obscure(value: String): String
} | 0 | Kotlin | 0 | 0 | 6dbfa85387104f1d73a80b286ffbace095c27671 | 130 | GigaPass | MIT License |
compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrSymbolsMappingForLazyClasses.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... | /*
* Copyright 2010-2023 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.fir.backend
import org.jetbrains.kotlin.ir.IrLock
import org.jetbrains.kotlin.ir... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 4,147 | kotlin | Apache License 2.0 |
app/src/jvmMain/kotlin/io/lumkit/lint/toolkit/desktop/core/tasks/PythonInstallTask.kt | lumkit | 793,538,216 | false | {"Gradle Kotlin DSL": 6, "Java Properties": 1, "Shell": 1, "Text": 3, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "JSON": 1, "Java": 111, "Kotlin": 57, "TOML": 1, "INI": 2, "XML": 1, "SVG": 1} | package io.lumkit.lint.toolkit.desktop.core.tasks
import androidx.compose.runtime.MutableState
import io.github.lumkit.desktop.context.Context
import io.ktor.client.call.*
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.utils.io.*
import io.ktor.utils.io.core.*
import io.lumkit.lint.toolkit.deskto... | 0 | Java | 0 | 2 | eb35349aa4610f5b8e875609776667ab897ae0cb | 2,897 | Lint-Toolkit | Apache License 2.0 |
android/app/src/main/java/github/tornaco/android/thanos/process/v2/RunningAppDetailViewModel.kt | tuchit | 484,085,754 | true | {"Markdown": 5, "Text": 2, "Ignore List": 52, "Git Config": 1, "Java Properties": 3, "Gradle Kotlin DSL": 45, "Shell": 16, "Batchfile": 1, "Proguard": 15, "XML": 612, "Java": 1413, "Kotlin": 124, "INI": 9, "JSON": 43, "XSLT": 1, "Gradle": 6, "AIDL": 49, "Groovy": 15, "Checksums": 20, "Git Attributes": 2, "CMake": 1, "C... | package github.tornaco.android.thanos.process.v2
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import androidx.lifecycle.ViewModel
import com.elvishew.xlog.XLog
import dagger.hilt.android.lifecycle.HiltViewModel
import dagger.hilt.android.qualifiers.ApplicationCont... | 0 | null | 0 | 0 | 2ed605d770003966abe36dcbc26708c29726de52 | 2,425 | Thanox | Apache License 2.0 |
j2k/testData/fileOrElement/field/conversion.kt | JakeWharton | 99,388,807 | false | null | internal class A {
private var i: Int? = byte.toInt()
fun foo() {
i = 10
}
companion object {
val byte: Byte
get() = 0
}
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 173 | kotlin | Apache License 2.0 |
src/main/java/dev/blachut/svelte/lang/editor/SveltePrimaryBranchSelectioner.kt | tomblachut | 184,821,501 | false | null | package dev.blachut.svelte.lang.editor
import com.intellij.codeInsight.editorActions.ExtendWordSelectionHandlerBase
import com.intellij.psi.PsiElement
import dev.blachut.svelte.lang.psi.blocks.SveltePrimaryBranch
class SveltePrimaryBranchSelectioner : ExtendWordSelectionHandlerBase() {
override fun canSelect(e: Psi... | 59 | null | 38 | 482 | 793f21924edd2436b2c980ad1958785e000a65ac | 532 | svelte-intellij | MIT License |
compiler/testData/codegen/box/funInterface/primitiveConversions.kt | JetBrains | 3,432,266 | false | null | // !LANGUAGE: +NewInference +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
// SKIP_DCE_DRIVEN
// This test should check argument coercion between the SAM and the lambda.
// For now it checks that Char is boxed in JS
fun interface CharToAny {
fun invoke(c: Char): Any
}
... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,150 | kotlin | Apache License 2.0 |
intellij2checkstyle-core/src/main/kotlin/de/theodm/intellij2checkstyle/inspect/gatherArguments/gatherProjectProfile/parseSettingsFile/format/SettingsXML.kt | theodm | 143,562,099 | false | null | package de.theodm.intellij2checkstyle.inspect.gatherArguments.gatherProjectProfile.parseSettingsFile.format
import javax.xml.bind.annotation.XmlElement
internal data class SettingsXML(
@field:XmlElement(name = "option")
val options: List<OptionXML>,
@field:XmlElement(name = "version")
val version: Ve... | 1 | null | 1 | 1 | 2607e1f9e4f64e7b4e8140c56918ad5d856a62eb | 493 | intellij2checkstyle | Apache License 2.0 |
idea/idea-completion/testData/smart/NoAssertFailsWith.kt | JakeWharton | 99,388,807 | false | null | import kotlin.test.*
interface I<T>
fun <T> foo(i: I<T>){}
fun bar() {
foo(ass<caret>)
}
// ABSENT: assertFailsWith
| 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 124 | kotlin | Apache License 2.0 |
LeetCode/src/_1290_getDecimalValue.kt | paopao-chen | 207,783,558 | false | {"Java": 170412, "Kotlin": 3957} | /**
* @author <NAME>
* @create 2020--04--29 22:20
* 二进制链表转整数
*/
// 每次加一个节点的值就向左位移一位 kotlin中toInt(2)函数可以直接从string转化为二进制的整数
class _1290_getDecimalValue {
fun main(args: Array<String>): Unit {}
fun getDecimalValue(head: ListNode?): Int {
var head: ListNode? = head?: return 0
// var res: Int =... | 1 | Java | 1 | 1 | 777a5fa6a271171e797c54d0f404c1551ef53b28 | 612 | Arithmetic | Apache License 2.0 |
mobile_app1/module72/src/main/java/module72packageKt0/Foo97.kt | uber-common | 294,831,672 | false | null | package module692packageKt0;
annotation class Foo97Fancy
@Foo97Fancy
class Foo97 {
fun foo0(){
module692packageKt0.Foo96().foo4()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
} | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 263 | android-build-eval | Apache License 2.0 |
src/test/java/org/javasync/io/test/AsyncFileReaderCoroutinesTest.kt | javasync | 136,351,714 | false | null | package org.javasync.io.test
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.runBlocking
import org.javasync.io.test.AsyncFileReaderTest.NEWLINE
import org.javaync.io.*
import org.testng.Assert
import org.testng.Assert.assertEquals
import org.testng.Assert.assertFalse
import org.testng.annotations.Test
impo... | 3 | null | 4 | 25 | f3d231609a86ec285fbfd15570e673f89ee5e490 | 5,314 | RxIo | MIT License |
src/main/kotlin/org/kstore/demo/stars/gameplay/view/active/colony/ColonyBuildReaction.kt | minorbyte | 194,674,817 | false | {"Gradle": 1, "Gradle Kotlin DSL": 4, "INI": 1, "Shell": 3, "Text": 7, "Ignore List": 1, "Markdown": 1, "Java": 4, "Kotlin": 288, "JSON": 1, "XML": 1} | package org.kstore.demo.stars.gameplay.view.active.colony
import org.kstore.demo.stars.gameplay.model.player.colony.BuildColonyAction
import org.kstore.demo.stars.gameplay.model.turn.map.PlanetTile
import org.kstore.demo.stars.gameplay.view.active.ship.ActiveShipStore
import org.kstore.demo.stars.gameplay.view.active.... | 0 | Kotlin | 0 | 0 | b91a6a00d4e60a84dc8bceba5dd02c3aa352ca88 | 1,092 | kotlin-reactive-store | MIT License |
DataBindingDemo2/app/src/main/java/com/example/administrator/databindingdemo2/ui/adapter/RecyclerViewAdapter.kt | r17171709 | 23,950,456 | false | {"Java": 796606, "Kotlin": 611868, "Dart": 421620, "Groovy": 32447, "C++": 31140, "CMake": 9722, "Python": 8028, "HTML": 4392, "Ruby": 1354, "Objective-C": 791, "C": 734, "Swift": 404} | package com.example.administrator.databindingdemo2.ui.adapter
import android.databinding.DataBindingUtil
import android.databinding.ViewDataBinding
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import com.example.administrator.databindingdemo2.BR
import ... | 8 | Java | 333 | 612 | ee75780c1187355d81bab329e62ecaad985d6832 | 1,498 | StudyDemo | Apache License 2.0 |
mbcarkit/src/main/java/com/daimler/mbcarkit/socket/observable/StatisticsObservableMessage.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbcarkit.socket.observable
import com.daimler.mbcarkit.business.model.vehicle.ResetStart
import com.daimler.mbcarkit.business.model.vehicle.Statistics
import com.daimler.mbcarkit.business.model.vehicle.TankStatistics
import com.daimler.mbcarkit.business.model.vehicle.VehicleStatus
import com.daimle... | 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 2,281 | MBSDK-Mobile-Android | MIT License |
app/src/androidTest/java/com/blockeq/stellarwallet/activities/WalletManagerActivityTest.kt | Block-Equity | 128,590,362 | false | null | package com.blockeq.stellarwallet.activities
import android.app.Activity
import android.app.Instrumentation
import android.content.Context
import android.support.test.InstrumentationRegistry
import android.support.test.espresso.contrib.ActivityResultMatchers
import android.support.test.rule.ActivityTestRule
import org... | 14 | Kotlin | 24 | 32 | 7996e9c75f4af6dc49241e918494155d0b82493e | 3,021 | stellar-android-wallet | MIT License |
Gradle/Code/Gradle-AndroidTransformAPI-3.6.x/app/src/main/java/me/ztiany/transform36x/MainActivity.kt | woty123 | 270,302,083 | true | {"Java": 9689192, "C++": 9347122, "C": 7890942, "Kotlin": 847808, "HTML": 724261, "JavaScript": 417089, "Groovy": 356795, "Dart": 205357, "CMake": 96204, "Makefile": 94671, "Python": 93418, "QMake": 40384, "CSS": 23102, "Objective-C": 13174, "Lua": 11970, "TSQL": 9217, "Shell": 4079, "NASL": 606, "AspectJ": 477, "Swift... | package me.ztiany.transform36x
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import io.reactivex.Flowable
import io.reactivex.Observable
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
se... | 0 | null | 0 | 0 | 17abefbdb3f8f116f03b2ef62d08f1c2d6686a7a | 434 | programming-data | Apache License 2.0 |
domain/src/test/java/com/worldsnas/domain/repo/genre/MovieGenreRepoImplTest.kt | worldsnas | 178,716,293 | false | {"Kotlin": 397002, "Java": 240871} | package com.worldsnas.domain.repo.genre
import arrow.core.Either
import arrow.core.Eval
import com.squareup.moshi.Moshi
import com.worldsnas.core.ErrorHolder
import com.worldsnas.domain.mappers.server.GenreServerRepoMapper
import com.worldsnas.domain.model.repomodel.GenreRepoModel
import com.worldsnas.domain.model.ser... | 1 | Kotlin | 8 | 57 | c7d084d2cf2c4f9486337fe347d5d6b8b5806e0a | 4,873 | AIO | Apache License 2.0 |
nab-shared/src/main/java/au/com/nab/android/shared/common/extensions/ViewExtensions.kt | nphausg | 312,741,827 | false | {"Kotlin": 163738, "Java": 1660, "Shell": 50} | package au.com.nab.android.shared.common.extensions
import android.graphics.drawable.Drawable
import android.view.View
import android.widget.TextView
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.appcompat.widget.AppCompatImageView
import androidx.databinding.BindingAdapte... | 0 | Kotlin | 0 | 0 | af5cd949793467dbd4893bc5690cf5f1ce6eeed8 | 2,601 | android.interview.nab | Apache License 2.0 |
dragger2/src/main/java/app/com/dragger2/Api.kt | velmurugan-murugesan | 159,637,287 | false | null | package app.com.dragger2
import retrofit2.Call
import retrofit2.http.GET
interface Api {
@GET("5c0535dd3300005f00e81176")
fun getAll() : Call<List<User>>
} | 1 | null | 1 | 6 | 8c2e8b2a0e8f33b5e8c0ea66890756e02577fa54 | 167 | AndriodSamples | Apache License 2.0 |
app/src/main/java/com/kyberswap/android/presentation/common/PendingTransactionNotification.kt | KYRDTeam | 181,612,742 | false | null | package com.kyberswap.android.presentation.common
interface PendingTransactionNotification {
fun showPendingTxNotification(showNotification: Boolean)
fun showUnReadNotification(showNotification: Boolean)
} | 1 | Kotlin | 10 | 26 | abd4ab033d188918849e5224cc8204409776391b | 216 | android-app | MIT License |
app/src/main/java/com/example/blade/activity/web/JsAlert.kt | stytooldex | 256,652,835 | false | {"Java": 257193, "Kotlin": 66677, "Shell": 390} | package com.example.blade.activity.web
import com.afollestad.materialdialogs.LayoutMode
import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.bottomsheets.BottomSheet
import com.afollestad.materialdialogs.callbacks.onDismiss
import com.afollestad.materialdialogs.input.input
import ... | 1 | Java | 1 | 2 | 704d446ac272778d4123b06c02125fceacae50b7 | 1,807 | NewProject0 | MIT License |
demo/Movieous/app/src/main/java/com/movieous/media/glide/ImageLoaderUtils.kt | movieous-team | 174,439,175 | false | null | package com.movieous.media.glide
object ImageLoaderUtils {
init {
}
} | 1 | null | 8 | 20 | 7c24e5da1c2966e67cabab98e5824cc2b68e0c45 | 78 | MovieousShortVideo-Android-Release | MIT License |
app/src/main/kotlin/com/github/chuross/recyclerview/sample/TextItemAdapter.kt | chuross | 60,769,027 | false | null | package com.github.chuross.recyclerview.sample
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.ColorInt
import com.github.chuross.recyclerview.sample.databinding.ViewTextBinding
import com.github.chuross.recyclerviewadapters.ItemAdapter
import ... | 1 | Java | 10 | 24 | 21548183b41203e6ab735bdc75f509f2c6bccc77 | 1,115 | recyclerview-adapters | Apache License 2.0 |
systemUIAnim/src/com/android/systemui/surfaceeffects/ripple/RippleAnimationConfig.kt | LawnchairLauncher | 83,799,439 | false | {"Java": 9665767, "Kotlin": 2674103, "AIDL": 30229, "Python": 17364, "Makefile": 3820, "Shell": 770} | package com.android.systemui.surfaceeffects.ripple
import android.graphics.Color
/**
* A struct that holds the ripple animation configurations.
*
* <p>This configuration is designed to play a SINGLE animation. Do not reuse or modify the
* configuration parameters to play different animations, unless the value has... | 388 | Java | 1200 | 9,200 | d91399d2e4c6acbeef9c0704043f269115bb688b | 1,259 | lawnchair | Apache License 2.0 |
livingdoc-testdata/src/main/kotlin/org/livingdoc/repositories/model/decisiontable/Row.kt | LivingDoc | 85,412,044 | false | null | package org.livingdoc.repositories.model.decisiontable
/**
* A Row consists of [Fields][Field] for all [Headers][Header] of a [DecisionTable]
*/
data class Row(val headerToField: Map<Header, Field>)
| 34 | null | 16 | 14 | f3d52b8bacbdf81905e4b4a753d75f584329b297 | 202 | livingdoc | Apache License 2.0 |
app/src/main/java/com/uwetrottmann/wpdisplay/settings/ConnectionSettings.kt | UweTrottmann | 23,755,491 | false | {"Kotlin": 120829} | /*
* Copyright 2015 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 6 | Kotlin | 4 | 5 | d7236fe2e8d335821d0ac95430fc93641efd2220 | 1,973 | wp-display-android | Apache License 2.0 |
falkon-engine-jdbc/src/main/kotlin/com/jayrave/falkon/engine/jdbc/ConnectionWrapperForTransaction.kt | jayrave | 65,279,209 | false | null | package com.jayrave.falkon.engine.jdbc
import java.sql.Connection
import java.sql.Savepoint
import java.util.concurrent.Executor
/**
* Prevents accidentally closing, committing, setting save points or rolling back the connection
* by throwing an [UnsupportedOperationException]
*/
internal class ConnectionWrapperFo... | 6 | Kotlin | 2 | 12 | ce42d553c578cd8e509bbfd7effc5d56bf3cdedd | 1,637 | falkon | Apache License 2.0 |
sample/src/main/java/com/thoughtworks/ark/sample/coroutines/data/repository/source/CoroutinesDataSource.kt | TW-Smart-CoE | 548,729,881 | false | null | package com.thoughtworks.ark.sample.coroutines.data.repository.source
interface CoroutinesDataSource {
suspend fun getData(): String
}
class LocalCoroutinesDataSource : CoroutinesDataSource {
override suspend fun getData(): String {
return "Local Data"
}
}
class RemoteCoroutinesDataSource : Corou... | 16 | Kotlin | 2 | 16 | 35d0c4fe5e9ffc1c0cbd6318e46a2ad6f34f4e63 | 419 | ARK-Android | Apache License 2.0 |
app/src/main/java/com/jarvis/weatherj/presentation/common/MoonPhaseEnum.kt | johanforce | 569,695,306 | false | {"Kotlin": 212462, "Java": 10587} | @file:Suppress("unused")
package com.jarvis.weatherj.presentation.common
enum class MoonPhaseEnum(val index: Int) {
METRIC(0),
IMPERIAL(1),
}
| 0 | Kotlin | 0 | 1 | e4aea6a097f3085305574c79985385919b343c90 | 152 | aether | MIT License |
main/java/com/circle/w3s/sample/wallet/WalletCreationActivity.kt | SinghShubhamkumarkrishnadev | 794,883,180 | false | {"Kotlin": 112234, "Java": 55159, "Assembly": 7} | package com.circle.w3s.sample.wallet
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.circle.w3s.sample.wallet.databinding.WalletcreationpageBinding
import java.io.IOException
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.OkHttpClient
imp... | 0 | Kotlin | 0 | 0 | 3ca71644dd3af98c6be0fe1ba3bd1a27d1e0eee9 | 19,889 | Circle_wallet_bounty | Apache License 2.0 |
src/main/kotlin/com/testcompose/support/DockerCompose.kt | exys666 | 143,192,975 | false | null | package com.testcompose.support
class DockerCompose(
val configPath: String,
val compositionId: String,
val pullArgs: Array<String>,
val upArgs: Array<String>,
val composeArgs: Array<String>
) {
fun pull() {
val args = composeArgs + arrayOf("-f", configPath, "-p", c... | 0 | null | 1 | 4 | e6da3103a1795025010fbe63d2b146d087970ef8 | 1,936 | testcompose | MIT License |
app/src/test/java/net/kibotu/androiddatabases/base/SerializableTest.kt | kibotu | 189,729,497 | false | null | package net.kibotu.androiddatabases.base
import org.junit.Test
/**
* Created by [<NAME>](https://about.me/janrabe).
*/
interface SerializableTest {
@Test
fun serialize()
@Test
fun deserialize()
} | 0 | Kotlin | 0 | 0 | 68bd7a4e38412bf99d420c1b24987f05a7bbc64f | 218 | AndroidDatabases | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt | leobia | 311,091,197 | true | {"Kotlin": 661169, "Shell": 373} | package dev.inmo.tgbotapi.types.chat
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.chat.abstracts.UnknownChatType
import dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat
import dev.inmo.tgbotapi.types.chat.extended.*
import dev.inmo.tgbot... | 0 | Kotlin | 0 | 0 | 83edda2dfe370fbc35f2e73283cd71e79f101e3c | 3,925 | TelegramBotAPI | Apache License 2.0 |
app/src/androidTest/java/tech/soit/quiet/ui/fragment/local/LocalSingleSongFragmentTest.kt | boyan01 | 114,945,726 | false | null | package tech.soit.quiet.ui.fragment.local
import androidx.lifecycle.MutableLiveData
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test... | 0 | Kotlin | 3 | 27 | 0ba7211c39bf6d144dcda8f79a0d10f4e57b2208 | 2,246 | MusicPlayer | Apache License 2.0 |
RSS/app/src/main/java/br/ufpe/cin/if710/rss/PreferencesActivity.kt | jprmoisakis | 150,996,240 | true | {"Kotlin": 19652, "Java": 2232} | package br.ufpe.cin.if710.rss
import android.app.Activity
import android.os.Bundle
import android.preference.PreferenceFragment
class PreferencesActivity: Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.frag_prefs)
}... | 0 | Kotlin | 0 | 0 | 52b46662aa2c00cc719c9d62dff0968e3c0eb258 | 565 | exercicio-rss-2 | MIT License |
src/main/kotlin/io/bouckaert/referendumreader/model/Contest.kt | ramonbouckaert | 693,685,169 | false | {"Kotlin": 27783} | package io.bouckaert.referendumreader.model
data class Contest(
val enrolment: Long,
val proposalResults: ProposalResults,
val pollingDistricts: List<PollingDistrict>
)
| 0 | Kotlin | 0 | 0 | 852ba033bbe630f57c46d840a3caf6a1dfceed9e | 182 | ReferendumReader | MIT License |
plugins/kotlin/base/facet/src/org/jetbrains/kotlin/idea/workspaceModel/Utils.kt | JetBrains | 2,489,216 | false | 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.kotlin.idea.workspaceModel
import com.google.gson.Gson
import org.jetbrains.kotlin.cli.common.arguments.*
import org.jetbrains.kotlin.config.*
import org.jetbrains.kotlin.platf... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 4,887 | intellij-community | Apache License 2.0 |
navigation/src/main/java/com/codedeco/modularization/navigation/NavigatorFactoryModule.kt | RaysonYeungHK | 369,380,801 | false | null | package com.codedeco.modularization.navigation
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
interface NavigatorFactoryModule {
@Binds
fun bindNavigatorFactory(navigatorFactory: DaggerNavigat... | 0 | Kotlin | 1 | 6 | 337fafc8cf3a2397b6440b23e3099f0528a4a875 | 350 | Navigation-of-Modularization-with-Dependency-Injection | Apache License 2.0 |
camera/integration-tests/diagnosetestapp/src/test/java/androidx/camera/integration/diagnose/FakeTextAndImageSavingTask.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | Kotlin | 784 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,422 | androidx | Apache License 2.0 |
app/src/main/java/tw/roy/deng/codility/di/module/DatabaseModule.kt | RoyDeng | 402,105,260 | false | null | package tw.roy.deng.codility.di.module
import android.app.Application
import androidx.room.Room
import dagger.Module
import dagger.Provides
import tw.roy.deng.codility.data.source.local.GitHubDatabase
import tw.roy.deng.codility.data.source.local.dao.UserDao
import javax.inject.Singleton
@Suppress("unused")
@Module
o... | 0 | Kotlin | 0 | 0 | 67bf044a810faefe951d72a074cc8bb4dc7c9246 | 738 | GitHub | MIT License |
core/src/main/kotlin/org/eln2/compute/uarchComputer/ALU.kt | resnidar | 279,057,922 | true | {"Kotlin": 259301, "Python": 22861, "Java": 2820, "C#": 1791, "Rust": 1232, "Shell": 1055, "Makefile": 122} | package org.eln2.compute.uarchComputer
/**
* Arithmetic Logic Unit - Does basic integer math
*/
@ExperimentalStdlibApi
@ExperimentalUnsignedTypes
class ALU {
var inputA = 0u
var inputB = 0u
/**
* ALU Operations List
*/
enum class ALUOps { Adc, Add, And, MinusOne, Nand, Nor, Not, One, Or, S... | 0 | null | 1 | 0 | 3432d77be015c5e1320faed08d8be31d35e13051 | 3,738 | eln2 | MIT License |
androidApp/src/main/java/com/github/arief/annuur/guyub/android/utils/Request.kt | ariefannur | 693,543,244 | false | {"Kotlin": 92747, "Swift": 561} | package com.github.arief.annuur.guyub.android.utils
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import io.ktor.client.HttpClient
import io.ktor.client.engine.cio.CIO
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.client.request.get
import io.ktor.client.stat... | 0 | Kotlin | 0 | 0 | 2b8a9e1735b601aa24d8818cddc844906009db58 | 2,351 | guyub | MIT License |
src/main/kotlin/courses/udacity/lambdas.kt | gaurav-singh | 173,131,066 | false | {"Kotlin": 95018, "Java": 773} | package courses.udacity
import java.lang.Math.random
import java.util.*
fun main(args: Array<String>) {
// What is the difference between the below statements
val random1 = random()
val random2 = { random() }
/**
* random1 has a value assigned at compile time, and the value never changes when the... | 0 | Kotlin | 0 | 1 | c800a4e71254b6b3b749c8b4dbb41f5742baa3d0 | 1,837 | grasp-kotlin | Apache License 2.0 |
review-storage/src/main/kotlin/dev/bread/storage/entity/ReviewLike.kt | youngsuk-kim | 680,272,247 | false | null | package dev.bread.storage.entity
import jakarta.persistence.Entity
import jakarta.persistence.Table
@Entity
@Table(name = "REVIEW_LIKE")
class ReviewLike() : BaseEntitiy()
| 0 | Kotlin | 0 | 0 | 22425b4468be6983dd0fda3615a12689651845b2 | 174 | ReviewServer | Apache License 2.0 |
domain/src/main/kotlin/com/lukinhasssss/admin/catalogo/domain/event/DomainEventPublisher.kt | Lukinhasssss | 551,493,782 | false | {"Kotlin": 845906, "Dockerfile": 2158} | package com.lukinhasssss.admin.catalogo.domain.event
@FunctionalInterface
interface DomainEventPublisher {
fun publishEvent(event: DomainEvent)
}
| 0 | Kotlin | 0 | 5 | 0567a1085eaf68fb7ac51ac5c597596017c3d10e | 151 | admin-catalogo-de-videos-kotlin | MIT License |
MM-KuNyi/app/src/main/java/com/zawzaw/padc/mmkunyi/adapters/BaseAdapter.kt | zawzaww | 134,211,838 | false | {"Java": 95899, "Kotlin": 36385} | package com.zawzaw.padc.mmkunyi.adapters
import android.support.v7.widget.RecyclerView
import com.zawzaw.padc.mmkunyi.viewholders.BaseViewHolder
/**
* Created by zawzaw on 03/08/2018.
*/
abstract class BaseAdapter<T, VH : BaseViewHolder<T>> : RecyclerView.Adapter<VH> {
protected var jobsDataList: MutableList<... | 1 | null | 1 | 1 | ad987d6c9cd561fcc634bed69eba78081cf4ed02 | 440 | padc-fun-assignments | MIT License |
native/swift/sir-providers/src/org/jetbrains/kotlin/sir/providers/impl/SirDeclarationNamerImpl.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... | /*
* Copyright 2010-2024 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.sir.providers.impl
import org.jetbrains.kotlin.analysis.api.symbols.*
import org... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,066 | kotlin | Apache License 2.0 |
core/database/src/main/java/com/eshc/goonersapp/core/database/di/DaoModule.kt | eshc123 | 640,451,475 | false | {"Kotlin": 459952} | package com.eshc.goonersapp.core.database.di
import com.eshc.goonersapp.core.database.database.GnrDatabase
import com.eshc.goonersapp.core.database.database.dao.PlayerDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(Single... | 2 | Kotlin | 1 | 1 | b7aac2bafb71f31b24f2af4c5d0db60db59c458d | 483 | GoonersApp | Apache License 2.0 |
mayo/src/main/java/it/gopher/mayo/kotlin/EndPoint.kt | GopherLabsLtd | 104,521,261 | false | null | package it.gopher.mayo.kotlin
import it.gopher.mayo.kotlin.enums.Method
import okhttp3.Call
import okhttp3.Response
import okhttp3.ResponseBody
import java.io.IOException
/**
* A sealed class used for stubbing responses.
* @author <NAME>
*/
public sealed class EndpointSampleResponse {
class networkResponse(val... | 0 | Kotlin | 1 | 3 | db3ba06efc1d8664782832d06289598712f957ec | 1,570 | Mayo | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/CfnAutoScalingRollingUpdateDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Boolean
import kotlin.Number
import kotlin.String
imp... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 6,571 | awscdk-dsl-kotlin | Apache License 2.0 |
Base/src/main/java/xy/xy/base/picture/widget/SelectLocalMediaView.kt | xiuone | 291,512,847 | false | {"Kotlin": 696966, "Java": 245782} | package xy.xy.base.picture.widget
import android.animation.Animator
import android.animation.AnimatorSet
import android.content.Context
import android.graphics.RectF
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import android.widget.*
import com.luck.picture.lib.entity.Loca... | 0 | Kotlin | 1 | 2 | f0778a53355f36d09bf01104d58458232872f223 | 8,545 | ajinlib | Apache License 2.0 |
xml/src/main/java/com/ingenico/connect/android/example/kotlin/xml/card/PaymentCardField.kt | Ingenico-ePayments | 456,505,897 | false | {"Kotlin": 220276} | /*
* Copyright (c) 2022. Worldline Global Collect B.V
*/
package com.worldline.connect.android.example.kotlin.xml.card
import android.content.Context
import android.text.InputFilter
import android.text.InputType
import android.util.AttributeSet
import android.view.View
import android.widget.ImageView
import android... | 0 | Kotlin | 1 | 1 | f509da97c64813cff34f9b5b5acb79c8519d97fb | 9,538 | connect-sdk-client-android-example-kotlin | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/NativeBinaryTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2024 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.
*/
@file:Suppress("FunctionName")
package org.jetbrains.kotlin.gradle.unitTests
import org.jetbrains.kotlin.gra... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,359 | kotlin | Apache License 2.0 |
app/src/main/java/com/bitrise/app/ui/extensions/ContextExtensions.kt | andrespaez90 | 295,899,832 | false | null | package com.bitrise.app.ui.extensions
import android.content.Context
import androidx.annotation.DrawableRes
import androidx.appcompat.content.res.AppCompatResources
fun Context.getDrawableCompat(@DrawableRes drawableRes: Int) =
drawableRes.takeIf { it != 0 }?.let { AppCompatResources.getDrawable(this, it) }
| 1 | Kotlin | 1 | 0 | e5e6c71041fa3c153aba6c239c76ed55b24124da | 315 | BitriseApp | MIT License |
app/src/main/java/org/ballistic/dreamjournalai/onboarding/presentation/viewmodel/SplashViewModel.kt | ErickSorto | 546,852,272 | false | {"Kotlin": 779801, "TypeScript": 15023, "JavaScript": 905} | package org.ballistic.dreamjournalai.onboarding.presentation.viewmodel
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.coll... | 0 | Kotlin | 0 | 4 | 29203b43eb11d57ba0d0f1ecff26896f2d5d46fd | 1,608 | Dream-Journal-AI | MIT License |
core/src/main/java/com/loitp/views/loading/window/WP7ProgressBar.kt | tplloi | 126,578,283 | false | null | package com.loitp.views.loading.window
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.content.Context
import android.os.Handler
import android.os.Looper
import android.util.AttributeSet
import android.view.Gravity
import android.view.animation.LinearInterpolator
import an... | 1 | Kotlin | 1 | 9 | 1bf1d6c0099ae80c5f223065a2bf606a7542c2b9 | 5,692 | base | Apache License 2.0 |
android/anc/src/main/java/org/smartregister/fhircore/anc/ui/details/vitalsigns/VitalSignsDetailsFragment.kt | issyzac | 420,960,297 | true | {"Kotlin": 1058894} | /*
* Copyright 2021 Ona Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | null | 0 | 0 | c4eb29dc58e6232dcee2431a77e082af7ed60421 | 4,411 | fhircore | Apache License 2.0 |
compose/compose-runtime/src/test/java/androidx/compose/mock/ComposeReport.kt | FYI-Google | 258,765,297 | true | {"INI": 5, "Shell": 20, "Text": 3008, "Gradle": 278, "Markdown": 27, "Ignore List": 26, "XML": 3871, "Java": 4062, "HTML": 17, "Kotlin": 1738, "Python": 13, "JSON": 32, "Proguard": 23, "Gradle Kotlin DSL": 4, "Java Properties": 12, "Protocol Buffer": 1, "AIDL": 28, "ANTLR": 1, "SVG": 1, "YAML": 2, "JSON with Comments":... | package androidx.compose.mock
fun MockViewComposition.reportsTo(report: Report) {
text(report.from)
text("reports to")
text(report.to)
}
fun MockViewValidator.reportsTo(report: Report) {
text(report.from)
text("reports to")
text(report.to)
}
fun MockViewComposition.reportsReport(reports: Itera... | 8 | null | 0 | 6 | b9cd83371e928380610719dfbf97c87c58e80916 | 605 | platform_frameworks_support | Apache License 2.0 |
app/src/main/java/cucerdariancatalin/sdui/data/api/DynamicListRenderProcessorApi.kt | darian-catalin-cucer | 595,828,687 | false | null | package cucerdariancatalin.sdui.data.api
interface DynamicListRenderProcessorApi {
suspend fun <T> processResource(render: String, resource: T? = null): Any?
} | 0 | Kotlin | 0 | 1 | 9073cad80f41e3a3708b305de24be6ffaa78ceae | 165 | SDUI | Apache License 2.0 |
domain/src/main/java/com/telen/easylineup/domain/usecases/GetTournamentStatsForPositionTable.kt | kaygenzo | 177,859,247 | false | {"Gemfile.lock": 1, "Gradle": 9, "JSON": 2, "YAML": 4, "XML": 208, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Ruby": 2, "INI": 2, "Proguard": 3, "Kotlin": 298, "Java": 1} | /*
Copyright (c) <NAME>. 2010-2024
*/
package com.telen.easylineup.domain.usecases
import android.content.Context
import com.telen.easylineup.domain.R
import com.telen.easylineup.domain.UseCase
import com.telen.easylineup.domain.model.FieldPosition
import com.telen.easylineup.domain.model.PlayerInLineup
import co... | 1 | null | 1 | 1 | 152fa21de470e81d368b26a4f18de5d5198ef8fc | 4,946 | EasyLineUp | Apache License 2.0 |
appointments/src/main/java/at/sunilson/appointments/data/models/network/AppointmentResponse.kt | sunilson | 271,761,302 | false | null | package at.sunilson.appointments.data.models.network
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
internal data class AppointmentResponse(
val previousMaintenances: List<MaintenanceYear>,
val upcomingMaintenances: List<MaintenanceYear>
)
| 0 | Kotlin | 0 | 5 | b1306f084aecfecd8146b4759457a93af50eaedf | 274 | Zoe | Apache License 2.0 |
src/commonMain/kotlin/blue/starry/jsonkt/delegation/ModelListProperty.kt | StarryBlueSky | 122,053,336 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2017-2020 StarryBlueSky
*
* 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
... | 4 | Kotlin | 0 | 7 | feedf7bd90e11bd9ce29c909b448f04fe3c19207 | 3,995 | Json.kt | MIT License |
testing/testData/kotlinConfiguration/configurationKotlin_1-2-71_IJ2018-3/main.kt | mglukhikh | 99,343,075 | false | null | // plugins.kotlin.version = 1.2.71
// idea.version = ideaIC:2018.3
val a = 10
// :4:8: File is not properly formatted
| 19 | null | 27 | 256 | 28a9604ed99e7784cee8441ebca56fa92d50333a | 138 | inspection-plugin | Apache License 2.0 |
app/src/main/java/de/softdeveloper/shoppinglist/ShoppingMemoContentProvider.kt | SoftdeveloperNeumann | 627,370,073 | false | null | package de.softdeveloper.shoppinglist
import android.content.ContentProvider
import android.content.ContentUris
import android.content.ContentValues
import android.content.UriMatcher
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.net.Uri
import java.net.URL
class ShoppingM... | 0 | Kotlin | 0 | 0 | a1b5ddaed50f290bf34f0cc3fcda591cd6427a24 | 3,164 | ShoppingList230413 | MIT License |
Chapter12/ch12_20.kt | PacktPublishing | 175,554,779 | false | null | import io.reactivex.rxjava3.core.Observable
import io.reactivex.rxjava3.subjects.PublishSubject
import java.util.concurrent.TimeUnit
fun main(args: Array<String>) {
val statusObserver = PublishSubject.create<Long>()
statusObserver.subscribe { println("Status Observer: $it") }
Observable.interval(1, TimeU... | 3 | null | 29 | 29 | b8901378cb5f57d539762f80069548cecbfd7dcf | 622 | Learning-RxJava-Second-Edition | MIT License |
app/src/main/java/io/github/rhymezxcode/simplestore/AppModule.kt | RhymezxCode | 574,078,040 | false | null | package io.github.rhymezxcode.simplestore
import android.content.Context
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.Dispatchers
import javax.inject.Singleton... | 0 | Kotlin | 2 | 9 | d87e600964d32c5782b9f5f195747a4e6dabce1b | 640 | SimpleStore | MIT License |
app/src/main/java/com/schaefer/mymovies/presentation/screens/search/SearchViewModel.kt | arturschaefer | 318,792,328 | false | {"Kotlin": 160961} | package com.schaefer.mymovies.presentation.screens.search
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.schaefer.mymovies.core.viewmodel.ViewModel
import com.schaefer.mymovies.domain.usecase.GetSearchShowsUseCase
import com.schaef... | 0 | Kotlin | 0 | 0 | a2580e6020ef40b2efbbafd95c3e5db7ab3b1bb3 | 1,804 | My-Shows | MIT License |
data/src/main/java/nam/tran/data/model/Article.kt | NamTranDev | 163,314,406 | false | null | package nam.tran.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import nam.tran.data.database.ConvertData
import java.util.*
@Entity(tableName = "Article")
data class Article(
@PrimaryKey
val title: String = "",
val description: String? = null,
... | 0 | Kotlin | 0 | 0 | a1e2ff41ff708cbc867253bf27a1d2ac5dafa029 | 447 | GoBear | Apache License 2.0 |
data/src/main/java/nam/tran/data/model/Article.kt | NamTranDev | 163,314,406 | false | null | package nam.tran.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import nam.tran.data.database.ConvertData
import java.util.*
@Entity(tableName = "Article")
data class Article(
@PrimaryKey
val title: String = "",
val description: String? = null,
... | 0 | Kotlin | 0 | 0 | a1e2ff41ff708cbc867253bf27a1d2ac5dafa029 | 447 | GoBear | Apache License 2.0 |
exdialog-basic/src/main/java/com/tuuzed/androidx/exdialog/input/_lamdas.kt | tuuzedarchive | 185,970,341 | false | null | package com.tuuzed.androidx.exdialog.input
import com.tuuzed.androidx.exdialog.ExDialog
typealias TextValidator = (dialog: ExDialog, text: CharSequence, errorText: Array<in CharSequence>) -> Boolean
typealias TextWatcher = (dialog: ExDialog, text: CharSequence) -> Unit
typealias InputCallback = (dialog: ExDialog, ... | 0 | Kotlin | 0 | 0 | cc721a5dee780b582574bac8987642d18d5c3eee | 349 | ExDialog | Apache License 2.0 |
app/src/main/java/com/example/cleancodesample/presentation/MainActivity.kt | IbrahimDisouki | 176,800,336 | false | null | package com.example.cleancodesample.presentation
import android.os.Bundle
import android.view.View
import androidx.navigation.NavController
import androidx.navigation.NavDestination
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupWithNav... | 0 | Kotlin | 0 | 0 | 23c89bc7af3421631c345de08ad6e7cc89fe07dc | 1,710 | CleanCodeSample | Apache License 2.0 |
src/main/kotlin/com/msg/gcms/domain/applicant/domain/repository/ApplicantRepository.kt | GSM-MSG | 592,816,374 | false | null | package com.msg.gcms.domain.applicant.domain.repository
import com.msg.gcms.domain.applicant.domain.entity.Applicant
import com.msg.gcms.domain.club.domain.entity.Club
import com.msg.gcms.domain.user.domain.entity.User
import org.springframework.data.repository.CrudRepository
interface ApplicantRepository : CrudRepos... | 7 | Kotlin | 0 | 1 | b918cf4b02b046bbc04f7c022322c7beedba7b4f | 407 | GCMS-BackEnd | MIT License |
sampleapp/src/main/java/com/sampleapp/dailymotion/SampleActivity.kt | dailymotion | 10,331,217 | false | null | package com.sampleapp.dailymotion
import android.annotation.SuppressLint
import android.annotation.TargetApi
import android.content.DialogInterface
import android.content.pm.ActivityInfo
import android.content.pm.ApplicationInfo
import android.net.http.SslError
import android.os.Build
import android.os.Bundle
import a... | 3 | Kotlin | 56 | 86 | 8b30966fade14714ca3f8271aa4bb24ca544e6ad | 14,933 | dailymotion-player-sdk-android | MIT License |
app/src/main/java/com/example/weatherapp/view/SeniorFragment.kt | kamil-matula | 350,345,105 | false | null | package com.example.weatherapp.view
import android.annotation.SuppressLint
import android.app.Dialog
import android.graphics.Typeface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCom... | 0 | Kotlin | 0 | 0 | ac3c1dc63231e589d316357232df05cf4a265bb2 | 10,872 | WeatherApp | MIT License |
src/main/kotlin/unibz/cs/semint/kprime/domain/datasource/DataSourceConnection.kt | kprime-dev | 722,929,885 | false | {"Kotlin": 383495, "XSLT": 1078, "HTML": 372, "Makefile": 218} | package unibz.cs.semint.kprime.domain.datasource
class DataSourceConnection(
val id: String,
val username: String,
val pass: String,
var autocommit: Boolean,
val commited: Boolean,
var closed:Boolean) | 0 | Kotlin | 0 | 0 | 34ceb56e3da8b2e64329c7655d50f40400487f25 | 249 | kprime-arm | MIT License |
app/src/main/java/com/nota/domain/contract/remote/RemoteDataSourceContract.kt | Ashraf4795 | 637,092,869 | false | null | package com.nota.domain.contract.remote
interface RemoteDataSourceContract {
} | 0 | Kotlin | 0 | 0 | e8f7cf3c33ad2ea2a67657df6481976ecb2e00e1 | 79 | Nota | MIT License |
feature-swap-api/src/main/java/io/novafoundation/nova/feature_swap_api/domain/swap/SwapService.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8137060, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_swap_api.domain.swap
import io.novafoundation.nova.feature_account_api.data.extrinsic.ExtrinsicSubmission
import io.novafoundation.nova.feature_account_api.domain.model.MetaAccount
import io.novafoundation.nova.feature_swap_api.domain.model.ReQuoteTrigger
import io.novafoundation... | 12 | Kotlin | 6 | 9 | 618357859a4b7af95391fc0991339b78aff1be82 | 1,641 | nova-wallet-android | Apache License 2.0 |
feature-swap-api/src/main/java/io/novafoundation/nova/feature_swap_api/domain/swap/SwapService.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8137060, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_swap_api.domain.swap
import io.novafoundation.nova.feature_account_api.data.extrinsic.ExtrinsicSubmission
import io.novafoundation.nova.feature_account_api.domain.model.MetaAccount
import io.novafoundation.nova.feature_swap_api.domain.model.ReQuoteTrigger
import io.novafoundation... | 12 | Kotlin | 6 | 9 | 618357859a4b7af95391fc0991339b78aff1be82 | 1,641 | nova-wallet-android | Apache License 2.0 |
health/health-services-client/src/test/java/androidx/health/services/client/data/ExerciseLapSummaryTest.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 3,388 | androidx | Apache License 2.0 |
src/main/kotlin/io/github/soat7/myburguercontrol/infrastructure/external/rest/PaymentIntegrationRequest.kt | FIAP-SOAT7-2024-GP-Kotlin | 788,196,924 | false | {"Kotlin": 151693, "Dockerfile": 360} | package io.github.soat7.myburguercontrol.infrastructure.external.rest
import com.fasterxml.jackson.databind.PropertyNamingStrategies
import com.fasterxml.jackson.databind.annotation.JsonNaming
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy::class)
data class PaymentIntegrationRequest(
val id: String,
... | 14 | Kotlin | 0 | 1 | 7481cda04707b7c24167ec54cda0422ad0017562 | 361 | myburgercontrol-monolith | Apache License 2.0 |
core-api/api/src/main/java/love/forte/simbot/filter/Keyword.kt | simple-robot | 554,852,615 | false | null | /*
*
* * Copyright (c) 2020. ForteScarlet All rights reserved.
* * Project simple-robot
* * File MiraiAvatar.kt
* *
* * You can contact the author through the following channels:
* * github https://github.com/ForteScarlet
* * gitee https://gitee.com/ForteScarlet
* * email <EMAIL>
* * QQ 11... | 0 | null | 0 | 3 | c5d7c9ca8c81b2bddc250090739d7c7d0c110328 | 651 | simple-robot-v2 | Apache License 2.0 |
walletconnectv2/src/main/kotlin/com/walletconnect/walletconnectv2/common/model/vo/clientsync/pairing/before/proposal/PairingSignalVO.kt | seabornlee | 451,919,130 | true | {"Kotlin": 255486} | package com.walletconnect.walletconnectv2.common.model.vo.clientsync.pairing.before.proposal
internal data class PairingSignalVO(val type: String, val params: PairingSignalParamsVO) | 0 | null | 0 | 0 | 2278c04c3c73588b54bff7e67821b09c489382e5 | 182 | WalletConnectKotlinV2 | Apache License 2.0 |
Android App SDK/4.0/ColorsActivity.kt | abinjawed | 188,861,394 | false | {"HTML": 94142, "CSS": 49687, "JavaScript": 26229, "Kotlin": 3507, "Java": 330} | package emquart.com
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class ColorsActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_colors)
}
}
| 0 | HTML | 0 | 1 | 72d2264428975dd877e0766e0477d953d44e4ec2 | 298 | Arabic-Flashcards | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.