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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
common/src/main/java/cc/imorning/common/constant/Config.kt | fkkt-55 | 521,300,400 | false | null | package cc.imorning.common.constant
object Config {
object Intent {
object Action {
const val START_CHAT_FROM_WEB: String = android.content.Intent.ACTION_VIEW
const val START_CHAT_FROM_APP: String = "app"
const val QUICK_REPLY: String = "quick_reply"
const ... | 0 | Kotlin | 1 | 4 | d378cbf4273109f4caeb752eb51cc7f01084da2e | 861 | Chat_For_Android | Apache License 2.0 |
core/src/commonMain/kotlin/org/kobjects/kowa/core/type/F64.kt | kobjects | 340,712,554 | false | null | package org.kobjects.greenspun.core.type
import org.kobjects.greenspun.core.expr.*
import org.kobjects.greenspun.binary.WasmOpcode
import org.kobjects.greenspun.binary.WasmTypeCode
import org.kobjects.greenspun.binary.WasmWriter
/**
* F64 type & builtin operations.
*/
object F64 : ValueType {
operator fun invo... | 0 | null | 0 | 3 | 5b9254491f695ca557329d0eb339ed8272957478 | 5,336 | kowa | Apache License 2.0 |
desktop/src/river/exertion/kcop/DesktopLauncher.kt | exertionriver | 589,248,613 | false | {"Kotlin": 373785, "Java": 146} | package river.exertion.kcop
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration
import river.exertion.kcop.base.KcopBase
object DesktopLauncher {
@JvmStatic
fun main(arg: Array<String>) {
val config = Lwjgl3ApplicationConfig... | 0 | Kotlin | 0 | 1 | d31e37bd786a4091c24fae3eaa0b627c7969747c | 647 | kcop | MIT License |
archive/src/main/kotlin/com/grappenmaker/aoc/year15/Day20.kt | 770grappenmaker | 434,645,245 | false | {"Kotlin": 409647, "Python": 647} | package com.grappenmaker.aoc.year15
import com.grappenmaker.aoc.PuzzleSet
fun PuzzleSet.day20() = puzzle(20) {
// Dang that is a stupid algorithm
val num = input.toInt()
val n10 = num / 10
val list = MutableList(n10) { 0 }
fun solve() = list.withIndex().filter { it.value >= num }.minOf { it.index ... | 0 | Kotlin | 0 | 7 | 92ef1b5ecc3cbe76d2ccd0303a73fddda82ba585 | 574 | advent-of-code | The Unlicense |
tink/src/iosMain/kotlin/io/github/ryunen344/tink/aead/DarwinAead.kt | RyuNen344 | 483,299,591 | false | {"Kotlin": 136783, "Swift": 4340, "Makefile": 2037, "Shell": 1224, "Ruby": 242} | package io.github.ryunen344.tink.aead
import com.google.crypto.tink.TINKAeadFactory
import com.google.crypto.tink.TINKAeadProtocol
import com.google.crypto.tink.TINKKeysetHandle
import io.github.ryunen344.tink.exception.GeneralSecurityException
import io.github.ryunen344.tink.util.asThrowable
import io.github.ryunen34... | 5 | Kotlin | 1 | 9 | cb1194af96f5e0f8283e3d1667163822d5c623ff | 1,883 | tink-kmm | MIT License |
app/src/main/java/dev/ronnie/spendingcalculator/presentation/ui/FragmentSearch.kt | ronnieotieno | 284,339,449 | false | null | package dev.ronnie.spendingcalculator.presentation.ui
import android.os.Bundle
import android.view.View
import android.view.inputmethod.EditorInfo
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.findNavController
import androidx.re... | 1 | Kotlin | 5 | 29 | b2d8657b166af0e660f89bedc072b0b48d5f3778 | 2,411 | Spending-Calculator | Apache License 2.0 |
app/auth/adapter/src/main/kotlin/io/qtd/fungpt/auth/adapter/persist/postgres/repositories/PgUserRepository.kt | quangtd95 | 736,874,859 | false | {"Kotlin": 132212, "Dockerfile": 351} | package io.qtd.fungpt.auth.adapter.persist.postgres.repositories
import io.qtd.fungpt.auth.adapter.persist.postgres.entities.PgUser
import io.qtd.fungpt.auth.adapter.persist.postgres.entities.PgUsers
import io.qtd.fungpt.auth.core.models.CoreUser
import io.qtd.fungpt.auth.core.ports.UserPort
import org.jetbrains.expos... | 4 | Kotlin | 0 | 1 | c2d5edb392dbaef174e7c69db911b5d32dc6469d | 1,183 | kor-clean-architecture-example | MIT License |
firepesa/src/main/java/io/github/rosariopfernandes/firepesa/TransactionResponse.kt | thatfiredev | 126,752,556 | false | {"Kotlin": 33232, "JavaScript": 6683, "Java": 1192} | /*
*MIT License
*
*Copyright (c) 2018 Rosário Pereira Fernandes
*
*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, co... | 0 | Kotlin | 1 | 2 | 9cdcea3102020527d79e0464a68b547dd5e2c1da | 1,523 | firePesa-android | MIT License |
superwall/src/main/java/com/superwall/sdk/config/ConfigManager.kt | superwall | 642,585,064 | false | {"Kotlin": 1304872, "Shell": 580} | package com.superwall.sdk.config
import android.content.Context
import android.webkit.WebView
import com.superwall.sdk.Superwall
import com.superwall.sdk.analytics.internal.track
import com.superwall.sdk.analytics.internal.trackable.InternalSuperwallEvent
import com.superwall.sdk.config.models.ConfigState
import com.s... | 9 | Kotlin | 3 | 10 | d352442430c2888c348b8dec3148f2bfbcd96441 | 16,846 | Superwall-Android | MIT License |
components/push-apps/src/main/kotlin/org/cloudfoundry/tools/pushapps/config/ServiceConfig.kt | cloudfoundry-incubator | 114,146,752 | false | null | package org.cloudfoundry.tools.pushapps.config
data class ServiceConfig(
override val name: String,
val plan: String,
val broker: String,
override val optional: Boolean = false
) : OperationConfig
data class UserProvidedServiceConfig(
override val name: String,
val cred... | 10 | Kotlin | 2 | 1 | e4971e4f85de88b9a08eccf998172842aa784666 | 413 | push-apps | Apache License 2.0 |
src/main/kotlin/com/chillibits/coronaaid/model/dto/ConfigItemDto.kt | StudentsAgainstCovid19 | 264,461,326 | false | null | package com.chillibits.coronaaid.model.dto
data class ConfigItemDto (
val id: Int,
val configKey: String,
val configValue: String
) | 5 | Kotlin | 0 | 4 | a38fa08cdcde65f9b5da816b9e0812581c8e90ab | 156 | corona-aid-api | RSA Message-Digest License |
backends/acornui-webgl-backend/src/jsMain/kotlin/com/acornui/js/gl/WebGlTextureLoader.kt | fuzzyweapon | 130,889,917 | true | {"Kotlin": 2963922, "JavaScript": 15366, "HTML": 5956, "Java": 4507} | /*
* Copyright 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 in wr... | 0 | Kotlin | 1 | 0 | a57100f894721ee342d23fe8cacb3fcbcedbe6dc | 2,219 | acornui | Apache License 2.0 |
app/src/main/java/dev/zwander/mastodonredirect/shizuku/ShizukuService.kt | zacharee | 664,480,223 | false | null | package dev.zwander.mastodonredirect.shizuku
import android.os.Build
import dev.zwander.mastodonredirect.IShizukuService
import dev.zwander.mastodonredirect.util.LinkVerifyUtils
class ShizukuService : IShizukuService.Stub() {
override fun verifyLinks(packageName: String) {
if (Build.VERSION.SDK_INT >= Bui... | 3 | Kotlin | 1 | 8 | 087ac1a11ef8925329f1820ac618b62b2a78998d | 565 | MastodonRedirect | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/PetItem.kt | ellisonchan | 342,275,357 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 4 | a751196dfab4b121115ade30d483d139b7aecb99 | 4,016 | LovePet | Apache License 2.0 |
app/src/main/java/com/namanh/composebase/data/model/Post.kt | namanh11611 | 513,568,193 | false | {"Kotlin": 31779} | package com.namanh.composebase.data.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "post")
data class Post(
@PrimaryKey(autoGenerate = true) val id: Int,
@ColumnInfo(name = "author") val author: String?,
@ColumnInfo(name = "title") val... | 0 | Kotlin | 0 | 1 | 995362ab051d8aef14a8a0abbbacfc0a649b70aa | 633 | ComposeBase | MIT License |
design/src/main/kotlin/com/kotlinground/design/behavioralpatterns/mediator/gui/components/SaveButton.kt | BrianLusina | 113,182,832 | false | null | package com.kotlinground.design.behavioralpatterns.mediator.gui.components
import com.kotlinground.design.behavioralpatterns.mediator.gui.mediator.Mediator
import java.awt.event.ActionEvent
import javax.swing.JButton
class SaveButton(override val mediator: Mediator): JButton(), Component {
override val name: Stri... | 0 | Kotlin | 1 | 2 | abf4ff467a7ffe8bdac4ac5a846c56a6e797be44 | 452 | KotlinGround | MIT License |
fmi-import/src/main/kotlin/no/ntnu/ihb/fmi4j/modeldescription/ModelDescriptionImpl.kt | gitter-badger | 165,198,208 | true | {"Kotlin": 291779, "C++": 35908, "C": 35299, "Groovy": 13942, "Java": 13342} | /*
* The MIT License
*
* Copyright 2017-2018 Norwegian University of Technology
*
* 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 ... | 0 | Kotlin | 0 | 0 | e5da530647077ff6daa4786286b388cc1d8e1557 | 6,384 | FMI4j | MIT License |
app/src/main/java/com/stratagile/qlink/ui/activity/topup/module/TopupOrderListModule.kt | qlcchain | 115,608,966 | false | null | package com.stratagile.qlink.ui.activity.topup.module
import com.stratagile.qlink.data.api.HttpAPIWrapper
import com.stratagile.qlink.ui.activity.base.ActivityScope
import com.stratagile.qlink.ui.activity.topup.TopupOrderListActivity
import com.stratagile.qlink.ui.activity.topup.contract.TopupOrderListContract
import ... | 1 | null | 18 | 46 | 1c8066e4ebbb53c7401751ea3887a6315ccbe5eb | 1,082 | QWallet-Android | MIT License |
projs/draggasker/android/app/src/main/kotlin/com/example/draggasker/MainActivity.kt | JADSN | 433,396,352 | false | {"Dart": 449852, "CMake": 118904, "C++": 65042, "Rust": 62974, "HTML": 57243, "C": 11056, "Swift": 3636, "Kotlin": 1424, "Shell": 512, "Objective-C": 342, "Makefile": 216} | package com.example.draggasker
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 10599e21ff54a83e9c4a8ce32cbf2e137004eb75 | 127 | FlutterCodes | MIT License |
pluto/src/main/java/com/mocklets/pluto/modules/network/proxy/NetworkProxyViewModel.kt | mocklets | 459,260,997 | false | null | package com.mocklets.pluto.modules.network.proxy
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.mocklets.pluto.core.SingleLiveEvent
import com.mocklets.pluto.modul... | 0 | null | 2 | 8 | 87dc5a27272e0fc5c38e042fa95689a143ae5446 | 2,413 | pluto | Apache License 2.0 |
cache/cache-api/src/main/kotlin/net/rsprox/cache/api/type/VarBitType.kt | blurite | 822,339,098 | false | {"Kotlin": 1453055} | package net.rsprox.cache.api.type
@Suppress("SpellCheckingInspection")
public interface VarBitType {
public val id: Int
public val basevar: Int
public val startbit: Int
public val endbit: Int
public fun bitmask(bitcount: Int): Int {
return BITMASKS[bitcount]
}
private companion ob... | 2 | Kotlin | 4 | 9 | 41535908e6ccb633c8f2564e8961efa771abd6de | 616 | rsprox | MIT License |
src/pt/atemporal/src/eu/kanade/tachiyomi/extension/pt/atemporal/Atemporal.kt | komikku-app | 720,497,299 | false | null | package eu.kanade.tachiyomi.extension.pt.atemporal
import eu.kanade.tachiyomi.lib.cookieinterceptor.CookieInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.HttpUrl.Companion.toHttpUrl
import java.text.SimpleDateFormat
import java.util.Locale
class Atemporal : Madara(
"Atemporal",
"h... | 22 | null | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 865 | komikku-extensions | Apache License 2.0 |
presentation/src/androidMain/kotlin/ireader/presentation/ui/home/tts/TTSTopBar.kt | IReaderorg | 425,288,628 | false | null | package ireader.presentation.ui.home.tts
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.List
import androidx.compose.material.icons.filled.Settings
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.mater... | 10 | Kotlin | 14 | 142 | e5fab42136f24d33cbda77e7f19c6fa6c86429fe | 2,212 | IReader | Apache License 2.0 |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/small/SunMoonSmall.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.small
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mit... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 3,148 | mds-android-compose | MIT License |
presentation/src/main/java/com/wa2c/android/cifsdocumentsprovider/presentation/ui/MainActivity.kt | wa2c | 309,159,444 | false | {"Kotlin": 319584} | package com.wa2c.android.cifsdocumentsprovider.presentation.ui
import android.Manifest
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.compose.setContent
import androidx.act... | 33 | Kotlin | 17 | 139 | cb662b0e8b092ce2e6b320e3dc2a1a21ed655992 | 4,638 | cifs-documents-provider | MIT License |
app/src/main/java/me/blog/korn123/easydiary/chart/IValueFormatterExt.kt | Larnicone | 233,504,978 | true | {"Kotlin": 643036} | package me.blog.korn123.easydiary.chart
import android.content.Context
import com.github.mikephil.charting.data.Entry
import com.github.mikephil.charting.formatter.IValueFormatter
import com.github.mikephil.charting.utils.ViewPortHandler
import me.blog.korn123.easydiary.R
/**
* Created by CHO HANJOONG on 2017-03-23.... | 0 | null | 0 | 0 | aa553bc8d2c7842984d89026b67a7560c2438770 | 1,263 | aaf-easydiary | Apache License 2.0 |
app/src/main/java/com/gitsoft/thoughtpad/ui/addnote/AddEditNoteFragment.kt | DenisGithuku | 366,343,331 | false | {"Kotlin": 65886} |
/*
* Copyright 2024 Denis Githuku
*
* 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 in writin... | 5 | Kotlin | 0 | 2 | fd18dbf9743c11f27fd254305ee82c2cad73364c | 3,698 | ThoughtPad | Apache License 2.0 |
app/src/main/java/com/zkp/wanandroid/modules/knowledge/adapter/KnowledgeAdapter.kt | Zkp275557625 | 189,195,174 | false | null | package com.zkp.wanandroid.modules.knowledge.adapter
import android.text.Html
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.zkp.wanandroid.R
import com.zkp.wanandroid.bean.KnowledgeTreeBody
/**
* @author: zkp
* @project: WanAndroid
* @package: ... | 0 | Kotlin | 0 | 3 | dbe9f1fbae70e5b39ad71afece26495c3f7bcfc3 | 1,003 | WanAndroidKotlin | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/leaguebot/hardware/Extension.kt | CookedPelvis | 278,513,219 | false | {"Gradle": 8, "Shell": 1, "Markdown": 8, "Git Attributes": 1, "Batchfile": 1, "Ignore List": 1, "HTML": 386, "JavaScript": 1, "CSS": 1, "Text": 5, "XML": 22, "AIDL": 1, "Java": 189, "INI": 1, "Kotlin": 66} | package org.firstinspires.ftc.teamcode.leaguebot.hardware
import com.acmerobotics.dashboard.config.Config
import org.firstinspires.ftc.teamcode.bulkLib.RevHubServo
import org.firstinspires.ftc.teamcode.opmodeLib.Globals
@Config
class Extension {
var state = State.IN
private val servo = RevHubServo("grabberEx... | 1 | null | 1 | 1 | 5d018bdf2803511eeff947b2118956ec4bfd8f4a | 860 | SkystoneApp | MIT License |
app/src/main/java/com/pwj/record/utils/StatusBarUtils.kt | a-pwj | 255,207,003 | false | {"Gradle": 20, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 20, "Batchfile": 1, "Markdown": 5, "Proguard": 14, "XML": 252, "Java": 74, "INI": 13, "Kotlin": 133, "JSON": 2, "C++": 1, "CMake": 1, "C": 42, "Gradle Kotlin DSL": 1, "Groovy": 1} | package com.pwj.record.utils
import android.app.Activity
import android.os.Build
import android.text.TextUtils
import android.view.View
import android.view.WindowManager
import androidx.annotation.ColorInt
import com.pwj.record.R
/**
* @Author: pwj
* @Date: 2020/10/22 17:16
* @FileName: ... | 0 | C | 0 | 0 | 6d6411916d1528b300c6c6ddf9932a10b41aa3fb | 5,304 | Record | Apache License 2.0 |
plugins/terminal/src/org/jetbrains/plugins/terminal/block/completion/spec/dsl/ShellSuggestionContext.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.terminal.block.completion.spec.dsl
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.annotations.Nls
import org.jetbrains.annotations.NonNls
import java.u... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,489 | intellij-community | Apache License 2.0 |
archetype-common/src/test/java/com/kelin/archetype/common/utils/CollectionHelperTest.kt | KelinTan | 191,932,186 | false | null | // Copyright 2020 Kelin Inc. All rights reserved.
package com.kelin.archetype.common.utils
import com.kelin.archetype.test.KtTestUtils
import org.junit.jupiter.api.Test
/**
* @author <NAME>
*/
class CollectionHelperTest : KtTestUtils {
@Test
fun `call in batch`() {
CollectionHelper.batchCall(listOf... | 0 | null | 3 | 10 | 5813ec0bcd57097a8db013e588d3004fe09811d6 | 2,641 | spring-boot-archetype | FSF All Permissive License |
Practica6/practica6/BaseP.kt | Kevin7016 | 344,933,989 | false | {"Java": 101071, "C#": 32976, "Kotlin": 4826} | package com.example.practica6
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.os.CountDownTimer
import android.view.View
class BaseP(p:MainActivity): View(p)
{
var toque=false
var xd=360f
var yd=50f
var arriba= fa... | 1 | Java | 1 | 1 | 31297cabb28e20715449ec9622cca707c7295762 | 1,449 | TAB-4A-2021 | MIT License |
base-list-adapter/src/main/java/com/hilmanfatah/baselistadapter/viewholder/BaseItemViewHolder.kt | subh2020 | 161,736,184 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 10, "XML": 13, "Java": 2} | package com.hilmanfatah.baselistadapter.viewholder
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.View
import com.hilmanfatah.baselistadapter.BaseRecyclerViewAdapter
abstract class BaseItemViewHolder<in Data>(
itemView: View,
private val mItemClickLis... | 1 | null | 2 | 1 | b92f3e42f338b89a721b1bccc88e18da0b125d59 | 920 | BaseViewExample | Apache License 2.0 |
collect_app/src/main/java/org/odk/collect/android/injection/config/CollectSelfieCameraDependencyModule.kt | getodk | 40,213,809 | false | null | package org.odk.collect.android.injection.config
import org.odk.collect.permissions.PermissionsChecker
import org.odk.collect.selfiecamera.SelfieCameraDependencyModule
class CollectSelfieCameraDependencyModule(
private val appDependencyComponent: AppDependencyComponent
) : SelfieCameraDependencyModule() {
ove... | 283 | null | 1372 | 717 | 63050fdd265c42f3c340f0ada5cdff3c52a883bc | 447 | collect | Apache License 2.0 |
app/src/main/java/com/ryan/github/kndroid/practice/type/DataClassPractice.kt | Ryan-Shz | 294,726,589 | false | null | package com.ryan.github.kndroid.practice.type
import com.google.gson.Gson
/**
* created by 2020/9/14 12:29 AM
*
* @author Ryan
*/
fun dataClassTest() {
val person = DataClassPerson("Ryan", 12)
val gson = Gson()
val dataJson = gson.toJson(person)
val (name, age) = gson.fromJson<DataClassPerson>(dat... | 0 | Kotlin | 0 | 1 | 9ac72cfaef6e69dccae5a971217b2b08f8c66968 | 395 | Kndroid | MIT License |
ref_code/leetcode-main/kotlin/1361-validate-binary-tree-nodes.kt | yennanliu | 66,194,791 | false | {"Java": 5396849, "Python": 4422387, "JavaScript": 490755, "Kotlin": 464977, "C++": 351516, "C": 246034, "C#": 177156, "Rust": 152545, "Jupyter Notebook": 152285, "TypeScript": 139873, "Go": 129930, "Swift": 102644, "Ruby": 41941, "Scala": 34913, "Dart": 9957, "Shell": 4032, "Dockerfile": 2000, "PLpgSQL": 1348} | class Solution {
fun validateBinaryTreeNodes(n: Int, leftChild: IntArray, rightChild: IntArray): Boolean {
val hasParent = hashSetOf<Int>().apply {
for (n in (leftChild + rightChild)) {
if (n != -1)
this.add(n)
}
}
if (hasParent.si... | 0 | Java | 42 | 98 | 209db7daa15718f54f32316831ae269326865f40 | 804 | CS_basics | The Unlicense |
ThirdPartyAdapters/yandex/yandex/src/main/java/com/yandex/mobile/ads/nativeads/YandexNativeAdMapperFactory.kt | yndx-mandelshtamd | 699,095,073 | true | {"Markdown": 41, "Text": 3, "INI": 12, "Gradle": 68, "Shell": 20, "Batchfile": 21, "Ignore List": 32, "Proguard": 25, "XML": 38, "Java": 230, "Java Properties": 30, "Kotlin": 76} | package com.yandex.mobile.ads.nativeads
import android.os.Bundle
internal class YandexNativeAdMapperFactory {
fun create(nativeAd: NativeAd, extras: Bundle) = YandexNativeAdMapper(nativeAd, extras)
}
| 0 | Java | 0 | 0 | 03077b643ca251698012eaf8c1961e565eab2bcf | 206 | googleads-mobile-android-mediation | Apache License 2.0 |
arrow-libs/optics/arrow-optics/src/test/kotlin/arrow/optics/GetterTest.kt | tiarebalbi | 111,073,383 | false | {"Markdown": 64, "Text": 2, "Ignore List": 1, "Gradle": 39, "Java Properties": 23, "Shell": 10, "Batchfile": 7, "EditorConfig": 7, "Ruby": 1, "Kotlin": 321, "YAML": 13, "SCSS": 35, "CSS": 87, "HTML": 21, "SVG": 56, "JavaScript": 12, "JSON": 11, "Java": 10, "INI": 2, "Scala": 19, "XML": 1} | package arrow.optics
import arrow.core.Either.Left
import arrow.core.Either.Right
import arrow.core.test.UnitSpec
import arrow.typeclasses.Monoid
import io.kotlintest.properties.Gen
import io.kotlintest.properties.forAll
class GetterTest : UnitSpec() {
init {
val userGetter = userIso
val length = Getter<S... | 1 | null | 1 | 1 | 12f047b4a7d267e622933bc991f57a05ecf63add | 3,738 | kategory | Apache License 2.0 |
src/main/java/io/javalin/plugin/openapi/external/KotlinOpenApiDsl.kt | tobias-walle | 188,569,872 | true | {"Kotlin": 381055, "Java": 108501, "HTML": 1080, "Vue": 150, "CSS": 46, "JavaScript": 45, "FreeMarker": 19} | package io.javalin.plugin.openapi.external
import io.swagger.v3.core.converter.ModelConverters
import io.swagger.v3.oas.models.Components
import io.swagger.v3.oas.models.examples.Example
import io.swagger.v3.oas.models.media.*
import io.swagger.v3.oas.models.parameters.Parameter
import java.math.BigDecimal
import java... | 0 | Kotlin | 0 | 0 | dd620ebaf86db268cb07e8ad1f2105d089439176 | 4,286 | javalin | Apache License 2.0 |
android/app/src/main/java/org/cryptimeleon/incentive/app/domain/usecase/AnalyzeUserTokenUpdatesUseCase.kt | cryptimeleon | 320,273,336 | false | {"YAML": 3, "Text": 1, "Ignore List": 10, "Markdown": 9, "Gradle": 13, "Dockerfile": 2, "JSON": 3, "INI": 22, "Shell": 11, "Batchfile": 4, "Java": 225, "Java Properties": 1, "Proguard": 1, "Kotlin": 115, "XML": 16, "JavaScript": 6, "JSON with Comments": 1, "HTML": 1, "Vue": 14, "CSS": 1} | package org.cryptimeleon.incentive.app.domain.usecase
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.combine
import org.cryptimeleon.incentive.app.domain.IBasketRepository
import org.cryptimeleon.incentive.app.domain.ICryptoRepository
import org.cryptimeleon.incentive.app.domain.IPromotionRepositor... | 31 | Java | 0 | 2 | a8e9c8830974b3705a2bca80a092ccfc102f6b90 | 1,715 | incentive-system | Apache License 2.0 |
net/src/main/java/com/young/net/client_creator/CommonClientCreator.kt | HZHAndroid | 402,099,012 | false | null | package com.young.net.client_creator
import com.google.gson.reflect.TypeToken
import com.young.net.client.RestClient
import com.young.net.client.impl.RestClientImpl
/**
* @author: Young
* .
* @email: 1104090872@qq.com
* .
* @date : 2021/8/26 10:26 周四
* へ /|
/\7 ∠_/
/ │ / /
│ Z _,< / /`ヽ
│... | 1 | null | 1 | 1 | ab3bb852ecdee8de2a5595a606da3d7a6137ca13 | 899 | youngnet | MIT License |
app/src/main/java/sayaaa/rpscience/com/sayaaaa/RecordingService.kt | pavelaizen | 145,532,088 | false | null | package sayaaa.rpscience.com.sayaaaa
import android.app.Notification
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.media.RingtoneManager
import android.os.IBinder
import android.support.v4.app.NotificationCompat
import sayaaa.rps... | 0 | Kotlin | 0 | 0 | 64b64844ea1039fc5ac6bf494cd11e29f0030aa4 | 2,808 | SampleVideoAudioRecorder | Apache License 2.0 |
EOCV-Sim/src/main/java/com/github/serivesmejia/eocvsim/util/io/Lock.kt | deltacv | 373,912,827 | false | {"Java": 1155916, "Kotlin": 328835} | package com.github.serivesmejia.eocvsim.util.io
import com.github.serivesmejia.eocvsim.util.SysUtil
import com.github.serivesmejia.eocvsim.util.loggerForThis
import java.io.File
import java.io.RandomAccessFile
import java.nio.channels.FileLock
class LockFile(pathname: String) : File(pathname) {
private val raf b... | 3 | Java | 18 | 51 | 5c5d99f6d6bb9abd7b855b1226fb6181133112ee | 1,715 | EOCV-Sim | MIT License |
scanner/src/main/kotlin/provenance/NestedProvenanceStorage.kt | oss-review-toolkit | 107,540,288 | false | {"Kotlin": 5110480, "JavaScript": 333852, "Shell": 127273, "HTML": 98970, "Python": 51191, "Haskell": 30438, "FreeMarker": 27693, "CSS": 27239, "Dockerfile": 19565, "Swift": 12129, "Ruby": 10007, "Roff": 7688, "Vim Snippet": 6802, "Scala": 6656, "Starlark": 3270, "Go": 1909, "C++": 882, "Java": 559, "Rust": 280, "Emacs... | /*
* Copyright (C) 2021 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)
*
* 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.a... | 304 | Kotlin | 309 | 1,590 | ed4bccf37bab0620cc47dbfb6bfea8542164725a | 3,075 | ort | Apache License 2.0 |
app/src/main/java/mil/nga/msi/datasource/filter/RadioBeaconFilter.kt | ngageoint | 588,211,646 | false | {"Kotlin": 1755228} | package mil.nga.msi.datasource.filter
import mil.nga.msi.filter.FilterParameter
import mil.nga.msi.filter.FilterParameterType
class RadioBeaconFilter {
companion object {
val parameters = listOf(
FilterParameter(title = "Name", parameter = "name", type = FilterParameterType.STRING),
FilterP... | 0 | Kotlin | 0 | 0 | a7288e3f64f5d070e332eb787af9818ede0122fc | 2,560 | marlin-android | MIT License |
fundamentos/fundamentos-gerais/src/main/kotlin/f/orientacaoabjetos/classe/09-heranca/02-Animal/ChamadorAnimal.kt | CarlosRobertoMedeiros | 725,864,363 | false | {"Kotlin": 64689, "Java": 78} | package f.orientacaoabjetos.classe.`09-heranca`.`02-Animal`
fun main(){
val cachorro:Animal = Cachorro("AuAu")
val gato:Animal = Gato("Miau")
println(cachorro.fazerBaruho())
println(gato.fazerBaruho())
} | 0 | Kotlin | 0 | 0 | 79bdb9a8f3d77df959149285ca5ab444f26c65b5 | 224 | repo-kotlin-developer- | RSA Message-Digest License |
src/main/kotlin/no/nav/klage/repository/VedleggRepository.kt | navikt | 253,461,869 | false | null | package no.nav.klage.repository
import no.nav.klage.domain.exception.KlageNotFoundException
import no.nav.klage.domain.klage.KlageDAO
import no.nav.klage.domain.vedlegg.Vedlegg
import no.nav.klage.domain.vedlegg.VedleggDAO
import no.nav.klage.util.getLogger
import org.springframework.stereotype.Repository
import org.s... | 4 | Kotlin | 0 | 0 | 7b7dc7e0e35c33fbb87f4fdf951dec51e794d0ce | 1,556 | klage-dittnav-api | MIT License |
app/src/main/java/br/com/dossantos/battlepoints/model/EspecificAbylityModel.kt | dosSantos-Paulo | 446,965,815 | false | null | package br.com.dossantos.battlepoints.model
data class EspecificAbylityModel(
val name: String
)
| 0 | Kotlin | 0 | 0 | 87aaa6c4d02eb821ac5aaa782f66d88e25e27732 | 102 | battle-points | MIT License |
app/src/main/java/com/gauvain/seigneur/theofficequote/model/QuoteModelExt.kt | GauvainSeigneur | 264,162,160 | false | null | package com.gauvain.seigneur.theofficequote.model
import com.gauvain.seigneur.domain.model.QuoteModel
import com.gauvain.seigneur.domain.model.QuotesModel
import com.gauvain.seigneur.theofficequote.R
import com.gauvain.seigneur.theofficequote.utils.StringPresenter
import java.text.NumberFormat
fun QuotesModel.toData(... | 0 | Kotlin | 0 | 0 | d44a86973c242473fd27ddd0845d12a43fe91fe5 | 1,211 | TheOfficeQuote | Apache License 2.0 |
core/src/main/kotlin/com/snapwise/security/bff/authorization/oauth2/client/userinfo/BffOReactiveAuth2UserService.kt | Snapwise | 589,004,796 | false | null | package com.snapwise.security.bff.authorization.oauth2.client.userinfo
import com.snapwise.security.bff.authorization.UserSession
import com.snapwise.security.bff.authorization.UserSessionService
import com.snapwise.security.bff.authorization.oauth2.client.endpoint.BffOAuth2AccessTokenResponseHttpMessageConverter
impo... | 0 | Kotlin | 0 | 0 | ce96348ab150c25410b37340cbcd662b6759da6c | 8,439 | spring-bff-authorization | Apache License 2.0 |
app/src/main/kotlin/com/haris/houlis/moviemaze/extensions/Context.kt | HarisHoulis | 324,305,602 | false | null | package com.haris.houlis.moviemaze.extensions
import android.app.Activity
import androidx.annotation.ColorRes
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import com.haris.houlis.moviemaze.R
fun Fragment.isPortrait(): Boolean = resources.getBoolean(R.bool.is_portrait)
fun Activity... | 1 | Kotlin | 1 | 6 | 6ad9f4101048fac2f1c006d0690f0c93d7c15521 | 435 | MovieMaze | Apache License 2.0 |
restdocs-openapi-gradle-plugin/src/main/kotlin/com/epages/restdocs/openapi/gradle/OpenApi20Generator.kt | klieber | 146,521,832 | true | {"Kotlin": 180838} | package com.epages.restdocs.openapi.gradle
import com.epages.restdocs.openapi.gradle.schema.JsonSchemaFromFieldDescriptorsGenerator
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.fasterxml.jackson.module.kotlin.readValue
import io.swagger.models.I... | 0 | Kotlin | 0 | 0 | 3cc0e0bc0749d603f96782debb0dd42f76a4a0b3 | 15,147 | restdocs-api-spec | MIT License |
ui/settings/src/main/java/ly/david/ui/settings/SettingsUiModule.kt | lydavid | 458,021,427 | false | {"Kotlin": 1354732, "HTML": 674577, "Python": 3489, "Shell": 1543, "Ruby": 955} | package ly.david.ui.settings
import org.koin.core.annotation.ComponentScan
import org.koin.core.annotation.Module
@Module
@ComponentScan
class SettingsUiModule
| 104 | Kotlin | 0 | 6 | 4f49e75742e4c2135161e98df9db15b418c6c3fe | 162 | MusicSearch | Apache License 2.0 |
app/src/main/kotlin/de/nanogiants/a5garapp/activities/main/MainActivity.kt | 5GAR-Hackathon | 283,319,676 | false | null | package de.nanogiants.a5garapp.activities.main
import android.Manifest.permission.ACCESS_FINE_LOCATION
import android.Manifest.permission.CAMERA
import android.annotation.SuppressLint
import android.content.Intent
import androidx.lifecycle.lifecycleScope
import dagger.hilt.android.AndroidEntryPoint
import de.nanogiant... | 0 | Kotlin | 0 | 1 | c672c4b0353ca3c27d06268c27ae49b5252dc848 | 3,853 | 5g-ar-hackathon-app-android | MIT License |
app/src/main/java/com/example/pizzalab/ui/base/BaseFragment.kt | alexandermalinov | 579,689,260 | false | {"Kotlin": 123446} | package com.example.pizzalab.ui.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import androidx.lifecycle.LiveData
import... | 0 | Kotlin | 0 | 0 | f89c80600ccc3f3f7fd0c3c547ea2fb2c1ddf7f9 | 1,961 | pizza-lab | MIT License |
android/app/src/main/kotlin/com/example/BattleCaptain_Map/MainActivity.kt | Dev-Owl | 297,101,722 | false | {"Dart": 10225, "Swift": 404, "Kotlin": 134, "Objective-C": 38} | package com.example.BattleCaptain_Map
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | 381428f67ab1fc216c1be34374b81b664d7c7d44 | 134 | 2dCamera | MIT License |
app/src/main/java/io/github/kvwrapper/MainActivity.kt | BillyWei01 | 743,025,447 | false | {"Kotlin": 33717, "Java": 3619} | package io.github.kvwrapper
import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import io.github.kvwrapper.account.AccountManager
import io.github.kvwrapper.base.AppContext
import io.github.kvwrapper.data.UsageData
import io.github.kv... | 0 | Kotlin | 0 | 1 | dd52d80af0abedf9cea52d7edbe73b379236c3cf | 2,670 | KVWrapper | MIT License |
quanmodule/src/main/java/com/jxd/android/gohomeapp/quanmodule/bean/CashBean.kt | hottech-jxd | 163,560,437 | false | null | package com.jxd.android.gohomeapp.quanmodule.bean
import java.math.BigDecimal
import java.time.LocalDateTime
/**
*
* @Package: com.jxd.android.gohomeapp.libcommon.bean
* @ClassName: CashBean
* @Description: java类作用描述
* @Author: jinxiangdong
* @CreateDate: 2019/1/5 14:46
* @UpdateUse... | 0 | Kotlin | 0 | 0 | 26354c728502f82eaa4b39f7be0f810e44946fd3 | 1,862 | gohome-android | Apache License 2.0 |
fxgl-core/src/main/kotlin/com/almasb/fxgl/texture/NineSliceTextureBuilder.kt | AlmasB | 32,761,091 | false | {"Java": 1808557, "Kotlin": 1802895, "CSS": 45751, "JavaScript": 6195, "HTML": 3049, "C++": 2908, "kvlang": 134} | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.texture
import javafx.geometry.HorizontalDirection.*
import javafx.geometry.Rectangle2D
import javafx.geometry.VerticalDirection.*
import javafx.scene.image.Image
/**
*... | 138 | Java | 546 | 4,315 | c0eaf4b0af29cf062867a37f3424a4ac37e8dcca | 5,382 | FXGL | MIT License |
app/src/main/kotlin/li/raphael/recipe/app/shared/components/Pagination.kt | raphiz | 728,075,300 | false | {"Kotlin": 76715, "JavaScript": 5325, "Nix": 1071, "CSS": 261} | package li.raphael.recipe.app.shared.components
import kotlinx.html.*
import li.raphael.kotlinhtml.templatecontext.t
import li.raphael.recipe.app.shared.Page
import li.raphael.recipe.app.shared.PagedList
fun <T> FlowContent.uPagination(
pagedList: PagedList<T>,
pageUrl: (Page) -> String,
) {
nav("usa-pagi... | 0 | Kotlin | 0 | 0 | 1931ed06d9ea84899693777d0b7050fb59a98ec7 | 3,919 | recipe-app | MIT License |
feature-liquiditypools-impl/src/main/java/jp/co/soramitsu/liquiditypools/impl/presentation/liquidityadd/LiquidityAddScreen.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738291, "Java": 18796} | package jp.co.soramitsu.liquiditypools.impl.presentation.liquidityadd
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import andro... | 15 | Kotlin | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 8,491 | fearless-Android | Apache License 2.0 |
src/main/kotlin/com/rohanbari/ch0_what_why/EarlyTaste.kt | rohanbari | 575,694,292 | false | null | package com.rohanbari.ch0_what_why
/**
* Data class accepting [name] and [age] as fields.
* Nullable variables can be identified by their identifier followed by a question mark.
*/
data class Person(val name: String, val age: Int = 0)
fun main() {
// List of Person objects.
val people = listOf(
Per... | 0 | Kotlin | 0 | 3 | 476309e2f95c99dda7d388da15f4d3d14d65debd | 600 | KotLang | MIT License |
packages/expo-dev-launcher/android/src/react-native-65/expo/modules/devlauncher/rncompatibility/DevLauncherReactNativeHostHandler.kt | Qeepsake | 470,957,719 | true | {"Objective-C": 20527824, "Java": 13707779, "C++": 9520547, "Kotlin": 5504809, "TypeScript": 5265206, "Objective-C++": 4267801, "Swift": 1128489, "JavaScript": 973765, "Starlark": 604565, "Ruby": 492004, "C": 286916, "Makefile": 158759, "Shell": 51832, "Assembly": 46734, "HTML": 44413, "CMake": 25283, "CSS": 1306, "Bat... | package expo.modules.devlauncher.rncompatibility
import expo.modules.core.interfaces.ReactNativeHostHandler
class DevLauncherReactNativeHostHandler : ReactNativeHostHandler {
override fun getDevSupportManagerFactory(): Any? {
return null
}
}
| 0 | Objective-C | 0 | 0 | 10b6a2b4755cb44b889848f2c966dc85018501ab | 253 | expo-1 | MIT License |
plugins/kotlin/frontend-independent/src/org/jetbrains/kotlin/idea/caches/trackers/KotlinIDEModificationTrackerService.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.caches.trackers
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.ModificationTracker
import com.intellij.openapi.util.SimpleModificatio... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,904 | intellij-community | Apache License 2.0 |
support-persistent/src/main/java/android/support/persistent/cache/SharePreferencesFactory.kt | quangpv | 448,463,537 | false | null | package android.support.persistent.cache
import android.content.Context
import android.content.SharedPreferences
interface SharePreferencesFactory {
fun create(context: Context): SharedPreferences
}
class DefaultSharePreferencesFactory : SharePreferencesFactory {
override fun create(context: Context): Shared... | 0 | Kotlin | 0 | 0 | 12927aee44fa546ea5d105737292f71c262e94e9 | 426 | android-support | MIT License |
idea/testData/checker/codeFragments/anonymousObject.kt | JakeWharton | 99,388,807 | false | null | val global = 2
fun makeFace() = object : ObjectFace {
val inObject = 1
<caret>} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 84 | kotlin | Apache License 2.0 |
src/main/kotlin/com/damiandev/microappcustomer/model/Customer.kt | DamianDev | 598,742,877 | false | null | package com.damiandev.microappcustomer.model
import org.bson.types.ObjectId
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import java.time.LocalDateTime
@Document
data class Customer(
@Id
val id: ObjectId = ObjectId.get(),
val name:... | 0 | Kotlin | 0 | 0 | 25bc986d6345725dd43c473930dbc7a90a092db2 | 483 | microapp-customer | Apache License 2.0 |
debop4k-timeperiod/src/main/kotlin/debop4k/timeperiod/calendars/CalendarVisitor.kt | debop | 60,844,667 | false | null | /*
* Copyright (c) 2016. <NAME> <<EMAIL>>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 1 | null | 10 | 40 | 5a621998b88b4d416f510971536abf3bf82fb2f0 | 9,838 | debop4k | Apache License 2.0 |
app/src/main/java/com/akurucz/spacex/launch/ui/SeparatorViewHolder.kt | andraskurucz | 261,599,745 | false | null | package com.akurucz.spacex.launch.ui
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.akurucz.spacex.R
class SeparatorViewHolder(view: View) : RecyclerView.ViewHolder(view) {
private... | 0 | Kotlin | 0 | 1 | dee9b8ec6b2ca57c1a88829076c4b0c89ffca5d4 | 742 | spacex-android | Apache License 2.0 |
base/src/main/java/com/dvpermyakov/base/dialogs/DialogFragmentWithContext.kt | dvpermyakov | 132,182,615 | false | {"Kotlin": 105301} | package com.dvpermyakov.base.dialogs
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.DialogFragment
/**
* Created by dmitrypermyakov on 30/04/2018.
*/
abstract class DialogFragmentWithContext : DialogFragment() {
val argumentsOrBundle: Bundle
... | 8 | Kotlin | 0 | 2 | cc6e712acd5febac079a031c4a16cacd073b290d | 704 | image-post-android | MIT License |
merriamwebster/src/main/java/space/narrate/waylan/merriamwebster/util/ViewExtensions.kt | narrate-co | 171,908,990 | false | null | package space.narrate.waylan.merriamwebster.util
import android.content.Context
import android.text.SpannableString
import android.text.style.UnderlineSpan
import android.view.LayoutInflater
import com.google.android.material.chip.Chip
import com.google.android.material.chip.ChipGroup
import space.narrate.waylan.merri... | 25 | Kotlin | 1 | 14 | c5640fb3bab994fd2c78cabd83fa962fbff75911 | 864 | waylan_android | Apache License 2.0 |
src/main/kotlin/uk/co/developmentanddinosaurs/gradle/gitversioner/core/version/VersionerConfig.kt | development-and-dinosaurs | 138,513,716 | false | {"Kotlin": 41159} | package uk.co.developmentanddinosaurs.gradle.gitversioner.core.version
/**
* Configuration required for versioning.
*/
interface VersionerConfig {
/**
* The integer to start counting from for major version increments.
*/
val startFromMajor: Int
/**
* The integer to start counting from for... | 3 | Kotlin | 5 | 21 | fff25bce9d29075376b10d8d8653b4bda731e981 | 919 | gradle-git-versioner | MIT License |
src/main/kotlin/ru/stersh/bookcrawler/module/telegram/TelegramNotificationHandler.kt | siper | 720,533,744 | false | {"Kotlin": 59760, "Dockerfile": 361} | package ru.stersh.bookcrawler.module.telegram
import com.github.kotlintelegrambot.Bot
import com.github.kotlintelegrambot.entities.*
import com.github.kotlintelegrambot.entities.keyboard.InlineKeyboardButton
import ru.stersh.bookcrawler.core.*
class TelegramNotificationHandler(
private val bot: Bot,
private v... | 13 | Kotlin | 0 | 0 | f50d3ebe7bb58420cf72165b4aa0d1918e530575 | 2,591 | BookCrawler | MIT License |
src/main/kotlin/com/village/mod/world/event/VillagerSpawnedCallback.kt | jlzht | 742,617,634 | false | {"Kotlin": 161017, "Java": 5721} | package com.village.mod.world.event
import net.fabricmc.fabric.api.event.EventFactory
import com.village.mod.entity.village.CustomVillagerEntity
import net.minecraft.util.ActionResult
fun interface VillagerSpawnedCallback {
companion object {
// @JvmField
val EVENT = EventFactory.createArrayBacked... | 0 | Kotlin | 0 | 0 | 2d5801805068b5be344fa0f40e0479879c4dbb21 | 865 | village | Creative Commons Zero v1.0 Universal |
extension-compose/src/main/java/com/mapbox/maps/extension/compose/annotation/generated/PointAnnotation.kt | mapbox | 330,365,289 | false | {"Kotlin": 3862732, "Java": 92321, "Python": 18705, "Shell": 11465, "C++": 10129, "JavaScript": 4344, "Makefile": 2847, "CMake": 1201, "EJS": 1194} | // This file is generated.
package com.mapbox.maps.extension.compose.annotation.generated
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ComposeNode
import androidx.compose.runtime.currentComposer
import androidx.compose.runtime.getValue
import androidx.compose.runtime.key
import androidx.... | 232 | Kotlin | 131 | 464 | 1bb4f6cf17c9bfce206a92e8c69d21cdd93b1f51 | 3,559 | mapbox-maps-android | Apache License 2.0 |
src/test/testData/insepctions/test000.kt | snrostov | 126,313,212 | false | null | package test
import react.*
interface <weak_warning descr="Missed builder function">MyComponentProps</weak_warning> : RProps {
var x: Int
}
interface MyComponentState : RState
class <warning descr="Props not passed to constructor"><weak_warning descr="Missed builder function">MyComponent</weak_warning></warning> ... | 0 | Kotlin | 1 | 5 | 86268b67ad50c2be20ffc0f7a33118e46014828d | 413 | idea-kotlin-react | Apache License 2.0 |
kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt | utopia-rise | 289,462,532 | false | null | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 60 | null | 26 | 386 | 12cbec679de0e857c2ce069c6812faae7c11d525 | 8,282 | godot-kotlin-jvm | MIT License |
sample/src/main/java/pl/droidsonroids/gif/sample/GifTextureFragment.kt | koral-- | 7,905,539 | false | {"Java": 165023, "C": 116119, "Assembly": 2468, "CMake": 662} | package pl.droidsonroids.gif.sample
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import pl.droidsonroids.gif.GifTextureView
class GifTextureFragment : Fragment() {
override fun onCreateView(inflater: LayoutIn... | 36 | Java | 1777 | 9,522 | 7a4ee0fb8e32414a3b16b96fdc309defccff0688 | 740 | android-gif-drawable | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/util/EarliestReleaseDateHelper.kt | ministryofjustice | 533,838,017 | false | {"Kotlin": 3642217, "Shell": 9529, "Dockerfile": 1478} | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.util
import uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.client.prisonersearchapi.model.Prisoner
import uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.model.response.EarliestReleaseDate
fun determineEarliestReleaseDate(prisoner:... | 4 | Kotlin | 0 | 1 | d3db16ab9a7b8dba06b25e4f43207d4c6a9155ea | 1,406 | hmpps-activities-management-api | MIT License |
app/src/androidTest/java/org/wikipedia/screens/explore/CustomizeYourExploreItem.kt | AlexeyMozgovoy92 | 861,896,798 | false | {"Kotlin": 3399593, "Java": 54651, "Python": 24797, "Jinja": 533, "Shell": 521} | package org.wikipedia.screens.explore
import android.view.View
import io.github.kakaocup.kakao.image.KImageView
import io.github.kakaocup.kakao.recycler.KRecyclerItem
import io.github.kakaocup.kakao.text.KButton
import io.github.kakaocup.kakao.text.KTextView
import org.hamcrest.Matcher
import org.wikipedia.R
class Cu... | 0 | Kotlin | 0 | 0 | 7d2b07b7e9550dbb14cf113e0ade86878cf728c2 | 821 | wikipedia | Apache License 2.0 |
core/src/main/kotlin/swak/body/reader/provider/request/BodyReaderRequestProviders.kt | neyb | 83,224,971 | false | null | package swak.body.reader.provider.request
import swak.http.request.UpdatableRequest
internal class BodyReaderRequestProviders<out B>(
private val requestDependentBodyReaders: List<PotentialBodyReaderChooser<B>>
) : BodyReaderChooser<B> {
override fun forRequest(request: UpdatableRequest<String>) =
... | 0 | Kotlin | 0 | 0 | 85d9cda2be6be462d51ec78f4b58e206666951ba | 510 | swak | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/main/MessageBoxOptions.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12159121, "JavaScript": 330528} | // Generated by Karakum - do not modify it manually!
package electron.main
typealias MessageBoxOptions = electron.core.MessageBoxOptions
| 40 | Kotlin | 165 | 1,319 | a8a1947d73e3ed26426f1e27b641bff427dfd6a0 | 140 | kotlin-wrappers | Apache License 2.0 |
dokka-subprojects/plugin-base/src/main/kotlin/org/jetbrains/dokka/base/DokkaBaseInternalConfiguration.kt | Kotlin | 21,763,603 | false | {"Kotlin": 3712559, "CSS": 63401, "JavaScript": 33594, "TypeScript": 13611, "HTML": 6976, "FreeMarker": 4120, "Java": 3923, "SCSS": 2794, "Shell": 970} | /*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.dokka.base
// revisit in scope of https://github.com/Kotlin/dokka/issues/2776
internal object DokkaBaseInternalConfiguration {
const val SHOULD_DISPLAY_ALL_TYPES_PAGE_SYS_PROP = "dok... | 568 | Kotlin | 415 | 3,174 | a1c3b89871a3a4f90d6441db356685d48a84ab63 | 1,050 | dokka | Apache License 2.0 |
app/src/main/java/com/hanna/textrecognition/data/repository/FirebaseRepository.kt | hannaiazizah | 609,993,491 | false | null | package com.hanna.textrecognition.data.repository
import com.hanna.textrecognition.data.model.ImageRequest
interface FirebaseRepository {
suspend fun submitData(request: ImageRequest): Boolean
} | 0 | Kotlin | 0 | 0 | b83143fd2ea1da5fbd268ea6f65bf22f25c04ab2 | 201 | TextRecognition | MIT License |
multiplatform-crypto-libsodium-bindings/src/jsMain/kotlin/com/ionspin/kotlin/crypto/util/LibsodiumRandom.kt | ionspin | 328,144,791 | false | {"Kotlin": 424828, "Shell": 10307} | package com.ionspin.kotlin.crypto.util
import com.ionspin.kotlin.crypto.getSodium
import ext.libsodium.com.ionspin.kotlin.crypto.toUByteArray
import ext.libsodium.com.ionspin.kotlin.crypto.toUInt8Array
/**
* Created by Ugljesa Jovanovic
* ugljesa.jovanovic@ionspin.com
* on 27-Sep-2020
*/
actual object LibsodiumRa... | 3 | Kotlin | 6 | 89 | b919de5d71a33b5e9dafef821652d91a2fbbe506 | 2,007 | kotlin-multiplatform-libsodium | Apache License 2.0 |
app/src/main/kotlin/com/ybj366533/yycamera/base/BaseFragment.kt | ybj366533 | 131,370,409 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 17, "Text": 27, "Ignore List": 5, "Batchfile": 7, "Markdown": 5, "XML": 89, "Proguard": 5, "INI": 3, "Java": 160, "Makefile": 114, "C++": 56, "C": 398, "Microsoft Developer Studio Project": 4, "Microsoft Visual Studio Solution": 6, "Kotlin": 65, "JSON": 2, "CMake": 19, "YAM... | package com.ybj366533.yycamera.base
import com.trello.rxlifecycle2.components.support.RxFragment
/**
* BaseFragment
* Created by Summer on 2019/05/13.
*/
open class BaseFragment: RxFragment(), IEventBus {
override val eventBusList: MutableSet<Any> = mutableSetOf()
override fun onDestroy() {
supe... | 0 | C | 3 | 19 | 08d6b4818173293f3f56409f2f4e79dec76e3aa5 | 365 | YY-Camera | Apache License 2.0 |
libraries/ted-xml-simplexml-parser/src/main/kotlin/hu/deepdata/tenderbase/tedxml/simplexml/model/NoticeData.kt | deepdata-ltd | 126,977,680 | false | {"Java": 248439, "Kotlin": 216969, "HTML": 34826, "Shell": 2255, "JavaScript": 1755} | /*
* Copyright 2018 DeepData Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 1 | Java | 1 | 1 | c680dcce5d4fdeb337516a3d88713aa30dfa56dd | 2,362 | tenderbase | Apache License 2.0 |
domain/src/main/java/com/apx6/domain/entities/History.kt | volt772 | 506,075,620 | false | {"Kotlin": 305901} | package com.apx6.domain.entities
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import com.apx6.domain.entities.History.Companion.TABLE_HISTORY
@Entity(
tableName = TABLE_HISTORY,
indices = [
Index(value = ["id"], unique = true),
Index(value = ["keyword"... | 0 | Kotlin | 0 | 0 | c3d4a20422090153b40f9542bbc51a3368750034 | 568 | chipmunk | Apache License 2.0 |
domain/src/main/java/ru/maksonic/rdpodcast/domain/categories/CategoryDomain.kt | maksonic | 455,857,524 | false | null | package ru.maksonic.rdpodcast.domain.categories
import ru.maksonic.rdpodcast.core.Abstract
/**
* @Author: maksonic on 07.02.2022
*/
data class CategoryDomain(
val id: Long,
val categoryId: String = "",
val name: String = "",
val description: String = "",
val image: String = "",
) : Abstract.Doma... | 0 | Kotlin | 0 | 0 | 60db23bf1f7ee9f6f8cc4a1c766b7afa44e20775 | 328 | RDPodcast | MIT License |
src/test/kotlin/com/chainstaysoftware/testing/JunitHandlerTest.kt | jodastephen | 206,089,863 | false | null | package com.chainstaysoftware.testing
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.util.text.StringUtil
import com.intellij.psi.PsiFile
import com.intellij.testFramework.PsiTestUtil
import com.intellij.testFramework.fixtures.JavaCodeInsightFixtureTestCase
import com.intellij.util.Path... | 1 | null | 1 | 4 | 6a655ed619491159b7e8c3cab3bdb240bdea3da5 | 15,099 | Assertions2AssertJ | Apache License 2.0 |
app/src/main/java/com/example/gekata_mobile/Network/TransportModels/BuildingList.kt | Onixx-dev | 754,679,819 | false | {"Kotlin": 103826} | package com.example.gekata_mobile.Network.TransportModels
data class BuildingList(
var objectsList : ArrayList<TransportBuilding> = arrayListOf()
)
| 0 | Kotlin | 0 | 0 | 398ab133654b1a71db30afb669251d2eea1cade0 | 153 | Gekata_mobile | MIT License |
retrofit-kx-ksp/src/main/kotlin/io/github/retrofitx/ksp/ServiceMetadata.kt | agamula90 | 600,692,053 | false | null | package io.github.retrofitx.ksp
import com.squareup.kotlinpoet.ClassName
class ServiceMetadata(
val serviceName: String,
var errorClassName: ClassName,
var baseUrl: String? = null,
var boxed: Boolean? = null,
) {
override fun equals(other: Any?): Boolean {
return other is ServiceMetadata &... | 0 | Kotlin | 0 | 3 | 8d65e8c6a224df1e2d24ec3932f07826392dae95 | 442 | RetrofitKx | Apache License 2.0 |
build-logic/convention/src/main/kotlin/AndroidLibraryPublishConventionPlugin.kt | AdrianKuta | 819,864,172 | false | {"Kotlin": 29855} | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 0 | Kotlin | 0 | 2 | a3439ee9cd307b2e602bc661fbb293adbc79141f | 987 | Unbound-Drag-Drop | MIT License |
app/src/main/kotlin/br/com/atlas/interactor/date/DateInteractor.kt | rodrigosimoesrosa | 197,280,546 | false | null | package br.com.atlas.interactor.date
/**
* Created by rodrigosimoesrosa on 2019-07-16.
* Copyright © 2019. All rights reserved.
*/
interface DateInteractor {
fun getFrom(days: Int): String
fun getTo(): String
}
| 0 | Kotlin | 0 | 0 | b10044ec3fc7de8d1e4b0399670d0bac1249147e | 225 | atlas-challenge | MIT License |
sdk/src/commonMain/kotlin/org/timemates/sdk/authorization/email/EmailAuthorizationApi.kt | timemates | 575,534,072 | false | {"Kotlin": 142706} | package org.timemates.sdk.authorization.email
import org.timemates.sdk.authorization.email.requests.ConfigureNewAccountRequest
import org.timemates.sdk.authorization.email.requests.ConfirmAuthorizationRequest
import org.timemates.sdk.authorization.email.requests.StartAuthorizationRequest
import org.timemates.sdk.autho... | 2 | Kotlin | 0 | 9 | 4a6ec0ee47cc06c7136d5ca470337657f895e7be | 2,484 | sdk | MIT License |
app/src/main/java/com/nizzle94/architecturecomponentmvp/ui/login/LoginController.kt | Nizomjon1994 | 136,735,526 | false | {"Kotlin": 122778, "Java": 2171} | package com.nizzle94.architecturecomponentmvp.ui.login
import android.arch.lifecycle.LifecycleObserver
import android.arch.lifecycle.LifecycleOwner
import com.nizzle94.mvp.BaseView
/**
* Created by Khajiev Nizomjon on 04/06/2018.
*/
interface LoginController : BaseView, LifecycleOwner {
fun showLoading()
... | 1 | Kotlin | 1 | 2 | 62ce4d9cacde80abe430f573981a322891391b6d | 336 | Architecture-Component-MVP-Kotlin | Apache License 2.0 |
composeApp/src/androidMain/kotlin/com/christophprenissl/hygienecompanion/model/entity/CoveringLetter.kt | chris-prenissl | 818,346,441 | false | {"Kotlin": 270639} | package com.christophprenissl.hygienecompanion.model.entity
import java.util.*
data class CoveringLetter(
var id: String = "",
var seriesId: String = "",
val description: String = "",
var date: Date? = null,
var lotId: String = "",
var laboratoryIn: Date? = null,
var resultCreated: Date? =... | 0 | Kotlin | 0 | 0 | ecf55c4fad348b4beabe75aeac2c7bbc6c3ddc72 | 613 | hygiene-lab-companion | MIT License |
src/main/java/com/dzen/campfire/server/tables/TAccountsFirebase.kt | ZeonXX | 442,862,191 | false | {"Kotlin": 1072092} | package com.dzen.campfire.server.tables
object TAccountsFirebase {
val NAME = "accounts_firebase"
val account_id = "account_id"
val firebase_uid = "firebase_uid"
} | 1 | Kotlin | 2 | 0 | 40a2fbdbbdbe6706ed852f7218cb10fd57e50445 | 176 | CampfireServer | Apache License 2.0 |
main-files/main-files-api/src/main/java/com/samara/main_files_api/domain/useCase/IMainFilesUseCase.kt | Salieri666 | 667,969,784 | false | {"Kotlin": 103501} | package com.samara.main_files_api.domain.useCase
import android.net.Uri
import com.samara.main_files_api.domain.models.FileDomain
import kotlinx.coroutines.flow.StateFlow
interface IMainFilesUseCase {
interface State {
val listFiles: List<FileDomain>
val depthNumber: Long
val currentPath:... | 0 | Kotlin | 0 | 0 | 84856669ad60c5b1808335bc727346df28988f10 | 937 | simple-file-manager | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.