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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/br/com/zupacademy/keymanager/chave/KeymanagerRemoveGrpcService.kt | GustavoMede | 397,633,312 | true | {"Kotlin": 37366} | package br.com.zupacademy.keymanager.chave
import br.com.zupacademy.keymanager.KeymanagerRemoveServiceGrpc
import br.com.zupacademy.keymanager.RemoveRequest
import br.com.zupacademy.keymanager.RemoveResponse
import br.com.zupacademy.keymanager.clients.BCBClient
import br.com.zupacademy.keymanager.extensions.removeChav... | 0 | Kotlin | 0 | 0 | 3d6e4b93164798e311a8a7e6f3bf7d223b869cb9 | 4,133 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
renderer/src/main/kotlin/io/sparkled/renderer/effect/line/FireEffect.kt | sparkled | 53,776,686 | false | {"Kotlin": 321814, "TypeScript": 141619, "JavaScript": 133004, "CSS": 5012, "HTML": 353} | package io.sparkled.renderer.effect.line
import io.sparkled.model.animation.param.Param
import io.sparkled.renderer.api.RenderContext
import io.sparkled.renderer.api.SparkledEffect
import io.sparkled.renderer.parameter.BooleanParameter
import io.sparkled.renderer.parameter.IntParameter
import io.sparkled.renderer.util... | 20 | Kotlin | 21 | 71 | 681240d1a17bfffbd22da75d00ae1188f26c6a76 | 3,244 | sparkled | MIT License |
domain/src/main/java/com/tuppersoft/domain/models/character/Url.kt | JaviSFH | 313,085,710 | false | {"Kotlin": 54980} | package com.tuppersoft.domain.models.character
import androidx.annotation.Keep
import com.squareup.moshi.Json
import java.io.Serializable
@Keep
data class Url(
@Json(name = "type")
val type: String?,
@Json(name = "url")
val url: String?
) : Serializable
| 0 | null | 0 | 0 | 39217055f8e4a8e3695e478217dfbb7f7a4b814a | 272 | marvel-app | Apache License 2.0 |
app/src/main/kotlin/com/andreacioccarelli/musicdownloader/App.kt | cioccarellia | 134,810,152 | false | {"Kotlin": 91875} | package com.andreacioccarelli.musicdownloader
import android.app.Application
import androidx.room.Room
import com.andreacioccarelli.cryptoprefs.CryptoPrefs
import com.andreacioccarelli.musicdownloader.constants.FILE
import com.andreacioccarelli.musicdownloader.constants.KEY
import com.andreacioccarelli.musicdownloader... | 11 | Kotlin | 0 | 2 | b2a1d9449e3b5bbf3a923dc91976909c8169538a | 2,065 | MusicDownloader | Apache License 2.0 |
annotations/src/main/kotlin/io/mcarle/konvert/api/KonvertFrom.kt | mcarleio | 615,488,544 | false | null | package io.mcarle.konvert.api
import kotlin.reflect.KClass
/**
* Annotate a class (it must have a companion object) or directly its companion object to generate
* an extension function to generate an instance of the class from the provided source.
*
* Example:
* ```kotlin
* class Source(val source: Int)
* clas... | 7 | null | 6 | 69 | 5861071a3f50006bbcde312a6fe4e35204a60a53 | 1,597 | konvert | Apache License 2.0 |
src/main/kotlin/com/tingfeng/ershou/collector/configuration/MvcConfigurer.kt | huitoukest | 117,480,678 | false | {"JavaScript": 26355, "Kotlin": 10003, "HTML": 2513} | package com.tingfeng.configuration
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConf... | 0 | JavaScript | 0 | 0 | fc5a4c5e2dcf961f82b3b5dfd6a19023ae69a9b3 | 850 | springboot-demo-kotlin | Apache License 2.0 |
app/src/main/java/com/nistruct/sportstat/usecase/PostPlayerUseCase.kt | StefanT997Dev | 366,730,025 | false | null | package com.nistruct.sportstat.usecase
import com.nistruct.sportstat.data.models.ui_models.Player
import com.nistruct.sportstat.repository.PlayerRepository
import com.nistruct.sportstat.usecase.result.DataResult
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines... | 0 | Kotlin | 0 | 0 | 69a2fbd6c994bff99db10796248228e1a8da8986 | 1,370 | SportStat | Apache License 2.0 |
App/app/src/main/java/com/example/oria/viewModel/trip/TripViewModel.kt | Routhred | 719,713,066 | false | {"Kotlin": 169767, "Python": 24491, "HTML": 3080} | package com.example.oria.viewModel.trip
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.oria.backend.data.storage.point.Point
import com.example.oria.backend.data.storage.point.PointRepository
import com.example.oria.backend.dat... | 0 | Kotlin | 1 | 1 | 6318ff2ded0e651820fac7291862304c25bf6416 | 1,791 | Oria | MIT License |
src/main/java/org/dainst/chronontology/App.kt | gdannay | 382,303,935 | true | {"Markdown": 5, "Java": 72, "Java Properties": 2, "Kotlin": 1} | package org.dainst.chronontology
import org.apache.log4j.Logger
import org.dainst.chronontology.config.*
import java.util.Properties
/**
* Main class. Handles wiring of application components.
* @author <NAME>
*/
class App(controller: Controller) {
var controller: Controller? = null
init {
this... | 0 | null | 0 | 0 | 1eb0b1129d8b2228744c3426de9d82bbb1c093b7 | 1,407 | chronontology-backend | Apache License 2.0 |
core/src/testFixtures/kotlin/org/ufoss/dino/internal/TestUtil.kt | ufoss-org | 264,428,446 | false | {"Java": 573879, "Kotlin": 288125} | /*
* Copyright 2023 UFOSS, Org. Use of this source code is governed by the Apache 2.0 license.
*
* Forked from Okio (https://github.com/square/okio), original copyright is below
*
* Copyright (C) 2013 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... | 1 | null | 1 | 1 | f0bc77842605320a4dda2a78dacab54cf6f9e8f2 | 10,778 | dino | Apache License 2.0 |
fragment/testing/src/androidTest/java/androidx/fragment/app/testing/FragmentScenarioTest.kt | zdenda | 161,359,597 | false | null | /*
* Copyright (C) 2018 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... | 1 | null | 1 | 3 | ea83372a29278e9cb0acca4c330834ea09f905a3 | 13,985 | aosp_platform_frameworks_support | Apache License 2.0 |
packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/FakeMobileIconsInteractor.kt | liu-wanshun | 595,904,109 | true | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 1 | 2 | e99201cd9b6a123b16c30cce427a2dc31bb2f501 | 3,639 | platform_frameworks_base | Apache License 2.0 |
app/src/main/java/com/example/joseramos/lyricsappjlrf/presentation/fragments/AboutFragment.kt | JoseLuisRF | 108,772,394 | false | {"Java": 51934, "Kotlin": 42120} | package com.example.joseramos.lyricsappjlrf.presentation.fragments
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.joseramos.lyricsappjlrf.R
import com... | 1 | null | 1 | 1 | 78bcb26cc28b825ea2f770b84aaf4f046f15d472 | 1,524 | mylyricsappjlrf | Apache License 2.0 |
app/src/main/java/com/example/joseramos/lyricsappjlrf/presentation/fragments/AboutFragment.kt | JoseLuisRF | 108,772,394 | false | {"Java": 51934, "Kotlin": 42120} | package com.example.joseramos.lyricsappjlrf.presentation.fragments
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.joseramos.lyricsappjlrf.R
import com... | 1 | null | 1 | 1 | 78bcb26cc28b825ea2f770b84aaf4f046f15d472 | 1,524 | mylyricsappjlrf | Apache License 2.0 |
server/world/src/main/kotlin/world/entity/Npc.kt | Guthix | 270,323,476 | false | {"Kotlin": 667208} | /*
* Copyright 2018-2021 Guthix
*
* 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 ... | 2 | Kotlin | 9 | 43 | bbf40d18940a12155a33341a1c99ba47289b8e2a | 2,970 | OldScape | Apache License 2.0 |
app/src/main/java/ru/ilyasekunov/officeapp/data/dto/SearchPostsDto.kt | IlyaSekunov | 744,587,168 | false | {"Kotlin": 671010} | package ru.ilyasekunov.officeapp.data.dto
data class SearchPostsDto(
val filtersDto: FiltersDto,
val searchDto: SearchDto
) | 0 | Kotlin | 0 | 2 | 9cb85aeef71463a480ba1a3dff4a32af929263eb | 132 | office-app | Apache License 2.0 |
test/src/me/anno/tests/engine/UIEventTest.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.tests.engine
import me.anno.ecs.Component
import me.anno.ecs.Entity
import me.anno.ecs.components.mesh.MeshComponent
import me.anno.ecs.interfaces.InputListener
import me.anno.engine.DefaultAssets.flatCube
import me.anno.engine.ui.control.PlayControls
import me.anno.engine.ui.render.SceneView.Companion... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 1,330 | RemsEngine | Apache License 2.0 |
test/src/me/anno/tests/engine/UIEventTest.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.tests.engine
import me.anno.ecs.Component
import me.anno.ecs.Entity
import me.anno.ecs.components.mesh.MeshComponent
import me.anno.ecs.interfaces.InputListener
import me.anno.engine.DefaultAssets.flatCube
import me.anno.engine.ui.control.PlayControls
import me.anno.engine.ui.render.SceneView.Companion... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 1,330 | RemsEngine | Apache License 2.0 |
src/main/java/com/cumulocity/client/model/UploadedTrustedCertSignedVerificationCode.kt | SoftwareAG | 525,378,320 | false | {"Kotlin": 769226} | // Copyright (c) 2014-2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Softwa... | 2 | Kotlin | 1 | 3 | 73032dfec9711ff24077553749dac789dd6c7190 | 744 | cumulocity-clients-kotlin | Apache License 2.0 |
shared/src/androidMain/kotlin/main.android.kt | a10033135 | 722,158,894 | false | {"Kotlin": 26549, "Swift": 592, "Shell": 228} | import androidx.compose.runtime.Composable
import screen.App
@Composable
fun MainView() = App()
fun firebase() {
} | 0 | Kotlin | 0 | 0 | e5de9aae9a5188e4241642c6443f65fe490b3296 | 117 | app_chadopedia_kmm | Apache License 2.0 |
app/src/main/java/com/example/sport/data/models/weather/Wind.kt | belochka200 | 629,512,829 | false | null | package com.example.sport.data.models.weather
//@Serializable
//data class Wind(
// val deg: Float,
// val speed: Float,
// val gust: Float,
//) | 0 | Kotlin | 2 | 0 | 8ab100c7f2c6bde7561debe3de7fbbc52efbfaea | 154 | zdorovyash | MIT License |
app/src/robolectricTest/java/org/fnives/test/showcase/testutils/configuration/TestCoroutineMainDispatcherTestRule.kt | fknives | 356,982,481 | false | null | package org.fnives.test.showcase.testutils.configuration
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.test.TestCoroutineDispatcher
import kotlinx.coroutines.test.resetMain
import kotlinx.coroutines.test.setMain
import org.fnives.test.showcase.storage.database.DatabaseInitialization
import org.fnives... | 15 | Kotlin | 0 | 2 | b35467fcba52f5ac6896b316ca27d3d0b1f2bbf0 | 1,658 | AndroidTest-ShowCase | Apache License 2.0 |
app/src/main/java/com/amjadalwareh/ktx/MainActivity.kt | amjadalwareh | 313,275,581 | false | {"Kotlin": 32394} | package com.amjadalwareh.ktx
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import java.text.NumberFormat
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_m... | 0 | Kotlin | 0 | 0 | efe893dce8d65f83880552b68d6953d580a138e4 | 460 | common-android-kotlin-extensions | Apache License 2.0 |
src/main/kotlin/solid/srp/before/DatabaseManager.kt | alidehkhodaei | 499,890,220 | false | {"Kotlin": 7613} | package srp.before
import java.io.File
class DatabaseManager(private val databaseName: String) {
fun connectToDatabase() {
// Implementation code removed for better clarity.
}
fun saveDataToDatabase() {
try {
// Implementation code removed for better clarity.
// P... | 0 | Kotlin | 5 | 63 | 52e73b948ed89b7021ca4ac0bca9e9f827e4fda5 | 758 | oop-solid-patterns | MIT License |
app/src/main/java/com/mpcpsalesfsm/features/location/api/LocationRepoProvider.kt | DebashisINT | 760,382,959 | false | {"Kotlin": 15379186, "Java": 1025255} | package com.mpcpsalesfsm.features.location.api
import com.mpcpsalesfsm.features.location.shopdurationapi.ShopDurationApi
import com.mpcpsalesfsm.features.location.shopdurationapi.ShopDurationRepository
object LocationRepoProvider {
fun provideLocationRepository(): LocationRepo {
return LocationRepo(Locat... | 0 | Kotlin | 0 | 0 | 9de9c0b5b4c331b45477bf0c017c92927110f865 | 344 | MPCPCare | Apache License 2.0 |
lib/src/main/kotlin/com/swmansion/starknet/data/serializers/JsonRpcErrorSerializer.kt | software-mansion | 503,730,882 | false | {"Kotlin": 669887, "Cairo": 13806, "Java": 12371, "C++": 4788, "CMake": 3882, "Shell": 2336, "C": 1775} | package com.swmansion.starknet.data.serializers
import com.swmansion.starknet.provider.rpc.JsonRpcError
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerializationException
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
... | 7 | Kotlin | 16 | 64 | 4e97d5a9e1c524902208a04c0bc1f1be5a92f193 | 1,651 | starknet-jvm | MIT License |
app/src/main/java/com/kcteam/features/meetinglist/model/MeetingListResponseModel.kt | DebashisINT | 558,234,039 | false | {"Kotlin": 11332958, "Java": 966929} | package com.kcteam.features.meetinglist.model
import com.kcteam.base.BaseResponse
import com.kcteam.features.location.model.MeetingDurationDataModel
import java.io.Serializable
/**
* Created by Saikat on 21-01-2020.
*/
class MeetingListResponseModel : BaseResponse(), Serializable {
var meeting_list: ArrayList<M... | 0 | Kotlin | 1 | 1 | a9aabcf48662c76db18bcece75cae9ac961da1ed | 354 | KidCity | Apache License 2.0 |
app/src/main/java/com/chooloo/www/koler/contentresolver/PhoneLookupContentResolver.kt | dzungpv | 351,679,995 | true | {"Kotlin": 140962, "Java": 4545} | package com.chooloo.www.koler.contentresolver
import android.content.Context
import android.database.Cursor
import android.net.Uri
import android.provider.ContactsContract.PhoneLookup
import com.chooloo.www.koler.data.Contact
class PhoneLookupContentResolver(
context: Context,
private val number: String,
) : ... | 0 | null | 0 | 0 | b41e19e399ae66e2f552725f3276284720543af5 | 1,525 | koler | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/SignUp.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 7,222 | icons | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/SignUp.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 7,222 | icons | MIT License |
src/main/kotlin/org/snd/metadata/providers/viz/model/VizSeriesBook.kt | Snd-R | 463,859,568 | false | null | package org.snd.metadata.providers.viz.model
import org.snd.metadata.model.BookRange
import org.snd.metadata.model.Provider.VIZ
import org.snd.metadata.model.SeriesSearchResult
data class VizSeriesBook(
val id: VizBookId,
val name: String,
val seriesName: String,
val number: BookRange?,
val imageU... | 8 | Kotlin | 6 | 55 | 9821b2cebd41c4f33266de8b4d13bd3af1f4cf31 | 569 | komf | MIT License |
ctr-backend/src/main/kotlin/com/edernilson/ctr/interfaces/incoming/mapping/TravelRequestMapper.kt | edernilson | 544,841,423 | false | null | package com.edernilson.ctr.interfaces.incoming.mapping
import com.edernilson.ctr.domain.PassengerRepository
import com.edernilson.ctr.domain.TravelRequest
import com.edernilson.ctr.domain.TravelRequestInput
import com.edernilson.ctr.domain.TravelRequestOutput
import com.edernilson.ctr.interfaces.incoming.PassengerAPI
... | 0 | Kotlin | 0 | 0 | a74326ed8bc3a6dbea8829bf9552114ebfb46364 | 1,856 | kotlin-spring-boot-google_directions_api-start | MIT License |
Plugin/plugin-monitor/src/main/java/com/kronos/plugin/monitor/KronosMonitor.kt | Leifzhang | 283,129,368 | false | null | package com.kronos.plugin.monitor
import com.kronos.plugin.monitor.repo.DataRep
import com.kronos.plugin.monitor.scan.DependencyScanner
import com.kronos.plugin.monitor.scan.MonitorBuildOperationNotificationListener
import com.kronos.plugin.monitor.utils.FileUtils
import com.kronos.plugin.monitor.utils.OwnerProvider
i... | 2 | null | 7 | 91 | 0308a0cf0366f2754526f4f07922006ebfb27488 | 2,596 | GradleTask | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/createandvaryalicenceapi/service/publicApi/SubjectAccessRequestService.kt | ministryofjustice | 384,371,667 | false | {"Kotlin": 1706971, "Shell": 12444, "Dockerfile": 1340, "PLpgSQL": 863} | package uk.gov.justice.digital.hmpps.createandvaryalicenceapi.service.publicApi
import jakarta.transaction.Transactional
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.createandvaryalicenceapi.model.LicenceEvent
import uk.gov.justice.digital.hmpps.createandvaryalicenceapi.repository.... | 3 | Kotlin | 0 | 1 | c6764eed24c78fbdab7d2a630ca5e98a66954bcb | 2,157 | create-and-vary-a-licence-api | MIT License |
app/src/main/java/com/jarvis/weatherj/domain/model/model/demo/DataModel.kt | johanforce | 569,695,306 | false | {"Kotlin": 212462, "Java": 10587} | package com.jarvis.weatherj.domain.model.model.demo
import android.os.Parcelable
import com.jarvis.weatherj.data.remote.response.DataResponse
import kotlinx.parcelize.Parcelize
@Parcelize
data class DataModel(
var currentCondition: List<CurrentConditionModel>? = null,
var nearestArea: List<NearestAreaModel>? ... | 0 | Kotlin | 0 | 1 | e4aea6a097f3085305574c79985385919b343c90 | 1,074 | aether | MIT License |
app/src/main/java/com/stevesoltys/seedvault/BackupMonitor.kt | yaap | 797,882,409 | false | {"Kotlin": 1548582, "Java": 12059, "Shell": 6188} | /*
* SPDX-FileCopyrightText: 2020 The Calyx Institute
* SPDX-License-Identifier: Apache-2.0
*/
package com.stevesoltys.seedvault
import android.app.backup.BackupManagerMonitor.EXTRA_LOG_EVENT_CATEGORY
import android.app.backup.BackupManagerMonitor.EXTRA_LOG_EVENT_ID
import android.app.backup.BackupManagerMonitor.E... | 0 | Kotlin | 1 | 0 | 10001c8966be6642894c3f239f15315bbe31a924 | 1,507 | packages_apps_Seedvault | Apache License 2.0 |
app/src/main/java/com/stevesoltys/seedvault/BackupMonitor.kt | yaap | 797,882,409 | false | {"Kotlin": 1548582, "Java": 12059, "Shell": 6188} | /*
* SPDX-FileCopyrightText: 2020 The Calyx Institute
* SPDX-License-Identifier: Apache-2.0
*/
package com.stevesoltys.seedvault
import android.app.backup.BackupManagerMonitor.EXTRA_LOG_EVENT_CATEGORY
import android.app.backup.BackupManagerMonitor.EXTRA_LOG_EVENT_ID
import android.app.backup.BackupManagerMonitor.E... | 0 | Kotlin | 1 | 0 | 10001c8966be6642894c3f239f15315bbe31a924 | 1,507 | packages_apps_Seedvault | Apache License 2.0 |
app/src/main/java/org/coepi/android/repo/AlertsRepo.kt | Co-Epi | 249,138,523 | false | null | package org.coepi.android.repo
import io.reactivex.Observable
import io.reactivex.Observable.empty
import io.reactivex.Observable.just
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.rxkotlin.Observables
import io.reactivex.rxkotlin.plusAssign
import io.reactivex.rxkotlin.subscribeBy
import io.... | 14 | Kotlin | 20 | 32 | 54cffa441d27d18ba33d7719a34dc9b5c9125262 | 5,133 | app-android | MIT License |
aTalk/src/main/java/org/atalk/hmos/gui/login/LoginSynchronizationPoint.kt | cmeng-git | 704,328,019 | false | {"Kotlin": 14364024, "Java": 2718723, "C": 275021, "Shell": 49203, "Makefile": 28273, "C++": 13642, "HTML": 7793, "CSS": 3127, "JavaScript": 2758, "AIDL": 375} | /*
* aTalk, android VoIP and Instant Messaging client
* Copyright 2014 <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
*
* Unle... | 0 | Kotlin | 0 | 0 | 90e83dd8c054a5f480d03e8b0b1912b41bd79b0c | 9,180 | atalk-hmos_kotlin | Apache License 2.0 |
menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotDSL.kt | CarcadeX | 681,093,300 | false | null | package tech.carcadex.kotlinbukkitkit.menu.dsl.pagination.slot
import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotDSL
import org.bukkit.entity.Player
import java.util.*
public interface PaginationSlotDSL<T> {
public val slotRoot: SlotDSL
public val paginationEventHandler: PaginationSlotEventHandler<T>
... | 11 | null | 22 | 2 | 95edc90da4b6d703e46ef589dbcfbc58b16bff46 | 1,094 | KotlinBukkitKIT | MIT License |
app/src/main/java/com/github/heyalex/cornerdrawer/example/support/ShopActivity.kt | HeyAlex | 231,829,305 | false | null | package com.github.heyalex.cornerdrawer.example.support
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import androidx.fragment.app.FragmentActivity
import com.github.heyalex.cornerdrawer.example.R
import com.github.heyalex.corn... | 1 | null | 14 | 293 | 66e834e86eded695c491c30e6d26eb747b05476d | 2,186 | CornerSheet | MIT License |
ktor-core/src/org/jetbrains/ktor/auth/FormAuth.kt | yiweig | 51,813,025 | true | {"Kotlin": 507115} | package org.jetbrains.ktor.auth
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.http.*
fun <C: ApplicationCall> AuthBuilder<C>.formAuth(userParamName: String = "user", passwordParamName: String = "password") {
extractCredentials {
val username = request.parameter(userParamName)
v... | 0 | Kotlin | 0 | 0 | 9c6f99860b567d33ccc4984e7e5932d10f10872a | 483 | ktor | Apache License 2.0 |
src/main/kotlin/com/github/bunnycodego/bunnytheme/services/MyProjectService.kt | bunnycodego | 515,824,895 | false | {"Kotlin": 6827} | package com.github.bunnycodego.bunnytheme.services
import com.intellij.openapi.project.Project
import com.github.bunnycodego.bunnytheme.MyBundle
class MyProjectService(project: Project) {
init {
println(MyBundle.message("projectService", project.name))
}
}
| 0 | Kotlin | 0 | 0 | 5a0864cf3acddbbae5be0c8ea1e08e405d108370 | 276 | BunnyTheme | Apache License 2.0 |
logger-core/src/iosMain/kotlin/com.chrynan.logger/IosDefaultLogger.kt | chRyNaN | 147,249,516 | false | null | @file:Suppress("unused")
package com.chrynan.logger
@Suppress("FunctionName")
actual fun DefaultLogger(): Loggable = NSLogger()
| 0 | Kotlin | 0 | 3 | 7791dc348c75f88085d42fa094310555af85c4e3 | 130 | logger | Apache License 2.0 |
analytics-consumer/yandexmetrika/src/main/java/analytics/consumer/yandex/YandexMetricaConsumer.kt | ppav | 512,496,537 | false | {"Kotlin": 41848, "Swift": 4548, "Ruby": 1809} | package analytics.consumer.yandex
import analytics.BaseAnalyticsConsumer
import analytics.Events
import analytics.consumer.yandex.event.YandexMetricaRevenueEvent
import analytics.event.DirectEvent
import analytics.event.Event
import com.yandex.metrica.Revenue
import com.yandex.metrica.YandexMetrica
import java.util.Cu... | 0 | Kotlin | 1 | 22 | e7192e0ebbf98284ef649ebcee1d2ead0e69572f | 1,193 | Analytics | MIT License |
core/src/main/kotlin/com/mineinabyss/emojy/translator/EmojyArgumentTag.kt | MineInAbyss | 545,724,197 | false | {"Kotlin": 66998} | package com.mineinabyss.emojy.translator
import net.kyori.adventure.text.ComponentLike
import net.kyori.adventure.text.minimessage.Context
import net.kyori.adventure.text.minimessage.ParsingException
import net.kyori.adventure.text.minimessage.tag.Tag
import net.kyori.adventure.text.minimessage.tag.resolver.ArgumentQu... | 0 | Kotlin | 0 | 1 | c44d595e02528be5610a2d57bb2613af754fb804 | 1,429 | Emojy | MIT License |
shared/src/commonMain/kotlin/data/repo/FriendsRepo.kt | SergStas | 697,631,567 | false | {"Kotlin": 91602, "Swift": 592, "Shell": 228} | package data.repo
import domain.models.User
import domain.repo.IFriendsRepo
class FriendsRepo: IFriendsRepo {
companion object {
val me = User("1", "aboba", null, false)
val user2 = User("2", "dedushka", null, true)
val user3 = User("3", "pena", null, false)
}
private val list = m... | 0 | Kotlin | 0 | 0 | cd718a893f0b81175b349120c4ee9c83f65d3782 | 605 | DebtsTrackerCompose | Apache License 2.0 |
app/src/main/java/com/timebudget/Injection.kt | MobileEIvanov | 156,843,897 | false | null | /*
* Copyright (C) 2018 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 | Kotlin | 0 | 0 | ef35495a47c98c8dc448b4098df2069af79cb754 | 2,376 | Time-Budget | Apache License 2.0 |
src/main/kotlin/io/arusland/devzen/util/UrlUtil.kt | arusland | 801,756,533 | false | {"Kotlin": 46629, "Shell": 718, "Dockerfile": 349} | package io.arusland.devzen.util
import io.arusland.devzen.config.Config
import org.apache.commons.io.IOUtils
import org.slf4j.LoggerFactory
import java.io.File
import java.net.URL
object UrlUtil {
private val log = LoggerFactory.getLogger(UrlUtil::class.java)
fun download(url: URL, targetDir: File = Config.F... | 0 | Kotlin | 0 | 0 | e1936d6f9cff08033aa85bac0908196d0ae3bb7f | 1,293 | devzen-channel | Apache License 2.0 |
presentation/src/main/java/com/dsm/dms/presentation/di/module/AppModule.kt | nwar-Jeon | 225,753,353 | true | {"Kotlin": 33349} | package com.dsm.dms.presentation.di.module
import android.app.Application
import android.content.Context
import com.dsm.dms.presentation.di.app.BaseApp
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module(includes = [(NetworkModule::class), (LocalModule::class)])
class AppModule {
@Pr... | 0 | null | 0 | 0 | 604c2afc55f412e9310f1e71ad7b8bd92faba673 | 501 | DMS-Android-V4 | MIT License |
app/src/main/java/com/breezefsmparas/features/viewAllOrder/interf/NewOrdScrShowDetaisOnCLick.kt | DebashisINT | 646,827,078 | false | {"Kotlin": 15132793, "Java": 1023856} | package com.breezefsmparas.features.viewAllOrder.interf
interface NewOrdScrShowDetaisOnCLick {
fun getOrderID(orderID: String,orderDate:String)
} | 0 | Kotlin | 0 | 0 | b3a654585537264aaec676ba124110e998983033 | 150 | ParasPanMasala | Apache License 2.0 |
ksoup/src/commonMain/kotlin/com/fleeksoft/ksoup/select/StructuralEvaluator.kt | fleeksoft | 719,100,459 | false | {"Kotlin": 1341119, "HTML": 36067} | package com.fleeksoft.ksoup.select
import com.fleeksoft.ksoup.internal.StringUtil
import com.fleeksoft.ksoup.nodes.Element
import com.fleeksoft.ksoup.nodes.NodeIterator
import com.fleeksoft.ksoup.ported.IdentityHashMap
/**
* Base structural evaluator.
*/
internal abstract class StructuralEvaluator(val evaluator: Ev... | 1 | Kotlin | 5 | 73 | 6fea1b08ccb423778ef5f9e250204216da8380cc | 7,623 | ksoup | Apache License 2.0 |
app/src/main/java/xyz/tberghuis/floatingtimer/screens/SizeSettingScreen.kt | tberghuis | 500,632,576 | false | null | package xyz.tberghuis.floatingtimer.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compo... | 22 | null | 6 | 78 | c6f792d5b7a339a93a88511421b5f72ea5053df6 | 4,053 | FloatingCountdownTimer | MIT License |
app/src/main/java/com/balysv/verynicedrinks/domain/whisky/Whisky.kt | balysv | 165,399,199 | false | null | package com.balysv.verynicedrinks.domain.whisky
data class Whisky(
val id: Long,
val name: String,
val costTier: WhiskyCostTier,
val type: WhiskyType,
val country: String
)
enum class WhiskyType {
MALT,
BLEND,
GRAIN,
BOURBON,
RYE,
WHEAT,
FLAVOURED,
BARLEY,
WHISKEY,
UNKNOWN
}
e... | 0 | Kotlin | 0 | 0 | c23f0c71ff53a84f54e4bb898e59c6d4d5d0dc99 | 552 | very-nice-whisky | Apache License 2.0 |
test_runner/src/main/kotlin/ftl/presentation/cli/firebase/test/android/AndroidTestEnvironmentCommand.kt | Flank | 84,221,974 | false | {"Kotlin": 1748173, "Java": 101254, "Swift": 41229, "Shell": 10674, "Objective-C": 10006, "Dart": 9705, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "Ruby": 2272, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1183, "EJS": 1061, "Go": 159} | package ftl.presentation.cli.firebase.test.android
import ftl.api.TestEnvironment
import ftl.config.FtlConstants
import ftl.domain.DescribeAndroidTestEnvironment
import ftl.domain.invoke
import ftl.presentation.cli.firebase.test.environment.prepareOutputString
import ftl.presentation.outputLogger
import ftl.presentati... | 64 | Kotlin | 115 | 676 | b40904b4e74a670cf72ee53dc666fc3a801e7a95 | 1,783 | flank | Apache License 2.0 |
NBEffects/src/main/java/cn/wufuqi/nbeffects/renderer/GLRender.kt | wufuqi123 | 572,812,247 | false | {"Kotlin": 55427, "GLSL": 19095, "Java": 6490} | package cn.wufuqi.nbeffects.renderer
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import cn.wufuqi.nbeffects.OpenGLImageRenderType
import cn.wufuqi.nbeffects.filter.RendererFilter
interface GLRender {
/**
* 设置渲染类型
*
* OpenGLImageRenderType.FLEX 等高等宽拉伸
* EQUAL_WID... | 0 | Kotlin | 0 | 7 | fbd2d7b4312891e15b41d98fb96c1374ccd9324b | 1,085 | NBEffects | Apache License 2.0 |
idea-plugin/src/main/kotlin/org/jetbrains/compose/web/ide/run/WebRunConfigurationProducer.kt | JetBrains | 293,498,508 | false | null | /*
* Copyright 2020-2021 JetBrains s.r.o. and respective authors and developers.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.compose.web.ide.run
import com.intellij.execution.actions.ConfigurationContext
import com.intellij.exec... | 668 | Kotlin | 645 | 9,090 | 97266a0ac8c0d7a8ad8d19ead1c925751a00ff1c | 2,311 | compose-jb | Apache License 2.0 |
app/src/main/java/ly/android/material/code/tool/data/enums/UrlType.kt | lumyuan | 594,634,627 | false | null | package ly.android.material.code.tool.data.enums
enum class UrlType {
ASSETS, NET
} | 1 | Kotlin | 0 | 15 | 0bd03e3b7ddd05591222db8ada5c9b9a7619a908 | 88 | MaterialCodeTool | Apache License 2.0 |
cli/src/main/kotlin/ls/kafka/backup/s3/SegmentFile.kt | lovelysystems | 685,887,345 | false | {"Kotlin": 69423, "Shell": 4118, "Dockerfile": 704} | package ls.kafka.backup.s3
import io.github.oshai.kotlinlogging.KotlinLogging
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.*
import ls.kafka.model.DumpRecord
import org.apache.kafka.common.errors.CorruptRecordException
import org.apache.kafka.common.record.*
import org.apache.kafk... | 0 | Kotlin | 0 | 0 | a1749cb025e21ecadf560a1b14b965a91dbf700d | 10,844 | lovely-kafka-backup | Apache License 2.0 |
src/test/kotlin/org/beckn/one/sandbox/bap/client/order/init/controllers/InitOrderControllerSpec.kt | OSSVerse | 853,138,400 | false | {"Kotlin": 651081, "Jinja": 3324} | package org.beckn.one.sandbox.bap.client.order.init.controllers
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectMapper
import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.client.WireMock.*
import io.kotest.core.spec.style.Describ... | 0 | Kotlin | 0 | 8 | b3ca6a6455f41b9d53bbb35f5c01e31c1fde2638 | 18,969 | OSSVerse-buyer-app | Apache License 2.0 |
features/anime/src/main/java/com/doskoch/template/anime/screens/details/useCase/LoadAnimeDetailsUseCase.kt | VitaliyDoskoch | 263,280,184 | false | {"Kotlin": 233695, "Shell": 270} | package com.doskoch.template.anime.screens.details.useCase
import com.doskoch.template.api.jikan.services.anime.AnimeService
class LoadAnimeDetailsUseCase(private val service: AnimeService) {
suspend fun invoke(id: Int) = service.getAnime(id)
}
| 0 | Kotlin | 0 | 2 | 477c3dbb8ab046b3ab9204912535516c8487e254 | 251 | Template | MIT License |
src/main/kotlin/xyz/magentaize/dynamicdata/list/internal/UnifiedChange.kt | Magentaize | 290,133,754 | false | null | package xyz.magentaize.dynamicdata.list.internal
import xyz.magentaize.dynamicdata.kernel.Optional
import xyz.magentaize.dynamicdata.list.ListChangeReason
internal data class UnifiedChange<T>(
val reason: ListChangeReason,
val current: T,
val previous: Optional<T> = Optional.empty()
)
| 0 | Kotlin | 0 | 3 | dda522f335a6ab3847cc90ff56e8429c15834800 | 300 | dynamicdata-kotlin | MIT License |
lomout-config/src/test/kotlin/net/pototskiy/apps/lomout/api/entity/values/LM36StringToDoubleKtTest.kt | pavru | 172,818,183 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 0 | Kotlin | 1 | 0 | 96b9715fab77ade907948527e1bfeb4c210ba988 | 2,057 | lomout | Apache License 2.0 |
app/src/main/java/com/example/proj/RestAdapter.kt | OzymandiasThe2 | 569,497,089 | false | {"Kotlin": 55479} | package com.example.proj
import android.content.Context
import android.content.Intent
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import android.widget.Toast... | 0 | Kotlin | 0 | 0 | 1ee5eb603b821749e5ba8e0a84cae5b151caaba5 | 2,263 | Omeal-Mobile-App-INFR4599U | MIT License |
app/src/main/java/com/utsman/hiyahiyahiya/di/featureModule.kt | syntaxxxxx | 291,494,071 | true | {"Kotlin": 179548, "Java": 98751} | package com.utsman.hiyahiyahiya.di
import com.utsman.hiyahiyahiya.data.repository.*
import com.utsman.hiyahiyahiya.ui.viewmodel.*
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
val auth = module {
viewModel { AuthViewModel(get()) }
}
val contact = module {
single { ContactReposit... | 0 | null | 0 | 1 | c3cf984f97c02e8f5e8397d236162e346eaca369 | 795 | hiya-hiya-hiya | Apache License 2.0 |
app/src/main/java/com/wa2c/android/cifsdocumentsprovider/common/values/Const.kt | wa2c | 309,159,444 | false | null | package com.wa2c.android.cifsdocumentsprovider.common.values
const val URI_AUTHORITY = "com.wa2c.android.cifsdocumentsprovider.documents"
const val SEPARATOR = '/'
const val REQUEST_DIALOG_RESULT = "REQUEST_DIALOG_RESULT"
const val DIALOG_RESULT_INDEX = "RESULT_DIALOG_INDEX"
const val CONNECTION_TIMEOUT = 10000
co... | 5 | Kotlin | 2 | 19 | 9e4d8f13c9ec14f9f96f62a48601fba3067d0dc8 | 349 | cifs-documents-provider | MIT License |
app/src/test/java/com/example/android/architecture/blueprints/todoapp/statistics/StatisticsUtilsTest.kt | alex-faust | 701,994,334 | false | {"Kotlin": 129364} | package com.example.android.architecture.blueprints.todoapp.statistics
import com.example.android.architecture.blueprints.todoapp.data.Task
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.core.Is.`is`
import org.junit.Assert.assertEquals
import org.junit.Test
class StatisticsUtilsTest {
@Test
... | 0 | Kotlin | 0 | 0 | 526c0d5492e1a6e1e983e02f58e9adbe9a12b6e6 | 2,152 | android-testing | Apache License 2.0 |
src/main/kotlin/api/users/UsersService.kt | cdimascio | 151,765,325 | false | null | package api.users
typealias UserUpdates = UserPutBody
typealias UserDetails = UserPostBody
class UsersService {
private val users = sortedMapOf(
0L to User(id = 0, name = "Carmine"),
1L to User(id = 1, name = "Laura")
)
fun all() = users.values.toList()
fun byId(id: Long) = users[id]
... | 0 | Kotlin | 8 | 22 | f99b10ba0686abc82ddcd13993f804644f29af2c | 917 | kotlin-spring-mvc-template | Apache License 2.0 |
app/src/main/java/dev/jjerrell/android/playground/ui/PlaygroundApplication.kt | jjerrell | 698,455,619 | false | {"Kotlin": 28336} | /* (C) 2023 <NAME> */
package dev.jjerrell.android.playground.ui
import android.app.Application
import dev.jjerrell.android.playground.BuildConfig
import timber.log.Timber
class PlaygroundApplication : Application() {
override fun onCreate() {
super.onCreate()
if (BuildConfig.DEBUG) {
... | 3 | Kotlin | 0 | 0 | 7ce771c3e5600741491e4db098f8900455439617 | 641 | AndroidPlayground | MIT License |
app/src/main/java/io/agora/flat/data/model/EmailRegisterReq.kt | netless-io | 358,147,122 | false | {"Kotlin": 1083908, "Shell": 2529, "HTML": 452} | package io.agora.flat.data.model
data class EmailRegisterReq(
val email: String,
val code: String,
// 8..32 length
val password: String,
)
| 0 | Kotlin | 60 | 99 | 909e9bc74e80eb7c27abedbe0ac0659639d14e44 | 156 | flat-android | MIT License |
src/commonTest/kotlin/net/codinux/collections/CollectionsTestData.kt | codinux-gmbh | 675,087,488 | false | null | package net.codinux.collections
object CollectionsTestData {
const val CountElements = 12
val ListTestData = mutableListOf<String>().apply {
forAllElements { index ->
add(index.toString())
}
}
val SetTestData = mutableSetOf<String>().apply {
forAllElements { index... | 0 | Kotlin | 0 | 0 | b565c154a38366cf32eaf6ffabcdca643473a58f | 671 | ImmutableCollections | Apache License 2.0 |
common/src/test/java/io/github/pelmenstar1/digiDict/common/ColorsTests.kt | pelmenstar1 | 512,710,767 | false | null | package io.github.pelmenstar1.digiDict.common
import android.graphics.Color
import androidx.annotation.ColorInt
import androidx.core.graphics.alpha
import androidx.core.graphics.blue
import androidx.core.graphics.green
import androidx.core.graphics.red
import kotlin.test.Test
import kotlin.test.assertEquals
class Col... | 6 | Kotlin | 0 | 3 | 76a8229099c3775bb36fff5cedb15b5bf54945df | 1,333 | DigiDictionary | MIT License |
src/main/kotlin/com/decoder/AES.kt | 1037195898 | 747,963,849 | false | {"Kotlin": 121460} | package com.decoder
class AES {
private val cbc_aes_pkcs5 = Rijndael(KEY, IV, AESMode.CBC_PKCS5)
/**
* 解密
* @param by
* @return
*/
fun decrypt(by: ByteArray): ByteArray {
return cbc_aes_pkcs5.decryptHex(by.decodeToString())
}
/**
* 加密
* @param bytes
* @... | 0 | Kotlin | 0 | 0 | 66868a43839d219ee7ad03073d0fccbf1e36d804 | 641 | netty-socket | Apache License 2.0 |
src/jsTest/kotlin/JsIsOddTest.kt | i-voted-for-biden2 | 334,451,318 | false | null | import me.schlaubi.is_odd.isOdd
import kotlin.test.Test
import kotlin.test.assertFailsWith
class JsIsOddTest {
@Suppress("UnsafeCastFromDynamic")
@Test
fun testNonNumber() {
// This should work but K/Js is bugged
// assertFailsWith<TypeError>("Strings aren't integers") { isOdd(object {}) }
/... | 0 | Kotlin | 1 | 13 | 3a0ed99378699e689643319aae0a2d441a0c753c | 573 | is-odd.kt | Do What The F*ck You Want To Public License |
app/src/main/java/com/example/imagerecognition/ui/mainPage/FunctionAdapter.kt | Cro-vo | 493,614,502 | false | {"Kotlin": 48387, "Java": 3385} | package com.example.imagerecognition.ui.mainPage
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import ... | 0 | Kotlin | 0 | 0 | 9149485dba794234d98023734a671e2d923b767f | 2,038 | ImageRecognition | Apache License 2.0 |
app/src/main/java/com/imaginato/homeworkmvvm/exts/StringExt.kt | dev-tecocraft | 578,121,863 | false | null | package com.imaginato.homeworkmvvm.exts
import timber.log.Timber
// Extensions for String
const val LOG_TYPE_REQUEST = "log request:"
const val LOG_TYPE_RESPONSE = "log response:"
const val LOG_TYPE_ERROR = "log error:"
const val LOG_TYPE_INFO = "log info:"
fun String.printLog(type: String, tag: String) {
when (t... | 0 | Kotlin | 0 | 0 | 87b4df41bcbac49cce6b55d521573cf69cc581e9 | 504 | android-test | Apache License 2.0 |
app/src/main/java/bit/hemant/cleannotes/feature_note/presentation/add_edit_note/NoteTextfieldState.kt | hemantsb | 505,086,798 | false | {"Kotlin": 41167} | package bit.hemant.cleannotes.feature_note.presentation.add_edit_note.components
data class NoteTextFieldState(
val text: String = "",
val hint: String = "",
val isHintVisible: Boolean = true
) | 0 | Kotlin | 0 | 0 | f68af86b324213cfdfd3d208e243c54e70b26828 | 206 | cleanNotes | Apache License 2.0 |
adventure_util/src/main/kotlin/Interp.kt | NazarbekAld | 870,868,842 | false | {"Kotlin": 37434} | package me.nazarxexe.ui
object Interp : (Float) -> Float {
override fun invoke(t: Float): Float {
return 1 - (2 * t)
}
}
| 0 | Kotlin | 0 | 0 | f5c30f38aaa7fca64e586f53cba211da69e7582f | 138 | XeXeGui | MIT License |
paradox-language-support/src/main/kotlin/com/windea/plugin/idea/paradox/localisation/highlighter/ParadoxLocalisationAttributesKeys.kt | fonata | 320,514,128 | true | {"Kotlin": 532553, "Lex": 41918, "HTML": 3712} | package com.windea.plugin.idea.paradox.localisation.highlighter
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors.*
import com.intellij.openapi.editor.HighlighterColors.*
import com.intellij.openapi.editor.colors.TextAttributesKey.*
import com.windea.plugin.idea.paradox.*
import com.windea.plugin.ide... | 0 | Kotlin | 0 | 0 | edf37fb29407701d65749e76a70f73ff55614461 | 2,673 | Idea-Plugins | MIT License |
src/Day02/Day02.kt | hectdel | 573,376,349 | false | null | package Day02
import java.io.File
fun main() {
fun playResult(play: String): Int {
val splitPlay = play.split(" ")
val play = Play(splitPlay[0], splitPlay[1]);
return play.selScore() + play.resScore()
}
fun playResultPart2(play: String): Int {
val splitPlay = play.split("... | 0 | Kotlin | 0 | 0 | cff5677a654a18ceb199cc52fdd1c865dea46e1e | 2,474 | aco-kotlin-2022 | Apache License 2.0 |
src/main/kotlin/com/github/l1an/yubattlemusic/api/event/PlayerBattleEvent.kt | L1-An | 777,987,419 | false | {"Kotlin": 11342} | package com.github.l1an.yubattlemusic.api.event
import org.bukkit.entity.Player
import taboolib.platform.type.BukkitProxyEvent
class PlayerBattleEvent {
// 进入战斗事件
class In(val player: Player, val status: Boolean) : BukkitProxyEvent()
// 离开战斗事件
class Out(val player: Player, val status: Boolean) : Buk... | 0 | Kotlin | 0 | 0 | 587aba762b885a9c1ec73e85fdf05809a0d43718 | 338 | YuBattleMusic | Creative Commons Zero v1.0 Universal |
Trilha Android/Aula 03/app/src/main/java/br/com/pedroabreudev/books/data/datasources/local/LoginLocalDataSource.kt | pedroabreudev | 449,297,973 | false | null | package br.com.pedroabreudev.books.data.datasources.local
interface LoginLocalDataSource {
fun saveAccessToken(accessToken: String)
} | 0 | Kotlin | 0 | 0 | 49b087733d479dc0625879351174566913fc61f0 | 139 | ioasysCamp | MIT License |
domain/src/main/kotlin/dev/notypie/domain/command/entity/context/RequestMeetingContext.kt | TrulyNotMalware | 810,739,918 | false | {"Kotlin": 110137} | package dev.notypie.domain.command.entity.context
import dev.notypie.domain.command.SlackApiRequester
import dev.notypie.domain.command.dto.CommandBasicInfo
import dev.notypie.domain.command.dto.SlackRequestHeaders
import dev.notypie.domain.command.dto.response.SlackApiResponse
import dev.notypie.domain.command.entity... | 0 | Kotlin | 0 | 0 | 9c723863810174f232f76990a60aa9f984640750 | 1,165 | CodeCompanion | MIT License |
src/commonMain/kotlin/com/lehaine/lab/InstancedParticleScene.kt | LeHaine | 364,094,410 | false | null | package com.lehaine.lab
import com.lehaine.kiwi.korge.getRandomByPrefix
import com.lehaine.kiwi.korge.particle.FParticleContainer
import com.lehaine.kiwi.korge.particle.FParticleSimulator
import com.lehaine.kiwi.korge.view.addToLayer
import com.lehaine.kiwi.korge.view.layers
import com.lehaine.kiwi.korge.view.ldtk.ldt... | 0 | Kotlin | 0 | 0 | daa87ca5db5cd7c0b1ffeaaeaac583fa9116926f | 4,416 | kiwi-lab | MIT License |
samples/src/main/java/me/ibrahimyilmaz/kiel/samples/listadapter/viewholder/MessageViewHolder.kt | ibrahimyilmaz | 283,586,115 | false | null | package me.ibrahimyilmaz.kiel.samples.listadapter.viewholder
import android.view.View
import androidx.core.view.isVisible
import me.ibrahimyilmaz.kiel.core.RecyclerViewHolder
import me.ibrahimyilmaz.kiel.samples.databinding.AdapterMessageListItemBinding
import me.ibrahimyilmaz.kiel.samples.listadapter.model.MessageLis... | 6 | Kotlin | 29 | 370 | 51e0c7535e1fb63c854a085687f9c2330e365ad1 | 1,138 | kiel | Apache License 2.0 |
client/src/commonMain/kotlin/com/algolia/search/endpoint/internal/EndpointPlaces.kt | algolia | 153,273,215 | false | {"Kotlin": 1346247, "Dockerfile": 163} | @file:Suppress("FunctionName")
package com.algolia.search.endpoint.internal
import com.algolia.search.configuration.CallType
import com.algolia.search.dsl.internal.requestOptionsBuilder
import com.algolia.search.endpoint.EndpointPlaces
import com.algolia.search.model.ObjectID
import com.algolia.search.model.places.Pl... | 14 | Kotlin | 23 | 59 | 21f0c6bd3c6c69387d1dd4ea09f69a220c5eaff4 | 3,240 | algoliasearch-client-kotlin | MIT License |
src/backend/paas/misc/biz-misc/src/main/kotlin/com/heapoverflow/misc/config/DataSourceConfig.kt | panfairy | 577,309,391 | false | null | package com.heapoverflow.misc.config
import com.mysql.cj.jdbc.Driver
import com.zaxxer.hikari.HikariDataSource
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.AutoConfigureOrder
import org.springframework.context.annotation.Bean
import org.springframework.context... | 0 | Kotlin | 0 | 0 | f7147a022a9e427e054926829905ec9c10469325 | 3,286 | ho-base | MIT License |
app/src/main/java/com/vaibhav/healthify/util/NotificationHelper.kt | Vaibhav2002 | 393,057,644 | false | null | package com.vaibhav.healthify.util
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.os.Build
import androidx.core.app.NotificationCompat
import com.vaibhav.healthify.R
class Noti... | 0 | Kotlin | 20 | 63 | b21a75e794fc365be9e0ca668b5d0c20cab839bd | 1,873 | Healthify | MIT License |
app/src/test/java/com/concordium/wallet/data/util/PreferencesMigrationShould.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.data.util
import android.content.Context
import android.content.SharedPreferences
import androidx.test.core.app.ApplicationProvider
import com.concordium.wallet.data.preferences.AuthPreferences
import com.concordium.wallet.data.preferences.Preferences
import com.concordium.wallet.data.pre... | 5 | Kotlin | 2 | 9 | 849ffe8603fb70520cffb602f3719ec90e9cd12b | 2,782 | concordium-reference-wallet-android | Apache License 2.0 |
threads/src/main/kotlin/pl/edu/pw/ia/threads/infrastructure/query/entity/ModeratorViewEntity.kt | ERSMS-24L | 768,705,060 | false | null | package pl.edu.pw.ia.threads.infrastructure.query.entity
import java.util.UUID
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import pl.edu.pw.ia.shared.domain.view.ModeratorView
@Document(collection = "moderatorViews")
data class ModeratorViewEntity(
@Id
... | 28 | null | 2 | 2 | 450432b4792337debd2f3cb63ee178ba7210d6ec | 879 | ERSMS-24L | MIT License |
kotlin-node/src/jsMain/generated/node/dns/RecordWithTtl.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package node.dns
sealed external interface RecordWithTtl {
var address: String
var ttl: Double
}
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 160 | kotlin-wrappers | Apache License 2.0 |
features/zoomit/src/main/java/com/jmlb0003/dynamicfeatures/zoomit/ZoomitActivity.kt | Jamargle | 198,364,428 | false | null | package com.jmlb0003.dynamicfeatures.zoomit
import android.os.Bundle
import com.jmlb0003.dynamicfeatures.BaseActivity
class ZoomitActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_feature_zoomit)
... | 0 | Kotlin | 0 | 0 | 6944e72c5d7acf50281ef647ca9ca6bd3e965321 | 376 | android-dynamic-features | Apache License 2.0 |
executor/runtime/src/commonMain/kotlin/io/github/charlietap/chasm/executor/runtime/instruction/BlockContext.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 761667, "WebAssembly": 3179} | package io.github.charlietap.chasm.executor.runtime.instruction
import io.github.charlietap.chasm.executor.runtime.Stack
data class BlockContext(
val depth: Int,
val label: Stack.Entry.Label,
)
| 2 | Kotlin | 1 | 15 | 1118fc829e7efce25c6d94926d72c771fba00647 | 204 | chasm | Apache License 2.0 |
src/main/kotlin/com/pms/placemanagementsystemserverside/util/json/parse/scheduling/SchedulingDeserialize.kt | sge-sistema-gerenciador-de-espacos | 178,943,974 | false | null | package com.pms.placemanagementsystemserverside.util.json.parse.scheduling
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.deser.std.StdDeserializer
import com.pms.placemanagem... | 0 | Kotlin | 0 | 0 | d402ddb56d523062a4cfbff245a1c4d49aec7ba6 | 5,146 | place-management-system-server-side | MIT License |
vire-api/src/main/kotlin/net/voxelpi/vire/api/circuit/event/component/port/ComponentPortEvent.kt | VoxelPi | 700,036,011 | false | {"Kotlin": 229600} | package net.voxelpi.vire.api.circuit.event.component.port
import net.voxelpi.vire.api.circuit.component.Component
import net.voxelpi.vire.api.circuit.component.ComponentPort
import net.voxelpi.vire.api.circuit.event.component.ComponentEvent
/**
* An event that affect a component port.
*/
interface ComponentPortEven... | 0 | Kotlin | 0 | 0 | a7a7e30c0964213ca2c14cfac217637b3ba12b37 | 494 | Vire | MIT License |
1936.Add Minimum Number of Rungs.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun addRungs(rungs: IntArray, dist: Int): Int {
var ans = 0
var prev = 0
for (x in rungs) {
ans += (x - prev - 1) / dist
prev = x
}
return ans
}
}
| 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 209 | kotlin-leetcode | MIT License |
combo/generateCombos.kt | zeitlinger | 615,489,554 | false | {"Kotlin": 23594, "C": 257} | package combo
import Symbols
import Table
import blocked
import org.hjson.JsonValue
import readTables
import java.io.File
import java.io.FileReader
//SUBS(C_THE, "the ", KC_F13)
//SUBS(C_AND, "and ", KC_F14)
//SUBS(C_ING, "ing", KC_F15)
//SUBS(C_ING, "that ", KC_F16)
//SUBS(C_ING, "have ", K... | 0 | Kotlin | 0 | 0 | 23958bb62451d13126c15baf783a56e5fa77c881 | 11,702 | keyboard | MIT License |
liband/src/main/java/com/liband/custom/CircleImageView.kt | mycoola-zz | 137,815,692 | false | {"Gradle": 4, "JSON": 9, "Java Properties": 3, "Shell": 1, "Text": 8, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 86, "XML": 134, "Java": 44, "SQL": 3} | package com.liband.custom
import android.content.Context
import android.graphics.*
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.net.Uri
import android.util.AttributeSet
import android.widget.ImageView
import andr... | 0 | Kotlin | 0 | 1 | 3fa5cd31a962fad5e122bdf0031b7dfe94cc9491 | 7,472 | liband | MIT License |
sample/src/main/java/com/facebook/samples/litho/kotlin/documentation/VisibilityHandlingExampleComponent.kt | facebook | 80,179,724 | false | {"Kotlin": 5825848, "Java": 5578851, "C++": 616537, "Starlark": 198527, "JavaScript": 29060, "C": 25074, "Shell": 8243, "CSS": 5558, "CMake": 4783, "Objective-C": 4012} | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 88 | Kotlin | 765 | 7,703 | 8bde23649ae0b1c594b9bdfcb4668feb7d8a80c0 | 2,901 | litho | Apache License 2.0 |
src/main/kotlin/io/openapiprocessor/spring/writer/java/MappingAnnotationWriter.kt | openapi-processor | 196,863,956 | false | null | /*
* Copyright 2019-2020 the original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 3 | Groovy | 5 | 10 | aeda9b62c79549d3a82f86d7d33ebad86c878ed3 | 2,297 | openapi-processor-spring | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.