repo_name stringlengths 7 81 | path stringlengths 4 242 | copies stringclasses 95
values | size stringlengths 1 6 | content stringlengths 3 991k | license stringclasses 15
values |
|---|---|---|---|---|---|
GunoH/intellij-community | platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooser.kt | 7 | 627 | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.projectRoots.impl.jdkDownloader
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
im... | apache-2.0 |
GunoH/intellij-community | plugins/kotlin/idea/tests/testData/editor/quickDoc/OnMethodUsageMultiline.kt | 9 | 647 | /**
* Some documentation
* on two lines.
*/
fun testMethod() {
}
fun test() {
<caret>testMethod()
}
//INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">fun</span> <span style="color:#000000;">testMethod</span>()<span st... | apache-2.0 |
AsamK/TextSecure | app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationStateProvider.kt | 1 | 8143 | package org.thoughtcrime.securesms.notifications.v2
import androidx.annotation.WorkerThread
import org.signal.core.util.CursorUtil
import org.signal.core.util.logging.Log
import org.thoughtcrime.securesms.database.MmsSmsColumns
import org.thoughtcrime.securesms.database.MmsSmsDatabase
import org.thoughtcrime.securesms... | gpl-3.0 |
himikof/intellij-rust | src/main/kotlin/org/rust/lang/core/types/ty/TyTuple.kt | 1 | 751 | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.types.ty
import org.rust.lang.core.resolve.ImplLookup
data class TyTuple(val types: List<Ty>) : Ty {
override fun unifyWith(other: Ty, lookup: ImplLookup): UnifyResult {
... | mit |
SpineEventEngine/base | testlib/src/test/kotlin/io/spine/testing/AssertionsKtSpec.kt | 1 | 3696 | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 |
marius-m/wt4 | app/src/main/java/lt/markmerkk/widgets/PopUpDisplay.kt | 1 | 1416 | package lt.markmerkk.widgets
import com.jfoenix.controls.JFXPopup
import com.jfoenix.svg.SVGGlyph
import javafx.scene.Node
import javafx.scene.Parent
import javafx.scene.layout.VBox
import lt.markmerkk.Styles
import lt.markmerkk.ui_2.views.jfxButton
import tornadofx.*
interface PopUpDisplay {
fun show()
/**... | apache-2.0 |
ktorio/ktor | ktor-server/ktor-server-netty/jvm/src/io/ktor/server/netty/NettyDirectEncoder.kt | 1 | 813 | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.server.netty
import io.netty.buffer.*
import io.netty.channel.*
import io.netty.handler.codec.*
import io.netty.handler.codec.http.*
internal class NettyDirectEncoder : Messa... | apache-2.0 |
RayBa82/DVBViewerController | dvbViewerController/src/main/java/org/dvbviewer/controller/ui/fragments/EPGDetails.kt | 1 | 3811 | /*
* Copyright © 2013 dvbviewer-controller Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | apache-2.0 |
DarrenAtherton49/droid-community-app | app/src/main/kotlin/com/darrenatherton/droidcommunity/features/subscriptiondrawer/SubscriptionDrawerPresenter.kt | 1 | 1104 | package com.darrenatherton.droidcommunity.features.subscriptiondrawer
import com.darrenatherton.droidcommunity.base.presentation.BasePresenter
import com.darrenatherton.droidcommunity.base.presentation.BaseView
import com.darrenatherton.droidcommunity.common.injection.scope.PerScreen
import javax.inject.Inject
@PerSc... | mit |
Doctoror/ParticleConstellationsLiveWallpaper | app/src/main/java/com/doctoror/particleswallpaper/framework/opengl/KnownOpenglIssuesHandler.kt | 1 | 2940 | /*
* Copyright (C) 2018 Yaroslav Mytkalyk
*
* 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... | apache-2.0 |
code-disaster/lwjgl3 | modules/lwjgl/opengles/src/templates/kotlin/opengles/templates/DMP_program_binary.kt | 4 | 814 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
*/
package opengles.templates
import org.lwjgl.generator.*
import opengles.*
val DMP_program_binary = "DMPProgramBinary".nativeClassGLES("DMP_program_binary", postfix = DMP) {
documentation =
"""
Native bi... | bsd-3-clause |
google/android-fhir | datacapture/src/androidTest/java/com/google/android/fhir/datacapture/views/QuestionnaireItemDateTimePickerViewHolderFactoryEspressoTest.kt | 1 | 5612 | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
ClearVolume/scenery | src/main/kotlin/graphics/scenery/backends/Display.kt | 1 | 3441 | package graphics.scenery.backends
import graphics.scenery.Settings
import org.joml.Matrix4f
import graphics.scenery.backends.vulkan.VulkanDevice
import org.joml.Vector2i
import org.lwjgl.vulkan.VkInstance
import org.lwjgl.vulkan.VkPhysicalDevice
import org.lwjgl.vulkan.VkQueue
/**
* <Description>
*
* @author Ulrik... | lgpl-3.0 |
iSoron/uhabits | uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/ui/screens/habits/list/ListHabitsBehavior.kt | 1 | 5574 | /*
* Copyright (C) 2016-2021 Álinson Santos Xavier <git@axavier.org>
*
* This file is part of Loop Habit Tracker.
*
* Loop Habit Tracker is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 ... | gpl-3.0 |
dbrant/apps-android-wikipedia | app/src/main/java/org/wikipedia/language/LanguagesListActivity.kt | 1 | 11651 | package org.wikipedia.language
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.*
import android.widget.TextView
import androidx.appcompat.view.ActionMode
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
im... | apache-2.0 |
mdanielwork/intellij-community | plugins/editorconfig/test/org/editorconfig/language/codeinsight/EditorConfigFoldingBuilderTest.kt | 1 | 1004 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.editorconfig.language.codeinsight
import com.intellij.openapi.application.ex.PathManagerEx
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureT... | apache-2.0 |
mdanielwork/intellij-community | java/debugger/impl/src/com/intellij/debugger/actions/AsyncStacksToggleAction.kt | 8 | 1400 | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.actions
import com.intellij.debugger.impl.DebuggerUtilsEx
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionS... | apache-2.0 |
dahlstrom-g/intellij-community | plugins/kotlin/fir/testData/codeInsight/handlers/gotoSuperActionHandler/classes/classImplemeningInterfaces.result.kt | 7 | 35 | KtClass: A
KtClass: I1
KtClass: I2
| apache-2.0 |
JonathanxD/CodeAPI | src/main/kotlin/com/github/jonathanxd/kores/base/comment/CommentHolder.kt | 1 | 1954 | /*
* Kores - Java source and Bytecode generation framework <https://github.com/JonathanxD/Kores>
*
* The MIT License (MIT)
*
* Copyright (c) 2020 TheRealBuggy/JonathanxD (https://github.com/JonathanxD/) <jonathan.scripter@programmer.net>
* Copyright (c) contributors
*
*
* Permission... | mit |
dahlstrom-g/intellij-community | plugins/kotlin/idea/tests/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/contains.kt | 9 | 115 | // WITH_STDLIB
fun test(list: List<Int>) {
val contains: Boolean = list.<caret>filter { it > 1 }.contains(1)
} | apache-2.0 |
dahlstrom-g/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/SimplifyWhenWithBooleanConstantConditionInspection.kt | 1 | 3594 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.inspections
import com.intellij.codeInspection.*
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiElementV... | apache-2.0 |
jcsantosbr/suadeome-backendjvm | src/main/kotlin/com/jcs/suadeome/main/App.kt | 1 | 4916 | package com.jcs.suadeome.main
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.jcs.suadeome.context.RouteFactory
import com.jcs.suadeome.professionals.Professional
import com.jcs.suadeome.professionals.ProfessionalJsonSerializer
import com.jcs.suadeome.professionals.ProfessionalResource
import... | mit |
JuliaSoboleva/SmartReceiptsLibrary | app/src/main/java/co/smartreceipts/android/workers/AttachmentFilesWriter.kt | 1 | 19998 | package co.smartreceipts.android.workers
import android.content.Context
import android.graphics.*
import android.graphics.Bitmap.CompressFormat
import android.graphics.Paint.Align
import co.smartreceipts.analytics.log.Logger
import co.smartreceipts.android.R
import co.smartreceipts.android.date.DateFormatter
import co... | agpl-3.0 |
elpassion/mainframer-intellij-plugin | src/main/kotlin/com/elpassion/mainframerplugin/util/ui.kt | 1 | 1460 | package com.elpassion.mainframerplugin.util
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.MessageType
import com.intellij.openapi.ui.popup.Balloon
import com.intellij.openapi.ui.popup.JBPopupFactory
import com.intellij.openapi.wm.WindowManager
import com.intellij.ui.awt.RelativePoint
impor... | apache-2.0 |
airbnb/epoxy | kotlinsample/src/main/java/com/airbnb/epoxy/kotlinsample/models/DecoratedLinearGroupModel.kt | 1 | 265 | package com.airbnb.epoxy.kotlinsample.models
import com.airbnb.epoxy.EpoxyModelClass
import com.airbnb.epoxy.GroupModel
import com.airbnb.epoxy.kotlinsample.R
@EpoxyModelClass
abstract class DecoratedLinearGroupModel : GroupModel(R.layout.decorated_linear_group)
| apache-2.0 |
DemonWav/MinecraftDevIntelliJ | src/main/kotlin/com/demonwav/mcdev/util/reference/PackageNameReferenceProvider.kt | 1 | 6071 | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2020 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.util.reference
import com.demonwav.mcdev.util.manipulator
import com.demonwav.mcdev.util.packageName
import com.intellij.codeInsight.lookup.LookupElementBuilder
impor... | mit |
DemonWav/MinecraftDevIntelliJ | src/main/kotlin/com/demonwav/mcdev/translations/TranslationConstants.kt | 1 | 841 | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2020 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.translations
object TranslationConstants {
const val DEFAULT_LOCALE = "en_us"
const val I18N_CLIENT_CLASS = "net.minecraft.client.resources.I18n"
const va... | mit |
paplorinc/intellij-community | python/src/com/jetbrains/python/testing/PyTestsShared.kt | 2 | 34039 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.testing
import com.intellij.execution.ExecutionException
import com.intellij.execution.Location
import com.intellij.execution.PsiLocation
import co... | apache-2.0 |
paplorinc/intellij-community | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/references/GrExplicitMethodCallReference.kt | 2 | 2119 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.resolve.references
import org.jetbrains.plugins.groovy.lang.psi.api.GroovyResolveResult
import org.jetbrains.plugins.groovy.lang.psi.api... | apache-2.0 |
RuneSuite/client | api/src/main/java/org/runestar/client/api/forms/KeyStrokeForm.kt | 1 | 207 | package org.runestar.client.api.forms
import javax.swing.KeyStroke
data class KeyStrokeForm(
val description: String
) {
@Transient val value: KeyStroke = KeyStroke.getKeyStroke(description)
} | mit |
google/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/MoveVariableDeclarationIntoWhenInspection.kt | 2 | 6268 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.inspections
import com.intellij.codeInspection.CleanupLocalInspectionTool
import com.intellij.codeInspection.LocalQuickFix
im... | apache-2.0 |
apoi/quickbeer-next | app/src/main/java/quickbeer/android/domain/review/store/ReviewStoreCore.kt | 2 | 322 | package quickbeer.android.domain.review.store
import javax.inject.Inject
import quickbeer.android.data.store.core.CachingStoreCore
import quickbeer.android.domain.review.Review
class ReviewStoreCore @Inject constructor(
roomCore: ReviewRoomCore
) : CachingStoreCore<Int, Review>(roomCore, Review::id, Review.merger... | gpl-3.0 |
JetBrains/intellij-community | plugins/kotlin/maven/src/org/jetbrains/kotlin/idea/maven/configuration/KotlinMavenConfigurator.kt | 1 | 14074 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.maven.configuration
import com.intellij.codeInsight.CodeInsightUtilCore
import com.intellij.codeInsight.daemon.impl.quickfix.... | apache-2.0 |
google/j2cl | transpiler/java/com/google/j2cl/transpiler/backend/kotlin/ast/Keywords.kt | 1 | 1344 | /*
* Copyright 2022 Google 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | apache-2.0 |
JetBrains/intellij-community | python/src/com/jetbrains/python/run/runAnything/PyRunAnythingProvider.kt | 1 | 2923 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.python.run.runAnything
import com.intellij.execution.RunManager
import com.intellij.execution.RunnerAndConfigurationSettings
import com.intellij.execution.actions.ChooseRunConf... | apache-2.0 |
ronocod/BeerSignal | android/app/src/main/kotlin/com/starstorm/beer/activity/LoginActivity.kt | 1 | 1773 | package com.starstorm.beer.activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.ActionBarActivity
import android.view.View
import android.widget.ProgressBar
import com.novoda.notils.caster.Views
import com.parse.ParseFacebookUtils
import com.parse.ParseUser
import com.starstor... | gpl-2.0 |
dmcg/konsent | src/main/java/com/oneeyedmen/konsent/AcceptanceTest.kt | 1 | 165 | package com.oneeyedmen.konsent
open class AcceptanceTest {
companion object {
lateinit var recorder: FeatureRecorder // initialised by Konsent
}
} | apache-2.0 |
NeatoRobotics/neato-sdk-android | Neato-SDK/neato-sdk-android/src/main/java/com/neatorobotics/sdk/android/robotservices/housecleaning/HouseCleaningBasic1Service.kt | 1 | 711 | /*
* Copyright (c) 2019.
* Neato Robotics Inc.
*/
package com.neatorobotics.sdk.android.robotservices.housecleaning
class HouseCleaningBasic1Service : HouseCleaningService() {
override val isMultipleZonesCleaningSupported: Boolean
get() = false
override val isEcoModeSupported: Boolean
get... | mit |
allotria/intellij-community | platform/lang-impl/src/com/intellij/model/psi/impl/PsiElementDeclarationSearcher.kt | 2 | 3056 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.model.psi.impl
import com.intellij.codeInsight.daemon.impl.IdentifierUtil
import com.intellij.codeInsight.highlighting.HighlightUsagesHandler
import com.inte... | apache-2.0 |
deadpixelsociety/roto-ld34 | core/src/com/thedeadpixelsociety/ld34/components/TransformComponent.kt | 1 | 392 | package com.thedeadpixelsociety.ld34.components
import com.badlogic.ashley.core.Component
import com.badlogic.gdx.math.Vector2
data class TransformComponent(val position: Vector2 = Vector2(),
val origin: Vector2 = Vector2(),
var rotation: Float = 0f,
... | mit |
fluidsonic/fluid-json | basic/sources-jvm/JsonWriter.kt | 1 | 28454 | @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
package io.fluidsonic.json
import java.io.*
import kotlin.contracts.*
import kotlin.internal.*
public interface JsonWriter : Closeable, Flushable {
public val depth: JsonDepth
public val isErrored: Boolean
public val isInValueIsolation: Boolean
public v... | apache-2.0 |
ttomsu/orca | orca-queue/src/test/kotlin/com/netflix/spinnaker/orca/q/handler/CancelStageHandlerTest.kt | 1 | 5830 | /*
* Copyright 2017 Netflix, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | apache-2.0 |
aporter/coursera-android | ExamplesKotlin/UIGoogleMaps/app/src/main/java/course/examples/ui/mapview/GoogleMapActivity.kt | 1 | 1595 | package course.examples.ui.mapview
import android.os.Bundle
import androidx.fragment.app.FragmentActivity
import com.google.android.gms.maps.*
import com.google.android.gms.maps.model.LatLng
import com.google.android.gms.maps.model.MarkerOptions
class GoogleMapActivity : FragmentActivity(), OnMapReadyCallback {
... | mit |
allotria/intellij-community | platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab2.kt | 2 | 13809 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.xdebugger.impl.ui
import com.intellij.debugger.ui.DebuggerContentInfo
import com.intellij.execution.runners.ExecutionEnvironment
import com.intellij.executio... | apache-2.0 |
fluidsonic/fluid-json | annotation-processor/test-cases/1/input/json/representation/SingleValue.kt | 1 | 155 | package json.representation
import io.fluidsonic.json.*
@Json(
representation = Json.Representation.singleValue
)
class SingleValue(val value: String)
| apache-2.0 |
allotria/intellij-community | platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/compile/LocalCompiler.kt | 2 | 8488 | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testGuiFramework.recorder.compile
import com.intellij.ide.plugins.PluginManagerCore
import com.intellij.ide.plugins.cl.PluginClassLoader
import com.intellij.... | apache-2.0 |
allotria/intellij-community | platform/platform-impl/src/com/intellij/ide/plugins/PluginInstallCallbackData.kt | 1 | 923 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.plugins
import java.nio.file.Path
/**
* @author yole
*/
data class PluginInstallCallbackData(
val file: Path,
val pluginDescriptor: IdeaPluginDesc... | apache-2.0 |
JetBrains/teamcity-dnx-plugin | plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotnet/VSTestToolResolver.kt | 1 | 1892 | package jetbrains.buildServer.dotnet
import jetbrains.buildServer.RunBuildException
import jetbrains.buildServer.agent.Path
import jetbrains.buildServer.agent.ToolCannotBeFoundException
import jetbrains.buildServer.agent.ToolPath
import jetbrains.buildServer.agent.runner.ParameterType
import jetbrains.buildServer.agen... | apache-2.0 |
EGF2/android-client | framework/src/main/kotlin/com/eigengraph/egf2/framework/EGF2AuthService.kt | 1 | 933 | package com.eigengraph.egf2.framework
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query
import rx.Observable
internal interface EGF2AuthService {
@POST("register")
fun register(@Body body: Any): Observable<Response<TokenModel>>
@P... | mit |
trevjonez/ktor_playground | src/test/kotlin/com/trevjonez/ktor_playground/people/PersonEntityPostValidatorTest.kt | 1 | 789 | package com.trevjonez.ktor_playground.people
import com.trevjonez.ktor_playground.people.PersonEntity.*
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class PersonEntityPostValidatorTest {
@Test
fun `validator fills in optional fields`() {
assertThat(PostValidator.validate(Raw... | apache-2.0 |
zdary/intellij-community | platform/workspaceModel/storage/tests/testSrc/com/intellij/workspaceModel/storage/EntityStorageSerializationTest.kt | 2 | 7007 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.workspaceModel.storage
import com.intellij.workspaceModel.storage.bridgeEntities.LibraryTableId
import com.intellij.workspaceModel.storage.bridgeEntities.add... | apache-2.0 |
zdary/intellij-community | platform/lang-impl/src/com/intellij/refactoring/rename/inplace/util.kt | 2 | 3006 | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.refactoring.rename.inplace
import com.intellij.codeInsight.template.TemplateResultListener
import com.intellij.codeInsight.template.impl.TemplateState
import... | apache-2.0 |
zdary/intellij-community | plugins/gradle/src/org/jetbrains/plugins/gradle/issue/UnresolvedDependencyIssue.kt | 3 | 4811 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.issue
import com.intellij.build.BuildView
import com.intellij.build.issue.BuildIssue
import com.intellij.build.issue.BuildIssueQuickFix
impor... | apache-2.0 |
JuliusKunze/kotlin-native | backend.native/tests/external/codegen/box/regressions/kt1568.kt | 2 | 223 | // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
fun box() : String {
val i = 1
return if(i.javaClass.getSimpleName() == "int") "OK" else "fail"
}
| apache-2.0 |
faceofcat/Tesla-Core-Lib | src/main/kotlin/net/ndrei/teslacorelib/utils/BlockPosUtils.kt | 1 | 1911 | package net.ndrei.teslacorelib.utils
import net.minecraft.util.EnumFacing
import net.minecraft.util.math.BlockPos
/**
* Created by CF on 2017-07-06.
*/
object BlockPosUtils {
fun getCube(entityPos: BlockPos, facing: EnumFacing?, radius: Int, height: Int): BlockCube {
val pos1: BlockPos
var pos2:... | mit |
Bastien7/Kotlin-presentation | KotlinApp/src/main/kotlin/kotlinApp/services/MessageService.kt | 1 | 302 | package kotlinApp.services
import kotlinApp.model.Message
import org.springframework.stereotype.Service
import java.util.UUID
@Service
interface MessageService {
fun getMessages(): List<Message>
fun saveMessage(message: Message)
fun updateMessage(message: Message)
fun deleteMessage(id: String)
} | mit |
RobWin/springboot-angular2-kotlin-demo | spring-boot-server/src/main/kotlin/io/github/robwin/web/entity/Hero.kt | 1 | 384 | package io.github.robwin.web.entity
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.persistence.Table
@Entity
@Table(name = "heroes")
data class Hero (@Id
@GeneratedValue(strategy = javax.persistence.GenerationType.AUTO)
... | apache-2.0 |
JuliusKunze/kotlin-native | backend.native/tests/external/codegen/box/properties/kt2892.kt | 5 | 326 | open class A
class B : A() {
fun foo() = 1
}
class Test {
val a : A = B()
private val b : B get() = a as B //'private' is important here
fun outer() : Int {
fun inner() : Int = b.foo() //'no such field error' here
return inner()
}
}
fun box() = if (Test().outer() == 1) "OK" else "... | apache-2.0 |
JuliusKunze/kotlin-native | backend.native/tests/external/codegen/box/jvmStatic/propertyAccessorsCompanion.kt | 2 | 393 | // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
var result = "fail 2"
class Foo {
val b = { a }
val c = Runnable { result = a }
companion object {
@JvmStatic
private val a = "OK"
}
}
fun box(): String {
if (Fo... | apache-2.0 |
smmribeiro/intellij-community | plugins/kotlin/idea/tests/testData/refactoring/changeSignature/ChangeJavaMethodWithRawTypeAfter.1.kt | 14 | 367 | class K1 : MyJavaClass() {
override fun coll(c: Collection<Any?>?, i: Int) = Unit
}
class K2 : MyJavaClass() {
override fun coll(c: Collection<Any?>, i: Int) = Unit
}
class K3 : MyJavaClass() {
override fun coll(c: MutableCollection<Any?>, i: Int) = Unit
}
class K4 : MyJavaClass() {
override fun coll... | apache-2.0 |
smmribeiro/intellij-community | plugins/kotlin/idea/tests/testData/codeInsight/moveUpDown/trailingComma/funParams4.kt | 26 | 149 | // MOVE: up
class A {
fun <T, U, W> foo(
b: Int,
c: Int
<caret>a: Int,
) {
}
class B {
}
}
| apache-2.0 |
AndrewJack/gatekeeper | mobile/src/main/java/technology/mainthread/apps/gatekeeper/viewModel/MainActivityViewModel.kt | 1 | 148 | package technology.mainthread.apps.gatekeeper.viewModel
import androidx.databinding.BaseObservable
class MainActivityViewModel : BaseObservable()
| apache-2.0 |
cout970/Modeler | src/test/kotlin/core/export/TcnHandler.kt | 1 | 527 | package core.export
import com.cout970.modeler.core.export.ModelImporters.tcnImporter
import com.cout970.modeler.util.toResourcePath
import org.junit.Assert
import org.junit.Test
import java.io.File
/**
* Created by cout970 on 2017/06/06.
*/
class TcnHandler {
@Test
fun `Try importing a cube mode`() {
... | gpl-3.0 |
jotomo/AndroidAPS | app/src/test/java/info/nightscout/androidaps/plugins/general/automation/elements/LabelWithElementTest.kt | 1 | 660 | package info.nightscout.androidaps.plugins.general.automation.elements
import info.nightscout.androidaps.plugins.general.automation.triggers.TriggerTestBase
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.powermock.modules.junit4.PowerMockRunner
@RunWith(PowerMockRunner::class... | agpl-3.0 |
Flank/flank | test_runner/src/test/kotlin/ftl/ios/xctest/common/FindTestsForTargetKtTest.kt | 1 | 3952 | package ftl.ios.xctest.common
import com.google.common.truth.Truth.assertThat
import flank.common.isWindows
import ftl.ios.xctest.FIXTURES_PATH
import ftl.ios.xctest.multiTargetsSwiftXcTestRunV1
import ftl.ios.xctest.swiftTestsV1
import ftl.ios.xctest.swiftXcTestRunV1
import ftl.run.exception.FlankGeneralError
import ... | apache-2.0 |
leafclick/intellij-community | platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/CommittedChangesFilterComponent.kt | 1 | 4333 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.changes.committed
import com.intellij.openapi.Disposable
import com.intellij.openapi.ui.ComponentValidator
import com.intellij.openapi.ui.Validat... | apache-2.0 |
leafclick/intellij-community | platform/diff-impl/tests/testSrc/com/intellij/diff/comparison/ComparisonMergeUtilTestBase.kt | 1 | 7039 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.diff.comparison
import com.intellij.diff.DiffTestCase
import com.intellij.diff.fragments.MergeLineFragment
import com.intellij.diff.util.IntPair
import com.i... | apache-2.0 |
siosio/intellij-community | plugins/kotlin/idea/tests/testData/indentationOnNewline/templates/TemplateEntryClose.kt | 12 | 53 | fun a() {
val b = 3
val a = "${b<caret>}"
}
| apache-2.0 |
siosio/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/DestructureIntention.kt | 1 | 19109 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiEl... | apache-2.0 |
siosio/intellij-community | plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/convertCollection/arrayToList.kt | 4 | 159 | // "Convert expression to 'List' by inserting '.toList()'" "true"
// WITH_RUNTIME
fun foo(a: Array<String>) {
bar(a<caret>)
}
fun bar(a: List<String>) {} | apache-2.0 |
siosio/intellij-community | plugins/kotlin/jvm-debugger/coroutines/src/org/jetbrains/kotlin/idea/debugger/coroutine/proxy/mirror/debugMetadata.kt | 1 | 4848 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.debugger.coroutine.proxy.mirror
import com.sun.jdi.ArrayReference
import com.sun.jdi.ObjectReference
import com.sun.jdi.Strin... | apache-2.0 |
siosio/intellij-community | plugins/kotlin/idea/tests/testData/indentationOnNewline/controlFlowConstructions/WhenWithoutCondition.kt | 12 | 36 | fun a() {
when<caret> {
}
} | apache-2.0 |
feelfreelinux/WykopMobilny | app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/adapters/viewholders/DownvoterViewHolder.kt | 1 | 1403 | package io.github.feelfreelinux.wykopmobilny.ui.adapters.viewholders
import android.view.View
import io.github.feelfreelinux.wykopmobilny.R
import io.github.feelfreelinux.wykopmobilny.models.dataclass.Downvoter
import io.github.feelfreelinux.wykopmobilny.utils.toPrettyDate
import kotlinx.android.synthetic.main.downvot... | mit |
siosio/intellij-community | plugins/kotlin/gradle/gradle-idea/src/org/jetbrains/kotlin/idea/configuration/gradleModuleBuilderUtils.kt | 1 | 6155 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.configuration
import com.intellij.framework.addSupport.FrameworkSupportInModuleConfigurable
import com.intellij.ide.util.fram... | apache-2.0 |
siosio/intellij-community | python/python-features-trainer/src/com/jetbrains/python/ift/lesson/run/PythonRunLessonsUtils.kt | 2 | 1261 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.ift.lesson.run
import training.dsl.parseLessonSample
object PythonRunLessonsUtils {
const val demoConfigurationName = "sandbox"
val demoSample ... | apache-2.0 |
siosio/intellij-community | plugins/kotlin/gradle/gradle-idea/src/org/jetbrains/kotlin/idea/run/KotlinMPPGradleTestTasksProvider.kt | 1 | 2971 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.run
import com.intellij.openapi.externalSystem.model.ProjectKeys
import com.intellij.openapi.externalSystem.model.task.TaskDa... | apache-2.0 |
siosio/intellij-community | plugins/kotlin/idea/tests/testData/structuralsearch/countFilter/oneLambdaParameter.kt | 4 | 257 | val p0: () -> Int = { 31 }
val p1: (Int) -> Int = <warning descr="SSR">{ x -> x }</warning>
val p1b: (Int) -> Int = <warning descr="SSR">{ it }</warning>
val p2: (Int, Int) -> Int = { x, y -> x + y }
val p3: (Int, Int, Int) -> Int = { x, y, z -> x + y + z } | apache-2.0 |
siosio/intellij-community | plugins/kotlin/idea/tests/testData/inspectionsLocal/dfa/anyIsInt.kt | 1 | 71 | // PROBLEM: none
fun test(obj : Any) {
if (<caret>obj is Int) {}
}
| apache-2.0 |
siosio/intellij-community | plugins/kotlin/frontend-fir/src/org/jetbrains/kotlin/idea/asJava/methods/FirLightAccessorMethodForSymbol.kt | 2 | 7661 | /*
* Copyright 2010-2020 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.idea.asJava
import com.intellij.psi.*
import com.intellij.psi.impl.light.LightPa... | apache-2.0 |
code-disaster/lwjgl3 | modules/lwjgl/opengl/src/templates/kotlin/opengl/templates/WGL_NV_gpu_affinity.kt | 4 | 4626 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
*/
package opengl.templates
import org.lwjgl.generator.*
import opengl.*
import core.windows.*
val WGL_NV_gpu_affinity = "WGLNVGPUAffinity".nativeClassWGL("WGL_NV_gpu_affinity", NV) {
documentation =
"""
N... | bsd-3-clause |
jwren/intellij-community | platform/lang-impl/src/com/intellij/ide/actions/navbar/NavBarLocationGroup.kt | 2 | 537 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.actions.navbar
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.DefaultActionGroup
import com.intellij.openapi.project.DumbAwa... | apache-2.0 |
jwren/intellij-community | plugins/kotlin/completion/tests/testData/basic/common/KeywordsAreLowInParameterTypeCompletion2.kt | 8 | 230 | // FIR_IDENTICAL
// FIR_COMPARISON
class SomeType<T>
fun test(a: SomeType<<caret>>) {}
// WITH_ORDER
// EXIST: { itemText: "SomeType" }
// EXIST: { itemText: "in" }
// EXIST: { itemText: "out" }
// EXIST: { itemText: "suspend" } | apache-2.0 |
jwren/intellij-community | plugins/evaluation-plugin/core/src/com/intellij/cce/core/TokenProperties.kt | 1 | 4050 | package com.intellij.cce.core
import com.google.gson.*
import java.lang.reflect.Type
interface TokenProperties {
val tokenType: TypeProperty
val location: SymbolLocation
fun additionalProperty(name: String): String?
fun describe(): String
fun hasFeature(feature: String): Boolean
fun withFeatures(featu... | apache-2.0 |
jwren/intellij-community | plugins/kotlin/fir/src/org/jetbrains/kotlin/idea/fir/inspections/KotlinHLUnusedImportInspection.kt | 1 | 1534 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.fir.inspections
import com.intellij.codeInspection.InspectionManager
import com.intellij.codeInspection.ProblemDescriptor
imp... | apache-2.0 |
intellij-solidity/intellij-solidity | src/test/kotlin/me/serce/solidity/lang/completion/SolMemberAccessCompletionTest.kt | 1 | 2901 | package me.serce.solidity.lang.completion
class SolMemberAccessCompletionTest : SolCompletionTestBase() {
fun testEmptyCompletion() = checkCompletion(hashSetOf("doSmth"), """
contract SomeContract {
function doSmth() public {
}
}
contract... | mit |
chrhsmt/Sishen | app/src/main/java/com/chrhsmt/sisheng/AudioServiceMock.kt | 1 | 2062 | package com.chrhsmt.sisheng
import android.annotation.SuppressLint
import android.app.Activity
import com.chrhsmt.sisheng.exception.AudioServiceException
import com.chrhsmt.sisheng.point.Point
import com.chrhsmt.sisheng.point.SimplePointCalculator
import com.chrhsmt.sisheng.ui.Chart
/**
* Created by hkimura on 2017/... | mit |
androidx/androidx | compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/semantics/SemanticsSort.kt | 3 | 7050 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
androidx/androidx | wear/compose/compose-navigation/src/main/java/androidx/wear/compose/navigation/SwipeDismissableNavHostController.kt | 3 | 1771 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
stoyicker/dinger | domain/src/main/kotlin/domain/autoswipe/AutoSwipeHolder.kt | 1 | 284 | package domain.autoswipe
object AutoSwipeHolder {
internal lateinit var autoSwipeLauncherFactory: AutoSwipeLauncherFactory
fun autoSwipeIntentFactory(
autoSwipeLauncherFactory: AutoSwipeLauncherFactory) {
this.autoSwipeLauncherFactory = autoSwipeLauncherFactory
}
}
| mit |
iceboundrock/nextday-for-android | app/src/main/kotlin/li/ruoshi/nextday/views/SwipeControllableViewPager.kt | 1 | 858 | package li.ruoshi.nextday.views
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
import android.view.MotionEvent
class SwipeControllableViewPager @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : ViewPager(context, attrs) {
private ... | apache-2.0 |
androidx/androidx | tv/tv-material/samples/src/main/java/androidx/tv/tvmaterial/samples/MainActivity.kt | 3 | 969 | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
nrizzio/Signal-Android | app/src/main/java/org/thoughtcrime/securesms/components/quotes/QuoteViewColorTheme.kt | 1 | 1786 | package org.thoughtcrime.securesms.components.quotes
import android.content.Context
import androidx.core.content.ContextCompat
import org.thoughtcrime.securesms.R
enum class QuoteViewColorTheme(
private val backgroundColorRes: Int,
private val barColorRes: Int,
private val foregroundColorRes: Int
) {
INCOMIN... | gpl-3.0 |
androidx/androidx | core/uwb/uwb/src/main/java/androidx/core/uwb/UwbClientSessionScope.kt | 3 | 2476 | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
androidx/androidx | compose/compiler/compiler-hosted/integration-tests/src/test/java/androidx/compose/compiler/plugins/kotlin/AbstractControlFlowTransformTests.kt | 3 | 2319 | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
GunoH/intellij-community | plugins/kotlin/uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/declarations/KotlinUMethod.kt | 2 | 5623 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.uast.kotlin
import com.intellij.lang.jvm.JvmModifier
import com.intellij.psi.*
import org.jetbrains.annotations.ApiStatus
import org.jetb... | apache-2.0 |
GunoH/intellij-community | plugins/kotlin/idea/tests/testData/intentions/conventionNameCalls/replaceCallWithUnaryOperator/inc.kt | 13 | 148 | // IS_APPLICABLE: false
fun test() {
class Test {
operator fun inc(): Test = Test()
}
val test = Test()
test.inc<caret>()
}
| apache-2.0 |
GunoH/intellij-community | plugins/kotlin/jvm-debugger/test/test/org/jetbrains/kotlin/idea/debugger/test/sequence/dsl/KotlinDslTest.kt | 4 | 958 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.debugger.test.sequence.dsl
import com.intellij.debugger.streams.test.DslTestCase
import com.intellij.debugger.streams.trace.ds... | apache-2.0 |
GunoH/intellij-community | python/src/com/jetbrains/python/testing/PyRerunFailedTestsAction.kt | 8 | 9062 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.testing
import com.intellij.execution.ExecutionException
import com.intellij.execution.ExecutionResult
import com.intellij.execution.Executor
import ... | apache-2.0 |
GunoH/intellij-community | plugins/kotlin/code-insight/inspections-k2/tests/testData/inspectionsLocal/removeSingleExpressionStringTemplate/multipleStringTemplate.kt | 4 | 61 | // PROBLEM: none
val foo = "foo"
val bar = <caret>"$foo$foo" | apache-2.0 |
GunoH/intellij-community | platform/lang-impl/src/com/intellij/lang/documentation/ide/impl/DocumentationBrowser.kt | 7 | 5913 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.lang.documentation.ide.impl
import com.intellij.lang.documentation.DocumentationTarget
import com.intellij.lang.documentation.ide.DocumentationBrowserFacade
import com.intellij... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.