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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kafka-streams-base/src/main/kotlin/edu/harvard/gis/hhypermap/bop/kafkastreamsbase/DwStreamApplication.kt | blewis | 70,943,797 | true | {"Kotlin": 104530, "Shell": 7012, "JavaScript": 1942} | /*
* Copyright 2016 President and Fellows of Harvard College
*
* 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... | 0 | Kotlin | 0 | 0 | 211d1cc7dcb6871fc73cef727e79d707025694ac | 6,677 | hhypermap-bop | Apache License 2.0 |
component/src/main/java/com/trian/component/screen/SplashScreen.kt | triandamai | 529,928,713 | false | {"Kotlin": 256410} | package com.trian.component.screen
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.u... | 0 | Kotlin | 0 | 0 | 608d28a7800a39ee9ded14c6d85b7e7db770d01a | 2,456 | test-application | Apache License 2.0 |
src/main/kotlin/org/rust/cargo/toolchain/tools/Rustc.kt | Yesterday17 | 305,358,790 | true | {"Kotlin": 6803132, "Rust": 116360, "Python": 67346, "Lex": 20073, "HTML": 16600, "Java": 1274, "Shell": 760, "RenderScript": 129} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.cargo.toolchain.tools
import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.vfs.LocalFileSystem
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapiext.isUn... | 0 | null | 0 | 0 | 670daf4f1d66c1ea5a81e831f419c876bb22ca47 | 2,239 | intellij-rust | MIT License |
quickstartVidyo/src/main/java/com/core/network/IApiService.kt | FantasticAndroid | 741,009,262 | false | {"Kotlin": 190389} | package com.core.network
import com.core.network.services.tokenservice.model.AuthServiceRequestDTO
import com.core.network.services.tokenservice.model.AuthServiceResponseDTO
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Url
interface IApiService {
@POST
suspend fun getToken(
... | 0 | Kotlin | 0 | 0 | ec39154af035aa738a38e88038b6132bac9cac65 | 435 | TwilioVidyoMigration | MIT License |
code/app/src/main/java/com/istudio/media3/demos/audio/ui/AudioDemoVm.kt | devrath | 789,075,516 | false | {"Kotlin": 44509} | package com.istudio.media3.demos.audio.ui
import android.app.Notification
import android.app.PendingIntent
import android.content.Context
import android.net.Uri
import android.util.Log
import androidx.annotation.OptIn
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.media3.c... | 0 | Kotlin | 0 | 0 | 4a27cca9d9a8c4cead27c82f1f77cf5d6493750f | 11,056 | MediaAlchemySuite | Apache License 2.0 |
app/src/main/java/com/haznedar/uploadimage/data/repository/MainRepositoryInterface.kt | Ryuk-C | 464,173,508 | false | {"Kotlin": 25481} | package com.haznedar.uploadimage.data.repository
import com.haznedar.uploadimage.data.model.ImageUploadModel
import com.haznedar.uploadimage.util.Resource
import okhttp3.MultipartBody
interface MainRepositoryInterface {
suspend fun uploadImage(id:String, rotation:String, key:String, code:String, file:MultipartBo... | 0 | Kotlin | 0 | 3 | ff8da33e2a9150eef550e441bd482eea8b3fceee | 361 | UploadImageWithRetrofit | MIT License |
engine/src/main/kotlin/kotli/engine/template/rule/ReplaceMarkedText.kt | kotlitecture | 741,006,904 | false | {"Kotlin": 99184} | package kotli.engine.template.rule
import kotli.engine.template.FileRule
import kotli.engine.template.TemplateFile
/**
* Replaces all occurrences of the given #text with the provided #replacer text
* but ONLY in lines containing #marker.
*
* @param text The text to be replaced.
* @param marker The text that must... | 0 | Kotlin | 0 | 1 | abba606fd4505e3bf1019765a74ccb808738c130 | 1,069 | kotli-engine | MIT License |
app/src/main/java/com/punksta/apps/robopoetry/screens/writerLists/MainActivity.kt | punksta | 108,658,444 | false | null | package com.punksta.apps.robopoetry.screens.writerLists
import android.content.Intent
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.widget.TextView
import com.punksta.apps.robopoetry.R
import com.punksta.apps.robopoetry.entity... | 0 | Kotlin | 0 | 0 | 5cf989dadaabe467b3fee23f4de75c89a341c898 | 2,530 | Robopoetry | MIT License |
sms-core/src/main/kotlin/team/msg/sms/domain/teacher/model/Teacher.kt | GSM-MSG | 625,717,097 | false | {"Kotlin": 474003, "Shell": 1480, "Dockerfile": 288} | package team.msg.sms.domain.teacher.model
import team.msg.sms.common.annotation.Aggregate
import java.util.UUID
@Aggregate
data class Teacher (
val id: UUID,
val userId: UUID,
) | 8 | Kotlin | 0 | 9 | bd488c2eee0c6cb11be9cec8dd73b5555f5f7423 | 187 | SMS-BackEnd | MIT License |
build/icons/compose/vitaminicons/line/Lightning.kt | Decathlon | 511,157,831 | false | {"Kotlin": 4443549, "HTML": 226066, "Swift": 163852, "TypeScript": 60822, "CSS": 53872, "JavaScript": 33103, "Handlebars": 771} | package com.decathlon.vitamin.compose.vitaminicons.line
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... | 12 | Kotlin | 5 | 33 | c2c9cfa43128d412b7b2841cabd76952a13db2e1 | 1,833 | vitamin-design | Apache License 2.0 |
messaging-ui/src/main/java/com/nabla/sdk/core/ui/helpers/RecyclerViewExtension.kt | AchrafAmil | 488,648,507 | false | {"Kotlin": 305347} | package com.nabla.sdk.core.ui.helpers
import androidx.recyclerview.widget.LinearSmoothScroller
import androidx.recyclerview.widget.RecyclerView
internal fun RecyclerView.scrollToTop() {
if ((adapter?.itemCount ?: 0) > 0) {
scrollToPosition(0)
}
}
private const val SCROLL_DIRECTION_TOP = -1
private co... | 0 | null | 1 | 0 | ff93b3c6e58ac0969b7be402b50c292bdfa8f534 | 1,334 | nabla-android | MIT License |
wear/src/main/kotlin/com/weartools/weekdayutccomp/complication/FlashlightComplicationService.kt | amoledwatchfaces | 571,962,206 | false | {"Kotlin": 342373} | /*
* Copyright 2022 amoledwatchfaces™
* <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 2 | Kotlin | 7 | 64 | 03ae8843ddf416d48836ec0e803395c88fe94501 | 3,761 | Complications-Suite-Wear-OS | Apache License 2.0 |
fluentui_listitem/src/main/java/com/microsoft/fluentui/tokenized/listitem/ListItem.kt | anthonysidesap | 454,785,267 | true | {"Kotlin": 2243120, "Shell": 8996} | package com.microsoft.fluentui.tokenized.listitem
import androidx.compose.animation.*
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.focusa... | 1 | Kotlin | 2 | 7 | 2b0d10f7b754c189fea210d279487617e5661eaa | 42,183 | fluentui-android | MIT License |
ledger/src/test/kotlin/org/knowledger/ledger/test/TestPubKeyCodec.kt | fakecoinbase | 282,563,487 | false | null | package org.knowledger.ledger.test
import assertk.assertThat
import assertk.assertions.isEqualTo
import org.junit.jupiter.api.Test
import org.knowledger.base64.base64Decoded
import org.knowledger.base64.base64Encoded
import org.knowledger.ledger.core.base.hash.toHexString
import org.knowledger.ledger.crypto.EncodedPri... | 0 | Kotlin | 0 | 0 | 8bc64987e1ab4d26663064da06393de6befc30ae | 2,605 | SeriyinslashKnowLedger | MIT License |
jetpack-loading/src/main/java/com/spr/jetpack_loading/components/indicators/CircularPulsatingIndicator.kt | MahboubehSeyedpour | 671,910,347 | false | {"Kotlin": 102893} | package com.spr.jetpack_loading.components.indicators
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfini... | 4 | Kotlin | 1 | 9 | 870325c7d41c4213447ddc7e18fb00fb2afedc92 | 2,606 | jetpack-loading | Apache License 2.0 |
app/src/main/java/com/mincor/flair/proxies/UserProxy.kt | Hazer | 143,337,743 | true | {"Kotlin": 115715} | package com.mincor.flair.proxies
import com.mincor.flair.activity.log
import com.mincor.flair.events.Events.ACCOUNT_CLEAR
import com.mincor.flair.proxies.vo.UserModel
import com.mincor.flairframework.interfaces.sendNotification
import com.mincor.flairframework.patterns.proxy.Proxy
import kotlinx.coroutines.experimenta... | 0 | Kotlin | 0 | 0 | 56587a60bd79e626cb7bf9b341e69e893d431fe8 | 1,754 | Flair | The Unlicense |
src/main/java/ir/mmd/intellijDev/Actionable/caret/movement/settings/UI.kt | MohammadMD1383 | 424,846,615 | false | {"Kotlin": 285599, "Java": 37764, "Lex": 3746} | package ir.mmd.intellijDev.Actionable.caret.movement.settings
import com.intellij.openapi.observable.properties.ObservableMutableProperty
import com.intellij.ui.dsl.builder.Align
import com.intellij.ui.dsl.builder.bindSelected
import com.intellij.ui.dsl.builder.bindText
import com.intellij.ui.dsl.builder.panel
import ... | 34 | Kotlin | 3 | 15 | 5bc3a2dfed224d6bdaadc1ad718101772259eba1 | 6,114 | Actionable | MIT License |
android-tools-plugin/src/main/java/com/likethesalad/tools/android/plugin/base/AndroidToolsPluginConsumer.kt | LikeTheSalad | 413,299,542 | false | {"Kotlin": 24840} | package com.likethesalad.tools.android.plugin.base
import com.likethesalad.tools.android.plugin.AndroidToolsPlugin
import com.likethesalad.tools.android.plugin.extension.AndroidToolsPluginExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
open class AndroidToolsPluginConsumer : Plugin<Project> {
... | 0 | Kotlin | 0 | 1 | 1b5c210315a549e727511850320456cad559cfe3 | 958 | android-gradle-tools | MIT License |
oauth2-auth-server/src/main/kotlin/com/qingzhu/oauth2authserver/config/AuthorizationServerConfig.kt | nedphae | 322,789,778 | false | {"Kotlin": 744301, "ANTLR": 281490, "Java": 48298, "Dockerfile": 375} | package com.qingzhu.oauth2authserver.config
import com.nimbusds.jose.jwk.JWKSet
import com.nimbusds.jose.jwk.RSAKey
import com.qingzhu.oauth2authserver.security.StaffTokenEnhancer
import net.minidev.json.JSONObject
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotat... | 1 | Kotlin | 18 | 42 | 217b4658508763133e1a5b6a96763a14e9f6f4ad | 5,579 | contact-center | Apache License 2.0 |
platform/src/main/kotlin/researchstack/backend/application/port/incoming/dashboard/UpdateChartUseCase.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297740, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.application.port.incoming.dashboard
interface UpdateChartUseCase {
suspend fun updateChart(
studyId: String,
dashboardId: String,
chartId: String,
command: UpdateChartCommand
)
}
| 1 | Kotlin | 9 | 29 | edd76f219cdb10c8151b8ac14175b1e818a6036a | 250 | backend-system | Apache License 2.0 |
app/src/main/java/com/sunnyweather/android/logic/dao/PlaceDao.kt | yinxianshu | 673,777,644 | false | null | package com.sunnyweather.android.logic.dao
import android.content.Context
import androidx.core.content.edit
import com.google.gson.Gson
import com.sunnyweather.android.SunnyWeatherApplication
import com.sunnyweather.android.logic.model.Place
// 数据直接访问层Dao
object PlaceDao {
// 存储Place对象
fun savePlace(place: P... | 0 | Kotlin | 0 | 0 | 631eb816587b9f1dfb6fea52dcf09ab3b156a2ac | 972 | SunnyWeather | Apache License 2.0 |
domain/data/src/commonMain/kotlin/mehiz/abdallah/progres/data/database/DaosModule.kt | abdallahmehiz | 830,308,163 | false | {"Kotlin": 449026, "Swift": 621} | package mehiz.abdallah.progres.data.database
import mehiz.abdallah.progres.data.daos.AcademicDecisionDao
import mehiz.abdallah.progres.data.daos.AcademicPeriodDao
import mehiz.abdallah.progres.data.daos.AccommodationDao
import mehiz.abdallah.progres.data.daos.BacGradeDao
import mehiz.abdallah.progres.data.daos.BacInfo... | 1 | Kotlin | 0 | 8 | 331d3c6c8caa126fdc7df033f2574cd3aa8f8e80 | 1,739 | progres | MIT License |
app/src/main/java/com/mvvm/weatherapp/ui/detail/adapter/DetailPagerAdapter.kt | OzcanAlasalvar | 272,557,885 | false | null | package com.mvvm.weatherapp.ui.detail.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import com.mvvm.weatherapp.data.model.CityModel
import com.mvvm.weatherapp.ui.detail.DetailFragment
class DetailPagerAdapter(fm: FragmentMa... | 0 | Kotlin | 0 | 3 | 6e2423aaaec1dd7c1928d4b9de07d30a98eb860c | 780 | mvvm_weather_app | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/CircleExclamationCheck.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,197 | icons | MIT License |
gradle-plugin/src/main/kotlin/dev/teogor/winds/gradle/docs/StandardDocsModuleHandler.kt | teogor | 713,830,828 | false | {"Kotlin": 243916} | /*
* 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 | 4 | 71cf37d06289def68684450a7825b255ef2d97fe | 6,029 | winds | Apache License 2.0 |
app/src/main/java/me/gm/cleaner/plugin/app/BaseFragment.kt | MaterialCleaner | 390,636,986 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 2 | null | 9 | 155 | 1e164b7ab85436b674577efbe44b832efa60a7a3 | 3,651 | Media-Provider-Manager | Apache License 2.0 |
app/src/main/java/com/hyouteki/projects/memey/adapters/MemeAdapter.kt | Hyouteki | 581,155,877 | false | {"Kotlin": 114267} | package com.hyouteki.projects.memey.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.hyouteki.projects.memey.R
imp... | 0 | Kotlin | 0 | 6 | f5fffc4e18d196404fd407ae648f66faf9f8121e | 2,708 | Memey | MIT License |
app-lifelike/src/main/java/com/example/lifelike/composable/loggedout/RegConfirmSmsCode.kt | zsoltk | 228,477,554 | false | null | package com.example.lifelike.composable.loggedout
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compos... | 8 | Kotlin | 36 | 644 | e2feeaab2a3226874830d487b94cbd5950d9954e | 1,415 | compose-router | Apache License 2.0 |
nebulosa-vizier/src/test/kotlin/VizierServiceTest.kt | tiagohm | 568,578,345 | false | null | import io.kotest.core.annotation.Ignored
import io.kotest.core.spec.style.StringSpec
import nebulosa.vizier.VizierService
@Ignored
class VizierServiceTest : StringSpec() {
init {
"catalogs" {
val vizier = VizierService()
}
}
}
| 0 | Kotlin | 0 | 0 | bdd254b24d7c146a79550bd4316a13b43d8a199e | 265 | nebulosa | MIT License |
platform/android/goldengate/GoldenGateBindings/src/test/kotlin/com/fitbit/goldengate/bindings/coap/data/OptionsBuilderTest.kt | Fitbit | 252,750,226 | false | {"C": 2519513, "Kotlin": 897890, "Swift": 806092, "C++": 805305, "CMake": 121256, "Python": 115131, "Objective-C": 88567, "JavaScript": 20929, "HTML": 13841, "Shell": 2041, "Dockerfile": 1379, "Ruby": 252} | // Copyright 2017-2020 Fitbit, Inc
// SPDX-License-Identifier: Apache-2.0
package com.fitbit.goldengate.bindings.coap.data
import org.junit.Assert.*
import org.junit.Test
class OptionsBuilderTest {
@Test
fun shouldNotAddOptionNumberThatIsNotSupported() {
/** 996 format is not supported by [OptionNum... | 14 | C | 32 | 290 | 417aad0080bdc8b20c27cf8fff2455c20e6f3adb | 2,414 | golden-gate | Apache License 2.0 |
src/main/kotlin/com/cjbooms/fabrikt/generators/ValidationAnnotations.kt | cjbooms | 229,844,927 | false | null | package com.cjbooms.fabrikt.generators
import com.squareup.kotlinpoet.AnnotationSpec
import com.squareup.kotlinpoet.ClassName
object ValidationAnnotations {
private val minClass = ClassName("javax.validation.constraints", "Min")
private val maxClass = ClassName("javax.validation.constraints", "Max")
priva... | 14 | Kotlin | 11 | 71 | ea657bb9c4fb39310cb16db87191ce395a631d6a | 2,436 | fabrikt | Apache License 2.0 |
tools-java-gen/src/main/kotlin/com/afoxer/javagen/TraitGenerator.kt | NeoChow | 187,137,725 | true | {"Rust": 152601, "Swift": 138377, "Kotlin": 26421, "C": 7920, "Java": 2939, "Objective-C": 1004, "Shell": 881} | package com.afoxer.javagen
import com.squareup.javapoet.*
import com.squareup.javapoet.ArrayTypeName
import java.io.Serializable
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.atomic.AtomicLong
import javax.lang.model.element.Modifier
class TraitGenerator(val desc: TraitDesc, val pkg: Stri... | 0 | Rust | 0 | 0 | 9399c9c8c811dcfe44b12f9930f10c8748c71621 | 15,518 | rsbind | Apache License 2.0 |
app/src/main/java/com/karrar/movieapp/domain/usecases/GetReviewsUseCase.kt | Salmon-family | 540,624,429 | false | {"Kotlin": 445900} | package com.karrar.movieapp.domain.usecases
import com.karrar.movieapp.data.repository.MovieRepository
import com.karrar.movieapp.data.repository.SeriesRepository
import com.karrar.movieapp.domain.enums.MediaType
import com.karrar.movieapp.domain.mappers.ReviewMapper
import com.karrar.movieapp.domain.models.Review
imp... | 1 | Kotlin | 26 | 76 | d8aa22e528208c42d89a3574f1da025a49f23aed | 940 | MovieApp | Apache License 2.0 |
app/src/main/java/com/github/vitorfg8/pettracks/presentation/components/BaseTextField.kt | vitorfg8 | 762,248,139 | false | {"Kotlin": 117300} | package com.github.vitorfg8.pettracks.presentation.components
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.material3.TextField... | 0 | Kotlin | 0 | 0 | 06fe12d801880436687fc7f1ed0277515200afcf | 2,172 | PetTracks | MIT License |
app/src/main/java/com/random/user/data/model/LocationEntity.kt | reneargento | 401,164,552 | false | null | package com.random.user.data.model
data class LocationEntity(
val street: StreetEntity,
val city: String,
val state: String
) | 0 | Kotlin | 0 | 0 | 8cb388dd1cf03dcbca0f05009f4cdebe7ac9d5bc | 142 | android-user-list | MIT License |
src/main/kotlin/fe/block/CableBlock.kt | natanfudge | 217,017,390 | false | null | package fe.block
//import fe.block.CableBlock.Companion.Connection.*
import alexiil.mc.lib.multipart.api.MultipartContainer
import alexiil.mc.lib.multipart.api.NativeMultipart
import fabricktx.api.*
import fe.blockentity.CableBlockEntity
import fe.client.model.*
import fe.network.NetworkBlock
import fe.part.CablePart
... | 0 | Kotlin | 0 | 0 | 0f9e392bcf2cc0df628cf6d22786759be256284b | 6,073 | Fabricated-Energistics | MIT License |
src/year2021/07/Day07.kt | Vladuken | 573,128,337 | false | {"Kotlin": 252340, "Python": 16475} | package year2021.`07`
import readInput
import kotlin.math.abs
fun main() {
fun calculateFullAmountOfFuelToPosition(
position: Int,
map: Map<Int, Int>,
modifier: (Int) -> Int
): Int {
return map.keys.sumOf {
modifier(abs(it - position)) * map[it]!!
}
}
... | 0 | Kotlin | 0 | 5 | 979ec3ce9dd625d65d95f513e6500b3fe26664ef | 1,190 | KotlinAdventOfCode | Apache License 2.0 |
app/src/main/java/io/baranmichal/thecaseagainstlivedata/movies/presenter/MoviesPresenterFactory.kt | PawlikMichal25 | 143,072,149 | false | null | package io.baranmichal.thecaseagainstlivedata.movies.presenter
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import io.baranmichal.thecaseagainstlivedata.base.rx.AppSchedulers
import io.baranmichal.thecaseagainstlivedata.movies.data.MoviesRepository
import javax.inject.Inject
... | 0 | Kotlin | 4 | 12 | 107d65a273d16ccf4d9d9c751b602a7be8cc0e39 | 808 | LifecycleAwarePresenter | Apache License 2.0 |
app/src/main/java/com/hieuwu/groceriesstore/presentation/adapters/GridListItemAdapter.kt | hieuwu | 360,573,503 | false | {"Kotlin": 296333} | package com.hieuwu.groceriesstore.presentation.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.hieuwu.groceriesstor... | 28 | Kotlin | 36 | 169 | 821e22a055b49216dab4be794628f2779d7f779b | 2,264 | android-groceries-store | MIT License |
analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/variables/classPropertyReassignment.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | class Foo {
var x: Int = 0
fun test() {
<expr>x = 1</expr>
}
} | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 83 | kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/api/InntektsmeldingRequest.kt | heyvard | 345,947,797 | false | {"Gradle": 1, "Markdown": 2, "CODEOWNERS": 1, "Gradle Kotlin DSL": 1, "SQL": 10, "Dockerfile": 3, "INI": 2, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Java Properties": 2, "Java": 45, "XML": 9, "Kotlin": 100, "YAML": 7, "SVG": 1} | package no.nav.syfo.api
import no.nav.syfo.domain.inntektsmelding.Inntektsmelding
data class InntektsmeldingRequest(
val inntektsmelding: Inntektsmelding
)
| 1 | null | 1 | 1 | fe28e5708a0fdbc37809cf1a1139e216d764ddea | 162 | syfoinntektsmelding | MIT License |
window/window/src/main/java/androidx/window/layout/util/ActivityCompatHelperApi24.kt | androidx | 256,589,781 | 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... | 29 | null | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 937 | androidx | Apache License 2.0 |
app/src/main/java/com/kpstv/vpn/ui/components/Header.kt | reyadrahman | 391,898,449 | true | {"Java Properties": 2, "Shell": 1, "Markdown": 2, "Batchfile": 1, "INI": 1, "Proguard": 3, "Kotlin": 49, "Java": 55} | package com.kpstv.vpn.ui.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Divider
import androidx.compose.material.IconButton
import android... | 0 | null | 0 | 0 | d5d7779f6db8329f260e92a96258eaf69853309c | 1,879 | Gear-VPN | Apache License 2.0 |
bootstrap/src/main/kotlin/jp/co/soramitsu/bootstrap/utils/Utils.kt | d3ledger | 129,921,969 | false | null | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package jp.co.soramitsu.bootstrap.utils
import com.d3.eth.sidechain.util.extractVRS
import com.d3.eth.sidechain.util.signUserData
import jp.co.soramitsu.bootstrap.dto.SigsData
import org.web3j.crypto.ECKeyPair
import org.w... | 2 | null | 5 | 15 | 0e719a1a8fcdce23933df68749028befe40cbc50 | 1,100 | notary | Apache License 2.0 |
essentials-module-teleport/src/main/kotlin/io/github/nyliummc/essentials/commands/HomeCommand.kt | CamperSamu | 277,823,628 | true | {"Kotlin": 208417, "Java": 21772} | /*
* MIT License
*
* Copyright (c) NyliumMC
*
* 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, merg... | 0 | null | 0 | 0 | d7db2c4638a36ceba43f1d626fa1e36095c1ddc0 | 7,995 | Essentials | MIT License |
backend.native/tests/codegen/innerClass/generic.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package codegen.innerClass.generic
import kotlin.test.*
class Outer {
inner class Inner<T>(val t: T) {
fun box() = t
}
}
fun box(): String {
if (... | 0 | Kotlin | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 486 | kotlin-native | Apache License 2.0 |
src/main/kotlin/kobting/thepain/patches/LibraryTypeEnum.kt | Kobting | 137,681,336 | false | {"Maven POM": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 1, "JSON": 5, "Kotlin": 50} | package kobting.thepain.patches
import com.evacipated.cardcrawl.modthespire.lib.SpireEnum
import com.megacrit.cardcrawl.helpers.CardLibrary
class LibraryTypeEnum {
companion object {
@JvmStatic
@SpireEnum
var THE_PAIN_MAROON: CardLibrary.LibraryType? = null
}
} | 1 | null | 1 | 1 | 674af40076f5682420e5208a06f431c6c33886b9 | 300 | ThePain | MIT License |
src/test/java/ru/tinkoff/kora/kotlin/crud/AppContainer.kt | kora-projects | 861,624,417 | false | {"Gradle": 30, "Java Properties": 17, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "Markdown": 31, "Dockerfile": 30, "Java": 333, "XML": 62, "OASv3-yaml": 8, "OASv2-yaml": 2, "SQL": 10, "INI": 1, "Protocol Buffer": 2, "YAML": 4, "Gradle Kotlin DSL": 2, "Kotlin": 17} | package ru.tinkoff.kora.kotlin.example.crud
import org.slf4j.LoggerFactory
import org.testcontainers.containers.GenericContainer
import org.testcontainers.containers.output.Slf4jLogConsumer
import org.testcontainers.containers.wait.strategy.Wait
import org.testcontainers.images.builder.ImageFromDockerfile
import org.t... | 2 | Java | 0 | 0 | 62e3f2f4f8c5ca9ddf56f1797f641c4a160c21b0 | 1,551 | kora-kotlin-crud-template | Apache License 2.0 |
app/src/main/java/vn/loitp/up/a/cv/wheelView/WheelViewActivity.kt | tplloi | 126,578,283 | false | null | package vn.loitp.up.a.cv.wheelView
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.core.view.isVisible
import com.loitp.annotation.IsAutoAnimation
import com.loitp.annotation.IsFullScreen
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.cor... | 1 | null | 1 | 9 | 1bf1d6c0099ae80c5f223065a2bf606a7542c2b9 | 1,950 | base | Apache License 2.0 |
compiler/testData/diagnostics/tests/inference/varargs/varargsAndPair.kt | udalov | 10,645,710 | false | {"Java": 9931656, "Kotlin": 2142480, "JavaScript": 942412, "C++": 613791, "C": 193807, "Objective-C": 22634, "Shell": 12589, "Groovy": 1267} | fun foo<T: Any>(vararg <!UNUSED_PARAMETER!>ts<!>: T): T? = null
class Pair<A>(a: A)
fun test() {
val v = foo(Pair(1))
<!TYPE_MISMATCH!>v<!>: Int // check that it is not error type
} | 0 | Java | 1 | 6 | 3958b4a71d8f9a366d8b516c4c698aae80ecfe57 | 191 | kotlin-objc-diploma | Apache License 2.0 |
app/src/main/java/com/app/source/response/HomeArticleData.kt | NewNum | 178,140,296 | false | {"Java": 344965, "Kotlin": 56132} | package com.app.source.response
data class HomeArticleData(
val curPage: Int,
val datas: List<Data>,
val offset: Int,
val over: Boolean,
val pageCount: Int,
val size: Int,
val total: Int
)
data class Data(
val apkLink: String,
val audit: Int,
val author: String,
val chapter... | 1 | Java | 1 | 1 | 0bad0395d0b19792804044e34ace7c339524d51f | 951 | framework | Apache License 2.0 |
app/src/main/java/com/walfud/walledemo/MainActivity.kt | walfud | 59,891,387 | false | null | package com.walfud.walledemo
import android.app.Activity
import android.os.Bundle
import android.widget.Toast
import com.walfud.walle.lang.md5
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedI... | 1 | null | 1 | 1 | 471c92a3ac82a046850120f3e1350485749f9256 | 544 | WallE | Apache License 2.0 |
app/src/main/java/io/github/vvb2060/keyattestation/home/HomeViewModel.kt | vvb2060 | 246,764,688 | false | {"Gradle": 3, "INI": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "YAML": 1, "Proguard": 1, "XML": 37, "JSON": 1, "Kotlin": 22, "Java": 16} | package io.github.vvb2060.keyattestation.home
import android.content.ContentResolver
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import android.provider.OpenableColumns
import android.security.KeyStoreException
import android.security... | 5 | Java | 69 | 534 | f11f4cc477e57bdb06b3a3e24362da6462d63696 | 11,990 | KeyAttestation | Apache License 2.0 |
app/src/main/java/br/com/aramizu/idog/modules/main/router/MainRouter.kt | aramizu | 150,366,378 | false | {"Gradle": 4, "Java Properties": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 1, "JSON": 1, "Kotlin": 71, "XML": 34, "Java": 2} | package br.com.aramizu.idog.modules.main.router
import android.content.Intent
import br.com.aramizu.idog.manager.SessionManager
import br.com.aramizu.idog.modules.login.view.LoginActivity
import br.com.aramizu.idog.modules.main.contracts.MainContract
import br.com.aramizu.idog.modules.main.datamanager.MainLocalDataMan... | 1 | null | 1 | 1 | 46c751f33dfeb252a7601e125ec8334fa46798c1 | 1,244 | idog-android | Open LDAP Public License v2.3 |
app/ui/src/main/java/com/fsck/k9m_m/ui/settings/account/HoloColorPickerDialogFragment.kt | EverlastingHopeX | 226,972,945 | false | {"Java": 4218628, "Kotlin": 754602, "Shell": 3176, "HTML": 292} | package com.fsck.k9m_m.ui.settings.account
import android.annotation.SuppressLint
import android.app.Dialog
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.preference.PreferenceDialogFragmentCompat
import android.view.LayoutInflater
import com.fsck.k9m_m.ui.R
import com.google.androi... | 1 | null | 1 | 1 | f611b289828f5b1f27d4274af76c0082c119dec0 | 2,390 | K-9-Modularization | Apache License 2.0 |
plugins/space/src/main/kotlin/com/intellij/space/vcs/review/details/diff/load/SpaceReviewDiffLoader.kt | haarlemmer | 392,603,002 | false | null | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.space.vcs.review.details.diff.load
import circlet.client.api.ProjectKey
import com.intellij.diff.contents.DiffContent
import com.intellij.openapi.project.Pro... | 1 | null | 1 | 1 | de80b70f5507f0110de89a95d72b8f902ca72b3e | 781 | Jvav-Studio-Community | Apache License 2.0 |
plugins/space/src/main/kotlin/com/intellij/space/vcs/review/details/diff/load/SpaceReviewDiffLoader.kt | haarlemmer | 392,603,002 | false | null | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.space.vcs.review.details.diff.load
import circlet.client.api.ProjectKey
import com.intellij.diff.contents.DiffContent
import com.intellij.openapi.project.Pro... | 1 | null | 1 | 1 | de80b70f5507f0110de89a95d72b8f902ca72b3e | 781 | Jvav-Studio-Community | Apache License 2.0 |
src/main/kotlin/graphql/validation/rules/NoFragmentCycles.kt | LarsKrogJensen | 78,951,235 | false | null | package graphql.validation.rules
import graphql.language.FragmentDefinition
import graphql.language.FragmentSpread
import graphql.language.Node
import graphql.validation.IValidationContext
import graphql.validation.LanguageTraversal
import graphql.validation.QueryLanguageVisitor
import graphql.validation.ValidationEr... | 0 | Kotlin | 1 | 3 | aa8e3c645dedf1048e2124d43e1deff28ad16cdf | 3,126 | graphql-kotlin | MIT License |
app/src/main/java/com/zebrostudio/rxlowpoly/Utils.kt | abhriyaroy | 172,889,179 | false | null | package com.zebrostudio.rxlowpoly
import android.content.Context
import android.text.Editable
import android.text.TextWatcher
import android.view.View
import android.view.View.*
import android.widget.Toast
import androidx.annotation.ColorRes
import androidx.annotation.StringRes
import com.google.android.material.textf... | 0 | Kotlin | 5 | 161 | 1d3fee374a1681629b493874e405e8c1b5dc4875 | 1,680 | RxLowpoly | Apache License 2.0 |
kalender3/app/src/main/java/com/example/kalender3/MainActivity.kt | muelletm | 311,107,573 | false | null | package com.example.kalender3
import android.app.Activity
import android.app.AlertDialog
import android.graphics.Color
import android.graphics.ColorMatrix
import android.graphics.ColorMatrixColorFilter
import android.media.MediaPlayer
import android.os.Bundle
import android.os.Handler
import android.util.Log
import an... | 0 | Kotlin | 0 | 0 | 4f8cf5a5d82b2c43803859c1f1672cf564c36a9d | 10,686 | kalender3 | Apache License 2.0 |
onionsoup-kotlin/javalin/src/test/kotlin/onionsoup/DraftViewPage.kt | fride | 297,594,552 | false | null | package onionsoup
import arrow.core.extensions.list.foldable.foldLeft
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.WebElement
class DraftViewPage(private val driver: WebDriver, private val baseUri: String) {
val id = driver.currentUrl.split("/").last()
val custome... | 0 | Kotlin | 0 | 0 | 48e697baf82298baa1166afa05cc18aad051f298 | 1,249 | soupe-a-loignon | The Unlicense |
src/main/kotlin/textsummarizer/services/JwtService.kt | voevoda-org | 808,553,517 | false | {"Kotlin": 48877} | package textsummarizer.services
import com.auth0.jwt.JWT
import com.auth0.jwt.JWTVerifier
import com.auth0.jwt.algorithms.Algorithm
import com.auth0.jwt.interfaces.DecodedJWT
import com.typesafe.config.ConfigFactory
import io.ktor.server.config.HoconApplicationConfig
import org.slf4j.LoggerFactory
import java.util.*
... | 0 | Kotlin | 0 | 0 | e52773e523b687b16cdfc7d8a21d98dd80e949f9 | 2,454 | backend-textsummarizer | Apache License 2.0 |
lib/src/main/kotlin/com/github/hongkongkiwi/certificateutils/serializers/PKCS10CertificationRequestSerializer.kt | hongkongkiwi | 874,054,540 | false | {"Kotlin": 246112} | package com.github.hongkongkiwi.certificateutils.serializers
import com.github.hongkongkiwi.certificateutils.extensions.toPKCS10CertificationRequest
import com.github.hongkongkiwi.certificateutils.extensions.toPem
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import ko... | 0 | Kotlin | 0 | 0 | 808d1b261fc0abfb1b09a1a8f52560577754570f | 1,466 | certificateutils | MIT License |
library/src/commonTest/kotlin/org/oremif/cohere/api/datasets.kt | Oremif | 838,485,647 | false | {"Kotlin": 69498} | package org.oremif.cohere.api
import kotlinx.coroutines.test.runTest
import kotlin.test.Test
class DatasetsTests {
private val token: String = "<<apiKey>>"
private val cohere = Cohere(token) {
clientName("snippet")
}
@Test
fun `create a datasets`() = runTest {
val response = cohe... | 0 | Kotlin | 0 | 0 | abc9e0cca631705158d12adc41912d62b44602cc | 1,084 | cohere-kotlin | Apache License 2.0 |
src/main/kotlin/at/cpickl/gadsu/treatment/dyn/treats/pulse.kt | christophpickl | 56,092,216 | false | null | package at.cpickl.gadsu.treatment.dyn.treats
import at.cpickl.gadsu.persistence.Jdbcx
import at.cpickl.gadsu.persistence.Persistable
import at.cpickl.gadsu.tcm.model.YinYang
import at.cpickl.gadsu.treatment.dyn.DynTreatment
import at.cpickl.gadsu.treatment.dyn.DynTreatmentCallback
import at.cpickl.gadsu.treatment.dyn.... | 43 | Kotlin | 1 | 2 | f6a84c42e1985bc53d566730ed0552b3ae71d94b | 10,076 | gadsu | Apache License 2.0 |
src/WebGlCanvas.kt | cloud-clusterer | 140,957,652 | false | {"Kotlin": 15086, "JavaScript": 824} |
import kotlinx.html.js.onMouseDownFunction
import kotlinx.html.js.onMouseMoveFunction
import kotlinx.html.js.onMouseUpFunction
import org.khronos.webgl.WebGLRenderingContext
import org.w3c.dom.HTMLCanvasElement
import org.w3c.dom.events.Event
import org.w3c.dom.events.MouseEvent
import react.*
import react.dom.*
impor... | 0 | Kotlin | 0 | 0 | 0bd532aaf8490b846c1f31bb091eb452c8a46825 | 3,102 | cluster-gl | Apache License 2.0 |
oldAndroidProjects/More Projects/Pratice3/ViewModel and State with Dessert Clicker/app/src/main/java/com/example/dessertclicker/DessertViewModel.kt | shivathapaa | 800,628,391 | false | {"Kotlin": 3491940, "Shell": 2341, "Swift": 621} | package com.example.dessertclicker
import androidx.lifecycle.ViewModel
import com.example.dessertclicker.data.Datasource.dessertList
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
class DessertVi... | 0 | Kotlin | 0 | 0 | c32fbea3c5dd8ee9c1286d30528f7daeabb2b190 | 1,888 | Android-Practice-Projects | The Unlicense |
src/main/kotlin/io/snyk/plugin/ui/SnykSettingsDialog.kt | Jankyboy | 345,486,303 | true | {"Kotlin": 113801} | package io.snyk.plugin.ui
import com.intellij.openapi.Disposable
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.ComponentValidator
import com.intellij.openapi.ui.ValidationInfo
import com.intellij.ui.DocumentAdapter
import com.intellij.ui.IdeBorderFactory
import com.intellij.ui.components.J... | 1 | null | 0 | 0 | b381fee89ef7455488e47dee5495ac0603644fd2 | 12,910 | snyk-intellij-plugin | Apache License 2.0 |
app/src/main/java/com/jakebarnby/entertainme/AccountsViewModel.kt | abnegate | 482,792,153 | false | null | package com.jakebarnby.entertainme
import androidx.lifecycle.ViewModel
import com.jakebarnby.entertainme.model.Account
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
@HiltViewModel
class AccountsViewModel : ViewModel() {
... | 0 | Kotlin | 0 | 1 | c54dedf1bddcf795071f7b02999274ba8a15394f | 469 | android-entertainme | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppstier/service/TriggerCalculationServiceTest.kt | ministryofjustice | 327,621,961 | false | null | package uk.gov.justice.digital.hmpps.hmppstier.service
import com.amazonaws.services.sqs.AmazonSQSAsync
import com.fasterxml.jackson.databind.ObjectMapper
import io.mockk.every
import io.mockk.mockk
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import uk.gov.justice.hmpps.sqs.HmppsQueueServ... | 9 | Kotlin | 1 | 0 | da14eb65015db93c817fa477aacdde34ca431178 | 906 | hmpps-tier | MIT License |
src/macosMain/kotlin/executor/TaskExecutor.kt | LoveOrange | 165,771,695 | false | {"Kotlin": 415} | package executor
class TaskExecutor() {
} | 0 | Kotlin | 0 | 1 | 48b52a94d4affc72cc911719cdf0c9e8552a3863 | 43 | paradise_kt | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/JugBottle.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,724 | icons | MIT License |
kge-core/src/main/kotlin/dev/staticsanches/kge/rasterizer/service/FillCircleService.kt | staticsanches | 796,330,735 | false | {"Kotlin": 224732} | package dev.staticsanches.kge.rasterizer.service
import dev.staticsanches.kge.image.Pixel
import dev.staticsanches.kge.image.pixelmap.PixelMap
import dev.staticsanches.kge.math.vector.Int2D
import dev.staticsanches.kge.rasterizer.Rasterizer
import dev.staticsanches.kge.rasterizer.utils.CircleOctantMask
import dev.stat... | 0 | Kotlin | 0 | 2 | f7b768d8f927515f8f6bb39acfb3063b1498e9f3 | 2,788 | kge | MIT License |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/large/CertificateRibbonLarge.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.large
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mit... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 3,631 | mds-android-compose | MIT License |
godot-kotlin/src/nativeGen/kotlin/godot/Physics2DTestMotionResult.kt | raniejade | 166,207,411 | false | null | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import gdnative.godot_string
import godot.core.Allocator
import godot.core.Godot
import godot.core.RID
import godot.core.Variant
import godot.core.VariantArray
import godot.core.Vector2
import kotlin.Int
import kotlin.... | 12 | Kotlin | 4 | 51 | 5c1bb2a1f1d2187375bf50c0445b42c88f37989f | 8,268 | godot-kotlin | MIT License |
datasource-remote/src/main/java/cmm/apps/esmorga/datasource_remote/user/UserRemoteDatasource.kt | cmm-apps-android | 797,188,002 | false | {"Kotlin": 213292} | package cmm.apps.esmorga.datasource_remote.user
import cmm.apps.esmorga.data.user.datasource.UserDatasource
import cmm.apps.esmorga.data.user.model.UserDataModel
import cmm.apps.esmorga.datasource_remote.api.EsmorgaApi
import cmm.apps.esmorga.datasource_remote.user.mapper.toUserDataModel
import cmm.apps.esmorga.domain... | 0 | Kotlin | 0 | 0 | 313548da4e2e73ecd21972f1e61bf80d5fba7348 | 2,277 | EsmorgaAndroid | The Unlicense |
tests-execution-chart-commons/src/main/kotlin/io/github/platan/tests_execution_chart/reporters/TestExecutionReportFormatter.kt | platan | 549,810,072 | false | {"Groovy": 43593, "Kotlin": 43142, "Java": 3755, "TypeScript": 3094, "HTML": 2293, "Shell": 480, "PowerShell": 116} | package io.github.platan.tests_execution_chart.reporters
import io.github.platan.tests_execution_chart.report.data.TestExecutionScheduleReport
interface TestExecutionReportFormatter {
fun format(report: TestExecutionScheduleReport): String
}
| 3 | Groovy | 5 | 13 | 21b53771f5a9765f9157e75fd9eb56bd525a76d5 | 248 | tests-execution-chart | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/CheapStackDollar.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,503 | icons | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/codepipeline/CfnCustomActionTypeSettingsPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.codepipeline
import cloudshift.awscdk.common.CdkDslMarker
impo... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 3,208 | awscdk-dsl-kotlin | Apache License 2.0 |
lib/src/test/java/com/irurueta/android/navigation/inertial/processors/attitude/LevelingProcessorTest.kt | albertoirurueta | 440,663,799 | false | null | /*
* Copyright (C) 2023 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 0 | Kotlin | 0 | 0 | a5e3d05af8b2dad44a1c9ee47e76e8c97e835367 | 8,857 | irurueta-android-navigation-inertial | Apache License 2.0 |
tools/src/main/java/com/github/deweyreed/tools/helper/SharedPreferenceHelper.kt | DeweyReed | 291,210,591 | false | {"Kotlin": 42898} | @file:Suppress("unused")
package xyz.aprildown.tools.helper
import android.content.SharedPreferences
import androidx.core.content.edit
/**
* Created on 2017/11/3.
*/
fun SharedPreferences.getNonNullString(name: String, default: String): String {
return getString(name, default) ?: default
}
fun SharedPreferen... | 0 | Kotlin | 0 | 1 | d065fefa8a2c29dc62e0dc91ccfd37463140f466 | 754 | tools | Apache License 2.0 |
app/src/main/java/com/vmenon/mpo/MPOApplication.kt | hitoshura25 | 91,402,384 | false | null | package com.vmenon.mpo
import android.content.Context
import androidx.multidex.MultiDex
import androidx.work.ExistingPeriodicWorkPolicy
import androidx.work.PeriodicWorkRequestBuilder
import androidx.work.WorkManager
import com.google.android.play.core.splitcompat.SplitCompat
import com.google.android.play.core.splitc... | 15 | Kotlin | 0 | 1 | 5a0505ed77645b74b5825519897b8ba62e2f2df7 | 5,243 | Media-Player-Omega-Android | Apache License 2.0 |
src/test/kotlin/Example1.kt | ToxicMushroom | 207,090,607 | true | {"Kotlin": 32603} | import com.jagrosh.jagtag.Parser
import com.jagrosh.jagtag.ParserBuilder
import com.jagrosh.jagtag.libraries.Functional
import com.jagrosh.jagtag.libraries.Strings
import com.jagrosh.jagtag.libraries.Variables
import javax.swing.JOptionPane
class Example1 {
init {
val parser: Parser = ParserBuilder()
... | 2 | Kotlin | 0 | 0 | 334527cfb5613497930a04337de78c05ac8ddcdc | 765 | JagTag-Kotlin | Apache License 2.0 |
src/main/kotlin/ink/ptms/ovile/Ovile.kt | TabooLib | 487,524,125 | false | {"Kotlin": 61242} | package ink.ptms.ovile
import taboolib.common.platform.Plugin
import taboolib.common.platform.function.disablePlugin
import taboolib.common.platform.function.warning
import taboolib.module.nms.MinecraftVersion
object Ovile : Plugin() {
} | 0 | Kotlin | 0 | 4 | 581b30aa94db89b946bcf74be3be1af2eea244e3 | 240 | ovile | Creative Commons Zero v1.0 Universal |
app/src/main/kotlin/com/mvvmclean/trendingrepos/di/modules/trendingreposearch/TrendingRepoSearchBindingModule.kt | anoopmaddasseri | 254,618,197 | false | null | package com.mvvmclean.trendingrepos.di.modules.trendingreposearch
import com.mvvmclean.trendingrepos.domain.repository.ITrendingRepoSearchRepository
import com.mvvmclean.trendingrepos.data.repository.TrendingRepoSearchRepository
import dagger.Binds
import dagger.Module
import javax.inject.Singleton
@Module
abstract c... | 0 | Kotlin | 12 | 50 | ecfeff5efdf073944e68f22668cbd51bfc415316 | 537 | GithubTrendingRepos | Apache License 2.0 |
src/test/kotlin/GetTime.kt | SPCraftMC | 581,967,378 | false | null | import java.text.SimpleDateFormat
import java.util.*
fun xmain() {
val sdf = SimpleDateFormat("HH")
val currentDate = sdf.format(Date())
println(currentDate)
if (currentDate == "00") println("now 0a.m.")
} | 0 | Kotlin | 0 | 1 | 5efa1e96b2ab7b1337fa4e1aec07aea242c25684 | 222 | TodaySign | Apache License 2.0 |
app/src/main/java/com/sudzusama/comparephones/domain/entity/Device.kt | Anothery | 234,905,404 | false | null | package com.sudzusama.comparephones.domain.entity
data class Device(
val DeviceName: String,
val Brand: String?,
val _2g_bands: String?,
val _3_5mm_jack_: String?,
val _3g_bands: String?,
val _4g_bands: String?,
val alert_types: String?,
val announced: String?,
val battery_c: String... | 0 | Kotlin | 0 | 1 | 9a3b58b033c9da5b79db0d17e39ab525b4af3659 | 1,353 | phone-specs | Apache License 2.0 |
features/taxi/src/main/kotlin/by/anegin/vkcup21/features/taxi/data/impl/mapbox/PointExt.kt | eugene-kirzhanov | 385,482,551 | false | null | package by.anegin.vkcup21.features.taxi.data.impl.mapbox
import by.anegin.vkcup21.features.taxi.data.models.Position
import com.mapbox.geojson.Point
internal fun Position.toPoint(): Point = Point.fromLngLat(longitude, latitude)
| 0 | Kotlin | 0 | 0 | 00afa06d424810fe80675e333facfd42d6b2b75d | 230 | vkcup21 | MIT License |
failfast/src/test/kotlin/failfast/internal/TestResultFixtures.kt | robfletcher | 333,458,962 | true | {"Kotlin": 108563} | package failfast.internal
import failfast.Context
import failfast.Failed
import failfast.Success
import failfast.TestDescription
object TestResultFixtures {
val rootContext = Context("the test runner", null)
val subContext = Context("contexts can be nested", rootContext)
val subSubContext = Context("deepe... | 0 | Kotlin | 0 | 0 | 4af24b125a39352e6c6fc4d991b3b737009759a4 | 892 | failfast | MIT License |
app/src/test/java/com/amitranofinzi/vimata/data/dao/MessageDaoTest.kt | Ggino11 | 788,949,158 | false | {"Kotlin": 374869} | package com.amitranofinzi.vimata.data.dao
import com.amitranofinzi.vimata.data.model.Message
import com.google.firebase.Timestamp
import junit.framework.TestCase.assertEquals
import junit.framework.TestCase.assertTrue
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines... | 0 | Kotlin | 0 | 0 | 0440d088ab622621ed14dbb1384c8f1b44962676 | 2,866 | ProgettoAmitranoFinzi-progMob | MIT License |
omnia/src/commonMain/omnia/io/IOException.kt | StrangePan | 224,343,744 | false | null | package omnia.io
open class IOException: RuntimeException {
constructor(message: String): super(message)
constructor(message: String, cause: Throwable): super(message, cause)
constructor(cause: Throwable): super(cause)
} | 0 | Kotlin | 0 | 1 | 58ea8c1eb19f1922acfe046d30c7d0a6a333ee39 | 230 | omnia | The Unlicense |
app/src/main/java/com/takusemba/jethub/di/NetworkModule.kt | winterdl | 241,266,325 | true | {"Kotlin": 98490} | package com.takusemba.jethub.di
import com.takusemba.jethub.Config
import com.takusemba.jethub.api.ApiTokenInterceptor
import com.takusemba.jethub.api.DeveloperApi
import com.takusemba.jethub.api.DeveloperApiClient
import com.takusemba.jethub.api.RepoApi
import com.takusemba.jethub.api.RepoApiClient
import com.takusem... | 0 | Kotlin | 0 | 0 | 4a77523525cd48d51dc208229a20e7728d31d2ec | 1,705 | JetHub | Apache License 2.0 |
usecases/src/main/java/com/thilawfabrice/clean/usecases/InsertItemUseCase.kt | fabricethilaw | 318,823,295 | false | null | package com.thilawfabrice.clean.usecases
import com.thilawfabrice.clean.domain.models.Item
import com.thilawfabrice.clean.domain.models.Result
import com.thilawfabrice.clean.domain.repository.IItemRepository
import kotlinx.coroutines.flow.Flow
typealias InsertItemBaseUseCase = BaseUseCase<Item, Flow<Result>>
class I... | 0 | Kotlin | 0 | 1 | 32c920d47d7e75a72974a49a2eaffef289400a36 | 507 | template-android-clean-architecture-mvvm | Apache License 2.0 |
app/src/main/java/eu/kanade/domain/track/anime/interactor/DeleteAnimeTrack.kt | AniFOSS | 377,170,228 | true | {"Kotlin": 4060627} | package eu.kanade.domain.track.anime.interactor
import eu.kanade.domain.track.anime.repository.AnimeTrackRepository
import eu.kanade.tachiyomi.util.system.logcat
import logcat.LogPriority
class DeleteAnimeTrack(
private val trackRepository: AnimeTrackRepository,
) {
suspend fun await(animeId: Long, syncId: L... | 1 | Kotlin | 0 | 0 | 08787976b43da6e02207081e1ecccb7fcd89c307 | 490 | aniyomi | Apache License 2.0 |
benchmark/benchmark-common/src/main/java/androidx/benchmark/MetricCapture.kt | androidx | 256,589,781 | 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... | 22 | Kotlin | 778 | 4,514 | 469681f962a7700b394c8f1660326addaf05402e | 3,348 | androidx | Apache License 2.0 |
ktvn/src/test/kotlin/com/github/benpollarduk/ktvn/logic/QuestionTest.kt | benpollarduk | 710,310,174 | false | {"Kotlin": 436387} | package com.github.benpollarduk.ktvn.logic
import com.github.benpollarduk.ktvn.logic.Answer.Companion.answer
import com.github.benpollarduk.ktvn.logic.Question.Companion.question
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class QuestionTest {
@Test
fun `given question with 1 opt... | 2 | Kotlin | 0 | 9 | 4326fc7c0bcba099a57d21382407e090dc625bd9 | 776 | ktvn | MIT License |
test/src/me/anno/tests/graph/visual/BooleanMathTests.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.tests.graph.visual
import me.anno.graph.visual.scalar.BooleanMathType
import me.anno.graph.visual.scalar.MathB2Node
import me.anno.graph.visual.scalar.MathB3Node
import me.anno.graph.visual.scalar.NotNode
import me.anno.utils.types.Booleans.hasFlag
import org.junit.jupiter.api.Assertions.assertEquals
i... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 2,677 | RemsEngine | Apache License 2.0 |
src/main/kotlin/exercise_4_9/exercise.kt | keygenqt | 366,821,531 | false | null | package exercise_4_9
val plus: (Int) -> Int = { x -> x + 1 }
fun myRange(start: Int, end: Int): List<Int> {
return mutableListOf(start).apply {
while (last() < end-1) add(plus.invoke(last()))
}
}
fun bookRange(start: Int, end: Int): List<Int> {
val result = mutableListOf<Int>()
var index = st... | 0 | Kotlin | 1 | 0 | 5bf8abc5cc0bdf044acbd795e2c38bec8f8c6134 | 492 | skill-the-joy-of-kotlin | Apache License 2.0 |
modell/src/main/kotlin/no/nav/dagpenger/behandling/Svar.kt | navikt | 571,475,339 | false | {"Kotlin": 210304, "Mustache": 4238, "HTML": 693, "Gherkin": 233, "Dockerfile": 202} | package no.nav.dagpenger.behandling
import java.time.LocalDate
/*class Svar2<T>(val verdi: T?, val clazz: Class<T>, val sporing: Sporing) {
fun besvar(verdi: T, sporing: Sporing) = Svar(verdi, this.clazz, sporing)
fun nullstill() = Svar(null, this.clazz, NullSporing)
val ubesvart get() = verdi == null
... | 3 | Kotlin | 0 | 0 | 905974b9c00c2e02b659f2f5966cbbb7fa019d51 | 2,590 | dp-behandling | MIT License |
tinn-studio/src/main/kotlin/com/virusbear/tinn/studio/Main.kt | virusbear | 809,423,131 | false | {"Kotlin": 65340} | package com.virusbear.tinn.studio
import com.virusbear.tinn.Driver
import com.virusbear.tinn.VertexFormat
import com.virusbear.tinn.imgui.ImGuiUIContext
import com.virusbear.tinn.math.Vec3
import com.virusbear.tinn.opengl.DriverGL
import com.virusbear.tinn.opengl.checkGLErrors
import imgui.ImGui
import org.intellij.la... | 0 | Kotlin | 0 | 0 | 2bede64a6c92dbf2148ef08bc0f3efc8f5008edf | 5,160 | tinn | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.