content
stringlengths
0
13M
path
stringlengths
4
263
contentHash
stringlengths
1
10
package com.cognifide.gradle.aem.instance.tasks import com.cognifide.gradle.aem.common.instance.action.AwaitUpAction import com.cognifide.gradle.aem.common.instance.action.ReloadAction import com.cognifide.gradle.aem.common.instance.names import com.cognifide.gradle.aem.common.tasks.Instance import org.gradle.api.task...
src/main/kotlin/com/cognifide/gradle/aem/instance/tasks/InstanceReload.kt
2860077243
/* * * * Apache License * * * * Copyright [2017] Sinyuk * * * * 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 * *...
presentation/src/main/java/com/sinyuk/fanfou/ui/status/StatusView.kt
1441581882
package com.timepath.vfs.provider.jdbc import com.timepath.vfs.MockFile import com.timepath.vfs.SimpleVFile import com.timepath.vfs.provider.ProviderStub import org.jetbrains.annotations.NonNls import java.sql.SQLException import java.text.MessageFormat import java.util.LinkedList import java.util.logging.Level /** ...
src/main/kotlin/com/timepath/vfs/provider/jdbc/JDBCTable.kt
3486848447
/* * Copyright 2017-2022 Adobe. * * 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 ...
integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/CopyObjectV1IT.kt
3285210315
// GENERATED package com.fkorotkov.kubernetes import io.fabric8.kubernetes.api.model.CSIPersistentVolumeSource as model_CSIPersistentVolumeSource import io.fabric8.kubernetes.api.model.CSIVolumeSource as model_CSIVolumeSource import io.fabric8.kubernetes.api.model.LocalObjectReference as model_LocalObjectReference imp...
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/nodePublishSecretRef.kt
1284884984
/* * Copyright 2018 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
vector/src/main/java/im/vector/preference/RoomAvatarPreference.kt
1537895136
package com.mikepenz.materialdrawer.model import android.view.View import android.widget.CompoundButton import android.widget.ToggleButton import androidx.annotation.LayoutRes import com.mikepenz.materialdrawer.R import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener import com.mikepenz.materialdrawer.m...
materialdrawer/src/main/java/com/mikepenz/materialdrawer/model/AbstractToggleableDrawerItem.kt
738839465
/* * 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...
room/compiler/src/test/kotlin/androidx/room/processor/RawQueryMethodProcessorTest.kt
4214973657
package com.ivanovsky.passnotes.presentation.note_editor.view enum class TextInputLines { SINGLE_LINE, MULTIPLE_LINES }
app/src/main/kotlin/com/ivanovsky/passnotes/presentation/note_editor/view/TextInputLines.kt
2602981785
package com.ivanovsky.passnotes.domain.interactor.filepicker import com.ivanovsky.passnotes.data.entity.FileDescriptor import com.ivanovsky.passnotes.data.entity.OperationResult import com.ivanovsky.passnotes.data.repository.file.FileSystemResolver class FilePickerInteractor(private val fileSystemResolver: FileSystem...
app/src/main/kotlin/com/ivanovsky/passnotes/domain/interactor/filepicker/FilePickerInteractor.kt
1170112905
package nl.deltadak.plep.ui.taskcell import javafx.geometry.Pos import javafx.scene.control.CheckBox import javafx.scene.control.ComboBox import javafx.scene.control.Label import javafx.scene.control.TreeItem import javafx.scene.layout.HBox import javafx.scene.layout.Priority import javafx.scene.layout.Region import j...
src/main/kotlin/nl/deltadak/plep/ui/taskcell/TaskLayout.kt
2527412726
package com.orgzly.android.query class QueryTokenizer(val str: String, private val groupOpen: String, private val groupClose: String) { val tokens = tokanize(str) var nextToken = 0 fun hasMoreTokens(): Boolean = nextToken < tokens.size fun nextToken() = tokens[nextToken++] private fun tokanize(...
app/src/main/java/com/orgzly/android/query/QueryTokenizer.kt
1169657403
package com.orgzly.android.ui.drawer import android.content.Intent import android.content.res.Resources import android.view.Menu import androidx.lifecycle.Observer import com.google.android.material.navigation.NavigationView import com.orgzly.BuildConfig import com.orgzly.R import com.orgzly.android.AppIntent import c...
app/src/main/java/com/orgzly/android/ui/drawer/DrawerNavigationView.kt
18121676
package com.piticlistudio.playednext.data.entity.mapper.datasources.image import com.piticlistudio.playednext.data.entity.giantbomb.GiantbombGameImage import com.piticlistudio.playednext.test.factory.DataFactory import com.piticlistudio.playednext.test.factory.GameImageFactory.Factory.makeGiantbombGameImage import org...
app/src/test/java/com/piticlistudio/playednext/data/entity/mapper/datasources/image/GiantbombImageMapperTest.kt
1290271119
package fr.free.nrw.commons import android.content.ContentProviderClient import android.content.Context import android.content.SharedPreferences import android.support.v4.util.LruCache import com.nhaarman.mockito_kotlin.mock import com.squareup.leakcanary.RefWatcher import fr.free.nrw.commons.auth.AccountUtil import f...
app/src/test/kotlin/fr/free/nrw/commons/TestCommonsApplication.kt
2577388714
package io.sonatalang.snc.frontend.domain.token object NewLineToken : BasicToken(false), TokenFactory<NewLineToken> { override fun with(character: Char) = this override fun toString() = "\n" override fun isSuitable(character: Char) = character == '\n' override fun create(character: Char) = NewLineToke...
frontend/src/main/kotlin/io/sonatalang/snc/frontend/domain/token/NewLineToken.kt
3518168341
package com.openconference.sessiondetails.presentationmodel import com.openconference.model.Session import org.threeten.bp.LocalDateTime import org.threeten.bp.ZoneId import org.threeten.bp.format.DateTimeFormatter import org.threeten.bp.format.FormatStyle import java.util.* /** * Responsible to transform a Session ...
app/src/main/java/com/openconference/sessiondetails/presentationmodel/SessionDetailsPresentationModelTransformer.kt
2119214681
/* * 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 ...
javatests/com/google/android/libraries/pcc/chronicle/analysis/impl/AnnotationTest.kt
2846956362
package com.battlelancer.seriesguide.traktapi import android.content.Context import android.os.AsyncTask import android.os.Bundle import androidx.fragment.app.FragmentManager import com.battlelancer.seriesguide.provider.SgRoomDatabase.Companion.getInstance import com.battlelancer.seriesguide.util.TextTools import com....
app/src/main/java/com/battlelancer/seriesguide/traktapi/CheckInDialogFragment.kt
3532064690
package cc.redpen.intellij import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer import com.intellij.icons.AllIcons import com.intellij.ide.DataManager import com.intellij.openapi.actionSystem.* import com.intellij.openapi.actionSystem.LangDataKeys.PSI_FILE import com.intellij.openapi.actionSystem.impl.SimpleDataC...
src/cc/redpen/intellij/StatusWidget.kt
144039327
package net import SearchResponse import com.google.gson.Gson import com.google.gson.GsonBuilder import com.google.gson.reflect.TypeToken import data.Repository import java.io.PrintWriter import java.nio.file.Path class ProjectExtractor(val savePath: Path, val start:String, val end:String) { fun extract(page : In...
src/main/kotlin/net/ProjectExtractor.kt
2034555772
/* * 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...
orca-queue-tck/src/main/kotlin/com/netflix/spinnaker/orca/q/ExecutionLatch.kt
1635152740
/* * 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...
demoProjects/ComposeMail/app/src/main/java/com/example/composemail/ui/utils/ConstraintUtils.kt
2783552708
/* * Copyright 2022 Ren Binden * * 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...
bukkit/rpk-permissions-bukkit/src/main/kotlin/com/rpkit/permissions/bukkit/listener/RPKProfileDeleteListener.kt
468279708
package test.assertk.assertions import assertk.assertThat import assertk.assertions.* import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class MapTest { //region contains @Test fun contains_element_present_passes() { assertThat(mapOf("one" to 1, "two" to 2)).contain...
assertk/src/commonTest/kotlin/test/assertk/assertions/MapTest.kt
1995895183
package test.assertk import assertk.assertAll import assertk.assertThat import assertk.assertions.isEqualTo import assertk.fail import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails import kotlin.test.assertFalse class AssertTest { //region transform @Test fun transform_that_t...
assertk/src/commonTest/kotlin/test/assertk/AssertTest.kt
1905445981
/* * Copyright 2020 Ren Binden * * 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...
bukkit/rpk-permissions-lib-bukkit/src/main/kotlin/com/rpkit/permissions/bukkit/event/group/RPKBukkitGroupUnassignProfileEvent.kt
3524945525
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.model data class ModelCodegenConfigAndroid(val javaPackageName: String?)
packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/model/ModelCodegenConfigAndroid.kt
1921710925
package com.fsck.k9.storage.messages import android.database.Cursor import androidx.core.database.getLongOrNull import com.fsck.k9.Account.FolderMode import com.fsck.k9.helper.map import com.fsck.k9.mail.FolderClass import com.fsck.k9.mail.FolderType import com.fsck.k9.mailstore.FolderDetailsAccessor import com.fsck.k...
app/storage/src/main/java/com/fsck/k9/storage/messages/RetrieveFolderOperations.kt
3583381349
package org.squarecell.wow.addon_support.builders import com.intellij.ide.plugins.PluginManager import com.intellij.ide.util.PropertiesComponent import com.intellij.ide.util.projectWizard.ModuleBuilder import com.intellij.ide.util.projectWizard.ModuleBuilderListener import com.intellij.ide.util.projectWizard.ModuleWiz...
src/org/squarecell/wow/addon_support/builders/AddOnModuleBuilder.kt
1170516204
/* * 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 ...
src/main/javatests/com/google/summit/ast/SourceLocationTest.kt
3711422681
package com.fuyoul.sanwenseller.ui.money import android.content.Context import android.content.Intent import android.graphics.drawable.Drawable import android.os.Bundle import android.support.design.widget.AppBarLayout import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView i...
app/src/main/java/com/fuyoul/sanwenseller/ui/money/SettlementTypeActivity.kt
915715459
package fr.free.nrw.commons.actions import io.reactivex.Observable import io.reactivex.Single import org.wikipedia.dataclient.Service import org.wikipedia.dataclient.mwapi.MwQueryResponse import org.wikipedia.edit.Edit import org.wikipedia.wikidata.Entities import retrofit2.http.* /** * This interface facilitates wi...
app/src/main/java/fr/free/nrw/commons/actions/PageEditInterface.kt
157903978
package com.github.kittinunf.reactiveandroid.support.v4.widget import android.support.v4.widget.SwipeRefreshLayout import com.github.kittinunf.reactiveandroid.MutableProperty import com.github.kittinunf.reactiveandroid.createMainThreadMutableProperty //=================================================================...
reactiveandroid-support-v4/src/main/kotlin/com/github/kittinunf/reactiveandroid/support/v4/widget/SwipeRefreshLayoutProperty.kt
3481789443
/** * Checks chat for user written messages and responds to specific queries * Created by zingmars on 04.10.2015. */ package BotPlugins import Containers.PluginBufferItem public class UserCommands : BasePlugin() { override fun pubInit() :Boolean { return true } override fun connector(buffer ...
src/BotPlugins/UserCommands.kt
1259019030
package org.rust.ide.typing import org.intellij.lang.annotations.Language class RustEnterInStringLiteralHandlerTest : RustTypingTestCaseBase() { override val dataPath = "org/rust/ide/typing/string/fixtures" fun testSimple() = doTest(""" fn main() { let lit = "Hello, /*caret*/World"; ...
src/test/kotlin/org/rust/ide/typing/RustEnterInStringLiteralHandlerTest.kt
2154142024
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
WindowManager/app/src/main/java/com/example/windowmanagersample/embedding/SplitActivityD.kt
1653253238
package org.luxons.sevenwonders.engine.data.definitions import org.luxons.sevenwonders.engine.cards.Requirements import org.luxons.sevenwonders.engine.wonders.Wonder import org.luxons.sevenwonders.engine.wonders.WonderStage import org.luxons.sevenwonders.model.resources.ResourceType import org.luxons.sevenwonders.mode...
sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/data/definitions/WonderDefinition.kt
535388536
package org.rust.lang.core.psi.impl.mixin import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.stubs.IStubElementType import org.rust.lang.core.psi.RustExternCrateItemElement import org.rust.lang.core.psi.impl.RustPsiImplUtil import org.rust.lang.core.psi.impl.RustStubbedNamedEle...
src/main/kotlin/org/rust/lang/core/psi/impl/mixin/RustExternCrateItemImplMixin.kt
4000963059
package net.perfectdreams.loritta.serializable import kotlinx.serialization.Serializable @Serializable class CustomCommand( val label: String, val codeType: CustomCommandCodeType, val code: String )
loritta-serializable-commons/src/commonMain/kotlin/net/perfectdreams/loritta/serializable/CustomCommand.kt
2127709203
package com.jaynewstrom.concrete import android.content.Context import android.content.ContextWrapper import android.view.LayoutInflater internal class ConcreteWallContext<C>( baseContext: Context, private val wall: ConcreteWall<C> ) : ContextWrapper(baseContext) { private var inflater: LayoutInflater? = ...
concrete/src/main/java/com/jaynewstrom/concrete/ConcreteWallContext.kt
230516060
package ir.iais.utilities.javautils.utils import com.fasterxml.jackson.annotation.JsonFormat import com.fasterxml.jackson.annotation.JsonFormat.Shape import com.fasterxml.jackson.annotation.JsonIgnoreProperties import ir.iais.utilities.javautils.enums.IOrdinal /** Created by mgh on 10/15/16. */ @JsonFormat(shape = S...
src/test/java/ir/iais/utilities/javautils/utils/InsuranceType.kt
2016985467
package nuclearbot.gui.components.chat import java.util.* import javax.swing.AbstractListModel import javax.swing.JList /* * Copyright (C) 2017 NuclearCoder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the...
src/nuclearbot/gui/components/chat/LimitedStringList.kt
2193133649
/** * Copyright 2021 Carl-Philipp Harmant * * * 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...
android-app/src/main/kotlin/fr/cph/chicago/core/model/Bus.kt
2928489330
package fr.free.nrw.commons.customselector.helper import android.net.Uri import fr.free.nrw.commons.customselector.model.Folder import fr.free.nrw.commons.customselector.model.Image import org.junit.jupiter.api.Assertions.* import org.junit.jupiter.api.Test import org.mockito.Mockito.mock /** * Custom Selector Imag...
app/src/test/kotlin/fr/free/nrw/commons/customselector/helper/ImageHelperTest.kt
1078509340
package com.christian.nav.me import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.annotation.NonNull import androidx.fragment.app.Fragment import androidx.recyclerview.widget.RecyclerView import com.christian.R import...
app/src/main/java/com/christian/nav/me/HidingGospelFragment.kt
2409808188
package com.bl_lia.kirakiratter.data.repository.datasource.auth import io.reactivex.Single import com.bl_lia.kirakiratter.domain.value_object.AccessToken import com.bl_lia.kirakiratter.domain.value_object.AppCredentials import retrofit2.http.Field import retrofit2.http.FormUrlEncoded import retrofit2.http.POST interf...
app/src/main/kotlin/com/bl_lia/kirakiratter/data/repository/datasource/auth/AuthService.kt
3141182615
package de.markhaehnel.rbtv.rocketbeanstv import androidx.test.InstrumentationRegistry import androidx.test.runner.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith import org.junit.Assert.* /** * Instrumented test, which will execute on an Android device. * * See [testing documentation](http:/...
app/src/androidTest/java/de/markhaehnel/rbtv/rocketbeanstv/ExampleInstrumentedTest.kt
1070440991
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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 appl...
litho-it/src/test/java/com/facebook/litho/DynamicPropsExtensionTest.kt
1533390304
/* * The MIT License (MIT) * * FXGL - JavaFX Game Library * * Copyright (c) 2015-2016 AlmasB (almaslvl@gmail.com) * * 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 restrictio...
OutRun/src/main/kotlin/com/almasb/fxglgames/outrun/PlayerComponent.kt
4219513549
package net.dinkla.raytracer.math import org.junit.jupiter.api.Test import org.junit.jupiter.api.Assertions.assertEquals class PolynomialsTest { @Test @Throws(Exception::class) fun testSolveQuadric() { // A*x^2 + B*x + C = 0 val s1 = doubleArrayOf(-16.0, 0.0, 1.0) val sol = dou...
src/test/kotlin/net/dinkla/raytracer/math/PolynomialsTest.kt
628917214
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
media-data/src/main/java/com/google/android/horologist/media/data/database/model/PlaylistEntity.kt
317901811
package br.com.codeteam.ctanywhere.ext import android.content.Context import android.content.pm.PackageManager import android.graphics.drawable.Drawable import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat /** * ...
app/src/main/java/br/com/codeteam/ctanywhere/ext/ContextExt.kt
2581933500
package com.zhuinden.simplestacktutorials.steps.step_7.features.profile import android.os.Bundle import android.view.View import android.widget.Toast import com.zhuinden.simplestackextensions.fragments.KeyedFragment import com.zhuinden.simplestacktutorials.R class ProfileFragment : KeyedFragment(R.layout.step7_profil...
tutorials/tutorial-sample/src/main/java/com/zhuinden/simplestacktutorials/steps/step_7/features/profile/ProfileFragment.kt
1667724498
package com.eden.orchid.swiftdoc.menu import com.eden.orchid.api.OrchidContext import com.eden.orchid.api.options.annotations.Description import com.eden.orchid.api.options.annotations.Option import com.eden.orchid.api.theme.menus.OrchidMenuFactory import com.eden.orchid.api.theme.menus.MenuItem import com.eden.orchid...
plugins/OrchidSwiftdoc/src/main/kotlin/com/eden/orchid/swiftdoc/menu/SwiftdocMenuItem.kt
3972374132
/* * Copyright 2021 Peter Kenji Yamanaka * * 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...
app/src/main/java/com/pyamsoft/homebutton/main/ToolbarViewState.kt
4141823317
import com.google.gson.JsonElement import com.google.gson.JsonObject import com.google.gson.JsonParser import com.google.gson.JsonPrimitive import javafx.application.Platform import javafx.embed.swing.JFXPanel import javafx.scene.Scene import javafx.scene.web.WebView import javax.swing.* import java.net.URL import java...
src/main/java/App.kt
376006442
/* * Copyright 2020 Andrey Tolpeev * * 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 t...
app/src/main/java/com/github/vase4kin/teamcityapp/favorites/presenter/FavoritesPresenterImpl.kt
4131956778
package haru.worker.domain.model.processor interface TaskProcessingParams { }
haru-worker/src/main/kotlin/haru/worker/domain/model/processor/TaskProcessingParams.kt
1182895094
/* * Copyright © 2013 – 2016 Ricki Hirner (bitfire web engineering). * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html */ package ...
app/src/main/java/com/etesync/syncadapter/log/PlainTextFormatter.kt
922594615
/* * Copyright 2020 Google LLC * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * * 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.apac...
compiler-plugin/src/main/kotlin/com/google/devtools/ksp/symbol/impl/java/KSClassDeclarationJavaImpl.kt
2685645873
/* AndroidSwissKnife Copyright (C) 2016 macleod2486 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, either version 3 of the License, or (at your option) any later version. ...
app/src/main/java/com/macleod2486/androidswissknife/components/Flashlight.kt
3796758285
package wu.seal.jsontokotlin import com.google.gson.Gson import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.PlatformDataKeys import com.intellij.openapi.editor.Caret import com.intellij.openapi.editor.Document import com.int...
src/main/kotlin/wu/seal/jsontokotlin/InsertKotlinClassAction.kt
3278942107
package pl.mg6.likeornot.grid import io.reactivex.Single import io.reactivex.Single.zip import io.reactivex.functions.BiFunction import pl.mg6.likeornot.grid.api.LikableApi import pl.mg6.likeornot.grid.api.LikableFromApi import pl.mg6.likeornot.grid.entity.Likable fun getLikables(api: LikableApi, callLocalLikes: () -...
app/src/main/java/pl/mg6/likeornot/grid/LikableService.kt
377472905
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2011 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the...
benchmark_kotlin_mpp/wip/jzlib/GZIPInputStream.kt
943564780
#!/usr/bin/env kscript /** * Functions for executing shell commands and receiving the result. */ import java.io.BufferedReader import java.io.File import java.io.IOException import java.lang.ProcessBuilder.Redirect import java.util.concurrent.TimeUnit import kotlin.system.exitProcess /** * Executes the receiving s...
mock_generation/ShellAccess.kt
2455664843
package com.openlattice.auditing interface AuditingManager { fun recordEvents(events: List<AuditableEvent>): Int }
src/main/kotlin/com/openlattice/auditing/AuditingManager.kt
3892875868
/* * Copyright 2016 Carlos Ballesteros Velasco * * 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 l...
jtransc-core/src/com/jtransc/ast/dependency/analyzer.kt
3254916352
package com.avast.mff.lecture2 import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith import org.junit.Assert.* /** * Instrumented test, which will execute on an Android device. * * See [testing document...
Lecture 2/Demo-app/app/src/androidTest/java/com/avast/mff/lecture2/ExampleInstrumentedTest.kt
323485882
package org.http4k.contract import com.google.gson.JsonElement import org.http4k.format.Gson class GsonJsonErrorResponseRendererTest : JsonErrorResponseRendererContract<JsonElement>(Gson)
http4k-format/gson/src/test/kotlin/org/http4k/contract/GsonJsonErrorResponseRendererTest.kt
3512230328
package org.ooverkommelig.jvmreflect.retrievabledefinitions import kotlin.reflect.jvm.reflect @Suppress("CAST_NEVER_SUCCEEDS", "UNCHECKED_CAST") fun <T> t() = null as T internal fun <T> (() -> T).asKType() = reflect()?.returnType ?: throw IllegalStateException()
jvm-reflect/src/main/kotlin/org/ooverkommelig/jvmreflect/retrievabledefinitions/ObjectType.kt
4101672172
package com.otaliastudios.cameraview.demo import android.content.Context import android.util.AttributeSet import android.view.View import android.view.ViewGroup import android.widget.LinearLayout import android.widget.TextView class MessageView @JvmOverloads constructor( context: Context, attrs: Attri...
demo/src/main/kotlin/com/otaliastudios/cameraview/demo/MessageView.kt
3573094125
/* * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/web/servlet/springmvc/Customer.kt
3992024585
// 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 import com.intellij.psi.* import com.intellij.psi.scope.PsiScopeProcessor import com.intellij.psi.util.parentOfType import org.j...
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/GrCodeReferenceResolver.kt
2459486897
/* * Copyright (C) 2022 Block, 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 agree...
zipline-cli/src/test/kotlin/app/cash/zipline/cli/GenerateKeyPairTest.kt
2507481480
/*************************************************************************/ /* VkSurfaceView.kt */ /*************************************************************************/ /* This file is part of: */ /* ...
platform/android/java/lib/src/org/godotengine/godot/vulkan/VkSurfaceView.kt
2985180290
/* * Copyright (C) 2022 Block, 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 agree...
zipline-loader/src/commonTest/kotlin/app/cash/zipline/loader/internal/fetcher/HttpFetcherTest.kt
4257887545
import java.security.* // MessageDigest import java.math.* // BigInteger import AocBase /** * AoC2016 Day11a main class. * Run with: * * ``` * run.sh * ``` * * Document with: * `java -jar dokka-fatjar.jar day13a.kt -format html -module "aoc16 day11a" -nodeprecated` */ class Day11a : AocBase() { val maxro...
day11/src_kotlin/Day11a.kt
2556859705
/* * Copyright (C) 2019 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log. * * 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 * ...
ui/src/main/kotlin/tv/dotstart/beacon/ui/repository/model/Service.kt
1760085104
package org.needhamtrack.nytc.database import android.arch.persistence.room.Database import android.arch.persistence.room.RoomDatabase import android.arch.persistence.room.TypeConverters import org.needhamtrack.nytc.models.LongJumpRecord @Database(entities = arrayOf(LongJumpRecord::class), version = 1) @TypeConverter...
app/src/main/kotlin/org/needhamtrack/nytc/database/NytcDatabase.kt
4123119184
package de.christinecoenen.code.zapp.app.mediathek.ui.list.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.paging.LoadState import androidx.paging.LoadStateAdapter import de.christinecoenen.code.zapp.databinding.FragmentMediathekListItemFooterBinding class FooterLoadStateAdapt...
app/src/main/java/de/christinecoenen/code/zapp/app/mediathek/ui/list/adapter/FooterLoadStateAdapter.kt
366690109
package com.infinum.dbinspector.domain.history.interactors import com.infinum.dbinspector.data.Sources import com.infinum.dbinspector.data.models.local.proto.input.HistoryTask import com.infinum.dbinspector.data.models.local.proto.output.HistoryEntity import com.infinum.dbinspector.domain.Interactors internal class R...
dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/history/interactors/RemoveExecutionInteractor.kt
39390320
package de.westnordost.streetcomplete.quests.max_height sealed class MaxHeightAnswer data class MaxHeight(val value: HeightMeasure) : MaxHeightAnswer() data class NoMaxHeightSign(val isTallEnough: Boolean) : MaxHeightAnswer()
app/src/main/java/de/westnordost/streetcomplete/quests/max_height/MaxHeightAnswer.kt
1408904259
/* * Copyright (c) 2017. Toshi Inc * * 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, either version 3 of the License, or * (at your option) any later version. * * This ...
app/src/main/java/com/toshi/model/local/ConversationObservables.kt
4225509898
package ninenine.com.duplicateuser.presenter import ninenine.com.duplicateuser.domain.User import ninenine.com.duplicateuser.initMocks import ninenine.com.duplicateuser.repository.UserRepository import ninenine.com.duplicateuser.view.UserContractView import org.junit.Assert import org.junit.Before import org.junit.Tes...
app/src/test/java/ninenine/com/duplicateuser/presenter/UserPresenterTest.kt
2895579481
package de.westnordost.streetcomplete.quests.railway_crossing import de.westnordost.streetcomplete.quests.AImageListQuestAnswerFragment import de.westnordost.streetcomplete.quests.railway_crossing.RailwayCrossingBarrier.* class AddRailwayCrossingBarrierForm : AImageListQuestAnswerFragment<RailwayCrossingBarrier, Rail...
app/src/main/java/de/westnordost/streetcomplete/quests/railway_crossing/AddRailwayCrossingBarrierForm.kt
501442866
/* * Copyright (C) 2017-2018 Stichting Akvo (Akvo Foundation) * * This file is part of Akvo Flow. * * Akvo Flow 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 of the License, or * (at...
domain/src/main/java/org/akvo/flow/domain/interactor/DownloadDataPoints.kt
1963929426
package kies.prepass.speedtest 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 @Throws(Exception::class) fun addit...
app/src/test/java/kies/prepass/speedtest/ExampleUnitTest.kt
3724027074
/* * Copyright 2017 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 ...
quiz/src/main/java/com/google/samples/apps/topeka/widget/quiz/FillTwoBlanksQuizView.kt
590224293
package br.com.insanitech.spritekit.easing object Quint { fun easeIn(t: Float, b: Float, c: Float, d: Float): Float { var t = t val tLambda = { a: Float -> Float t = a t } return c * (tLambda(t / d)) * t * t * t * t + b } fun easeOut(t:...
SpriteKitLib/src/main/java/br/com/insanitech/spritekit/easing/Quint.kt
437631870
/* * Lantern * * Copyright (c) LanternPowered <https://www.lanternpowered.org> * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * This work is licensed under the terms of the MIT License (MIT). For * a copy, see 'LICENSE.txt' or <https://opensource.org/licenses/MIT>. ...
src/main/kotlin/org/lanternpowered/server/network/vanilla/command/argument/ArgumentTypes.kt
3387424621
/* * Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.serialization.json import kotlinx.serialization.* import kotlin.test.Test import kotlin.test.assertEquals class JsonUnionEnumTest : JsonTestBase() { enum class SomeEnum { ALPHA, BETA, GA...
formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonUnionEnumTest.kt
3030863968
/* * Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.serialization.protobuf import kotlinx.serialization.* import kotlin.test.* /* * TODO improve these tests: * * All primitive types * * All nullable types * * Built-in types (TBD) * * P...
formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/ProtobufPrimitiveWrappersTest.kt
1238309850
package com.github.k0kubun.gitstar_ranking.db import com.github.k0kubun.gitstar_ranking.core.StarsCursor import com.github.k0kubun.gitstar_ranking.core.User import org.jooq.DSLContext private const val PAGE_SIZE = 5000 // This class does cursor-based-pagination for users order by stargazers_count DESC. class Paginat...
worker/src/main/kotlin/com/github/k0kubun/gitstar_ranking/db/PaginatedUsers.kt
1774135257
/* * Copyright (c) 2016. Sunghyouk Bae <sunghyouk.bae@gmail.com> * 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...
debop4k-timeperiod/src/main/kotlin/debop4k/timeperiod/timeranges/HourRangeCollection.kt
69640220
package com.jaredsburrows.license import org.gradle.api.Plugin import org.gradle.api.Project /** A [Plugin] which grabs the POM.xml files from maven dependencies. */ class LicensePlugin : Plugin<Project> { override fun apply(project: Project) { project.extensions.add("licenseReport", LicenseReportExtension::cla...
gradle-license-plugin/src/main/kotlin/com/jaredsburrows/license/LicensePlugin.kt
31683484
package fr.geobert.radis.tools import android.app.Activity import android.os.Handler import android.os.Message import java.util.* /** * Message Handler class that supports buffering up of messages when the activity is paused i.e. in the background. */ public abstract class PauseHandler : Handler() { /** *...
app/src/main/kotlin/fr/geobert/radis/tools/PauseHandler.kt
3879967102
package se.ntlv.basiclauncher.image
app/src/main/java/se/ntlv/basiclauncher/image/MemoryLruCache.kt
1019016421
package io.github.areguig.sauron import org.junit.Test import org.junit.runner.RunWith import org.springframework.boot.test.context.SpringBootTest import org.springframework.test.context.junit4.SpringRunner @RunWith(SpringRunner::class) @SpringBootTest class SauronApplicationTests { @Test fun contextLoads() { } ...
src/test/kotlin/io/github/areguig/sauron/SauronApplicationTests.kt
200222753
package io.gitlab.arturbosch.detekt.api import org.jetbrains.kotlin.com.intellij.psi.PsiElement import org.jetbrains.kotlin.psi.KtElement /** * Stores information about a specific code fragment. * * @author Artur Bosch */ data class Entity(val name: String, val className: String, val signature: String...
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/Entity.kt
132429696