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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/test/kotlin/examples/kotlin/ktor/login/OAuth2LoginAppTest.kt | navikt | 235,432,421 | false | null | package examples.kotlin.ktor.login
import io.kotest.assertions.asClue
import io.kotest.matchers.shouldBe
import io.ktor.client.request.prepareGet
import io.ktor.server.application.Application
import io.ktor.server.engine.ApplicationEngine
import io.ktor.server.engine.embeddedServer
import io.ktor.server.netty.Netty
im... | 8 | Kotlin | 57 | 70 | a2201da1c4ca42298b7adfd0e986512d451f1a84 | 3,059 | mock-oauth2-server | MIT License |
thirdparty/controlsfx-layouts/tests/src/org/controlsfx/control/InfoOverlayTest.kt | hendraanggrian | 102,934,147 | false | null | package ktfx.controlsfx.layouts
import ktfx.layouts.KtfxPane
import com.hendraanggrian.ktfx.test.LayoutsTest
import org.controlsfx.control.InfoOverlay
import kotlin.test.assertNull
class InfoOverlayTest : LayoutsTest<KtfxPane, InfoOverlay>() {
override fun manager() = KtfxPane()
override fun KtfxPane.childCo... | 1 | null | 2 | 15 | ea4243fb75edb70d6710e7488fa08834084f6169 | 602 | ktfx | Apache License 2.0 |
android/src/main/kotlin/tech/soit/quiet/player/PlayMode.kt | boyan01 | 203,903,720 | false | null | package app.toarbit.muse_player.player
/**
*
* PlayMode of MusicPlayer
*
* @author 杨彬
*/
sealed class PlayMode(
val rawValue: Int
) {
companion object {
fun valueOf(value: Int): PlayMode = when (value) {
0 -> Shuffle
1 -> Single
2 -> Sequence
els... | 4 | null | 31 | 77 | 434e6fdc79a81d1a2a0877339ae29004c0f32734 | 547 | flutter-music-player | MIT License |
src/main/kotlin/org/arend/tracer/ArendTraceProcess.kt | JetBrains | 96,068,447 | false | null | package org.arend.tracer
import com.intellij.execution.ui.RunnerLayoutUi
import com.intellij.execution.ui.layout.LayoutAttractionPolicy
import com.intellij.execution.ui.layout.LayoutViewOptions
import com.intellij.execution.ui.layout.PlaceInGrid
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSyst... | 68 | null | 13 | 90 | 7a6608a2e44369e11c5baad3ef2928d6f9c971b2 | 10,169 | intellij-arend | Apache License 2.0 |
libs/state-manager/state-manager-api/src/main/kotlin/net/corda/libs/statemanager/api/Metadata.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.libs.statemanager.api
/**
* Metadata key used to store the actual State Type, if relevant.
*
* TODO-[CORE-16416]: remove once Isolated State Managers per State Type has been implemented.
*/
const val STATE_TYPE = "state.type"
/**
* Map that allows only primitive types to be used as values.
*/
... | 83 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 1,740 | corda-runtime-os | Apache License 2.0 |
app/src/androidMain/kotlin/org/androidaudioplugin/composeaudiocontrols/demoapp/MainActivity.kt | atsushieno | 648,495,810 | false | null | package org.androidaudioplugin.composeaudiocontrols.demoapp
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.OnBackPressedCallback
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.co... | 0 | null | 0 | 8 | 2624d445c05c16611c6804a1a3d41efa882036bf | 1,921 | compose-audio-controls | MIT License |
fuzionSDK/src/commonMain/kotlin/com/mayonlabs/fuzion_sdk/entity/MixtureSetting.kt | cindzky | 322,179,154 | false | null | package com.mayonlabs.fuzion_sdk.entity
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class MixtureSetting(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: String,
@SerialName("slug")
val slug: String?,
@SerialName("des... | 0 | Kotlin | 0 | 0 | 9cd2c6ce423a3237a973f476f1315c020c098498 | 477 | FuzionSDK | Apache License 2.0 |
stripe/src/main/java/com/stripe/android/view/CountryUtils.kt | swdreams | 220,836,994 | false | null | package com.stripe.android.view
import java.util.Locale
internal object CountryUtils {
private val NO_POSTAL_CODE_COUNTRIES =
arrayOf("AE", "AG", "AN", "AO", "AW", "BF", "BI", "BJ", "BO", "BS", "BW", "BZ", "CD", "CF", "CG", "CI", "CK", "CM", "DJ", "DM", "ER", "FJ", "GD", "GH", "GM", "GN", "GQ", "GY", "HK... | 0 | null | 1 | 2 | 413c85d6213d894510cc78684287783e36eeb53b | 1,565 | stripe-android | MIT License |
app/src/main/java/com/example/weatherens/data/remote/model/main/ApiCurrentWeather.kt | akrnch | 338,175,865 | false | null | package com.example.weatherens.data.remote.model.main
import com.example.weatherens.data.local.WeatherEntity
import com.example.weatherens.data.remote.model.ApiLocation
import com.example.weatherens.data.remote.model.ApiWeather
import com.google.gson.annotations.SerializedName
data class ApiCurrentWeather (
@Seri... | 0 | Kotlin | 0 | 1 | 293a566b90fcd205201706bf16c7f2ab8bfd8b5a | 938 | weatherens | Apache License 2.0 |
src/main/kotlin/io/goauthentik/api/models/TokenModel.kt | goauthentik | 687,459,450 | false | {"Kotlin": 3862001, "Go": 1227, "Makefile": 859} | /**
* authentik
*
* Making authentication simple.
*
* The version of the OpenAPI document: 2023.8.3
* Contact: <EMAIL>
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"Enum... | 1 | Kotlin | 0 | 0 | e154ce74126d3e0c94e1e2583f45396f531d1187 | 1,215 | client-kotlin | Info-ZIP License |
backend/src/main/kotlin/at/ac/tuwien/waecm/ss18/group09/BackendApplication.kt | fuvidani | 125,189,492 | false | null | package at.ac.tuwien.waecm.ss18.group09
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
/**
* <h4>About this class</h4>
*
* <p>Description</p>
*
* @author <NAME>
* @version 1.0.0
* @since 1.0.0
*/
@SpringBootApplication
class BackendApplica... | 0 | Kotlin | 3 | 2 | 46edad80694a5238715c99afed463a49e02732b4 | 501 | web-app-engineering | MIT License |
src/test/resources/examples/externalReferences/aggressive/models/ClientModels.kt | cjbooms | 229,844,927 | false | {"Kotlin": 874094, "Handlebars": 4874} | package examples.externalReferences.aggressive.models
import com.fasterxml.jackson.`annotation`.JsonAnyGetter
import com.fasterxml.jackson.`annotation`.JsonAnySetter
import com.fasterxml.jackson.`annotation`.JsonIgnore
import com.fasterxml.jackson.`annotation`.JsonProperty
import com.fasterxml.jackson.`annotation`.Jso... | 33 | Kotlin | 41 | 154 | b95cb5bd8bb81e59eca71e467118cd61a1848b3f | 7,358 | fabrikt | Apache License 2.0 |
Jetsurvey/app/src/main/java/com/example/compose/jetsurvey/signinsignup/UserRepository.kt | android | 211,288,349 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 66 | null | 4 | 9,752 | 82e5bf054680503726fd8a80039606d80a51bca8 | 1,654 | compose-samples | Apache License 2.0 |
kase/src/main/kotlin/com/rickbusarow/kase/overloads/Kase10.kt | rickbusarow | 692,975,358 | false | {"Kotlin": 1086813, "Shell": 4276} | /*
* Copyright (C) 2023 <NAME>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 1 | Kotlin | 0 | 0 | dd8ec55bc3e52932739cd1e5a526fcc3821fa410 | 21,117 | kase | Apache License 2.0 |
app/src/main/java/io/github/bkmioa/nexusrss/model/Item.kt | bkmioa | 100,779,791 | false | null | package io.github.bkmioa.nexusrss.model
import io.github.bkmioa.nexusrss.Settings
import org.simpleframework.xml.Attribute
import org.simpleframework.xml.Element
import org.simpleframework.xml.Root
import java.io.Serializable
@Root(strict = false)
class Item : Serializable {
companion object {
private val... | 0 | Kotlin | 1 | 6 | 94e1a1dd14daa8a4a3bc03b8f01e0ba31af90d3c | 2,169 | NexusRss | Apache License 2.0 |
app/src/main/java/uk/co/alt236/bluetoothconnectionlog/ui/detail/recycler/LogRecyclerAdapter.kt | alt236 | 196,390,058 | false | null | package uk.co.alt236.bluetoothconnectionlog.ui.detail.recycler
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.fragment.app.FragmentActivity
import androidx.recyclerview.widget.RecyclerView
import uk.co.alt236.bluetoothconnectionlog.db.entities.LogEntry
import uk.co.alt236.bluetoothcon... | 0 | Kotlin | 2 | 1 | 51c7f8cbd70165ba089d469a0901fe472d71f3d4 | 1,131 | bluetooth-connection-log | Apache License 2.0 |
http4k-core/src/testFixtures/kotlin/org/http4k/routing/RoutingHttpHandlerContract.kt | http4k | 86,003,479 | false | null | package org.http4k.routing
import com.natpryce.hamkrest.absent
import com.natpryce.hamkrest.and
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.present
import org.http4k.core.Filter
import org.http4k.core.Method.GET
import org.http4k.core.Request
import org.http4k.core.Status.Companion.N... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 3,752 | http4k | Apache License 2.0 |
src/main/kotlin/anissia/domain/session/service/DoTokenLogin.kt | anissia-net | 319,510,882 | false | {"Kotlin": 248254, "HTML": 5480, "HCL": 794} | package anissia.domain.session.service
import anissia.domain.session.model.DoTokenLoginCommand
import anissia.domain.session.model.LoginInfoItem
import anissia.domain.session.model.Session
import anissia.shared.ResultWrapper
interface DoTokenLogin {
fun handle(cmd: DoTokenLoginCommand, session: Session): ResultWr... | 3 | Kotlin | 4 | 13 | 7266b0843f631ef0d4b154802cf83e42a2309a99 | 343 | anissia-core | Creative Commons Attribution 4.0 International |
src/main/kotlin/com/hmlr/api/Server.kt | LandRegistry | 167,032,293 | false | null | package com.hmlr.api
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import kotlin.concurrent.thread
/**
* Our Spring Boot application.
*/
@SpringBootApplication
open class Server
/**
* Starts our Spring Boot application.
*/
fun main(args: Ar... | 0 | Kotlin | 3 | 0 | 3849cdb402a01bbaa3bf34710646e51ee2325d0e | 1,013 | digital-street-lender-api | MIT License |
nlp/front/storage-mongo/target/generated-sources/kapt/compile/fr/vsct/tock/nlp/front/shared/build/ModelBuild_Deserializer.kt | cooksane | 151,793,390 | true | {"Kotlin": 2507910, "TypeScript": 358055, "HTML": 140949, "CSS": 33484, "JavaScript": 5174, "Shell": 1591} | package fr.vsct.tock.nlp.front.shared.build
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.core.JsonToken
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.deser.std.StdDeserializer
import c... | 0 | Kotlin | 0 | 0 | cd5c55e99cda91b5f7d790503de88137d3a3cc3c | 3,079 | tock | Apache License 2.0 |
juice/protocol/src/main/kotlin/com/linecorp/sample/juice/protocol/Juice.kt | yuinacor | 250,445,765 | true | {"Kotlin": 11744} | package com.linecorp.sample.juice.protocol
data class Juice(val name: String)
| 0 | null | 0 | 0 | 874abe4e4703ab65ce52c5ce0f4c84b0063e4384 | 79 | gradle-multi-project-support-sample | Freetype Project License |
app/src/main/java/com/example/motionlayout/LeftToRightAnimationActivity.kt | saeed-younus | 194,558,077 | false | null | package com.example.motionlayout
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_left_to_right_animation.*
class LeftToRightAnimationActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate... | 0 | Kotlin | 9 | 87 | 06a226155228a5bda0838c36f7dc09ed50261a35 | 759 | motion-layout-examples | Apache License 2.0 |
app/src/main/java/br/com/iesb/tarefas/TarefaAdapter.kt | matheusdepaula | 128,274,126 | false | null | package br.com.iesb.tarefas
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.tarefa_cell.view.*
import java.text.SimpleDateFormat
import java.util.*
/**
* Created by matheus.psousa on 05/04/20... | 0 | Kotlin | 0 | 0 | 60dc75f050823fc1e485889ee320557800831807 | 2,180 | kotlin_example_1 | Apache License 2.0 |
formatters/src/commonMain/kotlin/lexi/JsonLogFormatter.kt | aSoft-Ltd | 592,348,487 | false | {"Kotlin": 36184} | package lexi
class JsonLogFormatter(private val options: JsonLogFormatterOptions = JsonLogFormatterOptions()) : LogFormatter {
override fun format(log: Log) = buildMap {
put("level", log.level.name)
put("message", log.message)
if (options.source) {
put("source", log.source)
... | 0 | Kotlin | 0 | 0 | cd3aaba761fc484cc5c5bba0dde0e19a396520e1 | 709 | lexi | MIT License |
src/main/kotlin/uk/matvey/slon/repo/RepoKit.kt | msmych | 809,301,120 | false | {"Kotlin": 56267} | package uk.matvey.slon.repo
import uk.matvey.slon.RecordReader
import uk.matvey.slon.access.AccessKit.deleteFrom
import uk.matvey.slon.access.AccessKit.insertInto
import uk.matvey.slon.access.AccessKit.insertReturningOne
import uk.matvey.slon.access.AccessKit.insertReturning
import uk.matvey.slon.access.AccessKit.inse... | 0 | Kotlin | 0 | 0 | 20c373bbb1dd4cdbb1b8f501e734c09407c4bbb3 | 2,842 | slon | Apache License 2.0 |
app/src/main/java/com/example/fit_x_logger_android/activities/MainActivity.kt | robert-solomon12 | 315,686,383 | false | null | package com.example.fit_x_logger_android.activities
import android.app.DatePickerDialog
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.Toast
import com.example.fi... | 0 | Kotlin | 0 | 1 | 1fec835381aeb07e394c760017f3b708492edc43 | 4,297 | FIT-X-LOGGER-ANDROID | MIT License |
src/test/kotlin/Day14Test.kt | N-Silbernagel | 573,145,327 | false | {"Kotlin": 118156} | package test
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class Day14Test: StringSpec ({
val testInput = "498,4 -> 498,6 -> 496,6\n" +
"503,4 -> 502,4 -> 502,9 -> 494,9"
"part 1 test input" {
val output = Day14.part1(
testInput
... | 0 | Kotlin | 0 | 0 | b0d61ba950a4278a69ac1751d33bdc1263233d81 | 537 | advent-of-code-2022 | Apache License 2.0 |
src/commonMain/kotlin/com/dxc/ssi/agent/wallet/indy/IndyTrustee.kt | dxc-technology | 259,322,339 | false | {"Kotlin": 598967, "Objective-C": 537589, "Objective-C++": 442889, "C": 238203, "Ruby": 12614, "Shell": 7187, "Swift": 1114} | package com.dxc.ssi.agent.wallet.indy
import com.dxc.ssi.agent.api.pluggable.wallet.Trustee
import com.dxc.ssi.agent.api.pluggable.wallet.WalletHolder
import com.dxc.ssi.agent.model.IdentityDetails
class IndyTrustee(walletHolder: WalletHolder) : Trustee | 3 | Kotlin | 6 | 5 | 9bede83e0358b16d6dc9459ccc2fd85541027b6c | 256 | ssi-mobile-sdk | Apache License 2.0 |
rxbinding/src/main/java/com/jakewharton/rxbinding4/widget/RadioGroupToggleCheckedConsumer.kt | JakeWharton | 32,775,739 | false | null | @file:JvmName("RxRadioGroup")
@file:JvmMultifileClass
package com.jakewharton.rxbinding3.widget
import androidx.annotation.CheckResult
import android.widget.RadioGroup
import io.reactivex.functions.Consumer
/**
* An action which sets the checked child of `view` with ID. Passing `-1` will clear
* any checked view.
... | 45 | null | 950 | 9,714 | 78f7ebdeb9dcf373abb9fc43bde838cfe2fef62a | 614 | RxBinding | Apache License 2.0 |
src/main/kotlin/ast/JsonString.kt | y9san9 | 673,971,849 | false | null | package ast
data class JsonString(val string: String) : JsonPrimitive
| 1 | Kotlin | 2 | 12 | 816319dad0f290a6f9fb7cb574ae501fecc635a6 | 71 | kotlin-simple-json | MIT License |
src/main/kotlin/ast/JsonString.kt | y9san9 | 673,971,849 | false | null | package ast
data class JsonString(val string: String) : JsonPrimitive
| 1 | Kotlin | 2 | 12 | 816319dad0f290a6f9fb7cb574ae501fecc635a6 | 71 | kotlin-simple-json | MIT License |
vector/src/main/java/im/vector/extensions/MatrixSdkExtensions.kt | LiMium | 119,702,511 | false | null | /*
* Copyright 2018 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 13 | null | 4 | 44 | 09bf4c527429fe2c8283c71988efa5796dcc854b | 2,981 | mini-vector-android | Apache License 2.0 |
app/src/main/java/com/galudino/sampleuiandroid/MainActivity.kt | galudino | 391,750,826 | false | {"Kotlin": 2141} | /**
* @file MainActivity.kt
* @brief Encapsulates MainActivity class
*
* @author <NAME>
* @date 26 Sep 2021
*/
package com.galudino.sampleuiandroid
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.galudino.sampleuiandroid.databinding.ActivityMainBinding
/**
* @class... | 0 | Kotlin | 0 | 0 | 0aa211fae8bb2c86883854f68c35ceb9a6d8d91d | 777 | SampleUIAndroid | MIT License |
core/framework/src/main/java/com/jojalvo/framework/base/network/DataState.kt | jose-ojalvo | 619,971,179 | false | null | package com.jojalvo.framework.base.network
/**
* @author jojalvo
* @since 2/5/23
* @email <EMAIL>
*/
sealed class DataState<out T> {
data class Success<out T>(val result: T) : DataState<T>()
data class Error(val error: Throwable) : DataState<Nothing>()
}
| 0 | Kotlin | 0 | 0 | 1e8528c9868aec7d08e6c3bee5ffbae07d0c769e | 274 | MobileChallenge | Apache License 2.0 |
src/main/kotlin/com/team4099/robot2022/commands/climber/TelescopingIdleCommand.kt | team4099 | 441,528,688 | false | {"Kotlin": 349929, "Shell": 191} | package com.team4099.robot2022.commands.climber
import com.team4099.robot2022.config.constants.TelescopingClimberConstants
import com.team4099.robot2022.subsystems.climber.TelescopingClimber
import edu.wpi.first.wpilibj2.command.CommandBase
import org.littletonrobotics.junction.Logger
class TelescopingIdleCommand(val... | 0 | Kotlin | 1 | 5 | 5fea34ad74f417f74017a396da277a6fa10d1e6c | 970 | RapidReact-2022 | MIT License |
DiscordBot/src/main/kotlin/dev/fstudio/mc_discord_bot/diskord/command/top/TopMessage.kt | Kamillaova | 463,396,605 | false | {"Kotlin": 78372} | package dev.fstudio.mc_discord_bot.diskord.command.top
import com.jessecorbett.diskord.api.channel.Embed
import com.jessecorbett.diskord.api.channel.EmbedField
import com.jessecorbett.diskord.api.channel.EmbedFooter
import dev.fstudio.mc_discord_bot.api.mcworldstats.common.response.Player
import dev.fstudio.mc_discord... | 0 | Kotlin | 0 | 1 | a935ae2b1831949a347c954c70c3df6628d3dde5 | 1,194 | Ellison | MIT License |
app/src/main/java/com/pokedex/illustratedbook/ui/screen/pokemon/PokemonViewModel.kt | li-lance | 424,505,324 | false | {"Kotlin": 63328} | package com.pokedex.illustratedbook.ui.screen.pokemon
import androidx.lifecycle.ViewModel
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.pokedex.illustratedbook.api.ApiService
import com.pokedex.illustratedbook.data.PokemonEntity
import com.pokedex.illustr... | 0 | Kotlin | 0 | 0 | a079caf341441efa3d611de8c90eadc668c3471c | 863 | PokedexIllustratedBook | Apache License 2.0 |
src/main/kotlin/cn/yiiguxing/plugin/translate/wordbook/WordBookToolWindowFactory.kt | YiiGuxing | 60,159,997 | false | null | package cn.yiiguxing.plugin.translate.wordbook
import cn.yiiguxing.plugin.translate.TranslationPlugin
import cn.yiiguxing.plugin.translate.adaptedMessage
import cn.yiiguxing.plugin.translate.message
import cn.yiiguxing.plugin.translate.ui.settings.TranslationConfigurable
import cn.yiiguxing.plugin.translate.util.*
imp... | 48 | Kotlin | 763 | 9,758 | 3a5cf29b7765e48ff828c23e3bb960aa72a583d4 | 6,368 | TranslationPlugin | MIT License |
domain/src/main/java/jp/kaleidot725/easycalc/domain/model/question/selector/QuestionSelector.kt | kaleidot725 | 727,725,457 | false | {"Kotlin": 288088, "Ruby": 106} | package jp.kaleidot725.easycalc.domain.model.question.selector
import jp.kaleidot725.easycalc.domain.model.question.generator.QuestionGenerator
import jp.kaleidot725.easycalc.domain.model.text.MathText
interface QuestionSelector {
fun select(text: MathText): QuestionGenerator
}
| 0 | Kotlin | 0 | 0 | e6ed3eb42b6fad739e42be77eebd9619874ae548 | 285 | EasyCalc | MIT License |
src/test/kotlin/com/adrienben/tools/gltf/validation/ValidationTest.kt | adrien-ben | 119,737,332 | false | null | package com.adrienben.tools.gltf.validation
import com.adrienben.tools.gltf.models.*
import org.junit.Test
import kotlin.test.assertFailsWith
/**
* Test class for [Validator]
*/
class ValidationTest {
private val validAsset = AssetRaw(version = "2.0")
@Test
fun itShouldFailOnVersionError() = itShouldF... | 0 | Kotlin | 3 | 3 | 0e692547afe057555670229b59be957da3a1089a | 69,329 | gltf-loader | MIT License |
jvb/src/main/kotlin/org/jitsi/videobridge/octo/config/OctoRtpSender.kt | jitsi | 9,657,943 | false | null | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 175 | null | 934 | 2,576 | 046d1193a7a0369bc71a486007a64a6ea31f5637 | 4,389 | jitsi-videobridge | Apache License 2.0 |
mobile/src/androidTest/java/com/google/samples/apps/iosched/tests/SetPreferencesRule.kt | google | 18,347,476 | false | null | /*
* Copyright 2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 77 | null | 6259 | 21,755 | 738e1e008096fad5f36612325275e80c33dbe436 | 2,568 | iosched | Apache License 2.0 |
src/main/Interval.kt | UrielSarrazin | 243,283,788 | false | null | enum class Interval(val semitones: Int) {
UNISON(0),
MINOR_SECOND(1),
MAJOR_SECOND(2),
MINOR_THIRD(3),
MAJOR_THIRD(4),
PERFECT_FOURTH(5),
DIMINISHED_FIFTH(6),
PERFECT_FIFTH(7),
AUGMENTED_FIFTH(8),
MAJOR_SIXTH(9),
MINOR_SEVENTH(10),
MAJOR_SEVENTH(11),
OCTAVE(12);
... | 1 | Kotlin | 0 | 0 | 407934faeafd420244d37be9f03b49b8e1b40bf9 | 858 | chords | Apache License 2.0 |
src/test/kotlin/no/nav/bidrag/cucumber/backend/FellesTestdataEgenskaper.kt | navikt | 213,854,393 | false | null | package no.nav.bidrag.cucumber.backend
import io.cucumber.java.no.Gitt
import io.cucumber.java.no.Og
import no.nav.bidrag.cucumber.backend.dokument.AvvikDataMottaksregistrertJp
import no.nav.bidrag.cucumber.backend.dokument.RestTjenesteTestdata
import org.assertj.core.api.Assertions.assertThat
import org.springframewo... | 1 | Kotlin | 0 | 1 | 0838cfad100e4b4b2c91fc783412006bb17dd64f | 3,726 | bidrag-cucumber-backend | MIT License |
src/main/kotlin/com/polydus/aoc19/Day1.kt | Polydus | 160,193,832 | false | null | package com.polydus.aoc19
import kotlin.math.floor
class Day1: Day(1) {
init {
partTwo()
}
fun partOne(){
var total = 0
input.forEach {
val mass = (floor(it.toDouble() / 3f) - 2).toInt()
total += mass
}
println(total)
}
fun partTw... | 0 | Kotlin | 0 | 0 | e510e4a9801c228057cb107e3e7463d4a946bdae | 798 | advent-of-code-2018 | MIT License |
detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/Detekt.kt | niraj8 | 272,693,530 | true | {"Kotlin": 1474242, "Groovy": 3832, "Shell": 1055, "HTML": 698} | package io.gitlab.arturbosch.detekt
import io.gitlab.arturbosch.detekt.extensions.CustomDetektReport
import io.gitlab.arturbosch.detekt.extensions.DetektReportType
import io.gitlab.arturbosch.detekt.extensions.DetektReports
import io.gitlab.arturbosch.detekt.internal.configurableFileCollection
import io.gitlab.arturbo... | 0 | null | 0 | 1 | 8536e848ec2d4470c970442a8ea4579937b4b2d8 | 9,822 | detekt | Apache License 2.0 |
src/main/kotlin/com/figure/gradle/semver/SemverExtension.kt | FigureTechnologies | 496,001,309 | false | null | /*
* Copyright (C) 2024 Figure Technologies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 2 | null | 2 | 15 | 0c5f9d2beb60d980fa9f2a159c7cc6bc8865702c | 1,527 | gradle-semver-plugin | Apache License 2.0 |
src/main/kotlin/org/domaindrivenarchitecture/provs/framework/core/YamlUtils.kt | DomainDrivenArchitecture | 671,424,521 | false | {"Kotlin": 403360, "Shell": 38541, "Python": 3745, "Vim Script": 457, "Dockerfile": 374} | package org.domaindrivenarchitecture.provs.framework.core
import com.charleskorn.kaml.Yaml
import com.charleskorn.kaml.YamlConfiguration
import kotlinx.serialization.serializer
import java.io.BufferedReader
import java.io.File
import java.io.FileReader
fun readFromFile(fileName: String): String {
return Buffered... | 0 | Kotlin | 0 | 1 | c0985afaccd1500185269892cecae82a0a8f4078 | 800 | provs | Apache License 2.0 |
core/src/main/kotlin/su/skaard/core/synchronization/handlers/VoiceChannelCreateHandler.kt | ya0igoddess | 531,925,689 | false | {"Kotlin": 55723, "CSS": 554, "Dockerfile": 104} | package su.skaard.core.synchronization.handlers
import dev.kord.core.event.Event
import dev.kord.core.event.channel.VoiceChannelCreateEvent
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
import su.skaard.core.handlers.DiscordEventHandler
import su.skaard.c... | 0 | Kotlin | 0 | 2 | 33cd9fabff08a34caa4a28940d857018d582ba35 | 711 | skaard | MIT License |
gradle-plugin/src/test/java/app/cash/better/dynamic/features/BetterDynamicFeaturesPluginTest.kt | cashapp | 554,843,721 | false | {"Kotlin": 242855} | /*
* Copyright (C) 2023 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 5 | Kotlin | 3 | 80 | a4afddeb6b7b4fcc29e422a9d25bfadb8288adc1 | 68,918 | better-dynamic-features | Apache License 2.0 |
app/src/main/kotlin/na/komi/kodesh/ui/internal/BaseFragment2.kt | inshiro | 174,658,194 | false | null | package na.komi.kodesh.ui.internal
import android.app.Activity
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatTextView
import androidx.appcompat.widget.Toolbar
import androidx.constraintlayout.widget.Constrain... | 0 | Kotlin | 3 | 8 | 311fe579feb9948086e0523226c11a69dac26133 | 2,805 | kodesh | Apache License 2.0 |
appModules/appFeatures/api/src/commonMain/kotlin/dev/reprator/appFeatures/api/utility/InternetChecker.kt | TheReprator | 781,077,991 | false | {"Kotlin": 399028, "Swift": 5325, "HTML": 357, "JavaScript": 92} | package dev.reprator.appFeatures.api.utility
import kotlinx.coroutines.flow.StateFlow
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.native.HiddenFromObjC
@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
interface InternetChecker {
val networkStatus: StateFlow<Boolean>
} | 1 | Kotlin | 0 | 0 | 1468ecc36c791f643973d0fadae9f6154d726b84 | 307 | ExpenseManagment | Apache License 2.0 |
build-tools/agp-gradle-core/src/main/java/com/android/build/gradle/internal/tasks/ListingFileRedirectTask.kt | RivanParmar | 526,653,590 | false | {"Java": 48334972, "Kotlin": 8897422, "HTML": 109232, "Lex": 13233, "ReScript": 3232, "Makefile": 2194} | /*
* Copyright (C) 2021 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 | Java | 2 | 17 | a497291d77bba1aa34271808088fe1e8aab5efe2 | 3,904 | androlabs | Apache License 2.0 |
mqtt/src/main/kotlin/org/sheedon/mqtt/Dispatcher.kt | Sheedon | 253,232,370 | false | null | package org.sheedon.mqtt
import com.github.yitter.contract.IIdGenerator
import com.github.yitter.contract.IdGeneratorOptions
import com.github.yitter.idgen.DefaultIdGenerator
import org.eclipse.paho.client.mqttv3.MqttMessage
import org.sheedon.mqtt.*
import org.sheedon.mqtt.internal.DataConverter
import org.sheedon.mq... | 0 | null | 3 | 6 | 82bfdf15b61f0cd08d3ff2f751e516d1116ce711 | 7,362 | MqttDispatcher | Apache License 2.0 |
java/java-tests/testSrc/com/intellij/java/codeInspection/Java9ModuleExportsPackageToItselfTest.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-2017 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... | 6 | null | 1 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 3,494 | intellij-community | Apache License 2.0 |
core/database/src/main/kotlin/com/google/samples/apps/nowinandroid/core/database/model/TopicFtsEntity.kt | Arturs1123 | 778,126,656 | 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 11 | null | 1 | 2 | b16bc73ea6d4c778d6bdc0fb0b19459674bc1cd8 | 1,353 | KotlinProject | Apache License 2.0 |
packages/server-core/src/test/kotlin/org/migor/feedless/plan/FeatureServiceTest.kt | damoeb | 314,677,857 | false | {"HTML": 3499376, "Kotlin": 1565240, "TypeScript": 647818, "SCSS": 67132, "TeX": 34128, "XSLT": 11997, "JavaScript": 10350, "Shell": 4928, "Dockerfile": 3860, "PLpgSQL": 480} | package org.migor.feedless.plan
import kotlinx.coroutines.test.runTest
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.migor.feedless.AppProfiles
import org.migor.feedless.license.LicenseServic... | 15 | HTML | 25 | 235 | 52d57ee229026a5ffa6432e753bbe94328a7149b | 6,590 | feedless | Apache License 2.0 |
app/src/main/java/com/apzumi/challenge/data/GitHubRepository.kt | PaulHost | 351,137,583 | false | null | package com.apzumi.challenge.data
import com.apzumi.challenge.data.model.GitHubResponseItem
import io.reactivex.Flowable
import retrofit2.http.GET
interface GitHubRepository {
@GET("/repositories?since=25")
fun getRepositories(): Flowable<List<GitHubResponseItem>>
} | 0 | Kotlin | 0 | 0 | 604878f2394ffb58af4a97eda31302e9bab5932c | 276 | apzumi | MIT License |
app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ZipPageLoader.kt | Jays2Kings | 175,908,029 | false | null | package eu.kanade.tachiyomi.ui.reader.loader
import android.os.Build
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.ui.reader.model.ReaderPage
import eu.kanade.tachiyomi.util.lang.compareToCaseInsensitiveNaturalOrder
import eu.kanade.tachiyomi.util.system.ImageUtil
import rx.Observable
import ... | 92 | null | 71 | 974 | 928f7553bf800cbbc9006e7242f78741dfd64179 | 1,989 | tachiyomiJ2K | Apache License 2.0 |
app/src/main/java/com/vladislawfox/scout/domain/sources/UpcomingMoviesSource.kt | vladislawfox | 336,657,588 | false | null | package com.vladislawfox.scout.domain.sources
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.vladislawfox.scout.domain.model.Movie
import com.vladislawfox.scout.domain.usecases.movies.GetNowPlayingMoviesUseCase
import javax.inject.Inject
class NowPlayingMoviesSource @Inject construc... | 0 | Kotlin | 0 | 0 | 71357bb78e34164eca518230457a77c64a38b9c3 | 893 | Scout | MIT License |
advent-of-code-2022/src/main/kotlin/year_2022/Day03.kt | rudii1410 | 575,662,325 | false | {"Kotlin": 37749} | package year_2022
import util.Runner
fun main() {
fun getCharScore(ch: Char) = if (ch.isUpperCase()) (ch - 'A' + 1) + 26 else (ch - 'a' + 1)
fun MutableMap<Char, Int>.addScore(key: Char) {
this[key] = this.getOrDefault(key, 0) + 1
}
fun MutableMap<Char, Int>.calculate(minimum: Int): Int {
... | 1 | Kotlin | 0 | 0 | ab63e6cd53746e68713ddfffd65dd25408d5d488 | 1,260 | advent-of-code | Apache License 2.0 |
app-thunderbird/src/main/kotlin/net/thunderbird/android/provider/TbFeatureThemeProvider.kt | thunderbird | 1,326,671 | false | {"Kotlin": 4766001, "Java": 2159946, "Shell": 2768, "AIDL": 1946} | package net.thunderbird.android.provider
import androidx.compose.runtime.Composable
import app.k9mail.core.ui.compose.theme2.thunderbird.ThunderbirdTheme2
import app.k9mail.core.ui.theme.api.FeatureThemeProvider
class TbFeatureThemeProvider : FeatureThemeProvider {
@Composable
override fun WithTheme(content: ... | 846 | Kotlin | 2467 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 414 | thunderbird-android | Apache License 2.0 |
app/src/main/java/com/dialiax/sweeto/model/OrderDetails.kt | AnimeshNilawar | 765,803,067 | false | {"Kotlin": 76349} | package com.dialiax.sweeto.model
import android.os.Parcel
import android.os.Parcelable
import java.io.Serializable
import java.util.ArrayList
class OrderDetails():Serializable {
var userUid: String? = null
var userName: String? = null
var foodNames: MutableList<String>? = null
var foodImages: MutableL... | 0 | Kotlin | 1 | 2 | b84dd6c77be5eb09d26b336f7ca97c1ef1ecbaab | 2,817 | Sweeto-User-App | MIT License |
data/src/main/java/ca/bc/gov/data/datasource/local/entity/specialauthority/SpecialAuthorityEntity.kt | bcgov | 414,797,174 | false | {"Kotlin": 1368323, "Java": 582146} | package ca.bc.gov.data.datasource.local.entity.specialauthority
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey
import ca.bc.gov.common.model.DataSource
import ca.bc.gov.data.datasource.local.entity.PatientEntity
import java.time.Instant
/*
*... | 7 | Kotlin | 5 | 5 | dfb942bb07d2eb194e0d4438f45084210dd76d03 | 1,765 | myhealthBC-android | Apache License 2.0 |
server/src/main/com/broll/gainea/server/core/objects/impl/DemonKnight.kt | Rolleander | 253,573,579 | false | {"Gradle": 8, "Shell": 3, "Batchfile": 3, "Text": 5, "Java Properties": 3, "Ignore List": 1, "Markdown": 1, "YAML": 1, "XML": 7, "Java": 182, "Kotlin": 344, "INI": 2, "JSON": 1, "JavaScript": 2, "HTML": 1, "CSS": 1} | package com.broll.gainea.server.core.objects.impl
import com.broll.gainea.server.core.objects.monster.Monster
import com.broll.gainea.server.core.objects.monster.MonsterActivity.OFTEN
import com.broll.gainea.server.core.objects.monster.MonsterBehavior.AGGRESSIVE
import com.broll.gainea.server.core.player.Player
class... | 0 | Kotlin | 0 | 3 | ab47587c08ce2884269653a49c8fd8351cc4349f | 585 | Gainea | MIT License |
app/src/main/java/com/robert/banyai/wup/presentation/base/BaseViewHolder.kt | robertbanyai72 | 272,161,765 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 83, "XML": 31, "Java": 1} | package com.robert.banyai.wup.presentation.base
import android.view.View
import androidx.recyclerview.widget.RecyclerView
abstract class BaseViewHolder<I : AdapterItem>(itemView: View) : RecyclerView.ViewHolder(itemView) {
abstract fun bind(adapterItem: I)
} | 1 | null | 1 | 1 | 511bf026fac90226889fa09be2e55ae886b2665c | 264 | w.up_app | Apache License 2.0 |
src/commonMain/kotlin/WeakReference.kt | tomuvak | 520,667,059 | false | {"Kotlin": 5166, "Shell": 654} | package com.tomuvak.weakReference
/**
* A weak reference to the given [target]. The weak reference might be used to _try_ and regain a normal (= strong)
* reference to the target through [targetOrNull], which will return the original target if it has not been reclaimed
* by garbage collection (something a weak refe... | 0 | Kotlin | 0 | 1 | 8f588d7ac95cc8410a833604fb7d101c8b281ec9 | 717 | weak-reference | MIT License |
lib/src/main/kotlin/nolambda/stream/cleaningservice/utils/Logger.kt | esafirm | 425,140,620 | false | null | package nolambda.stream.cleaningservice.utils
class SimpleLogger : Logger {
companion object {
private const val ANSI_RESET = "\u001B[0m"
private const val ANSI_GREEN = "\u001B[32m"
private const val ANSI_YELLOW = "\u001B[33m"
private const val IS_DEBUG = true
}
override ... | 0 | Kotlin | 1 | 3 | cb092e635741e84fa659867af3227b6fe09900bb | 1,026 | android-cleaning-service | Apache License 2.0 |
app/src/main/java/com/dev/bins/daily/activity/BaseActivity.kt | devbins | 103,132,563 | false | {"Java": 41489, "Kotlin": 19443} | package com.dev.bins.daily.activity
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Toolbar
import android.transition.Explode
import android.transition.Slide
import android.view.MenuItem
/**
* Created by bin on 07/... | 1 | null | 1 | 1 | a949dc22b7d4fad41e7f7970e2886ac51c54dd6c | 1,349 | Daily | Apache License 2.0 |
src/main/kotlin/com/ruin/lsp/commands/project/run/MyProjectTaskManager.kt | Ruin0x11 | 121,824,068 | false | null | package com.ruin.lsp.commands.project.run
import com.intellij.openapi.compiler.CompileStatusNotification
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Pair
import com.intellij.task.*
import com.intellij.task.impl.AbstractProjectTask
import com.intellij.task.impl.ProjectTaskList
import co... | 24 | null | 26 | 322 | 50e6726d8535b5f00ef507db19272c551a694db4 | 3,758 | intellij-lsp-server | MIT License |
app/src/main/java/com/multithread/cocoon/presentation/list/TopStoriesViewHolder.kt | anbioc | 313,373,806 | false | {"Kotlin": 85851, "Java": 829} | package com.multithread.cocoon.presentation.list
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.multithread.cocoon.R
import com.multithread.cocoon.domain.model.TopStoryDomainEntity
import com.multithread.cocoon.exten... | 0 | Kotlin | 0 | 2 | aab440dfa558286f924e90d602bc72265843d618 | 2,131 | FlowCleanMVVM | MIT License |
app/src/main/kotlin/com/czbix/v2ex/common/NotificationStatus.kt | RedL0tus | 71,426,805 | false | null | package com.czbix.v2ex.common
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.support.annotation.IntDef
import android.support.v4.app.NotificationCompat
import android.support.v4.app.NotificationManagerCompat
import com.czbix.v2ex.AppCtx
import com.czbix.v2e... | 1 | null | 1 | 1 | dfaeb2ad9f961ff046924e6bfb9cd50e3397f35e | 3,222 | v2ex-android | Apache License 2.0 |
src/main/kotlin/no/nav/yrkesskade/meldingmottak/hendelser/JournalfoeringHendelseConsumer.kt | navikt | 413,400,372 | false | null | package no.nav.yrkesskade.meldingmottak.hendelser
import no.nav.joarkjournalfoeringhendelser.JournalfoeringHendelseRecord
import no.nav.yrkesskade.meldingmottak.services.JournalfoeringHendelseService
import no.nav.yrkesskade.meldingmottak.util.kallMetodeMedCallId
import org.springframework.kafka.annotation.KafkaListen... | 1 | Kotlin | 0 | 0 | 6ab936e3d9b2bd55f559bdc282009aada1bd10ca | 1,034 | yrkesskade-melding-mottak | MIT License |
src/main/kotlin/no/nav/tms/brannslukning/alert/VarselHendelseSubscribers.kt | navikt | 743,413,887 | false | {"Kotlin": 101241, "CSS": 8770, "Dockerfile": 148} | package no.nav.tms.brannslukning.alert
import no.nav.tms.kafka.application.JsonMessage
import no.nav.tms.kafka.application.Subscriber
import no.nav.tms.kafka.application.Subscription
class EksterntVarselStatusSubscriber(
private val alertRepository: AlertRepository,
) : Subscriber() {
override fun subscribe()... | 6 | Kotlin | 1 | 0 | 0cc54d21c6c27b1c7c787a569de52aa834632985 | 1,088 | tms-brannslukning | MIT License |
core/src/main/java/com/aliumujib/artic/di/modules/CacheModule.kt | aliumujib | 210,103,091 | false | {"Kotlin": 448725} | /*
* Copyright 2020 Abdul-Mujeeb Aliu
*
* 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 | Kotlin | 6 | 47 | ad986536632f532d0d24aa3847bdef33ab7a5d16 | 1,855 | Artic | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/CircleO.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
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.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,778 | icons | MIT License |
src/main/kotlin/org/sirekanyan/rknfreebot/command/Command.kt | sirekanian | 707,761,741 | false | {"Kotlin": 25193} | package org.sirekanyan.rknfreebot.command
import org.sirekanyan.rknfreebot.Controller
import org.telegram.telegrambots.meta.api.objects.Message
fun interface Command {
fun execute(controller: Controller, message: Message): Boolean
} | 0 | Kotlin | 0 | 0 | 57ce3785ee296f6b7f9f94b5826fb1f147119353 | 240 | rknfreebot | MIT License |
modules/core/src/main/java/de/deutschebahn/bahnhoflive/ui/station/timetable/TrainMessages.kt | dbbahnhoflive | 267,806,942 | false | null | /*
* SPDX-FileCopyrightText: 2020 DB Station&Service AG <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
package de.deutschebahn.bahnhoflive.ui.station.timetable
import de.deutschebahn.bahnhoflive.backend.ris.model.TrainInfo
import de.deutschebahn.bahnhoflive.backend.ris.model.TrainMovementInfo
class TrainMe... | 1 | null | 4 | 33 | 78bcee88dbf6aae9ded15998ac3c0448549c0b60 | 1,643 | dbbahnhoflive-android | Apache License 2.0 |
modules/core/src/main/java/de/deutschebahn/bahnhoflive/ui/station/timetable/TrainMessages.kt | dbbahnhoflive | 267,806,942 | false | null | /*
* SPDX-FileCopyrightText: 2020 DB Station&Service AG <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
package de.deutschebahn.bahnhoflive.ui.station.timetable
import de.deutschebahn.bahnhoflive.backend.ris.model.TrainInfo
import de.deutschebahn.bahnhoflive.backend.ris.model.TrainMovementInfo
class TrainMe... | 1 | null | 4 | 33 | 78bcee88dbf6aae9ded15998ac3c0448549c0b60 | 1,643 | dbbahnhoflive-android | Apache License 2.0 |
app/src/main/java/com/android/skip/WhitelistActivity.kt | GuoXiCheng | 506,451,823 | false | {"Kotlin": 130289, "TypeScript": 12715, "JavaScript": 289} | package com.android.skip
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime... | 23 | Kotlin | 77 | 2,212 | 7d0f5c0155431e4cfe4a5de99de0efd9c0b14a44 | 3,993 | SKIP | MIT License |
app/src/main/java/com/drs/dseller/feature_onboarding/presentation/screens/signup/SignUpBody.kt | raaja-sn | 704,140,729 | false | {"Kotlin": 307720} | @file:OptIn(ExperimentalMaterial3Api::class)
package com.drs.dseller.feature_onboarding.presentation.screens.signup
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.co... | 0 | Kotlin | 0 | 0 | 6fa26d3c90205bcf31fa8aebba26b3659799fbda | 6,797 | DSeller-Android | MIT License |
src/main/kotlin/br/com/zup/edu/pixkeymanagergrpc/KeyTypeEnum.kt | emersondevelops | 385,436,995 | true | {"Kotlin": 81135} | package br.com.zupacademy.nicolecatarina.pixkey
import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator
import org.hibernate.validator.internal.constraintvalidators.hv.br.CPFValidator
enum class KeyType {
CPF {
override fun validate(chave: String?): Boolean {
if (chave.... | 0 | Kotlin | 0 | 1 | 4f8c991eb4a62335f1842dd22c4cfa2e3e1da7e6 | 1,305 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
src/main/kotlin/com/alexeyodinochenko/tinkoffservice/dto/StocksDto.kt | GuardianOfPC | 576,609,848 | false | {"Kotlin": 9999} | package com.alexeyodinochenko.tinkoffservice.dto
import com.alexeyodinochenko.tinkoffservice.model.Stock
data class StocksDto(
val stocks: List<Stock>
) | 1 | Kotlin | 0 | 0 | 8afb55ae4194472673c45543313de9a072222688 | 158 | tinkoff-stock-service | Apache License 2.0 |
core/archive/src/main/kotlin/mihon/core/archive/ArchiveEntry.kt | mihonapp | 743,704,912 | false | {"Kotlin": 2940843} | package mihon.core.archive
class ArchiveEntry(
val name: String,
val isFile: Boolean,
)
| 72 | Kotlin | 447 | 9,867 | f3a2f566c8a09ab862758ae69b43da2a2cd8f1db | 97 | mihon | Apache License 2.0 |
matrix-sdk-crypto/src/main/java/org/matrix/androidsdk/crypto/cryptostore/db/CryptoFileStoreImporter.kt | matrix-org | 24,635,052 | false | null | /*
* Copyright 2018 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 31 | null | 142 | 373 | 68165b6ddbbea51524b5c7e6192d4ae4a0083ad3 | 9,123 | matrix-android-sdk | Apache License 2.0 |
VejdirektoratetSDK/src/test/java/dk/vejdirektoratet/vejdirektoratetsdk/UtilsTest.kt | Vejdirektoratet | 212,273,818 | false | null | /**
*
* VejdirektoratetSDK
*
* Created by <NAME> on 2019-11-21.
* Copyright © 2019 Vejdirektoratet. All rights reserved.
*/
package dk.vejdirektoratet.vejdirektoratetsdk
import com.google.android.gms.maps.model.LatLng
import com.google.android.gms.maps.model.LatLngBounds
import dk.vejdirektoratet.vejdirektor... | 0 | Kotlin | 0 | 3 | c2c4f7a633a1ee25b33c047a694033e867699441 | 4,990 | sdk-android | MIT License |
Kernl.Consumer/src/test/kotlin/nocache/impl/NoCacheMultiNullableParamPrimitiveReturnTest.kt | mattshoe | 825,957,770 | false | {"Kotlin": 344588, "Shell": 1045} | package nocache.impl
import org.mattshoe.shoebox.kernl.runtime.cache.nocache.NoCacheKernl
import kernl.org.mattshoe.shoebox.kernl.nocache.NoCacheMultiNullableParamPrimitiveReturnKernl
import nocache.NoCacheScenariosTest
// Multiple nullable different primitive parameters, primitive return
class NoCacheMultiNullablePa... | 10 | Kotlin | 1 | 9 | 9682fcafeb1dccd468443e1265eab55c05757e52 | 951 | kernl | Apache License 2.0 |
app/src/main/java/com/totallytim/randomreminders/database/Reminder.kt | OmanMkII | 261,074,632 | false | null | package com.totallytim.randomreminders.database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.totallytim.randomreminders.fromCalendar
import java.util.*
/**
* The Reminder database: a collection of the user's reminders that hold information about what the
* r... | 0 | Kotlin | 0 | 0 | f736ab6a05b3ada6f51a5c1e0a7d0d5abf2a11c0 | 1,548 | random-reminders | Apache License 2.0 |
src/main/kotlin/com/github/jk1/ytplugin/timeTracker/actions/StopTrackerAction.kt | JetBrains | 48,642,890 | false | null | package com.github.jk1.ytplugin.timeTracker.actions
import com.github.jk1.ytplugin.ComponentAware
import com.github.jk1.ytplugin.logger
import com.github.jk1.ytplugin.rest.TimeTrackerRestClient
import com.github.jk1.ytplugin.tasks.NoYouTrackRepositoryException
import com.github.jk1.ytplugin.tasks.YouTrackServer
import... | 26 | null | 16 | 56 | 210e10ec993ae44fa0472bed9705dc9aad5ec9e2 | 4,087 | youtrack-idea-plugin | Apache License 2.0 |
cvs-batch/src/main/kotlin/com/yapp/cvs/job/crawl/cu/CUProductCollectorTasklet.kt | YAPP-Github | 634,125,354 | false | null | package com.yapp.cvs.job.crawl.cu
import com.yapp.cvs.domain.collect.ProductRawDataVO
import com.yapp.cvs.domain.collect.application.ProductDataProcessor
import com.yapp.cvs.domain.enums.RetailerType
import com.yapp.cvs.support.CUProductCollectSupport
import com.yapp.cvs.support.JsoupHandler
import com.yapp.cvs.suppor... | 5 | Kotlin | 0 | 7 | 9610f8c6e3c2579a88195c17ea4401aac992f1ae | 3,170 | pyunlee-server | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/migration/PCRTestMigration.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.coronatest.migration
import dagger.Reusable
import de.rki.coronawarnapp.coronatest.server.CoronaTestResult
import de.rki.coronawarnapp.coronatest.type.PersonalCoronaTest
import de.rki.coronawarnapp.coronatest.type.RegistrationToken
import de.rki.coronawarnapp.coronatest.type.pcr.PCRCoronaT... | 6 | null | 516 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 4,130 | cwa-app-android | Apache License 2.0 |
shared/src/commonMain/kotlin/ui/mainScreen/NavigationDrawer.kt | Markable97 | 658,889,189 | false | null | package ui.mainScreen
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import and... | 0 | Kotlin | 0 | 1 | 01b18bf170eb206ffdf27bf71e7bcf6f62ab1e78 | 2,360 | SportCommunityKMM | Apache License 2.0 |
app/src/main/java/petrov/ivan/bsc/ui/listParty/features/FragmentListPartyModule.kt | peiwal | 289,732,500 | false | null | package petrov.ivan.bsc.ui.listParty.features
import dagger.Module
import dagger.Provides
import petrov.ivan.bsc.ui.adapters.PartyAdapter
@Module
class FragmentListPartyModule(private val itemClickListener: PartyAdapter.PartyListener) {
@Provides
@FragmentListPartyScope
fun partyAdapter(): PartyAdapter {... | 0 | Kotlin | 0 | 0 | dd61a1334130025e58409b559995c943a801323c | 376 | BSC_test | MIT License |
app/src/main/kotlin/com/mstoyanov/musiclessons/model/Lesson.kt | mstoyanovca | 121,074,676 | false | {"Kotlin": 114541} | package com.mstoyanov.musiclessons.model
import androidx.room.*
import androidx.room.ForeignKey.Companion.CASCADE
import com.mstoyanov.musiclessons.global.Functions.formatter
import java.io.Serializable
import java.time.LocalTime
@Entity(
tableName = "lesson",
foreignKeys = [ForeignKey(
entity = Stude... | 0 | Kotlin | 1 | 0 | 0219f81ef221ae85f96a6329dc8c1358f75dccb8 | 1,848 | music-lessons | MIT License |
flow-preferences-tests/src/androidTest/java/com/fredporciuncula/flow/preferences/tests/StringSetPreferenceTest.kt | tfcporciuncula | 216,426,553 | false | null | package com.tfcporciuncula.tests
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.runBlocking
import org.junit.Test
@ExperimentalCoroutinesApi
class StringSetPreferenceTest : BaseTest() {
@Test fun testDefaultValues() {
val preference... | 0 | null | 18 | 243 | 0b0d8250e51f4328239b75b46f0f80367247d92b | 961 | flow-preferences | Apache License 2.0 |
app/src/test/java/iced/egret/palette/CollectionUnitTest.kt | anticobalt | 189,680,733 | false | null | package iced.egret.palette
import iced.egret.palette.model.Folder
import iced.egret.palette.model.Picture
import org.junit.Test
class CollectionUnitTest {
private val name = "a name"
private val path = "a/path/to/a name"
@Test
fun folderInit() {
var folder = Folder(name, path)
asser... | 3 | Kotlin | 0 | 1 | 7c2ec61c1472e83b00b198696b17a7afa185b48c | 3,103 | palette | Apache License 2.0 |
plugin-bazel/src/main/kotlin/org/jetbrains/bazel/debug/configuration/StarlarkDebugConfigurationState.kt | JetBrains | 826,262,028 | false | {"Kotlin": 3064918, "Starlark": 370388, "Java": 165158, "Scala": 37245, "Python": 34754, "Lex": 17493, "Dockerfile": 8674, "Shell": 7379, "HTML": 1310, "Rust": 680, "Go": 428, "C++": 113} | package org.jetbrains.bazel.debug.configuration
import com.intellij.execution.configurations.CommandLineState
import com.intellij.execution.runners.ExecutionEnvironment
import com.intellij.openapi.project.Project
import kotlinx.coroutines.CompletableDeferred
import org.jetbrains.bsp.protocol.AnalysisDebugResult
import... | 2 | Kotlin | 18 | 45 | 1d79484cfdf8fc31d3a4b214655e857214071723 | 820 | hirschgarten | Apache License 2.0 |
arch/NetworkLayer/fake/src/main/java/module/network/fake/FakeNetworkDataSource.kt | KellyZ | 640,846,392 | false | null | package module.network.fake
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.decodeFromStream
import module.network.api.NetworkDataSource
import module.network.fake.util.Fak... | 0 | Kotlin | 0 | 0 | 41f00715f73e08fa899139b10427e8cb0be9a1e0 | 2,053 | AndroidModulesSample | Apache License 2.0 |
app/src/main/java/cz/ikem/dci/zscanner/persistence/SendJobDao.kt | ikem-cz | 183,602,578 | false | null | package cz.ikem.dci.zscanner.persistence
import androidx.lifecycle.LiveData
import androidx.room.*
@Dao
interface SendJobDao {
@Query("select * from send_jobs order by timestamp desc")
fun getAll(): LiveData<List<SendJob>>
@Query("select * from send_jobs order by timestamp desc")
fun getAllSync(): L... | 1 | Kotlin | 0 | 2 | c1a5d7a449f3fed3da429bda154428ecdb4a8d42 | 1,598 | zscanner-android | MIT License |
src/main/java/com/hip/akka/ActorCacheBuilder.kt | hip-property | 137,079,682 | false | {"Kotlin": 38020} | /*-
* =========================================================BeginLicense
* Akka Spring utils
* .
* Copyright (C) 2018 HiP Property
* .
* 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... | 0 | Kotlin | 0 | 0 | c683c6046caa3f7a9e525f5579454ea561d7bb10 | 1,957 | akka-spring | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.