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/java/com/Jagan/weatherapplication/url/URL.kt | VJJagan | 617,749,521 | false | null | package com.aniketjain.weatherapplication.url
import com.aniketjain.weatherapplication.location.LocationCord
import com.aniketjain.roastedtoast.Toasty
import com.aniketjain.weatherapp.R
import androidx.recyclerview.widget.RecyclerView
import com.aniketjain.weatherapplication.adapter.DaysAdapter.DayViewHolder
import an... | 0 | Kotlin | 0 | 0 | 830c7bd1e014412605f7a6a3a9c00e2a8a4568a3 | 3,330 | Android-Projects | Apache License 2.0 |
app/src/main/java/com/example/xuece_android_network/common/ComDaraStore.kt | youminghuo2 | 743,886,194 | false | {"Kotlin": 78555} | package com.example.xuece_android_network.common
/**
* dataStore 存储key
*/
object ComDaraStore {
const val server_url="server_url"
const val server_token="server_token"
const val live_url="live_url"
} | 0 | Kotlin | 0 | 1 | 6374eca5bda422a7c238df6cf45c36c11db78665 | 214 | unisolution-android-sdk | Apache License 2.0 |
app/src/main/java/io/sabag/androidConferences/network/RetrofitConferencesService.kt | SabagRonen | 137,562,037 | false | {"Kotlin": 83774} | package io.sabag.androidConferences.network
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Url
interface RetrofitConferencesService {
@GET("_conferences?ref=gh-pages")
fun getConferencesContent(): Call<List<Content>>
@GET
fun getConferenceDetails(@Url url: String): Call<Confere... | 0 | Kotlin | 0 | 0 | f87032076de387631e8f1add68b59d71d21fe2ba | 333 | android-conferences | MIT License |
core-data/src/main/java/io/reitmaier/transcripttool/core/data/domain/PlaybackProgress.kt | treitmaier | 614,355,248 | false | null | package io.reitmaier.transcripttool.core.data.domain
/**
* @param current Current playback position in millisecond.
* @param duration Current track duration in millisecond.
*/
data class PlaybackProgress(
val current: Long,
val regionPosition: Int,
val duration: Long,
)
| 1 | Kotlin | 0 | 0 | c23db83b0f00099f9a4e1853ba7aad01e8886c26 | 284 | TranscriptTool | Apache License 2.0 |
impl/mastodon/src/main/kotlin/dev/usbharu/multim/mastodon/model/components/Poll.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.mastodon.model.components
import kotlinx.serialization.Serializable
@Serializable
class Poll
| 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 122 | multim | Apache License 2.0 |
dodam-design-system/src/commonMain/kotlin/com/b1nd/dodam/designsystem/component/IconButton.kt | Team-B1ND | 772,621,822 | false | {"Kotlin": 220288, "Swift": 640} | package com.b1nd.dodam.designsystem.component
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CornerBasedShape
impor... | 0 | Kotlin | 1 | 7 | ee60944aff81d5bf27e7b56629e12360724209f6 | 4,365 | dds-compose | MIT License |
shared/src/commonTest/kotlin/vn/luongvo/kmm/survey/data/repository/SurveyRepositoryTest.kt | luongvo | 566,890,934 | false | null | package vn.luongvo.kmm.survey.data.repository
import app.cash.turbine.test
import io.kotest.matchers.shouldBe
import io.mockative.*
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import vn.luongvo.kmm.survey.data.remote.datasource.SurveyRemoteDataSource
import vn.luongvo.kmm... | 11 | Kotlin | 0 | 1 | 2ac554a171ad92a451e7450178770860c57d69de | 3,777 | kmm-survey | MIT License |
jext-ktor/src/jvmMain/kotlin/kr/jadekim/jext/ktor/module/CorsModule.kt | jdekim43 | 421,788,472 | false | null | package kr.jadekim.jext.ktor.module
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.plugins.cors.*
import kotlin.time.Duration
import kotlin.time.DurationUnit
import kotlin.time.toDuration
object CorsModule : KtorModuleFactory<CorsModule.Configuration> {
val DEFAULT_ALLOW_HEADERS ... | 0 | Kotlin | 1 | 0 | e4c190aef33f0267c3d564bcf5d072fd62e2bc6a | 1,684 | jext | Apache License 2.0 |
kcrud-access/src/main/kotlin/kcrud/access/rbac/api/dashboard/Load.kt | perracodex | 682,128,013 | false | {"Kotlin": 664693, "JavaScript": 29018, "CSS": 12683, "HTML": 5862, "Dockerfile": 3127, "Java": 1017} | /*
* Copyright (c) 2024-Present Perracodex. Use of this source code is governed by an MIT license.
*/
package kcrud.access.rbac.api.dashboard
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.html.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.server.... | 0 | Kotlin | 0 | 2 | b969194e5d36e0e7eb05306e376e548c928f8931 | 2,028 | kcrud | MIT License |
home/src/main/java/com/memoir/home/repo/PropertyDatabase.kt | dbof10 | 509,308,735 | false | null | package com.memoir.home.repo
import androidx.room.Database
import androidx.room.RoomDatabase
import com.memoir.home.model.LocalStoredProperty
@Database(entities = [LocalStoredProperty::class], version = 1)
abstract class PropertyDatabase : RoomDatabase() {
abstract fun propertiesDao(): PropertiesDao
} | 0 | Kotlin | 0 | 0 | 1a657040416ff5dda569855f45c697e048769a02 | 308 | ListNab | Apache License 2.0 |
electives/apm/lab/lista-2/ex-1/TicTacToe/app/src/main/java/com/example/tictactoe/FiveByFive.kt | jerry-sky | 237,523,949 | false | null | package com.example.tictactoe
import android.graphics.Point
import android.os.Bundle
import android.widget.TextView
import com.example.tictactoe.gamelogic.GameLogic
import com.example.tictactoe.gamelogic.InvertibleMap
import com.example.tictactoe.databinding.ActivityFiveByFiveBinding
class FiveByFive : BaseGameActivi... | 6 | Python | 3 | 7 | f89a83e73f0dd02101687374e39484260faaa3d4 | 2,105 | academic-notebook | The Unlicense |
app/src/main/java/edu/stanford/wkautz/mymaps/models/UserMap.kt | wkautz | 307,242,723 | false | null | package edu.stanford.wkautz.mymaps.models
import java.io.Serializable
data class UserMap(val title: String, val places: List<Place>) : Serializable
| 0 | Kotlin | 0 | 0 | ae7edf292468e65f22cc42894d939eaf8052af04 | 151 | SMyMaps | Apache License 2.0 |
app/src/main/java/com/example/project_auction/view/fragment/lobby/alarm/AlarmFragment.kt | 4538cgy | 376,812,255 | false | null | package com.example.project_auction.view.fragment.lobby.alarm
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.ex... | 1 | Kotlin | 1 | 0 | ca8352892909aa1516098fbd859705a11630dcdc | 1,746 | ProjectAuction | Apache License 2.0 |
app/src/main/java/com/dev/demoapp/dev/xbase/BaseDialogFragment.kt | nokkmt001 | 677,754,088 | false | null | package com.dev.demoapp.dev.xbase
import android.app.Dialog
import android.os.Bundle
import android.os.Handler
import android.view.View
import android.view.ViewGroup
import android.view.Window
import android.widget.Toast
import androidx.annotation.LayoutRes
import androidx.databinding.ViewDataBinding
import androidx.l... | 0 | Kotlin | 0 | 0 | 346f7f5e1058864bebb04959836ec6f2c3c3e2a8 | 3,502 | demo-app- | Apache License 2.0 |
app/src/main/java/org/y20k/escapepod/Escapepod.kt | y20k | 137,322,448 | false | null | /*
* Escapepod.kt
* Implements the Escapepod class
* Escapepod is the base Application class that sets up day and night theme
*
* This file is part of
* ESCAPEPOD - Free and Open Podcast App
*
* Copyright (c) 2018-20 - Y20K.org
* Licensed under the MIT-License
* http://opensource.org/licenses/MIT
*/
packag... | 32 | Kotlin | 16 | 124 | 72e9d3e1aa9e59cc6a122381f0388faa9f065246 | 1,115 | escapepod | MIT License |
app/src/main/java/com/example/makeprogramme/DragView.kt | iflyings | 114,456,779 | false | null | package com.example.makeprogramme
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.FrameLayout
import android.widget.TextView
/**
* Created by 徐三朋 on 2017/12/17.
*/
class DragView: TextView {
private var lastX: Int = 0
private var lastY: I... | 0 | Kotlin | 0 | 0 | d628bf8c6228bd333fcaacf4483fe61d3c7ac8ad | 6,258 | MakeProgramme | Apache License 2.0 |
oneone/src/main/java/com/gapps/oneone/screens/base/BasePresenter.kt | TalbotGooday | 204,948,092 | false | null | package com.gapps.oneone.screens.base
import android.content.Context
interface BasePresenter<T> {
var view: T
fun create(context: Context)
fun destroy()
companion object {
const val DAYS_ERROR: Int = -1
const val SOMETHING_WRONG: String = "Something went wrong"
}
} | 0 | Kotlin | 0 | 0 | 9aa549666526e54d4460f9b6086f1b65732fe8fd | 306 | OneOne | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/TrashCanClock.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
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.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,007 | icons | MIT License |
core/ui/src/main/java/app/xlei/vipexam/core/ui/EmptyTextToolbar.kt | 1939323749 | 720,476,549 | false | {"Kotlin": 358607} | package app.xlei.vipexam.core.ui
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.platform.TextToolbar
import androidx.compose.ui.platform.TextToolbarStatus
class EmptyTextToolbar(
private val onSelect: () -> Unit,
) : TextToolbar {
override val status: TextToolbarStatus = TextToolbarStatus... | 0 | Kotlin | 0 | 0 | b5a4aa4cf0e6ff960bed7daced64892ec097b7ae | 680 | vipexam | Apache License 2.0 |
tibiakt-core/src/main/kotlin/com/galarzaa/tibiakt/core/parsers/WorldParser.kt | Galarzaa90 | 285,669,589 | false | null | /*
* Copyright © 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 1 | 1 | aba0f1ac98cecff7b6446353190537714307655c | 5,722 | TibiaKt | Apache License 2.0 |
app/src/main/java/com/cherryrubim/pokedex/presentation/screen/pokemoninfo/component/PokemonDescriptor.kt | Cherryrubim | 561,964,003 | false | {"Kotlin": 136720} | /*
* Copyright (c) 2022. Designed and developed by Cherryrubim
*
* 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... | 0 | Kotlin | 0 | 0 | 1f21802ddf90f0005991bfdb356164e5da727a9f | 6,068 | Pokedex | Apache License 2.0 |
app/src/test/java/com/oliverspryn/medium/androidunittests/mvc/BaseViewMvcTest.kt | oliverspryn | 218,304,493 | false | null | package com.oliverspryn.medium.androidunittests.mvc
import android.content.Context
import android.view.View
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.nhaarman.mockito_kotlin.whenever
import com.winterbe.expekt.expect
import ... | 0 | Kotlin | 0 | 0 | 8700a987abe890eb54a112bd95bbcad3694f03be | 2,155 | android-unit-tests | MIT License |
src/main/kotlin/net/inherency/finances/domain/reconcile/rule/BudgetCategoryRuleRepository.kt | scottygaydos | 278,980,273 | false | {"Kotlin": 199344, "HTML": 2360, "JavaScript": 1723} | package net.inherency.finances.domain.reconcile.rule
import net.inherency.finances.external.google.GoogleSheetClient
import net.inherency.finances.external.google.TabName
import org.springframework.stereotype.Repository
@Repository
class BudgetCategoryRuleRepository(private val googleSheetClient: GoogleSheetClient) {... | 2 | Kotlin | 0 | 0 | 825dd8a5e36ce88b45aa3585871faee8734ae750 | 1,256 | finance_budget_and_reconciler | Apache License 2.0 |
app/src/main/kotlin/com/franckrj/jvnotif/dialogs/AccountMenuDialogFragment.kt | FranckRJ | 102,766,462 | false | null | package com.franckrj.jvnotif.dialogs
import android.app.Activity
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import androidx.appcompat.app.AlertDialog
import com.franckrj.jvnotif.R
import com.franckrj.jvnotif.utils.AccountsManage... | 0 | Kotlin | 0 | 1 | 66f5081be210b310de6cc506ff2450c3bca4cd27 | 2,797 | JVNotif | zlib License |
src/main/kotlin/no/nav/helse/spurv/VedtaksperioderapportDao.kt | navikt | 241,858,153 | false | null | package no.nav.helse.spurv
import kotliquery.Session
import kotliquery.queryOf
import kotliquery.sessionOf
import kotliquery.using
import java.time.LocalDate
import java.util.*
import javax.sql.DataSource
internal class VedtaksperioderapportDao(private val dataSource: DataSource) {
fun lagRapport(dato: LocalDate... | 0 | Kotlin | 0 | 0 | 4e2e6f0c6bf0557a14d3597e839e92aaa8b03811 | 1,949 | helse-spurv | MIT License |
plugin/src/it/multi-module/app/src/main/kotlin/io/osguima3/it/jooqdsl/multimodule/app/converter/SimpleDateConverter.kt | Osguima3 | 178,733,114 | false | null | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | 4 | Kotlin | 0 | 2 | 0730fa0c87a3bfdf10fff1d4c74878257127de63 | 1,353 | jooq-dsl-maven-plugin | Apache License 2.0 |
client/src/main/java/com/fesskiev/compose/domain/AddNoteUseCase.kt | fesskiev | 328,395,075 | false | null | package com.fesskiev.compose.domain
import com.fesskiev.compose.data.Repository
import com.fesskiev.compose.presentation.AddNoteState
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import java.io.File
class AddNoteUseCase(private val repository: Repository) {
fun addNote(title: String, d... | 0 | Kotlin | 0 | 0 | 30ebd00d91fda759f5b4b558e0b0f12fcb61b67b | 784 | NotesClientServerApp | MIT License |
defitrack-protocols/stargate/src/main/java/io/defitrack/protocol/StargateService.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.protocol
interface StargateService {
fun getLpFarm(): String
fun getPoolFactory(): String
} | 17 | Kotlin | 6 | 9 | f7c65aa58bec3268101d90fc538c3f8bd0c29093 | 122 | defi-hub | MIT License |
android/app/src/main/kotlin/com/example/filex/MainActivity.kt | synw | 195,097,223 | false | null | package com.example.filex
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 4 | null | 10 | 16 | 2dd459f14d6be816e467a64de605f3efae496480 | 123 | filex | MIT License |
app/src/main/java/com/xplora/musicplayer/data/repository/PlaylistRepositoryImp.kt | tunglx | 471,414,771 | true | {"Kotlin": 96790} | package com.xplora.musicplayer.data.repository
import android.app.Application
import android.os.Build
import android.provider.MediaStore
import android.util.Log
import com.xplora.musicplayer.data.model.Song
import com.xplora.musicplayer.domain.repository.PlaylistRepository
import com.xplora.musicplayer.presentation.so... | 0 | Kotlin | 0 | 0 | 58336c507aeda2d4f1cefa4aa5a410ad9bda6ba8 | 4,686 | MusicPlayer | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/StarExclamation.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 | 3,094 | icons | MIT License |
src/test/kotlin/e2e/clauses/Call.kt | mnbjhu | 576,776,238 | false | {"Kotlin": 325491} | package e2e.clauses
import e2e.schemas.ActedIn
import e2e.schemas.Actor
import e2e.schemas.Movie
import org.amshove.kluent.`should contain same`
import org.junit.jupiter.api.Test
import uk.gibby.neo4k.clauses.Create.Companion.create
import uk.gibby.neo4k.clauses.ForEach.Companion.forEach
import uk.gibby.neo4k.clauses.... | 3 | Kotlin | 0 | 4 | a82253fce182c008edf98e13aec6309f1d0f0423 | 1,548 | neo4k | MIT License |
src/test/kotlin/dev/polek/adbwifi/adb/MockPropertiesService.kt | y-polek | 278,573,487 | false | {"Kotlin": 128260} | package dev.polek.adbwifi.adb
import dev.polek.adbwifi.services.PropertiesService
import dev.polek.adbwifi.utils.ADB_DEFAULT_PORT
@SuppressWarnings("LongParameterList")
class MockPropertiesService(
override var isLogVisible: Boolean = false,
override var isPreviouslyConnectedDevicesExpanded: Boolean = true,
... | 7 | Kotlin | 20 | 62 | 2e8ce08dcef42db5c236f75b4a200df9acf24bb6 | 1,057 | ADB-Wi-Fi | Apache License 2.0 |
android/app/src/main/kotlin/com/example/salesapp/MainActivity.kt | Vrajesh-Kanjariya | 432,642,788 | false | {"Dart": 39324, "Swift": 404, "Kotlin": 125, "Objective-C": 38} | package com.example.salesapp
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | ac5fe9a5421b5b29e14cad06932d415b3fbb6b56 | 125 | salesapp | Apache License 2.0 |
src/test/kotlin/r3z/timerecording/api/RoleAPITests.kt | byronka | 657,393,138 | false | {"Kotlin": 733224, "CSS": 29263, "JavaScript": 5729, "Makefile": 3298, "HTML": 1382} | package r3z.timerecording.api
import r3z.authentication.types.NO_USER
import r3z.authentication.utility.FakeAuthenticationUtilities
import r3z.server.APITestCategory
import r3z.server.api.MessageAPI
import r3z.server.types.AuthStatus
import r3z.server.types.PostBodyData
import r3z.server.types.ServerData
import r3z.sy... | 0 | Kotlin | 0 | 2 | 56667c13ed6b00770f2be100730942d27776dc71 | 6,328 | r3z | MIT License |
koarl-backend/src/main/java/dev/moetz/koarl/backend/dashboard/cache/MapCache.kt | FlowMo7 | 317,061,970 | false | null | package dev.moetz.koarl.backend.dashboard.cache
import kotlinx.serialization.KSerializer
import kotlinx.serialization.builtins.list
import kotlinx.serialization.json.Json
import java.io.File
internal class MapCache<Value>(
private val json: Json,
private val serializer: KSerializer<Value>,
private val cac... | 0 | Kotlin | 0 | 6 | 48bec5de7c1fdb9eaa67795f3313f0b3d690af15 | 1,394 | Koarl | Apache License 2.0 |
sample/src/main/java/com/mobnetic/compose/advancedpreview/sample/Sample3.kt | mobnetic | 435,223,542 | false | {"Kotlin": 13844} | package com.mobnetic.compose.advancedpreview.sample
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Scaffold
import androidx.compose.mat... | 5 | Kotlin | 2 | 34 | cb94d8af4e98801aa73887bfab17c85745d5237a | 2,164 | compose-advanced-preview | Apache License 2.0 |
typesafe/src/commonTest/kotlin/tech/annexflow/precompose/navigation/typesafe/internal/UrlEncoderTest.kt | Lavmee | 718,952,897 | false | {"Kotlin": 40255} | package tech.annexflow.precompose.navigation.typesafe.internal
import kotlin.test.Test
import kotlin.test.assertEquals
class UrlEncoderTest {
@Test
fun basic() {
val url = "https://precompose.annexflow.tech/id/1/2/3.jpg?hmac=test_ma-TEST"
val encodedUrl = UrlEncoder.encode(url)
assert... | 3 | Kotlin | 0 | 3 | edc6883af94da886584a72b01e1ba7643e849a18 | 599 | precompose-navigation-typesafe | MIT License |
app/src/main/kotlin/com/thundermaps/apilib/android/api/responses/models/Category.kt | SaferMe | 240,105,080 | false | null | package com.thundermaps.apilib.android.api.responses.models
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
data class Category(
@Expose val id: Int,
@Expose val name: String,
@SerializedName(value = LABEL_NAME) @Expose val labelName: String?,
@Expose val de... | 2 | Kotlin | 0 | 0 | e10d64c126cb13e56e5089e8bedd249534dc2ccf | 797 | saferme-api-client-android | MIT License |
core/src/test/kotlin/net/corda/core/contracts/AmountTests.kt | mkr237 | 81,326,553 | true | {"Kotlin": 1872412, "Java": 129633, "Groovy": 23275, "Shell": 2259, "CSS": 636, "Batchfile": 190} | package net.corda.core.contracts
import org.junit.Test
import java.math.BigDecimal
import kotlin.test.assertEquals
/**
* Tests of the [Amount] class.
*/
class AmountTests {
@Test
fun basicCurrency() {
val expected = 1000L
val amount = Amount(expected, GBP)
assertEquals(expected, amou... | 0 | Kotlin | 0 | 0 | b3e26b2022aa38ac52645045c2198b9f9a01a231 | 636 | corda | Apache License 2.0 |
app/src/androidTest/kotlin/cz/covid19cz/erouska/screens/B1Screen.kt | covid19cz | 247,683,648 | false | null | package cz.covid19cz.erouska.screens
import cz.covid19cz.erouska.R
import cz.covid19cz.erouska.helpers.RETRY_TIMEOUT
import cz.covid19cz.erouska.helpers.checkDisplayed
import org.awaitility.Awaitility.await
import java.util.concurrent.TimeUnit
object B1Screen {
fun checkActiveScreen() {
await().ignoreExc... | 0 | Kotlin | 57 | 205 | 23064413869fe7ba3d083beb9e6c639b59abfbcc | 643 | erouska-android | MIT License |
app/src/main/java/org/p2p/wallet/swap/interactor/serum/SerumSwapInteractor.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.swap.interactor.serum
import org.p2p.solanaj.core.Account
import org.p2p.solanaj.core.PublicKey
import org.p2p.solanaj.core.TransactionInstruction
import org.p2p.solanaj.kits.AccountInstructions
import org.p2p.solanaj.programs.SerumSwapProgram
import org.p2p.solanaj.programs.SerumSwapProgram.dex... | 9 | null | 6 | 23 | 2badf683d824c57654b12ea0c023f96e1a5d0c19 | 29,773 | key-app-android | MIT License |
network-tasks/src/main/java/io/appmetrica/analytics/networktasks/internal/DefaultResponseValidityChecker.kt | appmetrica | 650,662,094 | false | {"Java": 5810866, "C++": 5729793, "Kotlin": 2626120, "Python": 229161, "Objective-C++": 152166, "C": 127185, "Assembly": 59003, "Emacs Lisp": 14657, "Objective-C": 10302, "Starlark": 7767, "Shell": 5746, "Go": 4930, "CMake": 3562, "CSS": 1454, "AppleScript": 1429, "AIDL": 504} | package io.appmetrica.analytics.networktasks.internal
import io.appmetrica.analytics.logger.appmetrica.internal.DebugLogger
import javax.net.ssl.HttpsURLConnection
class DefaultResponseValidityChecker : ResponseValidityChecker {
private val tag = "[DefaultResponseValidityChecker]"
override fun isResponseVal... | 1 | Java | 5 | 54 | 472d3dfb1e09f4e7f35497e5049f53287ccce7d1 | 632 | appmetrica-sdk-android | MIT License |
sample/src/main/java/com/wahidabd/onelibrary/di/features/MovieModule.kt | wahidabd | 705,005,842 | false | {"Kotlin": 201319} | package com.wahidabd.onelibrary.di.features
import com.wahidabd.library.data.libs.ApiService
import com.wahidabd.library.utils.coroutine.handler.ErrorParser
import com.wahidabd.onelibrary.data.movie.MovieDataStore
import com.wahidabd.onelibrary.data.movie.MovieRepository
import com.wahidabd.onelibrary.data.movie.remot... | 1 | Kotlin | 0 | 7 | e4b36cd6bfe6a60540c98aad4308c1dbb812c20a | 1,286 | onelib | MIT License |
src/i_introduction/_1_Java_To_Kotlin_Converter/n01JavaToKotlinConverter.kt | jerome-fosse | 149,761,327 | true | {"Kotlin": 75783, "Java": 4952} | package i_introduction._1_Java_To_Kotlin_Converter
import util.TODO
fun todoTask1(collection: Collection<Int>): Nothing = TODO(
"""
Task 1.
Convert the Java method 'task1' of the class 'JavaCode1' into Kotlin.
In IntelliJ IDEA or Android Studio, you can copy the Java code,
paste it... | 0 | Kotlin | 0 | 0 | e2029254a81d3de7c1ded41aa33a411e75a15dac | 735 | kotlin-koans | MIT License |
libs/tangleLib050/src/main/java/tangle/benchmark/tangleLib050/TangleLib050Fragment.kt | RBusarow | 415,108,675 | false | null | package tangle.benchmark.tangleLib050
import androidx.fragment.app.Fragment
import tangle.fragment.ContributesFragment
import tangle.fragment.FragmentInject
import tangle.fragment.FragmentInjectFactory
import tangle.inject.TangleParam
import javax.inject.Inject
@ContributesFragment(Unit::class)
class TangleLib050Frag... | 0 | Kotlin | 0 | 1 | b271faeb36f8f57977dd2b43d276098e1932f4eb | 360 | tangle-benchmark-project | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/spawns/spawns_13123.plugin.kts | 2011Scape | 578,880,245 | false | {"Kotlin": 8359518, "Dockerfile": 1354} | package gg.rsmod.plugins.content.areas.spawns
spawn_npc(npc = Npcs.ABERRANT_SPECTRE_7801, x = 3292, z = 4369, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Aberrant spectre
spawn_npc(npc = Npcs.ABERRANT_SPECTRE_7801, x = 3301, z = 4370, height = 0, walkRadius = 5, direction = Direction.NOR... | 36 | Kotlin | 138 | 32 | da66bb6d68ebae531ee325b909a6536e798b1144 | 3,335 | game | Apache License 2.0 |
src/jvmTest/kotlin/org/daiv/persister/objectrelational/TestList.kt | henry1986 | 325,808,911 | false | null | package org.daiv.persister.objectrelational
import org.daiv.persister.objectrelational.ReflectionObjectRelationalMapperTest.*
import org.daiv.persister.table.runTest
import org.junit.Test
import kotlin.reflect.KTypeProjection
import kotlin.reflect.full.createType
import kotlin.reflect.full.starProjectedType
import kot... | 0 | Kotlin | 0 | 0 | 4cc3696d448564865ad7e8d6d0475d5a646a4916 | 3,080 | kpersistence | Apache License 2.0 |
app/src/main/java/com/karaketir/coachingapp/StatsActivity.kt | FurkanKaraketir | 568,077,420 | false | {"Kotlin": 723127} | @file:Suppress("DEPRECATION")
package com.karaketir.coachingapp
import android.Manifest
import android.annotation.SuppressLint
import android.content.ContentUris
import android.content.ContentValues
import android.content.pm.PackageManager
import android.database.Cursor
import android.net.Uri
import android.os.*
impo... | 0 | Kotlin | 0 | 0 | 8a594282aa9ce79f4f5455e0842382292b63169d | 39,525 | KTS-Kocluk-Takip-Sistemi | MIT License |
app/src/main/java/tik/prometheus/mobile/models/Farm.kt | Prometheus-Greenhouse | 504,825,726 | false | {"Kotlin": 118687, "Java": 14870} | package tik.prometheus.rest.models
class Farm(
var id: Long? = null,
var region: String? = null,
var areOfFarm: Float? = null,
var numberOfGreenhouse: String? = null,
) {
} | 0 | Kotlin | 0 | 0 | 96a9efdf26088d4839ba86fdbf1b78f960f66564 | 190 | prometheus-mobile | MIT License |
app/src/main/java/kerala/superhero/app/location_tracker/LocationUpdatesService.kt | coronasafe | 367,320,621 | false | null | package kerala.superhero.app.location_tracker
import android.app.*
import android.content.Context
import android.content.Intent
import android.location.Location
import android.os.*
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import com.google.android.gms.location.*
im... | 0 | Kotlin | 4 | 4 | 6d2a50455b63d43d48486e657419e1fef95d1826 | 11,548 | superhero_app | Apache License 2.0 |
src/main/kotlin/de/cprohm/ktwasm/base/Namespace.kt | chmp | 239,595,799 | false | null | package de.cprohm.ktwasm.base
/**
* A collection of definitions that can be imported
*/
interface Namespace {
/**
* Initialize the namespace (e.g., call the start function)
*/
fun init() {
}
/**
* Create a full copy of the namespace
*/
fun clone(): Namespace {
throw ... | 1 | Kotlin | 1 | 5 | 30a177818a501175bde7a512d684315b2cd150b4 | 3,330 | ktwasm | MIT License |
composeApp/src/commonMain/kotlin/ui/components/MediaPlayer.kt | AsterCass | 837,060,761 | false | {"Kotlin": 349499, "Swift": 621} | package ui.components
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
expect fun MediaPlayer(modifier: Modifier, url: String) | 0 | Kotlin | 1 | 6 | 3204d0b598b6113d60a50f08275d904a8ba9db76 | 171 | Tomoyo | MIT License |
kopykat-ksp/src/main/kotlin/at/kopyk/utils/TypeCompileScope.kt | kopykat-kt | 532,883,607 | false | {"Kotlin": 102745, "HTML": 3448} | package at.kopyk.utils
import at.kopyk.LoggerScope
import at.kopyk.poet.className
import at.kopyk.poet.makeInvariant
import at.kopyk.poet.parameterizedWhenNotEmpty
import at.kopyk.utils.lang.orElse
import at.kopyk.utils.lang.takeIfInstanceOf
import com.google.devtools.ksp.closestClassDeclaration
import com.google.devt... | 14 | Kotlin | 16 | 280 | cc8a8ec8be936b4b8bf70193f696e2f07286907d | 11,379 | kopykat | Apache License 2.0 |
app/src/main/java/com/example/univisiontest/di/AppContext.kt | vlasquez | 167,576,379 | false | null | package com.example.univisiontest.di
import javax.inject.Qualifier
@Qualifier
@Retention(AnnotationRetention.RUNTIME)
annotation class AppContext {
} | 0 | Kotlin | 0 | 0 | 76845ed56836dcd23d48e3622705962a719f75c2 | 151 | univisionTest | Apache License 2.0 |
src/main/kotlin/com/riku1227/vrchatlin/data/VRChatSortOptions.kt | riku1227 | 235,975,942 | false | null | package com.riku1227.vrchatlin.data
class VRChatSortOptions {
companion object {
const val POPULARITY = "popularity"
const val CREATED = "created"
const val UPDATED = "updated"
const val ORDER = "order"
const val _CREATED_AT = "_created_at"
const val _UPDATED_AT = "_... | 0 | Kotlin | 0 | 2 | 1a0955432507fdde3bfebabc9c99c3a2e7cad4f0 | 339 | VRChatlin | MIT License |
core/ui/src/main/kotlin/com/adamsmolik/nba/core/ui/util/TextRes.kt | adamsmolik | 724,140,533 | false | {"Kotlin": 161658} | package com.adamsmolik.nba.core.ui.util
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.pluralStringResource
import androidx.compose.ui.res.stringResource
// All variants need to implement equals and hashCode, so Compose can check if the actual text has changed... | 0 | Kotlin | 0 | 0 | 6a4b6412772b6be422ff9b3cb1bf2412bc4a21a7 | 2,791 | android-nba | Apache License 2.0 |
core/ui/src/main/kotlin/com/adamsmolik/nba/core/ui/util/TextRes.kt | adamsmolik | 724,140,533 | false | {"Kotlin": 161658} | package com.adamsmolik.nba.core.ui.util
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.pluralStringResource
import androidx.compose.ui.res.stringResource
// All variants need to implement equals and hashCode, so Compose can check if the actual text has changed... | 0 | Kotlin | 0 | 0 | 6a4b6412772b6be422ff9b3cb1bf2412bc4a21a7 | 2,791 | android-nba | Apache License 2.0 |
app/src/main/java/com/toyibnurseha/lennadialogflow/db/ChatDAO.kt | ToyibNurseha | 362,916,843 | false | null | package com.toyibnurseha.lennadialogflow.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.toyibnurseha.lennadialogflow.models.Chat
@Dao
interface ChatDAO {
@Insert(onConflict = OnConflictStrateg... | 0 | Kotlin | 0 | 0 | 3ae8f53b82ddcf33fc0b4b216a4f77b82b22ab6e | 617 | Chat-Bot-Dialog-Flow | Apache License 2.0 |
src/main/kotlin/com/flohrauer/endurabackend/exercise/Exercise.kt | My-Endura | 857,694,941 | false | {"Kotlin": 63513} | package com.flohrauer.endurabackend.exercise
import com.flohrauer.endurabackend.core.BaseEntity
import com.flohrauer.endurabackend.musclegroup.MuscleGroup
import jakarta.persistence.*
@Entity
@Table(name = "exercise")
class Exercise(
@Column(name = "name")
val name: String,
@Column(name = "description", n... | 0 | Kotlin | 0 | 0 | 3a5a17ac84e12e518875f02a5e3c87842941ccac | 720 | endura-backend | MIT License |
app/src/main/java/com/wisnu/kurniawan/composetodolist/features/login/ui/LoginState.kt | wisnukurniawan | 409,054,048 | false | null | package com.wisnu.kurniawan.composetodolist.features.login.ui
import androidx.compose.runtime.Immutable
@Immutable
data class LoginState(
val email: String = "",
val password: String = "",
val showEmailInvalidError: Boolean = false
)
| 0 | Kotlin | 4 | 73 | 784a7b86014f4d0b3ee0d2055aaa64f731bcbfd6 | 248 | Compose-ToDo | Apache License 2.0 |
app/src/main/java/com/wisnu/kurniawan/composetodolist/features/login/ui/LoginState.kt | wisnukurniawan | 409,054,048 | false | null | package com.wisnu.kurniawan.composetodolist.features.login.ui
import androidx.compose.runtime.Immutable
@Immutable
data class LoginState(
val email: String = "",
val password: String = "",
val showEmailInvalidError: Boolean = false
)
| 0 | Kotlin | 4 | 73 | 784a7b86014f4d0b3ee0d2055aaa64f731bcbfd6 | 248 | Compose-ToDo | Apache License 2.0 |
kairo-serialization/src/main/kotlin/kairo/serialization/ObjectMapperFactory.kt | hudson155 | 836,940,978 | false | {"Kotlin": 554879, "HCL": 1700} | package kairo.serialization
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.MapperFeature
import com.fasterxml.jackson.databind.Module
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.ja... | 0 | Kotlin | 1 | 14 | 8b71e7186f7a39f4d809f424752cd428479851f5 | 4,296 | kairo | Apache License 2.0 |
app/src/main/java/com/robsonribeiroft/detectandhandlepitchaction/PicturesModel.kt | robsonribeiroft | 500,440,131 | false | {"Kotlin": 6937} | package com.robsonribeiroft.detectandhandlepitchaction
data class PicturesModel(
val url: String
) {
companion object {
fun fakeList(): List<PicturesModel> = (0..1024).map {
PicturesModel(
url = "PICTURE Nº$it of the list"
)
}
}
}
| 0 | Kotlin | 0 | 0 | a900199ec35b396832489539432a94c69c57b42f | 300 | PinchDetectToResizeGrid | MIT License |
monarch-language-pack/src/main/kotlin/io/github/dingyi222666/monarch/languages/LanguageLua.kt | dingyi222666 | 757,956,116 | false | {"Kotlin": 3309534} | package io.github.dingyi222666.monarch.languages
import io.github.dingyi222666.monarch.common.*
import io.github.dingyi222666.monarch.loader.dsl.*
import io.github.dingyi222666.monarch.types.IMonarchLanguage
public val LuaLanguage: IMonarchLanguage by lazy {
buildMonarchLanguage {
tokenPostfix = ".lua"
def... | 0 | Kotlin | 0 | 2 | 134f0979102fdba388b98db13893ff333968d603 | 3,046 | monarch-kt | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/swap/interactor/SwapSerializationInteractor.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.swap.interactor
import org.p2p.wallet.infrastructure.transactionmanager.TransactionManager
import org.p2p.wallet.transaction.model.AppTransaction
class SwapSerializationInteractor(
private val transactionManager: TransactionManager
) {
fun sendTransaction(appTransaction: AppTransaction... | 9 | null | 6 | 23 | 2badf683d824c57654b12ea0c023f96e1a5d0c19 | 386 | key-app-android | MIT License |
app/src/main/java/org/p2p/wallet/swap/interactor/SwapSerializationInteractor.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.swap.interactor
import org.p2p.wallet.infrastructure.transactionmanager.TransactionManager
import org.p2p.wallet.transaction.model.AppTransaction
class SwapSerializationInteractor(
private val transactionManager: TransactionManager
) {
fun sendTransaction(appTransaction: AppTransaction... | 9 | null | 6 | 23 | 2badf683d824c57654b12ea0c023f96e1a5d0c19 | 386 | key-app-android | MIT License |
app/src/main/java/com/fei_ke/shanbayx/Binder.kt | fei-ke | 141,151,513 | false | {"Kotlin": 9137} | package com.fei_ke.shanbayx
import android.view.View
import android.widget.TextView
class Binder(private val shortcutView: View, private val views: Array<View>) {
private var curBindView: View? = null
init {
shortcutView.setOnClickListener {
curBindView?.performClick()
}
}
... | 0 | Kotlin | 1 | 0 | f32f0201766c22873d38f03f38f1135cfa1efd87 | 588 | ShanbayX | Apache License 2.0 |
app/src/main/java/com/assentify/sdk/ProcessingRHub/RemoteProcessing.kt | AssentifyLTD | 807,433,944 | false | {"Kotlin": 140371, "Java": 95067} | package com.assentify.sdk.Core.Constants
import android.util.Log
import com.assentify.sdk.Core.Constants.Routes.BaseUrls
import com.assentify.sdk.Models.BaseResponseDataModel
import com.assentify.sdk.Models.parseDataToBaseResponseDataModel
import com.assentify.sdk.ProcessingRHub.RemoteProcessingCallback
import com.a... | 0 | Kotlin | 0 | 0 | cc7479e30090dd7e65c0ebeca983b76784d7f160 | 6,976 | Assentify.SDK.Android | MIT License |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Braces.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics.StrokeCa... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,403 | compose-icons | MIT License |
app/src/main/java/com/fibelatti/photowidget/platform/PhotoDecoder.kt | fibelatti | 709,530,733 | false | {"Kotlin": 348210} | package com.fibelatti.photowidget.platform
import android.content.Context
import android.graphics.Bitmap
import androidx.core.graphics.drawable.toBitmap
import coil.ImageLoader
import coil.request.ErrorResult
import coil.request.ImageRequest
import coil.request.SuccessResult
import dagger.hilt.android.qualifiers.Appli... | 2 | Kotlin | 6 | 98 | dfd70f445c934fdc952fcef0783aa2e2190c61de | 1,309 | photo-widget | Apache License 2.0 |
app/src/main/java/pl/app/deaftitles/view/MyActivity.kt | EbO96 | 152,045,163 | false | null | package pl.app.deaftitles.view
import android.Manifest
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import android.provider.Settings
import android.support.v4.app.ActivityCompa... | 0 | Kotlin | 0 | 0 | cef3a5069e035edf20d462b68f82a7ea5881cea1 | 4,714 | Deaftitles | Apache License 2.0 |
src/main/kotlin/shirates/builder/ScreenBuilderViewModel.kt | ldi-github | 771,507,968 | false | {"Kotlin": 139375, "CSS": 41} | package shirates.builder
import javafx.beans.property.SimpleBooleanProperty
import java.util.prefs.Preferences
class ScreenBuilderViewModel {
val settingsViewModel = SettingsViewModel(this)
val editViewModel = EditViewModel(this)
val previewViewModel = PreviewViewModel(this)
var disabled: Boolean
... | 0 | Kotlin | 0 | 1 | f9ca0b0638897ba20c59a3baefbd4a00216c3627 | 1,930 | shirates-builder | Apache License 2.0 |
app/src/main/java/st235/com/github/seamcarving/presentation/editor/ImageStatus.kt | st235 | 450,792,791 | false | {"Kotlin": 161871} | package st235.com.github.seamcarving.presentation.editor
enum class ImageStatus {
IDLING,
PENDING,
FINISHED
} | 0 | Kotlin | 2 | 6 | 133399ffc67ec0e738b582e66d11bd2fbf8e41ae | 122 | ContentAwarePhotoEditor | MIT License |
app/src/main/java/de/oljg/glac/core/navigation/ui/navigationrail/GlacNavigationRail.kt | Ol-J-G | 768,542,224 | false | {"Kotlin": 980887} | package de.oljg.glac.core.navigation.ui.navigationrail
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.material3.MaterialTheme
import andr... | 0 | Kotlin | 0 | 0 | b3cefafa190eae0aa95f55fc6903e327363c2efc | 2,387 | GLAC | Creative Commons Attribution 4.0 International |
app/src/main/java/com/example/ead_mobile_application__native/screen/ShippingDetailsActivity.kt | LakinduVirajith | 860,762,466 | false | {"Kotlin": 174582} | package com.example.ead_mobile_application__native.screen
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.c... | 0 | Kotlin | 0 | 0 | df0c5ddc70d16cb602e2713a766f2661c09d781d | 5,657 | EAD-Mobile-Application---Native | MIT License |
src/main/kotlin/org/nemwiz/jiracommitmessage/provider/PluginProvider.kt | nemwiz | 301,034,715 | false | null | package org.nemwiz.jiracommitmessage.provider
import com.intellij.openapi.project.Project
import com.intellij.openapi.vcs.changes.LocalChangeList
import com.intellij.openapi.vcs.changes.ui.CommitMessageProvider
import org.nemwiz.jiracommitmessage.services.MyProjectService
class PluginProvider : CommitMessageProvider ... | 0 | Kotlin | 1 | 1 | 0e292cfe3edcec42bc84fa42c6eed34c1542db91 | 770 | jira-commit-message-intellij-plugin | Apache License 2.0 |
data/src/main/java/com/ricknmorty/data/ui_models/EpisodeUIModel.kt | TejasDeshmukh19 | 872,638,641 | false | {"Kotlin": 113426} | package com.ricknmorty.data.ui_models
/**
* Created by <NAME> on 01/10/24.
*/
data class EpisodeUIModel(
val id: Int?,
val name: String?,
val releasedOn: String?,
val code: String?,
val characterIds: List<String>?,
)
| 0 | Kotlin | 0 | 0 | 69c0f9c4571eaba0d21bfc832b28569dbf2226c2 | 241 | RicknMorty-Android | Apache License 2.0 |
src/main/kotlin/io/i101/library/ddd/Specification.kt | thanhtrdang | 106,898,133 | false | null | package io.i101.library.ddd
/**
* A specification, as explained in the DDD book.
*
* Use !, AND, OR for readability.
* Override isSatisfiedBy only, never override !, AND, OR.
*/
interface Specification<T> {
infix fun isSatisfiedBy(obj: T): Boolean
infix fun AND(other: Specification<T>): Specification<T> ... | 0 | Kotlin | 0 | 0 | 76cb4dd7ac1d224a8d02f55dbe3c18836a05727a | 1,008 | ddd-library | MIT License |
dd-sdk-android/src/main/kotlin/com/datadog/android/telemetry/internal/TelemetryEventHandler.kt | DataDog | 219,536,756 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.telemetry.internal
import androidx.annot... | 33 | Kotlin | 39 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 11,165 | dd-sdk-android | Apache License 2.0 |
app/src/main/java/space/narrate/waylan/android/di/AppModule.kt | narrate-co | 171,908,990 | false | null | package space.narrate.waylan.android.di
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.core.qualifier.named
import org.koin.dsl.module
import space.narrate.waylan.android.AppNavigator
import space.narrate.waylan.android.ui.MainViewModel
import space.narrate.waylan.android.ui.auth.AuthViewModel
import ... | 25 | Kotlin | 1 | 14 | c5640fb3bab994fd2c78cabd83fa962fbff75911 | 4,892 | waylan_android | Apache License 2.0 |
androidApp/src/main/kotlin/org/linya/todo/multiplatform/ui/MainActivity.kt | linyaDev | 198,252,998 | false | {"Kotlin": 36585, "Swift": 16494, "Ruby": 622, "Objective-C": 417} | package org.linya.todo.multiplatform.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import com.linya.utils.interfaces.*
import com.linya.utils.ui.RootRouter
import com.linya.utils.ui.Screens
import com... | 0 | Kotlin | 0 | 2 | 9c03d0a9fc5aaea4a7a33c3d2792b3bc39ca255f | 2,444 | mpp_todo | Apache License 2.0 |
app/src/main/java/com/lee/leewanandroid/algorithm/kotin/sort/ExternalSort.kt | Mr1ee | 186,852,345 | false | null | package com.lee.leewanandroid.algorithm.kotin.sort
import com.lee.leewanandroid.algorithm.kotin.sort.interfaces.ISort
import java.util.ArrayList
/**
* 外部排序
*/
class ExternalSort : ISort<Int> {
override fun sort(data: ArrayList<Int>): MutableList<Int> {
TODO("not implemented") //To change body of created... | 1 | null | 1 | 1 | cd2f059083fcaf6b40f264b2a0ba88e545660b39 | 376 | LeeWanAndroid | Apache License 2.0 |
app/src/main/java/com/example/pomo/viewmodel/ToolbarState.kt | simes900 | 449,847,883 | true | {"Kotlin": 20760} | package com.example.pomo.viewmodel
enum class ToolbarState {
NormalViewState,
MultiSelectionState
} | 0 | null | 0 | 0 | 9dbe761617b0aae3a338b782308a13d65811e13f | 110 | Pomo | MIT License |
app/src/main/java/com/google/android/commerce/ui/fragment/BasketFragment.kt | dirceudn | 176,595,915 | false | null | package com.google.android.commerce.ui.fragment
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.fragment.app.Fragment
import androidx... | 0 | Kotlin | 0 | 0 | dcd0251a27862dcb37f0cf4356190e6611df885b | 2,581 | e-commerce | MIT License |
app/src/main/java/com/prerna/newsappkotlin/ui/NewsViewModel.kt | Prernaakumaree | 356,011,312 | false | null | package com.prerna.newsappkotlin.ui
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.prerna.newsappkotlin.model.Article
import com.prerna.newsappkotlin.repository.LocaleRepository
import com.prerna.newsappkotlin.repository.RemoteRepositor... | 0 | Kotlin | 0 | 0 | 5b978217026b703c98bd2d420d6f8139e166af84 | 1,433 | NewsAppKotlin | Apache License 2.0 |
presentation/viewmodels/src/main/java/com/cupcake/viewmodels/login/LoginUiState.kt | The-Cupcake-team | 646,926,125 | false | null | package com.cupcake.viewmodels.login
data class LoginUiState(
var userName: String = "",
var password: String = "",
val isUserNameValid: Boolean = false,
val isPasswordValid: Boolean = false,
val userNameError: String = "",
val passwordError: String = "",
val isLoading: Boolean = false,... | 2 | Kotlin | 1 | 2 | 342b634756ae6a12c7113a5854f66147cae8710d | 322 | Jobs-finder | MIT License |
library_dkplayer/src/main/java/com/dueeeke/videoplayer/render/RenderViewFactory.kt | yunshuipiao | 186,582,408 | false | null | package com.dueeeke.videoplayer.render
import android.content.Context
/**
* 此接口用于扩展自己的渲染View。使用方法如下:
* 1.继承IRenderView实现自己的渲染View。
* 2.重写createRenderView返回步骤1的渲染View。
* 可参考[TextureRenderView]和[TextureRenderViewFactory]的实现。
*/
abstract class RenderViewFactory {
abstract fun createRenderView(context: Context?)... | 73 | null | 12 | 75 | 7036458d3b2d7b64730a9fa03f105460560e97fe | 336 | Potato | Apache License 2.0 |
idea/testData/intentions/removeUnnecessaryParentheses/unnecessaryParentheses8.kt | chashnikov | 14,658,474 | false | null | class C() {
fun get(i: Int) = i + 1
// KT-4513: Unnecessary parenthesis around 'this'
val foo = (th<caret>is)[41]
}
| 0 | null | 1 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 129 | kotlin | Apache License 2.0 |
keb-core/src/main/kotlin/org/kebish/core/module/form/FormElement.kt | keb-kebish | 241,191,216 | false | null | package org.kebish.core.module.form
import org.kebish.core.module.Module
import org.openqa.selenium.WebElement
public abstract class FormElement(scope: WebElement?) : Module(scope) {
protected val formElement: WebElement = scope ?: throw IllegalArgumentException("No root for form element.")
private val SUPP... | 5 | Kotlin | 4 | 16 | bed6d326bc9e018e6afff6f5ca4ebb787f513da8 | 1,773 | keb | MIT License |
compiler/testData/codegen/box/defaultArguments/function/augmentedAssignment.kt | staltz | 49,639,828 | true | {"Java": 16009659, "Kotlin": 12242000, "JavaScript": 177557, "Protocol Buffer": 42440, "HTML": 27393, "Lex": 16598, "ANTLR": 9689, "CSS": 9358, "Groovy": 5566, "Shell": 4638, "Batchfile": 3703, "IDL": 3441} | var result = "Fail"
class A
operator fun A.plusAssign(a: A, s: String = "OK") {
result = s
}
fun box(): String {
A() += A()
return result
}
| 0 | Java | 1 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 155 | kotlin | Apache License 2.0 |
app/src/main/java/de/baumann/quitsmoking/about/AboutFragment.kt | igor-cali | 278,907,597 | true | {"Kotlin": 140960} | package de.baumann.quitsmoking.about
import android.content.Context
import com.danielstone.materialaboutlibrary.MaterialAboutFragment
import com.danielstone.materialaboutlibrary.model.MaterialAboutList
import de.baumann.quitsmoking.about.AboutContent.createMaterialAboutList
class AboutFragment : MaterialAboutFragment... | 0 | null | 0 | 0 | 82bec862eba32816b713bb3f148798f21a25ba5c | 445 | QuitSmoking | RSA Message-Digest License |
src/main/kotlin/me/kvdpxne/dtm/data/repositories/GameArenasRepository.kt | kvdpxne | 666,098,225 | false | {"Kotlin": 364964} | package me.kvdpxne.dtm.data.repositories
import java.util.UUID
import me.kvdpxne.dtm.game.Arena
import me.kvdpxne.dtm.game.Game
/**
* @since 0.1.0
*/
interface GameArenasRepository {
/**
* @param identifier
*
* @since 0.1.0
*/
suspend fun findGameArenasByGameIdentifier(
identifier: UUID
): Li... | 0 | Kotlin | 0 | 2 | c73d1498d92b8077a3e833d81ae947ffb2af4b94 | 395 | destroy-the-monument | Apache License 2.0 |
splash/splash-impl/src/main/kotlin/com/fondesa/manganow/splash/impl/category/CategoryDiskStorageFactoryImpl.kt | fondesa | 129,605,070 | false | null | /*
* Copyright (c) 2019 Fondesa
*
* 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 ... | 0 | Kotlin | 0 | 0 | ccd5a7a7f342bd9b9be54bbedc6cff9545e89c42 | 1,228 | manga-now | Apache License 2.0 |
app/src/main/java/com/example/beneficiaries/data/BeneficiaryDto.kt | cantocass | 852,023,340 | false | {"Kotlin": 35303} | package com.example.beneficiaries.data
import android.os.Parcel
import android.os.Parcelable
open class BeneficiaryDto : Parcelable {
var lastName: String? = null
var firstName: String? = null
var designationCode: String? = null
var beneType: String? = null
var socialSecurityNumber: String? = null... | 0 | Kotlin | 0 | 0 | 954cd47af4b192747bcfd636b8c935639dd8368d | 8,679 | beneficiaries | MIT License |
src/main/kotlin/com/cosmic_jewelry/common/datagen/GemLootTableProvider.kt | AugustoMegener | 807,287,719 | false | {"Kotlin": 45402} | package com.cosmic_jewelry.common.datagen
import com.cosmic_jewelry.common.core.gem.feature.GemOre
import com.cosmic_jewelry.common.registry.ItemRegistry.rawGemItem
import net.minecraft.core.HolderLookup
import net.minecraft.data.PackOutput
import net.minecraft.data.loot.BlockLootSubProvider
import net.minecraft.data.... | 0 | Kotlin | 0 | 0 | c1053578a9cf00c69c6849d7a3a568763b30c920 | 1,445 | cosmicjewlery | MIT License |
app/src/main/java/com/oceanbrasil/ocean_android_introducao_13_e_15_03_2023/MainActivity.kt | paulosalvatore | 613,600,847 | false | null | package com.oceanbrasil.ocean_android_introducao_13_e_15_03_2023
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
class MainActivity : AppCompatActivity() {
override fun... | 0 | Kotlin | 1 | 0 | 057afede912eea1f4adeb50e7d8df7d4ca405e8b | 2,263 | Ocean_Android_Introducao_13_e_15_03_2023 | MIT License |
app/src/main/java/com/example/disneycharactersapp/ui/home/HomeFragment.kt | sahinkaradeniz | 609,536,462 | false | null | package com.example.disneycharactersapp.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widge... | 0 | Kotlin | 0 | 2 | a5134ef29da949929365f0b622b77d0cc489e952 | 2,854 | DisneyCharactersApp | MIT License |
src/main/kotlin/com/hyphenated/scotus/config/InMemoryUserDetailsService.kt | jacobhyphenated | 252,812,586 | false | null | package com.hyphenated.scotus.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Profile
import org.springframework.security.core.userdetails.User
import org.springframework.security.core.userdetails.UserDe... | 0 | Kotlin | 0 | 0 | b2c4fc9402da229b5d37d3c4ba3f29d92fec1516 | 872 | scotus-server | The Unlicense |
net-core/src/main/kotlin/packets/reflection/Implement.kt | that-one-weird-dev | 356,703,141 | false | {"Kotlin": 40239} | package packets.reflection
annotation class Implement
| 0 | Kotlin | 0 | 1 | 2eb36f2c55045c1b331c0e78976d718403abb388 | 55 | GdxGame | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.