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/net/valorhcf/trojan/util/entity/EntityUtil.kt | hardcorefactions | 741,980,668 | false | {"Maven POM": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 71, "YAML": 1, "Kotlin": 35} | package cc.fyre.shard.util.entity
import cc.fyre.shard.Shard
import cc.fyre.shard.util.bukkit.NMSUtil
import net.minecraft.server.v1_8_R3.EntityTypes
import org.apache.commons.lang.WordUtils
import org.bukkit.Chunk
import org.bukkit.entity.Entity
import org.bukkit.entity.EntityType
import org.bukkit.entity.LivingEntit... | 0 | Java | 0 | 1 | 0218b00d5518c22c42b5b2dde38ebd3f716b8de4 | 5,441 | TrojanAC | MIT License |
src/main/kotlin/org/smarthata/service/CronMqttUpdater.kt | smarthata | 127,398,623 | false | {"Java": 59208, "Kotlin": 48264, "HTML": 3021, "Makefile": 2129} | package org.smarthata.service
import org.smarthata.service.message.EndpointType
import org.smarthata.service.message.SmarthataMessage
import org.smarthata.service.message.SmarthataMessageBroker
import org.springframework.scheduling.annotation.Scheduled
import org.springframework.stereotype.Service
import java.time.Loc... | 1 | null | 1 | 1 | 53c35a9946f3179150a06013fe9738f95178cb94 | 1,287 | smarthata-java-server | Apache License 2.0 |
kotlin-ir-plugin/src/test/kotlin/com/bnorm/template/IrPluginTest.kt | Jolanrensen | 321,790,604 | false | null | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 0 | f3033f7c0712b5e9a8f8ce13c0c9730a5d3b2df7 | 2,040 | suspend-prop-plugin | Apache License 2.0 |
app/src/main/java/com/guau_guau/guau_guau/data/repositories/PostRepository.kt | luisccc99 | 330,788,012 | false | null | package com.guau_guau.guau_guau.data.repositories
import com.guau_guau.guau_guau.data.network.GuauguauApi
class PostRepository(
private val api: GuauguauApi
) : BaseRepository() {
suspend fun createPost(id: String, title: String, body: String, latitude: Double?, longitude: Double?) = safeApiCall {
ap... | 0 | Kotlin | 0 | 1 | 105ebe01d82dbfc90f2b6dc06dafd37d02fcef0e | 884 | guau-guau | Apache License 2.0 |
server/src/main/kotlin/nl/knaw/huc/annorepo/auth/Role.kt | knaw-huc | 473,687,323 | false | null | package nl.knaw.huc.annorepo.auth
enum class Role(val roleName: String) {
GUEST(roleName = "guest"),
USER(roleName = "user"),
ADMIN(roleName = "admin"),
ROOT(roleName = "root")
} | 8 | Kotlin | 0 | 4 | f5853b36306b76218ef731fd089b5d270fe3f033 | 195 | annorepo | Apache License 2.0 |
app/src/main/java/com/zzr/jetpacktest/navigation/Page1Fragment.kt | zrzhong | 288,220,143 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 2, "Gradle": 3, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 173, "XML": 104, "Java": 22, "HTML": 3, "INI": 1} | package com.zzr.jetpacktest.navigation
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import androidx.navigation.fragment.findNavController
im... | 1 | null | 1 | 1 | 7765544fd6df3d615dadbe03f7df1daaac7aa1ab | 1,721 | JetpackTest | Apache License 2.0 |
site/src/jsMain/kotlin/com/prashant/blog/utils/css/EditorKeyStyle.kt | prashant17d97 | 707,855,780 | false | {"Kotlin": 463892, "CSS": 4204, "Dockerfile": 2765, "JavaScript": 795, "Swift": 592, "Shell": 228} | package com.prashant.blog.utils.css
import com.prashant.blog.utils.css.CssStyleRegistration.colorScheme
import com.varabyte.kobweb.compose.css.CSSTransition
import com.varabyte.kobweb.compose.ui.Modifier
import com.varabyte.kobweb.compose.ui.graphics.Colors
import com.varabyte.kobweb.compose.ui.modifiers.backgroundCol... | 0 | Kotlin | 0 | 0 | e5fe0b05d7dab2755c436ebe8d5742a2ebec2f6b | 820 | Blog | Apache License 2.0 |
app/src/main/java/com/example/mediaplayer/audioPlayer/notification/NotificationActions.kt | AbdelrhmanSror | 205,750,290 | false | null | package com.example.mediaplayer.audioPlayer.notification
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.core.app.NotificationCompat
import androidx.navigation.NavDeepLinkBuilder
import com.example.mediaplayer.R
import com.example.m... | 0 | Kotlin | 0 | 0 | 0485e592998b4a2818f69a86294dad113faf7354 | 2,648 | MediaPlayer | Apache License 2.0 |
src/main/kotlin/com/rose/gateway/config/markers/CommonExtensionConfig.kt | nicholasgrose | 377,028,896 | false | {"Kotlin": 261314} | package com.rose.gateway.config.markers
import com.rose.gateway.discord.bot.DiscordBotController
import com.rose.gateway.shared.concurrency.PluginCoroutineScope
import kotlinx.coroutines.launch
import kotlinx.serialization.Transient
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
/*... | 26 | Kotlin | 1 | 4 | 896a6e99b74c97128c74fd166b80c31d183fb36c | 1,630 | Gateway | MIT License |
app/src/main/java/com/goldenowl/ecommerceapp/adapters/ListReviewAdapter2.kt | Catelt | 556,541,382 | false | {"Kotlin": 403481, "Batchfile": 284} | package com.goldenowl.ecommerceapp.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.goldenowl.ecommerceapp.data.Review
import com.goldenowl.e... | 1 | Kotlin | 0 | 0 | 80cf0e9e084cb43b6d9e0f5dbbd582e41202abe8 | 2,241 | E-Commerce-Application | MIT License |
feature/timers/presentation/src/commonMain/kotlin/org/timemates/app/timers/ui/timer_creation/TimerCreationScreen.kt | timemates | 575,537,317 | false | {"Kotlin": 329102} | package org.timemates.app.timers.ui.timer_creation
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.... | 19 | Kotlin | 0 | 28 | bec7508d38e87149005c57a98f10a0eb4dbd4891 | 12,400 | app | MIT License |
mobiuskt-update-generator/src/main/kotlin/UpdateGeneratorSymbolProcessor.kt | DrewCarlson | 147,952,971 | false | null | package kt.mobius.gen
import com.google.devtools.ksp.processing.*
import com.google.devtools.ksp.symbol.*
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import com.squareup.kotlinpoet.ksp.*
import kt.mobius.*
class UpdateGeneratorSymbolProcessor(
pr... | 7 | Kotlin | 3 | 39 | 3b9c8fb9a94fec495bb2dab609178e165a90432d | 6,029 | mobius.kt | Apache License 2.0 |
app/src/main/java/com/jojalvo/mcapp/di/AppModule.kt | jose-ojalvo | 619,971,179 | false | null | package com.jojalvo.mcapp.di
import android.content.Context
import com.jojalvo.framework.base.pref.CacheManager
import com.jojalvo.mcapp.application.MCApplication
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.compone... | 0 | Kotlin | 0 | 0 | dce692be3868f044ce810f18903f0587d36acdac | 714 | MobileChallenge | Apache License 2.0 |
app/src/main/java/com/mahmoud/mohammed/movieapp/koin/AppModule.kt | hchihoang | 328,573,886 | false | null | package com.mahmoud.mohammed.movieapp.koin
import android.content.Context
import com.google.gson.Gson
import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import com.mahmoud.mohammed.movieapp.BuildConfig
import com.mahmoud.mohammed.movieapp.data.remote.api.MovieService
import com.mahmoud.mohammed... | 0 | Kotlin | 0 | 0 | 5e470ad4b16de1e483c5ee06ad246db7ad89ee0d | 2,030 | MovieApp-Clean-Architecture | Apache License 2.0 |
libraries/tools/kotlin-maven-plugin-test/src/test/resources/kotlinSimple/src/A.kt | gigliovale | 89,726,097 | false | {"Java": 23302590, "Kotlin": 21941511, "JavaScript": 137521, "Protocol Buffer": 56992, "HTML": 49980, "Lex": 18051, "Groovy": 14093, "ANTLR": 9797, "IDL": 7706, "Shell": 5152, "CSS": 4679, "Batchfile": 3721} | class A {
fun foo(s: String) = s + s
} | 0 | Java | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 42 | kotlin | Apache License 2.0 |
neoforge/src/main/kotlin/io/github/techtastic/witcheryrewoven/neoforge/datagen/WRNeoForgeRecipes.kt | TechTastic | 760,206,863 | false | {"Kotlin": 120169, "Java": 1768} | package io.github.techtastic.witcheryrewoven.neoforge.datagen
import io.github.techtastic.witcheryrewoven.datagen.WRCommonRecipes
import net.minecraft.core.HolderLookup
import net.minecraft.data.PackOutput
import net.minecraft.data.recipes.RecipeOutput
import net.minecraft.data.recipes.RecipeProvider
import java.util.... | 0 | Kotlin | 0 | 0 | da17ab38949531f016e0988ffdd43dd3e527df39 | 593 | WitcheryRewoven | MIT License |
redwood-yoga/src/commonMain/kotlin/app/cash/redwood/yoga/internal/detail/Log.kt | cashapp | 305,409,146 | false | {"Kotlin": 2089205, "Swift": 20649, "Objective-C": 4497, "Java": 1583, "Shell": 253, "HTML": 235, "C": 129} | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package app.cash.redwood.yoga.internal.detail
import app.cash.redwood.yoga.internal.YGConfig
import app.cash.redwood.yoga.interna... | 108 | Kotlin | 73 | 1,648 | 3f14e622c2900ec7e0dfaff5bd850c95a7f29937 | 806 | redwood | Apache License 2.0 |
app/src/main/java/com/noto/app/components/BottomSheetDialog.kt | alialbaali | 245,781,254 | false | {"Kotlin": 882792, "Ruby": 953} | package com.noto.app.components
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.vertic... | 60 | Kotlin | 21 | 428 | a1863c169f12d6852edc1c03d080a050647d3964 | 4,459 | Noto | Apache License 2.0 |
app/src/main/java/com/nobodysapps/septimanapp/dependencyInjection/SeptimanappApplicationModule.kt | BananaNosh | 200,501,226 | false | {"Kotlin": 129330, "HTML": 28538, "Python": 5475} | package com.nobodysapps.septimanapp.dependencyInjection
import android.content.Context
import com.nobodysapps.septimanapp.activity.MainActivity
import com.nobodysapps.septimanapp.fragments.EnrolmentFragment
import com.nobodysapps.septimanapp.fragments.HorariumFragment
import com.nobodysapps.septimanapp.fragments.MapFr... | 14 | Kotlin | 2 | 0 | aa8e7df4fb806176553e9b80001d72ef8de25d60 | 1,879 | Septimanapp | MIT License |
keel-clouddriver/src/main/kotlin/com/netflix/spinnaker/keel/clouddriver/MemoryCloudDriverCache.kt | amitkhurdhara1990 | 126,823,024 | true | {"Kotlin": 358363, "Shell": 2094} | package com.netflix.spinnaker.keel.clouddriver
import com.google.common.cache.Cache
import com.google.common.cache.CacheBuilder
import com.netflix.spinnaker.keel.clouddriver.model.Credential
import com.netflix.spinnaker.keel.clouddriver.model.Network
import com.netflix.spinnaker.keel.clouddriver.model.SecurityGroupSum... | 0 | Kotlin | 0 | 0 | db755ed4b692a38dcb53d3e5290a36c702ea0ef0 | 3,112 | keel | Apache License 2.0 |
madman/src/main/java/com/flipkart/madman/component/enums/AdEventType.kt | flipkart-incubator | 235,603,923 | false | null | /*
* Copyright (C) 2020 Flipkart Internet Pvt Ltd
*
* 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 applicabl... | 8 | null | 8 | 66 | ded0a7a5d50bdf2b60e5a31a41943266bb677041 | 1,052 | madman-android | Apache License 2.0 |
buildSrc/src/main/java/Utils.kt | simplekjl | 525,306,955 | false | null | object Utils {
private const val easyPermissionsVersion = "1.0.0"
// Easy Permissions
const val easyPermissions = "com.vmadalin:easypermissions-ktx:${easyPermissionsVersion}"
} | 1 | Kotlin | 0 | 0 | cc5f780165fabf9d9b5fe5c3caf2228a776993d3 | 190 | TrackMe | Apache License 2.0 |
src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/model/action/ReplicaCountActionConfig.kt | opensearch-project | 354,094,562 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.indexmanagement.indexstatemanagement.model.action
import org.opensearch.client.Client
import org.opensearch.cluster.service.ClusterService
import org.opensearch.common.io.stream.StreamInput
import org.opensearch.... | 74 | Kotlin | 31 | 17 | bab2b5a9cfa550f19b2eb87b7051423f74e12132 | 3,356 | index-management | Apache License 2.0 |
src/main/kotlin/nz/hailwood/inertiajs/settings/InertiaSettingsInterface.kt | hailwood | 390,622,057 | false | null | package nz.hailwood.inertiajs.settings
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory
import com.intellij.openapi.options.SearchableConfigurable
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.TextFieldWithBrowseButton
import com.inte... | 8 | Kotlin | 1 | 18 | 250e48ab5c082c032a9cf75f0bff29184ebc6903 | 3,708 | idea-inertiajs-plugin | Apache License 2.0 |
presentation/presentation_detail/src/main/java/com/serj113/presentation/detail/datasource/ReviewPagingDataSource.kt | serj113 | 260,604,628 | false | null | package com.serj113.presentation.detail.datasource
import androidx.paging.PagingSource
import androidx.paging.PagingSource.LoadResult.Page
import androidx.paging.PagingSource.LoadResult.Error
import androidx.paging.PagingState
import com.serj113.domain.base.Entity.Success
import com.serj113.domain.interactor.FetchMovi... | 0 | Kotlin | 0 | 4 | b3a201623fc7f3f67866dad5bdbad8c9882f93e4 | 1,729 | Imagine-Movies | Apache License 2.0 |
core/src/commonMain/kotlin/org/kobjects/greenspun/core/types/FuncType.kt | kobjects | 340,712,554 | false | {"Kotlin": 43685, "Ruby": 1673} | package org.kobjects.greenspun.core.types
import org.kobjects.greenspun.core.func.Func
import org.kobjects.greenspun.core.tree.Node
data class FuncType(
val index: Int,
val returnType: Type,
val parameterTypes: List<Type>,
) : Type {
override fun createConstant(value: Any): Node {
return Func... | 0 | Kotlin | 0 | 0 | 5956a46c3e53260363c683967fbcf014082cb4de | 494 | greenspun | Apache License 2.0 |
lib/src/main/java/se/warting/billy/flow/SkuStatus.kt | warting | 416,844,833 | false | {"Kotlin": 37311, "Shell": 1487} | package se.warting.billy.flow
import com.android.billingclient.api.BillingFlowParams
import com.android.billingclient.api.Purchase
import com.android.billingclient.api.SkuDetails
/**
* Defines the status of a given [Sku]
*/
sealed class SkuStatus {
/**
* The given [Sku] from this status
*/
abstra... | 22 | Kotlin | 0 | 20 | ca00f4e9d0f032906a2184b4420da58e83a25bfe | 1,003 | billy | MIT License |
core/src/main/kotlin/com/antwerkz/gridfs/GridFSFileAttributeView.kt | evanchooly | 54,803,646 | false | null | package com.antwerkz.gridfs
import java.nio.file.attribute.BasicFileAttributeView
import java.nio.file.attribute.BasicFileAttributes
import java.nio.file.attribute.FileTime
class GridFSFileAttributeView(private val path: GridFSPath) : BasicFileAttributeView {
override fun readAttributes(): BasicFileAttributes {
... | 0 | Kotlin | 0 | 2 | 58a720d9dd347e06315562f42bac90213c658da1 | 549 | gridfs-provider | Apache License 2.0 |
navigator-compose/samples/basic-sample/src/androidTest/java/com/kpstv/navigation/compose/sample/test/UnifiedTests.kt | KaustubhPatange | 356,920,997 | false | {"Kotlin": 360524, "Shell": 205} | @file:Suppress("invisible_reference", "invisible_member")
package com.kpstv.navigation.compose.sample.test
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.AndroidComposeTestRule
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onN... | 3 | Kotlin | 5 | 97 | d4f7327c4ff77883c4708d2a941e3ecad8f15daf | 5,520 | navigator | Apache License 2.0 |
app/src/main/java/no/divvun/packageobserver/SpellerArchiveWatcher.kt | divvun | 24,789,155 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "Markdown": 2, "XML": 875, "Kotlin": 131, "Java": 212} | package no.divvun.packageobserver
import android.content.Context
import io.sentry.Sentry
import no.divvun.Spellers
import no.divvun.divvunspell.SpellerArchive
import timber.log.Timber
import java.io.File
import java.io.IOException
import java.util.*
class SpellerArchiveWatcher(private val context: Context, private va... | 22 | Java | 6 | 9 | 5e71829dd991105f19aaec1d65dfff06c65b946a | 1,871 | giellakbd-android | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/inspectionsLocal/canBeParameter/modifiedInInit.kt | JetBrains | 2,489,216 | false | null | // PROBLEM: none
class ModifiedInInit(<caret>var x: Int) {
init {
x += 2
}
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 92 | intellij-community | Apache License 2.0 |
app/src/main/java/com/eneskayiklik/word_diary/feature/settings/presentation/component/FontFamilyPickerDialog.kt | Enes-Kayiklik | 651,794,521 | false | null | package com.eneskayiklik.word_diary.feature.settings.presentation.component
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
im... | 0 | Kotlin | 0 | 3 | c40d2b7fe1ce9b8926b660dcbbaa088fbca05f11 | 3,303 | WordDiary | MIT License |
app/src/main/java/com/bulletapps/candypricer/presentation/ui/scenes/main/user/supplies/SuppliesUIState.kt | jvsena42 | 485,055,339 | false | {"Kotlin": 265086} | package com.bulletapps.candypricer.presentation.ui.scenes.main.user.supplies
import com.bulletapps.candypricer.domain.model.SupplyModel
import com.bulletapps.candypricer.presentation.ui.scenes.main.user.supplies.SuppliesViewModel.ScreenActions
import kotlinx.coroutines.flow.MutableStateFlow
class SuppliesUIState(
... | 18 | Kotlin | 0 | 2 | c89da3d248d32f976ad7f0d918815822787ae33a | 1,155 | baking_calculator | MIT License |
flutter/aoe_flutter_plugin/android/src/main/kotlin/com/didi/aoe/aoeflutter/model/model/DeviceInfo.kt | didi | 199,149,606 | false | {"C++": 387625, "Objective-C": 203073, "C": 197767, "Java": 123392, "Kotlin": 104237, "Objective-C++": 19387, "Ruby": 9735, "Python": 7961, "Dart": 5232, "Shell": 2242, "CMake": 1600} | package com.didi.aoe.aoeflutter.model.model
/**
*
*
* @author noctis
* @since 1.1.0
*/
data class DeviceInfo @JvmOverloads constructor(
var uuid: String = "",
var name: String = "",
var model: String = "",
var system: String = "",
var version: String = "",
var disk:... | 11 | C++ | 128 | 869 | 2b4ddd38462eca4ca3a6e939067187504084d1fa | 859 | AoE | Apache License 2.0 |
src/main/kotlin/io/sixtysix/happenings/utils/PasswordUtil.kt | adrianeriksen | 190,924,032 | false | null | package io.sixtysix.happenings.utils
import de.mkammerer.argon2.Argon2Factory
import de.mkammerer.argon2.Argon2Helper
object PasswordUtil {
private const val TIME_IN_MS = 500L
private const val MEMORY_COST = 65536
private const val PARALLELISM = 1
private var argon2hasher = Argon2Factory.create()
... | 1 | Kotlin | 0 | 1 | ae8170cba4bc6988f8c0ef87ee08fb81f4017c08 | 712 | happenings | MIT License |
app/src/main/java/com/flixclusive/data/database/watch_history/WatchHistoryDatabase.kt | rhenwinch | 659,237,375 | false | null | package com.flixclusive.data.database.watch_history
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.flixclusive.data.database.common.FilmDataConverter
import com.flixclusive.data.database.watch_histo... | 2 | Kotlin | 2 | 18 | 2eef4c82655294eb3b277c00b3d8f7bea3f6961e | 1,240 | Flixclusive | MIT License |
app/src/main/java/eu/tkacas/smartalert/ui/screen/settings/SettingsScreen.kt | thkox | 755,205,761 | false | {"Kotlin": 339161} | package eu.tkacas.smartalert.ui.screen.settings
import android.annotation.SuppressLint
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composa... | 0 | Kotlin | 1 | 2 | bfdad11c4cf73478e897105ef5467e964e3453c8 | 1,975 | uni_2023-smart-alert | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/createandvaryalicenceapi/service/probation/Identifiers.kt | ministryofjustice | 384,371,667 | false | {"Kotlin": 2241425, "Shell": 12714, "Dockerfile": 1384, "PLpgSQL": 863} | package uk.gov.justice.digital.hmpps.createandvaryalicenceapi.service.probation
data class Identifiers(
val crn: String,
val noms: String?,
)
| 3 | Kotlin | 0 | 1 | 481532c3f259e1261adc5bbbdd6c67a4ba07c134 | 147 | create-and-vary-a-licence-api | MIT License |
shared/src/iosMain/kotlin/com/myapplication/di/modules/DbModule.kt | mobidroid92 | 642,819,457 | false | {"Kotlin": 51119, "Swift": 580, "Shell": 228, "Ruby": 101} | package com.myapplication.di.modules
import com.myapplication.di.createAppDatabase
import org.koin.dsl.module
actual val databaseModule = module {
single {
createAppDatabase()
}
}
| 0 | Kotlin | 0 | 1 | 25047d6e01799172880cd366a7762c9a0ea86e78 | 198 | Compose-Multiplatform-Demo | Apache License 2.0 |
app/src/main/java/com/manoj/dlt/interfaces/IDeepLinkHistory.kt | ManojMadanmohan | 52,667,086 | false | null | package com.manoj.dlt.interfaces
import com.manoj.dlt.models.DeepLinkInfo
interface IDeepLinkHistory {
abstract fun addLinkToHistory(deepLinkInfo: DeepLinkInfo)
abstract fun removeLinkFromHistory(deepLink: String)
abstract fun clearAllHistory()
abstract fun getLinkHistoryFromFileSystem() : List<DeepLi... | 2 | null | 1 | 19 | d8688cdb280290fa0c8e32ba6eb1164c020563fb | 329 | dlt | MIT License |
java/kotlin/src/main/kotlin/cosmos/staking/v1beta1/StakeAuthorizationKt.kt | furysport | 798,989,200 | true | {"Git Config": 1, "Text": 1, "Ignore List": 3, "Makefile": 3, "Markdown": 3, "Gradle Kotlin DSL": 5, "INI": 2, "Shell": 3, "Batchfile": 1, "Java": 181, "Kotlin": 917, "JSON with Comments": 1, "JSON": 3, "Git Attributes": 1, "EditorConfig": 1} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/staking/v1beta1/authz.proto
package cosmos.staking.v1beta1;
@kotlin.jvm.JvmSynthetic
inline fun stakeAuthorization(block: cosmos.staking.v1beta1.StakeAuthorizationKt.Dsl.() -> Unit): cosmos.staking.v1beta1.Authz.StakeAuthorization =
cosmos.... | 0 | null | 0 | 0 | ddd9cd1abce2d51cf273be478c2b614960ace761 | 10,526 | terra.proto | Apache License 2.0 |
plugin-build/src/test/kotlin/okhttp3/Interceptor.kt | getsentry | 241,145,606 | false | null | package okhttp3
interface Interceptor {
interface Chain
}
| 36 | null | 31 | 99 | 054a2aa8c8da13553c8fad034b2cebb05e733092 | 63 | sentry-android-gradle-plugin | MIT License |
app/src/main/java/com/github/andiim/plantscan/app/ui/screens/home/settings/SettingsUiState.kt | Andi-IM | 675,329,578 | false | {"Kotlin": 136413} | package com.github.andiim.plantscan.app.ui.screens.home.settings
class SettingsUiState(val isAnonymousAccount: Boolean = true) | 10 | Kotlin | 0 | 0 | 9fa7ba99cd3d1dda70f57d21e815216aab2b725d | 127 | PlantScan | MIT License |
app/src/main/java/com/andruhavuho/man/like/kcalcalc/AddSportActivity.kt | Andrey-Kachow | 453,090,583 | false | {"Kotlin": 24654} | package com.andruhavuho.man.like.kcalcalc
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.os.VibrationEffect
import android.os.Vibrator
import android.text.Editable
import android.view... | 0 | Kotlin | 0 | 0 | 2977096804dbe2f63b07d2bfa6ade18288a31f75 | 8,162 | KcalCalc | MIT License |
src/main/kotlin/com/badger/familyorgbe/service/users/UserService.kt | Artem-Yakovlev | 445,531,524 | false | {"Kotlin": 109555} | package com.badger.familyorgbe.service.users
import com.badger.familyorgbe.models.entity.TokenEntity
import com.badger.familyorgbe.models.entity.UserStatus
import com.badger.familyorgbe.models.usual.User
import com.badger.familyorgbe.repository.token.ITokenRepository
import com.badger.familyorgbe.repository.users.IUse... | 0 | Kotlin | 0 | 1 | 131e3e8841d55a9a14995aa6b254976c89d2c336 | 2,995 | FamilyOrganizerBackend | MIT License |
shared/src/commonMain/kotlin/com/norrisboat/ziuq/domain/utils/EndpointUtils.kt | norrisboat | 746,362,661 | false | {"Kotlin": 225770, "Swift": 70758} | package com.norrisboat.ziuq.domain.utils
object Endpoint {
fun Path.makeEndpoint(vararg parameters: String): String {
var endpoint = this.value
parameters.forEach { param ->
endpoint = endpoint.replaceFirst("%", param)
}
return endpoint
}
enum class Path(val va... | 0 | Kotlin | 2 | 7 | 94140c28aae2621f87b77a79edd66ea66519b047 | 605 | Ziuq | MIT License |
app/src/main/java/ru/nbsp/pushka/presentation/subscription/params/control/Control.kt | dimorinny | 51,604,851 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 11, "Java": 14, "XML": 102, "Kotlin": 258} | package ru.nbsp.pushka.presentation.subscription.params.control
/**
* Created by egor on 16.03.16.
*/
interface Control {
interface OnChangeListener {
fun onChange(newValue: String?)
}
fun getValue(): String?
fun setValue(value: String?)
fun setOnChangeListener(onChangeListener: OnChange... | 0 | Kotlin | 0 | 0 | 71ac416b33f628bbcec12fad4776f7abc242c882 | 372 | pushka-android | MIT License |
app/src/main/java/com/pingerx/gankit/ui/news/NewsData.kt | lehdutil | 182,000,434 | false | null | package com.pingerx.gankit.ui.news
/**
* @author Pinger
* @since 2018/12/10 20:43
*/
// 新闻频道
data class NewsChannelBean(val channelId: String, val name: String)
data class NewsChannelResponse(val totalNum: Int, val ret_code: Int, val channelList: List<NewsChannelBean>?)
// 新闻内容
data class NewsContentResponse(va... | 0 | Kotlin | 1 | 0 | 494ab8e1806c80d52dc5f545206ef10199f95fbc | 886 | RxNetGo | Apache License 2.0 |
app/src/main/java/com/finogeeks/finclip/base/BaseActivity.kt | finogeeks | 762,226,722 | false | {"Kotlin": 107805} | package com.finogeeks.finclip.base
import android.os.Bundle
import android.view.LayoutInflater
import androidx.appcompat.app.AppCompatActivity
import com.blankj.utilcode.util.BarUtils
import com.blankj.utilcode.util.ColorUtils
import com.finogeeks.finclip.R
abstract class BaseActivity : AppCompatActivity() {
ab... | 0 | Kotlin | 0 | 0 | 43a52370bdfe346b5dae8adf02c85e3e73d02ced | 1,231 | FinClipBroswer-Android | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/EventSeatSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/EventSeatSharp")
package mui.icons.material
@JsName("default")
external val EventSeatSharp: SvgIconComponent
| 10 | null | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 192 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/jp/ac/titech/cs/se/changeBeadsPreprocessor/model/SourceContentData.kt | salab | 241,070,560 | false | null | package jp.ac.titech.cs.se.changeBeadsPreprocessor.model
class SourceASTData () {
val classData: MutableList<ClassASTData> = mutableListOf()
override fun toString(): String {
return "class$classData"
}
}
data class ClassASTData (
val name: String, val start: Int, val length: Int, val methodDa... | 0 | Kotlin | 0 | 0 | f31caf8cb557a8279db211e99f4d7ccd44908387 | 674 | ChangeBeadsPreprocessor | Apache License 2.0 |
app/src/main/java/com/example/tophair/app/screen/menu/tabs/UserComponent.kt | TOP-HAIR | 774,715,222 | false | {"Kotlin": 248739} | package com.example.tophair.app.screen.menu.tabs
import android.util.Log
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.f... | 0 | Kotlin | 1 | 0 | 4219e8ed9922f3cb0fed332cfd31a276152c797d | 7,780 | MB_TopHair.Android | MIT License |
chat-sdk/src/main/java/ru/usedesk/chat_sdk/data/repository/api/loader/file/FileLoader.kt | usedesk | 127,645,126 | false | null |
package ru.usedesk.chat_sdk.data.repository.api.loader.file
import android.content.Context
import android.net.Uri
import androidx.core.net.toFile
import ru.usedesk.common_sdk.entity.exceptions.UsedeskDataNotFoundException
import ru.usedesk.common_sdk.utils.UsedeskFileUtil.getFileName
import java.io.File
import java.i... | 0 | Kotlin | 6 | 3 | d5407fad7b03e9522750938965ea8210d21373e3 | 1,869 | Android_SDK | MIT License |
shared/src/androidMain/kotlin/com/br/kmmdemo/WeatherMapScreen.android.kt | BottleRocketStudios | 663,198,654 | false | {"Kotlin": 57148, "Swift": 412} | package com.br.kmmdemo
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.p... | 0 | Kotlin | 0 | 0 | 250456862dcedf3ff73775b7f0f8e1086c1620fa | 2,835 | Kmp-demo | Apache License 2.0 |
bidrag-sivilstand/src/main/kotlin/no/nav/bidrag/sivilstand/response/SivilstandBeregnet.kt | navikt | 248,744,235 | false | {"Kotlin": 1721576} | package no.nav.bidrag.sivilstand.response
import no.nav.bidrag.domene.enums.person.Sivilstandskode
import no.nav.bidrag.domene.enums.person.SivilstandskodePDL
import java.time.LocalDate
data class SivilstandBo(val periodeFom: LocalDate, val periodeTom: LocalDate?, val sivilstandskodePDL: SivilstandskodePDL?)
data cl... | 1 | Kotlin | 0 | 1 | 53026fde009ab712d8250b7eb549b5915f91f7f8 | 678 | bidrag-beregn-felles | MIT License |
forage-android/src/main/java/com/joinforage/forage/android/ui/ForagePanTextUtils.kt | teamforage | 554,343,430 | false | {"Kotlin": 325889} | package com.joinforage.forage.android.core.ui
import android.content.Context
import android.content.res.TypedArray
import android.util.TypedValue
internal fun getThemeAccentColor(context: Context): Int {
val outValue = TypedValue()
context.theme.resolveAttribute(android.R.attr.colorAccent, outValue, true)
... | 3 | Kotlin | 0 | 0 | 69494180c7617f1b8a5053d97cfd6ab45b370069 | 1,872 | forage-android-sdk | MIT License |
src/main/kotlin/com/github/hanseter/json/editor/types/UnsupportedTypeModel.kt | Hanseter | 265,563,400 | false | null | package com.github.hanseter.json.editor.types
import com.github.hanseter.json.editor.extensions.EffectiveSchema
import com.github.hanseter.json.editor.util.BindableJsonType
class UnsupportedTypeModel(override val schema: EffectiveSchema<*>) : TypeModel<Any?, SupportedType.SimpleType.UnsupportedType> {
override va... | 1 | Kotlin | 1 | 1 | e5875a170cc462c6bb6b4f51cb9dec7233119ac9 | 839 | JSONPropertyEditorFx | MIT License |
src/Day22.kt | zt64 | 572,594,597 | false | null | private object Day22 : Day(22) {
override fun part1(): Any {
TODO("Not yet implemented")
}
override fun part2(): Any {
TODO("Not yet implemented")
}
}
private fun main() = Day22.main() | 0 | Kotlin | 0 | 0 | 4e4e7ed23d665b33eb10be59670b38d6a5af485d | 218 | aoc-2022 | Apache License 2.0 |
app/src/main/java/pl/wmariusz/hedgehopt/theme/Typo.kt | WMariusz | 343,868,949 | false | {"Kotlin": 20781} | package pl.wmariusz.hedgehopt.theme
import androidx.compose.material.Typography
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import pl.wmariusz.hedgehopt.R
private val Montserrat = FontFamily(
Font(R.font.montserrat)
)
val HedgehoptTypography = Typography(
default... | 5 | Kotlin | 0 | 0 | 08a9f53a5a160150a79d9e58ed8c0c520874e740 | 345 | hedgehopt | Apache License 2.0 |
kool-editor/src/commonMain/kotlin/de/fabmax/kool/editor/PlatformCallbacks.kt | fabmax | 81,503,047 | false | null | package de.fabmax.kool.editor
import de.fabmax.kool.KoolContext
expect object PlatformCallbacks {
fun onEditorStarted(ctx: KoolContext)
fun onWindowCloseRequest(ctx: KoolContext): Boolean
} | 9 | Kotlin | 12 | 194 | b7aa86ad70483a6d6ccef1290c3bad6c2f62e212 | 200 | kool | Apache License 2.0 |
buildSrc/src/main/kotlin/ru/surfstudio/android/build/exceptions/project_snapshot/ConfigurationIsProjectSnapshotException.kt | surfstudio | 175,407,898 | false | null | package ru.surfstudio.android.build.exceptions.project_snapshot
import org.gradle.api.GradleException
/**
* Throw if project configuration is project snapshot
*/
class ConfigurationIsProjectSnapshotException : GradleException(
"Configuration is project snapshot. But this task can't be use for this pipeline.... | 1 | Kotlin | 2 | 27 | 5f68262ac148bc090c600121295f81c7ce3486c0 | 323 | EasyAdapter | Apache License 2.0 |
compose-multiplatform-material/src/commonMain/kotlin/com/huanshankeji/compose/material/Icon.kt | huanshankeji | 570,509,992 | false | {"Kotlin": 46672} | package com.huanshankeji.compose.material
import androidx.compose.runtime.Composable
import com.huanshankeji.compose.material.icon.MaterialIcon
import com.huanshankeji.compose.ui.Element
import com.huanshankeji.compose.ui.ModifierOrAttrs
expect abstract class IconElement : Element
@Composable
expect fun Icon(
ma... | 12 | Kotlin | 0 | 6 | cca2836ceeeab708cb0e1effa637faac6267084c | 430 | compose-multiplatform-material | Apache License 2.0 |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/map/Pushpin2Line.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,244 | compose-icon-collections | MIT License |
src/main/kotlin/org.domaintbn.sommd.core/parsing/parserimplementations/VelocityParser.kt | user00e00 | 163,682,297 | false | null | package org.domaintbn.sommd.core.parsing.parserimplementations
import org.domaintbn.sommd.core.musical.Playhead
import org.domaintbn.sommd.core.musical.TimelineNote
import org.domaintbn.sommd.core.parsing.*
import org.domaintbn.sommd.core.parsing.RegexRepo as r
class VelocityParser() : IParser {
override val pa... | 0 | Kotlin | 2 | 0 | 60c6784e53eb38894272f74616c9484019cc3ab4 | 1,090 | sommd | MIT License |
src/main/kotlin/com/github/kory33/kalgebra/structures/instances/monoid/IntMultiplicativeMonoid.kt | kory33 | 135,460,140 | false | null | package com.github.kory33.kalgebra.structures.instances.monoid
import com.github.kory33.kalgebra.operations.MonoidOperation
import com.github.kory33.kalgebra.structures.Monoid
import com.github.kory33.kalgebra.structures.ProductComposable
class IntMultiplicativeMonoid(value: Int)
: Monoid<Int, IntMultiplicativeMo... | 0 | Kotlin | 0 | 2 | ae2420a27ef848c13fd5728d6c5cfeae3901f905 | 696 | Kalgebra | MIT License |
js/js.libraries/src/jquery/common.kt | chirino | 3,596,099 | true | null | package js.jquery;
import js.dom.core.Element
native
public public class JQuery() {
public fun addClass(className : String) : JQuery = js.noImpl;
public fun addClass(f : Element.(Int, String)->String) = js.noImpl;
public fun attr(attrName : String) = "";
public fun attr(attrName : String, value : Str... | 0 | Java | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 2,236 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/PetDetailActivity.kt | and2long | 343,263,409 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | f02fc47fc1f33589334035e26400c175ce14d3d6 | 3,975 | pet-home | Apache License 2.0 |
Kotlin/src/main/kotlin/org/algorithm/structures/Heap.kt | walterjgsp | 88,624,237 | false | null | package org.algorithm.structures
class Heap<T : Comparable<T>>(val isMinHeap: Boolean = false) {
private val heap: MutableList<T> = mutableListOf<T>()
private fun heapifyUp(index: Int) {
if (index >= 0) {
val parent: Int = (index - 1) / 2
if (heap[index] > heap[parent]) {
... | 1 | null | 3 | 6 | b3bc2fa5e105762bb8aafbe47c1d92bbe794b90d | 1,969 | algorithms | MIT License |
graph/graph-adapter-output-spring-data-neo4j-sdn6/src/main/kotlin/eu/tib/orkg/prototype/statements/adapter/output/neo4j/spring/internal/Neo4jPredicate.kt | TIBHannover | 197,416,205 | false | null | package eu.tib.orkg.prototype.statements.adapter.output.neo4j.spring.internal
import eu.tib.orkg.prototype.contributions.domain.model.ContributorId
import eu.tib.orkg.prototype.statements.domain.model.Predicate
import eu.tib.orkg.prototype.statements.domain.model.ThingId
import java.time.OffsetDateTime
import org.spri... | 0 | Kotlin | 2 | 5 | ed9c62bb8656672a5fcb7f0f2eb2bca1905d1daa | 951 | orkg-backend | MIT License |
realm/src/main/java/xyz/truenight/databinding/realm/RealmObservableList.kt | TrueNight | 103,163,113 | false | null | package xyz.truenight.databinding.realm
import androidx.databinding.ListChangeRegistry
import androidx.databinding.ObservableList
import io.realm.*
import java.util.*
import java.util.concurrent.CopyOnWriteArraySet
/**
* An [ObservableList] that uses [OrderedRealmCollectionChangeListener] to calculate and dispatch i... | 0 | Kotlin | 0 | 0 | a770bf084af0d6c2a411c59b9dfdb3368597df69 | 6,473 | DataBinding | Apache License 2.0 |
app/src/main/java/com/bsuir/bsuirschedule/presentation/fragments/WelcomeFragment.kt | Saydullin | 526,953,048 | false | {"Kotlin": 572249, "HTML": 7301} | package com.bsuir.bsuirschedule.presentation.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.navigation.Navigation
import androidx.viewpager2.widget.ViewPager2
... | 0 | Kotlin | 0 | 4 | 49dc7e7551a4c0df2ada93648291e24aecb3bda5 | 4,353 | BSUIR_Schedule | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/chrynan/launcher/ui/grid/SpanProvider.kt | chRyNaN | 161,240,007 | false | null | package com.chrynan.launcher.ui.grid
import com.chrynan.launcher.util.*
interface SpanProvider {
fun getColumnCount(position: Position, viewType: ViewType, spanColumnSize: SpanColumnSize): ColumnCount
fun getRowCount(position: Position, viewType: ViewType, spanRowSize: SpanRowSize): RowCount
fun getGri... | 0 | Kotlin | 0 | 0 | c226fc3997b0e76bcb237e2d09ee47ceed5bad2e | 385 | Launcher | Apache License 2.0 |
app/src/main/java/com/mystical/wildlegion/screens/main/models/News.kt | DeveloperXY | 145,738,735 | false | null | package com.mystical.wildlegion.screens.main.models
import java.io.Serializable
class News(var _id: String,
var title: String,
var postDate: String,
var postedBy: String,
var newsStory: String) : Serializable | 1 | null | 1 | 1 | 3743e5e88fe95c0722f98334f8799cb11111e59a | 254 | WildLegion | MIT License |
uploadservice/src/main/java/net/gotev/uploadservice/placeholders/DefaultPlaceholdersProcessor.kt | gotev | 13,067,111 | false | {"Kotlin": 231339, "Shell": 1643} | package net.gotev.uploadservice.placeholders
import net.gotev.uploadservice.data.UploadElapsedTime
import net.gotev.uploadservice.data.UploadInfo
import net.gotev.uploadservice.data.UploadRate
open class DefaultPlaceholdersProcessor : PlaceholdersProcessor {
open fun uploadElapsedTime(uploadElapsedTime: UploadEla... | 3 | Kotlin | 693 | 2,819 | 447a839a53898d1759c35afa8efef8a6ab9be212 | 1,978 | android-upload-service | Apache License 2.0 |
app/src/main/java/com/example/movieapp/model/Categoria.kt | guihroch | 725,145,273 | false | {"Kotlin": 20563} | package com.example.movieapp.model
import com.google.gson.annotations.SerializedName
data class Categoria(
@SerializedName("titulo") val titulo: String? = null,
@SerializedName("capas") val filme: MutableList<Filme> = mutableListOf()
)
data class Filme(
@SerializedName("nome") val nome:String? = null,
... | 0 | Kotlin | 0 | 0 | 89f67c729e8cde460715e62ac5441191d37cfdae | 641 | MovieApp | Apache License 2.0 |
src/main/kotlin/no/nav/klage/dokument/domain/MellomlagretMultipartFile.kt | navikt | 297,650,936 | false | null | package no.nav.klage.dokument.domain
import no.nav.klage.oppgave.util.getLogger
import org.springframework.web.multipart.MultipartFile
import java.io.*
class MellomlagretMultipartFile(private val mellomlagretDokument: MellomlagretDokument) : MultipartFile {
companion object {
@Suppress("JAVA_CLASS_ON_COM... | 3 | Kotlin | 1 | 2 | 168c8c4b9ed5192ac6870f88b6e82a665b29a4b9 | 1,337 | kabal-api | MIT License |
src/main/kotlin/no/nav/klage/dokument/domain/MellomlagretMultipartFile.kt | navikt | 297,650,936 | false | null | package no.nav.klage.dokument.domain
import no.nav.klage.oppgave.util.getLogger
import org.springframework.web.multipart.MultipartFile
import java.io.*
class MellomlagretMultipartFile(private val mellomlagretDokument: MellomlagretDokument) : MultipartFile {
companion object {
@Suppress("JAVA_CLASS_ON_COM... | 3 | Kotlin | 1 | 2 | 168c8c4b9ed5192ac6870f88b6e82a665b29a4b9 | 1,337 | kabal-api | MIT License |
app/src/main/java/com/rubens/salonpremiumclient/view/adapters/AgendaAdapter.kt | rubens23 | 709,950,371 | false | {"Kotlin": 134489} | package com.rubens.salonpremiumclient.view.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.rubens.salonpremiumclient.R
import com.rubens.salonpremiumclient.data.models.Appointment
import com.rubens.salonpremiumclient.databinding.Item... | 0 | Kotlin | 0 | 0 | 876a7dd4bf62fd10246667aa60013e5d72e19d48 | 2,041 | Salon-Premium-Client | Apache License 2.0 |
compiler/testData/diagnostics/tests/callableReference/callableReferenceAssignmentToVar.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // FIR_IDENTICAL
// SKIP_TXT
// FILE: lib.kt
package lib
fun foo(x: Double): Double = x
// FILE: main.kt
import lib.*
fun foo(): Map<Int, String> = TODO()
var z: (x: Double) -> Double = { it }
fun bar() {
z = ::foo
}
fun baz(x: (Double) -> Double) {}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 262 | kotlin | Apache License 2.0 |
src/main/kotlin/io/hsar/practice3/ProblemA.kt | HSAR | 241,918,109 | false | null | package io.hsar.practice3
/*
https://codeforces.com/contest/1298/problem/A
Input:
201 101 101 200
Output:
1 100 100
*/
fun main() {
val input = readLine()!!.split(" ")
.map { inputSegment ->
inputSegment.toInt()
}
val total = input.max()!!
val pairwiseSums = inp... | 0 | Kotlin | 0 | 0 | 69a1187ffa6e0a61324f88572851b2147d8a1210 | 837 | KotlinHeroes | MIT License |
src/main/kotlin/io/hsar/practice3/ProblemA.kt | HSAR | 241,918,109 | false | null | package io.hsar.practice3
/*
https://codeforces.com/contest/1298/problem/A
Input:
201 101 101 200
Output:
1 100 100
*/
fun main() {
val input = readLine()!!.split(" ")
.map { inputSegment ->
inputSegment.toInt()
}
val total = input.max()!!
val pairwiseSums = inp... | 0 | Kotlin | 0 | 0 | 69a1187ffa6e0a61324f88572851b2147d8a1210 | 837 | KotlinHeroes | MIT License |
rotadilavk/src/main/kotlin/com/github/alexxxdev/rotadilavk/rule/IRule.kt | alexxxdev | 143,407,528 | false | null | package com.github.alexxxdev.rotadilavk.rule
interface IRule {
val message: String
fun check(text: String): Boolean
} | 0 | Kotlin | 0 | 1 | c1abf166639d41f45c7e934073584421614885d1 | 126 | RotadilavK | Apache License 2.0 |
libs/kotlin-reflection/src/test/kotlin/net/corda/kotlin/SplitApi.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.kotlin
interface SplitApi {
var firstApi: Any?
var secondApi: Any?
var thirdApi: Any?
var reference: Any?
}
| 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 144 | corda-runtime-os | Apache License 2.0 |
library/src/main/java/com/zdog/library/render/Ellipse.kt | prostory | 211,052,399 | false | null | package com.zdog.library.render
open class Ellipse: Shape() {
var diameter = 1f
var width = 0f
var height = 0f
var quarters = 4
init {
closed = true
}
override fun setPath() {
val x = if (width != 0f) width/2 else diameter/2
val y = if (height != 0f) height/2 else ... | 0 | Kotlin | 5 | 27 | 0e0027feccb0a27b4f9926e6eabf8c59200cc54b | 1,371 | AndroidZdog | MIT License |
wear/src/main/java/ca/joshstagg/slate/SlatePaints.kt | stagg | 28,216,539 | false | null | package ca.joshstagg.slate
import android.content.Context
import android.graphics.Paint
import android.graphics.Typeface
import ca.joshstagg.slate.config.Config
class SlatePaints(context: Context, scaleFactor: Float = 1f) {
private val scale: Float = scaleFactor * context.resources.displayMetrics.density
pri... | 1 | Kotlin | 1 | 1 | b16c7ef8c5956f6e2d4c3bf4ff32fdc0e4cf1dee | 5,269 | slatewatchface | Apache License 2.0 |
src/main/kotlin/io/github/ydwk/ydwk/evm/handler/handlers/role/GuildRoleCreateHandler.kt | YDWK | 527,250,343 | false | null | /*
* Copyright 2024 YDWK inc.
*
*
* 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... | 9 | null | 1 | 2 | 7e479b29ddca2e0d9093ab8c5dae6892f5640d80 | 1,411 | YDWK | Apache License 2.0 |
app/src/main/java/com/ten/lifecat/phone/util/http/HttpUtil.kt | daili-dl | 361,082,388 | false | null | package com.ten.lifecat.phone.util.http
import java.io.BufferedReader
import java.io.InputStreamReader
import java.net.HttpURLConnection
import java.net.URL
import okhttp3.OkHttpClient
import okhttp3.Request
object HttpUtil {
/**
* HttpURLConnection手动实现连接
*/
fun sendHttpRequest(address: String, l... | 1 | null | 1 | 1 | 5baded03862426ab21ca4785469a893cac7fc844 | 1,705 | lifecat | Apache License 2.0 |
processor/src/main/kotlin/com/autodsl/processor/Constants.kt | juanchosaravia | 155,285,356 | false | null | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 4 | Kotlin | 13 | 340 | 5e0a2f7fad26d52e766d3a330768ebb3b1698435 | 895 | autodsl | Apache License 2.0 |
lib/src/main/kotlin/com/lemonappdev/konsist/api/provider/KoTypeProvider.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 2941189, "Python": 25669} | package com.lemonappdev.konsist.api.provider
import com.lemonappdev.konsist.api.declaration.KoTypeDeclaration
import kotlin.reflect.KClass
/**
* An interface representing a Kotlin declaration that provides access to its type information.
*/
interface KoTypeProvider : KoBaseProvider {
/**
* Type of the decl... | 16 | Kotlin | 19 | 768 | 22f45504ab1c88fca8314bd86f91af7dd8a3672b | 1,021 | konsist | Apache License 2.0 |
01. Variables/01.07 (Bonus) This property must either have a type annotation, be initialized or be delegated/solution.kts | evgeny-trushin | 136,894,138 | false | {"Kotlin": 15292, "Shell": 3369} | //error: this property must either have a type annotation, be initialized or be delegated
var c: Int
c = 1
println("c equals " + c) | 0 | Kotlin | 0 | 0 | 052845a963dccb788405386e0cef9db0f36bd110 | 132 | Kotlin-Script_CLI_Presentation_Trial-And-Error | MIT License |
app/src/main/java/com/technorapper/boiler/application/App.kt | HaneetGH | 228,811,463 | false | null | @file:Suppress("DEPRECATION")
package com.technorapper.boiler.application
import android.app.Activity
import android.app.Application
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.multidex.MultiDexApplication
import com.technorapper.boiler.di.applyAutoInjector
import... | 1 | null | 5 | 9 | 14abab83d47749ebe8ca4b57b89e096b3c8c6abb | 2,391 | KotlinAndroidBase | Apache License 2.0 |
simpleBleClient/src/main/java/com/bortxapps/simplebleclient/api/SimpleBleClientBuilder.kt | neoBortx | 735,979,951 | false | {"Kotlin": 155392, "Java": 572} | package com.bortxapps.simplebleclient.api
import android.content.Context
import com.bortxapps.simplebleclient.api.SimpleBleClientBuilder.operationTimeOutMillis
import com.bortxapps.simplebleclient.api.contracts.SimpleBleClient
import com.bortxapps.simplebleclient.di.BleLibraryContainer
import com.bortxapps.simpleblecl... | 0 | Kotlin | 0 | 1 | d08eee4aaaea1c44268682add3565a2749c4007e | 2,811 | SimpleBleClient | MIT License |
data/src/main/java/com/example/data/cloud/service/SchoolService.kt | yusuf0405 | 484,801,816 | false | null | package com.example.data.cloud.service
import com.example.data.cloud.models.SchoolResponse
import retrofit2.Response
import retrofit2.http.GET
interface SchoolService {
@GET("classes/School")
suspend fun getAllSchools(): Response<SchoolResponse>
} | 1 | Kotlin | 1 | 3 | 067abb34f0348b0dda1f05470a32ecbed59cfb19 | 260 | BookLoverFinalApp | Apache License 1.1 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/medialive/CfnChannelArchiveCdnSettingsPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.medialive
import io.cloudshiftdev.awscdkdsl.common.CdkDsl... | 3 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,883 | awscdk-dsl-kotlin | Apache License 2.0 |
ktor_ecommerce/src/main/kotlin/com/flowerencee/models/data/request/ForgotPasswordRequest.kt | bayuds9 | 575,217,673 | false | {"Java": 666229, "Kotlin": 216505, "Assembly": 744} | package com.flowerencee.models.data.request
data class ForgotPasswordRequest(
var email: String = "",
var phone: String = ""
)
| 1 | null | 1 | 1 | 7b469215bdd39264f1f55f86fda4468902727c0f | 136 | ktor-sample | Apache License 2.0 |
app/src/main/java/com/daya/navigation/sample/FlowStepFragment.kt | shnoble | 170,830,183 | false | null | package com.daya.navigation.sample
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import kotlinx.android.synthetic.main.fragment_flow_step_one.*
class FlowStepFragment : Frag... | 0 | Kotlin | 0 | 0 | 5f84f9f4e8ab6c8d75d505e5fd1cd94159812a3f | 1,150 | AndroidNavigationSample | Apache License 2.0 |
complete/app/src/main/java/com/denofprogramming/mycoroutineapplication/ui/main/MainViewModel.kt | denofprogramming | 406,424,799 | false | {"Kotlin": 30300} | package com.denofprogramming.mycoroutineapplication.ui.main
import android.graphics.Bitmap
import androidx.lifecycle.*
import com.denofprogramming.mycoroutineapplication.network.NetworkServiceApi
import com.denofprogramming.mycoroutineapplication.repository.image.RetrofitImageRepository
import com.denofprogramming.my... | 0 | Kotlin | 0 | 0 | cc7bb4e7b40b346be9d39312cacd77d2cf6d6cf1 | 2,107 | kotlinCoroutinesExplainedAndroidApp21 | MIT License |
app/src/main/java/com/example/managerlibrary/ui/manager/AddMemberActivity.kt | nqmgaming | 692,788,624 | false | {"Kotlin": 173384} | package com.example.managerlibrary.ui.manager
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.managerlibrary.R
import com.example.managerlibrary.dao.MemberDAO
import com.example.managerlib... | 0 | Kotlin | 0 | 1 | 1bac9423c8a0daf3f31b5268d4e8386c4cffc161 | 3,414 | ManagerLibrary | MIT License |
app/src/main/kotlin/com/thekhaeng/materialstyletemplate/adapter/item/TopicItem.kt | nontravis | 87,284,931 | false | {"Kotlin": 105356, "Java": 1197} | package com.thekhaeng.materialstyletemplate.adapter.item
import androidx.annotation.ColorInt
import com.thekhaeng.materialstyletemplate.adapter.ItemConstant.TYPE_TOPIC
import com.thekhaeng.materialstyletemplate.adapter.base.BaseItem
/**
* Created by thekhaeng on 4/7/2017 AD.
*/
class TopicItem(val topic: String,
... | 1 | Kotlin | 36 | 174 | 804e1cd36159a778a27ad4c6162b12d725c99b93 | 384 | material-design-guideline | Apache License 2.0 |
evs_sdk/src/main/java/com/iflytek/cyber/evs/sdk/agent/Launcher.kt | iFLYOS-OPEN | 209,758,318 | false | null | package com.iflytek.cyber.evs.sdk.agent
import androidx.annotation.CallSuper
import com.alibaba.fastjson.JSONObject
import com.iflytek.cyber.evs.sdk.RequestManager
import com.iflytek.cyber.evs.sdk.model.Constant
/**
* 启动器模块。详细介绍见https://doc.iflyos.cn/device/evs/reference/launcher.html#%E5%90%AF%E5%8A%A8%E5%99%A8
*/... | 1 | C | 11 | 21 | 4739e2450dcda545fb1361469a9172f82ce28c66 | 5,478 | ShowCore-Open | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.