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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
koin-projects/koin-android/src/main/java/org/koin/android/ext/android/ComponentCallbacksExt.kt | yshrsmz | 170,280,794 | true | {"Kotlin": 408976, "CSS": 32204, "Java": 3840, "Shell": 484} | /*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1 | Kotlin | 1 | 1 | ab397e0b229c64442e990557963994c1407d42b2 | 1,818 | koin | Apache License 2.0 |
zj_album/src/main/java/com/zj/album/nutils/Constance.kt | ZBL-Kiven | 214,956,426 | false | null | package com.zj.album.nutils
/**
* @author ZJJ on 2019.10.24
* */
internal object Constance {
const val LAUNCH_KEY = "launch"
const val REQUEST_BODY = "request_body"
const val RESULT_BODY = "result_body"
const val CODE_UNKNOWN = -1
const val ANIMATE_DURATION = 300L
const val ANIMATE_DURATI... | 1 | Kotlin | 1 | 1 | d374f63e243288cf2ab1f5f820ade91c07c310d6 | 734 | album | The Unlicense |
clients/android-new/logger/src/main/java/cy/ac/ucy/cs/anyplace/logger/LoggerApp.kt | dmsl | 41,429,563 | false | null | package cy.ac.ucy.cs.anyplace.logger
import cy.ac.ucy.cs.anyplace.lib.android.AnyplaceApp
import cy.ac.ucy.cs.anyplace.lib.android.utils.LOG
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class LoggerApp : AnyplaceApp() {
override fun onCreate() {
super.onCreate()
LOG.D2()
}
} | 116 | null | 314 | 694 | 7229551823757cc39174cc693947d9077e770bfb | 303 | anyplace | MIT License |
app/src/main/java/com/webaddicted/kotlinproject/model/bean/common/Result.kt | webaddicted | 193,627,207 | false | null | package com.webaddicted.kotlinproject.model.bean.common
data class Result(
val message_id: String
) | 1 | null | 17 | 75 | 18e361939df69445487a53baca8a7ec40beef7a5 | 104 | KotlinProject | Apache License 2.0 |
core/src/main/java/com/lsxiao/apollo/core/annotations/Backpressure.kt | qingmulang | 278,559,524 | true | {"Gradle": 8, "YAML": 1, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 2, "Java": 3, "Kotlin": 39, "Proguard": 3, "XML": 20, "Java Properties": 1} | package com.lsxiao.apollo.core.annotations
import io.reactivex.rxjava3.core.BackpressureStrategy
/**
* write with Apollo
* author:lsxiao
* date:2017-04-22 03:00
* github:https://github.com/lsxiao
* zhihu:https://zhihu.com/people/lsxiao
*/
annotation class Backpressure(val value: BackpressureStrategy)
| 0 | Kotlin | 0 | 0 | 5633afdb5c4f1d4522c377f9472ee262a9e9f01c | 311 | Apollo | Apache License 2.0 |
app/src/main/java/top/niunaijun/blackboxa/biz/cache/AppSharedPreferenceDelegate.kt | BlackBoxing | 466,324,313 | false | null | package top.niunaijun.blackboxa.biz.cache
import android.content.Context
import android.text.TextUtils
import androidx.core.content.edit
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
/**
*
* @desc:目前只支持 5种基本数据类型,如果要支持obj,请继承该类并重写他的相关方法 findData/putData
*
* @author: mini
* @created by... | 42 | null | 48 | 90 | a0a330732c51dd9476c618ede31ec7d4a168a5d5 | 2,269 | BlackBox | Apache License 2.0 |
cooperhewitt/src/main/java/com/droidteahouse/cooperhewitt/repository/ArtBoundaryCallback.kt | cloudbank | 140,785,014 | false | {"Kotlin": 47546, "Java": 41108, "CMake": 2118, "C++": 1791} | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 8dd38f3bf9a74a8b7ec5d18176db18ff67d071b6 | 5,992 | -cooperhewittv2 | Apache License 2.0 |
chart_server/src/main/kotlin/io/madrona/njord/layers/Dykcon.kt | manimaul | 213,533,249 | false | {"Kotlin": 283714, "TypeScript": 70908, "Python": 11027, "PLpgSQL": 5036, "HTML": 3275, "Shell": 3043, "Dockerfile": 2008, "CSS": 1315} | package io.madrona.njord.layers
import io.madrona.njord.model.*
/**
* Geometry Primitives: Line, Area
*
* Object: Dyke
*
* Acronym: DYKCON
*
* Code: 49
*/
class Dykcon : Layerable() {
private val lineColor = Color.LANDF
private val areaColor = Color.CHBRN
override suspend fun preTileEncode(featur... | 17 | Kotlin | 3 | 8 | 7d9604d7b285601d64301e604a92f9d283f57c18 | 652 | njord | Apache License 2.0 |
core/src/main/kotlin/Formats/FormatDescriptor.kt | google | 146,018,194 | true | {"Gradle": 34, "Java Properties": 1, "Shell": 1, "Text": 10, "Ignore List": 1, "Batchfile": 1, "Markdown": 118, "XML": 52, "Kotlin": 370, "JAR Manifest": 1, "INI": 19, "CSS": 1, "Java": 37, "HTML": 54, "Groovy": 4} | package org.jetbrains.dokka.Formats
import com.google.inject.Binder
import org.jetbrains.dokka.*
import org.jetbrains.dokka.Utilities.bind
import org.jetbrains.dokka.Utilities.lazyBind
import org.jetbrains.dokka.Utilities.toOptional
import org.jetbrains.dokka.Utilities.toType
import kotlin.reflect.KClass
interface F... | 0 | Kotlin | 8 | 15 | fcbcb1334bfe3600cef1ea79205bfe457d808d9f | 1,521 | dokka | Apache License 2.0 |
visitor/src/main/java/com/iluwatar/visitor/kotlin/example2/Engineer.kt | duylinh | 538,777,311 | true | {"Java": 2439703, "HTML": 38429, "Kotlin": 6416, "CSS": 5808, "Shell": 1718, "JavaScript": 1191, "Gherkin": 1078} | package com.iluwatar.visitor.kotlin.example2
class Engineer : Visitor {
override fun visit(computer: Computer) {
println("Fixing computer ${computer.name}")
}
override fun visit(school: School) {
println("Teaching at ${school.name}")
}
override fun visit(website: Website) {
... | 1 | null | 2 | 1 | 43076c39e500d7555e06db6a9cd9a78e76f03558 | 366 | kotlin-design-patterns | MIT License |
partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/operator/OpBitwiseAndTest.kt | partiql | 186,474,394 | false | {"Kotlin": 6791850, "HTML": 103438, "ANTLR": 34531, "Inno Setup": 3838, "Java": 1949, "Shell": 748} | package org.partiql.planner.internal.typer.operator
import org.junit.jupiter.api.DynamicContainer
import org.junit.jupiter.api.TestFactory
import org.partiql.planner.internal.typer.PartiQLTyperTestBase
import org.partiql.planner.util.CastType
import org.partiql.planner.util.allIntType
import org.partiql.planner.util.a... | 311 | Kotlin | 60 | 539 | ac6cdfff46ba5749d4fc850b1a30bf625034bfc9 | 1,973 | partiql-lang-kotlin | Apache License 2.0 |
samples/advanced-samples/mvvm-sample/src/main/java/com/zhuinden/simplestackexamplemvvm/util/MessageQueue.kt | SEAbdulbasit | 330,345,962 | true | {"Java Properties": 2, "Gradle Kotlin DSL": 16, "Markdown": 6, "Text": 1, "Shell": 1, "YAML": 2, "Batchfile": 1, "Ignore List": 17, "Proguard": 17, "Java": 146, "XML": 327, "Kotlin": 286, "JSON": 1, "Gradle": 2} | package com.zhuinden.simplestackexamplemvvm.util
import com.zhuinden.simplestackexamplemvvm.application.BaseKey
import java.util.*
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.ConcurrentLinkedQueue
import javax.inject.Inject
import javax.inject.Singleton
/**
* Created by Owner on 2017. ... | 0 | null | 0 | 2 | b8a95bcf90f7014ed097bec68ecd55140370bec6 | 1,202 | simple-stack | Apache License 2.0 |
games-server/src/test/kotlin/net/zomis/games/server2/invites/InviteSystemTest.kt | Tejpbit | 260,966,032 | true | {"Kotlin": 395303, "Vue": 83692, "JavaScript": 27193, "Java": 17130, "CSS": 3871, "HTML": 1358, "Dockerfile": 228} | package net.zomis.games.server2.invites
import net.zomis.core.events.EventSystem
import net.zomis.games.Features
import net.zomis.games.server2.ClientJsonMessage
import net.zomis.games.server2.ClientLoginEvent
import net.zomis.games.server2.MessageRouter
import net.zomis.games.server2.doctools.DocEventSystem
import ne... | 0 | null | 0 | 0 | cb1cafb4d5ae5c09a9edb336f04ef7cf48ee2714 | 7,935 | Server2 | MIT License |
idea/tests/testData/indentationOnNewline/emptyParameters/EmptyParameterInGetter2.kt | JetBrains | 278,369,660 | false | null | class Test {
val a: Boolean get(<caret>)
}
// SET_TRUE: ALIGN_MULTILINE_METHOD_BRACKETS
// IGNORE_FORMATTER
// KT-39444 | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 124 | intellij-kotlin | Apache License 2.0 |
core/src/test/java/examples/testgeneration/KtPrecondition.kt | cs125-illinois | 182,325,979 | false | null | package examples.testgeneration
class KtPrecondition {
fun firstLetter(text: String): Char {
return text[0]
}
}
| 1 | Kotlin | 1 | 7 | e688469a9bdbb23229c8b3519e78ce61788fc557 | 130 | answerable | MIT License |
app/src/main/java/com/coxassginment/presentation/util/imageUtil/MemoryCache.kt | NativeDevlopment | 282,841,139 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 1, "Kotlin": 69, "XML": 23, "Java": 3, "PureBasic": 1} | package com.coxassginment.presentation.util.imageUtil
import android.graphics.Bitmap
import android.util.Log
import androidx.collection.LruCache
import com.coxassginment.presentation.util.imageUtil.listner.ImageCache
class MemoryCache (newMaxSize: Int) : ImageCache {
private val cache : LruCache<String, Bitmap>
... | 0 | Kotlin | 0 | 0 | 5d6c95587e9e8acd69b1cea2f6deeba2b90c46a0 | 1,069 | kotlinAssginment | Apache License 2.0 |
backend.native/tests/codegen/function/named.kt | nakijun | 91,489,155 | true | {"Markdown": 14, "Git Config": 1, "Gradle": 22, "Java Properties": 5, "Shell": 13, "Ignore List": 1, "Batchfile": 1, "XML": 12, "Kotlin": 4177, "C": 24, "Makefile": 1, "Text": 69, "Java": 2, "Protocol Buffer": 2, "C++": 25, "Groovy": 6, "INI": 6, "OpenStep Property List": 1} | fun foo(a:Int, b:Int) = a - b
fun main(args:Array<String>) {
if (foo(b = 24, a = 42) != 18)
throw Error()
} | 0 | Kotlin | 0 | 0 | a4eceb3e3acf4863ca85c258d657504d7d6a73f0 | 115 | kotlin-native | Apache License 2.0 |
kotlin/admanager/InterstitialExample/app/src/main/kotlin/com/google/android/gms/example/interstitialexample/MyActivity.kt | googleads | 14,933,726 | false | null | /*
* Copyright (C) 2013 Google, 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 agre... | 165 | null | 1892 | 1,540 | d2c598348e195c0ca297b68ac3e40b95bb8e2935 | 5,541 | googleads-mobile-android-examples | Apache License 2.0 |
src/test/java/org/mapdb/StoreWALTest.kt | duanzhun | 55,659,356 | true | {"Java Properties": 1, "Markdown": 1, "Kotlin": 83, "Java": 142} | package org.mapdb
import org.junit.Assert.*
import org.junit.Test
import java.io.File
/**
* Created by jan on 3/22/16.
*/
class StoreWALTest: StoreDirectAbstractTest() {
override fun openStore(file: File): StoreWAL {
return StoreWAL.make(file=file.path)
}
override fun openStore(): StoreWAL {
... | 0 | Java | 0 | 0 | 6d855acada07832938fdb1754cb08ae451f95ada | 898 | mapdb | Apache License 2.0 |
samples/elements/routing/simple-routing-rib/src/main/java/com/badoo/ribs/samples/routing/simple_routing/rib/child1_child1/builder/Child1Child1Builder.kt | badoo | 170,855,556 | false | null | package com.badoo.ribs.samples.routing.simple_routing.rib.child1_child1.builder
import com.badoo.ribs.builder.SimpleBuilder
import com.badoo.ribs.core.modality.BuildParams
import com.badoo.ribs.samples.routing.simple_routing.rib.child1_child1.Child1Child1
import com.badoo.ribs.samples.routing.simple_routing.rib.child1... | 34 | null | 50 | 162 | cec2ca936ed17ddd7720b4b7f8fca4ce12033a89 | 768 | RIBs | Apache License 2.0 |
src/nl/hannahsten/texifyidea/index/stub/BibtexEntryStubImpl.kt | Hannah-Sten | 62,398,769 | false | null | package nl.hannahsten.texifyidea.index.stub
import com.intellij.psi.stubs.IStubElementType
import com.intellij.psi.stubs.NamedStubBase
import com.intellij.psi.stubs.StubElement
import nl.hannahsten.texifyidea.psi.BibtexEntry
data class BibtexEntryStubImpl(val parent: StubElement<*>?,
va... | 99 | null | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 1,070 | TeXiFy-IDEA | MIT License |
common/src/main/java/com/dastanapps/dastanlib/receiver/UpdateApp.kt | DastanIqbal | 268,110,924 | false | null | package com.dastanapps.dastanlib.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
class UpdateApp : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
SendBroadcast.AppUpdate(intent)
}
}
| 1 | null | 1 | 1 | a91a9ba58b9a9008a60c57e1126c0201338fb47f | 299 | DastanLib | MIT License |
idea/src/org/jetbrains/kotlin/idea/facet/KotlinVersionInfoProvider.kt | AlexeyTsvetkov | 17,321,988 | false | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | null | 0 | 2 | 72a84083fbe50d3d12226925b94ed0fe86c9d794 | 1,108 | kotlin | Apache License 2.0 |
apina-gradle/src/main/kotlin/fi/evident/apina/gradle/ApinaPlugin.kt | EvidentSolutions | 36,000,351 | false | {"Gradle Kotlin DSL": 6, "Markdown": 2, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Kotlin": 113, "INI": 1, "YAML": 1, "AsciiDoc": 9, "XML": 1, "Java": 17} | package fi.evident.apina.gradle
import fi.evident.apina.gradle.tasks.ApinaTask
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPlugin
open class ApinaPlugin : Plugin<Project> {
override fun apply(project: Project) {
project.pluginManager.apply(JavaPlugin::clas... | 9 | Kotlin | 9 | 27 | 9579f6f2a1c84987555d3c9f3fa98c723040d54c | 430 | apina | MIT License |
src/test/kotlin/eZmaxApi/models/EzmaxinvoicingGetObjectV2ResponseMPayloadTest.kt | eZmaxinc | 271,950,932 | false | {"Kotlin": 6909939} | /**
*
* 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 eZmaxApi.models
import io.kotlintest.sh... | 0 | Kotlin | 0 | 0 | 961c97a9f13f3df7986ea7ba55052874183047ab | 965 | eZmax-SDK-kotlin | MIT License |
acornui-gradle-plugins/src/main/kotlin/com/acornui/build/plugins/tasks/replacePropertyTokens.kt | polyforest | 82,695,679 | false | null | /*
* Copyright 2020 Poly Forest, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 3 | Kotlin | 0 | 1 | 87e0d951b75f4c4220147ff729ed199ec0a54e10 | 1,321 | acornui | Apache License 2.0 |
src/me/anno/mesh/obj/TextFileReader.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.mesh.obj
import me.anno.io.files.FileReference
import org.apache.logging.log4j.LogManager
import org.joml.Vector2f
import org.joml.Vector3f
import java.io.EOFException
import java.io.InputStream
import kotlin.math.pow
open class TextFileReader(val reader: InputStream) {
companion object {
... | 0 | null | 3 | 9 | 566e183d43bff96ee3006fecf0142e6d20828857 | 6,210 | RemsEngine | Apache License 2.0 |
app/src/main/java/com/example/practice/services/MarketService.kt | MauHylian | 338,687,610 | false | null | package com.example.practice.services
import com.fasterxml.jackson.databind.ObjectMapper
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.firestore.DocumentSnapshot
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Fire... | 0 | Kotlin | 0 | 0 | a96ea0c5c869178a4a53f3b8272354c80318aa04 | 4,001 | vinyl-companion | MIT License |
app/src/main/java/com/patronusstudio/sisecevirmece/model/DogrulukModel.kt | Patronus-Studio | 624,519,451 | false | {"Kotlin": 121356} | package com.patronusstudio.sisecevirmece.model
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
@Parcelize
@Entity(tableName = "DogrulukTablosu")
class DogrulukModel : Parcelable{
@PrimaryKey(autoGenerate = true)
var soruId: Int = 0
... | 0 | Kotlin | 0 | 0 | 7b387b69175521e67f00c23fa6f97ddf48d71e52 | 422 | SiseCevirmece-v1 | Apache License 2.0 |
app/src/main/java/ru/claus42/anothertodolistapp/di/components/AppComponent.kt | klauz42 | 679,216,403 | false | {"Kotlin": 257915} | package ru.claus42.anothertodolistapp.di.components
import dagger.Component
import ru.claus42.anothertodolistapp.MainApp
import ru.claus42.anothertodolistapp.data.remote.NetworkServiceApi
import ru.claus42.anothertodolistapp.di.modules.AppModule
import ru.claus42.anothertodolistapp.di.modules.DataStoreModule
import ru... | 0 | Kotlin | 0 | 0 | 5b1a0521dcff700285ba47d23c42266c99b27ca0 | 1,954 | Another-Todo-List-App | MIT License |
app/src/main/java/com/google/eyad/newsapi/models/Source.kt | eyad96 | 292,367,181 | false | null | package com.google.eyad.newsapi.models
data class Source(
val id: Any,
val name: String
) | 0 | Kotlin | 0 | 0 | 4cf0c59ece550bb580d6487ad9bc1d6b4c7f137f | 98 | NewsApi | MIT License |
src/main/kotlin/es/urjc/realfood/restaurants/domain/exceptions/ItemNotFoundException.kt | MasterCloudApps-Projects | 391,102,931 | false | null | package es.urjc.realfood.restaurants.domain.exceptions
class ItemNotFoundException(msg: String) : Exception(msg) | 0 | Kotlin | 0 | 1 | a727933b9dad4871fcac795f3dc7c230f19f452c | 113 | realfood-restaurants | Apache License 2.0 |
stately-concurrency/src/nativeMain/kotlin/co/touchlab/stately/concurrency/ThreadLocal.kt | touchlab | 153,214,696 | false | {"Kotlin": 193661, "JavaScript": 168} | // ktlint-disable filename
/*
* Copyright (C) 2018 Touchlab, 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 requi... | 8 | Kotlin | 28 | 591 | 6ae0eb15df77dc4e44a2e1b6707afd5702cf0298 | 1,549 | Stately | Apache License 2.0 |
feature/onboarding/src/main/java/com/goalpanzi/mission_mate/feature/onboarding/screen/OnboardingScreen.kt | Nexters | 828,096,097 | false | {"Kotlin": 469213, "Ruby": 1219} | package com.goalpanzi.mission_mate.feature.onboarding.screen
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compos... | 1 | Kotlin | 0 | 3 | 912bebd2706d1206f38c910e85c79fece73e4213 | 14,149 | goalpanzi-android | Apache License 2.0 |
src/main/kotlin/com/github/oowekyala/ijcc/ide/intentions/GrammarToParserJumpIntentions.kt | oowekyala | 160,946,520 | false | {"Kotlin": 636577, "HTML": 12321, "Lex": 10654, "Shell": 1940, "Just": 101} | package com.github.oowekyala.ijcc.ide.intentions
import com.github.oowekyala.ijcc.lang.model.parserQualifiedName
import com.github.oowekyala.ijcc.lang.psi.JccFile
import com.github.oowekyala.ijcc.lang.psi.JccNonTerminalProduction
import com.github.oowekyala.ijcc.lang.psi.ancestorOrSelf
import com.github.oowekyala.ijcc... | 11 | Kotlin | 6 | 44 | c514083a161db56537d2473e42f2a1d4bf57eee1 | 2,039 | intellij-javacc | MIT License |
kamp-core/src/main/kotlin/ch/leadrian/samp/kamp/core/api/entity/Checkpoint.kt | Double-O-Seven | 142,487,686 | false | null | package ch.leadrian.samp.kamp.core.api.entity
import ch.leadrian.samp.kamp.core.api.callback.OnPlayerEnterCheckpointListener
import ch.leadrian.samp.kamp.core.api.callback.OnPlayerLeaveCheckpointListener
import ch.leadrian.samp.kamp.core.api.data.Vector3D
import ch.leadrian.samp.kamp.core.runtime.entity.registry.Playe... | 1 | null | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 3,231 | kamp | Apache License 2.0 |
app/src/main/java/com/app/whakaara/ui/screens/MainScreen.kt | ahudson20 | 531,856,934 | false | {"Kotlin": 466756, "Shell": 761} | package com.app.whakaara.ui.screens
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.navigati... | 2 | Kotlin | 3 | 23 | 80bd00189b5356d71dd97cf9267aa5ecedd33afa | 4,724 | whakaara | MIT License |
app/src/main/java/com/example/bluetooth/MainActivity.kt | WarrenXiaGG | 217,692,206 | false | null | package com.example.bluetooth
import fightinggame.GameSurface
import android.Manifest
import android.app.Activity
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothManager
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.B... | 1 | null | 1 | 1 | c7cff1112169742c75a734b74cfe5c507b547b2d | 9,801 | FitnessFun2 | Apache License 2.0 |
tmp/arrays/youTrackTests/4907.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-30697
sealed class X {
class A(val a: Int): X()
object B: X() {
val b: Int = 10
}
}
fun f(x: X) = when(x) {
is X.A -> x.a
// Works
is X.B -> x.b
}
| 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 188 | bbfgradle | Apache License 2.0 |
recyclerviewexample/src/main/java/com/rcosteira/recyclerviewexample/presentation/RecyclerViewExampleFragment.kt | rcosteira79 | 105,062,893 | false | null | package com.rcosteira.recyclerviewexample.presentation
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import com.rcosteira.core.exception.Failure
import com.rcosteira.core.extensions.observe
impo... | 0 | Kotlin | 5 | 34 | fbc34905496044a950862aee4dea16abfdad98a0 | 2,848 | AndroidMultiModuleCleanArchTemplate | Apache License 2.0 |
data/src/main/java/app/cookery/db/entities/MealDetailsEntity.kt | skorudzhiev | 356,818,469 | false | {"Kotlin": 245545} | package app.cookery.db.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import app.cookery.db.CookeryEntity
@Entity
data class MealDetailsEntity(
@PrimaryKey
@ColumnInfo(name = "idMeal") val mealId: String = "",
@ColumnInfo(name = "insertedAt") val inser... | 4 | Kotlin | 0 | 3 | 730643717207ff95eed690441864b968d14c777e | 4,338 | Cookery | Apache License 2.0 |
src/commonMain/kotlin/data/items/Earthwarden.kt | marisa-ashkandi | 332,658,265 | false | null | package `data`.items
import `data`.Constants
import `data`.buffs.Buffs
import `data`.model.Item
import `data`.model.ItemSet
import `data`.model.Socket
import `data`.model.SocketBonus
import character.Buff
import character.Stats
import kotlin.Array
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kot... | 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,698 | tbcsim | MIT License |
plugin/src/main/kotlin/io/github/addoncommunity/galactifun/impl/GalactifunItems.kt | Slimefun-Addon-Community | 624,085,324 | false | {"Kotlin": 229396, "Java": 2022} | package io.github.addoncommunity.galactifun.impl
import io.github.addoncommunity.galactifun.Galactifun2
import io.github.addoncommunity.galactifun.api.objects.properties.atmosphere.Gas
import io.github.addoncommunity.galactifun.impl.items.SlimefunStructureBlock
import io.github.addoncommunity.galactifun.impl.items.roc... | 1 | Kotlin | 2 | 5 | 1bd3a557eae6a4068d003c2039cd0725e57fc6de | 4,631 | Galactifun2 | Apache License 2.0 |
app/src/androidTest/java/com/growingio/demo/ui/dashboard/ComponentHybridFragmentTest.kt | growingio | 632,845,365 | false | {"Kotlin": 426441, "Java": 39086, "HTML": 3925, "CSS": 2614} | /*
* Copyright (c) - 2023 Beijing Yishu Technology Co., Ltd.
*
* 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
*
* Unles... | 1 | Kotlin | 0 | 1 | 99d199f10345f067ca727820a44ed5108f22922f | 5,832 | growingio-sdk-android-demo | Apache License 2.0 |
app/src/androidTest/java/com/growingio/demo/ui/dashboard/ComponentHybridFragmentTest.kt | growingio | 632,845,365 | false | {"Kotlin": 426441, "Java": 39086, "HTML": 3925, "CSS": 2614} | /*
* Copyright (c) - 2023 Beijing Yishu Technology Co., Ltd.
*
* 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
*
* Unles... | 1 | Kotlin | 0 | 1 | 99d199f10345f067ca727820a44ed5108f22922f | 5,832 | growingio-sdk-android-demo | Apache License 2.0 |
app/src/main/java/com/armutyus/ninova/ui/discover/DiscoverCategoryFragment.kt | armutyus | 494,403,387 | false | {"Kotlin": 258357} | package com.armutyus.ninova.ui.discover
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.activity.OnBackPressedCallback
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigati... | 3 | Kotlin | 4 | 9 | 04587e5dd5e506a8120816a49b35e7af095f811d | 4,440 | ninova | MIT License |
owner/src/main/java/org/the_chance/honeymart/ui/features/orders/OrdersUiState.kt | TheChance101 | 647,400,117 | false | {"Kotlin": 1218713} | package org.the_chance.honeymart.ui.features.orders
import android.icu.text.DecimalFormat
import org.the_chance.honeymart.domain.model.Market
import org.the_chance.honeymart.domain.model.OrderDetails
import org.the_chance.honeymart.domain.util.ErrorHandler
import java.text.SimpleDateFormat
import java.util.Date
import... | 3 | Kotlin | 7 | 21 | 50200e0ec0802cdadc282b09074a19c96df3220c | 4,804 | Honey-Mart-Android-Client | Apache License 2.0 |
src/main/kotlin/com/nowsprinting/intellij_mob/git/Pull.kt | remotemobprogramming | 252,966,046 | false | {"Kotlin": 176233, "Java": 20708, "Makefile": 185} | /*
* Copyright 2020-2021 <NAME>. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.nowsprinting.intellij_mob.git
import git4idea.commands.GitCommand
import git4idea.repo.GitRepository
/**
* git pull --ff-only
*
* Must be called from `Task.Backgro... | 12 | Kotlin | 5 | 34 | 82967eacd3d99acdd581956ba1355bd0537dd9d5 | 943 | intellij-mob | Apache License 2.0 |
game/pathfinder/src/main/kotlin/org/rsmod/game/pathfinder/flag/AccessBitFlag.kt | rsmod | 293,875,986 | false | null | package org.rsmod.game.pathfinder.flag
/**
* @author Kris | 15/01/2022
*/
public object AccessBitFlag {
public const val BLOCK_NORTH: Int = 0x1
public const val BLOCK_EAST: Int = 0x2
public const val BLOCK_SOUTH: Int = 0x4
public const val BLOCK_WEST: Int = 0x8
}
| 0 | Kotlin | 49 | 55 | 5293efb07c833715f9bd9df4cad6ff9aa68143da | 283 | rsmod | ISC License |
app/src/main/java/com/mustafa/movieguideapp/view/ui/search/result/MovieSearchResultFragment.kt | fatihhcan | 319,714,235 | true | {"Kotlin": 505487} | package com.mustafa.movieguideapp.view.ui.search.result
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingComponent
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.f... | 0 | null | 0 | 0 | 64e39aa0ee18a680f9c4b80b124ec89050c0899e | 4,658 | MoviesApp | Apache License 2.0 |
collect_app/src/test/java/org/odk/collect/android/projects/ProjectListItemViewTest.kt | ebayraktar | 378,508,306 | false | null | package org.odk.collect.android.projects
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.widget.TextView
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.hamcrest.MatcherAssert... | 0 | null | 0 | 1 | 23f088204949e41e9e2683a7e2f401ede9732552 | 2,990 | collect | Apache License 2.0 |
src/main/kotlin/org/hexworks/cavesofzircon/repositories/GameRepository.kt | lesbiangunshow | 273,309,498 | false | null | package org.hexworks.cavesofzircon.repositories
class GameRepository {
} | 0 | Kotlin | 0 | 0 | 61c89fa99e5ecf61c75f1231eff446e9f6401865 | 73 | cavesoflife | Apache License 2.0 |
utbot-framework/src/main/kotlin/org/utbot/taint/parser/yaml/Validation.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.taint.parser.yaml
import com.charleskorn.kaml.YamlMap
import com.charleskorn.kaml.YamlNode
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.contract
class TaintParseError(
message: String,
node: YamlNode? = null
) : RuntimeException(message + (if (node != null) "\nYaml n... | 398 | null | 32 | 91 | abb62682c70d7d2ecc4ad610851d304f7ad716e4 | 899 | UTBotJava | Apache License 2.0 |
app/src/main/java/com/mmm/mypupu/ui/adapter/MainViewPagerAdapter.kt | liuyingliuxia | 227,561,914 | false | null | package com.mmm.mypupu.ui.adapter
import android.content.Context
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.mmm.mypupu.ui.fragment.*
class MainViewPagerAdapter (var context: Context... | 1 | null | 1 | 1 | 8a3dd5e2330665d3db64aa8e4f063357b0ef1a74 | 900 | MyPupu | MIT License |
analyzer/src/test/kotlin/curation/ClearlyDefinedPackageCurationProviderMockTest.kt | heremaps | 107,540,288 | false | null | /*
* Copyright (C) 2021 Bosch.IO GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 250 | null | 136 | 585 | cd28378eef40880b9e69ce7452dda475fd9b9365 | 2,466 | oss-review-toolkit | Apache License 2.0 |
core/src/commonMain/kotlin/work/socialhub/kbsky/api/entity/bsky/graph/GraphGetFollowsResponse.kt | uakihir0 | 735,265,237 | false | {"Kotlin": 200011, "Shell": 1153, "Makefile": 335} | package work.socialhub.kbsky.api.entity.bsky.graph
import kotlinx.serialization.Serializable
import work.socialhub.kbsky.model.bsky.actor.ActorDefsProfileView
@Serializable
class GraphGetFollowsResponse {
var subject: ActorDefsProfileView? = null
var cursor: String? = null
var follows: List<ActorDefsProfi... | 0 | Kotlin | 0 | 2 | 702ee8037176b93a7427ac61e488a450696632f4 | 338 | kbsky | MIT License |
net.akehurst.language/agl-processor/src/commonTest/kotlin/agl/parser/scannerless/multi/test_RuntimeParser_parse_multi.kt | dhakehurst | 197,245,665 | false | null | /**
* Copyright (C) 2018 Dr. David H. Akehurst (http://dr.david.h.akehurst.net)
*
* 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
... | 3 | null | 7 | 45 | 177abcb60c51efcfc2432174f5d6620a7db89928 | 2,313 | net.akehurst.language | Apache License 2.0 |
project-system-gradle/src/com/android/tools/idea/gradle/project/build/events/AndroidSyncIssue.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,265 | android | Apache License 2.0 |
app/src/main/java/info/guardianproject/notepadbot/database/Note.kt | Theaninova | 357,319,804 | true | {"Java": 103885, "Kotlin": 95898} | package info.guardianproject.notepadbot.database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Note(
@PrimaryKey val uid: Int,
@ColumnInfo(name = "title") val title: String?,
@ColumnInfo(name = "body") val body: String?,
)
| 0 | Java | 0 | 0 | 445fdde8fd02f7a7d15d73186544d590186a2b71 | 302 | notecipher | Apache License 2.0 |
certificatetransparency/src/test/kotlin/com/appmattus/certificatetransparency/datasource/DataSourceOneWayTransformTest.kt | appmattus | 319,979,095 | false | null | /*
* Copyright 2021-2022 Appmattus Limited
* Copyright 2019 Babylon Partners Limited
*
* 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
*
... | 20 | null | 24 | 73 | af503564bf3ee2c2866dafc126d19221254bdd00 | 4,018 | certificatetransparency | Apache License 2.0 |
intellij-plugin/AI/src/com/jetbrains/edu/ai/translation/TranslationLoader.kt | JetBrains | 43,696,115 | false | {"Kotlin": 4849606, "Java": 42267, "Python": 19649, "HTML": 14893, "CSS": 12059, "JavaScript": 302, "Shell": 71} | package com.jetbrains.edu.ai.translation
import com.intellij.openapi.application.readAction
import com.intellij.openapi.application.writeAction
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.openapi.pro... | 7 | Kotlin | 47 | 144 | 1a55176b065d1b7734dfb9c16a93480cd45c42f2 | 4,208 | educational-plugin | Apache License 2.0 |
app/src/main/java/com/babylon/wallet/android/domain/usecases/CreateAccountUseCase.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4329774, "HTML": 215350, "Java": 18496, "Ruby": 2757, "Shell": 1962} | package com.babylon.wallet.android.domain.usecases
import com.babylon.wallet.android.data.repository.ResolveAccountsLedgerStateRepository
import com.babylon.wallet.android.presentation.accessfactorsources.AccessFactorSourcesOutput
import kotlinx.coroutines.flow.first
import rdx.works.profile.data.model.apppreferences.... | 4 | Kotlin | 11 | 6 | 61fec2927d38fd134cef97947a65ab2fa532ae41 | 2,465 | babylon-wallet-android | Apache License 2.0 |
komm-annotations/src/main/kotlin/com/ucasoft/komm/annotations/NullSubstitute.kt | Scogun | 739,757,749 | false | {"Kotlin": 134530, "HTML": 228} | package com.ucasoft.komm.annotations
import kotlin.reflect.KClass
@Target(AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.SOURCE)
@Repeatable
annotation class NullSubstitute(val default: MapDefault<*>, val name: String = "", val `for`: Array<KClass<*>> = [])
| 3 | Kotlin | 0 | 12 | 3e5ff967885f873685559cb51ba8a53748902ecc | 271 | komm | Apache License 2.0 |
app/src/main/java/com/journalmetro/app/ui/common/adapter/BaseDiffCallback.kt | mohanbright | 514,156,994 | false | null | package com.journalmetro.app.ui.common.adapter
import androidx.recyclerview.widget.DiffUtil
open class BaseDiffCallback<Model>(
private var oldList: List<Model>,
private var newList: List<Model>,
private var areItemsTheSame: ((oldItem: Model, newItem: Model) -> Boolean),
private var areContentTheSame: ... | 0 | Kotlin | 0 | 0 | 7b490a59c7cead010b6ea04f205fec0f595fc5e2 | 916 | authentication | Apache License 2.0 |
app/src/main/java/com/np/retrofit/practices/practical_8/api_provider/APIClient.kt | nirajphutane | 795,627,485 | false | {"Kotlin": 72999} | package com.np.retrofit.practices.practical_8.api_provider
object ApiClient {
val apiClient: APICalls = RetrofitClient.retrofit.create(APICalls::class.java)
} | 0 | Kotlin | 0 | 0 | 691b996a47b539398ec6909fbc9c7136d477dd0d | 163 | Android-Retrofit | MIT License |
src/main/kotlin/io/vlang/vmod/psi/VmodTokenType.kt | vlang | 754,996,747 | false | {"Kotlin": 1648092, "V": 250415, "Java": 68641, "Lex": 20424, "HTML": 6275} | package io.vlang.vmod.psi
import com.intellij.psi.tree.IElementType
import io.vlang.vmod.VmodLanguage
class VmodTokenType(debugName: String) : IElementType(debugName, VmodLanguage.INSTANCE) {
override fun toString() = "VmodTokenType." + super.toString()
}
| 4 | Kotlin | 5 | 33 | 5b05a7b1f71ef8dcd7f26425a756259081fe5122 | 262 | intellij-v | MIT License |
src/main/kotlin/unibz/cs/semint/kprime/domain/db/Relation.kt | kprime-dev | 722,929,885 | false | {"Kotlin": 383495, "XSLT": 1078, "HTML": 372, "Makefile": 218} | package unibz.cs.semint.kprime.domain.db
data class Relation(val table:Table, val constraints: Set<Constraint>) | 0 | Kotlin | 0 | 0 | 8c2b33987424bbe533422205d63230ae45bb4413 | 112 | kprime-arm | MIT License |
guide/example/example-classes-02.kt | Kotlin | 97,827,246 | false | null | // This file was automatically generated from basic-serialization.md by Knit tool. Do not edit.
package example.exampleClasses02
import kotlinx.serialization.*
import kotlinx.serialization.json.*
@Serializable
class Project private constructor(val owner: String, val name: String) {
constructor(path: String) : th... | 407 | null | 621 | 5,396 | d4d066d72a9f92f06c640be5a36a22f75d0d7659 | 588 | kotlinx.serialization | Apache License 2.0 |
app/src/main/java/com/example/dtxvoicerecorder/utils/Helper.kt | notrealmaurya | 734,078,149 | false | {"Kotlin": 58826} | package com.example.dtxvoicerecorder.utils
import android.content.Context
import android.os.Environment
import android.widget.Toast
import java.io.File
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
import java.util.concurrent.TimeUnit
fun getFormattedFileSize(sizeInBytes: Long): Stri... | 0 | Kotlin | 0 | 0 | a7e69b2ae57df40c1093b1df10ad8e67017aab53 | 1,701 | MelodiousCapture | MIT License |
app/src/testMockBackend/java/com/jnj/vaccinetracker/settings/mock/MockBackendSettingsViewModelKtTest.kt | johnsonandjohnson | 503,902,626 | false | {"Kotlin": 1690434} | package com.jnj.vaccinetracker.settings.mock
import com.jnj.vaccinetracker.common.helpers.hours
import com.jnj.vaccinetracker.common.helpers.minutes
import com.jnj.vaccinetracker.common.helpers.seconds
import com.jnj.vaccinetracker.settings.mock.MockBackendSettingsViewModel.Companion.formatTime
import io.kotest.core.s... | 2 | Kotlin | 1 | 1 | dbf657c7fb7cb1233ed5c26bc554a1032afda3e0 | 654 | vxnaid | Apache License 2.0 |
src/test/kotlin/TestApi.kt | AndreaBrighi | 631,403,721 | false | {"Kotlin": 4550, "JavaScript": 622} | import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import tutorial.TodoOuterClass.Todo
import tutorial.TodoOuterClass.TodoList
interface TestApi {
@GET("/todos/1")
fun getTest(): Call<Todo>
@GET("/todos")
fun getTests(): Call<TodoList>
@GET("/to... | 4 | Kotlin | 0 | 0 | 32d7f62d35acb7b6993199b68d7ad086ea0ef590 | 438 | RetrofitProtobufJsonConverter | MIT License |
core/src/main/java/com/github/raulccabreu/redukt/middlewares/BeforeActions.kt | raulccabreu | 109,448,353 | false | null | package com.github.raulccabreu.redukt.middlewares
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class BeforeActions(val filter: Array<String> = []) | 8 | Kotlin | 4 | 16 | 65fe04ea81e93fae56273b77ac86579eebad4945 | 188 | redukt | MIT License |
src/commonMain/kotlin/de.jensklingenberg.composesnake/ui/Board.kt | Foso | 370,482,347 | false | null | package de.jensklingenberg.composesnake.ui
import androidx.compose.runtime.Composable
import de.jensklingenberg.composesnake.Board
import org.jetbrains.compose.common.foundation.layout.Column
import org.jetbrains.compose.common.foundation.layout.Row
import org.jetbrains.compose.common.material.Text
import org.jetbrain... | 1 | Kotlin | 1 | 13 | b8afa5a994ef56181b1d48f029c5c1de4e5320fb | 1,005 | compose-snake-web | MIT License |
ui-onboarding/src/main/java/dev/baseio/googlecalendar/uionboarding/nav/OnboardingNavigation.kt | oianmol | 462,159,683 | false | null | package dev.baseio.googlecalendar.uionboarding.nav
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import androidx.navigation.navigation
import dev.baseio.googlecalendar.navigator.ComposeNavigator
import dev.baseio.googlecalendar.navigator.GoogleCalendar
import dev.baseio.googl... | 0 | Kotlin | 3 | 7 | 623606e80110fc2915f8dada34db9dc921758b18 | 757 | GoogleCalendarAndroidClone | Apache License 2.0 |
app/src/main/java/xyz/palaocorona/data/dashboard/DashboardRepository.kt | SaadAAkash | 251,509,106 | false | null | package xyz.palaocorona.data.dashboard
import io.reactivex.Single
interface DashboardRepository {
fun isUserLoggedIn(): Boolean
fun getSliderImages(): Single<MutableList<String>>
fun isInternetAvailable(): Boolean
} | 0 | Kotlin | 7 | 57 | 80f69ecfd5941962d7e5bd5f02d5cf36064e6fc5 | 244 | COVID-19-Bangladesh-Android | MIT License |
app/src/main/java/com/jxareas/xpensor/features/transactions/presentation/ui/actions/category/CategorySelectionUiEvent.kt | jxareas | 540,284,293 | false | {"Kotlin": 260827, "Python": 1602, "Shell": 695} | package com.jxareas.xpensor.features.transactions.presentation.ui.actions.category
import com.jxareas.xpensor.features.accounts.presentation.model.AccountUi
import com.jxareas.xpensor.features.transactions.presentation.model.CategoryWithAmountUi
sealed class CategorySelectionUiEvent {
data class SelectCategory(va... | 0 | Kotlin | 3 | 35 | c8639526a7fdd710e485668093ce627e0fa1e8e5 | 417 | Xpensor | MIT License |
compiler/testData/diagnostics/tests/callableReference/bound/reservedExpressionSyntax2.fir.kt | JetBrains | 3,432,266 | false | null | // !DIAGNOSTICS: -UNUSED_VARIABLE
package test
fun nullableFun(): Int? = null
fun Int.foo() {}
val test1 = nullableFun()?::<!UNSAFE_CALL!>foo<!>
| 166 | null | 5771 | 46,772 | bef0946ab7e5acd5b24b971eca532c43c8eba750 | 147 | kotlin | Apache License 2.0 |
zxing-android-embedded/src/com/journeyapps/barcodescanner/camera/LegacyPreviewScalingStrategy.kt | DatL4g | 258,028,975 | true | {"Kotlin": 149796, "Java": 74415} | package com.journeyapps.barcodescanner.camera
import android.graphics.Rect
import android.util.Log
import com.journeyapps.barcodescanner.Size
import java.util.*
/**
*
*/
class LegacyPreviewScalingStrategy : PreviewScalingStrategy() {
/**
* Choose the best preview size, based on our display size.
*
... | 0 | Kotlin | 0 | 0 | 9d049e320f99e35b7a9c32706631bb7b5f3731bb | 5,419 | zxing-android-embedded | Apache License 2.0 |
camera/src/main/java/com/water/camera/util/SizeUtils.kt | AsaLynn | 366,619,664 | false | null | package com.water.camera.util
import android.content.Context
/**
* 尺寸转换工具类.
* Created by zxn on 2019/3/29.
*/
object SizeUtils {
/**
* dp转px
*
* @param context context
* @param dpValue dp值
* @return px值
*/
@JvmStatic
fun dp2px(context: Context, dpValue: Float): Int {
... | 1 | null | 1 | 1 | 4b1e5f9295751a5391db72f7b86ecca180445cd6 | 1,350 | CustomCamera | Apache License 2.0 |
movie/presentation/home/src/main/java/com/movietime/movie/home/ui/MovieHome.kt | milanga | 471,352,982 | false | {"Kotlin": 259510} | package com.movietime.movie.home.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.scrollable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundati... | 0 | Kotlin | 0 | 0 | 2ce07a048088c98b24d016c708cc89220282b304 | 6,918 | MovieTime | Apache License 2.0 |
Mobile/Android/app/src/main/java/com/utn/frba/desarrollomobile/hunter/ui/fragment/BaseLocationFragment.kt | UTN-FRBA-Mobile | 294,838,780 | false | {"Swift": 100561, "Kotlin": 99563, "C#": 34727, "Dockerfile": 1390, "Ruby": 470} | package com.utn.frba.desarrollomobile.hunter.ui.fragment
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.hardware.GeomagneticField
import android.hardware.SensorManager
import android.loc... | 0 | Swift | 0 | 0 | 9531a0a1d263fc0af1c168e55e3d4b2a2f32d1d1 | 7,891 | Hunter | MIT License |
grooves-diagrams/src/main/kotlin/com/github/rahulsom/grooves/asciidoctor/Constants.kt | rahulsom | 82,593,452 | false | null | package com.github.rahulsom.grooves.asciidoctor
/**
* Constants used in computing dimensions while rendering Event Sourcing diagrams.
*
* @author <NAME>
*/
object Constants {
const val eventLineHeight: Int = 100
const val aggregateHeight: Int = 40
const val aggregateWidth: Int = 100
const val event... | 15 | Java | 5 | 9 | 9bc8a259618188d457616d207adaa389edfafbc5 | 529 | grooves | Apache License 2.0 |
src/test/kotlin/io/github/cmackenzie1/template/TemplateApplicationTests.kt | cmackenzie1 | 329,814,381 | false | null | package io.github.cmackenzie1.template
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class TemplateApplicationTests {
@Test
fun contextLoads() {
}
}
| 5 | Kotlin | 0 | 0 | 730d24e8be4406b73b99aadb2f2decadc453a853 | 220 | spring-kotlin-template | MIT License |
app/src/main/java/com/example/weatherapp/origendatos/room/entidades/CiudadConClimaDataClass.kt | nicolasvc | 366,546,731 | false | null | package com.example.weatherapp.origendatos.room.entidades
import androidx.room.Embedded
import androidx.room.Relation
data class CiudadConClimaDataClass (
@Embedded
val ciudad: CiudadSeleccionadaEntity,
@Relation(
parentColumn = "idCiudad",
entityColumn = "woeidCiudad"
)
val lista... | 0 | Kotlin | 0 | 0 | b9ece609bedbd6096be54a3bad75b11ecd307cf0 | 369 | WeatherApp | MIT License |
feature-toggles/feature-toggles-api/src/main/java/com/duckduckgo/feature/toggles/api/RemoteFeatureStoreNamed.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | /*
* Copyright (c) 2023 DuckDuckGo
*
* 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 ... | 67 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 856 | Android | Apache License 2.0 |
app/src/main/java/com/bio/facerecognition/MainActivity.kt | recognito-vision | 780,980,551 | false | {"Kotlin": 24798, "Java": 18811} | package com.bio.facerecognition
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Camera
import android.graphics.Rect
import android.os.Bundle
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.widget.*
import android.util.Log
imp... | 0 | Kotlin | 72 | 215 | 241eb5c6516485eaff71e1b2bb9efbc5311dd93e | 5,147 | Android-FaceRecognition-FaceLivenessDetection | BSD Source Code Attribution |
libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/kpm/BuildKotlinToolingMetadataTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.gradle.kpm
import com.android.build.gradle.BaseExtension
import org.gradle.api.J... | 157 | null | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 9,207 | kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/presentation/ui/component/MessageImagesStack.kt | chouaibMo | 731,815,563 | false | null | package presentation.ui.component
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.AnimationVector1D
import androidx.compose.animation.core.FastOutLinearInEasing
import androidx.compose.animation.core.FastOutSlowInEasing
impor... | 1 | null | 9 | 54 | 6c6958483141fc4bb5503bf7073f49d2f3887789 | 11,252 | ChatGemini | Apache License 2.0 |
src/test/kotlin/com/intellij/ideolog/intentions/IdeaLogFormatTests.kt | JetBrains | 93,527,718 | false | {"Kotlin": 222428, "HTML": 1378} | package com.intellij.ideolog.intentions
import com.intellij.ideolog.highlighting.LogEvent
import com.intellij.ideolog.highlighting.settings.DefaultSettingsStoreItems
import com.intellij.ideolog.lex.LogFileFormat
import com.intellij.ideolog.lex.RegexLogParser
import com.intellij.ideolog.util.ideologContext
import com.i... | 92 | Kotlin | 55 | 255 | a1c88137fcee163048d2f87b65207c445fa6b5d9 | 20,583 | ideolog | MIT License |
src/main/kotlin/no/nav/syfo/util/Utils.kt | navikt | 250,256,212 | false | null | package no.nav.syfo.util
import com.auth0.jwt.JWT
import io.ktor.http.auth.HttpAuthHeader
import io.ktor.server.auth.parseAuthorizationHeader
import io.ktor.server.request.ApplicationRequest
import no.nav.syfo.client.Godkjenning
import no.nav.syfo.client.Kode
import no.nav.syfo.sikkerlogg
fun getAccessTokenFromAuthHe... | 0 | Kotlin | 1 | 0 | cc58591e11d5fc8f94f805545e8d13f09d946a44 | 2,023 | smregistrering-backend | MIT License |
src/main/kotlin/repositories/UserRepository.kt | SchoolSyncAr | 782,715,163 | false | {"Kotlin": 64179, "Shell": 438, "Dockerfile": 243} | package ar.org.schoolsync.repositories
import ar.org.schoolsync.model.User
import ar.org.schoolsync.model.enums.Role
import org.springframework.data.jpa.repository.EntityGraph
import org.springframework.data.repository.CrudRepository
import java.util.*
interface UserRepository : CrudRepository<User, Long> {
@Enti... | 17 | Kotlin | 0 | 1 | e398392a1176cb39da250c0c5d7fa3287f736b90 | 756 | schoolsync-be | MIT License |
common/src/main/java/com/sygic/sdk/example/common/ktx/SdkNavigationManager.kt | Sygic | 433,540,119 | false | {"Kotlin": 124860} | package com.sygic.sdk.example.common.ktx
import com.sygic.sdk.context.CoreInitCallback
import com.sygic.sdk.context.CoreInitException
import com.sygic.sdk.navigation.NavigationManager
import com.sygic.sdk.navigation.NavigationManagerProvider
import com.sygic.sdk.navigation.routeeventnotifications.DirectionInfo
import ... | 0 | Kotlin | 0 | 1 | 9f079fb20a106f756d3bbd01dba09468a4a0965d | 2,539 | sygic-sdk-examples-android | MIT License |
jipp-core/src/main/java/com/hp/jipp/model/PrintObjects.kt | HPInc | 129,298,798 | false | null | // Copyright 2018 - 2024 HP Development Company, L.P.
// SPDX-License-Identifier: MIT
//
// DO NOT MODIFY. Code is auto-generated by genTypes.py. Content taken from registry at
// https://www.iana.org/assignments/ipp-registrations/ipp-registrations.xml, updated on 2024-06-13
@file:Suppress("MaxLineLength", "WildcardImp... | 7 | null | 41 | 99 | f1f96d5da88d24197e7b0f90eec4ceee0fe66550 | 5,515 | jipp | MIT License |
still/src/main/java/com/darwin/viola/still/Viola.kt | VishnuViswam | 290,558,581 | true | {"Kotlin": 46759, "Java": 19390} | package com.darwin.viola.still
import android.graphics.Bitmap
import com.darwin.viola.still.detector.FaceDetectorProcessor
import com.darwin.viola.still.detector.VisionImageProcessor
import com.darwin.viola.still.model.FaceDetectionError
import com.darwin.viola.still.model.FaceOptions
import com.google.mlkit.vision.fa... | 0 | null | 0 | 0 | 4ec126b0ea96c38a695212b6c30269a41c3e4799 | 3,143 | viola | MIT License |
ftclib/src/main/kotlin/io/arct/ftc/hardware/motors/FContinuousServo.kt | x16140 | 335,787,177 | false | {"Kotlin": 81640} | package io.arct.ftc.hardware.motors
import com.qualcomm.robotcore.hardware.CRServo
import io.arct.ftc.eventloop.OperationMode
import io.arct.rl.hardware.motors.ContinuousServo
class FContinuousServo internal constructor(
__sdk: CRServo,
__op: OperationMode
) : FBasicMotor(__sdk, __op), ContinuousServo {
o... | 0 | Kotlin | 0 | 1 | 04b4f11d96aaffe00dfaa3bd898fd46b1d55cd16 | 625 | rl | MIT License |
download_component/src/main/java/com/xyoye/download_component/ui/activities/play_selection/PlaySelectionActivity.kt | xyoye | 138,993,190 | false | null | package com.xyoye.download_component.ui.activities.play_selection
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.xyoye.common_component.base.BaseActivity
import com.xyoye.common_com... | 57 | null | 67 | 627 | 2fc5a989e879d5556fe6e6458f1c35daadf78c98 | 2,812 | DanDanPlayForAndroid | Apache License 2.0 |
mvvmwill/src/main/java/com/will/mvvm/binding/command/BindingFunction.kt | willpyshan13 | 254,148,872 | false | null | package com.lt.basics.binding.command
/**
* Represents a function with zero arguments.
*
* @param <T> the result type
</T> */
interface BindingFunction<T> {
fun call(): T
} | 1 | null | 1 | 4 | adcf291a9365bd1db22c7d8119de4192bda1398f | 180 | MVVMWill | Apache License 2.0 |
app/src/main/java/com/kbj/aqiindex/MainActivity.kt | GalacticTitan | 415,320,620 | false | {"Kotlin": 26895} | package com.kbj.aqiindex
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.net.ConnectivityManager
import android.net.Network
import android.os.Build
import android.os.Bundle
import com.google.android.material.snackb... | 0 | Kotlin | 0 | 0 | 2fdc0054fc5e0c5bca9c9d6502ba5dddab7d4c76 | 2,107 | ProximityMobileTest | Apache License 2.0 |
kotlinx.interval/src/commonTest/kotlin/Readme.kt | Whathecode | 491,892,386 | false | {"Kotlin": 86515} | @file:Suppress( "UNUSED_VARIABLE" )
package io.github.whathecode.kotlinx.interval
import kotlin.test.*
class Readme
{
@Test
fun introduction_int_interval_example()
{
val interval: IntInterval = interval( 0, 10, isEndIncluded = false )
val areIncluded = 0 in interval && 5 in interval // t... | 6 | Kotlin | 0 | 2 | 4e2a516cefe0aeacb3f0052ed0860d56890ebd25 | 922 | kotlinx.interval | Apache License 2.0 |
src/com/android/deskclock/widget/toast/ToastManager.kt | sanpei3 | 435,164,225 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 9 | null | 0 | 1 | cfe66343053207ae917be65b458dbb583f24a3a0 | 948 | new-clock | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.