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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/me/paixao/tmdbexplorer/ui/moviedetail/MovieDetailViewModel.kt | zepedropaixao | 120,907,395 | false | null | package me.paixao.tmdbexplorer.ui.moviedetail
import android.app.Application
import android.arch.lifecycle.AndroidViewModel
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.Transformations
import android.databinding.BindingAdapter
import android.view.View
import android.widget.ImageView
import com.... | 0 | Kotlin | 0 | 1 | d6ea090917c6c7009d5639c72954b039e100c432 | 2,896 | tmdb-explorer | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/courtlistsplitter/health/SqsCheckTest.kt | ministryofjustice | 362,428,454 | false | null | package uk.gov.justice.digital.hmpps.courtlistsplitter.health
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.InjectMocks
import org.mockito.Mock
import org.mockito.junit.jupiter.MockitoExtension
import org.mockito... | 3 | Kotlin | 0 | 0 | 6f200e5a542036cc0395dcfd5a2f6618f32d6be5 | 1,030 | court-list-splitter | MIT License |
src/main/kotlin/com/github/kvnxiao/discord/command/processor/AnnotationProcessor.kt | kvnxiao | 210,940,556 | false | null | /**
* Copyright 2019 <NAME> (Kevin) Xiao
*
* 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... | 10 | Kotlin | 0 | 0 | d43006077a24aebce81cf87ae1333bc5fcaf26b0 | 9,644 | operator-6o | Apache License 2.0 |
kotest-tests/kotest-tests-core/src/jvmTest/kotlin/com/sksamuel/kotest/specs/funspec/FunSpecExample.kt | junron | 214,570,871 | false | {"Gradle": 30, "YAML": 2, "Markdown": 12, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 1, "Batchfile": 2, "EditorConfig": 1, "INI": 4, "Kotlin": 574, "Maven POM": 1, "XML": 10, "JavaScript": 1, "Java": 1, "JSON": 1} | package com.sksamuel.kotest.specs.funspec
import io.kotest.IsolationMode
import io.kotest.Spec
import io.kotest.Tag
import io.kotest.TestCase
import io.kotest.TestCaseOrder
import io.kotest.TestResult
import io.kotest.extensions.TestListener
import io.kotest.extensions.locale.LocaleTestListener
import io.kotest.extens... | 1 | null | 1 | 1 | 3a00e967d50a43e6200060f7c3df44c730d02610 | 1,561 | kotlintest | Apache License 2.0 |
advent-of-code-2022/src/test/kotlin/com/mzielinski/aoc2022/day11/Day11Test.kt | mzielinski | 319,708,087 | false | {"Java": 203865, "Kotlin": 53211, "Scala": 40373, "Groovy": 22824} | package com.mzielinski.aoc2022.day11
import com.mzielinski.aoc2022.GodUtil.readFile
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
internal class Day11Test {
private val day11: Day11 = Day11()
@Test
fun part01() {
assertEquals(10605, day11.monkeyInTheMiddl... | 1 | null | 1 | 1 | 968ea2e9555415f8aa77bb3f16199ad5e110a250 | 671 | advent-of-code | Apache License 2.0 |
feature_autofill_impl/src/main/kotlin/com/eakurnikov/autoque/autofill/impl/internal/domain/providers/disclaimer/DisclaimerProvider.kt | eakurnikov | 208,430,680 | false | null | package com.eakurnikov.autoque.autofill.impl.internal.domain.providers.disclaimer
import android.content.IntentSender
import android.os.Bundle
/**
* Created by eakurnikov on 2020-01-16
*/
interface DisclaimerProvider {
fun getDisclaimerIntentSender(clientState: Bundle): IntentSender
} | 0 | Kotlin | 0 | 1 | 4465eef7368e2c0633b4a47a5d0ec3c0076130ba | 294 | AutoQue | Apache License 2.0 |
app/src/main/java/com/partiufast/mercadodoimperador/model/BillHistory.kt | miguelfs | 86,751,861 | false | null | package com.partiufast.mercadodoimperador.model
import android.os.Parcel
import android.os.Parcelable
class BillHistory(val date: String,val customerName: String,val cardLastNumbers: Int, val value: String) : Parcelable {
companion object {
@JvmField val CREATOR: Parcelable.Creator<BillHistory> = object :... | 1 | null | 1 | 1 | 932d07b68f1f4caa9f9f78bb6581192f299a53ba | 1,073 | desafio-mobile | MIT License |
simplified-accounts-api/src/main/java/org/nypl/simplified/accounts/api/AccountEvent.kt | ThePalaceProject | 367,082,997 | false | null | package org.nypl.simplified.accounts.api
import org.nypl.simplified.presentableerror.api.PresentableType
/**
* The type of account events.
*/
abstract class AccountEvent : PresentableType
| 1 | null | 4 | 8 | 53b76567a67f47034307b0404c86a86d68dbfa15 | 193 | android-core | Apache License 2.0 |
templates/buffer-clean-architecture-components-kotlin/mobile-ui/src/main/java/org/buffer/android/boilerplate/ui/injection/module/BrowseActivityModule.kt | androidstarters | 95,357,887 | false | null | package <%= appPackage %>.ui.injection.module
import dagger.Module
import dagger.Provides
import <%= appPackage %>.domain.interactor.browse.GetBufferoos
import <%= appPackage %>.presentation.browse.BrowseBufferoosViewModelFactory
import <%= appPackage %>.presentation.mapper.BufferooMapper
/**
* Module used to provi... | 9 | null | 27 | 292 | 010258565bc3e941d73f9ab3950f8bae0ad38e7b | 706 | androidstarters.com | MIT License |
streaming/src/com/android/tools/idea/streaming/actions/StreamingActionGroup.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,509 | android | Apache License 2.0 |
plugins/kotlin/fir-low-level-api-ide-impl/testData/libraryModuleResolve/innerClasses.kt | ingokegel | 72,937,917 | false | null | // WITH_LIBRARY: _library
// LOAD_AST: library.WithInner
package test
import library.WithInner
fun usage() {
WithInner().f<caret>oo()
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 141 | intellij-community | Apache License 2.0 |
army-knife-gms/src/main/java/com/eaglesakura/armyknife/android/gms/extensions/FirebaseRemoteConfigExtensions.kt | eaglesakura | 140,512,537 | false | {"Gradle Kotlin DSL": 22, "Gradle": 6, "Java Properties": 2, "Shell": 1, "Ignore List": 6, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "Text": 1, "Markdown": 3, "XML": 26, "Kotlin": 208, "Proguard": 6, "Java": 3, "Dockerfile": 1, "Ruby": 3, "AIDL": 2, "YAML": 1} | @file:Suppress("unused")
package com.eaglesakura.armyknife.android.gms.extensions
import com.eaglesakura.armyknife.android.extensions.fetch
import com.google.firebase.remoteconfig.FirebaseRemoteConfig
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.async
import ko... | 3 | Kotlin | 0 | 0 | 6be9a21c69e9f01654e4586615124363d82908a9 | 3,128 | army-knife | MIT License |
src/main/kotlin/gg/octave/bot/entities/sharding/PrioritizingSessionController.kt | Bendall6456 | 402,283,496 | true | {"Gradle": 2, "Shell": 1, "Text": 17, "Ignore List": 1, "Batchfile": 1, "Markdown": 6, "Java Properties": 1, "Java": 16, "XML": 1, "Kotlin": 143} | /*
* MIT License
*
* Copyright (c) 2020 Melms Media LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... | 0 | Kotlin | 0 | 0 | 8b0dd78428ffbca5faef51f1bf69dc2dc8e78d53 | 3,155 | Octave | MIT License |
app/src/main/java/au/com/dw/contentprovidertester/query/Util.kt | davidwong | 271,272,602 | false | {"Gradle": 3, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 1, "Kotlin": 40, "XML": 20, "Java": 10} | package au.com.dw.contentprovidertester.query
fun executionTimeDisplay(time: Long): String {
if (time > 0)
if (time >= 1E9)
return (time / 1E9).toString() + " s"
else
return (time / 1E6).toString() + " ms"
else
return "not recorded"
} | 1 | null | 1 | 1 | 14dc4d4cdcc64b86c1d559f361a7d0d8107a94d5 | 291 | ContentProviderTester | Apache License 2.0 |
app/src/main/java/com/leon/app/watchlist/activities/DetailActivity.kt | LeonErath | 93,735,611 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 71, "Kotlin": 37, "Java": 4, "YAML": 1} | package com.leon.app.watchlist.activities
import android.app.Activity
import android.content.res.ColorStateList
import android.graphics.drawable.BitmapDrawable
import android.net.Uri
import android.os.Bundle
import android.support.annotation.IdRes
import android.support.design.widget.AppBarLayout
import android.suppor... | 0 | Kotlin | 0 | 1 | 5b059ada8c2a5273d0874deca82cb425e7d3030d | 13,247 | Watchlist | MIT License |
app/src/main/java/app/odapplications/bitstashwallet/entities/PriceAlertRecord.kt | bitstashco | 220,133,996 | false | null | package app.odapplications.bitstashwallet.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.math.BigDecimal
@Entity
data class PriceAlertRecord(@PrimaryKey val coinCode: String, val stateRaw: Int, val lastRate: BigDecimal?)
| 3 | null | 3 | 11 | 64c242dbbcb6b4df475a608b1edb43f87e5091fd | 257 | BitStash-Android-Wallet | MIT License |
aps/back-php/src/shared-php-impl.kt | adolfoeliazat | 93,302,907 | false | {"Java": 30937521, "PHP": 7642921, "Kotlin": 2980528, "JavaScript": 2555709, "TypeScript": 222563, "HTML": 46734, "Batchfile": 23511, "Lex": 15020, "OCaml": 6730, "C#": 4124, "Protocol Buffer": 2621, "AutoHotkey": 2556, "Shell": 843, "Vim Script": 591, "Python": 62} | package aps
import aps.back.*
val sharedPlatform = object : XSharedPlatform {
override fun currentTimeMillis(): Long {
imf("4edaf379-ad6a-4d11-a4d2-3fffb8372576")
}
override fun getenv(name: String): String? {
imf("001706a0-c7a6-4fbf-b57f-f0069cfff08b")
}
}
fun var_export(x: Any?, re... | 1 | null | 1 | 1 | 6d40f5900d94037139ed97cdc926db90749d5768 | 965 | fucking-everything | Apache License 2.0 |
app-kotlin/src/main/java/example/shuyu/recycler/kotlin/chat/utils/ChatConst.kt | CarGuo | 74,585,853 | false | null | package example.shuyu.recycler.kotlin.chat.utils
import android.content.Context
import example.shuyu.recycler.kotlin.chat.data.model.UserModel
import example.shuyu.recycler.kotlin.chat.detail.view.ChatDetailEmojiLayout
import io.realm.Realm
import io.realm.RealmConfiguration
/**
* Created by guoshuyu on 2017/9/5.
... | 1 | null | 61 | 260 | c759af9544aa025a7ab15991f6b3c5fabc3b3f68 | 1,538 | LazyRecyclerAdapter | MIT License |
app-kotlin/src/main/java/example/shuyu/recycler/kotlin/chat/utils/ChatConst.kt | CarGuo | 74,585,853 | false | null | package example.shuyu.recycler.kotlin.chat.utils
import android.content.Context
import example.shuyu.recycler.kotlin.chat.data.model.UserModel
import example.shuyu.recycler.kotlin.chat.detail.view.ChatDetailEmojiLayout
import io.realm.Realm
import io.realm.RealmConfiguration
/**
* Created by guoshuyu on 2017/9/5.
... | 1 | null | 61 | 260 | c759af9544aa025a7ab15991f6b3c5fabc3b3f68 | 1,538 | LazyRecyclerAdapter | MIT License |
CredentialManager/app/src/main/java/com/google/credentialmanager/sample/MainActivity.kt | android | 206,870,664 | false | {"Kotlin": 322416, "Java": 53733, "JavaScript": 7352} | /*
* Copyright 2023 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 ... | 39 | Kotlin | 204 | 332 | 1c9ac15c36c347fd3f30cda920ad88f813b812b3 | 2,922 | identity-samples | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/test/DistanceTest.kt | Cheeseboy8020 | 564,056,021 | false | {"Java": 208629, "Kotlin": 83634} | package org.firstinspires.ftc.teamcode.test
import com.acmerobotics.dashboard.FtcDashboard
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry
import com.alphago.agDistanceLocalization.filters.LowPassFilter
import com.alphago.agDistanceLocalization.filters.MedianFilter
import com.outoftheboxrobotics.photonco... | 1 | null | 1 | 1 | 7e6b6cabb277aebf467a81d9b9166a17df487907 | 1,329 | PowerPlay | BSD 3-Clause Clear License |
ui/framework/src/main/java/androidx/ui/core/gesture/DragGestureDetector.kt | mitutitu16 | 194,590,597 | true | {"INI": 5, "Shell": 20, "Text": 2804, "Gradle": 271, "Markdown": 16, "Ignore List": 26, "XML": 3678, "Java": 4054, "HTML": 17, "Kotlin": 1697, "Python": 13, "JSON": 31, "Proguard": 23, "Gradle Kotlin DSL": 4, "Java Properties": 12, "Protocol Buffer": 1, "AIDL": 28, "ANTLR": 1, "SVG": 1, "YAML": 2, "JSON with Comments":... | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 11 | Java | 0 | 0 | 5e53c8b2994f23e1f6356d47133e5afd4df3209e | 12,525 | platform_frameworks_support | Apache License 2.0 |
program/find-minimum-of-n-numbers/FindMinimumOfNNumbers.kt | isyuricunha | 632,079,464 | true | {"YAML": 15, "Markdown": 207, "JSON": 3, "Ignore List": 1, "JavaScript": 207, "CODEOWNERS": 1, "Text": 1, "Python": 204, "Haskell": 60, "Dart": 99, "C": 197, "Ruby": 167, "Java": 195, "C++": 199, "C#": 187, "PHP": 183, "Go": 165, "Kotlin": 159, "Perl": 85, "Scala": 120, "R": 77, "F#": 73, "Rust": 81, "Swift": 122, "Jul... | fun main() {
val n = arrayOf(10, 20, 30, 40, 50)
findMiniOfNumber(n)
}
fun findMiniOfNumber(arr: Array<Int>) {
var min = Int.MAX_VALUE
for (i in arr) {
min = min.coerceAtMost(i)
}
println(min)
}
| 824 | Java | 174 | 6 | c3949d3d4bae20112e007af14d4657cc96142d69 | 226 | program | MIT License |
androidunsplash/src/main/java/com/keenencharles/unsplash/api/HeaderInterceptor.kt | KeenenCharles | 90,798,987 | false | null | package com.keenencharles.unsplash.api
import java.io.IOException
import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response
class HeaderInterceptor(private val clientId: String, private val token: String?) : Interceptor {
@Throws(IOException::class)
override fun intercept(chain: Interceptor.... | 0 | null | 22 | 87 | 37b41a1a2f3669001e7876dfa53b6a664940c419 | 653 | AndroidUnplash | MIT License |
src/main/kotlin/IManipulator.kt | undeadparrot | 109,190,483 | false | null | import org.joml.Matrix4f
interface IManipulator : ICamera {
fun onKeyCallback(key: Int, scancode: Int, action: Int, mods: Int)
fun onMouseButtonCallback(button: Int, action: Int)
fun onMousePosCallback(xpos: Double, ypos: Double)
fun onUpdate(deltaTime: Float)
fun onScroll(xoffset: Double, yoffset:... | 1 | null | 1 | 1 | e346af7c189c845a89ab59512839ea9eebb38932 | 330 | lwjgl-play | MIT License |
app/src/main/java/com/crrl/beatplayer/ui/viewmodels/MainViewModel.kt | tsukishiroi | 243,240,650 | false | {"Kotlin": 242471, "Java": 10411} | /*
* Copyright (c) 2020. <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 law or a... | 0 | null | 30 | 0 | aa2091870d671c164d8b801afce08d7f221a1652 | 3,106 | BeatPlayer | Apache License 2.0 |
utils_androidx/src/main/java/com/fintek/utils_androidx/model/PackageInfo.kt | ZuiRenA | 309,239,093 | false | {"Gradle": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 11, "Batchfile": 1, "Markdown": 1, "INI": 6, "Proguard": 9, "XML": 29, "Kotlin": 159, "Java": 6, "JSON": 1} | package com.fintek.utils_androidx.model
/**
* Created by ChaoShen on 2020/11/30
*/
data class PackageInfo(
val appName: String,
val packageName: String,
val installTime: Long,
val updateTime: Long,
val versionName: String,
val versionCode: Int,
/**
* application flag
*/
va... | 0 | Kotlin | 0 | 1 | 3934edfc55e2a25659c14b74832f20d04bb53da5 | 407 | fintek_android_sdk | MIT License |
app/src/main/java/com/ramand/topmovies/di/ApiModule.kt | farmand421 | 655,404,949 | false | null | package com.ramand.topmovies.di
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.ramand.topmovies.api.ApiServices
import com.ramand.topmovies.utils.Constants
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3... | 0 | Kotlin | 0 | 0 | e6f1aa772828b6b00e21608f5b116c910a8eae2e | 1,666 | TopMovies | MIT License |
app/src/main/java/com/akshay/homepage/ui/home/OverviewTitleItemViewModel.kt | anandwana001 | 472,646,324 | false | null | /**
* Created by anandwana001 on
* 23, March, 2022
**/
package com.akshay.homepage.ui.home
class OverviewTitleItemViewModel : HomePageViewModel() {
} | 2 | Kotlin | 0 | 0 | 3bf74445fa31eb371f4c4c94687379f4b55a7f7d | 154 | SampleHomePage | Apache License 2.0 |
androidApp/src/main/java/com/gosunet/krepesmultiplatform/androidApp/di/AppInjector.kt | tonicfx | 316,340,241 | true | {"Kotlin": 34942, "Swift": 17994, "Ruby": 386, "HTML": 191} | package com.gosunet.krepesmultiplatform.androidApp.di
import com.bumptech.glide.Glide
import com.gosunet.krepesmultiplatform.androidApp.features.crepeslist.CrepesListViewModel
import org.koin.android.ext.koin.androidContext
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
val appModule = mo... | 0 | Kotlin | 0 | 0 | 921c60eeb8e5f346deaa9717485a14f672c9a7fe | 418 | KrepesMultiPlatform | MIT License |
app/src/main/java/com/mrg/qoutesapiapp/QuoteList.kt | nourelmergawy | 513,655,344 | false | {"Kotlin": 9802} | package com.mrg.qoutesapiapp
data class QuoteList(
val count: Int,
val totalCount: Int,
val page: Int,
val totalPages: Int,
val lastItemIndex: Int,
val results: List<Result>,
)
| 0 | Kotlin | 0 | 0 | b18e836feb07233261fc72639d9d49e4e5b276e7 | 202 | quotes-apiapp | Apache License 2.0 |
src/commonMain/kotlin/com/github/minigdx/imgui/commands/CheckBox.kt | dwursteisen | 372,747,080 | true | {"Kotlin": 29009, "Makefile": 165} | package com.github.minigdx.imgui.commands
import com.github.minigdx.imgui.ImGui
import com.github.minigdx.imgui.atlas.WidgetAtlas
import com.github.minigdx.imgui.internal.Cursor
import com.github.minigdx.imgui.internal.PrimitivesOrder
import com.github.minigdx.imgui.internal.Quad
internal class CheckBox(private val c... | 0 | Kotlin | 0 | 1 | fbacd1f91a31a4354a80709cf8ae3ee8baf5eab9 | 1,348 | minigdx-imgui-light | MIT License |
app/src/main/java/com/mieszko/currencyconverter/di/module/SharedPrefsModule.kt | GiorgioKozmani | 323,082,218 | false | null | package com.mieszko.currencyconverter.di.module
import com.mieszko.currencyconverter.data.persistance.ISharedPrefsManager
import com.mieszko.currencyconverter.data.persistance.SharedPrefsManager
import org.koin.dsl.module
val sharedPrefsModule = module {
single<ISharedPrefsManager> {
SharedPrefsManager(co... | 0 | Kotlin | 0 | 1 | a1b6e7fd5e3d4f9830855c20c6ba679a59ae3226 | 343 | currencies-converter | MIT License |
implementation/src/test/kotlin/io/github/tomplum/aoc/fish/snail/SnailFishHomeworkTest.kt | TomPlum | 431,391,240 | false | null | package io.github.tomplum.aoc.fish.snail
import assertk.assertThat
import assertk.assertions.isEqualTo
import io.github.tomplum.aoc.fish.snail.SnailFishHomework
import io.github.tomplum.aoc.input.TestInputReader
import org.junit.jupiter.api.Test
class SnailFishHomeworkTest {
@Test
fun exampleOne() {
v... | 0 | Kotlin | 0 | 0 | cccb15593378d0bb623117144f5b4eece264596d | 519 | advent-of-code-2021 | Apache License 2.0 |
app/src/main/java/cz/mendelu/xadamek5/project/ui/activities/viewmodels/SplashScreenViewModel.kt | 05adamfi09 | 659,768,033 | false | null | package cz.mendelu.xadamek5.project.ui.activities.viewmodels
import cz.mendelu.xadamek5.project.architecture.BaseViewModel
import cz.mendelu.xadamek5.project.datastore.IDataStoreRepository
import cz.mendelu.xadamek5.project.ui.activities.states.SplashScreenUiState
import kotlinx.coroutines.flow.MutableStateFlow
import... | 0 | Kotlin | 0 | 0 | a92f7343f0baeddee5d93ff053fa6dae8a91a095 | 983 | odvykacka-Android | MIT License |
j2k/tests/testData/ast/prefixOperator/statement/tilde.kt | chirino | 3,596,099 | true | null | var i : Int = 10
var j : Int = (10).inv() | 0 | Java | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 41 | kotlin | Apache License 2.0 |
app/features/chathistory/src/main/java/tv/orange/features/chathistory/ChatHistory.kt | NyanArchive | 503,292,084 | false | null | package tv.orange.features.chathistory
import io.reactivex.android.schedulers.AndroidSchedulers
import tv.orange.core.Core
import tv.orange.core.ResourcesManagerCore
import tv.orange.core.models.flag.Flag
import tv.orange.core.models.flag.Flag.Companion.asBoolean
import tv.orange.features.chathistory.bridge.ILiveChatS... | 0 | Kotlin | 0 | 2 | 3ac69f519566176312e9db57f883d2cdb36fa031 | 2,808 | OrangeTV | Apache License 2.0 |
src/main/kotlin/exnihilofabrico/util/ItemUtils.kt | SirLyle | 220,114,285 | false | null | package exnihilofabrico.util
import exnihilofabrico.id
import net.minecraft.entity.ItemEntity
import net.minecraft.item.ItemConvertible
import net.minecraft.item.ItemStack
import net.minecraft.util.Identifier
import net.minecraft.util.math.BlockPos
import net.minecraft.util.registry.Registry
import net.minecraft.world... | 5 | null | 4 | 3 | 5224a14b7b50ab5df34a9edbd5ea9e63d743ed62 | 1,272 | ExNihiloFabrico | MIT License |
library/src/main/kotlin/com/hagergroup/sweetpotato/content/SweetBroadcastListenersProvider.kt | aisalmi | 397,606,183 | false | null | package com.hagergroup.sweetpotato.content
/**
* States that the Android [androidx.appcompat.app.AppCompatActivity] or [androidx.fragment.app.Fragment] entity which implements this interface is able to provide several
* [SweetBroadcastListener].
* <p>
* As soon as a [com.hagergroup.sweetpotato.app.Sweetable] entit... | 0 | null | 0 | 0 | 094dc12f1ebed8eeee1340fa3f174f37b5ff22fa | 2,035 | sweet-potato-android | MIT License |
src/main/kotlin/io/openapiprocessor/core/parser/swagger/FailedException.kt | openapi-processor | 268,750,021 | false | null | /*
* Copyright 2021 https://github.com/openapi-processor/openapi-processor-core
* PDX-License-Identifier: Apache-2.0
*/
package io.openapiprocessor.core.parser.swagger
class FailedException : RuntimeException()
| 8 | Kotlin | 4 | 7 | 1bf168c0af909fbdf7fa44ab3f9712492fb1380d | 216 | openapi-processor-core | Apache License 2.0 |
src/libts/core/scraper/BusScraper.kt | Benjozork | 192,191,911 | false | null | package libts.core.scraper
import com.soywiz.klock.DateTime
import com.soywiz.klock.DateTimeTz
import com.soywiz.klock.seconds
import libts.core.model.Route
import libts.core.model.ScheduledBus
import libts.core.model.Stop
import libts.core.model.TransSee
import libts.core.scraper.backend.loadDocument
import libts.... | 0 | Kotlin | 0 | 0 | 3b42b8cb3baebebb7bf1d9b32c4fb103dbbf92f8 | 1,040 | libts | MIT License |
app/build-logic/convention/src/main/java/AndroidLibraryConventionPlugin.kt | Uhjinkim | 850,430,659 | false | {"Kotlin": 81861} | import com.android.build.gradle.LibraryExtension
import com.anotn.flea.convention.configureKotlinAndroid
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.gradle.... | 0 | Kotlin | 0 | 1 | d321af1c24b973faa0345aede4d353ce42e791a8 | 1,170 | Flea-Market | MIT License |
compiler/backend/src/org/jetbrains/kotlin/codegen/RangeCodegenUtil.kt | milos85vasic | 131,718,837 | false | null | /*
* Copyright 2010-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... | 0 | null | 0 | 2 | 10da41b1367f8889589989fc89123182389a7174 | 11,970 | kotlin | Apache License 2.0 |
src/main/kotlin/juuxel/adorn/gui/controller/SimpleInvController.kt | modindex | 214,723,737 | true | {"Kotlin": 234308, "Java": 9514, "Shell": 297} | package juuxel.adorn.gui.controller
import io.github.cottonmc.cotton.gui.widget.WGridPanel
import io.github.cottonmc.cotton.gui.widget.WItemSlot
import juuxel.adorn.gui.painter.Painters
import juuxel.adorn.gui.widget.WColorableLabel
import net.fabricmc.api.EnvType
import net.fabricmc.api.Environment
import net.minecra... | 0 | Kotlin | 0 | 0 | 9941d7de7de66fc1dce4edeb29e3b2dcd78e0c2f | 1,811 | Adorn | MIT License |
app/src/main/java/com/padcx/travelapp/travelapp_testautomation_mmz/mvp/impls/BaseAppPresenterImpl.kt | junelaykris | 280,520,797 | false | null | package com.padcx.travelapp.travelapp_testautomation_mmz.mvp.impls
import com.padcx.travelapp.travelapp_testautomation_mmz.mvp.AbstractBasePresenter
import com.padcx.travelapp.travelapp_testautomation_mmz.mvp.BasePresenter
import com.padcx.travelapp.travelapp_testautomation_mmz.mvp.views.BaseView
/**
* Created by <N... | 0 | Kotlin | 0 | 0 | a090335c2dd1be2569cf532bc6749e65a4cb64c4 | 439 | PADCX_TravelApp_TestAutomation_MMZ | MIT License |
EvoMaster/e2e-tests/spring-rest-postgres/src/main/kotlin/com/foo/spring/rest/postgres/base/BaseApp.kt | BrotherKim | 397,139,860 | false | {"Markdown": 32, "Shell": 14, "Maven POM": 66, "Text": 16, "Ignore List": 13, "Java": 1366, "SQL": 44, "YAML": 13, "JSON": 37, "JavaScript": 183, "XML": 14, "Mermaid": 1, "Java Properties": 36, "INI": 15, "HTML": 52, "Dockerfile": 2, "CSS": 8, "JSON with Comments": 3, "Less": 8, "SVG": 16, "Kotlin": 541, "OASv2-yaml": ... | package com.foo.spring.rest.postgres.base
import com.foo.spring.rest.postgres.SwaggerConfiguration
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconf... | 1 | null | 1 | 1 | a7a120fe7c3b63ae370e8a114f3cb71ef79c287e | 1,370 | ASE-Technical-2021-api-linkage-replication | MIT License |
app/src/main/java/cc/ticks/chatgpt/activities/MainActivity.kt | ticks-tan | 619,163,082 | false | null | package cc.ticks.chatgpt.activities
import android.Manifest
import android.app.ActivityManager
import android.content.Intent
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.graphics.Color
import android.os.Bundle
import android.util.TypedValue
import android.view.Menu
i... | 0 | Kotlin | 0 | 0 | 918be6a3de5bdae1eb561b8e02a0f041e97d36b0 | 4,947 | ChatGPT-Android | Apache License 2.0 |
ksp/src/main/kotlin/zsu/kni/ksp/native/NativeApiGen.kt | zsqw123 | 676,586,141 | false | {"Kotlin": 78505} | package zsu.kni.ksp.native
import com.google.devtools.ksp.symbol.KSFunctionDeclaration
import com.squareup.kotlinpoet.*
import zsu.kni.JniApi
import zsu.kni.ksp.KniContext
import zsu.kni.ksp.addVal
import zsu.kni.ksp.isStatic
import zsu.kni.ksp.optAnnotation
class NativeApiGen(
private val context: KniContext
) :... | 0 | Kotlin | 0 | 0 | 6aa0424fa2c6b01b429addecfb962b3b35a1ce87 | 2,292 | kn-jvm | Apache License 2.0 |
app/src/main/java/com/example/clean_todo_list/framework/datasource/cache/model/TaskCacheEntity.kt | mahdi-hosseinnion | 385,271,323 | false | null | package com.example.clean_todo_list.framework.datasource.cache.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "tasks")
data class TaskCacheEntity(
@PrimaryKey(autoGenerate = false)
@ColumnInfo(name = "id")
val id: String,
@ColumnI... | 0 | Kotlin | 0 | 1 | 1cacea50e3463491ada90d034d253ac5502deb03 | 601 | Clean-ToDo_List | MIT License |
intellij-plugin/src/main/kotlin/com/apollographql/ijplugin/refactoring/migration/item/UpdateClassName.kt | apollographql | 69,469,299 | false | {"Kotlin": 3463807, "Java": 198208, "CSS": 34435, "HTML": 5844, "JavaScript": 1191} | package com.apollographql.ijplugin.refactoring.migration.item
import com.apollographql.ijplugin.refactoring.findClassReferences
import com.apollographql.ijplugin.refactoring.findOrCreateClass
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiMigration
import com.intellij.psi.search.GlobalSearchSco... | 135 | Kotlin | 651 | 3,750 | 174cb227efe76672cf2beac1affc7054f6bb2892 | 1,909 | apollo-kotlin | MIT License |
rv_test/app/src/main/java/com/tjclawson/rv_test/TestAdapter.kt | tjclawson | 257,737,751 | false | null | package com.tjclawson.rv_test
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.test_list_view.view.*
class TestAdapter... | 0 | Kotlin | 0 | 0 | 65975854b6ce1ad279293aeab531949d687ccdde | 1,420 | rv_java | MIT License |
src/main/kotlin/eu/kevin/api/extensions/StringExtension.kt | getkevin | 397,267,321 | false | null | package eu.kevin.api.extensions
internal fun String.appendAtStartIfNotExist(
stringToAppend: String
): String =
if (this.startsWith(stringToAppend)) this else stringToAppend + this
| 3 | Kotlin | 3 | 0 | 84878008751e36ae0f9f09912d4aad08e9b8b648 | 190 | kevin-jvm | MIT License |
scrollingdatepicker/src/main/java/com/aidanlaing/scrollingdatepicker/ScrollingDatePicker.kt | AidanLaing | 722,737,130 | false | {"Kotlin": 37204} | package com.aidanlaing.scrollingdatepicker
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.lazy.LazyItemScope
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIn... | 0 | Kotlin | 0 | 0 | d9d3c717a636190e6db12d2bbb2f23864881b1cf | 8,103 | compose-scrolling-date-picker | MIT License |
app/src/main/java/com/takohi/sanctuary/database/SanctuaryDatabase.kt | KonsomeJona | 438,542,304 | false | {"Kotlin": 60141} | package com.takohi.sanctuary.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Application::class, SystemApplication::class], version = 1, exportSchema = false)
abstract class SanctuaryDatabase : RoomDatabase() {
... | 0 | Kotlin | 1 | 3 | 8c01b3907c7aa847a75e931a869a579ec4c9fdcd | 969 | Sanctuary | Creative Commons Attribution 3.0 Unported |
app/src/main/java/com/takohi/sanctuary/database/SanctuaryDatabase.kt | KonsomeJona | 438,542,304 | false | {"Kotlin": 60141} | package com.takohi.sanctuary.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Application::class, SystemApplication::class], version = 1, exportSchema = false)
abstract class SanctuaryDatabase : RoomDatabase() {
... | 0 | Kotlin | 1 | 3 | 8c01b3907c7aa847a75e931a869a579ec4c9fdcd | 969 | Sanctuary | Creative Commons Attribution 3.0 Unported |
kevs-ksp/src/main/kotlin/io/kevs/ksp/exception/KevsKspProcessingException.kt | MikiLoz92 | 502,142,453 | false | null | package io.kevs.ksp.exception
class KevsKspProcessingException(override val message: String?) : Throwable(message) | 0 | Kotlin | 0 | 0 | 861b0e117c6af98311983d6623882534ff32cebd | 115 | kevs | MIT License |
app/src/main/java/com/mozio/moziopizza/di/module/PizzaDaoModule.kt | iamIcarus | 631,704,524 | false | null | package com.mozio.moziopizza.di.module
import android.content.Context
import androidx.lifecycle.viewmodel.viewModelFactory
import androidx.room.Room
import com.mozio.moziopizza.data.local.db.AppDatabase
import com.mozio.moziopizza.data.local.db.PizzaDao
import dagger.Module
import dagger.Provides
import dagger.hilt.In... | 0 | Kotlin | 0 | 0 | a283b588b1cbc5536d7c18cedeeaed402a13b48b | 967 | MozioPizza | MIT License |
app/src/main/java/info/degirona/compose2048/ui/tile/TileRenderer.kt | manuel-martos | 565,597,218 | false | {"Kotlin": 45603} | package info.degirona.compose2048.ui.tile
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.keyframes
import androidx.compose.animation.core.tween
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.key
import ... | 0 | Kotlin | 1 | 50 | d01f6bf7b73743deb05a1a8196c92e8b27def88a | 7,259 | compose-2048 | MIT License |
infra/resilience4j/src/main/kotlin/io/bluetape4k/resilience4j/retry/RetryExtensions.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.resilience4j.retry
import io.github.resilience4j.core.functions.CheckedRunnable
import io.github.resilience4j.retry.Retry
import java.util.concurrent.CompletableFuture
import java.util.concurrent.CompletionStage
import java.util.concurrent.Executors
import java.util.concurrent.ScheduledExecutorSe... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 3,084 | bluetape4k | MIT License |
Halachic Times/locations/src/main/java/org/geonames/FeatureClass.kt | pnemonic78 | 121,489,129 | false | {"Kotlin": 934663, "Java": 133897, "HTML": 5998, "Shell": 73} | /*
* Copyright 2008 Marc Wick, geonames.org
*
* 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 o... | 43 | Kotlin | 2 | 9 | b5f03dbbc318efed0f8e51e0ad0139dc192b82b0 | 1,724 | HalachicTimes | Apache License 2.0 |
src/main/kotlin/me/cunzai/plugin/newplayercode/NewPlayerCode.kt | EmptyIrony | 853,080,332 | false | {"Kotlin": 28222} | package me.cunzai.plugin.newplayercode
import taboolib.common.platform.Plugin
import taboolib.common.platform.function.info
object NewPlayerCode : Plugin() | 0 | Kotlin | 0 | 0 | 61e0208225fda353417e8ac0e7453d3c3a6b7b6b | 157 | NewPlayerCode | Creative Commons Zero v1.0 Universal |
src/main/kotlin/codes/foobar/wedapp/contact/Contact.kt | apgv | 119,103,169 | false | null | package codes.foobar.wedapp.contact
import java.time.ZonedDateTime
data class Contact(
val id: Int,
val name: String,
val email: String?,
val phone: String?,
val updatedDateTime: ZonedDateTime
) | 1 | null | 1 | 1 | f5006f446f758c0a79f6bd7db97b46390580c1eb | 236 | wedapp | MIT License |
app/src/test/kotlin/com/fibelatti/pinboard/features/appstate/NavigationActionHandlerTest.kt | lwns | 207,944,557 | true | {"Kotlin": 529066} | package com.fibelatti.pinboard.features.appstate
import com.fibelatti.core.functional.Either
import com.fibelatti.core.provider.ResourceProvider
import com.fibelatti.core.test.extension.mock
import com.fibelatti.core.test.extension.shouldBe
import com.fibelatti.pinboard.MockDataProvider.createPost
import com.fibelatti... | 0 | null | 0 | 0 | d36308f32ace130b1a80fb3bd18e6e28872e5cff | 19,240 | pinboard-kotlin | Apache License 2.0 |
Compat/src/main/kotlin/me/ste/stevesseries/base/chatinput/PlayerChatInput.kt | SteveTheEngineer | 243,009,646 | false | {"Gradle Kotlin DSL": 4, "Markdown": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 74, "INI": 1, "Java": 5} | package me.ste.stevesseries.base.chatinput
import me.ste.stevesseries.base.api.BaseAPI
import me.ste.stevesseries.base.api.extensions.acceptChatInput
import me.ste.stevesseries.base.api.extensions.cancelChatInput
import me.ste.stevesseries.base.chatinput.PlayerChatInput.chatInputListener
import org.bukkit.Bukkit
impor... | 0 | Kotlin | 0 | 0 | d8dc71fed6a5531e0ea8717fd965932a71030f65 | 1,291 | SS-Core-Base | MIT License |
app/src/main/java/com/spongycode/songquest/ui/screen/gameplay/home/components/CardInfo.kt | spongycode | 739,898,675 | false | {"Kotlin": 184688} | package com.spongycode.songquest.ui.screen.gameplay.home.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.com... | 0 | Kotlin | 0 | 8 | 3afbbfa7a90552e926258e41ddff007e5b9e1e5c | 2,849 | song-quest | MIT License |
orchestrator-service/src/main/kotlin/com/dekinci/gdeploy/orchestrator/VirtualDeploymentProcessor.kt | DeKinci | 380,109,331 | false | {"Kotlin": 64234} | package com.dekinci.gdeploy.orchestrator
import com.dekinci.gdeploy.orchestrator.deployment.GranularClient
import com.dekinci.gdeploy.orchestrator.deployment.VirtualDeployment
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import io.fabric8.kubernetes.api.model.... | 0 | Kotlin | 1 | 0 | 77b7e80242f2e30a6e001f0c0d469b49a44cfa35 | 5,731 | granular-deployment | MIT License |
src/main/kotlin/dev/dexsr/gmod/palworld/toolbox/core/Thread.kt | flammky | 758,310,188 | false | {"Kotlin": 1491891} | package dev.dexsr.gmod.palworld.toolbox.core
import dev.dexsr.gmod.palworld.trainer.utilskt.LazyConstructor
typealias jThread = java.lang.Thread
private object Thread {
val INSTANCE = LazyConstructor<java.lang.Thread>()
}
val Core.MainThread get() = Thread.INSTANCE.value
fun Core.constructMainThread(
block... | 0 | Kotlin | 0 | 4 | cd07163868b5ee8d3f46d106d467d211b8f3c5d8 | 476 | PalToolbox | Apache License 2.0 |
src/backend/ci/core/misc/biz-misc/src/main/kotlin/com/tencent/devops/misc/websocket/MiscNodeWebsocketPush.kt | freyzheng | 249,317,442 | true | {"Kotlin": 12078658, "Vue": 3568386, "Java": 1422612, "JavaScript": 906104, "CSS": 428463, "TSQL": 316166, "Lua": 144868, "Go": 134130, "HTML": 46195, "TypeScript": 32681, "Shell": 30664, "Python": 3714, "PLSQL": 2376, "Batchfile": 2202} | package com.tencent.devops.environment.websocket
import com.fasterxml.jackson.databind.ObjectMapper
import com.tencent.devops.common.event.annotation.Event
import com.tencent.devops.common.event.dispatcher.pipeline.mq.MQ
import com.tencent.devops.common.redis.RedisOperation
import com.tencent.devops.common.websocket.d... | 0 | Kotlin | 0 | 0 | 14ff7305a0770084a83911ef766542be8242a20c | 1,548 | bk-ci | MIT License |
src/backend/ci/core/misc/biz-misc/src/main/kotlin/com/tencent/devops/misc/websocket/MiscNodeWebsocketPush.kt | freyzheng | 249,317,442 | true | {"Kotlin": 12078658, "Vue": 3568386, "Java": 1422612, "JavaScript": 906104, "CSS": 428463, "TSQL": 316166, "Lua": 144868, "Go": 134130, "HTML": 46195, "TypeScript": 32681, "Shell": 30664, "Python": 3714, "PLSQL": 2376, "Batchfile": 2202} | package com.tencent.devops.environment.websocket
import com.fasterxml.jackson.databind.ObjectMapper
import com.tencent.devops.common.event.annotation.Event
import com.tencent.devops.common.event.dispatcher.pipeline.mq.MQ
import com.tencent.devops.common.redis.RedisOperation
import com.tencent.devops.common.websocket.d... | 0 | Kotlin | 0 | 0 | 14ff7305a0770084a83911ef766542be8242a20c | 1,548 | bk-ci | MIT License |
app/src/main/java/com/hmju/httptracking/MemoApiService.kt | sieunju | 487,008,552 | false | null | package com.hmju.httptracking
import io.reactivex.rxjava3.core.Single
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Headers
import retrofit2.http.QueryMap
/**
* Description :
*
* Created by juhongmin on 2022/12/04
*/
interface MemoApiService {
@Headers("X-FOO: DDDD", "DDD: dfff"... | 1 | Kotlin | 0 | 5 | fcb230fe6e82846b446bf9e933ae7aeee0fe43eb | 430 | httptracking | MIT License |
samples/simple-android/feature-A/src/main/kotlin/io/morfly/airin/sample/featureA/ui/FirstViewModel.kt | Morfly | 368,910,388 | false | {"Kotlin": 124992} | package io.morfly.airin.sample.featureA.ui
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class FirstViewModel @Inject constructor(): ViewModel() {
} | 1 | Kotlin | 5 | 34 | 7ba3fada7a1e0e73a758d37447a42ef7f54d338f | 233 | airin | Apache License 2.0 |
src/commonTest/kotlin/xyz.eatsteak.kusaint/Utils.kt | EATSTEAK | 392,236,459 | false | null | package xyz.eatsteak.kusaint
import kotlin.coroutines.CoroutineContext
expect fun runBlockingTest(block: suspend () -> Unit)
expect val testCoroutineContext: CoroutineContext | 5 | Kotlin | 1 | 3 | 705b40d8ef450d97efd95a50ee94c622851a0460 | 176 | kusaint | Apache License 2.0 |
app/src/main/java/ar/scacchipa/twittercloneapp/data/UserMapper.kt | pscacchi | 490,417,765 | false | null | package ar.scacchipa.twittercloneapp.data
import ar.scacchipa.twittercloneapp.data.model.UserData
import ar.scacchipa.twittercloneapp.domain.model.UserInfo
class UserMapper: IMapper<UserData, UserInfo> {
override fun toDomain(value: UserData): UserInfo {
return UserInfo(
id = value.id,
... | 0 | Kotlin | 0 | 0 | bb0656a40988a9f3c278d94dd4db04c8f8443bad | 778 | TwitterCloneApp | Apache License 2.0 |
shared/src/commonMain/kotlin/me/androidbox/busbytranslator/data/translate/KtorTranslateClient.kt | steve1rm | 674,737,339 | false | null | package me.androidbox.busbytranslator.data.translate
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.request.post
import io.ktor.client.request.setBody
import io.ktor.client.request.url
import io.ktor.http.ContentType
import io.ktor.http.contentType
import io.ktor.utils.io.errors... | 0 | Kotlin | 0 | 0 | 38b1a2317313ddf612997e7770640d1b23827396 | 2,078 | busbytranslator | MIT License |
shared/src/commonMain/kotlin/me/androidbox/busbytranslator/data/translate/KtorTranslateClient.kt | steve1rm | 674,737,339 | false | null | package me.androidbox.busbytranslator.data.translate
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.request.post
import io.ktor.client.request.setBody
import io.ktor.client.request.url
import io.ktor.http.ContentType
import io.ktor.http.contentType
import io.ktor.utils.io.errors... | 0 | Kotlin | 0 | 0 | 38b1a2317313ddf612997e7770640d1b23827396 | 2,078 | busbytranslator | MIT License |
app/src/main/java/com/example/iwatchedthis/presentation/navigation/graphs/Graphs.kt | asGenn | 836,220,356 | false | {"Kotlin": 97097} | package com.example.iwatchedthis.presentation.navigation.graphs
object Graphs {
const val ROOT_GRAPH = "root_graph"
const val MAIN_GRAPH = "main_graph"
const val HOME_GRAPH = "home_graph"
const val PROFILE_GRAPH = "profile_graph"
}
| 0 | Kotlin | 0 | 0 | 0e4f8837068a8276c63284e317e658b349020dd3 | 249 | iwatchedthis | MIT License |
core-hardware/src/main/java/com/nullgr/core/hardware/NetworkChecker.kt | nullgr | 126,462,193 | false | null | package com.nullgr.core.hardware
import android.content.Context
import android.net.ConnectivityManager
/**
* @author chernyshov.
*/
class NetworkChecker(context: Context) {
private val connectivityManager by lazy { context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager }
/**
* ... | 5 | null | 12 | 24 | 6cb588384090aa76d94f052f32de6c26cbd042e3 | 2,103 | app-core | MIT License |
core/src/main/kotlin/com/atlassian/migration/datacenter/core/aws/infrastructure/migrationStack/MigrationStackInputGatheringStrategyFactory.kt | moveworkforward | 321,496,207 | false | null | /*
* Copyright 2020 Atlassian
*
* 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 | null | 1 | 1 | 3f7ce88e618750c0c7f57bd5ce3c4fbb4563a467 | 1,319 | dc-migration-assistant | Apache License 2.0 |
common/src/test/kotlin/flank/common/config/FlankPropertiesTest.kt | Flank | 84,221,974 | false | {"Kotlin": 1748173, "Java": 101254, "Swift": 41229, "Shell": 10674, "Objective-C": 10006, "Dart": 9705, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "Ruby": 2272, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1183, "EJS": 1061, "Go": 159} | package flank.common.config
import com.google.common.truth.Truth.assertThat
import org.junit.Test
internal class FlankPropertiesTest {
@Test
fun `should return true for isTest`() {
assertThat(isTest()).isTrue()
}
}
| 64 | Kotlin | 115 | 676 | b40904b4e74a670cf72ee53dc666fc3a801e7a95 | 238 | flank | Apache License 2.0 |
src/main/kotlin/io/cutebot/memegen/service/TelegramService.kt | asundukov | 279,358,764 | false | null | package io.cutebot.memegen.service
import io.cutebot.telegram.client.TelegramApi
import org.springframework.stereotype.Service
@Service
class TelegramService {
val api = TelegramApi()
} | 9 | Kotlin | 0 | 0 | 8857492eb3409bd124979aea7f8acb572c1c314f | 191 | meme-gen-bot | Apache License 2.0 |
app/src/main/java/com/noderunner/vapetools/ui/screens/ohm_screen/OhmScreen.kt | no-derunner | 699,052,055 | false | {"Kotlin": 138389} | package com.noderunner.vapetools.ui.screens.ohm_screen
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
im... | 0 | Kotlin | 0 | 0 | 37f74fe12943a31c5708533a44fa300484c9ba27 | 4,260 | Vape-Tools | The Unlicense |
memkched-client/src/test/kotlin/unit/com/raycoarana/memkched/MemkchedClientUnitTest.kt | raycoarana | 597,846,682 | false | null | package com.raycoarana.memkched
import com.raycoarana.memkched.api.CasUnique
import com.raycoarana.memkched.api.Expiration.Relative
import com.raycoarana.memkched.api.Flags
import com.raycoarana.memkched.api.Reply
import com.raycoarana.memkched.api.Transcoder
import com.raycoarana.memkched.internal.Cluster
import com.... | 2 | Kotlin | 0 | 0 | 3cda555d4c24768eb59679b31b143a8277ff4099 | 15,652 | memkched | MIT License |
app/src/main/java/com/rafaelfelipeac/improov/core/platform/ActionCompleteContract.kt | rafaelfelipeac | 160,363,382 | false | null | package com.rafaelfelipeac.improov.core.platform
import androidx.recyclerview.widget.RecyclerView
interface ActionCompleteContract {
fun onViewMoved(fromPosition: Int, toPosition: Int)
fun onViewSwiped(position: Int, direction: Int, holder: RecyclerView.ViewHolder)
}
| 1 | Kotlin | 3 | 22 | 6ff4d515f0968a0752817ef4d942f1b3f424611c | 278 | improov | Apache License 2.0 |
feature/base/src/main/kotlin/net/twisterrob/colorfilters/android/ColorUtils.kt | TWiStErRob | 136,540,073 | false | {"Gradle Kotlin DSL": 14, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 1, "Batchfile": 2, "Markdown": 3, "XML": 96, "YAML": 4, "TOML": 1, "INI": 4, "Kotlin": 80, "JSON5": 1, "Gradle": 20, "Proguard": 2, "Java": 2} | package net.twisterrob.colorfilters.android
import android.graphics.Color
import androidx.annotation.ColorInt
import androidx.core.graphics.alpha
import androidx.core.graphics.blue
import androidx.core.graphics.green
import androidx.core.graphics.red
@Suppress("NOTHING_TO_INLINE")
inline fun @receiver:ColorInt Int.re... | 17 | Kotlin | 0 | 4 | 8484c351173153b5c5d1980f7ae5674097e60908 | 1,118 | net.twisterrob.colorfilters | The Unlicense |
feature/home/src/main/kotlin/com/mobiledevpro/home/view/HomeViewModel.kt | mobiledevpro | 434,560,335 | false | {"Kotlin": 98027, "Java": 3283} | /*
* Copyright 2021 | <NAME> | http://mobile-dev.pro
*
*
* 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 appl... | 1 | Kotlin | 1 | 3 | 374a766ae6e3c7a038465ae5f45a08549a6c78e8 | 3,474 | Android-WorkManager-Demo | Apache License 2.0 |
app/src/main/java/xyz/malkki/neostumbler/http/HttpUtils.kt | mjaakko | 702,807,829 | false | {"Kotlin": 345467} | package xyz.malkki.neostumbler.http
import android.content.Context
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import timber.log.Timber
import xyz.malkki.neostumbler.BuildConfig
import xyz.malkki.neostumbler.R
import kotlin.time.Duration.Companion.minutes
import kotlin.time.Duration.Compa... | 37 | Kotlin | 10 | 118 | 147e654c838bd10b2fc346a692e73c8c4659e88d | 1,527 | NeoStumbler | MIT License |
app/src/main/java/io/github/emusute1212/makasetechoice/ui/groups/GroupAction.kt | emusute1212 | 264,396,740 | false | {"Kotlin": 93804} | package io.github.emusute1212.makasetechoice.ui.groups
import io.github.emusute1212.makasetechoice.data.entity.Member
fun interface GroupAction {
operator fun invoke(action: GroupUiAction)
}
sealed interface GroupUiAction {
data object ClickGroupMember : GroupUiAction
data class DeleteMember(
val... | 3 | Kotlin | 0 | 0 | 1d87b045a125771f22916dd6b8d02af60ed3113a | 361 | MakaseteChoiceForAndroid | MIT License |
app/src/main/java/com/a10miaomiao/bilimiao/comm/delegate/player/model/BasePlayerSource.kt | 10miaomiao | 142,169,120 | false | null | package com.a10miaomiao.bilimiao.comm.delegate.player.model
import com.a10miaomiao.bilimiao.comm.apis.PlayerAPI
import master.flame.danmaku.danmaku.parser.BaseDanmakuParser
interface BasePlayerSource {
val title: String
val coverUrl: String
suspend fun getPlayerUrl(quality: Int): String
suspend fun ge... | 5 | Kotlin | 10 | 184 | 7bcce94cf56a140f492e52dd9ac6798aa0d67117 | 414 | bilimiao2 | Apache License 2.0 |
app/src/main/java/pl/maupa/quadk/MainActivity.kt | gkodzik | 201,999,942 | false | null | package pl.maupa.quadk
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R... | 0 | Kotlin | 0 | 0 | 8cf29811a73faecaad21f2c70490b74442077927 | 496 | quadk | Apache License 2.0 |
app/src/main/java/com/andrehaueisen/fitx/client/DayAgendaFragment.kt | AndreHaueisen | 82,978,247 | false | null | package com.andrehaueisen.fitx.client
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import ... | 1 | null | 1 | 1 | e27cf9d3504b937b480823598bd06fd12b7a7d39 | 4,431 | NewPersonalApp | Apache License 2.0 |
server/src/main/java/com/catprogrammer/cogedimscanner/controller/BaseController.kt | NathanKun | 216,575,726 | false | {"TypeScript": 71354, "Kotlin": 51620, "Java": 24162, "HTML": 19052, "SCSS": 6754, "JavaScript": 1828, "CSS": 544} | package com.catprogrammer.cogedimscanner.controller
import com.catprogrammer.cogedimscanner.model.RealEstateDeveloper
open class BaseController {
protected fun getDeveloperFromUrl(url: String): RealEstateDeveloper {
return when {
url.contains("cogedim.com", ignoreCase = true) -> {
... | 4 | TypeScript | 0 | 0 | 2bf737c3a8a2c141a94ee261487596d1eb9f7a0a | 758 | real-estate-scanner | The Unlicense |
tmp/arrays/youTrackTests/7853.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-24790
interface A
data class B<out T : A>(val a: T)
fun main(args: Array<String>) {
val b1 = B(object : A {})
val b2 = B(object : A {})
println(b1.hashCode() == b2.hashCode())
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 207 | bbfgradle | Apache License 2.0 |
src/main/kotlin/br/com/zup/pix/RemoveChaveController.kt | grsantos13 | 346,377,156 | true | {"Kotlin": 27244, "Dockerfile": 135} | package br.com.zup.pix
import br.com.zup.KeymanagerRemoveChavePixGrpcServiceGrpc
import br.com.zup.RemoveChavePixRequest
import io.micronaut.http.HttpResponse
import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Delete
import io.micronaut.http.annotation.PathVariable
import io.swagger.v3.... | 0 | Kotlin | 0 | 0 | 7bff4e63105e377bb48dde070d36119051b2412c | 1,601 | orange-talents-01-template-pix-keymanager-rest | Apache License 2.0 |
app/src/main/java/com/battagliandrea/covid19/ui/items/chartvariations/ChartItemMapper.kt | battagliandrea | 259,086,086 | false | null | package com.battagliandrea.covid19.ui.items.chartvariations
import android.content.Context
import androidx.core.content.ContextCompat
import com.battagliandrea.covid19.R
import com.battagliandrea.domain.entity.DpcVariationEntity
import com.github.mikephil.charting.data.Entry
import javax.inject.Inject
import javax.inj... | 0 | Kotlin | 0 | 1 | 145434b1ac9ab02164402ca9705250020c4b8276 | 2,944 | Covid-19 | Apache License 2.0 |
Jetcaster/tv/src/main/java/com/example/jetcaster/tv/ui/component/TwoColumn.kt | android | 211,288,349 | false | {"Kotlin": 1511353, "Shell": 9647} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 19 | Kotlin | 4785 | 20,140 | b7897e75b4ac039bd407b6f438cbe30800cc5771 | 1,383 | compose-samples | Apache License 2.0 |
app/src/main/java/dmitrii/zhuchkov/sandbox/navigation/RouterImpl.kt | Zhuchk | 251,102,395 | false | null | package dmitrii.zhuchkov.sandbox.navigation
import dmitry.zhuchkov.component.navigation.NavigationEvent
import dmitry.zhuchkov.component.navigation.NavigationEventProvider
import dmitry.zhuchkov.component.navigation.Router
/**
* Created by Dmitrii on 11.12.2019
*
*/
class RouterImpl(
private val provider: Navi... | 0 | Kotlin | 0 | 0 | 0aa851fdcab0848a5a80ef8e792759eb3a687172 | 459 | ArchitectureSandbox | MIT License |
tools/pay/src/main/kotlin/top/bettercode/summer/tools/pay/weixin/WeixinPayException.kt | top-bettercode | 387,652,015 | false | {"Kotlin": 2824875, "Java": 23658, "JavaScript": 22541, "CSS": 22336, "HTML": 16703} | package top.bettercode.summer.tools.pay.weixin
/**
*
* @author <NAME>
*/
class WeixinPayException(message: String, val response: Any? = null) : RuntimeException(message) {
//serrialVersionUID
private val serialVersionUID = 1L
} | 0 | Kotlin | 0 | 1 | ea42e93872016bc02cf4b802868d4374c7cd86ae | 239 | summer | Apache License 2.0 |
domain/src/main/java/com/saeedlotfi/limlam/domain/model/PlayListDoModel.kt | lotfi-workbox | 603,992,478 | false | null | package com.saeedlotfi.limlam.domain.model
data class GenreDoModel(
var name: String? = null,
var musics: MutableList<MusicDoModel>? = null,
var duration: Int? = null,
var visibility: Boolean = true,
override var title: String? = name,
override var details: String? = null,
override v... | 0 | Kotlin | 0 | 0 | a48a29029fe0474b250e071c9281e2767031a1c9 | 439 | limlam | Apache License 2.0 |
src/main/kotlin/id/walt/signatory/revocation/statuslist2021/index/StatusListIndexService.kt | walt-id | 392,607,264 | false | {"Kotlin": 1154151, "Java": 9175, "Open Policy Agent": 2974, "Shell": 2842, "Dockerfile": 1615, "JavaScript": 891, "Python": 351} | package id.walt.signatory.revocation.statuslist2021.index
import id.walt.servicematrix.ServiceProvider
import id.walt.servicematrix.ServiceRegistry
import id.walt.services.WaltIdService
abstract class StatusListIndexService : WaltIdService() {
override val implementation: StatusListIndexService get() = serviceImp... | 2 | Kotlin | 34 | 97 | 1a8776a899ac97aa32f58d2f70aba23683d2c9b3 | 601 | waltid-ssikit | Apache License 2.0 |
compiler/src/main/java/com/squareup/anvil/compiler/codegen/KotlinPoetUtils.kt | square | 271,357,426 | false | null | package com.squareup.anvil.compiler.codegen
import com.squareup.anvil.compiler.assistedFqName
import com.squareup.anvil.compiler.codegen.dagger.isSetterInjected
import com.squareup.anvil.compiler.daggerDoubleCheckFqNameString
import com.squareup.anvil.compiler.daggerLazyFqName
import com.squareup.anvil.compiler.intern... | 11 | null | 45 | 816 | 073c9e33fb91430372b6372ce5dac3f547e36ef8 | 9,888 | hephaestus | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.