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/com/google/firebase/ml/md/kotlin/Models/Response/Response_Electronic.kt | BoomWattanachai | 239,668,208 | false | {"Gradle": 3, "Shell": 2, "Java Properties": 2, "Markdown": 2, "Text": 4, "Ignore List": 2, "Batchfile": 1, "EditorConfig": 1, "YAML": 1, "JSON": 4, "Proguard": 1, "XML": 75, "Kotlin": 123, "Java": 44} | package com.google.firebase.ml.md.kotlin.Models.Response
//class Response_Electronic (val elt_id:String,val elt_brand:String,val elt_model:String,val elt_image:String
// ,val elt_price:Int,val elt_spec:String,val elt_amount:Int) | 1 | null | 1 | 1 | 1d1826ff378eae3af33c4fce48c00686e57e8ff8 | 255 | shootbuy-app | Apache License 2.0 |
src/main/kotlin/fr/shikkanime/services/caches/AnimeCacheService.kt | Shikkanime | 725,527,999 | false | {"Kotlin": 557171, "FreeMarker": 121994, "JavaScript": 2805, "CSS": 1634, "Shell": 1100, "Dockerfile": 851, "Fluent": 69} | package fr.shikkanime.services.caches
import com.google.inject.Inject
import fr.shikkanime.caches.CountryCodeIdKeyCache
import fr.shikkanime.caches.CountryCodeLocalDateKeyCache
import fr.shikkanime.caches.CountryCodeNamePaginationKeyCache
import fr.shikkanime.caches.CountryCodeUUIDSortPaginationKeyCache
import fr.shik... | 7 | Kotlin | 0 | 4 | c6a5e94b1dfb6b503aa9dea82eca4e01a169d246 | 3,078 | core | Apache License 2.0 |
Task-Tracker-Entities-Impl/src/commonMain/kotlin/com/garbereder/tasktracker/entities/TaskCollectionImpl.kt | Task-Tracker-Systems | 644,555,079 | false | null | package com.garbereder.tasktracker.entities
class TaskCollectionImpl : TaskCollection {
private val list = mutableListOf<Task>()
override fun add(task: Task) {
if (list.contains(task)) {
throw DuplicateTaskException(task)
}
list.add(task)
}
override fun iterator():... | 3 | Kotlin | 0 | 0 | 4673b4d97823c12492a4d7871312b3223e76a74b | 561 | Task-Tracker-App | MIT License |
mobile_app1/module225/src/main/java/module225packageKt0/Foo44.kt | uber-common | 294,831,672 | false | null | package module225packageKt0;
annotation class Foo44Fancy
@Foo44Fancy
class Foo44 {
fun foo0(){
module225packageKt0.Foo43().foo3()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
} | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 233 | android-build-eval | Apache License 2.0 |
app/src/main/java/com/github/miwu/miot/widget/FanLevelControl.kt | sky130 | 680,024,437 | false | {"Kotlin": 290599} | package com.github.miwu.miot.widget
import android.content.Context
import kndroidx.extension.compareTo
import kndroidx.extension.log
import com.github.miwu.databinding.MiotWidgetFanLevelBinding as Binding
class FanLevelControl(context: Context) : MiotBaseWidget<Binding>(context) {
private val temperature get() ... | 4 | Kotlin | 18 | 94 | 3d2e7c2c3f39ed38f9c07bab03f586be120cc869 | 1,315 | MiWu | MIT License |
src/main/kotlin/com/github/mrbean355/admiralbulldog/installation/InstallationModel.kt | danieldonaldson | 318,585,457 | true | {"Kotlin": 200715} | package com.github.mrbean355.admiralbulldog.installation
import javafx.beans.property.SimpleStringProperty
import javafx.beans.property.StringProperty
import tornadofx.ViewModel
class InstallationModel : ViewModel() {
val dotaPath: StringProperty = SimpleStringProperty()
}
| 0 | null | 0 | 0 | 6495a9b2d9b7fc9ba5652d3e5a58389abe828f1b | 280 | admiralbulldog-sounds | Apache License 2.0 |
src/main/kotlin/org/misarch/discount/graphql/model/Product.kt | MiSArch | 767,287,469 | false | {"Kotlin": 140934, "PLpgSQL": 4266, "Shell": 488, "Dockerfile": 219} | package org.misarch.discount.graphql.model
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
import com.expediagroup.graphql.generator.annotations.GraphQLIgnore
import com.expediagroup.graphql.generator.federation.directives.FieldSet
import com.expediagroup.graphql.generator.federation.directive... | 0 | Kotlin | 0 | 0 | 771c0b1ce73a9c21ad9e004dc35d4703f524a00e | 1,973 | discount | MIT License |
completion/tests/testData/handlers/multifile/ClassWithClassObject-1.kt | JetBrains | 278,369,660 | false | null | // FIR_COMPARISON
fun foo() {
KtCla<caret>
}
| 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 49 | intellij-kotlin | Apache License 2.0 |
mui-kotlin/src/jsMain/kotlin/muix/pickers/Stubs.kt | karakum-team | 387,062,541 | false | {"Kotlin": 1399430, "TypeScript": 2249, "JavaScript": 1167, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
package muix.pickers
typealias PickerSelectionState = String
typealias PickerOnChangeFn<TDate> = (
date: TDate?,
selectionState: PickerSelectionState?,
) -> Unit
| 0 | Kotlin | 5 | 36 | 8465a0cb0cc3635d7b7c88637e850cca689029fb | 217 | mui-kotlin | Apache License 2.0 |
app/src/main/kotlin/discordbot/Commands.kt | Nintorch | 744,590,626 | false | {"Kotlin": 17835} | package discordbot
import discordbot.commands.HelpCommand
import discordbot.commands.TestCommand
import discordbot.games.Crocodile
import discordbot.games.RockPaperScissors
import discordbot.games.wrapGameCommand
import net.dv8tion.jda.api.entities.User
import net.dv8tion.jda.api.entities.channel.middleman.MessageChan... | 0 | Kotlin | 0 | 0 | 6e691b3aa07cf542854bd53dce3bb91afdcbe9ad | 3,307 | JustBot | MIT License |
core/src/commonMain/kotlin/net/peanuuutz/tomlkt/internal/decoder/TomlElementDecoder.kt | Peanuuutz | 444,688,345 | false | {"Kotlin": 396264} | /*
Copyright 2023 Peanuuutz
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... | 3 | Kotlin | 3 | 95 | 35856a68678b96dda4b5f71a0cc391957c3e66b5 | 12,755 | tomlkt | Apache License 2.0 |
app/src/main/java/com/example/discount/website/WebViewLegalLauncher.kt | dorindorsman | 767,691,341 | false | {"Kotlin": 46865} | package com.example.discount.website
import android.content.Context
import android.content.Intent
class WebViewLegalLauncher(
private var mContext: Context
){
fun startEulaActivity(url: String) {
val intent = Intent(mContext, EulaActivity::class.java)
intent.putExtra(EulaActivity.EXTRA_URL, u... | 0 | Kotlin | 0 | 0 | 25690945f2e72c0bcaa068c93634198d2defbbb2 | 425 | Discount | Apache License 2.0 |
lib_base/src/main/kotlin/com/crow/base/tools/network/filework/FileManager.kt | CrowForKotlin | 610,636,509 | false | null | package com.crow.base.tools.network.filework
/*************************
* @Machine: RedmiBook Pro 15 Win11
* @Path: lib_base/src/main/java/com/barry/base/network/filework
* @Time: 2022/11/11 15:24
* @Author: CrowForKotlin
* @Description: FileManager
* @formatter:on
**************************/
class FileManager | 4 | Kotlin | 3 | 76 | 3b64f3bc7ef0f8014e9311f1c69515ecba83ebfc | 319 | CopyMangaX | Apache License 2.0 |
src/main/kotlin/io/github/vyo/konfig/provider/KonfigurationProviderFactory.kt | vyo | 241,720,917 | false | null | package io.github.vyo.konfig.provider
import java.io.File
import java.io.IOException
import java.net.MalformedURLException
import java.net.URL
private const val KONFIG_URL = "KONFIG_URL"
private data class ExternalKonfig(
val url: URL,
val format: KonfigurationFormat
)
internal object KonfigurationProviderF... | 0 | Kotlin | 0 | 0 | f81f02ab77862db9cbe0d7d9930b705b6b20782e | 2,414 | konfig | MIT License |
app/src/main/java/louis/flight/status/info/data/remote/model/SummaryRemoteItem.kt | louisfaria-softly | 292,564,287 | false | null | package louis.flight.status.info.data.remote.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class SummaryRemoteItem(
@Json(name = "value") val value: Int?,
@Json(name = "detail") val detail: String?
)
| 0 | Kotlin | 0 | 0 | 9fe7168310488433b0c88e29aa9ed1bff0ba1009 | 277 | FlightData | Apache License 2.0 |
Learning-Kotlin/src/com/ryan/dev/main.kt | YoBoyRyxn | 834,621,072 | false | {"Kotlin": 278} | package com.ryan.dev
fun main(args: Array<String>) {
for (a:String in args) {
println(a)
}
val x = add(420, 922)
println("x: $x")
doNothing()
}
fun add(a:Int, b:Int) = a + b
fun doNothing(): Unit {
println("You Better Call This Function")
} | 0 | Kotlin | 0 | 0 | 83b8c29f2eba3c6a5acfd8fd6ae0bc776c1945fd | 278 | Kotlin-Fundementals | MIT License |
magic/core/src/main/java/link/magic/android/modules/user/response/UpdateEmailResponse.kt | magiclabs | 589,703,550 | false | {"Kotlin": 117962, "Java": 7309, "Solidity": 426} | package link.magic.android.modules.user.response
import androidx.annotation.Keep
import org.web3j.protocol.core.Response
@Keep
class UpdateEmailResponse: Response<Boolean>()
| 0 | Kotlin | 2 | 3 | 560f90ca2b40f25ef73396b5491b0051331a1e80 | 176 | magic-android | Apache License 2.0 |
app/src/main/java/pl/kamilszustak/justfit/domain/usecase/equipment/GetAllEquipmentUseCase.kt | swistak7171 | 248,487,099 | false | null | package pl.kamilszustak.justfit.domain.usecase.equipment
import kotlinx.coroutines.flow.Flow
import pl.kamilszustak.justfit.common.data.Resource
import pl.kamilszustak.justfit.domain.model.equipment.Equipment
interface GetAllEquipmentUseCase {
operator fun invoke(): Flow<Resource<List<Equipment>>>
} | 0 | Kotlin | 0 | 1 | e1b584010dd7edeaa41c7d432fb398f05a2f5dea | 306 | JustFit | Apache License 2.0 |
app/src/main/java/com/fruitPunchSamurai/firechat/viewModels/ViewPagerViewModel.kt | Yaya-Dev-Box | 307,112,262 | false | {"Kotlin": 68255} | package com.fruitPunchSamurai.firechat.viewModels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import com.fruitPunchSamurai.firechat.R
import com.fruitPunchSamurai.firechat.ext.MyAndroidViewModel.getString
import com.fruitPunchSamurai.firechat.repo... | 0 | Kotlin | 1 | 0 | a345c15bea448dab00e430db71f5c2300a9e9a19 | 634 | FireChat | The Unlicense |
app/src/main/java/com/krykun/movieapp/feature/playlist/main/view/DeletePlaylistConfirmationDialog.kt | JekaK | 508,341,591 | false | {"Kotlin": 470505} | package com.krykun.movieapp.feature.playlist.main.view
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Card
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.runtime.Composab... | 0 | Kotlin | 0 | 7 | b46b296c16e23a6394e382a7d30b34176d443d90 | 1,862 | MoviesApp | Apache License 2.0 |
2019-android-applications/whatsapp/app/src/main/java/io/codelabs/ugcloudchat/view/BaseActivity.kt | kevin2-cyber | 437,880,493 | false | null | package io.codelabs.ugcloudchat.view
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.tasks.Tasks
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import io.codelabs.ugcloudchat.model.WhatsappUser
import io.codelabs.ugcloudchat.model.datab... | 0 | Kotlin | 0 | 1 | 182147dada04b383097d461d64e184048e5c3b66 | 1,667 | ug-short-course | MIT License |
src/app/src/main/kotlin/org/imperial/mrc/hint/exceptions/AdrException.kt | mrc-ide | 186,620,695 | false | {"Markdown": 9, "Dockerfile": 2, "Ignore List": 3, "YAML": 13, "Gradle": 6, "Shell": 19, "Batchfile": 1, "INI": 11, "Java": 23, "HTML": 3, "Text": 6, "Kotlin": 184, "Java Properties": 1, "XML": 4, "JSON": 6, "JavaScript": 6, "JSON with Comments": 2, "FreeMarker": 3, "Fluent": 2, "Vue": 81, "SCSS": 11} | package org.imperial.mrc.hint.exceptions
import org.springframework.http.HttpStatus
class AdrException(
key: String,
status: HttpStatus,
url: String
) : HintException(key, status, arrayOf(url))
| 21 | TypeScript | 2 | 1 | f46238ae819de61e3cc483e8812c6039ccd9a6a4 | 208 | hint | MIT License |
src/main/kotlin/ch03/3.5.1_1_SplittingStrings.kt | costinchelu | 809,650,308 | false | {"Kotlin": 114145, "Java": 878} | package ch03.ex5_1_1_SplittingStrings
fun main() {
println("12.345-6.A".split("\\.|-".toRegex()))
}
| 0 | Kotlin | 0 | 0 | 778f23d50bb367532d828c0ec4a20ff19b2f6e33 | 105 | kotlin-in-action-2 | MIT License |
bindings/gtk/gtk4/src/nativeMain/kotlin/org/gtkkn/bindings/gtk/SystemSetting.kt | gtk-kn | 609,191,895 | false | {"Kotlin": 10448515, "Shell": 2740} | // This is a generated file. Do not modify.
package org.gtkkn.bindings.gtk
import org.gtkkn.native.gtk.GtkSystemSetting
import org.gtkkn.native.gtk.GtkSystemSetting.GTK_SYSTEM_SETTING_DISPLAY
import org.gtkkn.native.gtk.GtkSystemSetting.GTK_SYSTEM_SETTING_DPI
import org.gtkkn.native.gtk.GtkSystemSetting.GTK_SYSTEM_SET... | 0 | Kotlin | 0 | 13 | c033c245f1501134c5b9b46212cd153c61f7efea | 2,347 | gtk-kn | Creative Commons Attribution 4.0 International |
core/src/commonMain/kotlin/work/socialhub/kslack/api/methods/request/migration/MigrationExchangeRequest.kt | uakihir0 | 794,979,552 | false | {"Kotlin": 945304, "Ruby": 2164, "Shell": 2095, "Makefile": 316} | package work.socialhub.kslack.api.methods.request.migration
import work.socialhub.kslack.api.methods.SlackApiRequest
/**
* For Enterprise Grid workspaces, map local user IDs to global user IDs
*/
class MigrationExchangeRequest(
/** Authentication token. Requires scope: `tokens.basic` */
override var token: ... | 5 | Kotlin | 0 | 0 | 4d7fe4d7658ebe5e7daac29f727db96a09deaead | 582 | kslack | MIT License |
nativeprojects/drill-jvmapi/src/jvmapiMain/kotlin/com/epam/drill/jvmapi/JniAttacher.kt | IgorKey | 191,016,353 | true | {"Kotlin": 463665, "C": 18447, "HTML": 16984, "Less": 8583, "Batchfile": 713, "Shell": 532, "Dockerfile": 61} | package com.epam.drill.jvmapi
import jvmapi.*
import kotlinx.cinterop.*
import kotlin.native.concurrent.ThreadLocal
fun currentEnvs(): JNIEnvPointer {
return env
}
@kotlin.native.concurrent.ThreadLocal
val env: JNIEnvPointer
get() {
return if (ex != null) {
ex!!
} else {
... | 0 | Kotlin | 0 | 2 | e6e287fb9a23a7a8438372587714f2be0c757943 | 1,003 | Drill4J | Apache License 2.0 |
src/main/kotlin/com/nmote/jwti/config/TwitterConfig.kt | vnesek | 92,741,847 | false | null | /*
* Copyright 2017. Vjekoslav Nesek
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 0 | Kotlin | 0 | 1 | 794592e2074918bb2c8a1c2d4c3154c29a7dba91 | 1,567 | nmote-jwt-issuer | Apache License 2.0 |
src/main/kotlin/com/ooooonly/giteeman/GiteeFile.kt | only52607 | 282,418,843 | false | null | package com.ooooonly.giteeman
import java.io.File
import java.io.FileOutputStream
import java.io.InputStream
import java.net.URL
import java.net.URLConnection
private fun String.trimSlash() = replace(Regex("^/"), "").replace(Regex("/$"), "")
private fun String.rightSlash() = trimSlash() + "/"
private fun String.leftS... | 0 | Kotlin | 0 | 2 | 875eee978af866e4980c7ab839c42437c6630c3e | 3,504 | giteeman | Apache License 2.0 |
app/src/main/java/com/ck/dev/tiptap/ui/custom/CustomButtonView.kt | chandankumar22 | 384,897,101 | false | {"Kotlin": 263479} | package com.ck.dev.tiptap.ui.custom
import android.content.Context
import android.content.res.TypedArray
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import androidx.annotation.ColorRes
imp... | 0 | Kotlin | 0 | 0 | 2940c3253abb8acfded68ed07d883c40b87ce408 | 3,202 | brain-rush-game | Apache License 2.0 |
app/src/main/java/com/am/stbus/common/extensions/CommonExtensions.kt | marinantonio | 117,373,580 | false | null | /*
* MIT License
*
* Copyright (c) 2013 - 2021 Antonio Marin
*
* 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, c... | 0 | Kotlin | 0 | 3 | fccce8ff3b158a9175ba5f3b6a5426f674da89a4 | 3,433 | android-splitbus | MIT License |
packages/embedded/src/main/kotlin/elide/embedded/api/NativeConfiguration.kt | elide-dev | 506,113,888 | false | {"Kotlin": 4544382, "JavaScript": 1201497, "Java": 302542, "Protocol Buffer": 276092, "Shell": 84860, "Dockerfile": 51144, "Cap'n Proto": 35188, "Makefile": 30147, "CSS": 14730, "Python": 5989, "C": 4348, "Batchfile": 3016, "Ruby": 2474, "Handlebars": 1954, "HTML": 1010, "Rust": 525, "Swift": 23} | /*
* Copyright (c) 2024 Elide Technologies, Inc.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing,... | 45 | Kotlin | 15 | 86 | bd9f5aed8523648256c9e9a29d87bd3c2b09ac54 | 2,927 | elide | MIT License |
app/src/main/java/com/example/webexandroid/messaging/MessagingModule.kt | wxsd-sales | 482,087,393 | false | null | package com.example.webexandroid.messaging
import com.example.webexandroid.messaging.composer.MessageComposerRepository
import com.example.webexandroid.messaging.composer.MessageComposerViewModel
import com.example.webexandroid.messaging.spaces.SpacesRepository
import com.example.webexandroid.messaging.spaces.SpacesVi... | 0 | Kotlin | 1 | 0 | ddf63685454955a2afa0eea0bcc81b3e67edc764 | 2,079 | peer-support-demo-app | MIT License |
type-system/src/commonMain/kotlin/io/github/charlietap/chasm/type/ext/FunctionTypeExt.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 2031316, "WebAssembly": 45705} | @file:Suppress("NOTHING_TO_INLINE")
package io.github.charlietap.chasm.type.ext
import io.github.charlietap.chasm.ast.type.CompositeType
import io.github.charlietap.chasm.ast.type.DefinedType
import io.github.charlietap.chasm.ast.type.FunctionType
import io.github.charlietap.chasm.ast.type.RecursiveType
import io.git... | 5 | Kotlin | 3 | 58 | dbb72d7459491e15c2cc61ef6dc346e67eb371f5 | 811 | chasm | Apache License 2.0 |
subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/InstrumentationTestsTask.kt | ussernamenikita | 311,762,440 | true | {"Kotlin": 2381272, "Shell": 16491, "Python": 14168, "Dockerfile": 7088, "Makefile": 2410} | package com.avito.instrumentation
import com.avito.android.build_verdict.BuildVerdictTask
import com.avito.cd.buildOutput
import com.avito.gradle.worker.inMemoryWork
import com.avito.instrumentation.configuration.ImpactAnalysisPolicy
import com.avito.instrumentation.configuration.InstrumentationConfiguration
import co... | 0 | Kotlin | 0 | 0 | 45b414cad6ecf101635ba73c9b7b8ed23881b386 | 9,619 | avito-android | MIT License |
feature/account/setup/src/main/kotlin/app/k9mail/feature/account/setup/navigation/AccountSetupNavHost.kt | thunderbird | 1,326,671 | false | {"Kotlin": 4273763, "Java": 2272554, "Shell": 6333, "AIDL": 1946} | package app.k9mail.feature.account.setup.navigation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.navigation.compose.Na... | 732 | Kotlin | 2424 | 8,729 | b73ebdeecca5fc142a3ef7c9bae3c08b1fec2f48 | 6,029 | thunderbird-android | Apache License 2.0 |
app/src/main/java/com/gcorelabs/videocallsdemo/screens/join_room/JoinRoomFragment.kt | G-Core | 464,987,509 | false | null | package com.gcorelabs.videocallsdemo.screens.join_room
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.activity.result.contract.ActivityResultContracts
import androidx.camera.core.CameraSelector
import androidx.c... | 0 | Kotlin | 0 | 1 | 2c4e7ee747eb708bbc913b093a3433fa1b26b7e5 | 3,961 | android-demo-video-calls | Apache License 2.0 |
src/main/java/challenges/educative_grokking_coding_interview/twe_pointers/_4/CanBePalindrome.kt | MalekKamel | 342,007,920 | false | {"Kotlin": 835322} | package challenges.educative_grokking_coding_interview.twe_pointers._4
/**
Write a function that takes a string as input and checks whether it can be
a valid palindrome by removing at most one character from it.
https://www.educative.io/courses/grokking-coding-interview-patterns-java/qAWVrz2GkjG
*/
object CanBePalin... | 0 | Kotlin | 0 | 1 | a465bff204ef63ecfbea5c520303ed5312ccf6e8 | 1,723 | ProblemSolving | Apache License 2.0 |
05_FirstStepsInKotlinwithSpringBoot/rest_spring_boot_and_kotlin_neptum/src/test/kotlin/com/neptum/integrationtests/vo/wrappers/PersonEmbeddedVO.kt | matheus-adps91 | 623,150,696 | false | {"Kotlin": 120494} | package com.neptum.integrationtests.vo.wrappers
import com.fasterxml.jackson.annotation.JsonProperty
import com.neptum.integrationtests.vo.PersonVO
class PersonEmbeddedVO {
@JsonProperty("personVOList")
var persons: List<PersonVO>? = null
} | 0 | Kotlin | 0 | 0 | 3edd6229861a9213a19eca3135b4af902823b027 | 251 | rest-spring-boot-and-kotlin-neptum | Apache License 2.0 |
app/src/main/kotlin/com/wiley/fordummies/androidsdk/tictactoe/network/PollWorker.kt | acchampion | 157,287,910 | false | {"Kotlin": 158046, "Java": 9533} | package com.wiley.fordummies.androidsdk.tictactoe.network
import android.app.Notification
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import androidx.annotation.Keep
import androidx.core.app.NotificationCompat
import androidx.work.CoroutineWorker
import androidx.work.W... | 0 | Kotlin | 3 | 3 | a7ed3df4e9f69508350f72309cf4314e1aecb931 | 3,525 | TicTacToeKotlin | Apache License 2.0 |
pixel-core/src/commonMain/kotlin/com.chrynan.pixel/ScreenDimensionType.kt | chRyNaN | 157,776,400 | false | null | package com.chrynan.pixel
/**
* An enum class representing the supported [ScreenDimensionUnit] types.
*
* @author chRyNaN
*/
enum class ScreenDimensionType {
PIXEL,
POINT_PIXEL,
SCALED_PIXEL,
DENSITY_INDEPENDENT_PIXELS
} | 0 | Kotlin | 0 | 3 | 7a4c17f5ce58438280c818911f82584020b432ca | 242 | pixel | Apache License 2.0 |
komposable-architecture/src/main/java/com/toggl/komposable/exceptions/CompositeExceptionHandler.kt | toggl | 316,494,344 | false | null | package com.toggl.komposable.exceptions
/**
* ExceptionHandler that forwards the exceptions to all innerHandlers.
* The exception is no longer forwarded as soon as any handler returns true.
* @see ExceptionHandler
*/
class CompositeExceptionHandler(private val innerHandlers: List<ExceptionHandler>) : ExceptionHand... | 8 | null | 4 | 274 | 6c975b17ee94079b66d43d199f106eb6323913a0 | 579 | komposable-architecture | Apache License 2.0 |
rsocket-core/src/commonTest/kotlin/io/rsocket/kotlin/transport/internal/PrioritizationFrameQueueTest.kt | rsocket | 109,894,810 | false | {"Kotlin": 628647, "JavaScript": 203} | /*
* Copyright 2015-2024 the original author or authors.
*
* 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... | 23 | Kotlin | 37 | 550 | b7f27ba4c3a0d639d375731231f347e595ed307c | 2,809 | rsocket-kotlin | Apache License 2.0 |
rsocket-core/src/commonTest/kotlin/io/rsocket/kotlin/transport/internal/PrioritizationFrameQueueTest.kt | rsocket | 109,894,810 | false | {"Kotlin": 628647, "JavaScript": 203} | /*
* Copyright 2015-2024 the original author or authors.
*
* 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... | 23 | Kotlin | 37 | 550 | b7f27ba4c3a0d639d375731231f347e595ed307c | 2,809 | rsocket-kotlin | Apache License 2.0 |
app/src/main/java/com/example/in2000_prosjektoppgave/ui/MainApplication.kt | pettersandvand | 431,793,227 | false | {"Kotlin": 188887} | package com.example.in2000_prosjektoppgave.ui
import android.app.Application
import androidx.hilt.work.HiltWorkerFactory
import androidx.work.Configuration
import dagger.hilt.android.HiltAndroidApp
import javax.inject.Inject
/**
* Main application: Required for Hilt Dependency Injection.
*/
@HiltAndroidApp
class Ma... | 0 | Kotlin | 0 | 0 | 044cc5b0a919c3cc64229689c3da356d2420493b | 624 | in2000-team37-njord | MIT License |
TororoPluginAPI/src/main/java/tororo1066/tororopluginapi/SStr.kt | tororo1066 | 454,006,822 | false | {"Kotlin": 429681, "Java": 136} | package tororo1066.tororopluginapi
import net.kyori.adventure.key.Key
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.TextComponent
import net.kyori.adventure.text.event.ClickEvent
import net.kyori.adventure.text.event.HoverEvent
import net.kyori.adventure.text.serializer.bungeecord.BungeeCom... | 0 | Kotlin | 1 | 0 | b13442d2f25afc8138093bd3acd7ced9bc45e4d0 | 8,300 | TororoPluginAPI | Apache License 2.0 |
src/main/kotlin/com/github/bodin/pdf/ast/node/PageNode.kt | bodin | 441,931,171 | false | {"Kotlin": 40009} | package com.github.bodin.pdf.ast.node
import com.github.bodin.pdf.ast.Node
import com.github.bodin.pdf.ast.DrawContext
import com.github.bodin.pdf.ast.InteriorNode
class PageNode(private val parent: DocumentNode, content: MutableList<TableNode> = mutableListOf())
: InteriorNode<TableNode>(content){
var heade... | 0 | Kotlin | 0 | 2 | 4221eafb74d03bc3e9022f41379628cefbd9475d | 705 | pdf-templates | MIT License |
Example/TestApp/src/main/java/org/audienzz/mobile/testapp/adapter/GamOriginApiInStreamAdHolder.kt | audienzz | 756,759,435 | false | {"Kotlin": 347075, "Ruby": 137} | package org.audienzz.mobile.testapp.adapter
import android.net.Uri
import android.view.ViewGroup
import com.google.android.exoplayer2.MediaItem
import com.google.android.exoplayer2.SimpleExoPlayer
import com.google.android.exoplayer2.ext.ima.ImaAdsLoader
import com.google.android.exoplayer2.source.MediaSource
import c... | 0 | Kotlin | 0 | 0 | e49072379d8e09863972f2585e4268c01d03ccab | 4,514 | audienzz-android-sdk | Apache License 2.0 |
app/src/main/java/com/example/marsphotos/ui/screens/MarsViewModel.kt | jude-don | 622,344,890 | false | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 7c4e65cdf831db55960e417bf8a50a9e9fa8b248 | 2,314 | MarsPhotos | Apache License 2.0 |
core/src/main/kotlin/cn/netdiscovery/http/core/exception/StompException.kt | fengzhizi715 | 294,738,243 | false | null | package cn.netdiscovery.http.core.exception
/**
*
* @FileName:
* cn.netdiscovery.http.core.exception.StompException
* @author: Tony Shen
* @date: 2021/11/30 11:14 上午
* @version: V1.0 <描述当前版本功能>
*/
class StompException(msg: String): RuntimeException(msg) | 0 | Kotlin | 0 | 8 | 7bd08bbfec9890e10c8620c1d74d46a05de56513 | 270 | okhttp-extension | Apache License 2.0 |
app/src/main/kotlin/com/antonioleiva/bandhookkotlin/di/RepositoryModule.kt | ajnsit | 32,921,691 | true | {"Kotlin": 84947} | /*
* Copyright (C) 2015 <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... | 0 | Kotlin | 0 | 0 | 005a99cb5b9f683917f74d0ef5dd3d12741fa627 | 1,399 | Bandhook-Kotlin | Apache License 2.0 |
plugins/kotlin/j2k/new/tests/testData/newJ2k/function/mathCbrt17ApiVersion.kt | ingokegel | 72,937,917 | false | null | // API_VERSION: 1.7
class J {
fun foo(x: Double) {
Math.cbrt(x)
}
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 84 | intellij-community | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/ScannerImage.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,203 | icons | MIT License |
app/src/main/kotlin/cn/navigational/dbfx/navigator/folder/pg/PgDbFolder.kt | tivrfoa | 303,001,716 | true | {"Kotlin": 108780, "Java": 52343, "CSS": 9400} | package cn.navigational.dbfx.navigator.folder.pg
import cn.navigational.dbfx.navigator.FolderItem
import cn.navigational.dbfx.navigator.scheme.PgDbItem
import cn.navigational.dbfx.kit.SQLQuery
import cn.navigational.dbfx.kit.enums.Clients
import cn.navigational.dbfx.kit.utils.StringUtils
class PgDbFolder : FolderItem... | 0 | null | 0 | 0 | 84074162f9765f5f480f77bfd6c5b220a1f093e3 | 848 | dbfx | Apache License 2.0 |
samples/models/src/main/kotlin/ch/leadrian/stubr/samples/models/AnimalType.kt | Double-O-Seven | 210,423,418 | false | {"Java": 645799, "Kotlin": 97668} | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1 | Java | 1 | 4 | e535c8535ce249bdfa83fcd5bd82a1d6a9294447 | 675 | stubr | Apache License 2.0 |
src/main/java/com/imyyq/mvvm/utils/Utils.kt | ozyl | 288,997,986 | true | {"Kotlin": 242311, "Groovy": 11128, "Java": 10307} | package com.imyyq.mvvm.utils
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Looper
import android.os.Parcelable
import android.view.View
import android.view.ViewGroup
import androidx.collection.ArrayMap
import ... | 0 | Kotlin | 0 | 0 | 896292f2f3ddba733e6acf89304811a62d0df22d | 8,027 | MVVMArchitecture | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/services/dto/MatchRequest.kt | ministryofjustice | 256,501,813 | false | null | package uk.gov.justice.digital.hmpps.prisonersearch.services.dto
import io.swagger.v3.oas.annotations.media.Schema
import java.time.LocalDate
import javax.validation.constraints.NotBlank
import javax.validation.constraints.Past
data class MatchRequest(
@Schema(description = "Prisoner first name", example = "john") ... | 2 | null | 3 | 5 | 5d097193d8641efc65b9ca4108c4e8b1ee5ae82b | 1,054 | prisoner-offender-search | MIT License |
core/src/main/kotlin/org/hyrical/hcf/rank/impl/AlchemistRankExtension.kt | Hyrical | 597,847,737 | false | null | package org.hyrical.hcf.rank.impl
import ltd.matrixstudios.alchemist.Alchemist
import ltd.matrixstudios.alchemist.api.AlchemistAPI
import ltd.matrixstudios.alchemist.service.profiles.ProfileGameService
import org.bukkit.entity.Player
import org.hyrical.hcf.rank.RankExtension
class AlchemistRankExtension : RankExtensi... | 10 | Kotlin | 0 | 3 | c2654402f46152239895d54869e3fdc3e86fc9ce | 599 | HCF | MIT License |
app/src/main/java/com/androidstudy/mpesa/ui/ProgressDialogFragment.kt | safaricom | 138,055,688 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | null | 47 | 36 | fd0ca9608982dae84cf54e5d304f20fe5b67e275 | 1,985 | android-daraja-sdk | MIT License |
src/main/kotlin/dev/rhovas/interpreter/environment/Type.kt | Rhovas | 249,287,295 | false | null | package dev.rhovas.interpreter.environment
sealed class Type(
open val base: Base,
) {
val functions = FunctionsDelegate()
val properties = PropertiesDelegate()
val methods = MethodsDelegate()
internal abstract fun getFunction(name: String, arity: Int): Function.Definition?
abstract fun bind... | 0 | Kotlin | 0 | 7 | 29fabbdcfbb9607d7f8a67bb5df29650983e083b | 4,436 | Interpreter | MIT License |
feed_remote/src/main/java/com/muvi/feed_remote/LetterboxdFeedRemote.kt | ataulm | 186,059,686 | false | null | package com.muvi.feed_remote
import com.muvi.base_domain.FilmSummary
import com.muvi.base_domain.Image
import com.muvi.feed_data.FeedRemote
import com.muvi.remote.LetterboxdApi
import javax.inject.Inject
internal class LetterboxdFeedRemote @Inject constructor(
private val letterboxdApi: LetterboxdApi
) : Feed... | 9 | Kotlin | 3 | 39 | 1c446fa09a271b9e65d06e10a65e4f59f9adf947 | 1,183 | muvi | Apache License 2.0 |
unofficial-hypixel-api/src/main/kotlin/de/planetbuilder/unofficialhypixelapi/data/playerrelateddata/PlayerRelatedData.kt | PlanetBuilder | 429,193,558 | false | null | package de.planetbuilder.unofficialhypixelapi.data.playerrelateddata
class PlayerRelatedData(
private val key: String
) {
/*
fun getKeyData(key: String = this.key): KeyResponseData =
Json{ignoreUnknownKeys = true}.decodeFromString(
LocalRegex.find(
Patterns.JSON_PATTERN,... | 0 | Kotlin | 0 | 0 | d1a58cde4ab3efe56af28d2f855b7c37f1862202 | 3,393 | hypixel-api | MIT License |
baselib/src/main/java/io/github/caoshen/baselib/utils/Utils.kt | caoshen | 290,115,293 | false | null | package io.github.caoshen.baselib.utils
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import android.widget.Toast
import androidx.annotation.Str... | 0 | Kotlin | 0 | 2 | b128cdd72dd81ef2bc3f3510f808f198196ef889 | 2,168 | AndroidAdvance | MIT License |
src/nativeGen/kotlin/godot/ConfirmationDialog.kt | piiertho | 237,614,467 | true | {"Kotlin": 5300589} | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import godot.core.Godot
import godot.core.Variant
import godot.core.VariantArray
import kotlin.reflect.KCallable
import kotlinx.cinterop.CFunction
import kotlinx.cinterop.COpaquePointer
import kotlinx.cinterop.CPointer... | 0 | null | 0 | 1 | 3a8c598040f9b47b2b8cf8f5432543f61d6f83e8 | 1,569 | godot-kotlin | MIT License |
ontrack-extension-github/src/main/java/net/nemerosa/ontrack/extension/github/ingestion/processing/push/tagging/PromotionTaggingStrategyConfig.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.github.ingestion.processing.push.tagging
/**
* @property name Name of the promotion
*/
data class PromotionTaggingStrategyConfig(
val name: String,
) | 57 | Kotlin | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 195 | ontrack | MIT License |
kAndroidModular/nativesamples/src/main/java/fr/guddy/kandroidmodular/nativesamples/CreateOperationActivity.kt | RoRoche | 116,174,558 | false | null | package fr.guddy.kandroidmodular.nativesamples
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Button
import org.jetbrains.anko.startActivityForResult
class CreateOperationActivity : AppCompatActivity(), SelectMa... | 1 | Kotlin | 1 | 9 | c7d0108208eea4d4de08dbed439660a8ac8d0fc8 | 1,847 | kAndroidModular | Apache License 2.0 |
ground/src/main/java/com/google/android/ground/ui/map/gms/GoogleMapsFragment.kt | gino-m | 157,787,424 | true | {"Gradle": 10, "YAML": 3, "Java Properties": 2, "Markdown": 7, "Shell": 1, "Text": 3, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "XML": 116, "JSON": 1, "Proguard": 1, "Kotlin": 355, "Java": 52, "INI": 2, "Python": 1, "SVG": 3} | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 2 | 8197bd086e02e5b9b5324e5e63ccc0844db9fd7f | 15,978 | ground-android | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/inspectionsLocal/replaceWithImportAlias/extension.kt | ingokegel | 72,937,917 | false | null | package foo
import foo.Foo as Bar
class Foo
fun foo.<caret>Foo.test() {}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 76 | intellij-community | Apache License 2.0 |
src/test/kotlin/com/kylecorry/sol/math/interpolation/NewtonInterpolatorTest.kt | kylecorry31 | 294,668,785 | false | {"Kotlin": 801237, "Java": 18119, "Python": 298} | package com.kylecorry.sol.math.interpolation
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
class NewtonInterpolatorTest {
@Test
fun interpolate() {
val interpolator = NewtonInterpolator()
val xs = listOf(0f, 1f, 2f, 3f, 4f)
val ys = listOf(0f, 1f, 8f, 27... | 12 | Kotlin | 4 | 8 | 3d82b53469334b02714d12cf7700757ec8ecad03 | 2,520 | sol | MIT License |
src/main/kotlin/com/yg/gqlwfdl/dataaccess/joins/GraphQLFieldToJoinMapping.kt | roadSurfer | 141,256,296 | true | {"Java Properties": 3, "Gradle": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 42, "Java": 87, "GraphQL": 1, "XML": 1, "HTML": 1} | package com.yg.gqlwfdl.dataaccess.joins
import graphql.language.Field
import org.jooq.Record
import org.jooq.Table
/**
* Defines a mapping between a GraphQL field and one or more joins that should be included in a query when that GraphQL
* field is requested, in order that all the data required by it is available i... | 0 | Java | 0 | 0 | 80cddae002f6bd7130a73e9352beb4d7fcad79ba | 4,080 | graphql-webflux-dataloader | MIT License |
packages/expo-dev-launcher/android/src/release/java/expo/modules/devlauncher/launcher/DevLauncherReactNativeHost.kt | expo | 65,750,241 | false | {"Gemfile.lock": 1, "YAML": 79, "Git Config": 1, "JSON with Comments": 175, "Ignore List": 236, "JSON": 713, "Markdown": 291, "JavaScript": 1979, "Text": 62, "Git Attributes": 7, "Shell": 66, "Ruby": 99, "TSX": 976, "Gradle": 106, "Java Properties": 5, "Batchfile": 4, "INI": 8, "Proguard": 10, "XML": 273, "Kotlin": 121... | package expo.modules.devlauncher.launcher
import android.app.Application
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import expo.modules.devlauncher.DEV_LAUNCHER_IS_NOT_AVAILABLE
class DevLauncherReactNativeHost(application: Application, launcherIp: String?) : ReactNativeHost(appl... | 668 | TypeScript | 5226 | 32,824 | e62f80228dece98d5afaa4f5c5e4fb195f3daa15 | 577 | expo | Apache License 2.0 |
app/src/main/java/cf/android666/wanandroid/fragment/AboutFragment.kt | jixiaoyong | 122,834,572 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "YAML": 2, "Markdown": 1, "Text": 2, "JSON": 3, "XML": 48, "INI": 1, "Proguard": 2, "Kotlin": 49, "Java": 3} | package cf.android666.wanandroid.fragment
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import cf.android666.wanandroid.R
import cf.android666.wanandroid.`interface`.RefreshUiInterface
import cf.android666.wanandroid.activity.LoginActivity
import cf.a... | 1 | Kotlin | 6 | 23 | 662d0617bc0c4161346b8297d801e82bc7c7e477 | 3,783 | WanAndroid | Apache License 2.0 |
sento-compiler/src/main/kotlin/io/mironov/sento/compiler/generator/SentoBindingContentGenerator.kt | nsk-mironov | 44,915,000 | false | null | package io.mironov.sento.compiler.generator
import io.mironov.sento.compiler.ClassWriter
import io.mironov.sento.compiler.ContentGenerator
import io.mironov.sento.compiler.GeneratedContent
import io.mironov.sento.compiler.GenerationEnvironment
import io.mironov.sento.compiler.common.GeneratorAdapter
import io.mironov.... | 0 | Kotlin | 1 | 7 | a9e11cde6137d7f9d81f09e96e1ef1277d7ab859 | 11,688 | sento | Apache License 2.0 |
src/main/kotlin/dev/ebelekhov/typechecker/errors/AmbiguousListTypeError.kt | BelehovEgor | 759,297,417 | false | {"Gradle Kotlin DSL": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Smalltalk": 470, "StringTemplate": 1, "Kotlin": 77, "Java": 6, "ANTLR": 2, "YAML": 1, "XML": 8} | package dev.ebelekhov.typechecker.errors
import dev.ebelekhov.typechecker.antlr.parser.stellaParser
import org.antlr.v4.runtime.RuleContext
class AmbiguousListTypeError(private val ctx: RuleContext) : BaseError() {
override fun getMessage(parser: stellaParser): String {
return """
ERROR_AMBIGU... | 0 | Java | 0 | 0 | 17e95553f3780baaaddd7e6cb50981d61bd9029f | 497 | stella-type-checker | MIT License |
libraries/tools/kotlin-gradle-plugin-idea-proto/src/test/kotlin/org/jetbrains/kotlin/gradle/idea/proto/ExtrasSerializationTest.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.idea.proto
import org.jetbrains.kotlin.gradle.idea.testFixtures.tcs.TestI... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,033 | kotlin | Apache License 2.0 |
app/src/main/java/com/noway/gg/toutiao/presenter/HomePresenter.kt | dingpengqiang | 115,471,250 | false | {"Java": 67569, "Kotlin": 52127} | package com.noway.gg.toutiao.presenter
import android.content.Context
import com.noway.gg.toutiao.APPKEY
import com.noway.gg.toutiao.api.HomeApi
import com.noway.gg.toutiao.base.BaseFragmentPresenter
import com.noway.gg.toutiao.model.ChannelList
import com.noway.gg.toutiao.presenter.interfaces.IHomePresenter
import co... | 1 | null | 1 | 1 | 2acabd56163d76c321921ca66a52a239f24e696b | 1,414 | KotlinProject | Apache License 2.0 |
library/cache/src/main/kotlin/com/github/felipehjcosta/marvelapp/cache/data/CharactersDao.kt | felipehjcosta | 73,579,053 | false | {"Gradle Kotlin DSL": 10, "Shell": 2, "Java Properties": 2, "Gradle": 1, "Text": 1, "Ignore List": 9, "Batchfile": 1, "YAML": 4, "Markdown": 1, "Proguard": 10, "XML": 46, "JSON": 13, "Kotlin": 122, "Java": 2} | package com.github.felipehjcosta.marvelapp.cache.data
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import io.reactivex.Maybe
import io.reactivex.Single
@Dao
abstract class CharactersDao {
@Query(
"""
SELECT * FROM characte... | 0 | Kotlin | 0 | 16 | f48c56c345622ac6dcf3fc8203c2b77114b5077b | 3,988 | marvel-app | MIT License |
core/src/main/kotlin/net/dontdrinkandroot/wicket/model/AbstractInjectedLoadableDetachableModel.kt | dontdrinkandroot | 7,002,436 | false | null | package net.dontdrinkandroot.wicket.model
import org.apache.wicket.injection.Injector
import org.apache.wicket.model.LoadableDetachableModel
import java.io.IOException
abstract class AbstractInjectedLoadableDetachableModel<T> : LoadableDetachableModel<T> {
constructor() : super()
constructor(value: T) : super... | 34 | null | 1 | 3 | eaf007cfe70a136a334bd9cb22b5cc0e2fa50ff3 | 588 | wicket.java | Apache License 2.0 |
app/src/main/java/com/takwolf/android/demo/hfrecyclerview/vm/ExtraListViewModel.kt | TakWolf | 92,882,038 | false | {"Kotlin": 54393, "Java": 45051} | package com.takwolf.android.demo.hfrecyclerview.vm
import androidx.lifecycle.ViewModel
import com.takwolf.android.demo.hfrecyclerview.model.Banner
import com.takwolf.android.demo.hfrecyclerview.model.Photo
import com.takwolf.android.demo.hfrecyclerview.vm.holder.ListLiveHolder
class ExtraListViewModel : ViewModel() {... | 0 | Kotlin | 6 | 40 | dae561884a824020ff63979200c1e449f946a849 | 662 | Android-HeaderAndFooterRecyclerView | Apache License 2.0 |
app/src/main/java/com/example/tingximalaya/presenters/RecommendPresenter.kt | cooek | 236,936,989 | false | null | package com.example.tingximalaya.presenters
import com.example.tingximalaya.data.XimaLayApi
import com.example.tingximalaya.interfaces.IRecommendPresenter
import com.example.tingximalaya.interfaces.IRecommendViewCallBack
import com.example.tingximalaya.utils.Logutils
import com.ximalaya.ting.android.opensdk.datatrasfe... | 0 | null | 0 | 3 | bf727d47cc300ad410a95b00188925f81b3d80fc | 3,156 | Hiximalaya | The Unlicense |
subprojects/common/ddo-antlr/src/test/kotlin/io/truthencode/ddo/grammar/antlr/BasicTestKotlin.kt | adarro | 48,509,636 | false | null | package io.truthencode.ddo.grammar.antlr
import io.truthencode.ddo.visibla.javaclass.PojoDefaultJava
import io.truthencode.ddo.visibla.kotlinClass.PojoDefaultKotlin
open class BasicTestKotlin {
fun doSomething(): String {
return "Okies"
}
fun refParserFromKotlinSamePackage() {
var p: Ench... | 21 | null | 3 | 2 | 4e0d23b506db9c29528dafb569e4a2aee212c33e | 408 | ddo-calc | Apache License 2.0 |
core/src/main/kotlin/com/justai/jaicf/test/reactions/TestReactions.kt | just-ai | 246,869,336 | false | null | package com.justai.jaicf.test.reactions
import com.justai.jaicf.context.ExecutionContext
import com.justai.jaicf.logging.SayReaction
import com.justai.jaicf.reactions.Reactions
/**
* A simple [Reactions] implementation which stores all reaction to [ExecutionContext].
*/
class TestReactions : Reactions() {
int... | 21 | null | 39 | 241 | cc076db73e03bf89db2ab94e7f48c8736735706b | 1,303 | jaicf-kotlin | Apache License 2.0 |
RxDemo/src/main/java/com/tamsiree/rxdemo/activity/ActivityELMe.kt | baggio1117 | 249,188,371 | true | {"Java Properties": 3, "Markdown": 5, "Gradle": 9, "Shell": 1, "YAML": 1, "Batchfile": 1, "Text": 1, "XML": 237, "Ignore List": 8, "INI": 1, "Proguard": 7, "Java": 269, "Kotlin": 152} | package com.tamsiree.rxdemo.activity
import android.animation.Animator
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.graphics.PointF
import android.os.Bundle
import android.util.Log
import android.view.Gravity
import android.view.View... | 0 | null | 0 | 0 | c7d50fc47e9bc9b4053358089dfff0c0556147a7 | 14,439 | RxTool | Apache License 2.0 |
idea/testData/quickfix/makeConstructorParameterProperty/val.kt | konsoletyper | 63,065,409 | true | {"Java": 17785174, "Kotlin": 14538455, "JavaScript": 177557, "Protocol Buffer": 43340, "HTML": 34639, "Lex": 17590, "ANTLR": 9689, "CSS": 9358, "Groovy": 7182, "IDL": 5123, "Shell": 4704, "Batchfile": 3703} | // "Make primary constructor parameter 'foo' a property" "true"
class A(foo: String) {
fun bar() {
val a = foo<caret>
}
} | 0 | Java | 0 | 0 | 8544b9a1d61acb8c3e03b56a6cebc22c669593c7 | 138 | kotlin | Apache License 2.0 |
example/android/app/src/main/kotlin/com/umair/beacons_plugin_example/MainActivity.kt | umair13adil | 243,685,046 | false | null | package com.umair.beacons_plugin_example
import com.umair.beacons_plugin.BeaconsPlugin
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity(){
override fun onPause() {
super.onPause()
//Start Background service to scan BLE devices
BeaconsPlugin.startBa... | 34 | null | 42 | 35 | ab3601707883d2927baf9b7de2aa059534a1c3ad | 519 | simple_beacons_flutter | Apache License 2.0 |
app-wan/src/main/java/com/wanandroid/util/DensityUtil.kt | AsaLynn | 302,626,261 | false | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 4, "Kotlin": 334, "XML": 209, "Java": 15, "Gradle Kotlin DSL": 1, "INI": 1} | package com.wanandroid.util
import android.view.View
/**
* 根据手机的分辨率从 dp 的单位 转成为 px(像素)
*/
fun View.dp2px(dp: Int): Int {
val scale = resources.displayMetrics.density
return (dp * scale + 0.5f).toInt()
}
/**
* 根据手机的分辨率从 px(像素) 的单位 转成为 dp
*/
fun View.px2dp(px: Int): Int {
val scale = resources.displayMe... | 1 | null | 1 | 1 | bb42c08a0eeaf5052fe8deef84068fe5c3b2fef6 | 374 | jetpackmvvm | Apache License 2.0 |
kotlinlib/kotlinlib/stringGetOrElse.kt | prezi | 11,311,754 | true | {"XML": 132, "Markdown": 1, "Ignore List": 1, "Kotlin": 141, "Text": 109, "Java": 540, "Ant Build System": 1, "JAR Manifest": 1} | package kotlinlib
public fun String.getOrElse<R: Char?>(index: Int, default: R): R
= if (index in 0..size - 1) this[index] as R else default
public fun <T, R: T?> Array<T>.getOrElse(index: Int, default: R): R
= if (index in 0..size - 1) this[index] as R else default
public fun <T, R: T?> List<T>.getO... | 0 | Java | 0 | 0 | 1634713cbecae6f7ad7926e5550e9eeb55c4ff61 | 418 | kannotator | Apache License 2.0 |
src/main/kotlin/sk/vildibald/polls/service/impl/PerformerStyleServiceImpl.kt | softveroveinzinierstvo2016 | 180,311,268 | false | {"Gradle": 2, "Markdown": 1, "JSON": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Java Properties": 2, "Java": 1, "SQL": 1, "Kotlin": 75} | package sk.vildibald.polls.service.impl
import org.springframework.stereotype.Service
import sk.vildibald.polls.payload.PerformerStyleResponse
import sk.vildibald.polls.repository.PerformerStyleRepository
import sk.vildibald.polls.service.PerformerStyleService
@Service
class PerformerStyleServiceImpl(
private... | 1 | null | 1 | 1 | 8692b3cbca52004ae8c4f720c5b4bbb1b044bdab | 669 | AIS_projekt_BE | BSD Zero Clause License |
samples/mapzen-sample/src/main/java/mapzen/com/sdksampleapp/fragments/BasicMapFragment.kt | mapzen | 46,000,465 | false | null | package mapzen.com.sdksampleapp.fragments
import mapzen.com.sdksampleapp.R
/**
* Basic map sample which shows currently selected map theme
*/
class BasicMapFragment : BaseFragment() {
override fun getLayoutId(): Int {
return R.layout.fragment_map
}
override fun onMapSetup() {
map?.isMyLocationEnable... | 79 | null | 65 | 111 | 0cbf18945cdb03cad5859fc9cff4804333ac29bb | 512 | android | Apache License 2.0 |
kotlin/admanager/BannerExample/app/src/main/kotlin/com/google/android/gms/example/bannerexample/MyActivity.kt | googleads | 14,933,726 | false | null | /*
* Copyright (C) 2013 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 163 | null | 1923 | 1,569 | 00c0033e6599558e83964ad99f6539823e232852 | 4,851 | googleads-mobile-android-examples | Apache License 2.0 |
detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UtilityClassWithPublicConstructorSpec.kt | redwarp | 121,956,975 | true | {"Gradle": 12, "YAML": 37, "INI": 2, "Markdown": 111, "Shell": 8, "Text": 4, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "XML": 5, "Groovy": 1, "Kotlin": 494, "Gemfile.lock": 1, "HTML": 45, "Dockerfile": 1, "JSON": 2, "Ruby": 1, "SVG": 4, "CSS": 9, "JavaScript": 6, "Java": 3} | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.rules.Case
import io.gitlab.arturbosch.detekt.test.lint
import org.assertj.core.api.Assertions.assertThat
import org.jetbrains.spek.api.dsl.given
import org.jetbrains.spek.api.dsl.it
import ... | 3 | Kotlin | 0 | 1 | ef0416cae794782d00fbc358d12fa5f24fed9bd3 | 848 | detekt | Apache License 2.0 |
app/src/main/java/moe/caffeine/fridgehero/user/profile/Profile.kt | caffeine-moe | 758,589,151 | false | {"Kotlin": 41842} | package moe.caffeine.fridgehero.user.profile
import kotlinx.serialization.Serializable
import moe.caffeine.fridgehero.user.config.ProfileConfig
@Serializable
sealed class Profile {
abstract val id : String
abstract val config : ProfileConfig
abstract val fridge : List<String>
} | 0 | Kotlin | 0 | 0 | 261ccba09efa9439938699b9c7c00e9d7b5172da | 293 | fridge-hero | MIT License |
kuberig-core/src/main/kotlin/eu/rigeldev/kuberig/core/execution/ResourceGroupNameMatcher.kt | laashub-soa | 250,196,105 | true | {"Kotlin": 169077} | package eu.rigeldev.kuberig.core.execution
interface ResourceGroupNameMatcher {
fun matchResourceGroupName(definedName: String?): Boolean
} | 0 | null | 0 | 0 | 2a8d8ba9dcf96b73b30c1be2520a05fe651377e4 | 146 | kuberig | Apache License 2.0 |
wheelpicker/src/main/java/io/woong/wheelpicker/ItemContainerViewHolder.kt | cheonjaewoong | 595,586,562 | false | {"Kotlin": 40142} | /*
* Copyright 2023 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | 0 | Kotlin | 0 | 3 | 4d18f42839bb1ab483af2a02f2c0b8d3eaac2c4e | 1,642 | wheelpicker | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/DeviceTabletX.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,046 | compose-icon-collections | MIT License |
modules/core/ui/src/main/kotlin/apod/core/ui/text/TextFields.kt | jonapoul | 794,260,725 | false | {"Kotlin": 286670} | package apod.core.ui.text
import androidx.compose.foundation.background
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.collectIsFocusedAsState
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.text.KeyboardActions
... | 1 | Kotlin | 0 | 0 | cff5cbc4b284ca5072ac3558a7656467f8189f03 | 5,283 | apod-android | Apache License 2.0 |
opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/keras/layer/regularization/Dropout.kt | atlarge-research | 79,902,234 | false | {"Kotlin": 1481498, "Java": 647105, "JavaScript": 339348, "MDX": 28948, "CSS": 18038, "Dockerfile": 3592, "Shell": 280} | /*
* Copyright (c) 2021 AtLarge Research
*
* 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, pu... | 31 | Kotlin | 43 | 68 | b2877899b9479458dba5e7dcba2891f1248b5d6d | 2,342 | opendc | MIT License |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/filled/DocBadgeArrowUp.kt | alexzhirkevich | 636,411,288 | false | {"Kotlin": 5215549, "Ruby": 2329, "Swift": 2101, "HTML": 2071, "Shell": 868} | /*
* Copyright (c) 2023-2024. Compose Cupertino project and open source contributors.
*
* 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... | 18 | Kotlin | 31 | 848 | 54bfbb58f6b36248c5947de343567903298ee308 | 5,176 | compose-cupertino | Apache License 2.0 |
app/src/main/kotlin/com/ave/vastgui/app/activity/vbdelegate/VbFragment.kt | SakurajimaMaii | 353,212,367 | false | {"Kotlin": 841637} | package com.ave.vastgui.app.activity.vbdelegate
import android.os.Bundle
import android.view.View
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import com.ave.vastgui.app.R
import com.ave.vastgui.app.databinding.FragmentSampleBinding
import com.ave.vastgui.tools.viewbinding.viewBind... | 3 | Kotlin | 5 | 53 | 0f8486dea2a67963960434c14d50e71bc9977fec | 1,053 | Android-Vast-Extension | Apache License 2.0 |
src/test/kotlin/no/nav/tilleggsstonader/sak/vilkår/VilkårTestUtil.kt | navikt | 685,490,225 | false | {"Kotlin": 1034049, "Gherkin": 11561, "Shell": 924, "Dockerfile": 164} | package no.nav.tilleggsstonader.sak.vilkår
import no.nav.tilleggsstonader.sak.vilkår.domain.Delvilkår
import no.nav.tilleggsstonader.sak.vilkår.domain.DelvilkårWrapper
import no.nav.tilleggsstonader.sak.vilkår.domain.Vilkår
import no.nav.tilleggsstonader.sak.vilkår.domain.VilkårType
import no.nav.tilleggsstonader.sak.... | 3 | Kotlin | 0 | 0 | 58cc766734d1647a277ce5e8d955101edbeff445 | 1,627 | tilleggsstonader-sak | MIT License |
QuickUtil/src/main/java/com/wpf/app/quickutil/other/AnyEx.kt | walgr | 487,438,913 | false | {"Kotlin": 497463, "Shell": 404} | package com.wpf.app.quickutil.other
inline fun <reified T> Any?.asTo(): T? {
if (this == null) return null
if (this !is T) return null
return this
} | 0 | Kotlin | 1 | 9 | 484e557d6fc746da7bb2c7f88091f8495d17383f | 161 | Quick | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.