path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/pr0gramm/app/Instant.kt | Zz9uk3 | 158,547,370 | true | {"Kotlin": 1116937, "Shell": 6640, "IDL": 3408, "Python": 1124, "Prolog": 737} | package com.pr0gramm.app
import android.os.Parcel
import android.os.Parcelable
import com.pr0gramm.app.parcel.Freezable
import com.pr0gramm.app.parcel.Unfreezable
import com.pr0gramm.app.parcel.creator
import com.pr0gramm.app.util.logger
import org.slf4j.Logger
import java.text.SimpleDateFormat
import java.util.*
impo... | 0 | Kotlin | 0 | 0 | c173fa90bfef3266b80fece6fc67909cd90eaf0b | 3,285 | Pr0 | MIT License |
src/main/kotlin/de/sambalmueslie/openevent/core/model/NotificationTypeChangeRequest.kt | Black-Forrest-Development | 542,810,521 | false | {"Kotlin": 334759, "TypeScript": 179633, "HTML": 73007, "SCSS": 3950, "Batchfile": 202} | package de.sambalmueslie.openevent.core.model
import de.sambalmueslie.openevent.core.BusinessObjectChangeRequest
import io.micronaut.serde.annotation.Serdeable
@Serdeable
data class NotificationTypeChangeRequest(
val key: String,
val name: String,
val description: String
) : BusinessObjectChangeRequest
| 6 | Kotlin | 0 | 1 | 43cf66668db937150ae8f14078437c1e5a7287e2 | 318 | open-event | Apache License 2.0 |
felles/src/main/kotlin/no/nav/familie/kontrakter/felles/journalpost/Journalstatus.kt | navikt | 206,793,193 | false | null | package no.nav.familie.kontrakter.felles.journalpost
enum class Journalstatus {
MOTTATT,
JOURNALFOERT,
FERDIGSTILT,
EKSPEDERT,
UNDER_ARBEID,
FEILREGISTRERT,
UTGAAR,
AVBRUTT,
UKJENT_BRUKER,
RESERVERT,
OPPLASTING_DOKUMENT,
UKJENT
} | 6 | Kotlin | 0 | 2 | 7f218f3c15be62cd438c690c6d4a670afe73fd65 | 278 | familie-kontrakter | MIT License |
tasks-app-desktop/src/main/kotlin/mainApp.kt | opatry | 860,583,716 | false | {"Kotlin": 570616, "Shell": 7905, "HTML": 398, "Ruby": 196} | /*
* Copyright (c) 2024 Olivier Patry
*
* 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, publi... | 0 | Kotlin | 0 | 0 | 85094c58834cfa84b2527f55dd9cd5756db9c606 | 6,044 | task-craftr | MIT License |
slpwallet/src/test/java/com/bitcoin/slpwallet/slp/SlpTokenDetailsTest.kt | Bitcoin-com | 178,391,446 | false | null | package com.bitcoin.slpwallet.slp
import org.junit.Assert.assertEquals
import org.junit.Test
import java.math.BigDecimal
class SlpTokenDetailsTest {
@Test
fun toRawAmount_happy() {
val decimals = 6
val details = SlpTokenDetails(SlpTokenId(""), "", "", decimals)
val expectedAmount : UL... | 1 | Kotlin | 11 | 11 | 5049603074cf22e90e9f69b3ccb98f47bc1362ea | 2,111 | slp-wallet-sdk-android | MIT License |
src/main/java/org/eln2/mc/common/blocks/cell/DiodeCellBlock.kt | age-series | 248,378,503 | false | null | package org.eln2.mc.common.blocks.cell
import net.minecraft.core.BlockPos
import net.minecraft.core.Direction
import net.minecraft.resources.ResourceLocation
import net.minecraft.world.level.BlockGetter
import net.minecraft.world.level.block.state.BlockState
import net.minecraft.world.phys.shapes.BooleanOp
import net.... | 50 | Kotlin | 18 | 52 | 89047d77ef6879b1cf715ac074d1d64ad2996d18 | 2,207 | ElectricalAge2 | MIT License |
Final/data/src/main/java/ubb/thesis/david/data/mappers/LandmarkMapper.kt | davidleiti | 163,836,279 | false | {"Text": 1, "Markdown": 1, "Gradle": 6, "Java Properties": 2, "Shell": 1, "Ignore List": 5, "Batchfile": 1, "Kotlin": 123, "JSON": 1, "Proguard": 2, "XML": 66, "Java": 2} | package ubb.thesis.david.data.mappers
import ubb.license.david.foursquareapi.model.Location
import ubb.license.david.foursquareapi.model.Venue
import ubb.thesis.david.domain.common.Mapper
import ubb.thesis.david.domain.entities.Landmark
class LandmarkMapper : Mapper<Venue, Landmark>() {
override fun mapFrom(obj: ... | 0 | Kotlin | 0 | 2 | 59ca0edd6bf8f004c0a712ce532fcc107f58d147 | 743 | Monumental | MIT License |
app/src/main/java/com/franzliszt/magicmusic/route/nav/recommend/songs/SongEvent.kt | FranzLiszt-1847 | 753,088,527 | false | {"Kotlin": 879960, "Java": 1923} | package com.franzliszt.magicmusic.route.nav.recommend.songs
import com.franzliszt.magicmusic.bean.recommend.newsongs.Result
import com.franzliszt.magicmusic.bean.recommend.songs.DailySong
sealed class SongEvent {
data class InsertDaySong(val bean:DailySong):SongEvent()
data class InsertNewSong(val bean:Result... | 0 | Kotlin | 1 | 1 | dcbc4c0cb9c0478e617423812712659df52a3b7d | 335 | MagicPlayer | Apache License 2.0 |
app/src/main/java/demo/simple/checker/App.kt | simplepeng | 436,210,209 | false | {"Gradle": 6, "YAML": 1, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "INI": 4, "Proguard": 4, "XML": 21, "Java": 19, "Kotlin": 4} | package demo.simple.checker
import android.app.Application
import me.simple.checker.HeGuiChecker
class App : Application() {
override fun onCreate() {
super.onCreate()
// HeGuiChecker.SHOW_LOG = false
// HeGuiChecker.SHOW_TOAST = false
}
} | 1 | Java | 20 | 189 | 24bb888a6a95862578ade509257f0b165133b79c | 272 | HeGuiChecker | MIT License |
domain/src/main/java/com/pedronsouza/domain/models/PropertyLocation.kt | pedronsouza | 771,484,746 | false | {"Kotlin": 166729} | package com.pedronsouza.domain.models
data class PropertyLocation(
val city: City
) | 0 | Kotlin | 0 | 0 | b19573e0e89e2916b0510cf94367d86acec4aa56 | 88 | challenge-hostelworld | Creative Commons Zero v1.0 Universal |
wear/wear-watchface-style/src/main/java/androidx/wear/watchface/style/UserStyleSetting.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 6 | null | 984 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 140,622 | androidx | Apache License 2.0 |
app/src/main/java/com/matthew/carvalhodagenais/coinhuntingbuddy/ui/components/FindListItem.kt | mcd-3 | 474,478,959 | false | {"Kotlin": 242534} | package com.matthew.carvalhodagenais.coinhuntingbuddy.ui.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androidx.compose... | 4 | Kotlin | 0 | 1 | af1eec1593abdef3c83a85cb398093d4f9c29f0e | 3,931 | coin-hunting-buddy | MIT License |
embrace-test-fakes/src/main/kotlin/io/embrace/android/embracesdk/fakes/FakeTracerBuilder.kt | embrace-io | 704,537,857 | false | {"Kotlin": 2807710, "C": 190147, "Java": 175321, "C++": 13140, "CMake": 4261} | package io.embrace.android.embracesdk.fakes
import io.embrace.android.embracesdk.internal.opentelemetry.TracerKey
import io.opentelemetry.api.trace.Tracer
import io.opentelemetry.api.trace.TracerBuilder
public class FakeTracerBuilder(
public val instrumentationScopeName: String
) : TracerBuilder {
public var... | 19 | Kotlin | 8 | 133 | c3d8b882d91f7200c812d8ffa2dee5b820263c0d | 952 | embrace-android-sdk | Apache License 2.0 |
library/src/main/java/com/herry/libs/draw/DrawView.kt | HerryPark | 273,154,769 | false | {"Kotlin": 1362527, "Java": 602} | package com.herry.libs.draw
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import an... | 0 | Kotlin | 0 | 0 | a0fdf428ef056565aa829597ee02d3c4a26608c9 | 6,201 | HerryApiDemo | Apache License 2.0 |
src/main/kotlin/com/yapp/giljob/domain/subquest/application/SubQuestService.kt | YAPP-19th | 399,059,024 | false | null | package com.yapp.giljob.domain.subquest.application
import com.yapp.giljob.domain.quest.domain.Quest
import com.yapp.giljob.domain.subquest.dao.SubQuestParticipationRepository
import com.yapp.giljob.domain.subquest.domain.SubQuest
import com.yapp.giljob.domain.subquest.dto.request.SubQuestRequestDto
import org.springf... | 2 | Kotlin | 0 | 12 | 2a72cbf5f546537d0fd808e9e4d5c927163cf3d0 | 839 | Web-Team-1-Backend | Apache License 2.0 |
compiler/testData/diagnostics/tests/cast/IsRecursionSustainable.kt | JetBrains | 3,432,266 | false | null | open class RecA<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>RecB<T><!>()
open class RecB<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>RecA<T><!>()
open class SelfR<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>SelfR<T><!>()
fun test(f: SelfR<String>) = <!USELESS_IS_CHECK!>f is <!CANNOT_CHECK_FOR_ERASED!>RecA<String><!><!>
fun test(f: RecB<Strin... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 397 | kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/cast/IsRecursionSustainable.kt | JetBrains | 3,432,266 | false | null | open class RecA<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>RecB<T><!>()
open class RecB<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>RecA<T><!>()
open class SelfR<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>SelfR<T><!>()
fun test(f: SelfR<String>) = <!USELESS_IS_CHECK!>f is <!CANNOT_CHECK_FOR_ERASED!>RecA<String><!><!>
fun test(f: RecB<Strin... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 397 | kotlin | Apache License 2.0 |
core/src/commonMain/kotlin/net/peanuuutz/tomlkt/internal/parser/TreeNode.kt | Peanuuutz | 444,688,345 | false | null | /*
Copyright 2023 Peanuuutz
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... | 3 | null | 3 | 95 | 35856a68678b96dda4b5f71a0cc391957c3e66b5 | 4,433 | tomlkt | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/kfx/types/Key.kt | flapdoodle-oss | 451,526,335 | false | {"Kotlin": 998080, "Java": 154205, "CSS": 44422, "Shell": 297} | /*
* Copyright (C) 2022
* Michael Mosmann <michael@mosmann.de>
*
* 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 re... | 0 | Kotlin | 1 | 0 | a97b72ffadf7847a3086454fbf7c2325a1b1daab | 1,540 | de.flapdoodle.kfx | Apache License 2.0 |
libs/shape/src/main/kotlin/mono/shape/extra/style/RectangleFillStyle.kt | tuanchauict | 325,686,408 | false | null | package mono.shape.extra.style
import mono.graphics.bitmap.drawable.Drawable
/**
* A class for defining a fill style for rectangle.
*
* @param id is the key for retrieving predefined [RectangleFillStyle] when serialization.
* @param displayName is the text visible on the UI tool for selection.
*/
class Rectangle... | 15 | Kotlin | 9 | 91 | 21cef26b45c984eee31ea2c3ba769dfe5eddd92e | 409 | MonoSketch | Apache License 2.0 |
app/src/main/kotlin/com/softteco/template/ui/components/PermissionDialog.kt | SoftTeco | 644,768,318 | false | {"Kotlin": 265161, "Shell": 354} | package com.softteco.template.ui.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
im... | 6 | Kotlin | 7 | 7 | 2adda3282a15f09d7e5de588e6cf462b4f4bbf4e | 2,842 | AndroidAppTemplate | MIT License |
src/main/kotlin/git/semver/plugin/changelog/ChangeLogTexts.kt | jmongard | 248,187,973 | false | {"Kotlin": 90559} | package git.semver.plugin.changelog
class ChangeLogTexts {
companion object {
const val HEADER = "#"
const val BREAKING_CHANGE = "!"
const val OTHER_CHANGE = "?"
}
val headerTexts = mutableMapOf(
HEADER to "## What's Changed",
BREAKING_CHANGE to "### Breaking Change... | 4 | Kotlin | 4 | 27 | e98c52690876bcb3b70e0c8c61a715dbedb256f9 | 1,366 | Git.SemVersioning.Gradle | Apache License 2.0 |
app/src/main/java/dev/sdex/currencyexchanger/domain/model/Balance.kt | sdex | 735,589,378 | false | {"Kotlin": 46337} | package dev.sdex.currencyexchanger.domain.model
import java.math.BigDecimal
data class Balance(
val currency: String,
val amount: BigDecimal,
) | 0 | Kotlin | 0 | 0 | f321bd093e4035c82fbad6b99f37fda4be63b71d | 153 | CurrencyExchanger | MIT License |
step6/null1.kt | shilpasayura | 400,781,913 | false | null | fun main(args: Array<String>) {
var notNull : String = "Hello"
//notNull = null // not allowed
var len = notNull.length
println("Value is $notNull and length is ${notNull.length} ")
var mayBeNull : String?
mayBeNull = null // allowed
}
| 0 | Kotlin | 0 | 0 | d0898fef7231adc9c6661ab6f75f9020696d0600 | 265 | kotlin | MIT License |
web/src/main/kotlin/org/kotlinacademy/views/ErrorView.kt | MaurizioX | 113,477,274 | true | {"CSS": 389213, "Kotlin": 113380, "JavaScript": 5134, "HTML": 1738} | package org.kotlinacademy.views
import org.kotlinacademy.common.HttpError
import kotlinext.js.js
import kotlinx.html.style
import react.RBuilder
import react.ReactElement
import react.dom.div
import react.dom.h3
import react.dom.style
fun RBuilder.errorView(error: Throwable): ReactElement? = div(classes = "error") {
... | 0 | CSS | 0 | 2 | ff2ef2c3ec8aff0673077c350734435cf7ea6a39 | 501 | KotlinAcademyApp | Apache License 2.0 |
app/src/main/java/com/example/meuprimeiroprojeto/ResultActivity.kt | maiatiago | 596,355,613 | false | null | package com.example.meuprimeiroprojeto
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import android.widget.TextView
class ResultActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 0 | 5e9d08c0177fc54bdbac9a9fb03080dcf92101b1 | 1,804 | CalculadoraIMC | MIT License |
src/main/kotlin/net/devoev/vanilla_cubed/block/entity/beacon/upgrades/IncreaseXPDropUpgrade.kt | Devoev | 473,273,645 | false | {"Kotlin": 259348, "Java": 37528} | package net.devoev.vanilla_cubed.block.entity.beacon.upgrades
import net.devoev.vanilla_cubed.block.entity.beacon.upgrades.IncreaseXPDropUpgrade.INCREASE_XP
import net.minecraft.util.math.Vec3d
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable
/**
* Increases the XP drop of mobs by [INCREA... | 0 | Kotlin | 2 | 1 | faad984d3da21910d0153a0a14b32666cf145751 | 627 | vanilla-cubed | MIT License |
app/src/main/java/com/celzero/bravedns/adapter/ConnectionTrackerAdapter.kt | Aquaogen | 379,457,840 | false | null | /*
Copyright 2020 RethinkDNS and its 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 1 | null | 1 | 1 | a9bdd6d59b6d2e961fc478b78d90ade0fc67bca6 | 6,935 | redns | Apache License 2.0 |
src/main/kotlin/apibuilder/database/device/UpdateDeviceByIdItem.kt | BAC2-Graf-Rohatynski | 208,084,076 | false | null | package apibuilder.database.device
import apibuilder.database.device.item.DeviceItem
import apibuilder.database.header.DatabaseResponse
import apibuilder.database.header.Header
import apibuilder.database.interfaces.IDevice
import enumstorage.device.Device
import enumstorage.database.DatabaseCommand
import enumstorage.... | 0 | Kotlin | 0 | 0 | 1521a5c7bdd4fc2d6c021d4c28a292f1f1347529 | 1,561 | ApiBuilder | MIT License |
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/normalization/KotlinApiClassExtractor.kt | gradle | 302,322 | false | null | /*
* Copyright 2020 the original author or 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 applica... | 4 | null | 4552 | 15,640 | 3fde2e4dd65124d0f3b2ef42f7e93446ccd7cced | 7,839 | gradle | Apache License 2.0 |
app/src/main/java/com/capan/truefalse/TrueFalseApplication.kt | Colibri91 | 532,779,054 | false | null | package com.capan.truefalse
import android.app.Application
import com.capan.truefalse.di.appModule
import com.capan.truefalse.di.firebaseModule
import com.capan.truefalse.di.questionModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.Global... | 0 | Kotlin | 0 | 0 | 0f2e15a1febde9f828ee9f884bc0c72b229e75ad | 886 | TrueFalseGameWithComposeAndStateFlow | Apache License 2.0 |
app/src/main/java/com/jayabreezefsm/features/dashboard/presentation/api/gteroutelistapi/GetRouteListRepo.kt | DebashisINT | 674,180,669 | false | {"Kotlin": 13478860, "Java": 994064} | package com.jayabreezefsm.features.dashboard.presentation.api.gteroutelistapi
import com.jayabreezefsm.app.Pref
import com.jayabreezefsm.features.dashboard.presentation.model.SelectedRouteListResponseModel
import io.reactivex.Observable
/**
* Created by Saikat on 03-12-2018.
*/
class GetRouteListRepo(val apiService... | 0 | Kotlin | 0 | 0 | 0642af23a4db33e4a472cd194d09e6b81b2d369e | 491 | JayaIndustries | Apache License 2.0 |
src/main/java/com/tang/intellij/lua/debugger/remote/value/LuaRFunction.kt | Benjamin-Dobell | 231,814,734 | false | null | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* 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 l... | 61 | Kotlin | 9 | 83 | 68b0a63d3ddd5bc7be9ed304534b601fedcc8319 | 1,268 | IntelliJ-Luanalysis | Apache License 2.0 |
feature/src/main/java/com/tatsuki/purchasing/feature/model/AmazonPurchasedReceipt.kt | TatsukiIshijima | 669,807,579 | false | {"Kotlin": 68270} | package com.tatsuki.purchasing.feature.model
import com.amazon.device.iap.model.Receipt
import com.amazon.device.iap.model.UserData
data class AmazonPurchasedReceipt(
val userData: UserData,
val receipt: Receipt,
)
| 0 | Kotlin | 0 | 0 | 47674bcae07460ca9f84c57a980d6d3218c451a7 | 221 | amazon-purchasing | MIT License |
src/main/kotlin/logic/creep/tasks/LMTasksLogist.kt | Solovova | 273,570,019 | false | null | package logic.creep.tasks
import mainContext.MainContext
import mainContext.dataclass.TypeOfTask
import mainContext.dataclass.mainRoom
import mainContext.mainRoomCollecror.mainRoom.MainRoom
import mainContext.tasks.CreepTask
import screeps.api.*
import screeps.api.structures.StructureLink
import screeps.api.structures... | 0 | Kotlin | 0 | 0 | b9a4319d604fc7106f3c0bf43e49631227ae6449 | 10,136 | Screeps_KT | MIT License |
jipp-core/src/main/java/com/hp/jipp/trans/IppClientTransport.kt | HPInc | 129,298,798 | false | null | // Copyright 2017 HP Development Company, L.P.
// SPDX-License-Identifier: MIT
package com.hp.jipp.trans
import java.io.IOException
import java.net.URI
/** Transport used to send packets and collect responses from a IPP server */
interface IppClientTransport {
/**
* Deliver an IPP packet to the specified U... | 7 | null | 40 | 99 | f1f96d5da88d24197e7b0f90eec4ceee0fe66550 | 626 | jipp | MIT License |
kotest-tests/kotest-tests-junit5/src/jvmTest/kotlin/com/sksamuel/kotest/junit5/StringSpecExceptionInBeforeTest.kt | sw-samuraj | 234,562,169 | true | {"Kotlin": 1832333, "JavaScript": 457, "HTML": 423, "Java": 153, "Shell": 125} | package com.sksamuel.kotest.junit5
import io.kotest.core.test.TestCase
import io.kotest.shouldBe
import io.kotest.core.spec.style.StringSpec
class StringSpecExceptionInBeforeTest : StringSpec() {
init {
"a failing test" {
1 shouldBe 2
}
"a passing test" {
1 shouldBe 1
}
}
override... | 0 | null | 0 | 0 | 068148734769f534223be89673639f46e8430ab4 | 402 | kotlintest | Apache License 2.0 |
server/src/main/kotlin/org/kryptonmc/krypton/entity/projectile/KryptonArrowLike.kt | KryptonMC | 255,582,002 | false | null | /*
* This file is part of the Krypton project, licensed under the Apache License v2.0
*
* Copyright (C) 2021-2023 KryptonMC and the contributors of the Krypton 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 ... | 27 | Kotlin | 11 | 233 | a9eff5463328f34072cdaf37aae3e77b14fcac93 | 3,381 | Krypton | Apache License 2.0 |
core/network/src/main/kotlin/org/bmsk/network/di/NetworkModule.kt | AndroidStudy-bmsk | 632,254,827 | false | {"Kotlin": 63336} | package org.bmsk.lifemash.core.network.di
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import com.tickaroo.tikxml.TikXml
import com.tickaroo.tikxml.retrofit.TikXmlConverterFactory
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger... | 1 | Kotlin | 0 | 0 | d60445993d477d65583244c48c3e9132d5902789 | 3,083 | LifeMash-NewsApp | MIT License |
typescript/ts-lowerings/src/org/jetbrains/dukat/tsLowerings/introduceSyntheticExportQualifiers.kt | posix-dev | 270,574,458 | true | {"Kotlin": 2679797, "WebIDL": 323303, "TypeScript": 126912, "JavaScript": 15989, "ANTLR": 11333} | package org.jetbrains.dukat.tsLowerings
import MergeableDeclaration
import TopLevelDeclarationLowering
import org.jetbrains.dukat.ownerContext.NodeOwner
import org.jetbrains.dukat.tsmodel.ClassDeclaration
import org.jetbrains.dukat.tsmodel.ExportAssignmentDeclaration
import org.jetbrains.dukat.tsmodel.FunctionDeclarat... | 0 | null | 0 | 0 | 2a843bb20614e02c011b33ddb8bbe84c4755c107 | 3,195 | dukat | Apache License 2.0 |
src/main/java/com/github/shahrivari/redipper/base/map/RedisMap.kt | shahrivari | 199,589,734 | false | null | package com.github.shahrivari.redipper.base.map
import com.github.shahrivari.redipper.base.RedisCache
import com.github.shahrivari.redipper.base.builder.LoadingBuilder
import com.github.shahrivari.redipper.base.encoding.Encoder
import com.github.shahrivari.redipper.base.serialize.Serializer
import com.github.shahrivar... | 0 | null | 1 | 5 | 8ef809c7577ead1c6cb85a785b9f34217af648ad | 5,358 | redipper | MIT License |
core/data/src/main/java/org/expenny/core/data/repository/RecordRepositoryImpl.kt | expenny-application | 712,607,222 | false | {"Kotlin": 943358} | package org.expenny.core.data.repository
import androidx.room.withTransaction
import kotlinx.coroutines.flow.*
import org.expenny.core.common.extensions.mapFlatten
import org.expenny.core.common.types.RecordType
import org.expenny.core.common.types.TransactionType
import org.expenny.core.data.mapper.DataMapper.toEntit... | 0 | Kotlin | 0 | 0 | 6130f00476493c42847b0411664e5571ec85630b | 6,431 | expenny-android | Apache License 2.0 |
pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/extension/Player.kt | SRGSSR | 519,157,987 | false | null | /*
* Copyright (c) SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
package ch.srgssr.pillarbox.player.extension
import androidx.media3.common.MediaItem
import androidx.media3.common.Player
import androidx.media3.common.Timeline.Window
import androidx.media3.exoplayer.dash.... | 27 | null | 1 | 13 | b155c6d3f2da29b8e30555f13ecce64f28f82db2 | 3,570 | pillarbox-android | MIT License |
jvm/src/test/kotlin/com/github/lagiilein/playground/jvm/MinimumAbsoluteDifferenceTest.kt | Lagiilein | 388,163,657 | false | null | package com.github.lagiilein.playground.jvm
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.DynamicTest
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestFactory
import java.io.File
import java.util.Scanner
internal class MinimumAbsoluteDifferenceTest {
@Test
... | 0 | Kotlin | 0 | 0 | a1bf2620f657994fb8193fd54c3a0ddfc95caeb7 | 1,825 | playground.kt | MIT License |
browser-kotlin/src/jsMain/kotlin/web/idb/IDBKeyRange.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.idb
/**
* A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints ar... | 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 3,118 | types-kotlin | Apache License 2.0 |
animatorhelpers/src/main/java/com/francescozoccheddu/animatorhelpers/ReadOnlyAnimatedValueWrapper.kt | francescozoccheddu | 199,296,063 | false | {"Kotlin": 21434} | package com.francescozoccheddu.animatorhelpers
private class ReadOnlyAnimatedValueWrapper<Type>(animatedValue: ReadOnlyAnimatedValue<Type>) :
ReadOnlyAnimatedValue<Type> by animatedValue
private class ReadOnlyObservableAnimatedValueWrapper<Type>(animatedValue: ReadOnlyObservableAnimatedValue<Type>) :
ReadOnly... | 2 | Kotlin | 0 | 0 | 47c14d8d474d89bc6257cc8eed51133a7d04b741 | 652 | android-AnimatorHelpers | MIT License |
src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/cli/api/DbContextCommandFactory.kt | JetBrains | 426,422,572 | false | {"Kotlin": 186978, "C#": 36332} | package com.jetbrains.rider.plugins.efcore.cli.api
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.jetbrains.rider.plugins.efcore.EfCoreUiBundle
import com.jetbrains.rider.plugins.efcore.cli.api.models.DotnetEfVersion
... | 19 | Kotlin | 12 | 164 | d60fd2a923a4142065516e480193cf5af2d44c6e | 2,352 | rider-efcore | MIT License |
src/main/kotlin/com/demonwav/mcdev/platform/mcp/inspections/EntityConstructorInspection.kt | Earthcomputer | 240,984,777 | false | null | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2018 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.platform.mcp.inspections
import com.demonwav.mcdev.facet.MinecraftFacet
import com.demonwav.mcdev.platform.mcp.McpModuleType
import com.demonwav.mcdev.platform.mcp.ut... | 1 | null | 2 | 23 | ab8aaeb8804c7a8b2e439e063a73cb12d0a9d4b5 | 2,774 | MinecraftDev | MIT License |
src/test/kotlin/io/kjson/testclasses/TestClasses.kt | pwall567 | 389,599,808 | false | null | /*
* @(#) TestClasses.kt
*
* kjson Reflection-based JSON serialization and deserialization for Kotlin
* Copyright (c) 2019, 2020, 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the... | 0 | null | 0 | 9 | f7ba0cd4bc51b1ed00707e9b491cd6c1479e454f | 7,879 | kjson | MIT License |
app/src/main/java/com/noobexon/xposedfakelocation/xposed/utils/PreferencesUtil.kt | noobexon1 | 868,167,563 | false | {"Kotlin": 119934} | // PreferencesUtil.kt
package com.noobexon.xposedfakelocation.xposed.utils
import com.google.gson.Gson
import com.noobexon.xposedfakelocation.data.*
import com.noobexon.xposedfakelocation.data.model.LastClickedLocation
import de.robv.android.xposed.XSharedPreferences
import de.robv.android.xposed.XposedBridge
object ... | 0 | Kotlin | 3 | 21 | 64af161cb15cf5dfece93763a8706348c7b2c70e | 4,456 | XposedFakeLocation | MIT License |
plot-config-portable/src/commonMain/kotlin/jetbrains/datalore/plot/server/config/transform/bistro/util/LayerOptions.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2021. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.server.config.transform.bistro.util
import jetbrains.datalore.plot.base.Aes
import jetbrains.datalore.plot.base.GeomKind
import jetbrains.data... | 67 | null | 37 | 771 | ffa5728a09b348fae441a96aba27e5812a22c18c | 3,378 | lets-plot | MIT License |
ui/common/src/test/java/ly/david/ui/common/series/SeriesListItemTest.kt | lydavid | 458,021,427 | false | null | package ly.david.ui.common.series
import com.google.testing.junit.testparameterinjector.TestParameterInjector
import ly.david.musicsearch.core.models.listitem.SeriesListItemModel
import ly.david.ui.test.screenshot.ScreenshotTest
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(TestParameterInjector::cla... | 115 | null | 0 | 6 | 15b148b54763f72965e3f1b0fbd7296bf7dbc010 | 945 | MusicSearch | Apache License 2.0 |
app/src/main/java/com/ozlem/superheroproject/MainActivity.kt | ozlemaybek | 518,407,563 | false | {"Kotlin": 3165} | package com.ozlem.superheroproject
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
// MainActivity ve XML arasındaki senkronizasyonu sağlamak için:
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
// Bir değişkene h... | 0 | Kotlin | 0 | 0 | 6751240ea3a5cac8433708b2e57f377b40a31dd0 | 1,926 | BTK-SuperHeroProject | Apache License 2.0 |
ollama-client/ollama-client-core/src/jvmTest/kotlin/com/tddworks/ollama/api/OllamaModelTest.kt | tddworks | 755,029,221 | false | {"Kotlin": 251129} | package com.tddworks.ollama.api
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
class OllamaModelTest {
@Test
fun `should return correct latest API model name`() {
assertEquals("llama3", OllamaModel.LLAMA3.value)
assertEquals("llama2", OllamaModel.LLAMA2.value)
... | 0 | Kotlin | 0 | 4 | 58e7ee96dce4c3b5a559deae6e886c50cf67683e | 447 | openai-kotlin | Apache License 2.0 |
features/bible/src/main/kotlin/app/ss/bible/ToolbarComponent.kt | Adventech | 65,243,816 | false | null | /*
* Copyright (c) 2022. Adventech <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 7 | null | 49 | 171 | 2cc105ea76c7fdf979b0b6ee1098f413c1aa009d | 8,558 | sabbath-school-android | MIT License |
domain/src/main/kotlin/no/nav/su/se/bakover/domain/sak/Sak.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.domain
import arrow.core.Either
import arrow.core.Tuple4
import arrow.core.flatMap
import arrow.core.getOrElse
import arrow.core.left
import arrow.core.right
import no.nav.su.se.bakover.common.domain.Saksnummer
import no.nav.su.se.bakover.common.extensions.toNonEmptyList
import no.nav.su.s... | 6 | Kotlin | 1 | 1 | fbeb1614c40e0f6fce631d4beb1ba25e2f78ddda | 23,817 | su-se-bakover | MIT License |
domain/src/main/kotlin/no/nav/su/se/bakover/domain/sak/Sak.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.domain
import arrow.core.Either
import arrow.core.Tuple4
import arrow.core.flatMap
import arrow.core.getOrElse
import arrow.core.left
import arrow.core.right
import no.nav.su.se.bakover.common.domain.Saksnummer
import no.nav.su.se.bakover.common.extensions.toNonEmptyList
import no.nav.su.s... | 6 | Kotlin | 1 | 1 | fbeb1614c40e0f6fce631d4beb1ba25e2f78ddda | 23,817 | su-se-bakover | MIT License |
src/main/kotlin/kotlinmud/path/Explored.kt | brandonlamb | 275,313,206 | true | {"Kotlin": 435931, "Dockerfile": 133, "Shell": 126} | package kotlinmud.path
import kotlinmud.room.model.Room
class Explored(val room: Room, var explored: Boolean = false)
| 0 | null | 0 | 0 | fc03c6230b9b3b66cd63994e74ddd7897732d527 | 120 | kotlinmud | MIT License |
serenity-app/src/main/java/us/nineworlds/serenity/ui/leanback/search/CardPresenter.kt | NineWorlds | 7,139,471 | false | null | /**
* The MIT License (MIT)
* Copyright (c) 2012 <NAME>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modi... | 52 | null | 65 | 177 | 155cfb76bb58f2f06ccac8e3e45151221c59560d | 3,825 | serenity-android | MIT License |
app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/BackupRestoreJob.kt | mihonapp | 743,704,912 | false | null | package eu.kanade.tachiyomi.data.backup.restore
import android.content.Context
import android.content.pm.ServiceInfo
import android.net.Uri
import android.os.Build
import androidx.core.net.toUri
import androidx.work.CoroutineWorker
import androidx.work.ExistingWorkPolicy
import androidx.work.ForegroundInfo
import andr... | 93 | null | 98 | 9,867 | f3a2f566c8a09ab862758ae69b43da2a2cd8f1db | 3,727 | mihon | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/BackupRestoreJob.kt | mihonapp | 743,704,912 | false | null | package eu.kanade.tachiyomi.data.backup.restore
import android.content.Context
import android.content.pm.ServiceInfo
import android.net.Uri
import android.os.Build
import androidx.core.net.toUri
import androidx.work.CoroutineWorker
import androidx.work.ExistingWorkPolicy
import androidx.work.ForegroundInfo
import andr... | 93 | null | 98 | 9,867 | f3a2f566c8a09ab862758ae69b43da2a2cd8f1db | 3,727 | mihon | Apache License 2.0 |
app/src/main/java/com/wuruoye/know/ui/home/ReviewFragment.kt | ruoyewu | 176,071,372 | false | null | package com.wuruoye.know.ui.home
import android.os.Bundle
import android.view.View
import com.wuruoye.know.R
import com.wuruoye.know.ui.home.contract.ReviewContract
import com.wuruoye.library.ui.WBaseFragment
/**
* Created : wuruoye
* Date : 2019/3/6 23:24.
* Description :
*/
class ReviewFragment : WBaseFragment... | 0 | Kotlin | 0 | 0 | e35ce90cadab323b7a33ec2d52d214dfd4868b20 | 541 | know | Apache License 2.0 |
wearapp/src/main/java/com/thewizrd/simpleweather/utils/InputMethodUtils.kt | SimpleAppProjects | 82,603,731 | false | {"Kotlin": 3475152, "Java": 2712561, "HTML": 32933} | package com.thewizrd.simpleweather.utils
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.showInputMethod() {
val imm =
this.context.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager ?: return
imm.showSoftInput(this... | 0 | Kotlin | 8 | 37 | 56ddf09611d786e3bb2b802bdbcbbec648f0df9a | 555 | SimpleWeather-Android | Apache License 2.0 |
wearapp/src/main/java/com/thewizrd/simpleweather/utils/InputMethodUtils.kt | SimpleAppProjects | 82,603,731 | false | {"Kotlin": 3475152, "Java": 2712561, "HTML": 32933} | package com.thewizrd.simpleweather.utils
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.showInputMethod() {
val imm =
this.context.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager ?: return
imm.showSoftInput(this... | 0 | Kotlin | 8 | 37 | 56ddf09611d786e3bb2b802bdbcbbec648f0df9a | 555 | SimpleWeather-Android | Apache License 2.0 |
src/main/kotlin/com/demonwav/mcdev/util/actions.kt | Earthcomputer | 240,984,777 | false | null | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2019 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.util
import com.demonwav.mcdev.facet.MinecraftFacet
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
imp... | 204 | null | 2 | 23 | ab8aaeb8804c7a8b2e439e063a73cb12d0a9d4b5 | 1,947 | MinecraftDev | MIT License |
room/room-runtime/src/test/java/androidx/room/util/UUIDUtilTest.kt | JetBrains | 351,708,598 | 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 | 937 | 59 | e18ad812b77fc8babb00aacfcea930607b0794b5 | 1,616 | androidx | Apache License 2.0 |
app/src/main/java/dev/alibagherifam/mentha/camera/CameraScreen.kt | alibagherifam | 586,387,395 | false | null | package dev.alibagherifam.mentha.camera
import androidx.camera.view.PreviewView
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
i... | 1 | Kotlin | 1 | 9 | 35283da73663fbe24a0b15d75a8cfbeb4e203814 | 3,934 | mentha | Apache License 2.0 |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/configuration/projectUtils.kt | Maccimo | 18,582,736 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.configuration
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.module.Module
im... | 1 | null | 1 | 1 | aa7852d5f99bd8dcd44f6cb430e4e9b94eb96dd1 | 2,629 | intellij-community | Apache License 2.0 |
okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt | square | 5,152,285 | false | null | /*
* Copyright (C) 2014 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 2 | null | 9281 | 45,832 | dbedfd000c8e84bc914c619714b8c9bf7f3e06d4 | 4,414 | okhttp | Apache License 2.0 |
okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt | square | 5,152,285 | false | null | /*
* Copyright (C) 2014 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 2 | null | 9281 | 45,832 | dbedfd000c8e84bc914c619714b8c9bf7f3e06d4 | 4,414 | okhttp | Apache License 2.0 |
app/src/main/java/com/wkw/hot/data/api/HotApi.kt | zj-wukewei | 93,613,475 | false | null | package com.wkw.hot.data.api
import com.wkw.hot.domain.model.HotResponse
import com.wkw.hot.domain.model.PagePopularEntity
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Query
/**
* Created by hzwukewei on 2017-6-6.
*/
interface HotApi {
@GET("582-2")
fun getPopular(@Query("p... | 0 | Kotlin | 1 | 2 | 4d241aadc7a258a76a197198769e947abbb85b03 | 525 | Hot_Kotlin | Apache License 2.0 |
project/jimmer-ksp/src/main/kotlin/org/babyfish/jimmer/ksp/client/ClientExceptionMetadata.kt | babyfish-ct | 488,154,823 | false | null | package org.babyfish.jimmer.ksp.client
import com.google.devtools.ksp.symbol.KSClassDeclaration
data class ClientExceptionMetadata(
val declaration: KSClassDeclaration,
val family: String,
val code: String?,
val superMetadata: ClientExceptionMetadata?
) {
private lateinit var _subMetadatas: List<C... | 13 | null | 72 | 725 | 873f8405a268d95d0b2e0ff796e2d0925ced21e7 | 482 | jimmer | Apache License 2.0 |
src/main/kotlin/cadmium/chrome/Chrome.kt | clonejo | 213,063,430 | true | {"Kotlin": 35892} | package cadmium.chrome
import cadmium.Browser
import cadmium.BrowserConfig
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
/**
* Represents the Chrome Webbrowser
*/
class Chrome(config: ChromeConfig) : Browser(ChromeDriver(config.options), config)
/**
* Configuration... | 0 | null | 0 | 0 | 5d695f420be8660523eac0d4dd0dde942363c412 | 1,203 | cadmium | MIT License |
platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:Suppress("ReplaceJavaStaticMethodWithKotlinAnalog", "ReplaceGetOrSet")
package org.jetbrains.intellij.build.impl
import com.intellij.util.xml.dom.readXmlAsModel
import it.unimi.dsi.fastutil.o... | 7 | null | 5079 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 21,094 | intellij-community | Apache License 2.0 |
notion-console/src/jvmMain/kotlin/io/ashdavies/notion/Main.kt | ashdavies | 36,688,248 | false | null | package io.ashdavies.notion
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import com.jakewharton.mosaic.Text
import com.jakewharton.mosaic.runMosaic... | 11 | Kotlin | 33 | 107 | 2c50c7fe47463c1863462e35a88dc2cf1550a59c | 689 | playground | Apache License 2.0 |
app/src/main/java/com/example/expensetracker/data/currencyFormat/CurrencyFormatsRepository.kt | seyone22 | 719,374,552 | false | {"Kotlin": 288946} | package com.example.expensetracker.data.currencyFormat
import com.example.expensetracker.model.CurrencyFormat
import kotlinx.coroutines.flow.Flow
interface CurrencyFormatsRepository {
fun getAllCurrencyFormatsStream(): Flow<List<CurrencyFormat>>
fun getCurrencyFormatStream(currencyId: Int): Flow<CurrencyForma... | 17 | Kotlin | 0 | 0 | a5969f7a30d0384125ec3fdce71eb6890b327d19 | 601 | Expense_Tracker | MIT License |
bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/models/SentTransaction.kt | horizontalsystems | 147,199,533 | false | null | package io.horizontalsystems.bitcoincore.models
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
@Entity
class SentTransaction() {
@PrimaryKey
var hash = byteArrayOf()
var firstSendTime: Long = System.currentTimeMillis()
var lastSendTime: Long = System.curre... | 20 | null | 55 | 96 | 110018d54d82bb4e3c2a1d6b0ddd1bb9eeff9167 | 480 | bitcoin-kit-android | MIT License |
bpdm-gate/src/main/kotlin/org/eclipse/tractusx/bpdm/gate/dto/LegalEntityGateOutput.kt | eclipse-tractusx | 526,621,398 | false | {"Kotlin": 1712199, "Smarty": 133187, "Dockerfile": 3902, "Java": 2019, "Shell": 1221} | /*******************************************************************************
* Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are ma... | 73 | Kotlin | 7 | 6 | c0c0ccfb385772381a06068d648327291d6ff194 | 2,083 | product-bpdm | Apache License 2.0 |
compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/actionmodecallback/TextActionModeCallback.android.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 0 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 2,445 | androidx | Apache License 2.0 |
data/src/test/java/com/jbkalit/data/source/PostRemoteDataSourceTest.kt | jbkalit | 366,999,274 | false | null | package com.jbkalit.data.source
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.jbkalit.data.scheduler.BaseSchedulerProvider
import com.jbkalit.data.scheduler.SchedulerProvider
import com.jbkalit.data.service.PostService
import com.jbkalit.data.source.post.remote.PostRemoteDataSource
impo... | 0 | Kotlin | 0 | 1 | fbf808718f0648b7bf9046ede6a6c3c60463a1e7 | 1,877 | PostApp | Apache License 2.0 |
Chapter3/favedish-ui/src/main/java/com/favedish/ui/restaurantdetails/mapper/RestaurantDetailsNotificationPresentationToUiMapper.kt | bpbpublications | 533,628,168 | false | null | package com.favedish.ui.restaurantdetails.mapper
import com.favedish.ui.architecture.mapper.NotificationPresentationToUiMapper
import com.favedish.ui.architecture.model.NotificationUiModel
class RestaurantDetailsNotificationPresentationToUiMapper :
NotificationPresentationToUiMapper<Unit> {
override fun toUi(... | 0 | Kotlin | 5 | 7 | cd85b9fb89e307ad4977bcdb63121aa906f19427 | 463 | Clean-Architecture-for-Android | MIT License |
ProductsList/app/src/main/java/br/com/productslist/presentation/products/ProductScreen.kt | gitdaniellopes | 504,232,611 | false | {"Kotlin": 32927} | package br.com.productslist.presentation.products
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
i... | 0 | Kotlin | 0 | 0 | de23caa291295d79e896163cd5ed21e43322f48c | 1,733 | ProductsListApp | MIT License |
intellij-plugin/educational-core/src/com/jetbrains/edu/learning/checker/CheckListener.kt | JetBrains | 43,696,115 | false | {"Kotlin": 5014435, "Java": 42267, "Python": 19649, "HTML": 14893, "CSS": 10327, "JavaScript": 302, "Shell": 71} | package com.jetbrains.edu.learning.checker
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.openapi.project.Project
import com.jetbrains.edu.learning.courseFormat.CheckResult
import com.jetbrains.edu.learning.courseFormat.tasks.Task
interface CheckListener {
fun beforeCheck(project: Pro... | 7 | Kotlin | 49 | 150 | 9cec6c97d896f4485e76cf9a2a95f8a8dd21c982 | 548 | educational-plugin | Apache License 2.0 |
test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCase.kt | JetBrains | 278,369,660 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.test
import com.intellij.application.options.CodeStyle
import com.intellij.codeInsight.daemon.impl.EditorTracker
import com.i... | 284 | null | 5162 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 21,752 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/oceanknight/wanandroid/base/App.kt | Zouyupeng | 795,336,315 | false | {"Kotlin": 2690} | package com.oceanknight.wanandroid.base
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class App: Application() {
} | 0 | Kotlin | 0 | 0 | 800f04bfe3a0bc48d3f33d7dbf2e5e8d6fcd6381 | 160 | wan-android | MIT License |
src/main/kotlin/com.sakebook.sample.lambda_test/App.kt | sakebook | 74,758,660 | false | null | package com.sakebook.sample.lambda_test
import com.amazonaws.services.lambda.runtime.Context
import com.amazonaws.services.lambda.runtime.LambdaLogger
/**
* Created by sakemotoshinya on 16/11/25.
*/
public class App {
public fun handler(count: Int, context: Context): String {
val lambdaLogger = context.... | 0 | Kotlin | 1 | 13 | fe87edcb427d97add55152e008fb367660222bfd | 415 | aws_lambda_gradle_kotlin | Apache License 2.0 |
compose/compose-runtime/src/test/java/androidx/compose/frames/FramesTests.kt | FYI-Google | 258,765,297 | false | null | package androidx.compose.frames
import junit.framework.TestCase
import org.junit.Assert
import java.util.ArrayDeque
import kotlin.reflect.KClass
const val OLD_STREET = "123 Any Street"
const val OLD_CITY = "AnyTown"
const val NEW_STREET = "456 New Street"
const val NEW_CITY = "AnyCity"
class FrameTest : TestCase() {... | 8 | null | 0 | 6 | b9cd83371e928380610719dfbf97c87c58e80916 | 30,928 | platform_frameworks_support | Apache License 2.0 |
src/main/kotlin/github/samyycx/fisherman/modules/exception/DependencyException.kt | samyycX | 742,795,853 | false | {"Kotlin": 13135, "Java": 351} | package github.samyycx.fisherman.modules.exception
class DependencyException(private val failedMessage: String) : Exception() {
override val message: String
get() = failedMessage
} | 0 | Kotlin | 0 | 0 | 9a79fdbbc45ad5ac50c3b82255b48719e969b139 | 195 | Fisherman | MIT License |
app/src/main/java/com/ifanr/tangzhi/ext/Record.kt | cyrushine | 224,551,311 | false | {"Kotlin": 673925, "Java": 59856, "Python": 795} | package com.ifanr.tangzhi.ext
import com.google.gson.JsonObject
import com.minapp.android.sdk.database.Record
import java.lang.reflect.Constructor
private val CONSTRUCTS = mutableMapOf<Class<*>, Constructor<*>>()
@Throws(Exception::class)
private fun findSuitableConstruct(clz: Class<*>): Constructor<*> {
synchr... | 0 | Kotlin | 0 | 0 | ab9a7a2eba7f53eca918e084da9d9907f7997cee | 1,554 | tangzhi_android | Apache License 2.0 |
app/src/main/java/org/liuyi/mifreeformx/proxy/framework/ActivityOptionsInjector.kt | LiuYiGL | 624,455,753 | false | null | package org.liuyi.mifreeformx.proxy.framework
import org.liuyi.mifreeformx.xposed.base.annotation.ProxyField
import org.liuyi.mifreeformx.xposed.base.interfaces.ProxyInterface
/**
* @Author: Liuyi
* @Date: 2023/05/15/11:11:08
* @Description:
*/
interface ActivityOptionsInjector: ProxyInterface {
@get: ProxyF... | 0 | Kotlin | 2 | 34 | 5d96c5ea8dc50df85b3a74090e623b3bcb3a7ae5 | 427 | MiFreeFormX | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin-tcs-android/src/main/kotlin/org/jetbrains/kotlin/gradle/android/AndroidTargetPrototype.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 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.
*/
@file:Suppress("DEPRECATION", "DuplicatedCode")
package org.jetbrains.kotlin.gradle.android
import com.andro... | 7 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 10,126 | kotlin | Apache License 2.0 |
components/ledger/ledger-verification/src/main/kotlin/net/corda/ledger/verification/processor/impl/VerificationRequestProcessor.kt | corda | 346,070,752 | false | null | package net.corda.ledger.verification.processor.impl
import net.corda.data.flow.event.external.ExternalEventContext
import net.corda.data.flow.event.external.ExternalEventResponseErrorType
import net.corda.flow.external.events.responses.exceptions.NotAllowedCpkException
import net.corda.flow.external.events.responses.... | 71 | Kotlin | 9 | 30 | c8f818b35b5fa27ca5fd523a416e2fd8a58b3d7d | 3,583 | corda-runtime-os | Apache License 2.0 |
sample/src/main/java/com/longquan/ui/AuthActivity.kt | 1280149014 | 341,882,911 | false | null | package com.longquan.ui
import android.content.Context
import android.net.ProxyInfo
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.SystemClock
import android.provider.Settings
import android.util.Log
import android.view.View
import android.webkit.WebSettings
import android.we... | 2 | null | 1 | 1 | a38c5dfcbf11e327125da32d86bac29d4bdbc3e8 | 2,390 | WifiMaster | Apache License 2.0 |
app/src/main/java/ru/resodostudios/flick/feature/movies/presentation/components/MovieCard.kt | f33lnothin9 | 565,400,839 | false | null | package ru.resodostudios.flick.feature.movies.presentation.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundation.layout.f... | 0 | Kotlin | 2 | 15 | a9875c075298ad915ad4f4f052c27cfc59818d53 | 4,166 | Flick | Apache License 2.0 |
domain/interactor/weather/weatherinteractor-api/src/main/kotlin/com/francescsoftware/weathersample/domain/interactor/weather/api/GetTodayWeatherInteractor.kt | fvilarino | 355,724,548 | false | {"Kotlin": 574824, "Shell": 60} | package com.francescsoftware.weathersample.domain.interactor.weather.api
import com.francescsoftware.weathersample.core.type.either.Either
import com.francescsoftware.weathersample.domain.interactor.weather.api.model.TodayWeather
/** Gets the current weather */
interface GetTodayWeatherInteractor {
/**
* Get... | 10 | Kotlin | 1 | 33 | ae2e6ad24f6dacb2f6211cdf7684928264f5ebd7 | 556 | Weather-Sample | Apache License 2.0 |
compiler/testData/codegen/box/delegatedProperty/useReflectionOnKProperty.kt | JakeWharton | 99,388,807 | false | null | // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT
import kotlin.reflect.KProperty
class Delegate {
operator fun getValue(t: Any?, p: KProperty<*>): String {
p.parameters
p.retur... | 34 | null | 5563 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 492 | kotlin | Apache License 2.0 |
extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/layers/generated/LayerProperties.kt | mapbox | 330,365,289 | false | null | // This file is generated.
package com.mapbox.maps.extension.compose.style.layers.generated
import androidx.compose.runtime.Immutable
import com.mapbox.bindgen.Value
import com.mapbox.maps.MapboxExperimental
import com.mapbox.maps.extension.compose.style.internal.ComposeTypeUtils
import com.mapbox.maps.extension.styl... | 225 | null | 127 | 454 | b5802714c91775dc9175eb1b26817dbccce4b16f | 68,733 | mapbox-maps-android | Apache License 2.0 |
js/js.translator/testData/box/expression/misc/intRange.kt | JakeWharton | 99,388,807 | false | null | // EXPECTED_REACHABLE_NODES: 1121
package foo
class RangeIterator(val start: Int, var count: Int, val reversed: Boolean) {
var i = start
operator fun next(): Int {
--count
if (reversed) {
i--
return i + 1
}
else {
i++
return i - ... | 184 | null | 5691 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,432 | kotlin | Apache License 2.0 |
apps/toi-livshendelse/src/test/kotlin/HåndterPersonhendelserTest.kt | navikt | 379,186,604 | false | {"Kotlin": 464916, "Dockerfile": 1380} | import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.client.WireMock
import no.nav.arbeidsgiver.toi.livshendelser.AccessTokenClient
import no.nav.arbeidsgiver.toi.livshendelser.PdlKlient
import no.nav.arbeidsgiver.toi.livshendelser.PersonhendelseService
import no.nav.helse.rapids... | 2 | Kotlin | 1 | 0 | d467c77adaf719550efaa23d804211a190ae0e73 | 7,598 | toi-rapids-and-rivers | MIT License |
jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/LambdaHandlerIndex.kt | mithilarao | 176,211,165 | false | null | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.lambda
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiElement
import com.intellij.psi.P... | 1 | null | 1 | 1 | 961d5ab9747161f7ed9587b1db7cde63c51c395a | 3,228 | jsinbucket | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.