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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kotlinx-coroutines-core/js/src/JSDispatcher.kt | hltj | 151,721,407 | false | null | /*
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines
import kotlinx.coroutines.internal.*
import org.w3c.dom.*
import kotlin.coroutines.*
import kotlin.js.Promise
private const val MAX_DELAY = Int.MAX_VALUE.toLong()
private fun dela... | 294 | null | 99 | 255 | 9565dc2d1bc33056dd4321f9f74da085e6c0f39e | 5,388 | kotlinx.coroutines-cn | Apache License 2.0 |
app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostView.kt | vitorpamplona | 587,850,619 | false | null | package com.vitorpamplona.amethyst.ui.actions
import android.widget.Toast
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.rememberScrollState
... | 103 | null | 81 | 647 | eff07bfb1e85b79d9d40f49e866eed24e8853bd0 | 13,685 | amethyst | MIT License |
common/src/main/kotlin/com/possible_triangle/skygrid/xml/resources/DimensionConfigs.kt | PssbleTrngle | 174,212,271 | false | null | package com.possible_triangle.skygrid.xml.resources
import com.possible_triangle.skygrid.api.extensions.flat
import com.possible_triangle.skygrid.api.xml.elements.DimensionConfig
import com.possible_triangle.skygrid.api.xml.elements.ListWrapper
import com.possible_triangle.skygrid.api.xml.elements.providers.SingleBloc... | 3 | Kotlin | 1 | 11 | 6c61b498fe53a2107187c1b8d6a2c3cc30ab1bc6 | 1,832 | Skygrid | Creative Commons Zero v1.0 Universal |
app/src/main/java/org/stepik/android/view/auth/ui/activity/SocialAuthActivity.kt | StepicOrg | 42,045,161 | false | null | package org.stepik.android.view.auth.ui.activity
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.text.Spannable
import android.text.SpannableString
import androidx.activity.viewModels
import androidx.core.content.res.ResourcesCompat
impor... | 13 | null | 57 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 14,820 | stepik-android | Apache License 2.0 |
src/main/kotlin/edu/ort/tuguia/core/category/domain/CategoryController.kt | ort-tuguia | 480,584,853 | false | null | package edu.ort.tuguia.core.category.domain
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.Parameter
import io.swagger.v3.oas.annotations.tags.Tag
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.*
import javax.validation.Valid
@Tag(name = ... | 0 | Kotlin | 0 | 1 | 52cbddaf0946b7fcab0cec642415164621148881 | 2,217 | tuguia-api | MIT License |
app/src/main/java/io/minimaltools/task/presentation/feature/home/HomeUiState.kt | mtndrms | 740,058,198 | false | {"Kotlin": 86733} | package io.minimaltools.task.presentation.feature.home
import io.minimaltools.task.data.local.entity.task.Task
data class HomeUiState(
val tasks: List<Task> = emptyList(),
val shouldDisplayPinnedTaskSnackbar: Boolean = false,
var startDate: Long? = null,
var endDate: Long? = null
)
| 0 | Kotlin | 0 | 0 | 425d09dc8f62fdf83f04772324bfb3da4b04f64c | 301 | Task | The Unlicense |
src/app/src/main/java/com/helper/idealist/ui/activities/MainMenuActivity.kt | UIdealist | 658,037,641 | false | {"Kotlin": 86984} | package com.helper.idealist.ui.activities
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.runtime.Composable
import androidx.compose.material.icons.filled.Build
import androidx.compose.material.icons.f... | 0 | Kotlin | 0 | 0 | a06dfc5d94f592a65f20a963fade211ae05569cc | 6,684 | UIdealist-Mobile | Apache License 2.0 |
urist-access-logger/src/main/kotlin/org/dv/urist/AccessLogger.kt | dominic-jones | 264,772,105 | false | {"Shell": 1, "Maven POM": 3, "JSON": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Kotlin": 5, "INI": 1, "Java": 1, "YAML": 1, "XML": 2} | package org.dv.urist
import org.slf4j.LoggerFactory
import org.springframework.http.HttpHeaders.REFERER
import org.springframework.http.HttpHeaders.USER_AGENT
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse
class AccessLogger(
private val uristApplicationProperties: ... | 8 | null | 1 | 1 | 4b394e362cc58fea4b28523e626e42473906f177 | 1,067 | urist | Apache License 2.0 |
app/src/main/kotlin/com/peecock/ymusic/extensions/games/pacman/models/EnemyMovementModel.kt | geekeie | 852,991,746 | false | {"Kotlin": 3810622, "Batchfile": 445} | package com.peecock.ymusic.extensions.games.pacman.models
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.geometry.Offset
data class EnemyMovementModel (
val redEnemyMovement: MutableState<Offset> = mutableStateOf(Offset(0F, 0F)),
val oran... | 0 | Kotlin | 0 | 0 | bcc8e691579ea2c6f04e9287e45056e9fb85c532 | 392 | YMusic | Apache License 2.0 |
kudos-compiler/src/main/java/com/kanyun/kudos/compiler/options/Option.kt | kanyun-inc | 696,169,460 | false | {"Kotlin": 185284, "Java": 67470} | /*
* Copyright (C) 2023 Kanyun, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 0 | Kotlin | 2 | 55 | 6c514dcf31302c6186f634a5b13337247298d35b | 2,762 | Kudos | Apache License 2.0 |
kool-core/src/commonMain/kotlin/de/fabmax/kool/scene/TriangulatedLineMesh.kt | kool-engine | 81,503,047 | false | {"Kotlin": 5929566, "C++": 3256, "CMake": 1870, "HTML": 1464, "JavaScript": 597} | package de.fabmax.kool.scene
import de.fabmax.kool.KoolSystem
import de.fabmax.kool.math.MutableVec2f
import de.fabmax.kool.math.MutableVec3f
import de.fabmax.kool.math.Vec3f
import de.fabmax.kool.math.spatial.BoundingBoxF
import de.fabmax.kool.modules.ksl.KslShader
import de.fabmax.kool.modules.ksl.KslUnlitShader
imp... | 9 | Kotlin | 20 | 303 | 8d05acd3e72ff2fc115d0939bf021a5f421469a5 | 14,082 | kool | Apache License 2.0 |
src/main/kotlin/crackers/kobots/buttonboard/environment/OutsideState.kt | EAGrahamJr | 647,347,853 | false | {"Kotlin": 40849, "Python": 2618, "Shell": 1111} | /*
* Copyright 2022-2023 by <NAME>, Jr.
*
* 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... | 0 | Kotlin | 0 | 0 | 9b983ea68f09dab1c670ad55bdbd79ff14001262 | 3,050 | kobots-buttonboard | Apache License 2.0 |
libs/hello-libs/hello-chatbot/src/jsMain/kotlin/com/bkahlert/hello/chatbot/ui.kt | bkahlert | 439,967,726 | false | {"Kotlin": 1721426, "CSS": 20318, "JavaScript": 11584, "Shell": 6384, "HTML": 2857, "SCSS": 588} | package com.bkahlert.hello.chatbot
import com.aallam.openai.api.chat.ChatMessage
import com.aallam.openai.api.chat.ChatRole
import com.bkahlert.hello.chat.chat
import com.bkahlert.hello.chat.chatMessage
import com.bkahlert.hello.fritz2.ContentBuilder
import com.bkahlert.hello.fritz2.srOnly
import com.bkahlert.hello.ic... | 0 | Kotlin | 0 | 0 | 92e60b7eb9a74cfa957e05e3bf9e59f3ce3a582d | 3,573 | hello | MIT License |
core/src/main/kotlin/org/hyrical/hcf/staff/StaffModeManager.kt | Hyrical | 597,847,737 | false | {"Kotlin": 323471, "Java": 30373} | package org.hyrical.hcf.staff
import org.hyrical.hcf.staff.bukkit.BukkitModModeHook
/**
* Class created on 7/8/2023
* @author 98ping
* @project HCF
* @website https://solo.to/redis
*/
object StaffModeManager {
lateinit var activeHook: StaffModeHook
fun enable() {
//more to come using popular as... | 13 | Kotlin | 0 | 3 | 74a1512f3af2db591bcd233d2012e4dbded10e8a | 417 | HCF | MIT License |
core/src/main/java/com/extcode/project/core/domain/usecase/MovieAppUseCase.kt | Adithya-13 | 325,655,269 | false | null | package com.extcode.project.core.domain.usecase
import com.extcode.project.core.data.Resource
import com.extcode.project.core.domain.model.Movie
import kotlinx.coroutines.flow.Flow
interface MovieAppUseCase {
fun getAllMovies(sort: String): Flow<Resource<List<Movie>>>
fun getAllTvShows(sort: String): Flow<R... | 0 | Kotlin | 8 | 21 | 1ba47f421412f6a26cf31c6b60b88feb883fe38b | 641 | MadeSubmsission | MIT License |
kronos/src/test/java/com/hananrh/kronos/constraint/BlacklistConstraintTest.kt | hananrh | 288,522,556 | false | {"Kotlin": 106265} | package com.hananrh.kronos.constraint
import com.hananrh.kronos.common.kronosTest
import com.hananrh.kronos.common.mapConfig
import com.hananrh.kronos.common.withRemoteMap
import com.hananrh.kronos.config.FeatureRemoteConfig
import com.hananrh.kronos.config.constraint.blacklist
import com.hananrh.kronos.config.type.in... | 0 | Kotlin | 0 | 0 | b8757b4affcecae66613256f5ae3d32e12e7b773 | 1,041 | kronos | MIT License |
app/src/main/java/com/adversegecko3/twittergeckoui/ui/screens/NotificationsScreen.kt | Rviewer-Challenges | 498,879,781 | false | {"Kotlin": 102440} | package com.adversegecko3.twittergeckoui.ui.screens
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundati... | 0 | Kotlin | 1 | 0 | fcc13c2bfc8ad6e3b74779b2616926b93cf5677e | 3,324 | V7MtVULv0ExadsvYF4eh | MIT License |
widgets/src/androidMain/kotlin/dev/icerock/moko/widgets/core/screen/ShowAlertExt.kt | icerockdev | 218,209,603 | false | null | /*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.widgets.screen
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.os.Parcelable
import androidx.appcompat.app.AlertDialog
import androidx.frag... | 40 | Kotlin | 29 | 334 | 63ea65d622f702432a5b5d1f587ba0fb8a81f95e | 4,969 | moko-widgets | Apache License 2.0 |
mock-interceptor/src/main/kotlin/com/gustafah/android/mockinterceptor/MockInterceptor.kt | gustafah | 353,819,198 | false | null | package com.gustafah.android.mockinterceptor
import androidx.appcompat.app.AppCompatActivity
import com.gustafah.android.mockinterceptor.MockUtils.JSON_FIELD_DEFAULT
import com.gustafah.android.mockinterceptor.MockUtils.JSON_FIELD_REFERENCE
import com.gustafah.android.mockinterceptor.MockUtils.JSON_FIELD_SAVED_DATA
im... | 0 | Kotlin | 1 | 5 | 1423aa2ee67fd287952d5dbe22fe2d3a68b0686d | 4,504 | mock-interceptor | Apache License 2.0 |
app/src/main/java/com/skyyo/template/application/persistance/room/cats/CatsDao.kt | Skyyo | 408,838,169 | false | {"Kotlin": 60413} | package com.skyyo.template.application.persistance.room.cats
import androidx.room.*
import com.skyyo.template.application.models.local.Cat
import kotlinx.coroutines.flow.Flow
@Dao
interface CatsDao {
@Transaction
suspend fun deleteAndInsertCats(cats: List<Cat>) {
deleteCats()
insertCats(cats)... | 0 | Kotlin | 1 | 4 | 7075f867384212f00408e945b7116b002169f9ad | 735 | android-compose-template | MIT License |
src/main/kotlin/moe/gensoukyo/gui/event/EventListener.kt | MineCraftGensoukyo | 402,519,776 | false | {"Kotlin": 107155} | package moe.gensoukyo.gui.event
import me.wuxie.wakeshow.wakeshow.api.WuxieAPI
import me.wuxie.wakeshow.wakeshow.api.event.PlayerCloseScreenEvent
import me.wuxie.wakeshow.wakeshow.api.event.PlayerOpenScreenEvent
import me.wuxie.wakeshow.wakeshow.api.event.PlayerPostClickComponentEvent
import me.wuxie.wakeshow.wakeshow... | 0 | Kotlin | 0 | 1 | e3958024f765ac13ef385e545cf80279d4c42e0e | 8,360 | MCGUserGUI | MIT License |
glata/src/main/java/com/yalantis/glata/core/model/IndexBuffer.kt | Yalantis | 165,843,008 | false | null | package com.yalantis.glata.core.model
import android.opengl.GLES20
import com.yalantis.glata.util.Logger
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.ShortBuffer
/**
* A wrapper class for ShortBuffer to use this as Vertex Buffer Object (VBO) for indices. We could
* use IntBuffer but we will ... | 1 | Kotlin | 13 | 83 | f022e7348afb381ac567ff6954164ef47438edf1 | 3,282 | GLata | The Unlicense |
src/main/kotlin/no/nav/familie/ba/infotrygd/feed/service/InfotrygdFeedService.kt | navikt | 262,985,502 | false | null | package no.nav.familie.ba.infotrygd.feed.service
import no.nav.familie.ba.infotrygd.feed.database.Feed
import no.nav.familie.ba.infotrygd.feed.database.FeedRepository
import no.nav.familie.ba.infotrygd.feed.rest.dto.Type
import org.springframework.data.domain.PageRequest
import org.springframework.stereotype.Service
i... | 7 | null | 1 | 2 | 7eec07c8bbe19b79aa1468f871fd685522fc44ff | 1,479 | familie-ba-infotrygd-feed | MIT License |
tiny-event-sourcing-app/src/main/kotlin/ru/quipy/projectDemo/config/ProjectDemoConfig.kt | andrsuh | 498,475,206 | false | {"Kotlin": 420728, "PLpgSQL": 1840, "Dockerfile": 242} | package ru.quipy.projectDemo.config
import org.slf4j.LoggerFactory
import ru.quipy.application.component.Component
import ru.quipy.core.AggregateRegistry
import ru.quipy.core.EventSourcingServiceFactory
import ru.quipy.projectDemo.api.ProjectAggregate
import ru.quipy.projectDemo.logic.ProjectAggregateState
import ru.q... | 13 | Kotlin | 17 | 34 | 880796f04bb6e27aab615c8efccd709d5ca22193 | 1,530 | tiny-event-sourcing | Apache License 2.0 |
app/src/main/java/com/moegirlviewer/util/cachedWebViews.kt | koharubiyori | 449,942,456 | false | null | package com.moegirlviewer.util
import android.webkit.WebView
import androidx.compose.runtime.*
private typealias CachedWebViewMapContainer = MutableMap<String, WebView>
val LocalCachedWebViews = staticCompositionLocalOf<CachedWebViewsConsumer> { error("LocalCachedWebViews缺少提供者!") }
class CachedWebViews {
private ... | 1 | Kotlin | 5 | 16 | e09753e76c11932d6f7344302d48f7a214cccf3a | 1,980 | Moegirl-plus-native | MIT License |
app/src/main/java/com/jonnyhsia/memories/router/Params.kt | jonnyhsia | 180,696,112 | false | null | package com.jonnyhsia.memories.router
object Params {
const val STORY_ID = "id"
} | 1 | null | 1 | 2 | c161f153bb9065274aaf03bff7c688fbdd4d7f96 | 86 | Memories | MIT License |
app/src/main/kotlin/de/digitalService/useID/ui/screens/error/IdentificationCardUnreadable.kt | digitalservicebund | 486,188,046 | false | null | package de.digitalService.useID.ui.screens.error
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import androidx.core.content.ContextCompat
import androidx.hilt.navigation.compose.hiltViewMod... | 2 | Kotlin | 2 | 5 | bfb1bea70b827563f80ff9828439de37197a431f | 2,361 | useid-app-android | MIT License |
app/src/main/kotlin/clazz/im/clazz/ui/SlideOnlyActivity.kt | anthony0982 | 228,839,889 | false | null | package im.clazz.ui
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorManager
import android.os.Bundle
import android.os.Handler
import com.halo.base.BaseActivity
import com.halo.util.ActivityUtil
import im.clazz.R
import im.clazz.extension.onClick
import im.clazz.extension.ti... | 0 | Kotlin | 0 | 0 | 2002843248f81ec3d35dddee41c426d8f7b95111 | 4,368 | android-auto-adapt-framework | MIT License |
app/src/main/kotlin/clazz/im/clazz/ui/SlideOnlyActivity.kt | anthony0982 | 228,839,889 | false | null | package im.clazz.ui
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorManager
import android.os.Bundle
import android.os.Handler
import com.halo.base.BaseActivity
import com.halo.util.ActivityUtil
import im.clazz.R
import im.clazz.extension.onClick
import im.clazz.extension.ti... | 0 | Kotlin | 0 | 0 | 2002843248f81ec3d35dddee41c426d8f7b95111 | 4,368 | android-auto-adapt-framework | MIT License |
backend.native/tests/runtime/basic/empty_substring.kt | nakijun | 91,489,155 | true | {"Markdown": 14, "Git Config": 1, "Gradle": 22, "Java Properties": 5, "Shell": 13, "Ignore List": 1, "Batchfile": 1, "XML": 12, "Kotlin": 4177, "C": 24, "Makefile": 1, "Text": 69, "Java": 2, "Protocol Buffer": 2, "C++": 25, "Groovy": 6, "INI": 6, "OpenStep Property List": 1} | fun main(args : Array<String>) {
val hello = "Hello world"
println(hello.subSequence(1, 1).toString())
} | 0 | Kotlin | 0 | 0 | a4eceb3e3acf4863ca85c258d657504d7d6a73f0 | 112 | kotlin-native | Apache License 2.0 |
app/src/main/java/com/stanroy/playground/ui/common/ModifierExtensions.kt | stanroy | 635,905,679 | false | null | package com.stanroy.playground.ui.common
import androidx.compose.foundation.layout.padding
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
val windowHorizontalSpacing = 24.dp
val windowVerticalSpacing = 24.dp
val Modifier.defaultHorizontalPadding: Modifier
get() = this.padding(horizontal =... | 0 | Kotlin | 0 | 0 | 8913e7db389b0c716902a308694498177c8b6cdd | 593 | compose-playground | Apache License 2.0 |
backend/src/test/kotlin/ch/zhaw/pm4/simonsays/factory/IngredientFactory.kt | SimonSays-PM4 | 766,576,264 | false | {"Kotlin": 471832, "TypeScript": 405650, "JavaScript": 1971, "CSS": 1791, "Dockerfile": 1104, "HTML": 462} | package ch.zhaw.pm4.simonsays.factory
import ch.zhaw.pm4.simonsays.entity.Event
import ch.zhaw.pm4.simonsays.entity.Ingredient
import ch.zhaw.pm4.simonsays.repository.IngredientRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
@Component
class Ing... | 16 | Kotlin | 0 | 5 | dfa6cf15770ae0749ca5062b3610c5d5da79ba07 | 829 | simon-says | MIT License |
backend/src/test/kotlin/ch/zhaw/pm4/simonsays/factory/IngredientFactory.kt | SimonSays-PM4 | 766,576,264 | false | {"Kotlin": 471832, "TypeScript": 405650, "JavaScript": 1971, "CSS": 1791, "Dockerfile": 1104, "HTML": 462} | package ch.zhaw.pm4.simonsays.factory
import ch.zhaw.pm4.simonsays.entity.Event
import ch.zhaw.pm4.simonsays.entity.Ingredient
import ch.zhaw.pm4.simonsays.repository.IngredientRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
@Component
class Ing... | 16 | Kotlin | 0 | 5 | dfa6cf15770ae0749ca5062b3610c5d5da79ba07 | 829 | simon-says | MIT License |
app/src/main/java/hu/mostoha/mobile/android/huki/ui/home/gpx/GpxDetailsBottomSheetDialog.kt | RolandMostoha | 386,949,428 | false | null | package hu.mostoha.mobile.android.huki.ui.home.gpx
import android.os.Handler
import android.os.Looper
import hu.mostoha.mobile.android.huki.R
import hu.mostoha.mobile.android.huki.databinding.LayoutBottomSheetGpxDetailsBinding
import hu.mostoha.mobile.android.huki.extensions.resolve
import hu.mostoha.mobile.android.hu... | 0 | Kotlin | 1 | 4 | 296bcd8baca32a743d9d326f19bf8cd85cae7a7f | 2,525 | HuKi-Android | The Unlicense |
service/src/main/kotlin/nl/pvanassen/sensorhub/app/service/SensorReceivedService.kt | pvanassen | 340,315,997 | false | null | package nl.pvanassen.sensorhub.app.service
import nl.pvanassen.sensorhub.app.client.DomoticsClient
import nl.pvanassen.sensorhub.app.client.StatsdClient
import nl.pvanassen.sensorhub.app.model.NamedSensor
import nl.pvanassen.sensorhub.app.model.SensorId
import reactor.core.publisher.Flux
import reactor.core.publisher.... | 0 | Kotlin | 0 | 0 | 9413d86ab1eacd5f597a8dd81d92c7942366a760 | 1,447 | sensorhub | Apache License 2.0 |
console-framework-client/src/main/java/io/axoniq/console/framework/client/ClientSettingsService.kt | AxonIQ | 682,516,729 | false | {"Kotlin": 152634, "Java": 24388} | package io.axoniq.console.framework.client
import io.axoniq.console.framework.api.ClientSettings
import java.util.concurrent.CopyOnWriteArrayList
/**
* Service that holds the client settings. See [ClientSettingsObserver] for more information.
*/
class ClientSettingsService {
private val observers = CopyOnWriteA... | 1 | Kotlin | 0 | 0 | c9a425a129c3595a25dd5713343a5248019ea8f1 | 949 | console-framework-client | Apache License 2.0 |
ExamplesKotlin/FragmentStaticLayout/app/src/main/java/course/examples/fragments/staticlayout/TitlesFragment.kt | aporter | 15,648,899 | false | null | package course.examples.fragments.staticlayout
import android.content.Context
import android.os.Bundle
import android.support.v4.app.ListFragment
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.Li... | 65 | null | 5469 | 4,289 | 157373885fbfa18b83fa97cd46f6a003905970ea | 3,633 | coursera-android | MIT License |
observable/src/commonTest/kotlin/world/phantasmal/observable/ObservableTests.kt | DaanVandenBosch | 189,066,992 | false | null | package world.phantasmal.observable
import kotlin.test.Test
import kotlin.test.assertEquals
/**
* Test suite for all [Observable] implementations. There is a subclass of this suite for every
* [Observable] implementation.
*/
interface ObservableTests : DependencyTests {
override fun createProvider(): Provider
... | 1 | Kotlin | 5 | 17 | 89ea739c65fda32cda1caaf159cad022469e2663 | 1,260 | phantasmal-world | MIT License |
domain/src/main/kotlin/no/nav/su/se/bakover/domain/vilkår/uføre/LeggTilUførevurderingerRequest.kt | navikt | 227,366,088 | false | {"Kotlin": 10063999, "Shell": 4388, "TSQL": 1233, "Dockerfile": 1209} | package no.nav.su.se.bakover.domain.vilkår.uføre
import arrow.core.Either
import arrow.core.Nel
import arrow.core.getOrElse
import arrow.core.left
import no.nav.su.se.bakover.common.domain.BehandlingsId
import no.nav.su.se.bakover.common.tid.periode.Periode
import vilkår.uføre.domain.UføreVilkår
import java.time.Clock... | 6 | Kotlin | 1 | 1 | fbeb1614c40e0f6fce631d4beb1ba25e2f78ddda | 3,368 | su-se-bakover | MIT License |
src/main/kotlin/com/openuniquesolution/ResumeBuilder/model/model.kt | Ayushnita | 331,679,023 | false | null | package com.openuniquesolution.ResumeBuilder.model
import java.time.LocalDate
import java.util.*
data class Skill(val type: String, val skillName: String, val ratting: Float)
data class AreaOfInterests(val areaOfInterests: MutableList<String>){
fun addInterest(interest: String){
this.areaOfInterests.add(... | 0 | Kotlin | 0 | 0 | ba022ee810472fdc973cecadabeaeb6ff30a5088 | 1,760 | Resume_Builder_Kotlin | MIT License |
app/src/main/kotlin/com/jpb/libchecker/ui/app/CheckPackageOnResumingActivity.kt | jpbandroid | 471,680,216 | false | null | package com.jpb.libchecker.ui.app
import androidx.viewbinding.ViewBinding
import com.jpb.libchecker.base.BaseActivity
import com.jpb.libchecker.constant.Constants
import com.jpb.libchecker.utils.PackageUtils
abstract class CheckPackageOnResumingActivity<VB : ViewBinding> : BaseActivity<VB>() {
abstract fun requireP... | 24 | null | 126 | 2 | bba40d6aeea213790841db54c5f657b738a8f0c6 | 803 | LibChecker | Apache License 2.0 |
app/src/main/java/com/github/malitsplus/pandaemonium/MainActivity.kt | MalitsPlus | 507,558,801 | false | {"Kotlin": 9143, "Java": 4210} | package com.github.malitsplus.pandaemonium
import android.os.Bundle
import com.google.android.material.snackbar.Snackbar
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.WindowCompat
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.... | 0 | Kotlin | 0 | 0 | 813e03a0e82e53e487f6ca7a4276aaec0b5954a9 | 2,724 | Pandaemonium | Do What The F*ck You Want To Public License |
android/src/main/kotlin/com/hiennv/flutter_callkit_incoming/CallkitSoundPlayerService.kt | hiennguyen92 | 410,387,374 | false | null | package com.hiennv.flutter_callkit_incoming
import android.annotation.SuppressLint
import android.app.Service
import android.content.Context
import android.content.Intent
import android.content.res.AssetFileDescriptor
import android.media.AudioAttributes
import android.media.AudioManager
import android.media.MediaPlay... | 65 | null | 31 | 99 | c44da3b5083fb9986e31f39631769ccfa8fdc9ce | 5,658 | flutter_callkit_incoming | MIT License |
src/test/resources/projForTest/src/formatting/indentInWhenEntry.kt | javatlacati | 92,708,152 | true | {"Text": 2, "Maven POM": 1, "Ignore List": 1, "Markdown": 1, "Java": 93, "Kotlin": 355, "Ant Build System": 1, "Java Properties": 7, "XML": 8, "HTML": 20} | package formatting
fun a() {
when (1) {
is Int {
println()
}
}
} | 0 | Kotlin | 0 | 2 | d24a0fd982df001cd5bb3c7364567ee7503e5b17 | 97 | kotlin-netbeans | Apache License 2.0 |
app/src/main/java/com/king/template/api/ApiService.kt | jenly1314 | 248,971,077 | false | null | package com.king.template.api
import com.king.template.bean.Bean
import com.king.template.bean.Result
import retrofit2.Call
import retrofit2.http.*
/**
* @author <a href="mailto:jenly1314@gmail.com">Jenly</a>
*/
@JvmSuppressWildcards
interface ApiService {
@GET("api/getRequest")
fun getRequest(@Header("to... | 1 | Kotlin | 7 | 17 | f1ffdc6d55c936141a385a18740d2f53269b2c49 | 1,125 | AppTemplate | MIT License |
app/src/main/java/com/drs/dseller/DSellerActivity.kt | raaja-sn | 704,140,729 | false | {"Kotlin": 149967} | package com.drs.dseller
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
... | 0 | Kotlin | 0 | 0 | 6fa26d3c90205bcf31fa8aebba26b3659799fbda | 4,264 | DSeller-Android | MIT License |
application/module/module_person/src/main/java/afkt_replace/module/person/data/api/PersonAPI.kt | afkT | 343,177,221 | false | null | package afkt_replace.module.person.data.api
import afkt_replace.core.app.AppContext
import afkt_replace.core.lib.network.HttpCoreUtils
import afkt_replace.module.person.BuildConfig
import dev.DevHttpManager
import dev.environment.DevEnvironment
import dev.http.manager.RetrofitBuilder
import dev.http.manager.RetrofitOp... | 2 | null | 17 | 72 | 710033ee53928e30f8dc7b37aacdbde7283a7841 | 3,708 | DevComponent | Apache License 2.0 |
typescript-kotlin/src/jsMain/kotlin/typescript/CustomTransformers.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
package typescript
sealed external interface CustomTransformers {
/** Custom transformers to evaluate before built-in .js transformations. */
var before: Any? /* (TransformerFactory<SourceFile> | CustomTransformerFactory)[] */
/** Custom transformers to evaluat... | 38 | null | 7 | 31 | 79f2034ed9610e4416dfde5b70a0ff06f88210b5 | 642 | types-kotlin | Apache License 2.0 |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/serenitea_pot/furniture/FurnitureMakeCancelRsp.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.serenitea_pot.furniture
import org.anime_game_servers.core.base.Version.GI_1_5_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.pro... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 582 | anime-game-multi-proto | MIT License |
pandora/src/main/java/com/lodz/android/pandora/mvvm/base/fragment/BaseSandwichVmFragment.kt | LZ9 | 137,967,291 | false | {"Kotlin": 2174504} | package com.lodz.android.pandora.mvvm.base.fragment
import android.view.View
import androidx.lifecycle.Observer
import com.lodz.android.corekt.anko.toastLong
import com.lodz.android.corekt.anko.toastShort
import com.lodz.android.pandora.base.fragment.BaseSandwichFragment
import com.lodz.android.pandora.mvvm.vm.BaseSan... | 0 | Kotlin | 3 | 11 | 088adccfefef3578437df48ed114fc0eb142d3f3 | 1,942 | AgileDevKt | Apache License 2.0 |
app/src/main/java/co/candyhouse/app/NfcHandler.kt | CANDY-HOUSE | 280,844,064 | false | {"Kotlin": 675713, "Shell": 406} | package co.candyhouse.app
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.nfc.NdefMessage
import android.nfc.NdefRecord
import android.nfc.NfcAdapter
import android.nfc.Tag
import android.nfc.tech.Ndef
import android.nfc.tech.NdefFormatable
import an... | 14 | Kotlin | 11 | 24 | e1cf834bc30b619751566542034079ee45239ba5 | 4,145 | SesameSDK_Android_with_DemoApp | MIT License |
platform/platform-api/src/com/intellij/ui/tabs/newImpl/JBDefaultTabPainter.kt | lots0logs | 177,212,454 | false | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.tabs.newImpl
import com.intellij.ui.paint.LinePainter2D
import com.intellij.ui.tabs.JBTabPainter
import com.intellij.ui.tabs.JBTabsPosition
import com.int... | 1 | null | 1 | 1 | c31c45f8094cfeeaba61d797b39374d2946f3273 | 2,666 | intellij-community | Apache License 2.0 |
src/main/kotlin/com/msg/gcms/domain/user/presentaion/data/response/UserResponseDto.kt | GSM-MSG | 592,816,374 | false | null | package com.msg.gcms.domain.user.presentaion.data.response
import com.msg.gcms.domain.club.enums.ClubType
import java.util.*
data class UserResponseDto(
val uuid: UUID,
val email: String,
val name: String,
val grade: Int,
val classNum: Int,
val number: Int,
val profileImg: String?,
val... | 8 | null | 0 | 8 | 6337a7a10921145e043162c8703a29aed6cadb44 | 488 | GCMS-BackEnd | MIT License |
src/main/kotlin/com/salesforce/revoman/internal/json/factories/CaseInsensitiveEnumAdapter.kt | salesforce-misc | 677,000,343 | false | {"Kotlin": 113938, "Java": 41724, "HTML": 772, "Starlark": 283} | /**
* ************************************************************************************************
* Copyright (c) 2023, Salesforce, Inc. All rights reserved. SPDX-License-Identifier: Apache License
* Version 2.0 For full license text, see the LICENSE file in the repo root or
* http://www.apache.org/licenses/LI... | 9 | Kotlin | 5 | 6 | b871b1bbc64b9cf9a66997d3203e9dc30484029b | 2,301 | ReVoman | Apache License 2.0 |
lib/src/main/java/com/kirkbushman/araw/models/WikiPage.kt | KirkBushman | 182,531,355 | false | null | package com.kirkbushman.araw.models
import android.os.Parcelable
import com.kirkbushman.araw.http.base.EnvelopeKind
import com.kirkbushman.araw.utils.MILLIS
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize
import java.util.*
@JsonClass(generateAdapter = true)
@Parc... | 9 | null | 9 | 84 | aeae071fa8d2a4e378de4a71420dc2a9792591f3 | 1,060 | ARAW | MIT License |
src/en/flixscans/src/eu/kanade/tachiyomi/extension/en/flixscans/FlixScansNet.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6409055, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.en.flixscans
import eu.kanade.tachiyomi.multisrc.flixscans.FlixScans
class FlixScansNet : FlixScans(
"Flix Scans",
"https://flixscans.org",
"en",
"https://flixscans.site/api/v1",
)
| 8 | Kotlin | 2 | 19 | 88bafd3e5fb05cd4690fc46e4a7d624a2595e7f3 | 237 | komikku-extensions | Apache License 2.0 |
app/src/main/kotlin/app/seen/SeenFragment.kt | anirudh8860 | 144,851,679 | true | {"Kotlin": 257579, "Shell": 5304, "IDL": 1080} | package app.seen
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.FrameLayout
internal class SeenFragment : Fragment() {
override fun o... | 0 | Kotlin | 0 | 1 | ba8ead38f5bcefc857a6dc9cc344cd030ca5b22d | 660 | dinger | MIT License |
library/src/test/java/com/github/gfx/static_gson/KotlinGracefulFailureTest.kt | topeterhonz | 92,335,584 | true | {"Gradle": 6, "Markdown": 3, "Shell": 1, "Ignore List": 4, "Batchfile": 1, "Makefile": 1, "YAML": 1, "Java Properties": 2, "Proguard": 2, "Java": 42, "Kotlin": 6, "XML": 9} | package com.github.gfx.static_gson
import com.github.gfx.static_gson.annotation.JsonSerializable
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import org.hamcrest.CoreMatchers
import org.hamcrest.CoreMatchers.*
import org.hamcrest.Matcher
import org.hamcrest.MatcherAssert.assertThat
import org.json.JS... | 0 | Java | 0 | 0 | a09a500ae68d10dca5610a7ada19f04290489e7f | 36,501 | StaticGson | Apache License 2.0 |
app/src/main/java/com/example/tracker/WaterDatabase.kt | Dcar0803 | 794,890,008 | false | {"Kotlin": 12529} | package com.example.tracker
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [WaterEntry::class], version = 1)
abstract class WaterDatabase : RoomDatabase() {
abstract fun waterEntryDao(): WaterEntryDao
companion obj... | 0 | Kotlin | 0 | 0 | d6260b56dd779d5a1ea5ee59fb63750f4e30f6fb | 918 | Tracker | Apache License 2.0 |
bindings/gtk/gtk4/src/nativeMain/kotlin/org/gtkkn/bindings/gtk/ButtonsType.kt | gtk-kn | 609,191,895 | false | {"Kotlin": 10448515, "Shell": 2740} | // This is a generated file. Do not modify.
package org.gtkkn.bindings.gtk
import org.gtkkn.native.gtk.GtkButtonsType
import org.gtkkn.native.gtk.GtkButtonsType.GTK_BUTTONS_CANCEL
import org.gtkkn.native.gtk.GtkButtonsType.GTK_BUTTONS_CLOSE
import org.gtkkn.native.gtk.GtkButtonsType.GTK_BUTTONS_NONE
import org.gtkkn.n... | 0 | Kotlin | 0 | 13 | c033c245f1501134c5b9b46212cd153c61f7efea | 1,865 | gtk-kn | Creative Commons Attribution 4.0 International |
matrix/src/main/java/com/github/ch8n/matrix/matrix.kt | ch8n | 557,463,156 | false | null | package com.github.ch8n.matrix
import java.util.function.Consumer
/***
* Fixed array doesn't have ability to add or remove elements
* it can only set and get data from array
*/
interface MatrixOperations<T> : Iterable<T> {
val rowsCount: Int
val columnsCount: Int
fun rows(row: Int): Array<T>
fun c... | 0 | Kotlin | 0 | 1 | caddad1d31de1b49cc6c1e606d161b0639988be7 | 2,837 | DataStructureKT | Adobe Glyph List License |
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtPsiTypeProvider.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78943108, "Java": 6823266, "Swift": 4063298, "C": 2609288, "C++": 1970234, "Objective-C++": 171723, "JavaScript": 138329, "Python": 59488, "Shell": 32312, "TypeScript": 22800, "Objective-C": 22132, "Lex": 21352, "Groovy": 17400, "Batchfile": 11748, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9857, "EJS": 5241... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.api.components
import com.intellij.psi.PsiElement
import com.intellij.p... | 180 | Kotlin | 5642 | 48,082 | 2742b94d9f4dbdb1064e65e05682cb2b0badf2fc | 3,902 | kotlin | Apache License 2.0 |
rxdownload3/src/main/java/zlc/season/rxdownload3/helper/HttpUtil.kt | dalmif | 205,262,339 | false | null | package zlc.season.rxdownload3.helper
import okhttp3.internal.http.HttpHeaders
import retrofit2.Response
import java.util.regex.Pattern
fun isChunked(response: Response<*>): Boolean {
return "chunked" == transferEncoding(response)
}
fun isSupportRange(resp: Response<*>): Boolean {
if (!resp.isSuccessful) {
... | 1 | null | 1 | 2 | fd6ccfc144008a145aba6a37bcc1d045a2ba0c93 | 2,347 | RxDownload | Apache License 2.0 |
hideout-core/src/main/kotlin/dev/usbharu/hideout/core/config/FlywayConfig.kt | usbharu | 627,026,893 | false | {"Kotlin": 1314674, "Mustache": 111758, "HTML": 22697, "Dockerfile": 121} | /*
* Copyright (C) 2024 usbharu
*
* 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... | 18 | Kotlin | 0 | 13 | 32483abfe0e8e0458b5339887489c31bb62ad111 | 1,060 | Hideout | Apache License 2.0 |
src/main/kotlin/dev/vini2003/hammer/common/timer/Timer.kt | vini2003 | 377,156,946 | false | null | package dev.vini2003.hammer.common.timer
class Timer(private val totalDuration: Long) {
private var remainingDuration: Long = totalDuration
private val action: (() -> Unit)? = null
fun update() {
if (remainingDuration > 0) {
remainingDuration -= 1
} else {
action?.invoke()
remainingDuration = t... | 0 | Kotlin | 1 | 0 | ddba2a06ae75a6f30b2c08ba46c249281841c1a9 | 397 | Blade | MIT License |
src/main/kotlin/ar/edu/unq/modelo/Admin.kt | CristianGonzalez1980 | 340,727,280 | false | {"HTML": 1029458, "Kotlin": 208151, "JavaScript": 63660, "Gherkin": 25692, "CSS": 4371} | package ar.edu.unq.modelo
class Admin : ModelObjectWithBsonId {
var userName : String = ""
var password : String = ""
constructor()
constructor(
userName: String,
password: String
) {
this.userName = userName
this.password = <PASSWORD>
}
// override fun... | 0 | HTML | 0 | 0 | 92ff7629378d46529905f73a79bd40dca1ba7fbc | 400 | sietelotos-bk | The Unlicense |
app/src/main/java/com/muratozturk/breakingbad/domain/use_case/character_list/GetCharactersUseCase.kt | muratozturk5 | 559,985,666 | false | {"Kotlin": 36465} | package com.muratozturk.breakingbad.domain.use_case.character_list
import com.muratozturk.breakingbad.domain.repository.BreakingBadRepository
import javax.inject.Inject
class GetCharactersUseCase @Inject constructor(
private val repository: BreakingBadRepository
) {
suspend operator fun invoke() = repository... | 0 | Kotlin | 3 | 13 | e36da837b61e5f849e8d17252960382248124785 | 339 | Breaking-Bad | MIT License |
fragment/fragment/src/androidTest/java/androidx/fragment/app/SafeTransactionInOnResumeTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2018 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... | 8 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 2,824 | androidx | Apache License 2.0 |
key-manager-grpc/src/main/kotlin/br/com/zup/edu/chavePix/cadastraChavePix/ChavePixExtension.kt | Werliney | 385,941,758 | true | {"Kotlin": 57013} | package br.com.zup.edu.chavePix.cadastraChavePix
import br.com.zup.edu.CadastraChavePixRequest
import br.com.zup.edu.chavePix.TipoChaveData
import br.com.zup.edu.chavePix.TipoContaData
fun CadastraChavePixRequest.toModel(): ChavePixRequest {
return ChavePixRequest(
idCliente = idCliente,
tipoChave ... | 0 | Kotlin | 0 | 0 | 6fe67ad78624a4ff11756160c0e5408fd40388bb | 459 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/com/bejussi/tipcalculator/presentation/history/HistoryViewModel.kt | Bejussi | 624,548,452 | false | null | package com.bejussi.tipcalculator.presentation.history
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.bejussi.tipcalculator.R
import com.bejussi.tipcalculator.core.StringResourcesProvider
import com.bejussi.tipcalculator.domain.tip.TipRepository
import com.bejussi.tipcalculator... | 0 | Kotlin | 0 | 0 | d8a3571ac452ad5886da744d2d5af7788c7aee82 | 2,673 | TipCalculator | MIT License |
client/src/main/kotlin/io/github/matrixkt/models/events/contents/room/TopicContent.kt | bitcard | 286,144,032 | true | {"Kotlin": 792100} | package io.github.matrixkt.models.events.contents.room
import io.github.matrixkt.models.events.contents.Content
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* A topic is a short message detailing what is currently being discussed in the room.
* It can also be used as a way t... | 0 | null | 0 | 0 | ce8a51bf838cf4793814e9148991edc1bb93808f | 652 | matrix-kt | Apache License 2.0 |
Estudos Kotlin/src/main/kotlin/estudos/challenges/ParkingChallenge.kt | estherwl | 468,801,558 | false | {"Kotlin": 22413} | package estudos.challenges
/* You are making a car parking software that needs to calculate and output the amount due
based on the number of hours the car was parked.
The fee is calculated based on the following price structure:
- the first 5 hours are billed at $1 per hour.
- after that, each hour is billed at $0.5 p... | 0 | Kotlin | 0 | 0 | e1ef5929ead72240a13bf59dd5cbe6f935b2645e | 920 | Estudos-Kotlin | MIT License |
plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererServiceTest.kt | aws | 91,485,909 | false | null | // Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.codewhisperer
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.ui.popup.JBPopup
import com.intellij.psi.PsiFile
impor... | 519 | null | 220 | 757 | a81caf64a293b59056cef3f8a6f1c977be46937e | 10,192 | aws-toolkit-jetbrains | Apache License 2.0 |
HW1/app/src/main/java/com/example/hw1_template/TaskItem.kt | abbyoutsider | 787,688,802 | false | {"Kotlin": 18881} | package com.example.hw1_template
import java.io.Serializable
// TaskItem: Represents the data structure for a task in your to-do list.
// IMPORTANT: This class must be well-defined; it's the blueprint for your task data.
// Add more fields as necessary, like dueDate, priority, etc.
data class TaskItem(
val id: In... | 0 | Kotlin | 0 | 0 | cbc411a820e292740e723021b54fa761a063ff3b | 514 | kotlin | MIT License |
src/main/kotlin/org/jdc/template/datasource/database/main/individual/Individual.kt | lethalskillzz | 115,807,551 | true | {"Kotlin": 114049, "Java": 3829} | package org.jdc.template.datasource.database.main.individual
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
import org.jdc.template.datasource.database.main.type.IndividualType
import org.threeten.bp.LocalDate
import org.threeten.bp.LocalDateTime
import org.threeten.bp.Loca... | 0 | Kotlin | 0 | 1 | fb19980f455eefb957ae12d40b53baadc3729f38 | 955 | android-template | Apache License 2.0 |
detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/extensions/CustomDetektReport.kt | niraj8 | 272,693,530 | true | {"Kotlin": 1852830, "HTML": 4183, "Groovy": 2423} | package io.gitlab.arturbosch.detekt.extensions
import io.gitlab.arturbosch.detekt.internal.fileProperty
import org.gradle.api.Project
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.provider.Property
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.OutputFile
import java.io.File
c... | 0 | Kotlin | 0 | 1 | 8536e848ec2d4470c970442a8ea4579937b4b2d8 | 929 | detekt | Apache License 2.0 |
app/src/main/java/com/diegomalone/bookgoals/ui/progress/ProgressActivity.kt | diegomalone | 117,601,360 | false | null | package com.diegomalone.bookgoals.ui.progress
import android.os.Bundle
import com.diegomalone.bookgoals.R
import com.diegomalone.bookgoals.base.BaseActivity
import com.diegomalone.bookgoals.data.model.Book
import com.diegomalone.bookgoals.extension.appComponent
import timber.log.Timber
import javax.inject.Inject
/**
... | 0 | Kotlin | 0 | 0 | 3e41aee8ce1c301fa527558d21d81d3892c048a1 | 854 | KBookReadingGoals | Apache License 2.0 |
fashion-network/src/main/kotlin/com/aiuta/fashionsdk/network/internal/plugins/ApiKeyAuthenticationPlugin.kt | aiuta-com | 759,918,511 | false | {"Kotlin": 644828, "Shell": 1462} | package com.aiuta.fashionsdk.network.internal.plugins
import io.ktor.client.plugins.auth.Auth
import io.ktor.client.plugins.auth.AuthProvider
import io.ktor.client.request.HttpRequestBuilder
import io.ktor.client.request.header
import io.ktor.http.auth.HttpAuthHeader
internal fun Auth.apiKey(block: ApiKeyAuthConfig.(... | 6 | Kotlin | 0 | 2 | 083f49b99e8b701ec134e56cf5f8e098cede04c2 | 1,579 | android-sdk | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/CircleDashed.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,273 | icons | MIT License |
app/src/main/java/dev/jianastrero/composefireworks/ext/DrawScope.kt | jianastrero | 739,001,715 | false | {"Kotlin": 26344} | package dev.jianastrero.composefireworks.ext
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.graphics.drawscope.Stroke
import androidx.compose.ui.unit.dp
fun DrawScope.drawStar(color: Color, size: ... | 0 | Kotlin | 0 | 0 | ab5e0dd13c48ddb64ab42db84f4494f9099f0054 | 2,993 | compose-fireworks | MIT License |
documentscanner/src/main/java/com/websitebeaver/documentscanner/extensions/Bitmap.kt | WebsiteBeaver | 475,597,305 | false | null | package com.detectdocument.extensions
import android.graphics.Bitmap
import android.util.Base64
import java.io.ByteArrayOutputStream
import android.os.Environment
import java.io.File
import java.io.FileOutputStream
import kotlin.math.sqrt
/**
* This converts the bitmap to base64
*
* @return image as a base64 strin... | 9 | null | 38 | 47 | 58d58d576e5570c5391aee4a15cef6e793672a57 | 1,317 | android-document-scanner | The Unlicense |
src/main/kotlin/glm_/vec4/Vec4us.kt | kotlin-graphics | 71,653,021 | false | null | package glm_.vec4
import glm_.*
import glm_.vec1.Vec1bool
import glm_.vec1.Vec1t
import glm_.vec2.Vec2bool
import glm_.vec2.Vec2t
import glm_.vec2.Vec2us
import glm_.vec3.Vec3bool
import glm_.vec3.Vec3t
import glm_.vec3.Vec3us
import glm_.vec4.operators.vec4us_operators
import kool.*
import unsigned.Ushort
import unsi... | 7 | null | 19 | 99 | dcbdd6237fbc5af02722b8ea1b404a93ce38a043 | 43,585 | glm | MIT License |
app/src/main/java/com/jm/androidmvvmproject/viewmodel/ListViewModel.kt | JonathanMoreno14 | 191,068,968 | false | null | package com.jm.androidmvvmproject.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.jm.androidmvvmproject.di.DaggerApiComponent
import com.jm.androidmvvmproject.model.Quotes
import com.jm.androidmvvmproject.model.QuotesService
import io.reactivex.android.schedulers.Andr... | 0 | Kotlin | 1 | 0 | f18eea2bcfb782d55a1e4d00537f769cf2b5a2a3 | 1,784 | Android-MVVM-App | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/makerecalldecisionapi/domain/makerecalldecisions/recommendation/BookRecallToPpud.kt | ministryofjustice | 478,614,213 | false | {"Kotlin": 1418654, "Shell": 18492, "Mustache": 1801, "Dockerfile": 1124, "Ruby": 229} | package uk.gov.justice.digital.hmpps.makerecalldecisionapi.domain.makerecalldecisions.recommendation
import uk.gov.justice.digital.hmpps.makerecalldecisionapi.domain.makerecalldecisions.PpudUser
import java.time.LocalDate
import java.time.LocalDateTime
data class BookRecallToPpud(
val decisionDateTime: LocalDateTim... | 4 | Kotlin | 1 | 1 | a9c8c47f6b385bc1f1e2f7b207eb114c6c5dd94d | 1,431 | make-recall-decision-api | MIT License |
app/src/main/java/sample/jetpack/compose/ui/theme/Theme.kt | ritwikjamuar | 643,342,278 | false | null | package sample.jetpack.compose.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import android... | 0 | Kotlin | 0 | 0 | 7762ecc71f91ffb5789dd353610036c02aba3bef | 2,148 | ComposeSample | MIT License |
sentry-samples/kmp-app-mvvm-di/shared/src/commonMain/kotlin/sentry.kmp.demo/models/AuthenticationViewModel.kt | getsentry | 285,502,515 | false | {"Kotlin": 222417, "Objective-C": 33107, "Swift": 8383, "Shell": 6517, "Ruby": 6435, "Makefile": 1717, "C": 1239} | package sentry.kmp.demo.models
import io.sentry.kotlin.multiplatform.Sentry
import io.sentry.kotlin.multiplatform.SentryLevel
import io.sentry.kotlin.multiplatform.protocol.Breadcrumb
class LoginException(message: String) : Exception(message)
class AuthenticationViewModel : ViewModel() {
fun login(withError: Bo... | 24 | Kotlin | 19 | 97 | a42d02cb266274fa4417a29363d8eaa59701f290 | 1,074 | sentry-kotlin-multiplatform | MIT License |
scientific/src/commonMain/kotlin/unit/AngularAcceleration.kt | splendo | 191,371,940 | false | null | /*
Copyright 2021 Splendo Consulting B.V. The Netherlands
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 ap... | 91 | Kotlin | 3 | 93 | cd0f3a583efb69464aa020d206f598c6d15a0899 | 1,906 | kaluga | Apache License 2.0 |
core/src/main/kotlin/voodoo/forge/ForgeUtil.kt | codewizard0 | 170,712,177 | true | {"Kotlin": 438883, "Shell": 5361, "Ruby": 73} | package voodoo.forge
import com.github.kittinunf.fuel.core.extensions.cUrlString
import com.github.kittinunf.fuel.coroutines.awaitObjectResponseResult
import com.github.kittinunf.fuel.httpGet
import com.github.kittinunf.fuel.serialization.kotlinxDeserializerOf
import com.github.kittinunf.result.Result
import kotlinx.c... | 0 | Kotlin | 0 | 0 | b12be54b1802250830070ba8db9538175f8ae7e2 | 4,560 | Voodoo | MIT License |
data/src/main/java/com/yveschiong/data/mappers/PersonDataEntityMapper.kt | yveschiong | 155,301,951 | false | {"Gradle": 6, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 4, "XML": 51, "Kotlin": 106, "INI": 1, "JSON": 2} | package com.yveschiong.data.mappers
import com.yveschiong.data.entities.PersonData
import com.yveschiong.domain.common.Mapper
import com.yveschiong.domain.entities.PersonEntity
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class PersonDataEntityMapper @Inject
constructor() : Mapper<PersonData, P... | 0 | Kotlin | 0 | 0 | 0fcef969c37db162b4eebbaa974a2d950a12cfec | 525 | personal-record-book | Apache License 2.0 |
data/src/main/java/com/yveschiong/data/mappers/PersonDataEntityMapper.kt | yveschiong | 155,301,951 | false | {"Gradle": 6, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 4, "XML": 51, "Kotlin": 106, "INI": 1, "JSON": 2} | package com.yveschiong.data.mappers
import com.yveschiong.data.entities.PersonData
import com.yveschiong.domain.common.Mapper
import com.yveschiong.domain.entities.PersonEntity
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class PersonDataEntityMapper @Inject
constructor() : Mapper<PersonData, P... | 0 | Kotlin | 0 | 0 | 0fcef969c37db162b4eebbaa974a2d950a12cfec | 525 | personal-record-book | Apache License 2.0 |
daggercore/src/main/java/com/worldsnas/daggercore/DaggerExtensions.kt | worldsnas | 178,716,293 | false | null | package com.worldsnas.daggercore
import android.app.Activity
import android.content.Context
import android.view.View
import com.worldsnas.daggercore.lifecycle.LifecycleComponent
import com.worldsnas.daggercore.lifecycle.LifecycleComponentProvider
fun View.coreComponent(): CoreComponent =
context.coreComponent()
... | 15 | null | 8 | 57 | c7d084d2cf2c4f9486337fe347d5d6b8b5806e0a | 874 | AIO | Apache License 2.0 |
gradle/gradle-idea/src/org/jetbrains/kotlin/idea/scripting/gradle/importing/KotlinDslScriptModelResolverCommon.kt | JetBrains | 278,369,660 | false | null | // 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 org.jetbrains.kotlin.idea.gradle.scripting.importing
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.externalSystem.util.Orde... | 191 | null | 4372 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 1,371 | intellij-kotlin | Apache License 2.0 |
Logger/app/src/main/java/com/mazaiting/logger/MainApplication.kt | mazaiting | 141,557,021 | false | {"Java": 7986, "Kotlin": 944} | package com.mazaiting.logger
import android.app.Application
import com.mazaiting.log.L
/**
* 应用入口
* Created by mazaiting on 2018/7/19.
*/
class MainApplication : Application() {
override fun onCreate() {
super.onCreate()
// L.setProp(BuildConfig.DEBUG, "MainActivity")
L.setDebug(BuildConfig.DEBUG)
}... | 1 | null | 1 | 1 | 835bc5d6546a3bddf5b8f75af59d1c66e05fc9ec | 322 | Log | Apache License 2.0 |
calendar/day21/Day21.kt | rocketraman | 726,025,416 | false | {"Kotlin": 45660} | package day21
import Day
import Lines
class Day21 : Day() {
override fun part1(input: Lines): Any {
TODO("Not yet solved")
}
override fun part2(input: Lines): Any {
TODO("Not yet solved")
}
}
| 3 | Kotlin | 0 | 0 | ca9db0df821f410b8edd7200918b40cc61daba06 | 211 | template-advent-of-kotlin | Apache License 2.0 |
FluentUI.Demo/src/androidTest/java/com/microsoft/fluentuidemo/demos/V2TabBarActivityUITest.kt | microsoft | 257,221,908 | false | null | package com.microsoft.fluentuidemo.demos
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.printToLog
import com.microsoft.fluentuidemo.BaseTest
import org.junit.Before
import org.junit.Test
class V2TabBarActivityUITest : BaseTest() {
@Befo... | 43 | null | 92 | 574 | 851a4989a4fce5db50a1818aa4121538c1fb4ad9 | 1,521 | fluentui-android | MIT License |
src/test/kotlin/com/glancebar/apiboilerplate/controller/RoleControllerTest.kt | yisen-cai | 321,651,755 | false | null | package com.glancebar.apiboilerplate.controller
import com.glancebar.apiboilerplate.service.RoleService
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
import org.springframework.boot.tes... | 1 | Kotlin | 0 | 1 | beb48202163b6bd39001661969a2a640bc359734 | 1,685 | api-boilerplate | Apache License 2.0 |
app/src/main/java/com/example/friendzone/common/top_bar/TopBar.kt | mohitdamke | 839,901,877 | false | {"Kotlin": 310975} | package com.example.friendzone.common.top_bar
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.material3.TopAppBar
import androidx.compose.material3.TopAppBarColors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Co... | 0 | Kotlin | 0 | 2 | 6d016f16d12b5a037c30ced93ade4d1c72c36295 | 1,050 | FriendZone-App | MIT License |
ktls-dsl/lang/src/main/kotlin/io/kotless/dsl/app/events/EventsStorage.kt | rdhuri | 230,230,718 | true | {"Kotlin": 223802} | package io.kotless.dsl.app.events
import io.kotless.ScheduledEventType
import io.kotless.dsl.lang.event.Scheduled
import io.kotless.dsl.reflection.ReflectionScanner
import org.slf4j.LoggerFactory
import java.lang.reflect.Method
import kotlin.math.absoluteValue
import kotlin.reflect.KFunction
import kotlin.reflect.full... | 0 | null | 0 | 0 | f294759c73a3bed5a411c0e3e027e7a02d86e201 | 1,869 | kotless | Apache License 2.0 |
src/main/kotlin/bewis09/bewisclient/screen/MainOptionsScreen.kt | Bewis09 | 755,277,240 | false | {"Kotlin": 207736, "Java": 77040} | package bewis09.bewisclient.screen
import bewis09.bewisclient.Bewisclient
import bewis09.bewisclient.drawable.MainOptionsElement
import bewis09.bewisclient.drawable.UsableTexturedButtonWidget
import bewis09.bewisclient.mixin.ScreenMixin
import bewis09.bewisclient.screen.elements.ElementList
import bewis09.bewisclient.... | 7 | Kotlin | 1 | 0 | 7a6cb7774e709d1593358658c553a2e4926a7a0c | 14,931 | Bewisclient-2 | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/oguzdogdu/wallieshd/presentation/downloadphoto/DownloadPhotoFragment.kt | oguzsout | 616,912,430 | false | {"Kotlin": 369442} | package com.oguzdogdu.wallieshd.presentation.downloadphoto
import android.widget.Toast
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.navArgs
import com.oguzdogdu.wallieshd.R
import com.oguzdogdu.wallieshd.core.BaseBottomSheetDialogFragment
import com.oguzdogdu.wallieshd.databinding.Fragme... | 0 | Kotlin | 0 | 8 | e6f899f32c4e914fc9e585c28f7d54bfd05398fd | 2,864 | Wallies | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.