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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feature/developer/src/main/java/keijumt/gitjetpack/developer/ui/DeveloperAdapter.kt | keijumt | 189,611,658 | false | null | package keijumt.gitjetpack.developer.ui
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import keijumt.gitjetpack.developer.databinding.ItemDeveloperBinding
imp... | 0 | Kotlin | 1 | 4 | c53b46affeb56040da8f899f59cb44a92e55bde0 | 1,614 | git-jetpack | MIT License |
WebPulseForecast/src/main/kotlin/com/gdme/webpulseforecast/WebPulseForecastConfigurable.kt | RPDevJesco | 876,678,670 | false | {"Kotlin": 12686} | package com.gdme.webpulseforecast
import com.intellij.openapi.options.Configurable
import javax.swing.JComponent
import javax.swing.JPanel
import javax.swing.JLabel
class WebPulseForecastConfigurable : Configurable {
override fun createComponent(): JComponent {
val panel = JPanel()
panel.add(JLabel... | 0 | Kotlin | 0 | 1 | c7e6ad23b98fa060c744712c5bc27f940c2b15e3 | 595 | WebpulseForecast | Apache License 2.0 |
src/main/kotlin/lgbt/mouse/events/ClientCommandEvent.kt | msparkles | 742,009,088 | false | {"Kotlin": 20261, "Java": 4282} | package lgbt.mouse.events
import net.fabricmc.fabric.api.event.Event
import net.fabricmc.fabric.api.event.EventFactory
import net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket
import net.minecraft.server.network.ServerPlayNetworkHandler
import net.minecraft.util.ActionResult
fun interface ClientCommandEve... | 0 | Kotlin | 0 | 0 | 77d524f63c346dbd5ce54b381d45ebb94cb5c34a | 997 | mousewalk-mod | MIT License |
core/src/commonMain/kotlin/pw/binom/io/AsyncBufferedAsciiWriter.kt | caffeine-mgn | 182,165,415 | false | {"C": 13079003, "Kotlin": 1913743, "C++": 200, "Shell": 88} | package pw.binom.io
import pw.binom.AsyncOutput
import pw.binom.ByteBuffer
import pw.binom.DEFAULT_BUFFER_SIZE
abstract class AbstractAsyncBufferedAsciiWriter(
val closeParent: Boolean
) : AsyncWriter, AsyncOutput {
protected abstract val output: AsyncOutput
protected abstract val buffer: ByteBuffer
p... | 7 | C | 2 | 59 | 580ff27a233a1384273ef15ea6c63028dc41dc01 | 3,032 | pw.binom.io | Apache License 2.0 |
openmrs-client/src/test/java/org/openmrs/mobile/test/viewmodels/PatientDashboardDetailsViewModelTest.kt | openmrs | 22,269,108 | false | null | package org.openmrs.mobile.test.viewmodels
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.SavedStateHandle
import com.openmrs.android_sdk.library.dao.PatientDAO
import com.openmrs.android_sdk.library.models.Patient
import com.openmrs.android_sdk.library.models.Result
impor... | 16 | Kotlin | 431 | 174 | 0d9395f0ca83bb671dc4eb87282bbd54a7a32ce8 | 1,880 | openmrs-contrib-android-client | RSA Message-Digest License |
cookbook/src/jsMain/kotlin/zakadabar/cookbook/browser/table/saveElement/TableSaveElement.kt | spxbhuhb | 290,390,793 | false | {"Kotlin": 2348240, "HTML": 2835, "JavaScript": 1021, "Dockerfile": 269, "Shell": 253} | /*
* Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.cookbook.browser.table.saveElement
import zakadabar.cookbook.browser.table.demoData
import zakadabar.cookbook.entity.builtin.ExampleBo
import zakadabar.core.browser.ZkElement
impor... | 12 | Kotlin | 3 | 24 | 61ac92ff04eb53bff5b9a9b2649bd4866f469942 | 4,670 | zakadabar-stack | Apache License 2.0 |
technocracy.foundation/src/main/kotlin/net/cydhra/technocracy/foundation/tileentity/components/FluidComponent.kt | nycex | 199,491,904 | true | {"Kotlin": 732652} | package net.cydhra.technocracy.foundation.tileentity.components
import net.cydhra.technocracy.foundation.capabilities.fluid.DynamicFluidHandler
import net.minecraft.nbt.NBTTagCompound
import net.minecraft.util.EnumFacing
import net.minecraftforge.common.capabilities.Capability
import net.minecraftforge.fluids.capabili... | 0 | Kotlin | 0 | 0 | a5f7fce1fc118f3be06e17c37c3318614537d2b5 | 1,913 | Technocracy | MIT License |
app/src/main/java/com/hillpark/hillpark/mvp/fragments/BuyServiceFragment.kt | 0adik0 | 437,355,255 | false | {"Kotlin": 201941, "Java": 22343} | package com.hillpark.hillpark.mvp.fragments
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import com.arellomobile.mvp.MvpAppCompatFragment
import com.arellomobile.mvp.pre... | 0 | Kotlin | 0 | 0 | fb5519d9169a5d1185439df79a5da802e727fc87 | 5,249 | Hillpark | Apache License 2.0 |
src/test/kotlin/org/rust/lang/core/resolve/RustStdlibResolveTest.kt | ujpv | 68,909,564 | true | {"Kotlin": 1020989, "Rust": 91489, "Java": 69391, "Lex": 19613, "HTML": 8841, "Shell": 377, "RenderScript": 229} | package org.rust.lang.core.resolve
import com.intellij.testFramework.LightProjectDescriptor
import org.rust.cargo.project.workspace.cargoProject
class RustStdlibResolveTest : RustMultiFileResolveTestBase() {
override val dataPath = "org/rust/lang/core/resolve/fixtures/stdlib"
override fun getProjectDescript... | 0 | Kotlin | 0 | 0 | 2581d2b9e1b08ab0fa83b7e8b2e41186ccca721c | 1,177 | intellij-rust | MIT License |
app/src/main/java/com/kharlow2014/bzr/conversation/ConversationActivity.kt | kharlow2014 | 423,625,278 | false | {"Kotlin": 30849} | package com.kharlow2014.bzr.conversation
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview... | 0 | Kotlin | 0 | 0 | 7f9d5f2dc56dd7caa4baa390b33c56ab59e68ec4 | 4,594 | bzr_android | MIT License |
app/src/main/java/com/baymax104/bookmanager20compose/ui/screen/IndexScreen.kt | Baymax104 | 670,902,320 | false | {"Kotlin": 91527} | @file:OptIn(ExperimentalMaterial3Api::class, ExperimentalFoundationApi::class)
package com.baymax104.bookmanager20compose.ui.screen
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.pager.HorizontalPager
import androidx.com... | 0 | Kotlin | 0 | 0 | 5362222f0d5842d1609ee19faabccaa6f4e8fad6 | 4,738 | BookManager2.0-compose | MIT License |
sample/compose/compose-example-01/src/main/java/tech/thdev/compose/web/sample/ui/holder/web/LocalWebOwner.kt | taehwandev | 55,664,581 | false | {"Kotlin": 13791} | package tech.thdev.compose.web.sample.ui.holder.web
import android.webkit.WebView
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ProvidedValue
import androidx.compose.runtime.staticCompositionLocalOf
internal object LocalWebOwner {
private val LocalComposition = staticCompositionLocal... | 0 | Kotlin | 36 | 60 | 1c1b4467ab18d5e9d6fcc892961abfa2ae92a3a6 | 556 | Android-BlogExample | Apache License 2.0 |
app/common/src/main/kotlin/me/zhanghai/android/files/provider/common/AccessModes.kt | overphoenix | 621,371,055 | false | null | package me.zhanghai.android.files.provider.common
import java8.nio.file.AccessMode
class AccessModes(val read: Boolean, val write: Boolean, val execute: Boolean)
fun Array<out AccessMode>.toAccessModes(): AccessModes {
var read = false
var write = false
var execute = false
for (mode in this) {
... | 0 | Kotlin | 0 | 0 | 64264f261c2138d5f1932789702661917bbfae28 | 609 | phoenix-android | Apache License 2.0 |
src/main/kotlin/net/foxdev/festivalloader/loader/impl/PsychedelicCircus.kt | desertfox94 | 491,139,335 | false | null | package net.foxdev.festivalloader.loader.impl
import net.foxdev.festivalloader.loader.SimpleHtmlLineUpLoader
import org.jsoup.nodes.Element
import org.springframework.stereotype.Component
@Component
class PsychedelicCircus : SimpleHtmlLineUpLoader("PSYCHEDELIC_CIRCUS", "https://www.psychedelic-circus.de/artists/", "w... | 0 | Kotlin | 0 | 0 | 8d1af9f36e90fbfa6114901331c15d07b9367725 | 345 | festival-loader | Apache License 2.0 |
providers/src/main/java/com/flixclusive/providers/models/providers/flixhq/TvShowCacheData.kt | rhenwinch | 659,237,375 | false | {"Kotlin": 1156049} | package com.flixclusive.providers.models.providers.flixhq
import com.flixclusive.providers.models.common.MediaInfo
import org.jsoup.select.Elements
data class TvShowCacheData(
val id: String? = null,
val mediaInfo: MediaInfo? = null,
val seasons: Elements? = null,
val episodes: Elements? = null,
) | 21 | Kotlin | 7 | 96 | a90215b8c40ac0675cd217b38b842d2d57c90acc | 316 | Flixclusive | MIT License |
core/src/main/kotlin/com/hhs/koto/stg/bullet/ShotSheet.kt | XiaoGeNintendo | 402,344,979 | true | {"Kotlin": 639984, "GLSL": 3181} | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 0 | 1 | 8be3871cdf6cd83cc32ed6d5c82cc2cc40c94ce7 | 4,707 | TestSTG5 | Creative Commons Zero v1.0 Universal |
Projeto_ToolCoin/ToolCoin/app/src/main/java/com/jairolopes/toolcoin/AprActicity.kt | JairoLopes | 546,181,328 | false | null | package com.jairolopes.toolcoin
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.jairolopes.toolcoin.databinding.ActivityAprActicityBinding
class AprActicity : AppCompatActivity() {
private lateinit var binding:ActivityAprActicityBinding
overrid... | 0 | Kotlin | 0 | 1 | 359996b17460c364d414aa06cd6059ab3be490c4 | 1,895 | Android_Nativo | MIT License |
src/main/kotlin/us/whodag/acquire/obj/tile/BaseTile.kt | Odoh | 111,036,546 | false | null | package us.whodag.acquire.obj.tile
/**
* Base implementation of a Tile.
*
* @property id unique identifier.
* @property state state the Tile.
*/
data class BaseTile(private val id: TileId,
private val state: TileState) : Tile {
override fun id(): TileId = id
override fun state(): Tile... | 0 | Kotlin | 0 | 2 | 4be3b11c1141e2e9d28135c203531c75eafdd2f0 | 408 | acquire | MIT License |
app/src/main/java/com/example/githubuserapp/ui/adapter/ListUserAdapter.kt | Prasetya25 | 561,119,698 | false | null | package com.example.githubuserapp.ui.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.githubuserapp.R
impor... | 0 | Kotlin | 0 | 0 | 296002b6dbfcac4dc7de0e021ca679a3fcc1a4b6 | 1,856 | TestLibrary | BSD Source Code Attribution |
src/main/kotlin/com/jaspervanmerle/aoc2020/day/Day15.kt | jmerle | 317,518,472 | false | null | package com.jaspervanmerle.aoc2020.day
class Day15 : Day("981", "164878") {
private val startingNumbers = getInput()
.split(",")
.map { it.toInt() }
override fun solvePartOne(): Any {
return getSpokenNumber(2020)
}
override fun solvePartTwo(): Any {
return getSpokenNum... | 0 | Kotlin | 0 | 0 | 81765a46df89533842162f3bfc90f25511b4913e | 936 | advent-of-code-2020 | MIT License |
src/main/kotlin/org/pftylr/autograph/Utils.kt | ptaylor | 94,922,964 | false | {"Kotlin": 46241, "Shell": 2386} | /*
* MIT License
*
* Copyright (c) 2017 ptaylor
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 0 | Kotlin | 0 | 2 | e06f9cd1766fa29e1c469d9fd02270fd021b36f1 | 2,375 | autograph | MIT License |
src/main/kotlin/FormUtility.kt | runt9 | 208,921,182 | false | null | /**
* Contains utility functions for dealing with forms.
*/
@Suppress("unused", "FunctionName", "EnumEntryName")
external object FormUtility {
enum class ConsolidateParam { search, route, hash }
/**
* Adds one or more forms to the list of forms for which to confirm changes on exit.
*
* @param ... | 0 | Kotlin | 0 | 0 | 70370bf9bbc5818307c78b6d1d444ab56011394d | 3,100 | kotlin-proboards | MIT License |
summer-plugin/src/main/kotlin/top/bettercode/summer/gradle/plugin/project/CoreProjectTasks.kt | top-bettercode | 387,652,015 | false | null | package top.bettercode.summer.gradle.plugin.project
import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.Task
import top.bettercode.summer.gradle.plugin.generator.GeneratorPlugin
import top.bettercode.summer.tools.generator.GeneratorExtension
import top.bettercode.summer.tools.generator.dom... | 0 | Kotlin | 0 | 2 | 23ba7a8c61b0b7b7eb95926fc45f1f9127e443ea | 6,468 | summer | Apache License 2.0 |
authenticator/src/main/java/me/henneke/wearauthn/fido/Apdu.kt | fmeum | 217,853,447 | false | null | package me.henneke.wearauthn.fido
import kotlin.math.max
import kotlin.math.min
@ExperimentalUnsignedTypes
enum class StatusWord(val value: UByteArray) {
NO_ERROR(ubyteArrayOf(0x90u, 0x00u)),
MEMORY_FAILURE(ubyteArrayOf(0x65u, 0x01u)),
CONDITIONS_NOT_SATISFIED(ubyteArrayOf(0x69u, 0x85u)),
WRONG_DATA(u... | 9 | Kotlin | 3 | 90 | 35b2e913a433621ab67d065aae48fbe1bfb121fd | 3,793 | WearAuthn | MIT License |
app/src/main/java/com/cobeisfresh/azil/ui/custom_views/TypefaceEditText.kt | vejathegreat | 162,910,055 | false | null | package com.cobeisfresh.azil.ui.custom_views
import android.content.Context
import android.support.v7.widget.AppCompatEditText
import android.util.AttributeSet
/**
* Cobe Android Team
*/
class TypefaceEditText : AppCompatEditText {
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) {... | 0 | Kotlin | 0 | 0 | 174c15f617b5766bd2f093a7780c7d090b632d40 | 886 | Azil-Osijek-Android | The Unlicense |
src/test/kotlin/com/github/idlabdiscover/rsqlutils/builder/utils/TestCommons.kt | idlab-discover | 744,095,284 | false | {"Kotlin": 45486, "Java": 2230} | package com.github.idlabdiscover.rsqlutils.builder.utils
import com.github.idlabdiscover.rsqlutils.builder.Builder
import com.github.idlabdiscover.rsqlutils.builder.BuilderCompanion
import com.github.idlabdiscover.rsqlutils.model.*
import com.github.idlabdiscover.rsqlutils.serdes.AbstractPropertyValueSerDes
import com... | 0 | Kotlin | 0 | 2 | c5555081cdd9dd978581015ee4ef185aa954b724 | 3,402 | rsql-utils | Apache License 2.0 |
packages/flutter_app/android/app/src/main/kotlin/jp/co/altive/flutter_app_templete/MainActivity.kt | altive | 394,474,586 | false | null | package jp.co.altive.fat
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 4 | 62 | 503078e11e3820b086a648762683599074eb3001 | 121 | flutter_app_template | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/filled/Gauge.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.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.S... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,711 | compose-icon-collections | MIT License |
src/test/kotlin/no/nav/personbruker/innloggingsstatus/openam/OpenAMTokenResponseObjectMother.kt | ramrock93 | 449,651,863 | true | {"Kotlin": 91984, "Shell": 416, "Dockerfile": 289} | package no.nav.personbruker.innloggingsstatus.openam
object OpenAMTokenResponseObjectMother {
fun createOpenAMTokenResponse(tokenId: String, subject: String, authLevel: Int): OpenAMResponse {
val token = OpenAMToken(tokenId)
val subjectAttribute = OpenAMAttribute("uid", listOf(subject))
v... | 0 | null | 0 | 0 | 132c9f5b16c6f58c0dde3cb483914dc5063c704a | 576 | innloggingsstatus | MIT License |
MusicPro/app/src/main/java/com/shamoon/musicpro/data/api_model/SearchResponse.kt | shamoon992 | 289,886,511 | false | {"Kotlin": 61723, "CMake": 1702, "C++": 1193} | package com.shamoon.musicpro.data.api_model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class SearchResponse {
@SerializedName("results")
@Expose
var results: Results? = null
@SerializedName("error")
@Expose
var error: Int? = null
@Serializ... | 0 | Kotlin | 0 | 0 | 78606e3e8ef0d2ea1bf7869d423d50f9a0fa0946 | 384 | MusicPro | MIT License |
DSL/src/main/kotlin/UserWrapper.kt | fengzhizi715 | 137,714,143 | false | {"Kotlin": 118221, "Java": 6915} | /**
* Created by tony on 2018/9/20.
*/
class UserWrapper{
private val address = Address()
var name:String?=null
var password: String?=null
fun address(init: Address.() -> Unit):Address { // 类似于 apply 函数,返回 address 对象本身
address.init()
return address
}
internal fun getAddres... | 0 | Kotlin | 15 | 60 | a46ce33b2efca69b5a6a42bba56407847b8521c1 | 587 | kotlin_tutorial | Apache License 2.0 |
android/src/main/kotlin/io/github/desktopgame/next_synth_midi/NextSynthMidiPlugin.kt | desktopgame | 330,103,177 | false | null | package io.github.desktopgame.next_synth_midi
import android.Manifest
import android.app.Activity
import android.bluetooth.BluetoothAdapter
import android.content.Context
import android.content.pm.PackageManager
import android.media.midi.MidiDeviceInfo
import android.media.midi.MidiDeviceStatus
import android.media.mi... | 0 | Kotlin | 0 | 0 | 580791e45663fa09a0c615efee39edaf172c2dfc | 14,089 | next_synth_midi | MIT License |
legacy/src/main/kotlin/rs/emulate/legacy/graphics/image/ImageDecoder.kt | apollo-rsps | 50,723,825 | false | null | package rs.emulate.legacy.graphics.image
import com.google.common.collect.ImmutableList
import rs.emulate.legacy.IndexedFileSystem
import rs.emulate.legacy.archive.Archive
import rs.emulate.legacy.graphics.GraphicsConstants
import rs.emulate.legacy.graphics.GraphicsDecoder
import rs.emulate.legacy.graphics.ImageFormat... | 6 | null | 5 | 12 | fba5069744a04835c23373c1d11f90b201cdc604 | 3,458 | Vicis | ISC License |
src/main/kotlin/CLIOptions.kt | SanderForGodot | 704,911,061 | false | {"Kotlin": 69142} | enum class CLIFlags {
GraphvizOutput,
InstantShowOutput,
ShowDebug,
EdgesGetRandomColor,
}
val CLIOptions: MutableMap<CLIFlags, Boolean> = mutableMapOf(
//default Values
CLIFlags.GraphvizOutput to false,
CLIFlags.InstantShowOutput to false,
CLIFlags.ShowDebug to false,
CLIFlags.EdgesG... | 0 | Kotlin | 0 | 0 | 2bf50c56f1513d22c1b0f926161d9059cf983124 | 1,693 | FactorioRailAnalyzer | DOC License |
spesialist-selve/src/main/kotlin/no/nav/helse/mediator/meldinger/MidnattRiver.kt | navikt | 244,907,980 | false | {"Kotlin": 2838553, "PLpgSQL": 29508, "HTML": 1741, "Dockerfile": 258} | package no.nav.helse.mediator.meldinger
import net.logstash.logback.argument.StructuredArguments.kv
import no.nav.helse.mediator.MeldingMediator
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.MessageContext
import no.nav.helse.rapids_rivers.MessageProblems
import no.nav.helse.rapids_ri... | 5 | Kotlin | 1 | 0 | db8b319e8d49703d4ee44493f96540ac5ba9053b | 1,489 | helse-spesialist | MIT License |
app/src/main/java/com/inkapplications/glassconsole/ApplicationModule.kt | InkApplications | 707,867,428 | false | {"Kotlin": 42448} | package com.inkapplications.glassconsole
import com.inkapplications.DisplayApplication
import com.inkapplications.glassconsole.client.ActionClient
import com.inkapplications.glassconsole.server.DisplayServer
import com.inkapplications.glassconsole.server.IpProvider
import io.ktor.client.HttpClient
import io.ktor.clien... | 0 | Kotlin | 0 | 0 | 0e1652c7cafbec93bb171db403c0770240938c8d | 846 | GlassConsole | MIT License |
src/main/kotlin/com/github/pgreze/kyper/Types.kt | pgreze | 584,096,495 | false | null | package com.github.pgreze.kyper
import java.io.File
import java.math.BigDecimal
import java.math.BigInteger
import java.nio.file.Path
import kotlin.reflect.KClass
import kotlin.reflect.KType
import kotlin.reflect.full.isSubtypeOf
import kotlin.reflect.typeOf
@Suppress("CyclomaticComplexMethod")
internal fun KType.con... | 4 | Kotlin | 1 | 16 | f977570496cb4c0900753a2bbd9497fb53945f91 | 2,263 | kyper | Apache License 2.0 |
mesh-exam/feature/discover/src/main/java/io/flaterlab/meshexam/presentation/discover/router/DiscoverRouter.kt | chorobaev | 434,863,301 | false | {"Kotlin": 467494, "Java": 1951} | package io.flaterlab.meshexam.presentation.discover.router
import io.flaterlab.meshexam.androidbase.text.Text
interface DiscoverRouter {
fun openEditProfile(title: Text)
fun joinExam(examId: String)
} | 0 | Kotlin | 0 | 2 | 364c4fcb70a461fc02d2a5ef2590ad5f8975aab5 | 212 | mesh-exam | MIT License |
app/src/main/java/za/co/willienel/orion/di/modules/FactoryModule.kt | willienel | 184,625,528 | false | null | package za.co.willienel.orion.di.modules
import androidx.lifecycle.ViewModelProvider
import org.kodein.di.Kodein
import org.kodein.di.generic.bind
import org.kodein.di.generic.singleton
import org.kodein.di.weakReference
import za.co.willienel.orion.ui.core.factory.ViewModelFactory
val factoryModule = Kodein.Module("... | 0 | Kotlin | 0 | 0 | cc1ae64f4f66709c03e143b8bfda33005441752f | 443 | orion | Apache License 2.0 |
c2-ssm/ssm-sdk/ssm-sdk-core/src/main/kotlin/ssm/sdk/core/invoke/query/SessionQuery.kt | komune-io | 746,795,057 | false | {"Kotlin": 390934, "MDX": 96903, "Java": 38712, "Gherkin": 18221, "Makefile": 16642, "Dockerfile": 8936, "Go": 5435, "Shell": 1993, "JavaScript": 1453, "CSS": 102} | package ssm.sdk.core.invoke.query
import ssm.sdk.core.invoke.builder.HasGet
import ssm.sdk.core.invoke.builder.HasList
import ssm.sdk.core.invoke.builder.QueryBuilder
class SessionQuery : QueryBuilder(SsmQueryName.SESSION), HasGet, HasList
| 1 | Kotlin | 0 | 0 | 7a85540d6bbcebf9d0a6e3d68300ed789a17a6af | 242 | fixers-c2 | Apache License 2.0 |
app/src/main/kotlin/xyz/thesixonenine/scanqrcode/MainActivity.kt | thesixonenine | 601,543,199 | false | {"Kotlin": 3082} | package xyz.thesixonenine.scanqrcode
import android.Manifest
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.support.v7.app.AppCompatActivity
import android.view.View
import androi... | 0 | Kotlin | 0 | 0 | f21277203008bcaed575168b8385425cc9fb5fd1 | 2,645 | ScanQRCode | MIT License |
node-api/src/main/kotlin/net/corda/nodeapi/internal/serialization/amqp/SerializationHelper.kt | whaleyu | 119,378,441 | true | {"Gradle": 50, "INI": 22, "Markdown": 31, "Shell": 10, "Text": 12, "Ignore List": 3, "Batchfile": 5, "XML": 44, "Java": 90, "Kotlin": 964, "Groovy": 8, "reStructuredText": 119, "RPM Spec": 1, "Java Properties": 1, "CSS": 10, "SVG": 1, "JSON": 3, "AppleScript": 1, "HTML": 7, "JavaScript": 17, "Makefile": 1, "Python": 1,... | package net.corda.nodeapi.internal.serialization.amqp
import com.google.common.primitives.Primitives
import com.google.common.reflect.TypeToken
import net.corda.core.serialization.ClassWhitelist
import net.corda.core.serialization.CordaSerializable
import net.corda.core.serialization.SerializationContext
import org.ap... | 0 | Kotlin | 0 | 0 | d00438b86f6ead59321056d864ea7ad820487dab | 15,761 | corda | Apache License 2.0 |
src/AutomatonsTheory/Swing/DialogBoxes/ToggleAcceptanceStateDialog.kt | Vicra | 64,193,237 | false | null | package AutomatonsTheory.Swing.DialogBoxes
import javax.swing.*
class ToggleAcceptanceStateDialog(var States: Array<String>) {
var statesComboBox = JComboBox<String>()
var toggleAcceptanceState = ""
var valor: Int = 0
fun displayGUI() {
valor = JOptionPane.showConfirmDialog(null,
... | 0 | null | 0 | 2 | 2866ba7948d1e67f9aaf5f6bd83be711940e36e4 | 1,105 | AutomatonTheory | The Unlicense |
partiql-lang/src/main/kotlin/org/partiql/lang/types/CustomType.kt | partiql | 186,474,394 | false | {"Kotlin": 6791850, "HTML": 103438, "ANTLR": 34531, "Inno Setup": 3838, "Java": 1949, "Shell": 748} | package org.partiql.lang.types
import org.partiql.lang.domains.PartiqlAst
/**
* Data class enclosing the custom data type. It has the following properties:
* - [name]
* - [typedOpParameter]
* - [aliases]
* @property name The [PartiqlAst.Type.CustomType] representing one of the core [PartiqlAst.Type]
* @prope... | 311 | Kotlin | 60 | 539 | ac6cdfff46ba5749d4fc850b1a30bf625034bfc9 | 628 | partiql-lang-kotlin | Apache License 2.0 |
procedural/timeline/src/main/kotlin/gov/nasa/jpl/aerie/timeline/collections/Instances.kt | NASA-AMMOS | 431,279,043 | false | null | package gov.nasa.jpl.aerie.timeline.collections
import gov.nasa.jpl.aerie.timeline.Timeline
import gov.nasa.jpl.aerie.timeline.BaseTimeline
import gov.nasa.jpl.aerie.timeline.payloads.activities.Instance
import gov.nasa.jpl.aerie.timeline.ops.*
import gov.nasa.jpl.aerie.timeline.ops.coalesce.CoalesceNoOp
import gov.na... | 184 | null | 18 | 67 | f5ae30f9d573ed1ce7cad5c82ec583233aad0b99 | 886 | aerie | MIT License |
core/src/test/java/io/opentelemetry/android/internal/services/visiblescreen/fragments/VisibleFragmentTrackerTest.kt | open-telemetry | 669,220,109 | false | {"Java": 495085, "Kotlin": 195505} | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.android.internal.services.visiblescreen.fragments
import androidx.fragment.app.Fragment
import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.verify
import io.o... | 64 | Java | 33 | 147 | de86468c47abc76d34e3177cedb0d63d32e481a6 | 1,344 | opentelemetry-android | Apache License 2.0 |
sample/src/main/java/io/github/dellisd/quicksave/sample/MainActivity.kt | dellisd | 198,330,199 | false | null | package io.github.dellisd.quicksave.sample
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import io.github.dellisd.quicksave.R
import io.github.dellisd.quicksave.SharedPreferenceProvider
import io.github.dellisd.quicksave.views.CheckBoxSetting
import io.github.d... | 1 | null | 1 | 1 | 5787dc44545378308a033d1ab11892294eeb5be4 | 1,035 | Quicksave | MIT License |
tmp/arrays/youTrackTests/7228.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-28369
fun f() {
var x: Int? = null
if (x == try { x = 10; null } finally {} && x != null) {
println(x.inv()) // x smart cast to Nothing
println("unreachable code!")
}
}
| 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 218 | bbfgradle | Apache License 2.0 |
proto-mailbox/src/main/kotlin/actor/proto/mailbox/DefaultDispatcher.kt | asynkron | 96,669,281 | false | null | package actor.proto.mailbox
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
import kotlinx.coroutines.plus
import kotlin.coroutines.CoroutineContext
class DefaultDispatcher(context: CoroutineContext = Dispatchers.... | 8 | null | 21 | 211 | 5d42177ff79969000b64a150ac4433dee3209b45 | 926 | protoactor-kotlin | Apache License 2.0 |
java/testFramework/src/com/intellij/testFramework/MultiModuleJava9ProjectDescriptor.kt | disperDuan | 66,813,270 | true | {"Java": 156405582, "Python": 23833533, "Groovy": 2844571, "Kotlin": 1923877, "HTML": 1809650, "JavaScript": 563135, "C": 215610, "CSS": 197224, "C++": 196925, "Lex": 178905, "XSLT": 113040, "Jupyter Notebook": 92629, "Shell": 61583, "Batchfile": 59458, "NSIS": 52097, "Groff": 35232, "Objective-C": 28750, "TeX": 25473,... | /*
* Copyright 2000-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... | 0 | Java | 0 | 1 | 770f5f52eb97b6ee56fd5e8c0a47b0d86e3e8503 | 1,985 | intellij-community | Apache License 2.0 |
plugins/kotlin/code-insight/inspections-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/inspections/RedundantElvisReturnNullInspection.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.k2.codeinsight.inspections
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.TextRange
import c... | 229 | null | 4931 | 15,571 | 92c8aad1c748d6741e2c8e326e76e68f3832f649 | 2,983 | intellij-community | Apache License 2.0 |
safeToRunInputValidation/src/test/java/com/safetorun/intents/BaseVerifierTest.kt | Safetorun | 274,838,056 | false | {"Kotlin": 315254, "Shell": 228} | import com.safetorun.intents.BaseVerifier
import io.mockk.mockk
import io.mockk.verify
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
class BaseVerifierTest {
private lateinit var baseVerifier: BaseVerifier<Int>
@Before
fun setUp() {
... | 22 | Kotlin | 1 | 37 | bc56dd28a1fecf945a54cd1e74119b696dc2ed8e | 2,068 | safe_to_run | Apache License 2.0 |
tmp/arrays/youTrackTests/1202.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-36348
fun anotherMethod(a: Int, block: () -> Unit) {}
@Deprecated("Use anotherMethod instead", ReplaceWith("anotherMethod(a, block)"))
fun aMethod(a: Int, block: () -> Unit) {
}
fun main() {
anotherMethod(1) {} // after applying: anotherMethod(1) {}
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 278 | bbfgradle | Apache License 2.0 |
designer/src/com/android/tools/idea/common/surface/ScaleListener.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2024 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 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,602 | android | Apache License 2.0 |
TenextllSDKDemo/app/src/main/java/com/tenext/demo/activity/AddDeviceActivity.kt | wenext-ops | 250,197,017 | false | null | package com.tenext.demo.activity
import android.Manifest
import com.tenext.demo.R
import kotlinx.android.synthetic.main.activity_add_device.*
import kotlinx.android.synthetic.main.menu_back_layout.*
/**
* 添加设备界面
*/
class AddDeviceActivity : BaseActivity() {
private var permissions = arrayOf(
Manifest.p... | 0 | Kotlin | 1 | 0 | 4266bd268686ab0bf6799ac0168967281fdc2051 | 1,801 | LLForAndroid | MIT License |
app/src/main/java/wannabit/io/cosmostaion/data/model/res/PushStatus.kt | cosmostation | 418,314,439 | false | {"Gradle": 4, "Markdown": 2, "JSON": 4, "Java Properties": 1, "Shell": 3, "Ignore List": 3, "Batchfile": 1, "Text": 1, "INI": 2, "Proguard": 1, "XML": 250, "Java": 600, "YAML": 1, "Kotlin": 441, "JavaScript": 2} | package wannabit.io.cosmostaion.data.model.res
data class PushStatus(val subscribe: Boolean, val timestamp: String) | 0 | Java | 43 | 76 | 4d2de2e7f06bd98c156f7695f8da363d5a402762 | 116 | cosmostation-android | MIT License |
core/src/com/ore/infinium/systems/PlayerSystem.kt | antag99 | 62,489,643 | false | null | /**
MIT License
Copyright (c) 2016 Shaun Reich <sreich02@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... | 1 | null | 1 | 1 | 550e59966a160ab9dd98369c88a02f03f2093cec | 4,393 | ore-infinium | MIT License |
base/sdk-common/src/test/java/com/android/projectmodel/ConfigPathTest.kt | qiangxu1996 | 301,210,525 | false | {"Java": 38854631, "Kotlin": 10438678, "C++": 1701601, "HTML": 795500, "FreeMarker": 695102, "Starlark": 542991, "C": 148853, "RenderScript": 58853, "Shell": 51803, "CSS": 36591, "Python": 32879, "XSLT": 23593, "Batchfile": 8747, "Dockerfile": 7341, "Emacs Lisp": 4737, "Makefile": 4067, "JavaScript": 3488, "CMake": 329... | /*
* 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... | 1 | Java | 1 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 16,883 | vmtrace | Apache License 2.0 |
app/src/main/java/com/arpan/collegebroker/Prefs.kt | Prashanth820 | 384,006,235 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "JSON": 2, "Proguard": 1, "Kotlin": 56, "XML": 105, "Java": 8} | package com.arpan.collegebroker
import android.content.Context
import android.content.SharedPreferences
import android.graphics.Color
import java.io.CharArrayReader
class Prefs(context: Context) {
val PREFS_FILENAME = "com.arpan.collegebroker.shared"
val CATEGORY = "CATEGORY"
val prefs: SharedPreferences... | 1 | null | 1 | 1 | 976753c824bcc02734049c0a8476364efa63851f | 505 | Flatzy | MIT License |
compiler/src/main/kotlin/com/zeoflow/depot/writer/PreparedStatementWriter.kt | zeoflow | 374,049,906 | false | null | /*
* Copyright (C) 2021 ZeoFlow SRL
*
* 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... | 1 | Kotlin | 1 | 4 | ea707f37700054c6f62e0cbe93510e185044e2c5 | 2,063 | depot | Apache License 2.0 |
compiler/testData/codegen/bytecodeText/coroutines/stateMachine/kt25893.kt | JetBrains | 3,432,266 | false | null | class Handler(val func: suspend (Any) -> Unit)
inline fun createHandler(crossinline handler: suspend (Any) -> Unit): Handler {
return Handler({ handler.invoke(it) })
}
fun main(args: Array<String>) {
createHandler({
if (it !is String) {}
})
}
// 2 TABLESWITCH | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 282 | kotlin | Apache License 2.0 |
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ProjectExcludesIgnoredFileProvider.kt | xin497668869 | 170,095,405 | false | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.changes
import com.intellij.openapi.module.ModuleManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ModuleRoot... | 1 | null | 1 | 1 | a4bf5fe122eeae962303c57dba199464c829cb1a | 2,012 | intellij-community | Apache License 2.0 |
broker-web-ui/src/main/kotlin/com/bendaniel10/broker/web/ui/usecase/impl/EditBrokerProjectUseCaseImpl.kt | bendaniel10 | 232,372,440 | false | null | package com.bendaniel10.broker.web.ui.usecase.impl
import com.bendaniel10.broker.storage.model.BrokerProject
import com.bendaniel10.broker.storage.repository.BrokerProjectRepository
import com.bendaniel10.broker.web.ui.error.ErrorPage
import com.bendaniel10.broker.web.ui.model.EditBrokerProjectModel
import com.bendani... | 1 | Kotlin | 1 | 7 | 096ef2eadc147b00afd08e53bd22e34019865e14 | 1,848 | broker | Apache License 2.0 |
data/src/main/java/com/mi/mvi/data/mapper/TokenMapper.kt | MoIbrahim15 | 243,120,964 | false | null | package com.mi.mvi.data.mapper
import com.mi.mvi.data.entity.TokenEntity
import com.mi.mvi.data.entity.UserEntity
import com.mi.mvi.domain.model.Token
import com.mi.mvi.domain.model.User
/**
* Map a [User] to and from a [UserEntity] instance when data is moving between
* this later and the Data layer
*/
open class... | 1 | Kotlin | 38 | 349 | 4a6dca75cb77bc6b78db9191acd6ae5a7ad0be55 | 602 | Android-Kotlin-MVI-CleanArchitecture | MIT License |
pinlockview/src/main/java/com/andrognito/pinlockview/view/PinLockAdapter.kt | CHOIMINSEOK | 140,919,604 | true | {"Kotlin": 21446, "Java": 1358} | package com.andrognito.pinlockview.view
import android.graphics.PorterDuff
import android.support.v7.widget.RecyclerView
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
import android.w... | 0 | Kotlin | 2 | 1 | 40f0688bf5452ce29b1f50e82a659e27fd358204 | 7,839 | PinLockView | Apache License 2.0 |
src/main/kotlin/kr/socar/code101/codebook/CodebookApplication.kt | socar-inc | 380,374,812 | false | null | package kr.socar.code101.codebook
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class CodebookApplication
fun main(args: Array<String>) {
runApplication<CodebookApplication>(*args)
}
| 0 | Kotlin | 1 | 0 | 27e22767f4d0f83476d617b6c09aa01eb9dcb654 | 279 | socar-codebook | MIT License |
Library Media Management System/src/media_management/AudioBook.kt | tharindu257 | 869,898,479 | false | {"Kotlin": 16833} | package media_management
class Audiobook(
title: String,
author: String,
publicationYear: Int,
val fileSize: Double,
val duration: Int,
val narrator: String
) : Media(title, author, publicationYear) {
override fun getDetails() = "Audiobook: $title by $author, $publicationYear, Narrator: $na... | 0 | Kotlin | 0 | 0 | 8d72a35a2ac070d49c6e73835f136734d1ce2b5b | 380 | Library-Media-Management-System-kotlin-cli- | MIT License |
app/src/androidTest/java/sample/arf/clean_architecture_with_mvvm/framework/db/DaoCategoryTest.kt | ariarostamifarah | 362,405,520 | false | null | package sample.arf.clean_architecture_with_mvvm.framework.db
import androidx.room.Room
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import sample.arf.core.domain.CategoryFactory
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatch... | 0 | Kotlin | 0 | 0 | aa4f26f3dfde5d3c992284d094588580dd3bf0e0 | 1,874 | Sample_clean_architecture_with_mvvm | Apache License 2.0 |
application/shared/src/test/kotlin/unit/financial/shared/valueobject/AmountTest.kt | gustavofreze | 414,017,610 | false | {"Kotlin": 104127, "Makefile": 1058, "Shell": 638, "Dockerfile": 512} | package unit.financial.shared.valueobject
import financial.shared.valueobject.Amount
import financial.shared.valueobject.Currency
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.j... | 0 | Kotlin | 3 | 70 | c21ec989470a9b4c4b367a85923d4285d53320e7 | 3,283 | financial | MIT License |
ide/diff/src/commonMain/kotlin/com/idex/diff/DiffAlgorithm.kt | lhwdev | 331,217,993 | false | null | /*
* Copyright 2018~2020 java-diff-utils.
*
* 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... | 0 | Kotlin | 0 | 0 | 3d20849aa48867509a925af89f15d45741cfabed | 966 | IDEx | Apache License 2.0 |
fabric/src/main/kotlin/net/jidb/to/base/fabric/impl/data/ToBaseLanguageProvider.kt | joshmanisdabomb | 792,058,607 | false | {"Kotlin": 157606, "Java": 3000} | package net.jidb.to.base.fabric.impl.data
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider
import net.jidb.to.base.impl.ToBaseBlockLibrary
import net.jidb.to.base.impl.ToBaseCreativeTabLibrary
import net.jidb.to.base.impl.ToBaseItemLib... | 0 | Kotlin | 0 | 0 | 156a5254210cc346b8bab296848bbfaf2303749e | 933 | to-lay-the-foundations | BSD Zero Clause License |
AbanMagazinePhone/src/main/java/com/abanabsalan/aban/magazine/Utils/InApplicationReview/InApplicationReviewProcess.kt | eliasdfazel | 273,935,454 | false | {"Kotlin": 441473, "Java": 155498, "JavaScript": 4576} | /*
* Copyright © 2022 By Geeks Empire.
*
* Created by <NAME> on 4/25/22, 5:58 AM
* Last modified 6/8/21, 9:17 AM
*
* Licensed Under MIT License.
* https://opensource.org/licenses/MIT
*/
package com.abanabsalan.aban.magazine.Utils.InApplicationReview
import android.content.Intent
import android.net.Uri
import ... | 6 | Kotlin | 1 | 3 | 1fa49502e9bb4898dda76f35ca97f94a31b11dcc | 2,527 | AbanMagazine | Apache License 2.0 |
innertube/src/main/kotlin/it/vfsfitvnm/innertube/requests/PlaylistPage.kt | Sagnik0684 | 861,208,877 | false | {"Kotlin": 713513} | package it.vfsfitvnm.innertube.requests
import io.ktor.client.call.body
import io.ktor.client.request.post
import io.ktor.client.request.setBody
import it.vfsfitvnm.innertube.Innertube
import it.vfsfitvnm.innertube.models.BrowseResponse
import it.vfsfitvnm.innertube.models.ContinuationResponse
import it.vfsfitvnm.inne... | 0 | Kotlin | 0 | 0 | d068ae496559b4f7cc7152e38de3483a12b0b8f0 | 3,590 | BuzzVibe | MIT License |
capitulo5/src/main/kotlin/5.15CalculosHipotenusa.kt | Meus-Livros-Lidos | 667,537,024 | false | null | //5.15 (Cálculos de hipotenusa) Defina um método de hipotenusa que calcula a hipotenusa de
//um triângulo retângulo quando os comprimentos dos outros dois lados são dados. O método deve receber dois argumentos do
// tipo double e retornar a hipotenusa como um double. Incorporar este método em um
//aplicativo que lê ... | 0 | Kotlin | 0 | 0 | 1436e215170b6c3bb344d9a26812ebf46fab321c | 1,297 | Kotlin-Como-Programar | MIT License |
src/commonMain/kotlin/nl/astraeus/css/properties/ScrollBehavior.kt | rnentjes | 413,056,107 | false | {"Kotlin": 117943} | package nl.astraeus.css.properties
class ScrollBehavior(
value: String
) : CssProperty(value) {
companion object {
val auto = ScrollBehavior("auto")
val smooth = ScrollBehavior("smooth")
val initial = ScrollBehavior("initial")
val inherit = ScrollBehavior("inherit")
}
}
| 0 | Kotlin | 0 | 0 | d2349c930846fec7a57c879cdacd931368dda965 | 296 | kotlin-css-generator | MIT License |
infra/src/main/kotlin/fr/sacane/jmanager/infrastructure/spi/adapters/ServerUserAdapter.kt | Sacane | 531,082,439 | false | {"Kotlin": 115428, "Vue": 43310, "TypeScript": 18019, "JavaScript": 602, "CSS": 134} | package fr.sacane.jmanager.infrastructure.spi.adapters
import fr.sacane.jmanager.domain.hexadoc.Adapter
import fr.sacane.jmanager.domain.hexadoc.Side
import fr.sacane.jmanager.domain.models.Password
import fr.sacane.jmanager.domain.models.User
import fr.sacane.jmanager.domain.models.UserId
import fr.sacane.jmanager.do... | 1 | Kotlin | 0 | 0 | 9238109ddfd0f25846eb8b9acb8e2ba19bb79eb5 | 2,405 | JManager | MIT License |
app/src/main/java/app/simple/inureunlocker/utils/MarketUtils.kt | MachPrimeRib | 593,582,419 | false | null | package app.simple.inureunlocker.utils
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.content.pm.ResolveInfo
import android.net.Uri
import android.os.Build
object MarketUtils {
/**
* Opens app's page o... | 0 | null | 0 | 0 | e8495b144510ebb7ae2670f653e98f60afbcaf48 | 2,918 | InureUnlocker | Apache License 2.0 |
android/src/com/android/tools/idea/run/deployment/liveedit/analysis/ComposeGroupTree.kt | JetBrains | 60,701,247 | false | {"Kotlin": 49550960, "Java": 35837871, "HTML": 1217714, "Starlark": 909188, "C++": 357481, "Python": 106384, "C": 71782, "Lex": 66732, "NSIS": 58538, "AIDL": 35382, "Shell": 26938, "CMake": 26798, "JavaScript": 18437, "Smali": 7580, "Batchfile": 6951, "RenderScript": 4411, "Makefile": 2495, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 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 app... | 3 | Kotlin | 219 | 921 | dbd9aeae0dc5b8c56ce2c7d51208ba26ea0f169b | 3,972 | android | Apache License 2.0 |
transform/src/main/java/io/github/wandroid/method/intercept/Method.kt | Wan-droid | 526,838,481 | false | {"Kotlin": 23259, "Java": 1237} | package io.github.wandroid.method.intercept
class Intercept {
var intercept = mutableListOf<Method>()
}
class Method {
lateinit var ownerClassName: String
var methods = mutableListOf<MethodDescriptor>()
}
class MethodDescriptor {
lateinit var name: String
var descriptor: String? = null
var in... | 0 | Kotlin | 0 | 1 | aaa420f805f3ce1d0380851d3f6dfaca75b000ef | 1,862 | method-interceptor | Apache License 2.0 |
TororoPluginAPI/src/main/java/tororo1066/tororopluginapi/script/action/ElifAction.kt | tororo1066 | 454,006,822 | false | {"Kotlin": 428754, "Java": 136} | package tororo1066.tororopluginapi.script.action
class ElifAction: IfAction("elif") {
} | 0 | Kotlin | 1 | 0 | 636725b653b5aad4868a973a0ec0cbc8e773807a | 89 | TororoPluginAPI | Apache License 2.0 |
jvm/src/main/kotlin/com/github/lagiilein/playground/jvm/TwoSum.kt | Lagiilein | 388,163,657 | false | null | package com.github.lagiilein.playground.jvm
import com.github.lagiilein.playground.jvm.exception.NoSolutionException
/**
* [https://leetcode.com/problems/two-sum/]
*/
fun twoSum(nums: IntArray, target: Int): IntArray {
for (i in nums.indices) {
for (j in (i + 1) until nums.size) {
if (nums[... | 0 | Kotlin | 0 | 0 | a1bf2620f657994fb8193fd54c3a0ddfc95caeb7 | 787 | playground.kt | MIT License |
app/src/main/java/com/zsemberidaniel/egerbuszuj/interfaces/presenters/ITimetablePresenter.kt | ZsemberiDaniel | 90,173,136 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 24, "Ignore List": 2, "Batchfile": 1, "XML": 56, "Proguard": 1, "Java": 2, "Kotlin": 28} | package com.zsemberidaniel.egerbuszuj.interfaces.presenters
import android.support.annotation.IntRange
import com.zsemberidaniel.egerbuszuj.adapters.TimetableAdapter
import java.util.HashMap
/**
* Created by zsemberi.daniel on 2017. 05. 29..
*/
interface ITimetablePresenter : IBasicPresenter {
fun loadTimes()
... | 1 | null | 1 | 1 | 33363b4f9bc644cb3f12a649313219eeacf9856e | 605 | EgerBusz | Apache License 2.0 |
app/src/main/java/com/realitix/nectar/repository/StringKeyRepository.kt | Nectar-Project | 247,032,480 | false | null | package com.realitix.nectar.repository
import android.content.Context
import com.realitix.nectar.database.NectarDatabase
import com.realitix.nectar.database.entity.*
import com.realitix.nectar.util.EntityType
import com.realitix.nectar.util.NectarUtil
class StringKeyRepository(val context: Context, updater: EntityUp... | 2 | Kotlin | 0 | 0 | f220b9007fc5d3faf1d3fd9a842154de2a7d0cdf | 729 | nectar-android | Apache License 2.0 |
src/test/kotlin/ru/job4j/safe/BankServiceTest.kt | AlekseevArtem | 287,321,547 | false | null | package ru.job4j.safe
import io.kotlintest.shouldBe
import io.kotlintest.specs.StringSpec
class BankServiceTest : StringSpec({
"add User" {
val user = User("3434", "<NAME>")
BankService().apply {
addUser(user)
findByPassport("3434") shouldBe user
}
}
"add A... | 0 | Kotlin | 0 | 0 | 8b21e61b2a911dd19500dbc83a2ae49313cb3e1f | 1,407 | job4j-kotlin | Apache License 2.0 |
library-ui/src/main/java/com/pp/ui/widget/ThemeFloatingView.kt | PPQingZhao | 651,920,234 | false | {"Kotlin": 391209, "Java": 23883} | package com.pp.ui.widget
import android.content.Context
import android.content.res.Configuration
import android.util.AttributeSet
import android.util.DisplayMetrics
import androidx.constraintlayout.utils.widget.ImageFilterView
import androidx.lifecycle.ViewTreeLifecycleOwner
import androidx.lifecycle.lifecycleScope
im... | 0 | Kotlin | 0 | 1 | fa136caa315c4eab80e0d86ce9ee2a210cda6fec | 2,089 | WanAndroid-kotlin | Apache License 2.0 |
core/src/main/kotlin/notion/api/v1/model/common/SyncedFrom.kt | seratch | 367,397,489 | false | null | package notion.api.v1.model.common
data class SyncedFrom
@JvmOverloads
constructor(
val type: String? = null,
val blockId: String? = null,
) : Icon
| 10 | Kotlin | 18 | 96 | f2ce512e3d7d3000cbe20e184435437087f7e13f | 157 | notion-sdk-jvm | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/apigatewayv2/CorsPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.apigatewayv2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.apigatewayv2.CfnApi
@Generated
public fun buildCorsProperty(initializer: @AwsCdkDsl CfnApi.CorsProperty.Builder.() -> Unit):
... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 403 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/xmartlabs/gong/domain/usecase/GetLocationUseCase.kt | xmartlabs | 258,843,640 | false | {"Kotlin": 90641, "Shell": 5196} | package com.xmartlabs.gong.domain.usecase
import com.dropbox.android.external.store4.StoreResponse
import com.xmartlabs.gong.data.model.Location
import com.xmartlabs.gong.domain.repository.LocationRepository
import com.xmartlabs.gong.domain.usecase.common.FlowStoreCoroutineUseCase
import kotlinx.coroutines.CoroutineDi... | 8 | Kotlin | 5 | 89 | 5ac14c809c4ebd12e378b3ed66df34adc839e3dc | 695 | gong | MIT License |
de.fhdo.lemma.model_processing/src/main/kotlin/de/fhdo/lemma/model_processing/builtin_phases/code_generation/CodeGenerationPropertyProviderI.kt | SeelabFhdo | 204,692,764 | false | {"Markdown": 18, "Text": 7, "Ignore List": 2, "Groovy": 1, "INI": 213, "Java Properties": 56, "XML": 181, "Maven POM": 71, "JAR Manifest": 49, "Xtend": 356, "Java": 917, "GAP": 10, "Gradle Kotlin DSL": 47, "Shell": 72, "Gradle": 7, "Batchfile": 29, "Kotlin": 223, "Dockerfile": 19, "YAML": 11, "Makefile": 3, "HTML": 9, ... | package de.fhdo.lemma.model_processing.builtin_phases.code_generation
/**
* Interface to be implemented by code generation property providers.
*
* @author [<NAME>](mailto:<EMAIL>)
*/
interface CodeGenerationPropertyProviderI {
fun getProperties() : Map<String, String>
} | 32 | Java | 8 | 31 | 2e9ccc882352116b253a7700b5ecf2c9316a5829 | 279 | lemma | MIT License |
uiCompose/src/commonMain/kotlin/AppScreen.kt | ibenabdallah | 748,016,150 | false | null | import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Icon
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
imp... | 0 | null | 1 | 70 | 0fa15b49848f9f6138f0e65040c2fab7149aabd3 | 3,510 | the-movie-db | Apache License 2.0 |
app/src/main/java/com/example/myapplicationlplpl/RandomArray.kt | burakselcuk1 | 590,485,441 | false | null | package com.example.myapplicationlplpl
import kotlin.random.Random
fun main() {
val amplititudes = IntArray(10) { Random.nextInt(0, 10) }.asList()
println(amplititudes)
var count = 0
amplititudes.forEach {
if (it > 5)
count += 1
}
println(count)
} | 0 | Kotlin | 0 | 0 | 658cc2c98f54f1c99097bca6f5e0da799b0eb675 | 297 | Data-Structure-7 | The Unlicense |
dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/pragma/usecases/GetTableInfoUseCase.kt | jakoss | 331,248,865 | true | {"Kotlin": 356476} | package com.infinum.dbinspector.domain.pragma.usecases
import com.infinum.dbinspector.domain.Repositories
import com.infinum.dbinspector.domain.UseCases
import com.infinum.dbinspector.domain.pragma.models.TableInfoColumns
import com.infinum.dbinspector.domain.shared.models.Page
import com.infinum.dbinspector.domain.sh... | 0 | null | 0 | 0 | f01af7a2f74ec66b6befbdf86d8ac221a550ff86 | 1,103 | android_dbinspector | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/errorhandlinglayers/domain/error/Error.kt | raheemadamboev | 775,637,985 | false | {"Kotlin": 11034} | package xyz.teamgravity.errorhandlinglayers.domain.error
sealed interface Error | 0 | Kotlin | 0 | 0 | 6fbce0ed1be9a0272929195bcdb1250c9c140ec3 | 80 | error-handling-layers | Apache License 2.0 |
app/src/main/java/com/getcode/view/main/home/components/ReceivedKinConfirmation.kt | code-payments | 723,049,264 | false | null | package com.getcode.view.main.home.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compos... | 4 | null | 11 | 12 | 46d21ee4cda087fe6914cf51e871be16812db041 | 2,505 | code-android-app | MIT License |
app/src/main/java/com/example/topper/presentation/Subject/SubjectScreen.kt | IAMISHWOR | 818,511,313 | false | {"Kotlin": 158810} | package com.example.topper.presentation.Subject
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compos... | 0 | Kotlin | 0 | 1 | 80e2a7e430fc12341fd7aa727fd4ddeaeeddd0ce | 13,496 | Topper | Apache License 2.0 |
src/main/kotlin/me/ddivad/keeper/commands/GeneralCommands.kt | philobbe | 365,785,931 | true | {"Kotlin": 18935, "Dockerfile": 270, "Shell": 64} | package me.ddivad.keeper.commands
import me.ddivad.keeper.dataclasses.Configuration
import me.ddivad.keeper.extensions.requiredPermissionLevel
import me.ddivad.keeper.services.Permission
import me.jakejmattson.discordkt.api.arguments.MessageArg
import me.jakejmattson.discordkt.api.dsl.commands
fun generalCommands(con... | 0 | null | 0 | 0 | abd988e5f002574203ec7973a9c781533ae7bd89 | 877 | keeper | MIT License |
core-arch-mvvm-databinding-nav/src/main/kotlin/cz/kotox/core/arch/Dialog.kt | kotoMJ | 170,925,605 | false | null | package cz.kotox.core.arch
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
object Dialog {
fun simpleDialog(
@StringRes
message: Int,
@StringRes
title: Int? = null,
@StringRes
positiveButtonText: Int? = null,
@StringRes
neutralButtonText: Int? = null,
@StringRes
negat... | 2 | Kotlin | 0 | 0 | 9a1346e49802fec162f4c64f7e17448c12a716f5 | 1,646 | kotox-android | MIT License |
core/src/main/java/dev/forcecodes/truckme/core/model/LatLngTruckMeImpl.kt | forceporquillo | 403,934,320 | false | {"Kotlin": 465111} | package dev.forcecodes.truckme.core.model
data class LatLngTruckMeImpl(val lat: Double, val lng: Double) {
override fun toString(): String {
return String.format("%.6f,%.6f", lat, lng)
}
} | 0 | Kotlin | 1 | 3 | 54ac8235c4920abfd0a2cd5ded5db56cd7c392e3 | 197 | truck-me-android | Apache License 2.0 |
reactive-albums-api/src/main/kotlin/nl/juraji/reactive/albums/query/projections/repositories/ContentHashRepository.kt | Juraji | 290,577,996 | false | null | package nl.juraji.reactive.albums.query.projections.repositories
import nl.juraji.reactive.albums.query.projections.ContentHashProjection
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
import or... | 0 | Kotlin | 0 | 1 | 205927ceb1ce19e27e2b2aa83f61eeda968613d1 | 942 | reactive-albums | MIT License |
app/src/main/kotlin/nz/co/chrisdrake/tv/data/database/ChannelDao.kt | Chris-Drake | 90,230,831 | false | null | package nz.co.chrisdrake.tv.data.database
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.OnConflictStrategy
import android.arch.persistence.room.Query
import io.reactivex.Flowable
@Dao interface ChannelDao {
@Query("SELECT * FROM channel ORD... | 0 | Kotlin | 0 | 0 | 853580b91eb41f573b2f658f4dd9a21adf00fbc1 | 1,022 | tv | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.