path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
core/src/main/kotlin/me/shkschneider/skeleton/helper/IdHelper.kt | shkschneider | 11,576,696 | false | {"Gradle": 9, "Shell": 4, "Ignore List": 2, "Java Properties": 3, "Text": 1, "Batchfile": 1, "Makefile": 3, "YAML": 1, "Markdown": 1, "XML": 79, "Java": 1, "Kotlin": 171, "C": 1} | package me.shkschneider.skeleton.helper
import android.Manifest
import android.annotation.SuppressLint
import android.net.Uri
import android.os.Build
import android.provider.Settings
import androidx.annotation.RequiresPermission
import me.shkschneider.skeleton.helperx.Logger
import java.util.UUID
/**
* > Hey, I lost... | 0 | Kotlin | 12 | 25 | ef82d0b963a7ec7a3210fa396a2ecc6358e42d26 | 2,392 | android_Skeleton | Apache License 2.0 |
api/src/main/kotlin/com/seedcompany/cordtables/components/tables/common/files/List.kt | CordField | 409,237,733 | false | null | package com.seedcompany.cordtables.components.tables.common.files
import com.seedcompany.cordtables.common.ErrorType
import com.seedcompany.cordtables.common.Utility
import com.seedcompany.cordtables.components.admin.GetSecureListQuery
import com.seedcompany.cordtables.components.admin.GetSecureListQueryRequest
import... | 93 | Kotlin | 1 | 3 | 7e5588a8b3274917f9a5df2ffa12d27db23fb909 | 4,527 | cordtables | MIT License |
app/src/main/java/com/dokidevs/pholder/gallery/GalleryActivity.kt | tingyik90 | 164,212,519 | false | null | package com.dokidevs.pholder.gallery
import android.Manifest
import android.app.Activity
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.... | 0 | Kotlin | 2 | 7 | ccb808bdc56088429c1fe20cab17af3b09636705 | 56,596 | Pholder | Apache License 2.0 |
app/src/main/kotlin/com/heitorcolangelo/redditnews/manager/CommentManager.kt | heitorcolangelo | 125,123,513 | false | null | package com.heitorcolangelo.redditnews.manager
import com.heitorcolangelo.repository.RepositoryProvider
import com.heitorcolangelo.repository.model.Comment
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
object CommentManager {
private val repository = RepositoryProvider.g... | 0 | Kotlin | 2 | 1 | a1ae8ebd197c638e85066f72d74594cd173a5579 | 895 | RedditNews | Apache License 2.0 |
jobs/src/main/java/com/kylecorry/andromeda/jobs/DailyJobReceiver.kt | kylecorry31 | 394,273,851 | false | null | package com.kylecorry.andromeda.jobs
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import android.util.Log
import com.kylecorry.andromeda.preferences.Preferences
import com.kylecorry.sol.time.Time.toZonedDa... | 43 | null | 4 | 8 | 4ddd86ebe72ffec5c6f9800e61eb54b29d9dd5ed | 3,714 | andromeda | MIT License |
kinta-lib/src/main/kotlin/com/dailymotion/kinta/integration/github/GithubIntegration.kt | dailymotion | 233,589,070 | false | {"Kotlin": 217119, "Shell": 1069} | package com.dailymotion.kinta.integration.github
import com.apollographql.apollo.ApolloClient
import com.apollographql.apollo.coroutines.await
import com.apollographql.apollo.coroutines.toDeferred
import com.dailymotion.kinta.*
import com.dailymotion.kinta.integration.git.model.BranchInfo
import com.dailymotion.kinta.... | 3 | Kotlin | 5 | 47 | de17fa52635677c2c15feb88890e93c06e882e21 | 12,346 | kinta | MIT License |
KotlinBasic/src/52-let_scope_function.kt | LCS87 | 512,607,953 | false | null | fun main() {
/** Função de escopo: 'let'
Propriedade 1: consulte o objeto de contexto usando 'it'
Propriedade 2: O valor de retorno é o 'resultado lambda' */
// Use a função 'let' para evitar NullPointerException
val name: String? = "Hello"
// Executa a expressão lambda somente se a variá... | 0 | Kotlin | 0 | 0 | a168f63e0c418c70865b1810cae69f4eb43592d3 | 563 | Kotlin-Practice | MIT License |
app/src/main/java/com/mauriciotogneri/composetest/repository/RepositoryImpl.kt | vndly | 503,769,783 | false | {"Kotlin": 36218} | package com.mauriciotogneri.composetest.repository
class RepositoryImpl : Repository {
override fun testMethod(): Int = 42
} | 0 | Kotlin | 0 | 0 | 90a69cabe0306923890e99aab0f372817acf60db | 129 | compose | MIT License |
rssparser/src/main/java/com/prof/rssparser/caching/CacheConstants.kt | prof18 | 61,429,036 | false | null | package com.prof.rssparser.caching
internal object CacheConstants {
const val CACHED_FEEDS_TABLE_NAME = "feeds"
const val CACHED_FEEDS_URL_HASH = "url_hash"
const val QUERY_GET_CACHED_PROJECT = """
SELECT * FROM $CACHED_FEEDS_TABLE_NAME
WHERE $CACHED_FEEDS_URL_HASH = :urlHash
"""
... | 4 | null | 104 | 316 | 49de4894c0f846efa08f9fac0d9087137ba824bc | 543 | RSS-Parser | Apache License 2.0 |
21-fs-ias-lec/08-P2PGeoCachingApp/app/src/main/java/com/example/p2pgeocaching/ownbacnet/OwnFeed.kt | cn-uofbasel | 248,039,953 | false | {"Python": 5504182, "Kotlin": 148938, "Java": 97909, "HTML": 63846, "TeX": 44961, "Jupyter Notebook": 16375, "CSS": 16237, "Lua": 5664, "C++": 3038, "Swift": 964, "Batchfile": 78} | package com.example.p2pgeocaching.ownbacnet
import android.util.Log
import com.example.p2pgeocaching.activities.MainActivity
import java.io.File
import android.content.Context
/**
* This is a [Feed] object, owned by the user, meaning it can be modified.
*/
class OwnFeed(entries: List<Entry>, ownPublisher: OwnPublis... | 2 | Python | 21 | 8 | 2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a | 1,551 | BACnet | MIT License |
app-base/src/main/java/com/lhwdev/selfTestMacro/repository/AlarmManagerTaskScheduler.kt | lhwdev | 289,257,684 | false | null | package com.lhwdev.selfTestMacro.repository
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
import androidx.core.content.getSystemServi... | 0 | Kotlin | 5 | 20 | e30896342593464e83e00a64e93d48174b09b088 | 3,193 | covid-selftest-macro | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PossiblySentViaBot.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.types.message.abstracts
import dev.inmo.tgbotapi.types.CommonBot
interface PossiblySentViaBot {
val senderBot: CommonBot?
}
| 9 | Kotlin | 10 | 99 | 8206aefbb661db936d4078a8ef7cc9cecb5384e4 | 156 | TelegramBotAPI | Apache License 2.0 |
openchat/app/src/main/java/chat/project/openchat/View/ChatActivity.kt | limitless-dev90 | 370,986,944 | false | null | package chat.project.openchat.View
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.widget.Toast
import androidx.annotation.RequiresApi
import chat.project.openchat.Adapter.ChatAdapter
import chat.project.o... | 0 | Kotlin | 0 | 0 | 2a8c45e9349faef1d44831eb22c53917b99b1303 | 10,366 | OpenChat | MIT License |
src/main/kotlin/no/nav/tilleggsstonader/soknad/dokument/PdfService.kt | navikt | 681,542,878 | false | {"Kotlin": 128129, "HTML": 50860, "CSS": 1026, "Shell": 913, "Dockerfile": 171} | package no.nav.tilleggsstonader.soknad.dokument
import com.fasterxml.jackson.module.kotlin.readValue
import no.nav.tilleggsstonader.kontrakter.felles.ObjectMapperProvider.objectMapper
import no.nav.tilleggsstonader.kontrakter.felles.Stønadstype
import no.nav.tilleggsstonader.kontrakter.søknad.Søknadsskjema
import no.n... | 1 | Kotlin | 0 | 0 | 8d4864fec5114be2603a29920d26557101c23556 | 1,704 | tilleggsstonader-soknad-api | MIT License |
arrow-libs/core/arrow-core/src/main/kotlin/arrow/core/extensions/ordering/monoid/OrderingMonoid.kt | clojj | 343,913,289 | true | {"Kotlin": 6274993, "SCSS": 78040, "JavaScript": 77812, "HTML": 21200, "Scala": 8073, "Shell": 2474, "Ruby": 83} | package arrow.core.extensions.ordering.monoid
import arrow.core.Ordering
import arrow.core.Ordering.Companion
import arrow.core.extensions.OrderingMonoid
import kotlin.PublishedApi
import kotlin.Suppress
import kotlin.collections.Collection
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* cached extens... | 0 | null | 0 | 0 | 5eae605bbaeb2b911f69a5bccf3fa45c42578416 | 1,482 | arrow | Apache License 2.0 |
app/src/main/java/com/nicos/pokedex_compose/compose/generic_compose_views/Toolbar.kt | NicosNicolaou16 | 789,549,311 | false | {"Kotlin": 55812} | package com.nicos.pokedex_compose.compose.generic_compose_views
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.width
import androidx.compose.material3.CenterAlignedTopAppBar
import a... | 0 | Kotlin | 0 | 8 | f280dba70944ae99bf42ceab442caed2fdb78903 | 3,243 | Pokedex_Compose | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/RupeeSign.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
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... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,453 | icons | MIT License |
testData/interface/conventions/callSignature.d.kt | hakanerp | 89,503,300 | true | {"Kotlin": 1320761, "JavaScript": 7628} | package callSignature
external interface Foo {
@nativeInvoke
fun invoke()
@nativeInvoke
fun invoke(n: Number): Boolean
@nativeInvoke
fun invoke(foo: Foo, s: String): Bar
}
| 0 | Kotlin | 0 | 0 | 9edfd6a05d757265c6d20eea7f862762f59d15e4 | 197 | ts2kt | Apache License 2.0 |
src/test/kotlin/net/pwall/json/schema/codegen/CodeGeneratorStringTest.kt | pwall567 | 287,935,667 | false | null | /*
* @(#) CodeGeneratorStringTest.kt
*
* json-kotlin-schema-codegen JSON Schema Code Generation
* Copyright (c) 2020, 2021, 2022 Peter Wall
*
* 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 S... | 7 | null | 7 | 59 | c2a0be1f7c5aec7c97cd3a9cca1989489d333715 | 16,669 | json-kotlin-schema-codegen | MIT License |
common/src/commonTest/kotlin/com/toxicbakery/logging/TestSeedling.kt | ToxicBakery | 162,521,114 | false | null | package com.toxicbakery.logging
data class TestSeedling(
override val tag: String = ""
) : ISeedling {
private val logBuffer: StringBuilder = StringBuilder()
val log: String
get() = logBuffer.toString()
override fun log(
level: Int,
tag: String,
msg: String,
t... | 0 | null | 1 | 94 | 343839086de5409c82ee6c6453d94c5a1d8a587f | 522 | Arbor | Apache License 2.0 |
app/src/main/java/com/example/kotlin/examenmovil/framework/viewmodel/MainViewModel.kt | DiegoFJ95 | 868,705,162 | false | {"Kotlin": 19644} | package com.example.kotlin.examenmovil.framework.viewmodel
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.kotlin.examenmovil.data.network.models.dbz.CharacterObject
import com.example.kotlin.examenmovil.d... | 0 | Kotlin | 0 | 0 | abc15d6731e4e9d1e964d7734f8614b74a6cfaae | 1,539 | Examen-Movil | MIT License |
parser/src/main/kotlin/io/github/fanyf22/klarex/parser/builder/BuildCommand.kt | fanyf22 | 874,356,906 | false | {"Kotlin": 57950, "ANTLR": 4990, "JavaScript": 67} | package io.github.fanyf22.klarex.parser.builder
import io.github.fanyf22.klarex.parser.antlr.KlarexParser
import io.github.fanyf22.klarex.parser.error.SyntaxErrors
import io.github.fanyf22.klarex.parser.tree.Command
/** Build the command */
internal fun Builder.buildCommand(context: KlarexParser.CommandContext): Comm... | 0 | Kotlin | 0 | 0 | 130c7e4636e49465d70ee02a10974046b8525427 | 880 | klarex | Apache License 2.0 |
app/src/main/java/com/breezeiksindustries/features/addAttendence/model/WorkTypeResponseModel.kt | DebashisINT | 863,536,151 | false | {"Kotlin": 15890094, "Java": 1030472} | package com.breezeiksindustries.features.addAttendence.model
import com.breezeiksindustries.base.BaseResponse
/**
* Created by Saikat on 31-08-2018.
*/
class WorkTypeResponseModel : BaseResponse() {
var worktype_list: ArrayList<WorkTypeListData>? = null
} | 0 | Kotlin | 0 | 0 | 77cc3b80d20adbe55363e1825240b8e2c6a44cf3 | 264 | IKSIndustries | Apache License 2.0 |
rssparser/src/test/kotlin/com/prof18/rssparser/rss/XmlParserMultipleImageAndVideo.kt | jocmp | 610,083,236 | false | null | package com.prof18.rssparser.rss
import com.prof18.rssparser.BaseParserTest
class XmlParserMultipleImageAndVideo : BaseParserTest(
feedPath = "feed-test-multiple-image-and-video.xml",
channelTitle = "Motor.ru",
channelLink = "https://motor.ru",
channelDescription = "Автомобильное издание Lenta.ru",
... | 33 | null | 4 | 91 | f8ac7e8c4a6fccfe8f26f1b492261a4f5ce7dafa | 3,320 | capyreader | MIT License |
app/src/main/java/com/shubham/emergencyapplication/Ui/Fragments/HomeFragment.kt | ShubhamRaut280 | 833,353,376 | false | {"Kotlin": 122725} | package com.shubham.emergencyapplication.Ui.Fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import androidx.activity.viewModels
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.lifecycle.Observer
import androi... | 0 | Kotlin | 0 | 2 | 15c39b84d4dc120cef8f704bce7c710b9b9e4304 | 3,816 | Alertmate | MIT License |
src/main/kotlin/com/x12q/randomizer/randomizer_checker/InvalidRandomizerReason.kt | x12q | 786,237,687 | false | {"Kotlin": 194591} | package com.x12q.randomizer.randomizer_checker
import com.x12q.randomizer.err.ErrorHeader
import com.x12q.randomizer.err.ErrorReport
import kotlin.reflect.KClass
object InvalidRandomizerReason {
private val _prefix = "INV_RD"
private fun errCode(code:Int):String{
return "${_prefix}${code}"
}
... | 0 | Kotlin | 0 | 0 | 3eb6f1d99e6042bd09ff3279dedca0dd929aa469 | 1,620 | randomizer | Apache License 2.0 |
kotlin-utils/src/test/kotlin/xyz/lbres/kotlinutils/set/multiset/inline/runAnyAllNoneConsistentTests.kt | lbressler13 | 507,666,582 | false | null | package xyz.lbres.kotlinutils.set.multiset.inline
import xyz.lbres.kotlinutils.int.ext.isNegative
import xyz.lbres.kotlinutils.set.multiset.* // ktlint-disable no-wildcard-imports no-unused-imports
import kotlin.test.assertFalse
import kotlin.test.assertTrue
internal fun runAnyConsistentTests() {
val listSet = mu... | 0 | Kotlin | 0 | 1 | 741dac1b2fd74fd1bd59c5da3beedc0e11f9a724 | 3,884 | kotlin-utils | MIT License |
wpi/src/main/kotlin/org/ghrobotics/lib/wrappers/networktables/FalconNetworkTable.kt | Redrield | 171,192,478 | true | {"Kotlin": 284864} | package org.ghrobotics.lib.wrappers.networktables
import edu.wpi.first.networktables.NetworkTable
import edu.wpi.first.networktables.NetworkTableEntry
import edu.wpi.first.networktables.NetworkTableInstance
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser
import org.ghrobotics.lib.utils.capitalizeEachWord
i... | 0 | Kotlin | 0 | 0 | e1b3dfea7c9a975e86f7fb9eeed2c611ccce8f7e | 1,998 | FalconLibrary | MIT License |
common/src/main/java/com/thewizrd/common/controls/WeatherAlertsViewModel.kt | SimpleAppProjects | 82,603,731 | false | {"Kotlin": 3475152, "Java": 2712561, "HTML": 32933} | package com.thewizrd.common.controls
import android.app.Application
import androidx.annotation.MainThread
import androidx.core.util.ObjectsCompat
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.asFlow
import androidx.lifecycle.viewModelScope
import com.thewizrd.shared_resources.database.WeatherDat... | 0 | Kotlin | 8 | 37 | 56ddf09611d786e3bb2b802bdbcbbec648f0df9a | 2,817 | SimpleWeather-Android | Apache License 2.0 |
network/src/main/kotlin/net/fonix232/typiapp/network/impl/CommentClientImpl.kt | fonix232 | 165,849,983 | false | {"Gradle Kotlin DSL": 15, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 8, "Batchfile": 1, "EditorConfig": 1, "Markdown": 1, "XML": 54, "Kotlin": 121, "Java": 1, "JSON": 1, "YAML": 1} | package net.fonix232.typiapp.network.impl
import net.fonix232.typiapp.domain.client.CommentClient
import net.fonix232.typiapp.domain.client.ErrorResponse
import net.fonix232.typiapp.domain.client.NetworkResponse
import net.fonix232.typiapp.domain.model.Comment
import net.fonix232.typiapp.domain.model.Post
import net.f... | 1 | null | 1 | 1 | cb0d164604174c08a80de0eb49b6ed75d1c16c19 | 1,825 | TypiApp | MIT License |
plugins/kotlin/completion/testData/weighers/basic/ImportDirective.kt | JetBrains | 2,489,216 | false | null | package one
import first.<caret>
// IGNORE_K1
// ORDER: SECOND
// ORDER: second
// ORDER: SecondClass
// ORDER: second.
| 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 122 | intellij-community | Apache License 2.0 |
src/main/kotlin/cn/gionrose/facered/genshinDrawcard2/internal/feature/realizer/card/CardAnimationScreenRealizer.kt | 13022631363 | 701,322,305 | false | {"Kotlin": 95378} | package cn.gionrose.facered.genshinDrawcard2.internal.feature.realizer.card
import cn.gionrose.facered.genshinDrawcard2.GenshinDrawcard2
import cn.gionrose.facered.genshinDrawcard2.api.card.Card
import cn.gionrose.facered.genshinDrawcard2.api.card.CardPool
import cn.gionrose.facered.genshinDrawcard2.api.event.HandingO... | 0 | Kotlin | 0 | 0 | 4caea9da4a398301c98a39de3867928ba6fb6757 | 2,995 | GenshinDrawcard2 | Apache License 2.0 |
kzen-auto-jvm/src/main/kotlin/tech/kzen/auto/server/objects/sequence/model/ActiveStepModel.kt | alexoooo | 131,353,826 | false | null | package tech.kzen.auto.server.objects.sequence.model
import tech.kzen.auto.common.paradigm.common.model.ExecutionValue
import tech.kzen.auto.common.paradigm.common.model.NullExecutionValue
import tech.kzen.auto.common.paradigm.sequence.StepTrace
data class ActiveStepModel(
var value: Any? = null,
var display... | 0 | Kotlin | 0 | 1 | 28f227089a069686a3312e52dda4395c632b112f | 643 | kzen-auto | MIT License |
sample/src/main/kotlin/net/meilcli/pipe/sample/scenes/color/ColorSceneActivity.kt | MeilCli | 287,799,959 | false | null | package net.meilcli.pipe.sample.scenes.color
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import kotlinx.android.synthetic.main.activity_scene_color.*
import net.meilcli.pipe.MutableListPipe
import net.mei... | 0 | Kotlin | 0 | 0 | 874ca4ad4f855a2ed569aed9ce02e6e439ab75dc | 2,696 | recyclerview-pipe | MIT License |
app/src/main/java/com/maragues/planner/persistence/repositories/RepositoriesModule.kt | Maragues | 116,593,098 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 86, "Java": 10, "XML": 50} | package com.maragues.planner.persistence.repositories
import dagger.Binds
import dagger.Module
/**
* Created by miguelaragues on 7/1/18.
*/
@Module
abstract class RepositoriesModule {
@Binds
internal abstract fun bindsRecipeRepository(recipesRepositoryRoom: RecipesRepositoryRoomImpl): RecipeRepository
... | 1 | null | 1 | 1 | 67735ab35f90f716b6bf3b958fdb0791b9280b56 | 702 | RecipeImporter | MIT License |
src/main/kotlin/me/sargunvohra/lib/cakeparse/exception/UnexpectedTokenException.kt | sargunv | 50,552,625 | false | null | package me.sargunvohra.lib.cakeparse.exception
import me.sargunvohra.lib.cakeparse.lexer.Token
import me.sargunvohra.lib.cakeparse.lexer.TokenInstance
/**
* Thrown when a parser encounters a token that does not follow the expected syntax.
*
* @property expected a token that was expected, or null if end of file was... | 2 | Kotlin | 1 | 26 | dfc1b9868497312e0698a75536a244e48d03fdbb | 671 | cakeparse | Apache License 2.0 |
platform/workspaceModel-ide/src/com/intellij/workspace/legacyBridge/libraries/libraries/LegacyBridgeRootsWatcher.kt | vanyusuf1 | 232,969,279 | false | null | package com.intellij.workspace.legacyBridge.libraries.libraries
import com.intellij.openapi.Disposable
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.impl.ProjectRootManagerImpl
import com.intellij.openapi.util.Disposer
import com.intellij.op... | 1 | null | 1 | 1 | ca8064e5da364dfff33d56208a5512032b55ce46 | 5,830 | intellij-community-dissection | Apache License 2.0 |
azuredata/src/androidTest/java/com/azure/data/integration/UserTests.kt | jnpatel2811 | 247,443,839 | true | {"Kotlin": 281122, "Java": 5011} | package com.azure.data.integration
import android.support.test.runner.AndroidJUnit4
import com.azure.core.log.d
import com.azure.data.*
import com.azure.data.model.Database
import com.azure.data.model.ResourceType
import com.azure.data.model.User
import com.azure.data.service.DataResponse
import com.azure.data.service... | 0 | Kotlin | 0 | 0 | a53bc29db531cc024314ee15d7e86acbbe6d6322 | 6,239 | azure-sdk-for-android | MIT License |
services/hanke-service/src/main/kotlin/fi/hel/haitaton/hanke/hakemus/DateReportRequest.kt | City-of-Helsinki | 300,534,352 | false | {"Kotlin": 1912011, "Mustache": 92562, "Shell": 23444, "Batchfile": 5169, "PLpgSQL": 1115, "Dockerfile": 371} | package fi.hel.haitaton.hanke.hakemus
import java.time.LocalDate
data class DateReportRequest(val date: LocalDate)
| 2 | Kotlin | 5 | 4 | 72c671b6105f8706dae713e680ae0c2c0be6a63f | 117 | haitaton-backend | MIT License |
lib/src/apiTest/kotlin/com/lemonappdev/konsist/architecture/assertarchitecture/architecture4/project/data/DataFirstClass.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 4854719, "Python": 17926} | package com.lemonappdev.konsist.architecture.assertarchitecture.architecture4.project.data
class DataFirstClass
| 5 | Kotlin | 26 | 995 | 603d19e179f59445c5f4707c1528a438e4595136 | 113 | konsist | Apache License 2.0 |
src/main/kotlin/org/mvnsearch/plugins/just/lang/psi/JustfileElementFactory.kt | linux-china | 461,037,883 | false | {"Kotlin": 94515, "Lex": 15236, "Makefile": 4191, "Just": 610} | package org.mvnsearch.plugins.just.lang.psi
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiFileFactory
object JustfileElementFactory {
fun createFile(project: Project, text: String) =
PsiFileFactory.getInstance(project).createFileFromText("justfile", JustFileType, text) as JustFil... | 4 | Kotlin | 6 | 39 | f660de8567c4b9e7cb09f8a46e00e2be4a78f18c | 760 | jetbrains-just-plugin | Apache License 2.0 |
app/src/main/java/com/example/dotoring_neoul/navigation/RootNavigationGraph.kt | Team-Neoul | 678,390,604 | false | null | package com.example.dotoring_neoul.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.example.dotoring_neoul.navigation.bottom_navigation_bar.DotoringScreenNavigationBar
... | 5 | Kotlin | 3 | 0 | a5e380e2ccec0766ae0e04b62e868fcafb82e7e0 | 976 | Neoul_Dotoring-AOS | MIT License |
app/src/main/java/com/labs14tech2rent/tech2rent/activities/ProfileActivity.kt | labs14-tech2rent | 196,241,215 | false | null | package com.labs14tech2rent.tech2rent.activities
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.graphics.Bitmap
import android.os.Bundle
import android.provider.MediaStore
import android.view.View
import android.widget.*
... | 0 | Kotlin | 0 | 0 | 8828191896ef12ca7fddf30dc16b7fa57110071b | 8,198 | android | MIT License |
app/src/main/java/com/example/android/navigation/presentation/implementation/RegisterPresenterImpl.kt | anthowe | 288,293,487 | false | null | package com.example.android.navigation.presentation
import com.example.android.navigation.common.arePasswordsSame
import com.example.android.navigation.common.isEmailValid
import com.example.android.navigation.common.isPasswordValid
import com.example.android.navigation.common.isUsernameValid
import com.example.androi... | 0 | Kotlin | 0 | 0 | a7c0a31cd6fa09df9e1ff9e8272a1b809aec89d6 | 2,567 | AndroidTriviaFragment_toCell | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/client/prisonersearchapi/model/PrisonerSearchApiTypesTest.kt | ministryofjustice | 533,838,017 | false | null | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.client.prisonersearchapi.model
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import kotlin.reflect.full.declaredMembers
/**
* This test has been added to cover the fact some of generated prisoner search API types ... | 3 | Kotlin | 0 | 1 | b69e4aee7a632f614ec8edb5a591503dc90a1909 | 2,254 | hmpps-activities-management-api | MIT License |
app/src/main/java/com/ifanr/tangzhi/ui/SchemeHandlerActivity.kt | cyrushine | 224,551,311 | false | {"Kotlin": 673925, "Java": 59856, "Python": 795} | package com.ifanr.tangzhi.ui
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.alibaba.android.arouter.launcher.ARouter
import com.ifanr.tangzhi.R
import com.ifanr.tangzhi.ext.finishDelay
import com.ifanr.tangzhi.ext.toast
import com.ifan... | 0 | Kotlin | 0 | 0 | ab9a7a2eba7f53eca918e084da9d9907f7997cee | 1,490 | tangzhi_android | Apache License 2.0 |
emojipicker/src/main/java/com/kazumaproject/emojipicker/EmojiPickerDialogFragment.kt | KazumaProject | 599,677,394 | false | {"Kotlin": 257606, "Java": 153764} | package com.kazumaproject.emojipicker
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.fragment.app.DialogFragment
import androidx.recyclerview.widget.LinearLayou... | 0 | Kotlin | 0 | 0 | 17ac7b5bfa58223eb87c9c360a1e6ec335683fcf | 4,464 | MarkdownNote | MIT License |
platform/lang-impl/src/com/intellij/analysis/problemsView/toolWindow/ProblemsViewQuickFixes.kt | pete-woods | 271,828,817 | false | {"Text": 4089, "XML": 4730, "Ant Build System": 13, "Shell": 537, "Markdown": 309, "Ignore List": 80, "Git Attributes": 9, "Batchfile": 30, "SVG": 2081, "Java": 66294, "C++": 20, "HTML": 2400, "Kotlin": 5956, "DTrace": 1, "Gradle": 57, "Java Properties": 109, "INI": 280, "JFlex": 27, "CSS": 53, "Objective-C": 19, "Groo... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.analysis.problemsView.toolWindow
import com.intellij.openapi.actionSystem.ActionGroup
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.o... | 1 | null | 1 | 1 | 113c6a7fd2d1426303482e504321ddab0fecfd97 | 1,313 | intellij-community | Apache License 2.0 |
ZomboidFilesGenerator/src/main/kotlin/br/com/tntnp/GenerateFiles.kt | danilo-favoratti | 638,769,057 | false | null | package br.com.tntnp
import Constants
import br.com.tntnp.data.*
import br.com.tntnp.file.*
import br.com.tntnp.utils.FileUtils
import br.com.tntnp.utils.GUIDUtils
import br.com.tntnp.utils.XMLUtils
import java.io.File
class GenerateFiles(private val rootFolder: File) {
private lateinit var clothesWithUUID: Arra... | 0 | Kotlin | 0 | 0 | 77765cc992ada4bda6019eb9516b8dd0343e3066 | 7,152 | ZomboidShirtGenerator | Apache License 2.0 |
src/main/kotlin/com/mycompany/deliveryapp/service/LoginServiceImpl.kt | MohamedSaidHamed | 396,520,637 | false | null | package com.mycompany.deliveryapp.service
import com.auth0.jwt.JWT
import com.auth0.jwt.algorithms.Algorithm
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import java.util.*
@Service
class LoginServiceImpl : LoginService {
... | 0 | Kotlin | 0 | 0 | 3f445abb6dc5744c72a1f8122bc5ba8000d4fcaa | 1,111 | DeliveryApp | MIT License |
app/src/main/java/com/shopapp/ui/const/RequestCode.kt | rubygarage | 105,554,295 | false | null | package com.shopapp.ui.const
object RequestCode {
const val SIGN_IN = 100
const val SIGN_UP = 101
const val ADD_SHIPPING_ADDRESS = 102
const val EDIT_SHIPPING_ADDRESS = 103
const val PAYMENT = 104
const val PERSONAL_INFO = 105
const val CARD = 106
const val ADD_BILLING_ADDRESS = 107
... | 6 | Kotlin | 100 | 148 | 133b0060626a064b437683c3f0182d2bb3066bdb | 360 | shopapp-android | Apache License 2.0 |
domene/src/main/kotlin/no/nav/tiltakspenger/saksbehandling/ports/JournalførVedtaksbrevGateway.kt | navikt | 487,246,438 | false | {"Kotlin": 1042302, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.saksbehandling.ports
import no.nav.tiltakspenger.felles.journalføring.JournalpostId
import no.nav.tiltakspenger.felles.journalføring.PdfOgJson
import no.nav.tiltakspenger.libs.common.CorrelationId
import no.nav.tiltakspenger.saksbehandling.domene.vedtak.Rammevedtak
interface JournalførVed... | 0 | Kotlin | 0 | 1 | c23890a313eac464b2eae8d6e6f143b47a4b693e | 497 | tiltakspenger-vedtak | MIT License |
common/src/commonMain/kotlin/cn/kaicity/common/platform/IFileHelper.kt | CodingGay | 439,835,513 | false | null | package cn.kaicity.common.platform
expect fun chooseFile(callback:(String)->Unit)
expect fun saveFile(callback: (String) -> Unit)
| 4 | Kotlin | 30 | 93 | cbdf55e0163b8ac1df079883807cbdbc5b2c9474 | 132 | BlackObfuscator-GUI | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/fs/WriteParams.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.fs
import js.core.JsLong
import kotlinx.js.JsPlainObject
@JsPlainObject
external interface WriteParams {
val data: Any /* BufferSource | Blob | string */?
val position: JsLong?
val size: JsLong?
val type: WriteCommandType
}
| 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 299 | types-kotlin | Apache License 2.0 |
core-db/src/main/java/io/novafoundation/nova/core_db/model/operation/TransferTypeLocal.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8152538, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.core_db.model.operation
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
import io.novafoundation.nova.core_db.model.operation.OperationTypeLocal.OperationForeignKey
import java.math.BigInteger
@Entity(
tableName = ... | 13 | Kotlin | 6 | 9 | 404bd5141bf0e1bc4d09cae42d6ea9fa50d78975 | 1,165 | nova-wallet-android | Apache License 2.0 |
src/main/kotlin/kgen/proto/EnumField.kt | patefacio | 540,050,815 | false | {"Kotlin": 266936, "Rust": 12848} | package kgen.proto
import kgen.Identifier
import kgen.blockComment
import kgen.missingDoc
data class EnumField(
val nameId: String,
val doc: String = missingDoc(nameId, "Enum Field"),
val number: Int? = null
) : Identifier(nameId), AsProto {
override val asProto: String
get() = listOf(
... | 0 | Kotlin | 0 | 0 | af6424c8521a12198d57941b7de2204a008119b0 | 410 | kgen | MIT License |
app/src/main/java/com/example/kotlinrecyclerview/models/Live.kt | LeticiaSpeda | 675,684,842 | false | null | package com.ocanha.kotlinrecyclerview.models
data class Live(
var title: String,
var author: String,
var thumbnailUrl: String,
var link: String
) {
} | 0 | Kotlin | 0 | 0 | a914829fbd51883cefe2f52399ed62c4b8155da9 | 168 | App-KotlinRecyclerView | MIT License |
src/test/kotlin/Day13Test.kt | SimonMarquis | 570,868,366 | false | null | import Resources.readLines
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import kotlin.test.Ignore
import kotlin.test.assertEquals
@DisplayName("Day 13")
class Day13Test {
private val sampleInput = readLines("Day13-sample.txt")
private val actua... | 0 | Kotlin | 0 | 0 | a2129cc558c610dfe338594d9f05df6501dff5e6 | 1,094 | advent-of-code-2022 | Apache License 2.0 |
app/src/main/java/com/example/dentalapp/routes/Navigation.kt | bilalfauzy | 783,091,256 | false | {"Kotlin": 160751} | package com.example.dentalapp.routes
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
imp... | 0 | Kotlin | 0 | 0 | f8bc8e672291d45fbaec325431e8f3d12a9a5067 | 12,289 | Android-DentistReservation | MIT License |
client-core/src/main/kotlin/org/sinou/pydia/client/ui/core/composables/Titles.kt | bsinou | 434,248,316 | false | {"Kotlin": 2133584, "Java": 10237} | package org.sinou.pydia.client.ui.core.composables
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.paddingFromBaseline
import androidx.compose.foundation.layout.wrapContentWid... | 0 | Kotlin | 0 | 1 | 51a128c49a24eedef1baf2d4f295f14aa799b5d3 | 3,436 | pydia | Apache License 2.0 |
app/src/main/java/com/itssuryansh/taaveez/activity/Add_New_Content.kt | Suryansh1720001 | 565,134,397 | false | {"Kotlin": 86939} | package com.itssuryansh.taaveez.activity
import android.annotation.SuppressLint
import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.content.res.Configuration
import android.graphics.Color
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import andr... | 22 | Kotlin | 58 | 35 | 2377723d5de43a140983309817cdc97cad002208 | 12,491 | Taaveez | Apache License 2.0 |
code-sample-kotlin/coroutines/src/main/kotlin/00_basics.kt | aquatir | 76,377,920 | false | {"Markdown": 18, "Text": 9, "Ignore List": 22, "Python": 148, "HTML": 13, "CSS": 1, "HTTP": 2, "SQL": 1, "YAML": 10, "Elixir": 54, "Gradle Kotlin DSL": 4, "INI": 13, "Shell": 7, "Batchfile": 6, "Kotlin": 51, "Gradle": 8, "Dockerfile": 2, "Java Properties": 2, "Protocol Buffer": 2, "JSON": 6, "XML": 2, "Java": 431, "Sca... | import kotlinx.coroutines.*
fun mainBasic1() = runBlocking<Unit> {
val worldJob = GlobalScope.launch {
delay(1000)
print(" World!")
}
print("Hello,")
delay(2000)
}
fun mainBasic2() = runBlocking<Unit> { // <- does not complete unless all jobs inside complete
launch {
del... | 1 | Java | 3 | 6 | eac3328ecd1c434b1e9aae2cdbec05a44fad4430 | 1,144 | code-samples | MIT License |
app/src/main/java/io/wso2/android/api_authenticator/sdk/sample/presentation/screens/auth_screen/AuthScreen.kt | Achintha444 | 731,559,375 | false | {"Kotlin": 196710} | package io.wso2.android.api_authenticator.sdk.sample.presentation.screens.auth_screen
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.fou... | 0 | Kotlin | 0 | 0 | cbcd9412241bf81da34724d789ed528fc2b17040 | 2,814 | wso2-android-api-authenticator-sdk | Apache License 2.0 |
app/src/main/java/moe/pine/emoji/activity/SettingActivity.kt | emoji-gen | 87,104,171 | false | null | package moe.pine.emoji.activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.MenuItem
import kotlinx.android.synthetic.main.activity_setting.*
import moe.pine.emoji.R
import moe.pine.emoji.adapter.setting.Setti... | 5 | Kotlin | 0 | 8 | a6447ccba5e729fb664df5b117616c1e44f0c5dd | 1,731 | app-android-obsolete | MIT License |
app/src/main/java/com/better/alarm/model/AlarmsRepository.kt | yuriykulikov | 4,096,259 | false | null | package com.better.codingAlarm.model
import com.better.codingAlarm.stores.RxDataStore
/** Created by Yuriy on 24.06.2017. */
interface AlarmsRepository {
fun create(): AlarmStore
fun query(): List<AlarmStore>
val initialized: Boolean
suspend fun awaitStored()
}
interface AlarmStore {
val id: Int
var valu... | 58 | null | 151 | 439 | ac83bec8505c9c94e787c8835120a4f9b6cfe940 | 585 | AlarmClock | Apache License 2.0 |
build-attribution/testSrc/com/android/build/attribution/ui/data/builder/AbstractBuildAttributionReportBuilderTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | null | 187 | 751 | 16d17317f2c44ec46e8cd2180faf9c349d381a06 | 3,653 | android | Apache License 2.0 |
src/main/kotlin/slabmagic/block/ConsumableBatteryBlock.kt | Jempasam | 717,593,852 | false | {"Kotlin": 338494, "Java": 1018} | package slabmagic.block
import net.minecraft.block.Block
import net.minecraft.block.Blocks
import net.minecraft.server.world.ServerWorld
import net.minecraft.util.math.Vec3d
import net.minecraft.util.math.Vec3f
import slabmagic.block.properties.VisitableBlock
import slabmagic.network.messages.sendParticleEffect
import... | 0 | Kotlin | 0 | 0 | c306bfc7e784ba56a18d8502db3f265fe6604c7d | 1,955 | SlateMagic | Creative Commons Zero v1.0 Universal |
courses/dicoding-android-fundamental/local-data-persistent/MyNotesApp (SQLite)/app/src/main/java/id/my/mrgsrylm/mynotesapp/NoteAddUpdateActivity.kt | mrgsrylm | 740,344,950 | false | {"Kotlin": 711661, "Swift": 3686, "Dart": 2768, "Java": 1281, "Shell": 1130, "JavaScript": 870} | package com.example.mynotesapp
import android.content.ContentValues
import android.content.Intent
import android.os.Bundle
import android.os.PersistableBundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import andr... | 0 | Kotlin | 0 | 1 | ed5664904a92c3409e807d6a4a2238e060005536 | 6,438 | kotlin-sandbox | MIT License |
kotest-property/src/jvmTest/kotlin/com/sksamuel/kotest/property/arbitrary/IpAddressTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.property.arbitrary
import io.kotest.core.annotation.EnabledIf
import io.kotest.core.annotation.enabledif.LinuxCondition
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.ints.shouldBeBetween
import io.kotest.matchers.string.shouldMatch
import io.kotest.property.Arb
import i... | 160 | null | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 2,527 | kotest | Apache License 2.0 |
library/src/main/java/com/afollestad/aesthetic/AestheticDialogButton.kt | romanbjit | 148,929,852 | true | {"Kotlin": 158767} | /*
* Licensed under Apache-2.0
*
* Designed and developed by <NAME> (@afollestad)
*/
package com.afollestad.aesthetic
import android.content.Context
import android.support.v7.widget.AppCompatButton
import android.util.AttributeSet
import com.afollestad.aesthetic.utils.distinctToMainThread
import io.reactivex.dispo... | 0 | Kotlin | 0 | 0 | 4c98fee5f7bfcbd93181214138ebdc82f65451bb | 866 | aesthetic | Apache License 2.0 |
app/src/main/java/com/example/restaurants/core/extensions/FragmentExtension.kt | malikdawar | 448,658,452 | false | {"Kotlin": 65844} | package com.example.restaurants.core.extensions
import android.os.Bundle
import android.view.View
import androidx.annotation.AnimRes
import androidx.annotation.IdRes
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragme... | 0 | Kotlin | 0 | 0 | f0abb3a3a3f4168cfcce0e568f00d0425200f118 | 3,242 | letsFindRestaurant | MIT License |
core/src/main/kotlin/chat/rocket/core/model/Command.kt | RocketChat | 108,411,604 | false | null | package chat.rocket.core.model
import se.ansman.kotshi.JsonSerializable
@JsonSerializable
data class Command(
val command: String,
val params: String?,
val description: String? = null,
val clientOnly: Boolean = false
)
| 29 | null | 64 | 67 | bb5fb852cc79050b8d52172337c15eb7002b9b12 | 237 | Rocket.Chat.Kotlin.SDK | MIT License |
app/src/main/java/com/goldenraven/padawanwallet/ui/intro/IntroScreen.kt | thunderbiscuit | 308,999,831 | false | null | /*
* Copyright 2020-2022 thunderbiscuit and contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the ./LICENSE file.
*/
package com.goldenraven.padawanwallet.ui.intro
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import andro... | 40 | Kotlin | 14 | 47 | 87a9150f1e1a7eadcbdac3f585355b36e98f177b | 5,350 | padawan-wallet | Apache License 2.0 |
app/src/main/java/heb/apps/mathtrainer/memory/db/tasks/categories/DeleteCategoryByIdTask.kt | MatanelAbayof | 375,713,729 | false | null | package heb.apps.mathtrainer.memory.db.tasks.categories
import android.content.Context
import heb.apps.mathtrainer.memory.db.MathDB
import heb.apps.mathtrainer.memory.db.tasks.MathDBTask
class DeleteCategoryByIdTask(ctx: Context) : MathDBTask<Int, Void>(ctx) {
override fun doInBack(db: MathDB, input: Int?): Void... | 0 | Kotlin | 0 | 0 | c614b5f09be150b4a8712d965ad79bd3c91cdbdc | 447 | Math-Trainer | Apache License 2.0 |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/LocationPinCameraMedium.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.medium
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 4,004 | mds-android-compose | MIT License |
features/dd-sdk-android-session-replay/src/test/kotlin/com/datadog/android/sessionreplay/internal/recorder/mapper/BaseCheckableTextViewMapperTest.kt | DataDog | 219,536,756 | false | {"Kotlin": 8745768, "Java": 1179237, "C": 79303, "Shell": 63055, "C++": 32351, "Python": 5556, "CMake": 2000} | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sessionreplay.internal.recorder.mapper
i... | 49 | Kotlin | 59 | 146 | fd7786e2b8cc5513fc441b76dd6dcf1c98de6d9c | 11,117 | dd-sdk-android | Apache License 2.0 |
app/src/main/java/com/example/newsappjetpackcompose/data/network/model/Response.kt | engspa12 | 511,196,241 | false | null | package com.example.newsappjetpackcompose.data.network.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Response(
@Json(name = "status")
val status: String?,
@Json(name = "userTier")
val userTier: String?,
@Json(name = "total")
... | 0 | Kotlin | 0 | 2 | 90136fe62fd62fafc759009ed06a34021c26d723 | 687 | NewsAppKt | MIT License |
core/builtins/src/kotlin/Functions.kt | chashnikov | 14,658,474 | false | null | /*
* Copyright 2010-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 6,096 | kotlin | Apache License 2.0 |
Web/src/controllers/Static.kt | cornerstone18aug | 158,751,027 | false | {"CSS": 213683, "FreeMarker": 37188, "Kotlin": 34498, "JavaScript": 13666, "HTML": 53} | package ca.myclassmate.controllers
import io.ktor.application.Application
import io.ktor.http.content.resources
import io.ktor.http.content.static
import io.ktor.routing.routing
fun Application.static() {
routing {
static("/static") {
resources("static")
}
}
} | 0 | CSS | 0 | 0 | 6691d5240354623ca9859a4a76a3ee1e9bf47513 | 298 | MyClassMate | MIT License |
core/src/main/java/com/safframework/server/core/http/HttpRequest.kt | fengzhizi715 | 248,783,728 | false | null | package com.safframework.server.core.http
import com.safframework.server.core.http.cookie.HttpCookie
import com.safframework.server.core.http.entity.UploadFile
import io.netty.buffer.ByteBuf
import io.netty.handler.codec.http.FullHttpRequest
import io.netty.handler.codec.http.QueryStringDecoder
import io.netty.handler... | 1 | Kotlin | 15 | 91 | 25ca1f7957192576eeb0037544844becccf08a28 | 2,750 | AndroidServer | Apache License 2.0 |
app/src/main/java/com/keshavindustryfsm/features/TA/model/TaListResponse.kt | DebashisINT | 854,564,608 | false | {"Kotlin": 15649699, "Java": 1026496} | package com.breezeyellowbird.features.TA.model
import com.breezeyellowbird.base.BaseResponse
/**
* Created by Pratishruti on 28-11-2017.
*/
class TaListResponse : BaseResponse() {
var data:TaListResponseData?=null
} | 0 | Kotlin | 0 | 0 | 29fd3e9483a3ba334f6f81e124877e1e357f8c6f | 223 | YellowBird | Apache License 2.0 |
camera/camera-video/src/test/java/androidx/camera/video/internal/QualityExploredEncoderProfilesProviderTest.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28 | null | 937 | 5,108 | 89ec14e39cf771106a8719337062572717cbad31 | 17,654 | androidx | Apache License 2.0 |
app/src/main/java/com/tkuhn/recipefinder/App.kt | TomasKuhn | 241,450,220 | false | {"Gradle Kotlin DSL": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 1, "Java": 2, "Kotlin": 70, "XML": 23} | package com.tkuhn.recipefinder
import android.app.Application
import com.tkuhn.recipefinder.di.cacheModule
import com.tkuhn.recipefinder.di.repoModule
import com.tkuhn.recipefinder.di.uiModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.st... | 1 | null | 1 | 1 | d22aa2376bf0cd60663be32dd3ac84cbbbed520b | 784 | RecipeFinder | Apache License 2.0 |
goblin-queue/src/main/java/org/goblinframework/queue/module/QueueChannelManager.kt | xiaohaiz | 206,246,434 | false | null | package org.goblinframework.queue.module
import org.goblinframework.api.annotation.Singleton
import org.goblinframework.core.event.EventBus
import org.goblinframework.queue.consumer.QueueConsumerEventListener
import org.goblinframework.queue.producer.QueueProducerEventListener
@Singleton
class QueueChannelManager pri... | 0 | null | 6 | 9 | b1db234912ceb23bdd81ac66a3bf61933b717d0b | 1,396 | goblinframework | Apache License 2.0 |
firebase-appdistribution/test-app/src/main/java/com/googletest/firebase/appdistribution/testapp/MainActivity.kt | warting | 575,154,627 | true | {"Java": 12527853, "PureBasic": 10781995, "Kotlin": 320007, "C++": 86300, "Python": 54855, "Makefile": 21550, "C": 6703, "JavaScript": 5242, "Mustache": 5144, "Shell": 3538, "AIDL": 1486} | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 8 | Java | 0 | 0 | d8ec3fb7c82f23aca1f64a0c84876601e337ee1f | 10,781 | firebase-android-sdk | Apache License 2.0 |
app/src/main/java/com/zyqzyq/eyepetizer/ui/adapters/DiscoveryHotAdapter.kt | zyqzyq | 102,337,521 | false | null | package com.zyqzyq.eyepetizer.ui.adapters
import android.content.Intent
import android.support.v7.widget.RecyclerView
import android.view.View
import android.view.ViewGroup
import com.zyqzyq.eyepetizer.mvp.model.bean.HomeItem
import com.zyqzyq.eyepetizer.ui.activities.PlayActivity
import com.zyqzyq.eyepetizer.ui.view.... | 0 | Kotlin | 2 | 18 | 8771e0000301aa258512858652a484a33fc6c71c | 3,694 | Eyepetizer-kotlin | MIT License |
src/main/kotlin/io/esi/ees/8_Extension.kt | vnsgbt | 113,235,127 | false | {"Java": 4012, "Kotlin": 3769} | package io.esi.ees
fun main(args: Array<String>) {
println(greeting().right2left())
}
fun greeting () = "Hello!"
fun String.right2left() = this.reversed() | 1 | null | 1 | 1 | 81a9a725c3fb42801a86a118d2aea1fa7d5a470e | 161 | kotlin-share | MIT License |
src/main/kotlin/org/arend/ArendBraceMatcher.kt | JetBrains | 96,068,447 | false | null | package org.arend
import com.intellij.lang.BracePair
import com.intellij.lang.PairedBraceMatcher
import com.intellij.psi.PsiFile
import com.intellij.psi.tree.IElementType
import com.intellij.psi.tree.TokenSet
import org.arend.psi.ArendElementTypes.LGOAL
import org.arend.psi.AREND_COMMENTS
import org.arend.psi.AREND_WH... | 36 | null | 12 | 90 | 7a6608a2e44369e11c5baad3ef2928d6f9c971b2 | 1,204 | intellij-arend | Apache License 2.0 |
development/importMaven/src/main/kotlin/androidx/build/importMaven/Main.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 | 794 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 15,533 | androidx | Apache License 2.0 |
LottieSample/src/main/kotlin/com/airbnb/lottie/samples/LottiefilesFragment.kt | priyanka-jha | 183,009,394 | false | null | package com.airbnb.lottie.samples
import androidx.fragment.app.FragmentActivity
import com.airbnb.epoxy.EpoxyController
import com.airbnb.lottie.samples.model.AnimationData
import com.airbnb.lottie.samples.model.AnimationResponse
import com.airbnb.lottie.samples.model.CompositionArgs
import com.airbnb.lottie.samples.v... | 1 | null | 1 | 2 | e3bba6cbef78f1883e320ae2268e01b2889a073c | 3,828 | lottie-android | Apache License 2.0 |
compiler/testData/cli/js/reifiedIntersectionType.kt | JetBrains | 3,432,266 | false | null | // Original bug: KT-37163
fun test1() {
val flow = combine(
flowOf("1"),
flowOf(2)
) { arr -> arr.joinToString() }
}
fun <T> Array<out T>.joinToString(): String = ""
public inline fun <reified T, R> combine(
vararg flows: Flow<T>,
crossinline transform: suspend (Array<T>) -> R
): Flow... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 399 | kotlin | Apache License 2.0 |
LeetCode/0020. Valid Parentheses/Solution.kt | InnoFang | 86,413,001 | false | null | /**
* Created by <NAME> on 2018/1/15.
*/
/**
* 73 / 73 test cases passed.
* Status: Accepted
* Runtime: 307 ms
*/
class Solution {
fun isValid(s: String): Boolean {
val t = java.util.Stack<Char>()
(s.toCharArray()).forEach { c ->
when (c) {
'{', '[', '(' -> t.push(... | 1 | C++ | 9 | 21 | 37b336048643a7181c85b18546e3f4b9fa8f18cb | 1,035 | algo-set | Apache License 2.0 |
test/plugin/scenarios/kotlin-coroutine-scenario/src/main/kotlin/org/apache/skywalking/apm/testcase/kotlin/coroutine/respository/DemoRepository.kt | apache | 400,172,901 | false | {"Java": 9673861, "Shell": 200860, "Kotlin": 7757, "Scala": 6067, "Dockerfile": 3510, "Thrift": 2809, "Makefile": 2694, "Python": 2228} | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 0 | Java | 587 | 756 | 615a1b11bb49106ae9b8dc49da53caef2ec038ae | 2,056 | skywalking-java | Apache License 2.0 |
idea/tests/testData/resolve/references/inImport/javaPackageSecondQualifier.kt | JetBrains | 278,369,660 | false | null | import java.uti<caret>l.ArrayList
// REF: util
| 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 47 | intellij-kotlin | Apache License 2.0 |
compiler/testData/codegen/box/reflection/typeOf/noReflect/annotatedType.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM
// WITH_REFLECT
import kotlin.reflect.*
@Target(AnnotationTarget.TYPE)
@Retention(AnnotationRetention.RUNTIME)
annotation class Runtime
@Target(AnnotationTarget.TYPE)
@Retention(AnnotationRetention.BINARY)
annotation class Binary
@Target(AnnotationTarget.TYPE)
@Retention(AnnotationRetention.S... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,518 | kotlin | Apache License 2.0 |
web/src/main/java/no/nav/modiapersonoversikt/consumer/krr/KrrConfig.kt | navikt | 218,512,058 | false | {"Shell": 3, "Markdown": 2, "CODEOWNERS": 1, "Maven POM": 22, "Dockerfile": 1, "Ignore List": 2, "Git Attributes": 2, "EditorConfig": 1, "Kotlin": 292, "GraphQL": 11, "JSON": 48, "OASv2-yaml": 2, "OASv2-json": 3, "OASv3-json": 4, "XML": 52, "Mustache": 3, "OASv3-yaml": 1, "YAML": 10, "Java": 174, "INI": 2} | package no.nav.modiapersonoversikt.consumer.krr
import KrrServiceImpl
import no.nav.common.token_client.client.MachineToMachineTokenClient
import no.nav.common.utils.EnvironmentUtils
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframewor... | 2 | Kotlin | 1 | 2 | d878994df1cc0917da46f0a0dab95f7928b5abc0 | 664 | modiapersonoversikt-api | MIT License |
compiler/testData/cfg-variables/basic/UsageInFunctionLiteral.kt | JakeWharton | 99,388,807 | false | null | fun foo() {
val a = 1
val f = { (x: Int) ->
val y = x + a
use(a)
}
}
fun use(vararg a: Any?) = a | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 125 | kotlin | Apache License 2.0 |
example/src/main/java/net/droidlabs/viking/example/MvvmMainActivity.kt | radzio | 210,127,873 | false | null | package net.droidlabs.viking.example
import android.content.Intent
import android.os.Bundle
import android.util.Log
import net.droidlabs.viking.annotations.AutoModule
import net.droidlabs.viking.example.databinding.ActMvvmdemoBinding
import net.droidlabs.viking.example.services.Navigator
import net.droidlabs.viking.ex... | 1 | null | 1 | 2 | 644b865c0e7fd149a6afae0187eef7fcdf4c450b | 1,465 | Viking | MIT License |
app/src/main/java/com/vn/ntesco/listener/ItemButtonListener.kt | hoaphanit | 296,677,787 | false | {"Java": 4293900, "Kotlin": 611527, "Assembly": 1013, "Rich Text Format": 402} | package com.vn.ntesco.listener
interface ItemButtonListener {
fun onClick(position:Int)
} | 1 | null | 1 | 1 | bf0a47a50eeb3d7113586417e07e7729fc1bb521 | 95 | ntesco.android.github | Apache License 2.0 |
f1_web/src/main/java/f1/web/controller/TrackController.kt | iktro | 315,949,430 | false | null | package f1.web.controller
import f1.core.entities.Track
import f1.core.service.TrackService
import f1.web.dto.TrackDTO
import org.springframework.stereotype.Controller
import javax.ws.rs.Consumes
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaType
import kotlin.... | 1 | null | 1 | 1 | 1338085d23246586f92a6165d2493e4968f5803b | 934 | F1_Kotlin-Spring-AngularJS | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.