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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bbfgradle/tmp/results/BACKUP_JVM/FRONTEND_jbxcnht_PROJECT.kt | DaniilStepanov | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | // Bug happens on JVM -Xuse-ir
// WITH_RUNTIME
// WITH_COROUTINES
// FILE: tmp0.kt
import helpers.*
import kotlin.coroutines.*
import kotlin.coroutines.intrinsics.*
fun builder(c: suspend () -> Unit) {
c.startCoroutine(EmptyContinuation)
}
@Suppress(listOf(1uL, 3uL, 5uL, 7uL), ulongList)
inline class IC(val s: L... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 2,020 | kotlinWithFuzzer | Apache License 2.0 |
app/src/main/java/com/example/bogungym/adapter/ChoosingAdapter.kt | momabogun | 693,280,109 | false | {"Kotlin": 95124} | package com.example.bogungym.adapter
import android.annotation.SuppressLint
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.net.toUri
import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
impo... | 0 | Kotlin | 0 | 0 | cf7a68ae6285311d14a808aeb8886c6489fe5bdb | 3,101 | BogunGym | MIT License |
app/src/main/java/com/vanzoconsulting/tictactoe/ui/BoardActivity.kt | 2021-DEV-005 | 361,874,547 | false | null | package com.vanzoconsulting.tictactoe.ui
import android.os.Bundle
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import android.widget.TextView
import androidx.annotation.StringRes
import androidx.core.content.ContextCompat.getColor
import androidx.core.text.HtmlCompat.FROM_HTM... | 0 | Kotlin | 0 | 0 | 7d4f7dbe8c8589cb6feb37a091086047044f5fd1 | 2,705 | TicTacToe | Apache License 2.0 |
Test/Transaction/NonsegwitUTxO.kt | rushmi0 | 656,012,539 | false | null | package LaeliaX.Transaction
import LaeliaX.util.Bech32
import LaeliaX.util.ShiftTo.decodeBase58
import LaeliaX.util.Hashing.doubleSHA256
import LaeliaX.util.ShiftTo.DeciToHex
import LaeliaX.util.ShiftTo.ByteToHex
import LaeliaX.util.ShiftTo.ByteArrayToHex
import LaeliaX.util.ShiftTo.HexToByteArray
import LaeliaX.uti... | 1 | null | 0 | 1 | 3830aaeb06e75140ab0e3242400f59a5b0fba445 | 8,266 | LaeliaX | MIT License |
litho-it/src/test/com/facebook/litho/TreeDiffingTest.kt | facebook | 80,179,724 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 90 | null | 769 | 7,703 | 8bde23649ae0b1c594b9bdfcb4668feb7d8a80c0 | 30,215 | litho | Apache License 2.0 |
src/test/kotlin/de/codecentric/totiblogpost/IdGenerator.kt | codecentric | 471,350,927 | false | null | package de.codecentric.totiblogpost
import org.springframework.util.SocketUtils
import java.util.*
class IdGenerator {
companion object {
@Synchronized
// TODO migrate to TestSocketUtils once its released. See: https://github.com/spring-projects/spring-framework/issues/28052
fun nextPort(... | 0 | Kotlin | 0 | 0 | 943168175dc08396484893f25a57c2296bfefc0a | 498 | toti-example-service | MIT License |
extension/src/test/java/org/nvest/extension/NumberKtTest.kt | nvest-solutions | 331,924,233 | false | null | package org.nvest.extension
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class NumberKtTest {
@Test
fun `Number is rounded properly`() {
val input = 123.456
val result = input.round(2)
assertThat(result).isEqualTo(123.46)
}
@Test
fun `Double in... | 0 | Kotlin | 0 | 1 | d3569b9b90db750cba206a6a9e76f65f70fa6b51 | 1,095 | android-extensions | Apache License 2.0 |
butterfly-compose/src/main/kotlin/io/getstream/butterfly/compose/internal/Extensions.kt | GetStream | 451,401,439 | false | {"Kotlin": 71414} | /*
* Copyright 2022 Stream.IO, Inc. All Rights Reserved.
*
* 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... | 3 | Kotlin | 10 | 213 | 620cbbf99480bef97fb887311e8f1d3bf6eaf4cd | 954 | butterfly | Apache License 2.0 |
app/src/main/java/jp/mihailskuzmins/sugoinihongoapp/persistence/models/Word.kt | MihailsKuzmins | 240,947,625 | false | null | package jp.mihailskuzmins.sugoinihongoapp.persistence.models
import jp.mihailskuzmins.sugoinihongoapp.extensions.runIf
interface Word {
val original: String
val translation: String
val transcription: String
}
fun Word.createJapaneseTextWithNewLine(isTranscriptionShown: Boolean) =
StringBuilder(translation)
.r... | 1 | null | 1 | 1 | 57e19b90b4291dc887a92f6d57f9be349373a444 | 587 | sugoi-nihongo-android | Apache License 2.0 |
libraries/tools/new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/moduleConfigurators/JsModuleConfigurator.kt | Sathawale27 | 247,057,405 | true | {"Kotlin": 45118239, "Java": 7616593, "JavaScript": 197377, "HTML": 77202, "Lex": 23783, "TypeScript": 21238, "Groovy": 11196, "CSS": 9144, "Shell": 7220, "Batchfile": 5360, "Swift": 2272, "Ruby": 1300, "Objective-C": 404, "Scala": 80} | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.tools.projectWizard.moduleConfigurators
import org.jetbrains.kotlin.tools.projec... | 0 | Kotlin | 0 | 1 | 9dd201aaf243cf9198cf129b22d3aa38fcff182c | 2,070 | kotlin | Apache License 2.0 |
src/test/enhetstester/kotlin/no/nav/familie/ks/sak/integrasjon/familieintegrasjon/IntegrasjonClientTest.kt | navikt | 533,308,075 | false | {"Kotlin": 3728348, "Gherkin": 186833, "Shell": 1839, "Dockerfile": 467} | package no.nav.familie.ks.sak.integrasjon.familieintegrasjon
import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.client.WireMock
import com.github.tomakehurst.wiremock.core.WireMockConfiguration
import io.mockk.every
import io.mockk.mockkObject
import no.nav.familie.kontrakter.... | 3 | Kotlin | 1 | 2 | c39fb12189c468a433ca2920b1aa0f5509b23d54 | 10,578 | familie-ks-sak | MIT License |
mapview-desktop/src/desktopMain/kotlin/example/map/SearchOrCrop.kt | ShreyashKore | 672,328,509 | false | null | package template.map
import kotlin.math.max
fun Map<Tile, TileImage>.searchOrCrop(tile: Tile): TileImage? {
val img1 = get(tile)
if (img1 != null) {
return img1
}
var zoom = tile.zoom
var x = tile.x
var y = tile.y
while (zoom > 0) {
zoom--
x /= 2
y /= 2
... | 4 | null | 1 | 94 | a0d32d8abc3e6b0470f38e74d1e632e1ab3f0999 | 715 | wonderous_compose | MIT License |
src/main/kotlin/com/github/mrbean355/admiralbulldog/persistence/migration/From0To1Migration.kt | danieldonaldson | 318,585,457 | true | {"Kotlin": 200715} | package com.github.mrbean355.admiralbulldog.persistence.migration
import com.google.gson.JsonArray
import com.google.gson.JsonObject
import com.google.gson.JsonParser.parseString
class From0To1Migration : Migration(from = 0, to = 1) {
override fun migrate(config: JsonObject) {
doLegacyMigration(config)
... | 0 | null | 0 | 0 | 6495a9b2d9b7fc9ba5652d3e5a58389abe828f1b | 2,112 | admiralbulldog-sounds | Apache License 2.0 |
HttpServer/src/main/java/top/fksoft/server/http/server/serverIO/responseData/impl/raw/FileResponseData.kt | ExplodingDragon | 216,512,177 | false | null | package top.fksoft.server.http.server.serverIO.responseData.impl.raw
import top.fksoft.server.http.config.HttpConstant
import top.fksoft.server.http.config.ResponseCode
import top.fksoft.server.http.config.ResponseCode.Companion.HTTP_NOT_MODIFIED
import top.fksoft.server.http.config.ResponseCode.Companion.HTTP_OK
impo... | 1 | null | 1 | 2 | da67552f6427e31575fed00e7adc8dfeb2f852e0 | 6,517 | JNetServer | MIT License |
app/src/main/java/com/mindorks/framework/mvp/ui/main/view/MainActivity.kt | janishar | 115,260,052 | false | null | package com.mindorks.framework.mvp.ui.main.view
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.support.design.widget.NavigationView
import android.support.v4.app.Fragment
import android.support.v4.content.ContextCompat
import android.support.v4.view.GravityCompat
import... | 17 | null | 199 | 702 | 5ac97334d417aff636dd587c82ad97c661c38666 | 5,993 | android-kotlin-mvp-architecture | Apache License 2.0 |
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_9_0-Beta/LinesOfCodeLighterAST.kt | github | 143,040,428 | false | null | package com.github.codeql
import com.github.codeql.utils.versions.*
import com.intellij.lang.LighterASTNode
import com.intellij.util.diff.FlyweightCapableTreeStructure
import org.jetbrains.kotlin.KtSourceElement
import org.jetbrains.kotlin.fir.backend.FirMetadataSource
import org.jetbrains.kotlin.ir.IrElement
import o... | 1,149 | null | 1553 | 7,510 | 5108799224a667d9acb2a1a28ff45e680e76e13c | 5,512 | codeql | MIT License |
app/src/main/java/in/dimigo/dimigoin/data/usecase/fcm/FcmUseCaseImpl.kt | dimigo-din | 276,088,881 | false | {"Kotlin": 156078, "Ruby": 939} | package `in`.dimigo.dimigoin.data.usecase.fcm
import `in`.dimigo.dimigoin.data.model.FcmTokenUploadRequestModel
import `in`.dimigo.dimigoin.data.service.DimigoinService
import `in`.dimigo.dimigoin.data.util.Result
import `in`.dimigo.dimigoin.data.util.safeApiCall
import retrofit2.await
class FcmUseCaseImpl(private va... | 10 | Kotlin | 1 | 21 | b89dbdb7f5a540d59a0b70bc91fb29eb7d6a9846 | 754 | dimigoin-android | Apache License 2.0 |
Driver Mobile App/app/src/main/java/in/techware/lataxidriverapp/model/BasicBean.kt | BlondelSeumo | 272,554,453 | false | {"TSQL": 61756373, "PHP": 2277395, "Java": 2067539, "JavaScript": 103903, "Kotlin": 40327, "CSS": 25122, "HTML": 6107, "Hack": 3473} | package `in`.techware.lataxidriverapp.model
/**
* Created by <NAME> on 03 December, 2016.
* Package in.techware.lataxidriver.model
* Project LaTaxi
*/
open class BasicBean : BaseBean() {
/* private ArrayList<CountryBean> countries;
private ArrayList<StateBean> states;
private ArrayList<DistrictBean>... | 0 | TSQL | 4 | 1 | ba28a9ba6129a502a3f5081d9a999d4b2c2da165 | 1,380 | On-Demand-Taxi-Booking-Application | MIT License |
library/kmp-tor-common/src/commonMain/kotlin/io/matthewnelson/kmp/tor/common/address/PortProxy.kt | 05nelsonm | 456,238,754 | false | {"Kotlin": 1053325} | /*
* Copyright (c) 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 25 | Kotlin | 5 | 33 | 7888dc90b99b04f8d28f8abe7ccfb7402e2bd1bc | 1,979 | kmp-tor | Apache License 2.0 |
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/actions/internal/DumpUnityExplorerAction.kt | JetBrains | 42,181,594 | false | null | package com.jetbrains.rider.plugins.unity.actions.internal
import com.intellij.ide.util.treeView.AbstractTreeNode
import com.intellij.openapi.actionSystem.AnActionEvent
import com.jetbrains.rd.platform.internal.DumpAction
import com.jetbrains.rider.plugins.unity.explorer.UnityExplorer
import java.io.OutputStreamWriter... | 284 | null | 141 | 1,212 | 0c8dd88b62259ac3ba4c8c703bd998bf0c67d8cc | 1,235 | resharper-unity | Apache License 2.0 |
postannouncement/src/main/java/org/mhacks/app/postannouncement/ui/PostAnnouncementDialogFragment.kt | mhacks | 22,456,318 | false | null | package org.mhacks.app.postannouncement.ui
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx.lifecycle.Observer
im... | 1 | null | 12 | 21 | 12309b463e51acc3f41c463df647f410e16a6261 | 5,228 | mhacks-android | MIT License |
onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/CurrentTimeServiceAsync.kt | OneBusAway | 864,202,238 | false | {"Kotlin": 1800021, "Java": 32530, "Shell": 3662, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package org.onebusaway.services.async
import java.util.concurrent.CompletableFuture
import org.onebusaway.core.RequestOptions
import org.onebusaway.models.CurrentTimeRetrie... | 0 | Kotlin | 0 | 1 | 53b9dc885b925f3dc94410ade095e2cf5e733fe7 | 646 | java-sdk | Apache License 2.0 |
src/main/kotlin/mathlingua/frontend/chalktalk/phase2/ast/group/clause/existsUnique/ExistsUniqueSection.kt | DominicKramer | 203,428,613 | false | null | /*
* Copyright 2020 The MathLingua 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 o... | 4 | Kotlin | 0 | 67 | c264bc61ac7d9e520018f2652b110c4829876c82 | 2,227 | mathlingua | Apache License 2.0 |
android/src/main/kotlin/net/niuxiaoer/flutter_gromore/manager/FlutterGromoreRewardCache.kt | 50431040 | 496,944,700 | false | null | package net.niuxiaoer.flutter_gromore.manager
import com.bytedance.sdk.openadsdk.TTRewardVideoAd
class FlutterGromoreRewardCache {
companion object {
/// 缓存插屏广告
private var cacheAd: MutableMap<Int, TTRewardVideoAd> = mutableMapOf()
/// 添加缓存插屏广告
fun addCacheAd(id: Int, ad: TTReward... | 1 | Kotlin | 2 | 6 | e2cd2bf1acf8c901758791184ae8a759ad5570ab | 592 | flutter_gromore | MIT License |
tools/plugins/virtual-node/src/main/kotlin/net/corda/cli/plugins/vnode/commands/PlatformMigration.kt | corda | 346,070,752 | false | null | package net.corda.cli.plugins.vnode.commands
import liquibase.Contexts
import liquibase.Liquibase
import liquibase.database.Database
import liquibase.database.DatabaseFactory
import liquibase.database.jvm.JdbcConnection
import liquibase.resource.ClassLoaderResourceAccessor
import net.corda.cli.plugins.vnode.withPlugin... | 32 | null | 25 | 58 | 15a1ccc52cfc6b2edd6a306760f693f59e7aca20 | 5,136 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/ignitetech/compose/data/chat/ChatWithSender.kt | gnumilanix | 602,430,902 | false | null | package com.ignitetech.compose.data.chat
import androidx.room.Embedded
import androidx.room.Relation
import com.ignitetech.compose.data.user.User
data class ChatWithSender(
@Embedded
val chat: Chat,
@Relation(
parentColumn = Chat.FIELD_USER_ID,
entityColumn = User.FIELD_ID
)
val s... | 3 | Kotlin | 1 | 0 | 7a7fc31e7013e91ae78947af6bca1d97fb1140ed | 334 | explore-compose | Apache License 2.0 |
src/main/kotlin/com/team4099/robot2023/subsystems/vision/VisionIO.kt | team4099 | 560,942,123 | false | null | package com.team4099.robot2023.subsystems.vision
import org.littletonrobotics.junction.LogTable
import org.littletonrobotics.junction.inputs.LoggableInputs
interface VisionIO {
class VisionInputs : LoggableInputs {
override fun fromLog(table: LogTable?) {
TODO("Not yet implemented")
}
override fu... | 4 | Kotlin | 2 | 7 | 382bd764bd3c50ad60eb615757072daaa52ab704 | 439 | ChargedUp-2023 | MIT License |
mvicore-demo/mvicore-demo-app/src/main/java/com/badoo/mvicoredemo/ui/main/viewmodel/ViewModel.kt | emreakcan | 287,947,555 | true | {"Gradle": 15, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 13, "Batchfile": 1, "YAML": 2, "Markdown": 31, "Kotlin": 130, "XML": 31, "Proguard": 6, "Java": 5} | package com.badoo.mvicoredemo.ui.main.viewmodel
data class ViewModel(
val buttonColors: List<Int>,
val counter: Int,
val imageUrl: String?,
val imageIsLoading: Boolean
)
| 0 | Kotlin | 0 | 2 | b381a0c3684afca743a39808fbc8a2e37a722375 | 187 | MVICore | Apache License 2.0 |
src/main/kotlin/dev/paulshields/aoc/Day1.kt | Pkshields | 433,609,825 | false | {"Kotlin": 133840} | /**
* Day 1: Sonar Sweep
*/
package dev.paulshields.aoc
import dev.paulshields.aoc.common.readFileAsStringList
fun main() {
println(" ** Day 1: Sonar Sweep ** \n")
val depths = readFileAsStringList("/Day1Depths.txt").mapNotNull { it.toIntOrNull() }
val numDepthIncreases = countNumberOfDepthIncreases(... | 0 | Kotlin | 0 | 0 | e3533f62e164ad72ec18248487fe9e44ab3cbfc2 | 967 | AdventOfCode2021 | MIT License |
src/main/kotlin/com/turbomates/kotlin/lsports/sdk/listener/message/EventsMessage.kt | turbomates | 447,160,415 | false | {"Kotlin": 79957} | package com.turbomates.kotlin.lsports.sdk.listener.message
import com.turbomates.kotlin.lsports.sdk.model.Event
interface EventsMessage : Message {
val body: Body
interface Body {
val events: List<Event>
}
}
| 1 | Kotlin | 0 | 2 | f49520e8922912d8e0e336b58e1af9da6194ac73 | 231 | lsports-sdk-kotlin | MIT License |
src/main/kotlin/org/exampleapps/greatbig/domain/inout/Comment.kt | evangryska94 | 113,926,900 | false | {"YAML": 14, "JSON with Comments": 3, "Batchfile": 1, "JSON": 190, "JavaScript": 13, "Shell": 1, "Maven POM": 1, "Procfile": 1, "Text": 2, "Ignore List": 2, "Git Attributes": 1, "EditorConfig": 1, "Markdown": 18, "INI": 2, "Java": 160, "XML": 24, "HTML": 189, "Scala": 24, "robots.txt": 1, "SCSS": 107, "CSS": 14, "SVG":... | package org.exampleapps.greatbig.domain.inout
import com.fasterxml.jackson.annotation.JsonRootName
import org.exampleapps.greatbig.domain.Author
import java.time.OffsetDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter
@JsonRootName("comment")
data class Comment(val createdAt: String,
... | 1 | null | 1 | 1 | 5436f905da7e1b0fa5756288beaabf931855e7d4 | 1,116 | great-big-example-application | MIT License |
app/src/main/java/org/yameida/worktool/activity/AccessibilityGuideActivity.kt | gallonyin | 473,181,796 | false | null | package com.functorz.worktool.activity
import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import android.view.View
import android.view.animation.AlphaAnimation
import android.view.animation.Animation
import androidx.appcompat.app.AppCompatActivity
import com.blankj.utilcode.util.Lo... | 1 | Kotlin | 118 | 643 | 12eda85c122129cef74cd53d2ce5ca8f95af4422 | 2,368 | worktool | Apache License 2.0 |
android/src/main/kotlin/com/ekodemy/eko_payu/PaymentData.kt | ShubhamJuIT | 340,315,766 | false | null | package com.ekodemy.eko_payu
class PaymentData {
var merchantName: String = "Eko";
var merchantKey: String? = null
var merchantID: String? = null
var isProduction: Boolean? = false
var amount: String? = null;
var txnId: String? = null;
var userCredential: String? = null;
var phoneNumber... | 0 | Kotlin | 0 | 0 | 193bc75222a19faac8209cfff017b66fe4dde00b | 965 | eko_payu | MIT License |
test/i_introduction/_7_Data_Classes/_07_Data_Classes.kt | grmaciel | 44,112,142 | true | {"XML": 13, "Ignore List": 1, "Text": 1, "Markdown": 1, "Kotlin": 109, "Java": 10} | package i_introduction._7_Data_Classes
import kotlin.test.*
import org.junit.Test as test
import org.junit.Assert
public class _07_Data_Classes {
@test fun testDelight() {
Assert.assertTrue(task7())
}
} | 1 | Kotlin | 1 | 1 | bdfb637b99cb4787f05b05f6db604364b1cb3c0f | 221 | workshop-jb | MIT License |
app/src/main/java/ru/maxim/unsplash/ui/login/LoginFragment.kt | maximborodkin | 406,747,572 | false | {"Kotlin": 242939} | package ru.maxim.unsplash.ui.login
import android.app.Activity
import android.os.Bundle
import android.view.View
import androidx.activity.result.contract.ActivityResultContracts.StartActivityForResult
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.fin... | 0 | Kotlin | 0 | 2 | 06a7d3fb24badae12d42d1a6c45666434ec34d73 | 2,539 | kts-android-unsplash | MIT License |
Seção 13 - Orientação a Objetos/Construtor.kt | nunes1909 | 347,762,017 | false | null | package Classes
// O construtor natural da classe Pessoa4 é "(var nome: String, var anoNascimento: Int)"
class Pessoa4(var nome: String) {
// declarando a variavel dentro da classe para possibilitar o uso na função "saudacao()"
// ela espera um retorno, basta colocar nulo que quando a pessoa nao possuir "ano"... | 0 | Kotlin | 0 | 1 | 9fcbf199ddf400be030d71b83ba3fc7f41427d3a | 1,320 | Kotlin | MIT License |
bugsnag-android-core/src/main/java/com/bugsnag/android/LastRunInfoStore.kt | bugsnag | 2,406,783 | false | null | package com.bugsnag.android
import com.bugsnag.android.internal.ImmutableConfig
import java.io.File
import java.util.concurrent.locks.ReentrantReadWriteLock
import kotlin.concurrent.withLock
private const val KEY_VALUE_DELIMITER = "="
private const val KEY_CONSECUTIVE_LAUNCH_CRASHES = "consecutiveLaunchCrashes"
priva... | 22 | null | 205 | 1,188 | 8074d55eae773563fc97e91161b56089bf329107 | 3,261 | bugsnag-android | MIT License |
src/main/kotlin/no/nav/k9brukerdialogapi/ytelse/pleiepengerlivetssluttfase/PleiepengerLivetsSluttfaseApi.kt | navikt | 460,765,798 | false | {"Kotlin": 833953, "Dockerfile": 103} | package no.nav.k9brukerdialogapi.ytelse.pleiepengerlivetssluttfase
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.call
import io.ktor.server.request.receive
import io.ktor.server.response.respond
import io.ktor.server.routing.Route
import io.ktor.server.routing.post
import io.ktor.server.routing.... | 1 | Kotlin | 0 | 0 | 8648aea9614a3568c12d2bce246a14d9e1ebd890 | 2,024 | k9-brukerdialog-api | MIT License |
features/schedule/src/main/java/dev/ryzhoov/napomnix/schedule/ui/list/items/Item.kt | v1aditech | 581,266,106 | false | {"Kotlin": 161157} | package dev.ryzhoov.napomnix.schedule.ui.list.items
internal interface Item {
val id: Long
} | 0 | Kotlin | 0 | 0 | 5b0fc12bf74f19f765d99d5671b0f599bebd17a9 | 97 | napomnix | Apache License 2.0 |
api/unsplash/src/main/kotlin/com/espressodev/gptmap/api/unsplash/impl/UnsplashServiceImpl.kt | f-arslan | 714,072,263 | false | {"Kotlin": 312117, "Dockerfile": 852} | package com.espressodev.gptmap.api.unsplash.impl
import android.util.Log
import com.espressodev.gptmap.api.unsplash.UnsplashApi
import com.espressodev.gptmap.api.unsplash.UnsplashService
import com.espressodev.gptmap.core.model.unsplash.LocationImage
import com.espressodev.gptmap.core.model.ext.classTag
import kotlinx... | 0 | Kotlin | 0 | 2 | dcc8c8c7a2d40a19e08dd7c4f1c56c7d18e59518 | 1,291 | GptMap | MIT License |
app/src/main/java/com/vasu/appcenter/akshay/adshelper/AdMobAdsUtils.kt | vickypathak123 | 381,272,556 | false | {"Java": 1025225, "Kotlin": 539421, "Assembly": 18} | @file:Suppress("unused")
package com.vasu.appcenter.akshay.adshelper
import android.app.Activity
import android.content.Context
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.WindowInsets
import android.view.WindowInsetsController
import androidx.annotation.Str... | 1 | Java | 1 | 2 | 73f9feea0fa77c9df2e6275eec837ae15e07f2be | 3,031 | VasundharaCommonCode | MIT License |
app/src/main/java/org/simple/clinic/analytics/Analytics.kt | pratul | 151,071,054 | false | null | package org.simple.clinic.analytics
import java.util.UUID
object Analytics {
private var reporters: List<Reporter> = emptyList()
fun addReporter(vararg reportersToAdd: Reporter) {
reporters += reportersToAdd
}
fun clearReporters() {
reporters = emptyList()
}
fun removeReporter(reporter: Report... | 0 | null | 1 | 1 | fa311d989cac0a167070f2e1e466191919b659b8 | 1,997 | citest | MIT License |
app/src/main/java/cherryjam/narfu/arkhdialect/ui/CardEditActivity.kt | ACherryJam | 799,249,888 | false | {"Kotlin": 97862} | package cherryjam.narfu.arkhdialect.ui
import android.os.Build
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import cherryjam.narfu.arkhdialect.data.AppDatabase
import cherryjam.narfu.arkhdialect.data.entity.Card
import cherryjam.narfu.arkhdialect.databinding.ActivityCardEditBinding
class C... | 0 | Kotlin | 0 | 1 | e940d28fed814e2d7320fdcb9a4a006f96e6afa5 | 2,130 | arkhdialect | MIT License |
lib/src/main/java/io/vproxy/lib/http/RoutingContext.kt | wkgcass | 166,255,932 | false | null | package io.vproxy.lib.http
import vjson.JSON
import io.vproxy.lib.http.route.SubPath
import io.vproxy.lib.http.route.WildcardSubPath
@Suppress("unused")
interface StorageKey<T>
interface HttpServerConnection {
fun base(): io.vproxy.base.connection.Connection
fun response(status: Int): HttpServerResponse
}
inter... | 6 | null | 37 | 150 | 316ff3f0594a7b403e43c7f738862e8a9b180040 | 4,534 | vproxy | MIT License |
data/src/main/java/sample/kanda/data/mappers/mapConnectionExceptionsToDomainErrors.kt | jcaiqueoliveira | 123,600,821 | false | null | package sample.kanda.data.mappers
import kanda.libs.domain.DomainException
import java.io.IOException
import java.net.SocketTimeoutException
import java.net.UnknownHostException
import java.util.concurrent.TimeoutException
/**
* Created by caique on 3/6/18.
*/
fun mapConnectionExceptionsToDomainErrors(err: Throwabl... | 0 | Kotlin | 0 | 2 | e71755ffcaffaa1b00c5b1afd4a1b64baef644a6 | 631 | finger-burn | MIT License |
cities-web/src/main/kotlin/io/pivotal/cities/web/conversion/CoordinateType.kt | pacphi | 127,375,286 | false | null | package io.pivotal.cities.web.conversion
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.*
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import io.pivotal... | 23 | Kotlin | 4 | 3 | aac664f9a318a32e2a4b4b2ed47dd4697b916eaa | 1,723 | spring-boot-with-kotlin-and-jpa-example | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/autoscaling/RequestCountScalingPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.autoscaling
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.autoscaling.RequestCountScalingProps
@Generated
public fun buildRequestCountScalingProps(initializer: @AwsCdkDsl
RequestCo... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 450 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/domain/Sykmelding.kt | navikt | 121,716,621 | false | {"Kotlin": 426054, "Dockerfile": 440} | package no.nav.syfo.domain
data class Sykmelding(
val id: Int,
val orgnummer: String? = null
)
| 15 | Kotlin | 2 | 4 | 5e7d80fa3e776803f34d67fef96db51818c6ed8b | 104 | syfoinntektsmelding | MIT License |
spring-componentmap/src/test/kotlin/dev/krud/spring/componentmap/examples/calculator/CalculatorOperationType.kt | krud-dev | 523,310,204 | false | null | package dev.krud.spring.componentmap.examples.calculator
enum class CalculatorOperationType {
ADD,
SUBTRACT,
MULTIPLY,
DIVIDE,
NONE
} | 1 | Kotlin | 0 | 8 | af879efc52281530f4115e1e5d9a2b0cf5f6c96c | 154 | spring-componentmap | MIT License |
library/src/main/java/ru/yandex/money/android/sdk/impl/MaxHeightRecyclerView.kt | GorshkovNikita | 144,304,854 | false | null | /*
* The MIT License (MIT)
* Copyright © 2018 NBCO Yandex.Money LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the “Software”), to deal in the Software without restriction, including
* without limitation the rights to use... | 1 | null | 1 | 1 | fa44a3b0a3872d9f1ede52ebbf90fc1d68dcf386 | 2,296 | yandex-checkout-android-sdk | MIT License |
jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererClassifierConstants.kt | aws | 91,485,909 | false | null | // Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.codewhisperer.service
import software.aws.toolkits.jetbrains.services.codewhisperer.language.CodeWhispererProgrammingLanguage
import software.aws.toolkits.... | 363 | Kotlin | 158 | 694 | 7eda113804f1d2fdc180ec08675c200bf748ef01 | 8,565 | aws-toolkit-jetbrains | Apache License 2.0 |
app/src/main/java/ru/dimon6018/metrolauncher/content/oobe/WelcomeActivity.kt | queuejw | 659,118,377 | false | {"Kotlin": 218672, "Java": 102442} | package ru.dimon6018.metrolauncher.content.oobe
import android.app.Activity
import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.WindowCompat
import androidx.fragment.app.commit
impor... | 0 | Kotlin | 0 | 9 | 1599ad6dfca9a8d3e14859d3f82ec665e9f8b5ab | 1,548 | MetroPhoneLauncher | MIT License |
src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt | ZongerZY | 287,689,898 | true | {"Kotlin": 3948599, "Shell": 1958, "Java": 608} | package eu.kanade.tachiyomi.extension.pt.yesmangas
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.onl... | 0 | Kotlin | 1 | 8 | 1f40e4d4c4aff4b71fa72ffae03dbcd871e91803 | 5,289 | tachiyomi-extensions | Apache License 2.0 |
design/src/main/java/com/ingresse/design/ui/component/CreditCardEnums.kt | ingresse | 203,441,687 | false | null | package com.ingresse.design.ui.component
import androidx.annotation.DrawableRes
import com.ingresse.design.R
enum class CardBrands(val regex: String, @DrawableRes val brandIcon: Int) {
AMEX("^3[47][0-9]{13}\$", R.drawable.ic_card_flag_amex),
DINERS("^3(?:0[0-5]|[68][0-9])[0-9]{11}\$", R.drawable.ic_card_flag... | 3 | Kotlin | 0 | 1 | 381d7b36d8ad693cf13c7a5ba02127bcb6278019 | 2,740 | design-systems-android | MIT License |
app/src/main/java/com/github/jing332/tts_server_android/help/ByteArrayBinder.kt | jing332 | 536,800,727 | false | null | package com.github.jing332.tts_server_android.help
import android.os.Binder
// Binder 用于传递大数据
class ByteArrayBinder(val data: ByteArray) : Binder() | 6 | Kotlin | 127 | 1,393 | 8e07e8842cf4cec70154041fcd6a64ad2352d8c8 | 149 | tts-server-android | MIT License |
function/src/main/java/app/allever/android/sample/function/im/viewmodel/ConversationViewModel.kt | devallever | 522,186,250 | false | {"Kotlin": 519675, "Java": 281241, "C++": 13880, "CMake": 1635, "C": 664} | package app.allever.android.sample.function.im.viewmodel
import android.content.Intent
import androidx.lifecycle.viewModelScope
import app.allever.android.lib.core.ext.log
import app.allever.android.lib.core.function.media.MediaBean
import app.allever.android.lib.core.function.mediapicker.MediaPickerHelper
import app.... | 1 | Kotlin | 0 | 3 | 9c4250e2a070b1a51e5e67d3735edbe7b38a90fa | 7,277 | AndroidSampleLibs | Apache License 2.0 |
app/src/main/java/com/eccard/popularmovies/PopularMoviesApp.kt | eccard | 151,618,036 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 25, "Kotlin": 64} | package com.eccard.popularmovies
import android.app.Activity
import android.app.Application
import com.eccard.popularmovies.di.component.DaggerAppComponent
import dagger.android.DispatchingAndroidInjector
import dagger.android.HasActivityInjector
import javax.inject.Inject
class PopularMoviesApp : Application(), HasA... | 1 | null | 1 | 1 | 20423e23dc44578c7599caee95335a92757b0c6d | 692 | Filmes-Famosos | MIT License |
app/src/main/java/com/eccard/popularmovies/PopularMoviesApp.kt | eccard | 151,618,036 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 25, "Kotlin": 64} | package com.eccard.popularmovies
import android.app.Activity
import android.app.Application
import com.eccard.popularmovies.di.component.DaggerAppComponent
import dagger.android.DispatchingAndroidInjector
import dagger.android.HasActivityInjector
import javax.inject.Inject
class PopularMoviesApp : Application(), HasA... | 1 | null | 1 | 1 | 20423e23dc44578c7599caee95335a92757b0c6d | 692 | Filmes-Famosos | MIT License |
data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/Page.kt | SRGSSR | 469,671,723 | false | {"Kotlin": 139259, "Java": 15427, "Shell": 555} | package ch.srg.dataProvider.integrationlayer.data.remote
import kotlinx.serialization.Serializable
/**
* Copyright (c) SRG SSR. All rights reserved.
* <p>
* License information is available from the LICENSE file.
*/
@Serializable
data class Page(
override val id: String,
override val vendor: Vendor,
v... | 5 | Kotlin | 0 | 0 | cf55609aab4410dc2ae53e57b899384b7d6e53a0 | 518 | srgdataprovider-android | MIT License |
app/src/main/java/com/jeanca/gitapp/utils/Colors.kt | hajc1294 | 501,025,933 | false | null | package com.jeanca.gitapp.utils
import androidx.compose.ui.graphics.Color
class Colors {
companion object {
fun getColorFromLanguage(language: String): Color = when (language) {
"Java" -> Color(185, 119, 14)
"Dart" -> Color(26, 188, 156)
"Kotlin" -> Color(175, 122, 19... | 0 | Kotlin | 1 | 0 | 936a4a27f1e8ffd2e1e03585be36cf217cbe91fa | 463 | android-app-kotlin-gitapp | MIT License |
compiler/testData/diagnostics/nativeTests/nativeProtectedFunCall.fir.kt | JetBrains | 3,432,266 | false | null | // ISSUE: KT-58623
package pack
open class ProtectedInsideInlineParent {
protected var protectedParentVar = 0
protected fun protectedParentFun() = 0
}
open class ProtectedInsideInlineError : ProtectedInsideInlineParent() {
protected var protectedVar = 0
protected fun protectedFun() = 0
<!NOTHING... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,407 | kotlin | Apache License 2.0 |
tinn-core/src/main/kotlin/com/virusbear/tinn/shader/VertexShader.kt | virusbear | 809,423,131 | false | {"Kotlin": 65340} | package com.virusbear.tinn.shader
interface VertexShader: Shader {
} | 0 | Kotlin | 0 | 0 | 2bede64a6c92dbf2148ef08bc0f3efc8f5008edf | 70 | tinn | Apache License 2.0 |
app/src/main/java/com/better/alarm/ui/list/InfoFragment.kt | yuriykulikov | 4,096,259 | false | null | package com.better.alarm.presenter
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.res.Resources
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.View... | 63 | null | 161 | 482 | 8293b5229e3b05095894efcdcde924f4188c15e8 | 4,838 | AlarmClock | Apache License 2.0 |
app/src/main/java/com/lianyi/paimonsnotebook/ui/screen/geetest/viewmodel/GeeTestScreenViewModel.kt | QooLianyi | 435,314,581 | false | {"Kotlin": 2026028} | package com.lianyi.paimonsnotebook.ui.screen.geetest.viewmodel
import android.content.Intent
import androidx.lifecycle.ViewModel
class GeeTestScreenViewModel : ViewModel() {
fun init(intent: Intent?, onFail: () -> Unit) {
if (intent == null) {
onFail.invoke()
return
}
... | 1 | Kotlin | 2 | 36 | 59fd15325dfccfd0d5e888b8e77d37bcb5ca7d56 | 326 | PaimonsNotebook | MIT License |
eql-compiler/src/test/kotlin/cz/vutbr/fit/knot/enticing/eql/compiler/ast/visitor/AstDefinitionsGeneratingVisitorTest.kt | d-kozak | 180,137,313 | false | {"Kotlin": 1104829, "TypeScript": 477922, "Python": 23617, "Shell": 19609, "HTML": 8510, "ANTLR": 2005, "CSS": 1432} | package cz.vutbr.fit.knot.enticing.eql.compiler.ast.visitor
internal class AstDefinitionsGeneratingVisitorTest {
} | 0 | Kotlin | 0 | 0 | 1ea9f874c6d2e4ea158e20bbf672fc45bcb4a561 | 116 | enticing | MIT License |
kmongo-shared/src/main/kotlin/org/litote/kmongo/util/SimpleExpression.kt | Litote | 58,964,537 | false | null | /*
* Copyright (C) 2016/2020 Litote
*
* 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 ... | 42 | Kotlin | 74 | 797 | 4ee6939272ca54a342955130ae6d98eb947ace01 | 1,580 | kmongo | Apache License 2.0 |
app/src/androidMain/java/PlatformServiceLocator.kt | cmota | 228,910,680 | false | null | import com.squareup.sqldelight.android.AndroidSqliteDriver
import com.squareup.sqldelight.db.SqlDriver
import data.ScheduleDb
import data.createDatabase
import io.ktor.client.engine.HttpClientEngine
import io.ktor.client.engine.okhttp.OkHttp
import okhttp3.logging.HttpLoggingInterceptor
import presentation.AppApplicati... | 0 | Kotlin | 2 | 24 | ad4e3711428d2827561cdee4c78a8bba97fd9286 | 951 | droidconMAD | Apache License 2.0 |
app/src/main/java/com/xda/nachonotch/activities/SettingsActivity.kt | zacharee | 127,220,159 | false | {"Kotlin": 102537, "AIDL": 103} | package com.xda.nachonotch.activities
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.WindowInsetsSides
import androidx.compose.foun... | 4 | Kotlin | 17 | 78 | cbea9323fd43d5f84f39c7999bb2318ddcfedfe1 | 4,650 | NachoNotch | MIT License |
mbcarkit/src/main/java/com/daimler/mbcarkit/business/model/vehicle/EcoScore.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbcarkit.business.model.vehicle
import com.daimler.mbcarkit.business.model.vehicle.unit.DistanceUnit
import com.daimler.mbcarkit.business.model.vehicle.unit.RatioUnit
data class EcoScore(
/**
* Rating acceleration percentage points (0% - 100%)
* Range: 0..100
*/
var accel: V... | 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 914 | MBSDK-Mobile-Android | MIT License |
app/src/main/java/com/pechuro/cashdebts/ui/fragment/picturetakeoptions/PictureTakeOptionDialogProvider.kt | Ilyshka991 | 171,679,797 | false | null | package com.pechuro.cashdebts.ui.fragment.picturetakeoptions
import com.pechuro.cashdebts.di.annotations.ChildFragmentScope
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
interface PictureTakeOptionDialogProvider {
@ChildFragmentScope
@ContributesAndroidInjector
fun bind():... | 0 | Kotlin | 0 | 3 | afb871ebb70b2863a1f2c290f7e06a3f5b9feab6 | 347 | CashDebts | Apache License 2.0 |
plugins/world/player/skill/woodcutting/cutTree/cutTree.kts | Phynvi | 233,257,304 | true | {"Java": 921214, "Kotlin": 317275, "CSS": 129} | package world.player.skill.woodcutting.cutTree
import api.predef.*
import io.luna.game.event.impl.ObjectClickEvent.ObjectFirstClickEvent
import io.luna.game.model.`object`.GameObject
import io.luna.game.model.mob.Player
import io.luna.util.ExecutorUtils
/**
* Determines which axe the player has and cuts the [treeObj... | 0 | Java | 0 | 0 | f3e81a236e6d21379c319eac1f3d0392f6537b2f | 833 | luna | MIT License |
fitness-center/src/main/kotlin/base/clock/NormalClock.kt | pavponn | 296,904,749 | false | {"Text": 2, "Ignore List": 4, "Markdown": 1, "Maven POM": 2, "Java": 27, "Gradle": 20, "INI": 16, "Shell": 10, "Batchfile": 10, "Kotlin": 166, "SQL": 2, "Java Properties": 4, "AspectJ": 1, "XML": 8, "HTML": 1} | package base.clock
import java.time.Instant
/**
* @author pavponn
*/
class NormalClock : Clock {
override fun now(): Instant {
return Instant.now()
}
} | 1 | null | 1 | 1 | 3a72e61bb66a7eb79385ec8945f3ef8572e4b60e | 172 | software-engineering | MIT License |
app/src/main/java/com/example/tentwentyassignment/activities/DetailPageActivity.kt | zohaibmuhammadf | 442,167,821 | false | {"Kotlin": 23662} | package com.example.tentwentyassignment.activities
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Window
import android.view.WindowManager
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.tentwentyassignment.R
import com.example.tentwentyassignmen... | 0 | Kotlin | 0 | 0 | 2f3e7509d1490a0144b61d951475af9528fbf811 | 2,102 | CustomTabbarFragment-Android | Apache License 2.0 |
Android/Retrofit demo/app/src/main/java/com/example/retrofittut/MainActivity.kt | keshavsingh4522 | 298,358,641 | false | null | package com.example.retrofittut
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.retrofittut.databinding.ActivityMainBi... | 2,951 | null | 3984 | 851 | 6beac31cf93ae1a4556335c775cc77e12efe1e8a | 1,821 | hacktoberfest | Creative Commons Zero v1.0 Universal |
Android/Retrofit demo/app/src/main/java/com/example/retrofittut/MainActivity.kt | keshavsingh4522 | 298,358,641 | false | null | package com.example.retrofittut
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.retrofittut.databinding.ActivityMainBi... | 2,951 | null | 3984 | 851 | 6beac31cf93ae1a4556335c775cc77e12efe1e8a | 1,821 | hacktoberfest | Creative Commons Zero v1.0 Universal |
idea/testData/refactoring/move/kotlin/moveFile/moveFileAndDirWithJavaFileReferringToPackageFragementWithUnmatchedDir/after/test2/FooUsage.kt | JakeWharton | 99,388,807 | true | null | package test2
import test.pack.Foo
val foo = Foo()
| 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 53 | kotlin | Apache License 2.0 |
src/test/kotlin/no/nav/hn/grunndata/rapid/dto/ProductRegistrationDTOTest.kt | navikt | 599,930,610 | false | {"Kotlin": 37339, "Shell": 1505} | package no.nav.hn.grunndata.rapid.dto
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe
import no.nav.hm.grunndata.rapid.dto.AdminStatus
import no.nav.hm.grunndata.rapid.dto.AgreementInfo
import no.nav.hm.grunndata.rapid.dto.Attributes
import no.nav.hm.grunndata.rapid.dto.CompatibleWit... | 0 | Kotlin | 0 | 2 | a660d0135d2bfc079dfe84b402eedb70086b8125 | 4,032 | hm-grunndata-rapid-dto | MIT License |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/flow/terminal_operators/2_collect.kt | Deepankur-Sadana | 813,232,584 | false | {"Kotlin": 255315} | package com.lukaslechner.coroutineusecasesonandroid.playground.flow.terminal_operators
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.launch
import kotlinx.corout... | 0 | Kotlin | 0 | 0 | 3b7d6fe5a5bb0c336ced96f5c6f70f6e825e7232 | 844 | Coroutines-test | Apache License 2.0 |
app/src/main/java/com/app/composedemo/api/ApiService.kt | Dinesh2510 | 773,084,082 | false | {"Kotlin": 18632} | package com.app.composedemo.api
import com.app.composedemo.Constants.Companion.List_Of_product
import com.app.composedemo.model.ProductList
import retrofit2.http.GET
interface ApiService {
@GET(List_Of_product)
suspend fun getProducts(): ProductList
}
| 0 | Kotlin | 0 | 0 | 959f78f59b7aba9509d87f36eeaa45536876144a | 262 | EShop-Jetpack-Compose-API-Demo | MIT License |
app/src/main/java/ir/ayantech/sdk_ocr/MainActivity.kt | AyanTech | 754,078,135 | false | {"Kotlin": 69046} | package ir.ayantech.sdk_ocr
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import ir.ayantech.ocr_sdk.OCRConfig
import ir.ayantech.... | 0 | Kotlin | 0 | 0 | c607f4ae500fafeb38814aa8e6ea844679c18c64 | 2,459 | OCR-SDK | Apache License 2.0 |
units/src/commonMain/kotlin/me/y9san9/calkt/units/calculate/UnitsMathCalculateInfixOperator.kt | y9san9 | 842,898,431 | false | {"Kotlin": 79012} | package me.y9san9.calkt.units.calculate
import me.y9san9.calkt.calculate.CalculateContext
import me.y9san9.calkt.calculate.CalculateResult
import me.y9san9.calkt.math.DefaultInfixKeys
import me.y9san9.calkt.math.InfixKey
import me.y9san9.calkt.math.MathExpression
import me.y9san9.calkt.math.calculate.MathCalculateInfi... | 1 | Kotlin | 1 | 21 | 06d1ecbca749ad4107d08d719916a10aa95aa6df | 5,322 | calkt | MIT License |
src/main/kotlin/org/arend/psi/ext/ArendLevelExpr.kt | JetBrains | 96,068,447 | false | {"Kotlin": 2655823, "Lex": 16187, "Java": 5894, "HTML": 2144, "CSS": 1108, "JavaScript": 713} | package org.arend.psi.ext
import org.arend.term.abs.AbstractLevelExpressionVisitor
import com.intellij.lang.ASTNode
import com.intellij.psi.util.elementType
import org.arend.psi.ArendElementTypes
import org.arend.psi.firstRelevantChild
import org.arend.psi.getChildOfType
import org.arend.term.abs.Abstract
open class... | 73 | Kotlin | 15 | 90 | 7a6608a2e44369e11c5baad3ef2928d6f9c971b2 | 903 | intellij-arend | Apache License 2.0 |
app/src/main/java/com/example/beokweather/domain/WeatherService.kt | ParkChan | 274,966,026 | true | {"Kotlin": 40144} | package com.example.beokweather.domain
import com.example.beokweather.domain.entity.ForecastResponse
import com.example.beokweather.domain.entity.WeatherResponse
import retrofit2.http.GET
import retrofit2.http.Query
interface WeatherService {
@GET("weather")
suspend fun getCurrentWeather(
@Query("lat... | 0 | null | 0 | 0 | 640142e31d54f718fcc56c8f9ac740fc88dbdba3 | 671 | BeokWeather | MIT License |
src/main/kotlin/ru/dageev/compiler/parser/ErrorListener.kt | rmnn | 54,289,657 | false | null | package ru.dageev.compiler.parser
import org.antlr.v4.runtime.BaseErrorListener
import org.antlr.v4.runtime.RecognitionException
import org.antlr.v4.runtime.Recognizer
/**
* Created by dageev
* on 15-May-16.
*/
class ErrorListener : BaseErrorListener() {
override fun syntaxError(recognizer: Recognizer<*, *>,... | 0 | Kotlin | 0 | 0 | ea5213229ef4037ff02665854ccd15d9f16d56a0 | 535 | compiler | Apache License 2.0 |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/flow/terminal_operators/1_flows_vs_lists.kt | LukasLechnerDev | 248,218,113 | false | null | package com.example.kotlin_coroutines_and_flow.playground.flow.terminal_operators
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.flow
fun main() {
//it does not execute without terminal operation
val flow = flow {
delay(100)
println("Emitting first value")
emit(1)
... | 5 | null | 436 | 2,664 | 636b1038c42073a45bfccb25afbedc294b0f032d | 534 | Kotlin-Coroutines-and-Flow-UseCases-on-Android | Apache License 2.0 |
app/src/main/java/io/fastkv/fastkvdemo/MainActivity.kt | BillyWei01 | 416,593,131 | false | null | package io.fastkv.fastkvdemo
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import io.fastkv.FastKV
import io.fastkv.fastkvdemo.account.AccountManager
import io.fastkv.f... | 0 | null | 37 | 347 | 8b5bc2bfc128100d32188bcb32b6e3bec640510b | 5,221 | FastKV | MIT License |
app-inspection/ide/src/com/android/tools/idea/appinspection/ide/resolver/ArtifactResolverFactory.kt | JetBrains | 60,701,247 | false | {"Kotlin": 47327090, "Java": 36711107, "HTML": 1217549, "Starlark": 856686, "C++": 321587, "Python": 100400, "C": 71515, "Lex": 66732, "NSIS": 58538, "AIDL": 35209, "Shell": 28699, "CMake": 26717, "JavaScript": 18437, "Batchfile": 7828, "Smali": 7580, "RenderScript": 4411, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 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 app... | 3 | Kotlin | 220 | 912 | d88742a5542b0852e7cb2dd6571e01576cb52841 | 2,136 | android | Apache License 2.0 |
app/src/main/java/me/ibrahimsn/wallet/di/module/SendFragmentBuilder.kt | ibrahimsn98 | 188,556,561 | false | null | package me.ibrahimsn.wallet.di.module
import dagger.Module
import dagger.android.ContributesAndroidInjector
import me.ibrahimsn.wallet.ui.send.confirm.ConfirmFragment
import me.ibrahimsn.wallet.ui.send.send.SendFragment
@Module
abstract class SendFragmentBuilder {
/**
* Build Send Transaction Fragment
... | 0 | Kotlin | 11 | 37 | e8ee5997813979fade2cf8496b0ec1bc3fbec7fa | 573 | android-eth-wallet | MIT License |
lib/src/commonMain/kotlin/xyz/mcxross/ksui/internal/Transaction.kt | mcxross | 611,172,630 | false | {"Kotlin": 269236, "Shell": 3152} | /*
* Copyright 2024 McXross
*
* 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 w... | 0 | Kotlin | 2 | 5 | e456766ba489e09f710c2ed3a41f83b27100f4f4 | 7,013 | ksui | Apache License 2.0 |
src/main/java/com/adityaamolbavadekar/android/apps/culture/ConfigureTheme.kt | AdityaBavadekar | 424,247,862 | false | null | package com.adityaamolbavadekar.android.apps.culture
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.preference.PreferenceManager
class ConfigureTheme {
fun onCreate(TAG: String, activity: Context) {
val prefs =... | 0 | Kotlin | 0 | 1 | b6418f4784ff51749cb2e9487f6e5a3af42e1db1 | 924 | Culture | Apache License 2.0 |
common/src/main/java/io/novafoundation/nova/common/utils/formatting/TimerValue.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8137060, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.common.utils.formatting
import kotlin.time.Duration
import kotlin.time.DurationUnit
import kotlin.time.toDuration
class TimerValue(
val millis: Long,
val millisCalculatedAt: Long, // used to offset timer value if timer is rerun, e.g. in the RecyclerView
) {
companion object ... | 12 | Kotlin | 6 | 9 | 618357859a4b7af95391fc0991339b78aff1be82 | 901 | nova-wallet-android | Apache License 2.0 |
app/src/main/kotlin/io/github/d4isdavid/educhat/http/request/HttpFormDataPart.kt | D4isDAVID | 763,254,966 | false | {"Kotlin": 355508} | package io.github.d4isdavid.educhat.http.request
data class HttpFormDataPart(
val content: String,
val name: String,
val contentType: String? = null,
val filename: String? = null
)
| 0 | Kotlin | 0 | 0 | 9f1d235cdc787c4c011c686703926c8f0fa2919a | 198 | EduChat-app | MIT License |
miniapp/src/test/java/com/rakuten/tech/mobile/miniapp/js/ShareContentBridgeSpec.kt | rakutentech | 225,744,634 | false | null | package com.rakuten.tech.mobile.miniapp.js
import androidx.test.core.app.ActivityScenario
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.gson.Gson
import com.rakuten.tech.mobile.miniapp.TEST_CALLBACK_ID
import com.rakuten.tech.mobile.miniapp.TEST_MA_ID
import com.rakuten.tech.mobile.miniapp.Tes... | 8 | null | 34 | 73 | 9111d5080f211cf3d6104a2531f4439ac3eb8bcd | 7,481 | android-miniapp | MIT License |
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/member/RoomMemberMapper.kt | element-hq | 546,522,002 | false | {"Kotlin": 7171042, "Shell": 34494, "Python": 30426, "JavaScript": 20003, "Java": 9607, "HTML": 9416, "CSS": 2519, "Ruby": 44} | /*
* Copyright (c) 2024 New Vector Ltd
*
* 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 agr... | 222 | Kotlin | 93 | 769 | a8db707314c68951b5b9c724bd84f4ddeed67677 | 2,255 | element-x-android | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/SquareX.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,504 | icons | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/pecs/jpc/domain/move/MoveQueryRepository.kt | ministryofjustice | 292,861,912 | false | null | package uk.gov.justice.digital.hmpps.pecs.jpc.move
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.jdbc.core.RowMapper
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.pecs.jpc.importer.report.... | 3 | null | 2 | 3 | f53ee728d5bea3453a5cde02d8751a13069cc335 | 10,846 | calculate-journey-variable-payments | MIT License |
app/src/main/java/com/junenine/composeTemplate/ui/theme/Themes.kt | krissirk0906 | 535,999,045 | false | {"Kotlin": 16730} | package com.junenine.composeTemplate.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.MaterialTheme.colorScheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import an... | 0 | Kotlin | 1 | 1 | 78973d3e2fe3e178e93e639732e8cc1fc7a9cc5d | 1,062 | ComposeMVVMTemplate | Apache License 2.0 |
osmunda/src/main/java/moe/sunjiao/osmunda/model/SearchResult.kt | sun-jiao | 257,820,207 | false | null | package moe.sunjiao.osmunda.model
import android.database.sqlite.SQLiteDatabase
/**
* search result of geocoder and reverse geocoder
* can be converted to address
* created on 4/22/2020.
*
* @author Sun Jiao(孙娇)
*
* @param lat latitude of location
* @param lon longitude of location
* @param name name of loca... | 2 | Kotlin | 5 | 42 | c8dbf04e8a0983254edb3910f4f4bbcf6439942d | 694 | Osmunda | Apache License 2.0 |
app/src/main/java/com/king/mvvmframe/app/adapter/SearchHistoryAdapter.kt | jenly1314 | 161,462,436 | false | {"Kotlin": 92766, "Java": 7135, "Shell": 760} | package com.king.mvvmframe.app.adapter
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import com.king.mvvmframe.R
import com.king.mvvmframe.app.Constants
import com.king.mvvmframe.bean.SearchHistory
import com.king.mvvmframe.util.RandomUtil.randomColor
import com.zhy.view.fl... | 0 | Kotlin | 53 | 362 | bda62f6da0e506849686247bb53b6ae4670bf7ae | 962 | MVVMFrame | MIT License |
app/src/main/java/com/tomg/githubreleasemonitor/main/data/GitHubRepository.kt | Tommy-Geenexus | 275,373,591 | false | null | /*
* Copyright (c) 2020-2022, <NAME> (<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,... | 2 | null | 2 | 2 | a42c6cd7ba2f8b8fc150048582ba3bbd68c48f94 | 2,057 | gh-release-monitor | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.