path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/array/IntersectionOfTwoArrays.kt | aayush-goyal | 755,329,888 | false | {"Kotlin": 64988} | package `in`.aayushgoyal.array
/**
* This function is the solution to the problem mentioned @ https://leetcode.com/problems/intersection-of-two-arrays/description/
*
* @version 0.1.0
* @author Aayush Goyal
* @created 2024-03-13
* @modifier
* @modified
*/
fun intersection(nums1: IntArray, nums2: IntArray): IntA... | 0 | Kotlin | 0 | 0 | 02b912069a87f6d1984b58624b737c9d812ec67e | 1,176 | dsa | MIT License |
v1_29/src/main/java/de/loosetie/k8s/dsl/manifests/Affinity.kt | loosetie | 283,145,621 | false | {"Kotlin": 8925107} | package de.loosetie.k8s.dsl.manifests
import de.loosetie.k8s.dsl.K8sTopLevel
import de.loosetie.k8s.dsl.K8sDslMarker
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasMetadata
@K8sDslMarker
interface Affinity_core_v1: K8sManifest {
/** Describes node affinity scheduling rules for the pod. */
v... | 0 | Kotlin | 0 | 2 | 57d56ab780bc3134c43377e647e7f0336a5f17de | 709 | k8s-dsl | Apache License 2.0 |
mixin/src/main/java/com/idkidknow/mcreallink/mixin/complement/BroadcastingMessage.kt | idkidknow | 874,993,639 | false | {"Kotlin": 36788, "Java": 4693} | package com.idkidknow.mcreallink.mixin.complement
import net.minecraft.network.chat.Component
/** @see com.idkidknow.mcreallink.mixin.mixin.PlayerListMixin */
object BroadcastingMessage {
private val _ignoreMessage = ThreadLocal.withInitial { false }
val ignoreMessage: Boolean get() = _ignoreMessage.get()
... | 0 | Kotlin | 0 | 3 | 5b6783ffaa6a1e1b8d950d5e233a35a1a7fa06e7 | 501 | RealityLink | MIT License |
app/src/main/java/com/fajaradisetyawan/movieku/feature/ui/favorite/PersonFavoriteFragment.kt | FajarAdiSetyawan | 578,452,658 | false | null | /*
* Created by <NAME> on 13/1/2023 - 10:17:48
* <EMAIL>
* Copyright (c) 2023.
*/
package com.fajaradisetyawan.movieku.feature.ui.favorite
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import androi... | 0 | Kotlin | 0 | 2 | 99662b34e759e820e98fa07f9a7cff0c814226c4 | 3,180 | MovieKu | MIT License |
src/test/kotlin/com/practice/seongjin/service/BankServiceTest.kt | mobius29 | 523,205,625 | false | {"Kotlin": 6000, "HTML": 152} | package com.practice.seongjin.service
import com.practice.seongjin.datasource.BankDataSource
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class BankServiceTest {
private val dataSource: BankDataSource = mock... | 0 | Kotlin | 0 | 0 | 4e4d2f749bdbdf1d7563bade023cc7078fda11ec | 610 | Springboot-with-Kotlin | MIT License |
src/year2022/Day11.kt | Maetthu24 | 572,844,320 | false | null | package year2022
fun main() {
data class Monkey(val items: MutableList<Long>, val operation: (Long) -> Long, val divisibleBy: Long, val ifTrue: Int, val ifFalse: Int) {
fun test(nr: Long): Int {
return if(nr % divisibleBy == 0.toLong()) ifTrue else ifFalse
}
}
fun createMonkey(... | 0 | Kotlin | 0 | 1 | 3b3b2984ab718899fbba591c14c991d76c34f28c | 3,963 | adventofcode-kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/data/source/remote/model/dto/PortfolioRequestTypesDto.kt | adelsaramii | 727,620,001 | false | {"Kotlin": 1014333, "Swift": 2299, "Shell": 228} | package com.attendance.leopard.data.source.remote.model.dto
import com.attendance.leopard.data.model.LeopardTabBarTypes
import com.attendance.leopard.data.model.Subordinate
import kotlinx.serialization.SerialName
@kotlinx.serialization.Serializable
data class PortfolioRequestTypesDto(
@SerialName("Id") val id: St... | 0 | Kotlin | 0 | 0 | ed51d4c99caafefc5fc70cedbe0dd0fa62cce271 | 610 | Leopard-Multiplatform | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/EncodingOptionsDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl
import io.cloudshiftdev.awscdkdsl.common.CdkDslMarker
import kotli... | 3 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 1,091 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/java/ir/firoozehcorp/gameservice/models/gsLive/DetailDataPayload.kt | firoozehcorporation | 247,745,229 | false | null | /*
* <copyright file="DetailDataPayload.kt" company="Firoozeh Technology LTD">
* Copyright (C) 2020. Firoozeh Technology LTD. 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 L... | 0 | Kotlin | 0 | 0 | 2977427a328b7accb7972a03e4bd401a09693b72 | 1,316 | GameService-Kotlin-SDK | Apache License 2.0 |
lovebird-domain/src/main/kotlin/com/lovebird/domain/repository/jpa/CoupleCodeJpaRepository.kt | wooda-ege | 722,352,043 | false | {"Kotlin": 143743, "HTML": 36994, "Shell": 1811} | package com.lovebird.domain.repository.jpa
import com.lovebird.domain.entity.CoupleCode
import com.lovebird.domain.entity.User
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
@Repository
interface CoupleCodeJpaRepository : JpaRepository<CoupleCode, Long> {... | 4 | Kotlin | 0 | 9 | f35a7febafc19d34b8aa57063efe930bf0d162ab | 449 | lovebird-server | MIT License |
shared/src/commonMain/kotlin/com/mod/marveluniverse/domain/repositories/SeriesRepository.kt | Moujarkash | 596,891,616 | false | null | package com.mod.marveluniverse.domain.repositories
import com.mod.marveluniverse.domain.entites.Series
import com.mod.marveluniverse.domain.entites.Sort
import com.mod.marveluniverse.domain.utils.flows.CommonFlow
interface SeriesRepository {
suspend fun requestSeries(query: String? = null, sort: Sort = Sort.ASCEN... | 0 | Kotlin | 0 | 0 | 7666e686e1395485e9a2f2ed17efa793a679ee2e | 456 | Marvel-Universe- | MIT License |
database2/src/main/java/lt/markmerkk/WorklogStorage.kt | marius-m | 67,072,115 | false | null | package lt.markmerkk
import lt.markmerkk.entities.Log
import org.joda.time.LocalDate
import org.slf4j.LoggerFactory
import rx.Single
class WorklogStorage(
private val timeProvider: TimeProvider,
private val dbInteractor: DBInteractorLogJOOQ
) {
fun loadWorklogsSync(from: LocalDate, to: LocalDate)... | 1 | null | 1 | 26 | 6632d6bfd53de4760dbc3764c361f2dcd5b5ebce | 5,431 | wt4 | Apache License 2.0 |
site/src/jsMain/kotlin/org/example/newportfolio/components/sections/start/components/StartSectionImageContentStyles.kt | MohamedElgohary88 | 836,458,650 | false | {"Kotlin": 113326, "HTML": 83476, "CSS": 356} | @file:Suppress("DEPRECATION")
package org.example.newportfolio.components.sections.start.components
import com.varabyte.kobweb.compose.ui.Modifier
import com.varabyte.kobweb.compose.ui.modifiers.height
import com.varabyte.kobweb.silk.components.style.ComponentStyle
import com.varabyte.kobweb.silk.components.style.bre... | 0 | Kotlin | 0 | 0 | 712f9de08c957fe2d1d83b0060d6265c989d111a | 720 | My-Portfolio | MIT License |
BaseExtend/src/main/java/com/chen/baseextend/view/ExpandableTextView2.kt | chen397254698 | 268,411,455 | false | null | package com.chen.baseextend.view
import android.animation.Animator
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.drawable.Drawable
import android.text.TextUtils
import android.util.AttributeSet
import android.util.SparseBooleanArray
import android.view.*
import android.w... | 1 | Kotlin | 14 | 47 | 85ffc5e307c6171767e14bbfaf992b8d62ec1cc6 | 10,063 | EasyAndroid | Apache License 2.0 |
services/csm.cloud.project.project/src/test/kotlin/com/bosch/pt/iot/smartsite/project/importer/boundary/ImportRelationIntegrationTest.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2023
*
* ************************************************************************
*/
package com.bosch.pt.iot.smartsite.project.importer.boundary
import com.bosch.pt.csm.cloud.proj... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 21,326 | bosch-pt-refinemysite-backend | Apache License 2.0 |
src/main/kotlin/org/overrun/ktgl/gl/GLDrawMode.kt | Over-Run | 518,871,751 | false | null | package org.overrun.ktgl.gl
import org.lwjgl.opengl.GL40C.*
/**
* @author squid233
* @since 0.1.0
*/
enum class GLDrawMode(val glConst: Int) {
POINTS(GL_POINTS),
LINES(GL_LINES),
LINE_LOOP(GL_LINE_LOOP),
LINE_STRIP(GL_LINE_STRIP),
TRIANGLES(GL_TRIANGLES),
TRIANGLE_STRIP(GL_TRIANGLE_STRIP),
... | 0 | Kotlin | 0 | 1 | f434cd5d0e9cf428621be88b93d55cef78c26b95 | 581 | ktgl | MIT License |
fido_annotation/src/main/java/com/fido/annotation/asm/AsmMethodOpcodes.kt | SevenUpup | 588,455,697 | false | {"Kotlin": 1010830, "Java": 450588, "Groovy": 7694, "Shell": 4817} | package com.fido.annotation.asm
import org.objectweb.asm.Opcodes
object AsmMethodOpcodes {
const val INVOKESTATIC = Opcodes.INVOKESTATIC
const val INVOKEVIRTUAL = Opcodes.INVOKEVIRTUAL
const val INVOKESPECIAL = Opcodes.INVOKESPECIAL
const val INVOKEDYNAMIC = Opcodes.INVOKEDYNAMIC
const val INVOKE... | 0 | Kotlin | 0 | 2 | 4bbc5ebca4ab5d09e652b11957bd9b506812bf2d | 357 | common_utils | MIT License |
net.akehurst.language/agl-processor/src/commonMain/kotlin/api/grammarTypeModel/grammarTypeModel.kt | dhakehurst | 197,245,665 | false | {"Kotlin": 3541898, "ANTLR": 64742, "Rascal": 17698, "Java": 14313, "PEG.js": 6866, "JavaScript": 5287, "BASIC": 22} | /*
* Copyright (C) 2023 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* 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... | 3 | Kotlin | 7 | 45 | 177abcb60c51efcfc2432174f5d6620a7db89928 | 1,122 | net.akehurst.language | Apache License 2.0 |
reflekt-plugin/src/main/kotlin/io/reflekt/plugin/analysis/models/ReflektModels.kt | altavir | 408,735,983 | true | {"Kotlin": 257342} | package io.reflekt.plugin.analysis.models
import io.reflekt.plugin.analysis.processor.FileID
import io.reflekt.plugin.analysis.processor.invokes.*
import io.reflekt.plugin.analysis.processor.uses.*
import io.reflekt.plugin.analysis.psi.function.toFunctionInfo
import org.jetbrains.kotlin.psi.*
import org.jetbrains.kotl... | 0 | null | 0 | 0 | d8938ad12beeb2b53a4abe647ae6f875a1157d29 | 4,304 | reflekt | Apache License 2.0 |
src/main/kotlin/cn/soldat/jutils/system/MyProperties.kt | jacob-du | 743,856,862 | false | {"Kotlin": 33233} | package cn.soldat.jutils.system
import java.util.*
/**
* 封装项目属性配置文件实现类似 springboot 项目中 application.yml 的功能
* 使用方式:val value = MyProperties.getString(key = "xxxxx")
*/
object MyProperties {
private class PropertyFileNotFound(msg: String): Exception(msg)
/**
* 配置文件的文件夹名称 config
*/
private con... | 0 | Kotlin | 0 | 0 | b74fb635f37d7c633d504c50297c4926632c62ab | 5,566 | jutils-kt | MIT License |
app/src/main/java/com/github/hamzaahmedkhan/MainActivity.kt | hamzaahmedkhan | 211,361,829 | false | null | package com.github.hamzaahmedkhan
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.ViewGroup
import android.widget.Toast
import com.github.hamzaahmedkhan.spinnerdialog.callbacks.OnSpinnerOKPressedListener
import com.github.hamzaahmedkhan.spinnerdialog.enums.SpinnerSelectionT... | 10 | Kotlin | 15 | 57 | 1766de350a6e932b8ced7ad8d02fff637ef60faf | 4,315 | SpinnerDialog | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/HardwareSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/HardwareSharp")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val HardwareSharp: SvgIconComponent
| 12 | Kotlin | 145 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 208 | kotlin-wrappers | Apache License 2.0 |
creditreport/src/main/java/com/ap/creditreport/models/TestResult.kt | mahoganykilo | 405,100,493 | false | {"Kotlin": 30587} | package com.ap.creditreport.models
/**
* Enum for interpreting pass/fail results in the [CreditScoreReport].
*/
enum class TestResult {
PASS,
FAIL
} | 3 | Kotlin | 0 | 0 | 1f84fc772fb248d38022e7bf1ecf85b39a67a6fc | 159 | CS_example | The Unlicense |
vk-api-generated/src/main/kotlin/name/anton3/vkapi/generated/messages/objects/GetHistoryAttachmentsResponse.kt | Anton3 | 159,801,334 | true | {"Kotlin": 1382186} | @file:Suppress("unused", "SpellCheckingInspection")
package name.anton3.vkapi.generated.messages.objects
import name.anton3.vkapi.generated.groups.objects.GroupFull
import name.anton3.vkapi.generated.users.objects.UserFull
/**
* No description
*
* @property items No description
* @property nextFrom Value for pag... | 2 | Kotlin | 0 | 8 | 773c89751c4382a42f556b6d3c247f83aabec625 | 612 | kotlin-vk-api | MIT License |
core/src/main/kotlin/com/gmx/mattcha/gfont/core/fontGenerator.kt | beito123 | 168,655,591 | false | null | package com.gmx.mattcha.gfont.core
/*
gfont
Copyright (c) 2019 beito
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
import java.awt.Graphics2D
import java.awt.RenderingHints
import java.awt.image.BufferedImage
class FontGenerator(var drawers : MutableList... | 0 | Kotlin | 0 | 0 | 8319c2424c207e5eb05d8b8cdb97d0872df21259 | 3,199 | gfont | MIT License |
data/src/main/java/com/example/data/models/AudioBookData.kt | yusuf0405 | 484,801,816 | false | null | package com.example.data.models
import java.util.Date
class AudioBookData(
val id: String,
val title: String,
val author: String,
val schoolId: String,
val createdAt: Date,
val currentStartPosition: Int,
val genres: List<String>,
val audioBookFile: AudioBookFileData,
val audioBookP... | 1 | Kotlin | 1 | 2 | 6e778a25c43f85ffe25bce01788a1b5441c81880 | 500 | BookLoverFinalApp | Apache License 1.1 |
app/src/main/java/me/theek/nr/presentation/screen/PermissionScreen.kt | x86xFX | 833,714,219 | false | {"Kotlin": 59017} | package me.theek.nr.presentation.screen
import android.content.Context
import android.content.Intent
import android.provider.Settings
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layo... | 0 | Kotlin | 0 | 1 | b5ce78925b3f5c3f29ec2ea76f8093f0b966be8f | 6,522 | NotificationRecorder | Apache License 2.0 |
sample/app/src/main/java/com/idanatz/sample/ExampleApp.kt | ironSource | 158,571,396 | false | null | package com.idanatz.sample
import android.app.Application
class ExampleApp : Application() {
companion object {
private lateinit var Instance: ExampleApp
fun getInstance() = Instance
}
override fun onCreate() {
super.onCreate()
Instance = this
}
} | 7 | null | 45 | 471 | 72fa2f2059a45d2fc7c4eb8bc66e1d8681296811 | 300 | OneAdapter | MIT License |
app/src/main/java/com/example/knucseapp/data/model/CommentForm.kt | KNU-CSE-APP | 382,007,598 | false | null | package com.example.knucseapp.data.model
data class CommentForm(
val boardId: Int,
val content: String
)
| 2 | Kotlin | 2 | 3 | 6d84ad36d6ea742cfc4e8cfb0d3dcb8df4e6c229 | 114 | Android | MIT License |
app/src/main/kotlin/graphpad/tool/VertexColorTool.kt | kubeliv | 407,054,020 | false | null | package graphpad.tool
import graphpad.model.AppState
import io.github.humbleui.jwm.MouseButton
class VertexColorTool(appState: AppState) : Tool(appState) {
override val status: String
get() = "Color Vertices"
override fun handleMouseButton(button: MouseButton, pressed: Boolean, mods: Int) {
if (pressed) ... | 0 | Kotlin | 0 | 0 | 33ac3db8ccf5bd6f64f8086d2733e01ac351e42e | 363 | graphpad | MIT License |
idea/tests/testData/shortenRefsFir/types/ParameterTypeImportedTypeWins.dependency.kt | JetBrains | 278,369,660 | false | null | package dependency
class T | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 27 | intellij-kotlin | Apache License 2.0 |
lib/src/commonMain/kotlin/xyz/mcxross/ksui/model/ProgrammableTransaction.kt | mcxross | 611,172,630 | false | {"Kotlin": 192403} | package xyz.mcxross.ksui.model
class ProgrammableTransactionBuilder {
private val inputs: MutableMap<BuilderArg, CallArg> = LinkedHashMap()
private val commands: MutableList<Command> = mutableListOf()
fun input(arg: BuilderArg, value: CallArg) {
inputs[arg] = value
}
fun command(command: Command) {
... | 1 | Kotlin | 2 | 3 | 05ff11abff0b842b173347b3d2278c6f92fe453c | 1,297 | ksui | Apache License 2.0 |
installer/src/main/java/com/oasisfeng/island/installer/AppInstallationNotifier.kt | proletarius101 | 268,232,190 | false | null | package com.oasisfeng.island.installer
import android.annotation.SuppressLint
import android.app.Notification
import android.app.Notification.BigTextStyle
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.content.pm.Per... | 1 | null | 1 | 51 | 7b527a5834952404bb7b38364cb38a3d6ed89a92 | 4,888 | Insular | Apache License 2.0 |
src/main/kotlin/no/nav/jantra/river/model/Message.kt | jantra-io | 657,993,647 | false | {"Kotlin": 283127, "HTML": 466} | package no.nav.jantra.river.model
import com.fasterxml.jackson.databind.JsonNode
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.jantra.river.IKey
interface Message {
operator fun get(key: IKey): JsonNode
operator fun set(key: IKey, value: Any)
fun toJsonMessage(): JsonMessage
}
| 0 | Kotlin | 0 | 1 | e688b16c413e44ba7ddb4b4959206efe3f0431c1 | 311 | jantra-river-pond | MIT License |
app/src/main/java/com/androiddevhispano/diaryapp/screens/write/WriteRoute.kt | rastetedev | 666,259,578 | false | null | package com.androiddevhispano.diaryapp.screens.write
import android.widget.Toast
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
imp... | 0 | Kotlin | 0 | 0 | 4cce610b5a85855ed4397ef0304605cb14ec6d06 | 5,418 | DiaryApp | The Unlicense |
app/src/main/java/com/dudo/sleepsafe/ui/welcome/WelcomeActivity.kt | Borutsky | 274,680,654 | false | null | package com.dudo.sleepsafe.ui.welcome
import androidx.lifecycle.ViewModelProviders
import android.content.Intent
import android.os.Bundle
import androidx.viewpager.widget.ViewPager
import androidx.appcompat.app.AppCompatActivity
import android.view.View
import com.dudo.sleepsafe.R
import com.dudo.sleepsafe.di.Injector... | 0 | Kotlin | 0 | 1 | 7f5a968aea5d9153ff2e5dd955ddd90fa52ebf64 | 2,204 | sleepsafe | Apache License 2.0 |
mobileapp/src/commonMain/kotlin/io/github/landrynorris/multifactor/compose/CopyButton.kt | LandryNorris | 499,945,866 | false | {"Kotlin": 147552, "Swift": 9853, "Ruby": 2324, "Shell": 1049} | package io.github.landrynorris.multifactor.compose
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx... | 3 | Kotlin | 0 | 5 | b5d033fde4efcac78d88e8000f598f198bf92126 | 761 | MultiFactor | Apache License 2.0 |
core/src/main/kotlin/com/ferelin/core/adapter/base/RecyclerExt.kt | NikitaFerelin | 339,103,168 | false | null | /*
* Copyright 2021 Leah Nichita
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 0 | Kotlin | 3 | 30 | 18670da6124d0328b0d323b675d0bafdb4df45f6 | 2,214 | Android_Stock_Price | Apache License 2.0 |
app/src/main/kotlin/com/boswelja/contactringtonegenerator/common/contacts/Contact.kt | boswelja | 243,659,835 | false | null | package com.boswelja.contactringtonegenerator.common.contacts
import android.net.Uri
/**
* Basic information about a contact from the device.
* @param id See [android.provider.ContactsContract.Contacts._ID]
* @param lookupKey See [android.provider.ContactsContract.Contacts.LOOKUP_KEY]
* @param displayName See [an... | 0 | Kotlin | 0 | 1 | dd1443ebb4861634d70c5756f9e40899eb0b7836 | 782 | Ringtonator | Apache License 2.0 |
app/src/main/java/org/traccar/client/data/source/retrofit/APIClient.kt | ilhamhadisyah | 391,513,478 | false | null | package org.traccar.client.data.source.retrofit
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object APIClient {
private const val BASE_URL = "https://fms.antarejasinergi.com/api/"
private fun client(token: String): OkHttpClient {
return ... | 0 | Kotlin | 0 | 0 | 429efeaf55dd468c9b9434ce7a6dec789027d5a9 | 1,058 | ceria-nugraha-indotama-fms | Apache License 2.0 |
markdown-compose/src/main/kotlin/me/tylerbwong/markdown/compose/visitors/UnorderedListItemVisitor.kt | adarshgumashta | 300,819,766 | true | {"Kotlin": 374878} | package me.tylerbwong.markdown.compose.visitors
import androidx.compose.foundation.text.InlineTextContent
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.withStyle
import org.intellij.markdown.Mark... | 0 | null | 0 | 0 | b48b73a7d600e66f40dd5f07a9c1f04996a1ef0e | 1,245 | stack | Apache License 2.0 |
simplified-reader-bookmarks/src/main/java/org/nypl/simplified/books/reader/bookmarks/ReaderBookmarkRemoteState.kt | NYPL-Simplified | 30,199,881 | false | null | package org.nypl.simplified.books.reader.bookmarks
/**
* The states in which a remote bookmark can be.
*/
sealed class ReaderBookmarkRemoteState {
object Sending : ReaderBookmarkRemoteState()
object Deleting : ReaderBookmarkRemoteState()
object Deleted : ReaderBookmarkRemoteState()
object Unknown : ReaderBo... | 109 | null | 21 | 32 | 781e4e2122f1528253a6cf17931083944f91ceba | 387 | Simplified-Android-Core | Apache License 2.0 |
maestro-orchestra/src/main/java/maestro/orchestra/yaml/YamlOnFlowComplete.kt | mobile-dev-inc | 476,427,476 | false | {"Kotlin": 1025452, "TypeScript": 199278, "Swift": 61726, "JavaScript": 16304, "Shell": 14163, "CSS": 2349, "Smarty": 904, "HTML": 358} | package maestro.orchestra.yaml
import com.fasterxml.jackson.annotation.JsonCreator
data class YamlOnFlowComplete(val commands: List<YamlFluentCommand>) {
companion object {
@JvmStatic
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
fun parse(commands: List<YamlFluentCommand>) = YamlOnFlow... | 374 | Kotlin | 273 | 5,808 | e957c5ef248afe672c2ba0bda3c555880a3dc990 | 379 | maestro | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/spotify/fragment/SongFragment.kt | raheemadamboev | 340,883,544 | false | null | package xyz.teamgravity.spotify.fragment
import android.os.Bundle
import android.support.v4.media.session.PlaybackStateCompat
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.SeekBar
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewMo... | 0 | Kotlin | 0 | 0 | ecacc5d517944467050c6ece661580739bcffc2a | 5,811 | spotify-app | Apache License 2.0 |
src/main/kotlin/me/devoxin/flight/api/command/slash/annotations/SubCommandHolder.kt | mixtape-oss | 331,475,215 | true | {"Kotlin": 120308} | package me.devoxin.flight.api.command.slash.annotations
import me.devoxin.flight.annotation.FlightPreview
/**
* Marks a cog as a sub-command holder, this cog may only have sub-commands and nested sub-command holders
*/
@FlightPreview
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS)
annotation... | 0 | Kotlin | 0 | 3 | 70c2ba879fe1d67959d9c125479cced9dea38ed2 | 416 | flight | Apache License 2.0 |
src/commonMain/kotlin/space/kscience/kmath/functions/LabeledPolynomial.kt | SciProgCentre | 562,226,014 | false | {"Kotlin": 1641902} | /*
* Copyright 2018-2022 KMath contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:Suppress("NOTHING_TO_INLINE", "KotlinRedundantDiagnosticSuppress")
package space.kscience.kmath.functions
import space.kscience.kmath.expressions... | 0 | Kotlin | 1 | 7 | 67f9bf6e1ed7bc67720a7323692d9b95d60e6e1c | 22,107 | kmath-polynomial | Apache License 2.0 |
src/jsMain/kotlin/matt/file/file.kt | mgroth0 | 513,680,528 | false | null | package matt.file
import matt.file.CaseSensitivity.CaseInSensitive
import matt.file.construct.mFile
import matt.lang.NOT_IMPLEMENTED
import matt.model.obj.text.MightExistAndWritableText
import matt.model.obj.text.WritableBytes
import kotlin.reflect.KClass
actual val defaultCaseSensitivity by lazy {
CaseInSensit... | 0 | Kotlin | 0 | 0 | 682be5934dc72e5cc524ef5d6489763cc567ff54 | 2,167 | file | MIT License |
intellij2checkstyle-core/src/main/kotlin/de/theodm/intellij2checkstyle/inspect/gatherArguments/getAppliedIntelliJPath/GetAppliedIntelliJPath.kt | theodm | 143,562,099 | false | null | package de.theodm.intellij2checkstyle.inspect.gatherArguments.getAppliedIntelliJPath
import java.nio.file.FileSystem
import java.nio.file.Path
internal fun getAppliedIntelliJPath(
fs: FileSystem,
intelliJPathOverride: Path?,
env: Map<String, String> = System.getenv()
): Path {
if (intelliJPathOverride... | 1 | null | 1 | 1 | 2607e1f9e4f64e7b4e8140c56918ad5d856a62eb | 714 | intellij2checkstyle | Apache License 2.0 |
protocol/auth/src/main/kotlin/com/walletconnect/auth/json_rpc/model/JsonRpcMethod.kt | WalletConnect | 435,951,419 | false | {"Kotlin": 2502705, "Java": 4366, "Shell": 1892} | @file:JvmSynthetic
package com.walletconnect.auth.json_rpc.model
internal object JsonRpcMethod {
@get:JvmSynthetic
const val WC_AUTH_REQUEST: String = "wc_authRequest"
} | 78 | Kotlin | 71 | 199 | e373c535d7cefb2f932368c79622ac05763b411a | 179 | WalletConnectKotlinV2 | Apache License 2.0 |
src/org/elixir_lang/debugger/stack_frame/value/Presentation.kt | KronicDeth | 22,329,177 | false | {"Kotlin": 2461440, "Elixir": 2165417, "Java": 1582388, "Euphoria": 151683, "Lex": 69822, "HTML": 22466, "Makefile": 499} | /*
* Copyright 2012-2014 <NAME>
* Copyright 2017 <NAME>
* Copyright 2017 <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
*
* U... | 590 | Kotlin | 153 | 1,815 | b698fdaec0ead565023bf4461d48734de135b604 | 8,327 | intellij-elixir | Apache License 2.0 |
src/main/kotlin/dev/rivu/rivutalks/Config.kt | RivuChk | 589,626,244 | false | null | package dev.rivu.rivutalks
import io.ktor.server.config.*
class Config constructor(config: ApplicationConfig) {
val DATABASE_HOST = config.property("database.host").getString()
val SYNC_KEY = config.property("key.sync").getString()
val DATABASE_PORT = config.property("database.port").getString()
val ... | 0 | Kotlin | 0 | 0 | 33cc54e162724bf016e3ad36768e07efb363b7a1 | 687 | RivuTalks-Backend | MIT License |
src/main/java/com/mvv/gui/audio/festival.kt | odisseylm | 679,732,600 | false | {"Kotlin": 958577, "CSS": 25523, "Java": 6651} | package com.mvv.gui.audio
import com.mvv.gui.util.*
import org.apache.commons.exec.*
import org.apache.commons.lang3.SystemUtils.IS_OS_LINUX
import java.io.ByteArrayOutputStream
import java.io.IOException
import java.io.OutputStream
import java.io.UncheckedIOException
import java.util.concurrent.CopyOnWriteArrayList
i... | 0 | Kotlin | 0 | 0 | cb6364700e440bb0a7632e5ab7e41a68120244dc | 8,177 | learn-words | Creative Commons Attribution 3.0 Unported |
vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/board/Topic.kt | alatushkin | 156,866,851 | false | null | package name.alatushkin.api.vk.generated.board
import name.alatushkin.api.vk.generated.notifications.NotificationParent
open class Topic(
val id: Long? = null,
val title: String? = null,
val created: Long? = null,
val createdBy: Long? = null,
val updated: Long? = null,
val updatedBy: Long? = n... | 2 | Kotlin | 3 | 10 | 123bd61b24be70f9bbf044328b98a3901523cb1b | 447 | kotlin-vk-api | MIT License |
src/lib/kotlin/slatekit-core/src/main/kotlin/slatekit/core/cache/Cache.kt | ColleenKeegan | 174,519,919 | false | {"Text": 22, "Ignore List": 25, "YAML": 1, "Markdown": 20, "Gradle": 44, "Shell": 27, "Batchfile": 27, "Java Properties": 17, "Kotlin": 690, "INI": 2, "Java": 4, "SQL": 1, "XML": 5, "HTML": 1, "CSS": 1, "JavaScript": 1, "Swift": 3} | /**
* <slate_header>
* url: www.slatekit.com
* git: www.github.com/code-helix/slatekit
* org: www.codehelix.co
* author: <NAME>
* copyright: 2016 CodeHelix Solutions Inc.
* license: refer to website and/or github
* about: A tool-kit, utility library and server-backend
* mantra: Simplicity above all else
* </s... | 1 | null | 1 | 1 | bd1d55f2191f729149e901be102c22d7c719793d | 4,487 | slatekit | Apache License 2.0 |
app/src/main/java/uk/co/sentinelweb/cuer/app/ui/playlists/PlaylistsHelpConfig.kt | sentinelweb | 220,796,368 | false | null | package uk.co.sentinelweb.cuer.app.ui.playlists
import uk.co.sentinelweb.cuer.app.R
import uk.co.sentinelweb.cuer.app.ui.common.resources.ActionResources
import uk.co.sentinelweb.cuer.app.ui.onboarding.OnboardingContract
import uk.co.sentinelweb.cuer.app.ui.onboarding.OnboardingContract.Config.Screen
import uk.co.sent... | 90 | Kotlin | 0 | 2 | a3a99bf0950cfe3f4dcdecd331fad746067138e7 | 3,977 | cuer | Apache License 2.0 |
kotlin-android-utils/src/main/java/humazed/github/com/kotlinandroidutils/ServiceUtils.kt | humazed | 107,024,259 | false | null | package humazed.github.com.kotlinandroidutils
import android.app.ActivityManager
import android.app.Service
import android.content.Context
/**
* Check if the service is running in the device.
*
* @param serviceClass the service class
* @return whether the service is running
*/
@Suppress("DEPRECATION")
fun Contex... | 0 | Kotlin | 0 | 6 | fd1c763644147b1931c41cb1892960f89cf4991f | 792 | KotlinAndroidUtils | MIT License |
ui-workouts/src/main/java/com/gerosprime/gylog/ui/workouts/session/adapters/exercises/PerformedExerciseAdapter.kt | gerosprime | 213,372,637 | false | null | package com.gerosprime.gylog.ui.workouts.session.adapters.exercises
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.gerosprime.gylog.base.OnItemClickListener
import com.gerosprime.gylog.models.exercises.performed.ExercisePerformedEntity
impor... | 0 | Kotlin | 0 | 1 | a775377e6a8bdb81e405eb1b04ca5fd14f5dd9c6 | 2,054 | gylog-android-app | Apache License 2.0 |
app/src/main/java/com/pr656d/cattlenotes/ui/breeding/history/BreedingHistoryActionListener.kt | pr656d | 217,208,430 | false | {"Kotlin": 916289} | /*
* Copyright 2020 Cattle Notes. 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 0 | Kotlin | 0 | 0 | e375ab87cd75fedec5d457f07b730eee25723f4f | 1,133 | CattleNotes | Apache License 2.0 |
model/src/main/kotlin/org/trails/model/Field.kt | schildawg | 331,812,566 | false | {"Java": 51330, "Kotlin": 28498, "Batchfile": 114} | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 1 | null | 1 | 1 | 8e81af02a1c67a7226462cc8e3b5affffd75edb8 | 893 | trails | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ks/sak/kjerne/behandling/domene/BehandlingSøknadsinfo.kt | navikt | 533,308,075 | false | {"Kotlin": 2528971, "Shell": 1039, "Dockerfile": 141} | package no.nav.familie.ks.sak.kjerne.behandling.domene
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 jakarta.persistence.ManyToOne
import ... | 4 | Kotlin | 0 | 2 | 265ce47c828d57bb7a2abc4c8070a68c30f689a1 | 1,261 | familie-ks-sak | MIT License |
presentation/src/main/java/com/thetestcompany/presentation/listitemmanagement/ListItemManagementListFragment.kt | LjungErik | 166,547,194 | false | null | package com.thetestcompany.presentation.listitemmanagement
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.graphics.Color
import android.os.Bundle
import android.support.design.widget.FloatingActionButton
import android.support.design.widget.Snackbar
import androi... | 0 | Kotlin | 0 | 0 | a1e5a595183e7199130e0dbc1c8e32a07c011661 | 7,487 | AndroidShoppingApp | MIT License |
common/src/main/kotlin/org/stardustmodding/interstellar/api/planet/data/AtmosphereState.kt | StardustModding | 703,282,326 | false | {"Kotlin": 83772, "Shell": 5565, "Java": 2839, "GLSL": 2679} | package org.stardustmodding.interstellar.api.planet.data
import net.minecraft.nbt.CompoundTag
import net.minecraft.nbt.ListTag
import net.minecraft.nbt.Tag
import org.stardustmodding.interstellar.api.data.NbtSerializable
class AtmosphereState : NbtSerializable<AtmosphereState> {
var gases: MutableList<GasState> =... | 0 | Kotlin | 1 | 3 | 6185d241e7ceae7ab29f8e344d0c19596ad84b05 | 902 | Interstellar | MIT License |
app/src/main/kotlin/com/muedsa/muaa/model/JsonRpcResponse.kt | muedsa | 703,390,470 | false | {"Kotlin": 36771} | package com.muedsa.muaa.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class JsonRpcResponse<T>(
val id: Int,
@SerialName("jsonrpc")
val jsonRpc: String,
val result: T?
)
| 3 | Kotlin | 0 | 1 | ab71b5fe008b16d77409a1234c129b8e8d6d1b2a | 249 | MUAA | MIT License |
app/src/main/java/org/oppia/app/administratorcontrols/administratorcontrolsitemviewmodel/AdministratorControlsProfileViewModel.kt | gunishjain | 242,320,352 | true | {"Kotlin": 1670406} | package org.oppia.app.administratorcontrols.administratorcontrolsitemviewmodel
/** [ViewModel] for the recycler view in [AdministratorControlsFragment]. */
class AdministratorControlsProfileViewModel : AdministratorControlsItemViewModel()
| 0 | Kotlin | 0 | 0 | 0e319b35c298a43f6689e63c7963d9279d55f93f | 240 | oppia-android | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Cardreceive.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.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
import androidx... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 6,188 | VuesaxIcons | MIT License |
livemap/src/commonMain/kotlin/jetbrains/livemap/entities/geocoding/LocationCalculateSystem.kt | tchigher | 229,856,588 | true | {"Kotlin": 4345032, "Python": 257583, "CSS": 1842, "C": 1638, "Shell": 1590, "JavaScript": 1584} | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.livemap.entities.geocoding
import jetbrains.datalore.base.typedGeometry.*
import jetbrains.livemap.LiveMapContext
import jetbrains.livemap.LiveMapSystem
imp... | 0 | null | 0 | 0 | f6fd07e9f44c789206a720dcf213d0202392976f | 1,451 | lets-plot | MIT License |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/map/MapPinUserFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.map
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.Stroke... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,419 | compose-icon-collections | MIT License |
data/src/test/java/es/jnsoft/data/source/FakeHourlyLocalDataSource.kt | Javicompi | 406,051,782 | false | {"Kotlin": 263070} | package es.jnsoft.data.source
import es.jnsoft.data.local.HourlyLocalDataSource
import es.jnsoft.data.model.HourlyData
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
class FakeHourlyLocalDataSource : HourlyLocalDataSource {
private var savedHourlies: MutableList<HourlyData> = mutableList... | 0 | Kotlin | 1 | 4 | 241cf1e71553cfdd5ee9b1635efbaf23c6a421ea | 1,418 | WhatWeath | Apache License 2.0 |
libs/mintycore/src/main/java/com/solanamobile/mintyfresh/mintycore/endpoints/ArweaveEndpoints.kt | solana-mobile | 586,997,383 | false | {"Kotlin": 207429, "Shell": 1506} | package com.solanamobile.mintyfresh.mintycore.endpoints
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.HEAD
import retrofit2.http.Path
interface ArweaveEndpoints {
@HEAD("{ID}")
suspend fun exists(@Path("ID") transactionId: String): Response<Void>
@GET("{ID}")
suspend fun ge... | 13 | Kotlin | 17 | 42 | e06d6d3c4b45c5ed736e422ed622cac9cd330ce1 | 381 | Minty-fresh | Apache License 2.0 |
src/test/kotlin/com/github/shmvanhouten/adventofcode/day22gridcomputing/EmptyNodeMoverTest.kt | SHMvanHouten | 109,886,692 | false | {"Kotlin": 616528} | package com.github.shmvanhouten.adventofcode.day22gridcomputing
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import org.junit.Test
class EmptyNodeMoverTest {
@Test
fun `it should 'move' the empty node up next to the top right corner`() {
val clusterBuilder = ... | 0 | Kotlin | 0 | 0 | a8abc74816edf7cd63aae81cb856feb776452786 | 2,190 | adventOfCode2016 | MIT License |
src/main/kotlin/dev/hybridlabs/aquatic/entity/cephalopod/FireflySquidEntity.kt | hybridlabs | 661,391,321 | false | {"Kotlin": 892890, "Java": 69899} | package dev.hybridlabs.aquatic.entity.cephalopod
import dev.hybridlabs.aquatic.tag.HybridAquaticEntityTags
import net.minecraft.entity.EntityType
import net.minecraft.entity.attribute.DefaultAttributeContainer
import net.minecraft.entity.attribute.EntityAttributes
import net.minecraft.entity.mob.WaterCreatureEntity
im... | 6 | Kotlin | 0 | 4 | 82c3b26d6697d2e5666b173101ade38505a3fe4c | 1,265 | hybrid-aquatic | MIT License |
baselibrary/src/main/java/ruolan/com/baselibrary/injection/module/ActivityModule.kt | wuyinlei | 117,832,134 | false | null | package ruolan.com.baselibrary.injection.module
import android.app.Activity
import dagger.Module
import dagger.Provides
import ruolan.com.baselibrary.injection.ActivityScope
/**
* Created by wuyinlei on 2018/1/21.
*
* @function
*/
@Module
class ActivityModule(private val activity: Activity) {
@ActivityScope
... | 1 | null | 1 | 2 | 2b388a915760c6f85dc1523b42cf11446c3ff63f | 410 | CNMarket4Kotlin | Apache License 2.0 |
app/src/main/java/did/chris/alt/ui/constraintui/trackerList/trackerListAdapter/TrackerListAdapter.kt | Flinted | 118,820,530 | false | {"Kotlin": 260564, "Java": 727} | package did.chris.alt.ui.constraintui.trackerList.trackerListAdapter
import android.support.constraint.ConstraintLayout
import android.support.v4.content.ContextCompat
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.Filter
import andr... | 0 | Kotlin | 0 | 0 | 52fbabc0f24712b5b1721df047da32c8f8301d2a | 6,255 | ALT-Crypto-Tracker | Apache License 2.0 |
Kotiln/reactive-extension/src/main/kotlin/chapter1/EffectedSample.kt | bekurin | 558,176,225 | false | {"Git Config": 1, "Text": 12, "Ignore List": 96, "Markdown": 58, "YAML": 55, "JSON with Comments": 2, "JSON": 46, "HTML": 104, "robots.txt": 6, "SVG": 10, "TSX": 15, "CSS": 64, "Gradle Kotlin DSL": 107, "Shell": 72, "Batchfile": 71, "HTTP": 15, "INI": 112, "Kotlin": 682, "EditorConfig": 1, "Gradle": 40, "Java": 620, "J... | package chapter1
import io.reactivex.Flowable
import java.util.concurrent.TimeUnit
class EffectedSample {
private enum class State {
ADD, MULTIPLY
}
private lateinit var calcMethod: State
fun main() {
calcMethod = State.ADD
val flowable = Flowable.interval(300L, TimeUnit.MI... | 0 | Java | 0 | 2 | ede7cdb0e164ed1d3d2ee91c7770327b2ee71e4d | 1,049 | blog_and_study | MIT License |
graphene-reader/src/test/kotlin/com/graphene/reader/store/data/cassandra/handler/OffsetBasedDataFetchHandlerTest.kt | graphene-monitoring | 208,468,543 | true | null | package com.graphene.reader.store.data.cassandra.handler
import com.graphene.common.beans.OffsetRange
import com.graphene.common.beans.Path
import com.graphene.common.beans.SeriesRange
import com.graphene.common.store.data.cassandra.CassandraFactory
import com.graphene.common.store.data.cassandra.property.CassandraDat... | 8 | Java | 4 | 34 | 6bba2e000a744411322dfa19769ad8608463f6cc | 4,060 | graphene | MIT License |
test/ad/kata/hangman/oo/VerboseHostTest.kt | andrej-dyck | 252,646,491 | true | {"Kotlin": 39732, "Java": 3408} | package ad.kata.hangman.oo
import ad.kata.hangman.ArrowSeparatedStrings
import ad.kata.hangman.nonEmptyLines
import ad.kata.hangman.take
import ad.kata.hangman.toMinimalGuesses
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import o... | 0 | Kotlin | 0 | 0 | b519b29b4657a78a0d33fd61eba6a2b58b89bb33 | 5,848 | kata-hangman | MIT License |
kotest-assertions/src/jvmMain/kotlin/io/kotest/assertions/ErrorCollector.kt | junron | 258,232,982 | false | {"Gradle": 30, "YAML": 2, "Markdown": 12, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 1, "Batchfile": 2, "EditorConfig": 1, "INI": 4, "Kotlin": 574, "Maven POM": 1, "XML": 10, "JavaScript": 1, "Java": 1, "JSON": 1} | package io.kotlintest.assertions
import java.util.*
actual object ErrorCollector {
private val clueContext = object : ThreadLocal<Stack<Any>>() {
override fun initialValue(): Stack<Any> = Stack()
}
private val failures = object : ThreadLocal<MutableList<Throwable>>() {
override fun initialValue(): Mut... | 1 | null | 1 | 1 | e176cc3e14364d74ee593533b50eb9b08df1f5d1 | 1,165 | kotlintest | Apache License 2.0 |
airbyte-commons-worker/src/main/kotlin/io/airbyte/workers/internal/bookkeeping/AirbyteMessageTracker.kt | svr-sannapureddy | 698,987,584 | true | {"Java Properties": 2, "Shell": 55, "Markdown": 61, "Batchfile": 1, "Java": 1411, "Dockerfile": 19, "Python": 20, "INI": 6, "TypeScript": 431, "JavaScript": 21, "HTML": 5, "CSS": 3, "SQL": 13, "Kotlin": 98, "Gradle Kotlin DSL": 2} | package io.airbyte.workers.internal.bookkeeping
import io.airbyte.commons.features.FeatureFlags
import io.airbyte.commons.json.Jsons
import io.airbyte.config.FailureReason
import io.airbyte.protocol.models.AirbyteMessage
import io.airbyte.protocol.models.AirbyteTraceMessage
import io.airbyte.workers.helper.FailureHelp... | 0 | null | 0 | 0 | a13cae2082701e7ee6cefbfb7ce716cdc6196a54 | 4,595 | airbyte-platform | MIT License |
app/src/main/java/com/banuba/example/integrationapp/videoeditor/widget/recordbutton/ReverseInterpolator.kt | jackmiron | 330,617,978 | false | {"Gradle": 3, "JSON": 14, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 14, "YAML": 1, "Proguard": 1, "XML": 78, "Kotlin": 16, "Java": 1, "TOML": 5, "GLSL": 26, "JavaScript": 9} | package com.banuba.example.integrationapp.videoeditor.widget.recordbutton
import android.view.animation.Interpolator
import kotlin.math.abs
internal object ReverseInterpolator : Interpolator {
override fun getInterpolation(input: Float) = abs(input - 1f)
}
| 1 | null | 1 | 1 | 617955e2ccc9360b0d8fea0171437d86285e06e2 | 264 | ve-sdk-android-integration-sample | Apache License 2.0 |
escommons-persistence/src/test/kotlin/org/biacode/escommons/persistence/repository/Person.kt | Biacode | 97,226,786 | false | null | package org.biacode.escommons.persistence.repository
import org.biacode.escommons.core.model.document.AbstractEsDocument
/**
* Created by Arthur Asatryan.
* Date: 7/14/17
* Time: 2:57 PM
*/
data class Person(var firstName: String = "") : AbstractEsDocument() | 6 | Kotlin | 5 | 6 | 518620a41f97cc6cb119e02969ba3a66d574c2a8 | 264 | escommons | MIT License |
compiler/testData/codegen/bytecodeText/oldLanguageVersions/constProperty/accessorsForPrivateConstants.kt | android | 263,405,600 | true | null | // !LANGUAGE: -InlineConstVals
// IGNORE_BACKEND: JVM_IR
// FILE: Foo.kt
private const val OUTER_PRIVATE = 20
class Foo {
companion object {
private const val LOCAL_PRIVATE = 20
}
fun foo() {
// Access to the property use getstatic on the backed field
LOCAL_PRIVATE
// Acce... | 0 | Kotlin | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 443 | kotlin | Apache License 2.0 |
wire-grpc-tests/src/test/proto-grpc/routeguide/RouteSummary.kt | wesleyk | 171,755,276 | true | {"INI": 17, "YAML": 1, "Markdown": 5, "Text": 1, "Gradle": 18, "Shell": 2, "Batchfile": 1, "Ignore List": 1, "Kotlin": 49, "Java": 212, "Protocol Buffer": 45, "Maven POM": 1, "XML": 2} | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: routeguide/RouteGuideProto.proto
package routeguide
import com.squareup.wire.FieldEncoding
import com.squareup.wire.Message
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.ProtoReader
import com.squareup.wire.ProtoWriter
im... | 0 | Java | 0 | 0 | 0f3f2e017e0e14420707d7f11e15a7f2c8bdc140 | 3,672 | wire | Apache License 2.0 |
plugins/kotlin/navigation/tests/testData/navigationToLibrarySourcePolicy/resolveToStdlib/functions/listOf_1parm.kt | ingokegel | 72,937,917 | false | null | fun a() {
li<caret>stOf(1)
}
// REF: (kotlin.collections.listOf) public actual fun <T> listOf(element: T): List<T>
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 120 | intellij-community | Apache License 2.0 |
logcat/src/com/android/tools/idea/logcat/message/LogcatMessage.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,169 | android | Apache License 2.0 |
feature/src/main/kotlin/de/scout/fireplace/feature/home/MatchFragment.kt | Scout24 | 96,885,938 | false | null | package de.scout.fireplace.feature.home
import android.os.Bundle
import android.support.v4.view.ViewCompat
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.squareup.picasso.C... | 0 | Kotlin | 0 | 0 | 9c4532cf447d6df5a55c42628ce9dd85e7068e76 | 3,710 | is24-fireplace-android | Apache License 2.0 |
javalin/src/main/java/io/javalin/plugin/bundled/RouteOverviewPlugin.kt | javalin | 87,012,358 | false | null | package io.javalin.plugin.bundled
import io.javalin.Javalin
import io.javalin.event.HandlerMetaInfo
import io.javalin.event.WsHandlerMetaInfo
import io.javalin.http.ContentType
import io.javalin.http.Context
import io.javalin.http.Handler
import io.javalin.http.Header
import io.javalin.plugin.Plugin
import io.javalin.... | 21 | null | 544 | 6,596 | 8cb4851e9a3eb2ca5b2f4963db0e3515757bd13f | 1,640 | javalin | Apache License 2.0 |
SpringBootCommonBaseFrameLibraryFromLorenWang/src/javabase/lorenwang/common_base_frame/database/table/SbcbflwBaseUserInfoTb.kt | Seachal | 357,416,119 | false | null | package javabase.lorenwang.common_base_frame.database.table
import com.fasterxml.jackson.annotation.JsonAutoDetect
import javabase.lorenwang.common_base_frame.database.SbcbflwBaseTableConfig
import javabase.lorenwang.tools.common.JtlwCommonUtils
import javax.persistence.*
import java.io.Serializable
/**
* 功能作用:用户表
... | 1 | null | 1 | 1 | 7690a5b15ad84faa88856a57dba9145fcea0126b | 3,031 | LorenWangCustomTools | Apache License 2.0 |
library/src/main/kotlin/com/devbrackets/android/playlistcore/components/playlisthandler/DefaultPlaylistHandler.kt | brianwernick | 49,831,322 | false | null | /*
* Copyright (C) 2016 - 2017 <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 agr... | 4 | null | 25 | 87 | 91808f7a75959958c6ddb0c719a263ddaba3f443 | 20,107 | PlaylistCore | Apache License 2.0 |
app/src/main/java/com/skydoves/moviecompose/repository/DiscoverRepository.kt | skydoves | 398,811,971 | false | null | /*
* Designed and developed by 2021 skydoves (<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... | 0 | Kotlin | 59 | 424 | 3406612b0fc2b1ee804140ce3a384d11666fbffc | 2,474 | MovieCompose | Apache License 2.0 |
core/designsystem/src/main/kotlin/com/ngapp/metanmobile/core/designsystem/component/htmltext/HtmlText.kt | ngapp-dev | 878,233,406 | false | {"Kotlin": 1167674} | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). 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
*
*... | 0 | Kotlin | 0 | 0 | f44bd23069c40a0342ed1310505f5bcc0547868c | 7,566 | metanmobile | Apache License 2.0 |
app/src/main/java/ru/ustimov/weather/ui/EmptyViewInfoFactory.kt | dmitryustimov | 104,711,604 | false | null | package ru.ustimov.weather.ui
import android.content.Context
import ru.ustimov.weather.R
import ru.ustimov.weather.content.DatabaseException
import ru.ustimov.weather.content.NetworkException
import ru.ustimov.weather.content.NoConnectionException
import ru.ustimov.weather.content.UnknownErrorException
class EmptyVie... | 0 | null | 0 | 1 | cca480ccb9b507f78fb3ab3c1d7e16f71b1bdcf9 | 1,972 | weather-kotlin | Apache License 2.0 |
src/main/kotlin/Day2.kt | clechasseur | 267,632,210 | false | null | import org.clechasseur.adventofcode2016.Pt
import org.clechasseur.adventofcode2016.move
import org.clechasseur.adventofcode2016.toDirection
object Day2 {
private val input = """
UDRLRRRUULUUDULRULUDRDRURLLDUUDURLUUUDRRRLUUDRUUDDDRRRLRURLLLDDDRDDRUDDULUULDDUDRUUUDLRLLRLDUDUUUUDLDULLLDRLRLRULDDDDDLULURUDURDD... | 0 | Kotlin | 0 | 0 | 8c80910a1ddeff9c430f38e0c99f7fa1e1df46bc | 4,390 | adventofcode2016 | MIT License |
app/src/main/java/app/coinverse/dependencyInjection/UtilsModule.kt | vittorioromeo | 506,268,602 | true | {"Kotlin": 264221} | package app.coinverse.dependencyInjection
import android.app.Application
import android.content.Context
import androidx.room.Room
import app.coinverse.feed.room.CoinverseDatabase
import app.coinverse.utils.DATABASE_NAME
import app.coinverse.utils.ROOM_MIGRATION_1_2
import app.coinverse.utils.ROOM_MIGRATION_2_3
import ... | 0 | null | 0 | 1 | 8b936ca37b81cdd19e24c8605d32ac33424bebea | 947 | Coinverse | Apache License 2.0 |
finger-paint/app/src/main/java/ru/cscenter/fingerpaint/db/types.kt | cscenter | 214,458,041 | false | null | package ru.cscenter.fingerpaint.db
import androidx.room.TypeConverter
@Suppress("unused")
enum class GameType(val id: Int) {
CHOOSE_FIGURE(1),
CHOOSE_LETTER(2),
CHOOSE_FIGURE_COLOR(3),
CHOOSE_LETTER_COLOR(4),
CHOOSE_SPECIAL(5),
DRAW_FIGURE(6),
DRAW_LETTER(7),
DRAW_SPECIAL(8)
}
enum cl... | 0 | Kotlin | 0 | 0 | 1d86529c2ad31092eceae5f80844dd090ac58aef | 786 | Y02_Project_finger-paint | MIT License |
app/src/main/java/com/project/githubuser/viewModel/ViewModelFactory.kt | lalabib | 413,357,812 | false | {"Kotlin": 40300} | package com.project.githubuser.viewModel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider.NewInstanceFactory
import com.project.githubuser.preference.SettingPreferences
import com.project.githubuser.ui.setting.SettingPreferenceViewModel
class ViewModelFactory(private val pref: SettingPr... | 0 | Kotlin | 1 | 1 | 992a175b4782d45fb7494dc55eb924efb36f909c | 699 | Github-user | MIT License |
support/pork-idea/src/main/kotlin/gay/pizza/pork/idea/PorkElementManipulator.kt | GayPizzaSpecifications | 680,636,847 | false | {"Kotlin": 357342} | package gay.pizza.pork.idea
import com.intellij.openapi.util.TextRange
import com.intellij.psi.AbstractElementManipulator
import com.intellij.psi.PsiFileFactory
import com.intellij.psi.impl.PsiFileFactoryImpl
import com.intellij.psi.util.elementType
import gay.pizza.pork.idea.psi.gen.PorkElement
class PorkElementMani... | 0 | Kotlin | 1 | 0 | 8951c3cd60863d95a07e2f687341290f97895d90 | 1,055 | pork | MIT License |
komga_client/src/main/kotlin/io/github/snd_r/komga/sse/KomgaEventSource.kt | Snd-R | 775,064,249 | false | {"Kotlin": 797189, "CMake": 18341, "C": 5383, "Dockerfile": 767, "Shell": 116} | package io.github.snd_r.komga.sse
import kotlinx.coroutines.flow.SharedFlow
interface KomgaEventSource {
val incoming: SharedFlow<KomgaEvent>
fun connect()
fun disconnect()
fun close()
}
| 0 | Kotlin | 0 | 2 | a2acfae425fa125596f7fd531396ea8725fb1e9e | 206 | Komelia | Apache License 2.0 |
app/src/test/kotlin/no/nav/tilbakemeldingsmottak/util/builders/InnmelderBuilder.kt | navikt | 397,956,011 | false | {"Kotlin": 344582, "Handlebars": 3256, "Mustache": 1617, "Dockerfile": 199} | package no.nav.tilbakemeldingsmottak.util.builders
import no.nav.tilbakemeldingsmottak.model.Innmelder
class InnmelderBuilder {
private var navn: String? = "Innmelder Innmeldersen"
private var telefonnummer: String? = null // Settes hvis innmelder ønsker sprivate var
private var personnummer: String? = "0... | 2 | Kotlin | 0 | 0 | 489e5c8150f292da74028505b82865baaa2d99f0 | 964 | tilbakemeldingsmottak-api | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Leaderboard.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 | 4,940 | icons | MIT License |
app/src/main/kotlin/com/kondenko/pocketwaka/domain/auth/GetTokenHeaderValue.kt | Kondenko | 95,912,101 | false | null | package com.kondenko.pocketwaka.domain.auth
import com.kondenko.pocketwaka.data.auth.repository.AccessTokenRepository
import com.kondenko.pocketwaka.domain.UseCaseSingle
import com.kondenko.pocketwaka.utils.SchedulersContainer
import com.kondenko.pocketwaka.utils.encryption.Encryptor
import io.reactivex.Single
class... | 2 | null | 7 | 58 | 6f1423415e2a23f12626ac67c9afb25f2df9e302 | 832 | pocketwaka | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.