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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vico/core/src/main/java/com/patrykandpatrick/vico/core/common/component/Shadow.kt | patrykandpatrick | 338,848,755 | false | {"Kotlin": 680666, "CSS": 166} | /*
* Copyright 2024 by Patryk Goworowski and Patrick Michalik.
*
* 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 ... | 12 | Kotlin | 130 | 2,132 | 7066e4bf88cdd1e4c57e1ab03d10354e5f640928 | 1,474 | vico | Apache License 2.0 |
app/src/main/java/stan/androiddemo/ProjectActivity.kt | DuckDeck | 97,593,471 | false | null | package stan.androiddemo
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.TextView
import kotlinx.android.synthetic.main.activity_project.*
import stan.androiddemo.project.Fi... | 1 | Kotlin | 40 | 120 | 4d8d12c1f0ef821a252a2265ae46d7b8ff61729a | 2,497 | AndroidDemo | MIT License |
app/src/main/java/com/dugaroverseas/features/lead/api/GetLeadRegProvider.kt | DebashisINT | 620,820,752 | false | null | package com.dugaroverseas.features.lead.api
import com.dugaroverseas.features.NewQuotation.api.GetQuotListRegRepository
import com.dugaroverseas.features.NewQuotation.api.GetQutoListApi
object GetLeadRegProvider {
fun provideList(): GetLeadListRegRepository {
return GetLeadListRegRepository(GetLeadListAp... | 0 | Kotlin | 0 | 0 | 848e7038b651935628b4d46e2da8f887a499866d | 339 | DugarOverseas | Apache License 2.0 |
idcard-verifier/src/main/java/me/bytebeats/idcard/formatter/IdCardUtil.kt | bytebeats | 401,354,570 | false | null | package me.bytebeats.idcard.formatter
import me.bytebeats.idcard.base.*
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
/**
* @Author bytebeats
* @Email <<EMAIL>>
* @Github https://github.com/bytebeats
* @Created on 2021/8/31 10:12
* @Version 1.0
* @Description TO-DO
*/
/*... | 0 | Kotlin | 0 | 1 | 4c178c366d6add1e5b7be183c7e7e454ccf0ed4e | 7,446 | IdentifyCard | MIT License |
servomatic/src/main/kotlin/crackers/kobots/app/ServoThing.kt | EAGrahamJr | 564,081,499 | false | {"Kotlin": 59050, "Shell": 3093} | /*
* Copyright 2022-2023 by <NAME>, Jr.
*
* 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 | 1 | 57fd5d8d52c1bff9717b31772938efdc5226f589 | 3,905 | kobots | Apache License 2.0 |
feature/auth/src/main/java/com/teamwiney/auth/login/LoginViewModel.kt | AdultOfNineteen | 639,481,288 | false | {"Kotlin": 355832} | package com.teamwiney.auth.login
import android.content.Context
import android.util.Log
import androidx.lifecycle.viewModelScope
import androidx.navigation.navOptions
import com.kakao.sdk.auth.model.OAuthToken
import com.kakao.sdk.common.model.ClientError
import com.kakao.sdk.common.model.ClientErrorCause
import com.k... | 2 | Kotlin | 1 | 3 | 1ff7bbdac7d62386b449c243036c3a0ab4281177 | 5,861 | WINEY-Android | MIT License |
widgets/src/main/java/com/wisekiddo/widgets/contracts/CircularSticksAbstractView.kt | wisekiddo | 185,235,497 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 25, "XML": 39, "Java": 2} | /*
* Copyright 2019 Wisekiddo by <NAME>. All rights reserved.
* 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 ... | 1 | null | 1 | 1 | 2c9a946dcc79d7550267c9693085f4eb589c83f3 | 2,923 | mvp-moviedb | Apache License 2.0 |
app/src/main/java/com/udeshcoffee/android/ui/BaseActivity.kt | m760622 | 163,887,222 | true | {"Kotlin": 579238, "Java": 35200, "HTML": 12682} | package com.udeshcoffee.android.ui
import android.Manifest
import android.content.ComponentName
import android.content.Intent
import android.content.ServiceConnection
import android.content.SharedPreferences
import android.media.AudioManager
import android.os.Bundle
import android.os.IBinder
import android.preference.... | 0 | Kotlin | 1 | 1 | 928bd65fd6064a26cbb758a0604ed5718a1ea55f | 3,135 | CoffeeMusicPlayer | Apache License 2.0 |
app/src/main/java/com/udeshcoffee/android/ui/BaseActivity.kt | m760622 | 163,887,222 | true | {"Kotlin": 579238, "Java": 35200, "HTML": 12682} | package com.udeshcoffee.android.ui
import android.Manifest
import android.content.ComponentName
import android.content.Intent
import android.content.ServiceConnection
import android.content.SharedPreferences
import android.media.AudioManager
import android.os.Bundle
import android.os.IBinder
import android.preference.... | 0 | Kotlin | 1 | 1 | 928bd65fd6064a26cbb758a0604ed5718a1ea55f | 3,135 | CoffeeMusicPlayer | Apache License 2.0 |
common/src/main/java/de/nicidienase/chaosflix/common/viewmodel/BrowseViewModel.kt | NiciDieNase | 85,370,651 | false | null | package de.nicidienase.chaosflix.common.viewmodel
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import de.nicidienase.chaosflix.R
import de.nicidienase.chaosflix.common.ChaosflixDatabase
... | 42 | Kotlin | 7 | 87 | 83b429928fe6a4de2796e750402fcece17bb1dab | 5,841 | chaosflix | MIT License |
tools-manage/invocationlab-admin-21/src/main/kotlin/org/javamaster/invocationlab/admin/service/load/impl/JarLocalFileLoader.kt | jufeng98 | 191,107,543 | false | null | package org.javamaster.invocationlab.admin.service.load.impl
import org.javamaster.invocationlab.admin.config.BizException
import org.javamaster.invocationlab.admin.consts.Constant
import org.javamaster.invocationlab.admin.service.GAV
import org.javamaster.invocationlab.admin.service.context.InvokeContext.putMethod
im... | 32 | null | 66 | 129 | 0ea2a5644bd08c1b8b2226a8490ab7c37a25a36f | 7,908 | java-master | Apache License 2.0 |
sentry-samples/sentry-samples-spring-boot/src/test/kotlin/io/sentry/systemtest/GraphqlProjectSystemTest.kt | getsentry | 3,368,190 | false | {"Kotlin": 3312354, "Java": 2633084, "C": 18038, "Shell": 4181, "Python": 3773, "Makefile": 2269, "CMake": 985, "C++": 703} | package io.sentry.systemtest
import io.sentry.systemtest.util.TestHelper
import org.junit.Before
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotNull
import kotlin.test.assertNull
class GraphqlProjectSystemTest {
lateinit var testHelper: TestHelper
@Before
fun setup()... | 300 | Kotlin | 435 | 1,155 | 378d12c8be1519ed7caea8bb7db8bcb0ab8275a0 | 1,350 | sentry-java | MIT License |
app/src/main/java/com/work/lazxy/writeaway/ui/activity/MainActivity.kt | Lazxy | 134,526,825 | false | null | package com.work.lazxy.writeaway.ui.activity
import android.Manifest
import android.animation.AnimatorInflater
import android.animation.AnimatorSet
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.supp... | 1 | null | 1 | 1 | 7796459aedd5ad4407a5ec3567ccae7f9f48930d | 10,457 | WriteAway | MIT License |
notebooks/notebook-ui/src/org/jetbrains/plugins/notebooks/ui/jupyterToolbar/JupyterToolbar.kt | qb345801622 | 285,457,947 | false | {"Text": 9390, "INI": 514, "YAML": 419, "Ant Build System": 11, "Batchfile": 33, "Dockerfile": 10, "Shell": 633, "Markdown": 744, "Ignore List": 142, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7836, "SVG": 4421, "Kotlin": 58527, "Java": 83779, "HTML": 3782, "Java Properties": 220, "Gradle... | package org.jetbrains.plugins.notebooks.ui.jupyterToolbar
import com.intellij.openapi.Disposable
import com.intellij.openapi.actionSystem.ActionGroup
import com.intellij.openapi.actionSystem.ActionPlaces
import com.intellij.openapi.actionSystem.impl.ActionToolbarImpl
import com.intellij.openapi.actionSystem.toolbarLay... | 1 | null | 1 | 1 | 42b634b24fe0888a43485b6ba01d4cd559f7ccdf | 2,554 | intellij-community | Apache License 2.0 |
breeze-core/src/main/kotlin/core/extension/BooleanExtensions.kt | DragonKnightOfBreeze | 205,561,109 | false | null | // Copyright (c) 2020-2021 DragonKnightOfBreeze Windea
// Breeze is blowing...
@file:JvmName("BooleanExtensions")
@file:Suppress("NOTHING_TO_INLINE")
package icu.windea.breezeframework.core.extension
import icu.windea.breezeframework.core.annotation.*
import kotlin.contracts.*
//region Common Extensions
/**如果为null,... | 1 | Kotlin | 1 | 8 | e067f9e676fbb2fe2d4b5076e522edea63ce5a0f | 1,972 | Breeze-Framework | MIT License |
app/src/main/kotlin/cn/wj/android/cashbook/base/ext/base/Any.kt | WangJie0822 | 365,932,300 | false | null | @file:Suppress("unused")
@file:JvmName("AnyExt")
package cn.wj.android.cashbook.base.ext.base
import cn.wj.android.cashbook.base.tools.funLogger
import com.orhanobut.logger.Printer
import java.text.DecimalFormat
/**
* 任意对象拓展
*
* > [jiewang41](mailto:<EMAIL>) 创建于 2021/3/25
*/
/** 使用类名作为日志打印 TAG */
val Any.tag: S... | 2 | Kotlin | 4 | 8 | 171fec9b87c6e996842e79ff94fadbc88931249e | 1,004 | Cashbook | Apache License 2.0 |
modules/mockk/src/jsMain/kotlin/io/mockk/impl/platform/JsCounter.kt | mockk | 107,331,132 | false | null | package io.mockk.impl.platform
internal class JsCounter {
var id: Long = 1
fun next() = id++
} | 296 | null | 344 | 5,426 | 79abc96d3235710d61beaf677ea1349ba12eea0c | 103 | mockk | Apache License 2.0 |
file_downloader/src/main/java/com/example/file_downloader2/MainActivity.kt | TomaszOleszko | 468,911,671 | false | {"Java": 40967, "Kotlin": 24740} | package com.example.file_downloader2
import android.annotation.SuppressLint
import android.app.DownloadManager
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.database.Cursor
impor... | 1 | Java | 1 | 3 | e6c75c1c8f3b8f939bed06175dae9cbea817d1d2 | 11,094 | AndroidJava | MIT License |
src/com/nerdscorner/mvp/mvp/busevents/fragment/FragmentComponent.kt | marcherdiego | 276,975,106 | false | null | package com.nerdscorner.mvp.mvp.busevents.fragment
import com.nerdscorner.mvp.mvp.busevents.base.MvpComponent
import java.io.File
class FragmentComponent(basePath: String, basePackage: String, screenName: String, shouldCreateWiring: Boolean)
: MvpComponent(basePath, basePackage, screenName, FRAGMENT_TEMPLATE, scr... | 1 | null | 1 | 3 | 47ed70ad1e399fdba70271dd4ca0aa1db0c2113e | 706 | mvp-library-plugin | Apache License 2.0 |
app/src/main/java/com/uttarakhand/kisanseva2/fragments/InformationFragment.kt | shivamkumard107 | 281,345,064 | false | null | package com.uttarakhand.kisanseva2.fragments
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Frag... | 0 | null | 2 | 3 | 3fd81824f4cf12ad9ed2ee95dddde65e3732da79 | 2,678 | KisanSeva2 | MIT License |
app/src/main/java/com/example/leslie/carousellkotlin/ui/ChatActivity.kt | leslieharland | 135,650,274 | false | {"Gradle": 6, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 98, "XML": 55, "Java": 1} | package com.example.leslie.carousellkotlin.ui
import android.annotation.SuppressLint
import android.os.Bundle
import android.os.Handler
import android.support.design.widget.TabLayout
import android.support.v4.view.ViewPager
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerV... | 0 | Kotlin | 0 | 0 | 8688f1031b5f66b88ce2974ca99e95ec8e25d9a4 | 4,371 | Carousell-Kotlin | Apache License 2.0 |
app/src/test/java/com/flickrSearch/image/presentration/list/PhotoAdapterTest.kt | Imranseu17 | 503,668,444 | false | {"Java": 197459, "Kotlin": 37265} | package com.flickrSearch.image.presentration.list
import android.content.Context
import com.flickrSearch.image.models.Photo
import com.flickrSearch.image.presentration.fullImage.ImageAdapter
import com.google.common.truth.Truth
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
@Run... | 1 | null | 1 | 1 | aa0f99b4e5d9d622b4ba6dd7c0a03cc18e721cb9 | 841 | FlickrSearchApp | Apache License 2.0 |
coffee/src/main/java/com/sserra/coffee/actions.kt | Sserra90 | 164,463,701 | false | null | package com.sserra.coffee
import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
import android.content.pm.ActivityInfo
import android.view.View
import android.view.ViewGroup
import androidx.test.espresso.UiController
import androidx.test.espresso.ViewAction
import androidx.te... | 1 | Kotlin | 1 | 1 | 66068b41448a60d2b31921b261a12a1ccc5c059e | 1,878 | Coffee | Apache License 2.0 |
app/src/main/java/com/utradia/catalogueappv2/module/productdetail/ProductDetailActivity.kt | Sunfocus | 164,079,839 | false | {"Gradle": 7, "Java Properties": 3, "Text": 1, "Shell": 1, "Ignore List": 6, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "JSON": 3, "Proguard": 5, "XML": 265, "Java": 103, "Kotlin": 254} | package com.utradia.catalogueappv2.module.productdetail
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Color
import android.graphics.drawable.LayerDrawable
import android.net.Uri
import android.os.Build
import an... | 0 | Kotlin | 0 | 1 | 684f0a2621ef7b906c8b19d6b003a704d6edca1c | 21,140 | Utradia-Catlog- | Apache License 2.0 |
kamp-streamer/src/main/kotlin/ch/leadrian/samp/kamp/streamer/runtime/entity/StreamableTextLabelImpl.kt | Double-O-Seven | 142,487,686 | false | null | package ch.leadrian.samp.kamp.streamer.runtime.entity
import ch.leadrian.samp.kamp.core.api.callback.OnPlayerDisconnectListener
import ch.leadrian.samp.kamp.core.api.constants.DisconnectReason
import ch.leadrian.samp.kamp.core.api.data.Color
import ch.leadrian.samp.kamp.core.api.data.Location
import ch.leadrian.samp.k... | 1 | null | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 9,073 | kamp | Apache License 2.0 |
compiler/testData/diagnostics/tests/multiplatform/defaultArguments/methodDefaultArgsViaActualFakeOverride/substitutionOverride.fir.kt | JetBrains | 3,432,266 | false | null | // MODULE: m1-common
// FILE: common.kt
<!EXPECT_ACTUAL_INCOMPATIBILITY{JVM}!>expect class Foo() {
<!EXPECT_ACTUAL_INCOMPATIBILITY{JVM}!>fun foo(p: Int = 1)<!>
}<!>
// MODULE: m2-jvm()()(m1-common)
// FILE: jvm.kt
open class Base<T> {
fun foo(p: T) {}
}
actual class Foo : <!DEFAULT_ARGUMENTS_IN_EXPECT_ACTUALI... | 184 | null | 5691 | 48,625 | bb25d2f8aa74406ff0af254b2388fd601525386a | 357 | kotlin | Apache License 2.0 |
local/local/src/main/java/com/nimbusframework/nimbuslocal/eventabstractions/NotificationEventBuilder.kt | thomasjallerton | 163,180,980 | false | {"Kotlin": 1124638, "Java": 130052, "JavaScript": 12405, "CSS": 297, "Dockerfile": 148} | package com.nimbusframework.nimbuslocal.eventabstractions
import com.nimbusframework.nimbuscore.eventabstractions.NotificationEvent
import com.nimbusframework.nimbuscore.eventabstractions.NotificationMessageAttribute
import java.time.Instant
import java.util.*
class NotificationEventBuilder {
private var type: S... | 4 | Kotlin | 4 | 39 | 5c3325caaf3fe9de9ffad130fd1e773c6f680e89 | 2,079 | nimbus-framework | MIT License |
lesson-7-extensions/tests.kt | brymlee | 137,364,264 | false | null | package brymlee
import org.junit.Test
import org.junit.Assert.*
import brymlee.*
class Tests{
@Test
fun extendInt_addIsTwoFunction(){
val one = 1
assertFalse(one.isTwo())
val two = 2
assertTrue(two.isTwo())
}
}
| 1 | null | 1 | 1 | 8829989a0ed4cdb4cbe4d7fa0c67cfc6ea84a3f8 | 227 | kotlin-examples | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/HairClipper.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,343 | icons | MIT License |
src/test/kotlin/uk/gov/justice/hmpps/probationsearch/util/JwtAuthenticationHelper.kt | ministryofjustice | 226,127,381 | false | {"Kotlin": 413338, "Dockerfile": 1076, "Mustache": 754} | package uk.gov.justice.hmpps.probationsearch.util
import io.jsonwebtoken.Jwts
import io.jsonwebtoken.SignatureAlgorithm
import org.springframework.stereotype.Component
import java.security.KeyPair
import java.time.Duration
import java.util.Date
import java.util.UUID
@Component
class JwtAuthenticationHelper(private va... | 3 | Kotlin | 2 | 3 | f0dbcdf231c343380284f56f4796a272ddbb5ae2 | 1,917 | probation-offender-search | MIT License |
app/src/main/java/com/goudurixx/pokedex/features/pokemon/PokemonListScreen.kt | Goudurixx | 756,872,856 | false | {"Kotlin": 249861} | package com.goudurixx.pokedex.features.pokemon
import DockedSearchContainer
import FabContainer
import FabContainerState
import android.annotation.SuppressLint
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose... | 0 | Kotlin | 0 | 2 | 91999438d698d59ca4b510172c72140662ed57a0 | 8,840 | pokedex-JC | MIT License |
sample/src/main/java/com/phucynwa/geckompose/sample/MainActivity.kt | phucynwa | 678,156,294 | false | {"Kotlin": 37140} | package com.phucynwa.geckompose.sample
import android.annotation.SuppressLint
import android.app.ListActivity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.ListView
import android.widget.SimpleAdapter
import androidx.activity.ComponentActivity
import androidx.act... | 13 | Kotlin | 1 | 2 | 140c3eaf9877ed7ef4066e1119dff0ab19037c1c | 4,910 | Geckompose | Apache License 2.0 |
sampleproject/src/main/java/geo/metax/sampleproject/MainActivity.kt | GMetaxakis | 160,197,784 | false | {"Kotlin": 7240} | package geo.metax.sampleproject
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import geo.metax.sampleproject.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 0 | fe31e400422cc82c0a9cd883989be5e388b9fee3 | 699 | RecyclerViewLib | MIT License |
src/main/kotlin/us/mcdevs/refinedtek/entrypoint/RefinedTek.kt | Hwiggy | 387,070,758 | false | null | package us.mcdevs.refinedtek.entrypoint
import net.fabricmc.api.ModInitializer
import net.minecraft.util.Identifier
import net.minecraft.util.registry.Registry
import org.apache.logging.log4j.Level
import org.apache.logging.log4j.LogManager
import us.mcdevs.refinedtek.bootstrap.Registrar
import us.mcdevs.refinedtek.im... | 0 | Kotlin | 0 | 1 | 4f3b71dda6599997860884a5e7049d77a2764d3c | 761 | RefinedTek | MIT License |
app/src/test/java/br/com/sommelier/domain/usecase/CreateUserUseCaseTest.kt | ronaldocoding | 665,333,427 | false | null | package br.com.sommelier.domain.usecase
import arrow.core.Either
import arrow.core.left
import arrow.core.right
import br.com.sommelier.base.result.GenericProblem
import br.com.sommelier.base.result.Problem
import br.com.sommelier.base.result.RegisterUserProblem
import br.com.sommelier.domain.model.UserInfo
import br.... | 0 | Kotlin | 0 | 1 | e81867748ab7540473749abc7683820ee6ff9ca8 | 4,443 | sommelier | MIT License |
markdown-runtime/src/main/kotlin/land/sungbin/markdown/runtime/Markdown.kt | jisungbin | 815,573,501 | false | {"Kotlin": 15166} | /*
* Developed by Ji Sungbin 2024.
*
* Licensed under the MIT.
* Please see full license: https://github.com/jisungbin/compose-markdown/blob/main/LICENSE
*/
package land.sungbin.markdown.runtime
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Composition
import androidx.compose.runtime... | 1 | Kotlin | 0 | 4 | 316aa2a1ebd9bc01e82d30dd2eea1e4b98b4b45e | 1,461 | compose-markdown | MIT License |
common/src/main/kotlin/tech/sethi/aaronmusk/cobblemonsandwiches/powers/ValuePower.kt | aaronvwx | 671,485,506 | false | null | package tech.sethi.aaronmusk.cobblemonsandwiches.powers
// Increases chances of finding Pokemon with higher IV's of the specific type
class ValuePower {
} | 0 | Kotlin | 0 | 0 | ed394d670ef4c1e6188475b979c4fde14c49ecc6 | 155 | CobblemonSandwiches | MIT License |
kgl-vulkan/src/nativeMain/kotlin/com/kgl/vulkan/dsls/DebugUtilsMessengerCreateInfoEXTBuilder.kt | Dominaezzz | 164,507,082 | false | null | /**
* Copyright [2019] [<NAME>]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 13 | Kotlin | 11 | 96 | 41155a8200602535697b872232e41cfe6f5eb20e | 2,043 | kgl | Apache License 2.0 |
freyr/src/main/kotlin/io/violabs/freyr/message/UserConsumer.kt | violabs | 640,711,709 | false | null | package io.violabs.freyr.message
import io.violabs.freyr.config.UserConsumerTemplate
import io.violabs.freyr.domain.UserAccountAction
import kotlinx.coroutines.reactive.awaitFirstOrNull
import org.springframework.stereotype.Service
@Service
class UserConsumer(
private val userConsumerTemplate: UserConsumerTemplat... | 2 | Kotlin | 0 | 0 | 8bca074f2cc4d8bc38ea2222cda55eaa9d2cb13e | 677 | vanir | Apache License 2.0 |
app/src/test/java/br/com/alura/orgs/ProdutoTests.kt | lsitec-piva | 832,633,266 | false | {"Kotlin": 33310} | package br.com.alura.orgs
import br.com.alura.orgs.model.Produto
import org.amshove.kluent.shouldBeFalse
import org.amshove.kluent.shouldBeTrue
import org.junit.Test
import java.math.BigDecimal
class ProdutoTests {
@Test
fun `deve retornar verdadeiro quando valor for valido`() {
val produtoValido = P... | 0 | Kotlin | 0 | 0 | bb0cab885b15232c7f7a99d6bf9e48b4558c5507 | 1,525 | alura-android-kotlin-testes-unidade | MIT License |
app/src/main/java/protokot/example/com/protokot/network/MyFirebaseMessagingService.kt | TiboLemoine | 111,932,430 | false | null | package protokot.example.com.protokot.network
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.support.v4.app.NotificationCompat
import android.util.Log
import com.google.firebase.messaging.FirebaseMessagingService
impor... | 0 | Kotlin | 0 | 0 | 931887fb2bf4df523472fec3fe89c55a25c5f4c9 | 1,334 | proto-kotlin | Apache License 2.0 |
src/main/kotlin/venus/assembler/pseudos/J.kt | ics-jku | 470,084,492 | true | {"JavaScript": 2768182, "Kotlin": 144645, "HTML": 32782, "CSS": 1899} | package venus.assembler.pseudos
import venus.assembler.AssemblerPassTwo
import venus.assembler.LineTokens
import venus.assembler.PseudoWriter
/** Writes pseudoinstruction `j label` */
object J : PseudoWriter() {
override operator fun invoke(args: LineTokens, state: AssemblerPassTwo): List<LineTokens> {
ch... | 1 | JavaScript | 1 | 4 | 429d323b98a33db67074e44f164c8d1044f406de | 402 | venus | MIT License |
feature/cabinet/src/main/kotlin/com/ngapp/metanmobile/feature/cabinet/CabinetScreen.kt | ngapp-dev | 878,233,406 | false | {"Kotlin": 1167674} | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). All rights reserved.
*
* 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
*
*... | 0 | Kotlin | 0 | 0 | f44bd23069c40a0342ed1310505f5bcc0547868c | 8,101 | metanmobile | Apache License 2.0 |
app/src/main/java/com/gj/fr/query/query_algo/QueryFlange.kt | 0soul0 | 673,404,487 | false | null | package com.gj.fr.query.query_algo
fun query(inputParameter: InputParameter): List<FlangeResultType>? {
var errorMultiplier = 1.0
val experimentError = DomainSize(outerDia = 0.009, boltDia = 0.0131, thickness = 0.044)
var result = getResult(
inputParameter = inputParameter,
relativeError =... | 0 | Kotlin | 0 | 0 | c4de16d01bac0dfefcc6d12c295d7e24354c6c4d | 975 | FR | Apache License 2.0 |
src/Day09.kt | dmstocking | 575,012,721 | false | {"Kotlin": 40350} | import java.lang.Exception
import kotlin.math.abs
data class Position(val x: Int, val y: Int) {
fun follow(other: Position): Position {
return if (!near(other)) {
moveTowards(other)
} else {
this
}
}
fun near(other: Position): Boolean {
return other... | 0 | Kotlin | 0 | 0 | e49d9247340037e4e70f55b0c201b3a39edd0a0f | 3,572 | advent-of-code-kotlin-2022 | Apache License 2.0 |
app/src/main/java/com/example/sandbox/core/utils/Utils.kt | rafikFares | 523,404,801 | false | {"Kotlin": 200088} | package com.example.sandbox.core.utils
import kotlinx.datetime.Clock
fun String.Companion.empty() = ""
val currentTime: Long = Clock.System.now().epochSeconds
| 2 | Kotlin | 0 | 0 | f84378d4253e45a42469b6bb4b42ea614efdcd1a | 161 | Sandbox_v2 | Apache License 2.0 |
app/src/main/java/com/apx5/apx5/ui/splash/SplashViewModel.kt | volt772 | 223,333,999 | false | null | package com.apx5.apx5.ui.splash
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.apx5.apx5.base.BaseViewModel
import com.apx5.apx5.operation.PrResource
import com.apx5.domain.dto.ServerStatusDto
import com.apx5.domain.model.PrServerStatus
... | 0 | Kotlin | 0 | 0 | f9662ef2ec2266167fa6d1e12c67a1cc6eadb5ca | 1,383 | prooya_hamster | Apache License 2.0 |
json-lib/src/main/kotlin/angstromio/json/internal/Types.kt | angstromio | 683,562,832 | false | {"Kotlin": 302899, "Java": 4363} | package angstromio.json.internal
import com.fasterxml.jackson.databind.JavaType
import com.fasterxml.jackson.databind.type.ArrayType
import com.fasterxml.jackson.databind.type.TypeBindings
import com.fasterxml.jackson.databind.type.TypeFactory
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
im... | 0 | Kotlin | 0 | 0 | db9c63b291db92a8fbbc1135ebdf97197f08f5c5 | 5,699 | angstromio-json | Apache License 2.0 |
feature/note-detail/src/main/java/com/hellguy39/hellnotes/feature/note_detail/components/ChecklistDropdownMenu.kt | HellGuy39 | 572,830,054 | false | null | package com.hellguy39.hellnotes.feature.note_detail.components
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import com.hellguy39.hellnotes.core.ui.components.CustomDropdownItemSelection
import com.hellguy39.hellnotes.core.ui.com... | 1 | Kotlin | 0 | 9 | 548d59c0f641df6e1f3ddd9c220904631ca5351b | 2,030 | HellNotes | Apache License 2.0 |
app/src/main/java/com/pihrit/photos/common/BaseObservable.kt | skipadu | 158,967,452 | false | null | package com.pihrit.photos.common
import java.util.*
import java.util.concurrent.ConcurrentHashMap
abstract class BaseObservable<ListenerType> {
private val mListeners = Collections.newSetFromMap(ConcurrentHashMap<ListenerType, Boolean>(1))
protected val listeners: Set<ListenerType>
get() = Collectio... | 0 | Kotlin | 0 | 1 | 8a6d1125a70e6d85a751f4bb93ad2f2141e73b79 | 539 | Photos | MIT License |
src/main/kotlin/io/suiyun/chooseLicense/ui/LicenseCombo.kt | suiyun39 | 609,475,483 | false | {"Kotlin": 6937} | package io.suiyun.chooseLicense.ui
import com.intellij.openapi.ui.ComboBox
import javax.swing.DefaultComboBoxModel
import io.suiyun.chooseLicense.license.License
import io.suiyun.chooseLicense.license.LICENSE_LIST
/**
* LICENSE 选择框
*/
class LicenseCombo : ComboBox<License>() {
init {
model = DefaultComboBoxMo... | 1 | Kotlin | 0 | 2 | 7ac9178a453dd11a86ffeff816cbbf3a4f1a28f1 | 384 | intellij-plugin-choose-license | MIT License |
app/src/main/java/com/jnj/vaccinetracker/common/data/database/converters/SyncErrorStateConverter.kt | johnsonandjohnson | 503,902,626 | false | {"Kotlin": 1680998} | package com.jnj.vaccinetracker.common.data.database.converters
import androidx.room.TypeConverter
import com.jnj.vaccinetracker.sync.domain.entities.SyncErrorState
class SyncErrorStateConverter {
@TypeConverter
fun toEnum(code: Int?): SyncErrorState? {
return code?.let { SyncErrorState.fromCode(it) }... | 1 | Kotlin | 1 | 1 | 79a8a5638424d63a4e22148bcaa230b62e4ebe80 | 448 | vxnaid | Apache License 2.0 |
app/src/main/java/com/cerdenia/android/fullcup/ui/viewmodel/HomeViewModel.kt | Co-Lab-You-Belong-in-Tech | 369,529,770 | false | null | package com.cerdenia.android.fullcup.ui.viewmodel
import android.annotation.SuppressLint
import android.graphics.Color
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.ViewModel
import app.futured.donut.DonutSection
import com.cerdenia.android.fullcup.DAILY
import... | 0 | Kotlin | 1 | 0 | f1a6c75a93693d0ad15de547b7f86df402c1ebdd | 5,640 | fullcup-android | MIT License |
rd-core/src/test/kotlin/com/jetbrains/rider/util/test/cases/SequentialLifetimesTest.kt | Temka193 | 137,384,818 | true | {"Kotlin": 521617} | package com.jetbrains.rider.util.test.cases
import com.jetbrains.rider.util.lifetime.Lifetime
import com.jetbrains.rider.util.lifetime.LifetimeDefinition
import com.jetbrains.rider.util.lifetime.SequentialLifetimes
import com.jetbrains.rider.util.lifetime.plusAssign
import kotlin.test.Test
import kotlin.test.assertEqu... | 0 | Kotlin | 0 | 0 | 2181470b046a888fb2596085d4d379fa07c62883 | 1,745 | rd | Apache License 2.0 |
catfacts/src/test/kotlin/ru/freegeek/catfacts/CatfactsApplicationTests.kt | DanilDr | 250,495,295 | false | null | package ru.freegeek.catfacts
import org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration
import org.camunda.bpm.engine.runtime.ProcessInstance
import org.camunda.bpm.engine.test.Deployment
import org.camunda.bpm.engine.test.ProcessEngineRule
import org.camunda.bpm.engine.test.assertions.bpmn.BpmnA... | 0 | Kotlin | 0 | 1 | c0a370f0d090577f0d35576c6f0628afc2551504 | 2,260 | 2307Cource | MIT License |
compottie/src/commonMain/kotlin/io/github/alexzhirkevich/compottie/internal/helpers/text/TextDocument.kt | alexzhirkevich | 730,724,501 | false | {"Kotlin": 891763, "Swift": 601, "HTML": 211} | package io.github.alexzhirkevich.compottie.internal.helpers.text
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal class TextDocument(
@SerialName("f")
var fontFamily : String? = null,
@SerialName("fc")
var fillColor : List<Float>? = null,
... | 5 | Kotlin | 7 | 232 | 46b008cd7cf40a84261b20c5888359f08368016a | 1,133 | compottie | MIT License |
app/src/main/java/com/example/cupofice/MainActivity.kt | vivian-dai | 635,473,809 | false | {"Kotlin": 5232} | package com.example.cupofice
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.media.AudioAttributes
import android.media.SoundPool
import androidx.appcompat.app.AppCompatAct... | 1 | Kotlin | 0 | 0 | 9b64565063fde753a1d953f525905e1af3fbef19 | 4,225 | CupOfIce | MIT License |
src/main/kotlin/io/github/gaming32/worldhostserver/SecurityLevel.kt | Gaming32 | 609,157,750 | false | {"Kotlin": 97573, "Java": 5869, "Dockerfile": 364} | package io.github.gaming32.worldhostserver
import io.github.gaming32.worldhostserver.serialization.PacketSerializable
import java.nio.ByteBuffer
import java.util.*
enum class SecurityLevel : PacketSerializable {
INSECURE, OFFLINE, SECURE;
companion object {
fun from(uuid: UUID, secureAuth: Boolean = ... | 0 | Kotlin | 1 | 4 | 6865918769172ec1f453aaebc4523b684aaa1dee | 579 | world-host-server-kotlin | MIT License |
data/src/main/java/com/mutualmobile/praxis/data/remote/model/NETJokeListData.kt | mutualmobile | 221,002,551 | false | null | package com.mutualmobile.praxis.data.remote.model
import com.google.gson.annotations.SerializedName
import com.mutualmobile.praxis.data.mapper.EntityMapper
import com.mutualmobile.praxis.data.mapper.DataModel
import com.mutualmobile.praxis.domain.model.DOMJoke
import com.mutualmobile.praxis.domain.model.DOMJokeList
d... | 2 | Kotlin | 21 | 96 | 44b25be910303a5abf8667fea62b112b60a386bd | 987 | Praxis | Apache License 2.0 |
app/src/main/kotlin/com/numero/sojodia/contract/BusScheduleContract.kt | MeilCli | 104,288,308 | true | {"HTML": 155248, "Kotlin": 63454} | package com.numero.sojodia.contract
import com.numero.sojodia.model.BusTime
import com.numero.sojodia.model.Reciprocate
import com.numero.sojodia.model.Route
import com.numero.sojodia.model.Week
import com.numero.sojodia.presenter.IPresenter
import com.numero.sojodia.view.IView
interface BusScheduleContract {
in... | 0 | HTML | 0 | 0 | f4951c22cf530982b87b101024f338319510755b | 1,421 | SojoDia-android | MIT License |
Collections/Sequences/src/Task.kt | kyledunne | 255,980,042 | false | null | // Find the most expensive product among all the delivered products
// ordered by the customer. Use `Order.isDelivered` flag.
fun findMostExpensiveProductBy(customer: Customer): Product? =
customer.orders.asSequence().filter { it.isDelivered }
.flatMap { it.products.asSequence() }.toSet().maxBy { it.pri... | 0 | Kotlin | 0 | 0 | 893959cc754696d8c4665073fe4438f4d1954038 | 709 | kotlin-koans | MIT License |
src/main/kotlin/sckema/JsonSchema.kt | barryjpower | 138,290,864 | true | {"Kotlin": 29908} | package sckema
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JsonDeserializer
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databi... | 0 | Kotlin | 0 | 0 | abfd9ac4578a935ce278542c111817321f550146 | 3,376 | json-sckema | Apache License 2.0 |
app/src/main/java/com/uteke/conventions/MainActivity.kt | OneFiveFour | 715,295,614 | false | {"Kotlin": 3302} | package com.uteke.conventions
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
} | 0 | Kotlin | 0 | 0 | a7612272c38317a06cf70f27299ff43bf81c21de | 126 | session-timer | Apache License 2.0 |
persistence/src/main/java/io/phatcat/numberneighborsinternational/persistence/datasource/CountriesLocalDataSource.kt | pauledwardtang | 265,493,454 | false | null | package io.phatcat.numberneighborsinternational.persistence.datasource
import io.phatcat.numberneighborsinternational.countries.data.LocalDataSource
import io.phatcat.numberneighborsinternational.entity.Country
import io.phatcat.numberneighborsinternational.persistence.dao.CountryDao
import io.phatcat.numberneighborsi... | 0 | Kotlin | 0 | 0 | 40b62136a3f0337ba1af3bdc639e009948a976ad | 1,346 | android-number-neighbors-intl | Apache License 2.0 |
src/main/kotlin/io/alc/headergolf/Header.kt | alecalve | 147,419,816 | false | null | // Copyright (c) 2018 The headergolf developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
package io.alc.headergolf
import io.alc.headergolf.util.readUint32
import io.alc.headergolf.util.sha256Twice
import io.alc.headergo... | 1 | Kotlin | 3 | 13 | 0f82fb9ad0a52cd94089f1f9f53607ed92ca2877 | 3,301 | headergolf | MIT License |
app/src/main/java/com/morj12/cloudlist/utils/Constants.kt | morj12 | 614,143,898 | false | null | package com.morj12.cloudlist.utils
object Constants {
const val EMAIL_KEY = "email"
const val ANONYMOUS_EMAIL = "anon"
} | 0 | Kotlin | 0 | 0 | 78eace6dd8d884ef2002be081593484eebc79538 | 130 | cloud-list | MIT License |
app/src/main/java/com/muratozturk/openai_dall_e_2/domain/repository/WeatherRepository.kt | saymanrifat | 720,991,700 | false | {"Kotlin": 37686} | package com.muratozturk.openai_dall_e_2.domain.repository
import com.muratozturk.openai_dall_e_2.data.model.WeatherModel
import com.muratozturk.openai_dall_e_2.network.WeatherApiService
import javax.inject.Inject
class WeatherRepository @Inject constructor(private val weatherApiService: WeatherApiService) {
suspe... | 0 | Kotlin | 0 | 0 | dc923ae520cc6318b5fa1b8e5db0aa51dabf333b | 433 | Clear_Sky_App | MIT License |
app/src/main/java/com/rootstrap/android/theme/colors/Colors.kt | amaury901130 | 445,951,632 | false | {"Kotlin": 42882, "Shell": 310} | package com.rootstrap.android.theme.colors
import androidx.compose.ui.graphics.Color
abstract class Colors {
abstract var primary: Color
abstract var onPrimary: Color
abstract var primaryDark: Color
abstract var secondary: Color
abstract var terciary: Color
}
| 0 | Kotlin | 0 | 0 | 2a5be7cc6972630cf73938bb8157afe2c5cdb2dd | 282 | android_compose_demo | MIT License |
app/src/main/java/com/example/taskapp/auth/presentation/viewmodel/LoginViewModel.kt | xaawii | 836,748,865 | false | {"Kotlin": 203033} | package com.example.taskapp.auth.presentation.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.taskapp.auth.domain.usecases.LoginUseCase
import com.example.taskapp.auth.domain.usecases.SaveTokenUseCase
import com.example.taskapp.auth.domain.usecases.SaveUserData... | 0 | Kotlin | 0 | 0 | 5c7af633ac69517fdf95eba28eb8f21350b54f82 | 3,632 | android-task-app | MIT License |
androidApp/src/main/java/com/kotlineering/interview/android/ui/todo/ToDoHomeViewModel.kt | redefinescience | 638,714,908 | false | null | package com.kotlineering.interview.android.ui.todo
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.distinctUntilChanged
import androidx.lifecycle.switchMap
import androidx.lifecycle.viewModelScope
import com.kotlineering.inter... | 0 | Kotlin | 0 | 0 | 52e39c74f8f513eb7653e2d0bce8f96f9b6b9ff4 | 2,147 | interview_demo_app | MIT License |
src/main/kotlin/com/ort/firewolf/domain/model/village/setting/VillageSettings.kt | h-orito | 282,923,189 | false | null | package com.ort.firewolf.domain.model.village.setting
import com.ort.dbflute.allcommon.CDef
import com.ort.firewolf.domain.model.village.VillageDays
import com.ort.firewolf.domain.model.village.VillageSettingCreateResource
import java.time.LocalDateTime
data class VillageSettings(
val capacity: PersonCapacity,
... | 0 | Kotlin | 0 | 0 | ec5bc96cfd1ce227c9783dc934dd2d087a9ba38c | 4,289 | firewolf-api | MIT License |
app/src/main/java/com/example/taobaounion/ui/search/SearchFragment.kt | tvwzrq | 485,035,984 | false | {"Kotlin": 96410} | package com.example.taobaounion.ui.search
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androi... | 0 | Kotlin | 1 | 0 | 0f2584aa4401c69935f617bf5243d05eeec6ca67 | 6,585 | TaobaoUnion | Apache License 2.0 |
presentation/src/main/java/com/ddd4/dropit/presentation/mapper/MapToPresentationExt.kt | DDD-4 | 280,607,926 | false | null | package com.ddd4.dropit.presentation.mapper
import com.ddd4.dropit.domain.entity.DomainEntity
import com.ddd4.dropit.presentation.entity.PresentationEntity
fun DomainEntity.Folder.mapToPresentation(): PresentationEntity.Folder =
PresentationEntity.Folder(id!!, name, createAt!!, updateAt)
fun DomainEntity.Item.ma... | 5 | Kotlin | 1 | 7 | c531dfe7dc732daa05402da0a730883a21f560c4 | 751 | 4servings-android | Apache License 2.0 |
idea/testData/intentions/convertToIndexedFunctionCall/labeledReturn.kt | JetBrains | 278,369,660 | false | null | // INTENTION_TEXT: "Convert to 'forEachIndexed'"
// WITH_RUNTIME
fun test(list: List<String>) {
list.<caret>forEach { s ->
when (s) {
"a" -> return@forEach
"b" -> return@forEach
else -> println(s)
}
}
} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 262 | intellij-kotlin | Apache License 2.0 |
src/main/java/com/kairlec/model/bo/StartupConfig.kt | kairlec | 225,800,593 | false | null | package com.kairlec.model.bo
import java.nio.file.Path
/**
* @program: SKExplorer
* @description: 程序启动配置
* @author: Kairlec
* @create: 2020-03-08 18:07
* @suppress
*/
data class StartupConfig(
val contentDir: String,
val excludeDir: Array<String>,
val excludeFile: Array<String>,
... | 1 | Kotlin | 0 | 1 | ae54906c4837f55075fe2b072c121b4ea232d3b0 | 419 | SKExplorer-Backend | Apache License 2.0 |
src/main/kotlin/br/com/zup/shared/grpc/handlers/ChavePixExistenteExceptionHandler.kt | hirodrigo | 383,896,348 | true | {"Kotlin": 101630, "Smarty": 2172, "Dockerfile": 168} | package br.com.zup.shared.grpc.handlers
import br.com.zup.pix.registra.ChavePixExistenteException
import br.com.zup.shared.grpc.ExceptionHandler
import br.com.zup.shared.grpc.ExceptionHandler.*
import io.grpc.Status
import javax.inject.Singleton
@Singleton
class ChavePixExistenteExceptionHandler : ExceptionHandler<Ch... | 0 | Kotlin | 0 | 0 | 098d4b2f771cc073489555363d5882f1df7384cf | 635 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
webauthn/src/test/java/com/lycorp/webauthn/PublicKeyCredentialTest.kt | line | 855,639,495 | false | {"Kotlin": 187679} | @file:OptIn(ExperimentalCoroutinesApi::class, ExperimentalKotest::class)
/*
* Copyright 2024 LY Corporation
*
* LY Corporation licenses this file to you 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 ... | 0 | Kotlin | 0 | 3 | f0dca2ed5b66c7aeebc1574c84d1d4c9086b615b | 10,619 | webauthn-kotlin | Apache License 2.0 |
kotlin/src/1044.kt | danielcandidos | 136,951,942 | false | {"Kotlin": 92529} | package lista02
import java.util.*
fun main(args: Array<String>) {
val input = Scanner(System.`in`)
val a = input.nextInt()
val b = input.nextInt()
val restoAB = a % b
val restoBA = b % a
if (restoAB == 0 || restoBA == 0){
println("Sao Multiplos")
} else {
println("Nao s... | 0 | Kotlin | 1 | 6 | 2b5a93ba25abfa4e55f0b5841b6cdc32a2c1cda6 | 342 | URI | MIT License |
browser-kotlin/src/jsMain/kotlin/web/media/recorder/BlobEvent.types.deprecated.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6891970} | // Automatically generated - do not modify!
@file:Suppress(
"NON_ABSTRACT_MEMBER_OF_EXTERNAL_INTERFACE",
)
package web.media.recorder
import seskar.js.JsValue
import web.events.EventTarget
import web.events.EventType
sealed external interface BlobEventTypes_deprecated {
@Deprecated(
message = "Legac... | 0 | Kotlin | 7 | 28 | 8b3f4024ebb4f67e752274e75265afba423a8c38 | 563 | types-kotlin | Apache License 2.0 |
app/src/main/java/jp/co/c_lis/ccl/morelocale/ui/license/License.kt | c-lis | 313,040,077 | false | null | package jp.co.c_lis.ccl.morelocale.ui.license
data class License(
val name: String,
val url: String,
val licensePathOnAsset: String
)
val LICENSES = listOf(
License(
"ic_menu_3d_globe.png",
"https://android.googlesource.com/platform/packages/apps/Setting... | 2 | Kotlin | 1 | 5 | 8ecbc19a69bf501f540fdfcade6463018f1b2420 | 2,668 | morelocale | Apache License 2.0 |
src/jsMain/kotlin/screeps/api/Tombstone.kt | exaV | 132,332,904 | false | {"Kotlin": 76135} | package screeps.api
abstract external class Tombstone : RoomObjectNotNull, Decaying, Identifiable, StoreOwner {
val creep: Creep
val deathTime: Int
}
| 1 | Kotlin | 18 | 16 | a0c8c5987cd2ced0f7191cd4a7fce64e56035fee | 159 | screeps-kotlin-types | MIT License |
app/src/main/java/co/mateocontreras/holocron_jedi/MainActivity.kt | jmcontreras10 | 873,350,464 | false | {"Kotlin": 15837} | package co.mateocontreras.holocron_jedi
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import co.mateocontreras.holocron_jedi.core.Navigation
import co.mateocontreras.holocron_jedi.ui.theme.HolocronjediTheme
import dagger.hilt.android.AndroidEntryPoint
... | 0 | Kotlin | 0 | 0 | 966f4605bb876eb6bab68c1547c88a1ac61a07bf | 597 | holocron-jedi | MIT License |
app/src/main/java/com/example/k_health/health/HealthFragment.kt | SeokJiWon1207 | 420,371,551 | false | {"Kotlin": 149316} | package com.example.k_health.health
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.k_health.*
import com.example.k_health.databinding.FragmentH... | 0 | Kotlin | 0 | 0 | 067d1dbabb741232a61cac71e12b646840dcc38f | 6,867 | K-Health | Apache License 2.0 |
app/src/main/java/io/homeassistant/companion/android/launch/LaunchPresenterBase.kt | jsmeyers | 291,310,220 | true | {"Kotlin": 530456} | package io.homeassistant.companion.android.launch
import io.homeassistant.companion.android.domain.authentication.AuthenticationUseCase
import io.homeassistant.companion.android.domain.authentication.SessionState
import io.homeassistant.companion.android.domain.integration.IntegrationUseCase
import kotlinx.coroutines.... | 0 | Kotlin | 0 | 0 | 72981d2360167c36c24029d7dbefdcecbe84c9bc | 1,569 | android | Apache License 2.0 |
src/main/kotlin/C_00545990.kt | argcc | 777,572,651 | false | {"Kotlin": 665702} | package org.example
class C_00545990 {
var C_00545b20 = C_00545b20()
var field_0x2c: Any? = null
var field_0x30: Any? = null
var field_0x8c: Any? = null
var list1 = mutableListOf<Any>()
var unit_logic_list = mutableListOf<UnitLogic>()
var array3 = mutableListOf<Any>()
var array4 = muta... | 0 | Kotlin | 0 | 0 | 8edd9403e6efd3dd402bd9efdec36c34fe73780f | 3,306 | ei_reverse_consp | MIT License |
buildSrc/src/main/kotlin/com/f1db/plugin/schema/mapper/SeasonDriverStandingMapper.kt | f1db | 403,954,428 | false | {"Kotlin": 238677} | package com.f1db.plugin.schema.mapper
import com.f1db.plugin.schema.single.Season
import com.f1db.plugin.schema.single.SeasonDriverStanding
import org.mapstruct.AfterMapping
import org.mapstruct.Context
import org.mapstruct.Mapper
import org.mapstruct.Mapping
import org.mapstruct.MappingTarget
import com.f1db.plugin.s... | 5 | Kotlin | 22 | 193 | 96ff36c3c32cce3e8c59ac273b80d8f8b893a2b8 | 1,055 | f1db | Creative Commons Attribution 4.0 International |
app/src/main/java/br/com/sommelier/ui/component/SommelierDialog.kt | ronaldocoding | 665,333,427 | false | null | package br.com.sommelier.ui.component
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import andro... | 0 | Kotlin | 0 | 1 | 5038ec2bd31c0e83247ff73788d20f8da1d509c7 | 2,975 | sommelier | MIT License |
web/src/test/kotlin/com/github/vhromada/catalog/web/mapper/TimeMapperTest.kt | vhromada | 597,308,377 | false | null | package com.github.vhromada.catalog.web.mapper
import com.github.vhromada.catalog.web.CatalogWebMapperTestConfiguration
import com.github.vhromada.catalog.web.utils.TestConstants
import com.github.vhromada.catalog.web.utils.TimeUtils
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
i... | 0 | Kotlin | 0 | 0 | 1345a812e8dd57483034fcf4d7cfbd3c27cddc03 | 1,365 | Catalog | MIT License |
app/src/main/java/ru/aasmc/weather/util/typeconverters/ListNetworkWeatherDescriptionConverter.kt | aasmc | 537,532,336 | false | {"Kotlin": 115025} | package ru.aasmc.weather.util.typeconverters
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import ru.aasmc.weather.data.model.NetworkWeatherDescription
import java.lang.reflect.Type
class ListNetworkWeatherDescriptionConverter {
val gson = Gson()
val... | 0 | Kotlin | 0 | 0 | c362fe35c672a5204b89820875d80310e2563814 | 684 | Weather | MIT License |
app/src/main/java/com/ericg/sudofiemed/view/OnBoard2.kt | Jeffkent01coder | 372,628,560 | false | null | package com.ericg.sudofiemed.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.ericg.sudofiemed.R
import com.ericg.sudofiemed.databinding.FragmentOnBoard2Bi... | 0 | Kotlin | 0 | 1 | 7fca81bbe8f594f17b61a94f8d1c942e9b51efe1 | 878 | Health | MIT License |
kotlin-mui/src/main/generated/mui/material/Link.ext.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package mui.material
@Suppress("NAME_CONTAINS_ILLEGAL_CHARS")
// language=JavaScript
@JsName("""(/*union*/{none: 'none', hover: 'hover', always: 'always'}/*union*/)""")
external enum class LinkUnderline {
none,
hover,
always,
;
}
| 12 | Kotlin | 145 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 293 | kotlin-wrappers | Apache License 2.0 |
src/commonTest/kotlin/csense/kotlin/extensions/collections/array/ByteArrayTest.kt | csense-oss | 136,911,995 | false | null | package csense.kotlin.extensions.collections.array
import csense.kotlin.extensions.*
import csense.kotlin.tests.assertions.*
import kotlin.test.*
class ByteArrayTest {
@Test
fun byteArrayToHexString() {
byteArrayOf().toHexString().assert("")
byteArrayOf().toHexString(
appendHexPre... | 1 | Kotlin | 0 | 2 | 49113dd6b2cb1e18992d07faa1e0305d18f766f4 | 3,102 | csense-kotlin | MIT License |
lib/src/main/java/com/irurueta/android/navigation/inertial/processors/attitude/GeomagneticAttitudeProcessor.kt | albertoirurueta | 440,663,799 | false | null | /*
* Copyright (C) 2023 <NAME> (<EMAIL>)
*
* 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 ... | 0 | Kotlin | 0 | 0 | a5e3d05af8b2dad44a1c9ee47e76e8c97e835367 | 2,289 | irurueta-android-navigation-inertial | Apache License 2.0 |
smash-ranks-android/app/src/test/java/com/garpr/android/data/converters/RankedPlayerConverterTest.kt | charlesmadere | 41,832,700 | true | null | package com.garpr.android.data.converters
import com.garpr.android.data.models.RankedPlayer
import com.garpr.android.test.BaseTest
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNotEquals
impor... | 0 | Kotlin | 0 | 9 | 151b2a0f9b4d38be60c3f73344ca444f17810bfd | 3,076 | smash-ranks-android | The Unlicense |
live/src/main/java/io/github/gaomjun/live/rtmpFrame/RTMPVideoFrame.kt | GaoMjun | 261,919,677 | false | {"C++": 5298889, "Java": 1356277, "C": 826238, "Kotlin": 143998, "GLSL": 17726, "Objective-C": 7774, "CMake": 4632, "Makefile": 2264} | package io.github.gaomjun.live.rtmpFrame
import java.nio.ByteBuffer
import java.util.*
/**
* Created by qq on 3/2/2017.
*/
class RTMPVideoFrame: RTMPFrame() {
var sps: ByteArray? = null
var pps: ByteArray? = null
var isKeyFrame: Boolean? = null
private val headherBuffer = ByteArray(1024)
privat... | 0 | C++ | 3 | 6 | 70e6d8f075521fd14012ee9a0687f19046a97f19 | 3,374 | Ringo-Android | MIT License |
src/main/java/com/winterhazel/sigaaforkotlin/entities/Nota.kt | winterhazel | 331,383,358 | false | null | package com.winterhazel.sigaaforkotlin.entities
/**
* Representa uma nota cadastrada em uma disciplina.
*
* @param nota Indica o valor da nota. Se for uma nota ainda não inserida (-- no SIGAA), o valor é
* -1.
* @param notaMaxima Indica a nota máxima. Se não possuir uma nota máxima definida, o valor é -1.
* @par... | 3 | Kotlin | 0 | 0 | 3111598a89fda015e39835e50fcb4dcc17478dad | 608 | sigaa-for-kotlin | MIT License |
src/main/kotlin/novah/ide/IdeUtil.kt | stackoverflow | 255,379,925 | false | null | /**
* Copyright 2021 <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 wr... | 0 | Kotlin | 1 | 9 | 66b035df5ce0363ff17b0cdcd0b15c5205169af0 | 2,211 | novah | Apache License 2.0 |
domain/src/main/java/com/msg/sms/domain/repository/StudentRepository.kt | GSM-MSG | 625,706,722 | false | {"Kotlin": 649275} | package com.msg.sms.domain.repository
import com.msg.sms.domain.model.student.request.EnterStudentInformationModel
import com.msg.sms.domain.model.student.response.GetStudentModel
import com.msg.sms.domain.model.student.response.StudentListModel
import com.msg.sms.domain.model.user.response.MyProfileModel
import kotli... | 17 | Kotlin | 1 | 15 | 2fe088152db36f74f6624400f116fd3965815f50 | 1,172 | SMS-Android | MIT License |
app/src/main/kotlin/com/kentoapps/ministagram/data/source/user/UserDataSource.kt | kentoapps | 135,547,461 | false | null | package com.kentoapps.ministagram.data.source.user
import com.kentoapps.ministagram.data.model.User
import io.reactivex.Completable
import io.reactivex.Observable
interface UserDataSource {
fun isSignIn(): Observable<Boolean>
fun signUp(userName: String, email: String, password: String): Completable
fun s... | 0 | Kotlin | 7 | 18 | a40602027fbeb51d50362f21b49fef115c7d50b8 | 440 | Ministagram | Apache License 2.0 |
application/data/src/main/java/com/jamescoggan/data/model/Recipe.kt | jamescoggan | 866,363,186 | false | {"Kotlin": 68296, "HTML": 66} | package com.jamescoggan.data.model
data class Recipe(
val id: Int,
val title: String,
val imageUrl: String,
val category: String,
val cookingSteps: String
)
| 0 | Kotlin | 0 | 0 | c9428f1c9d06675d3181e8a2f6b1175480af4b02 | 178 | android-sample | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.