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/babylon/wallet/android/data/gateway/apis/StatisticsApi.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4940882, "HTML": 215350, "Ruby": 2757, "Shell": 1963} | package com.babylon.wallet.android.data.gateway.apis
import com.babylon.wallet.android.data.gateway.generated.models.ValidatorsUptimeRequest
import com.babylon.wallet.android.data.gateway.generated.models.ValidatorsUptimeResponse
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST
interface St... | 4 | Kotlin | 6 | 9 | 36c670dd32d181e462e9962d476cb8a370fbe4fe | 850 | babylon-wallet-android | Apache License 2.0 |
library/src/test/java/com/patloew/colocation/CoLocationTest.kt | eslamfaisal | 350,502,976 | true | {"Kotlin": 53729} | package com.patloew.colocation
import android.content.Context
import android.location.Location
import com.google.android.gms.common.api.ResolvableApiException
import com.google.android.gms.location.*
import com.google.android.gms.tasks.OnCanceledListener
import com.google.android.gms.tasks.OnFailureListener
import com... | 0 | null | 0 | 1 | e2224f667e76a3df2023f7ad753b031ed108ba27 | 15,848 | CoLocation | Apache License 2.0 |
app/src/main/java/com/android/bloomshows/presentation/on_boarding/OnBoardingScreen.kt | vickyrules | 677,380,922 | false | null | package com.android.bloomshows.presentation.on_boarding
import CircleRevealPager
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foun... | 1 | Kotlin | 0 | 1 | 87498efe7093468346daa9b345dfeade88bad523 | 3,426 | BloomShows | Apache License 2.0 |
app/src/main/java/com/gilka/scubareddit/channel/ChannelFragment.kt | gilkagan | 136,358,377 | false | {"Kotlin": 27178} | package com.gilka.scubareddit.channel
import android.widget.Toast
import com.gilka.scubareddit.listing.BaseListingFragment
import com.gilka.scubareddit.data.DataManager
import com.gilka.scubareddit.listing.ListingAdapter
import kotlinx.android.synthetic.main.fragment_listing.*
import rx.android.schedulers.AndroidSche... | 0 | Kotlin | 0 | 0 | d8fa55c0b74d2a65d444ea629648befa337e1919 | 1,207 | scuba-reddit | Creative Commons Attribution 3.0 Unported |
kotlin/src/test/kotlin/Add Two Numbers Test.kt | geoangelotti | 755,316,185 | false | {"Kotlin": 102945, "Go": 59515, "JavaScript": 33541, "Rust": 18835, "Python": 8457, "Scala": 5832, "C": 4382, "C++": 1110, "Makefile": 1015} | import o.mg.ListNode
import o.mg.addTwoNumbers
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
import java.util.stream.Stream
class `Add Two Numbers Test` {
... | 0 | Kotlin | 0 | 0 | 62d581c55f2a1c4c9f10169b24dea0bfec3eecdc | 1,130 | leetcode | MIT License |
apps/mobile-app/src/main/kotlin/dev/marlonlom/demos/bookbar/ui/navigation/MainBottomNavBar.kt | marlonlom | 740,270,327 | false | {"Kotlin": 152311} | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.demos.bookbar.ui.navigation
import androidx.compose.material3.Icon
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.Text
import androidx.... | 0 | Kotlin | 0 | 0 | f2de6f75e47a257d2d93389cbf6b61e71cd020cc | 1,103 | bookbar | Apache License 2.0 |
Driver Mobile App/app/src/main/java/in/techware/lataxidriverapp/model/DocumentStatusBean.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
import `in`.techware.lataxidriverapp.util.AppConstants
import java.util.*
/**
* Created by <NAME> on 28 April, 2017.
* Package in.techware.lataxidriver.model
* Project LaTaxiDriver
*/
class DocumentStatusBean : BaseBean() {
var documents: ArrayList<DocumentBean> =... | 0 | TSQL | 4 | 1 | ba28a9ba6129a502a3f5081d9a999d4b2c2da165 | 810 | On-Demand-Taxi-Booking-Application | MIT License |
app/src/main/java/com/app/movieapp/utlis/ConstantFun.kt | Dinesh2510 | 854,023,271 | false | {"Kotlin": 166695} | package com.app.movieapp.utlis
import android.app.Activity
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.co... | 0 | Kotlin | 0 | 2 | 10c5c66504390ea68ed63dac84179a5921900f4d | 10,579 | TMDB-Movie-App-Jetpack-Compose | MIT License |
runtime/src/jvmMain/kotlin/pbandk/Marshaller.kt | Studyo | 244,422,180 | true | {"Gradle": 5, "Gradle Kotlin DSL": 7, "Shell": 3, "Text": 3, "Ignore List": 1, "Batchfile": 1, "Markdown": 6, "Java Properties": 1, "Protocol Buffer": 8, "Kotlin": 65, "Go": 2, "Java": 1, "HTML": 1, "YAML": 1} | package pbandk
import com.google.protobuf.CodedOutputStream
actual class Marshaller(val stream: CodedOutputStream, val backingBytes: ByteArray? = null) : pbandk.impl.Marshaller() {
actual override fun writeTag(tag: Int) = also { stream.writeUInt32NoTag(tag) }
actual fun writeDouble(value: Double) = stream.wri... | 0 | Kotlin | 1 | 2 | 9f853ecd57b407db4a46e6a00a94768621412fbb | 1,625 | pbandk | MIT License |
src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/velocitys/vanilla/GlitchVelocity.kt | Rmejia39 | 733,988,804 | false | {"Kotlin": 2304965, "Java": 1271227, "GLSL": 13515, "JavaScript": 8926} | package net.ccbluex.liquidbounce.features.module.modules.combat.velocitys.vanilla
import net.ccbluex.liquidbounce.event.PacketEvent
import net.ccbluex.liquidbounce.event.UpdateEvent
import net.ccbluex.liquidbounce.features.module.modules.combat.velocitys.VelocityMode
class GlitchVelocity : VelocityMode("Glitch") {
... | 3 | Kotlin | 0 | 0 | b48c4e83c888568111a6665037db7fd3f7813ed3 | 771 | FDPClient | MIT License |
app/src/test/java/com/ovidiu/portfolio/architecture/viewmodel/ProfessionalViewModelUnitTest.kt | ovidiu-b | 262,657,251 | false | {"Kotlin": 76041} | package com.ovidiu.portfolio.architecture.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.google.common.truth.Truth.assertThat
import com.ovidiu.portfolio.architecture.LiveDataTestUtil
import com.ovidiu.portfolio.architecture.MainCoroutineRule
import com.ovidiu.portfolio.archite... | 0 | Kotlin | 0 | 1 | 0e325c84feb37b2d61a5be30eb74577154e83950 | 3,553 | ovidiu-portfolio | Apache License 2.0 |
app/src/main/java/org/tokend/template/features/offers/logic/CancelOfferUseCase.kt | aryatmajaya | 211,783,738 | true | {"Kotlin": 1165162, "HTML": 57453, "Java": 19537} | package org.tokend.template.features.offers.logic
import io.reactivex.Completable
import io.reactivex.Single
import org.tokend.template.di.providers.AccountProvider
import org.tokend.template.di.providers.RepositoryProvider
import org.tokend.template.features.offers.model.OfferRecord
import org.tokend.template.logic.t... | 0 | null | 0 | 0 | f39ab1ff98086c1e4b6d34652c3b1730a0474c51 | 1,880 | android-client | Apache License 2.0 |
application/src/main/kotlin/utils/SideMenuTabType.kt | spbu-coding-2023 | 791,463,283 | false | {"Kotlin": 395040, "Python": 12766} | package utils
/**
* Represents the different types of tabs in the side menu.
*
* @property title the title of the tab
*
*/
enum class SideMenuTabType(val title: String) {
HOME("Home"),
GRAPH_VIEW("GraphView"),
SETTINGS("Settings"),
ALGORITHMS("Algorithms"),
REPRESENTATION("Representation"),
SAVE("Save");
... | 2 | Kotlin | 0 | 1 | 99a26933df2abf9a1bb2e37040ad3f436de48856 | 857 | graphs-graphs-12 | MIT License |
src/main/kotlin/org/wfanet/measurement/kingdom/service/api/v2alpha/ExchangeStepAttemptsService.kt | world-federation-of-advertisers | 349,561,061 | false | null | // Copyright 2021 The Cross-Media Measurement 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 applic... | 98 | null | 9 | 36 | b5c84f8051cd189e55f8c43ee2b9cc3f3a75e353 | 8,829 | cross-media-measurement | Apache License 2.0 |
feature/appdetail/src/main/kotlin/com/merxury/blocker/feature/appdetail/sdk/SdkContent.kt | lihenggui | 115,417,337 | false | {"Kotlin": 2101075, "Java": 24192, "Shell": 10296, "AIDL": 771} | /*
* Copyright 2024 Blocker
*
* 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 ... | 20 | Kotlin | 49 | 840 | 759e650c55a84ffa985837653cb6798878b53889 | 4,736 | blocker | Apache License 2.0 |
app/common/src/main/kotlin/me/zhanghai/android/files/fileproperties/permissions/SetGroupDialogFragment.kt | overphoenix | 621,371,055 | false | null | /*
* Copyright (c) 2019 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.files.fileproperties.permissions
import androidx.annotation.StringRes
import androidx.fragment.app.Fragment
import java8.nio.file.Path
import tech.nagual.common.R
import me.zhanghai.android.files.file.FileItem
import me.... | 0 | Kotlin | 0 | 0 | 64264f261c2138d5f1932789702661917bbfae28 | 1,642 | phoenix-android | Apache License 2.0 |
app/src/main/java/com/wuhenzhizao/mvp/app/MainContract.kt | wuhenzhizao | 142,847,078 | false | null | package com.wuhenzhizao.mvp.app
import com.wuhenzhizao.mvp.BasePresenter
import com.wuhenzhizao.mvp.IBasePresenter
import com.wuhenzhizao.mvp.IBaseView
interface MainContract {
interface MainView : IBaseView {
fun setTitle(title: String)
}
abstract class MainPresenter(view:MainView) : BasePrese... | 1 | null | 1 | 6 | f256612a6d8eadd1b93cf2c3a3ed653b85ace846 | 389 | kotlin-mvp-framework | Apache License 2.0 |
api-base/src/jvmMain/kotlin/com/lhwdev/fetch/http/httpSession.kt | lhwdev | 289,257,684 | false | null | package com.lhwdev.fetch.http
import com.lhwdev.fetch.*
import java.net.*
private val sCookieThreadLocal = ThreadLocal<CookieHandler?>()
object ThreadLocalCookieManager : CookieHandler() {
override fun get(
uri: URI,
requestHeaders: Map<String, List<String>>
): Map<String, List<String>> = sCookieThreadLocal.... | 2 | Kotlin | 7 | 50 | 06ada78bb235a170f74c9a3f06dc9b5ea99e0a8d | 2,037 | covid-selftest-macro | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/SwapCallsSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/SwapCallsSharp")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val SwapCallsSharp: SvgIconComponent
| 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 210 | kotlin-wrappers | Apache License 2.0 |
tilbakekreving/domain/src/main/kotlin/tilbakekreving/domain/TilbakekrevingsbehandlingId.kt | navikt | 227,366,088 | false | {"Kotlin": 9216308, "Shell": 4369, "TSQL": 1233, "Dockerfile": 800} | package tilbakekreving.domain
import java.util.UUID
data class TilbakekrevingsbehandlingId(
val value: UUID,
) {
override fun toString(): String = value.toString()
companion object {
fun generer() = TilbakekrevingsbehandlingId(UUID.randomUUID())
fun fraString(id: String) = Tilbakekrevings... | 1 | Kotlin | 1 | 1 | bcfe10b28af8a9a8592c0cf8422d19b6892ee872 | 362 | su-se-bakover | MIT License |
remote/src/main/java/com/anangkur/wallpaper/remote/model/base/BaseResponse.kt | anangkur | 281,979,916 | false | {"Kotlin": 114266} | package com.anangkur.budgetku.remote.model.base
import com.google.gson.annotations.SerializedName
data class BaseResponse<T>(
@SerializedName("data")
val data: T,
@SerializedName("message")
val message: String? = ""
) | 6 | Kotlin | 2 | 8 | e893dfec250c6a5bb9440609038d8b3d3c9c471b | 235 | walla | MIT License |
mvi/lib-mvi-impls/src/main/java/ru/surfstudio/android/core/mvi/impls/ui/middleware/BaseMiddleware.kt | surfstudio | 139,034,657 | false | null | /*
Copyright (c) 2020, SurfStudio LLC.
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 writ... | 5 | null | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 4,251 | SurfAndroidStandard | Apache License 2.0 |
app/src/main/java/com/pocketkarma/fastpaste/CopyToClipboardReceiver.kt | jmichaud | 340,762,925 | false | null | package com.pocketkarma.fastpaste
import android.content.*
import androidx.core.content.ContextCompat
class CopyToClipboardReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
context?.let {
val label = intent?.getStringExtra(CLIPBOARD_LABEL) ?: "label... | 0 | Kotlin | 0 | 0 | c8fc826e8f105cf12e0afbf87e9d582322931150 | 666 | FastPaste | Apache License 2.0 |
app/src/main/java/com/example/helloworld/MainActivity.kt | vetskiver | 739,992,809 | false | {"Kotlin": 2109} | package com.example.helloworld
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.Toast
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInsta... | 0 | Kotlin | 0 | 0 | ff590ea59cdf0f328adb088ff063c91fb5e7228b | 1,092 | CodePath_And102_Prework | Apache License 2.0 |
MovieAppMandiri/app/src/main/java/com/achmadabrar/movieapp_mandiri/presentation/adapter/GenrePageAdapter.kt | achmadabrar | 316,360,868 | false | null | package com.achmadabrar.movieapp_mandiri.presentation.adapter
class GenrePageAdapter {
} | 1 | null | 1 | 1 | 707d75bba3461130b977f476de594a566b96f929 | 89 | test_scanner_java | Creative Commons Attribution 4.0 International |
OlaMundo_APP1/app/src/main/java/com/cassio/olamundo_app1/MainActivity.kt | cassiofm | 382,967,684 | false | null | package com.cassio.olamundo_app1
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
} | 0 | Kotlin | 0 | 0 | ee75a080ae06c2ddd4ab1a0ed26bed81c08dc293 | 305 | mobile | MIT License |
app/src/main/java/com/steve_md/smartmkulima/model/FarmConditions.kt | MuindiStephen | 559,873,955 | false | {"Kotlin": 613534, "Java": 83493, "CMake": 595, "C++": 247} | package com.steve_md.smartmkulima.model
data class FarmConditions(
val temperature: Double,
val humidity: Double,
val soilMoisture: Double,
val windspeed: Double,
val precipitation: Double,
val lightDensity: Double,
val nbkLevel: Double,
val soilPh: Double
) | 1 | Kotlin | 1 | 5 | 5894a37503e8965264672d8a0232c5ab1cfb892c | 291 | Agri-Sasa | MIT License |
core/test/src/main/kotlin/dev/pott/abonity/core/test/subscription/entities/TestSubscriptionFactories.kt | JohannesPtaszyk | 695,929,733 | false | {"Kotlin": 503252} | package dev.pott.abonity.core.test.subscription.entities
import dev.pott.abonity.core.entity.subscription.Category
import dev.pott.abonity.core.entity.subscription.CategoryId
fun createTestCategory(id: Long = 1, name: String = "Test Category"): Category {
return Category(
CategoryId(id),
name,
... | 9 | Kotlin | 0 | 2 | 43d236bcf5c17d9a5bbeaab4b09f42d0025441b0 | 547 | Abonity | Apache License 2.0 |
data/RF00658/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF00658"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
8 to 1... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,361 | Rfam-for-RNArtist | MIT License |
src/main/kotlin/dev3/blockchainapiservice/features/contract/interfaces/model/response/SuggestedContractInterfaceManifestsResponse.kt | 0xDev3 | 539,904,697 | false | null | package dev3.blockchainapiservice.features.contract.interfaces.model.response
import dev3.blockchainapiservice.features.contract.interfaces.model.result.MatchingContractInterfaces
data class SuggestedContractInterfaceManifestsResponse(
val manifests: List<ContractInterfaceManifestResponse>,
val bestMatchingIn... | 0 | Kotlin | 0 | 0 | d9aa8802cf140e0cdd3b701fa2a9c30764b4ad5f | 610 | blockchain-api-service | MIT License |
sql/src/main/kotlin/io/github/pdvrieze/kotlinsql/metadata/impl/RawResultSetWrapper.kt | pdvrieze | 55,180,714 | false | null | /*
* Copyright (c) 2020.
*
* This file is part of kotlinsql.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively,... | 1 | Kotlin | 1 | 2 | 3ed9e15e96251913be9d2127259f53c44c879439 | 1,763 | kotlinsql | Apache License 2.0 |
src/test/kotlin/org/xpathqs/core/selector/block/BlockSelectorCloneTest.kt | xpathqs | 363,898,788 | false | {"Kotlin": 420597} | /*
* Copyright (c) 2022 XPATH-QS
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, d... | 3 | Kotlin | 8 | 5 | 1dcbdf054cd9621090bedc511f37920e53b56514 | 2,750 | core | MIT License |
sputnik/src/main/kotlin/no/nav/helse/sparkel/sputnik/abakus/Ytelse.kt | navikt | 341,650,641 | false | null | package no.nav.helse.sparkel.sputnik.abakus
internal class Ytelse(private val dto: String) {
override fun toString() = dto
override fun hashCode() = dto.hashCode()
override fun equals(other: Any?) = other is Ytelse && other.dto == dto
} | 1 | Kotlin | 1 | 2 | 7a4704c6c15e0699ef49be291a483bd8965350ab | 249 | helse-sparkelapper | MIT License |
app/src/main/java/com/archit/myplayer/fragments/FavouriteFragment.kt | crisyoda | 395,454,052 | false | null | package com.archit.myplayer.fragments
import android.app.Activity
import android.content.Context
import android.media.MediaPlayer
import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.support.annotation.RequiresApi
import android.support.v4.app.Fragment
import android.supp... | 0 | Kotlin | 0 | 0 | eef2f8e1554489423a8ba5fec1cb605c254d4e0d | 8,749 | Music-App-master | Apache License 2.0 |
android/src/main/java/com/androidsmsretriever/JSEventHelper.kt | Aure77 | 682,493,734 | false | {"Kotlin": 22339, "TypeScript": 3956, "JavaScript": 2122, "Ruby": 159} | package com.androidsmsretriever
import android.util.Log
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.WritableNativeMap
import com.facebook.react.modules.core.DeviceEventManagerModule
class JSEventHelper(private val mContext: ReactApplicationContext?) {
fun emitJSEvent(k... | 0 | Kotlin | 0 | 0 | 537afedde1d8d96e8d9129a707671372ea5cf4d4 | 901 | react-native-android-sms-retriever-api | MIT License |
app/src/main/kotlin/com/whereismymotivation/fcm/notifications/ImageNotification.kt | unusualcodeorg | 730,655,456 | false | {"Kotlin": 472092} | package com.whereismymotivation.fcm.notifications
import android.app.NotificationManager
import android.content.Context
import android.graphics.drawable.BitmapDrawable
import androidx.core.app.NotificationCompat
import coil.ImageLoader
import coil.request.ImageRequest
import coil.request.SuccessResult
import com.where... | 0 | Kotlin | 4 | 38 | 5b77e6a6b14ae9ad21e8edd55e8c9b3cc2066f75 | 2,032 | wimm-android-app | Apache License 2.0 |
app/src/main/java/com/vookiretailfsm/features/reimbursement/model/reimbursementlist/ReimbursementListResponseModel.kt | DebashisINT | 518,470,902 | false | {"Kotlin": 13070326, "Java": 961544} | package com.vookiretailfsm.features.reimbursement.model.reimbursementlist
import com.vookiretailfsm.base.BaseResponse
/**
* Created by Saikat on 28-01-2019.
*/
class ReimbursementListResponseModel : BaseResponse() {
var total_claim_amount: String? = null
var total_approved_amount: String? = null
var exp... | 0 | Kotlin | 0 | 0 | a6887dafe8561104a292ff224953ef87681cccc5 | 378 | PureChemical | Apache License 2.0 |
src/jsMain/kotlin/io/github/blendthink/content/PageMain.kt | blendthink | 380,473,419 | false | null | package io.github.blendthink.content
import androidx.compose.runtime.Composable
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.dom.*
@Composable
fun PageMain() {
Main {
Div({
style {
textAlign("center")
}
}) {
A(href = "... | 0 | Kotlin | 0 | 3 | f84b597d2fe353e2f8cb8a67b49bbf0203479ca0 | 2,446 | blendthink.github.io | Apache License 2.0 |
android/src/main/kotlin/com/pravera/flutter_foreground_task/models/ForegroundServiceAction.kt | Dev-hwang | 359,384,192 | false | null | package com.pravera.flutter_foreground_task.models
/**
* Intent action for foreground service control.
*
* @author Dev-hwang
* @version 1.0
*/
object ForegroundServiceAction {
private const val prefix = "com.pravera.flutter_foreground_task.action."
const val START = prefix + "start"
const val UPDATE = prefix ... | 18 | null | 57 | 94 | 5707f4525ee7e69041c2099420ff2b9c68ea7fac | 445 | flutter_foreground_task | MIT License |
gears-ui/src/main/java/com/oddy/gearsui/GearsSnack.kt | oddy-dev | 446,793,384 | false | {"Kotlin": 214384} | package com.oddy.gearsui
import android.content.Context
import android.content.res.Resources
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.annotation.StringRes
import androidx.core.content.ContextCompat
import androidx.core.text.HtmlCompat
import com.google.andro... | 0 | Kotlin | 3 | 0 | a875c6476c7ce47d5562b3e4f43bf330b1b60105 | 1,263 | oddy-gears-ui | MIT License |
idea/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnLibType.kt | JakeWharton | 99,388,807 | false | null | // "Create extension function 'Int.invoke'" "true"
// WITH_RUNTIME
class A<T>(val n: T)
fun test(): A<String> {
return <caret>1(2, "2")
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 143 | kotlin | Apache License 2.0 |
app/src/main/java/net/obsidianx/chakra/DepthLayout.kt | ObsidianX | 661,440,228 | false | null | package net.obsidianx.chakra
import androidx.compose.foundation.border
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import net.obsidianx.chakra.modifiers.flexAlignItems
... | 0 | Kotlin | 0 | 0 | 2b6559c3c6c54af4f6743ffab2195d156ccff32e | 1,406 | chakra | MIT License |
app/src/main/kotlin/com/maltaisn/notes/ui/settings/SettingsViewModel.kt | maltaisn | 258,858,109 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 24 | null | 11 | 82 | 8b8e723fc8143ca2c18aa9d5d32acf36f5585861 | 4,356 | another-notes-app | Apache License 2.0 |
android/integration/testData/architecture-samples/app/src/main/java/com/example/android/architecture/blueprints/todoapp/di/DataModules.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright 2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,400 | android | Apache License 2.0 |
app/src/main/java/com/beyondthehorizon/route/loan/ApplyLoanActivity.kt | Route-mony | 222,363,809 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 2, "Proguard": 1, "Java": 34, "XML": 190, "Kotlin": 86, "HTML": 1} | package com.beyondthehorizon.route.loan
import android.app.ProgressDialog
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.view.View
import com.beyondthehorizon.route.R
import com.beyondthehorizon.route.bottomsheets.LoanBott... | 1 | null | 1 | 1 | f7f867bd968675ba552c1117217d1568ef379471 | 2,790 | route-1.0 | MIT License |
clef-workflow-api/clef-workflow-api-usecase/clef-workflow-api-usecase-workflow/src/test/java/io/arkitik/clef/workflow/api/usecase/workflow/main/CreateWorkflowUseCaseTest.kt | arkitik | 443,436,455 | false | {"Kotlin": 433170, "Shell": 268, "Dockerfile": 244} | package io.arkitik.clef.workflow.api.usecase.workflow.main
//import io.arkitik.api.develop.shared.exception.NotAcceptableException
//import io.arkitik.clef.workflow.api.domain.shared.embedded.IdentityStatus
//import io.arkitik.radix.develop.usecase.UseCaseException
//import io.arkitik.clef.workflow.api.common.error.Wo... | 0 | Kotlin | 0 | 0 | 785e1b4ee583b6a6e3ea01e656eecd8365f171ef | 3,722 | clef-workflow | Apache License 2.0 |
alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportSearchEmailGroupAction.kt | skkosuri-amzn | 402,572,858 | true | {"Kotlin": 1370756, "Java": 98758, "Shell": 2218, "Python": 1379} | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2020 Am... | 0 | Kotlin | 0 | 0 | a91df8fda55836db5a7bcaddbd6f6b0f9d0fc419 | 3,420 | alerting-2 | Apache License 2.0 |
app/src/main/java/com/vultisig/wallet/common/Encryption.kt | vultisig | 789,965,982 | false | {"Kotlin": 957644} | package com.vultisig.wallet.common
import okio.ByteString.Companion.decodeBase64
import okio.ByteString.Companion.decodeHex
import java.security.SecureRandom
import javax.crypto.Cipher
import javax.crypto.spec.IvParameterSpec
import javax.crypto.spec.SecretKeySpec
import kotlin.io.encoding.Base64
import kotlin.io.enco... | 36 | Kotlin | 2 | 4 | f6be95cf5d32abbdbfb3003c61b960067a6b33cb | 1,819 | vultisig-android | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBase.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.stepfunctions
import com.fasterxml.jackson.databind.node.ObjectNode
import io.cloudshiftdev.awscdk.co... | 1 | Kotlin | 0 | 4 | a18731816a3ec710bc89fb8767d2ab71cec558a6 | 14,335 | kotlin-cdk-wrapper | Apache License 2.0 |
sqldelight-compiler/src/main/kotlin/com/squareup/sqldelight/util/BiMultiMap.kt | Sathawale27 | 122,855,496 | true | {"Java": 375334, "Kotlin": 370699, "ANTLR": 18490, "Shell": 1434} | /*
* Copyright (C) 2016 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... | 0 | Java | 0 | 1 | 7391712b78307e40460ec9f5b7618ba1b594a44a | 1,757 | sqldelight | Apache License 2.0 |
settings-core/src/main/java/com/michaelflisar/settings/core/Settings.kt | MFlisar | 256,263,996 | false | null | package com.michaelflisar.settings.core
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerV... | 0 | Kotlin | 0 | 2 | 5fc5264a9b2bfc108aab03e8925244d665c6a9d4 | 14,069 | Settings | Apache License 2.0 |
src/main/kotlin/com/ing/dlt/zkkrypto/ecc/curves/EdwardsCurve.kt | mvdbos | 285,514,971 | true | {"Kotlin": 404643} | package com.ing.dlt.zkkrypto.ecc.curves
import com.ing.dlt.zkkrypto.ecc.arithmetic.EdwardsForm
import com.ing.dlt.zkkrypto.ecc.EllipticCurve
import com.ing.dlt.zkkrypto.ecc.EllipticCurvePoint
import java.math.BigInteger
/**
* Simple curve that uses solely Edwards form arithmetics
*/
interface EdwardsCurve : Ellipti... | 0 | Kotlin | 0 | 0 | 64043c7c21a10c4662d2f780840d1f74a67d4ba3 | 792 | zkkrypto | Apache License 2.0 |
shared/src/commonMain/kotlin/di/repositoriesModule.kt | ChromeSD22159 | 825,951,465 | false | {"Kotlin": 762084, "Swift": 234835} | package di
import de.frederikkohler.bauchglueck.shared.BuildKonfig
import org.koin.core.module.Module
val serverHost = BuildKonfig.API_HOST
expect val repositoriesModule: Module | 2 | Kotlin | 0 | 1 | 9f6048bb4321f9459bf1710176ad8691a4ffe59a | 180 | BauchGlueck | Apache License 2.0 |
ANALYTICS/src/main/kotlin/org/example/analytics/listeners/SkillJobOfferListener.kt | M4tT3d | 874,249,564 | false | {"Kotlin": 354206, "TypeScript": 180680, "JavaScript": 3610, "Dockerfile": 2844, "CSS": 2078, "HTML": 302} | package org.example.analytics.listeners
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import org.example.analytics.dtos.request.create.CSkillJobOfferDTO
import org.example.analytics.dtos.request.delete.DSkillJobOfferDTO
import org.example.analytics.... | 0 | Kotlin | 0 | 0 | ccad8f0a41e77e03935e548b4f03969fc051a61f | 3,654 | wa2-project-job-placement | MIT License |
app/src/test/java/com/example/githubprofiler/auth/usecase/AuthTokenUseCaseImplTest.kt | nsalazar0429 | 742,991,586 | false | {"Kotlin": 43906} | package com.example.githubprofiler.auth.usecase
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.example.githubprofiler.auth.service.AuthRepository
import com.example.githubprofiler.auth.service.AuthTokenServiceModel
import com.example.githubprofiler.common.usecase.DefaultError
import com.google.common.... | 0 | Kotlin | 0 | 0 | 5f5c115e1c866308f7362fd22e454e66f7c3c057 | 3,209 | github-profiler | MIT License |
src/main/kotlin/com/skillw/rpgmaker/module/hooks/lp/HoconConfigurationAdapter.kt | q210520993 | 802,703,847 | false | {"Kotlin": 210609, "Java": 73654} | package com.skillw.rpgmaker.module.hooks.lp
import me.lucko.luckperms.common.config.generic.adapter.ConfigurateConfigAdapter
import me.lucko.luckperms.common.config.generic.adapter.ConfigurationAdapter
import me.lucko.luckperms.common.plugin.LuckPermsPlugin
import me.lucko.luckperms.minestom.LPMinestomPlugin
import ni... | 0 | Kotlin | 0 | 4 | 17d24b9a7c5134a733636e0965f892850f445666 | 753 | RPGMaker | MIT License |
squigglyspans/src/main/java/com/samruston/squigglyspans/spans/SquigglySpan.kt | samruston | 335,560,156 | false | null | package com.samruston.squigglyspans.spans
import android.graphics.*
import androidx.annotation.ColorInt
import com.samruston.squigglyspans.TWO_PI
import kotlin.math.ceil
import kotlin.math.sin
/**
* A span that draws a squiggle under the text it is placed on.
* See [DefaultSquigglySpan]
*/
abstract class SquigglyS... | 0 | Kotlin | 1 | 21 | 6550cdcadc78bb953604dc370da2fac394e26336 | 2,732 | squigglyspans | Apache License 2.0 |
myfresher/StudentSessionApp/app/src/main/java/com/example/studentsessionapp/adapters/SubscribeRecyclerAdapter.kt | shekharaditya7 | 338,233,753 | false | null | package com.example.studentsessionapp.adapters
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import androidx.recyclerview.widget.RecyclerView
import com.example.studentsessionapp.R
import com.example.studentsessi... | 0 | Kotlin | 0 | 0 | a51b027b327833e103316c68f65d663636552573 | 2,487 | studentSession | MIT License |
app/src/main/java/com/elnfach/arthouse/utils/navigation/Router.kt | elnfach | 649,768,901 | false | {"Kotlin": 257352} | package com.elnfach.arthouse.presentation.utils.navigation
import android.os.Bundle
import androidx.core.os.bundleOf
fun createExternalRouter(block: (String, Bundle) -> Unit): Router = object : Router {
override fun routeTo(screen: String, params: Bundle) {
block.invoke(screen, params)
}
}
interface ... | 0 | Kotlin | 0 | 0 | d5f6babc4b81bbb829dd4c6ab258c508c6b19eff | 527 | ArtHouse | Apache License 2.0 |
src/main/kotlin/cc/suffro/bpmanalyzer/bpmanalyzing/analyzers/CacheAnalyzer.kt | xsoophx | 579,535,622 | false | {"Kotlin": 92032} | package cc.suffro.bpmanalyzer.bpmanalyzing.analyzers
import cc.suffro.bpmanalyzer.data.TrackInfo
import cc.suffro.bpmanalyzer.fft.data.WindowFunction
import cc.suffro.bpmanalyzer.wav.data.Wav
interface CacheAnalyzer {
fun analyze(wav: Wav, start: Double = 0.0, windowFunction: WindowFunction? = null): TrackInfo
}
| 0 | Kotlin | 0 | 0 | e945864aa5fab9ec2e1abe485ca3dd3f8cdd5c6e | 320 | BPM-Analyzer | MIT License |
src/Day02.kt | BionicCa | 574,904,899 | false | {"Kotlin": 20039} | import kotlin.random.Random
enum class RockPaperScissors(val shapeScore: Int) {
ROCK(1), PAPER(2), SCISSORS(3)
}
enum class GameState(val roundScore: Int) {
LOSS(0), DRAW(3), WIN(6)
}
fun main() {
fun part1(input: List<String>): Int {
val operations = input.map { it.split(' ')}
var score ... | 0 | Kotlin | 0 | 0 | ed8bda8067386b6cd86ad9704bda5eac81bf0163 | 3,114 | AdventOfCode2022 | Apache License 2.0 |
app/src/main/java/com/gatheringhallstudios/mhworlddatabase/features/userequipmentsetbuilder/list/UserEquipmentSetAdapterDelegate.kt | kelvindu | 207,843,744 | true | {"Kotlin": 579464, "Java": 83275} | package com.gatheringhallstudios.mhworlddatabase.features.userequipmentsetbuilder.list
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.drawable.Drawable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.w... | 0 | null | 0 | 0 | 58fc286652a73a7ca7cd25f2043b228d64743b6d | 3,828 | MHWorldDatabase | MIT License |
app/src/main/java/com/example/mysearchapplication/db/PhotosObj.kt | AbhishekDua | 316,980,268 | false | null | package com.example.mysearchapplication.db
import com.google.gson.annotations.SerializedName
import java.io.Serializable
data class PhotosObj(
@SerializedName("photos")
val photos: Photos,
@SerializedName("stat")
val status: String
): Serializable | 0 | Kotlin | 0 | 0 | fd404bf100d7f8e6c22dbd31a0f7c56cd2b30d2e | 265 | FlickrSearch | MIT License |
151004/Burbouski/appLab5/common/src/main/kotlin/com/github/hummel/dc/lab5/dto/request/MessageRequestTo.kt | ermakus655 | 782,141,446 | true | {"Markdown": 21, "Text": 15, "YAML": 329, "Ignore List": 275, "Maven POM": 379, "Java": 11089, "INI": 329, "Microsoft Visual Studio Solution": 139, "XML": 774, "JSON": 733, "C#": 7119, "HTTP": 105, "Dockerfile": 108, "Shell": 90, "Batchfile": 85, "JSON with Comments": 5, "SQL": 40, "Java Server Pages": 45, "Java Proper... | package com.github.hummel.dc.lab3.dto.request
import com.github.hummel.dc.lab3.bean.Message
import kotlinx.serialization.Serializable
@Serializable
data class MessageRequestTo(
private val issueId: Long, private val content: String
) {
fun toBean(id: Long?, country: String?): Message = Message(
id, country, issue... | 0 | Java | 0 | 0 | c3c7b41f69af748a32521c18f838636cc7411162 | 385 | DC2024-01-27 | MIT License |
src/main/kotlin/me/serce/solidity/ide/hints/SolParameterInfoHandler.kt | intellij-solidity | 82,682,728 | false | null | package me.serce.solidity.ide.hints
import com.intellij.codeInsight.lookup.LookupElement
import com.intellij.lang.parameterInfo.ParameterInfoContext
import com.intellij.lang.parameterInfo.ParameterInfoUIContext
import com.intellij.lang.parameterInfo.ParameterInfoUtils
import com.intellij.lang.parameterInfo.UpdateParam... | 65 | null | 92 | 990 | e417a9f279b8d39bec8d9c68cb19fb23d4c3cddb | 3,765 | intellij-solidity | MIT License |
samples/android/src/main/kotlin/com/maximbircu/devtools/CustomToolsSource.kt | maximbircu | 247,318,697 | false | null | package com.maximbircu.devtools
import com.maximbircu.devtools.common.core.DevTool
import com.maximbircu.devtools.common.core.reader.DevToolsReader
import com.maximbircu.devtools.common.core.reader.DevToolsSource
import com.maximbircu.devtools.customtool.MyCustomTool
val myCustomTools: Map<String, DevTool<*>> = mapOf... | 9 | Kotlin | 3 | 15 | 14a484b169c709b22739e556ab799e263f60f168 | 826 | devtools-library | Apache License 2.0 |
kotlinextensions/src/main/kotlin/com/extensions/general/Jsons.kt | SimformSolutionsPvtLtd | 118,210,511 | false | null | package com.extensions.general
import org.json.JSONArray
import org.json.JSONObject
fun String.createJSONObject(): JSONObject? = this.convertAcceptNull({ JSONObject(this) }, null)
fun Map<*, *>.createJSONObject(): JSONObject? = this.convertAcceptNull({ JSONObject(this) }, null)
fun String.createJSONArray(): JSON... | 0 | null | 2 | 7 | 211b47986e3a7993f85ca0a0ce9ff3141f3ae140 | 2,829 | Kotlin-Extensions | Apache License 2.0 |
src/jvmMain/kotlin/com/github/ikovalyov/model/extension/UserRoleExtension.kt | ikovalyov | 355,338,939 | false | null | package com.github.ikovalyov.model.extension
import com.benasher44.uuid.uuidFrom
import com.github.ikovalyov.model.security.UserRole
import kotlinx.datetime.Clock
import software.amazon.awssdk.services.dynamodb.model.AttributeValue
object UserRoleExtension {
val fieldName = "name"
fun UserRole.toDynamoDbMap(... | 16 | Kotlin | 0 | 2 | 81830ed91f528043da381233bae4d31eaffdaccc | 869 | kotlin-blogpost-engine | MIT License |
src/main/kotlin/com/urosjarc/dbmessiah/queries/SchemaCascadeQueries.kt | urosjarc | 747,245,291 | false | {"Kotlin": 746524, "Shell": 1030} | package com.urosjarc.dbmessiah.queries
import com.urosjarc.dbmessiah.Driver
import com.urosjarc.dbmessiah.Schema
import com.urosjarc.dbmessiah.Serializer
import com.urosjarc.dbmessiah.exceptions.DriverException
/**
* Represents a class that provides methods for working with database schema queries.
*
* @property s... | 0 | Kotlin | 0 | 16 | bb334a4e606e2c1906d119625aeaa57149d5e1cd | 1,170 | db-messiah | Apache License 2.0 |
core/ui/src/main/kotlin/com/t8rin/imagetoolboxlite/core/ui/icons/material/EditAlt.kt | T8RIN | 767,600,774 | false | null | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under ... | 5 | null | 84 | 8 | f8fe322c2bde32544e207b49a01cfeac92c187ce | 2,966 | ImageToolboxLite | Apache License 2.0 |
infra/src/main/kotlin/fr/sacane/jmanager/infrastructure/rest/tag/TagController.kt | Sacane | 531,082,439 | false | {"Kotlin": 101952, "Vue": 42592, "TypeScript": 17869, "JavaScript": 602, "CSS": 134} | package fr.sacane.jmanager.infrastructure.rest.tag
import fr.sacane.jmanager.domain.asTokenUUID
import fr.sacane.jmanager.domain.hexadoc.Adapter
import fr.sacane.jmanager.domain.hexadoc.Side
import fr.sacane.jmanager.domain.models.asPersonalTag
import fr.sacane.jmanager.domain.port.api.TagFeature
import fr.sacane.jman... | 1 | Kotlin | 0 | 0 | 9238109ddfd0f25846eb8b9acb8e2ba19bb79eb5 | 1,775 | JManager | MIT License |
composeApp/src/commonMain/kotlin/com/rwmobi/kunigami/ui/theme/Theme.kt | ryanw-mobile | 794,752,204 | false | null | package com.rwmobi.kunigami.ui.theme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import com.rwmobi.kunigami.ui.utils.shouldUseDarkTheme
private val mediumContrastLightCol... | 24 | null | 10 | 98 | e1e73f5b44baaef5ab87fd10db21775d442a3172 | 4,681 | OctoMeter | Apache License 2.0 |
libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/tasks/ModuleMetadataTask.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2024 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.abicmp.tasks
import org.jetbrains.kotlin.abicmp.reports.ModuleMetadataReport
imp... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,625 | kotlin | Apache License 2.0 |
src/test/kotlin/com/idli/datatypes/TypesTest.kt | mshanu | 231,537,491 | false | null | package com.idli.datatypes
import com.idli.model.BooleanType
import com.idli.model.NullType
import com.idli.model.NumberType
import com.idli.model.StringType
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
class TypesTest {
@Nested
class BooleanT... | 2 | Kotlin | 0 | 6 | d387102e171c0f90e9cd96894851a9f4a5eb2aef | 3,749 | idli | MIT License |
app/src/main/java/org/oppia/android/app/administratorcontrols/administratorcontrolsitemviewmodel/AdministratorControlsProfileViewModel.kt | oppia | 148,093,817 | false | null | package org.oppia.android.app.administratorcontrols.administratorcontrolsitemviewmodel
import org.oppia.android.app.administratorcontrols.LoadProfileListListener
import org.oppia.android.app.administratorcontrols.RouteToProfileListListener
/** [ViewModel] for the recycler view in [AdministratorControlsFragment]. */
c... | 508 | null | 517 | 315 | 95699f922321f49a3503783187a14ad1cef0d5d3 | 818 | oppia-android | Apache License 2.0 |
app/src/main/java/com/book/chore/data/Doer/TDManager.kt | parthsw | 292,068,378 | false | null | package com.book.chore.data.Doer
import android.content.Context
import android.content.Intent
import android.util.Log
import android.widget.Toast
import androidx.core.content.ContextCompat.startActivity
import androidx.recyclerview.widget.RecyclerView
import com.book.chore.R
import com.book.chore.ui.services.OnTaskDoe... | 0 | Kotlin | 0 | 0 | 658e75fd85790e16078989eba9eb03187735cb54 | 2,913 | BookMyChore | MIT License |
app/src/main/java/teka/android/organiks_platform_android/presentation/feature_auth/core/domain/use_case/validation_use_cases/UiText.kt | samAricha | 649,253,035 | false | {"Kotlin": 593778} | package teka.android.organiks_platform_android.presentation.feature_auth.core.domain.use_case.validation_use_cases
import android.content.Context
import androidx.annotation.StringRes
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
sealed class UiText {
data class DynamicSt... | 0 | Kotlin | 0 | 4 | 16d6c6787ebf18046b6ee8ef2c4ac3692d5e73e4 | 1,552 | Organiks-Platform-Android | MIT License |
Manga/app/src/main/java/nhdphuong/com/manga/usecase/DeleteBookUseCase.kt | duyphuong5126 | 140,096,962 | false | null | package nhdphuong.com.manga.usecase
import io.reactivex.Observable
import io.reactivex.rxkotlin.zipWith
import nhdphuong.com.manga.Logger
import nhdphuong.com.manga.data.entity.DeletingResult
import nhdphuong.com.manga.data.entity.DeletingResult.DeletingProgress
import nhdphuong.com.manga.data.entity.DeletingResult.De... | 4 | Kotlin | 0 | 3 | 8cbd6b2246726944e8cde96be8a4124feabe1baf | 2,897 | H-Manga | Apache License 2.0 |
litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinderException.kt | facebook | 80,179,724 | false | {"Kotlin": 5825848, "Java": 5578851, "C++": 616537, "Starlark": 198527, "JavaScript": 29060, "C": 25074, "Shell": 8243, "CSS": 5558, "CMake": 4783, "Objective-C": 4012} | /*
* 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... | 88 | Kotlin | 765 | 7,703 | 8bde23649ae0b1c594b9bdfcb4668feb7d8a80c0 | 800 | litho | Apache License 2.0 |
component/src/main/java/com/trian/component/NavDrawer.kt | triandamai | 529,928,713 | false | {"Kotlin": 256410} | package com.trian.component
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.C... | 0 | Kotlin | 0 | 0 | 608d28a7800a39ee9ded14c6d85b7e7db770d01a | 5,857 | test-application | Apache License 2.0 |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/solid/BxsTrafficCone.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphic... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,275 | compose-icon-collections | MIT License |
skeleton/src/main/java/com/qase/android/appskeleton/activity/BaseMainActivity.kt | Qase | 112,472,484 | false | null | package com.qase.android.appskeleton.activity
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.navigation.NavigationView
import com.qase.android.appskeleton.BaseApp
/**
* Base activity which should be used as parent for app's main act... | 1 | Kotlin | 1 | 1 | da5d0c187acfe7d3b9c491d399de3718f5ae9103 | 2,078 | AndroidAppSkeleton | MIT License |
src/collection.kt | myeonginwoo | 143,044,639 | false | null | fun main(args: Array<String>) {
val list = listOf(1, 2, 3, 4, 5, 6)
val list1 = listOf("a", "b", "c", "d", "e", "f")
println(list1.foldRight("") { value, acc -> acc + value })
// fedcba
println(list1.fold("") { acc, value -> acc + value })
// abcdef
println(list.foldRight(0) { value, acc -... | 0 | Kotlin | 1 | 0 | eac92f504dcf576654cd330eb21d06d2ab694dea | 958 | t-academy | MIT License |
kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt | ShalokShalom | 343,354,086 | true | {"Kotlin": 516486, "GDScript": 294955, "C++": 262753, "C#": 11670, "CMake": 2060, "Shell": 1628, "C": 959, "Python": 75} | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName")
package godot
import godot.annotation.GodotBaseType
import god... | 0 | null | 0 | 1 | 7b9b195de5be4a0b88b9831c3a02f9ca06aa399c | 4,098 | godot-jvm | MIT License |
src/main/java/com/vladsch/md/nav/psi/element/MdFootnoteTextImpl.kt | vsch | 32,095,357 | false | null | // Copyright (c) 2015-2023 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.psi.element
import com.intellij.extapi.psi.ASTWrapperPsiElement
import com.intellij.lang.ASTNode
class MdFootnoteTextImpl(node: ASTNode) : ASTWrap... | 134 | null | 131 | 809 | ec413c0e1b784ff7309ef073ddb4907d04345073 | 796 | idea-multimarkdown | Apache License 2.0 |
app/src/main/java/com/elhady/movies/domain/usecases/GetAllActorsUseCase.kt | islamelhady | 301,591,032 | false | {"Kotlin": 140014} | package com.elhady.movies.domain.usecases
import androidx.paging.PagingData
import androidx.paging.map
import com.elhady.movies.data.repository.ActorRepository
import com.elhady.movies.domain.mappers.actor.ActorDtoMapper
import com.elhady.movies.domain.models.Actor
import kotlinx.coroutines.flow.Flow
import kotlinx.co... | 1 | Kotlin | 0 | 0 | 6974db17f9079acbc21aa269cc83f5c7f86b807f | 727 | movie-night-v2 | Apache License 2.0 |
webserver/src/main/kotlin/kontrol/webserver/TempFileManagerFactory.kt | neilellis | 15,782,049 | false | null | /*
* Copyright 2014 Cazcade Limited (http://cazcade.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 app... | 0 | Kotlin | 0 | 0 | 38d115785e33b1383d389815e039f5f09f6ccec1 | 1,399 | kontrol | Apache License 2.0 |
src/main/kotlin/br/com/zup/b1gvini/pix/grpc/remove/RemoveChavePixEndpoint.kt | b1gvini | 385,366,765 | true | {"Kotlin": 62931} | package br.com.zup.b1gvini.pix.grpc.remove
import br.com.zup.b1gvini.RemoveGrpcServiceGrpc
import br.com.zup.b1gvini.RemovePixRequest
import br.com.zup.b1gvini.RemovePixResponse
import br.com.zup.b1gvini.compartilhado.ErrorHandler.ErrorArroundHandler
import io.grpc.stub.StreamObserver
import org.slf4j.LoggerFactory
im... | 0 | Kotlin | 0 | 0 | 8f8472d6340ffa8724b22440f77e40fa5d47551c | 1,049 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/stats/PerformanceStressStatNamesTest.kt | ingokegel | 72,937,917 | 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.perf.stats
import org.jetbrains.kotlin.idea.perf.profilers.ProfilerConfig
import org.jetbrains.kotlin.idea.perf.synthetic.Perf... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 599 | intellij-community | Apache License 2.0 |
app-web-kt/src/main/kotlin/ui/player/EpisodeButton.kt | Tajmoti | 391,138,914 | false | null | package ui.player
import com.tajmoti.libtulip.model.key.EpisodeKey
import react.Props
import react.RBuilder
import react.dom.button
import react.fc
import react.router.dom.Link
import ui.getUrlForStreamable
internal external interface EpisodeButtonProps : Props {
var label: String
var key: EpisodeKey?
}
inte... | 6 | Kotlin | 0 | 1 | 7dd02fe23b3205967e02d0efff2b7efd191fe138 | 879 | Tulip | MIT License |
pure-blog-backend/domain/src/main/kotlin/top/jotyy/domain/usecases/category/AddCategoryUseCase.kt | jotyy | 281,267,033 | false | null | package top.jotyy.domain.usecases.category
import org.valiktor.ConstraintViolationException
import org.valiktor.functions.hasSize
import org.valiktor.validate
import top.jotyy.core.exception.AlreadyUsedException
import top.jotyy.core.exception.Failure
import top.jotyy.core.exception.toFailure
import top.jotyy.core.fun... | 16 | Kotlin | 0 | 2 | ff988f1295e987560258240989f71d9469f161f3 | 1,454 | pure-blog | MIT License |
graphics/src/main/java/com/gamapp/pager/Pager.kt | aliHosseinNezhad | 507,626,994 | false | null | package com.gamapp.pager
import android.util.Log
import androidx.compose.animation.SplineBasedFloatDecayAnimationSpec
import androidx.compose.animation.core.DecayAnimationSpec
import androidx.compose.animation.core.animate
import androidx.compose.animation.core.generateDecayAnimationSpec
import androidx.compose.animat... | 0 | Kotlin | 0 | 2 | 8eddbdbcd5706072262ed7bd2cf6b2d0a6df6ada | 18,581 | DMPlayer_public | MIT License |
app/src/main/java/com/ilab/yougetmobiledl/network/ApiService.kt | zhushenwudi | 384,865,719 | false | null | package com.ilab.yougetmobiledl.network
import com.ilab.yougetmobiledl.model.*
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Query
import retrofit2.http.Url
interface ApiService {
/**
* 获取开屏图片
*/
@Headers("domain:splas... | 1 | null | 1 | 1 | 1755a1e5971a017b0f44c4df3e9491ae46a8d2fc | 1,893 | YougetMobileDL | MIT License |
app/src/main/kotlin/de/developercity/arcanosradio/features/streaming/domain/models/StreamConfiguration.kt | fibelatti | 156,989,942 | false | {"Gradle": 7, "YAML": 2, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "EditorConfig": 1, "Markdown": 1, "Proguard": 1, "XML": 43, "Kotlin": 63, "Java": 1, "INI": 1, "Gradle Kotlin DSL": 1} | package de.developercity.arcanosradio.features.streaming.domain.models
data class StreamConfiguration(
val streamingUrl: String,
val shareUrl: String,
val pollingInterval: Seconds
)
inline class Seconds(val value: Int)
| 0 | Kotlin | 1 | 1 | b594c10821ce08117f04c2811dbe8e900cbd0d6f | 233 | arcanos-radio-kotlin | MIT License |
buy-oyc-ticket-service/src/test/kotlin/org/jesperancinha/concert/buy/oyc/ticket/service/BuyOycTicketServiceTest.kt | jesperancinha | 65,844,678 | false | {"Kotlin": 119759, "Batchfile": 39648, "Shell": 9865, "TypeScript": 8618, "Makefile": 6882, "Python": 1737, "HTML": 1721, "Dockerfile": 1545, "CSS": 930, "JavaScript": 99} | package org.jesperancinha.concert.buy.oyc.ticket.service
import io.kotest.matchers.booleans.shouldBeTrue
import io.micronaut.runtime.EmbeddedApplication
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import jakarta.inject.Inject
import org.jesperancinha.concert.buy.oyc.containers.AbstractBuyOddYuc... | 1 | Kotlin | 1 | 4 | 9b573b30e382a645ca5e0c611a9cf0d3d32a6ba6 | 639 | buy-odd-yucca-concert | Apache License 2.0 |
src/main/kotlin/br/com/zup/academy/alissonprado/endpoint/removePix/RemovePixEndpoint.kt | alissonkbprado | 408,172,599 | true | {"Kotlin": 147506} | package br.com.zup.academy.alissonprado.endpoint.removePix
import br.com.zup.academy.alissonprado.RemovePixRequest
import br.com.zup.academy.alissonprado.RemovePixResponse
import br.com.zup.academy.alissonprado.RemovePixServiceGrpc
import br.com.zup.academy.alissonprado.handler.ErrorAroundHandler
import io.grpc.stub.S... | 0 | Kotlin | 0 | 0 | b2d60c6f4ab309351adf20aac75048216e067872 | 1,324 | orange-talents-07-template-pix-keymanager-grpc | Apache License 2.0 |
src/test/kotlin/com/yo1000/demo/maven_npm_integration/DemoNpmIntegrationApplicationTests.kt | yo1000 | 246,104,171 | false | {"HTML": 1320, "Kotlin": 1244, "Shell": 893, "CSS": 775, "Batchfile": 483} | package com.yo1000.demo.maven_npm_integration
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class DemoMavenNpmIntegrationApplicationTests {
@Test
fun contextLoads() {
}
}
| 1 | HTML | 0 | 0 | 96cf49ab1c080f9da354550f0da16003804cd7ac | 242 | demo-maven-npm-integration | MIT License |
src/test/kotlin/com/yo1000/demo/maven_npm_integration/DemoNpmIntegrationApplicationTests.kt | yo1000 | 246,104,171 | false | {"HTML": 1320, "Kotlin": 1244, "Shell": 893, "CSS": 775, "Batchfile": 483} | package com.yo1000.demo.maven_npm_integration
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class DemoMavenNpmIntegrationApplicationTests {
@Test
fun contextLoads() {
}
}
| 1 | HTML | 0 | 0 | 96cf49ab1c080f9da354550f0da16003804cd7ac | 242 | demo-maven-npm-integration | MIT License |
src/main/kotlin/dev/sterner/api/entity/IchoriumScytheGhost.kt | mrsterner | 854,711,582 | false | null | package dev.sterner.api
/**
* When a scythe is a ghost it won't drop or insert itself to an inventory from its entity
*/
interface IchoriumScytheGhost {
fun isGhost(): Boolean
fun setGhost(ghost: Boolean)
} | 2 | null | 3 | 1 | 8dbcb8cef24026646771582580329abc0cf376bc | 218 | voidbound | MIT License |
app/src/main/java/org/p2p/wallet/auth/gateway/api/response/GatewayServiceResponse.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4545395, "HTML": 3064848, "Java": 296567, "Groovy": 1601, "Shell": 1252} | package org.p2p.wallet.auth.gateway.api.response
import com.google.gson.annotations.SerializedName
class GatewayServiceResponse<SuccessBody>(
@SerializedName("result")
val result: SuccessBody? = null,
@SerializedName("error")
val errorBody: GatewayServiceErrorResponse? = null
)
data class GatewaySer... | 8 | Kotlin | 18 | 34 | d091e18b7d88c936b7c6c627f4fec96bcf4a0356 | 635 | key-app-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.