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
ajordens/orca
orca-queue/src/main/kotlin/com/netflix/spinnaker/orca/q/handler/RestartStageHandler.kt
1
4896
/* * 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
GunoH/intellij-community
platform/build-scripts/src/org/jetbrains/intellij/build/ApplicationInfoProperties.kt
6
1158
// 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.intellij.build interface ApplicationInfoProperties { val majorVersion: String val minorVersion: String val microVersion: String val patchVersion: String val fullVersi...
apache-2.0
GunoH/intellij-community
plugins/devkit/devkit-kotlin-tests/testData/inspections/useDPIAwareInsets/UseJBUIInsetsThatCanBeSimplified.kt
2
2401
import com.intellij.util.ui.JBUI import java.awt.Insets class UseJBUIInsetsThatCanBeSimplified { companion object { private val INSETS_CONSTANT_CAN_BE_SIMPLIFIED: Insets = JBUI.<warning descr="Insets creation can be simplified">insets(0)</warning> private val INSETS_CONSTANT_CORRECT1: Insets = JBUI.insets(...
apache-2.0
siosio/intellij-community
plugins/kotlin/idea/tests/testData/indentationOnNewline/expressionBody/AfterMutableProperty.after.kt
24
89
fun a() { var b <caret> } // SET_FALSE: CONTINUATION_INDENT_FOR_EXPRESSION_BODIES
apache-2.0
550609334/Twobbble
app/src/main/java/com/twobbble/tools/RxHelper.kt
1
2902
package com.twobbble.tools import io.reactivex.ObservableTransformer import io.reactivex.Scheduler import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.schedulers.Schedulers /** * Created by liuzipeng on 2017/2/21. */ class RxHelper { companion object { /** * 输入输出都为List的...
apache-2.0
jwren/intellij-community
plugins/kotlin/completion/tests/testData/handlers/TabInsertBeforeOperator.kt
13
50
fun test() { val vvvvv = 12 vv<caret>+12 }
apache-2.0
BijoySingh/Quick-Note-Android
base/src/main/java/com/maubis/scarlet/base/config/auth/NullAuthenticator.kt
1
899
package com.maubis.scarlet.base.config.auth import android.content.Context import com.maubis.scarlet.base.support.ui.ThemedActivity class NullAuthenticator : IAuthenticator { override fun openLoginActivity(context: Context): Runnable? = null override fun openForgetMeActivity(context: Context): Runnable? = null ...
gpl-3.0
jwren/intellij-community
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/collections/SimplifiableCallInspection.kt
2
7982
// 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.inspections.collections import com.intellij.codeInspection.LocalQuickFix import com.intellij.codeInspection.ProblemDescriptor...
apache-2.0
GunoH/intellij-community
plugins/devkit/intellij.devkit.workspaceModel/tests/testData/entityWithCollections/before/entity.kt
5
210
package com.intellij.workspaceModel.test.api import com.intellij.workspaceModel.storage.WorkspaceEntity interface CollectionFieldEntity : WorkspaceEntity { val versions: Set<Int> val names: List<String> }
apache-2.0
Fotoapparat/Fotoapparat
fotoapparat/src/main/java/io/fotoapparat/hardware/orientation/Rotation.kt
1
350
package io.fotoapparat.hardware.orientation typealias DeviceRotationDegrees = Int /** * @return closest right angle to given value. That is: 0, 90, 180, 270. */ internal fun Int.toClosestRightAngle(): Int { val roundUp = this % 90 > 45 val roundAppModifier = if (roundUp) 1 else 0 return (this / 90 + r...
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/idea/tests/testData/intentions/convertPropertyGetterToInitializer/hasComment.kt
13
42
val p: Int // comment <caret>get() = 1
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/core/src/org/jetbrains/kotlin/idea/core/util/CoroutineUtils.kt
1
1724
// 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.core.util import com.intellij.openapi.Disposable import com.intellij.openapi.application.ApplicationManager import com.intell...
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/introduce/extractionEngine/extractorUtil.kt
1
32360
// 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.refactoring.introduce.extractionEngine import com.intellij.codeHighlighting.HighlightDisplayLevel import com.intellij.openapi...
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/typeMismatchOnReturnedExpression/multiReturn/unrelatedLabeledReturn.kt
1
229
// "Change return type of enclosing function 'bar' to 'String?'" "true" // WITH_STDLIB fun bar(n: Int): Boolean { if (true) return "bar"<caret> val list = listOf(1).map { return@map it + 1 } return null }
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/j2k/new/tests/testData/newJ2k/types/recursiveType.external.kt
13
101
class TestClass<T : TestClass<T>> class TestClass2 { fun test(testClass: TestClass<*>?) = Unit }
apache-2.0