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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data/src/commonMain/kotlin/com/carlosgub/myfinances/data/database/impl/DatabaseFinanceDataSourceImpl.kt | carlosgub | 679,364,046 | false | {"Kotlin": 302665, "Swift": 750, "Shell": 228, "Ruby": 110} | package com.carlosgub.myfinances.data.database.impl
import com.carlosgub.myfinances.core.network.ResponseResult
import com.carlosgub.myfinances.core.utils.toLocalDate
import com.carlosgub.myfinances.core.utils.toMonthString
import com.carlosgub.myfinances.data.database.DatabaseFinanceDataSource
import com.carlosgub.my... | 0 | Kotlin | 1 | 4 | 0e4695ae5cb3790bb3539dfe6c8b7a2cd8d955fc | 9,538 | myFinances | Apache License 2.0 |
Android/app/src/main/java/com/routine/data/db/entity/TodoEntity.kt | instinctools | 240,461,606 | false | {"Swift": 84130, "Kotlin": 55452, "JavaScript": 47195, "Dart": 24609, "Objective-C": 4200, "Ruby": 2844, "Java": 2615, "Starlark": 1910} | package com.routine.data.db.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.routine.common.calculateTimestamp
import java.util.*
@Entity(tableName = "todo")
data class TodoEntity(
@PrimaryKey
val id: String = UUID.randomUUID().toString(),
val title: String = "",
... | 7 | Swift | 1 | 4 | c421772adfc0ceaa0765cd8d6b966769595d0d28 | 636 | routine | Apache License 2.0 |
app/src/main/java/com/mhss/app/mynews/domain/Article.kt | mhss1 | 435,140,771 | false | {"Kotlin": 47296} | package com.mhss.app.mynews.domain
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import java.text.SimpleDateFormat
import java.util.*
@Parcelize
data class Article(
val title: String,
val author: String,
val content: String,
val publishedAt: String,
val source: String,
val ur... | 0 | Kotlin | 2 | 5 | d467ae36adc2f1ef8225052f7d25512f7465f0ab | 370 | MyNews | Apache License 2.0 |
platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/settings/ModuleTypeHandler.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.externalSystem.service.project.settings
import com.intellij.openapi.externalSystem.model.project.settings.ConfigurationData
import com.intellij.opena... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 997 | intellij-community | Apache License 2.0 |
app/src/main/java/com/sztorm/notecalendar/DayNoteEmptyFragment.kt | Sztorm | 342,018,745 | false | null | package com.sztorm.notecalendar
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.sztorm.notecalendar.databinding.FragmentDayNoteEmptyBinding
class DayNoteEmptyFragment(priv... | 4 | Kotlin | 0 | 10 | 446ccfe5b95eea27460cd810a1bae6b628a3602a | 1,236 | NoteCalendar | MIT License |
telegrambots-reactive-core/src/main/kotlin/io/lonmstalker/telegrambots/model/telegram/DeleteWebhookResponse.kt | lonmstalker | 645,014,780 | false | null | package io.lonmstalker.telegrambots.model.telegram
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import java.io.Serializable
@JsonIgnoreProperties(ignoreUnknown = true)
data class DeleteWebhookResponse(@field:JsonProperty("ok") val ok: Boolean) : Ser... | 0 | Kotlin | 0 | 0 | 904dd8cd10ca1b5e799bb31bc558c7e4f12e7eaf | 330 | telegrambots-reactive | Apache License 2.0 |
src/main/kotlin/com/redissi/trakt/services/Episodes.kt | IliasRedissi | 235,675,675 | true | {"Kotlin": 307912} | package com.redissi.trakt.services
import com.redissi.trakt.entities.*
import com.redissi.trakt.enums.Extended
import com.redissi.trakt.enums.ListSort
import com.redissi.trakt.enums.ListType
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
interface Episodes {
/**
* Returns a ... | 4 | Kotlin | 0 | 0 | c980c5c428edd8ba2d4b147be5e247e6e1356574 | 7,343 | trakt-kotlin | The Unlicense |
src/main/kotlin/io/github/isning/gradle/plugins/cmake/CMakeProject.kt | ISNing | 743,468,322 | false | {"Kotlin": 243373} | /*
* Copyright 2024 ISNing
*
* 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 | 0 | 1 | af10be6764234f4d4b6c198d12f34df1971964c4 | 3,963 | CMakePlugin | Apache License 1.1 |
TeamCode/src/main/java/asiankoala/ftc2022/sunmi/opmodes/tests/StraightLineTest.kt | ftc-noteam | 539,184,063 | false | null | package asiankoala.ftc2022.sunmi.opmodes.tests
import asiankoala.ftc2022.sunmi.Sunmi
import asiankoala.ftc2022.sunmi.subsystems.constants.SimpleGVFConstants.epsilon
import asiankoala.ftc2022.sunmi.subsystems.constants.SimpleGVFConstants.kF
import asiankoala.ftc2022.sunmi.subsystems.constants.SimpleGVFConstants.kN
impo... | 0 | Kotlin | 0 | 7 | 68d489dd69a2d0e8859f1a8ef2a65fcf8eb86952 | 1,626 | PowerPlay | BSD 3-Clause Clear License |
app/src/main/java/com/studio61315/filamentphysics/CubeInstancingActivity.kt | 61315 | 380,154,425 | false | null | /*
* CubeInstancingActivity.kt
* Filament-Physics
*
* Created by <NAME> on 1 JUL 2021.
* Copyright (c) 2021 STUDIO 61315 co., ltd. All rights reserved.
*/
package com.studio61315.filamentphysics
import android.annotation.SuppressLint
import android.app.Activity
import android.os.Bundle
import android.view.*
imp... | 0 | Kotlin | 1 | 8 | d49124a01fea78a32a6e5aa3559d84af5a445c6e | 6,397 | filament-physics | MIT License |
jetpack/src/main/java/com/laioffer/lesson1_lifecycle/demo3_lifecycle/MyObserver1.kt | yuanuscfighton | 632,030,844 | false | {"Kotlin": 1007874, "Java": 774893} | package com.laioffer.lesson1_lifecycle.demo3_lifecycle
import android.util.Log
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
/**
* 类描述: 观察者,继承 DefaultLifecycleObserver
*
* created by 春夏秋冬在中南 on 2023/11/29 08:17
*/
class MyObserver1 : DefaultLifecycleObserver { // 使用 D... | 0 | Kotlin | 0 | 0 | b4091c1374f5f0dc0eb8387f7d09ce00eeaacc9d | 650 | SiberianHusky | Apache License 2.0 |
src/main/kotlin/com/wittycode/poelevelinghelper/leveling/services/LevelingGuideImporter.kt | wittyCode | 257,897,730 | false | null | package com.wittycode.poelevelinghelper.leveling.services
import com.google.gson.Gson
import com.wittycode.poelevelinghelper.leveling.model.LevelingGuide
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.core.io.ResourceLoader
import org.springframework.stereotype.Service
import java.io... | 0 | Kotlin | 0 | 0 | b34a771c5764bb71932d0cbe58620dee3d1a88ef | 1,115 | poe-leveling-helper | MIT License |
src/main/kotlin/com/soprabanking/demo/onepointfive/Vehicle.kt | jntakpe | 371,511,087 | false | {"JSON": 3, "Gradle Kotlin DSL": 2, "HTML": 24, "INI": 2, "JavaScript": 32, "Markdown": 25, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "CSS": 9, "Java": 7, "Kotlin": 9, "SCSS": 5, "SVG": 1} | package com.soprabanking.demo.onepointfive
sealed class Vehicle(val wheels: Int)
| 0 | JavaScript | 0 | 0 | 0be62a61b48916b7d2796b409363c0e84c0ff708 | 82 | demo-jdk16-kotlin1-5 | MIT License |
meistercharts-commons/src/jsMain/kotlin/it/neckar/logging/LoggerLocalStorage.kt | Neckar-IT | 599,079,962 | false | {"Kotlin": 5819931, "HTML": 87784, "JavaScript": 1378, "CSS": 1114} | package it.neckar.logging
import it.neckar.open.kotlin.lang.fastFor
import kotlinx.browser.window
/**
* Offers access to the local storage related to loggin
*/
object LoggerLocalStorage {
/**
* Returns the root level (as string) from the local storage
*/
fun readRootLevel(): Level? {
val item = window... | 3 | Kotlin | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 2,445 | meistercharts | Apache License 2.0 |
app/src/main/java/com/gjapps/minilogbook/domain/usecases/ConvertLocaleDecimalStringFloatUseCase.kt | gustavoja | 812,563,129 | false | {"Kotlin": 58123} | package com.gjapps.minilogbook.domain.usecases
import java.text.DecimalFormat
import java.util.Locale
interface ConvertFromCurrentLanguageDecimalFormatUseCase {
operator fun invoke (value: String): Float
}
class ConvertFromCurrentLanguageDecimalFormatUseCaseImpl:ConvertFromCurrentLanguageDecimalFormatUseCase {
... | 0 | Kotlin | 0 | 0 | 43a6462442d352a3079cefdcf95adf1ed2801cda | 539 | minilogbook | Apache License 2.0 |
java-time/src/test/kotlin/com/github/debop/javatimes/ranges/reactive/ReactiveRangesTest.kt | debop | 62,798,850 | false | {"Kotlin": 256811} | package com.github.debop.javatimes.ranges.reactive
import com.github.debop.javatimes.AbstractJavaTimesTest
import com.github.debop.javatimes.nowInstant
import com.github.debop.javatimes.plus
import com.github.debop.javatimes.ranges.dateProgressionOf
import com.github.debop.javatimes.ranges.temporalProgressionOf
impor... | 3 | Kotlin | 7 | 83 | cbb0efedaa53bdf9d77b230d8477cb0ae0d7abd7 | 1,651 | koda-time | Apache License 2.0 |
app/src/main/java/com/sudzusama/comparephones/ui/recent/RecentDevicesAdapter.kt | Anothery | 234,905,404 | false | null | package com.sudzusama.comparephones.ui.recent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.sudzusama.comparephones.R
import com.sudzusama.comparephones... | 0 | Kotlin | 0 | 1 | 9a3b58b033c9da5b79db0d17e39ab525b4af3659 | 1,335 | phone-specs | Apache License 2.0 |
app/src/main/java/com/apps/movifreak/Database/FavTvShow.kt | abhinav12k | 273,952,101 | false | null | package com.apps.movifreak.Database
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize
import java.util.*
/**
* Created by abhinav on 18/10/20.
*/
@Entity(tableName = "favTvShows")
@Parcelize
data class FavTvShow(
@PrimaryKey(auto... | 1 | null | 1 | 1 | a1cae3f008b59db5eafdd1ad6c02b7d9441de10c | 754 | MoviFreak | MIT License |
app/src/main/java/com/example/starwarsapp/adapter/MainPagerAdapter.kt | Lemigro | 861,309,704 | false | {"Kotlin": 45619} | package com.example.starwarsapp.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.example.starwarsapp.fragment.*
class MainPagerAdapter(fragmentActivity: FragmentActivity) : FragmentStateAdapter(fragmentActivi... | 0 | Kotlin | 0 | 1 | 0fb06164a16a755f6aca3ef275780bb24926c623 | 784 | Projeto_WD_StarWars | MIT License |
app/src/main/java/com/ujjawal/programmingresouces/view/home/ResourceSearchAndFilterFragment.kt | kujjawal72 | 540,958,582 | false | null | package com.ujjawal.programmingresouces.view.home
import android.os.Bundle
import android.view.View
import android.view.animation.AnimationUtils
import androidx.lifecycle.lifecycleScope
import com.ujjawal.programmingresouces.R
import com.ujjawal.programmingresouces.architecture.BaseFragment
import com.ujjawal.programm... | 0 | Kotlin | 0 | 0 | ef5e7da2ca3047f21d78519d56ec09155263c3fc | 1,843 | Programming-Resouces | Apache License 2.0 |
cryptography/domain/src/main/kotlin/org/sollecitom/chassis/cryptography/domain/symmetric/SecretKeyFactory.kt | sollecitom | 669,483,842 | false | {"Kotlin": 868904, "Java": 30834} | package org.sollecitom.chassis.cryptography.domain.symmetric
interface SecretKeyFactory<in ARGUMENTS, out KEY : SymmetricKey> {
operator fun invoke(arguments: ARGUMENTS): KEY
fun from(bytes: ByteArray): KEY
} | 0 | Kotlin | 0 | 2 | d11bf12bc66105bbf7edd35d01fbbadc200c3ee8 | 219 | chassis | MIT License |
commons/src/main/java/com/vitorpamplona/amethyst/commons/icons/Zap.kt | vitorpamplona | 587,850,619 | false | {"Kotlin": 5817027, "HTML": 836484, "Java": 189081, "Shell": 1488} | /**
* Copyright (c) 2024 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, di... | 172 | Kotlin | 157 | 1,154 | 6f31898cdc90f68c914605ce2c3466f05355c36b | 3,268 | amethyst | MIT License |
web-client-examples/src/main/kotlin/io/vertx/example/webclient/simple/Client.kt | oswaldoacauan | 170,456,719 | true | {"Java": 411, "Ruby": 124, "Kotlin": 123, "JavaScript": 194, "INI": 10, "Markdown": 16, "Batchfile": 14, "Shell": 15, "Java Properties": 15, "HTML": 213, "TypeScript": 3, "Gradle Kotlin DSL": 1, "CSS": 2, "Java Server Pages": 1, "Dockerfile": 10, "SQL": 1} | package io.vertx.example.webclient.simple
import io.vertx.ext.web.client.WebClient
class Client : io.vertx.core.AbstractVerticle() {
override fun start() {
var client = WebClient.create(vertx)
client.get(8080, "localhost", "/").send({ ar ->
if (ar.succeeded()) {
var response = ar.result()
... | 0 | Java | 0 | 1 | e03c11a6a9081b5ea3e617f1bba1f01bfe8a6eeb | 518 | vertx-examples | Apache License 2.0 |
app/src/main/java/com/aaaabima/bangsaberbagi/ui/pickup/RegisterActivity.kt | aaaabima | 544,695,384 | false | {"Kotlin": 53583} | package com.aaaabima.bangsaberbagi.ui.pickup
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.widget.addTextChangedListener
import com.aaaabima.bangsaberbagi.databinding.ActivityRe... | 0 | Kotlin | 0 | 0 | 6c017331bc0253f64a92a11b0900aa7af4729b98 | 3,076 | bangsa-berbagi | MIT License |
app/src/main/java/com/msg/gcms/domain/usecase/user/EditProfileUseCase.kt | GSM-MSG | 465,292,111 | false | null | package com.msg.gcms.domain.usecase.user
import com.msg.gcms.data.remote.dto.user.request.UserProfileRequest
import com.msg.gcms.domain.repository.UserRepository
import javax.inject.Inject
class EditProfileUseCase @Inject constructor(
private val repository: UserRepository
) {
suspend operator fun invoke(img:... | 4 | Kotlin | 0 | 0 | 8239a015cc311b1631e0c6fc5047e231b5a7ec20 | 406 | GCMS-Android | MIT License |
uiComponents/src/main/java/com/yuriisurzhykov/pointsdetector/uicomponents/workday/WorkDayHoursSelector.kt | yuriisurzhykov | 524,002,724 | false | {"Kotlin": 274520, "Java": 1023} | package com.yuriisurzhykov.pointsdetector.uicomponents.workday
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.widget.addTextChangedListener
import com.yuriisu... | 1 | Kotlin | 0 | 2 | f9b12ffa6dafe283dc8738e7f0eeb0328f7f547b | 2,392 | PointDetector | MIT License |
app/src/main/java/com/example/plantly/activity/SettingsActivity.kt | JackW-Dev | 360,255,968 | false | null | package com.example.plantly.activity
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.plantly.R
import kotlinx.android.synthetic.main.activity_settings.*
import kotlinx.android.synthetic.main.app_toolbar.*
class Se... | 0 | Kotlin | 0 | 0 | 0ca11a5128e49ea1737ca195e489837edaae831d | 2,012 | Plantly-Android | MIT License |
preferences-adapter-test/src/main/java/io/androidalatan/datastore/preference/adapter/rx/test/PreferenceTestExtension.kt | android-alatan | 462,405,374 | false | null | package io.androidalatan.datastore.preference.adapter.rx.test
import io.reactivex.rxjava3.schedulers.Schedulers
import kotlinx.coroutines.Dispatchers
import org.junit.jupiter.api.extension.BeforeEachCallback
import org.junit.jupiter.api.extension.ExtensionContext
class PreferenceTestExtension : BeforeEachCallback {
... | 0 | Kotlin | 1 | 2 | 20dc6bc2d685d71dbab8d89eaec22ba810fc82b9 | 456 | Preferences | MIT License |
backend/data/src/main/kotlin/io/tolgee/activity/annotation/ActivityEntityDescribingPaths.kt | tolgee | 303,766,501 | false | null | package io.tolgee.activity.annotation
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class ActivityEntityDescribingPaths(
val paths: Array<String> = [],
)
| 170 | null | 40 | 666 | 38c1064783f3ec5d60d0502ec0420698395af539 | 173 | tolgee-platform | Apache License 2.0 |
tmp/arrays/youTrackTests/6126.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-31590
abstract class Foo<TViewState : FooState> {
open inner class ViewStateProxy : FooState
}
interface FooState
class Bar : Foo<FooState>() {
fun bar() = ViewStateProxy()
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 206 | bbfgradle | Apache License 2.0 |
loader/src/main/java/com/xueqiu/image/loader/BaseHeaderProcessor.kt | snowman-team | 200,222,108 | false | {"Java": 53467, "Kotlin": 53009} | package com.xueqiu.image.loader
import okhttp3.Interceptor
import okhttp3.Response
import java.net.URL
abstract class BaseHeaderProcessor : Interceptor {
abstract fun setHeaders(url: URL): Map<String, String>?
override fun intercept(chain: Interceptor.Chain): Response? {
val builder = chain.request(... | 1 | Java | 1 | 1 | 67b3480d57d21a41a78fc5a5f074b9deefaf2e26 | 507 | ImageLoader | Apache License 2.0 |
custom touch manager/ViewTouchEventImpl.kt | RealMoMo | 77,234,992 | false | null | package com.newline.ucos.launcher.manager.touch
import android.view.View
import com.newline.ucos.launcher.manager.touch.ViewTouchEvent
/**
* @name FloatBar
* @author Realmo
* @email <EMAIL>
* @version 1.0.0
* @time 2019/11/9 14:54
* @describe
*/
open class ViewTouchEventImpl : ViewTouchEvent {
override f... | 1 | null | 8 | 10 | 61a26a0cd755764b6f5c952edba5cd5a74757056 | 758 | Android_Utils | Apache License 2.0 |
ealvalog-log4j/src/main/java/com/ealva/ealvalog/log4j/Log4jBridge.kt | badmannersteam | 316,855,021 | true | {"Java Properties": 10, "Markdown": 2, "Text": 1, "Gradle": 14, "Shell": 1, "Batchfile": 1, "Ignore List": 9, "Proguard": 6, "XML": 20, "Java": 31, "Kotlin": 67} | /*
* Copyright 2017 Eric A. Snell
*
* This file is part of eAlvaLog.
*
* 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 r... | 0 | null | 0 | 0 | e84667908ca203043226364f98b20bb1d915aa5e | 5,458 | ealvalog | Apache License 2.0 |
src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OnOffClientFragment.kt | sweetymhaiske | 333,310,829 | true | {"C++": 6979383, "C": 1490926, "Python": 365920, "Objective-C++": 159097, "Objective-C": 135098, "Java": 98808, "Shell": 91143, "Kotlin": 55519, "Makefile": 35066, "JavaScript": 27086, "Dockerfile": 17816, "CMake": 17264, "Emacs Lisp": 1042} | package com.google.chip.chiptool.clusterclient
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.SeekBar
import android.widget.Toast
import androidx.fragment.app.Fragment
import chip.devicecontroller.ChipComm... | 1 | null | 1 | 2 | 9318d1307bc437635d740e9a18181c837fecbe0c | 4,276 | connectedhomeip | Apache License 2.0 |
core/src/main/kotlin/com/malinskiy/marathon/report/junit/serialize/JUnitReportSerializer.kt | MarathonLabs | 129,365,301 | false | null | package com.malinskiy.marathon.report.junit.serialize
import com.malinskiy.marathon.report.junit.attribute
import com.malinskiy.marathon.report.junit.document
import com.malinskiy.marathon.report.junit.element
import com.malinskiy.marathon.report.junit.model.JUnitReport
import com.malinskiy.marathon.report.junit.model... | 66 | Kotlin | 89 | 328 | 77271f081c04093134d8d6ed77e380afd0a362a4 | 7,365 | marathon | Apache License 2.0 |
compiler/testData/diagnostics/tests/explicitDefinitelyNotNull/notApplicable.fir.kt | BradOselo | 367,097,840 | false | null | // !LANGUAGE: +DefinitelyNotNullTypeParameters
fun <T : Any> foo(x: T!!, y: List<String!!>!!) {}
fun <F> bar1(x: F?<!SYNTAX!><!SYNTAX!><!>!!<!><!SYNTAX!>)<!> <!FUNCTION_DECLARATION_WITH_NO_NAME!><!SYNTAX!><!>{}<!>
fun <F> bar2(x: F!!?) {}
fun <F> bar3(x: (F?)<!SYNTAX!><!SYNTAX!><!>!!<!><!SYNTAX!>)<!> <!FUNCTION_DECLA... | 0 | null | 0 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 741 | kotlin | Apache License 2.0 |
archetype-systest/src/main/java/com/kelin/archetype/test/DefaultTestConfiguration.kt | KelinTan | 191,932,186 | false | {"Java": 217267, "Kotlin": 70957} | package com.kelin.archetype.test
import org.springframework.boot.SpringBootConfiguration
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
@SpringBootConfiguration
@EnableAutoConfiguration
open class DefaultTestConfiguration | 0 | Java | 3 | 10 | 5813ec0bcd57097a8db013e588d3004fe09811d6 | 246 | spring-boot-archetype | FSF All Permissive License |
implementation/test-support/src/main/kotlin/com/aoc/input/TestInputReader.kt | TomPlum | 227,887,094 | false | null | package com.aoc.input
import com.aoc.input.types.Input
import com.aoc.input.types.StringInput
import java.io.File
class TestInputReader : InputReader() {
fun readInputAsString(filePath: String): Input<String> = StringInput(readFile(filePath).readLines())
private fun readFile(filePath: String) = File(javaClass... | 7 | null | 1 | 2 | 12d47cc9c50aeb9e20bcf110f53d097d8dc3762f | 350 | advent-of-code-2019 | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/util/pathfinder/collision/CollisionDetector.kt | ETS-Android4 | 497,474,293 | true | {"Java Properties": 2, "Gradle": 6, "Shell": 4, "INI": 4, "XML": 24, "TOML": 1, "Markdown": 5, "Batchfile": 1, "Makefile": 1, "Ignore List": 2, "JSON": 1, "YAML": 2, "Text": 3, "Java": 147, "Kotlin": 26} | package org.firstinspires.ftc.teamcode.util.pathfinder.collision
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode
import com.qualcomm.robotcore.hardware.DistanceSensor
import com.qualcomm.robotcore.util.RobotLog
import org.firstinspires.ftc.teamcode.util.KtHardware
import org.firstinspires.ftc.teamcode.util... | 0 | Java | 0 | 0 | 04ea621220daafbe9b93eedf2b7ce8d8ce618271 | 5,105 | FreightFrenzy-4 | MIT License |
MeepMeepTesting/com/noahbres/meepmeep/core/entity/AxesEntity.kt | SpacePianist0 | 575,118,910 | true | {"Java Properties": 2, "Gradle": 8, "Shell": 2, "Markdown": 8, "Git Attributes": 2, "Batchfile": 2, "Ignore List": 5, "Java": 108, "Kotlin": 37, "Gradle Kotlin DSL": 2, "XML": 26, "INI": 1, "Text": 3} | package com.noahbres.meepmeep.core.entity
import com.acmerobotics.roadrunner.geometry.Vector2d
import com.noahbres.meepmeep.MeepMeep
import com.noahbres.meepmeep.core.util.FieldUtil
import com.noahbres.meepmeep.core.anim.AnimationController
import com.noahbres.meepmeep.core.anim.Ease
import com.noahbres.meepmeep.core.... | 0 | null | 0 | 0 | 006d37c28e67ec7cac1e570ae39323c997f87bd2 | 9,367 | teamcode-2021FORK | MIT License |
Communication/FragComNavLiveDemo_kt/app/src/main/java/edu/cs4730/fragcomnavlivedemo_kt/MainActivity.kt | JimSeker | 17,833,557 | false | null | package edu.cs4730.fragcomnavlivedemo_kt
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProvider
class MainActivity : AppCompatActivity() {
lateinit var mViewModel: DataViewModel
override fun onCreate(savedInstanceState: Bundle?) {
super.o... | 0 | null | 26 | 30 | 4a2c045a03060dc6a2cd1e309f5f106782852f59 | 474 | ui | Apache License 2.0 |
app/src/main/java/com/shijc/wanandroidkotlin/ui/search/mvp/SearchContract.kt | shijiacheng | 170,860,596 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 79, "XML": 52, "Java": 29} | package com.shijc.wanandroidkotlin.ui.search.mvp
import com.shijc.wanandroidkotlin.common.mvp.IPresenter
import com.shijc.wanandroidkotlin.common.mvp.IView
import com.shijc.wanandroidkotlin.ui.home.bean.ArticleModel
import com.shijc.wanandroidkotlin.ui.search.bean.SearchHotKeyResult
import com.shijc.wanandroidkotlin.u... | 0 | Kotlin | 0 | 0 | 1db62503e89c24e199996467cef4155601aef08c | 835 | wanandroid_kotlin | Apache License 2.0 |
ontrack-extension-github/src/main/java/net/nemerosa/ontrack/extension/github/ingestion/payload/IngestionHookPayloadStatus.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.github.ingestion.payload
/**
* Processing status for a payload.
*/
enum class IngestionHookPayloadStatus {
SCHEDULED,
PROCESSING,
ERRORED,
COMPLETED,
} | 57 | Kotlin | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 209 | ontrack | MIT License |
generator/src/main/kotlin/ch/bailu/gtk/parser/tag/CallbackTag.kt | bailuk | 404,475,468 | false | {"Kotlin": 144685, "Java": 112201, "Makefile": 2550, "Dockerfile": 1918, "Shell": 1492} | package ch.bailu.gtk.parser.tag
import java.io.IOException
class CallbackTag(parent: TagWithParent): MethodTag(parent) {
@Throws(IOException::class)
override fun end() {
getBuilder().buildCallback(this)
}
} | 1 | Kotlin | 7 | 92 | cddc7a91e655dac67714ec593abcb44ef644fae4 | 230 | java-gtk | MIT License |
pyrtools-core-android/src/main/java/com/pyrapps/pyrtools/core/android/extensions/ContextExtensions.kt | rromane | 109,947,591 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "XML": 21, "Proguard": 4, "Kotlin": 52, "JSON": 2, "Java": 4} | package com.pyrapps.pyrtools.core.android.extensions
import android.content.Context
fun Context.loadRawFileBy(name: String): String {
val id = resources.getIdentifier(name, "raw", packageName)
val fileStream = when (id) {
0 -> null
else -> resources.openRawResource(id)
}
return fileStr... | 0 | Kotlin | 0 | 1 | b5b68da272cdc786a502986764e10e41103b9832 | 538 | PyRTools-K | Apache License 2.0 |
j2k/testData/fileOrElement/nullability/MethodResultComparedWithNull.kt | JakeWharton | 99,388,807 | false | null | internal interface I {
val string: String?
}
internal class C {
fun foo(i: I) {
if (i.string == null) {
println("null")
}
}
} | 1 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 166 | kotlin | Apache License 2.0 |
libtesting-ui/src/main/java/com/mapbox/navigation/testing/ui/assertions/NavigationAssertion.kt | mapbox | 87,455,763 | false | {"Kotlin": 8885438, "Makefile": 8762, "Python": 7925, "Java": 4624} | package com.mapbox.navigation.testing.ui.assertions
fun interface NavigationAssertion {
fun assert()
}
| 508 | Kotlin | 318 | 621 | 88163ae3d7e34948369d6945d5b78a72bdd68d7c | 108 | mapbox-navigation-android | Apache License 2.0 |
app/src/main/java/kt/mobile/dayscountercompose/util/Constants.kt | K-Terelak | 395,408,284 | false | null | package kt.mobile.dayscountercompose.util
class Constants {
companion object{
//ROOM
const val ENTITY_DATES = "dates_entity"
const val DATABASE_NAME = "dates_database"
}
} | 1 | Kotlin | 0 | 0 | ea052e8b594296eb29e7d188da9c260cbcfa3c14 | 207 | DaysCounterCompose | MIT License |
waltid-wallet-api/src/main/kotlin/id/walt/webwallet/service/credentials/CredentialsService.kt | walt-id | 701,058,624 | false | {"Kotlin": 1337192, "Vue": 314013, "TypeScript": 88259, "JavaScript": 11210, "Dockerfile": 3980, "CSS": 404} | package id.walt.webwallet.service.credentials
import id.walt.webwallet.db.models.WalletCredential
import id.walt.webwallet.db.models.WalletCredentials
import kotlinx.datetime.Clock
import kotlinx.datetime.toJavaInstant
import kotlinx.uuid.UUID
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
import org.jetbrai... | 8 | Kotlin | 9 | 45 | a4f2aaf4afc83c6643920a7fe7f393af6bce5dcb | 1,891 | waltid-identity | Apache License 2.0 |
src/test/kotlin/com/study/biddingwar/ItemRepositoryTest.kt | iandmyhand | 385,786,113 | false | null | package com.study.biddingwar
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest
import org.springframework.data.repository.findByIdOrNull
@DataJpaTe... | 2 | Kotlin | 3 | 2 | 9e3f0924aa66c885944038cbffbe88106d1f0a5e | 884 | bidding-war | MIT License |
tl/src/main/kotlin/com/github/badoualy/telegram/tl/api/request/TLRequestAccountSendConfirmPhoneCode.kt | Miha-x64 | 436,587,061 | true | {"Kotlin": 3919807, "Java": 75352} | package com.github.badoualy.telegram.tl.api.request
import com.github.badoualy.telegram.tl.TLObjectUtils.SIZE_CONSTRUCTOR_ID
import com.github.badoualy.telegram.tl.TLObjectUtils.computeTLStringSerializedSize
import com.github.badoualy.telegram.tl.api.TLCodeSettings
import com.github.badoualy.telegram.tl.api.auth.TLSen... | 1 | Kotlin | 2 | 3 | 1a8963dce921c1e9ef05b9d1e56d8fbcb1ea1c4b | 2,336 | kotlogram-resurrected | MIT License |
app/src/main/java/com/cxz/wanandroid/ui/fragment/QrCodeFragment.kt | JaynmBo | 248,636,497 | false | null | package com.cxz.wanandroid.ui.fragment
import android.view.View
import com.cxz.wanandroid.R
import com.cxz.wanandroid.base.BaseFragment
/**
* @author chenxz
* @date 2019/11/17
* @desc 扫码下载
*/
class QrCodeFragment : BaseFragment() {
companion object {
fun getInstance(): QrCodeFragment = QrCodeFragment... | 0 | null | 1 | 2 | fbb0bf69015082c404ac7ce165dcceb3e05bd5d1 | 483 | WanAndroid | Apache License 2.0 |
zowe-cli/src/jsMain/kotlin/zowe/cli/zosfiles/strings/Temp132.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package zowe.cli.zosfiles.strings
external interface Temp132 {
var ATTRIBUTES: String
var VOLUME: String
var BINARY: String
var RECORD: String
var ENCODING: String
var FAIL_FAST: String
var FAIL_FAST_USS: String
var FILE: String
var EXTENSION: String
var DIRECTORY: String
var DIRECTORY_USS: Strin... | 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 559 | kotlin-externals | MIT License |
korender-framework/korender/src/commonMain/kotlin/SceneContext.kt | zakgof | 752,263,385 | false | {"Kotlin": 308804, "GLSL": 19521} | package com.zakgof.korender
import com.zakgof.korender.camera.Camera
import com.zakgof.korender.declaration.ContainerContext
import com.zakgof.korender.declaration.Direction
import com.zakgof.korender.declaration.ElementDeclaration
import com.zakgof.korender.declaration.FilterDeclaration
import com.zakgof.korender.dec... | 0 | Kotlin | 0 | 0 | ecab829532e6e259feb264ab53e12384b8076861 | 4,360 | korender | Apache License 2.0 |
colors-serialization/src/commonMain/kotlin/com.chrynan.colors.serialization/ColorRgbaIntSerializer.kt | chRyNaN | 179,560,707 | false | null | @file:Suppress("unused")
package com.chrynan.colors.serialization
import com.chrynan.colors.*
import kotlinx.serialization.KSerializer
import kotlinx.serialization.builtins.serializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.descriptors.buildClassSerialDescriptor
import k... | 0 | Kotlin | 0 | 9 | bc263f0501b07ac2762ad07fc9e65e1492bc5648 | 1,836 | colors | Apache License 2.0 |
src/TipeDataCharacter.kt | rivaldirasyid | 760,937,935 | false | {"Kotlin": 24116} | fun main() {
//tipe data char hanya bisa menampung 1 Character
//untuk membuat tipe data Char di kotlin menggunakan tanda ' (petik satu)
var inisialNama: Char = 'R'
var inisialNama1: Char = 'I'
var inisialNama2: Char = 'V'
var inisialNama3: Char = 'A'
var inisialNama4: Char = 'L'
print... | 0 | Kotlin | 0 | 0 | 337f09561e3f332849c47bdf8fce6b95b53a732b | 432 | belajar-kotlin-dasar | Apache License 2.0 |
usvm-jvm/src/main/kotlin/org/usvm/machine/interpreter/statics/JcStaticFieldReading.kt | UnitTestBot | 586,907,774 | false | {"Kotlin": 2626055, "Java": 476812} | package org.usvm.machine.interpreter.statics
import io.ksmt.cache.hash
import io.ksmt.cache.structurallyEqual
import io.ksmt.expr.printer.ExpressionPrinter
import io.ksmt.expr.transformer.KTransformerBase
import org.jacodb.api.jvm.JcField
import org.usvm.UContext
import org.usvm.UExpr
import org.usvm.USort
import org.... | 36 | Kotlin | 4 | 9 | 819268c3c77c05d798891be826164bbede63fdfb | 1,226 | usvm | Apache License 2.0 |
src/test/kotlin/adventofcode2022/solution/Day13Test.kt | dangerground | 579,293,233 | false | null | package adventofcode2022.solution
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class Day13Test : StringSpec({
val day = Day13("13_example")
"parse" {
"[]".parsePacket().toString() shouldBe "[]"
"[[1]]".parsePacket().toString() shouldBe "[[1]]"
"[[1]]... | 0 | Kotlin | 0 | 0 | f1094ba3ead165adaadce6cffd5f3e78d6505724 | 890 | adventofcode-2022 | MIT License |
client-coroutines/src/commonMain/kotlin/org/inthewaves/kotlinsignald/subscription/FlowMessageSubscriptionHandler.kt | inthewaves | 398,221,861 | false | null | package org.inthewaves.kotlinsignald.subscription
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.flow.asSharedFlow
import org.inthewaves.kotlinsignald.Incomin... | 11 | Kotlin | 1 | 2 | 6f48a612fc307c08e44af25f826bb627e3e4f499 | 6,413 | kotlin-signald | MIT License |
app/src/main/kotlin/com/ttvnp/ttj_asset_android_client/presentation/ui/fragment/SettingsProfileEditFragment.kt | ttvnp | 109,772,404 | false | null | package com.ttvnp.ttj_asset_android_client.presentation.ui.fragment
import android.annotation.SuppressLint
import android.app.Activity
import android.app.DatePickerDialog
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import com.google.android.material.floa... | 5 | Kotlin | 1 | 1 | 3a99c9d5b8362dbc5785c8849b8680405acb6a3a | 17,574 | ttj-asset-android-client | Apache License 1.1 |
app/src/main/java/com/sukitsuki/ano/layout/PlayerPreviewLayout.kt | Tsuki | 176,246,872 | false | null | package com.sukitsuki.ano.layout
import android.content.Context
import android.text.format.DateUtils
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.FrameLayout
import com.google.android.exoplayer2.ui.TimeBar
import com.sukitsuki.ano.R
import kotlinx.a... | 0 | Kotlin | 1 | 1 | 9e4f9285e2b1c47068edabf396e268225e583ed1 | 1,310 | ano | MIT License |
src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/educationandworkplanapi/app/resource/SubjectAccessRequestTest.kt | ministryofjustice | 653,598,082 | false | {"Kotlin": 1218387, "Mustache": 2705, "Dockerfile": 1346} | package uk.gov.justice.digital.hmpps.educationandworkplanapi.app.resource
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.http.HttpStatus.BAD_REQUEST
import org.springframework.http.HttpStatus.FORBIDDEN
import org.springframework.http.MediaType
import org.... | 11 | Kotlin | 0 | 2 | c47e1dacd23850bf6f2dff9b9b9cc0a8b50ac21e | 10,473 | hmpps-education-and-work-plan-api | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/StudentTDistribution.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: StudentTDistribution
*
* Full name: System`StudentTDistribution
*
* StudentTDistributio... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,223 | mathemagika | Apache License 2.0 |
library/src/commonMain/kotlin/util/Utils.kt | CloudPlayer114514 | 831,723,741 | false | {"Kotlin": 48631} | package com.yunbao.kotlin.schema.util
import com.yunbao.kotlin.schema.annotations.ExtraProperty
import kotlinx.serialization.json.JsonElement
fun List<ExtraProperty>.toJsonElements(): Map<String, JsonElement> {
if (isEmpty()) {
return emptyMap()
}
return buildMap {
this@toJsonElements.forE... | 0 | Kotlin | 0 | 2 | 86cea487b8f7482f6ff1d7a382131038c05441af | 466 | kotlin-json-schema | Apache License 2.0 |
src/main/kotlin/com/kotlindiscord/pluralkot/exceptions/PluralKotException.kt | Kotlin-Discord | 351,416,927 | false | null | package com.kotlindiscord.pluralkot.exceptions
/**
* Base class for all exceptions thrown by PluralKot.
*
* @param message Human-readable error message.
*/
public open class PluralKotException(message: String?) : Exception(message)
| 1 | Kotlin | 0 | 1 | 1e1c780a2ea9c1042ada3ea416fe8af4bd5403c3 | 237 | PluralKot | MIT License |
src/main/kotlin/ca/softwareadd/country/CountryEntity.kt | development-sketches | 257,418,716 | false | null | package ca.softwareadd.country
import java.util.*
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table
@Entity
@Table(name = "country")
class CountryEntity : CountryProjection {
@Id
override lateinit var id: UUID
override lateinit var alpha2code: String
overrid... | 1 | Kotlin | 1 | 1 | 956c79d78d97d33a18c7a81d52e2505c838a2f95 | 719 | location-service-sample | MIT License |
android/src/main/java/com/mapxus/map/components/visual/RCTMapxusVisualNodeView.kt | Mapxus | 383,529,738 | false | {"Objective-C": 466655, "Java": 463012, "JavaScript": 297547, "Kotlin": 186599, "TypeScript": 125012, "CSS": 18575, "EJS": 15003, "Ruby": 3197, "Starlark": 602, "Shell": 357} | package com.mapxus.map.components.visual
import android.annotation.SuppressLint
import android.content.Context
import android.view.View
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.bridge.WritableNativeMap
import com.facebook.react.views.view.ReactViewGroup
import com.mapxus.map.components.... | 0 | Objective-C | 0 | 0 | 2bbf02da2bb2e892165c3f2250e42bf4da7ae630 | 6,134 | react-native-mapxus-sdk | MIT License |
graphql/graphql-quarkus-kotlin/src/main/kotlin/org/example/graphql/model/MyAnno.kt | SoniaZaldana | 346,473,163 | true | {"Java": 250751, "Kotlin": 5355, "Shell": 5188, "HTML": 2526, "Dockerfile": 185} | package org.example.graphql.model
class MyAnno {
} | 0 | Java | 0 | 0 | c16304b9373c7d28ee9737f272d38c64eb9d5bd9 | 51 | mock-artifacts | The Unlicense |
app/src/main/java/com/nanamare/mac/grab/data/source/DirectionRepository.kt | Nanamare | 275,819,116 | false | null | package com.nanamare.mac.grab.data.source
import com.nanamare.mac.grab.data.source.remote.RemoteDirectionDataSourceImpl
import com.nanamare.mac.grab.network.response.DirectionResponse
import io.reactivex.Single
class DirectionRepository(private val remoteDirectionDataSourceImpl: RemoteDirectionDataSourceImpl) :
D... | 0 | Kotlin | 3 | 9 | eda8135645d3449996864e23a7dbaa7f3e795bd4 | 514 | GrabSample | MIT License |
app/src/main/java/com/ganhuo/app/adpter/ImageAdapter.kt | robertchar | 250,484,237 | false | null | package com.ganhuo.app.adpter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import ... | 0 | Kotlin | 0 | 1 | 3ce1dedf35d203a5f878fc4b2353d4e112cac8f2 | 1,878 | KotlinGanhuo | Apache License 2.0 |
app/src/main/kotlin/jp/wasabeef/data/remote/PlanetService.kt | wasabeef | 125,887,194 | false | null | package jp.wasabeef.data.remote
import io.reactivex.Flowable
import jp.wasabeef.data.local.ApodOfNasa
import retrofit2.http.GET
import retrofit2.http.Query
/**
* Created by Wasabeef on 2018/03/05.
*/
interface PlanetService {
@GET("/planetary/apod")
fun getInfo(@Query("api_key") key: String): Flowable<ApodO... | 1 | Kotlin | 51 | 180 | 130aa438e5a665f366c1fbd493a82c9b7b926c8c | 328 | kotlin-mvvm | Apache License 2.0 |
compiler/standard/src/main/java/gsonpath/adapter/standard/model/FieldPath.kt | LachlanMcKee | 53,666,769 | false | null | package gsonpath.adapter.standard.model
sealed class FieldPath {
data class Standard(val path: String) : FieldPath()
data class Nested(val path: String) : FieldPath()
} | 6 | Kotlin | 4 | 57 | bc666ca0d7677443bd841d7f4ec49618ec5d2ede | 177 | gsonpath | MIT License |
bannerx-transformers/src/main/kotlin/com/blueiobase/api/android/bannerx/transformers/FlipBannerTransformer.kt | IODevBlue | 622,507,424 | false | null | package com.blueiobase.api.android.bannerx.transformers
import android.view.View
import com.blueiobase.api.android.bannerx.base.BannerXTransformer
import kotlinx.parcelize.Parcelize
/**
* This flips and turns a `Banner` over 180 degrees:
* - to the left to reveal the rightward `Banner`.
* - to the right to reveal ... | 0 | Kotlin | 0 | 0 | 074c960d34e592c54b623f76f9217dec35eed38e | 1,591 | BannerX-Transformers | Apache License 2.0 |
spanomatic/src/main/java/com/grivos/spanomatic/SpanomaticInterceptor.kt | grivos | 183,793,843 | false | null | package com.grivos.spanomatic
import android.widget.TextView
import io.github.inflationx.viewpump.InflateResult
import io.github.inflationx.viewpump.Interceptor
class SpanomaticInterceptor : Interceptor {
override fun intercept(chain: Interceptor.Chain): InflateResult {
val result = chain.proceed(chain.re... | 1 | null | 5 | 131 | d682da05dc67eb0860e42e460b76471c6c82c510 | 516 | Spanomatic | Apache License 2.0 |
VehicleUI/src/main/java/com/drivequant/drivekit/vehicle/ui/beacon/viewholder/BeaconDetailViewHolder.kt | DriveQuantPublic | 216,339,559 | false | {"Kotlin": 1624286, "Java": 8753} | package com.drivequant.drivekit.vehicle.ui.beacon.viewholder
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.drivequant.drivekit.common.ui.extension.normalText
import com.drivequant.drivekit.vehicle.ui.R
import com.drivequant.drivekit.vehicle.ui.beaco... | 0 | Kotlin | 3 | 9 | d685aebd6b78f8c85e334d102ddf89779976f720 | 742 | drivekit-ui-android | Apache License 2.0 |
03 - Collections/05 - Collections - [mutableListOf - mutableSetOf].kt | riyadh-dubai | 390,723,563 | false | {"Kotlin": 15740} | fun main(){
val joao = Funcionario("João", 2000.0, "CLT")
val pedro = Funcionario("Pedro", 1500.0, "PJ")
val maria = Funcionario("Maria", 4000.0, "CLT")
println("\n- - - mutableListOf - - -\n\n")
val funcionarios = mutableListOf(joao, maria)
funcionarios.forEach { println(it) }
pri... | 0 | Kotlin | 0 | 0 | ece3d4d79edd409e5d46e56d2cfb2ac109200c1b | 1,121 | dio-santander | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/localizers/PartialLocalizer.kt | ETS-Android5 | 499,266,252 | true | {"Java Properties": 2, "Shell": 27, "Gradle": 9, "INI": 3, "XML": 25, "Markdown": 8, "Batchfile": 1, "Ignore List": 3, "Perl": 2, "Kotlin": 32, "Java": 140, "Text": 3} | package org.firstinspires.ftc.teamcode.localizers
import com.acmerobotics.roadrunner.geometry.Pose2d
import com.acmerobotics.roadrunner.kinematics.Kinematics
import com.acmerobotics.roadrunner.localization.Localizer
// TODO : Complete
class PartialLocalizer (val partialCondition: () -> Boolean, vararg allLocalizers: ... | 0 | Java | 1 | 0 | 76f19c4b2c456760a9f175bcbc7df1691f077179 | 1,060 | ramsettetestig | MIT License |
app/src/main/java/cn/jeff/game/c3s15/board/ChessCell.kt | jeffszh | 447,541,615 | false | {"Kotlin": 49306} | package cn.jeff.game.c3s15.board
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import cn.jeff.game.c3s15.GlobalVars
import cn.jeff.game.c3s15.R
class ChessCell : View {
constructor(context: Context) : super(conte... | 0 | Kotlin | 0 | 0 | a2f3d5498c8fb1648ce53603438b104ea8bdd014 | 3,526 | C3S15Android | Apache License 2.0 |
src/Day06.kt | gillyobeast | 574,413,213 | false | {"Kotlin": 27372} | import utils.appliedTo
import utils.readInput
fun main() {
fun String.findIndexOfUniqueSubstring(ofLength: Int): Int {
return windowedSequence(ofLength) { it.toSet().size == ofLength }
.indexOfFirst { it /* == true */ } + ofLength
}
fun part1(input: String): Int {
return input... | 0 | Kotlin | 0 | 0 | 8cdbb20c1a544039b0e91101ec3ebd529c2b9062 | 1,449 | aoc-2022-kotlin | Apache License 2.0 |
composeApp/src/commonMain/kotlin/di/UseCaseModule.kt | mahmmedn19 | 734,766,146 | false | {"Kotlin": 51065, "JavaScript": 529, "HTML": 339} | package di
import domain.usecase.GetContentUseCase
import domain.usecase.IGetContentUseCase
import org.koin.dsl.module
val useCaseModule = module {
single<IGetContentUseCase> { GetContentUseCase(get()) }
} | 0 | Kotlin | 1 | 8 | 1bc1ff0836341cc1d210dd6e99de253885d34bbb | 212 | N-Gemini | MIT License |
verik-importer/src/main/kotlin/io/verik/importer/common/ReferenceUpdater.kt | frwang96 | 269,980,078 | false | null | /*
* Copyright (c) 2022 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 1 | 7 | a40d6195f3b57bebac813b3e5be59d17183433c7 | 2,568 | verik | Apache License 2.0 |
tripleklay/src/main/kotlin/tripleklay/ui/Label.kt | cdietze | 89,875,388 | false | null | package tripleklay.ui
import react.Closeable
import react.Value
import react.ValueView
import kotlin.reflect.KClass
/**
* A widget that displays one or more lines of text and/or an icon image.
*/
open class Label
/** Creates a label with the supplied text and icon. */
constructor(text: String? = null, icon: Icon? ... | 0 | Kotlin | 0 | 4 | 72031aa267cd304a0612b31c871e2f5cf73d2c4c | 2,807 | klay | Apache License 2.0 |
domain/src/main/java/com/nanamare/domain/usecase/base/UseCase.kt | Nanamare | 441,159,715 | false | {"Kotlin": 176886, "Shell": 770, "Swift": 714} | package com.nanamare.domain.usecase.base
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
import java.util.logging.Level
import java.util.logging.Logger
/**
* Executes business logic synchronously or asynchronously using Coroutines.
*/
abstract class UseCase<in P, R>(private val c... | 12 | Kotlin | 0 | 22 | 4ddde2be616aeec4ac7f04b33a3b577c34bf2d91 | 1,473 | MovieCompose | MIT License |
src/test/kotlin/tutorial/basic/Scroll1_ja.kt | ldi-github | 646,043,710 | false | {"Kotlin": 214994} | package tutorial.basic
import org.junit.jupiter.api.Order
import org.junit.jupiter.api.Test
import shirates.core.configuration.Testrun
import shirates.core.driver.commandextension.*
import shirates.core.testcode.UITest
@Testrun("testConfig/android/設定/testrun.properties")
class Scroll1_ja : UITest() {
@Test
@... | 0 | Kotlin | 0 | 1 | e0e455a885e145ba360325809df473bc5ab516da | 3,565 | shirates-core-samples-ja | MIT License |
app/src/main/java/com/herry/test/app/base/BaseFragment.kt | HerryPark | 273,154,769 | false | {"Kotlin": 1302807, "Java": 602} | package com.herry.test.app.base
import android.content.Context
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.annotation.TransitionRes
import androidx.constraintlayout.widget.Constraint... | 0 | Kotlin | 0 | 0 | 7be8ff61cbbef8cfe58925bafa07febda7e634c6 | 5,295 | HerryApiDemo | Apache License 2.0 |
app/src/main/java/com/lzx/musiclib/example/PlayDetailActivity.kt | caiyonglong | 296,001,277 | true | {"Kotlin": 281141, "Java": 42230} | package com.lzx.musiclib.example
import android.annotation.SuppressLint
import android.arch.lifecycle.Observer
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.util.Log
import android.widget.SeekBar
import android.widget.SeekBa... | 0 | null | 0 | 1 | 1f31bed5ecdb6e5eb5959e54cc12e73e0c334f65 | 10,144 | StarrySky | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/MugTea.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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 | 4,046 | icons | MIT License |
app/src/main/java/com/example/calorietracker/ui/viewmodel/IngredientApiViewModel.kt | sahilydv18 | 840,416,808 | false | {"Kotlin": 229515} | package com.example.calorietracker.ui.viewmodel
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.calorietracker.remote.repo.IngredientApiRepo
i... | 0 | Kotlin | 0 | 0 | c91debd7de6599f15bab0d9f39778ba56db0ea7f | 1,352 | CalorieTracker | MIT License |
core/src/main/kotlin/io/github/shkschneider/awesome/custom/Flux.kt | shkschneider | 555,774,039 | false | null | package io.github.shkschneider.awesome.custom
import io.github.shkschneider.awesome.core.AwesomeRegistries
import io.github.shkschneider.awesome.core.AwesomeUtils
import net.fabricmc.fabric.api.item.v1.FabricItemSettings
import net.fabricmc.fabric.api.registry.FuelRegistry
import net.minecraft.item.Item
import net.min... | 0 | Kotlin | 0 | 0 | 01814cc51a64f20cae0cc9cc11a8544234393308 | 807 | mc_awesome | MIT License |
app/src/main/java/com/gois/mysubscribers/extensions/NavExtension.kt | gsesdras | 316,397,346 | false | null | package com.gois.mysubscribers.extensions
import androidx.navigation.NavController
import androidx.navigation.NavDestination
import androidx.navigation.NavOptions
import com.gois.mysubscribers.R
private val slideLeftOptions = NavOptions.Builder()
.setEnterAnim(R.anim.slide_in_right)
.setExitAnim(R.anim.slide_... | 0 | Kotlin | 0 | 0 | 919335ffb5fe01866d20d0dfc1bd9c0060e14d1f | 597 | crud_android | MIT License |
src/main/java/com/github/shiraji/yaemoji/domain/EmojiCompletionProvider.kt | shiraji | 188,632,310 | false | {"Kotlin": 44315, "Java": 264, "Rust": 259, "Go": 225, "JavaScript": 169, "Groovy": 119, "Scala": 117, "PHP": 114, "Python": 92, "Ruby": 79, "CSS": 29, "Hack": 19} | package com.github.shiraji.yaemoji.domain
import com.github.shiraji.yaemoji.utils.findColonPosition
import com.intellij.codeInsight.completion.CompletionParameters
import com.intellij.codeInsight.completion.CompletionProvider
import com.intellij.codeInsight.completion.CompletionResultSet
import com.intellij.codeInsigh... | 23 | Kotlin | 9 | 32 | 9d56e361c9b391cb9a82e03ee93cf4dd92b3951d | 1,596 | yet-another-emoji-support | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonperson/controller/PhysicalAttributesMigrationControllerIntTest.kt | ministryofjustice | 805,355,441 | false | {"Kotlin": 248941, "Dockerfile": 1365} | package uk.gov.justice.digital.hmpps.prisonperson.controller
import org.hamcrest.Matchers.hasItem
import org.hamcrest.Matchers.not
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.TestConfiguration
import org.spr... | 2 | Kotlin | 0 | 0 | 643a24e0b42aafae641c13efbbe44e0955e09bec | 8,711 | hmpps-prison-person-api | MIT License |
src/main/kotlin/no/nav/pensjon/simulator/sak/SakService.kt | navikt | 753,551,695 | false | {"Kotlin": 1584529, "Java": 2774, "Dockerfile": 144} | package no.nav.pensjon.simulator.sak
import no.nav.pensjon.simulator.core.virkning.FoersteVirkningDatoCombo
import no.nav.pensjon.simulator.sak.client.SakClient
import no.nav.pensjon.simulator.person.Pid
import org.springframework.stereotype.Service
@Service
class SakService(private val client: SakClient) {
fun ... | 0 | Kotlin | 0 | 0 | bb93f7cafbbc331bf1775d2508e292fab95a3490 | 415 | pensjonssimulator | MIT License |
sample/shared/src/iosMain/kotlin/com/rickclephas/kmp/nsexceptionkt/sample/AppInit.kt | rickclephas | 514,878,174 | false | null | package com.rickclephas.kmp.nsexceptionkt.sample
import com.rickclephas.kmp.nsexceptionkt.bugsnag.cinterop.BugsnagConfiguration
import com.rickclephas.kmp.nsexceptionkt.bugsnag.configureBugsnag
import com.rickclephas.kmp.nsexceptionkt.bugsnag.setBugsnagUnhandledExceptionHook
import com.rickclephas.kmp.nsexceptionkt.cr... | 1 | Kotlin | 4 | 89 | c0024927200969d201174cb2c39320a629e34fb5 | 1,071 | NSExceptionKt | MIT License |
app/src/main/java/com/rpfcoding/borutocharacterviewer/domain/repository/LocalHeroRepository.kt | riley0521 | 461,738,945 | false | null | package com.rpfcoding.borutocharacterviewer.domain.repository
import androidx.paging.PagingSource
import com.rpfcoding.borutocharacterviewer.data.local.entity.HeroEntity
interface LocalHeroRepository {
fun getAllHeroes(): PagingSource<Int, HeroEntity>
fun getSelectedHero(heroId: Int): HeroEntity
suspen... | 0 | Kotlin | 0 | 0 | 86baf29435338ac9294224174a2fcc52d37f7945 | 399 | BorutoCharacterViewer | Apache License 2.0 |
app/src/main/java/com/harukadev/linko/presentation/screens/result/ResultScreenViewModel.kt | HarukaYamamoto0 | 851,950,961 | false | {"Kotlin": 39912} | package com.harukadev.linko.presentation.screens.result
import androidx.lifecycle.ViewModel
import com.harukadev.linko.service.ShortenURL
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotl... | 0 | Kotlin | 0 | 1 | 63511037f9edc03d20ea21945888f36a1b33fada | 1,778 | Linko | Apache License 2.0 |
src/main/kotlin/org/koil/user/Models.kt | HappyValleyIO | 261,192,535 | false | {"Kotlin": 176341, "JavaScript": 37475, "CSS": 5287} | package org.koil.user
import dev.forkhandles.result4k.Result
import dev.forkhandles.result4k.map
import org.koil.auth.UserAuthority
import org.koil.user.password.AccountPasswordReset
import org.koil.user.password.HashedPassword
import org.koil.user.verification.AccountVerification
import org.koil.user.verification.Acc... | 11 | Kotlin | 1 | 13 | 2ab66c2afcb25d113e4c2c4f9c89d18c6a807951 | 5,820 | koil | MIT License |
save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/SimpleFileUploader.kt | saveourtool | 300,279,336 | false | {"Kotlin": 3405477, "SCSS": 86430, "JavaScript": 8966, "HTML": 8852, "Shell": 2770, "Smarty": 2608, "Dockerfile": 1366} | /**
* Component for uploading files (FileDtos)
*/
@file:Suppress("FILE_NAME_MATCH_CLASS")
package com.saveourtool.save.frontend.components.basic.fileuploader
import com.saveourtool.save.entities.FileDto
import com.saveourtool.save.frontend.common.externals.fontawesome.*
import com.saveourtool.save.frontend.common.... | 202 | Kotlin | 3 | 38 | 9d11f7c01c65905f968fba82b9ca5a9f52af88a8 | 4,003 | save-cloud | MIT License |
shoutout/src/main/java/github/nisrulz/shoutout/ShoutOut.kt | nisrulz | 52,872,812 | false | null | /*
* Copyright (C) 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1 | null | 9 | 14 | 0156040040bdcd7508f6888f0064e2321b57e404 | 1,627 | ShoutOut | Apache License 2.0 |
app/src/main/java/com/xin/wanandroid/core/bean/UserRank.kt | coolxinxin | 294,916,632 | false | null | /*
* Copyright 2020 Leo
* 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 writin... | 0 | Kotlin | 0 | 3 | fbb65064bee0b3208a0b69f4feaa49c01818f854 | 1,747 | WanAndroid-JetpackMvvm | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.