path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/TextImportant.kt | horizontalsystems | 142,825,178 | false | {"Kotlin": 5050886, "Shell": 6112, "Ruby": 1350} | package io.horizontalsystems.bankwallet.ui.compose.components
import androidx.annotation.DrawableRes
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.ma... | 168 | Kotlin | 364 | 895 | 218cd81423c570cdd92b1d5161a600d07c35c232 | 3,096 | unstoppable-wallet-android | MIT License |
day13/src/main/kotlin/Computer.kt | rstockbridge | 225,212,001 | false | null | class Computer(private val state: Map<Long, Long>, private val ioProcessor: IOProcessor) {
fun run() {
val mutableState = state.toMutableMap()
var index = 0.toLong()
var instruction = mutableState.getValue(index)
var opcode = calculateOpcode(instruction)
var parameterModes ... | 0 | Kotlin | 0 | 0 | bcd6daf81787ed9a1d90afaa9646b1c513505d75 | 12,190 | AdventOfCode2019 | MIT License |
src/main/kotlin/test2/App.kt | skrinker | 341,874,860 | false | null | package test2
import kotlinx.coroutines.async
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.json.Json
import java.net.HttpURLConnection
import java.net.URL
private fun getWeather(cityName: String, token: String): String {
val url: URL = URL("https://api.openweathermap.org/data/2.5/weather?q=$... | 7 | Kotlin | 0 | 0 | 08f48726ca2e0d63992e933f6b3634aee4b0a785 | 969 | kotlin-spbu | Apache License 2.0 |
compose/src/main/java/androidx/ui/animation/StateAnimationWithInterruptionsDemo.kt | BlueLucky | 280,043,017 | true | {"Kotlin": 551590, "Shell": 5712, "HTML": 2737} | /*
* Copyright 2019 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... | 0 | null | 0 | 0 | 899594173c878590dccc4cda25c64c5c53aeb27f | 3,193 | Jetpack-Compose-Playground | MIT License |
kirk-core/src/test/kotlin/com/automation/remarks/kirk/test/example/todo/TodoAngularTest.kt | ArtyomAnohin | 100,107,855 | true | {"Kotlin": 80781, "HTML": 2885, "Java": 1567} | package com.automation.remarks.kirk.test.example.todo
import com.automation.remarks.kirk.Kirk.Companion.open
import com.automation.remarks.kirk.conditions.exactText
import com.automation.remarks.kirk.conditions.size
import com.automation.remarks.kirk.conditions.text
import org.testng.annotations.Test
/**
* Created b... | 0 | Kotlin | 0 | 0 | 6042136a6686e1e9f9a974c9e8dd3176fde10986 | 928 | kirk | Apache License 2.0 |
android/src/main/java/org/ergoplatform/android/tokens/TokenUtils.kt | MrStahlfelge | 376,102,125 | false | null | package org.ergoplatform.android.tokens
import android.view.LayoutInflater
import android.view.View
import android.widget.LinearLayout
import org.ergoplatform.android.R
import org.ergoplatform.android.databinding.EntryWalletTokenBinding
import org.ergoplatform.android.databinding.EntryWalletTokenDetailsBinding
import ... | 21 | null | 16 | 55 | fce2f952079f3becb81c0bc61f4cee17fe7807bb | 1,752 | ergo-wallet-android | Apache License 2.0 |
plugins/kotlin/gradle/gradle-java/src/org/jetbrains/kotlin/idea/gradleJava/configuration/mpp/moduleContentRoots.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.gradleJava.configuration.mpp
import com.intellij.openapi.externalSystem.model.DataNode
import com.intellij.openapi.externalSystem.model.ProjectKeys
import com.inte... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 5,328 | intellij-community | Apache License 2.0 |
idea/src/org/jetbrains/jet/plugin/findUsages/JetElementDescriptionProvider.kt | chashnikov | 14,658,474 | false | null | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 1 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 2,879 | kotlin | Apache License 2.0 |
app/src/test/java/fr/coppernic/transparent/robolectric/RobolectricTest.kt | Coppernic | 171,477,196 | false | null | package fr.coppernic.template.robolectric
import fr.bipi.tressence.console.SystemLogTree
import fr.coppernic.sdk.cpcutils.BuildConfig
import org.awaitility.Awaitility.await
import org.junit.AfterClass
import org.junit.Assert.assertTrue
import org.junit.BeforeClass
import org.junit.runner.RunWith
import org.robolectric... | 1 | null | 0 | 1 | 1d3116bceaaa1523dc18766799e77474519df69d | 1,477 | Serial | Apache License 2.0 |
features/series/src/main/java/com/chesire/nekome/app/series/collection/ui/CollectionScreen.kt | Chesire | 223,272,337 | false | null | @file:OptIn(ExperimentalMaterial3Api::class, ExperimentalMaterialApi::class)
package com.chesire.nekome.app.series.collection.ui
import android.content.Context
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import an... | 24 | null | 43 | 471 | 191def4011f659972951d3766bfb4e5af4076ab1 | 18,391 | Nekome | Apache License 2.0 |
src/main/kotlin/com/github/nanodesy/birthdayreminder/reminder/ReminderTask.kt | Nanodesy | 732,639,517 | false | {"Kotlin": 18214, "Dockerfile": 134} | package com.github.nanodesy.birthdayreminder.reminder
import com.github.nanodesy.birthdayreminder.person.Person
data class ReminderTask(
val telegramId: Long,
val person: Person
) | 0 | Kotlin | 0 | 0 | a6d41b7a461d679e85e5034bad92e6037052a59d | 185 | birthday-reminder | MIT License |
compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/FirTypeProjectionComparator.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 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.fir.types
import org.jetbrains.kotlin.fir.render
object FirTypeProjectionCompar... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,464 | kotlin | Apache License 2.0 |
mulighetsrommet-api/src/main/kotlin/no/nav/mulighetsrommet/api/tiltaksgjennomforinger/TiltaksgjennomforingValidator.kt | navikt | 435,813,834 | false | {"Kotlin": 1491608, "TypeScript": 1375463, "SCSS": 42150, "JavaScript": 27837, "PLpgSQL": 14591, "HTML": 2263, "Dockerfile": 1430, "CSS": 1075, "Shell": 396} | package no.nav.mulighetsrommet.api.tiltaksgjennomforinger
import arrow.core.Either
import arrow.core.left
import arrow.core.nel
import arrow.core.raise.either
import arrow.core.right
import no.nav.mulighetsrommet.api.domain.dbo.AvtaleDbo
import no.nav.mulighetsrommet.api.domain.dbo.TiltaksgjennomforingDbo
import no.na... | 8 | Kotlin | 2 | 7 | f64f29f5ad559115c0a6705f44f36bdffb273258 | 14,535 | mulighetsrommet | MIT License |
src/main/kotlin/kotlinmdl/components/IMdlMegaFooterMiddleSection.kt | sametkurumahmut | 119,988,311 | false | null | package kotlinmdl.components
import org.w3c.dom.Element
interface IMdlMegaFooterMiddleSection<out T : Element> : IMdlMegaFooterVerticalSection<T> {
companion object {
const val ELEMENT_NAME = "mdl-mega-footer__middle-section"
}
}
| 1 | Kotlin | 0 | 1 | 4ae2e6a03572aec5a8ea8bd3355ee031a4a3eb0e | 250 | kotlin-mdl-js | Apache License 2.0 |
generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/FederatedSchemaGeneratorHooks.kt | ExpediaGroup | 148,706,161 | false | null | /*
* 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... | 32 | Kotlin | 329 | 1,640 | 405255427937306dc1e6326d92b236966476e79b | 12,543 | graphql-kotlin | Apache License 2.0 |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/passkeys/directory/PasskeysServicesRoute.kt | AChep | 669,697,660 | false | {"Kotlin": 5254408, "HTML": 45810} | package com.artemchep.keyguard.feature.passkeys.directory
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Folder
import androidx.compose.material.icons.outlined.Key
import androidx.compose.runtime.Composable
import com.artemchep.keyguard.feature.navigation.NavigationIntent
... | 57 | Kotlin | 22 | 735 | 4e9809d0252257b9e918e44050570769d9326bc2 | 1,575 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
app/src/main/java/com/example/newsapp/common/Constants.kt | milosursulovic | 577,638,138 | false | {"Kotlin": 29536} | package com.example.newsapp.common
object Constants {
const val API_URL = "https://newsapi.org"
} | 0 | Kotlin | 0 | 0 | 8f099dd0a4aab91879303caa85838de3f4676874 | 102 | news-app | MIT License |
app/src/main/java/com/concordium/wallet/ui/bakerdelegation/delegation/introflow/DelegationRemoveIntroFlowActivity.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.ui.bakerdelegation.delegation.introflow
import android.content.Intent
import com.concordium.wallet.R
import com.concordium.wallet.ui.bakerdelegation.common.BaseDelegationBakerFlowActivity
import com.concordium.wallet.ui.bakerdelegation.common.DelegationBakerViewModel.Companion.EXTRA_DELEG... | 77 | null | 3 | 9 | 779eaefb28511102c93d37381283c6d2e7f54c43 | 1,117 | concordium-reference-wallet-android | Apache License 2.0 |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/finance/ExchangeFundsLine.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.finance
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.St... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,832 | compose-icon-collections | MIT License |
pushnotifications/src/main/java/com/pusher/pushnotifications/logging/Logger.kt | pusher | 109,729,032 | false | {"Kotlin": 225529, "Java": 17735} | package com.eventflit.pushnotifications.logging
import java.util.concurrent.ConcurrentHashMap
import android.util.Log
import kotlin.reflect.KClass
class Logger(private val name: String) {
fun v(msg: String, t: Throwable? = null) {
if (logLevel <= Log.VERBOSE) {
if (t != null) {
Log.v(name, msg, t... | 21 | Kotlin | 22 | 22 | 868326f4181bfe493c75a1a95aae395c4afba8bc | 1,626 | push-notifications-android | MIT License |
app/src/main/kotlin/com/akinci/doggo/ui/ds/components/CachedImage.kt | AttilaAKINCI | 440,251,794 | false | {"Kotlin": 136691} | package com.akinci.doggo.ui.ds.components
import androidx.annotation.DrawableRes
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import coil.compose.AsyncImage
import coil.request.CachePolicy
... | 0 | Kotlin | 0 | 2 | c1e46241b922365a7cab954cc916a989415ac15e | 1,364 | Doggo | Apache License 2.0 |
app/src/main/java/com/trawlbens/reift/e_commerce/MyApplication.kt | ReihanFatilla | 702,794,881 | false | {"Kotlin": 71803} | package com.trawlbens.reift.e_commerce
import android.app.Application
import com.trawlbens.reift.e_commerce.di.listModules
import com.trawlbens.reift.e_commerce.utils.NotificationWorker
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.GlobalCon... | 0 | Kotlin | 0 | 0 | 274e8ab8b7d517845f22708d1cb26410e268b6a2 | 707 | ECommerce-Compose | MIT License |
app/src/main/java/org/simple/clinic/summary/PatientSummaryScreenController.kt | pratul | 151,071,054 | false | null | package org.simple.clinic.summary
import io.reactivex.Observable
import io.reactivex.ObservableSource
import io.reactivex.ObservableTransformer
import io.reactivex.rxkotlin.Observables
import io.reactivex.rxkotlin.ofType
import io.reactivex.rxkotlin.withLatestFrom
import org.simple.clinic.ReportAnalyticsEvents
import ... | 0 | Kotlin | 0 | 1 | fa311d989cac0a167070f2e1e466191919b659b8 | 10,538 | citest | MIT License |
app/src/main/java/com/example/apisample/ui/AnimeListAdapter.kt | bitua79 | 482,442,412 | false | {"Kotlin": 16014} | package com.example.apisample.ui
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.example.apisample.data.entity.AnimeEntity
import com.example.apisamp... | 0 | Kotlin | 0 | 0 | 693efe34bcb25efb4adfdbf7542c41bae7f0c9db | 1,924 | simple-api-mvvm-app | MIT License |
src/main/kotlin/maliwan/mcbl/weapons/gun/behaviour/rifle/Shredifier.kt | HannahSchellekens | 868,217,631 | false | {"Kotlin": 634570} | package maliwan.mcbl.weapons.gun.behaviour.rifle
import maliwan.mcbl.weapons.gun.*
import maliwan.mcbl.weapons.gun.behaviour.PostGenerationBehaviour
import maliwan.mcbl.weapons.gun.behaviour.UniqueGun
import maliwan.mcbl.weapons.gun.parts.AssaultRifleParts
/**
* @author <NAME> */
open class Shredifier : UniqueGun, P... | 0 | Kotlin | 0 | 1 | 98b5fd966705a3087a98f0aede0c0551cca9687b | 977 | MCBorderlands | MIT License |
app/src/main/java/com/app/khajaghar/data/model/MenuItemModel.kt | samundrak | 359,170,668 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 3, "XML": 135, "Kotlin": 82, "JSON": 5} | package com.app.khajaghar.data.model
import com.google.gson.annotations.SerializedName
data class MenuItemModel(
@SerializedName("category")
val category: String,
@SerializedName("_id")
val id: String,
@SerializedName("isAvailable")
val isAvailable: Int,
@Serial... | 1 | null | 1 | 1 | 53e048764c3ed1dcd01e4687e235abf043cb3b5b | 813 | khajaGhar-android | MIT License |
app/src/main/java/com/yangbw/libtest/module/userInfo/NewPhoneActivity.kt | shanshzh | 297,868,193 | true | {"Kotlin": 278774, "FreeMarker": 21922, "Java": 1744} | package com.yangbw.libtest.module.userInfo
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.library.common.base.BaseActivity
import com.yangbw.libtest.R
import com.yangbw.libtest.databinding.ActivityNewPhoneBinding
import kotlinx.android.syntheti... | 0 | null | 0 | 0 | 274a61f4c0e597ce859f6214c3e91252d006a534 | 893 | MvvmLib | Apache License 2.0 |
java/kotlin/src/main/kotlin/cosmos/distribution/v1beta1/ValidatorSlashEventsKt.kt | dimitar-petrov | 575,395,653 | false | null | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/distribution/v1beta1/distribution.proto
package cosmos.distribution.v1beta1;
@kotlin.jvm.JvmSynthetic
inline fun validatorSlashEvents(block: cosmos.distribution.v1beta1.ValidatorSlashEventsKt.Dsl.() -> Unit): cosmos.distribution.v1beta1.Distr... | 0 | Kotlin | 0 | 0 | ddd9cd1abce2d51cf273be478c2b614960ace761 | 6,065 | terra.proto | Apache License 2.0 |
slf4j/src/main/kotlin/kr/jadekim/logger/integration/slf4j/Slf4jLogger.kt | jdekim43 | 222,454,147 | false | null | package kr.jadekim.logger.integration.slf4j
import kr.jadekim.logger.JLog
import kr.jadekim.logger.LogLevel
import org.slf4j.Logger
import org.slf4j.Marker
class Slf4jLogger(
private val name: String
) : Logger {
private val logger = JLog.get(name)
override fun getName(): String = name
override fun... | 0 | Kotlin | 0 | 0 | e9ab69cc672cd95cda4a6ec8bd89a8c99129e1fa | 5,936 | j-logger | Apache License 2.0 |
model-server-api/src/commonMain/kotlin/org/modelix/model/server/api/ModelQueryBuilder.kt | modelix | 533,211,353 | false | {"Kotlin": 2516761, "JetBrains MPS": 274458, "TypeScript": 55129, "Java": 9941, "JavaScript": 6875, "Mustache": 5974, "CSS": 2898, "Shell": 2811, "Dockerfile": 389, "Procfile": 76} | /*
* Copyright (c) 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 45 | Kotlin | 9 | 6 | de456ab2338ccf7c0418227e3c1a4cf16c204784 | 6,040 | modelix.core | Apache License 2.0 |
benchmark/benchmark-macro/src/androidTest/java/androidx/benchmark/macro/MacrobenchmarkTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 6 | null | 448 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 3,230 | androidx | Apache License 2.0 |
src/main/kotlin/siosio/jsr352/jsl/JobLevelListener.kt | siosio | 81,662,843 | false | null | package siosio.jsr352.jsl
import javax.batch.api.listener.*
import kotlin.reflect.*
class JobLevelListener(override val listener: KClass<out JobListener>) : Listener<JobListener> {
override val properties: MutableList<Property> = mutableListOf()
init {
verifyNamedAnnotation(listener)
}
}
| 0 | Kotlin | 0 | 0 | cfc32eec43e9019d3cb74345fbb2e7425b7fda7a | 313 | kotlin-jsr352-jsl | MIT License |
kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefText.kt | hardikm9850 | 139,406,928 | true | {"Kotlin": 384825, "Java": 118097, "Groovy": 5617, "HTML": 3366, "Shell": 573, "Ruby": 25} | package ca.allanwang.kau.kpref.activity.items
import android.widget.TextView
import ca.allanwang.kau.kpref.activity.GlobalOptions
import ca.allanwang.kau.kpref.activity.KClick
import ca.allanwang.kau.kpref.activity.R
import ca.allanwang.kau.utils.toast
/**
* Created by Allan Wang on 2017-06-14.
*
* Text preference... | 0 | Kotlin | 0 | 0 | 5c870486a1162ea18014d66fd42e8d6de3ef2069 | 1,764 | KAU | Apache License 2.0 |
kmp-calendar/src/commonMain/kotlin/io/github/ronjunevaldoz/kmp_calendar/CalendarPicker.kt | ronjunevaldoz | 762,163,741 | false | {"Kotlin": 25612} | package io.github.ronjunevaldoz.kmp_calendar
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier... | 0 | Kotlin | 2 | 2 | 6266274b2e71eaba80b5c98affd79b3728997a77 | 2,702 | KMPCalendar | Apache License 2.0 |
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/complexity/LargeClass.kt | redwarp | 158,261,983 | true | {"Kotlin": 658863, "Groovy": 1433, "HTML": 698} | package io.gitlab.arturbosch.detekt.rules.complexity
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Metric
import io.gitlab.arturbosch.detekt.api.Severity
import io.gitlab.arturbosch.detekt.... | 3 | Kotlin | 2 | 1 | ef0416cae794782d00fbc358d12fa5f24fed9bd3 | 4,599 | detekt | Apache License 2.0 |
app/src/main/java/ru/luckycactus/steamroulette/presentation/navigation/Screens.kt | luckycactus | 196,364,852 | false | null | package ru.luckycactus.steamroulette.presentation.navigation
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.browser.customtabs.CustomTabColorSchemeParams
import androidx.browser.customtabs.CustomTabsIntent
import androidx.fragment.app.Fragment
import ru.luckycactus.... | 0 | Kotlin | 0 | 5 | 285530179743f1274595eebb07211cd470ef7928 | 5,133 | steam-roulette | Apache License 2.0 |
lib/kore/src/main/kotlin/dev/buijs/klutter/kore/tasks/project/ProjectBuilderActions.kt | buijs-dev | 436,644,099 | false | null | /* Copyright (c) 2021 - 2023 Buijs Software
*
* 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, ... | 4 | null | 5 | 220 | 93d360ce7e391c0b60d7a1c63f7ba949df09f44e | 2,046 | klutter | MIT License |
matugr/src/main/java/com/matugr/token_request/external/TokenGrantType.kt | judegpinto | 453,862,040 | false | {"Kotlin": 154494} | /*
* Copyright 2022 The Matugr Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 0 | 3 | 08859ae76fb74f83f78e99339755df022d2f0122 | 935 | matugr | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/aktivitetskrav/cronjob/PublishExpiredVarslerCronJob.kt | navikt | 554,767,872 | false | {"Kotlin": 423385, "Dockerfile": 226} | package no.nav.syfo.aktivitetskrav.cronjob
import net.logstash.logback.argument.StructuredArguments
import no.nav.syfo.aktivitetskrav.AktivitetskravVarselService
import no.nav.syfo.infrastructure.cronjob.Cronjob
import no.nav.syfo.infrastructure.cronjob.CronjobResult
import org.slf4j.LoggerFactory
class PublishExpire... | 2 | Kotlin | 1 | 0 | 79515446fe9a8e69cb303d0731f47e4ef641afa1 | 1,563 | isaktivitetskrav | MIT License |
src/ii_collections/n16FlatMap.kt | textbook | 139,580,449 | true | {"Kotlin": 61224, "Java": 4952} | package ii_collections
val Customer.orderedProducts: Set<Product> get() = orders.flatMap { it.products }.toSet()
val Shop.allOrderedProducts: Set<Product> get() = customers.flatMap { it.orders }.flatMap { it.products }.toSet()
| 0 | Kotlin | 0 | 0 | 96abd46966f30f58e5e67564759d937ad34769c5 | 229 | kotlin-koans | MIT License |
src/main/java/io/ejekta/kambrik/gui/widgets/KWidget.kt | ejektaflex | 400,948,749 | false | null | package io.ejekta.kambrik.gui.widgets
import io.ejekta.kambrik.gui.drawing.DrawingScope
import io.ejekta.kambrik.text.textLiteral
interface KWidget {
val width: Int
val height: Int
fun doDraw(dsl: DrawingScope) {
dsl {
area(width, height) {
onDraw(this)
... | 0 | Kotlin | 0 | 0 | e500e561288d7b012be02895a8e09efe60f62855 | 874 | Posta | MIT License |
domain/src/main/java/com/test/grability/domain/repository/MarvelRepository.kt | andresbelt | 294,603,846 | false | null | package com.test.grability.domain.repository
import androidx.paging.DataSource
import com.test.grability.domain.entities.Characters
import com.test.grability.domain.vo.HttpResult
interface MarvelRepository {
suspend fun getAllCharacters(page: Int, onSuccessAction : () -> Unit,
on... | 0 | Kotlin | 0 | 0 | 8d805d195481cb19179d272186c307e18369ea76 | 458 | MarvelExample | MIT License |
src/main/kotlin/com/piashcse/utils/AppConstants.kt | piashcse | 410,331,425 | false | null | package com.piashcse.utils
object AppConstants {
object SuccessMessage {
object Password {
const val PASSWORD_CHANGE_SUCCESS = "Password change successful"
}
object VerificationCode {
const val VERIFICATION_CODE_SENT_TO = "verification code sent to"
cons... | 0 | Kotlin | 5 | 26 | 74b152e2dc10238197a0fb99595730edd55621fd | 1,157 | ktor-E-Commerce | PostgreSQL License |
src/test/kotlin/no/nav/arbeidsgiver/sykefravarsstatistikk/api/infrastruktur/database/SykefraværStatistikkNæringskodeMedVarighetRepositoryJdbcTest.kt | navikt | 201,881,144 | false | {"Kotlin": 760611, "Shell": 1600, "Dockerfile": 213} | package no.nav.arbeidsgiver.sykefravarsstatistikk.api.infrastruktur.database
import config.AppConfigForJdbcTesterConfig
import ia.felles.definisjoner.bransjer.Bransje
import io.kotest.matchers.equality.shouldBeEqualToComparingFields
import io.kotest.matchers.equals.shouldBeEqual
import io.kotest.matchers.shouldBe
impo... | 0 | Kotlin | 2 | 0 | df545731bbecd66e2854a9ebc0a0bd7002b323ca | 10,859 | sykefravarsstatistikk-api | MIT License |
Base/src/main/java/com/xy/base/assembly/common/lauch/CommonLaunchAssemblyView.kt | xiuone | 291,512,847 | false | null | package com.xy.base.assembly.common.lauch
import android.view.View
import android.widget.TextView
import com.xy.base.assembly.base.BaseAssemblyView
interface CommonLaunchAssemblyView : BaseAssemblyView {
/**
* 同意按钮
*/
fun agreeButtonView():View?
/**
* 拒绝按钮
*/
fun refuseButtonView()... | 0 | Kotlin | 1 | 2 | f0778a53355f36d09bf01104d58458232872f223 | 431 | ajinlib | Apache License 2.0 |
idea/testData/refactoring/move/kotlin/moveFile/internalReferences/after/target/some.kt | JakeWharton | 99,388,807 | false | null | package target
fun test2() = test(A()) | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 39 | kotlin | Apache License 2.0 |
shared/src/iosMain/kotlin/com/prof18/feedflow/di/KoinIOS.kt | prof18 | 600,257,020 | false | null | package com.prof18.feedflow.di
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver.native.NativeSqliteDriver
import co.touchlab.kermit.Logger
import com.prof18.feedflow.data.DatabaseHelper
import com.prof18.feedflow.db.FeedFlowDB
import com.prof18.feedflow.domain.DateFormatter
import com.prof18.f... | 9 | Kotlin | 8 | 97 | e3d2ae617a067c0484d414c34fc4ae87630e3b7a | 3,499 | feed-flow | Apache License 2.0 |
app/src/main/java/com/fanrong/frwallet/ui/dialog/LoginOutDialog.kt | iamprivatewallet | 464,003,911 | false | {"JavaScript": 2822760, "Kotlin": 1140535, "Java": 953177, "HTML": 17003} | package com.fanrong.frwallet.ui.dialog
import android.content.Context
import android.view.Gravity
import com.fanrong.frwallet.R
import kotlinx.android.synthetic.main.logout_dialog.*
import xc.common.viewlib.view.customview.FullScreenDialog
class LoginOutDialog(context: Context) : FullScreenDialog(context) {
over... | 0 | JavaScript | 0 | 1 | be8003e419afbe0429f2eb3fd757866e2e4b9152 | 672 | PrivateWallet.Android | MIT License |
drivers/dynamodb/dynamodb-springboot-driver/src/main/kotlin/io/mongock/driver/dynamodb/springboot/config/DynamoDBSpringbootContext.kt | mongock | 130,605,698 | false | {"Java": 1101769, "Kotlin": 61702, "Shell": 294} | package io.mongock.driver.dynamodb.springboot.config
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient
import io.mongock.api.config.MongockConfiguration
import io.mongock.driver.api.driver.ConnectionDriver
import io.mongock.driver.dynamodb.driver.DynamoDBDriver
import org.springframework.boot.autoconfigure... | 17 | Java | 63 | 451 | c58a80a21d1c536059cb3f82f3ff5e05748c9061 | 1,381 | mongock | Apache License 2.0 |
src/main/kotlin/dev/jpruitt/spellcraft/Scroll.kt | Rapdorian | 841,209,207 | false | {"Kotlin": 6339, "Dockerfile": 304} | package dev.jpruitt.spellcraft
import dev.jpruitt.spellcraft.SpellEffect
import net.minecraft.world.item.Item
import net.minecraft.world.item.ItemStack
import net.minecraft.world.level.Level
import net.minecraft.world.InteractionHand
import net.minecraft.world.InteractionResultHolder
import net.minecraft.world.entity.... | 0 | Kotlin | 0 | 0 | 078a612f24ab08c94d757233b165d70a52c4aed8 | 3,435 | spellcraft | Creative Commons Zero v1.0 Universal |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonperson/jpa/PrisonerHealth.kt | ministryofjustice | 805,355,441 | false | {"Kotlin": 402602, "Dockerfile": 1365} | package uk.gov.justice.digital.hmpps.prisonperson.jpa
import jakarta.persistence.CascadeType.ALL
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.FetchType.LAZY
import jakarta.persistence.Id
import jakarta.persistence.JoinColumn
import jakarta.persistence.ManyToOne
import ... | 4 | Kotlin | 0 | 1 | c790d98025319a8a9af1c2f46d164e9eda2ff76a | 3,524 | hmpps-prison-person-api | MIT License |
anvil/src/gen-sdk-21/kotlin/dev/inkremental/dsl/android/widget/DatePicker.kt | inkremental | 205,363,267 | true | null | @file:Suppress("DEPRECATION", "UNCHECKED_CAST", "MemberVisibilityCanBePrivate", "unused")
package dev.inkremental.dsl.android.widget
import android.widget.DatePicker
import dev.inkremental.Inkremental
import dev.inkremental.attr
import dev.inkremental.bind
import dev.inkremental.dsl.android.CustomSdkSetter
import dev... | 20 | Kotlin | 5 | 58 | 6e6241a0e9ac80a1edd1f0e100ad6bf0c4f8175e | 1,145 | inkremental | MIT License |
plugins/kotlin/idea/tests/testData/resolve/references/SyntheticProperty.kt | ingokegel | 72,937,917 | false | null | fun JavaClass.foo(javaClass: JavaClass) {
print(javaClass.<caret>something)
javaClass.<caret>something = 1
javaClass.<caret>something += 1
javaClass.<caret>something++
--javaClass.<caret>something
<caret>something++
(<caret>something)++
(<caret>something) = 1
(javaClass.<caret>somet... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 891 | intellij-community | Apache License 2.0 |
app/src/main/kotlin/com/fevziomurtekin/hackernewsapp/data/room/NewEntity.kt | fevziomurtekin | 177,758,353 | false | null | package com.fevziomurtekin.hackernewsapp.data.room
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.fevziomurtekin.hackernewsapp.data.domain.ItemModel
@Entity(tableName = "job")
data class JobEntity(
@PrimaryKey
val id:Int?,
val by:String?,
val descendants:Int??,
val deleted:... | 1 | Kotlin | 4 | 19 | dc44e960d2fbe0126c52dfc99320de8406be3184 | 1,053 | hackernewsapp | MIT License |
prettyprinter/src/main/kotlin/org/mock/duck/smartlog/printer/PrettyPrinter.kt | mock-duck | 83,891,666 | false | {"Gradle": 6, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 5, "Batchfile": 1, "Proguard": 4, "Java": 8, "Kotlin": 13, "XML": 16} | package org.mock.duck.smartlog.printer
import android.util.Log
import com.google.gson.Gson
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
import org.mock.duck.smartlog.core.*
class PrettyPrinter : Printer {
private val defaultShift: String = " "
override fun print(prior... | 0 | Kotlin | 0 | 0 | 0d9c919c66ebf4562c62f669ec03138600adbe5e | 2,905 | SmartLog | Apache License 2.0 |
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/selection/SelectionHandles.kt | virendersran01 | 343,676,031 | false | null | /*
* Copyright 2019 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... | 1 | null | 1 | 1 | fa4711838092061ca02409b998a59f12ef0b7143 | 11,588 | androidx | Apache License 2.0 |
library/src/main/java/com/panoramagl/PLSurfaceView.kt | hannesa2 | 42,790,543 | false | null | package com.panoramagl
import android.annotation.SuppressLint
import android.content.Context
import android.opengl.GLSurfaceView
@SuppressLint("ViewConstructor")
internal class PLSurfaceView(context: Context, renderer: Renderer) : GLSurfaceView(context) {
init {
setRenderer(renderer)
renderMode = ... | 11 | null | 60 | 169 | ebc1808a5758415be00fb1503e019cfebd810c2b | 349 | panoramaGL | Apache License 2.0 |
src/test/kotlin/ch/unil/pafanalysis/analysis/steps/transformation/TransformationRunnerTests.kt | UNIL-PAF | 419,229,519 | false | {"Kotlin": 443542, "R": 1119} | package ch.unil.pafanalysis.analysis.steps.transformation
import ch.unil.pafanalysis.analysis.service.ColumnMappingParser
import ch.unil.pafanalysis.analysis.steps.imputation.ImputationComputation
import ch.unil.pafanalysis.analysis.steps.imputation.ImputationParams
import ch.unil.pafanalysis.analysis.steps.imputation... | 0 | Kotlin | 0 | 0 | adce71c3b2d29b5ab647735747a19050cccd6cf7 | 4,354 | paf-analysis-backend | MIT License |
src/main/kotlin/extensions/Array.kt | HMCore | 356,832,463 | false | {"Java": 26193, "Kotlin": 1395} | package extensions
/**
* Map a Java array to another Java array
*/
inline fun <T, reified I> Array<T>.map(crossinline transform: (T) -> I) =
Array(size) { transform(this[it]) } | 6 | Java | 1 | 1 | febd3d63d22efe5b3cb34fe293ef318c29678f23 | 183 | Core | MIT License |
entity/src/commonMain/kotlin/tech/antibytes/keather/entity/RealtimeData.kt | bitPogo | 762,226,385 | false | {"Kotlin": 372822, "MDX": 11276, "TypeScript": 8443, "JavaScript": 8164, "Swift": 6863, "CSS": 2415, "XS": 819, "C": 194, "HTML": 184, "SCSS": 91} | /*
* Copyright (c) 2024 <NAME> (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package io.bitpogo.keather.entity
data class RealtimeData(
val temperatureInCelsius: TemperatureInCelsius,
val windSpeedInKilometerPerHour: WindSpeedInKpH,
val precipitationInMilli... | 0 | Kotlin | 0 | 0 | 7e0b2d1d800f835b0afc2bbeedb708f393668c64 | 356 | keather | Apache License 2.0 |
app/src/main/java/me/colinmarsch/dawn/receiver/AlarmReceiver.kt | colinmarsch | 203,884,903 | false | {"Kotlin": 67277} | package me.colinmarsch.dawn.receiver
import android.app.AlarmManager
import android.app.PendingIntent
import android.app.PendingIntent.FLAG_UPDATE_CURRENT
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
import an... | 2 | Kotlin | 1 | 5 | 49a3b30408a2ec9107afd527f92b03ff0f99a1a5 | 12,812 | Dawn | Apache License 2.0 |
canvas/src/main/java/com/angcyo/canvas/core/component/SmartAssistant.kt | angcyo | 229,037,615 | false | null | package com.angcyo.canvas.core.component
import android.graphics.Matrix
import android.graphics.PointF
import android.graphics.RectF
import android.view.MotionEvent
import android.view.VelocityTracker
import com.angcyo.canvas.CanvasDelegate
import com.angcyo.canvas.core.ICanvasListener
import com.angcyo.canvas.core.IR... | 0 | Kotlin | 4 | 3 | 23dfbb16196872844ebcd9c64064dad64a0493ca | 30,628 | UICore | MIT License |
src/main/kotlin/com/github/cpjinan/plugin/akarilevel/AkariLevel.kt | CPJiNan | 672,557,565 | false | null | package com.github.cpjinan.plugin.akaricdk
import taboolib.common.env.RuntimeDependencies
import taboolib.common.env.RuntimeDependency
import taboolib.common.platform.Plugin
import taboolib.platform.BukkitPlugin
@RuntimeDependencies(
RuntimeDependency(
value = "org.jetbrains.kotlinx:kotlinx-serialization-... | 3 | null | 4 | 6 | 4421f71d49d82844bad7f007269003cb1035be82 | 829 | AkariLevel | Creative Commons Zero v1.0 Universal |
web/src/main/java/no/nav/modiapersonoversikt/rest/dialog/salesforce/SfLegacyDialogMerkController.kt | navikt | 218,512,058 | false | null | package no.nav.modiapersonoversikt.rest.dialog.salesforce
import no.nav.modiapersonoversikt.rest.dialog.apis.*
import no.nav.modiapersonoversikt.service.oppgavebehandling.OppgaveBehandlingService
import no.nav.modiapersonoversikt.service.sfhenvendelse.SfHenvendelseService
import org.springframework.http.HttpStatus
imp... | 2 | null | 1 | 3 | 975d55e476360b2d03467033f1ff620f37011bfe | 2,201 | modiapersonoversikt-api | MIT License |
app/src/main/java/com/starts/movieguide/scene/TabChildScene.kt | ZhaoSiBo | 278,286,809 | false | null | package com.starts.movieguide.scene
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.bytedance.scene.ui.template.AppCompatScene
import com.s... | 0 | Kotlin | 0 | 1 | 0b663068a9eb1df32f76f60272d2bc3579e47196 | 1,665 | MovieGuide | MIT License |
api/src/main/kotlin/io/github/wulkanowy/api/service/ServiceManager.kt | wulkanowy | 145,134,008 | false | null | package io.github.wulkanowy.api.service
import RxJava2ReauthCallAdapterFactory
import com.google.gson.GsonBuilder
import io.github.wulkanowy.api.Api
import io.github.wulkanowy.api.ApiException
import io.github.wulkanowy.api.OkHttpClientBuilderFactory
import io.github.wulkanowy.api.grades.DateDeserializer
import io.git... | 0 | null | 1 | 12 | 3e8cdb8a27cdfcd734000d54c946f4b4e2002794 | 7,903 | api | Apache License 2.0 |
src/main/kotlin/io/apono/sdk/model/UpdateAccessFlowModelV3.kt | apono-io | 644,303,210 | false | null | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package io.apono.sdk.model
import io.apono.sdk.... | 0 | Kotlin | 0 | 0 | de5346cdfcd8fbdcd56849e4edcfd5490980f9b0 | 1,617 | apono-sdk-kotlin | Apache License 2.0 |
apps/etterlatte-behandling/src/test/kotlin/behandling/BehandlingStatusServiceTest.kt | navikt | 417,041,535 | false | {"Kotlin": 5224679, "TypeScript": 1253274, "Handlebars": 21854, "Shell": 10666, "HTML": 1776, "CSS": 598, "Dockerfile": 587} | package no.nav.etterlatte.behandling
import io.mockk.confirmVerified
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.runs
import io.mockk.verify
import no.nav.etterlatte.Context
import no.nav.etterlatte.DatabaseKontekst
import no.nav.etterlatte.Kontekst
import no.nav.etterlatte.Saksbeh... | 8 | Kotlin | 0 | 6 | aa6b1757cdd96526892ad4a04d3886037f968735 | 6,139 | pensjon-etterlatte-saksbehandling | MIT License |
protocol/notify/src/main/kotlin/com/walletconnect/notify/common/UtilFunctions.kt | WalletConnect | 435,951,419 | false | {"Kotlin": 1987986, "Java": 4358, "Shell": 1892} | @file:JvmSynthetic
package com.walletconnect.notify.common
import com.walletconnect.android.internal.common.model.Expiry
import com.walletconnect.android.internal.utils.monthInSeconds
import java.util.concurrent.TimeUnit
@JvmSynthetic
internal fun calcExpiry(): Expiry {
val currentTimeMs = System.currentTimeMill... | 156 | Kotlin | 74 | 172 | 35372892c35f461ca69612fac835ac1365fd1157 | 520 | WalletConnectKotlinV2 | Apache License 2.0 |
idea/tests/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_inWhenEntry.kt | JetBrains | 278,369,660 | false | null | fun test(v: Boolean): (String) -> Int {
return when (v) {
true -> <caret>{ { x -> taskOne(x) } }
false -> { x -> taskTwo(x) }
}
}
fun taskOne(s: String) = s.length
fun taskTwo(s: String) = 42 | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 216 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/orange/ods/app/ui/AppBarActions.kt | Orange-OpenSource | 440,548,737 | false | {"Kotlin": 937712, "HTML": 14150, "CSS": 1444, "Shell": 587, "JavaScript": 197} | /*
*
* Copyright 2021 Orange
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* /
*/
package com.orange.ods.app.ui
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Comp... | 83 | Kotlin | 5 | 16 | af1ab4b393de041c1f9037053c567d7c7a663b37 | 4,397 | ods-android | MIT License |
compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithInterfaces.fir.kt | android | 263,405,600 | false | null | // Interface AnotherInterface
// \ /
// \/
// DerivedInterface
//
interface Interface {
fun foo() {}
fun ambiguous() {}
val ambiguousProp: Int
get() = 222
}
interface AnotherInterface {
fun ambiguous() {}
val ambiguousProp: Int
get() = 333
}
interface Der... | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 574 | kotlin | Apache License 2.0 |
src/main/kotlin/com/yapp/itemfinder/domain/item/dto/ItemWithDueDateResponse.kt | YAPP-Github | 561,172,653 | false | null | package com.yapp.itemfinder.domain.item.dto
import com.yapp.itemfinder.api.exception.InternalServerException
import com.yapp.itemfinder.common.DateTimeFormatter.YYYYMMDD
import com.yapp.itemfinder.domain.item.ItemEntity
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.temporal.ChronoUnit
dat... | 0 | Kotlin | 0 | 2 | abc2ec81c76cbaad4a08e140bf94d28d10f06d5a | 1,124 | 21st-Android-Team-2-BE | Apache License 2.0 |
src/main/kotlin/cloud/fastreport/model/UpdateEmailTaskVM.kt | FastReports | 761,180,912 | false | {"Kotlin": 1252211} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package cloud.fastreport.model
import cloud.fas... | 0 | Kotlin | 1 | 0 | f75976bb5651bc4875ce7c8b1973b6e4d9eab6b4 | 1,356 | FastReport-Cloud-Kotlin | MIT License |
src/main/java/ro/dob/materialicons/Resizer.kt | andob | 144,163,102 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 19, "Java": 1} | package ro.dob.materialicons
import java.awt.Image
import java.awt.image.BufferedImage
import java.io.File
import javax.imageio.ImageIO
fun resizePNGIcon(file : File, widthInDp : Int, heightInDp : Int)
{
val image=ImageIO.read(file)
val widthInPx=(image.width*widthInDp)/48
val heightInPx=(image.height*hei... | 1 | null | 1 | 1 | 7f638119e319a8395c48c9d5818b43eb13eaa244 | 664 | materialicons_cli | Apache License 2.0 |
aws-sdk-android-iot-ktx/src/main/java/io/github/crow_misia/aws/iot/AWSIoTSecurityTokenServiceClient.kt | crow-misia | 429,544,850 | false | {"Kotlin": 174562} | /**
* Copyright (C) 2023 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 1 | Kotlin | 0 | 0 | cf78440c45485513c4abe3fbbb0f3268eee3f682 | 4,481 | aws-sdk-android-ktx | Apache License 2.0 |
room/room-runtime/src/test/java/androidx/room/InvalidationLiveDataContainerTest.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... | 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 3,520 | androidx | Apache License 2.0 |
mulighetsrommet-api/src/test/kotlin/no/nav/mulighetsrommet/api/avtaler/AvtaleValidatorTest.kt | navikt | 435,813,834 | false | {"Kotlin": 1643844, "TypeScript": 1436808, "SCSS": 40738, "JavaScript": 27458, "PLpgSQL": 14591, "Handlebars": 3189, "HTML": 2263, "Dockerfile": 1423, "CSS": 1145, "Shell": 396} | package no.nav.mulighetsrommet.api.avtaler
import io.kotest.assertions.arrow.core.shouldBeLeft
import io.kotest.assertions.arrow.core.shouldBeRight
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.collections.shouldContainAll
import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
import... | 4 | Kotlin | 2 | 7 | f8fd04c7473bc676b019bbd39f578758b6451801 | 32,200 | mulighetsrommet | MIT License |
app/src/main/kotlin/com/zaiming/android/gallery/databse/converters/Converters.kt | qiuzaiming | 456,448,337 | false | {"Kotlin": 295953} | package com.zaiming.android.gallery.databse.converters
import android.net.Uri
import androidx.room.TypeConverter
/**
* @author zaiming
*/
class Converters {
@TypeConverter
fun stringToUri(value: String?): Uri? = value?.let { Uri.parse(it) }
@TypeConverter
fun uriToString(uri: Uri?) = uri?.toString()
}
| 1 | Kotlin | 0 | 1 | 1c47caffb2063c3e7ccd5c4b32893d06cf11ffdb | 317 | gallery | Apache License 2.0 |
shared/src/commonMain/kotlin/by/game/binumbers/base/movement/MoveDirection.kt | alexander-kulikovskii | 565,271,232 | false | {"Kotlin": 454229, "Swift": 3274, "Ruby": 2480, "Shell": 622} | package by.game.binumbers.base.movement
import by.game.binumbers.base.model.Area
import by.game.binumbers.base.movement.action.MoveToDownAction
import by.game.binumbers.base.movement.action.MoveToLeftAction
import by.game.binumbers.base.movement.action.MoveToRightAction
import by.game.binumbers.base.movement.action.Mo... | 0 | Kotlin | 0 | 10 | 66b1678b47a96a52ebef467111d1d4854a37486a | 789 | 2048-kmm | Apache License 2.0 |
app/src/main/java/com/umidsafarov/pokehead/domain/use_case/GetPokemonUseCase.kt | umidsafarov | 598,935,453 | false | null | package com.umidsafarov.pokehead.domain.use_case
import com.umidsafarov.pokehead.common.Resource
import com.umidsafarov.pokehead.domain.model.Pokemon
import com.umidsafarov.pokehead.domain.repository.PokeheadRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GetPokemonUseCase @Inject cons... | 0 | Kotlin | 0 | 0 | b956b62cbff7c577522cefe5f88876cebddfc690 | 517 | pokehead | MIT License |
stream_component/src/main/java/com/xyoye/stream_component/ui/activities/smb_file/SmbFileActivity.kt | kaedei | 395,177,024 | false | null | package com.xyoye.stream_component.ui.activities.smb_file
import android.content.Intent
import android.view.KeyEvent
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.xyoye.common_comp... | 57 | null | 67 | 8 | 1e2bbe520287c3ebf056ffdb3d00c07edf7946fb | 5,482 | DanDanPlayForAndroid | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/lex/CfnBotBotAliasLocaleSettingsPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.lex
import io.cloudshiftdev.awscdkdsl.common.CdkDslMarker... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 2,672 | awscdk-dsl-kotlin | Apache License 2.0 |
app/shared/sqldelight/testing/src/commonMain/kotlin/build/wallet/sqldelight/dummy/DummyDataEntityQueries.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.sqldelight.dummy
import app.cash.sqldelight.Query
import app.cash.sqldelight.db.SqlCursor
import app.cash.sqldelight.db.SqlDriver
import build.wallet.sqldelight.ThrowingSqlDriver
/**
* Imitates SqlDelight's generated queries class, if we had a `dummy.sq` and used SqlDelight plugin.
*/
class Dum... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 1,456 | bitkey | MIT License |
compPaccounts/src/main/java/com/effective/android/component/paccounts/vm/ArticleViewModel.kt | YummyLau | 118,240,800 | false | null | package com.effective.android.component.paccounts.vm
import androidx.lifecycle.ViewModel
import com.effective.android.base.rxjava.RxSchedulers
import com.effective.android.component.blog.bean.Article
import com.effective.android.component.paccounts.data.PaccountsRepository
import com.effective.android.service.net.Base... | 1 | null | 32 | 187 | f9bad2216051e5b848b2d862cab7958f1bcdc5e8 | 680 | AndroidModularArchiteture | MIT License |
app/src/main/java/ac/uk/hope/osmviewerjetpack/data/network/musicbrainz/responses/SearchArtistsResponse.kt | movedaccount-droid | 796,686,976 | false | {"Kotlin": 153945, "TeX": 15257} | package ac.uk.hope.osmviewerjetpack.data.network.musicbrainz.responses
import ac.uk.hope.osmviewerjetpack.data.network.musicbrainz.model.ArtistNetwork
import ac.uk.hope.osmviewerjetpack.data.network.musicbrainz.model.toLocal
import kotlinx.serialization.Serializable
// model for the api response, which we will then p... | 0 | Kotlin | 0 | 0 | 74c785bdf9eb6b2b3e3be78fae1024469f16b8d9 | 573 | osmviewerjetpack2 | Creative Commons Zero v1.0 Universal |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/solid/BxsBookmarkAltMinus.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.solid
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.graphic... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,382 | compose-icon-collections | MIT License |
newm-server/src/main/kotlin/io/newm/server/features/earnings/EarningsKoinModule.kt | projectNEWM | 447,979,150 | false | {"Kotlin": 2401222, "HTML": 185274, "Dockerfile": 2535, "Shell": 1986, "Procfile": 60} | package io.newm.server.features.earnings
import io.newm.server.features.earnings.repo.EarningsRepository
import io.newm.server.features.earnings.repo.EarningsRepositoryImpl
import org.koin.dsl.module
val earningsKoinModule =
module {
single<EarningsRepository> { EarningsRepositoryImpl(get(), get(), get(),... | 3 | Kotlin | 4 | 10 | 2815acb9d967f4008c43c60f2a58a01f58f4fe45 | 343 | newm-server | Apache License 2.0 |
apps/etterlatte-gyldig-soeknad/src/test/kotlin/no/nav/etterlatte/gyldigsoeknad/OpprettBehandlingRiverTest.kt | navikt | 417,041,535 | false | {"Kotlin": 6969414, "TypeScript": 1668616, "Handlebars": 25499, "Shell": 12687, "HTML": 1734, "CSS": 598, "PLpgSQL": 556, "Dockerfile": 547} | package no.nav.etterlatte.gyldigsoeknad
import io.kotest.matchers.shouldBe
import io.mockk.clearAllMocks
import io.mockk.coVerify
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import io.mockk.verify
import no.nav.etterlatte.behandling.randomSakId
import no.nav.etterlatte.behandling.tilSakId
import n... | 8 | Kotlin | 0 | 6 | cb383baf7c3c2ddf3d2a41e6c3eca4310f5c6d0a | 4,479 | pensjon-etterlatte-saksbehandling | MIT License |
croppylib/src/main/java/com/lyrebirdstudio/croppylib/ui/ImageCropViewModel.kt | lyrebirdstudio | 212,750,589 | false | null | package com.lyrebirdstudio.croppylib.ui
import android.app.Application
import android.graphics.RectF
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.lyrebirdstudio.aspectratiorecyclerviewlib.aspectratio.model.AspectRatio
import com.lyre... | 15 | null | 70 | 989 | 6f8115f4a8a1d632b12ad61e0f9b91a9eae9cdef | 2,488 | Croppy | Apache License 2.0 |
ui/src/main/java/com/doordeck/sdk/common/manager/Doordeck.kt | sgerogia | 497,347,433 | false | null | package com.doordeck.sdk.common.manager
import android.annotation.SuppressLint
import android.content.Context
import android.text.TextUtils
import android.util.Log
import com.doordeck.sdk.BuildConfig
import com.doordeck.sdk.common.events.EventsManager
import com.doordeck.sdk.common.events.IEventCallback
import com.doo... | 1 | null | 3 | 1 | e7e9aabfeda8f3ce371fa621607ab92676f833d8 | 14,349 | doordeck-sdk-java | Apache License 2.0 |
modulecheck-api/src/main/kotlin/modulecheck/api/context/ManifestFiles.kt | RBusarow | 316,627,145 | false | null | /*
* Copyright (C) 2021-2022 Rick Busarow
* 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 ag... | 8 | null | 7 | 95 | 24e7c7667490630d30cf8b59cd504cd863cd1fba | 2,162 | ModuleCheck | Apache License 2.0 |
stencil/src/main/kotlin/io/ight/gradle/stencil/properties/Property.kt | WOCOMLABS | 796,096,413 | false | {"Kotlin": 36246} | package io.ight.stencil.properties
/**
* This object holds the properties related to different components of the application.
*/
object Property {
/**
* This object holds the properties related to Docker Compose.
*/
object DockerCompose {
/**
* The name of the Docker container.
... | 3 | Kotlin | 0 | 0 | eb5afa7cfe7187297787539721d50ea4891b8767 | 2,117 | artesano | MIT License |
opensrp-path-zeir/src/main/java/org/smartregister/path/reporting/monthly/indicator/ReportIndicatorFragment.kt | opensrp | 306,545,484 | false | null | package org.smartregister.uniceftunisia.reporting.monthly.indicator
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import org.smartregister.uniceftunisia.R
/**
* Main [Fragment] subclass for ReportIndicator.
* ... | 24 | null | 5 | 1 | e2fe71b921186d8944d863f3be2d5522a899dfc3 | 614 | opensrp-client-path-zeir | Apache License 2.0 |
kotlin-ffmpeg-thumbnails/src/main/java/com/cleveroad/bootstrap/kotlin_ffmpeg_thumbnails/model/Thumbnail.kt | Cleveroad | 114,619,348 | false | null | package com.cleveroad.bootstrap.kotlin_ffmpeg_thumbnails.model
import android.graphics.Bitmap
data class Thumbnail(var fileLength: Long,
var filePath: String,
var imageFormat: String,
var timeFromVideo: Long,
var bitmap: Bitmap) | 3 | Kotlin | 6 | 38 | 7bc51f35e26b1f0ca600422a57fc37b2231b726a | 314 | Bootstrap | The Unlicense |
app/src/main/java/at/spiceburg/roarfit/features/auth/AuthActivity.kt | alex-burghuber | 198,246,710 | false | {"Kotlin": 131929, "Java": 4897} | package at.spiceburg.roarfit.features.auth
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Build
import android.os.Bundle
import android.security.keystore.KeyGenParamete... | 0 | Kotlin | 0 | 0 | be33da0b3fe027a85ea301a784b0e6605b0bb3ac | 16,362 | RoarFit-Android | Apache License 2.0 |
apollo-integration/src/test/java/com/apollographql/apollo/ApolloCancelCallTest.kt | apollostack | 69,469,299 | false | null | package com.apollographql.apollo
import com.apollographql.apollo.Utils.immediateExecutor
import com.apollographql.apollo.Utils.immediateExecutorService
import com.apollographql.apollo.Utils.readFileToString
import com.apollographql.apollo.api.Input.Companion.fromNullable
import com.apollographql.apollo.api.Response
im... | 22 | null | 531 | 2,897 | f16ef0f4020af7a07c200f0fdcf1dac977d63637 | 7,205 | apollo-android | MIT License |
solar/src/main/java/com/chiksmedina/solar/lineduotone/videoaudiosound/UploadTrack2.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.lineduotone.videoaudiosound
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.StrokeCa... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 3,584 | SolarIconSetAndroid | MIT License |
http4k-multipart/src/test/kotlin/org/http4k/lens/MultipartFormTest.kt | http4k | 86,003,479 | false | null | package org.http4k.lens
import com.natpryce.hamkrest.absent
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import com.natpryce.hamkrest.hasSize
import com.natpryce.hamkrest.isEmpty
import com.natpryce.hamkrest.throws
import org.http4k.core.Body
import org.http4k.core.ContentType... | 34 | null | 250 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 6,719 | http4k | Apache License 2.0 |
ychat/src/commonMain/kotlin/co/yml/ychat/domain/mapper/ChatCompletionsMapper.kt | yml-org | 590,561,356 | false | null | package co.yml.ychat.domain.mapper
import co.yml.ychat.data.dto.ChatCompletionParamsDto
import co.yml.ychat.data.dto.ChatCompletionsDto
import co.yml.ychat.data.dto.ChatMessageDto
import co.yml.ychat.domain.model.ChatCompletionsParams
import co.yml.ychat.domain.model.ChatMessage
internal fun ChatCompletionsDto.toChat... | 1 | Kotlin | 2 | 72 | 0da7ababedec465eefcdf3608b6c3e8f6dc36c16 | 828 | ychat | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.