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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/kotlin/org/artembogomolova/demo/webapp/main/dao/repo/AuthenticationRepositories.kt | bogomolov-a-a | 307,182,964 | false | null | package org.artembogomolova.demo.webapp.main.dao.repo
import org.artembogomolova.demo.webapp.main.domain.auth.Authority
import org.artembogomolova.demo.webapp.main.domain.auth.Role
import org.artembogomolova.demo.webapp.main.domain.auth.User
import org.springframework.data.repository.CrudRepository
import org.springfr... | 1 | Kotlin | 0 | 0 | 8b533b736e75ab2fca39888b3a3953e3810c121d | 737 | demo-spring-simple-webapp-with-tls | Apache License 2.0 |
java-to-kotlin/src/main/kotlin/lec11/FooKotlin.kt | JinseongHwang | 629,867,831 | false | {"Kotlin": 29011, "Java": 14569} | package lec11
open class FooKotlin protected constructor(
val age: Int,
val name: String,
) | 0 | Kotlin | 0 | 2 | 445aec00ceb19bca3cc96494edd849bfebcc91b2 | 100 | kotlin-playground | MIT License |
src/ii_collections/_14_FilterMap.kt | hkirk | 87,408,648 | true | {"Kotlin": 80675, "Java": 4952} | package ii_collections
fun example1(list: List<Int>) {
// If a lambda has exactly one parameter, that parameter can be accessed as 'it'
val positiveNumbers = list.filter { it > 0 }
val squares = list.map { it * it }
}
fun Shop.getCitiesCustomersAreFrom(): Set<City> {
// Return the set of cities the ... | 0 | Kotlin | 0 | 0 | 317d497bef2e891990a7f1211553a44e419f46f0 | 637 | kotlin-koans | MIT License |
src/main/java/io/github/openstarruler/launchpad/adapter/SingleFinder.kt | OpenSRProject | 373,821,012 | false | {"Kotlin": 92789, "Java": 640} | package io.github.openstarruler.launchpad.adapter
import java.nio.file.Path
class SingleFinder(pattern: String) : Finder<Path?>(pattern) {
// Returns the result.
override var result: Path? = null
private set
// Compares the glob pattern against
// the file or directory name.
override fun ... | 2 | Kotlin | 0 | 5 | d6719c629bca9b848d2ceedf3d0a90b7c1fc6327 | 520 | OpenStarRuler-Launchpad | MIT License |
src/main/kotlin/org/cascadebot/slashcommandstest/commands/PermissionsUserRemoveCommand.kt | CascadeBot | 393,667,127 | false | null | package org.cascadebot.slashcommandstest.commands
import net.dv8tion.jda.api.interactions.commands.OptionType
import net.dv8tion.jda.api.interactions.commands.build.SubcommandData
import org.cascadebot.slashcommandstest.commandmeta.CommandArgs
import org.cascadebot.slashcommandstest.commandmeta.CommandContext
import o... | 0 | Kotlin | 0 | 0 | b43987c93539d353d24bfc7fd6a222d790b6474d | 1,009 | SlashCommandsTest | MIT License |
import-export/domain/src/main/kotlin/studio/lunabee/onesafe/importexport/repository/AutoBackupSettingsRepository.kt | LunabeeStudio | 624,544,471 | false | {"Kotlin": 2791660, "Java": 11977, "Python": 3979} | /*
* Copyright (c) 2023 Lunabee Studio
*
* 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 agree... | 0 | Kotlin | 1 | 2 | 26deecf44e0bec9944a2bf231da1dff1ec829745 | 2,060 | oneSafe6_SDK_Android | Apache License 2.0 |
app/src/main/java/com/kotlin/todolist/activities/CreateNewTaskActivity.kt | jgabrielfreitas | 69,763,743 | false | null | package com.kotlin.todolist.activities
import android.text.TextUtils.isEmpty
import com.jgabrielfreitas.core.Task
import com.jgabrielfreitas.core.database.TaskManager
import com.jgabrielfreitas.layoutid.annotations.InjectLayout
import com.kotlin.todolist.R
import com.kotlin.todolist.extentions.toast
import kotlinx.and... | 0 | Kotlin | 2 | 5 | c165d0963ebf83508325c782180cdf538ab5b334 | 1,007 | Todo-List | MIT License |
v2-model/src/commonMain/kotlin/com/bselzer/gw2/v2/model/item/SalvageKitItem.kt | Woody230 | 388,820,096 | false | {"Kotlin": 750899} | package com.bselzer.gw2.v2.model.item
import com.bselzer.gw2.v2.model.item.detail.SalvageKitDetails
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("Tool")
data class SalvageKitItem(
@SerialName("details")
val details: SalvageKitDetails = SalvageKitD... | 2 | Kotlin | 0 | 2 | 7bd43646f94d1e8de9c20dffcc2753707f6e455b | 339 | GW2Wrapper | Apache License 2.0 |
source/app/src/main/java/io/github/alanrb/opentv/ErrorFragment.kt | alanrb | 375,899,889 | false | null | package io.github.alanrb.opentv
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import androidx.leanback.app.ErrorSupportFragment
/**
* This class demonstrates how to extend [androidx.leanback.app.ErrorSupportFragment].
*/
class ErrorFragment : ErrorSupportFragment() {
... | 0 | Kotlin | 0 | 0 | b5773464b4e8cd40910ef5575870e4bc3a1a7452 | 1,019 | open-tv | Apache License 2.0 |
app/src/main/java/de/hamurasa/session/SessionModules.kt | oberstrike | 237,395,186 | false | null | package de.hamurasa.session
import de.hamurasa.session.fragments.AlternativeFragmentAbstract
import de.hamurasa.session.fragments.StandardFragmentAbstract
import de.hamurasa.session.fragments.WritingFragment
import de.hamurasa.session.models.SessionEvent
import org.koin.dsl.module
val sessionModules = module {
fa... | 0 | Kotlin | 0 | 0 | 92ca55cadd101165efb4ee43e4ac2373de899511 | 585 | HaMuRasaAppVersion2 | MIT License |
core/kmpp/jsApp/src/main/kotlin/DropDownItem.kt | kanawish | 480,934,685 | false | null | import kotlinx.html.*
import org.w3c.dom.HTMLElement
sealed class DropDownItem {
abstract fun TagConsumer<HTMLElement>.render()
data class Item(val text:String): DropDownItem() {
override fun TagConsumer<HTMLElement>.render() {
// TODO: Some action needed on click...
li { a(clas... | 0 | Kotlin | 1 | 1 | 7de3e167a4cd4f717ff5f7bf5d121c8d841b96bd | 1,326 | ks-community | MIT License |
invirt-http4k/src/main/kotlin/invirt/http4k/handlers/StaticResources.kt | resoluteworks | 762,239,437 | false | {"Kotlin": 215738, "Makefile": 628, "CSS": 8} | package invirt.http4k.handlers
import invirt.http4k.cacheDays
import org.http4k.core.then
import org.http4k.routing.*
/**
* Binds
* - /static to resources/webapp/static
* - /static/assets/${version} to resources/webapp/static/assets, to allow versioning of CSS/JS/etc.
*
* Static resources will be cached by de... | 0 | Kotlin | 0 | 0 | f5b6f9861a6779ec65d8fdefe9aefe4992ed3fdc | 1,423 | invirt | Apache License 2.0 |
acrarium/src/main/kotlin/com/faendir/acra/model/view/VApp.kt | F43nd1r | 91,593,043 | false | null | /*
* (C) Copyright 2018 <NAME> (https://github.com/F43nd1r)
*
* 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 ... | 24 | Kotlin | 38 | 163 | b129913ead8c24249f7a59bf37b14b64947af0f6 | 989 | Acrarium | Apache License 2.0 |
common/src/desktopMain/kotlin/com/darkrockstudios/apps/hammer/common/util/DateTimeUtils.kt | Wavesonics | 499,367,913 | false | null | package com.darkrockstudios.apps.hammer.common.util
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.toJavaLocalDateTime
import java.time.format.DateTimeFormatter
actual fun LocalDateTime.format(format: String): String =
DateTimeFormatter.ofPattern(format).format(this.toJavaLocalDateTime()) | 0 | Kotlin | 0 | 0 | 62d2425e954e7b8701a1d8e5d582b07a4ee4832b | 307 | hammer-editor | MIT License |
app/src/main/java/com/lyc/gank/utils/NonNullSingleLiveEvent.kt | SirLYC | 93,046,345 | false | null | package com.lyc.gank.utils
import android.support.annotation.NonNull
/**
* Created by hgj on 20/12/2017.
*/
class NonNullSingleLiveEvent<T>(initValue: T) : SingleLiveEvent<T>() {
init {
value = initValue
}
override fun setValue(@NonNull value: T?) {
super.setValue(value!!) // nonnull
... | 1 | Kotlin | 0 | 6 | f72e0079a84871da510012e8f4b8cb330f80d1a1 | 502 | Android-Gank-Share | Apache License 2.0 |
app/src/main/java/com/lyc/gank/utils/NonNullSingleLiveEvent.kt | SirLYC | 93,046,345 | false | null | package com.lyc.gank.utils
import android.support.annotation.NonNull
/**
* Created by hgj on 20/12/2017.
*/
class NonNullSingleLiveEvent<T>(initValue: T) : SingleLiveEvent<T>() {
init {
value = initValue
}
override fun setValue(@NonNull value: T?) {
super.setValue(value!!) // nonnull
... | 1 | Kotlin | 0 | 6 | f72e0079a84871da510012e8f4b8cb330f80d1a1 | 502 | Android-Gank-Share | Apache License 2.0 |
src/medium/_19RemoveNthNodeFromEndOfList2.kt | ilinqh | 390,190,883 | false | {"Kotlin": 363537, "Java": 30918} | package medium
import ListNode
class _19RemoveNthNodeFromEndOfList2 {
class Solution {
fun removeNthFromEnd(head: ListNode?, n: Int): ListNode? {
head ?: return head
val preHead = ListNode(0)
preHead.next = head
var slow = preHead
var fast: ListN... | 0 | Kotlin | 0 | 0 | ad4413ce7afaee9c8e5b1f24bf9745ce742c2b80 | 658 | AlgorithmsProject | Apache License 2.0 |
generate/src/main/kotlin/common/ExtendKotlinPoet.kt | DATL4G | 372,873,797 | false | null | package common
import com.squareup.kotlinpoet.*
fun TypeSpec.Builder.primaryConstructor(vararg properties: PropertySpec): TypeSpec.Builder {
val propertySpecs = properties.map { p -> p.toBuilder().initializer(p.name).build() }
val parameters = propertySpecs.map { ParameterSpec.builder(it.name, it.type).build(... | 0 | Kotlin | 1 | 37 | ab2a825dd8dd8eb704278f52c603dbdd898d1875 | 1,231 | Kromex | Apache License 2.0 |
app/src/main/java/com/wegdut/wegdut/data/user/StudentRegisterDto.kt | laishere | 301,439,203 | false | null | package com.wegdut.wegdut.data.user
data class StudentRegisterDto(
val name: String,
val password: String,
val nickname: String,
val studentNumber: String,
val studentPassword: String
) | 0 | Kotlin | 2 | 6 | b62720ce8fbe79817b9c05e6bb1eeff09f53e804 | 206 | wegdut-android | MIT License |
shared/network/src/commonMain/kotlin/com/sedsoftware/tackle/network/response/FilterResponse.kt | djkovrik | 769,140,107 | false | {"Kotlin": 880456, "Swift": 995} | package com.sedsoftware.tackle.network.response
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal class FilterResultResponse(
@SerialName("filter") val filter: FilterResponse = FilterResponse(),
@SerialName("keyword_matches") val keywordMatches: List<Stri... | 15 | Kotlin | 0 | 1 | 5ca5a5bc9c41b6f628fac47db35126fef716e8d0 | 1,283 | Tackle | MIT License |
app/src/main/java/com/ananya/xinder/activities/TinderCloneMainActivity.kt | Meghdut-Mandal | 249,491,297 | false | null | package com.ananya.xinder.activities
import android.content.Context
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.viewpager.widget.ViewPager
import com.google.android.material.bottomnavigation.BottomNavigation... | 1 | null | 1 | 1 | 11f4f7574e5171ae27264624ff23d8f44a7e8548 | 2,029 | Xinder | Apache License 2.0 |
app/src/main/java/com/android/fiiapp/data/Fii.kt | luciomp | 623,729,962 | false | null | package com.android.fiiapp.data
import kotlinx.serialization.Serializable
import java.util.*
@Serializable
data class Range (
var min: Double? = null,
var max: Double? = null
) {
fun isEmpty(): Boolean {
return min == null && max == null
}
}
@Serializable
data class Fii(
var CODIGODOFUNDO... | 0 | Kotlin | 0 | 0 | a434b4808bd0fa53b83581a9798db3acde771bf4 | 1,507 | LmAppsFiiAndroid | Apache License 2.0 |
vyne-spring/src/main/java/com/orbitalhq/spring/VyneFactory.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.spring
import com.orbitalhq.Vyne
import com.orbitalhq.VyneCacheConfiguration
import com.orbitalhq.VyneProvider
import com.orbitalhq.metrics.NoOpMetricsReporter
import com.orbitalhq.metrics.QueryMetricsReporter
import com.orbitalhq.query.Fact
import com.orbitalhq.query.QueryEngineFactory
import co... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 4,864 | orbital | Apache License 2.0 |
components/bridge/dao/api/src/main/java/com/flipperdevices/bridge/dao/api/model/FlipperKeyContent.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.bridge.dao.api.model
import java.io.ByteArrayInputStream
import java.io.File
import java.io.FileInputStream
import java.io.InputStream
/**
* Describes the contents of the key.
* May be a stream, a file, a link, or bytes.
* Do not limit your support to only one type of content.
*/
sealed... | 2 | Kotlin | 29 | 266 | ea066973aaca66c6c5338912397d59a7c8b658d1 | 783 | Flipper-Android-App | MIT License |
server/src/main/kotlin/com/heerkirov/hedge/server/model/meta/AuthorAnnotationRelation.kt | HeerKirov | 298,201,781 | false | null | package com.heerkirov.hedge.server.model.meta
/**
* 注解与author的关联。
*/
data class AuthorAnnotationRelation(val authorId: Int, val annotationId: Int) | 0 | TypeScript | 0 | 1 | 8140cd693759a371dc5387c4a3c7ffcef6fb14b2 | 149 | Hedge-v2 | MIT License |
trixnity-client/trixnity-client-repository-room/src/commonMain/kotlin/net/folivo/trixnity/client/store/repository/room/RoomOutboundMegolmSessionRepository.kt | benkuly | 330,904,570 | false | {"Kotlin": 4172000, "JavaScript": 5352, "TypeScript": 2906, "CSS": 1454, "Dockerfile": 1328} | package net.folivo.trixnity.client.store.repository.room
import androidx.room.Dao
import androidx.room.Entity
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.PrimaryKey
import androidx.room.Query
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeT... | 0 | Kotlin | 3 | 30 | 756e7ecb214c0a167d2c898f6bb6c3bee3246442 | 1,961 | trixnity | Apache License 2.0 |
src/main/kotlin/br/com/zupacademy/ratkovski/pix/registra/externo/BankAccount.kt | Ratkovski | 395,480,677 | true | {"Kotlin": 104442, "Smarty": 2172, "Dockerfile": 164} | package br.com.zupacademy.ratkovski.pix.registra.externo
data class BankAccount(
// val description:String,
val participant:String,
val branch:String,
val accountNumber:String,
val accountType: PixAccountType
) {
}
/*
*para lembrar
BankAccountRequest{
description:
Dados de conta transaci... | 0 | Kotlin | 0 | 0 | c4123d9e88247192717061e47fcb1ed6c55b2d9b | 971 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
src/main/kotlin/org/madmeg/api/tree/Root.kt | 2D-Mesh-Plane | 437,883,648 | false | {"Kotlin": 5439, "Python": 125} | package org.madmeg.api.tree
import org.madmeg.api.elements.SplitFile
/**
* @author Madmegsox1
* @since 26/12/2021
*/
class Root(file: SplitFile) {
var masterNodes: ArrayList<Node> = ArrayList()
private val lines: ArrayList<String>
init {
this.lines = file.lines
compileTree()
}
... | 0 | Kotlin | 1 | 1 | 03ab0dfd4d3476a92e982e09694d40fa9b768c9a | 2,031 | Python-Analysis-Tool | MIT License |
app/src/main/java/dv/lux/mail/SplashActivity.kt | Mail-Bird | 703,962,715 | false | {"Kotlin": 22854} | package dv.lux.mail
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Build
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.lifecycle.Lifecycle
import androidx.lifecycle... | 0 | Kotlin | 0 | 0 | 4dfca7e3d7abe6271e7ae2d54f09d5d281d63dbe | 1,114 | mail-bird-android | Apache License 2.0 |
Application/app/src/main/java/com/thephoenix/rockpaperscissors/di/AppModule.kt | Samuelk0nrad | 729,453,053 | false | {"Kotlin": 405411, "JavaScript": 1179} | package com.game.rockpaperscissors.di
import android.content.Context
import androidx.room.Room
import com.game.rockpaperscissors.data.local.database.EnemyDatabase
import com.game.rockpaperscissors.data.local.database.GameDataDao
import com.game.rockpaperscissors.data.local.database.GameDatabase
import com.game.rockpap... | 0 | Kotlin | 0 | 0 | 9675b09060a3fb4f91c90f4e9b7ec99cd4f487af | 2,972 | Rock-Paper-Scissors | Boost Software License 1.0 |
app/src/main/java/com/aliernfrog/ensimanager/di/Modules.kt | aliernfrog | 566,949,096 | false | {"Kotlin": 173252} | package com.aliernfrog.ensimanager.di
val appModules = listOf(
appModule,
viewModelModule
) | 0 | Kotlin | 0 | 0 | 49acd18078027143088e8d429ec1ead463c62ebf | 100 | ensi-manager | MIT License |
sentry/src/test/java/io/sentry/internal/modules/CompositeModulesLoaderTest.kt | getsentry | 3,368,190 | false | null | package io.sentry.internal.modules
import io.sentry.ILogger
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify
import org.mockito.kotlin.verifyNoMoreInteractions
import org.mockito.kotlin.whenever
import kotlin.test.Test
import kotlin.test.assertEquals
class CompositeModulesLoaderTest {
@Test
fu... | 189 | Kotlin | 427 | 995 | 549cbb4657b9dea1048c4882e79504e87d6acc4f | 1,257 | sentry-java | MIT License |
app/src/main/java/kf/todo/app/data/room/ToDoDao.kt | F1K375 | 672,139,887 | false | null | package kf.todo.app.data.room
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import kotlinx.coroutines.flow.Flow
@Dao
interface ToDoDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun addToDo(v... | 0 | Kotlin | 0 | 0 | c1e9e04d452b0b8a83e1d64e68fd3e7fc5d26d84 | 669 | todo-compose | MIT License |
app/src/uganda/java/org/watsi/uhp/fragments/MemberSearchFragment.kt | Meso-Health | 227,514,539 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 4, "Markdown": 1, "Proguard": 2, "JSON": 25, "Kotlin": 419, "YAML": 3, "XML": 153, "Java": 1} | package org.watsi.uhp.fragments
import android.app.Activity
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProvider
import android.arch.lifecycle.ViewModelProviders
import android.content.Intent
import android.os.Bundle
import android.support.v7.widget.SearchView
import android.view.Layo... | 2 | Kotlin | 3 | 6 | 6e1da182073088f28230fe60a2e09d6f38aab957 | 6,645 | meso-clinic | Apache License 2.0 |
lib_imagepick/src/main/kotlin/com/imagepick/model/MediaResource.kt | yudengwei | 818,541,459 | false | {"Kotlin": 310654} | package com.imagepick.model
import android.net.Uri
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
internal const val ImageMimeTypePrefix = "image/"
internal const val VideoMimeTypePrefix = "video/"
@Parcelize
data class MediaResource(
val id : Long,
val uri : Uri,
val path : String,
... | 0 | Kotlin | 0 | 0 | 283dedc4b1005c72730c63efb8218730a6348535 | 628 | composedemo | Apache License 2.0 |
src/main/java/com/bukowiecki/breakpoints/model/ProjectWrapper.kt | marcin-bukowiecki | 401,104,358 | false | null | /*
* Copyright 2021 <NAME>.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.bukowiecki.breakpoints.model
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.guessProjectDir
import com.intellij.openapi.vfs.VirtualFile
... | 0 | Kotlin | 0 | 2 | a6f5005b34894980bd49c04a61387cca79877307 | 493 | breakpoint-manager-plugin | Apache License 2.0 |
WPRK-Android/src/main/java/com/muse/wprk/presentation/shows/Schedules.kt | MwaiBanda | 455,768,879 | false | null | package com.muse.wprk.presentation.shows
import android.content.Context
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.material.Divider
imp... | 0 | null | 8 | 46 | 1169628c70cca58408f5561293a7d09922ddfb21 | 1,724 | WPRK-MultiPlatform | MIT License |
app/src/main/java/io/github/wulkanowy/ui/modules/settings/appearance/AppearancePresenter.kt | wezuwiusz | 827,505,734 | false | {"Kotlin": 1759089, "HTML": 1949, "Shell": 257} | package io.github.wulkanowy.ui.modules.settings.appearance
import io.github.wulkanowy.data.repositories.PreferencesRepository
import io.github.wulkanowy.data.repositories.StudentRepository
import io.github.wulkanowy.ui.base.BasePresenter
import io.github.wulkanowy.ui.base.ErrorHandler
import io.github.wulkanowy.utils.... | 95 | Kotlin | 6 | 28 | 82b4ea930e64d0d6e653fb9024201b372cdb5df2 | 1,711 | neowulkanowy | Apache License 2.0 |
kotlin/runScopeFunction.kt | Ayushd70 | 146,420,071 | false | null | class Person2 {
var name: String = "Ayush Dubey"
var age: Int = 22
}
fun main() {
/** Scope Function: 'run'
Property 1: Refer to context object by using 'this'
Property 2: The return value is the 'lambda result' */
// 'run' is combination of 'with' and 'let'
// If you want to operate on ... | 8 | null | 25 | 20 | 28af4dd518e66c31e8e1170f23570a952f17a08b | 595 | RetardedCodes | MIT License |
inference/src/main/kotlin/io/kinference/operators/math/MatMul.kt | cybernetics | 324,970,047 | true | {"Kotlin": 461291, "PureBasic": 24490} | package io.kinference.operators.math
import io.kinference.attributes.Attribute
import io.kinference.data.tensors.Tensor
import io.kinference.graph.Context
import io.kinference.onnx.TensorProto
import io.kinference.operators.*
class MatMul(attributes: Map<String, Attribute<Any>>, inputs: List<String>, outputs: List<St... | 0 | null | 0 | 0 | 8aa3295f112353949562750b83991b7ea8b83cf2 | 1,314 | kinference | Apache License 2.0 |
resource-kotlin-mpp/src/main/java/ru/pocketbyte/locolaser/kotlinmpp/KotlinAndroidResourcesConfig.kt | LouisCAD | 316,641,062 | true | {"Kotlin": 706671, "Java": 26977} | package ru.pocketbyte.locolaser.kotlinmpp
import ru.pocketbyte.locolaser.kotlinmpp.resource.KotlinAndroidResources
class KotlinAndroidResourcesConfig : ru.pocketbyte.locolaser.kotlinmpp.KotlinBaseImplResourcesConfig() {
companion object {
const val TYPE = "kotlin-android"
}
override val type = r... | 0 | null | 0 | 0 | 9e79b81b3c0f121392625fa4f102907debda096a | 775 | LocoLaser | Apache License 2.0 |
client/slack-spring-test-api-client/src/main/kotlin/io/olaph/slack/client/test/group/channel/MockChannelsArchiveMethod.kt | nmchau | 183,535,942 | true | {"Kotlin": 505011} | package io.olaph.slack.client.test.group.channel
import io.olaph.slack.client.group.ApiCallResult
import io.olaph.slack.client.group.channels.ChannelsArchiveMethod
import io.olaph.slack.client.test.MockMethod
import io.olaph.slack.dto.jackson.group.channels.ErrorChannelArchiveResponse
import io.olaph.slack.dto.jackson... | 0 | Kotlin | 0 | 0 | 227983e8f31bf9bc9b0056782328679f4a3409f1 | 1,164 | slack-spring-boot-starter | MIT License |
app/src/main/java/com/levis/nimblechallenge/data/local/database/dao/SurveyRemoteKeyDao.kt | LevisLuong | 807,424,023 | false | {"Kotlin": 158020} | package com.levis.nimblechallenge.data.local.database.dao
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
import com.levis.nimblechallenge.data.local.database.entity.SurveyRemoteKeyEntity
@Dao
interface SurveyRemoteKeyDao {
@Upsert
suspend fun upsertAll(remoteKeys: List<SurveyR... | 0 | Kotlin | 0 | 0 | cb2e6ba5bb17d48d6e4732c0116ff125cab360c7 | 659 | NimbleChallenge | Apache License 2.0 |
app/src/main/java/com/levis/nimblechallenge/data/local/database/dao/SurveyRemoteKeyDao.kt | LevisLuong | 807,424,023 | false | {"Kotlin": 158020} | package com.levis.nimblechallenge.data.local.database.dao
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
import com.levis.nimblechallenge.data.local.database.entity.SurveyRemoteKeyEntity
@Dao
interface SurveyRemoteKeyDao {
@Upsert
suspend fun upsertAll(remoteKeys: List<SurveyR... | 0 | Kotlin | 0 | 0 | cb2e6ba5bb17d48d6e4732c0116ff125cab360c7 | 659 | NimbleChallenge | Apache License 2.0 |
rsocket-tck-core/src/main/kotlin/io/rsocket/tck/expect/frame/LeaseFrame.kt | rsocket | 62,747,936 | false | null | package io.rsocket.tck.expect.frame
import io.rsocket.tck.expect.*
import io.rsocket.tck.frame.*
import strikt.api.*
import strikt.assertions.*
infix fun LeaseFrame.expect(expected: LeaseFrame): Unit = expectThat(this) {
get("header", LeaseFrame::header).isEqualToHeader(expected.header, leaseFlagsAssertion)
g... | 9 | Kotlin | 11 | 10 | ea932e63928a5a8bc31e4f6b78e63c9bb140cb90 | 697 | rsocket-tck | Apache License 2.0 |
shared/src/commonMain/kotlin/com/dino/unsplash/shared/di/feature/PhotoModule.kt | dinopriyano | 511,626,455 | false | {"Kotlin": 26902, "Swift": 4996, "Ruby": 1794} | package com.dino.unsplash.shared.di.feature
import com.dino.unsplash.shared.data.PhotoDataStore
import com.dino.unsplash.shared.data.PhotoRepository
import com.dino.unsplash.shared.domain.PhotoInteractor
import com.dino.unsplash.shared.domain.PhotoUseCase
import org.koin.dsl.module
val photoModule = module {
sing... | 0 | Kotlin | 0 | 0 | e21836d28b6fab296e8ffd18abd512de6c478429 | 419 | Unplash-Mobile | Apache License 2.0 |
src/test/kotlin/com/breskeby/gradle/lint/rules/TooLongTaskActionRuleIntegrationTest.kt | breskeby | 73,209,282 | false | {"Kotlin": 41555} | package com.breskeby.gradle.lint.rules
import com.breskeby.gradle.lint.addon.fixtures.AbstractRuleIntegrationTest
import org.gradle.testkit.runner.TaskOutcome
import org.junit.Test
class TooLongTaskActionRuleIntegrationTest : AbstractRuleIntegrationTest() {
@Test fun `can detect long action block in task definit... | 0 | Kotlin | 0 | 1 | dd080b4cf68ea3dae9b29e48cf2f7e095a73eb1d | 3,445 | gradle-lint-rules | Apache License 2.0 |
src/test/kotlin/io/colyseus/test/schema/backwards_forwards/StateV1.kt | doorbash | 169,142,259 | false | {"Gradle": 2, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Kotlin": 46, "Java": 8} | package io.colyseus.test.schema.backwards_forwards
import io.colyseus.annotations.SchemaField
import io.colyseus.serializer.schema.Schema
import io.colyseus.serializer.schema.types.MapSchema
import io.colyseus.util.default
class StateV1 : Schema() {
@SchemaField("0/string")
var str = String.default
@Sche... | 1 | Kotlin | 6 | 27 | 4121335961fa79017235f898405cfc1522606129 | 405 | colyseus-kotlin | MIT License |
modules-api/src/main/java/io/appmetrica/analytics/modulesapi/internal/client/ClientContext.kt | appmetrica | 650,662,094 | false | {"Java": 5773116, "C++": 5729793, "Kotlin": 2403353, "Python": 229161, "Objective-C++": 152166, "C": 127185, "Assembly": 59003, "Emacs Lisp": 14657, "Objective-C": 10302, "Starlark": 7767, "Shell": 5746, "Go": 4930, "CMake": 3562, "CSS": 1454, "AppleScript": 1429, "AIDL": 504} | package io.appmetrica.analytics.modulesapi.internal.client
import io.appmetrica.analytics.modulesapi.internal.client.adrevenue.AutoAdRevenueReporter
interface ClientContext {
val autoAdRevenueReporter: AutoAdRevenueReporter
}
| 0 | Java | 5 | 53 | 89961cf3ceb94c1807558349134a04b165278e01 | 233 | appmetrica-sdk-android | MIT License |
src/main/kotlin/io/cloudshiftdev/awscdklib/network/routable/NatGatewayRoutable.kt | cloudshiftinc | 773,417,671 | false | {"Kotlin": 67802} | package io.cloudshiftdev.awscdklib.network.routable
import io.cloudshiftdev.awscdk.CfnOutput
import io.cloudshiftdev.awscdk.RemovalPolicy
import io.cloudshiftdev.awscdk.services.ec2.CfnEIP
import io.cloudshiftdev.awscdk.services.ec2.PublicSubnet
import io.cloudshiftdev.awscdk.services.ec2.RouterType
import io.cloudshi... | 0 | Kotlin | 0 | 0 | 35b6e00fc772f8623601d62085c0ec1e0e416776 | 2,853 | kotlin-cdk-extensions | Apache License 2.0 |
kotest-property/src/jvmMain/kotlin/io/kotest/property/arbitrary/file.kt | kotest | 47,071,082 | false | null | package io.kotest.property.arbitrary
import io.kotest.property.Arb
import java.io.File
import java.nio.charset.Charset
import kotlin.random.Random
/**
* Returns an [Arb] where each value is a randomly created File object.
* The file objects do not necessarily exist on disk.
*/
fun Arb.Companion.file(): Arb<File> =... | 141 | null | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 1,501 | kotest | Apache License 2.0 |
app/src/test/java/com/andre_max/tiktokclone/presentation/ui/home/HomeViewModelTest.kt | Andre-max | 291,054,765 | false | null | /*
* MIT License
*
* Copyright (c) 2021 Andre-max
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... | 7 | Kotlin | 27 | 56 | 0dcbc62d6b7d388744c213881a8125157eaf51e2 | 2,149 | TikTok-Clone | MIT License |
app/src/main/java/com/emrekose/videogames/utils/Constants.kt | emrekose26 | 329,276,392 | false | null | package com.emrekose.videogames.utils
object Constants {
const val BASE_URL = "https://rawg-video-games-database.p.rapidapi.com/"
const val API_KEY = "ce3704355amsh02bd93e66bf426dp13b6b2jsn5fe48822b75c"
const val API_HOST = "rawg-video-games-database.p.rapidapi.com"
const val ARG_GAME = "argument_game... | 0 | Kotlin | 0 | 2 | 9ff281a07df645bf8477f91f6350fed8bc6e8bb9 | 323 | video-games-app | Apache License 2.0 |
app/src/main/java/com/touki/moviez/presentation/movies/adapter/MoviesViewHolder.kt | touki24 | 329,182,968 | false | null | package com.touki.moviez.presentation.movies.adapter
import androidx.recyclerview.widget.RecyclerView
import coil.load
import com.touki.moviez.R
import com.touki.moviez.core.features.movies.domain.Genre
import com.touki.moviez.core.features.movies.domain.Movie
import com.touki.moviez.databinding.ItemMovieBadBinding
im... | 0 | Kotlin | 0 | 1 | 6bc2d98a179ce8b99746a4d04dbb3df60b141fdb | 1,342 | moviez | Apache License 2.0 |
app/src/main/java/com/thecode/infotify/core/repositories/NewsRepository.kt | Ethiel97 | 373,656,092 | true | {"Kotlin": 103599} | package com.thecode.infotify.core.repositories
import com.thecode.infotify.core.domain.Article
import com.thecode.infotify.core.domain.News
import com.thecode.infotify.core.remote.InfotifyRemoteDataSourceImpl
import com.thecode.infotify.database.AppDatabase
import com.thecode.infotify.database.article.ArticleEntity
im... | 0 | null | 0 | 0 | bd6cfdd0f64a919cfb302e6b536c09b093e0dee6 | 1,767 | Infotify | Apache License 2.0 |
src/main/kotlin/com/adikmt/utils/db/DataBaseFactory.kt | kamathis4 | 613,733,593 | false | null | package com.adikmt.utils.db
/** Database factory */
interface DataBaseFactory {
fun connect()
suspend fun dropAll()
}
/**
* Database config
*
* @property driver
* @property url
* @property username
* @property password
* @property maxPoolSize - indicating max number of connections
*/
data class Data... | 0 | Kotlin | 0 | 37 | e36677b9fc24a94b22abb9a87fbb73278003f679 | 456 | RedditClone | The Unlicense |
app/src/main/java/com/stepstone/reactiveusecasessample/domain/interactor/UploadContentUseCase.kt | stepstone-tech | 133,494,932 | false | null | /*
* Copyright (C) 2018 StepStone Services Sp. z o.o.
*
* 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 applic... | 1 | Kotlin | 12 | 54 | 2558f3d3eabba9f1f43341a85ca11c891a93c0a4 | 1,446 | ReactiveUseCasesSample | Apache License 2.0 |
src/tulip/tulip_utils.kt | wfouche | 208,843,128 | false | {"Gradle Kotlin DSL": 2, "Batchfile": 5, "AsciiDoc": 5, "YAML": 1, "JSON": 1, "Shell": 10, "Text": 2, "Ignore List": 1, "SVG": 1, "Kotlin": 14, "INI": 1, "Java": 3, "Python": 1} | /*-------------------------------------------------------------------------*/
package tulip
/*-------------------------------------------------------------------------*/
import java.lang.management.ManagementFactory
import java.util.concurrent.ThreadLocalRandom
import java.util.concurrent.TimeUnit
import javax.manag... | 0 | Kotlin | 1 | 4 | dd87d8ee9eb003a492a647bfee60931faca7d2fe | 6,979 | tulip | Apache License 2.0 |
db-jedis/src/main/kotlin/edgn/lightdb/jedis/JedisLightDB.kt | OpenEdgn | 425,215,099 | false | {"Kotlin": 105687, "Java": 1585} | package edgn.lightdb.jedis
import edgn.lightdb.api.LightDB
import edgn.lightdb.api.structs.list.LightListGroup
import edgn.lightdb.api.structs.map.LightMapGroup
import edgn.lightdb.api.structs.set.LightSetGroup
import edgn.lightdb.jedis.internal.data.list.JedisListGroup
import edgn.lightdb.jedis.internal.data.map.Jedi... | 0 | Kotlin | 0 | 0 | 6047397505900e7276d18ab36eff709863c75db6 | 2,050 | LightDB | MIT License |
app/src/main/java/com/example/sharingang/models/Chat.kt | Sharingang | 344,538,791 | false | null | package com.example.sharingang.models
import java.util.*
/**
* Chat represents a message with additional metadata
*
* @property from the sender
* @property to the receiver
* @property message the actual message
*/
data class Chat(val from: String?, val to: String?, val message: String, val date: Date)
| 12 | Kotlin | 0 | 0 | 32f29e4b9ac5bc8952a8a544e65dae4d50d9f50a | 311 | Sharingang-Android | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/spawns/spawns_13140.plugin.kts | 2011Scape | 578,880,245 | false | {"Kotlin": 8359518, "Dockerfile": 1354} | package gg.rsmod.plugins.content.areas.spawns
spawn_npc(npc = Npcs.GREEN_DRAGON, x = 3272, z = 5416, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Green dragon
| 36 | Kotlin | 138 | 32 | da66bb6d68ebae531ee325b909a6536e798b1144 | 190 | game | Apache License 2.0 |
src/main/kotlin/at/rechnerherz/example/util/Resources.kt | rechnerherz | 292,055,822 | false | null | package at.rechnerherz.example.util
import org.springframework.core.io.Resource
import org.springframework.core.io.WritableResource
import java.io.InputStream
import java.io.OutputStream
import java.nio.charset.Charset
import java.nio.file.Files
import java.nio.file.Path
import javax.servlet.http.HttpServletResponse
... | 0 | Kotlin | 0 | 3 | 475b6ec7f1b0d4df9c9894f8731d73d06bfef990 | 1,705 | spring-boot-kotlin-rest-api-template | Apache License 2.0 |
src/main/kotlin/at/rechnerherz/example/util/Resources.kt | rechnerherz | 292,055,822 | false | null | package at.rechnerherz.example.util
import org.springframework.core.io.Resource
import org.springframework.core.io.WritableResource
import java.io.InputStream
import java.io.OutputStream
import java.nio.charset.Charset
import java.nio.file.Files
import java.nio.file.Path
import javax.servlet.http.HttpServletResponse
... | 0 | Kotlin | 0 | 3 | 475b6ec7f1b0d4df9c9894f8731d73d06bfef990 | 1,705 | spring-boot-kotlin-rest-api-template | Apache License 2.0 |
app/src/main/kotlin/io/sneakspeak/sneakspeak/activities/RegisterActivity.kt | SneakSpeak | 50,581,255 | false | null | package io.sneakspeak.sneakspeak.activities
import android.os.Bundle
import android.os.PersistableBundle
import android.support.v7.app.AppCompatActivity
import io.sneakspeak.sneakspeak.R
import io.sneakspeak.sneakspeak.fragments.RegisterFragment
import kotlinx.android.synthetic.main.activity_main.*
class RegisterAct... | 0 | Kotlin | 0 | 0 | 0c88e778093f1fb17c87fa68f06b2ac60acb33b7 | 732 | sp-android | MIT License |
src/algorithms/SerialDictatorshipAlgorithm.kt | aaronoe | 186,243,764 | false | null | package de.aaronoe.algorithms
import de.aaronoe.models.Seminar
import de.aaronoe.models.Student
object SerialDictatorshipAlgorithm: StudentMatchingAlgorithm {
override suspend fun execute(students: List<Student>, seminars: List<Seminar>): Map<Seminar, List<Student>> {
students.forEach { student ->
... | 0 | Kotlin | 0 | 1 | 8265e6553aca23c3bf2c5236ba56d46ab7e2b3f3 | 659 | matching_server | MIT License |
sdk-openapi/src/main/kotlin/org/sinou/pydia/openapi/model/RestServiceCollection.kt | bsinou | 434,248,316 | false | {"Kotlin": 2133584, "Java": 10237} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.sinou.pydia.openapi.model
import or... | 0 | Kotlin | 0 | 1 | 51a128c49a24eedef1baf2d4f295f14aa799b5d3 | 681 | pydia | Apache License 2.0 |
app/src/main/java/com/nutrition/balanceme/domain/models/MenuApi.kt | DatTrannn | 521,896,551 | false | null | package com.nutrition.balanceme.domain.models
import com.nutrition.balanceme.util.API_KEY
import com.nutrition.balanceme.util.BASE_URL_SPOONACULAR
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.GET
import retrofit2.http.Query
interface MenuApi {
@GET(value = ... | 0 | Kotlin | 0 | 0 | f51d0276b1d34e00b27b44689aedf80e1580c542 | 890 | BalanceMeApp | MIT License |
app/src/main/java/cn/jaylong/nias/apps/ui/NiaApp.kt | jay1ong | 604,902,379 | false | null | package cn.jaylong.nias.apps.ui
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import and... | 0 | Kotlin | 0 | 0 | 2ecc2766e84e95e33a49736477a51ab72994608a | 9,258 | Nias | Apache License 2.0 |
kotlinx-crypto-crc32/src/commonMain/kotlin/Crc32.kt | andreypfau | 634,197,687 | false | null | package io.github.andreypfau.kotlinx.crypto.crc32
public open class Crc32 private constructor(
private val polynomial: Int
) {
private val table by lazy {
crc32slicingTable(polynomial)
}
public fun update(
source: ByteArray,
startIndex: Int = 0,
endIndex: Int = source.s... | 0 | Kotlin | 0 | 0 | 432f266c52e4c6681700fa837c6c249ac18c2a2d | 3,593 | kotlinx-crypto | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/broken/Heart.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.broken
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.Round
import androidx.compose.ui.graphics.StrokeJoin
im... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 1,757 | VuesaxIcons | MIT License |
mobile/flutter_cached_music_player/android/src/main/kotlin/org/techf5ve/flutter_cached_music_player/FlutterCachedMusicPlayerPlugin.kt | TECHF5VE | 176,951,470 | false | {"Text": 2, "Ignore List": 6, "Markdown": 13, "YAML": 3, "Dart": 84, "Gradle": 8, "INI": 3, "Java Properties": 3, "XML": 19, "Kotlin": 4, "Ruby": 3, "OpenStep Property List": 4, "Objective-C": 6, "Swift": 2, "JSON": 11, "Java": 1, "JSON with Comments": 2, "EditorConfig": 1, "JavaScript": 1} | package org.techf5ve.flutter_cached_music_player
import android.util.Log;
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.Plugin... | 16 | null | 1 | 1 | f5afdda0fdf38f429001dd13fb8c27c33f2438c7 | 2,776 | NeverGetGray | MIT License |
ok-marketplace-be-logics/src/main/kotlin/ru/otus/otuskotlin/marketplace/logics/workers/RepoCreate.kt | otuskotlin | 375,767,209 | false | null | package ru.otus.otuskotlin.marketplace.logics.workers
import ru.otus.otuskotlin.marketplace.backend.common.context.CorStatus
import ru.otus.otuskotlin.marketplace.backend.common.context.MpContext
import ru.otus.otuskotlin.marketplace.backend.repo.common.DbAdModelRequest
import ru.otus.otuskotlin.marketplace.common.cor... | 0 | Kotlin | 5 | 9 | f7b000e861fb35b5e0a641782fb7fe746814da31 | 932 | 202105-otuskotlin-marketplace | MIT License |
app/src/main/java/com/example/androidjetpack/game/GameLoop.kt | agul1no | 505,866,398 | false | {"Kotlin": 53149} | package com.example.androidjetpack.game
import android.content.Context
import android.graphics.Canvas
import android.os.Build
import android.os.Vibrator
import android.view.SurfaceHolder
import java.lang.Exception
import java.lang.IllegalArgumentException
//TODO remove enemyObject from the constructor if not needed
cl... | 0 | Kotlin | 0 | 0 | b0b0fb60b196ecc58116fb784f910708c7830d91 | 6,333 | AndroidJetpack | MIT License |
app/src/main/java/com/test/project/ui/home/HomeViewModel.kt | Petrov-Daniil | 568,047,081 | false | null | package com.test.project.ui.home
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.test.project.data.remote.entity.FavoriteNews
import com.test.project.data.remote.network.NetworkErrors
import com.test.project.domain.RequestResult
import c... | 0 | Kotlin | 0 | 0 | f5d994d4082da014021d6c4923d84b0eb0321907 | 2,450 | Events | MIT License |
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/DesktopExtension.kt | sharklet | 312,652,752 | true | {"Kotlin": 68341, "Dockerfile": 3451, "Shell": 3024, "PowerShell": 1708} | package org.jetbrains.compose.desktop
import org.gradle.api.model.ObjectFactory
import org.gradle.api.plugins.ExtensionAware
import org.jetbrains.compose.desktop.application.dsl.Application
import javax.inject.Inject
abstract class DesktopExtension @Inject constructor(private val objectFactory: ObjectFactory) : Exten... | 0 | null | 0 | 1 | bef34ad7d2fc484b6c28398893158a1ea038137b | 645 | compose-jb | Apache License 2.0 |
src/main/kotlin/io/meltec/prima/recipe/PickaxeRecipe.kt | KingCyrus20 | 370,846,755 | false | {"Gradle": 2, "Java Properties": 1, "Markdown": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "Git Config": 1, "INI": 1, "Java": 5, "JSON": 209, "Wavefront Object": 3, "Kotlin": 39, "YAML": 1} | package io.meltec.prima.recipe
import io.meltec.prima.item.PickaxeHeadItem
import io.meltec.prima.item.PrimaItems
import io.meltec.prima.item.ToolBindingItem
import io.meltec.prima.item.ToolHandleItem
import io.meltec.prima.mixin.CraftingInventoryAccessor
import net.minecraft.item.ItemStack
import net.minecraft.recipe... | 0 | Kotlin | 0 | 1 | 2952bef449aafb3d54498d0247e5398106c773c5 | 2,481 | Prima-Materia | MIT License |
FanControl/app/src/jvmMain/kotlin/ui/screen/drawer/settings/language.kt | wiiznokes | 573,084,607 | false | null | package ui.screen.drawer.settings
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Divider
import androidx.compose.material3.Icon
import androidx.co... | 2 | Kotlin | 0 | 2 | 38d6ac77dcc6e9e1589e3fa37680817893e0816e | 2,311 | LibreFanControl | Apache License 2.0 |
cams-mvvm/src/main/java/com/linwei/cams_mvvm/livedatabus/StatusLiveEvent.kt | WeiShuaiDev | 390,686,269 | false | null | package com.linwei.cams_mvvm.livedatabus
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
import com.linwei.cams.http.model.StatusCode
/**
* ---------------------------------------------------------------------
* @Author: WeiShuai
* @Time: 2020/7/16
* @Contact: linwei9605@gmail.com"
* ... | 1 | Kotlin | 1 | 1 | 3c7289aae35551ee53284d91e96ad5f24c21eb50 | 1,180 | Cams | Apache License 2.0 |
app/src/main/java/com/ilab/yougetmobiledl/ext/LogExt.kt | zhushenwudi | 384,865,719 | false | null | package com.gw.mvvm.framework.ext.utils
import android.util.Log
const val TAG = "FrameWork"
/**
* 用来控制是否打印框架日志,默认true
*/
var frameWorkLog = true
private enum class LEVEL {
V, D, I, W, E
}
fun String.logv(tag: String = TAG) =
log(LEVEL.V, tag, this)
fun String.logd(tag: String = TAG) =
log(LEVEL.D, t... | 1 | null | 1 | 1 | 1755a1e5971a017b0f44c4df3e9491ae46a8d2fc | 842 | YougetMobileDL | MIT License |
src/main/kotlin/com/attacktive/vpnmanager/connectivity/ErrorsResponseDto.kt | Attacktive | 609,174,676 | false | {"Kotlin": 20481, "Shell": 482} | package com.attacktive.vpnmanager.connectivity
import kotlinx.serialization.Serializable
@Serializable
data class ErrorsResponseDto(val error: String? = null, val errors: List<Error> = listOf()) {
val message: String?
get() {
return if (errors.isEmpty()) {
error
} else {
errors.joinToString("\n") { i... | 2 | Kotlin | 0 | 0 | c11a5af3c7b6e17ae6306d34bac7721846731afe | 398 | vpn-manager | MIT License |
app/build/generated/source/kapt/debug/rxhttp/wrapper/param/RxHttp.kt | rohitnotes | 293,990,508 | true | {"Java": 296900, "Kotlin": 282625} | package rxhttp.wrapper.param
import android.content.Context
import android.net.Uri
import com.example.httpsender.parser.ResponseParser
import kotlin.Any
import kotlin.Unit
import kotlin.coroutines.CoroutineContext
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import rxhttp.IRxHttp
import rx... | 0 | null | 0 | 0 | 3339a52d56bc9241f877439b6ab65eafb400bb00 | 1,735 | okhttp-RxHttp | Apache License 2.0 |
compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/field.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.tree.generator.printer
import org.jetbrains.kotlin.fir.tree.generator.model.... | 163 | null | 5686 | 46,039 | f98451e38169a833f60b87618db4602133e02cf2 | 2,299 | kotlin | Apache License 2.0 |
app/src/main/java/com/bsuir/bsuirschedule/data/db/dao/SavedScheduleDao.kt | Saydullin | 526,953,048 | false | {"Kotlin": 678273, "HTML": 7301} | package com.bsuir.bsuirschedule.data.db.dao
import androidx.room.*
import com.bsuir.bsuirschedule.data.db.entities.SavedScheduleTable
@Dao
interface SavedScheduleDao {
@Query("SELECT * FROM SavedScheduleTable ORDER BY lastUpdateTime DESC")
fun getSavedSchedules(): List<SavedScheduleTable>
@Query("SELECT... | 0 | Kotlin | 0 | 4 | 989325e764d14430d5d124efd063f7190b075f4a | 2,410 | BSUIR_Schedule | Creative Commons Zero v1.0 Universal |
clients/kotlin/generated/src/test/kotlin/org/openapitools/client/models/ChatCompletionStreamResponseDeltaTest.kt | oapicf | 529,246,487 | false | {"Markdown": 6348, "YAML": 73, "Text": 16, "Ignore List": 52, "JSON": 1138, "Makefile": 3, "JavaScript": 1042, "F#": 585, "XML": 468, "Shell": 47, "Batchfile": 10, "Scala": 2313, "INI": 31, "Dockerfile": 17, "Maven POM": 22, "Java": 6356, "Emacs Lisp": 1, "Haskell": 39, "Swift": 263, "Ruby": 555, "OASv3-yaml": 19, "Cab... | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import i... | 2 | Java | 0 | 4 | c04dc03fa17b816be6e9a262c047840301c084b6 | 1,703 | openapi-openai | MIT License |
jps/jps-plugin/testData/incremental/multiModule/withJavaUsedInKotlin/importedClassRemoved/baseModule_dummy.kt | JetBrains | 3,432,266 | false | null | package packageInBase
fun dummy() {} | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 37 | kotlin | Apache License 2.0 |
src/app/src/main/java/heartRateMonitor/data/repository/LogDataRepository.kt | lukasmoers | 773,583,661 | false | {"Kotlin": 105910} | package heartRateMonitor.data.repository
import heartRateMonitor.data.dao.ActivityInfoDao
import heartRateMonitor.data.entities.LogData
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
class LogDataRepository(private val activityInfoDao: ActivityInfoDao) ... | 0 | Kotlin | 0 | 0 | bff5e1c9b1a1e2665007f17acb839a8ccb3c2106 | 579 | HeartRateMonitor | MIT License |
idea-plugin/src/main/kotlin/konnekt/CompanionObjectDiagnostic.kt | koperagen | 324,244,790 | false | null | package konnekt
import com.intellij.codeInspection.ProblemHighlightType
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.TextRange
import konnekt.dependencies.isKonnektClient
import konnekt.dependencies.noCompanion
import org.jetbrains.kotlin.idea.i... | 0 | Kotlin | 0 | 0 | c9665f8d71f58322051badf95346ba7773ec1983 | 1,629 | konnekt | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/objs/hay/search_hay.kts | Mrquarter | 177,599,326 | true | {"Kotlin": 3104147, "CSS": 2003, "Dockerfile": 1331} | package gg.rsmod.plugins.content.objs.hay
import com.google.common.collect.ImmutableSet
val HAY_OBJECTS = ImmutableSet.of(Objs.HAYSTACK, Objs.HAY_BALES, Objs.HAY_BALES_299)
HAY_OBJECTS.forEach { hay ->
on_obj_option(obj = hay, option = "search") {
val obj = player.getInteractingGameObj()
val name... | 0 | Kotlin | 0 | 0 | a2d961bde4498091bb524b656c9a0d842e27bc76 | 1,118 | rsmod_mrq | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/CircleHalf2.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,132 | compose-icon-collections | MIT License |
androidx-app/src/test/java/com/ayvytr/coroutines/array.kt | Ayvytr | 193,484,016 | false | {"Kotlin": 66555, "Java": 13995} | package com.ayvytr.coroutines
/**
* @author admin
*/
fun main() {
val asc = Array(5) {
(it * it).toString()
}
asc.forEach { println(it) }
} | 1 | Kotlin | 3 | 7 | 6bc985684f828ca5cf76d49d3820bc627f7d28bb | 163 | Mvvm | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/job/CreateAttendanceRecordsJob.kt | ministryofjustice | 533,838,017 | false | null | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.job
import org.slf4j.LoggerFactory
import org.springframework.scheduling.annotation.Async
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.service.AttendancesService
import java.time.LocalD... | 2 | Kotlin | 0 | 1 | b69e4aee7a632f614ec8edb5a591503dc90a1909 | 1,023 | hmpps-activities-management-api | MIT License |
movies-data/src/main/java/com/kc/android/movies/data/di/DbModule.kt | kshitij-chaudhari | 347,138,906 | false | null | /*
* Copyright 2021 <NAME>
*/
package com.kc.android.movies.data.di
import android.content.Context
import androidx.room.Room
import com.kc.android.movies.data.local.MoviesDb
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger... | 0 | Kotlin | 1 | 1 | 4523eb5b8c99c14ee03d8817321428275261337e | 650 | android-movies-app | Apache License 2.0 |
purchases/src/main/kotlin/com/revenuecat/purchases/models/Period.kt | RevenueCat | 127,346,826 | false | null | package com.revenuecat.purchases.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* Represents subscription or [PricingPhase] billing period
*/
@Parcelize
data class Period(
/**
* The number of period units.
*/
val value: Int,
/**
* The increment of time that a ... | 23 | null | 40 | 207 | f2193f859c1d4095e9e7ca19b7fca45f66fb3bb8 | 2,085 | purchases-android | MIT License |
sample/src/main/java/com/squareup/curtains/sample/MainActivity.kt | square | 335,059,626 | false | {"Kotlin": 82170, "Java": 5250} | package com.squareup.curtains.sample
import android.os.Bundle
import android.view.View
import android.widget.ArrayAdapter
import android.widget.Spinner
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
ove... | 3 | Kotlin | 30 | 578 | 889dc1e9ac259b742c17c33a72f513f25e384299 | 860 | curtains | Apache License 2.0 |
sample-plugin/src/main/kotlin/de/axelrindle/testplugin/command/PocketKnifeCommand.kt | axelrindle | 136,759,008 | false | {"SVG": 1, "Gradle": 4, "YAML": 12, "Markdown": 2, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Java Properties": 1, "Kotlin": 28, "Java": 1} | package de.axelrindle.testplugin.command
import de.axelrindle.pocketknife.PocketCommand
import de.axelrindle.testplugin.PocketKnifeTestPlugin
import de.axelrindle.pocketknife.util.sendMessageF
import org.bukkit.command.CommandSender
class PocketKnifeCommand(
private val plugin: PocketKnifeTestPlugin
) : Pocke... | 1 | null | 1 | 1 | 6b7537fee337d8403cec7030116b3068636b95ae | 1,625 | PocketKnife | Apache License 2.0 |
selector/src/main/java/com/hzy/selector/MediaSelector.kt | huangziye | 170,786,000 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 28, "Kotlin": 24, "Java": 1} | package com.hzy.selector
import android.app.Activity
import android.content.Intent
import android.os.Parcel
import android.os.Parcelable
import android.os.Parcelable.Creator
import androidx.annotation.ColorRes
import androidx.fragment.app.Fragment
import com.hzy.selector.bean.MediaSelectorFile
import com.hzy.selector.... | 0 | Kotlin | 0 | 1 | 7e547a6c3fcc57f5cfae3bfd370424706b5e4d81 | 3,836 | MediaSelector | Apache License 2.0 |
app/src/main/java/com/github/jing332/tts_server_android/model/script/core/type/ws/internal/IWebSocketEvent.kt | jing332 | 536,800,727 | false | null | package com.github.jing332.tts_server_android.model.rhino.core.type.ws.internal
import okhttp3.Response
import okio.ByteString
interface IWebSocketEvent {
fun onOpen(response: Response) {}
fun onMessage(text: String)
fun onMessage(bytes: ByteString)
fun onClosed(code: Int, reason: String)
fun onCl... | 6 | null | 80 | 717 | b8aa01c268c8718f00f2bb6267921ea75e3cf619 | 386 | tts-server-android | MIT License |
core/ui/src/main/java/org/expenny/core/ui/extensions/WindowInsetsExtensions.kt | expenny-application | 712,607,222 | false | {"Kotlin": 1159524} | package org.expenny.core.ui.extensions
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.asPaddingValues
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.runtime.Composable
internal val NavigationBarBottomPadding
@Composable get() = Wi... | 0 | Kotlin | 3 | 42 | 7e4b8e1a5dfacf5799d5ace2e72cd21f002d6311 | 388 | expenny-android | Apache License 2.0 |
generators/java/annotated-dto/generator/src/main/kotlin/io/github/fomin/oasgen/java/dto/jackson/annotated/MapConverterMatcher.kt | DeGianMind-0 | 343,700,668 | true | {"Kotlin": 214699, "Java": 202469, "TypeScript": 11655, "JavaScript": 71} | package io.github.fomin.oasgen.java.dto.jackson.annotated
import io.github.fomin.oasgen.JsonSchema
import io.github.fomin.oasgen.JsonType
class MapConverterMatcher : ConverterMatcher {
override fun match(converterRegistry: ConverterRegistry, jsonSchema: JsonSchema): Converter? {
val additionalProperties =... | 0 | null | 0 | 0 | d89d0cf63d654b4be43a785d15f54a644b8b87ad | 1,074 | oas-gen | Apache License 2.0 |
idea/tests/testData/multiplatform/incompleteActualization/js/js.kt | JetBrains | 278,369,660 | false | null | package foo
actual class ExpectInCommonActualInJsOnly
actual class <!LINE_MARKER("descr='Has declaration in common module'")!>ExpectInMiddleActualInJsOnly<!> | 0 | null | 29 | 71 | b6789690db56407ae2d6d62746fb69dc99d68c84 | 158 | intellij-kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.