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/app/pagingexample/teams/TeamsDataSource.kt | Magno-Ramos | 234,406,941 | false | null | package com.app.pagingexample.teams
import androidx.lifecycle.MutableLiveData
import androidx.paging.PageKeyedDataSource
import com.app.pagingexample.model.NetworkState
import com.app.pagingexample.model.Team
import com.app.pagingexample.service.WebService
import io.reactivex.disposables.CompositeDisposable
import io.... | 0 | Kotlin | 0 | 0 | 3f13f663d354bb0643180766c45f263b569ae6da | 1,895 | NBA-app | Apache License 2.0 |
src/test/kotlin/com/github/fisherman08/micronautbooks/controller/book/BookInfoControllerTest.kt | fisherman08 | 334,301,590 | false | null | package com.github.fisherman08.micronautbooks.controller.book
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import com.github.fisherman08.micronautbooks.TestUtils
import com.github.fisherman08.micronautbooks.controller.ApiPaths
import com.github.fis... | 0 | Kotlin | 0 | 1 | e0ba367eed3d3b7b84c3bf33336c0de72bad96e1 | 2,225 | micronaut_book_management | MIT License |
app/src/main/java/com/banuba/sdk/agorapluginexample/ext/ContextExt.kt | Banuba | 386,239,254 | false | null | package com.banuba.sdk.agorapluginexample.ext
import android.content.Context
import androidx.annotation.DimenRes
fun Context.dimenPx(@DimenRes dimen: Int) = resources.getDimensionPixelSize(dimen)
| 3 | Kotlin | 2 | 5 | f97375380acdd59b305893bf3662c906965928d5 | 198 | agora-plugin-filters-android | MIT License |
ChatRoomApp/app/src/main/java/sameer/example/chatroomapp/data/RoomRepository.kt | CodeNinja0615 | 819,585,802 | false | null | package dev.devlopment.Chater.Repository
import com.google.firebase.firestore.FirebaseFirestore
import dev.devlopment.chater.Repository.Result
import dev.devlopment.chater.Repository.Room
import kotlinx.coroutines.tasks.await
class RoomRepository(private val firestore: FirebaseFirestore) {
suspend fun createRo... | 0 | null | 0 | 1 | 724a863975078b760c74e25b74d56ce0f1c37ca1 | 903 | Kotlin | MIT License |
PlayGround/src/main/java/com/dinesh/android/Main.kt | Dinesh2811 | 745,880,179 | false | null | package com.dinesh.android
import android.content.res.Resources
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity
import com.dinesh.android.databinding.MainBinding
import com.dines... | 0 | null | 0 | 1 | d050009b544ab4b2a5cac99fef9804e78419637b | 4,432 | Android101 | Apache License 2.0 |
app/src/main/java/com/gappein/app/ui/chat/ChatActivity.kt | PatilShreyas | 310,856,991 | true | {"Kotlin": 99576, "Java": 409} | package com.gappein.app.ui.chat
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.gappein.app.R
import com.gappein.sdk.model.User
import com.gappein.sdk.ui.view.channelview.ChannelListFragment
import com.gappein.sdk.ui.view.... | 1 | null | 0 | 3 | cbbb0c75a869ce543af3f8854925912f9dbfbe1d | 1,035 | Gappein-Chat-SDK-1 | MIT License |
kotlin-antd/antd-samples/src/main/kotlin/samples/badge/App.kt | oxiadenine | 206,398,615 | false | {"Kotlin": 1619835, "HTML": 1515} | package samples.badge
import kotlinx.css.*
import kotlinx.css.properties.LineHeight
import react.RBuilder
import react.RComponent
import react.Props
import react.State
import react.dom.h2
import styled.StyleSheet
import styled.css
import styled.styledDiv
object BadgeStyles : StyleSheet("badge", isStatic = true) {
... | 1 | Kotlin | 8 | 50 | e0017a108b36025630c354c7663256347e867251 | 1,728 | kotlin-js-wrappers | Apache License 2.0 |
src/test/kotlin/eZmaxApi/apis/ObjectEzsigntemplatedocumentApiTest.kt | eZmaxinc | 271,950,932 | false | {"Kotlin": 6909939} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package eZmaxApi.apis
import io.kotlintest.shou... | 0 | Kotlin | 0 | 0 | 961c97a9f13f3df7986ea7ba55052874183047ab | 9,036 | eZmax-SDK-kotlin | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/spells/CleanseAugment.kt | fzzyhmstrs | 461,338,617 | false | null | package me.fzzyhmstrs.amethyst_imbuement.spells
import me.fzzyhmstrs.amethyst_core.interfaces.SpellCastingEntity
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentConsumer
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentEffect
import me.fzzyhmstrs.amethyst_core.scepter_util.LoreTier
import me.fzzyhmstrs.... | 17 | null | 9 | 4 | 49ef2119816a9fc75f4ed2508fc1ac35a009c6a9 | 3,487 | ai | MIT License |
app/src/main/java/com/nuhkoca/myapplication/data/remote/player/PlayerResponse.kt | nuhkoca | 166,842,702 | false | null | package com.nuhkoca.myapplication.data.remote.player
import com.google.gson.annotations.SerializedName
data class PlayerResponse(
@SerializedName("request")
var request: Request? = null
)
| 1 | Kotlin | 9 | 62 | 9e373cd741cb243b0a1ce90c7ad88284941b56b1 | 198 | DaggerExoPlayer | The Unlicense |
src/main/kotlin/endredeak/aoc2023/Day03.kt | edeak | 725,919,562 | false | {"Kotlin": 18429} | package endredeak.aoc2023
import endredeak.aoc2023.lib.utils.productOf
import kotlin.math.max
import kotlin.math.min
data class Symbol(val x: Int, val y: Int, val c: Char)
data class Number(val x: Int, val y: Int, var value: Long)
fun Char.isSymbol() = !this.isDigit() && this != '.'
fun createMap(lines: List<String... | 0 | Kotlin | 0 | 0 | 36b440bc0a03a0586ffe5eed74784d067b8f22d7 | 1,983 | AdventOfCode2023 | Do What The F*ck You Want To Public License |
bungie/src/main/kotlin/pl/nanoray/glint/bungie/api/model/DestinyInventoryComponent.kt | Nanoray-pl | 363,267,648 | false | null | package pl.nanoray.glint.bungie.api.model
import kotlinx.serialization.Serializable
@Serializable
data class DestinyInventoryComponent(
val items: List<DestinyItemComponent>
) | 10 | Kotlin | 0 | 0 | 7b55e33873341bd201b8d068b6c51fbefe664af3 | 181 | Glint | Apache License 2.0 |
app/src/main/java/app/simone/multiplayer/controller/FirebaseListAdapterFactory.kt | nicorsm | 94,624,684 | true | {"Java": 144292, "Kotlin": 74918} | package app.simone.multiplayer.controller
import android.view.View
import android.widget.TextView
import app.simone.R
import app.simone.multiplayer.model.FacebookUser
import app.simone.multiplayer.model.MatchUserInfo
import app.simone.multiplayer.view.FriendsCellFiller
import app.simone.multiplayer.view.nearby.Waiting... | 0 | Java | 0 | 0 | 2022622c6755a6c3ec2f81194180da34a937a3cd | 2,411 | S3-16-simone | MIT License |
Chapter11/src/main/kotlin/com/microservices/chapter11/Customer.kt | PacktPublishing | 118,729,748 | false | null | package com.microservices.chapter11
class Customer(val id: Int, val name: String) | 0 | Kotlin | 28 | 60 | b3794d623f4826431295126fb8ab921eb145cd00 | 82 | Hands-On-Microservices-with-Kotlin | MIT License |
responses/src/commonMain/kotlin/ru/krindra/vkkt/responses/video/VideoUploadResponse.kt | krindra | 780,080,411 | false | {"Kotlin": 1336107} | package ru.krindra.vkkt.responses.video
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import ru.krindra.vkkt.objects.video.*
/**
* @param size Video size
* @param videoId Video ID
*/
@Serializable
data class VideoUploadResponse (
@SerialName("size") val size: Int? = null,
... | 0 | Kotlin | 0 | 1 | 58407ea02fc9d971f86702f3b822b33df65dd3be | 375 | VKKT | MIT License |
app/src/main/java/com/tekfoods/features/orderList/api/neworderlistapi/NewOrderListApi.kt | DebashisINT | 470,052,833 | false | {"Kotlin": 10295374, "Java": 912702} | package com.breezedsm.features.orderList.api.neworderlistapi
import com.breezedsm.app.NetworkConstant
import com.breezedsm.base.BaseResponse
import com.breezedsm.features.orderList.model.NewOrderListResponseModel
import io.reactivex.Observable
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapt... | 0 | Kotlin | 0 | 0 | fb979e756b6c387880e07fd2afaf2572d62bb2f3 | 1,676 | TEKFOODS | Apache License 2.0 |
buildSrc/src/main/kotlin/Deps.kt | getspherelabs | 687,455,894 | false | {"Kotlin": 499164, "Ruby": 6984, "Swift": 1167, "Shell": 226} | import org.gradle.api.Project
object Version {
const val ktorVersion = "2.3.2"
const val meteorVersion = "0.4.3"
const val coroutineVersion = "1.7.2"
const val settingsVersion = "1.0.0"
const val coilVersion = "2.4.0"
const val koinCoreVersion = "3.3.0"
const val koinAndroidVersion = "3.3.1... | 19 | Kotlin | 13 | 90 | 696fbe6f9c4ff9e8a88492a193d6cb080df41ed6 | 4,847 | anypass-kmp | Apache License 2.0 |
http/src/main/kotlin/pl/nanoray/glint/http/HttpResponse.kt | Nanoray-pl | 363,267,648 | false | null | package pl.nanoray.glint.http
data class HttpResponse(
val statusCode: Int,
val headers: Map<String, String>,
val data: ByteArray
) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as HttpResponse
if (statusCode != other.s... | 10 | Kotlin | 0 | 0 | 7b55e33873341bd201b8d068b6c51fbefe664af3 | 630 | Glint | Apache License 2.0 |
kotlin-antd/antd-samples/src/main/kotlin/samples/timepicker/HideColumn.kt | LuoKevin | 341,311,901 | true | {"Kotlin": 1549697, "HTML": 1503} | package samples.timepicker
import antd.timepicker.*
import moment.*
import react.*
import styled.*
private val timeFormat = "HH:mm"
fun RBuilder.hideColumn() {
styledDiv {
css { +TimePickerStyles.hideColumn }
timePicker {
attrs {
defaultValue = moment("12:08", timeForm... | 0 | null | 0 | 0 | 9f57507607c3dd5d5452f3cbeb966b6db3d60c76 | 392 | kotlin-js-wrappers | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/authorizationserver/integration/OAuthIntTest.kt | ministryofjustice | 498,250,140 | false | null | package uk.gov.justice.digital.hmpps.authorizationserver.integration
import com.microsoft.applicationinsights.TelemetryClient
import org.assertj.core.api.Assertions.assertThat
import org.json.JSONArray
import org.json.JSONObject
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Nested
imp... | 1 | Kotlin | 1 | 0 | f1ff3bf015034293483bbe653802fd4a6979f5a3 | 6,943 | hmpps-authorization-server | MIT License |
graphics/graphics-core/src/androidTest/java/androidx/graphics/lowlatency/LinesDrawable.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,977 | androidx | Apache License 2.0 |
Base/src/main/java/com/xy/base/widget/tag/TagMultiAdapter.kt | xiuone | 291,512,847 | false | null | package com.xy.base.widget.tag
abstract class TagMultiAdapter :TagBaseAdapter<TagMultiListener>() {
override fun getItemViewType(position: Int): Int {
if (position < data.size){
val item = data[position]
return item.onCreateRecyclerType()
}
return super.getItemVie... | 0 | Kotlin | 1 | 2 | a5f1b3098371dcbacb98c4d10602c604efa6ee0a | 343 | ajinlib | Apache License 2.0 |
src/main/kotlin/br/com/kafkautils/kafka/topic/controller/TopicController.kt | Kafka-Utils | 358,977,478 | false | null | package br.com.kafkautils.kafka.topic.controller
import br.com.kafkautils.http.DefaultErrorResponses
import br.com.kafkautils.kafka.cluster.service.ClusterService
import br.com.kafkautils.kafka.topic.model.NewPartition
import br.com.kafkautils.kafka.topic.model.NewTopicConfig
import br.com.kafkautils.kafka.topic.model... | 0 | Kotlin | 1 | 0 | 680027da053e38ec1a5bf3ff04373f5b3fe43379 | 3,522 | kafka-utils | Apache License 2.0 |
core/src/commonMain/kotlin/com.jobeslegacy.engine/component/AnimateComponent.kt | jobe-m | 709,909,231 | false | {"Kotlin": 78491} | package com.jobeslegacy.engine.component
import com.github.quillraven.fleks.Component
import com.github.quillraven.fleks.ComponentType
import com.jobeslegacy.engine.util.AnySerializer
import com.jobeslegacy.engine.util.Easing
import com.jobeslegacy.engine.util.EasingSerializer
import com.jobeslegacy.engine.util.Serial... | 0 | Kotlin | 0 | 0 | 82c38e67a51884e59c902c886e7b416114ac47fb | 7,769 | jobeslegacy-engine | Apache License 2.0 |
server/src/main/kotlin/CommandExecutor.kt | Chousik | 764,806,161 | false | {"Kotlin": 64449} | import commands.ACommand
import request.Request
import response.CommandResponse
import response.ResponseStatus
class CommandExecutor(private val commandMatcher: CommandMatcher) {
fun execute(request: Request): CommandResponse {
val command: ACommand? = commandMatcher.getCommands()[request.type]
ret... | 1 | Kotlin | 0 | 0 | c2734e5384b5be1df97799f90de42c630a0d44d9 | 457 | Lab5_Kotlin | MIT License |
org.librarysimplified.audiobook.api/src/main/java/org/librarysimplified/audiobook/api/PlayerVersions.kt | NYPL-Simplified | 139,462,999 | false | null | package org.librarysimplified.audiobook.api
import org.slf4j.LoggerFactory
import java.io.FileNotFoundException
import java.io.InputStream
import java.lang.Exception
import java.util.Properties
/**
* Functions to serialize/deserialize player versions.
*/
object PlayerVersions {
private val logger =
LoggerFa... | 1 | null | 2 | 2 | 6633bcd1006ead70bc2ffd945cacb6b38af8e8e5 | 2,241 | audiobook-android | Apache License 2.0 |
orderservice/src/test/kotlin/it/polito/master/ap/group6/ecommerce/orderservice/OrderserviceApplicationTests.kt | franckies | 367,363,459 | false | null | package it.polito.master.ap.group6.ecommerce.orderservice
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class OrderserviceApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 884650f45ba385ee98ee0d0fa685404865169e74 | 252 | ecommerce-api | Apache License 2.0 |
kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.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 | 28 | 412 | fe7379a450ed32ad069f3b672709a2520b86f092 | 22,770 | godot-kotlin-jvm | MIT License |
app/src/main/java/com/raghav/mynotes/utils/CoroutineUtils.kt | avidraghav | 446,325,077 | false | null | package com.raghav.mynotes.utils
import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import kotlinx.coroutines.launch
object CoroutineUtils {
fun Fragment.executeInCoroutine(
lifecycleState: Lifecyc... | 2 | Kotlin | 25 | 89 | 2ba6e1c66a9d8694c81ce6aafbd3542107d88846 | 571 | MyNotes | Apache License 2.0 |
src/main/kotlin/org/cdb/labwitch/components/PasswordEncoder.kt | CodeDrillBrigade | 714,769,385 | false | {"Kotlin": 35591} | package org.cdb.labwitch.components
/**
* Functional interface that defines the method to hash a password and verify the hash.
*/
interface PasswordEncoder {
/**
* Hashes a password with a random salt.
*
* @param password the password to hash.
* @return the generated hash.
*/
fun has... | 2 | Kotlin | 0 | 0 | 4bc8cefa0fbf63a25650cef660bba9b96928ddba | 683 | LabWitchery-backend | MIT License |
gluecodium/src/main/java/com/here/gluecodium/platform/swift/SwiftGeneratorSuite.kt | tigerninjas | 287,738,149 | true | {"Kotlin": 1222363, "Dart": 1202197, "C++": 1084157, "Swift": 808121, "HTML": 562831, "Java": 185403, "CMake": 118428, "C": 105201, "Shell": 22656, "ANTLR": 12952, "Python": 2387, "Batchfile": 125} | /*
* Copyright (C) 2016-2019 HERE Europe B.V.
*
* 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 | null | 0 | 0 | 9ea14ac55a6c422b7160a25c6fa60e0f11017723 | 8,347 | gluecodium | Apache License 2.0 |
apps/mobile/src/test/kotlin/dev/marlonlom/cappajv/features/catalog_list/CatalogListRepositoryTest.kt | marlonlom | 766,685,767 | false | {"Kotlin": 319319} | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.cappajv.features.catalog_list
import dev.marlonlom.cappajv.core.catalog_source.CatalogDataService
import dev.marlonlom.cappajv.core.database.FakeLocalDataSource
import kotlinx.coroutines.flow.first
import kotlinx.coroutine... | 3 | Kotlin | 0 | 0 | c4dc41a0dd68e90768e7d3fec9e9f0c6fdd5ff93 | 1,106 | cappajv | Apache License 2.0 |
test/org/ym2149/hernia/util/TestHerniaUtils.kt | combatopera | 143,462,135 | false | null | package org.ym2149.hernia.util
import org.junit.Assert.assertArrayEquals
import org.junit.Test
import java.io.Serializable
import java.util.stream.Stream
import kotlin.test.assertEquals
class TestHerniaUtils {
@Test
fun `Stream toTypedArray works`() {
val a: Array<String> = Stream.of("one", "two").toT... | 0 | Kotlin | 1 | 0 | 4fda38243fdf3fa1a8a5a6f21fd129569decb325 | 1,357 | Hernia | Apache License 2.0 |
src/main/kotlin/io/docrozza/normalization/StatementUtils.kt | docrozza | 427,397,971 | false | {"Kotlin": 45520} | package io.docrozza.normalization
import com.stardog.stark.Statement
import com.stardog.stark.Values
import com.stardog.stark.io.ntriples.NTWriter
import java.io.StringWriter
object StatementUtils {
fun Statement.writeString() = write(false)
fun Statement.writeLine() = write(true)
private fun Statement... | 1 | Kotlin | 0 | 0 | a5443f6d55cb4e67cdf1a49d181734ec05c4c238 | 968 | normalization | MIT License |
projects/FoodRecipes/app/src/main/java/com/dev_vlad/foodrecipes/util/MyLogger.kt | vlad-ed-git | 331,511,855 | false | null | package com.dev_vlad.foodrecipes.util
import android.util.Log
object MyLogger {
private const val DEBUG = true
private const val LOG_TAG_PREFIX = "MyLogger"
fun logThis(tag: String, location:String, msg:String, throwable: Throwable? = null) {
throwable?.printStackTrace()
if (DEBUG) {
... | 0 | Kotlin | 0 | 0 | df10823b841e8478c4e50eeb3213d66ce13556d1 | 420 | android-certification-path-repo | MIT License |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/foundation/BackgroundScreen.kt | Vivecstel | 338,792,534 | false | null | package com.steleot.jetpackcompose.playground.compose.foundation
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CutCornerShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
impor... | 2 | null | 46 | 346 | 0161d9c7bf2eee53270ba2227a61d71ba8292ad0 | 1,881 | Jetpack-Compose-Playground | Apache License 2.0 |
shared/src/commonMain/kotlin/org/chiachat/app/ui/services/NavigationService.kt | abueide | 576,041,973 | false | {"Kotlin": 53648, "Swift": 516, "Ruby": 103} | package org.chiachat.app.ui.services
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import org.chiachat.app.ui.components.Component
import org.koin.core.component.KoinComponent
internal class ... | 0 | Kotlin | 0 | 0 | eeb4dd4003380b9ff9f479e627b0ecb5f4dce50d | 2,031 | chiachat-ios-demo | MIT License |
app/src/main/java/com/example/mr_peanutbutter/whoami/MainActivity.kt | TomWayne98 | 77,635,381 | false | {"Kotlin": 11263, "Java": 1184} | package com.example.mr_peanutbutter.whoami
import android.app.Activity
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.os.Bundle
import android.util.Log
import kotlinx.andr... | 0 | Kotlin | 0 | 0 | 5866fff8847367e55db8fb865ab7e695389bdee6 | 11,130 | GyroPlayground | MIT License |
create_pdf/src/main/java/tech/okcredit/create_pdf/custom/RecyclerPDFViewer.kt | okcredit | 655,683,984 | false | {"Kotlin": 85381, "Java": 82362} | package tech.okcredit.create_pdf.custom
import android.content.Context
import android.util.AttributeSet
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.LinearSnapHelper
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.SnapHelper
import tec... | 0 | Kotlin | 0 | 2 | f38c0edddde92585d38ee1dd6fbee2121adc5d94 | 1,338 | PDFBuilder-Android | Apache License 2.0 |
src/main/kotlin/sh/miles/pineappleenvoys/util/MarkedKey.kt | PineappleDevelopmentGroup | 861,381,196 | false | {"Kotlin": 91315} | package sh.miles.pineappleenvoys.util
import sh.miles.pineapple.collection.registry.RegistryKey
interface MarkedKey<K> : RegistryKey<K> {
var dirty: Boolean
}
| 0 | Kotlin | 0 | 0 | d14e39ed2da20be1d896e8948fa80b3de88ee7a4 | 165 | PineappleEnvoys | Apache License 2.0 |
app/src/main/java/xyz/tunlinaung/kotlin/network/ZeeWaKaApi.kt | tunlinnaung | 140,725,341 | false | {"Kotlin": 26031} | package xyz.tunlinaung.kotlin.network
import io.reactivex.Observable
import retrofit2.http.Field
import retrofit2.http.POST
import retrofit2.http.FormUrlEncoded
import xyz.tunlinaung.kotlin.network.responses.HealthCareInfoResponse
interface ZeeWaKaApi {
@FormUrlEncoded
@POST("GetHealthcareInfo.php")
fun... | 1 | Kotlin | 0 | 0 | 84e844172d03bb95364609b24f7766da9f52b1b8 | 421 | PADC-5-P-TLA-Ex3-ZeeWaKa-Kotlin | Apache License 2.0 |
platform/lang-impl/src/com/intellij/lang/documentation/DocumentationTarget.kt | cpovirk | 407,239,569 | false | {"Text": 6384, "XML": 6453, "YAML": 418, "Ant Build System": 11, "Shell": 562, "Markdown": 574, "Ignore List": 95, "Git Attributes": 10, "EditorConfig": 233, "Batchfile": 27, "SVG": 2409, "Java": 76568, "Kotlin": 42386, "Java Properties": 198, "HTML": 2906, "INI": 427, "JFlex": 31, "CSS": 59, "Groovy": 3462, "XSLT": 11... | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.lang.documentation
import com.intellij.model.Pointer
import com.intellij.navigation.TargetPresentation
import com.intellij.pom.Navigatable
... | 1 | null | 1 | 1 | 30eb439398b10f1209403c6e3ab0632db6212e22 | 2,088 | intellij-community | Apache License 2.0 |
app/src/main/kotlin/de/markusfisch/android/binaryeye/view/ScanFeedback.kt | markusfisch | 101,552,674 | false | null | package de.markusfisch.android.binaryeye.view
import android.content.Context
import android.media.AudioManager
import de.markusfisch.android.binaryeye.app.prefs
import de.markusfisch.android.binaryeye.media.beepConfirm
import de.markusfisch.android.binaryeye.media.beepError
import de.markusfisch.android.binaryeye.os.e... | 83 | Kotlin | 97 | 992 | e99e2d7dccba2f6ffb6d7d6d2e6428288834dcf5 | 925 | BinaryEye | MIT License |
lomout-config/src/main/kotlin/net/pototskiy/apps/lomout/api/source/workbook/csv/CsvCellIterator.kt | pavru | 172,818,183 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 0 | Kotlin | 1 | 0 | 96b9715fab77ade907948527e1bfeb4c210ba988 | 1,341 | lomout | Apache License 2.0 |
lomout-config/src/main/kotlin/net/pototskiy/apps/lomout/api/source/workbook/csv/CsvCellIterator.kt | pavru | 172,818,183 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 0 | Kotlin | 1 | 0 | 96b9715fab77ade907948527e1bfeb4c210ba988 | 1,341 | lomout | Apache License 2.0 |
clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/search/SearchQuery.kt | algolia | 419,291,903 | false | {"PHP": 4258653, "Java": 3034286, "Kotlin": 1488713, "Dart": 1468859, "TypeScript": 1307286, "Go": 363420, "Mustache": 306347, "MDX": 104126, "CSS": 39035, "JavaScript": 37810, "Shell": 1704, "Dockerfile": 1523, "HTML": 605} | /** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
package com.algolia.client.model.search
import com.algolia.client.exception.AlgoliaClientException
import com.algolia.client.extensions... | 18 | PHP | 8 | 29 | 199310c30a19436738fba52583b03a97f5121c66 | 2,024 | api-clients-automation | MIT License |
library/src/main/java/com/silverhetch/aura/fingerprint/FingerprintImpl.kt | fossabot | 268,971,220 | false | {"Gradle": 4, "Markdown": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "YAML": 1, "Proguard": 2, "Kotlin": 138, "XML": 41, "Java": 52} | package com.silverhetch.aura.fingerprint
import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.M
import androidx.core.hardware.fingerprint.FingerprintManagerCompat
import com.silverhetch.clotho.storage.Ceres
/**
* Implementation of [Fingerprint]
*/
class FingerprintImpl(private val manager: ... | 9 | Kotlin | 2 | 1 | fb00fe41a2b32dbbd9fcc88d0fcd8d531c9b0638 | 932 | Aura | MIT License |
data/network/src/main/kotlin/com/louisfn/somovie/data/network/ApiServiceFactory.kt | LouisFn | 571,351,948 | false | null | package com.louisfn.somovie.data.network
import com.squareup.moshi.Moshi
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
internal object ApiServiceFactory {
fun create(
baseUrl: String,
okHttpClient: OkHttpClient,
moshi: Moshi,
... | 3 | null | 6 | 23 | 772c90cf46e0056d826344b1f95c559b8101de2d | 866 | SoMovie | MIT License |
ContentProvider/app/src/main/java/com/example/contentapp/contactList/adapter/ContactListAdapter.kt | Flight552 | 353,632,256 | false | null | package com.example.contentapp.contactList.adapter
import androidx.recyclerview.widget.DiffUtil
import com.example.contentapp.data.Contact
import com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
class ContactListAdapter(
onItemClick: (Contact) -> Unit
): AsyncListDifferDelegationAdapter<Conta... | 1 | null | 1 | 1 | ad68645b3c4acd5f0fa8c008457259553ebf859c | 784 | SkillBoxLessons | MIT License |
app/src/main/java/com/test/imagesapp/ui/main/MainActivity.kt | DimaBrody | 308,228,183 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 61, "XML": 29, "Java": 1} | package com.test.imagesapp.ui.main
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.annotation.VisibleForTesting
import androidx.core.view.isGone
import androidx.databinding.DataBindingUtil
import androidx.navigation.NavController
import androidx.navi... | 1 | null | 1 | 1 | 4ce1febe3f32bcdc2514c13a44ccd75f25ba344f | 1,960 | ImagesApp | MIT License |
src/main/fileName/FileCopyOrder.kt | kenz | 313,008,083 | false | null | package main.fileName
import java.io.File
import java.lang.IllegalArgumentException
import java.nio.file.Path
import java.util.*
class FileCopyOrder(originalFile: File) {
/**
* 2 when FOLDER02
*/
private val originalDirectoryNumber: Int
val originalFiles = ArrayList<File>()
init {
v... | 0 | Kotlin | 0 | 0 | 518f416a1fc11221159678bc7fb781b34985be99 | 2,376 | h2n_importer | Apache License 2.0 |
src/test/kotlin/com/msagi/recordtagger/repository/TagTest.kt | msagi | 120,796,580 | false | null | package com.msagi.recordtagger.repository
import org.junit.Assert
import org.junit.Test
class TagTest : RepositoryTest() {
@Test
fun testTagSuccess() {
val recordValue = "recordValue"
var record = repository.addRecord(recordValue)
val tagValue = "tagValue"
val tag = repository... | 0 | Kotlin | 0 | 0 | d7c028664933d58f927654ade9d1713f71ca64c1 | 1,980 | record-tagger | Apache License 2.0 |
data/src/main/java/cn/nekocode/murmur/data/DataLayer.kt | nekocode | 42,351,696 | false | null | /*
* Copyright 2017. nekocode (<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 agr... | 0 | Kotlin | 87 | 456 | ac74f69545844189040c1e9b24c98299aaafa446 | 3,823 | Murmur | Apache License 2.0 |
app/src/main/java/com/keridano/mlkit/barcodescanning/BarcodeScanningModel.kt | kalpasrl | 177,548,433 | false | null | package com.keridano.mlkit.barcodescanning
data class BarcodeScanningModel(val id: Int, val text: String?)
| 0 | Kotlin | 0 | 2 | 835ca04ad0184500f1f55a0d96888d572dbd7f4a | 108 | MLKitGDG | MIT License |
app/src/main/java/com/rogertalk/roger/utils/android/DeviceUUID.kt | rogertalk | 207,123,525 | false | {"C": 1446968, "Kotlin": 1051662, "C++": 79853, "Objective-C": 32032, "Java": 22252, "Makefile": 1047} | package com.rogertalk.roger.utils.android
import android.provider.Settings
import com.rogertalk.roger.utils.extensions.appController
class DeviceUUID {
companion object {
/**
* Get device unique UUID
*/
fun getDeviceUUID(): String? {
try {
return Sett... | 0 | C | 0 | 1 | 55c9922947311d9d8a1e930463b9ac2a1332e006 | 515 | roger-android | MIT License |
ProCat-android/app/src/main/java/vsu/csf/procat/ui/rentinventorylist/RentInventoryListActivity.kt | MikrasovP | 343,069,697 | false | {"Text": 1, "Markdown": 1, "YAML": 2, "INI": 3, "Gradle": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 4, "Batchfile": 1, "Proguard": 2, "XML": 30, "Kotlin": 73, "JSON": 1, "Maven POM": 1, "Dockerfile": 1, "Java": 53} | package vsu.csf.procat.ui.rentinventorylist
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import androidx.activity.result.ActivityResultLauncher
import androidx.activity... | 1 | null | 1 | 1 | f961ff0fc4b9b41fe14d560639a7a22b518117b9 | 3,705 | ProCat | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/wafv2/CfnWebACLResponseInspectionHeaderPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.wafv2
import io.cloudshiftdev.awscdkdsl.common.CdkDslMark... | 12 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 4,630 | awscdk-dsl-kotlin | Apache License 2.0 |
java/com/example/jrp_android/UsersAdapter.kt | ManishS6 | 382,840,855 | false | null | package com.example.jrp_android
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.firebase.ui.firestore.FirestoreRecyclerAdapter
import com.firebase.ui.firestore.FirestoreRecyclerOptions
import kotlinx.android.synthetic... | 0 | Kotlin | 0 | 0 | 049262db4b36863849a1a467642b8503f858a7f5 | 1,712 | jRP-Android | MIT License |
Durian/app/src/main/java/com/example/durian/CloudFunctionsManager.kt | jphacks | 212,724,948 | false | null | package com.example.durian
import android.util.Base64
import android.util.Log
import org.json.JSONArray
import org.json.JSONObject
import java.io.BufferedInputStream
import java.io.BufferedReader
import java.io.IOException
import java.io.OutputStreamWriter
import java.net.HttpURLConnection
import java.net.SocketTimeou... | 0 | Kotlin | 1 | 2 | 942b248b99c03097275044533737f4a1c7a82314 | 5,194 | SD_1903 | MIT License |
kotlin-game/android/app/src/main/java/pl/vot/tomekby/mathGame/domain/SQLite.kt | tomekby | 67,738,692 | false | {"C++": 44271, "Kotlin": 28063, "Python": 16339, "PHP": 4264, "HTML": 3571, "C": 611, "Batchfile": 395} | package pl.vot.tomekby.mathGame.domain
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import org.jetbrains.anko.db.*
class SQLite(ctx: Context) : ManagedSQLiteOpenHelper(ctx, "HighScoreDb", null, 1) {
companion object {
const val HIGH_SCORES_TABLE = "high_scores"
cons... | 0 | C++ | 0 | 0 | 340ef0a1b61f1bf63037525c6f812ca67fb9729e | 1,408 | miscellaneous | MIT License |
app/src/main/kotlin/com/yizhenwind/keeper/ui/character/CharacterViewHolder.kt | WangZhiYao | 658,053,133 | false | {"Kotlin": 91950} | package com.yizhenwind.keeper.ui.character
import com.yizhenwind.keeper.base.BaseViewHolder
import com.yizhenwind.keeper.data.model.Character
import com.yizhenwind.keeper.databinding.ItemCharacterBinding
/**
*
*
* @author WangZhiYao
* @since 2023/6/21
*/
class CharacterViewHolder(
private val binding: ItemCh... | 2 | Kotlin | 0 | 2 | dad282f94c4bfd7a3508ef80dd560559916ae969 | 778 | Keeper | Apache License 2.0 |
app/src/main/java/com/example/notesapp/presentation/MainViewModel.kt | N0stalgiaUltra | 678,424,366 | false | null | package com.example.notesapp.presentation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.notesapp.data.local.database.dao.NoteDao
import com.example.notesapp.data.local.database.model.Note
class MainViewModel(private val dao: NoteDao... | 0 | Kotlin | 0 | 0 | 92a4a0210c4a951fc2cb8f398ea9820aff9ad485 | 866 | NotesApp | Apache License 2.0 |
file-picker/src/main/java/com/github/file_picker/extension/CollectionExt.kt | MajidArabi | 463,530,372 | false | {"Kotlin": 44565} | package com.github.file_picker.extension
/**
* Is valid position in list
*
* @param position
* @return
*/
internal fun List<*>.isValidPosition(position: Int): Boolean {
return if (isNotEmpty()) position in 0 until size else position >= 0
} | 3 | Kotlin | 8 | 57 | 2479edfaaf87d437b12987885a9a7bcf03224c38 | 249 | AndroidFilePicker | Apache License 2.0 |
core-mvi/src/main/java/ru/surfstudio/android/core/mvi/event/hub/EventHub.kt | eltray | 200,101,552 | true | {"Kotlin": 1787549, "Java": 826942, "FreeMarker": 54338, "Groovy": 8823, "C++": 1542, "CMake": 285} | package ru.surfstudio.android.core.mvi.event.hub
import ru.surfstudio.android.core.mvi.event.Event
/**
* Базовый типизированный EventHub.
* Служит для получения и рассылки сообщений, является своеобразной шиной между вью и данными.
*
* @param T тип события, которым типизирован Hub
* @param EventStream ... | 0 | Kotlin | 0 | 0 | 69d435621d90954102af7424b4b309213d9bc95d | 559 | SurfAndroidStandard | Apache License 2.0 |
app/src/main/java/net/hwyz/iov/mp/app/module/my/view/SettingView.kt | hwyzleo | 856,732,945 | false | {"Kotlin": 213230, "Java": 907} | package net.hwyz.iov.mp.app.module.my.view
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Sp... | 0 | Kotlin | 0 | 0 | 6d6a22a9f6031384b62de7b1b383dd9446c6d822 | 4,772 | iov-mp-android-app | MIT License |
src/main/kotlin/no/nav/tms/utbetalingsoversikt/api/config/JsonConfig.kt | navikt | 418,463,132 | false | null | package no.nav.tms.utbetalingsoversikt.api.config
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import kotlinx... | 0 | Kotlin | 0 | 0 | 235bf5482d5dca11dc6018271f81c369da7f844c | 948 | tms-utbetalingsoversikt-api | MIT License |
compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/IrValueDeclaration.kt | damenez | 176,209,431 | true | {"Kotlin": 34311187, "Java": 7464957, "JavaScript": 152998, "HTML": 73765, "Lex": 23159, "IDL": 10758, "ANTLR": 9803, "Shell": 7727, "Groovy": 6893, "Batchfile": 5362, "CSS": 4679, "Objective-C": 182, "Scala": 80} | /*
* Copyright 2010-2018 JetBrains s.r.o. 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.ir.declarations
import org.jetbrains.kotlin.descriptors.ValueDescriptor
import org.jetbrains.kotlin.ir.symbols.IrValueSymbol
i... | 0 | Kotlin | 0 | 2 | 9a2178d96bd736c67ba914b0f595e42d1bba374d | 541 | kotlin | Apache License 2.0 |
app/src/main/kotlin/com/tanyayuferova/lifestylenews/ui/common/FragmnetExtensions.kt | TanyaYu | 114,388,222 | false | {"Kotlin": 91914} | package com.tanyayuferova.lifestylenews.ui.common
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProviders
/**
* Author: <NAME>
* Date: 7/28/2019
*/
inline fun <re... | 1 | Kotlin | 0 | 0 | 2f078d3fa116bee3236104511e5868868d89acc9 | 648 | LifestyleNews | Apache License 2.0 |
camel-idscp2/src/main/kotlin/de/fhg/aisec/ids/camel/idscp2/client/Idscp2ClientProducer.kt | oxisto | 309,993,981 | true | {"Java": 677957, "Kotlin": 386425, "TypeScript": 78495, "HTML": 44870, "Shell": 16896, "CSS": 14035, "Python": 7090, "Handlebars": 5731, "Dockerfile": 4112, "Prolog": 3070, "HCL": 2111, "Harbour": 190} | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 0 | null | 0 | 0 | b6cd5bfa8d6fb1adb14ee15358d0f27220ddd3ab | 2,397 | trusted-connector | Apache License 2.0 |
server/cache/src/main/kotlin/io/rsbox/server/cache/ConfigArchive.kt | qatar-prog | 758,639,769 | false | {"INI": 3, "Gradle Kotlin DSL": 14, "Shell": 1, "Java Properties": 1, "Git Attributes": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 1, "Kotlin": 122, "Java": 546, "XML": 5} | package io.rsbox.server.cache
import io.rsbox.server.cache.config.EnumConfig
import io.rsbox.server.cache.config.ObjectConfig
import io.rsbox.server.cache.config.VarClientConfig
import io.rsbox.server.cache.model.Archive
class ConfigArchive(
val enums: Map<Int, EnumConfig<Any, Any>>,
val varClients: Map<Int, ... | 1 | null | 1 | 1 | 58d6086e3318170a069c9a4985d06e068b853535 | 704 | rsbox | Apache License 2.0 |
app/src/main/java/estimator/kissteam/com/estimatorclient/viewmodel/EstimationViewModel.kt | 301shevchukanton | 125,558,124 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 97, "XML": 29, "Java": 5} | package estimator.kissteam.com.estimatorclient.viewmodel
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import estimator.kissteam.com.estimatorclient.dal.entities.Issue
import estimator.kissteam.com.estimatorclient.dal.entities.Room
import estimator.kissteam.com.estimatorclient.d... | 0 | Kotlin | 0 | 0 | c89dc901c20aaa835be057923b55bfedb004bf44 | 2,650 | EstimatorClient | Apache License 2.0 |
app/src/main/java/com/linecy/dilidili/data/presenter/home/HomePresenter.kt | linecyc | 138,257,601 | false | null | package com.linecy.dilidili.data.presenter.home
import android.text.TextUtils
import com.linecy.dilidili.data.datasource.repository.BannerRepository
import com.linecy.dilidili.data.datasource.repository.CartoonRepository
import com.linecy.dilidili.data.model.Banner
import com.linecy.dilidili.data.model.Cartoon
import ... | 1 | null | 1 | 1 | b80dde7a69282816701b48e8010930f57b1d82cb | 3,283 | Dilidili | Apache License 2.0 |
compiler/testData/codegen/boxInline/invokedynamic/lambdas/crossinlineLambda1.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// LAMBDAS: INDY
// FILE: 1.kt
inline fun cross(crossinline fn: () -> String) : Any =
object {
override fun toString(): String = fn()
}
fun foo(fn: () -> String) = fn()
// FILE: 2.kt
fun box() =
cross {
foo { "OK" }
}.toString() | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 304 | kotlin | Apache License 2.0 |
compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/SpecialComponentImpls.kt | yuexiaodong | 98,856,226 | true | {"Markdown": 40, "Shell": 6, "Batchfile": 10, "Kotlin": 33481, "Java": 5006, "HTML": 343, "JavaScript": 226, "INI": 70, "Java Properties": 15, "Proguard": 7, "CSS": 1, "Gradle Kotlin DSL": 14} | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Java | 0 | 1 | 24865ba26a245b681750a1e9ad8da41a13460cf7 | 1,046 | kotlin | Apache License 2.0 |
app/src/main/java/sfllhkhan95/doodle/projects/utils/ThumbnailInflater.kt | sahwar | 163,662,079 | true | {"Kotlin": 159902, "Java": 14746, "CSS": 86} | package sfllhkhan95.doodle.projects.utils
import android.app.Activity
import android.content.Intent
import android.support.annotation.UiThread
import android.util.DisplayMetrics
import android.view.View
import android.widget.AdapterView
import android.widget.GridView
import android.widget.TextView
import sfllhkhan95.d... | 0 | Kotlin | 0 | 0 | 786e2b8c230778eee15486d8b1bce96cd49ea8df | 3,395 | paint | MIT License |
src/main/kotlin/leetcode/Problem2023.kt | fredyw | 28,460,187 | false | null | package leetcode
/**
* https://leetcode.com/problems/number-of-pairs-of-strings-with-concatenation-equal-to-target/
*/
class Problem2023 {
fun numOfPairs(nums: Array<String>, target: String): Int {
var answer = 0
val map = mutableMapOf<String, Int>()
for (num in nums) {
map[nu... | 1 | null | 1 | 4 | a59d77c4fd00674426a5f4f7b9b009d9b8321d6d | 1,046 | leetcode | MIT License |
app/src/main/java/com/anonymouser/book/view/home/mine/MineFragment.kt | LeLe673893702 | 178,763,822 | false | {"Gradle": 4, "Java Properties": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 2, "XML": 106, "Java": 94, "JSON": 2, "Proguard": 1, "Kotlin": 35} | package com.anonymouser.book.view.home.mine
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import com.anonymouser.book.R
import com.anonymouser.book.bea... | 1 | null | 1 | 1 | 4abbe49ec5fc9ee3bdb93c49a76ef7158d353a67 | 2,622 | FanTuan | Apache License 2.0 |
common/src/main/java/com/bcm/messenger/common/finder/BcmFindData.kt | Era-CyberLabs | 576,196,269 | false | {"Java": 6276144, "Kotlin": 5427066, "HTML": 92928, "C": 30870, "Groovy": 12495, "C++": 6551, "CMake": 2728, "Python": 1600, "AIDL": 1267, "Makefile": 472} | package com.bcm.messenger.common.finder
/**
* bcm.social.01 2019/4/8.
*/
class BcmFindData<T> (val source : T) {
} | 1 | null | 1 | 1 | 65a11e5f009394897ddc08f4252969458454d052 | 118 | cyberland-android | Apache License 2.0 |
photoviewer/src/main/java/com/wanglu/photoviewerlibrary/PhotoViewerPagerAdapter.kt | wangxue | 207,957,594 | true | {"Java": 71072, "Kotlin": 23667} | package com.wanglu.photoviewerlibrary
import android.graphics.Rect
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
class PhotoViewerPagerAdapter(private var mData: ArrayList<String>, fragmentManager: FragmentManager) : FragmentStatePagerAdapter2(fragmentManager) {
lateinit var ... | 0 | Java | 0 | 0 | b90dda52353a8fd9b99bea6a6ef2d042ff921d4e | 1,381 | PhotoViewer | Apache License 2.0 |
app/src/main/java/me/shreyasr/chatse/chat/RoomSearchActivity.kt | surajrao | 151,381,638 | true | {"Gradle": 3, "INI": 1, "Markdown": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Java Properties": 1, "JSON": 1, "Proguard": 1, "Java": 4, "XML": 35, "Kotlin": 24} | package me.shreyasr.chatse.chat
import android.content.Context
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGr... | 0 | Kotlin | 0 | 0 | 3f351bb2dc44c3361934e5c5c7a704b044e18c83 | 2,752 | ChatSE | Apache License 2.0 |
BrastlewarKotlin/app/src/main/java/com/brastlewar/kotlin/ui/StarterActivity.kt | nicolasjafelle | 110,277,397 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Batchfile": 1, "Proguard": 1, "XML": 41, "Kotlin": 30, "Java": 3} | package com.brastlewar.kotlin.ui
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.brastlewar.kotlin.ui.main.MainActivity
/**
* Created by nicolas on 11/7/17.
*/
class StarterActivity : AppCompatActivity() {
override fun onPostCreate(savedInstanceState: Bundle?) {
supe... | 1 | null | 1 | 1 | 766eadf769188258c538fa02243107b171eab50c | 422 | brastlewarkotlin | Apache License 2.0 |
server/src/main/kotlin/commands/CheatCodes.kt | jaydenmilne | 165,130,222 | false | {"Text": 1, "Ignore List": 3, "Markdown": 12, "YAML": 2, "Maven POM": 1, "Dockerfile": 2, "XML": 3, "Kotlin": 37, "Java": 1, "JSON with Comments": 3, "JSON": 6, "Browserslist": 1, "EditorConfig": 1, "HTML": 20, "SCSS": 19, "JavaScript": 2, "SVG": 47} | package commands
import models.*
class DebugHelpCommand : INormalServerCommand {
override val command = DEBUG_HELP
private val action = ""
override fun execute(user: User) {
parseCommand(user)
}
private fun parseCommand(user: User) {
val first = action.split(' ')[0]
when (... | 11 | null | 11 | 1 | 29e1d056ec02757bc1725fbbe843e9ef4ffdd004 | 6,136 | CS340 | MIT License |
extract-code.kts | patternfly-java | 223,204,918 | false | {"Java": 275282, "CSS": 17039, "Shell": 11056, "JavaScript": 3709, "Kotlin": 1550, "HTML": 1058} | #!/usr/bin/env kotlin
import kotlin.io.path.*
data class CodeBlock(val name: String, val code: List<String>)
fun CodeBlock.writeToFile() {
println("Write code block $name")
targetPath.div("${name}.java").apply {
deleteIfExists()
createFile()
appendText(code.joinToString("\n"))
}
}... | 1 | null | 1 | 1 | 43bce1e822248e5889b9901eb6d22818f857153f | 1,550 | showcase | Apache License 2.0 |
app/src/main/java/cn/cqautotest/sunnybeach/ui/adapter/UserArticleAdapter.kt | ForSlippers | 533,830,162 | true | {"Java Properties": 1, "Gradle": 18, "Markdown": 2, "Shell": 1, "Batchfile": 1, "Text": 1, "JSON": 6, "Ignore List": 3, "XML": 541, "Java": 194, "Proguard": 8, "Kotlin": 474, "INI": 2, "SVG": 9, "HTML": 1} | package cn.cqautotest.sunnybeach.ui.adapter
import android.annotation.SuppressLint
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.RecyclerView
import cn.cqautotest.sunnybeach.databinding.ArticleList... | 0 | null | 0 | 0 | a6a062299e57b4ad8a62f986980f3cffae173178 | 4,043 | SunnyBeach | Apache License 2.0 |
app/src/main/java/com/finalhints/mymandirdemo/view/ui/base/BaseFragment.kt | Bhumik | 151,705,167 | false | {"Gradle": 3, "Java Properties": 2, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "XML": 58, "Java": 8, "Kotlin": 42} | package com.finalhints.mymandirdemo.view.ui.base
import android.widget.Toast
import androidx.fragment.app.Fragment
open class BaseFragment : Fragment() {
protected fun showError(message: String) {
}
fun toast(msg: String) {
Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show()
}
}
| 1 | null | 1 | 1 | 10c0f454a1064ac57e73c762dafe0ba23bf2956b | 314 | FeedSample | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/upload/history/model/LogUpload.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.bugreporting.debuglog.upload.history.model
import com.fasterxml.jackson.annotation.JsonProperty
import java.time.Instant
data class LogUpload(
@JsonProperty("id") val id: String,
@JsonProperty("uploadedAt") val uploadedAt: Instant
)
| 6 | null | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 272 | cwa-app-android | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/upload/history/model/LogUpload.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.bugreporting.debuglog.upload.history.model
import com.fasterxml.jackson.annotation.JsonProperty
import java.time.Instant
data class LogUpload(
@JsonProperty("id") val id: String,
@JsonProperty("uploadedAt") val uploadedAt: Instant
)
| 6 | null | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 272 | cwa-app-android | Apache License 2.0 |
app/src/main/java/com/capan/truefalse/domain/datasource/QuestionsRemoteDataSourceImpl.kt | Colibri91 | 532,779,054 | false | null | package com.capan.truefalse.domain.datasource
import com.capan.truefalse.data.questions.Question
import com.capan.truefalse.data.questions.QuestionApiModel
import com.capan.truefalse.data.questions.toModel
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.goo... | 0 | Kotlin | 0 | 0 | 0f2e15a1febde9f828ee9f884bc0c72b229e75ad | 1,679 | TrueFalseGameWithComposeAndStateFlow | Apache License 2.0 |
src/commonMain/kotlin/baaahs/plugin/core/FixtureInfo.kt | baaahs | 174,897,412 | false | null | package baaahs.plugin.core
import baaahs.geom.EulerAngle
import baaahs.geom.Matrix4F
import baaahs.geom.Vector3F
import baaahs.geom.identity
import baaahs.gl.GlContext
import baaahs.gl.data.EngineFeedContext
import baaahs.gl.data.FeedContext
import baaahs.gl.data.ProgramFeedContext
import baaahs.gl.glsl.GlslProgram
im... | 113 | null | 13 | 40 | e895b295f951668acdce0371b791e0316a633da6 | 4,048 | sparklemotion | MIT License |
app/src/main/java/com/emirli/eatup/ui/favorite/FavoriteFragment.kt | esraemirli | 397,526,323 | false | null | package com.emirli.eatup.ui.favorite
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.Lin... | 0 | Kotlin | 0 | 1 | 0f9abe3108c0cc172e2d9f5f5a8f25b075bfe2e4 | 3,270 | EatUpApp | MIT License |
app/src/main/java/com/suellen/colangelo/notes/data/model/NoteEntity.kt | SuellenAc | 638,717,392 | false | null | package com.suellen.colangelo.notes.data.model
data class NoteEntity(
val id: String,
val title: String,
val description: String,
)
| 0 | Kotlin | 0 | 0 | c215b2c08e7118317a79d1f4fa95075f0dd0de5a | 145 | SimpleNotesApp | Apache License 2.0 |
src/main/kotlin/no/nav/helse/flex/ObjectMapper.kt | navikt | 633,422,156 | false | {"Kotlin": 45761, "Dockerfile": 267} | package no.nav.helse.flex
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.registerKotlinModul... | 1 | Kotlin | 1 | 1 | aeba61341f2704b0d81610a0386db85feb567e73 | 666 | flexjar-backend | MIT License |
app/src/main/java/com/bronski/moviesearch/ui/view/fragment/MovieFragment.kt | kirillbronski | 531,269,937 | false | null | package com.bronski.moviesearch.ui.view.fragment
import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
impo... | 0 | Kotlin | 0 | 0 | 713d1b4b170132779443d9cadd7e23a04025b69e | 4,346 | MovieSearch | MIT License |
src/main/kotlin/com/raglic/ark2mail/dao/CreateForwardDao.kt | pdahlberg | 121,530,324 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 4, "Kotlin": 36, "HTML": 1, "JavaScript": 1, "SQL": 2, "Java": 1} | package com.raglic.ark2mail.dao
data class CreateForwardDao(
val senderName: String?,
val returnAddress: String?,
val receiver: String,
val amount: Double
//val timeout: Long, // IAP?
) | 0 | Kotlin | 0 | 0 | 40fda9946527f1de0f06ed22194ab19c5c70e784 | 234 | ark2mail | MIT License |
kcrud-employee/src/main/kotlin/kcrud/domain/employee/routing/endpoints/get/Search.kt | perracodex | 682,128,013 | false | {"Kotlin": 609849, "JavaScript": 28920, "CSS": 12484, "HTML": 5862, "Dockerfile": 3127, "Java": 1017} | /*
* Copyright (c) 2024-Present Perracodex. Use of this source code is governed by an MIT license.
*/
package kcrud.domain.employee.routing.endpoints.get
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import kcr... | 0 | Kotlin | 0 | 2 | 8e3dfb9beb72b9dac24e36dc35f5fe60fd1bab2d | 1,185 | Kcrud | MIT License |
src/main/kotlin/io/youngwon/cms/common/exception/ErrorResponse.kt | youngwonseo | 591,927,757 | false | null | package io.youngwon.cms.common.exception
data class ErrorResponse(
val code: Int,
val message: String,
)
| 0 | Kotlin | 0 | 0 | ffc75d76131f89ab24263d9a6aaef8d17febaf24 | 114 | tiny-cms | MIT License |
Frontend/app/src/main/java/wep/app/emilioenlaluna/notesapp/screens/EditNoteScreen.kt | emilioenlaluna | 788,792,545 | false | {"Kotlin": 29537, "JavaScript": 16560} | package wep.app.emilioenlaluna.notesapp.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import and... | 0 | Kotlin | 0 | 0 | 7253d4d48cb4cea3bab78ff69068029dde363eda | 3,163 | Softserve-Demo-2 | MIT License |
passwordvalidator/src/test/java/sergio/sastre/multiplying/quality/of/unittests/passwordvalidator/BrokenStrongPasswordValidator.kt | sergio-sastre | 370,679,468 | false | null | package sergio.sastre.multiplying.quality.of.unittests.passwordvalidator
import sergio.sastre.multiplying.quality.of.unittests.passwordvalidator.model.validators.*
import sergio.sastre.multiplying.quality.of.unittests.passwordvalidator.model.validators.broken.ContainsUpperCaseLetterValidator
class BrokenStrongPasswor... | 1 | Kotlin | 0 | 6 | 5292e7d8fbabbf5a0dc4185073b8784374fb42fd | 572 | Multiplying_the_quality_of_unit_tests | MIT License |
AndroidKotlinDemo/app/src/main/java/com/yueban/androidkotlindemo/demo/paging/ui/SearchRepositoriesViewModel.kt | yueban | 27,426,345 | false | null | package com.yueban.androidkotlindemo.demo.paging.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import androidx.paging.PagedList
import com.yueban.androidkotlindemo.demo.paging.data.GithubRepository
import co... | 0 | Java | 4 | 16 | 9ff75adc009aadedba4d05850af8a7748afbb6e2 | 1,620 | AndroidExercise | Apache License 2.0 |
constraintlayout/compose/src/androidTest/java/androidx/constraintlayout/compose/FlowTest.kt | androidx | 212,409,034 | 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... | 83 | null | 164 | 986 | de916779a3065bd23e21f9180bf6af62468b5518 | 9,198 | constraintlayout | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.