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
plugins/kotlin/idea/tests/testData/navigation/implementations/multifile/ImplementFunInJava/ImplementFunInJava.kt
10
113
package testing.kt open class KotlinBase { open fun <caret>test() {} } // REF: of testing.jj.JavaBase.test()
apache-2.0
GunoH/intellij-community
platform/util-ex/src/com/intellij/util/lazy.kt
4
2273
// 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.util import kotlinx.coroutines.CoroutineScope import org.jetbrains.annotations.ApiStatus.Experimental import kotlin.coroutines.CoroutineContext import kotlin.coroutines.EmptyCor...
apache-2.0
GunoH/intellij-community
plugins/kotlin/idea/tests/testData/quickfix/suppress/redundant/RemoveAnnotation.kt
7
263
// "Remove suppression" "true" @Suppress("<caret>MoveVariableDeclarationIntoWhen") fun function() { } // TOOL: com.intellij.codeInspection.RedundantSuppressInspection // TOOL: org.jetbrains.kotlin.idea.inspections.MoveVariableDeclarationIntoWhenInspection
apache-2.0
GunoH/intellij-community
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/util/ProgressIndicatorUtils.kt
4
1042
// 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.util import com.intellij.openapi.Disposable import com.intellij.openapi.progress.util.BackgroundTaskUtil import com.intellij....
apache-2.0
GunoH/intellij-community
platform/execution-impl/src/com/intellij/execution/runToolbar/RunWidgetWidthHelper.kt
4
1778
// 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.execution.runToolbar import com.intellij.openapi.components.Service import com.intellij.openapi.components.service import com.intellij.openapi.project.Project import com.intelli...
apache-2.0
GunoH/intellij-community
platform/vcs-impl/src/com/intellij/vcs/commit/ToggleAmendCommitOption.kt
1
1322
// 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.vcs.commit import com.intellij.openapi.Disposable import com.intellij.openapi.vcs.CheckinProjectPanel import com.intellij.openapi.vcs.VcsBundle import com.in...
apache-2.0
yongce/AndroidLib
baseLib/src/androidTest/java/me/ycdev/android/lib/common/internalapi/android/os/ProcessIATest.kt
1
1986
package me.ycdev.android.lib.common.internalapi.android.os import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.filters.RequiresDevice import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue import org.junit.Test import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) @Requ...
apache-2.0
RoyaAoki/Megumin
mobile/src/main/java/com/sqrtf/megumin/BaseThemeActivity.kt
1
832
package com.sqrtf.megumin import android.os.Build import android.os.Bundle import android.view.View import com.sqrtf.common.activity.BaseActivity import com.sqrtf.common.cache.PreferencesUtil abstract class BaseThemeActivity : BaseActivity() { protected val isWhiteTheme: Boolean get() = PreferencesUtil....
mit
ktorio/ktor
ktor-server/ktor-server-host-common/jvm/test/io/ktor/tests/hosts/BuildApplicationConfigJvmTest.kt
1
786
/* * Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.tests.hosts import io.ktor.server.engine.* import kotlin.test.* class BuildApplicationConfigJvmTest { @Test fun testPropertyConfig() { System.setProperty("kto...
apache-2.0
Qase/KotlinLogger
app/src/androidTest/java/quanti/com/kotlinlog3/MainActivity.kt
1
4794
package quanti.com.kotlinlog3 import android.content.Context import android.support.test.espresso.Espresso.onView import android.support.test.espresso.action.ViewActions.click import android.support.test.espresso.matcher.ViewMatchers.withId import android.support.test.filters.LargeTest import android.support.test.rule...
mit
testpress/android
app/src/main/java/in/testpress/testpress/models/pojo/OTPLoginResponse.kt
1
201
package `in`.testpress.testpress.models.pojo data class OTPLoginResponse( val token: String? = null, val isNewUser: Boolean = false, val nonFieldErrors: ArrayList<String> = arrayListOf() )
mit
inorichi/mangafeed
app/src/main/java/eu/kanade/tachiyomi/data/track/job/DelayedTrackingUpdateJob.kt
2
2757
package eu.kanade.tachiyomi.data.track.job import android.content.Context import androidx.work.BackoffPolicy import androidx.work.Constraints import androidx.work.CoroutineWorker import androidx.work.ExistingWorkPolicy import androidx.work.NetworkType import androidx.work.OneTimeWorkRequestBuilder import androidx.work...
apache-2.0
yole/deckjs-presentations
snippets/pama.kt
1
391
package pama trait Expr class Number(val value: Int): Expr class Sum(val left: Expr, val right: Expr): Expr class Mult(val left: Expr, val right: Expr): Expr fun eval(e: Expr): Int = when(e) { is Number -> e.value is Sum -> eval(e.left) + eval(e.right) is Mult -> eval(e.left) + eval(e.right) ...
mit
ihsanbal/LoggingInterceptor
lib/src/main/java/com/ihsanbal/logging/Printer.kt
1
12931
package com.ihsanbal.logging import okhttp3.Headers import okhttp3.RequestBody import okhttp3.Response import okhttp3.internal.http.promisesBody import okio.Buffer import okio.GzipSource import org.json.JSONArray import org.json.JSONException import org.json.JSONObject import java.io.EOFException import java.io.IOExce...
mit
Tickaroo/tikxml
annotationprocessortesting-kt/src/main/java/com/tickaroo/tikxml/annotationprocessing/elementlist/polymorphism/BossDataClass.kt
1
1015
/* * Copyright (C) 2015 Hannes Dorfmann * Copyright (C) 2015 Tickaroo, 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 * *...
apache-2.0
dhis2/dhis2-android-sdk
core/src/main/java/org/hisp/dhis/android/core/common/valuetype/validation/failures/CoordinateFailure.kt
1
1797
/* * Copyright (c) 2004-2022, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * ...
bsd-3-clause
dhis2/dhis2-android-sdk
core/src/main/java/org/hisp/dhis/android/core/visualization/internal/VisualizationModuleWiper.kt
1
2480
/* * Copyright (c) 2004-2022, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list o...
bsd-3-clause
Talentica/AndroidWithKotlin
app/src/main/java/com/talentica/androidkotlin/db/converter/DateConverter.kt
1
1023
/* * Copyright 2017, 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 applic...
apache-2.0
CodeNinjaResearch/tailCallFibonacci
src/test/java/src/FunctionalTest.kt
1
774
package src import org.junit.Test import kotlin.test.assertTrue /** * Created by vicboma on 01/11/15. */ class FunctionalTest{ val expected = arrayOf<Long>(0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025,121393,196418,317811,514229,832040,1346269,2178309,35245...
mit
ngthtung2805/dalatlaptop
app/src/main/java/com/tungnui/dalatlaptop/ux/login/LoginActivity.kt
1
3343
package com.tungnui.dalatlaptop.ux.login import android.support.design.widget.TabLayout import android.support.v7.app.AppCompatActivity import android.support.v4.app.Fragment import android.support.v4.app.FragmentManager import android.support.v4.app.FragmentPagerAdapter import android.os.Bundle import android.view.M...
mit
dahlstrom-g/intellij-community
plugins/maven/src/test/java/org/jetbrains/idea/maven/project/importing/MavenProjectsManagerNewFlowTest.kt
8
882
// 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.idea.maven.project.importing import com.intellij.openapi.util.registry.Registry import com.intellij.maven.testFramework.MavenMultiVersionI...
apache-2.0
dahlstrom-g/intellij-community
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/quickfix/migration/MigrateExperimentalToRequiresOptInFix.kt
3
4538
// 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.quickfix.migration import com.intellij.codeInsight.intention.IntentionAction import com.intellij.openapi.editor.Editor import ...
apache-2.0
dahlstrom-g/intellij-community
plugins/kotlin/git/src/org/jetbrains/kotlin/idea/git/KotlinExplicitMovementProvider.kt
2
1767
// 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.git import com.intellij.openapi.project.Project import com.intellij.openapi.util.Couple import com.intellij.openapi.vcs.FileP...
apache-2.0
dahlstrom-g/intellij-community
plugins/kotlin/idea/tests/testData/inspectionsLocal/unusedUnaryOperator/namedParameter.kt
13
71
// PROBLEM: none fun a(a: Int) = Unit fun b() { a(a = -<caret>1) }
apache-2.0
tateisu/SubwayTooter
app/src/main/java/jp/juggler/subwaytooter/ActColumnList.kt
1
11931
package jp.juggler.subwaytooter import android.app.Activity import android.content.Context import android.content.Intent import android.os.Bundle import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView import androidx.appcompat.app.AppCompatActivi...
apache-2.0
DreierF/MyTargets
app/src/main/java/de/dreier/mytargets/base/db/typeconverters/EBowTypeConverters.kt
1
923
/* * Copyright (C) 2018 Florian Dreier * * This file is part of MyTargets. * * MyTargets is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * MyTargets is distributed in the hope that it will...
gpl-2.0
kurtyan/fanfou4j
src/main/java/com/github/kurtyan/fanfou4j/request/friend/DeleteFriendRequest.kt
1
387
package com.github.kurtyan.fanfou4j.request.friend import com.github.kurtyan.fanfou4j.core.AbstractRequest import com.github.kurtyan.fanfou4j.core.HttpMethod import com.github.kurtyan.fanfou4j.entity.User /** * Created by yanke on 2016/12/7. */ class DeleteFriendRequest : AbstractRequest<User>("/friendships/destroy...
mit
seratch/jslack
slack-api-model-kotlin-extension/src/main/kotlin/com/slack/api/model/kotlin_extension/block/BlockLayoutBuilder.kt
1
363
package com.slack.api.model.kotlin_extension.block /** * This annotation signifies that the class is a builder for the Block Kit DSL. * * Classes marked with this annotation make it so that invoking functions with a receiver outside * the most immediate block are illegal without an explicit labeled `this` */ @Dsl...
mit
auricgoldfinger/Memento-Namedays
android_mobile/src/main/java/com/alexstyl/specialdates/events/namedays/activity/AndroidNamedaysOnADayView.kt
3
292
package com.alexstyl.specialdates.events.namedays.activity class AndroidNamedaysOnADayView(private val screenAdapter: NamedaysScreenAdapter) : NamedaysOnADayView { override fun displayNamedays(viewModels: List<NamedayScreenViewModel>) { screenAdapter.display(viewModels) } }
mit
paplorinc/intellij-community
plugins/editorconfig/src/org/editorconfig/language/codeinsight/inspections/EditorConfigShadowedOptionInspection.kt
4
3008
// 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.inspections import com.intellij.codeInspection.LocalInspectionTool import com.intellij.codeInspection.ProblemHighlightType import co...
apache-2.0
paplorinc/intellij-community
plugins/gradle/java/testSources/util/GradleExecutionSettingsUtilTest.kt
2
6655
// 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.gradle.util import com.intellij.psi.* import com.intellij.testFramework.PsiTestCase import org.jetbrains.plugins.gradle.util.GradleExecutionSettings...
apache-2.0
jguerinet/android-utils
ui/src/main/java/com/guerinet/suitcase/ui/extensions/DrawableExt.kt
2
1210
/* * Copyright 2016-2019 Julien Guerinet * * 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 a...
apache-2.0
esafirm/android-playground
app/src/main/java/com/esafirm/androidplayground/conductor/sharedtransition/SharedTransitionDetailController.kt
1
1177
package com.esafirm.androidplayground.conductor.sharedtransition import android.os.Bundle import androidx.core.view.ViewCompat import android.view.View import android.widget.ImageView import android.widget.TextView import butterknife.BindView import com.esafirm.androidplayground.R import com.esafirm.conductorextra.but...
mit
mcekovic/tennis-crystal-ball
crystal-ball/src/test/kotlin/org/strangeforest/tcb/model/OutcomeCurveIT.kt
1
590
package org.strangeforest.tcb.model import org.junit.jupiter.api.* class OutcomeCurveIT { @Test @Disabled fun testCurve() { println("Point Game TieBreak Set NoTB Set BestOf3 BestOf5 BestOf5TB") var p = 0.25 while (p <= 0.75) { System.out.printf("%1\$f %2\$f %3\$f %4\$f %5\$f %6\$f %7\$f %8\$...
apache-2.0
EvelynSubarrow/Commandspy3
src/main/kotlin/moe/evelyn/commandspy/platform/common/CommonPlugin.kt
1
1102
/* Commandspy - A Minecraft server plugin to facilitate real-time usage of commands, and sign-changes Copyright (C) 2015 Evelyn Snow This program 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...
gpl-3.0
Bugfry/exercism
exercism/kotlin/atbash-cipher/src/main/kotlin/Atbash.kt
2
874
object Atbash { fun encode(text: String): String { return text.filter { it.isLetterOrDigit() } .map { mirror(it.toLowerCase()) } .intersperse(' ', 5) } fun decode(cipher: String): String = cipher.filterNot { it.isWhitespace() } .map { mirror(it) } .joinT...
mit
JetBrains/intellij-community
plugins/kotlin/project-wizard/core/src/org/jetbrains/kotlin/tools/projectWizard/ir/buildsystem/tasks.kt
1
2165
// 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.tools.projectWizard.ir.buildsystem import org.jetbrains.annotations.NonNls import org.jetbrains.kotlin.tools.projectWizard.ir.buil...
apache-2.0
Atsky/haskell-idea-plugin
plugin/src/org/jetbrains/cabal/psi/IncludesField.kt
1
726
package org.jetbrains.cabal.psi import org.jetbrains.cabal.psi.PathsField import org.jetbrains.cabal.psi.MultiValueField import org.jetbrains.cabal.parser.CabalTokelTypes import com.intellij.lang.ASTNode import com.intellij.openapi.vfs.VirtualFile import java.io.File import java.util.ArrayList class IncludesField(nod...
apache-2.0
SimpleMobileTools/Simple-Gallery
app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt
1
12200
package com.simplemobiletools.gallery.pro.activities import android.annotation.TargetApi import android.app.Activity import android.content.Intent import android.net.Uri import android.os.Build import android.os.Bundle import android.provider.MediaStore import androidx.exifinterface.media.ExifInterface import com.simp...
gpl-3.0
apollographql/apollo-android
apollo-api/src/commonTest/kotlin/test/OptionalTest.kt
1
316
package test import com.apollographql.apollo3.api.Optional import kotlin.test.Test import kotlin.test.assertIs class OptionalTest { @Test fun presentIfNotNullTest() { assertIs<Optional.Present<*>>(Optional.presentIfNotNull("some value")) assertIs<Optional.Absent>(Optional.presentIfNotNull(null)) } }
mit
Skatteetaten/boober
src/main/kotlin/no/skatteetaten/aurora/boober/feature/S3StorageGridSpec.kt
1
3522
package no.skatteetaten.aurora.boober.feature import no.skatteetaten.aurora.boober.model.AuroraDeploymentSpec data class S3ObjectArea( val tenant: String, val bucketName: String, val specifiedAreaKey: String, val area: String = specifiedAreaKey ) val AuroraDeploymentSpec.s3ObjectAreas get(): List...
apache-2.0
square/okio
okio/src/linuxX64Main/kotlin/okio/-LinuxX64PosixVariant.kt
1
1590
/* * Copyright (C) 2020 Square, 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 agre...
apache-2.0
allotria/intellij-community
platform/execution-impl/src/com/intellij/execution/wsl/target/wizard/WslTargetLanguageStep.kt
2
3433
// 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.execution.wsl.target.wizard import com.intellij.execution.target.* import com.intellij.ide.IdeBundle import com.intellij.util.ui.JBUI import com.intellij.uti...
apache-2.0
TechBooster/AndroidSamples
AarDemo/library-core/src/main/java/org/techbooster/sample/library_core/LibraryCoreActivity.kt
1
724
package org.techbooster.sample.library_core import android.content.Context import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.support.v7.widget.Toolbar import android.view.View class LibraryCoreActivity : AppCompatActivity() { override fun onCrea...
apache-2.0
allotria/intellij-community
platform/platform-impl/src/com/intellij/ui/colorpicker/ColorPickerBuilder.kt
3
7124
/* * Copyright (C) 2018 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
trevjonez/ktor_playground
src/main/kotlin/com/trevjonez/ktor_playground/people/PersonModule.kt
1
1070
package com.trevjonez.ktor_playground.people import com.trevjonez.ktor_playground.EntityRouter import com.trevjonez.ktor_playground.Validator import dagger.Binds import dagger.Module import dagger.Provides import dagger.multibindings.IntoSet import io.requery.reactivex.KotlinReactiveEntityStore import io.requery.sql.C...
apache-2.0
takke/cpustats
app/src/main/java/jp/takke/cpustats/ConfigActivity.kt
1
473
package jp.takke.cpustats import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class ConfigActivity : AppCompatActivity() { public override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_config) supportF...
apache-2.0
benoitletondor/EasyBudget
Android/EasyBudget/app/src/main/java/com/benoitletondor/easybudgetapp/view/report/MonthlyReportFragment.kt
1
5650
/* * Copyright 2022 Benoit LETONDOR * * 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 la...
apache-2.0
zdary/intellij-community
python/testSrc/com/jetbrains/env/tensorFlow/PyTensorFlowTest.kt
3
6099
// 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.jetbrains.env.tensorFlow import com.intellij.execution.configurations.GeneralCommandLine import com.intellij.execution.process.CapturingProcessHandler import com.inte...
apache-2.0
leafclick/intellij-community
plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/GHLoadingPanel.kt
1
3240
// 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.github.pullrequest.ui import com.intellij.openapi.Disposable import com.intellij.openapi.progress.util.ProgressWindow import com.intellij.ui.SimpleT...
apache-2.0
leafclick/intellij-community
platform/platform-impl/src/com/intellij/openapi/progress/impl/CancellationCheck.kt
1
3006
// 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.progress.impl import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.progress.ProgressManager import com.intellij.openapi.util.Clo...
apache-2.0
windchopper/password-drop
src/main/kotlin/com/github/windchopper/tools/password/drop/ui/MainController.kt
1
14642
@file:Suppress("UNUSED_ANONYMOUS_PARAMETER", "unused") package com.github.windchopper.tools.password.drop.ui import com.github.windchopper.common.fx.cdi.form.Form import com.github.windchopper.tools.password.drop.Application import com.github.windchopper.tools.password.drop.book.* import com.github.windchopper.tools....
apache-2.0
JuliusKunze/kotlin-native
backend.native/tests/external/stdlib/collections/MapTest/sizeAndEmpty.kt
2
139
import kotlin.test.* fun box() { val data = hashMapOf<String, Int>() assertTrue { data.none() } assertEquals(data.size, 0) }
apache-2.0
JuliusKunze/kotlin-native
Interop/Runtime/src/native/kotlin/kotlinx/cinterop/ObjectiveCExportImpl.kt
1
1375
/* * Copyright 2010-2017 JetBrains s.r.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 applicable law or agre...
apache-2.0
Unic8/retroauth
retroauth-android/src/main/java/com/andretietz/retroauth/AccountAuthenticator.kt
1
4350
/* * Copyright (c) 2015 Andre Tietz * * 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
smmribeiro/intellij-community
plugins/kotlin/idea/tests/testData/multiplatform/overrideExpect/jvm/jvm.kt
3
623
actual typealias <!LINE_MARKER("descr='Has declaration in common module'")!>Expect<!> = String interface Derived : Base { override fun <!LINE_MARKER("descr='Overrides function in 'Base''")!>expectInReturnType<!>(): Expect override fun <!LINE_MARKER("descr='Overrides function in 'Base''")!>expectInArgument<!>(...
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/refIndex/tests/testData/compilerIndex/properties/constructorParameter/hierarchy/MainUsage.kt
9
37
fun mainUsage(m: Main) { m.prop }
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/fir-low-level-api/src/org/jetbrains/kotlin/idea/fir/low/level/api/api/LowLevelFirApiFacadeForCompletion.kt
2
6123
/* * 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.fir.low.level.api.api import com.intellij.psi.PsiElement import org.jetbrai...
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/setOf.kt
8
442
// "Replace with assignment (original is empty)" "false" // TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection // ACTION: Change type to mutable // ACTION: Replace overloaded operator with function call // ACTION: Replace with ordinary assignment // WITH_STDLIB fun test(otherList: Se...
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/idea/tests/testData/findUsages/kotlin/findClassUsages/kotlinInterfaceDerivedInterfaces.1.kt
9
196
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtClass // OPTIONS: derivedInterfaces open class B : A() { } open class C : Y { } open class Z : A() { } open class U : Z() { } interface D : Y {}
apache-2.0
smmribeiro/intellij-community
plugins/kotlin/idea/tests/testData/intentions/branched/unfolding/returnToWhen/whenWithBreak.kt
13
169
fun test(b: Boolean): Int { loop@ while (true) { <caret>return when (b) { true -> 1 else -> break@loop } } return 0 }
apache-2.0
smmribeiro/intellij-community
python/src/com/jetbrains/python/codeInsight/testIntegration/PyTestCreationModel.kt
9
4259
// 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.jetbrains.python.codeInsight.testIntegration import com.intellij.openapi.module.ModuleUtil import com.intellij.openapi.roots.ProjectFileIndex import com.intellij.open...
apache-2.0
DroidsOnRoids/DroidsMap
app/src/main/java/pl/droidsonroids/droidsmap/feature/room/api/RoomDataEndpoint.kt
1
367
package pl.droidsonroids.droidsmap.feature.room.api import io.reactivex.Observable import pl.droidsonroids.droidsmap.feature.room.business_logic.RoomEntityHolder interface RoomDataEndpoint { fun getRoomData(): Observable<RoomEntityHolder> companion object { fun create(): RoomDataEndpoint { ...
mit
Flank/flank
test_projects/android/multi-modules/testModule15/src/androidTest/java/com/example/testModule15/ModuleTests2.kt
1
696
package com.example.testModule15 import androidx.test.ext.junit.runners.AndroidJUnit4 import com.example.common.anotherSampleTestMethod import com.example.common.ignoredTest import com.example.common.testSampleMethod import org.junit.Ignore import org.junit.Test import org.junit.runner.RunWith @RunWith(AndroidJUnit4:...
apache-2.0
AndrewJack/gatekeeper
mobile/src/main/java/technology/mainthread/apps/gatekeeper/data/FCMTopics.kt
1
324
package technology.mainthread.apps.gatekeeper.data const val DOOR_OPENED = "door-opened" const val DOOR_CLOSED = "door-closed" const val HANDSET_ACTIVATED = "handset-activated" const val HANDSET_DEACTIVATED = "handset-deactivated" const val PRIMED = "primed" const val UNPRIMED = "unprimed" const val UNLOCKED = "unlock...
apache-2.0
cout970/Modeler
src/main/kotlin/com/cout970/modeler/core/export/project/ProjectLoaderV12.kt
1
13386
package com.cout970.modeler.core.export.project import com.cout970.modeler.api.animation.IAnimation import com.cout970.modeler.api.animation.InterpolationMethod import com.cout970.modeler.api.model.IModel import com.cout970.modeler.api.model.ITransformation import com.cout970.modeler.api.model.`object`.* import com.co...
gpl-3.0
ex3ndr/telegram-tl
Builder/src/org/telegram/tl/builder/JavaBuilder.kt
1
24495
package org.telegram.tl.builder import java.util.ArrayList import java.io.File import java.nio.charset.Charset import java.util.HashMap /** * Created with IntelliJ IDEA. * User: ex3ndr * Date: 23.10.13 * Time: 13:09 */ fun convertToJavaModel(model: TLModel): JavaModel { var javaTypes = HashMap<String, JavaT...
mit
mdaniel/intellij-community
plugins/kotlin/base/analysis-api/analysis-api-utils/src/org/jetbrains/kotlin/idea/base/analysis/api/utils/KtSymbolFromIndexProvider.kt
1
5131
// 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.base.analysis.api.utils import com.intellij.openapi.progress.ProgressManager import com.intellij.openapi.project.Project import com.intellij.psi.PsiClass import com...
apache-2.0
mdaniel/intellij-community
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/testIntegration/KotlinCreateTestIntention.kt
1
10729
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.kotlin.idea.testIntegration import com.intellij.CommonBundle import com.intellij.codeInsight.CodeInsightBundle import com.intellij.codeInsight.FileModificationService import c...
apache-2.0
leafclick/intellij-community
plugins/copyright/testSrc/com/intellij/copyright/CopyrightManagerTest.kt
1
3891
// 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.copyright import com.intellij.configurationStore.schemeManager.SchemeManagerFactoryBase import com.intellij.testFramework.ProjectRule import com.intellij.tes...
apache-2.0
kivensolo/UiUsingListView
database/src/main/java/com/kingz/database/entity/SongEntity.kt
1
349
package com.kingz.database.entity import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey //@Entity(tableName = "songs") @Entity class SongEntity( @PrimaryKey @ColumnInfo(name = "singer") var singer: String = "", @ColumnInfo(name = "release_year") var releaseY...
gpl-2.0
siosio/intellij-community
plugins/kotlin/idea/tests/testData/intentions/convertLambdaToReference/extensionOuterScope.kt
4
189
// IS_APPLICABLE: true // WITH_RUNTIME class Test { fun test() { with(Any()) { val f = { s: String<caret> -> foo(s) } } } } fun Test.foo(s: String) {}
apache-2.0
siosio/intellij-community
plugins/kotlin/idea/tests/testData/indentationOnNewline/LambdaInArguments.after.kt
12
83
fun a() { b({1 <caret>}, {}, {}, ) } // IGNORE_FORMATTER
apache-2.0
siosio/intellij-community
plugins/kotlin/jps/jps-plugin/tests/testData/incremental/pureKotlin/moveFileWithChangingPackage/useClass.kt
5
69
package baz import foo.* import bar.* fun useClass() { Foo() }
apache-2.0
siosio/intellij-community
plugins/kotlin/idea/tests/testData/indentationOnNewline/elvis/AfterElvis.kt
12
116
fun test(some: Any?, error: Int) { val test = some ?:<caret> error } // SET_FALSE: CONTINUATION_INDENT_IN_ELVIS
apache-2.0
siosio/intellij-community
plugins/kotlin/idea/tests/testData/indentationOnNewline/expressionBody/MutableProperty.after.kt
12
95
fun a() { var b = <caret> } // SET_FALSE: CONTINUATION_INDENT_FOR_EXPRESSION_BODIES
apache-2.0
dpisarenko/econsim-tr01
src/main/java/cc/altruix/econsimtr01/Accountant.kt
1
2131
/* * Copyright 2012-2016 Dmitri Pisarenko * * WWW: http://altruix.cc * E-Mail: dp@altruix.co * Skype: dp118m (voice calls must be scheduled in advance) * * Physical address: * * 4-i Rostovskii pereulok 2/1/20 * 119121 Moscow * Russian Federation * * This file is part of econsim-tr01. * * econsim-tr01 is ...
gpl-3.0
siosio/intellij-community
plugins/kotlin/idea/tests/testData/intentions/samConversionToAnonymousObject/funInterface.kt
4
133
fun interface KotlinFace { fun single() } fun useSam(kf: KotlinFace) {} fun callSam() { useSam(kf = <caret>KotlinFace {}) }
apache-2.0
siosio/intellij-community
plugins/kotlin/idea/tests/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/sumOf.kt
3
93
// WITH_RUNTIME fun test(list: List<Int>) { list.<caret>filter { it > 1 }.sumOf { it } }
apache-2.0
sewerk/Bill-Calculator
app/src/main/java/pl/srw/billcalculator/settings/di/SettingsComponent.kt
1
935
package pl.srw.billcalculator.settings.di import dagger.Subcomponent import pl.srw.billcalculator.settings.SettingsActivity import pl.srw.billcalculator.settings.details.SettingsDetailsFragment import pl.srw.billcalculator.settings.details.dialog.InputSettingsDialogFragment import pl.srw.billcalculator.settings.detail...
mit
siosio/intellij-community
platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/ml/SearchEverywhereMlSessionService.kt
1
2637
// 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 com.intellij.ide.actions.searcheverywhere.ml import com.intellij.ide.actions.searcheverywhere.SearchEverywhereFoundElementInfo import com.intellij.ide.a...
apache-2.0
jwren/intellij-community
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/rename/KotlinAutomaticTestRenamerFactory.kt
4
1784
// 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.rename import com.intellij.psi.PsiClass import com.intellij.psi.PsiElement import com.intellij.refactoring.rename...
apache-2.0
vovagrechka/fucking-everything
alraune/alraune/src/main/java/alraune/entity/AdHocServantTypeAndParams.kt
1
761
package alraune.entity import alraune.* import aplight.GelFill import vgrechka.* @GelFill @LightEntity(table = "AdHocServantTypeAndParams") class AdHocServantTypeAndParams : LightEntity0_kotlin() { var uuid by notNull<String>() var servantClass by notNull<String>() @LeJson var params: Any? = null var ...
apache-2.0
ionutlepi/parcers-android
app/src/test/java/com/lepiionut/parcers/ExampleUnitTest.kt
1
346
package com.lepiionut.parcers import org.junit.Test import org.junit.Assert.* /** * Example local unit test, which will execute on the development machine (host). * * See [testing documentation](http://d.android.com/tools/testing). */ class ExampleUnitTest { @Test fun addition_isCorrect() { asser...
gpl-3.0
jwren/intellij-community
plugins/kotlin/gradle/gradle-java/src/org/jetbrains/kotlin/idea/gradleJava/configuration/klib/KotlinNativeLibraryDataService.kt
5
3194
// 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.gradleJava.configuration.klib import com.intellij.openapi.externalSystem.model.DataNode import com.intellij.openapi.externalS...
apache-2.0
jwren/intellij-community
plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/stepping/smartStepInto/OpcodeReportingMethodVisitor.kt
4
2365
// 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.stepping.smartStepInto import org.jetbrains.org.objectweb.asm.Handle import org.jetbrains.org.objectweb.asm.Label imp...
apache-2.0
K0zka/kerub
src/test/kotlin/com/github/kerubistan/kerub/host/servicemanager/rc/RcServiceManagerTest.kt
2
1383
package com.github.kerubistan.kerub.host.servicemanager.rc import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Test class RcServiceManagerTest { @Test fun disable() { assertFalse(RcServiceManager.disable("ctld",""" hostname="freebsd10" ifconfig_re0="DHCP" ifconfig_re0_ipv6="in...
apache-2.0
Kiskae/DiscordKt
api/src/main/kotlin/net/serverpeon/discord/event/MembersLoadedEvent.kt
1
353
package net.serverpeon.discord.event import net.serverpeon.discord.model.ClientModel /** * Fired when all members have been loaded into the model. * * This will always be emitted after [ModelReadyEvent] and will only be delayed if the client is a members of a large * server. */ interface MembersLoadedEvent : Eve...
mit
lytefast/flex-input
flexinput/src/main/java/com/lytefast/flexinput/adapters/AttachmentPreviewAdapter.kt
1
3383
package com.lytefast.flexinput.adapters import android.content.ContentResolver import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.content.res.AppCompatResources import androidx.recyclerview.widget.RecyclerView import com.facebook.drawee.backends.pipeline...
mit
stoyicker/dinger
event-tracker/src/main/kotlin/tracker/EventTrackerImpl.kt
1
460
package tracker import android.content.Context import android.os.Bundle internal sealed class EventTrackerImpl : EventTracker { object Void : EventTrackerImpl() { override fun init(context: Context) = Unit override fun trackRecommendationResponse(data: Bundle) = Unit override fun trackLikeResponse(dat...
mit
androidx/androidx
tv/tv-foundation/src/androidTest/java/androidx/tv/foundation/lazy/list/LazyListTest.kt
3
60617
/* * 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
androidx/androidx
datastore/datastore/src/androidAndroidTest/kotlin/androidx/datastore/DataStoreFileTest.kt
3
1158
/* * 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
nrizzio/Signal-Android
app/src/main/java/org/thoughtcrime/securesms/mediapreview/MediaPreviewV2State.kt
1
554
package org.thoughtcrime.securesms.mediapreview import org.thoughtcrime.securesms.database.MediaDatabase import org.thoughtcrime.securesms.mediasend.Media data class MediaPreviewV2State( val mediaRecords: List<MediaDatabase.MediaRecord> = emptyList(), val loadState: LoadState = LoadState.INIT, val position: Int...
gpl-3.0
androidx/androidx
room/room-compiler/src/main/kotlin/androidx/room/solver/shortcut/binderprovider/GuavaListenableFutureInsertMethodBinderProvider.kt
3
2428
/* * Copyright 2018 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/idea/tests/testData/checker/infos/WrapIntoRef.kt
10
647
// FIR_IDENTICAL fun refs() { var <warning>a</warning> = 1 val <warning>v</warning> = { <info>a</info> = 2 } var <warning>x</warning> = 1 val <warning>b</warning> = object { fun foo() { <info>x</info> = 2 } } var <warning>y</warning> = 1 fun foo() { ...
apache-2.0
GunoH/intellij-community
plugins/kotlin/idea/tests/testData/intentions/removeLabeledReturnInLambda/unit.kt
9
136
// WITH_STDLIB // INTENTION_TEXT: "Remove return@forEach" fun foo() { listOf(1,2,3).forEach { <caret>return@forEach } }
apache-2.0
GunoH/intellij-community
plugins/kotlin/gradle/gradle-java/src/org/jetbrains/kotlin/idea/gradleJava/configuration/kpm/IdeaKpmProjectDeserializerImpl.kt
6
2750
// 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.gradleJava.configuration.kpm import com.intellij.openapi.diagnostic.Logger import org.jetbrains.kotlin.gradle.kpm.idea.IdeaKpmProject import org.jetbrains.kotlin.gr...
apache-2.0
GunoH/intellij-community
platform/platform-impl/src/com/intellij/openapi/ui/validation/requestors.kt
2
2351
// 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.openapi.ui.validation import com.intellij.openapi.editor.event.DocumentEvent import com.intellij.openapi.editor.event.DocumentListener import com.intellij.openapi.observable.pro...
apache-2.0
jwren/intellij-community
plugins/kotlin/completion/tests/testData/handlers/multifile/TopLevelValImportInStringTemplate-1.kt
10
77
// FIR_COMPARISON package some fun other() { val v = "$somePr<caret>" }
apache-2.0
GunoH/intellij-community
plugins/kotlin/idea/tests/testData/inspectionsLocal/convertObjectToDataObject/languageLevelIsTooLow.kt
2
103
// PROBLEM: none // LANGUAGE_VERSION: 1.7 import java.io.Serializable object<caret> Foo : Serializable
apache-2.0