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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/miguel/rucoyapi/presentation/controllers/equipmentController.kt | MiguelJeronimo | 705,820,521 | false | {"Kotlin": 147497, "Dockerfile": 869} | package com.miguel.rucoyapi.controllers
import com.miguel.rucoyapi.model.responses
import com.miguel.rucoyapi.repository.Repository
import org.apache.coyote.Response
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.Logger
import org.springframework.http.ResponseEntity
import org.springframewo... | 0 | Kotlin | 0 | 0 | c05ea4415138a2c6b032f9576079b2b7d955f0d0 | 1,398 | rucoy-api | MIT License |
app/src/main/java/com/github/kacso/androidcommons/viewmodel/SplashViewModel.kt | kacso | 204,923,341 | false | {"Gradle": 16, "Java Properties": 2, "Shell": 1, "Text": 4, "Ignore List": 13, "Batchfile": 1, "Markdown": 616, "Kotlin": 181, "XML": 69, "INI": 8, "Proguard": 9, "Java": 1} | package com.github.kacso.androidcommons.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.github.kacso.androidcommons.core.BaseApplication
import com.github.kacso.androidcommons.core.livedata.SingleLiveEvent
import com.github.kacso.androidcommons.core.mvvm.viewmodels.Base... | 0 | Kotlin | 1 | 5 | 9620f80428f4b00a8b683f4e94294e9e64c85b99 | 1,788 | android-commons | Apache License 2.0 |
src/main/kotlin/helper/ProcessChainLogFileAppender.kt | steep-wms | 237,438,539 | false | {"Kotlin": 1547323, "JavaScript": 233382, "SCSS": 38483, "Shell": 1830, "Dockerfile": 1598, "PLpgSQL": 1198} | package helper
import agent.LocalAgent
import ch.qos.logback.core.FileAppender
import java.nio.file.Paths
/**
* A logback appender that writes process chain logs into a file. The filename
* is calculated based on the name of a process chain logger, which should
* contain the process chain ID.
* @author Michel Kra... | 37 | Kotlin | 5 | 38 | ca85be66f339b08aee50319a7245810f760f6933 | 1,574 | steep | Apache License 2.0 |
squash-postgres/src/org/jetbrains/squash/dialects/postgres/PgDialect.kt | Krotki | 101,491,647 | true | {"Kotlin": 213958} | package org.jetbrains.squash.dialects.postgres
import org.jetbrains.squash.definition.*
import org.jetbrains.squash.dialect.*
import org.jetbrains.squash.expressions.*
object PgDialect : BaseSQLDialect("Postgres") {
override val definition: DefinitionSQLDialect = object : BaseDefinitionSQLDialect(this) {
... | 0 | Kotlin | 0 | 0 | 375b1751135d5f80ee689ae74eb5d50fee7723a3 | 2,541 | squash | Apache License 2.0 |
maestro-client/src/main/java/maestro/debuglog/IOSDriverLogger.kt | mobile-dev-inc | 476,427,476 | false | {"Kotlin": 1019730, "TypeScript": 199278, "Swift": 58814, "JavaScript": 16308, "Shell": 11312, "CSS": 2349, "Smarty": 904, "HTML": 358} | package maestro.debuglog
import maestro.logger.Logger
import org.slf4j.LoggerFactory
class IOSDriverLogger(val clazz: Class<*>) : Logger {
override fun info(message: String) {
LoggerFactory.getLogger(clazz).info(message)
loggerFor(clazz).info(message)
}
companion object {
private... | 334 | Kotlin | 255 | 5,634 | 463275b29decc509bdf312f5037688f67f0ae485 | 633 | maestro | Apache License 2.0 |
src/main/kotlin/com/arch/temp/view/CheckTemplateDialog.kt | Louco11 | 354,872,120 | false | null | package com.arch.temp.view
import com.arch.temp.model.MainClassJson
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.ui.components.JBRadioButton
import com.intellij.ui.layout.panel
import javax.swing.JComponent
class CheckTemplateDialog(
private val para... | 0 | Kotlin | 2 | 3 | b543a69a58988233763a3586cac11660def4f893 | 1,091 | Group-File-Template-GFT | The Unlicense |
xenoglot-locale/src/commonTest/kotlin/dev/teogor/xenoglot/locale/XenoglotLocaleTest.kt | teogor | 718,087,802 | false | {"Kotlin": 1614676} | /*
* Copyright 2024 teogor (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | Kotlin | 0 | 6 | 48dddb213920f7cc1d19d2ea34a61948a633dc38 | 4,181 | xenoglot | Apache License 2.0 |
features/dashboard/src/main/java/rio/arj/dashboard/di/DashboardComponent.kt | Rarj | 315,966,563 | false | null | package rio.arj.dashboard.di
import dagger.Component
import rio.arj.dashboard.NextLeagueActivity
import javax.inject.Singleton
@DashboardScope
@Singleton
@Component(modules = [DashboardModule::class, DashboardViewModelModule::class])
interface DashboardComponent {
fun injectDashboard(nextLeagueActivity: NextLeague... | 0 | Kotlin | 0 | 0 | 4c8637cf2524a8c37d08708712983ef54143648c | 332 | football-match-refactor | Apache License 2.0 |
src/main/kotlin/com/petukhovsky/snake/config/WebSocketConfig.kt | arthur-snake | 114,157,008 | false | null | package com.petukhovsky.snake.config
import com.petukhovsky.snake.domain.SnakeConfigService
import com.petukhovsky.snake.domain.GamePool
import com.petukhovsky.snake.ws.SnakeHandler
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotatio... | 4 | Kotlin | 0 | 3 | e24da15441f6b6c673d1f1128ced494f4ed3d313 | 1,144 | server | MIT License |
light/src/main/kotlin/net/kotlinx/awscdk/component/CdkBatchJobDefinition.kt | mypojo | 565,799,715 | false | {"Kotlin": 1126686, "Java": 9531, "Jupyter Notebook": 7080} | package net.kotlinx.aws_cdk.component
import net.kotlinx.aws.batch.BatchUtil
import net.kotlinx.aws_cdk.CdkEnum
import net.kotlinx.aws_cdk.util.TagUtil
import net.kotlinx.core.DeploymentType
import software.amazon.awscdk.Stack
import software.amazon.awscdk.services.batch.CfnJobDefinition
import software.amazon.awscdk.... | 0 | Kotlin | 0 | 1 | adad4a2adc81bbf424c95b1a0bac92fc937d6ae7 | 3,924 | kx_kotlin_support | MIT License |
buildSrc/src/main/java/deps/TestDependency.kt | Pekwerike | 437,379,245 | false | null | package deps
object TestDependency {
object AndroidTest {
object AndroidX {
const val EXPRESSO =
"androidx.test.espresso:espresso-core:${Version.ANDROIDX_EXPRESSO_CORE}"
const val JUNIT = "androidx.test.ext:junit:${Version.ANDROIDX_JUNIT}"
const val TEST_... | 1 | Kotlin | 0 | 1 | f4476e916ce869f2b37d87e722ba6aed34067bff | 764 | what3words | The Unlicense |
src/test/kotlin/uk/gov/justice/digital/hmpps/pecs/jpc/service/pricing/PricesSpreadsheetTest.kt | ministryofjustice | 292,861,912 | false | null | package uk.gov.justice.digital.hmpps.pecs.jpc.service.pricing
import org.apache.poi.ss.usermodel.Row
import org.apache.poi.ss.usermodel.Sheet
import org.apache.poi.ss.usermodel.Workbook
import org.apache.poi.xssf.usermodel.XSSFWorkbook
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Asser... | 1 | null | 2 | 3 | fe19b13bbccc99d14ac70cfb1e3dfb017b62c87e | 5,928 | calculate-journey-variable-payments | MIT License |
app/src/main/java/com/example/afifit/data/OtherUserHolder.kt | innov-max | 763,176,305 | false | {"Kotlin": 105991, "C++": 11395} | package com.example.afifit.data
import android.content.Context
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.example.afifit.R
import com... | 0 | Kotlin | 0 | 0 | a03468183cff369be9a69a2524d182f7b39ec02e | 1,259 | Afifit | MIT License |
src/main/kotlin/ac/github/oa/internal/core/item/script/hoop/ternary/CompareSymbol.kt | Man297 | 542,411,142 | false | null | package ac.github.oa.internal.core.item.script.hoop.ternary
import java.math.BigDecimal
interface CompareSymbol {
val name: String
fun apply(decimal1: BigDecimal, decimal2: BigDecimal): Boolean
}
| 0 | Kotlin | 0 | 0 | e2dac46ab0680dd1fc4eebdfce4e7680302364f0 | 209 | OriginAttributes_Test | Creative Commons Zero v1.0 Universal |
src/main/kotlin/cc/mycraft/mythic_cookstoves/items/food/StrawberryItem.kt | EpicWork-Little-Mod-Team | 512,423,513 | false | {"Kotlin": 66347} | package cc.mycraft.mythic_cookstoves.items.food
import cc.mycraft.mythic_cookstoves.blocks.ModBlocks
import cc.mycraft.mythic_cookstoves.items.ModTab
import net.minecraft.world.item.ItemNameBlockItem
class StrawberryItem :
ItemNameBlockItem(ModBlocks.STRAWBERRY_BUSH, Properties().tab(ModTab).food(ModFoods.STRAWBE... | 0 | Kotlin | 0 | 0 | 620af5cec9204bcf3d6729fac14545e6da480f33 | 325 | MythicCookstoves | Apache License 2.0 |
android/core/network/src/main/java/com/jaino/network/datasource/review/ReviewDataSource.kt | pknu-wap | 615,959,763 | false | null | package com.jaino.network.datasource.review
import com.jaino.network.model.request.review.WriteDrinkReviewRequest
import com.jaino.network.model.response.review.DrinkReviewResponse
interface ReviewDataSource {
suspend fun getReviewList(drinkId: Long) : Result<List<DrinkReviewResponse>>
suspend fun postReview... | 1 | Kotlin | 3 | 9 | f2144cb5f19d0617b146b94fcc3058f330f2df41 | 387 | 2023_1_WAT_BeJuRyu | MIT License |
src/commonMain/kotlin/character/classes/warlock/debuffs/UnstableAfflictionDot.kt | marisa-ashkandi | 332,658,265 | false | null | package character.classes.warlock.debuffs
import character.Ability
import character.Debuff
import character.Proc
import data.Constants
import mechanics.Spell
import sim.Event
import sim.SimParticipant
class UnstableAfflictionDot(owner: SimParticipant) : Debuff(owner) {
companion object {
const val name = ... | 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,477 | tbcsim | MIT License |
feature-wallet-api/src/main/java/io/novafoundation/nova/feature_wallet_api/domain/updater/AccountInfoUpdater.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8137060, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_wallet_api.domain.updater
import io.novafoundation.nova.common.utils.Modules
import io.novafoundation.nova.core.storage.StorageCache
import io.novafoundation.nova.feature_account_api.domain.interfaces.AccountRepository
import io.novafoundation.nova.feature_account_api.domain.mode... | 12 | Kotlin | 6 | 9 | 618357859a4b7af95391fc0991339b78aff1be82 | 2,295 | nova-wallet-android | Apache License 2.0 |
extracted/konan.serializer/src/org/jetbrains/kotlin/konan/library/resolver/impl/KonanLibraryResolverImpl.kt | mrakakuy | 183,616,525 | false | null | package org.jetbrains.kotlin.konan.library.resolver.impl
import org.jetbrains.kotlin.konan.file.File
import org.jetbrains.kotlin.konan.library.*
import org.jetbrains.kotlin.konan.library.resolver.*
import org.jetbrains.kotlin.konan.util.WithLogger
internal class KonanLibraryResolverImpl(
override val searchPa... | 0 | null | 0 | 2 | 1c6a2a711bc866b37a48076ff732413711bf966d | 5,250 | kotlin-native | Apache License 2.0 |
yangxj96-starter/yangxj96-starter-security/src/main/java/io/github/yangxj96/starter/security/filter/UserAuthorizationFilter.kt | yangxj96 | 574,967,993 | false | {"Kotlin": 197139} | package io.github.yangxj96.starter.security.filter
import io.github.yangxj96.starter.security.store.TokenStore
import jakarta.servlet.FilterChain
import jakarta.servlet.ServletException
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.apache.commons.lang3.String... | 0 | Kotlin | 0 | 0 | a8ffa8acf6933c7d56b510b05424c99d8b4d6076 | 1,514 | yangxj96-saas-api | MIT License |
couchbase-lite/src/commonMain/kotlin/kotbase/ArrayFunction.kt | jeffdgr8 | 518,984,559 | false | {"Kotlin": 2266831, "Python": 294} | /*
* Copyright 2022-2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 7 | ec8fbeb0d3e6c487ec8fb48ba2ba5388c71a29b1 | 1,452 | kotbase | Apache License 2.0 |
tokisaki-server/src/main/kotlin/io/micro/server/function/infra/dao/FunctionDAO.kt | spcookie | 730,690,607 | false | {"Kotlin": 168133, "Java": 13136} | package io.micro.server.function.infra.dao
import jakarta.enterprise.context.ApplicationScoped
@ApplicationScoped
class FunctionDAO : IFunctionDAO {
} | 0 | Kotlin | 0 | 0 | 63cd90108a0215a42b916fcc15281c658019d357 | 152 | Tokisaki | Apache License 2.0 |
detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UnusedPrivateFunction.kt | detekt | 71,729,669 | false | null | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.DetektVisitor
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detek... | 9 | null | 772 | 6,253 | c5d7ed3da2824534d0e15f8404ad4f1c59fb553c | 9,924 | detekt | Apache License 2.0 |
OrderCenter/src/main/java/com/kotlin/order/ui/activity/ShipAddressEditActivity.kt | starktonys | 140,391,283 | false | null | package com.kotlin.order.ui.activity
import android.os.Bundle
import com.kotlin.base.ext.onClick
import com.kotlin.base.ui.activity.BaseActivity
import com.kotlin.base.ui.activity.BaseMvpActivity
import com.kotlin.order.R
import com.kotlin.order.common.OrderConstant
import com.kotlin.order.data.protocol.ShipAddress
im... | 0 | null | 1 | 8 | 7cb3f869a27c9f8a6ba44b72a7d328a1383ec4aa | 2,756 | KotlinMall-App | Apache License 2.0 |
feature/market/src/main/kotlin/com/niyaj/feature/market/measureUnit/settings/ExportMeasureUnitScreen.kt | skniyajali | 644,752,474 | false | {"Kotlin": 4945599, "Shell": 8001, "Java": 232} | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 42 | Kotlin | 0 | 1 | d449fd857f3a1d12596c566341a6a182eea15d78 | 13,930 | PoposRoom | Apache License 2.0 |
app/src/main/java/org/ranapat/examples/githubbrowser/ui/util/ViewExtensions.kt | ranapat | 228,177,529 | false | {"Java": 316894, "Kotlin": 46620} | package org.ranapat.examples.githubbrowser.ui.util
import android.content.Context.INPUT_METHOD_SERVICE
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.hideSoftKeyboard() {
val inputMethodManager = context.getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager?
inputM... | 1 | Java | 1 | 1 | d21457603352790277e4e866f2345c3f47ee5971 | 380 | github-browser-example | The Unlicense |
core/src/main/kotlin/com/github/quillraven/darkmatter/ecs/component/RemoveComponent.kt | Quillraven | 255,084,653 | false | null | package com.github.quillraven.darkmatter.ecs.component
import com.badlogic.ashley.core.Component
import com.badlogic.gdx.utils.Pool
import ktx.ashley.mapperFor
class RemoveComponent : Component, Pool.Poolable {
var delay = 0f
override fun reset() {
delay = 0f
}
companion object {
val... | 7 | null | 9 | 51 | 676da9ddaec5b61e8ff08253cae99d01705dedb8 | 367 | Dark-Matter | MIT License |
app/src/main/java/com/shermanrex/recorderApp/presentation/screen/setting/component/SampleRateSection.kt | AlirezaNouri-77 | 818,004,544 | false | {"Kotlin": 154370} | package com.shermanrex.recorderApp.presentation.screen.setting.component
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
i... | 0 | Kotlin | 0 | 0 | 3e0d7a6eadf53a6226bd0c7b6216635c8713201e | 1,874 | SimpleVoiceRecorder | MIT License |
src/praj/app/swagtag/UIHandler.kt | praj-foss | 115,777,729 | false | null | package praj.app.swagtag
import javafx.geometry.HPos
import javafx.geometry.Insets
import javafx.geometry.Pos
import javafx.scene.Scene
import javafx.scene.control.Button
import javafx.scene.control.Label
import javafx.scene.control.ScrollPane
import javafx.scene.control.TextField
import javafx.scene.image.Image
impor... | 0 | Kotlin | 0 | 0 | a3bf152eb0227f96fee37b10e94fb83d4c519a65 | 5,375 | swagtag | MIT License |
core/core-media-notification/src/main/kotlin/com/maximillianleonov/musicmax/core/media/notification/MusicNotificationProvider.kt | MaximillianLeonov | 559,137,206 | false | null | /*
* Copyright 2022 Afig Aliyev
*
* 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 ... | 5 | null | 5 | 61 | 29dd1c65e202aae78d6565c6490e3019d921fb23 | 5,763 | Musicmax | Apache License 2.0 |
editor/src/main/kotlin/com/dr10/editor/ui/EmptyContextMenu.kt | Daniel0110000 | 702,220,698 | false | null | package com.dr10.editor.ui
import androidx.compose.foundation.ContextMenuArea
import androidx.compose.foundation.ContextMenuState
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.text.TextContextMenu
import androidx.compose.runtime.Composable
/**
* Object that creates a... | 1 | null | 3 | 29 | 9d75ecc560d86e12de14ff3153bcac79b0f0c02d | 739 | DeepCodeStudio | Apache License 2.0 |
src/main/kotlin/ru/yoomoney/tech/grafana/dsl/panels/PanelsBuilder.kt | yoomoney | 158,901,967 | false | null | package ru.yandex.money.tools.grafana.dsl.panels
import ru.yandex.money.tools.grafana.dsl.generators.PanelLayoutGenerator
import ru.yandex.money.tools.grafana.dsl.variables.Variable
/**
* Panels builder.
*
* @author <NAME> (<EMAIL>)
* @since 7/21/18
*/
class PanelsBuilder(override val panelLayoutGenerator: Panel... | 2 | null | 8 | 53 | 58ab4e2e70e544c4160b97b4dc64e73235a4bd00 | 873 | grafana-dashboard-dsl | MIT License |
src/main/kotlin/com/ryanmoelter/splity/database/Ids.kt | ryanmoelter | 270,082,440 | false | null | package co.moelten.splity.database
import com.squareup.sqldelight.ColumnAdapter
import java.util.UUID
@JvmInline
value class BudgetId(val plainUuid: UUID) {
override fun toString(): String = plainUuid.toString()
}
fun String.toBudgetId() = BudgetId(UUID.fromString(this))
fun UUID.toBudgetId() = BudgetId(this)
val... | 2 | null | 0 | 3 | 86d276ade570bf57321fb29e1317c24de2da101b | 2,846 | splity | Apache License 2.0 |
goblin-rpc/src/main/java/org/goblinframework/rpc/registry/RpcClientNode.kt | xiaohaiz | 206,246,434 | false | null | package org.goblinframework.rpc.registry
import org.goblinframework.core.util.HttpUtils
class RpcClientNode {
var clientId: String? = null
var clientName: String? = null
var clientHost: String? = null
var clientPid: Int? = null
fun toPath(): String {
val map = LinkedHashMap<String, Any>()
map["cli... | 0 | null | 6 | 9 | b1db234912ceb23bdd81ac66a3bf61933b717d0b | 559 | goblinframework | Apache License 2.0 |
app/src/main/java/com/udacity/asteroid/radar/main/MainViewModel.kt | RicardoBravoA | 312,422,452 | false | null | package com.udacity.asteroid.radar.main
import androidx.lifecycle.*
import com.udacity.asteroid.radar.data.util.DataDateUtil
import com.udacity.asteroid.radar.domain.model.AsteroidModel
import com.udacity.asteroid.radar.domain.model.PictureModel
import com.udacity.asteroid.radar.domain.usecase.AsteroidOfflineUseCase
i... | 0 | Kotlin | 0 | 1 | db1cd5330dfb8991eb1fa913c93ddf6dfa2a81db | 4,269 | AsteroidRadar | Apache License 2.0 |
src/main/kotlin/com/alipay/sofa/koupleless/kouplelessidea/factory/FileDependencyTreeNodeFactory.kt | koupleless | 783,180,038 | false | {"Kotlin": 840464, "Java": 26198, "Shell": 3994} | package com.alipay.sofa.koupleless.kouplelessidea.factory
import com.alipay.sofa.koupleless.kouplelessidea.model.splitmodule.FileDependByTreeNode
import com.alipay.sofa.koupleless.kouplelessidea.model.splitmodule.FileDependOnTreeNode
import java.io.File
/**
* @description: TODO
* @author lipeng
* @date 2023/12/22... | 1 | Kotlin | 1 | 2 | 371a738491d60019d9c25a131fab484ad8064fc2 | 605 | koupleless-idea | Apache License 2.0 |
app/src/main/java/com/rhtyme/swipetoaction/ExtUtils.kt | Rhtyme | 237,761,897 | false | null | package com.rhtyme.swipetoaction
import android.content.Context
import android.graphics.drawable.Drawable
import android.view.View
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.core.content.ContextComp... | 0 | Kotlin | 0 | 0 | 67dc58ae2bb34bb0f7fb8747cd318116bedcca84 | 741 | SwipeToActionCallback | MIT License |
app/src/main/java/me/spica/weather/ui/main/MainPagerAdapter.kt | yangSpica27 | 457,724,719 | false | null | package me.jimi.weather.ui.main
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.viewpager2.adapter.FragmentStateAdapter
import me.jimi.weather.mo... | 0 | Kotlin | 0 | 6 | 163e679c1754bbd7a322d1643abf88bdb32db905 | 1,187 | SpicaWeather | MIT License |
generator/graphql-kotlin-schema-generator/src/test/kotlin/com/expediagroup/graphql/generator/test/integration/CustomUnionAnnotationTest.kt | ExpediaGroup | 148,706,161 | false | {"Kotlin": 2410561, "MDX": 720089, "HTML": 12165, "JavaScript": 10447, "CSS": 297, "Dockerfile": 147} | /*
* Copyright 2023 Expedia, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 68 | Kotlin | 345 | 1,739 | d3ad96077fc6d02471f996ef34c67066145acb15 | 6,370 | graphql-kotlin | Apache License 2.0 |
kool-core/src/jsMain/kotlin/de/fabmax/kool/pipeline/backend/webgpu/WgpuRenderPass.kt | fabmax | 81,503,047 | false | {"Kotlin": 5084015, "HTML": 1464, "JavaScript": 597} | package de.fabmax.kool.pipeline.backend.webgpu
import de.fabmax.kool.pipeline.FrameCopy
import de.fabmax.kool.pipeline.RenderPass
import de.fabmax.kool.pipeline.backend.stats.BackendStats
import de.fabmax.kool.util.BaseReleasable
import de.fabmax.kool.util.Time
abstract class WgpuRenderPass<T: RenderPass>(
val de... | 12 | Kotlin | 14 | 241 | b32ddd844cecd3525560b051d36d72d1df5630d3 | 5,329 | kool | Apache License 2.0 |
shared/src/main/kotlin/dev/fastmc/graphics/shared/terrain/UploadTask.kt | FastMinecraft | 447,964,530 | false | {"Kotlin": 812223, "Java": 295977, "GLSL": 19607} | package dev.fastmc.graphics.shared.terrain
import dev.fastmc.common.collection.FastObjectArrayList
import dev.fastmc.graphics.shared.instancing.tileentity.info.ITileEntityInfo
import dev.fastmc.graphics.shared.opengl.glCopyNamedBufferSubData
internal class UploadTask(
private val parentTask: ChunkBuilderTask,
... | 1 | Kotlin | 1 | 61 | 74eb9d6af0d4829caa8a6069f39bb3e0fa168538 | 8,481 | fastmc-graphics | MIT License |
app/src/main/java/com/cryptron/util/WalletDisplayUtils.kt | c-sports | 289,192,345 | false | {"Gradle": 3, "XML": 262, "Java Properties": 2, "Shell": 2, "Text": 16, "Ignore List": 2, "Batchfile": 2, "Markdown": 1, "YAML": 2, "INI": 1, "Proguard": 1, "Java": 162, "Kotlin": 272, "JSON": 6, "HTML": 2, "Protocol Buffer": 2, "Ruby": 1} | /**
* BreadWallet
*
* Created by Ahsan Butt <ahsan.butt@breadwallet.com> on 10/10/19.
* Copyright (c) 2019 breadwallet LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without re... | 1 | null | 1 | 1 | 8a25940586c472b10d765f6805be502a0c477986 | 2,291 | cryptron_android | MIT License |
idea-plugin/src/main/kotlin/arrow/meta/ide/plugins/proofs/folding/codeFolding.kt | mattmoore | 217,621,376 | false | null | package arrow.meta.ide.plugins.proofs.folding
import arrow.meta.ide.IdeMetaPlugin
import arrow.meta.phases.Composite
import arrow.meta.phases.ExtensionPhase
val IdeMetaPlugin.codeFolding: ExtensionPhase
get() = Composite(
codeFoldingOnUnions,
codeFoldingOnTuples
// codeFoldingOnKinds, // temporary disab... | 1 | null | 1 | 1 | d97c914cdcd3075122f4398cee3dbb5cafa0142b | 389 | arrow-meta | Apache License 2.0 |
app/src/main/java/com/guiying712/demo/SplashActivity.kt | guiying712 | 466,683,536 | false | null | package com.pedrorau.flawlesspoetrade
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
}
} | 1 | null | 1 | 2 | fef88df211b898dcca1ce3f1e6a17f26cc9a1ae9 | 314 | KotlinRouter | Apache License 2.0 |
serialization/src/commonTest/kotlin/nl/adaptivity/xml/serialization/AClassWithPolymorhpicChild.kt | pdvrieze | 143,553,364 | false | {"Kotlin": 3481762} | /*
* Copyright (c) 2021.
*
* This file is part of xmlutil.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively, y... | 35 | Kotlin | 31 | 378 | c4053519a8b6c90af9e1683a5fe0e9e2b2c0db79 | 2,528 | xmlutil | Apache License 2.0 |
appintro/src/main/java/com/hb/introduction/IntroductionLottieAnimationBaseFragment.kt | hb-sravan | 268,564,180 | false | {"Kotlin": 102272} | package com.hb.introduction
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.annotation.LayoutRes
... | 0 | null | 0 | 0 | 81813b6e3fa8e286f5a8e6a857e268f4345aa4be | 7,227 | IntroductionWrapper | Apache License 2.0 |
compose-guard/core/src/main/kotlin/com/joetr/compose/guard/core/parser/ComposableReportParser.kt | j-roskopf | 800,960,208 | false | null | /**
* MIT License
*
* Copyright (c) 2024 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 1 | null | 2 | 80 | 44c8a547b98b600f39b21df3a2fefa781b676db6 | 5,391 | ComposeGuard | MIT License |
richtext/src/main/java/com/keykat/richtext/CustomRichTextScope.kt | betterafter | 818,123,669 | false | {"Kotlin": 15530} | package com.keykat.richtext
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.materia... | 0 | Kotlin | 0 | 0 | 13955310671256891a74254cfc9ace8e544149d7 | 3,720 | RichText | Apache License 2.0 |
idscp2-core/src/main/kotlin/de/fhg/aisec/ids/idscp2/defaultdrivers/securechannel/tls13/TLSSessionVerificationHelper.kt | industrial-data-space | 343,733,469 | false | null | /*-
* ========================LICENSE_START=================================
* idscp2
* %%
* Copyright (C) 2021 Fraunhofer AISEC
* %%
* 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
* ... | 2 | null | 3 | 4 | aff0b11cafc4ad43e7afe0727924e594a9853e54 | 10,439 | idscp2-jvm | Apache License 2.0 |
src/nl/hannahsten/texifyidea/formatting/LatexBlock.kt | Hannah-Sten | 62,398,769 | false | {"Kotlin": 2697096, "TeX": 71181, "Lex": 31225, "HTML": 23552, "Python": 967, "Perl": 39} | package nl.hannahsten.texifyidea.formatting
import com.intellij.application.options.CodeStyle
import com.intellij.formatting.*
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiWhiteSpace
import com.intellij.psi.TokenType
import com.intellij.psi.formatter.common.AbstractBlock
import com.intellij.psi.util.pre... | 99 | Kotlin | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 9,639 | TeXiFy-IDEA | MIT License |
packages/expo-modules-core/android/src/androidTest/java/expo/modules/kotlin/jni/JavaScriptFunctionTest.kt | betomoedano | 462,599,485 | false | null | @file:OptIn(ExperimentalCoroutinesApi::class)
package expo.modules.kotlin.jni
import com.google.common.truth.Truth
import io.mockk.mockk
import kotlinx.coroutines.ExperimentalCoroutinesApi
import org.junit.Before
import org.junit.Test
class JavaScriptFunctionTest {
private lateinit var jsiInterop: JSIInteropModule... | 647 | null | 4463 | 4 | 52d6405570a39a87149648d045d91098374f4423 | 1,815 | expo | MIT License |
xmlschema/src/commonMain/kotlin/io/github/pdvrieze/formats/xmlschema/regex/impl/sets/XRRangeSet.kt | pdvrieze | 143,553,364 | false | {"Kotlin": 3481762} | /*
* Copyright (c) 2023.
*
* This file is part of xmlutil.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively, y... | 35 | Kotlin | 31 | 378 | c4053519a8b6c90af9e1683a5fe0e9e2b2c0db79 | 1,935 | xmlutil | Apache License 2.0 |
plugins/kotlin/gradle/gradle-tooling/src/org/jetbrains/kotlin/idea/gradleTooling/arguments/rawCompilerArguments.kt | JetBrains | 2,489,216 | 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.gradleTooling.arguments
import org.jetbrains.kotlin.idea.projectModel.KotlinRawCompilerArgument
object KotlinRawEmptyCompiler... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 837 | intellij-community | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/DiracComb.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: DiracComb
*
* Full name: System`DiracComb
*
* DiracComb[x] represents the Dirac comb fu... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,321 | mathemagika | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/DiracComb.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: DiracComb
*
* Full name: System`DiracComb
*
* DiracComb[x] represents the Dirac comb fu... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,321 | mathemagika | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/FilterHdrOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/FilterHdrOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val FilterHdrOutlined: SvgIconComponent
| 12 | Kotlin | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 216 | kotlin-wrappers | Apache License 2.0 |
kotlin-browser/src/main/kotlin/web/screen/ScreenOrientation.kt | stefanthaler | 440,580,782 | true | {"Kotlin": 8815376, "JavaScript": 528} | package web.screen
import kotlinx.js.Void
import web.events.Event
import web.events.EventTarget
import kotlin.js.Promise
sealed external class ScreenOrientation : EventTarget {
val angle: Double
var onchange: ((event: Event) -> Unit)?
val type: OrientationType
fun lock(orientation: OrientationLockType... | 0 | Kotlin | 0 | 0 | fc27a2b5d98423c8db24f8a28d1c3a95dc682b0a | 356 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/shaf/composescanner/QRCodeAnalyzer.kt | shafaque | 835,458,264 | false | {"Kotlin": 11163} | package com.shaf.composescanner
import androidx.camera.core.ExperimentalGetImage
import androidx.camera.core.ImageAnalysis
import androidx.camera.core.ImageProxy
import com.google.mlkit.vision.barcode.BarcodeScanning
import com.google.mlkit.vision.barcode.common.Barcode
import com.google.mlkit.vision.common.InputImage
... | 0 | Kotlin | 0 | 1 | 7ef90ec95032ca1ec983d4ef9ff4b959b7f7176f | 1,663 | ComposeScanner | Apache License 2.0 |
Web/src/Application.kt | cornerstone18aug | 158,751,027 | false | {"CSS": 213683, "FreeMarker": 37188, "Kotlin": 34498, "JavaScript": 13666, "HTML": 53} | package ca.myclassmate
import io.ktor.application.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.http.*
import io.ktor.html.*
import kotlinx.html.*
import kotlinx.css.*
import freemarker.cache.*
import io.ktor.freemarker.*
import io.ktor.http.content.*
import io.ktor.locations.*
import io.ktor.ses... | 0 | CSS | 0 | 0 | 6691d5240354623ca9859a4a76a3ee1e9bf47513 | 6,722 | MyClassMate | MIT License |
android/app/src/main/kotlin/com/v2ray/ang/ui/ScScannerActivity.kt | PsrkGrmez | 759,525,035 | false | null | package com.v2ray.ang.ui
import android.Manifest
import android.content.*
import com.tbruyelle.rxpermissions.RxPermissions
import com.v2ray.ang.R
import com.v2ray.ang.util.AngConfigManager
import android.os.Bundle
import androidx.activity.result.contract.ActivityResultContracts
import com.v2ray.ang.extension.toast
cl... | 2 | null | 7 | 85 | 1a6d3d8e6c6edcfd3be8f23bee339e1c83ab9346 | 1,447 | ChiselBox | MIT License |
compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/BranchingExpressionGenerator.kt | JakeWharton | 99,388,807 | false | null | /*
* 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... | 184 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 11,721 | kotlin | Apache License 2.0 |
compiler/testData/ir/irText/classes/initVal.kt | JakeWharton | 99,388,807 | false | null | // FIR_IDENTICAL
class TestInitValFromParameter(val x: Int)
class TestInitValInClass {
val x = 0
}
class TestInitValInInitBlock {
val x: Int
init {
x = 0
}
}
| 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 185 | kotlin | Apache License 2.0 |
src/main/kotlin/dev/storozhenko/familybot/repos/ChatLogRepository.kt | AngryJKirk | 114,262,178 | false | null | package dev.storozhenko.familybot.feature.logging.repos
import com.github.benmanes.caffeine.cache.Caffeine
import dev.storozhenko.familybot.common.extensions.randomLong
import dev.storozhenko.familybot.core.models.telegram.User
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.jdbc.core.name... | 0 | null | 5 | 97 | aff071c72503ffb9ad276fb9cc33d8408196795d | 2,030 | familybot | Apache License 2.0 |
app/src/main/java/com/vitordmoraes/thecompanion/ui/addChar/AddCharacterActivity.kt | vitordmoraes | 386,285,962 | false | null | package com.vitordmoraes.thecompanion.ui.addChar
import android.content.Context
import android.content.Intent
import android.content.res.Resources
import android.os.Bundle
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.vitordmoraes.thecompanion... | 0 | Kotlin | 0 | 0 | a2579c661f3fdd496bfdb2e267ad3fc2cbd4f52b | 2,494 | TheCompanion--Projeto | MIT License |
mps-legacy-sync-plugin/src/main/java/org/modelix/model/mpsplugin/plugin/AddProjectNode_Action.kt | modelix | 716,210,628 | false | {"Kotlin": 1330134, "Shell": 1104, "JavaScript": 497} | package org.modelix.model.mpsplugin.plugin
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.Messages
import jetbrains.mps.ide.actions.MPSCommonDataKeys
import jetbrains.mps.workbench... | 2 | Kotlin | 0 | 0 | d9bcc94cfe0bcbc02a0b61ffb88168d33b6502cd | 2,293 | modelix.mps-plugins | Apache License 2.0 |
pluto-plugins/plugins/rooms-database/lib/src/main/java/com/pluto/plugins/rooms/db/internal/DataModels.kt | androidPluto | 390,471,457 | false | {"Kotlin": 744352, "Shell": 646} | package com.pluto.plugins.rooms.db.internal
import android.os.Parcelable
import androidx.annotation.DrawableRes
import androidx.annotation.Keep
import androidx.room.RoomDatabase
import com.pluto.plugins.rooms.db.R
import com.pluto.utilities.list.ListItem
import kotlinx.parcelize.Parcelize
@Keep
internal data class Da... | 23 | Kotlin | 64 | 657 | 5562cb7065bcbcf18493820e287d87c7726f630b | 3,170 | pluto | Apache License 2.0 |
app/src/main/java/ru/wkns37/worldskills/features/room/data/UsersRepository.kt | wkns37 | 521,082,178 | false | null | package ru.wkns37.worldskills.features.room.data
import ru.wkns37.worldskills.features.room.presentation.UserUi
interface UsersRepository {
suspend fun initialize()
suspend fun getUsers(): List<UserUi>
class Room(private val userDao: UserDao) : UsersRepository {
override suspend fun initialize... | 0 | Kotlin | 0 | 0 | 70774e95e08941f78076f02b8dc512a0ec279d29 | 948 | android_world_skills | MIT License |
src/main/kotlin/app/myoun/leaguemc/command/Command.kt | myoun | 689,020,891 | false | {"Kotlin": 22780} | package app.myoun.leaguemc.command
import com.mojang.brigadier.builder.LiteralArgumentBuilder
import net.minecraft.server.command.ServerCommandSource
typealias ServerLiteralArgumentBuilder = LiteralArgumentBuilder<ServerCommandSource> | 0 | Kotlin | 0 | 0 | 43659c2a46b4daef87b3de23c7ffc1c74ec52092 | 236 | leaguemc | Creative Commons Zero v1.0 Universal |
fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentViewLifecycleTest.kt | FYI-Google | 258,765,297 | true | {"INI": 5, "Shell": 20, "Text": 3008, "Gradle": 278, "Markdown": 27, "Ignore List": 26, "XML": 3871, "Java": 4062, "HTML": 17, "Kotlin": 1738, "Python": 13, "JSON": 32, "Proguard": 23, "Gradle Kotlin DSL": 4, "Java Properties": 12, "Protocol Buffer": 1, "AIDL": 28, "ANTLR": 1, "SVG": 1, "YAML": 2, "JSON with Comments":... | /*
* 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 | 0 | 6 | b9cd83371e928380610719dfbf97c87c58e80916 | 13,149 | platform_frameworks_support | Apache License 2.0 |
libraries/easy-camera/src/main/kotlin/easy/camera/CameraPreviewImpl.kt | Kt-Kraft | 868,318,173 | false | {"Kotlin": 106999, "Shell": 3484} | package easy.camera
import android.view.GestureDetector
import android.view.MotionEvent
import android.view.ViewGroup
import androidx.camera.core.ZoomState
import androidx.camera.view.PreviewView
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.g... | 0 | Kotlin | 0 | 0 | 153bbc744f244b02001ae244924a6ef061bb2467 | 4,157 | easy-android | MIT License |
apps/mobile/src/test/kotlin/dev/marlonlom/cappajv/core/database/FakeLocalDataSource.kt | marlonlom | 766,685,767 | false | {"Kotlin": 238268} | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.apps.cappajv.core.database
import dev.marlonlom.apps.cappajv.core.catalog_source.CatalogDataService
import dev.marlonlom.apps.cappajv.core.catalog_source.successOr
import dev.marlonlom.apps.cappajv.core.database.datasourc... | 4 | Kotlin | 0 | 0 | c4dc41a0dd68e90768e7d3fec9e9f0c6fdd5ff93 | 4,603 | cappajv | Apache License 2.0 |
shared/src/commonMain/kotlin/io/Paths.kt | sdercolin | 708,470,210 | false | null | package io
import util.Log
expect object Paths {
val appRoot: File
val contentRoot: File
}
val Paths.logsDirectory: File
get() = appRoot.resolve("logs")
val Paths.sessionsDirectory: File
get() = contentRoot.resolve("sessions")
val Paths.reclistsDirectory: File
get() = contentRoot.resolve("recli... | 0 | null | 0 | 3 | f52cc2b74109458f48b749cd08e966d500a03e21 | 946 | recstar | Apache License 2.0 |
compat/src/main/kotlin/dev/sanmer/hidden/compat/PackageInfoCompat.kt | SanmerApps | 720,492,308 | false | {"Kotlin": 190008, "Java": 9998, "AIDL": 2361} | package dev.sanmer.hidden.compat
import android.content.pm.ApplicationInfo
import android.content.pm.PackageInfo
import android.content.pm.PackageInfoHidden
import dev.rikka.tools.refine.Refine
object PackageInfoCompat {
val PackageInfo.isOverlayPackage get() =
Refine.unsafeCast<PackageInfoHidden>(this)
... | 0 | Kotlin | 2 | 99 | 2239a6bb7920b97cfa4f75ade1df2b68f634997d | 632 | PI | MIT License |
src/main/kotlin/io/realworld/app/utils/Cipher.kt | Rudge | 177,908,216 | false | null | package io.realworld.app.utils
import com.auth0.jwt.algorithms.Algorithm
object Cipher {
val algorithm = Algorithm.HMAC256("something-very-secret-here")
fun encrypt(data: String?): ByteArray =
algorithm.sign(data?.toByteArray())
}
| 4 | null | 42 | 98 | 60a2c4fdb2f04f47d1085a6c49f699a3d50fa949 | 250 | kotlin-ktor-realworld-example-app | MIT License |
uxmobile/src/main/java/sk/uxtweak/uxmobile/ui/ShakeDetector.kt | macro39 | 389,744,953 | false | null | package sk.uxtweak.uxmobile.ui
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import kotlin.math.sqrt
class ShakeDetector : SensorEventListener {
private var listener: OnShakeListener? = null
private var shak... | 0 | Kotlin | 0 | 0 | 9dc1d26c95c42f739c7aa9610da815a01ea7f5d2 | 1,753 | UxMobile | Apache License 2.0 |
app/src/main/java/com/beeglobaladmin/meditationuiwithcompose/ui/theme/HomeScreen.kt | Ryuk-C | 435,865,085 | false | {"Kotlin": 18771} | package com.beeglobaladmin.meditationuiwithcompose.ui.theme
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import ... | 0 | Kotlin | 0 | 2 | 33d6e0ca3617fb4b882f3ac25aefad37192677fc | 12,877 | MeditationUIWithCompose | MIT License |
Wechat_chatroom_helper_android/app/src/main/kotlin/com/zdy/project/wechat_chatroom_helper/wechat/plugins/hook/adapter/MainItemViewHolder.kt | zhudongya123 | 96,015,224 | false | null | package com.zdy.project.wechat_chatroom_helper.wechat.plugins.hook.adapter
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
class MainItemViewHolder(val itemView: ViewGroup) {
val containerView: ViewGroup = itemView.getChildAt(0) as ViewGroup
val avatarContainer = ... | 3 | Kotlin | 4 | 9 | 0519fbb3fd5bf98fd422f7de2334e19c1ad0ab21 | 1,290 | WechatChatRoomHelper | Apache License 2.0 |
src/test/kotlin/io/github/terickson87/ktorpostgresdemo/routing/NoteRoutingTest.kt | terickson87 | 775,215,903 | false | {"Kotlin": 38005, "Dockerfile": 469} | package io.github.terickson87.ktorpostgresdemo.routing
import io.github.terickson87.ktorpostgresdemo.adapter.accessor.NotesAccessor
import io.github.terickson87.ktorpostgresdemo.adapter.accessor.PagedData
import io.github.terickson87.ktorpostgresdemo.domain.AllNotesResponsePage
import io.github.terickson87.ktorpostgre... | 0 | Kotlin | 0 | 0 | aad779bbdbec70909db728689367f0b547b6682c | 4,303 | fullstack-ktor-react-postgres-docker-demo-app | MIT License |
features/languages/src/test/kotlin/app/ss/languages/LanguagesViewModelTest.kt | Adventech | 65,243,816 | false | null | /*
* Copyright (c) 2022. Adventech <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 7 | null | 43 | 157 | a61db7afe613b9b05b30e335c4bec7fb7cf7a7ad | 5,288 | sabbath-school-android | MIT License |
src/main/kotlin/com/sillyhusky/arch/rail/assembler/RASMDictionary.kt | huskyto | 615,505,816 | false | null | package com.sillyhusky.arch.rail.assembler
class RASMDictionary {
companion object {
// Have to use Int because no unsigned byte
fun translate(token: String): Int {
return when(token) {
// REGISTERS //
"R0" -> 0x00
"R1" -> 0x01
... | 0 | Kotlin | 0 | 1 | 095d41bab3e16ea8688dc10713a15a6f2a5f4f1d | 1,931 | rail-arch-kt | Apache License 2.0 |
ime/android/src/main/kotlin/studio/lunabee/onesafe/ime/DecryptClipboardListener.kt | LunabeeStudio | 624,544,471 | false | {"Kotlin": 3104681, "Java": 11977, "Python": 3979} | /*
* Copyright (c) 2023 Lunabee Studio
*
* 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 agree... | 0 | Kotlin | 1 | 2 | 3ab7b5f583f75c3f6f93680f29480049daed66c0 | 3,227 | oneSafe6_SDK_Android | Apache License 2.0 |
feature/feature_pokemon_list/src/main/java/com/serj113/pokedex/feature/pokemonlist/ui/PokemonListFragment.kt | serj113 | 668,290,121 | false | null | package com.serj113.pokedex.feature.pokemonlist.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.platform.ComposeView
import androidx.c... | 0 | Kotlin | 0 | 0 | 26b8c749acca4b79575b71b0344f12582cadd0e8 | 1,037 | pokedex | Apache License 2.0 |
litho-it/src/main/java/com/facebook/litho/MountItemTestHelper.kt | facebook | 80,179,724 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | 90 | null | 765 | 7,703 | 8bde23649ae0b1c594b9bdfcb4668feb7d8a80c0 | 1,665 | litho | Apache License 2.0 |
app/src/main/java/com/getcode/view/login/PhoneConfirm.kt | code-payments | 723,049,264 | false | {"Kotlin": 2149401, "C": 198685, "C++": 83029, "Java": 52287, "Shell": 8093, "Ruby": 4626, "CMake": 2594} | package com.getcode.view.login
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.founda... | 4 | Kotlin | 13 | 14 | f7078b30d225ca32796fda8792b8a99646967183 | 8,829 | code-android-app | MIT License |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/Umbrella.kt | alexzhirkevich | 636,411,288 | false | null | package io.github.alexzhirkevich.cupertino.icons.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin... | 18 | null | 31 | 848 | 54bfbb58f6b36248c5947de343567903298ee308 | 3,612 | compose-cupertino | Apache License 2.0 |
src/main/kotlin/dk/cachet/carp/webservices/export/command/impl/ExportSummary.kt | cph-cachet | 674,650,033 | false | {"Kotlin": 611558, "TypeScript": 109044, "HTML": 9317, "FreeMarker": 4300, "Shell": 4202, "CSS": 1656, "Dockerfile": 1264, "JavaScript": 706} | package dk.cachet.carp.webservices.export.command.impl
import dk.cachet.carp.common.application.UUID
import dk.cachet.carp.webservices.export.command.ExportCommand
import dk.cachet.carp.webservices.export.domain.Export
import dk.cachet.carp.webservices.export.service.ResourceExporterService
import dk.cachet.carp.webse... | 18 | Kotlin | 2 | 3 | b0fcb02a9cf666c48539dccabdc4be012b37c0c0 | 1,504 | carp-webservices-spring | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpIamAuthorizer.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 140726596} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.aws_apigatewayv2_authorizers
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.se... | 1 | Kotlin | 0 | 4 | eb3eef728b34da593a3e55dc423d4f5fa3668e9c | 2,630 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/s16/febraury/Screens/Network/NetCityActivity.kt | s16exe | 744,586,730 | false | {"Kotlin": 109914} | package com.s16.febraury.Screens.Network
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.shape.RoundedCo... | 0 | Kotlin | 0 | 0 | 8b1d017384f498778b02e19ffa5cf740640ec926 | 3,798 | Febraury | MIT License |
app/src/main/java/com/longdo/api3/App.kt | MetamediaTechnology | 435,746,992 | false | {"Kotlin": 44855} | package com.longdo.api3
import android.app.Application
import android.webkit.WebView
import com.longdo.map3.BuildConfig
class App : Application() {
override fun onCreate() {
super.onCreate()
setupWebView()
}
private fun setupWebView() {
WebView.setWebContentsDebuggingEnabled(Buil... | 0 | Kotlin | 0 | 0 | 59080f21f04bc7e9d536863459b579656f66d81e | 344 | longdo-map-sdk3-android | Apache License 2.0 |
ktor-io/js/test/io/ktor/utils/io/ISOTest.kt | ktorio | 40,136,600 | false | null | package io.ktor.utils.io.tests
import io.ktor.utils.io.charsets.*
import io.ktor.utils.io.core.*
import kotlin.test.*
private const val TEXT = "test\u00f0."
private val BYTES = byteArrayOf(0x74, 0x65, 0x73, 0x74, 0xf0.toByte(), 0x2e)
class ISOTest {
@Test
fun testEncode() {
val bytes = Charsets.ISO_8... | 269 | Kotlin | 806 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 796 | ktor | Apache License 2.0 |
src/main/kotlin/it/skrape/exceptions/SkrapeItExceptions.kt | gemasr | 212,129,064 | true | {"Kotlin": 72677, "HTML": 1293} | package it.skrape.exceptions
open class ElementNotFoundException(selector: String, tag: String = ""):
Exception("Could not find element \"$tag$selector\"")
class DivElementNotFoundException(selector: String): ElementNotFoundException(selector, "div")
class MetaElementNotFoundException(selector: String): Ele... | 0 | null | 0 | 0 | 6b2b6aebbc93d1d7bf73ae4665cf712c751f19d3 | 764 | skrape.it | MIT License |
bellatrix.ios/src/main/java/solutions/bellatrix/ios/infrastructure/AppConfiguration.kt | AutomateThePlanet | 334,964,015 | false | null | /*
* Copyright 2021 Automate The Planet Ltd.
* Author: <NAME>
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable la... | 1 | Kotlin | 1 | 1 | 5da5e705b47e12c66937d130b3031ac8703b8279 | 2,036 | BELLATRIX-Kotlin | Apache License 2.0 |
core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt | lavenutagi | 100,033,819 | true | {"Kotlin": 3386415, "Java": 184482, "Groovy": 27918, "Shell": 320, "Batchfile": 106} | package net.corda.core.transactions
import co.paralleluniverse.strands.Strand
import net.corda.core.contracts.*
import net.corda.core.crypto.*
import net.corda.core.identity.Party
import net.corda.core.internal.FlowStateMachine
import net.corda.core.node.ServiceHub
import net.corda.core.serialization.serialize
import ... | 0 | Kotlin | 0 | 0 | f9552a0d3e97ef48565583abf1a2a3edb70829fa | 10,055 | corda | Apache License 2.0 |
11-using-fragments-to-expand-ui/projects/starter/ListMaker/app/src/main/java/com/raywenderlich/listmaker/ui/main/ListSelectionRecyclerViewAdapter.kt | kodecocodes | 273,265,709 | false | {"Kotlin": 1539452, "Shell": 1914} | package com.trios2024amdj.listmaker.ui.main
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.trios2024amdj.listmaker.databinding.ListSelectionViewHolderBinding
import com.trios2024amdj.listmaker.models.TaskList
class ListSelectionRecyclerView... | 5 | Kotlin | 65 | 61 | 5883000783567b6c1ea90cb2f89a7e140d4e795e | 1,439 | aa-materials | Apache License 2.0 |
src/test/kotlin/fr/nicopico/n2rss/newsletter/handlers/jsoup/DocumentExtKtTest.kt | nicopico-dev | 747,919,496 | false | {"Kotlin": 355275, "HTML": 10832, "CSS": 3265, "JavaScript": 2724, "Shell": 2608} | /*
* Copyright (c) 2024 Nicolas PICON
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish,... | 3 | Kotlin | 0 | 2 | c9d48fc886bba777749bed36d0e199d424772abc | 3,778 | n2rss | MIT License |
app/src/main/java/com/fracta7/crafter/domain/model/Category.kt | fracta7 | 749,375,185 | false | {"Kotlin": 447882} | package com.fracta7.crafter.domain.model
/**
* Represents item category
* @property id is the ID of category
* @property name is the name of category
* @property item is the item ID of category
*/
data class Category(
val id: TagID,
val name: TagName,
val item: ItemID,
val custom: Boolean = false
) | 0 | Kotlin | 0 | 2 | 7eb0c20e507c5251cadf24aee64b0dece0da5937 | 320 | crafter | MIT License |
app/src/main/java/com/composeweatherapp/presentation/navigation/NavRoutes.kt | AhmetOcak | 538,149,907 | false | {"Kotlin": 102846} | package com.composeweatherapp.presentation.navigation
object NavRoutes {
const val homeScreen = "Home Screen"
const val searchCityScreen = "Search City Screen"
} | 0 | Kotlin | 2 | 8 | 3132fd3814887d99b70fc78570fb39e899f2ac4d | 170 | JetpackCompose-WeatherApp | MIT License |
compose/ui/ui-test-junit4/src/androidAndroidTest/kotlin/androidx/compose/ui/test/junit4/IdlingResourceRegistryTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 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 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 5,781 | androidx | Apache License 2.0 |
app/src/main/java/com/udc/apptfg/viewmodel/orders/AddItemOrderViewModel.kt | manuelmanteiga98 | 659,483,428 | false | null | package com.udc.apptfg.viewmodel.orders
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.stora... | 0 | Kotlin | 0 | 0 | 7d0b135a10a3738b0f35d6c90c7335df2196f547 | 2,721 | virtual-shop | The Unlicense |
processors/db-processor/src/main/kotlin/net/corda/processors/db/internal/reconcile/db/HostedIdentityReconciler.kt | corda | 346,070,752 | false | {"Kotlin": 20585419, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.processors.db.internal.reconcile.db
import net.corda.crypto.cipher.suite.KeyEncodingService
import net.corda.crypto.client.CryptoOpsClient
import net.corda.crypto.core.CryptoTenants.P2P
import net.corda.crypto.core.ShortHash
import net.corda.data.certificates.CertificateUsage
import net.corda.data.cr... | 11 | Kotlin | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 9,331 | corda-runtime-os | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.