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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
leetcode-kotlin/{{cookiecutter.slug}}/src/test/kotlin/solution/SolutionTest.kt | petr-korobeinikov | 675,327,458 | false | null | package solution
import kotlin.test.Test
import kotlin.test.assertTrue
class SolutionTest {
@Test
fun solution() {
val classUnderTest = Solution()
assertTrue(classUnderTest.solution(), "someLibraryMethod should return 'true'")
}
}
| 0 | Kotlin | 0 | 0 | edfc5cada3fd4e419f8b8911abd9a403e5119d01 | 247 | cookiecutters | MIT License |
ij/src/main/kotlin/org/jetbrains/academy/test/system/ij/formatting/FormattingUtil.kt | jetbrains-academy | 632,174,674 | false | null | @file:Suppress("ForbiddenComment")
package org.jetbrains.academy.test.system.ij.formatting
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.psi.PsiFile
import com.intellij.psi.codeStyle.CodeStyleManager
import org.junit.jupiter.api.A... | 1 | Kotlin | 0 | 0 | f852ad145edaeb67c27da58a0222d2d9950e9a70 | 1,353 | kotlin-test-framework | MIT License |
engine/camunda-engine-client/src/main/kotlin/CamundaEngineClientConfiguration.kt | lbilger | 250,224,382 | true | {"Kotlin": 435719} | package io.holunda.camunda.client
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
@Configuration
@ComponentScan
class CamundaEngineClientConfiguration
| 0 | null | 0 | 0 | 7a6e818e74debe3d9c4f285c841202c73673c0a3 | 226 | camunda-bpm-taskpool | Apache License 2.0 |
app-compose/src/main/kotlin/com/ave/vastgui/appcompose/example/informationget/AppInfo.kt | SakurajimaMaii | 353,212,367 | false | null | /*
* Copyright 2022 VastGui guihy2019@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 8 | null | 7 | 64 | 81c5ca59680143d9523c01852d9587a8d926c1c3 | 2,495 | Android-Vast-Extension | Apache License 2.0 |
idea/src/org/jetbrains/jet/plugin/intentions/MakeTypeExplicitInLambdaIntention.kt | chashnikov | 14,658,474 | false | null | /*
* Copyright 2010-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | null | 1 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 5,953 | kotlin | Apache License 2.0 |
android/src/main/kotlin/com/notifierlistener/notifier_listener/NotificationListener.kt | zetsu01 | 366,304,374 | false | null | package com.emilecode.android_notification_listener2
import android.app.Notification
import android.content.Intent
import android.service.notification.NotificationListenerService
import android.service.notification.StatusBarNotification
import org.json.JSONException
import org.json.JSONObject
import android.os.Bundle
... | 7 | null | 13 | 2 | d827073026e62a113ff04a888f0a641763252567 | 2,830 | flutter_androidnotificationlistener_plugin | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/quicksight/CfnTemplateWordCloudVisualPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.quicksight
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Any
import kotlin.String
import k... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 4,143 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/de/berlindroid/zeaapp/emails/EmailAdapter.kt | gdg-berlin-android | 194,500,509 | false | {"Java": 87997, "Kotlin": 48857, "GLSL": 8098, "HTML": 678} | package de.berlindroid.zeaapp.emails
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.navigation.findNavController
import androidx.navigation.fragment.FragmentNavigatorExtras
import androidx.recyclerview.widget.RecyclerView
impor... | 4 | Java | 1 | 6 | 9f8ad45717faeab0eaa461eb2ae164667619dbaa | 1,508 | ze-appp | Apache License 2.0 |
lib/src/main/kotlin/com/dbflow5/database/DatabaseHelper.kt | agrosner | 24,161,015 | false | null | package com.dbflow5.database
import com.dbflow5.adapter.createIfNotExists
import com.dbflow5.config.DBFlowDatabase
import com.dbflow5.config.FlowLog
import com.dbflow5.config.NaturalOrderComparator
import java.io.IOException
/**
* Description: Manages creation, updating, and migrating ac [DBFlowDatabase]. It perform... | 38 | null | 613 | 4,865 | e1b6211dac6ddc0aa0c1c9a76a116478ccf92b86 | 6,385 | DBFlow | MIT License |
core/domain/src/main/java/com/niyaj/domain/expense/ValidateExpenseAmountUseCase.kt | skniyajali | 644,752,474 | false | {"Kotlin": 4922890, "Shell": 4104, "Batchfile": 1397, "Java": 232} | /*
* Copyright 2024 Sk Niyaj Ali
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 39 | Kotlin | 0 | 1 | 49485fe344b9345cd0cce0e0961742226dbd8ea1 | 1,678 | PoposRoom | Apache License 2.0 |
src/calls/request/ta/scoring/ScorerAllocator.kt | DiSSCo | 517,633,705 | false | null | package org.synthesis.calls.request.ta.scoring
import io.vertx.sqlclient.Row
import io.vertx.sqlclient.SqlClient
import org.synthesis.account.UserAccountId
import org.synthesis.country.CountryCode
import org.synthesis.infrastructure.persistence.*
import org.synthesis.infrastructure.persistence.querybuilder.fetchOne
im... | 0 | Kotlin | 0 | 0 | a2277d627647d1669c3714da455f37fe6c2e93ae | 1,635 | elvis-backend | Apache License 2.0 |
app/src/main/kotlin/kr/ac/snu/hcil/omnitrack/core/system/OTMeasureFactoryManager.kt | yghokim | 62,933,149 | false | null | package kr.ac.snu.hcil.omnitrack.core.system
import kr.ac.snu.hcil.omnitrack.core.connection.OTMeasureFactory
import kr.ac.snu.hcil.omnitrack.core.database.models.OTFieldDAO
import kr.ac.snu.hcil.omnitrack.core.externals.OTExternalServiceManager
class OTMeasureFactoryManager(val serviceManager: OTExternalServiceManag... | 9 | Kotlin | 4 | 8 | f13e5c157d5646c3f9493c4fdc25ed3b1fc2e296 | 876 | omnitrack_android | MIT License |
android/schedule/appwidget/src/main/java/com/edugma/features/schedule/appwidget/currentLessons/UpdateActionCallback.kt | Edugma | 474,423,768 | false | {"Kotlin": 1050092, "Swift": 1255, "Shell": 331, "HTML": 299} | package com.edugma.features.schedule.appwidget.currentLessons
import android.content.Context
import androidx.glance.GlanceId
import androidx.glance.action.ActionParameters
import androidx.glance.appwidget.action.ActionCallback
class UpdateActionCallback : ActionCallback {
override suspend fun onAction(
co... | 1 | Kotlin | 0 | 3 | d9149728b9dee61606d7c46d80bc474a77f46362 | 477 | app | MIT License |
core/common/src/serializers/MonthSerializers.kt | Kotlin | 215,849,579 | false | null | /*
* Copyright 2019-2021 JetBrains s.r.o.
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
*/
package kotlinx.datetime.serializers
import kotlinx.datetime.Month
import kotlinx.serialization.*
import kotlinx.serialization.descriptors.*
import kotlinx.seriali... | 44 | Kotlin | 38 | 1,190 | e3642e689496e2c87de3e995068cd815f91ee03e | 787 | kotlinx-datetime | Apache License 2.0 |
app/src/main/java/com/coding/zxm/wanandroid/home/HomeViewModel.kt | ZhangXinmin528 | 283,199,248 | false | null | package com.coding.zxm.wanandroid.home
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewModelScope
import com.coding.zxm.network.RetrofitClient
import com.coding.zxm.network.common.CommonResult
import com.coding.zxm.... | 0 | Kotlin | 1 | 3 | 226f612382444b8853651590d6ef019363f536f1 | 2,084 | WanAndroid | Apache License 2.0 |
app/src/main/java/de/kauker/unofficial/sdk/grocy/models/GrocyProduct.kt | aimok04 | 556,343,801 | false | null | package de.kauker.unofficial.sdk.grocy.models
import de.kauker.unofficial.sdk.grocy.GrocyClient
import de.kauker.unofficial.sdk.grocy.GrocyRequest
import org.json.JSONObject
class GrocyProduct(
val grocyClient: GrocyClient,
data: JSONObject
) {
lateinit var id: String
lateinit var name: String
la... | 0 | null | 0 | 3 | 9cb18de0d0750801a70f7a92bac51afcfd6f5106 | 2,598 | grocy-for-wear-os | Apache License 2.0 |
PineLib/src/main/java/com/blueberrysolution/pinelib19/addone/diff_brand/miui/MIUIUtils.kt | leaptochina | 228,527,202 | false | null | package com.blueberrysolution.pinelib19.addone.diff_brand.miui
import android.os.Environment
import com.blueberrysolution.pinelib19.addone.share_preferences.Sp
import java.io.File
import java.io.FileInputStream
import java.lang.Exception
import java.util.*
object MIUIUtils {
// 检测MIUI
val KEY_MIUI_VERSION_CO... | 0 | Kotlin | 0 | 0 | b7ccb0b4259c3e17f71a677bdbc6388bb92d9841 | 1,201 | celo_test | Apache License 2.0 |
base/src/main/kotlin/com/github/fsbarata/functional/control/reader/Reader.kt | fsbarata | 388,747,693 | false | null | package com.github.fsbarata.functional.control.reader
import com.github.fsbarata.functional.Context
import com.github.fsbarata.functional.control.Monad
import com.github.fsbarata.functional.control.arrow.kleisli
import com.github.fsbarata.functional.data.Functor
import com.github.fsbarata.functional.data.id
/**
* Re... | 0 | Kotlin | 1 | 0 | ce4b63f6326efcc92fcc9a2c69dcda1e45b1e4be | 1,523 | kotlin-functional | Apache License 2.0 |
src/main/java/com/algorithmlx/tenytech/init/TTClientStartup.kt | 0mods | 412,780,565 | false | {"Kotlin": 33432} | package com.algorithmlx.tenytech.init
import com.algorithmlx.tenytech.ModId
import net.minecraft.item.Item
import net.minecraft.item.ItemModelsProperties
import net.minecraft.util.ResourceLocation
import mcp.MethodsReturnNonnullByDefault
object TTClientStartup {
fun flyRingRenderer(item: Item) {
ItemModel... | 0 | Kotlin | 1 | 3 | b7e1211acb5795e719aa179a85e2d753f9f18fe6 | 1,046 | TenyTech-Mod | MIT License |
app/src/main/java/org/fossasia/susi/ai/login/LoginPresenter.kt | fragm3 | 189,690,148 | false | null | package org.fossasia.susi.ai.login
import android.graphics.Color
import org.fossasia.susi.ai.R
import org.fossasia.susi.ai.data.ForgotPasswordModel
import org.fossasia.susi.ai.data.contract.ILoginModel
import org.fossasia.susi.ai.data.contract.IForgotPasswordModel
import org.fossasia.susi.ai.data.LoginModel
import org... | 1 | null | 1 | 1 | bd42eb2289fa96da51bc634a29b36c3952ae1dc0 | 8,456 | susi_android | Apache License 2.0 |
plugin/src/main/kotlin/net/bnb1/kradle/KradleExtension.kt | mrkuz | 400,078,467 | false | null | package net.bnb1.kradle
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.model.ObjectFactory
import javax.inject.Inject
open class KradleExtension @Inject constructor(factory: ObjectFactory) {
private val _mainClass = factory.empty<String>()
fun mainClass(name: String, jvmName... | 0 | Kotlin | 0 | 1 | 29c7ffa5bb7ce8e22c3f052cd99145fa8e089302 | 3,446 | kradle | MIT License |
src/main/kotlin/org/cdb/labwitch/controller/TagController.kt | CodeDrillBrigade | 714,769,385 | false | {"Kotlin": 68833} | package org.cdb.labwitch.controller
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import kotlinx.coroutines.flow.toList
import org.cdb.labwitch.logic.TagLogic
import org.cdb.labwitch.models.embed.Tag
import org.cdb.labwitch.models.i... | 2 | Kotlin | 0 | 0 | d61c00de00a28ea260ca3b5efbfc6c2a7b56d6fc | 1,034 | LabWitchery-backend | MIT License |
app/src/main/java/co/orangesoft/authmanager/auth/SimpleProfile.kt | Orangesoft-Development | 301,754,025 | false | null | package co.orangesoft.authmanager.auth
import com.google.gson.annotations.SerializedName
class SimpleProfile(
var id: String,
var providerId: String? = null,
var name: String? = null,
var phoneNumber: String? = null,
@SerializedName("avatar_url")
var avatarUrl: String? = null,
var birthday... | 0 | Kotlin | 0 | 0 | 7d35474f23d1f577662ebbe45642f74901bfe410 | 338 | auth_manager | Apache License 2.0 |
compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirOperatorModifierChecker.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.
*/
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source... | 4 | null | 5411 | 43,797 | a8f547d080724fae3a45d675a16c5b3fc2f13b17 | 10,438 | kotlin | Apache License 2.0 |
bezier/src/main/java/io/channel/bezier/icon/Exclusive.kt | channel-io | 736,533,981 | false | {"Kotlin": 2421787, "Python": 12500} | @file:Suppress("ObjectPropertyName", "UnusedReceiverParameter")
// Auto-generated by script/generate_compose_bezier_icon.py
package io.channel.bezier.icon
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifie... | 7 | Kotlin | 3 | 6 | 39cd58b0dd4a1543d54f0c1ce7c605f33ce135c6 | 3,984 | bezier-compose | MIT License |
navigation/src/main/java/com/beetlestance/androidextensions/navigation/util/LiveEvent.kt | beetlestance | 282,616,603 | false | null | package com.bubelov.coins.util
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.Observer
import androidx.annotation.MainThread
import java.util.*
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.atomic.AtomicBoolean
class LiveEvent<... | 2 | null | 3 | 9 | 52514231c13695292826b2872792349590234197 | 2,076 | android-extensions | Apache License 2.0 |
app/src/main/java/com/github/satoshun/coroutine/autodispose/sample/MainActivity.kt | mohammadt3anii | 163,180,984 | true | {"Kotlin": 21469} | package com.github.satoshun.coroutine.autodispose.sample
import android.os.Bundle
import android.util.Log
import android.view.ViewGroup
import androidx.fragment.app.commit
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
class MainActivity : BaseActivity() {
override fun onCreate(savedInstanceState:... | 0 | Kotlin | 0 | 0 | 6c0d298372df297fe72af9d4a9a97eb411332edc | 1,105 | CoroutineAutoDispose | Apache License 2.0 |
gooddata-server-oauth2-autoconfigure/src/main/kotlin/AuthenticationStoreClient.kt | gooddata | 373,135,413 | false | {"Kotlin": 449683} | /*
* Copyright 2021 GoodData Corporation
*
* 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... | 0 | Kotlin | 5 | 2 | e11e40fe2ba8500135061e64d9e2b3480ed25125 | 7,188 | gooddata-server-oauth2 | Apache License 2.0 |
app/src/main/java/com/oxapps/materialcountdown/util/TimeHelper.kt | Flozzo | 46,596,362 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Text": 1, "Markdown": 1, "Proguard": 1, "Java": 4, "XML": 35, "Kotlin": 13} | /*
* Copyright 2018 <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... | 1 | null | 1 | 1 | 3eb52ad33004f6c76b45afdb9f2911afc0e6b805 | 1,953 | MaterialCountdown | Apache License 2.0 |
app/src/main/java/bry1337/github/io/creditnotebook/presentation/persontransaction/TransactionListAdapter.kt | Bry1337 | 196,964,188 | false | null | package bry1337.github.io.creditnotebook.presentation.persontransaction
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import bry1337.github.io.creditnotebook.R
import bry1337.github.io.creditnotebook.databin... | 0 | Kotlin | 0 | 1 | 7f486a4097aac180504751b67b2e0bbea63eb0cd | 1,715 | super-duper-giggle | MIT License |
app/src/main/java/org/simple/clinic/facility/alertchange/AlertFacilityChangeSheet.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.facility.alertchange
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.os.Parcelable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.f2prateek.rx.preferences2.Pref... | 4 | null | 72 | 220 | 1a0bb8c0cfcec3988a0d6864d73786d0099c2286 | 6,158 | simple-android | MIT License |
playerFeature/src/main/java/com/yes/player/presentation/ui/EqualizerViewTest.kt | Yeroshin | 561,680,210 | false | {"Kotlin": 372924} | package com.yes.player.presentation.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundat... | 0 | Kotlin | 1 | 3 | f64f02e058d4db19444bcb19ea0ac093c91a96de | 2,234 | YES_MusicPlayer | MIT License |
tree-leaf/src/main/kotlin/org/hchery/treeleaf/service/crypto/KeyManage.kt | hchery | 799,787,264 | false | {"Kotlin": 60401, "Java": 11448} | package org.hchery.treeleaf.service.crypto
import org.hchery.treeleaf.dao.AesKeyDao
import org.hchery.treeleaf.dao.CryptoKeyDao
import org.hchery.treeleaf.db.key.AesKeyDbModel
import org.hchery.treeleaf.db.key.KeyDbModel
import org.springframework.stereotype.Service
import javax.crypto.KeyGenerator
/**
* DATE: 2024/... | 0 | Kotlin | 0 | 0 | 5a1467c90ac14937a8f3cdbcb5403c264363daa7 | 1,153 | TreeLeaf | MIT License |
app/src/main/java/com/handysparksoft/ainimations/ui/theme/Color.kt | davidasensio | 637,809,073 | false | null | package com.handysparksoft.ainimations.ui.theme
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF7D5260)
val Lime = Color(0xFFC6F... | 0 | Kotlin | 0 | 0 | 951b84af1d5d0cfab4800433ee699e4cbe7803bd | 364 | AiNimations | MIT License |
src/test/kotlin/com/github/cramer/gradle/jasperreports/utils/CompilationUtilsTest.kt | f-cramer | 769,405,116 | false | {"Kotlin": 27536} | package com.github.cramer.gradle.jasperreports.utils
import assertk.assertThat
import assertk.assertions.isNotNull
import assertk.assertions.isTrue
import com.github.fcramer.gradle.jasperreports.commons.CompilationTask
import com.github.fcramer.gradle.jasperreports.commons.TaskConfiguration
import com.github.fcramer.g... | 2 | Kotlin | 0 | 1 | 71d9050d1554c0ee87eb32994640c141ea9201cc | 1,444 | jasperreports-gradle-plugin | Apache License 2.0 |
app/src/main/java/com/ucsm/tylersai/amsteacher/model/SectionClass.kt | hanlinag | 290,556,091 | false | null | package com.ucsm.tylersai.amsteacher.model
data class SectionClass(
var teachingsubject :String,
var year: String,
var sectionname: String
){
constructor():this("","","")
} | 0 | null | 2 | 4 | 2ea4e1408c3b74d89f4a9594a6e81994715f958b | 189 | ams-teacher | MIT License |
beagle/src/test/kotlin/br/com/zup/beagle/android/logger/BeagleMessageLogsTest.kt | ZupIT | 391,144,851 | false | null | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 1 | null | 2 | 9 | 812a330777edd79a123495e9f678dc8f25a019f7 | 14,113 | beagle-android | Apache License 2.0 |
kase-gradle-dsl/src/main/kotlin/com/rickbusarow/kase/gradle/dsl/model/FunctionCall.kt | rickbusarow | 692,975,358 | false | {"Kotlin": 896283, "Shell": 4226} | /*
* Copyright (C) 2023 Rick Busarow
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 3 | Kotlin | 0 | 0 | 75805a3d47b246b247f2d98ec4514b0c4385b06e | 6,095 | kase | Apache License 2.0 |
linea/src/commonMain/kotlin/compose/icons/lineaicons/arrows/SquareDown.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineaicons.arrows
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.g... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,009 | compose-icons | MIT License |
ktor-io/wasmJs/src/io/ktor/utils/io/ByteChannelWasm.kt | ktorio | 40,136,600 | false | {"Kotlin": 6826990, "C": 453568, "Python": 948, "JavaScript": 775, "HTML": 336, "Mustache": 77, "Handlebars": 9} | /*
* Copyright 2014-2023 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.utils.io
import io.ktor.utils.io.core.*
import io.ktor.utils.io.core.internal.*
import io.ktor.utils.io.internal.*
import kotlinx.coroutines.*
/**
* Creates buffered channel f... | 162 | Kotlin | 1017 | 12,440 | 1bc44e0715d4b7ffd9669a03a3fe02314c0b11b6 | 2,618 | ktor | Apache License 2.0 |
net.akehurst.kaf/common/realisation/src/jvm8Test/kotlin/common/test_ApplicationWithPortsAndActor.kt | dhakehurst | 166,023,488 | false | null | /**
* Copyright (C) 2019 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* 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... | 0 | Kotlin | 0 | 0 | f74c333396998ad2ead9e5cdd964f88ac4af44d4 | 3,806 | net.akehurst.kaf | Apache License 2.0 |
core/src/main/kotlin/com/huskerdev/openglfx/effects/GLShaderEffectPeer.kt | husker-dev | 393,363,130 | false | {"Kotlin": 114168, "C": 39584, "C++": 17027, "CMake": 1781} | package com.huskerdev.openglfx.effects
import com.sun.scenario.effect.Crop
class GLShaderEffectPeer: Crop(null) {
} | 6 | Kotlin | 7 | 52 | 6cc02edbb639101c08a9e9fc6bb796bc55c991a8 | 118 | openglfx | Apache License 2.0 |
ClienteApiRest/app/src/main/java/Api/MainActivityViewModel.kt | aranzabe | 405,328,026 | false | null | package Api
import Modelo.User
import Modelo.Usuario
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
class MainActivityViewModel : ViewModel() {
val myResponse: MutableLiveData<Usuario> = MutableLiveData()
... | 0 | null | 0 | 1 | aa74da85a1893ee45dc0852bb15b664fe09edb78 | 676 | android | MIT License |
src/main/kotlin/TextUtils.kt | uk-gov-mirror | 356,709,418 | false | null | class TextUtils {
private val qualifiedTablePattern = Regex(Config.Hbase.qualifiedTablePattern)
private val coalescedNames = mapOf("agent_core:agentToDoArchive" to "agent_core:agentToDo")
fun topicNameTableMatcher(topicName: String) = qualifiedTablePattern.find(topicName)
fun coalescedName(tableName:... | 0 | null | 0 | 0 | 9015c4827e4599ba44ee96735d929d456df4f4cd | 421 | dwp.streaming-data-importer | MIT License |
event-aggregator/src/main/kotlin/io/kommons/designpatterns/event/aggregator/emitters/Scout.kt | debop | 235,066,649 | false | null | package io.kommons.designpatterns.event.aggregator.emitters
import io.kommons.designpatterns.event.aggregator.Event.WARSHIPS_APPROACHING
import io.kommons.designpatterns.event.aggregator.EventEmitter
import io.kommons.designpatterns.event.aggregator.EventObserver
import io.kommons.designpatterns.event.aggregator.Weekd... | 0 | Kotlin | 11 | 53 | c00bcc0542985bbcfc4652d0045f31e5c1304a70 | 626 | kotlin-design-patterns | Apache License 2.0 |
app/src/main/java/software/ehsan/newsfeed/data/exception/BaseException.kt | EhsanMashhadi | 587,488,394 | false | null | package software.ehsan.newsfeed.data.exception
open class BaseException: Exception() | 0 | Kotlin | 0 | 0 | 4eca40b718f31f58e63c3d5e0f5cce32ec41a372 | 85 | NewsFeed | Apache License 2.0 |
gradle-plugin/devkit/src/main/kotlin/com/dailystudio/devbricksx/DevKitPlugin.kt | dailystudio | 264,874,323 | false | {"Java": 1002565, "Kotlin": 855589, "Shell": 6356, "HTML": 1286} | package com.dailystudio.devbricksx
import com.android.build.api.dsl.CommonExtension
import com.android.build.api.variant.AndroidComponentsExtension
import com.google.devtools.ksp.gradle.KspExtension
import org.gradle.api.*
import org.gradle.kotlin.dsl.create
import org.gradle.kotlin.dsl.getByType
import org.gradle.kot... | 1 | Java | 6 | 63 | 942f967e5451ac9c67717c074ebebf8d0be33d73 | 4,937 | devbricksx-android | Apache License 2.0 |
src/main/kotlin/me/branchpanic/mods/stockpile/StockpileClient.kt | BernardoGrigiastro | 375,697,481 | true | {"Kotlin": 102549, "Java": 1098} | package me.branchpanic.mods.stockpile
import me.branchpanic.mods.stockpile.content.blockentity.ItemBarrelBlockEntity
import me.branchpanic.mods.stockpile.content.client.BarrelHatKeyListener
import me.branchpanic.mods.stockpile.content.client.gui.OverlayRenderer
import me.branchpanic.mods.stockpile.content.client.gui.U... | 0 | null | 0 | 0 | eea85a487ebe3c33566f5244d83e28a5ced3e400 | 3,068 | stockpile | MIT License |
app/src/main/java/com/rosi/masts/mvc/view/ViewManager.kt | sr01 | 387,141,087 | false | null | package com.rosi.masts.mvc.view
import com.rosi.masts.base.actor.*
import com.rosi.masts.di.DependencyProvider
import com.rosi.masts.mvc.*
import com.rosi.masts.mvc.control.Controller
import com.rosi.masts.mvc.model.media.MediaController
import com.rosi.masts.mvc.view.android.activity.keybinding.KeyBindingActivityActo... | 0 | Kotlin | 0 | 0 | 01f998fefea75370bb9f00535cb8ccee31700c4d | 3,298 | FineSTT | Apache License 2.0 |
SearchNBlogWithoutAds/app/src/main/java/kr/esens/searchnblogwithoutads/LoadingDialog.kt | ESENS12 | 275,990,883 | false | null | package kr.esens.searchnblogwithoutads
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
class LoadingDialog(context: Context) : Dialog(context) {
init {
setCanceledOnTouchOutside(false)
window!!.setBackgroundDraw... | 0 | Kotlin | 0 | 0 | 82268e856a0bda1024bc3a3aa29fafa855dbee40 | 415 | Kotlin | MIT License |
src/main/kotlin/icu/windea/pls/lang/util/CwtConfigManager.kt | DragonKnightOfBreeze | 328,104,626 | false | {"Kotlin": 3434785, "Java": 164698, "Lex": 42127, "HTML": 23578, "Shell": 2822} | package icu.windea.pls.lang.util
import com.intellij.psi.*
import com.intellij.psi.util.*
import icu.windea.pls.*
import icu.windea.pls.config.*
import icu.windea.pls.config.config.*
import icu.windea.pls.config.config.internal.*
import icu.windea.pls.config.configGroup.*
import icu.windea.pls.config.expression.intern... | 9 | Kotlin | 4 | 37 | 4b3531109f2428f6f7e6be5abc9b5b27547950e8 | 14,691 | Paradox-Language-Support | MIT License |
serenity-asciidoc/src/test/kotlin/net/serenitybdd/reports/asciidoc/WhenGeneratingAnAsciidocReport.kt | cliviu | 219,955,490 | false | {"Gradle": 23, "Java Properties": 17, "INI": 24, "Markdown": 128, "Shell": 22, "Ignore List": 7, "Batchfile": 20, "Groovy": 282, "Git Attributes": 2, "Text": 99, "XML": 176, "HTML": 1249, "JSON": 584, "CSS": 324, "JavaScript": 737, "Gherkin": 58, "SCSS": 233, "SVG": 1377, "Less": 120, "Kotlin": 62, "Fluent": 32, "Java"... | package net.serenitybdd.reports.asciidoc
import net.thucydides.model.util.EnvironmentVariables
import net.thucydides.model.util.MockEnvironmentVariables
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
impo... | 1 | null | 1 | 1 | e7a9e9c6654a5e9a86cdb9cf88fbb063fcefad5c | 5,516 | serenity-core | Apache License 2.0 |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/CreativeCommonsSa.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.gra... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,796 | compose-icons | MIT License |
app/src/main/java/com/xxxxx/myparking/models/AvailableCarsResponse.kt | carlosiniesta7 | 221,419,594 | false | null | package com.xxxxx.myparking.models
data class AvailableCarsResponse (
val success: Boolean,
val cars: List<Cars>
) | 0 | Kotlin | 0 | 0 | 364d574e7b4cd6dc3a6864bfc59522fb0b1883eb | 123 | Car2Reserve | Apache License 2.0 |
mobile/src/main/java/be/mygod/vpnhotspot/SettingsActivity.kt | snyiu100 | 116,776,835 | true | {"Kotlin": 38604} | package be.mygod.vpnhotspot
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import be.mygod.vpnhotspot.databinding.ActivitySettingsBinding
class SettingsActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 0 | Kotlin | 0 | 0 | f341bf409e764fe91cb782e8d5f337c697f8397d | 534 | VPNHotspot | Apache License 2.0 |
src/main/java/com/cplusedition/bot/dsl/html/impl/Empty.kt | cplusedition | 412,142,025 | false | {"TypeScript": 3121002, "Java": 3005697, "JavaScript": 2745438, "HTML": 2273206, "Kotlin": 2011043, "CSS": 236922, "PureBasic": 147886, "LLVM": 117819, "Shell": 4832, "C": 4368, "M4": 603, "Makefile": 321} | /*!
C+edition for Desktop, Community Edition.
Copyright (C) 2021 Cplusedition Limited. All rights reserved.
The author licenses this file to You 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... | 0 | TypeScript | 0 | 0 | 801e52da05ab50b56df4a1a7fbeacb09f6b4fa2e | 1,108 | cplusedition-desktop-ce | Apache License 2.0 |
app/src/main/java/com/example/test/api/AsinProductResponse.kt | mohilcode | 636,133,705 | false | null | package com.example.test.api
data class AsinProductResponse(
val product: Product
)
data class Product(
val title: String,
val description: String
)
| 0 | Kotlin | 0 | 0 | d59733ae686612f6a96f48986ba3a06485d8d1bb | 164 | shopsmartscan | MIT License |
kotlin/akka-actor-model/src/main/kotlin/com/example/akkaactormodel/AkkaActorModelApplication.kt | fmuhic | 202,541,972 | false | {"Lua": 34751, "JavaScript": 9514, "Kotlin": 8168, "Assembly": 6979, "C++": 5790, "Shell": 5618, "C": 2124, "Python": 1709, "Go": 1404, "CMake": 1251, "Rust": 942, "Dockerfile": 691, "HTML": 477, "Makefile": 122, "CSS": 90} | package com.example.akkaactormodel
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class AkkaActorModelApplication
fun main(args: Array<String>) {
runApplication<AkkaActorModelApplication>(*args)
}
| 0 | Lua | 1 | 0 | c26a22d5b6e42320f308cd24d4ba1035b96463cf | 295 | junkyard | MIT License |
src/commonMain/kotlin/org/tix/serialize/TixSerializers.kt | ncipollo | 336,920,234 | false | {"Kotlin": 601503} | package org.tix.serialize
import kotlinx.serialization.json.Json
import kotlinx.serialization.modules.SerializersModule
import kotlinx.serialization.modules.contextual
import net.mamoe.yamlkt.Yaml
import org.tix.integrations.jira.issue.json.IssueFieldSerializer
import org.tix.serialize.dynamic.DynamicElement
import or... | 8 | Kotlin | 0 | 3 | 02f87c827c1159af055f5afc5481afd45c013703 | 1,307 | tix-core | MIT License |
app/src/main/java/vn/loitp/app/activity/customviews/layout/transformationlayout/single/TransformationSingleActivity.kt | tplloi | 126,578,283 | false | null | /*
* Designed and developed by 2020 skydoves (<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... | 0 | Kotlin | 0 | 6 | 4fe4c945e89819d77aaf6cb76f1de6bbff7868a5 | 1,386 | basemaster | Apache License 2.0 |
controls-opcua/src/main/kotlin/ru/mipt/npm/controls/opcua/client/MiloDevice.kt | mipt-npm | 240,888,288 | false | null | package space.kscience.controls.opcua.client
import kotlinx.coroutines.future.await
import kotlinx.serialization.json.Json
import org.eclipse.milo.opcua.sdk.client.OpcUaClient
import org.eclipse.milo.opcua.stack.core.types.builtin.*
import org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn
import sp... | 4 | Kotlin | 2 | 9 | a20fb97c02f6394fe49436f97373991bed2f8f6f | 2,822 | controls.kt | Apache License 2.0 |
app/src/main/java/com/yenaly/han1meviewer/ui/fragment/search/HMultiChoicesDialog.kt | YenalyLiew | 524,046,895 | false | null | package com.yenaly.han1meviewer.ui.fragment.search
import android.annotation.SuppressLint
import android.content.Context
import android.util.SparseArray
import android.view.View
import androidx.annotation.StringRes
import androidx.appcompat.app.AlertDialog
import androidx.core.util.size
import androidx.core.util.value... | 37 | null | 130 | 1,745 | ba816ad86628c3bf5e9b8af0987ddf2cb741fca8 | 4,433 | Han1meViewer | Apache License 2.0 |
src/main/kotlin/dev/turingcomplete/kotlinonetimepassword/OtpAuthUriBuilder.kt | marcelkliemannel | 119,086,726 | false | null | package dev.turingcomplete.kotlinonetimepassword
import dev.turingcomplete.kotlinonetimepassword.OtpAuthUriBuilder.Companion.forHotp
import dev.turingcomplete.kotlinonetimepassword.OtpAuthUriBuilder.Companion.forTotp
import java.io.ByteArrayOutputStream
import java.net.URI
import java.net.URLEncoder
import java.nio.By... | 0 | null | 22 | 96 | 946719e50ba6ddbaacec6522f9b5131e0fd9143d | 10,934 | kotlin-onetimepassword | Apache License 2.0 |
src/main/java/com/elpassion/genealogical/kotlinimpl/FatherNameDisplayer.kt | elpassion | 53,936,336 | false | null | package com.elpassion.genealogical.kotlinimpl
interface Person {
val father: Person?
val name: String?
}
class FatherNameDisplayer {
fun display(person: Person) = person.father?.name ?: "Name not known"
}
| 1 | null | 1 | 1 | c60eb5f62841e373e7607b110468fbca6ee2a915 | 221 | livecoding-kotlin-grandpa-and-grandson | The Unlicense |
src/test/kotlin/com/melowetty/hsepermhelper/util/ScheduleUtilsTest.kt | HSE-Perm-Helper | 682,010,195 | false | {"Kotlin": 146961, "Dockerfile": 102} | package com.melowetty.hsepermhelper.util
import com.melowetty.hsepermhelper.model.Lesson
import com.melowetty.hsepermhelper.model.LessonType
import com.melowetty.hsepermhelper.model.Schedule
import com.melowetty.hsepermhelper.model.ScheduleType
import com.melowetty.hsepermhelper.model.ScheduledTime
import com.melowett... | 3 | Kotlin | 0 | 0 | dbe744d3e4ff060d5d5781222930922b34df96bf | 6,425 | main-backend | MIT License |
reflekt-plugin/src/test/resources/io/reflekt/plugin/analysis/util/data/base_test_no_reflekt/project/test/Main.kt | vovakfake | 352,456,214 | true | {"Kotlin": 154061} | package io.reflekt.test
import io.reflekt.Reflekt
fun main() {
val classes = Reflekt.classes().withSubType<B1>().withAnnotations<B1>(FirstAnnotationTest::class)
}
| 0 | null | 0 | 0 | 791e5370f4d8e57225f873ccc0f0d3b39d883de9 | 169 | reflekt | Apache License 2.0 |
app/src/main/java/tw/com/deathhit/taipei_tour/MainActivityViewModel.kt | Deathhit | 748,190,483 | false | {"Kotlin": 197443} | package tw.com.deathhit.taipei_tour
import android.os.Parcelable
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.parcelize.Parcelize
import tw.com.deathhit.taipei_tour.model.MainScreen
import javax.inject.Inject
@HiltView... | 0 | Kotlin | 0 | 0 | d76f4a3f3d3f0310e3a8b551efa11f46c3c54a30 | 2,568 | TaipeiTour | Apache License 2.0 |
stocks/src/main/java/com/pyamsoft/tickertape/stocks/JsonParser.kt | pyamsoft | 371,196,339 | false | null | package com.pyamsoft.tickertape.stocks
import androidx.annotation.CheckResult
interface JsonParser {
@CheckResult fun <T : Any> toJson(data: T): String
@CheckResult
fun <T : Any> fromJson(
json: String,
type: Class<T>,
): T?
}
@CheckResult
inline fun <reified T : Any> JsonParser.fromJson(json: ... | 1 | Kotlin | 0 | 6 | c5309984f17de290ce2fb82120b4699cc8227b65 | 380 | tickertape | Apache License 2.0 |
compottie/src/commonMain/kotlin/io/github/alexzhirkevich/compottie/internal/animation/expressions/operations/js/number/JsToPrecision.kt | alexzhirkevich | 730,724,501 | false | {"Kotlin": 820392, "Swift": 601, "HTML": 572} | package io.github.alexzhirkevich.compottie.internal.animation.expressions.operations.js.number
import io.github.alexzhirkevich.compottie.internal.animation.expressions.Expression
import io.github.alexzhirkevich.compottie.internal.animation.expressions.operations.unresolvedReference
import kotlin.math.pow
import kotlin... | 2 | Kotlin | 2 | 135 | 426ee74342a86ecebc8118ef71e02597290faa4c | 1,772 | compottie | MIT License |
flowredux/src/commonMain/kotlin/com/freeletics/flowredux/dsl/ExecutionPolicy.kt | freeletics | 184,753,749 | false | {"Kotlin": 142269, "Shell": 2723, "CSS": 1258} | package com.freeletics.flowredux.dsl
/**
* Defines which behavior a DSL Block such as `on<Action>` should have whenever
* a new action or value is emitted.
*/
public enum class ExecutionPolicy {
/**
* Cancels the previous execution.
* By applying this [ExecutionPolicy] the previous execution of the
... | 19 | Kotlin | 27 | 707 | eecee7caf3bba31fca8d8f2a8ed66a60839310ca | 2,506 | FlowRedux | Apache License 2.0 |
core/data/src/main/java/com/msg/data/mapper/post/WritePostMapper.kt | School-of-Company | 700,744,250 | false | {"Kotlin": 917283} | package com.msg.data.mapper.post
import com.msg.model.param.post.WritePostParam
import com.msg.network.request.post.WritePostRequest
fun WritePostParam.toRequest() = WritePostRequest(
title = title,
content = content,
links = links,
feedType = feedType,
) | 5 | Kotlin | 0 | 20 | e1e0c6e5a187f5b010a65eb824f9612a2bb118a8 | 273 | Bitgoeul-Android | MIT License |
src/main/kotlin/io/ashdavies/extensions/Fragment.kt | ashdavies | 177,180,130 | false | null | package io.ashdavies.extensions
import android.view.View
import androidx.fragment.app.Fragment
fun Fragment.requireView(): View = view ?: throw IllegalStateException("Fragment $this has no layout")
| 0 | Kotlin | 1 | 4 | 09739852177e5e28600ba7c3dcfe9d63314c9dd9 | 200 | lifecycle-flow | Apache License 2.0 |
SKIE/compiler/kotlin-plugin/src/kgp_common/kotlin/co/touchlab/skie/sir/element/SirFile.kt | touchlab | 685,579,240 | false | null | package co.touchlab.skie.sir.element
import io.outfoxx.swiftpoet.FileSpec
import java.nio.file.Path
// File can only be created from SirProvider
class SirFile(
val namespace: String,
val name: String,
override val module: SirModule.Skie,
) : SirElement, SirTopLevelDeclarationParent {
// Relative to g... | 8 | null | 8 | 519 | a9a31608ac24935dd8853d9ec9e6f66e9a424f34 | 1,039 | SKIE | Apache License 2.0 |
app/src/main/java/com/nanamare/movie/ui/screen/UpcomingScreen.kt | Nanamare | 441,159,715 | false | null | package com.nanamare.movie.ui.screen
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.com... | 12 | null | 0 | 22 | 4ddde2be616aeec4ac7f04b33a3b577c34bf2d91 | 16,079 | MovieCompose | MIT License |
browser-kotlin/src/jsMain/kotlin/web/errors/ErrorEvent.types.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6891970} | // Automatically generated - do not modify!
package web.errors
import seskar.js.JsValue
import seskar.js.JsVirtual
import web.events.EventTarget
import web.events.EventType
@JsVirtual
sealed external class ErrorEventTypes :
ErrorEventTypes_deprecated {
@JsValue("error")
fun <C : EventTarget> error(): Ev... | 0 | Kotlin | 7 | 28 | 8b3f4024ebb4f67e752274e75265afba423a8c38 | 446 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/example/android/common/logger/LogWrapper.kt | Grestomaniac | 251,610,955 | false | {"Kotlin": 22275} | /*
* Copyright (C) 2012 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... | 0 | null | 0 | 0 | ffd1946b72e6d42242c1462d0de1ed53bd17c638 | 1,144 | Metcast_app | MIT License |
src/main/kotlin/me/fzzyhmstrs/fzzymapz/theme/impl/BiomeTheme.kt | fzzyhmstrs | 642,181,261 | false | null | package me.fzzyhmstrs.fzzymapz.theme.impl
import me.fzzyhmstrs.fzzymapz.FM
import me.fzzyhmstrs.fzzymapz.registry.RegisterTheme
import me.fzzyhmstrs.fzzymapz.theme.Theme
import net.minecraft.util.Identifier
class BiomeTheme(private val map: MutableMap<Identifier, Identifier>): Theme(RegisterTheme.BIOME){
overrid... | 0 | Kotlin | 0 | 0 | fd1caab1a9134f580ad036a5af35cb530532e156 | 500 | fzzymapz | MIT License |
projects/android/eyeonit/src/main/java/io/eyeonit/eyeonit/ui/theme/Shape.kt | AzureAD | 448,733,315 | false | {"HTML": 5728885, "Kotlin": 53219, "JavaScript": 39484, "CSS": 34202, "Java": 24432, "TypeScript": 23817} | package com.sample.hackathon.declaredaccessandroid.ui.theme
import androidx.compose.foundation.shape.CutCornerShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
import androidx.compose.ui.unit.dp
val EyeonitShapes = Shapes(
small = CutCornerShape(topStart = 1... | 3 | HTML | 3 | 2 | ea8b89c3867de2af13f73331e4c410e756fe2c3e | 414 | declaredaccess | MIT License |
server/zally-server/src/main/kotlin/org/zalando/zally/dto/ApiDefinitionResponse.kt | zalando | 76,853,145 | false | null | package org.zalando.zally.dto
import java.util.UUID
data class ApiDefinitionResponse(
val externalId: UUID? = null,
val message: String? = null,
val score: Float,
val violations: List<ViolationDTO> = emptyList(),
val violationsCount: Map<String, Int> = emptyMap(),
val apiDefinition: String?
)
| 62 | null | 2 | 882 | 8c7407db2be39041f61b6baa3ee74012ebdb26ad | 320 | zally | MIT License |
app/src/main/java/com/codelab/basiclayouts/feature_account/presentation/homepage/HomepageViewModel.kt | RexHsu09 | 502,902,254 | false | {"Kotlin": 232883} | package com.codelab.basiclayouts.feature_account.presentation.homepage
import androidx.compose.runtime.*
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.codelab.basiclayouts.R
import com.codelab.basiclayouts.core.domain.use_case.AccountingUseCases
import com.codelab.basiclayouts... | 0 | Kotlin | 0 | 0 | 1422ed591972d731b544ff34b58eb1c9eac3e172 | 1,074 | Friendly_UI_Improved | Apache License 2.0 |
korim/src/commonMain/kotlin/com/soywiz/korim/bitmap/BitmapIndexed.kt | hegdepranav001 | 257,100,686 | true | {"Kotlin": 457938, "Shell": 1396, "Batchfile": 698} | package com.soywiz.korim.bitmap
import com.soywiz.kmem.*
import com.soywiz.korim.color.*
import kotlin.math.*
abstract class BitmapIndexed(
bpp: Int,
width: Int, height: Int,
var data: ByteArray = ByteArray(width * height / (8 / bpp)),
var palette: RgbaArray = RgbaArray(1 shl bpp)
) : Bitmap(width, height, bpp, f... | 0 | Kotlin | 0 | 0 | 546a07834d4126fd56632790e7fd336d3a1b4e02 | 2,738 | korim | Apache License 2.0 |
app/src/test/java/com/puntogris/brubankchallenge/SearchViewModelTest.kt | puntogris | 817,276,560 | false | {"Kotlin": 73081} | package com.puntogris.brubankchallenge
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.puntogris.brubankchallenge.domain.IRepository
import com.puntogris.brubankchallenge.domain.models.Movie
import com.puntogris.brubankchallenge.ui.search.SearchViewModel
import com.puntogris.brubankchalle... | 0 | Kotlin | 0 | 0 | 977edeb4b96d9ed3d620838561b9cc18b1611fe2 | 3,713 | brubank-challenge | MIT License |
compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/implementation.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.tree.generator.printer
import org.jetbrains.kotlin.fir.tree.generator.model.... | 3 | null | 5686 | 46,039 | f98451e38169a833f60b87618db4602133e02cf2 | 17,204 | kotlin | Apache License 2.0 |
Browser/src/jvmMain/kotlin/io/nacular/doodle/dom/WASMTypes.kt | nacular | 108,631,782 | false | {"Kotlin": 3150677} | package io.nacular.doodle.dom
/** @suppress */
public actual interface JsAny
/** @suppress */
public actual class JsString: JsAny
/** @suppress */
public actual fun String.toJsString(): JsString = JsString()
/** @suppress */
public actual class JsNumber: JsAny
internal actual fun JsNumber.toDouble(): Double = 0.0
... | 3 | Kotlin | 26 | 613 | f7414d4c30cdd7632992071234223653e52b978c | 915 | doodle | MIT License |
src/main/kotlin/no/nav/pensjon/opptjening/omsorgsopptjening/start/innlesning/barnetrygd/external/pdl/ParallelleSannheter.kt | navikt | 585,136,142 | false | {"Kotlin": 254799, "HTML": 6035, "Shell": 806, "Dockerfile": 605} | package no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.barnetrygd.external.pdl
private const val FOLKEREGISTERET = "FREG"
private infix fun Metadata.harMaster(antattMaster: String) = master.uppercase() == antattMaster
| 0 | Kotlin | 0 | 0 | 86bab024a1d95e8809f3c2d13f3e1251db783cbd | 234 | omsorgsopptjening-start-innlesning | MIT License |
src/Day06.kt | PascalHonegger | 573,052,507 | false | {"Kotlin": 66208} | fun main() {
fun solve(input: String, size: Int) = input
.windowedSequence(size)
.indexOfFirst { it.toSet().size == size } + size
fun part1(input: String) = solve(input, size = 4)
fun part2(input: String) = solve(input, size = 14)
check(part1("mjqjpqmgbljsphdztnvjfqwrcgsmlb") == 7)
... | 0 | Kotlin | 0 | 0 | 2215ea22a87912012cf2b3e2da600a65b2ad55fc | 926 | advent-of-code-2022 | Apache License 2.0 |
platform/vcs-impl/src/com/intellij/codeInsight/completion/ml/VcsFeatureProvider.kt | hieuprogrammer | 284,920,751 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.completion.ml
import com.intellij.codeInsight.actions.FormatChangedTextUtil
import com.intellij.codeInsight.completion.CompletionLocation
import ... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,611 | intellij-community | Apache License 2.0 |
app/src/main/java/br/com/astradev/mathreferenceapp/ui/screens/FormulaScreen.kt | MalcolnLMR | 877,896,069 | false | {"Kotlin": 38784} | package br.com.astradev.mathreferenceapp.ui.screens
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose... | 0 | Kotlin | 0 | 0 | b381cbfefb7644f418b55fab4b26e52afacbd6e1 | 4,068 | geometry-android-app | MIT License |
stripe/src/test/java/com/stripe/android/view/StripeEditTextTest.kt | Yog8482 | 320,415,601 | true | {"Kotlin": 2159772, "Java": 64814, "Ruby": 6208, "Shell": 321} | package com.stripe.android.view
import android.content.Context
import androidx.annotation.ColorInt
import androidx.core.content.ContextCompat
import androidx.test.core.app.ApplicationProvider
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.veri... | 0 | null | 0 | 1 | ec4b7553eab234075a1e8fce75fdcecc73635eb2 | 5,487 | stripe-android | MIT License |
app/src/main/java/com/andreasgift/edisco/MainActivity.kt | andrea-liu87 | 198,418,230 | false | null | package com.andreasgift.edisco
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.core.content.FileProvider
import android.Manifest
import android.annotation.TargetApi
import android.app.Activity
import android.content.Con... | 0 | Kotlin | 0 | 1 | 2d809b5dd248f6bb1c5eda8eee11e59e8f141585 | 8,197 | Edisco | MIT License |
defitrack-protocols/src/main/java/io/defitrack/protocol/alienbase/PoolInfo.kt | decentri-fi | 426,174,152 | false | {"Kotlin": 1038532, "Java": 1948, "Dockerfile": 909} | package io.defitrack.protocol.alienbase
import java.math.BigInteger
class PoolInfo(
val lpToken: String,
val allocPoint: BigInteger,
val lastRewardBlock: BigInteger,
val accAlbPerShare: BigInteger,
val depositFeeBP: BigInteger,
val harvestInterval: BigInteger,
val totalLp: BigInteger
) | 53 | Kotlin | 7 | 9 | e65843453e4c44f5c2626870ceb923eb7ab3c4d0 | 316 | defi-hub | MIT License |
work/src/main/kotlin/net/kotlinx/kotest/modules/BeSpecHeavy.kt | mypojo | 565,799,715 | false | {"Kotlin": 1459231, "Jupyter Notebook": 13439, "Java": 9531} | package net.kotlinx.kotest.modules
import net.kotlinx.kotest.BeSpecKoin
abstract class BeSpecHeavy : BeSpecKoin(MODULES) {
companion object {
val MODULES = BeSpecLight.MODULES + listOf(
AwsModule.moduleConfig(),
DynamoLockModule.moduleConfig(),
ResourceLockModule.modul... | 0 | Kotlin | 0 | 1 | 57ff2c63b66b29c70397673a6c71ca08b3f84bdb | 348 | kx_kotlin_support | MIT License |
components/core/ui/decompose/src/desktopMain/kotlin/com/flipperdevices/ui/decompose/internal/DesktopWindowDecorator.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 4167715, "FreeMarker": 10352, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.ui.decompose.internal
internal class DesktopWindowDecorator : WindowDecorator {
override fun decorate() = Unit
}
| 21 | Kotlin | 174 | 1,528 | 8f293e596741a6c97409acbc8de10c7ae6e8d8b0 | 145 | Flipper-Android-App | MIT License |
app/src/main/java/tool/xfy9326/milink/nfc/activity/MainActivity.kt | XFY9326 | 724,531,401 | false | {"Kotlin": 124564} | package tool.xfy9326.milink.nfc.activity
import android.nfc.NfcAdapter
import android.nfc.Tag
import android.nfc.tech.Ndef
import android.nfc.tech.NdefFormatable
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.a... | 0 | Kotlin | 0 | 4 | 1e8ff899c563be5e71016761aa140c4e2825145d | 6,006 | MiLinkNFC | MIT License |
app/src/main/java/tool/xfy9326/milink/nfc/activity/MainActivity.kt | XFY9326 | 724,531,401 | false | {"Kotlin": 124564} | package tool.xfy9326.milink.nfc.activity
import android.nfc.NfcAdapter
import android.nfc.Tag
import android.nfc.tech.Ndef
import android.nfc.tech.NdefFormatable
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.a... | 0 | Kotlin | 0 | 4 | 1e8ff899c563be5e71016761aa140c4e2825145d | 6,006 | MiLinkNFC | MIT License |
app/src/main/java/dev/spikeysanju/wiggles/view/Details.kt | Spikeysanju | 342,802,106 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2 | null | 70 | 414 | 940f6a0797b70b15d39aeed75e7ddc204082d86b | 6,906 | Wiggles | Apache License 2.0 |
src/test/kotlin/com/forgerock/sapi/gateway/ob/uk/tests/functional/payment/domestic/payments/legacy/LegacyCreateDomesticPaymentTest.kt | SecureApiGateway | 330,627,234 | false | null | package com.forgerock.sapi.gateway.ob.uk.tests.functional.payment.domestic.payments.legacy
import assertk.assertThat
import assertk.assertions.contains
import assertk.assertions.isEqualTo
import assertk.assertions.isNotEmpty
import assertk.assertions.isNotNull
import com.forgerock.sapi.gateway.framework.conditions.Sta... | 7 | null | 0 | 5 | d8b50e474df5df5a8e0ca0743ab377a52192fbc7 | 89,982 | secure-api-gateway-ob-uk-functional-tests | Apache License 2.0 |
plugins/search-everywhere-ml/ranking/test/com/intellij/searchEverywhereMl/ranking/SearchEverywhereLoggingTestCase.kt | ingokegel | 72,937,917 | false | null | package com.intellij.searchEverywhereMl.ranking
import com.intellij.ide.actions.searcheverywhere.ActionSearchEverywhereContributor
import com.intellij.ide.actions.searcheverywhere.SearchAdapter
import com.intellij.ide.actions.searcheverywhere.SearchEverywhereMlContributorReplacement
import com.intellij.ide.actions.sea... | 251 | null | 5079 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 4,948 | intellij-community | Apache License 2.0 |
src/main/kotlin/io/unthrottled/amii/personality/MoodStatusBarProvider.kt | ani-memes | 303,354,188 | false | null | package io.unthrottled.amii.personality
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.StatusBar
import com.intellij.openapi.wm.StatusBarWidget
import com.intellij.openapi.wm.StatusBarWidgetFactory
import io.unthrottled.amii.config.Config
class MoodStatusBarProvider : StatusBarWidgetFactor... | 7 | null | 14 | 257 | c9a4ef10f6e1a5ce68dc3a007b45cadbc33deed0 | 984 | AMII | Apache License 2.0 |
src/main/kotlin/dev/fakek/FakeContext.kt | CodyEngel | 226,218,138 | false | null | @file:Suppress("WildcardImport")
package dev.fakek
import com.github.javafaker.Faker
import dev.fakek.fakes.FakeSemanticVersion
import dev.fakek.fakes.*
/**
* The top level function for interacting with FakeK. This provides an instance of [FakeContext] scoped to this
* function. This allows for all interactions wi... | 6 | Kotlin | 7 | 7 | e3d1442059b1196a020c71fb9424266bf12fe1a1 | 4,846 | fakek | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.