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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/scene/CanvasLayersComposeScene.skiko.kt | VexorMC | 838,305,267 | false | {"Kotlin": 104238872, "Java": 66757679, "C++": 9111230, "AIDL": 628952, "Python": 306842, "Shell": 199496, "Objective-C": 47117, "TypeScript": 38627, "HTML": 28384, "Swift": 21386, "Svelte": 20307, "ANTLR": 19860, "C": 15043, "CMake": 14435, "JavaScript": 6457, "GLSL": 3842, "CSS": 1760, "Batchfile": 295} | /*
* Copyright 2023 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 applica... | 0 | Kotlin | 0 | 2 | 9730aa39ce1cafe408f28962a59b95b82c68587f | 22,609 | compose | Apache License 2.0 |
data/remote/lists/src/commonTest/kotlin/dev/alvr/katana/data/remote/lists/repositories/ListsRepositoryTest.kt | alvr | 446,535,707 | false | {"Kotlin": 458492, "Swift": 594} | package dev.alvr.katana.data.remote.lists.repositories
import app.cash.turbine.test
import arrow.core.left
import arrow.core.right
import dev.alvr.katana.common.tests.invoke
import dev.alvr.katana.common.tests.shouldBeLeft
import dev.alvr.katana.common.tests.shouldBeRight
import dev.alvr.katana.data.remote.lists.sourc... | 4 | Kotlin | 0 | 49 | c07257f57ba171d5486d9d56cffd8354f84d484f | 3,639 | katana | Apache License 2.0 |
app/src/test/java/RabbitTest.kt | Leon406 | 381,644,086 | false | null | import java.nio.charset.StandardCharsets
import me.leon.encode.base.BASE64_DICT
import me.leon.encode.base.base64
fun main() {
// http://cdn.esjson.com/esjson/js/encryencode/rabbit.js?v=202003311412
// test.test(new Rabbit());
// 小于128位,不足 补 o
val key = "6666666666666666".toByteArray(StandardCha... | 1 | Kotlin | 57 | 242 | 176db4f550a37c7acfd54a302a276b8617b645cf | 1,279 | ToolsFx | ISC License |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/NoAdultContentOutlined.kt | karakum-team | 387,062,541 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/NoAdultContentOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val NoAdultContentOutlined: SvgIconComponent
| 0 | Kotlin | 3 | 31 | b23d946ab3392e7a1ec017176ae48b952334fc75 | 226 | mui-kotlin | Apache License 2.0 |
app/src/main/java/com/example/movplayv3/data/model/tvshow/TvShow.kt | Aldikitta | 514,876,509 | false | {"Kotlin": 850016} | package com.example.movplayv3.data.model.tvshow
import com.example.movplayv3.data.model.DetailPresentable
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class TvShow(
override val id: Int,
@Json(name = "poster_path")
override val posterPath: Stri... | 1 | Kotlin | 12 | 77 | 8344e2a5cf62289c2b56494bf4ecd5227e26de31 | 1,067 | MovplayV3 | Apache License 2.0 |
data/source/remote/src/main/java/com/xently/data/source/remote/di/NetworkModule.kt | morristech | 376,544,553 | false | null | package com.xently.data.source.remote.di
import android.content.SharedPreferences
import com.xently.common.di.qualifiers.EncryptedSharedPreference
import com.xently.common.di.qualifiers.retrofit.RequestHeadersInterceptor
import com.xently.common.utils.JSON_CONVERTER
import com.xently.common.utils.TOKEN_VALUE_SHARED_PR... | 0 | null | 0 | 0 | 779dd3f9fbdf7dd98501c76b5e686aa69f536d5d | 3,097 | news | Apache License 2.0 |
MoonGetter-YourUpload/src/main/java/com/ead/lib/moongetter/yourupload/factory/YourUploadFactory.kt | darkryh | 784,974,283 | false | {"Kotlin": 181189} | package com.ead.lib.moongetter.yourupload.factory
import com.ead.lib.moongetter.models.Server
import com.ead.lib.moongetter.yourupload.YourUpload
object YourUploadFactory : Server.Factory {
override val belongedClass: Class<out Server> = YourUpload::class.java
override val pattern: String = """https?://.*your... | 0 | Kotlin | 1 | 3 | 512014603726b9df9a6e04def0a41caedfc40a44 | 345 | MoonGetter | MIT License |
data/src/main/java/com/sobhanmp/data/repository/NoteRepositoryImpl.kt | Sobhan-mp | 576,544,174 | false | {"Kotlin": 24684} | package com.sobhanmp.data.repository
import com.sobhanmp.data.local.dao.NoteDao
import com.sobhanmp.data.local.db.NoteDatabase
import com.sobhanmp.data.mapper.toNoteEntity
import com.sobhanmp.data.mapper.toNoteModel
import com.sobhanmp.domain.model.NoteModel
import com.sobhanmp.domain.repository.NoteRepository
import ... | 0 | Kotlin | 0 | 1 | bdacbc12e089257868594393b0a4a40398829ea3 | 2,306 | SimpleNoteApp | Apache License 2.0 |
feature/schedule/src/commonMain/kotlin/club/nito/feature/schedule/detail/ScheduleDetailScreenUiState.kt | 2rabs | 711,156,470 | false | {"Kotlin": 295089, "Swift": 29338, "Shell": 1287, "HTML": 269, "Makefile": 246} | package club.nito.feature.schedule.detail
import club.nito.core.common.NitoDateFormatter
import club.nito.core.domain.model.ParticipantSchedule
import club.nito.core.model.FetchMultipleContentResult
import club.nito.core.model.FetchSingleContentResult
import club.nito.core.model.participant.ParticipantStatus
import cl... | 28 | Kotlin | 0 | 2 | 1de250cab39787072a28234a6b3ac1ce32db6036 | 770 | nito-app | MIT License |
mobile/src/main/java/rs/readahead/washington/mobile/views/adapters/reports/ReportsFilesRecyclerViewAdapter.kt | Horizontal-org | 193,379,924 | false | {"Java": 1621257, "Kotlin": 1441445} | package rs.readahead.washington.mobile.views.adapters.reports
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.core.content.res.ResourcesCompat
import androidx.recycler... | 16 | Java | 17 | 55 | 5dd19f8c9a810c165d2d8ec8947cc9d5d4620bab | 5,307 | Tella-Android | Apache License 2.0 |
defitrack-rest/defitrack-balance/src/main/java/io/defitrack/balance/l1/AvaxBalanceService.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.balance.l1
import io.defitrack.balance.BalanceService
import io.defitrack.balance.TokenBalance
import io.defitrack.common.network.Network
import io.defitrack.evm.contract.BlockchainGatewayProvider
import io.defitrack.token.ERC20Resource
import org.springframework.stereotype.Service
@Service
class... | 16 | Kotlin | 6 | 5 | e4640223e69c30f986b8b4238e026202b08a5548 | 739 | defi-hub | MIT License |
simple/src/main/kotlin/io/nichijou/oops/simple/App.kt | iota9star | 148,626,401 | false | null | package io.nichijou.oops.simple
import android.app.Application
import com.squareup.leakcanary.LeakCanary
class App : Application() {
override fun onCreate() {
super.onCreate()
LeakCanary.install(this)
}
}
| 0 | Kotlin | 1 | 11 | 81cfcfe281cd659e07c14defcafbcaee19cfed19 | 219 | oops-android-kt | Apache License 2.0 |
app/src/main/java/com/cornellappdev/scoop/ui/viewmodel/PostScreenViewModel.kt | cuappdev | 453,555,762 | false | null | package com.cornellappdev.scoop.ui.viewmodel
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.cornellappdev.scoop.data.models.Ride
import kotlinx.coroutines.launch
import java.io.IOException
class PostScreenViewModel() : ViewModel()... | 6 | Kotlin | 0 | 0 | ad0fb09cda1bf2b9c0cbcd6382c9fdb9190dca52 | 948 | scoop-android | MIT License |
android/app/src/main/kotlin/com/example/vaccine/MainActivity.kt | AbhishekBhamare | 367,886,822 | false | {"Dart": 25038, "HTML": 1985, "CSS": 709, "Swift": 404, "Kotlin": 124, "Objective-C": 38} | package com.example.vaccine
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 2 | 2671bf2ac71b22caef3f88198a7751ddd39848df | 124 | vaccine_center_tracker_app_in_flutter | MIT License |
wearos/src/main/kotlin/com/boswelja/smartwatchextensions/extensions/ui/ExtensionsScreen.kt | boswelja | 103,805,743 | false | {"Kotlin": 496889} | package com.boswelja.smartwatchextensions.extensions.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runti... | 11 | Kotlin | 0 | 25 | ec7e9ad4c98e18a9a4b5c07f1d39f6c0b1fbfd65 | 2,959 | SmartwatchExtensions | Apache License 2.0 |
ParkingPermitApp/app/src/main/java/com/example/parkingpermitapp/data/BitmapFunctions.kt | ZeroTolerance225 | 789,532,216 | false | {"Kotlin": 127055, "HTML": 125618, "Python": 62253, "Java": 56037, "CSS": 10518, "Dockerfile": 217} | package com.example.parkingpermitapp.data
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.ImageFormat
import android.graphics.Matrix
import android.graphics.Paint
import android.graphics.Rect
import android.graphi... | 0 | Kotlin | 0 | 0 | 6895e28195b37cf8b6d6fda47a61c25bdece67aa | 4,203 | Capstone-License-Plate-Reader | Microsoft Public License |
app/src/main/java/com/gdscedirne/toplan/data/di/GenerativeModelModule.kt | meetOzan | 752,327,037 | false | {"Kotlin": 373416} | package com.gdscedirne.toplan.data.di
import com.gdscedirne.toplan.BuildConfig
import com.gdscedirne.toplan.common.Constants.GEMINI_MODEL
import com.google.ai.client.generativeai.GenerativeModel
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
im... | 0 | Kotlin | 0 | 2 | dbb909a9bcfc30d153866f83d0439142cd86a236 | 644 | TopLAN | MIT License |
src/main/kotlin/dev/rakiiii/healthycoroutines/containers/SimpleDeferredImpl.kt | Rakiiii | 866,412,180 | false | {"Kotlin": 137712} | /*
* Copyright 2024-today <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 | 0 | 0 | 64889ae99d1f6c8642a58a9c70befad2dbdedd7d | 1,453 | HealthyCoroutines | Apache License 2.0 |
android-app/src/main/java/by/iba/sbs/tools/DownloadManager.kt | lev4ik911 | 309,679,864 | false | null | package by.iba.sbs.tools
import android.content.Context
import android.content.ContextWrapper
import android.graphics.Bitmap
import android.net.Uri
import android.os.Handler
import android.os.Message
import by.iba.sbs.library.model.Guideline
import by.iba.sbs.library.model.Step
import com.bumptech.glide.Glide
import c... | 0 | Kotlin | 0 | 0 | 86e909810e147cf138c0eae4af874c28b52b0c6c | 3,973 | SBS_JB | Apache License 2.0 |
app/src/main/java/com/mospolytech/mospolyhelper/domain/schedule/repository/TeacherListRepository.kt | tonykolomeytsev | 341,524,793 | true | {"Kotlin": 646693} | package com.mospolytech.mospolyhelper.domain.schedule.repository
import com.mospolytech.mospolyhelper.data.schedule.local.TeacherListLocalDataSource
import com.mospolytech.mospolyhelper.data.schedule.remote.TeacherListRemoteDataSource
interface TeacherListRepository {
suspend fun getTeacherList(): Map<String, Str... | 0 | null | 0 | 0 | 379c9bb22913da1854f536bf33e348a459db48b9 | 326 | mospolyhelper-android | MIT License |
src/main/kotlin/net/kankantari/ojima/scores/Token.kt | Nodoka4318 | 820,824,693 | false | {"Kotlin": 40357} | package net.kankantari.ojima.scores
class Token {
var type: EnumTokenType;
var length: Float;
constructor(type: EnumTokenType, length: Float) {
this.type = type;
this.length = length;
}
} | 0 | Kotlin | 0 | 0 | 2cab4530f7e33431999aafaf7ebf5291a018e935 | 221 | Ojima | MIT License |
src/main/kotlin/br/com/fabiofiorita/restapi/controller/RespostaController.kt | FabioFiorita | 626,425,405 | false | null | package br.com.fabiofiorita.restapi.controller
import br.com.fabiofiorita.restapi.model.Resposta
import br.com.fabiofiorita.restapi.service.RespostaService
import io.swagger.v3.oas.annotations.security.SecurityRequirement
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.an... | 0 | Kotlin | 0 | 0 | 78a9c395cf1614164640e5c9e7d08042a3b2347a | 771 | Kotlin-REST-API | MIT License |
native/swift/sir-light-classes/src/org/jetbrains/sir/lightclasses/nodes/SirInitFromKtSymbol.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78020897, "Java": 6696240, "Swift": 4062767, "C": 2609482, "C++": 1967339, "Objective-C++": 169966, "JavaScript": 135932, "Python": 48402, "Shell": 34800, "TypeScript": 22800, "Lex": 18369, "Groovy": 17400, "Objective-C": 15578, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "EJS": 5241, "Dockerfile": 5136... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.sir.lightclasses.nodes
import org.jetbrains.kotlin.analysis.api.KtAnalysisSession
impor... | 176 | Kotlin | 5601 | 47,397 | a47dcc227952c0474d27cc385021b0c9eed3fb67 | 2,082 | kotlin | Apache License 2.0 |
android/src/main/java/io/github/ackeecz/extensions/android/FragmentExtensions.kt | AckeeCZ | 130,711,681 | false | null | package io.github.ackeecz.extensions.android
import android.os.Bundle
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
import androidx.annotation.IntRange
import androidx.fragment.app.Fragment
// Extensions for [Fragment] class
/**
* Set arguments to fragment and return current instance
*/
i... | 1 | Kotlin | 0 | 13 | fc56c5c9aba5582f203334a6ab09b198cdc9596c | 1,214 | kotlin-extensions | Apache License 2.0 |
app/src/main/java/com/mxalbert/compose/textfield/ui/demo/TextLengthFilter.kt | mxalbert1996 | 689,564,694 | false | {"Kotlin": 43197} | package com.mxalbert.compose.textfield.ui.demo
import android.icu.text.BreakIterator
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.TextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
i... | 0 | Kotlin | 0 | 4 | 52f3a3e14115dffccda5978de6f25300c7efdc82 | 3,237 | DroidKaigi-2023-TextField | MIT License |
plugin-enclave-gradle/src/main/kotlin/com/r3/conclave/plugin/enclave/gradle/BuildJarObject.kt | R3Conclave | 526,690,075 | false | null | package com.r3.conclave.plugin.enclave.gradle
import org.gradle.api.GradleException
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.OutputFile
import org.gradle.internal.os.OperatingSystem
import javax.inject.Inj... | 0 | C++ | 8 | 41 | 9b49a00bb33a22f311698d7ed8609a189f38d6ae | 1,750 | conclave-core-sdk | Apache License 2.0 |
modules/reconciler/src/main/kotlin/org/veupathdb/vdi/lib/reconciler/ReconcilerInstance.kt | VEuPathDB | 575,990,672 | false | {"Kotlin": 601562, "Java": 211932, "RAML": 63444, "Makefile": 1936, "Dockerfile": 1001, "Shell": 423} | package org.veupathdb.vdi.lib.reconciler
import org.apache.logging.log4j.kotlin.logger
import org.veupathdb.vdi.lib.common.field.DatasetID
import org.veupathdb.vdi.lib.common.field.UserID
import org.veupathdb.vdi.lib.common.model.VDIReconcilerTargetRecord
import org.veupathdb.vdi.lib.common.model.VDISyncControlRecord
... | 26 | Kotlin | 0 | 0 | 0d8fadabb5eacbcdd17ca1305122655ce9d6af63 | 8,135 | vdi-service | Apache License 2.0 |
app/src/main/java/com/example/recycleview/place/PlacesResponse.kt | sidkiamri | 733,158,336 | false | {"Kotlin": 113149} | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 0 | 9bf93bd95847eb157aa8d9df6edea0ef9e54c3ca | 1,290 | SearchAndRecycle-Android | MIT License |
app/src/androidTest/java/com/yatik/newsworld/utils/TestConstants.kt | yatiksihag01 | 603,809,213 | false | null | package com.yatik.newsworld.utils
import com.yatik.newsworld.models.Article
import com.yatik.newsworld.models.Source
class TestConstants {
companion object {
val SAMPLE_ARTICLE_1 = Article(null, "authorName", "contentName",
"descriptionName", "2023-02-16T10:30:00Z",
Source("123",... | 0 | Kotlin | 0 | 0 | 3881c91c595b7b2a043814aef87904da54612700 | 1,103 | News-World | Apache License 2.0 |
src/main/kotlin/org/tjur/simplestatemachine/SimpleStateMachine.kt | tjur-org | 363,487,768 | false | null | package org.tjur.simplestatemachine
import java.util.*
import java.util.concurrent.BlockingQueue
import java.util.concurrent.LinkedBlockingQueue
import kotlin.collections.HashMap
import kotlin.reflect.KClass
import kotlin.reflect.full.createInstance
open class SimpleStateMachine(private val initialState: KClass<*>) :... | 0 | Kotlin | 0 | 0 | 0ff115a85d3f14a2b8274b719dc70a7dae15dca1 | 4,534 | simplestatemachine | MIT License |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/mpp/publication/MppPublicationCompatibilityIT.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.mpp.publication
import org.gradle.api.JavaVersion
import org.gradle.util.... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 9,310 | kotlin | Apache License 2.0 |
framework/src/main/kotlin/com/github/iipekolict/knest/annotations/properties/Query.kt | IIPEKOLICT | 547,946,181 | false | null | package com.github.iipekolict.knest.annotations.properties
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.VALUE_PARAMETER)
annotation class Query(val name: String = "") | 0 | Kotlin | 0 | 0 | 1ad45e476de6972785f97000067a3112ccf1595f | 187 | knest | MIT License |
app/src/main/java/com/mathroule/sample/room/database/entity/Book.kt | mathroule | 275,557,783 | false | null | package com.mathroule.sample.room.database.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey
import com.mathroule.sample.room.database.entity.User
@Entity(
tableName = "book",
foreignKeys = [
ForeignKey(
entit... | 0 | Kotlin | 0 | 0 | b895c177e8908608b1c8b91b325d28a8760711a4 | 675 | room-delete-entity-sample | MIT License |
app/src/main/java/ru/skillbox/humblr/utils/State.kt | MuratTablyldy | 621,417,426 | false | null | package ru.skillbox.humblr.utils
import kotlinx.coroutines.flow.MutableStateFlow
object State {
private var state: StateF? = null
fun getInstance(): StateF {
if (state == null) {
state = StateF()
}
return state!!
}
class StateF {
val expired = MutableStateF... | 0 | Kotlin | 0 | 0 | a89d727ce273e42984cb76ef5b2ea98eca830019 | 393 | Humblr | Apache License 2.0 |
src/dynamic_programming/problems/Knapsack-01.kt | bddesai | 510,888,267 | false | {"Kotlin": 96319, "Java": 60624} | package problems
import kotlin.math.max
fun main() {
val profits = intArrayOf(2, 3, 1, 4)
val weights = intArrayOf(4, 5, 3, 7)
val capacity = 5
println("Ans = ${solveKnapsack(profits, weights, capacity)}")
}
fun solveKnapsack(profits: IntArray, weights: IntArray, capacity: Int): Int {
return kna... | 0 | Kotlin | 0 | 0 | 8d99b9b7c61698119db8e50892a52145ad3ecae0 | 895 | LeetCode-Kotlin | MIT License |
app/src/main/java/com/acutecoder/contacts/adapter/OnNumberClickListener.kt | Bhuvaneshw | 648,780,492 | false | null | package com.acutecoder.contacts.adapter
import com.acutecoder.contacts.contact.Contact
/**
* Created by Bhuvaneshwaran
* on 1:24 PM, 6/4/2023
*
* @author AcuteCoder
*/
fun interface OnNumberClickListener {
fun onClick(number: String)
} | 0 | Kotlin | 0 | 0 | 2b2a5363832e5724bcc85b3f18c5e78fda56fc38 | 248 | Contacts | MIT License |
kotlin-extensions/src/main/java/com/github/ramonrabello/opencv/android/ktx/MatExtensions.kt | linkedopenknowledge | 282,299,556 | true | {"Kotlin": 3532} | package com.github.ramonrabello.opencv.android.ktx
import android.graphics.Bitmap
import org.opencv.android.Utils
import org.opencv.core.CvType
import org.opencv.core.Mat
import org.opencv.core.Size
import org.opencv.imgproc.Imgproc
/**
* Converts [Mat] to gray scale channel.
* @param bitmap The [Bitmap] to be conv... | 0 | null | 0 | 0 | 4a103a886b4079be1af63cfab4efef7ea112ca7f | 3,252 | opencv-android-ktx | Apache License 2.0 |
src/commonMain/kotlin/com/shimmermare/stuffiread/ui/components/layout/PopupContent.kt | Shimmermare | 605,765,511 | false | null | package com.shimmermare.stuffiread.ui.components.layout
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compos... | 9 | Kotlin | 0 | 0 | d5ec80f35d8f6aa0bdd9e532350f3e1b8c79605d | 988 | StuffIRead | MIT License |
backend/src/main/kotlin/it/unicam/cs/pawm/routing/AuthenticationRouting.kt | Fedcmm | 608,251,161 | false | null | package it.unicam.cs.pawm.routing
import com.auth0.jwt.interfaces.DecodedJWT
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.util.date.*
import io.ktor.util.pipeline.*
import it.unicam.cs.pawm.data... | 0 | Kotlin | 0 | 0 | 3e9cb621bc1a5250fcc03b9e63657a00aeaca5d9 | 4,227 | ST1121-ProgrammazioneWebMobile | MIT License |
app/src/main/java/com/dhirajgupta/currencies/fragment/AmountInputFragment.kt | dhiraj | 200,731,659 | false | null | package com.dhirajgupta.currencies.fragment
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import androidx.core.content.ContextCom... | 0 | Kotlin | 0 | 0 | 1bcd92305b959e3f7896ff3aaecd9ffa21469d73 | 3,168 | currencies | MIT License |
app/src/main/java/com/example/summary_logger/database/room/CurrentDrawerDao.kt | noti-summary | 544,959,036 | false | null | package com.example.summary_logger.database.room
import androidx.room.*
import com.example.summary_logger.model.CurrentDrawer
@Dao
interface CurrentDrawerDao {
@Query("SELECT notificationId FROM current_drawer_table")
fun getAll(): List<String>
@Query("SELECT DISTINCT packageName FROM current_drawer_tab... | 1 | Kotlin | 0 | 1 | e6b1ab22836773a201c261330ab02d7f74d5cc3f | 1,179 | noti-summary-logger | MIT License |
shared/core/util/src/commonMain/kotlin/com/thomaskioko/tvmaniac/core/util/helper/DateUtilHelper.kt | c0de-wizard | 361,393,353 | false | null | package com.thomaskioko.tvmaniac.core.util.helper
import com.thomaskioko.tvmaniac.core.util.DateUtil
interface DateUtilHelper {
fun getTimestampMilliseconds(): Long
}
internal class DateUtilHelperImpl : DateUtilHelper {
override fun getTimestampMilliseconds(): Long = DateUtil.getTimestampMilliseconds()
} | 3 | Kotlin | 10 | 88 | e613080658265c2cb8bb184c88d2057fe011e58f | 316 | tv-maniac | Apache License 2.0 |
app/src/main/java/com/example/potterguide/webclient/model/ItemLivroResposta.kt | DevLeonardoTissi | 557,347,534 | false | {"Kotlin": 74998} | package com.example.potterguide.webclient.model
import com.example.potterguide.model.Livro
import com.example.potterguide.model.VolumeInfo
class ItemLivroResposta(
private val volumeInfo: VolumeInfo
) {
val livro: Livro
get() = Livro(
titulo = volumeInfo.title?.lowercase()?.capitalize() ?... | 0 | Kotlin | 0 | 2 | 9ce1b84a45b204967fdf553f6ce1bea7c89b11a0 | 814 | PotterGuide | Apache License 2.0 |
kalexa-model/src/main/kotlin/com/hp/kalexa/model/directive/ElicitSlotDirective.kt | HPInc | 164,478,295 | false | null | /*
* Copyright 2018 HP Development Company, L.P.
* SPDX-License-Identifier: MIT
*/
package com.hp.kalexa.model.directive
import com.fasterxml.jackson.annotation.JsonTypeName
import com.hp.kalexa.model.Intent
@JsonTypeName("Dialog.ElicitSlot")
class ElicitSlotDirective(
val updatedIntent: Intent? = null,
v... | 0 | Kotlin | 1 | 17 | e6674eeb24c255aef1859a62a65b805effdc9676 | 368 | kalexa-sdk | MIT License |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/RuleFolderTwoTone.kt | karakum-team | 387,062,541 | false | {"Kotlin": 3058356, "TypeScript": 2249, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/RuleFolderTwoTone")
package mui.icons.material
@JsName("default")
external val RuleFolderTwoTone: SvgIconComponent
| 0 | Kotlin | 5 | 35 | f8b65644caf9131e020de00a02718f005a84b45d | 198 | mui-kotlin | Apache License 2.0 |
app/src/main/java/org/openobd2/core/logger/ui/graph/Colors.kt | tzebrowski | 326,375,780 | false | null | package org.openobd2.core.logger.ui.graph
import java.util.*
class Colors {
private val recycle: Stack<Int> = Stack()
private val colors: Stack<Int> = Stack()
val color: Int
get() {
if (colors.size === 0) {
while (!recycle.isEmpty()) colors.push(recycle.pop())
... | 0 | Kotlin | 0 | 2 | 827d9a628cc9fae2616ab437db55edf07b7d0af1 | 1,108 | AlfaDataLogger | Apache License 2.0 |
app/src/main/java/org/openobd2/core/logger/ui/graph/Colors.kt | tzebrowski | 326,375,780 | false | null | package org.openobd2.core.logger.ui.graph
import java.util.*
class Colors {
private val recycle: Stack<Int> = Stack()
private val colors: Stack<Int> = Stack()
val color: Int
get() {
if (colors.size === 0) {
while (!recycle.isEmpty()) colors.push(recycle.pop())
... | 0 | Kotlin | 0 | 2 | 827d9a628cc9fae2616ab437db55edf07b7d0af1 | 1,108 | AlfaDataLogger | Apache License 2.0 |
app/src/main/java/com/example/midtermapp/ScoreRepository.kt | vidyakethineni | 731,106,205 | false | {"Kotlin": 22988} | package com.example.midtermapp
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
class ScoreRepository(private val dao: ScoreDao) {
suspend fun getAllScores() = withContext(Dispatchers.IO) {dao.getAll()}
val allScoresLD = dao.getAllScores()
fun getScoreByUser(userName:String)... | 0 | Kotlin | 0 | 0 | 018dbeaf6e18d56bf1defc47a26d3f599db9885d | 587 | MidtermApp | Apache License 2.0 |
app/src/main/java/com/robsonribeiroft/chuckjokes/base_presentation/LiveDataXt.kt | robsonribeiroft | 528,543,321 | false | {"Kotlin": 26161} | package com.robsonribeiroft.chuckjokes.core
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.robsonribeiroft.chuckjokes.base_presentation.UIState
import com.robsonribeiroft.chuckjokes.base_presentation.UIState.*
fun <T> MutableLiveData<UI... | 0 | Kotlin | 0 | 0 | d2794db2877855e06af462111f5cf723369017fb | 989 | ChuckJokes | MIT License |
player/events/src/test/kotlin/com/tidal/sdk/player/events/util/ActiveMobileNetworkTypeTest.kt | tidal-music | 806,866,286 | false | {"Kotlin": 1775374, "Shell": 9881, "Python": 7380, "Mustache": 911} | package com.tidal.sdk.player.events.util
import android.net.ConnectivityManager
import android.net.NetworkInfo
import assertk.assertThat
import assertk.assertions.isEmpty
import assertk.assertions.isEqualTo
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Test
import org.mockito.kotlin.doReturn
impo... | 27 | Kotlin | 0 | 23 | 1f654552133ef7794fe9bb7677bc7fc94c713aa3 | 1,505 | tidal-sdk-android | Apache License 2.0 |
data/src/main/kotlin/com/lukelorusso/data/net/api/ColorApi.kt | lukelorusso | 277,556,469 | false | {"Kotlin": 177484} | package com.lukelorusso.data.net.api
import com.lukelorusso.data.net.RetrofitFactory
import com.lukelorusso.data.net.dto.ColorResponseDTO
import io.reactivex.rxjava3.core.Single
import retrofit2.http.GET
import retrofit2.http.Query
interface ColorApi {
@GET("colorblindness.php")
fun getColor(
@Query(... | 0 | Kotlin | 2 | 4 | 932fe4a62057ae1cb43e9c249e819a2b3c69b375 | 600 | ColorBlindClickAndroid | Apache License 2.0 |
app/src/main/java/com/smd/surmaiya/adapters/TopSongsAdapter.kt | AhmadHassan71 | 786,394,928 | false | {"Kotlin": 408430, "Java": 347} | package com.smd.surmaiya.adapters
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
impor... | 0 | Kotlin | 0 | 4 | 53bff924bffca89674c39c8ede66b62fb8318f00 | 6,996 | Surmaiya | MIT License |
increase-kotlin-core/src/test/kotlin/com/increase/api/client/IncreaseClientTest.kt | Increase | 614,596,742 | false | {"Kotlin": 15202562, "Shell": 1257, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
package com.increase.api.client
class IncreaseClientTest
| 0 | Kotlin | 0 | 2 | 7fddd86f07c8ab2da78a786c60ea6a0ef93d099a | 113 | increase-kotlin | Apache License 2.0 |
android/src/main/kotlin/com/cloudwebrtc/webrtc/TrackRepository.kt | krida2000 | 510,302,729 | false | null | package com.cloudwebrtc.webrtc
import com.cloudwebrtc.webrtc.proxy.MediaStreamTrackProxy
import java.lang.ref.WeakReference
/**
* Repository for all the [MediaStreamTrackProxy]s.
*
* All created in the `flutter_webrtc` [MediaStreamTrackProxy]s will be stored here under weak
* references. So if, a [MediaStreamTrac... | 0 | Rust | 0 | 0 | 146467b24dd16a2786c3843f773cd08da68bc83c | 1,176 | webrtc | MIT License |
app/src/main/java/tech/ijkzen/viewtooltip/ViewPagerActivity.kt | ijkzen | 293,233,691 | false | null | package tech.ijkzen.viewtooltip
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.LayoutInflater
import tech.ijkzen.viewtooltip.databinding.ActivityViewPagerBinding
class ViewPagerActivity : AppCompatActivity() {
private lateinit var mBinding: ActivityViewPagerBinding
... | 0 | Kotlin | 0 | 0 | 7e92d8f1f700ecc8adb29cb9f135db9ac07a3aee | 611 | ViewToolTip | Apache License 2.0 |
app/src/main/java/com/realllydan/bettertimer/Time.kt | gitryder | 327,275,756 | false | {"Kotlin": 8453} | package com.realllydan.bettertimer
import java.util.*
/**
* # Time
*
* `Time` is a Kotlin object that provides a utility method [format] which formats milliseconds as a `String`
*
* ## Example:
* Example formatting 10 minutes in milliseconds as a string:
*
* > ``val tenMinutesInMilliseconds = 600000L``
*
* ... | 0 | Kotlin | 0 | 4 | 1ecdbf2e15f5b93e92573a23d970aefe6023aaa8 | 1,119 | better-timer | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/SafeAdapter.kt | LongWen0 | 474,322,068 | true | {"Kotlin": 2822516, "Shell": 2039, "Ruby": 1350} | package io.horizontalsystems.bankwallet.core.adapters
import io.horizontalsystems.bankwallet.core.*
import io.horizontalsystems.bankwallet.entities.AccountType
import io.horizontalsystems.bankwallet.entities.SyncMode
import io.horizontalsystems.bankwallet.entities.Wallet
import io.horizontalsystems.bankwallet.entities... | 0 | null | 0 | 0 | 1fca1da9664a35186c40221d2b80f3a3802804d7 | 4,902 | SafeWallet-android | MIT License |
composeApp/shared/src/commonMain/kotlin/shared/utils/DecimalFormat.kt | joharei | 772,430,932 | false | {"Kotlin": 57435, "Swift": 1006} | package shared.utils
expect fun Double.format(): String | 0 | Kotlin | 0 | 0 | afba1f62445f6b5a532c754cf16ccb781adb3ade | 56 | tender | Apache License 2.0 |
plugins/com.flinty.docsflow.server.core/source/com/flinty/docsflow/server/core/userAccount/rest/LogoutRestHandler.kt | flint80 | 413,383,841 | false | {"Kotlin": 291036, "HTML": 8515, "CSS": 317} | /*****************************************************************
* Gridnine AB http://www.gridnine.com
* Project: JTasks
*****************************************************************/
package com.flinty.docsflow.server.core.userAccount.rest
import com.flinty.docsflow.common.core.model.rest.LogoutRequest
impor... | 0 | Kotlin | 0 | 0 | d64d64bd2f539a6579ee80dc2c89b22b4c644ddc | 913 | coralina-docs-flow | MIT License |
src/main/kotlin/me/luna/trollhack/event/events/render/RenderOverlayEvent.kt | NotMonika | 509,752,527 | false | {"Kotlin": 2035807, "Java": 168054, "GLSL": 91098} | package me.luna.trollhack.event.events.render
import me.luna.trollhack.event.*
import net.minecraftforge.client.event.RenderGameOverlayEvent
sealed class RenderOverlayEvent(override val event: RenderGameOverlayEvent) : Event, WrappedForgeEvent {
val type: RenderGameOverlayEvent.ElementType
get() = event.t... | 0 | Kotlin | 0 | 0 | 543ac418b69e0c7359cde487e828b4c3d2260241 | 658 | MorisaHack | Do What The F*ck You Want To Public License |
app/src/main/java/com/boosters/promise/data/database/UserDataBase.kt | boostcampwm-2022 | 562,936,971 | false | {"Kotlin": 196544} | package com.boosters.promise.data.database
import androidx.room.Database
import androidx.room.RoomDatabase
import com.boosters.promise.data.friend.source.local.FriendEntity
import com.boosters.promise.data.friend.source.local.FriendDao
@Database(entities = [FriendEntity::class], version = 1)
abstract class UserDataBa... | 3 | Kotlin | 5 | 23 | 126598bc7a703001ce699d8e3772386d9ffab86a | 383 | android03-Promise | MIT License |
pod-room/src/main/java/com/github/mahendranv/podroom/dao/EpisodeDao.kt | mahendranv | 607,981,900 | false | null | package com.github.mahendranv.podroom.dao
import android.util.Log
import androidx.paging.PagingSource
import androidx.room.*
import androidx.sqlite.db.SupportSQLiteQuery
import com.github.mahendranv.podroom.entity.Episode
import com.github.mahendranv.podroom.views.EpisodeDetails
import kotlinx.coroutines.flow.Flow
@D... | 4 | Kotlin | 0 | 1 | bc934d4075c35d21ab7ecf1a1cd042adf1843852 | 2,201 | pod-room | MIT License |
app/src/main/java/com/vikaspatidar/shvan/home/PetItem.kt | vikaspatidar | 343,876,445 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 6b537fdb96b6c86fc54acce5756b6d9e64d5e59d | 4,220 | Shvan | Apache License 2.0 |
ldfs/src/main/kotlin/com/ldfs/control/domain/service/DirectoryCommandService.kt | space-enthusiast | 760,310,461 | false | {"Kotlin": 20271, "Dockerfile": 149} | package com.ldfs.control.domain.service
import com.ldfs.common.domain.AggregateAssociation
import com.ldfs.control.domain.common.toAggregate
import com.ldfs.control.domain.common.toEntity
import com.ldfs.control.domain.model.aggregate.Directory
import com.ldfs.control.domain.repository.DirectoryEntityRepository
import... | 0 | Kotlin | 0 | 0 | 82e1edbe795c0ab8d3e2bc79399c2505985905ae | 1,461 | ldfs | MIT License |
src/main/kotlin/at/cpickl/gadsu/service/serialize.kt | christophpickl | 56,092,216 | false | null | package at.cpickl.gadsu.service
//class Serializer(private val bytes: ByteArray) {
// fun asString() = Base64.getEncoder().encodeToString(bytes)
// fun asFile(target: File) {
// asString().saveToFile(target)
// }
//}
//
//class Deserializer {
// fun <T> byString(deserialized: String) = deserialized.... | 43 | Kotlin | 1 | 2 | f6a84c42e1985bc53d566730ed0552b3ae71d94b | 776 | gadsu | Apache License 2.0 |
lib/src/main/java/io/github/staakk/cchart/label/HorizontalLabelRendererImpl.kt | staakk | 340,637,391 | false | null | package io.github.staakk.cchart.label
import android.graphics.Paint
import android.graphics.Typeface
import androidx.compose.runtime.Composable
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.sp
import ... | 0 | Kotlin | 1 | 9 | 2f5aa3f548a6a4ab55f44ac659ea1aaff5f5d968 | 2,758 | cchart | Apache License 2.0 |
app/src/main/java/pl/grajek/actions/model/database/AppDatabase.kt | dawids222 | 169,272,010 | false | null | package pl.grajek.actions.model.database
import android.arch.persistence.room.Database
import android.arch.persistence.room.Room
import android.arch.persistence.room.RoomDatabase
import android.arch.persistence.room.TypeConverters
import android.content.Context
import pl.grajek.actions.model.converter.DateConverter
im... | 0 | Kotlin | 0 | 0 | dc8c674b0b171ee68698133bcd023b2e26279612 | 1,385 | Actions | MIT License |
app/src/main/java/com/stepstone/apprating/sample/SampleActivity.kt | Gatttest | 134,835,469 | false | null | package com.stepstone.apprating.sample
import android.os.Bundle
import android.support.v4.app.FragmentActivity
import android.widget.Button
import android.widget.Toast
import com.stepstone.apprating.AppRatingDialog
import com.stepstone.apprating.listener.RatingDialogListener
import java.util.*
class SampleActivity : ... | 0 | Kotlin | 0 | 0 | bec2d6d551d4b70f5afac5bb5d8239465b5ebfe9 | 4,294 | ReviewandRating | Apache License 2.0 |
shared/src/jsMain/kotlin/com/devscion/classy/getPlatform.kt | zeeshanali-k | 679,622,499 | false | {"Kotlin": 100741, "Swift": 708, "HTML": 513, "Shell": 228, "Ruby": 101} | package com.devscion.classy
actual fun getPlatform(): Int = 3 | 0 | Kotlin | 1 | 24 | 92772ba4466936bfa393b22f58ced1f0179bfee6 | 62 | Classy | Apache License 2.0 |
app/src/main/java/com/hulkrent/app/host/photoUpload/Step2ViewModel.kt | Hulk-Cars | 772,120,218 | false | {"Kotlin": 2511410, "Java": 358761} | package com.hulkrent.app.host.photoUpload
import android.content.Intent
import android.net.Uri
import androidx.databinding.ObservableField
import androidx.lifecycle.MutableLiveData
import com.google.gson.Gson
import com.google.gson.JsonObject
import com.hulkrent.app.*
import com.hulkrent.app.data.DataManager
import co... | 0 | Kotlin | 0 | 0 | 9886a3455e3d404110a85cdaaf5bbff449390814 | 12,411 | Hulk-Rent-Android | Artistic License 1.0 w/clause 8 |
app/src/main/java/com/yan/foia/unlogged/ui/fragments/login/LoginFragment.kt | PestClassification | 831,577,339 | false | {"Kotlin": 16514} | package com.yan.foia.unlogged.ui.fragments.login
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageButton
import android.widget.ToggleButton
import androidx.constraintl... | 0 | Kotlin | 0 | 0 | 019df2e3ec1e3d7d26909da99805492a6fdc7197 | 2,727 | Mobile | MIT License |
foundation/domain-model/testFixtures/ru/pixnews/domain/model/game/game/SmallandGameFixture.kt | illarionov | 305,333,284 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 2 | d806ee06019389c78546d946f1c20d096afc7c6e | 8,074 | Pixnews | Apache License 2.0 |
src/main/kotlin/com/gcrj/web/bean/XlsProjectBean.kt | Gcrj | 149,216,707 | false | null | package com.gcrj.web.bean
/**
* Created by zhangxin on 2018/10/10.
*/
class XlsProjectBean : ProjectBean() {
companion object {
const val TYPE_PROJECT = 1
const val TYPE_CUSTOM = 2
fun parseXlsProjectBean(projectBean: ProjectBean): XlsProjectBean {
val xlsProjectBean = XlsP... | 0 | Kotlin | 0 | 0 | 14883e2e4e38b656a3248ca7062a9890453eaba7 | 748 | ProjectControlWeb | MIT License |
SampleApp/app/src/main/java/com/ok/db/TransactionDao.kt | User01ga | 455,559,956 | false | null | package com.ok.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.ok.db.entity.CategoryWithAmount
import com.ok.db.entity.Transaction
/**
* Created by <NAME>.
*/
@Dao
interface TransactionDao {
@Insert(onConflict = OnConflictStra... | 0 | Kotlin | 0 | 0 | 4aa10241877cd31088b0b21325ba42bf11d1f845 | 899 | ChartSampleApp | Apache License 2.0 |
app/src/main/java/goes/who/whogoes/adapter/AttendeesResponseAdapter.kt | diegolmendonca | 102,089,409 | false | null | package goes.who.whogoes.adapter
/**
* Created by <NAME> on 12.09.2017.
*/
import android.app.Activity
import android.graphics.Color
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.... | 0 | Kotlin | 0 | 2 | db738dc2e45b41e386b886be618b3b22ea8d0e80 | 2,079 | whogoes | MIT License |
src/main/kotlin/com/ec/aqsoft/arch/exagonal/ddd/order/infrastructure/persistence/repositories/ISprintOderRepository.kt | angelquin1986 | 438,117,405 | false | {"HTML": 18443, "Kotlin": 6842, "JavaScript": 5252, "CSS": 3780} | package com.ec.aqsoft.arch.exagonal.ddd.order.infrastructure.persistence.repositories
import com.ec.aqsoft.arch.exagonal.ddd.order.infrastructure.persistence.entities.OrderEntity
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository
@Repository
interface ISprintOd... | 0 | HTML | 0 | 0 | 678d175589b643053494679b77ae6c3d4cae2e33 | 372 | hexagonal_architecture_java | Apache License 2.0 |
BadgeMagicModule/src/commonMain/kotlin/org/fossasia/badgemagic/utils/ByteArrayUtils.kt | LoopGlitch26 | 263,618,871 | true | {"Kotlin": 209356, "Swift": 15553, "Shell": 3257, "Ruby": 305} | package org.fossasia.badgemagic.utils
object ByteArrayUtils {
fun hexStringToByteArray(hexString: String): ByteArray {
val length = hexString.length
val data = ByteArray(length / 2)
for (i in 0 until length step 2) {
data[i / 2] = ((getCharacterDigit(hexString[i], 16) shl 4) +... | 0 | Kotlin | 0 | 2 | cdf3291ce46a9ac16071752912aba845d5178871 | 851 | badge-magic-android | Apache License 2.0 |
CalculateTip/app/src/test/java/com/fernando/calculatetip/GorjetaTest.kt | 0Fernando0 | 633,567,267 | false | null | package com.fernando.calculatetip
import com.fernando.calculatetip.ui.gorjeta
import org.junit.Assert.assertEquals
import org.junit.Test
import java.text.NumberFormat
class GorjetaTest {
@Test
fun calcula_20_porcento_noRound(){
val amount = 10.00
val tipPercent = 20.00
val expeckTip =... | 0 | Kotlin | 0 | 0 | c066430e8a8f1c397b4c9e7472982e978c1b2091 | 497 | Portfolio-Android | MIT License |
src/main/kotlin/br/com/jiratorio/repository/DynamicFieldConfigRepository.kt | jirareport | 126,883,660 | false | {"Kotlin": 628412, "Dockerfile": 302} | package br.com.jiratorio.repository
import br.com.jiratorio.domain.entity.BoardEntity
import br.com.jiratorio.domain.entity.DynamicFieldConfigEntity
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository
@Repository
interface DynamicFieldConfigRepository : CrudRepos... | 12 | Kotlin | 12 | 21 | 845540e238f47fbd05c1f7f6839152545521c63e | 613 | jirareport | MIT License |
src/main/kotlin/org/hygorm10/bookstore/models/ReviewModel.kt | HygorM10 | 815,654,114 | false | {"Kotlin": 8186} | package org.hygorm10.bookstore.models
import com.fasterxml.jackson.annotation.JsonProperty
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.JoinColumn
import j... | 0 | Kotlin | 0 | 0 | b5bc4f61199388aaaeda88ff8654c1a35e0856d8 | 741 | bookstore-jpa | Apache License 2.0 |
judokit-android/src/main/java/com/judopay/judokit/android/ui/paymentmethods/adapter/viewholder/SavedCardsFooterViewHolder.kt | Judopay | 261,378,339 | false | null | package com.judopay.judokit.android.ui.paymentmethods.adapter.viewholder
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.judopay.judokit.android.ui.paymentmethods.adapter.BindableRecyclerViewHolder
import com.judopay.judokit.android.ui.paymentmethods.adapter.PaymentMethodsAdapterLi... | 1 | Kotlin | 3 | 3 | 5d595f38039014a26ec079267e475958e4fe1e9c | 943 | JudoKit-Android | MIT License |
zowe-core-for-zowe-sdk/src/jsMain/kotlin/zowe/sdk/core/auth/Login.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | @file:JsModule("@zowe/core-for-zowe-sdk")
package zowe.sdk.core.auth
import js.promise.Promise
import zowe.imperative.rest.session.AbstractSession
/**
* Class to handle logging onto APIML.
*/
external class Login {
companion object {
/**
* Perform APIML login to obtain LTPA2 or other token types.
*... | 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 390 | kotlin-externals | MIT License |
core/src/main/java/com/atech/core/data/network/user/UserModel.kt | aiyu-ayaan | 489,575,997 | false | null | package com.atech.core.data.network.user
import android.os.Parcelable
import androidx.annotation.Keep
import androidx.room.ColumnInfo
import kotlinx.parcelize.Parcelize
@Keep
@Suppress("")
@Parcelize
data class UserModel(
var uid: String? = null,
var name: String? = null,
var email: String? = null,
va... | 6 | Kotlin | 5 | 13 | 96f082c8e1fb1eb4aa446afce83f98b7494b4884 | 770 | BIT-App | MIT License |
app/src/main/java/com/pet/chat/network/data/send/SendMessage.kt | ViktorMorgachev | 438,899,533 | false | null | package com.pet.chat.network.data.send
import com.google.gson.annotations.SerializedName
data class SendMessage(
@SerializedName("attachment_id")
var attachmentId: Number?,
@SerializedName("room_id")
var roomId: Number,
var text: String,
) | 0 | Kotlin | 0 | 0 | 14065fa300ece434f4605b56938e7c80a4dde4f4 | 261 | ChatBest | Apache License 2.0 |
src/main/kotlin/recharts/shape/trapezoid/Props.kt | gm666q | 300,695,035 | false | null | package recharts.shape.trapezoid
import org.w3c.dom.svg.SVGPathElement
import recharts.util.types.PresentationAttributes
external interface Props : PresentationAttributes<SVGPathElement>, TrapezoidProps
| 0 | Kotlin | 1 | 2 | b0efa4c2644d1d6b20bd834a49c745301690440d | 205 | kotlin-recharts | Apache License 2.0 |
app/src/main/java/com/teamnexters/android/mealdiary/ui/main/DiaryViewHolder.kt | Jiyoung9310 | 166,637,099 | false | null | package com.teamnexters.android.mealdiary.ui.main
import androidx.recyclerview.widget.RecyclerView
import com.teamnexters.android.mealdiary.R
import com.teamnexters.android.mealdiary.data.model.ListItem
import com.teamnexters.android.mealdiary.databinding.ViewDiaryBinding
import com.teamnexters.android.mealdiary.util.... | 0 | Kotlin | 0 | 1 | 622109f9820cd90121857ca93dff1405b63f0517 | 519 | MealDiary-Android | Apache License 2.0 |
core/coroutines/src/main/kotlin/app/logdate/core/di/DispatchersModule.kt | WillieCubed | 187,304,507 | false | {"Kotlin": 458147, "Java": 1084} | package app.logdate.core.di
import app.logdate.core.coroutines.AppDispatcher.Default
import app.logdate.core.coroutines.AppDispatcher.IO
import app.logdate.core.coroutines.Dispatcher
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx... | 0 | Kotlin | 0 | 0 | 51a51bd8c264aecc9190f67ec1fbb56e37b7e9fc | 687 | logdate-mobile | MIT License |
app/src/main/java/com/personal/tmdb/detail/data/models/EpisodeToAir.kt | Avvami | 755,489,313 | false | {"Kotlin": 666338} | package com.personal.tmdb.detail.data.models
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class EpisodeToAir(
@Json(name = "air_date")
val airDate: String?,
@Json(name = "episode_number")
val episodeNumber: Int,
@Json(name = "episode_ty... | 0 | Kotlin | 0 | 2 | de9d96dc4ec271377406e5c794085240a35af69c | 908 | TMDB | MIT License |
JcampConverter/JcampConverter/src/main/java/com/baolan2005/jcampconverter/utils/Utilities.kt | baolanlequang | 454,834,872 | false | null | package com.baolan2005.jcampconverter.utils
public fun String.isNumeric(): Boolean {
if (!this.isNullOrEmpty()) {
val numsSet = setOf<Char>('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')
val thisSet = this.toSet()
return numsSet.containsAll(thisSet)
}
return false
}
public fun C... | 0 | Kotlin | 0 | 0 | 1247592104d9c8bb21f1a1b1f581420eadb36287 | 465 | jcamp-converter-android | MIT License |
zeta-service/zeta-biz-system/src/main/kotlin/com/zeta/biz/system/service/ISysUserRoleService.kt | xia5800 | 510,203,856 | false | {"Kotlin": 615328, "Lua": 347} | package com.zeta.biz.system.service
import com.baomidou.mybatisplus.extension.service.IService
import com.zeta.model.system.dto.sysRole.SysRoleDTO
import com.zeta.model.system.entity.SysRole
import com.zeta.model.system.entity.SysUserRole
/**
* 用户角色 服务类
*
* @author AutoGenerator
* @date 2021-12-30 15:24:03
*/
in... | 0 | Kotlin | 0 | 4 | cbfc0ff7f85c8331cf88c1978d908d25f7b554a9 | 1,033 | springboot-kotlin-module | MIT License |
app/src/main/java/com/project/laundryappui/menu/notification/NotificationFragment.kt | PramodLakmal | 769,692,625 | false | {"Kotlin": 21547} | package com.project.laundryappui.menu.notification
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview... | 0 | Kotlin | 0 | 0 | 880f3139019cb9cdae0b8e822b853cedd1ab2245 | 2,582 | Laundry_App_UI | Apache License 2.0 |
app/src/main/java/com/example/arknightsautoclicker/processing/tasks/recruitment/RecruitmentTask.kt | qwerttyuiiop1 | 684,537,002 | false | {"Kotlin": 142059} | package com.example.arknightsautoclicker.processing.tasks.recruitment
import com.example.arknightsautoclicker.processing.tasks.Task
import com.example.arknightsautoclicker.processing.io.Clicker
import com.example.arknightsautoclicker.processing.io.TextRecognizer
import com.example.arknightsautoclicker.processing.exe.Re... | 1 | Kotlin | 0 | 1 | 4c7ca55be02c08d1784bac57b3eff15decd07389 | 2,686 | Arknights-Autoclicker | MIT License |
app/src/main/java/com/example/toncontest/data/ton/transactions/CheckAddress.kt | L0mTiCk | 625,185,980 | false | null | package com.example.toncontest.data.ton.transactions
import com.example.toncontest.data.main.send.sendInfo
fun checkAddress(): Boolean {
//TODO: check address in ton, check if dns
if (sendInfo.recipient.length < 48 || sendInfo.recipient.contains(".ton")) {
return false
}
else {
return ... | 0 | Kotlin | 0 | 0 | 2115bf7c3bc4558a40d2ab9181b295940848df7b | 332 | TONContest | MIT License |
linea/src/commonMain/kotlin/compose/icons/lineaicons/basic/Home.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineaicons.basic
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
... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 1,710 | compose-icons | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Swords.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,053 | compose-icon-collections | MIT License |
src/main/kotlin/dev/kotx/flylib/command/ConfigElement.kt | TeamKun | 353,190,170 | false | {"Kotlin": 162659, "Shell": 1295} | /*
* Copyright (c) 2021 kotx__
*/
package dev.kotx.flylib.command
interface ConfigElement<T> {
val key: String
var value: T?
} | 0 | Kotlin | 0 | 7 | 89fe7c1560cd9a303b09bec98249fbc39d327d71 | 138 | flylib-reloaded | MIT License |
src/main/kotlin/romantointeger/Solution.kt | LuizGC | 695,969,536 | false | {"Kotlin": 3465} | package romantointeger
class Solution {
fun romanToInt(s: String): Int {
var output = 0
var previous = 0
for (c in s) {
val value = when(c) {
'I' -> 1
'V' -> 5
'X' -> 10
'L' -> 50
'C' -> 100
... | 0 | Kotlin | 0 | 0 | 11f9b671733e587beb15957a344ecd8ece5a2e18 | 628 | kotlin-leet-code-exercises | Apache License 2.0 |
urbanairship-core/src/main/java/com/urbanairship/contacts/SmsRegistrationOptions.kt | urbanairship | 58,972,818 | false | {"Kotlin": 3266979, "Java": 2582150, "Python": 10137, "Shell": 589} | /* Copyright Airship and Contributors */
package com.urbanairship.contacts
import androidx.core.util.ObjectsCompat
import com.urbanairship.json.JsonException
import com.urbanairship.json.JsonMap
import com.urbanairship.json.JsonSerializable
import com.urbanairship.json.JsonValue
/**
* Sms registration options.
*/
p... | 2 | Kotlin | 122 | 111 | 21d49c3ffd373e3ba6b51a706a4839ab3713db11 | 1,650 | android-library | Apache License 2.0 |
Core/src/commonTest/kotlin/io/nacular/doodle/utils/PathTests.kt | nacular | 108,631,782 | false | {"Kotlin": 2979553} | package io.nacular.doodle.utils
import kotlin.js.JsName
import kotlin.test.Test
import kotlin.test.expect
/**
* Created by <NAME> on 7/18/20.
*/
class PathTests {
@Test @JsName("topWorks")
fun `top works`() {
val paths = listOf(
listOf(0, 0, 2, 5),
listOf(0),
... | 5 | Kotlin | 19 | 523 | d48ba7fc8c0a8cd0c5bfb24b22286676bc26319e | 2,861 | doodle | MIT License |
java/com/tdi/tmaps/model/MyLocation.kt | DigitalRealm2282 | 534,740,468 | false | {"Kotlin": 372930} | package com.tdi.tmaps.model
import androidx.annotation.Keep
@Keep
class MyLocation {
var accuracy: Int = 0
var altitude: Int = 0
var bearing: Int = 0
var bearingAccuracyDegrees: Int = 0
var speed: Int = 0
var speedAccuracyMetersPerSecond: Int = 0
var verticalAccuracyMeters: Int = 0
var... | 0 | Kotlin | 0 | 0 | 51df7362986a48dfb1e4b592a56cf8e0e726500f | 570 | TMaps | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.