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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
presentation/src/main/java/com/sms/presentation/main/ui/mypage/component/award/AwardDateComponent.kt | GSM-MSG | 625,706,722 | false | {"Kotlin": 733672} | package com.sms.presentation.main.ui.mypage.component.award
import androidx.compose.material.IconButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.msg.sms.design.component.textfield.SmsBasicTextField
import com.msg.sms.design.icon.CalendarIcon
import com.ms... | 11 | Kotlin | 1 | 16 | d279f3f1266caac16ce2e5c2230e13d7e078a37f | 1,011 | SMS-Android | MIT License |
app/src/main/kotlin/com/akagiyui/drive/model/request/EnableConfigRequest.kt | AkagiYui | 647,653,830 | false | {"Kotlin": 227183, "Java": 87795, "HTML": 812, "Dockerfile": 658} | package com.akagiyui.drive.model.request
import jakarta.validation.constraints.NotNull
/**
* 开关配置 请求
* @author AkagiYui
*/
class EnableConfigRequest {
/**
* 是否启用
*/
@NotNull
var enabled: Boolean = false
}
| 4 | Kotlin | 2 | 9 | 6ff345645dfa83944ca4d36c02f9fa7b2162697f | 232 | KenkoDrive | MIT License |
libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/signboard/api/MapboxSignboardApi.kt | zainriaz | 341,444,057 | true | {"Kotlin": 2515109, "Java": 89431, "Python": 11057, "Makefile": 5883, "JavaScript": 2362, "Shell": 1686} | package com.mapbox.navigation.ui.maps.signboard.api
import com.mapbox.api.directions.v5.models.BannerComponents
import com.mapbox.api.directions.v5.models.BannerInstructions
import com.mapbox.common.core.module.CommonSingletonModuleProvider
import com.mapbox.navigation.ui.base.api.signboard.SignboardApi
import com.map... | 0 | null | 0 | 0 | 176366354fceac6bf7171371bd946b95f33a91c0 | 5,237 | mapbox-navigation-android | MIT License |
kotlin/PlanesAndroid/app/src/test/java/com/planes/singleround/test/PlaneGridTest.kt | xxxcucus | 141,627,030 | false | null | package com.planes.test
import com.google.common.truth.Truth
import com.planes.single_player_engine.*
import org.junit.Test
import java.util.*
class PlaneGridTest {
@Test
fun PlaneGridTest_SaveSearchPlane() {
val rows = 10
val cols = 10
val grid = PlaneGridStubNoPlanes(rows, cols, 3, fa... | 6 | null | 9 | 35 | 68d5e14566ea2bfe06df933ab80eb0182df5dad0 | 7,581 | planes | MIT License |
src/main/kotlin/uk/gov/gdx/datashare/controllers/BaseDataController.kt | alphagov | 549,031,617 | false | null | package uk.gov.gdx.datashare.controllers
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.media.ArraySchema
import io.swagger.v3.oas.annotations.media.Content
import io.swagger.v3.oas.annotations.media.Schema
import io.swagger.v3.oas.annotations.responses.ApiResponse
import io.swagge... | 2 | Kotlin | 0 | 9 | 999d55ced90e778afe0d7ab0ddbc2ae9201b6c82 | 7,950 | gdx-data-share-poc | MIT License |
defitrack-protocols/src/main/java/io/defitrack/protocol/dodo/DodoEthereumGraphProvider.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.protocol
import io.defitrack.thegraph.TheGraphGatewayProvider
import org.springframework.stereotype.Component
@Component
class DodoEthereumGraphProvider(
graphGatewayProvider: TheGraphGatewayProvider
) : DodoGraphProvider(
"https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2",
gr... | 59 | Kotlin | 7 | 9 | f7c65aa58bec3268101d90fc538c3f8bd0c29093 | 340 | defi-hub | MIT License |
src/main/kotlin/birt/report/client/ReportService.kt | rock-yu | 344,703,453 | false | {"Gradle": 2, "YAML": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "INI": 1, "Java": 2, "Kotlin": 7} | package birt.report.client
import java.io.IOException
import javax.servlet.http.HttpServletResponse
interface ReportService {
@Throws(IOException::class)
fun run(response: HttpServletResponse, reportName: String, params: ReportParameters,
format: String? = ReportFormat.PDF
)
fun healthChe... | 0 | Kotlin | 0 | 0 | 3d878cb6c1d7322850f81d22f91adaf4de9ec366 | 336 | birt-report-client | Apache License 2.0 |
app/src/main/java/com/tfm/musiccommunityapp/data/utils/CookieManager.kt | luiscruzr8 | 613,985,223 | false | null | package com.tfm.musiccommunityapp.data.utils
import com.tfm.musiccommunityapp.data.extensions.isSignInRequest
import com.tfm.musiccommunityapp.data.extensions.isSignOutRequest
import com.tfm.musiccommunityapp.data.extensions.server
import okhttp3.Cookie
import okhttp3.CookieJar
import okhttp3.HttpUrl
class CookieMana... | 28 | Kotlin | 0 | 1 | e852d00c4b26e54a3f232e1d19b46446dbba4811 | 935 | android-musiccommunity | MIT License |
app/src/main/java/com/example/project7_master/signUpFragment.kt | tipb47 | 713,212,024 | false | {"Kotlin": 22047} | package com.example.project7_master
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import androidx.nav... | 0 | Kotlin | 0 | 1 | 9c590059d3a85747c670d7d1a244dce3079d33ce | 2,135 | Android-Authentication-Notes-App | Apache License 2.0 |
sample/src/main/kotlin/viper/sample/ui/presenters/CommitsPresenter.kt | ncipollo | 72,462,179 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 4, "XML": 19, "Kotlin": 41} | package viper.sample.ui.presenters
import android.os.Bundle
import android.util.Log
import viper.sample.model.entities.Branch
import viper.sample.model.entities.Commit
import viper.sample.model.entities.Repo
import viper.sample.model.interactors.SampleInteractors
import viper.sample.ui.router.SampleFlow
/**
* Presen... | 9 | Kotlin | 0 | 2 | 3ed2e549249bc98c630a2f2a2da67a2c9b527b74 | 2,382 | android-viper | MIT License |
app/src/main/java/com/aljaldak/culmix/data/APIData.kt | alzaltak | 579,247,462 | false | {"Kotlin": 126895} | package com.aljaldak.culmix.data
import retrofit2.Response
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.*
val serverAPIProvider: ServerAPI = RetrofitClient.build().create(ServerAPI::class.java)
interface ServerAPI {
@POST("/user/signup")
suspend fun re... | 0 | Kotlin | 0 | 3 | 396e9867e99f354b5cb4cff36c1cbb292dc076d5 | 1,838 | appjam_android | Apache License 2.0 |
marketkit2/src/main/java/io/horizontalsystems/marketkit/providers/CoinPriceSchedulerFactory.kt | hassandevc | 528,042,734 | false | null | package io.horizontalsystems.marketkit2.providers
import io.horizontalsystems.marketkit2.managers.CoinPriceManager
import io.horizontalsystems.marketkit2.managers.ICoinPriceCoinUidDataSource
import io.horizontalsystems.marketkit2.Scheduler
class CoinPriceSchedulerFactory(
private val manager: CoinPriceManager,
... | 1 | Kotlin | 1 | 0 | fd12acf4095a71fddd256240fe46d08ed730e83b | 661 | new-walletryipay | MIT License |
app/src/main/java/com/phil/airinkorea/ui/appguide/AppGuideScreen.kt | wonhaeseong | 574,473,916 | false | null | package com.phil.airinkorea.ui.appguide
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.statusBarsPadding
import andr... | 1 | null | 0 | 1 | 50fae8681ce13553ead211eb88dc0aef1356bc07 | 2,852 | AirInKorea | Apache License 2.0 |
src/main/kotlin/no/nav/sifinnsynapi/config/Topics.kt | navikt | 290,476,941 | false | null | package no.nav.sifinnsynapi.config
object Topics {
const val K9_DITTNAV_VARSEL_BESKJED_ONPREM = "privat-k9-dittnav-varsel-beskjed"
const val K9_DITTNAV_VARSEL_BESKJED_AIVEN = "dusseldorf.privat-k9-dittnav-varsel-beskjed"
const val DITT_NAV_BESKJED = "aapen-brukernotifikasjon-nyBeskjed-v1"
}
| 1 | Kotlin | 0 | 1 | 4ab98ca1f02cae4936cdea7c17e9fd55722a3ea2 | 305 | k9-dittnav-varsel | MIT License |
app/src/main/java/com/mazrou/boilerplate/perssistance/QuranDao.kt | TarekArar | 383,897,189 | false | null | package com.laidi_arar.appQuran.perssistance
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.laidi_arar.appQuran.model.database.Ayat
import com.laidi_arar.appQuran.model.database.RacineModel
import com.laidi_arar.appQuran.model.database... | 0 | Kotlin | 0 | 1 | efa873f1fe592460a32ced90bfdf54fa01e1d4d1 | 1,419 | projey_tdm | MIT License |
idea/testData/copyPaste/plainTextConversion/KT13529_1.to.kt | JakeWharton | 99,388,807 | true | null | fun foo() {
bar(/*comment*/<caret>)
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 41 | kotlin | Apache License 2.0 |
backend/src/main/kotlin/org/conservationco/legislativereception/domain/rsvp/RsvpProject.kt | OliverAbdulrahim | 585,401,900 | false | null | package org.conservationco.legislativereception.domain.rsvp
import com.asana.models.Project
import jakarta.persistence.Entity
import jakarta.persistence.Id
import org.conservationco.legislativereception.domain.ContactType
import org.conservationco.legislativereception.domain.toContactType
@Entity
data class RsvpProje... | 0 | Kotlin | 0 | 0 | 8e100de80e65cbed51cdf0f0887fbb812abe4e35 | 788 | legislative-reception | MIT License |
python/src/com/jetbrains/python/debugger/variablesview/usertyperenderers/codeinsight/PyTypeNameResolver.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 com.jetbrains.python.debugger.variablesview.usertyperenderers.codeinsight
import com.intellij.openapi.module.ModuleManager
import com.intellij.openapi.p... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,777 | intellij-community | Apache License 2.0 |
TwoNote/app/src/main/java/com/microsoft/device/display/samples/twonote/utils/PenDrawView.kt | microsoft | 272,835,175 | false | null | /*
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.display.wm_samples.twonote.utils
import Defines.DEFAULT_THICKNESS
import Defines.ERASER_RADIUS
import Defines.LAND_TO_PORT
import Defines.OPAQUE
import Defines.PORT_TO_LAND
impor... | 0 | Kotlin | 14 | 22 | 1dcc9cbe555939d687ed44360089e2004c4ac0b2 | 10,805 | surface-duo-app-samples | MIT License |
src/main/java/top/zbeboy/isy/security/AjaxAuthenticationFailureHandler.kt | zbeboy | 71,459,176 | false | null | package top.zbeboy.isy.security
import org.springframework.security.core.AuthenticationException
import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
import org.springframework.stereotype.Component
import org.springframework.web.context.support.WebApplicationContextUtils
import ... | 7 | JavaScript | 2 | 7 | 9634602adba558dbdb945c114692019accdb50a9 | 1,723 | ISY | MIT License |
app/src/androidTest/java/com/example/citysearch/unit/ImageSearchServiceTests.kt | dcoleman0711 | 271,662,093 | false | null | package com.example.citysearch.unit
import android.content.Context
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.example.citysearch.entities.ImageSearchResult
import com.example.citysearch.entities.ImageSearchResults
import com.example.citysea... | 0 | Kotlin | 0 | 0 | 1fdafdaee7008bed80b89411fb3f79b0dcfe426c | 6,441 | CitySearchAndroid | MIT License |
common/src/main/kotlin/dev/teogor/winds/common/dependencies/CollectedContainer.kt | teogor | 713,830,828 | false | {"Kotlin": 282706} | /*
* Copyright 2023 teogor (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | Kotlin | 0 | 4 | a0ed68669d3b8a3ad217f06afa8efb48c05a1a88 | 1,653 | winds | Apache License 2.0 |
kotlin/difference-of-squares/src/test/kotlin/SquaresTest.kt | enolive | 96,409,842 | false | null | import org.junit.Test
import kotlin.test.assertEquals
class SquaresTest {
@Test
fun squareOfSum5() {
assertEquals(225, Squares(5).squareOfSum())
}
@Test
fun squareOfSum10() {
assertEquals(3025, Squares(10).squareOfSum())
}
@Test
fun squareOfSum100() {
assertEq... | 81 | null | 1 | 1 | 61a64a04a257b02145310dc6ac2342f986ca0672 | 1,204 | exercism | MIT License |
app/src/main/java/com/example/floatwindowdemo/FloatWindowActivity.kt | qq326646683 | 327,492,095 | false | null | package com.example.floatwindowdemo
import android.app.Activity
import android.app.Application
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.Settings
import android.util.Log
import android.widget.Button
import android.widget.ImageView
impo... | 0 | null | 0 | 8 | 7e3c4e102b29e4bb56e305b729736e21f009feee | 2,855 | FloatWindowDemo | MIT License |
src/main/kotlin/org/n52/spare/kicker/security/WebSecurityConfig.kt | matthesrieke | 240,745,271 | false | null | package org.n52.spare.kicker.security
import org.n52.spare.kicker.repositories.PlayerRepository
import org.springframework.beans.factory.InitializingBean
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.c... | 3 | null | 1 | 1 | efe974a4865f8395d6d8fc901050c0e4aafede95 | 3,637 | kicker-league-rest | Apache License 2.0 |
libs/docker-client/src/generated/protos/com/google/protobuf/EmbedOption.kt | batect | 102,647,061 | false | null | // Code generated by Wire protocol buffer compiler, do not edit.
// Source: gogoproto.embed in github.com/gogo/protobuf/gogoproto/gogo.proto
package com.google.protobuf
import kotlin.Boolean
import kotlin.`annotation`.AnnotationRetention
import kotlin.`annotation`.AnnotationTarget
import kotlin.`annotation`.Retention
... | 14 | Kotlin | 43 | 528 | 1b033d89ef7f6763a64641c83d76de4519498c93 | 497 | batect | Apache License 2.0 |
compiler/fir/tree/src/org/jetbrains/kotlin/fir/expressions/impl/FirBlockImpl.kt | SanikaVanjari | 212,946,144 | true | {"Kotlin": 40521980, "Java": 7608449, "JavaScript": 160015, "HTML": 75060, "TypeScript": 24534, "Lex": 23159, "IDL": 11582, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | /*
* Copyright 2000-2018 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.expressions.impl
import com.intellij.psi.PsiElement
import org.jetbrains.kot... | 0 | null | 0 | 1 | f17e9ba9febdabcf7a5e0f17e4be02e0f9e87f13 | 885 | kotlin | Apache License 2.0 |
idea/testData/codeInsight/surroundWith/parentheses/notApplicable/import.kt | JakeWharton | 99,388,807 | true | null | import <selection>kotlin</selection>
// IS_APPLICABLE: false | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 61 | kotlin | Apache License 2.0 |
AndroidArchitecture/mvvm-live-kotlin/src/androidTest/java/com/codearms/maoqiqi/app/data/source/sqlite/TasksDAOTest.kt | maoqiqi | 164,198,900 | false | {"Java": 814539, "Kotlin": 284997} | package com.codearms.maoqiqi.app.data.source.sqlite
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.codearms.maoqiqi.app.data.TaskBean
import org.hamcrest.MatcherAssert
import org.hamcrest.Matchers
import org.junit.Assert.assertEquals
import org... | 1 | Java | 1 | 1 | 664638bc2e9f0144e35a17ffa9c662f77a76d061 | 3,130 | DevelopmentArms | Apache License 2.0 |
app/src/main/java/com/foreveross/atwork/modules/chat/component/reference/FileMessageReferencingView.kt | AoEiuV020 | 421,650,297 | false | {"Java": 8618305, "Kotlin": 1733509, "JavaScript": 719597, "CSS": 277438, "HTML": 111559} | package com.foreveross.atwork.modules.chat.component.reference
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.foreveross.atwork.R
import com.foreveross.atwork.infrastructure.newmessage.post.chat.FileTr... | 1 | null | 1 | 1 | 1c4ca5bdaea6d5230d851fb008cf2578a23b2ce5 | 1,233 | w6s_lite_android | MIT License |
src/main/java/de/dev/eth0/feed2social/impl/service/feeder/rss/RssFeederImpl.kt | deveth0 | 213,164,856 | false | null | /*
* Copyright (c) 2019 dev-eth0.de All rights reserved.
*/
package de.dev.eth0.feed2social.impl.service.feeder.rss
import com.rometools.rome.io.SyndFeedInput
import com.rometools.rome.io.XmlReader
import de.dev.eth0.feed2social.impl.model.FeedEntry
import de.dev.eth0.feed2social.service.Feeder
import org.slf4j.Log... | 8 | null | 1 | 3 | b797b95154c84d15e05a0933f579c57ea4eeb471 | 1,341 | feed-to-social | Apache License 2.0 |
airback-web/src/main/java/com/airback/vaadin/event/ViewEvent.kt | mng222n | 246,276,311 | false | null | package com.airback.vaadin.event
/**
* @author airback Ltd
* @since 7.0.0
*/
class ViewEvent<B>(source: Any, val data: B) : ApplicationEvent(source) {
companion object {
const val VIEW_IDENTIFIER = "viewEvent"
}
} | 9 | null | 1 | 1 | 782b1ac49b343d8c497d3dae5be3eb812d151772 | 233 | airback | MIT License |
plugins/annotation-processing/testData/processors/EnumArray.kt | gigliovale | 89,726,097 | false | null | package org.jetbrains.kotlin.annotation.processing.test.processor
enum class RGBColors { RED, GREEN, BLUE }
annotation class ColorsAnnotation(val colors: Array<RGBColors>)
@ColorsAnnotation(colors = arrayOf(RGBColors.BLUE, RGBColors.RED))
class Test | 0 | null | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 251 | kotlin | Apache License 2.0 |
app/src/main/java/com/fisma/trinity/viewutil/SimpleGestureListener.kt | linuxaddict89 | 214,272,696 | false | null | package com.fisma.trinity.viewutil
import android.util.Log
import android.view.GestureDetector
import android.view.MotionEvent
import android.view.View
import kotlin.math.abs
/**
* Created by CoXier on 17-2-21.
*/
class SimpleGestureListener : GestureDetector.SimpleOnGestureListener() {
private var mListener: Li... | 0 | Kotlin | 0 | 1 | 75941780de6bd356ba9321021abb9e44a4bdb38c | 2,471 | trinitylauncher | Apache License 2.0 |
app/src/main/java/com/example/wangduwei/demos/fragment/OpenSourceDemoFragment.kt | duweiwang | 431,793,214 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 5, "Ignore List": 10, "Batchfile": 1, "Markdown": 4, "INI": 5, "Gradle Kotlin DSL": 4, "Proguard": 6, "Kotlin": 120, "XML": 150, "Java": 348, "YAML": 1, "GLSL": 10, "C": 2, "Makefile": 2, "AIDL": 7, "JSON": 17, "Groovy": 4} | package com.example.wangduwei.demos.fragment
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.Toolbar
import androidx.core.content.res.ResourcesCompat
import com.example.l... | 0 | Java | 0 | 4 | f3b25126f920d3a96cc320a36f5947be3495a632 | 3,542 | android-playground | MIT License |
python/huggingFace/src/com/intellij/python/community/impl/huggingFace/HuggingFaceEntityKind.kt | StingNevermore | 113,538,568 | false | {"Text": 9369, "INI": 518, "YAML": 419, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 9, "Shell": 633, "Markdown": 741, "Ignore List": 143, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7809, "SVG": 4412, "Kotlin": 58074, "Java": 83551, "HTML": 3783, "Java Properties": 215, "Gradle"... | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.python.community.impl.huggingFace
enum class HuggingFaceEntityKind(val urlFragment: String, val printName: String) {
MODEL("models", "model"),
DATASET("datasets", "dataset")... | 1 | null | 1 | 1 | da982277a1db650154baf710b44f43a4b167413c | 323 | intellij-community | Apache License 2.0 |
layout-inspector/testSrc/com/android/tools/idea/layoutinspector/resource/ConfigurationLoaderTest.kt | phpc0de | 470,555,455 | false | {"Java": 39631279, "Kotlin": 28526369, "HTML": 1206758, "Starlark": 482060, "C": 66005, "Python": 59985, "NSIS": 58515, "Lex": 46798, "CMake": 24483, "JavaScript": 18437, "C++": 11882, "Shell": 7470, "RenderScript": 4411, "AIDL": 3251, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2019 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 | Java | 1 | 1 | 79e20f027ca1d047b91aa7acd92fb71fa2968a09 | 4,070 | idea-android | Apache License 2.0 |
src/main/java/me/superskidder/elementUI/layout/gird/ColumnDefinitions.kt | SuperSkidder | 672,267,802 | false | null | package me.superskidder.elementUI.layout.gird
import me.superskidder.elementUI.layout.Alignment
import me.superskidder.elementUI.layout.FlowLayout
class ColumnDefinitions : FlowLayout {
var width2: String? = null
constructor(width: String?, gutter: Float, animation: Boolean) : super(
0f,
0f,
... | 0 | null | 2 | 10 | a0fefea67f46bf0d48ffca7de7238781ed92028f | 1,688 | FPSMasterOpenSourceProject | Apache License 2.0 |
app/src/main/java/com/kyhsgeekcode/disassembler/HexFragment.kt | KYHSGeekCode | 126,714,855 | false | null | package com.kyhsgeekcode.disassembler
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import androidx.fragment.app.Fragment
import com.kyhsgeekcode.TAG
import com... | 59 | C | 68 | 342 | 301b9398b54935f082c671063feae3b09641bdd1 | 4,483 | Android-Disassembler | MIT License |
jetbrains-core/tst/software/aws/toolkits/jetbrains/services/lambda/JavaLambdaHandlerResolverTest.kt | ourobouros | 153,449,089 | true | {"Gradle": 10, "Markdown": 6, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Kotlin": 141, "Java": 11, "XML": 14, "SVG": 8, "Maven POM": 1, "Python": 2, "JSON": 5} | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.lambda
import com.intellij.psi.PsiClass
import com.intellij.psi.PsiMethod
import com.intellij.testFramework.runInEdtAndWait
import org.assertj.core.api.Ass... | 0 | Kotlin | 0 | 0 | e89216e475a89431b1a4cf1c619872f56821b965 | 6,479 | aws-toolkit-jetbrains | Apache License 2.0 |
android/src/main/kotlin/com/kjxbyz/plugins/jpush/OpenClickActivity.kt | FlutterFleet | 731,410,492 | false | {"Markdown": 4, "YAML": 4, "Text": 1, "Ignore List": 6, "Dart": 8, "Gradle": 5, "INI": 3, "Proguard": 2, "Java Properties": 1, "Kotlin": 4, "XML": 16, "Java": 6, "Ruby": 2, "OpenStep Property List": 4, "Objective-C": 4, "Swift": 2, "JSON": 2, "C": 1} | package com.kjxbyz.plugins.jpush
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.text.TextUtils
import android.util.Log
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectM... | 0 | Java | 0 | 0 | 92cd26b25b023455c30e0535583ce6cb4742ce96 | 2,782 | jpush_flutter | MIT License |
app/src/main/java/com/abbyberkers/apphome/ns/json/Trip.kt | PHPirates | 81,678,319 | false | null | package com.abbyberkers.apphome.ns.json
class Trip {
var plannedDurationInMinutes: Int = 0
var actualDurationInMinutes: Int = 0
// A trip consists of one or more legs.
private var legs: List<Leg>? = null
// Get the planned departure and arrival times, as actual times are probably not known yet.
... | 3 | Kotlin | 1 | 1 | caca970719eff191f60fb90e18aa0b21dc2291b4 | 778 | AppHome | MIT License |
app/src/main/java/com/abbyberkers/apphome/ns/json/Trip.kt | PHPirates | 81,678,319 | false | null | package com.abbyberkers.apphome.ns.json
class Trip {
var plannedDurationInMinutes: Int = 0
var actualDurationInMinutes: Int = 0
// A trip consists of one or more legs.
private var legs: List<Leg>? = null
// Get the planned departure and arrival times, as actual times are probably not known yet.
... | 3 | Kotlin | 1 | 1 | caca970719eff191f60fb90e18aa0b21dc2291b4 | 778 | AppHome | MIT License |
Common/src/main/java/at/petrak/hexcasting/common/casting/actions/rw/OpRead.kt | FallingColors | 441,721,272 | false | null | package at.petrak.hexcasting.common.casting.operators.rw
import at.petrak.hexcasting.api.casting.castables.ConstMediaAction
import at.petrak.hexcasting.api.casting.eval.CastingEnvironment
import at.petrak.hexcasting.api.casting.iota.Iota
import at.petrak.hexcasting.api.casting.iota.NullIota
import at.petrak.hexcasting... | 173 | null | 80 | 97 | 1aa53ca97faebc7e8fcca3215c58239ab35ad428 | 1,206 | HexMod | MIT License |
src/main/java/io/javalin/websocket/WsContext.kt | LevinGermann | 181,950,497 | false | {"Batchfile": 1, "Shell": 1, "Maven POM": 1, "Markdown": 7, "Text": 2, "Ignore List": 1, "EditorConfig": 1, "YAML": 1, "INI": 1, "Java": 51, "Kotlin": 104, "OASv2-yaml": 1, "Fluent": 1, "HTML": 7, "Twig": 2, "Mustache": 1, "JavaScript": 2, "CSS": 1, "Java Properties": 1} | /*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.websocket
import io.javalin.Context
import io.javalin.json.JavalinJson
import org.eclipse.jetty.websocket.api.RemoteEndpoint
import org.eclipse.jetty... | 1 | null | 1 | 1 | d4b578d0aa2214435cc1664a9e397b1254324949 | 3,615 | javalin | Apache License 2.0 |
demo/kotlin-demo/src/test/kotlin/com/alibaba/testable/demo/one2multi/BSvcMock.kt | xxyqsy | 344,027,489 | false | {"Maven POM": 10, "Markdown": 50, "Text": 1, "Ignore List": 1, "Java": 102, "HTML": 1, "Gradle": 1, "Gradle Kotlin DSL": 2, "Kotlin": 22} | package com.alibaba.demo.one2multi
import com.alibaba.testable.core.annotation.MockMethod
class BSvcMock {
@MockMethod(targetClass = String::class, targetMethod = "format")
fun b_format(format: String, vararg args: Any?): String {
return "b_mock"
}
}
| 1 | null | 1 | 1 | e46ec3d98abcd79e4314074308fed0c9db6798ad | 275 | testable-mock | MIT License |
base/src/test/kotlin/org/kin/sdk/base/models/ClassicKinMemoTest.kt | kinecosystem | 267,638,129 | false | null | package org.kin.sdk.base.models
import junit.framework.Assert.assertNotNull
import junit.framework.Assert.assertTrue
import org.junit.Assert.assertEquals
import org.junit.Test
class ClassicKinMemoTest {
val validAppIds = listOf("", "123", "1234", "1f3", "1f3e")
val validSuffixes = listOf("", "12345678901234... | 6 | null | 24 | 38 | 2a873ee87e1524dca06f1ad7b17d09eb39e4b3a6 | 2,150 | kin-android | MIT License |
app/src/main/java/org/kinecosystem/kinit/util/DeviceUtils.kt | kinecosystem | 129,919,791 | false | null | package org.kinecosystem.kinit.util
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.support.v4.content.ContextCompat
import android.telephony.TelephonyManager
import org.kinecosystem.kinit.R
import org.kinecosystem.kinit.analytics.A... | 2 | Kotlin | 3 | 18 | ababab65b4625fc83df2e6658c9962e68d55022a | 3,423 | kinit-android | MIT License |
components/src/main/kotlin/com/alexrdclement/uiplayground/components/ContentColor.kt | alexrdclement | 661,077,963 | false | {"Kotlin": 204338} | package com.alexrdclement.uiplayground.components
import androidx.compose.runtime.Composable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.takeOrElse
import com.alexrdclement.uiplayground.theme.ColorScheme
import com.alexrdclement.uipla... | 0 | Kotlin | 0 | 0 | 4d19561487fbef5293bdaaefac9edc8ba82145ee | 848 | UiPlayground | Apache License 2.0 |
app/src/main/java/com/example/atomicdesign/ui/components/templates/listoflements/Element.kt | 4mr0m3r0 | 259,181,662 | false | null | package com.example.atomicdesign.ui.components.templates.listoflements
data class Element(
val text: String,
val onElementSelect: () -> Unit
) | 0 | Kotlin | 1 | 2 | b096114948b0a7d986e788662dcef0a46e5a5823 | 151 | composing-atomic-design | MIT License |
posthog/src/main/java/com/posthog/internal/replay/RRDocumentNode.kt | PostHog | 259,885,092 | false | null | package com.posthog.internal.replay
import com.posthog.PostHogInternal
@PostHogInternal
public class RRDocumentNode(tag: String, payload: Any, timestamp: Long) : RREvent(
type = RREventType.Custom,
data =
mapOf(
"tag" to tag,
"payload" to payload,
),
timestamp = tim... | 6 | null | 23 | 41 | 85f6ef1300919ac1ee5d9bf615c87e0fe79fb247 | 330 | posthog-android | MIT License |
src/main/kotlin/dev/emortal/immortal/util/SuperflatGenerator.kt | EmortalMC | 387,273,202 | false | null | package dev.emortal.immortal.util
import net.minestom.server.instance.ChunkGenerator
import net.minestom.server.instance.ChunkPopulator
import net.minestom.server.instance.batch.ChunkBatch
import net.minestom.server.instance.block.Block
import net.minestom.server.world.biomes.Biome
import java.util.*
object Superflat... | 2 | Kotlin | 0 | 5 | d44b2ebf19bb003a562e394e709e2583d1417d73 | 1,085 | Immortal | MIT License |
src/main/kotlin/net/dontdrinkandroot/fixtures/referencerepository/MapBackedReferenceRepository.kt | dontdrinkandroot | 87,098,098 | false | null | package net.dontdrinkandroot.fixtures.referencerepository
import java.util.*
/**
* [ReferenceRepository] that uses a [HashMap] as storage.
*/
class MapBackedReferenceRepository : ReferenceRepository {
private val objects: MutableMap<String, Any> = HashMap()
override fun <T : Any> store(name: String, obj: ... | 1 | Kotlin | 0 | 2 | c9cb40f2e11654d719066d399e99356693a7d7e8 | 494 | fixtures.java | Apache License 2.0 |
src/main/kotlin/icu/windea/pls/model/stubs/ParadoxModifierStub.kt | DragonKnightOfBreeze | 328,104,626 | false | {"Kotlin": 3051166, "Java": 166938, "Lex": 43449, "HTML": 37393, "Shell": 2733} | package icu.windea.pls.model.stubs
import com.intellij.openapi.project.*
import com.intellij.openapi.util.*
import com.intellij.psi.*
import icu.windea.pls.core.*
import icu.windea.pls.core.psi.*
import icu.windea.pls.lang.modifier.*
import icu.windea.pls.model.*
data class ParadoxModifierStub(
override val name:... | 5 | Kotlin | 4 | 24 | 02504e027df0bffa2301cb326b0c48f00dd6198e | 986 | Paradox-Language-Support | MIT License |
app/src/main/java/com/li/libook/model/entity/BookChapter.kt | shuguoli68 | 173,912,841 | false | null | package com.li.libook.model.entity
data class BookChapter(
val mixToc: MixToc,
val ok: Boolean
)
data class MixToc(
val _id: String,
val book: String,
val chaptersCount1: Int,
val chaptersUpdated: String,
val chapters: List<Chapter>,
val updated: String
)
data class Chapter(
val ... | 0 | Kotlin | 0 | 2 | 2bcf034fd3d6cfc6d2e1cfe51a02a4851bde05af | 385 | LiBook | Apache License 2.0 |
shared/src/commonMain/kotlin/App.kt | cralcubo | 689,310,871 | false | {"Kotlin": 13867, "Swift": 592, "Shell": 228} | import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import com.croman.movieapp.di.appModule
import com.croman.movieapp.view.MovieViewModel
import com.croman.movieapp.view.MoviesListView
import ... | 0 | Kotlin | 0 | 0 | e3047a9c3fc188a0e0f47d02f9844f8f3550262d | 732 | MovieAppCMP | Apache License 2.0 |
app/src/main/java/com/example/mycreamwallpaper/utils/DeviceUtils.kt | tuweiwen | 602,656,408 | false | null | package com.example.mycreamwallpaper.utils
import android.content.Context
import android.util.DisplayMetrics
import android.view.WindowManager
class DeviceUtils {
companion object {
const val SCREEN_WIDTH_DP = 0
const val SCREEN_HEIGHT_DP = 1
const val SCREEN_WIDTH_PX = 2
const val... | 2 | Kotlin | 0 | 0 | 9465473914fc6e6e084d5a29b9e431aaa2f8b051 | 1,536 | MyCreamWallpaper | MIT License |
Fledge/FledgeKotlin/app/src/main/java/com/example/adservices/samples/fledge/sampleapp/CustomAudienceToggle.kt | android | 480,989,366 | false | {"Kotlin": 300113, "Java": 277330, "JavaScript": 10043, "AIDL": 719} | package com.example.adservices.samples.fledge.sampleapp
import android.adservices.customaudience.CustomAudience
import android.annotation.SuppressLint
import android.content.Context
@SuppressLint("NewApi")
class CustomAudienceToggle internal constructor(
private val mLabelName: String,
private val mCustomAudi... | 9 | Kotlin | 54 | 135 | c6969f566614f3c7d82e8bad907da5c30a438dcf | 1,075 | privacy-sandbox-samples | Apache License 2.0 |
data/src/main/java/com/omolleapaza/peruapps/data/di/RepositoryModule.kt | OscarMolleapaza | 491,669,961 | false | null | package com.omolleapaza.peruapps.data.di
import com.omolleapaza.peruapps.data.repository.ListPostRepositoryImpl
import com.omolleapaza.peruapps.domain.repository.ListPostRepository
import org.koin.dsl.module
val repositoryModule = module {
single<ListPostRepository> { ListPostRepositoryImpl(get(), get(), get(),... | 0 | Kotlin | 0 | 0 | b0f261f9043b7b71fdcc64052cd12927cc84deb5 | 332 | PeruAppsTest | MIT License |
qandroidcomposechart/src/main/java/com/quipper/qandroidcomposechart/models/ChartTheme.kt | quipper | 480,631,487 | false | null | package com.quipper.qandroidcomposechart.models
import androidx.annotation.DrawableRes
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.sp
import com.quipper.qandroidcomposechart.R
class ChartTheme(
val baseColor: Color,
val pointColor: Color,... | 0 | Kotlin | 1 | 11 | aff36b376f6ed80f04cba7e28ee6c2deff57732e | 3,733 | QAndroidComposeChart | MIT License |
qandroidcomposechart/src/main/java/com/quipper/qandroidcomposechart/models/ChartTheme.kt | quipper | 480,631,487 | false | null | package com.quipper.qandroidcomposechart.models
import androidx.annotation.DrawableRes
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.sp
import com.quipper.qandroidcomposechart.R
class ChartTheme(
val baseColor: Color,
val pointColor: Color,... | 0 | Kotlin | 1 | 11 | aff36b376f6ed80f04cba7e28ee6c2deff57732e | 3,733 | QAndroidComposeChart | MIT License |
app/src/test/java/io/access/kotlintraining/SampleTest.kt | pankona | 130,057,879 | false | null | package io.access.kotlintraining
import org.junit.Test
import kotlin.test.assertEquals
class SampleTest {
@Test
fun testWelcome() {
welcome()
// Example of test
val expected = 1
val actual = 1
assertEquals(expected, actual, "[want] $expected [got] $actual")
}
... | 0 | null | 38 | 1 | 293ad1155794a9935424389b88bfdaacd0d7375d | 423 | KotlinTraining | MIT License |
app/src/main/java/top/easelink/lcg/ui/main/model/TabModel.kt | fabricezhang | 195,011,098 | false | null | package top.easelink.lcg.ui.main.model
class TabModel(val title: String, val url: String) | 5 | null | 2 | 742 | fc9a9044d341d30c1bf4e4eb8434113614d1c47d | 90 | lcg | MIT License |
app/src/main/java/com/madtoast/flyingboat/api/floatplane/model/enums/PostType.kt | MadToast | 511,992,274 | false | null | package com.madtoast.flyingboat.api.floatplane.model.enums
enum class PostType {
blogPost,
video,
picture,
} | 0 | Kotlin | 0 | 0 | 1b8007f307c5ecb93acd082272c60881023ecb0d | 121 | refloated-android | MIT License |
features/auth/src/main/java/com/shekharhandigol/auth/AuthNavHost.kt | iamShekharGH | 861,279,529 | false | {"Kotlin": 113743} | package com.shekharhandigol.auth
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import androidx.navigation.compose.navigation
import com.shekharhandigol.auth.login.LoginScreen
import... | 3 | Kotlin | 0 | 1 | 399fd9c6c4d5849ad0b8d1bd9f6bc25663da3d57 | 1,046 | Employee_crm | MIT License |
CalculatorApp/app/src/main/java/com/example/calculatorapp/CalculatorActivity.kt | TobiasStrom | 405,859,404 | false | null | package com.example.calculatorapp
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.evgenii.jsevaluator.JsEvaluator
import com.evgenii.jsevaluator.interfaces.JsCallback
const ... | 0 | Kotlin | 0 | 0 | 51c9ded06517965d01129fdf0111a64577d581cb | 6,631 | CalculatorApp | Apache License 2.0 |
app/src/main/java/com/example/jing/utils/XmlPaser.kt | LanHuang025 | 553,537,067 | false | {"Kotlin": 156597} | package com.example.jing.utils
import com.example.jing.data.WifiData
import org.w3c.dom.NodeList
import java.io.File
import javax.xml.parsers.DocumentBuilderFactory
class XmlPaser {
fun maplist(pathname:String): List<WifiData> {
var list: NodeList? =null
val dbf = DocumentBuilderFactory.newInstance... | 0 | Kotlin | 0 | 1 | cbbe7834a349798e66113283d1dc3189783ba927 | 2,579 | reactor | MIT License |
modules/api-remote/src/main/kotlin/com/astrainteractive/synk/api/remote/RemoteApi.kt | Astra-Interactive | 618,534,171 | false | {"Kotlin": 58808} | package com.astrainteractive.synk.api.remote
import ru.astrainteractive.synk.core.model.PlayerModel
import java.util.*
interface RemoteApi {
fun insertOrUpdate(playerModel: PlayerModel): PlayerModel
fun insert(playerModel: PlayerModel): PlayerModel
fun select(uuid: UUID): PlayerModel?
fun delete(uuid:... | 0 | Kotlin | 0 | 0 | 55f1d7b6bac7ad348353bc59cb9698a2ecc5ddf1 | 335 | SynK | MIT License |
kotlinpoet-metadata-specs-tests/src/test/kotlin/com/squareup/kotlinpoet/metadata/specs/test/FileFacadeTest.kt | JustinMullin | 239,204,491 | true | {"Kotlin": 908396, "Java": 7138, "Shell": 2318} | package com.squareup.kotlinpoet.metadata.specs.test
import com.google.common.truth.Truth.assertThat
import com.squareup.kotlinpoet.FileSpec
import com.squareup.kotlinpoet.metadata.KotlinPoetMetadataPreview
import com.squareup.kotlinpoet.metadata.specs.test.MultiClassInspectorTest.ClassInspectorType.ELEMENTS
import com... | 0 | null | 0 | 0 | 01497dd2369b4a1e71cad0fd47c9ce4dec0f0b82 | 10,109 | kotlinpoet | Apache License 2.0 |
java/java-impl/src/com/intellij/openapi/projectRoots/impl/JdkDownloaderService.kt | darkrecruit | 221,968,966 | false | null | // Copyright 2000-2019 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.openapi.projectRoots.impl
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.projectRoots.Sdk
import com.intellij.openapi... | 1 | null | 1 | 1 | 03922a7340cee92352f0abae84019d57d028c766 | 1,135 | intellij-community | Apache License 2.0 |
XClipper.Android/modules/core/src/main/java/com/kpstv/xclipper/ui/helpers/AppThemeHelper.kt | KaustubhPatange | 253,389,289 | false | null | package com.kpstv.xclipper.ui.helpers
import android.app.Activity
import android.content.ComponentName
import android.content.Context
import android.content.pm.PackageManager
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.os.Build
i... | 7 | null | 24 | 165 | 61d20867344f5bb2d3353ecd6a89e4e76021349b | 10,127 | XClipper | Apache License 2.0 |
definitions/src/main/kotlin-gen/xyz/urbanmatrix/mavlink/definitions/common/ScaledPressure3.kt | urbanmatrix | 484,943,163 | false | null | package xyz.urbanmatrix.mavlink.definitions.common
import java.nio.ByteBuffer
import java.nio.ByteOrder
import kotlin.ByteArray
import kotlin.Float
import kotlin.Int
import kotlin.Long
import kotlin.Unit
import xyz.urbanmatrix.mavlink.api.GeneratedMavField
import xyz.urbanmatrix.mavlink.api.GeneratedMavMessage
import ... | 1 | Kotlin | 4 | 9 | 8f480256eeaac5755a2ce5582c338a4b30c7e178 | 4,113 | mavlink-kotlin | Apache License 2.0 |
src/main/kotlin/client/gui/TerminalScreen.kt | squareland | 291,344,412 | true | {"Kotlin": 85895, "Assembly": 52301, "Shell": 2501, "GLSL": 1790} | package net.dblsaiko.retrocomputers.client.gui
import com.mojang.blaze3d.platform.GlStateManager
import com.mojang.blaze3d.systems.RenderSystem
import io.netty.buffer.Unpooled
import net.dblsaiko.qcommon.croco.Mat4
import net.dblsaiko.retrocomputers.client.init.Shaders
import net.dblsaiko.retrocomputers.common.block.T... | 0 | null | 0 | 0 | ce368cdd3b426825e8f88d18c413f57a7b62cc72 | 7,704 | retrocomputers | MIT License |
expenses/src/main/java/xyz/godi/expenses/db/DailyExpenseDao.kt | zularizal | 178,556,279 | false | null | package xyz.godi.expenses.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import xyz.godi.expenses.data.Expense
@Dao
interface DailyExpenseDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun in... | 0 | Kotlin | 0 | 2 | a2a1d45f1fd597a8f78d098f178d2f4ef071d18d | 444 | Expense-manager | Apache License 2.0 |
android/src/main/kotlin/com/shuge888/flutter_cos/FlutterCosPlugin.kt | lijianqiang12 | 438,457,801 | false | {"Kotlin": 7428, "Objective-C": 5501, "Dart": 4373, "Ruby": 2301, "Swift": 920} | package com.shuge888.flutter_cos
import android.app.Activity
import android.content.Context
import android.os.Build
import android.util.Log
import com.tencent.cos.xml.CosXmlService
import com.tencent.cos.xml.transfer.TransferConfig
import androidx.annotation.NonNull
import com.tencent.cos.xml.CosXmlServiceConfig
impor... | 1 | Kotlin | 1 | 1 | fc133671af984ba50b27e9acf514d46ddf7c3a79 | 6,113 | flutter_cos | MIT License |
src/main/kotlin/com/demo/ood/tennis/Game.kt | AlexoAnimaIgnis | 857,349,133 | false | {"Kotlin": 15741, "Java": 2206} | package com.demo.ood.tennis
/**
* to manage the current state and track the game
*/
class Game(private val player1: Player, private val player2: Player) {
private var state: GameState = NormalScoringState()
// Set new state
fun setState(newState: GameState) {
state = newState
}
// Add p... | 0 | Kotlin | 0 | 0 | 29812a866d8e977bdcc2155db5534c210da10dd7 | 897 | ood-iplementations | MIT License |
paymentsheet/src/main/java/com/stripe/android/paymentsheet/model/PaymentOptionFactory.kt | Huffdiddy420 | 522,386,724 | false | {"Kotlin": 7186204, "Java": 67407, "Shell": 18171, "Python": 12970, "Ruby": 5171} | package com.stripe.android.paymentsheet.model
import android.content.res.Resources
import com.stripe.android.paymentsheet.R
import com.stripe.android.paymentsheet.ui.createCardLabel
import com.stripe.android.paymentsheet.ui.getCardBrandIcon
import com.stripe.android.paymentsheet.ui.getLabel
import com.stripe.android.p... | 5 | Kotlin | 0 | 1 | 4acfa9fa6b161f10d2ad8f6921d4742836dd69be | 2,465 | cautious-octo-chainsaw | MIT License |
compose/B09_WQGA/app/src/main/java/com/example/b09_wqga/component/BottomNavigationBar.kt | issumer | 801,487,317 | false | {"Kotlin": 232409} | /*
메인 화면 Scaffold의 Botton Navigation Bar에 해당하는 컴포넌트
*/
package com.example.b09_wqga.component
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Icon
import androidx.compose.material3.Na... | 0 | Kotlin | 2 | 0 | 8d3e875710ac05d18e87c3e5a0dbbe36e7cc5742 | 2,146 | B09_WQGA | MIT License |
app/src/main/kotlin/com/melardev/android/crud/datasource/remote/dtos/responses/SuccessResponse.kt | melardev | 197,663,622 | false | {"Kotlin": 41146} | package com.melardev.android.crud.datasource.remote.dtos.responses
class SuccessResponse : BaseDataResponse(true)
| 0 | Kotlin | 4 | 7 | 957cbe30ffa320f82f2343d5c6137fd884911976 | 115 | Android_Kotlin_MVVM_Dagger_RxRetrofit_DataBinding_Crud | MIT License |
core-starter/src/main/kotlin/com/labijie/application/service/impl/FileIndexService.kt | hongque-pro | 309,874,586 | false | {"Kotlin": 1091422, "Java": 72766} | package com.labijie.application.service.impl
import com.labijie.application.ApplicationRuntimeException
import com.labijie.application.BucketPolicy
import com.labijie.application.MimeUtils
import com.labijie.application.component.GenerationURLPurpose
import com.labijie.application.component.IObjectStorage
import com.l... | 0 | Kotlin | 0 | 7 | 7ace1a3912009a1214ac329f787704a1899e63b8 | 10,899 | application-framework | Apache License 2.0 |
kotlin-ir-plugin/src/main/kotlin/util/KotlinFileInfo.kt | efstratia-ev | 431,020,792 | false | {"Kotlin": 34610} | package util
import org.clyze.persistent.metadata.FileInfo
import org.clyze.persistent.metadata.jvm.JvmMetadata
import org.clyze.persistent.model.Position
import org.jetbrains.kotlin.ir.IrFileEntry
class KotlinFileInfo(packageName :String, inputName :String, private val fileEntry : IrFileEntry, source :String):
... | 0 | Kotlin | 0 | 4 | df77a089f062dc08e43c9a9ee62c1cb7bff10a56 | 2,252 | KotlinCompilerPlugin | Apache License 2.0 |
app/src/main/java/com/example/myevents/ui/composables/AppBar.kt | LorenzoRigoni | 779,303,880 | false | {"Kotlin": 180937} | package com.example.myevents.ui.composables
import android.content.Context
import android.widget.Toast
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.MoreVert
import androidx.comp... | 0 | Kotlin | 0 | 0 | bea8ad1815077e3be5d6ad3feec90348abfe6c69 | 10,531 | Mobile24-MyEvents | MIT License |
app/src/main/java/dev/farouk/takara/di/RepositoryModule.kt | sabiou | 324,019,127 | false | null | package dev.farouk.takara.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ApplicationComponent
import dagger.hilt.components.SingletonComponent
import dev.farouk.takara.data.db.CandidateRepository
import javax.inject.Qualifier
/**
* Created by Farouk ... | 5 | Kotlin | 1 | 3 | 33fcdf8968ba3875fd1ac10f3edff543c21096e1 | 643 | Takara | MIT License |
retrofit2/src/main/java/com/rui/retrofit2/intercepter/ResourceFile.kt | nanfanglr | 519,809,906 | false | {"Kotlin": 103415} | package com.rui.retrofit2.intercepter
import java.nio.charset.Charset
class ResourceFile(private val filePath: String) {
private val loader: ClassLoader
get() = Thread.currentThread().contextClassLoader
?: error("class loader not available")
private fun exist(): Boolean = loader.getResour... | 0 | Kotlin | 0 | 0 | 85eafb6c1a7b02dc68bf31df0957128424933d14 | 642 | android-kotlin-mvvm-v2 | Apache License 2.0 |
modules/libgdx/kotlin/com/huskerdev/openglfx/libgdx/events/LibGDXReshapeEvent.kt | husker-dev | 393,363,130 | false | {"C++": 14907461, "C": 196825, "Kotlin": 146113, "Objective-C": 5907} | package com.huskerdev.openglfx.libgdx.events
import com.badlogic.gdx.Application
import com.huskerdev.openglfx.canvas.events.GLReshapeEvent
class LibGDXReshapeEvent(
override val application: Application,
width: Int,
height: Int
): GLReshapeEvent(ANY, width, height), LibGDXEvent | 17 | C++ | 11 | 84 | ac22d5435915f16fa731b9e3564533c2507f2dc0 | 293 | openglfx | Apache License 2.0 |
src/main/kotlin/dev/neire/mc/youdonthavetheright/recipebook/RecipeBrewingRecipe.kt | neirenoir | 808,780,850 | false | {"Kotlin": 56063, "Java": 33248} | package dev.neire.mc.youdonthavetheright.recipebook
import com.google.gson.JsonArray
import com.google.gson.JsonObject
import com.mojang.brigadier.StringReader
import dev.neire.mc.youdonthavetheright.datagen.BrewingRecipeBuilder.Companion.DATA_TAG
import dev.neire.mc.youdonthavetheright.logic.crafter.BrewingLogic
impo... | 0 | Kotlin | 0 | 0 | fc3744489e0a7a9aee2ade7ca7d2dcc87980c981 | 5,929 | you-dont-have-the-right | MIT License |
app/src/main/java/com/funnywolf/hollowkit/app/fragments/ExpandableTextFragment.kt | funnywolfdadada | 238,102,433 | false | null | package com.funnywolf.hollowkit.app.fragments
import android.graphics.Color
import android.os.Bundle
import android.text.SpannableStringBuilder
import android.text.style.ForegroundColorSpan
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
i... | 4 | Kotlin | 34 | 224 | ecb05fda6dfa2caa6d7a40f1e0dcd940638ec8ea | 2,214 | HollowKit | Apache License 2.0 |
commons/src/main/java/io/github/gustavobarbosab/commons/widget/carousel/CarouselAutoScroll.kt | gustavobarbosab | 368,668,840 | false | {"Kotlin": 136425} | package io.github.gustavobarbosab.commons.widget.carousel
import android.os.Handler
import android.os.Looper
import androidx.lifecycle.*
import androidx.viewpager2.widget.ViewPager2
import io.github.gustavobarbosab.commons.widget.autoprogress.AutoProgressView
class CarouselAutoScroll(
private var owner: Lifecycle... | 0 | Kotlin | 1 | 1 | d0ea7b1ba9dd2f5226df0d4d3ff95686dc8e9fa7 | 2,537 | movies | Apache License 2.0 |
spring-boot-test-dbunit/src/main/kotlin/io/camassia/spring/dbunit/api/dataset/Row.kt | camassia-io | 397,872,845 | false | null | package io.camassia.spring.dbunit.api.dataset
/**
* An instance of a Row for use with Table
*
* @param cells A map of column names to values
* @see Table
*/
class Row(cells: Collection<Cell>) {
val cells: Map<String, Any?> = cells.associateBy({ it.key }, { it.value })
constructor(vararg cells: Pair<Stri... | 0 | Kotlin | 0 | 0 | 732588e72773304618ad2ce7e5ff8c00a947896d | 543 | spring-boot-test-dbunit | Apache License 2.0 |
src/test/kotlin/io/docops/asciidoc/buttons/RectTests.kt | docops-info | 458,920,983 | false | null | package io.docops.asciidoc.buttons
import org.junit.jupiter.api.Test
class RectTests {
@Test
fun testRectPathGenerator() {
val d1 = generateRectPathData(
150f,
35f,
5f,
topRightRound = 5f,
bottomRightRound = 0f,
bottomLeftRound ... | 3 | Kotlin | 0 | 0 | 0cd2a6d87946fbdd67abdff7ac680471712b41bc | 864 | docops-button-render | Apache License 2.0 |
app/src/main/java/com/niu/jetpack_android_online/pages/home/HomeViewModel.kt | frannnnnk | 869,532,182 | false | {"Kotlin": 116154} | package com.niu.jetpack_android_online.pages.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingSource
import androidx.paging.PagingState
import androidx.paging.cachedIn
import com.niu.jetpack_a... | 0 | Kotlin | 0 | 0 | ef6f71986283c7932e66b081ee11bdf4429ccc10 | 2,114 | jetpack_android_online | Apache License 2.0 |
app/src/main/java/com/hjy/template/widget/Header.kt | houjinyun | 536,414,374 | false | {"Kotlin": 188726} | package com.hjy.template.widget
import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.text.TextUtils
import android.util.AttributeSet
import android.util.Type... | 0 | Kotlin | 1 | 5 | ecc00d7da8c7ea4f0e053da1f0abdab3bee255a7 | 7,906 | KotlinMVVM | Apache License 2.0 |
domain/src/main/java/com/lyj/domain/model/network/talk/TalkModel.kt | banziha104 | 389,872,729 | false | null | package com.lyj.domain.model.network.talk
import com.lyj.domain.model.network.auth.JwtModel
data class TalkModel(
val name: String,
val text: String,
val userId: Long,
val id: Long? = null
) {
companion object {
fun withAuth(jwtAuthData: JwtModel, text: String): TalkModel? =
if... | 1 | null | 1 | 3 | 9d8d6015b5333eb3d2bc07ffbebe2638af2f42ac | 521 | pinstagram_android | MIT License |
app/src/main/java/com/edorex/mobile/composeForm/MainActivity.kt | benjamin-luescher | 598,467,839 | false | null | package com.edorex.mobile.composeForm
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundat... | 1 | null | 7 | 9 | bb39c5c421267d878c51898060b32eb0069497a9 | 6,149 | compose-form | MIT License |
sample/src/commonMain/kotlin/ui/NavigationViewConfig.kt | InsanusMokrassar | 535,572,808 | false | {"Kotlin": 161097, "Shell": 387} | package dev.inmo.navigation.sample.ui
import dev.inmo.navigation.core.configs.NavigationNodeDefaultConfig
import kotlinx.serialization.Serializable
@Serializable
data class NavigationViewConfig(
override val id: String,
val text: String,
override val storableInNavigationHierarchy: Boolean = true
) : Navig... | 1 | Kotlin | 0 | 2 | 14e147147e831c736ec0c5b8148fa259b84dc2b1 | 411 | navigation | MIT License |
Postgrest/src/commonTest/kotlin/io.github.jan.supabase.postgrest/request/InsertRequestTest.kt | supabase-community | 495,084,592 | false | {"Kotlin": 883057} | package io.github.jan.supabase.postgrest.request
import io.github.jan.supabase.postgrest.query.Count
import io.github.jan.supabase.postgrest.query.Returning
import kotlinx.serialization.json.JsonArray
import kotlin.test.Test
import kotlin.test.assertEquals
class InsertRequestTest {
private lateinit var sut: Post... | 12 | Kotlin | 37 | 369 | 020ec03eef1efc94a80d97337e515df9338f3df0 | 2,588 | supabase-kt | MIT License |
lavaplayer/src/main/java/com/sedmelluq/discord/lavaplayer/container/adts/AdtsContainerProbe.kt | mixtape-bot | 397,835,411 | true | {"Kotlin": 781109, "Java": 315803} | package com.sedmelluq.discord.lavaplayer.container.adts
import com.sedmelluq.discord.lavaplayer.container.MediaContainerDetection
import com.sedmelluq.discord.lavaplayer.container.MediaContainerDetectionResult
import com.sedmelluq.discord.lavaplayer.container.MediaContainerHints
import com.sedmelluq.discord.lavaplayer... | 0 | Kotlin | 0 | 6 | 06b02d8e711930c52d8ca67ad6347a17ca352ba2 | 2,093 | lavaplayer | Apache License 2.0 |
src/main/kotlin/com/equisoft/awsmocks/ec2/infrastructure/persistence/VpcRepository.kt | kronostechnologies | 192,785,938 | false | null | package com.equisoft.awsmocks.ec2.infrastructure.persistence
import com.amazonaws.services.ec2.model.Filter
import com.amazonaws.services.ec2.model.Vpc
class VpcRepository : BaseEc2Repository<String, Vpc>() {
@Synchronized
override fun find(filters: List<Filter>): List<Vpc> = listOf()
}
| 0 | Kotlin | 0 | 0 | 8f522e0d599aa3b2f96442f208d1cddebee9fa79 | 298 | aws-mocks | Apache License 2.0 |
app/src/main/java/com/starts/movieguide/ui/BottomNavigationContainer.kt | ZhaoSiBo | 278,286,809 | false | null | package com.starts.movieguide.ui
import android.content.Context
import android.view.View
import androidx.core.view.size
import com.google.android.material.bottomnavigation.BottomNavigationView
class BottomNavigationContainer(context: Context) : CustomLayout(context) {
val navigation = BottomNavigationView(contex... | 0 | Kotlin | 0 | 1 | e7712ad7022b9f19a2f27304fd800d0e75a57310 | 1,712 | MovieGuide | MIT License |
btc-deposit/src/main/kotlin/notary/btc/config/BtcNotaryConfig.kt | yurivin | 172,449,765 | false | {"Gradle": 24, "Kotlin": 246, "Shell": 8, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Groovy": 2, "Markdown": 7, "Java": 20, "INI": 21, "YAML": 25, "HTML": 1, "CSS": 1, "Dockerfile": 13, "Python": 3, "Public Key": 17, "TOML": 1, "JSON": 3, "Gerber Image": 8, "Java Properties": 43} | package notary.btc.config
import config.BitcoinConfig
import config.IrohaConfig
import config.IrohaCredentialConfig
/** Configuration of Bitcoin notary */
interface BtcNotaryConfig {
/** Web port for health checks */
val healthCheckPort: Int
val iroha: IrohaConfig
val bitcoin: BitcoinConfig
val... | 1 | null | 1 | 1 | 78d7c592f572fa8548fa21bc518f5fe1d5db698b | 584 | notary | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.