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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
library-res/src/main/kotlin/com/wsdydeni/library_view/banner/BannerAdapter.kt | wsdydeni | 294,493,450 | false | null | package com.wsdydeni.library_view.banner
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.wsdydeni.library_res.R
const val MAX_VALUE = 500
class BannerA... | 1 | Kotlin | 1 | 5 | e908db6bcf7cefa43500cc334c07c0bcc655819a | 1,641 | WanAndroid | MIT License |
erc20/api/src/main/kotlin/com/rarible/protocol/erc20/api/service/token/Erc20Service.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.erc20.api.service.token
import com.rarible.core.common.convert
import com.rarible.core.contract.model.ContractType
import com.rarible.ethereum.contract.service.ContractService
import com.rarible.protocol.dto.Erc20TokenDto
import com.rarible.protocol.erc20.api.exceptions.TokenNotFoundExcept... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 894 | ethereum-indexer | MIT License |
src/main/kotlin/utils/ResultSetUtils.kt | SergeyHSE7 | 391,639,787 | false | null | package utils
import Column
import Entity
import Table
import java.sql.ResultSet
import kotlin.reflect.full.createInstance
internal fun <E : Entity> ResultSet.getEntity(table: Table<E>, lazy: Boolean): E {
val entity: E = table.entityClass.createInstance()
val columnNames = table.columns.map { it.name }.toHas... | 0 | Kotlin | 1 | 1 | 01c23e02a5ede73647c5f4fc1cdefb8014b700c1 | 1,418 | Kotlin-ORM | Apache License 2.0 |
app/src/main/java/com/frogobox/admobsample/ui/fragment/MainFragment.kt | msoftware | 384,331,734 | true | {"Kotlin": 48122} | package com.frogobox.admobsample.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.frogobox.admobsample.R
import com.frogobox.admobsample.base.BaseFragment
import com.frogobox.admobsample.datab... | 0 | null | 0 | 0 | 0d6f4ceffa70e6b31be24bf4375d91affbefe272 | 658 | frogo-admob | Apache License 2.0 |
RxUI/src/main/java/com/tamsiree/rxui/view/loadingview/style/MultiplePulseRing.kt | Tamsiree | 69,093,112 | false | null | package com.tamsiree.rxui.view.loadingview.style
import com.tamsiree.rxui.view.loadingview.sprite.Sprite
import com.tamsiree.rxui.view.loadingview.sprite.SpriteContainer
/**
* @author tamsiree
*/
class MultiplePulseRing : SpriteContainer() {
override fun onCreateChild(): Array<Sprite?>? {
return arrayOf... | 70 | null | 2855 | 12,025 | fa5f88c24594a562c2a9047c40ceeb94de297428 | 591 | RxTool | Apache License 2.0 |
mf/contracts/src/main/kotlin/ch/maxant/kdc/mf/contracts/boundary/query/ContractQueryResource.kt | maxant | 174,798,779 | false | {"YAML": 21, "Text": 1, "Ignore List": 24, "Markdown": 25, "Shell": 4, "PlantUML": 4, "Maven POM": 25, "JSON": 21, "HTML": 28, "Java": 88, "Java Properties": 12, "XML": 4, "JavaScript": 68, "SQL": 49, "Dockerfile": 1, "CSS": 5, "INI": 4, "JSON with Comments": 3, "Browserslist": 1, "EditorConfig": 1, "Kotlin": 143} | package ch.maxant.kdc.mf.contracts.boundary.query
import ch.maxant.kdc.mf.contracts.adapter.DiscountSurcharge
import ch.maxant.kdc.mf.contracts.adapter.DiscountsSurchargesAdapter
import ch.maxant.kdc.mf.contracts.entity.ComponentEntity
import ch.maxant.kdc.mf.contracts.entity.ContractEntity
import com.fasterxml.jackso... | 3 | Kotlin | 2 | 4 | 59c965b4635cfc2589fe187f69797d5273f93cca | 5,593 | kafka-data-consistency | MIT License |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/EmojiNatureSharp.kt | karakum-team | 387,062,541 | false | {"Kotlin": 2961484, "TypeScript": 2249, "JavaScript": 1167, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/EmojiNatureSharp")
package mui.icons.material
@JsName("default")
external val EmojiNatureSharp: SvgIconComponent
| 0 | Kotlin | 5 | 35 | d12f6b1ad1b215ad7d3d9f27e24d48ada9b7fe2d | 196 | mui-kotlin | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/TrainStationBuilding.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,822 | icons | MIT License |
app/src/main/kotlin/com/github/premnirmal/ticker/model/RefreshWorker.kt | SasikumarN | 282,930,233 | true | {"Kotlin": 359263} | package com.github.premnirmal.ticker.model
import android.content.Context
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import com.github.premnirmal.ticker.components.Injector
import com.github.premnirmal.ticker.isNetworkOnline
import javax.inject.Inject
class RefreshWorker(context: Conte... | 0 | null | 0 | 0 | 4d77621f9e210c936f810e259e6779634a018d19 | 902 | StockTicker | MIT License |
app/src/main/java/com/lbg/project/domain/usecase/GetFavCatsUseCase.kt | PC-Wipro | 696,757,421 | false | {"Java": 429337, "Kotlin": 100932} | package com.lbg.project.domain.usecase
import com.lbg.project.data.NetworkResult
import com.lbg.project.data.models.mappers.CatDataModel
import com.lbg.project.domain.repositories.CatsRepository
import com.lbg.project.utils.Constants
import kotlinx.coroutines.flow.Flow
class GetFavCatsUseCase(private val catDetailsRe... | 0 | Kotlin | 0 | 1 | a7523671ce0cb940cc682018357c96014d6f2da6 | 509 | LBG | Apache License 2.0 |
LABA5kt/src/parserPack/StringParser.kt | deadxraver | 778,738,033 | false | {"Text": 3, "Gradle": 4, "Shell": 2, "Batchfile": 2, "Java Properties": 3, "Java": 221, "INI": 3, "XML": 27, "Ignore List": 4, "JAR Manifest": 1, "Kotlin": 48, "CSS": 4, "HTML": 85, "JavaScript": 9, "Markdown": 2} | package parserPack
import exceptionsPack.EmptyStringException
object StringParser {
/**
* Parses the input string by removing leading and trailing whitespaces,
* and collapsing multiple consecutive whitespaces into a single space.
*
* @param line the input string to be parsed
* @return ... | 0 | Java | 0 | 0 | 3f262f3175c7142487f8d225e4aac85f8f197d77 | 643 | Programming | MIT License |
app/src/main/java/com/example/dessertclicker/data/DessertUiState.kt | mirvn | 609,463,590 | false | null | package com.example.dessertclicker.data
import androidx.annotation.DrawableRes
data class DessertUiState(
val currentIndex: Int = 0,
val dessertSold: Int = 0,
val revenue: Int = 0,
val currentPrice: Int = Datasource.dessertList[currentIndex].price,
@DrawableRes val dessertImage: Int = Datasource.d... | 0 | Kotlin | 0 | 0 | 9b12d90f5ce1fcdacf6bec0e788fce94b81dd0c8 | 355 | DessertClicker | Apache License 2.0 |
src/ad/kata/hangman/oo/Host.kt | andrej-dyck | 252,646,491 | true | {"Kotlin": 39732, "Java": 3408} | package ad.kata.hangman.oo
import ad.kata.hangman.kotlinExtensions.runningFold
import ad.kata.hangman.kotlinExtensions.takeWithFirst
interface Host {
fun take(guesses: Guesses, maxMisses: MaxMisses): Sequence<GameEvent>
}
class ComputerHost(
private val chooseWord: () -> Word
) : Host {
constructor(word... | 0 | Kotlin | 0 | 0 | b519b29b4657a78a0d33fd61eba6a2b58b89bb33 | 817 | kata-hangman | MIT License |
src/main/kotlin/herbaccara/prevent/timelimit/annotation/GlobalPreventTimeLimit.kt | herbaccara | 625,821,033 | false | null | package herbaccara.prevent.timelimit.annotation
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.ANNOTATION_CLASS)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
annotation class GlobalPreventTimeLimit(val value: String)
| 0 | Kotlin | 0 | 0 | f0659e36d15c6203f5200211dde6f9487e5b6d47 | 236 | spring-boot-starter-prevent | MIT License |
app/src/androidTest/java/br/com/paulosalvatore/movilenext_day4_robotpattern/robot/BaseTestRobot.kt | paulosalvatore | 159,811,073 | false | null | package br.com.paulosalvatore.movilenext_day4_robotpattern.robot
import android.support.test.espresso.Espresso.onData
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.ViewInteraction
import android.support.test.espresso.action.ViewActions
import android.support.test.espresso.as... | 0 | Kotlin | 0 | 0 | 4852f600aa54772a59a68429f8bbc28176c89c9a | 1,375 | MovileNext_Day4_RobotPattern | MIT License |
bitcoin/src/main/java/com/brentpanther/bitcoinwidget/CoinEntry.kt | hwki | 8,993,387 | false | null | package com.brentpanther.bitcoinwidget
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class CoinEntry(
val id: String,
val name: String,
val symbol: String,
val coin: Coin,
val iconUrl: String? = null
) : Parcelable {
fun getFullIconUrl() = if (iconUrl == null... | 4 | null | 52 | 79 | b375b94494cb9ef9b2bda5fea89248dd4fe5e2d3 | 386 | SimpleBitcoinWidget | MIT License |
src/cn/ancono/math/calculus/Calculus.kt | 140378476 | 105,762,795 | false | {"Java": 1912158, "Kotlin": 1243514} | /**
*
*/
package cn.ancono.math.calculus
import cn.ancono.math.algebra.DecomposedPoly
import cn.ancono.math.algebra.IPolynomial
import cn.ancono.math.algebra.PolynomialUtil
import cn.ancono.math.algebra.SinglePoly
import cn.ancono.math.discrete.combination.CombUtils
import cn.ancono.math.function.AbstractSVPFunction... | 1 | Java | 1 | 6 | 02c2984c10a95fcf60adcb510b4bf111c3a773bc | 21,273 | Ancono | MIT License |
common/src/main/kotlin/net/wiredtomato/burgered/api/data/burger/BurgerStackables.kt | wired-tomato | 835,870,549 | false | {"Kotlin": 122997, "Java": 4742} | package net.wiredtomato.burgered.api.data.burger
import com.mojang.serialization.Codec
import com.mojang.serialization.codecs.RecordCodecBuilder
import net.minecraft.core.registries.BuiltInRegistries
import net.minecraft.world.item.Item
import net.wiredtomato.burgered.api.StatusEffectEntry
import net.wiredtomato.burge... | 0 | Kotlin | 0 | 0 | d945b34ecbf62bef9234f101a4cdf7ce504a1fa9 | 1,971 | burgered | MIT License |
app/src/main/java/com/luca020400/classiperlo/classes/DataItem.kt | luca020400 | 217,863,723 | false | null | package com.luca020400.classiperlo.classes
import androidx.annotation.Keep
@Keep
data class DataItem(val name: String, val url: Url)
| 0 | Kotlin | 0 | 1 | f43b17111a810fe9b9d5ccfa4ce9d15367b6b862 | 135 | Classiperlo | Apache License 2.0 |
lib/modules/http/volley/src/main/java/dev/pthomain/android/dejavu/volley/DejaVuVolleyBuilder.kt | pthomain | 95,957,187 | false | {"Kotlin": 562195} | package dev.pthomain.android.dejavu.volley
import dev.pthomain.android.dejavu.configuration.ExtensionBuilder
import dev.pthomain.android.glitchy.core.interceptor.error.NetworkErrorPredicate
import org.koin.core.module.Module
import org.koin.dsl.koinApplication
import org.koin.dsl.module
class DejaVuVolleyBuilder<E> i... | 1 | Kotlin | 7 | 12 | 6e82c422293f1ed54f3522d6df94c5948116a79a | 1,128 | dejavu | Apache License 2.0 |
app/src/main/java/com/taro/aimentor/theme/ThemeManager.kt | Gear61 | 623,306,992 | false | null | package com.taro.aimentor.theme
import androidx.appcompat.app.AppCompatDelegate
object ThemeManager {
fun applyTheme(themeMode: Int) {
when (themeMode) {
ThemeMode.LIGHT -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
ThemeMode.DARK -> AppCompatDelegate.s... | 0 | Kotlin | 3 | 29 | 6f934528a942329112ad65f22b23ea48e1095f48 | 512 | ai-mentor-android | Apache License 2.0 |
app/src/main/java/com/animestudios/animeapp/tools/BaseViewHolder.kt | Sozo-app | 702,850,697 | false | {"Kotlin": 789146} | package com.animestudios.animeapp.tools
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.animestudios.animeapp.model.Message
abstract class BaseViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
abstract fun bind(item: Message)
} | 0 | Kotlin | 5 | 22 | 50c65f924489bb94632b40ab840a15377e846686 | 285 | Sozo | MIT License |
android/versioned-abis/expoview-abi44_0_0/src/main/java/abi44_0_0/expo/modules/haptics/arguments/HapticsInvalidArgumentException.kt | derekstavis | 184,342,737 | false | null | package abi44_0_0.expo.modules.haptics.arguments
import abi44_0_0.expo.modules.core.errors.CodedException
class HapticsInvalidArgumentException internal constructor(message: String?) : CodedException(message) {
override fun getCode(): String {
return "E_HAPTICS_INVALID_ARGUMENT"
}
}
| 1 | null | 1 | 2 | e377f0cd22db5cd7feb8e80348cd7064db5429b1 | 294 | expo | MIT License |
src/main/kotlin/fr/marstech/xenodrive/service/MinioService.kt | alkaphreak | 697,183,111 | false | {"Kotlin": 9048, "Shell": 234} | package fr.marstech.xenodrive.service
import io.minio.GetObjectResponse
import io.minio.MinioClient
import io.minio.ObjectWriteResponse
import io.minio.Result
import io.minio.messages.Item
import java.nio.file.Path
interface MinioService {
fun connect(): MinioClient
fun downloadFile(remoteFilePath: String): ... | 0 | Kotlin | 0 | 1 | 1470fca44767115b5cdf628873693e808cd94b44 | 581 | marstech-xeno-drive | MIT License |
app/src/main/java/com/ntxdroid/spacex/feature/mission/MissionsAdapter.kt | alwarren | 195,475,619 | false | null | package com.ntxdroid.spacex.feature.mission
import android.graphics.Color
import android.graphics.PorterDuff
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.ntxdroid.spacex.R
import com.ntxdroid.spacex.core.extension.repeatUntilSize
import com.ntxdroid.spacex.core.extension.colorLi... | 0 | Kotlin | 1 | 1 | 0c904a6e086d9ad0dd56231c2e5ef6469d5ec39c | 1,498 | AndroidXMVVMDemo | MIT License |
arcgis-android-toolkit/src/main/java/com/esri/arcgisruntime/toolkit/scalebar/style/renderer/DualUnitLineRenderer.kt | Esri | 12,741,334 | false | {"Kotlin": 357736, "Java": 60473} | /*
* Copyright 2019 Esri
*
* 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 writi... | 2 | Kotlin | 40 | 51 | 045728b96672b70ff3bec61ec99d15d066538ff7 | 6,051 | arcgis-runtime-toolkit-android | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/CircleHalf.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 | 1,771 | icons | MIT License |
src/main/kotlin/com/tuk/oriddle/user/application/port/out/SaveUserPort.kt | Team-Oriddle | 731,663,342 | false | {"Kotlin": 152977} | package com.tuk.oriddle.user.application.port.out
import com.tuk.oriddle.user.adapter.out.persistence.UserJpaEntity
import com.tuk.oriddle.user.domain.User
interface SaveUserPort {
fun saveUser(user: User): UserJpaEntity
} | 2 | Kotlin | 1 | 0 | 4fed5e20ba1c0bc9c24bb32d9436c8cc995a2335 | 228 | oriddle-backend | MIT License |
bot/connector-web/src/main/kotlin/channel/ChannelDAO.kt | theopenconversationkit | 84,538,053 | false | {"Kotlin": 6173880, "TypeScript": 1286450, "HTML": 532576, "Python": 376720, "SCSS": 79512, "CSS": 66318, "Shell": 12085, "JavaScript": 1849} | /*
* Copyright (C) 2017/2021 e-voyageurs technologies
*
* 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... | 163 | Kotlin | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 879 | tock | Apache License 2.0 |
app/src/main/java/com/example/jikgong/view/main/pay/PaymentFragment.kt | KT-Beak-Ho | 735,902,125 | false | {"Kotlin": 8629} | package com.example.jikgong.view.main.pay
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.jikgong.R
class PaymentFragment : Fragment() {
// TODO: Rename and change types of parameters
ov... | 0 | Kotlin | 3 | 0 | 1c4c2f4e8082bab3f794a3e40dbea12cb118032f | 728 | Front_end | MIT License |
app/src/main/java/com/paulo/placar/MainActivity.kt | PauloFerreira-S | 294,962,439 | false | null | package com.paulo.placar
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanc... | 0 | Kotlin | 0 | 0 | cf8dd7a0b5f1771887120cf7cb53ca122dbc3dfe | 3,194 | Placar | MIT License |
app/src/main/java/com/app/upload_file/ui/upload_files/UploadFileActivity.kt | thanhit93 | 459,072,267 | false | null | package com.app.upload_file.ui.upload_files
import android.Manifest
import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.google.firebase.storage.StorageReference
import com.google.firebase.storage.FirebaseStorage
import androidx.recyclerview.widge... | 0 | Kotlin | 0 | 0 | 8775ab01083bb8ea5fb4204438908767a177ba6a | 6,755 | multiple_upload_firebase | MIT License |
build-logic/convention/src/main/kotlin/AndroidLibraryComposeConventionPlugin.kt | atomgomba | 754,770,216 | false | {"Kotlin": 209676} |
import com.android.build.api.dsl.LibraryExtension
import com.ekezet.othello.configureAndroidCompose
import com.ekezet.othello.configureAndroidKoinCompose
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByType
class AndroidLibraryComposeConventionPlugin : Plugin<Project> {
... | 0 | Kotlin | 0 | 1 | 072786ee50a61d5dc6acca65dd65306c5c6ab1ee | 661 | othello | Apache License 2.0 |
app/src/main/java/com/thewizrd/simpleweather/services/AppUpdaterWorker.kt | jonnypjohnston | 371,908,311 | false | null | package com.thewizrd.simpleweather.services
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.SystemClock
import android.util.Log
import androidx.annotatio... | 1 | null | 1 | 1 | e07dd52b9fd66456bcefa6b14641f3637bc6c8ac | 5,504 | Microsoft-SimpleWeather-Android | Apache License 2.0 |
viewpagerdotsindicator/src/main/java/com/tbuonomo/viewpagerdotsindicator/ViewPagerWrapper.kt | kibotu | 166,256,629 | false | null | package com.tbuonomo.viewpagerdotsindicator
import android.database.DataSetObserver
import androidx.viewpager.widget.ViewPager
class ViewPagerWrapper(private val viewPager: ViewPager) : ViewPagerInterface {
override val hasAdapter: Boolean
get() = viewPager.adapter != null
override val count: Int
... | 1 | null | 1 | 1 | 54d7a9653a9ba04fd94871ae43046a7691193b89 | 1,084 | dotsindicator | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/xhr/XMLHttpRequestResponseType.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6149909} | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package web.xhr
// language=JavaScript
@JsName("""(/*union*/{none: '', arraybuffer: 'arraybuffer', blob: 'blob', document: 'document', json: 'json', text: 'text'}/*union*/)""")
s... | 0 | Kotlin | 6 | 26 | 3fcfd2c61da8774151cf121596e656cc123b37db | 686 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/xily/kotlinweather/model/bean/BusBean.kt | Xily9 | 137,105,320 | false | {"Kotlin": 167408} | package com.xily.kotlinweather.model.bean
class BusBean {
var position: Int = 0
var status: Int = 0
var message: String? = null
}
| 0 | Kotlin | 0 | 1 | 30693906d3855fc115ba398f561c81478d38cd23 | 143 | KotlinWeather | MIT License |
data/src/main/java/com/example/data/models/login/LoginRequestModel.kt | meghdadya | 776,918,286 | false | {"Kotlin": 85745} | package com.example.data.models.login
import com.google.gson.annotations.SerializedName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
data class LoginRequestModel(
@SerializedName("identifier")
val identifier: String,
@SerializedName("method")
val method: String,
... | 0 | Kotlin | 0 | 0 | a0b7cd489ee3e85e1197b90d8b08eb94a9c7901c | 378 | OryAuthentication | Apache License 2.0 |
itemviewmodel/withFXproperties/src/main/kotlin/no/tornadofx/fxsamples/withfxproperties/controller/PersonController.kt | vfishv | 227,888,628 | true | {"Kotlin": 39605} | package no.tornadofx.fxsamples.withfxproperties.controller
import javafx.collections.FXCollections
import no.tornadofx.fxsamples.withfxproperties.model.Person
import no.tornadofx.fxsamples.withfxproperties.model.PersonModel
import no.tornadofx.fxsamples.withfxproperties.model.PhoneNumber
import tornadofx.Controller
c... | 0 | Kotlin | 0 | 0 | 1e499faaca5762312aaad18668f8d04605f890a5 | 720 | tornadofx-samples | Apache License 2.0 |
First Departament/Object Oriented Programming/src/Person.kt | Itzdan0ul | 759,624,005 | false | {"Kotlin": 10516} | open class Person(name: String, lastname: String, gender: String, height: Float) {
var name: String = name
var lastname: String = lastname
var gender: String = gender
var height: Float = height
}
| 0 | Kotlin | 0 | 0 | 3fada7bbc680c658b55c0a95441ab6f229e372aa | 212 | mobile-programming | MIT License |
src/main/kotlin/com/we2cat/utils/StringUtils.kt | ErosHel | 335,270,211 | false | null | package com.we2cat.utils
/**
* Created by hel on 2020/12/21 14:46
*/
/**
* 将大写字母根据指定分隔符转换
*/
fun parseAssignByUppercase(text: String, assign: Char): String =
StringBuilder().let { sb ->
text.forEachIndexed { index, c ->
when {
index == 0 -> {
sb.append(c.... | 1 | Kotlin | 0 | 7 | 64a56dfe47d6dc2f1a4c1652e3d889d7a69c9d06 | 1,186 | we2cat | Apache License 2.0 |
ont/src/main/java/at/rtr/rmbt/android/ui/activity/MeasurementActivity.kt | specure | 436,159,986 | 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* dist... | 0 | Kotlin | 1 | 0 | 20a185fb151138ade36b93a297576d07b32f7f66 | 12,155 | ont-android-kotlin | Apache License 2.0 |
app/src/main/java/ru/ozh/android/recycler/decorator/sample/list/decor/ParallaxDecor.kt | ozh-dev | 193,144,003 | false | {"Kotlin": 84727} | package ru.ozh.android.recycler.decorator.sample.list.decor
import android.content.Context
import android.graphics.*
import android.view.View
import androidx.annotation.DrawableRes
import androidx.appcompat.content.res.AppCompatResources
import androidx.core.graphics.drawable.toBitmap
import androidx.recyclerview.wid... | 1 | Kotlin | 19 | 92 | c3718d6a58a5712933d4e92ce333b4fb57e262b2 | 1,037 | recycler-decorator-library-sample | Apache License 2.0 |
shared/src/commonMain/kotlin/App.kt | mathieuTrunet | 707,676,776 | false | {"Kotlin": 20830, "Swift": 580, "Shell": 228} |
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
import views.IngredientSelectionScreen
@Composable
internal fun App() {
MaterialTheme {
IngredientSelectionScreen()
}
}
| 0 | Kotlin | 0 | 0 | 0abc808eec127c8c5bffa49365e2e509645f6aa4 | 310 | tp-expertise-mobile | Apache License 2.0 |
src/test/kotlin/g1801_1900/s1814_count_nice_pairs_in_an_array/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g1801_1900.s1814_count_nice_pairs_in_an_array
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun countNicePairs() {
assertThat(Solution().countNicePairs(intArrayOf(42, 11, 1, 97)), equa... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 471 | LeetCode-in-Kotlin | MIT License |
project/module-runtime/src/main/kotlin/net/artemisia/runtime/compiler/objects/module/VisitorObject.kt | TheFloodDragon | 729,364,851 | false | {"Kotlin": 69253} | package net.artemisia.runtime.compiler.objects.module
import net.artemisia.runtime.compiler.Object
class VisitorObject(val type: VisitorType, val obj: VisitObject, val index: Int) : Object() {
enum class VisitorType(val i: Byte) {
PUBLIC(0x01),
PRIVATE(0x02),
PROTECTED(0x03),
ALREA... | 0 | Kotlin | 0 | 1 | 507c4b14fe8ff8dde024b6c9327486fb0effc25e | 655 | Script-Artemisia | MIT License |
app/src/main/java/com/akhbulatov/wordkeeper/presentation/ui/global/base/BaseFragment.kt | akhbulatov | 65,332,258 | false | {"Kotlin": 94207} | package com.akhbulatov.wordkeeper.presentation.ui.global.base
import androidx.annotation.LayoutRes
import androidx.fragment.app.Fragment
abstract class BaseFragment(@LayoutRes contentLayoutId: Int) : Fragment(contentLayoutId)
| 0 | Kotlin | 0 | 2 | 5706a65649e5c114f6b18f93b0c582ab1594cae3 | 228 | wordkeeper | Apache License 2.0 |
shared/repositories/features/movies/sources/src/commonMain/kotlin/com/santukis/repositories/movies/sources/SaveMovieDetailDataSource.kt | santukis | 541,433,358 | false | {"Kotlin": 208617, "Swift": 9316, "Ruby": 1968} | package com.santukis.repositories.movies.sources
import com.santukis.entities.movies.Movie
interface SaveMovieDetailDataSource {
suspend fun saveMovie(movie: Movie): Movie
} | 0 | Kotlin | 0 | 2 | 89d549ffde38f09bacec84a09c3eba56a45830d0 | 180 | CleanArchitectureKMM | Apache License 2.0 |
firefly-net/src/main/kotlin/com/fireflysource/net/http/server/impl/AsyncHttpServerConnectionListener.kt | hypercube1024 | 3,458,429 | false | {"PowerShell": 2, "Maven POM": 8, "Ignore List": 3, "Text": 3, "YAML": 2, "Markdown": 1, "Java": 498, "Kotlin": 183, "INI": 3, "Shell": 2, "XML": 6, "CMake": 1, "C++": 3, "C": 1, "HTML": 2} | package com.fireflysource.net.http.server.impl
import com.fireflysource.common.annotation.NoArg
import com.fireflysource.common.concurrent.exceptionallyCompose
import com.fireflysource.common.sys.Result
import com.fireflysource.net.http.common.codec.URIUtils
import com.fireflysource.net.http.common.exception.BadMessag... | 1 | Java | 112 | 295 | e4774ba7726a08afbe97a7ee8d7343bc9df671de | 4,884 | firefly | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/util/PushButton.kt | titanium-knights | 497,469,289 | false | {"Java": 288466, "Kotlin": 2495} | package org.firstinspires.ftc.teamcode.util
import org.firstinspires.ftc.teamcode.teleop.PassdionComponent
import org.firstinspires.ftc.teamcode.teleop.PassdionOpMode
class PushButton(val readState: () -> Boolean): PassdionComponent {
var previousState: Boolean = false
var currentState: Boolean = readState()
... | 1 | null | 1 | 1 | a570b84a21c1ef122404c5d2665b3bea30936229 | 1,334 | team-a-2021-2022 | MIT License |
data/local/src/main/java/com/hari/tmdb/local/mappers/mappers.kt | HariKulhari06 | 255,623,659 | false | {"Gradle Kotlin DSL": 4, "Java Properties": 2, "Gradle": 18, "Shell": 1, "Text": 1, "Ignore List": 14, "Batchfile": 1, "Markdown": 1, "INI": 13, "Proguard": 14, "Kotlin": 256, "XML": 175, "Java": 5, "JSON": 3} | package com.hari.tmdb.local.mappers
import com.hari.tmdb.model.mapper.IndexedMapper
import com.hari.tmdb.model.mapper.Mapper
import com.uwetrottmann.tmdb2.entities.BaseTvShow
import com.uwetrottmann.tmdb2.entities.TvShowResultsPage
fun <F, T> Mapper<F, T>.forLists(): suspend (List<F>) -> List<T> {
return { list -... | 0 | Kotlin | 1 | 5 | c3b94cc6e65882b23e904ba479466a6897b920cc | 1,279 | tmdb_app | MIT License |
examples/KExasolExample.kt | badoo | 307,729,424 | false | null |
abstract class KExasolExample {
val credentials: KExasolTestCredentials
init {
credentials = KExasolTestCredentials(
dsn = System.getenv("EXAHOST") ?: "localhost",
user = System.getenv("EXAUID") ?: "SYS",
password = System.getenv("EXAPWD") ?: "<PASSWORD>",
... | 0 | Kotlin | 0 | 9 | fa958c6a751f01eb93426b7be2c3b4598467f58c | 549 | kexasol | Apache License 2.0 |
app/src/main/java/com/ibtikar/mvvm_starter_koin_coroutines/ui/base/ViewState.kt | KhaledSherifSayed | 375,848,364 | false | null | package com.ibtikar.mvvm_starter_koin_coroutines.ui.base
import com.ibtikar.mvvm_starter_koin_coroutines.utils.erros.ApplicationException
/**
* Created by Meslmawy on 6/10/2021
*/
abstract class ViewState {
object Initial : ViewState()
data class Loading(val loading: Boolean) : ViewState()
data class E... | 0 | Kotlin | 0 | 0 | 701fcea68ed7da29416c850495b632751ed31e53 | 465 | NY-Times-Popular-Articles | The Unlicense |
app/src/main/java/com/devdaniel/marvelapp/domain/usecase/CharactersUC.kt | Cerverussz | 534,818,141 | false | {"Kotlin": 112667} | package com.devdaniel.marvelapp.domain.usecase
import com.devdaniel.marvelapp.domain.common.Result
import com.devdaniel.marvelapp.domain.model.Character
import com.devdaniel.marvelapp.domain.repository.CharactersRepository
import kotlinx.coroutines.flow.Flow
class CharactersUC(private val charactersRepository: Charac... | 0 | Kotlin | 1 | 0 | 1b0ca033cd11b712a9b8f3080c0731fcd9622832 | 548 | MarvelApp | MIT License |
plugin/src/main/kotlin/com/github/bric3/excalidraw/actions/OpenDeveloperToolsAction.kt | bric3 | 376,308,974 | false | {"Kotlin": 81246, "TypeScript": 14127, "JavaScript": 1128, "HTML": 838, "CSS": 648} | package com.github.bric3.excalidraw.actions
import com.github.bric3.excalidraw.debugMode
import com.github.bric3.excalidraw.findEditor
import com.intellij.ide.actions.CloseAction
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.opena... | 26 | Kotlin | 12 | 78 | 171023fc7a3c4b502857bc83f7f7cbf75cc3ba8c | 1,682 | excalidraw-jetbrains-plugin | MIT License |
src/main/kotlin/org/move/lang/core/psi/ext/MvLitExpr.kt | pontem-network | 279,299,159 | false | null | package org.move.lang.core.psi.ext
import com.intellij.psi.PsiElement
import org.move.lang.MvElementTypes.HEX_INTEGER_LITERAL
import org.move.lang.core.psi.MvLitExpr
val MvLitExpr.hexIntegerLiteral: PsiElement?
get() =
this.findFirstChildByType(HEX_INTEGER_LITERAL)
| 8 | Kotlin | 15 | 51 | dbf98888e0fc900a5bcfce8c8e7834ad9d34dc4b | 280 | intellij-move | MIT License |
demo/composeApp/src/iosMain/kotlin/ovh/plrapps/mapcompose/demo/ui/screens/RotationDemo.ios.kt | p-lr | 777,977,251 | false | {"Kotlin": 270653} | package ovh.plrapps.mapcompose.demo.ui.screens
import androidx.compose.runtime.Composable
import cafe.adriel.voyager.core.model.rememberScreenModel
import cafe.adriel.voyager.core.screen.Screen
import ovh.plrapps.mapcompose.demo.viewmodels.RotationVM
actual object RotationDemo : Screen {
@Composable
override ... | 8 | Kotlin | 4 | 10 | 62a0975976f250208abb62e5add7736eea538bd0 | 445 | MapComposeMP | Apache License 2.0 |
app/src/main/java/com/breezeiksindustries/features/location/model/ShopDurationResponse.kt | DebashisINT | 863,536,151 | false | {"Kotlin": 15890094, "Java": 1030472} | package com.breezeiksindustries.features.location.model
import com.breezeiksindustries.base.BaseResponse
/**
* Created by Pratishruti on 28-11-2017.
*/
class ShopDurationResponse:BaseResponse() | 0 | Kotlin | 0 | 0 | 77cc3b80d20adbe55363e1825240b8e2c6a44cf3 | 197 | IKSIndustries | Apache License 2.0 |
src/serverMain/kotlin/money/tegro/market/contract/op/collection/ChangeOwnerOp.kt | TegroTON | 491,519,429 | false | {"Kotlin": 198445, "HTML": 3914, "JavaScript": 2388, "Dockerfile": 242} | package money.tegro.market.contract.op.collection
import org.ton.block.MsgAddress
import org.ton.cell.CellBuilder
import org.ton.cell.CellSlice
import org.ton.tlb.TlbCodec
import org.ton.tlb.TlbConstructor
import org.ton.tlb.loadTlb
import org.ton.tlb.storeTlb
data class ChangeOwnerOp(
val query_id: ULong,
va... | 11 | Kotlin | 4 | 0 | bd82acf423a4d4e1a00c3eac6347aa7cf18eee5f | 1,129 | TON-Marketplace-NFT-All | MIT License |
appcues/src/main/java/com/appcues/ui/ExperienceRenderer.kt | appcues | 413,524,565 | false | null | package com.appcues.ui
import com.appcues.AppcuesConfig
import com.appcues.SessionMonitor
import com.appcues.analytics.AnalyticsTracker
import com.appcues.analytics.ExperienceLifecycleTracker
import com.appcues.analytics.track
import com.appcues.data.AppcuesRepository
import com.appcues.data.model.Experience
import co... | 2 | Kotlin | 1 | 9 | 944511391b720bf387f86b795630b532b5e1e516 | 6,168 | appcues-android-sdk | MIT License |
appcues/src/main/java/com/appcues/ui/ExperienceRenderer.kt | appcues | 413,524,565 | false | null | package com.appcues.ui
import com.appcues.AppcuesConfig
import com.appcues.SessionMonitor
import com.appcues.analytics.AnalyticsTracker
import com.appcues.analytics.ExperienceLifecycleTracker
import com.appcues.analytics.track
import com.appcues.data.AppcuesRepository
import com.appcues.data.model.Experience
import co... | 2 | Kotlin | 1 | 9 | 944511391b720bf387f86b795630b532b5e1e516 | 6,168 | appcues-android-sdk | MIT License |
app/src/main/kotlin/com/polendina/knounce/presentation/flashcard/viewmodel/FlashCardViewModelMock.kt | xquilt | 695,183,007 | false | {"Kotlin": 171841} | package com.polendina.knounce.presentation.flashcard.viewmodel
import android.os.CountDownTimer
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableLongStateOf
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapsho... | 0 | Kotlin | 0 | 0 | 9facf3d3770d2e98e942de0b6dbf35d8b0aea1d5 | 1,547 | knounce | MIT License |
src/test/kotlin/com/graphscout/ApplicationTest.kt | sztojkatamas | 668,778,024 | false | null | package com.graphscout
import com.graphscout.plugins.*
import io.ktor.client.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.serialization.kotlinx.json.*
import io.ktor.server.testing.*
import kotlinx.serialization.json.Json
private val jsonBuilder = Json {
prettyPrint = true
isLenient = t... | 0 | Kotlin | 0 | 0 | a312899426723452e42964a8c71d4d28582e26a6 | 717 | GraphScout | MIT License |
app/src/main/java/com/necatisozer/analytics/app/MainActivity.kt | necatisozer | 269,077,626 | false | null | package com.necatisozer.analytics.app
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity(R.layout.activity_main)
| 0 | Kotlin | 1 | 5 | 86de1c363d04c9ed33d75bcbeebdad43d10f2488 | 151 | kotlin-analytics | MIT License |
core/src/test/kotlin/net/corda/core/node/VersionTest.kt | jeffzfw | 88,832,828 | true | {"Kotlin": 2373890, "Java": 133475, "Groovy": 25986, "Shell": 289, "Batchfile": 106} | package net.corda.core.node
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.Test
class VersionTest {
@Test
fun `parse valid non-SNAPSHOT string`() {
assertThat(Version.parse("1.2")).isEqualTo(Version(1, 2, null, false))
}... | 0 | Kotlin | 0 | 0 | d2d7cbc9ecfc2b5255d2602a792631cffc09ece3 | 1,130 | corda | Apache License 2.0 |
app/src/main/java/com/unilim/iut/truckers/controleur/SynchronisationControleur.kt | paul-rezzonico | 690,680,634 | false | {"Kotlin": 65802} | package com.unilim.iut.truckers.controleur
import android.util.Log
import java.util.concurrent.Executors
import java.util.concurrent.ScheduledExecutorService
import java.util.concurrent.TimeUnit
class SynchronisationControleur {
private lateinit var executeur: ScheduledExecutorService
private var intervalleM... | 0 | Kotlin | 1 | 0 | 30c9df058be2d3247b4d77be320cadbd021bc0d4 | 1,033 | truckers | The Unlicense |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/sagemaker/CfnModelPackagePropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.sagemaker
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.sagemaker.CfnModelPackageProps
@Generated
public fun buildCfnModelPackageProps(initializer: @AwsCdkDsl
CfnModelPackageProps.... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 426 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/puntogris/posture/ui/reminders/configuration/ReminderItemViewHolder.kt | puntogris | 398,388,678 | false | null | package com.puntogris.posture.ui.reminders.configuration
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import com.puntogris.posture.databinding.ReminderItemVhBinding
import com.puntogris.posture.utils.ReminderUi
cl... | 0 | Kotlin | 2 | 7 | 099ba90c707c308047c43b1536f92f450f59c772 | 1,146 | posture-reminder | MIT License |
app/src/main/java/com/flatig/arknights_info/tool_ui/AboutTool.kt | Flatigers | 661,241,644 | false | null | package com.flatig.arknights_info.tool_ui
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.flatig.arknights_info.R
import com.flatig.arknights_info.app.BaseCompatActivity
import com.flatig.arknights_info.app.SelfUpdater
class AboutTool : BaseCompatActivi... | 0 | Kotlin | 0 | 1 | fb6afa7b2df69c3fc8d8d97a0e7f244190010dfd | 876 | Arknithts-Info | MIT License |
app/src/main/java/ceui/lisa/repo/SearchIllustRepo.kt | ylnbznz | 381,658,739 | true | {"Java Properties": 2, "Gradle": 6, "Shell": 1, "Markdown": 5, "Git Attributes": 1, "Batchfile": 1, "Text": 2, "Ignore List": 5, "XML": 313, "YAML": 2, "INI": 1, "Proguard": 4, "Java": 413, "Kotlin": 69, "JSON": 1, "CSS": 1} | package ceui.lisa.repo
import android.text.TextUtils
import ceui.lisa.core.FilterMapper
import ceui.lisa.core.RemoteRepo
import ceui.lisa.http.Retro
import ceui.lisa.model.ListIllust
import ceui.lisa.utils.PixivOperate
import ceui.lisa.viewmodel.SearchModel
import io.reactivex.Observable
import io.reactivex.functions.... | 1 | null | 0 | 0 | f8021c68fb656ba6f1d1d6c406feb99419bf312a | 2,004 | Pixiv-Shaft | MIT License |
app/src/main/java/id/asep/salesproject/di/NetworkModule.kt | isMail1229 | 333,321,634 | false | null | package id.asep.salesproject.di
import com.haroldadmin.cnradapter.NetworkResponseAdapterFactory
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import id.asep.salesproject.utils.Constants
import okhttp3.Call
import okhttp3.OkHttpClient
import ok... | 0 | Kotlin | 0 | 0 | cba316fc6c751f152235b594ba69ae3a811eb80e | 1,617 | SalesProject | Apache License 2.0 |
app/src/main/java/com/shid/mangalist/data/repository/DetailAnimeRepository.kt | theshid | 328,045,410 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 62, "XML": 71, "Java": 7, "JSON": 3} | package com.shid.mangalist.data.repository
import com.shid.mangalist.data.local.db.AnimeDatabase
import com.shid.mangalist.data.remote.RemoteDataSource
import com.shid.mangalist.data.remote.network.ApiServices
import com.shid.mangalist.data.remote.response.detail.CharactersListResponse
import com.shid.mangalist.data.r... | 0 | Kotlin | 0 | 0 | 78137587fc10208798e3733e7e497aeadc2a0d47 | 2,178 | MangaList | The Unlicense |
raft-base/src/main/java/top/dreamlike/base/raft/RaftStatus.kt | dreamlike-ocean | 505,124,997 | false | {"Kotlin": 84864, "Java": 6524} | package top.dreamlike.base.raft
enum class RaftStatus {
follower,
candidate,
lead
} | 0 | Kotlin | 0 | 3 | 5b9600e859e52b1d689fe2c1c6e600b5a248aaac | 96 | raft-kt | MIT License |
kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt | utopia-rise | 289,462,532 | false | null | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 49 | null | 45 | 634 | ac2a1bd5ea931725e2ed19eb5093dea171962e3f | 2,726 | godot-kotlin-jvm | MIT License |
Software/Application/app/src/main/java/hr/unizg/foi/chorlist/models/responses/ItemResponse.kt | ttomasicc | 596,167,102 | false | null | package hr.unizg.foi.chorlist.models.responses
import com.google.gson.annotations.SerializedName
data class ItemResponse(
val id: Long,
@SerializedName("id_shopping_list")
val idShoppingList: Long,
val description: String
) | 0 | Kotlin | 0 | 0 | 3846e88e42872f6c26c3de9b85feb6169d0b3660 | 241 | chorlist-app | MIT License |
app/src/main/java/com/technorapper/boiler/di/scopes/BindingScoped.kt | HaneetGH | 228,811,463 | false | null | package com.technorapper.boiler.di.scopes
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import javax.inject.Scope
@Scope
@kotlin.annotation.Retention
@Target(
AnnotationTarget.ANNOTATION_CLASS,
AnnotationTarget.CLASS,
AnnotationTarget.FUNCTION,
AnnotationTarget.PROP... | 1 | Kotlin | 5 | 9 | 14abab83d47749ebe8ca4b57b89e096b3c8c6abb | 404 | KotlinAndroidBase | Apache License 2.0 |
app/src/main/java/com/example/writeups/RecyclerViewAdapter.kt | SarvT | 724,244,749 | false | {"Kotlin": 14357} | package com.example.writeups
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.media.tv.TvView
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.AnimationUtils
import and... | 0 | Kotlin | 0 | 0 | e9767c8e9fed5385b92d923eae0622953518d12f | 2,341 | Writeups | MIT License |
app/src/test/java/com/daya/taha/utils/MainCoroutineRule.kt | daya-pangestu | 308,078,972 | false | {"Kotlin": 140694} | package com.daya.taha.utils
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.*
import org.junit.rules.TestWatcher
import org.junit.runner.Description
class MainCoroutineRule @OptIn(ExperimentalCoroutinesA... | 0 | Kotlin | 0 | 1 | a52e7e6f0c5343e491db3a1551ac183ac9f72ed8 | 1,213 | push-notif | MIT License |
app/src/main/java/com/adkdevelopment/keddit/NewsFragment.kt | dmytroKarataiev | 77,378,183 | false | null | /*
* MIT License
*
* Copyright (c) 2016. <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 0 | Kotlin | 0 | 0 | 4768fe12721a7f9ef139f8af3cc10410d51fd084 | 2,128 | Keddit | MIT License |
MLN-Android/mlnservics/src/main/java/com/immomo/mls/util/LLog.kt | momotech | 209,464,640 | false | {"C": 10709384, "Java": 4810073, "Objective-C": 2521606, "Lua": 419100, "Kotlin": 98796, "Shell": 33644, "FreeMarker": 29400, "Objective-C++": 11980, "CMake": 6555, "Ruby": 6494, "Makefile": 3309, "Python": 420, "C++": 191} | package com.immomo.mls.util
object LLog {
const val TAG_DEPENDENCE = "luadep"
@JvmStatic
fun log(obj: Any, vararg params: Any) {
LogUtil.d("lc_dep_" + obj.javaClass.name, params.fold("") { acc, s ->
"$acc $s"
})
}
@JvmStatic
fun logError(throwable: Throwable?, vara... | 98 | C | 206 | 1,612 | 6341ff6f4db5db0400691b70b4e595bffd623b36 | 624 | MLN | MIT License |
app/src/debug/java/com/mycompany/myapp/app/RobolectricApplication.kt | weverb2 | 153,906,418 | true | {"Kotlin": 65933, "XSLT": 15519, "HTML": 8033, "Python": 2697, "Shell": 1351} | package com.mycompany.myapp.app
import android.annotation.SuppressLint
import android.app.Application
@SuppressLint("Registered")
class RobolectricApplication : Application()
| 0 | Kotlin | 0 | 0 | 23028982c89d7fbda1c714840d36b067d245f1e1 | 177 | android-starter-project | Apache License 2.0 |
sample/common/src/commonMain/kotlin/com/mohamedrejeb/richeditor/sample/common/model/CustomStyle.kt | MohamedRejeb | 630,584,174 | false | null | package com.mohamedrejeb.richeditor.sample.common
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.SpanStyle
import com.mohamedrejeb.richeditor.model.RichTextStyle
data class CustomStyle(
val color: Color,
val background: Color
): RichTextStyle {
override fun applyStyle(spanStyle:... | 26 | null | 33 | 631 | 0740e34c8fc75eceafedc2c5d9011a6fbdc4f5be | 456 | Compose-Rich-Editor | Apache License 2.0 |
src/test/kotlin/no/studentmediene/micronautazurequeue/service/AzureQueueMessageReceiverTest.kt | Studentmediene | 308,722,572 | false | null | package no.studentmediene.micronautazurequeue.service
import com.azure.storage.queue.QueueAsyncClient
import com.azure.storage.queue.models.QueueMessageItem
import io.micronaut.context.event.ApplicationEventPublisher
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import no.studentmediene.micronauta... | 0 | Kotlin | 0 | 0 | bfb11792e235a3731c32552354cbea62d6fbcf2a | 3,532 | micronaut-azurequeue | Apache License 2.0 |
sample-kt/src/main/java/com/example/sample_kt/Video.kt | cr1944 | 79,197,596 | true | {"Gradle": 6, "Shell": 1, "Text": 2, "Ignore List": 2, "YAML": 1, "Markdown": 1, "Java": 60, "XML": 23, "Java Properties": 1, "Kotlin": 46, "Proguard": 1} | package com.example.sample_kt
const val ROOT = "https://raw.githubusercontent.com/danikula/AndroidVideoCache/master/files/"
enum class Video(val url: String) {
ORANGE_1(ROOT + "orange1.mp4"),
ORANGE_2(ROOT + "orange2.mp4"),
ORANGE_3(ROOT + "orange3.mp4"),
ORANGE_4(ROOT + "orange4.mp4"),
ORANGE_5(R... | 0 | Java | 0 | 0 | cbe51efb790dcbc64d02f9add262c1e00df58604 | 343 | AndroidVideoCache | Apache License 2.0 |
src/main/kotlin/kotlinFeedbackPlugin/state/active/LastActive.kt | DmitryPogrebnoy | 276,805,622 | false | {"Kotlin": 119532} | package kotlinFeedbackPlugin.state.active
import com.intellij.openapi.project.Project
import kotlinFeedbackPlugin.show.showInactiveTimeNotificationIfPossible
import java.time.LocalDateTime
/**
* Temporary storage for information about the last user activity.
*
* @see kotlinFeedbackPlugin.track.active.EditorMouseEv... | 0 | Kotlin | 1 | 0 | 4228ec23417c6cbb1844cd530883433443747655 | 633 | Kotlin-feedback-plugin | Apache License 2.0 |
firebase-dataconnect/connectors/src/androidTest/kotlin/com/google/firebase/dataconnect/connectors/keywords/TestKeywordsConnectorFactory.kt | firebase | 146,941,185 | false | {"Java": 13568535, "PureBasic": 10781995, "Kotlin": 2658699, "Python": 104323, "C++": 86300, "Makefile": 21902, "Shell": 13966, "HCL": 11091, "C": 6939, "JavaScript": 5482, "Mustache": 4729, "Ruby": 2545, "AIDL": 1486, "HTML": 215} | /*
* Copyright 2024 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 ... | 440 | Java | 575 | 2,270 | 0697dd3aadd6c13d9e2d321c75173992bfbaac3b | 1,737 | firebase-android-sdk | Apache License 2.0 |
src/main/kotlin/hr/caellian/math/vector/VectorI.kt | Caellian | 55,831,616 | false | null | package hr.caellian.math.vector
import hr.caellian.math.matrix.MatrixI
import hr.caellian.math.matrix.MatrixN
import java.nio.Buffer
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.IntBuffer
import kotlin.math.abs
import kotlin.math.roundToInt
import kotlin.math.sqrt
/**
* Vector class for doubl... | 1 | Kotlin | 1 | 3 | 130591d1848661e3c07eed46ac3b4fcf4a013cfb | 8,783 | Math | MIT License |
plugins/kotlin/j2k/new/tests/testData/newJ2k/types/nestedArrays.kt | ingokegel | 72,937,917 | false | null | internal object A {
fun sampleFunction(a: Array<IntArray>, b: Array<IntArray>): Array<IntArray> {
val n = a[0].size
val m = a.size
val p = b[0].size
val result = Array(m) { IntArray(p) }
for (i in 0 until m) {
for (j in 0 until p) {
for (k in 0 unt... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 454 | intellij-community | Apache License 2.0 |
plugins/markdown/core/src/org/intellij/plugins/markdown/extensions/common/plantuml/PlantUMLCodeFenceLanguageProvider.kt | dunno99 | 221,283,848 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.plugins.markdown.extensions.common.plantuml
import com.intellij.codeInsight.completion.CompletionParameters
import com.intellij.codeInsight.lookup.LookupElem... | 1 | null | 1 | 1 | f37a7bcddf4f66018f9cc8dbc109e0d49c3832a9 | 1,007 | intellij-community | Apache License 2.0 |
aws-analytics-pinpoint/src/test/java/com/amplifyframework/analytics/pinpoint/targeting/ConstructTargetingClasses.kt | millsjustin | 612,654,671 | true | {"Markdown": 7, "Batchfile": 3, "Shell": 7, "Gradle Kotlin DSL": 17, "Java Properties": 6, "INI": 25, "Java": 862, "Kotlin": 416, "Proguard": 2, "Ruby": 2} | /*
* Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the ... | 0 | Java | 0 | 0 | 4ba3faf714d57fb0cc55ec99546c4f7b2b31dbaf | 3,010 | amplify-android | Apache License 2.0 |
mobile/src/main/java/de/lemke/nakbuch/data/HymnDataRepository.kt | Lemkinator | 475,012,572 | false | null | package de.lemke.nakbuch.data
import de.lemke.nakbuch.data.database.*
import de.lemke.nakbuch.domain.model.BuchMode
import de.lemke.nakbuch.domain.model.Hymn
import de.lemke.nakbuch.domain.model.HymnId
import de.lemke.nakbuch.domain.model.PersonalHymn
import java.time.LocalDateTime
import javax.inject.Inject
class H... | 0 | Kotlin | 0 | 5 | bbf45db05557a7ace6b0e9ab085cd38fca2a8e7f | 2,151 | NAK-Buch | MIT License |
app/src/main/java/com/andrehaueisen/listadejanot/utilities/ViewsExtensions.kt | AndreHaueisen | 88,384,506 | false | null | package com.andrehaueisen.listadejanot.utilities
import android.support.design.widget.Snackbar
import android.support.v4.content.ContextCompat
import android.support.v7.widget.RecyclerView
import android.util.TypedValue
import android.view.View
import android.view.animation.AnimationUtils
import android.widget.TextVie... | 0 | Kotlin | 0 | 0 | f477e5520e5037bf019133051139adba4d61c962 | 1,391 | TheList | Apache License 2.0 |
app/src/main/java/com/manday/marvel/domain/MD5Provider.kt | jmanday | 301,367,076 | false | null | package com.manday.marvel.domain
import java.math.BigInteger
import java.security.MessageDigest
internal fun interface MD5Provider {
fun getMD5(input: String): String
}
internal val mD5Provider = MD5Provider {
require(it.isNotEmpty()) {
"The input can not be empty"
}
val md = MessageDigest.g... | 7 | Kotlin | 0 | 0 | e0ee0535ce4ad878bb9357b0ffcaab8aaf3f2473 | 418 | Marvel | Apache License 2.0 |
kotlin/src/main/java/com/samelody/samples/kotlin/User.kt | belinwu | 140,991,591 | false | {"Kotlin": 70895, "Java": 1117} | package com.samelody.samples.kotlin
class User(
val userId: String,
val name: String
) | 0 | Kotlin | 0 | 2 | dce2b98cb031df6bbf04cfc576541a2d96134b5d | 103 | samples | Apache License 2.0 |
src/main/java/com/sbg/arena/core/Arena.kt | SoulBeaver | 17,563,154 | false | null | package com.sbg.arena.core
import com.sbg.arena.configuration.Configuration
import org.apache.logging.log4j.LogManager
import com.sbg.arena.core.procedural_content_generation.CaveGenerator
import com.sbg.arena.core.procedural_content_generation.Generator
import org.newdawn.slick.BasicGame
import org.newdawn.slick.Game... | 0 | Kotlin | 0 | 0 | 6c9f35ab564ce1f5eab10b01ce932254fa76b068 | 2,393 | Arena--7DRL- | Apache License 2.0 |
SmallStatusLayout/src/main/java/com/smallraw/library/smallstatuslayout/OnNotifyListener.kt | SmallRaw | 248,648,347 | false | null | package com.smallraw.library.smallstatuslayout
fun interface OnNotifyListener<T> {
fun onNotify(statePage: T)
} | 0 | Kotlin | 0 | 0 | 74e3f41ea80ecbfd1414b0899d56f4ed80e83f08 | 116 | SmallStatusLayout | Apache License 2.0 |
app/src/main/java/com/lianyi/paimonsnotebook/card/service/ForegroundTest.kt | QooLianyi | 435,314,581 | false | null | package com.lianyi.paimonsnotebook.card.service
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.IBinder
import com.lianyi.paimo... | 1 | Java | 1 | 23 | 5319769a825ef05b6b28eba4a312a53a3420ce6b | 1,475 | PaimonsNotebook | Apache License 2.0 |
app/src/main/java/com/lianyi/paimonsnotebook/card/service/ForegroundTest.kt | QooLianyi | 435,314,581 | false | null | package com.lianyi.paimonsnotebook.card.service
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.IBinder
import com.lianyi.paimo... | 1 | Java | 1 | 23 | 5319769a825ef05b6b28eba4a312a53a3420ce6b | 1,475 | PaimonsNotebook | Apache License 2.0 |
app/src/main/kotlin/io/getstream/streamdraw/ui/screens/game/WordSelectionDialog.kt | GetStream | 473,444,333 | false | {"Kotlin": 133141} | /*
* Copyright 2022 Stream.IO, Inc. All Rights Reserved.
*
* 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 | 22 | 333 | 76326e340854c9c7acd29b8df65f82a00b0679c5 | 2,803 | stream-draw-android | Apache License 2.0 |
app/src/main/java/com/chuzhi/xzyx/ui/activity/WelcomeActivity.kt | wyh19950930 | 799,075,291 | false | {"Gradle": 5, "XML": 245, "Java Properties": 3, "Shell": 1, "Text": 2, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 9, "Kotlin": 59, "Java": 236, "Python": 2} | package com.chuzhi.xzyx.ui.activity
import android.Manifest
import android.animation.Animator
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.animation.PropertyValuesHolder
import android.annotation.SuppressLint
import android.content.Intent
import android.net.Uri
import and... | 0 | Java | 0 | 0 | 7c71718a52f8da7c52e80b6ab859abbbc0c37241 | 6,907 | Xz | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.