commit
stringlengths
40
40
subject
stringlengths
4
1.73k
repos
stringlengths
5
127k
old_file
stringlengths
2
751
new_file
stringlengths
2
751
new_contents
stringlengths
1
8.98k
old_contents
stringlengths
0
6.59k
license
stringclasses
13 values
lang
stringclasses
23 values
7e922baa4ae5541f90bac5214110bb77d305d51f
Make runtime-api-info project depend on dependency constraints
blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,blindpirat...
subprojects/runtime-api-info/runtime-api-info.gradle.kts
subprojects/runtime-api-info/runtime-api-info.gradle.kts
/* * Copyright 2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
3893c15c19825f72a14b2f4bb0d21334e9e924c5
Update QuestionnaireListAdapter.kt to follow camel case notation
google/android-fhir,google/android-fhir
datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/QuestionnaireListAdapter.kt
datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/QuestionnaireListAdapter.kt
/* * Copyright 2020 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...
/* * Copyright 2020 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
Kotlin
de923bb6a247de18615fa67e6e5ae6b9c2fefbc7
Fix after library update
StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android
app/src/main/java/org/stepik/android/view/injection/learning_actions/LearningActionsPresentationModule.kt
app/src/main/java/org/stepik/android/view/injection/learning_actions/LearningActionsPresentationModule.kt
package org.stepik.android.view.injection.learning_actions import androidx.lifecycle.ViewModel import dagger.Module import dagger.Provides import dagger.multibindings.IntoMap import org.stepik.android.presentation.base.injection.ViewModelKey import org.stepik.android.presentation.learning_actions.LearningActionsFeatur...
package org.stepik.android.view.injection.learning_actions import androidx.lifecycle.ViewModel import dagger.Module import dagger.Provides import dagger.multibindings.IntoMap import org.stepik.android.presentation.base.injection.ViewModelKey import org.stepik.android.presentation.learning_actions.LearningActionsFeatur...
apache-2.0
Kotlin
a6bba10c2db466e626a1bd2e99bd6bdf4e24190c
Add toString example
aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api
code-sample-kotlin/code-sample-kotlin-basics/src/main/kotlin/codesample/kotlin/sandbox/classes/Classes.kt
code-sample-kotlin/code-sample-kotlin-basics/src/main/kotlin/codesample/kotlin/sandbox/classes/Classes.kt
package codesample.kotlin.sandbox.classes typealias StringSet = Set<String> fun printSetOfString(setOfStrings: Set<String>) { setOfStrings.forEach { println(it) } } /** Everything is Kotlin is final by default, so we have to declare class as open for inheritance */ open class TheSuper(val name: String) { co...
package codesample.kotlin.sandbox.classes typealias StringSet = Set<String> fun printSetOfString(setOfStrings: Set<String>) { setOfStrings.forEach { println(it) } } /** Everything is Kotlin is final by default, so we have to declare class as open for inheritance */ open class TheSuper(val name: String) { co...
mit
Kotlin
e72c7d6cb7257d8e62cdf709078201ef73376f97
Convert EditorDataContext to kotlin
JetBrains/ideavim,JetBrains/ideavim
src/com/maddyhome/idea/vim/helper/EditorDataContext.kt
src/com/maddyhome/idea/vim/helper/EditorDataContext.kt
/* * IdeaVim - Vim emulator for IDEs based on the IntelliJ platform * Copyright (C) 2003-2020 The IdeaVim authors * * 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 2 of the ...
/* * IdeaVim - Vim emulator for IDEs based on the IntelliJ platform * Copyright (C) 2003-2020 The IdeaVim authors * * 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 2 of the ...
mit
Kotlin
30caa6cd12c27b153506a6ae414d35a6313ebdcc
Optimize getting a color by an index
devromik/black-and-white
sources/src/main/kotlin/net/devromik/bw/Color.kt
sources/src/main/kotlin/net/devromik/bw/Color.kt
package net.devromik.bw import net.devromik.bw.Color.* /** * @author Shulnyaev Roman */ enum class Color(val index: Int) { BLACK(0), WHITE(1), GRAY(2); } val COLOR_COUNT = values().size fun colorByIndex(index: Int) = when (index) { BLACK.index -> BLACK WHITE.index -> WHITE ...
package net.devromik.bw import net.devromik.bw.Color.values /** * @author Shulnyaev Roman */ enum class Color(val index: Int) { BLACK(0), WHITE(1), GRAY(2); } val COLOR_COUNT = values().size fun colorByIndex(index: Int) = Color.values().firstOrNull { it.index == index }
mit
Kotlin
c6ec43d40e63076a9bf6e28b0c0f3f539465a38f
add a TextInputLayout binding adapter for hint colors
CruGlobal/android-gto-support,GlobalTechnology/android-gto-support,CruGlobal/android-gto-support
gto-support-material-components/src/main/java/org/ccci/gto/android/common/material/textfield/databinding/TextInputLayoutBindingAdapter.kt
gto-support-material-components/src/main/java/org/ccci/gto/android/common/material/textfield/databinding/TextInputLayoutBindingAdapter.kt
@file:BindingMethods( BindingMethod( type = TextInputLayout::class, attribute = ANDROID_TEXT_COLOR_HINT, method = "setDefaultHintTextColor" ) ) package org.ccci.gto.android.common.material.textfield.databinding import android.content.res.ColorStateList import androidx.databinding.Bindi...
mit
Kotlin
20df724e1d905d1834e54958115b80565ae618c1
Fix h2-console being blocked by spring-security
aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api
code-sample-angular-kotlin/code-sample-jwt-token-example/kotlin-backend/src/main/kotlin/codesample/kotlin/jwtexample/security/config/SecurityConfig.kt
code-sample-angular-kotlin/code-sample-jwt-token-example/kotlin-backend/src/main/kotlin/codesample/kotlin/jwtexample/security/config/SecurityConfig.kt
package codesample.kotlin.jwtexample.security.config import codesample.kotlin.jwtexample.security.AuthExceptionsEntry import org.springframework.context.annotation.Configuration import org.springframework.security.config.annotation.web.builders.HttpSecurity import org.springframework.security.config.annotation.web.bui...
package codesample.kotlin.jwtexample.security.config import codesample.kotlin.jwtexample.security.AuthExceptionsEntry import org.springframework.context.annotation.Configuration import org.springframework.security.config.annotation.web.builders.HttpSecurity import org.springframework.security.config.annotation.web.con...
mit
Kotlin
545ba24370c8b3eedd365c4d0da84ea1819f374e
Define map method for nullable-type
kmizu/kotbinator
src/main/kotlin/com/github/kmizu/kotbinator/Control.kt
src/main/kotlin/com/github/kmizu/kotbinator/Control.kt
package com.github.kmizu.kotbinator inline fun <T> block(body: () -> T): T { return body() } inline fun <T, U> T?.map(f: (T) -> U): U? = block { when(this) { null -> null else -> f(this) } } fun foo() { val x: String? = "FOO" val y: Int? = x.map { x -> 1 } }
package com.github.kmizu.kotbinator inline fun <T> block(body: () -> T): T { return body() }
mit
Kotlin
6611b07814510319c37c244348ee2c647b1679d2
Remove redundant import
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
tests/buildSrc/src/main/kotlin/pmd-settings.gradle.kts
tests/buildSrc/src/main/kotlin/pmd-settings.gradle.kts
/* * Copyright 2021, 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...
/* * Copyright 2021, 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
Kotlin
d3f2ead6c8b329cf658de302d7209bde77f32cf3
Add helper method `Resource.Companion.fromTestData()`
chimbori/crux,chimbori/crux
src/test/kotlin/com/chimbori/crux/common/TestHelper.kt
src/test/kotlin/com/chimbori/crux/common/TestHelper.kt
package com.chimbori.crux.common import com.chimbori.crux.Resource import com.chimbori.crux.articles.Article import com.chimbori.crux.articles.ArticleExtractor import java.io.File import java.io.FileNotFoundException import java.nio.charset.Charset import okhttp3.HttpUrl import okhttp3.HttpUrl.Companion.toHttpUrl impo...
package com.chimbori.crux.common import com.chimbori.crux.articles.Article import com.chimbori.crux.articles.ArticleExtractor import java.io.File import java.io.FileNotFoundException import java.nio.charset.Charset import okhttp3.HttpUrl import okhttp3.HttpUrl.Companion.toHttpUrl import org.junit.Assert.fail internal...
apache-2.0
Kotlin
c648251644d9b10687204a9d2d9406f94bb81d43
add versions plugin to buildSrc
chrimaeon/app-rater,chrimaeon/app-rater
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
/* * Copyright (c) 2019. Christian Grach <christian.grach@cmgapps.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 ...
/* * Copyright (c) 2019. Christian Grach <christian.grach@cmgapps.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 ...
apache-2.0
Kotlin
b1b8820fc1a7e849bd315f7505361b6ef42f3cdb
Call build types on subprojects instead of using specific tasks
robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,r...
.teamcity/Gradle_Check/configurations/FunctionalTest.kt
.teamcity/Gradle_Check/configurations/FunctionalTest.kt
package configurations import jetbrains.buildServer.configs.kotlin.v10.BuildType import model.CIBuildModel import model.OS import model.TestCoverage import model.TestType class FunctionalTest(model: CIBuildModel, testCoverage : TestCoverage, subProject: String = "") : BuildType({ uuid = testCoverage.asConfigurati...
package configurations import jetbrains.buildServer.configs.kotlin.v10.BuildType import model.CIBuildModel import model.OS import model.TestCoverage import model.TestType class FunctionalTest(model: CIBuildModel, testCoverage : TestCoverage, subProject: String = "") : BuildType({ uuid = testCoverage.asConfigurati...
apache-2.0
Kotlin
e3a6d6d0e1b103d28676f7213e72f23701f465a3
refactor #442 Modify parameter to nullable.
toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/main/StartUp.kt
app/src/main/java/jp/toastkid/yobidashi/main/StartUp.kt
package jp.toastkid.yobidashi.main import androidx.annotation.IdRes import androidx.annotation.StringRes import jp.toastkid.yobidashi.R /** * Start-up view definition. * * @param titleId * @param radioButtonId * * @author toastkidjp */ enum class StartUp(@StringRes val titleId: Int, @IdRes val radioButtonId: I...
package jp.toastkid.yobidashi.main import androidx.annotation.IdRes import androidx.annotation.StringRes import jp.toastkid.yobidashi.R /** * Start-up view definition. * * @param titleId * @param radioButtonId * * @author toastkidjp */ enum class StartUp(@StringRes val titleId: Int, @IdRes val radioButtonId: I...
epl-1.0
Kotlin
29c831d2b95444911bef0b146787587d64957607
Simplify Maven publishing configuration
gwtproject/gwt-history,gwtproject/gwt-history,gwtproject/gwt-history
buildSrc/src/main/kotlin/local/maven-publish.gradle.kts
buildSrc/src/main/kotlin/local/maven-publish.gradle.kts
package local plugins { `java-base` `maven-publish` signing } java { withJavadocJar() withSourcesJar() } val sonatypeRepository = publishing.repositories.maven { name = "sonatype" setUrl( provider { if (isSnapshot) { uri("https://oss.sonatype.org/conten...
package local plugins { java `maven-publish` signing } val javadoc by tasks val javadocJar by tasks.registering(Jar::class) { archiveClassifier.set("javadoc") from(javadoc) } val sourcesJar by tasks.registering(Jar::class) { archiveClassifier.set("sources") from(sourceSets.main.map { it.a...
apache-2.0
Kotlin
b060fa3e9fe88452f8d7682910a8fb0669c16f82
Bump h2 in /example/configure_toolchain_kotlin_dsl
etiennestuder/gradle-jooq-plugin,etiennestuder/gradle-jooq-plugin
example/configure_toolchain_kotlin_dsl/build.gradle.kts
example/configure_toolchain_kotlin_dsl/build.gradle.kts
plugins { id("nu.studer.jooq") version "7.1.1" id("java") } repositories { mavenCentral() } dependencies { jooqGenerator("com.h2database:h2:2.1.212") } jooq { configurations { create("main") { jooqConfiguration.apply { logging = org.jooq.meta.jaxb.Logging.WARN ...
plugins { id("nu.studer.jooq") version "7.1.1" id("java") } repositories { mavenCentral() } dependencies { jooqGenerator("com.h2database:h2:2.1.210") } jooq { configurations { create("main") { jooqConfiguration.apply { logging = org.jooq.meta.jaxb.Logging.WARN ...
apache-2.0
Kotlin
9820e3b63a6342648e12b5bb2e1dabebfba3f1f9
Solve problem 2248
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2248.kt
src/main/kotlin/leetcode/Problem2248.kt
package leetcode /** * https://leetcode.com/problems/intersection-of-multiple-arrays/ */ class Problem2248 { fun intersection(nums: Array<IntArray>): List<Int> { var intersection = setOf<Int>() for (num in nums) { val set = num.toSet() intersection = if (intersection.isEmp...
mit
Kotlin
6609062587c456ad89c46978f5209c039a552beb
Solve problem 2285
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2285.kt
src/main/kotlin/leetcode/Problem2285.kt
package leetcode /** * https://leetcode.com/problems/maximum-total-importance-of-roads/ */ class Problem2285 { fun maximumImportance(n: Int, roads: Array<IntArray>): Long { val roadToCount = mutableMapOf<Int, Int>() for ((a, b) in roads) { roadToCount[a] = (roadToCount[a] ?: 0) + 1 ...
package leetcode /** * https://leetcode.com/problems/maximum-total-importance-of-roads/ */ class Problem2285 { fun maximumImportance(n: Int, roads: Array<IntArray>): Long { TODO() } } fun main() { val prob = Problem2285() println(prob.maximumImportance(5, arrayOf( intArrayOf(0,1), in...
mit
Kotlin
d3731c9f3542fef4a74100cfcf7de3cd5b4d54d7
Add person images to export script
allen-garvey/photog-spark,allen-garvey/photog-spark,allen-garvey/photog-spark
src/main/kotlin/main/export.kt
src/main/kotlin/main/export.kt
package main import controllers.SqliteController import java.sql.Timestamp fun sqlEscapeOptionalString(s: String?): String{ if(s == null){ return "null" } return sqlEscapeString(s) } fun sqlEscapeString(s: String): String{ return "'${s.replace("'", "''")}'" } fun sqlOptionalInt(d: Int?): St...
package main import controllers.SqliteController import java.sql.Timestamp fun sqlEscapeOptionalString(s: String?): String{ if(s == null){ return "null" } return sqlEscapeString(s) } fun sqlEscapeString(s: String): String{ return "'${s.replace("'", "''")}'" } fun sqlOptionalInt(d: Int?): St...
mit
Kotlin
b0f4b7f74c0e794e9a6baef6a0b588f7be2768df
Bump the number of clients
EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse
src/test/kotlin/enmasse/smoketest/NoStoreBroadcastTest.kt
src/test/kotlin/enmasse/smoketest/NoStoreBroadcastTest.kt
package enmasse.smoketest import org.junit.Assert.* import org.junit.Test import java.util.concurrent.Executors import java.util.concurrent.TimeUnit /** * @author Ulf Lilleengen */ class NoStoreBroadcastTest { @Test fun testMultipleRecievers() { val dest = "broadcast" val client = EnMasseCli...
package enmasse.smoketest import org.junit.Assert.* import org.junit.Test import java.util.concurrent.Executors import java.util.concurrent.TimeUnit /** * @author Ulf Lilleengen */ class NoStoreBroadcastTest { @Test fun testMultipleRecievers() { val dest = "broadcast" val client = EnMasseCli...
apache-2.0
Kotlin
438bcae5aa4d322ba6439ec00889f2d2f1f84a78
Remove println
cbeust/klaxon,cbeust/klaxon,cbeust/klaxon
klaxon/src/test/kotlin/com/beust/klaxon/Issue198Test.kt
klaxon/src/test/kotlin/com/beust/klaxon/Issue198Test.kt
package com.beust.klaxon import org.testng.annotations.Test data class MeasurementConditionDouble(val name: String, val min: Double, val max: Double) data class MeasurementConditionFloat(val name: String, val min: Float, val max: Float) val measurementConditionDouble = MeasurementConditionDouble("foo", 1.0,2.0) val ...
package com.beust.klaxon import org.testng.annotations.Test data class MeasurementConditionDouble(val name: String, val min: Double, val max: Double) data class MeasurementConditionFloat(val name: String, val min: Float, val max: Float) val measurementConditionDouble = MeasurementConditionDouble("foo", 1.0,2.0) val ...
apache-2.0
Kotlin
031fa4058d41af98fe74774a65f219a4250c756c
Revert "Disable archetecture-test:test on Java 19"
gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle
subprojects/architecture-test/build.gradle.kts
subprojects/architecture-test/build.gradle.kts
plugins { id("gradlebuild.internal.java") id("gradlebuild.binary-compatibility") } description = """Verifies that Gradle code complies with architectural rules. | For example that nullable annotations are used consistently or that or that public api classes do not extend internal types. """.trimMargin() d...
import gradlebuild.basics.testJavaVersion plugins { id("gradlebuild.internal.java") id("gradlebuild.binary-compatibility") } description = """Verifies that Gradle code complies with architectural rules. | For example that nullable annotations are used consistently or that or that public api classes do not...
apache-2.0
Kotlin
757c8874747ade5717fb1a92aaaf931dab459dd9
Make Context private
tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin
src/main/java/io/javalin/http/util/RateLimitUtil.kt
src/main/java/io/javalin/http/util/RateLimitUtil.kt
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.http.util import io.javalin.http.Context import io.javalin.http.HttpResponseException import java.util.concurrent.ConcurrentHashMap import java.util....
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.http.util import io.javalin.http.Context import io.javalin.http.HttpResponseException import java.util.concurrent.ConcurrentHashMap import java.util....
apache-2.0
Kotlin
f64439dab910fed79caa0650fd84ebc244758bd8
Remove unused function
JetBrains/ideavim,JetBrains/ideavim
src/com/maddyhome/idea/vim/command/MappingState.kt
src/com/maddyhome/idea/vim/command/MappingState.kt
/* * IdeaVim - Vim emulator for IDEs based on the IntelliJ platform * Copyright (C) 2003-2021 The IdeaVim authors * * 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 2 of the ...
/* * IdeaVim - Vim emulator for IDEs based on the IntelliJ platform * Copyright (C) 2003-2021 The IdeaVim authors * * 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 2 of the ...
mit
Kotlin
ff52a0049b2b38ed8f89dbfc84b8b3fa3f3831b3
add cry command
noud02/Akatsuki
src/main/kotlin/me/noud02/akatsuki/commands/Cry.kt
src/main/kotlin/me/noud02/akatsuki/commands/Cry.kt
/* * Copyright (c) 2017 Noud Kerver * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge...
mit
Kotlin
55f393f21ac831e58081c7d851315784403f7abc
Fix versions
Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2
buildSrc/src/main/kotlin/dependencies/Versions.kt
buildSrc/src/main/kotlin/dependencies/Versions.kt
package dependencies object Versions { const val COROUTINES = "1.6.0" const val COMPOSE = "1.1.1" const val MATERIAL = "1.5.0" const val ACCOMPANIST = "0.23.1" object AndroidX { const val ANNOTATIONS = "1.3.0" const val APPCOMPAT = "1.4.1" const val RECYCLER_VIEW = "1.2.1" ...
package dependencies object Versions { const val COROUTINES = "1.6.0" const val COMPOSE = "1.1.1" const val MATERIAL = "1.5.0" const val ACCOMPANIST = "0.23.1" object AndroidX { const val ANNOTATIONS = "1.3.0" const val APPCOMPAT = "1.4.1" const val RECYCLER_VIEW = "1.2.1" ...
mit
Kotlin
7bb264ad5d92dc054cc11d91228328bc1f8a69b1
Remove 2022 talks load
mixitconf/mixit,mixitconf/mixit,mixitconf/mixit,mixitconf/mixit
src/main/kotlin/mixit/talk/repository/TalkRepository.kt
src/main/kotlin/mixit/talk/repository/TalkRepository.kt
package mixit.talk.repository import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.readValue import mixit.talk.model.Talk import org.slf4j.LoggerFactory import org.springframework.core.io.ClassPathResource import org.springframework.data.domain.Sort.Direction.ASC import org.spr...
package mixit.talk.repository import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.readValue import mixit.talk.model.Talk import org.slf4j.LoggerFactory import org.springframework.core.io.ClassPathResource import org.springframework.data.domain.Sort.Direction.ASC import org.spr...
apache-2.0
Kotlin
53f4be23390d1c7f4acaebb736bedcca11b011fa
Apply background from prefs on app start
adry84/simplelauncher
app/src/main/java/adrygraph/simplelauncher/MainActivity.kt
app/src/main/java/adrygraph/simplelauncher/MainActivity.kt
package adrygraph.simplelauncher import adrygraph.simplelauncher.settings.ui.ColorPickerDialog import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.view.ViewGroup class MainActivity : AppCompatActivity(), ColorPickerDialog.OnColorChangedListener { private var mRootView : Vie...
package adrygraph.simplelauncher import adrygraph.simplelauncher.settings.ui.ColorPickerDialog import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.view.ViewGroup class MainActivity : AppCompatActivity(), ColorPickerDialog.OnColorChangedListener { private var mRootView : Vie...
apache-2.0
Kotlin
4cc92a931f4c97face13ec39e94db62453750c39
Bump version to 2.2
helloworld1/FreeOTPPlus,helloworld1/FreeOTPPlus,helloworld1/FreeOTPPlus
app/build.gradle.kts
app/build.gradle.kts
import org.jetbrains.kotlin.config.KotlinCompilerVersion plugins { id("com.android.application") kotlin("android") kotlin("android.extensions") kotlin("kapt") } android { compileSdkVersion(29) defaultConfig { versionCode = 13 versionName = "2.2" minSdkVersion(21) ...
import org.jetbrains.kotlin.config.KotlinCompilerVersion plugins { id("com.android.application") kotlin("android") kotlin("android.extensions") kotlin("kapt") } android { compileSdkVersion(29) defaultConfig { versionCode = 12 versionName = "2.1" minSdkVersion(21) ...
apache-2.0
Kotlin
899f07d3e2d946332fed9624e8c89987a4cae0d5
Reduce visibilities in ChromaDialog
ItsPriyesh/chroma,ItsPriyesh/chroma
chroma/src/main/kotlin/me/priyesh/chroma/ChromaDialog.kt
chroma/src/main/kotlin/me/priyesh/chroma/ChromaDialog.kt
/* * Copyright 2016 Priyesh Patel * * 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...
/* * Copyright 2016 Priyesh Patel * * 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...
apache-2.0
Kotlin
87002752b61e473d0eeb3696320ea3d86777905f
Make request content non-interceptable.
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-core/src/org/jetbrains/ktor/content/RequestContent.kt
ktor-core/src/org/jetbrains/ktor/content/RequestContent.kt
package org.jetbrains.ktor.content import org.jetbrains.ktor.application.* import org.jetbrains.ktor.http.* import java.io.* import kotlin.reflect.* abstract class RequestContent(private val request: ApplicationRequest) { protected abstract fun getInputStream(): InputStream protected abstract fun getMultiPart...
package org.jetbrains.ktor.content import org.jetbrains.ktor.application.* import org.jetbrains.ktor.http.* import org.jetbrains.ktor.interception.* import java.io.* import kotlin.reflect.* public abstract class RequestContent(private val request: ApplicationRequest) { private val contentsChain = Interceptable1<K...
apache-2.0
Kotlin
2d3a7dd4866ee1c1878d25eb92d1c9878eb478be
Rename clip property for consistency with other "clip" properties
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
models/src/main/java/com/vimeo/networking2/Notification.kt
models/src/main/java/com/vimeo/networking2/Notification.kt
@file:JvmName("NotificationUtils") package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import com.vimeo.networking2.enums.NotificationType import com.vimeo.networking2.enums.asEnum import java.util.* /** * Notification data. */ @JsonClass(generateAdapter = true) data cl...
@file:JvmName("NotificationUtils") package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import com.vimeo.networking2.enums.NotificationType import com.vimeo.networking2.enums.asEnum import java.util.* /** * Notification data. */ @JsonClass(generateAdapter = true) data cl...
mit
Kotlin
2701e56cf5a69346ae8f4e9c5683106e97661c86
Bump io.freefair.maven-central.validate-poms from 6.4.0 to 6.4.1
docker-client/docker-engine,docker-client/docker-engine,docker-client/docker-engine
build.gradle.kts
build.gradle.kts
import java.text.SimpleDateFormat import java.util.* rootProject.extra.set("artifactVersion", SimpleDateFormat("yyyy-MM-dd\'T\'HH-mm-ss").format(Date())) plugins { id("maven-publish") id("com.github.ben-manes.versions") version "0.42.0" id("net.ossindex.audit") version "0.4.11" id("io.freefair.maven-central.v...
import java.text.SimpleDateFormat import java.util.* rootProject.extra.set("artifactVersion", SimpleDateFormat("yyyy-MM-dd\'T\'HH-mm-ss").format(Date())) plugins { id("maven-publish") id("com.github.ben-manes.versions") version "0.42.0" id("net.ossindex.audit") version "0.4.11" id("io.freefair.maven-central.v...
mit
Kotlin
86a6678d8e51dccd04b89e93db9d10ea4ecdb955
downgrade to 212
adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin,adelf/idea-php-dotenv-plugin
build.gradle.kts
build.gradle.kts
plugins { id("org.jetbrains.intellij") version "1.2.0" } group = "ru.adelf" version = "2021.4" repositories { mavenCentral() } apply { plugin("idea") plugin("org.jetbrains.intellij") plugin("java") } java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VE...
plugins { id("org.jetbrains.intellij") version "1.2.0" } group = "ru.adelf" version = "2021.4" repositories { mavenCentral() } apply { plugin("idea") plugin("org.jetbrains.intellij") plugin("java") } java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VE...
mit
Kotlin
161daa50ca012a8981dbf613f28bec14c298ee6c
Update `org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2` to `1.6.4`
chimbori/crux,chimbori/crux
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.7.20" id("com.vanniktech.maven.publish") version "0.21.0" id("com.github.ben-manes.versions") version "0.42.0" } repositories { mavenCentral() } buildscript ...
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.7.20" id("com.vanniktech.maven.publish") version "0.21.0" id("com.github.ben-manes.versions") version "0.42.0" } repositories { mavenCentral() } buildscript ...
apache-2.0
Kotlin
70b5a8622aeeefd2a48ed644f070d649be5907d8
Update plugin org.jetbrains.intellij to v1.9.0 (#456)
Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { // Java support id("java") // Kotlin support id("org.jetbrains.kotlin.jvm") version "1.7.10" // gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin id("org.jetbrains.intellij") version "1.9.0" }...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { // Java support id("java") // Kotlin support id("org.jetbrains.kotlin.jvm") version "1.7.10" // gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin id("org.jetbrains.intellij") version "1.8.1" }...
apache-2.0
Kotlin
03a77328c9d8ef34cc16f534837d03f752df0d96
upgrade kotlin - 1.6.10
mvmike/min-cal-widget
build.gradle.kts
build.gradle.kts
buildscript { //https://kotlinlang.org/releases.html val kotlinVersion by extra { "1.6.10" } dependencies { //https://developer.android.com/studio/releases/gradle-plugin classpath("com.android.tools.build:gradle:7.0.4") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVe...
buildscript { //https://kotlinlang.org/releases.html val kotlinVersion by extra { "1.6.0" } dependencies { //https://developer.android.com/studio/releases/gradle-plugin classpath("com.android.tools.build:gradle:7.0.4") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVer...
bsd-3-clause
Kotlin
00ae9096a255cce565c08163f8d67cebce5803bc
Upgrade plugin-publish plugin to 0.14.0
unbroken-dome/gradle-testsets-plugin
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") `java-gradle-plugin` id("com.gradle.plugin-publish") version "0.14.0" `maven-publish` } repositories { jcenter() } val integrationTest: SourceSet by so...
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") `java-gradle-plugin` id("com.gradle.plugin-publish") version "0.11.0" `maven-publish` } repositories { jcenter() } val integrationTest: SourceSet by so...
mit
Kotlin
38cfece5f56b661b966bc4d8a3fd2e40e5ca8396
Bump com.gradle.plugin-publish from 0.16.0 to 0.17.0
gesellix/gradle-docker-plugin,gesellix/gradle-docker-plugin
build.gradle.kts
build.gradle.kts
plugins { id("maven-publish") id("com.github.ben-manes.versions") version "0.39.0" id("net.ossindex.audit") version "0.4.11" id("com.gradle.plugin-publish") version "0.17.0" apply false id("io.freefair.maven-central.validate-poms") version "6.2.0" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" ...
plugins { id("maven-publish") id("com.github.ben-manes.versions") version "0.39.0" id("net.ossindex.audit") version "0.4.11" id("com.gradle.plugin-publish") version "0.16.0" apply false id("io.freefair.maven-central.validate-poms") version "6.2.0" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" ...
mit
Kotlin
4cb26e7773406aba459ec5d97b7b8c3121b7a834
Update library versions.
jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics
settings.gradle.kts
settings.gradle.kts
/* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/...
/* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/...
apache-2.0
Kotlin
c62371e88fc3b23f53214f801b74f114dae2b4d6
Convert 'settings.gradle.kts' script.
jenetics/jpx,jenetics/jpx
settings.gradle.kts
settings.gradle.kts
/* * Java GPX Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/LICEN...
/* * Java GPX Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/LICEN...
apache-2.0
Kotlin
c2678c87d8f97c9960500d5262c84c65a6c7ac75
fix rtps udp
pedroSG94/rtmp-streamer-java,pedroSG94/rtmp-rtsp-stream-client-java,pedroSG94/rtmp-rtsp-stream-client-java
rtsp/src/main/java/com/pedro/rtsp/rtsp/RtpFrame.kt
rtsp/src/main/java/com/pedro/rtsp/rtsp/RtpFrame.kt
package com.pedro.rtsp.rtsp import com.pedro.rtsp.utils.RtpConstants /** * Created by pedro on 7/11/18. */ data class RtpFrame(val buffer: ByteArray, val timeStamp: Long, val length: Int, val rtpPort: Int, val rtcpPort: Int, val channelIdentifier: Byte) { fun isVideoFrame(): Boolean = channel...
package com.pedro.rtsp.rtsp /** * Created by pedro on 7/11/18. */ data class RtpFrame(val buffer: ByteArray, val timeStamp: Long, val length: Int, val rtpPort: Int, val rtcpPort: Int, val channelIdentifier: Byte) { fun isVideoFrame(): Boolean = channelIdentifier == 2.toByte() }
apache-2.0
Kotlin
cedcd2cf79bf9a939645071e16ad7b9192ed288d
Fix worker random test.
JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-...
backend.native/tests/runtime/basic/worker_random.kt
backend.native/tests/runtime/basic/worker_random.kt
/* * Copyright 2010-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 runtime.basic.worker_random import kotlin.native.concurrent.* import kotlin.collections.* import kotlin.random.* import kotlin.system.* import kotlin.test.* @...
/* * Copyright 2010-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 runtime.basic.worker_random import kotlin.native.concurrent.* import kotlin.collections.* import kotlin.random.* import kotlin.system.* import kotlin.test.* @...
apache-2.0
Kotlin
cced46c931b39525a0e7f6a542545c2fd02ae13a
Fix deprecation warning in build script.
jenetics/jpx,jenetics/jpx
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
/* * Java GPX Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/LICEN...
/* * Java GPX Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/LICEN...
apache-2.0
Kotlin
9fcef98f8602bf78a66142515b47d95d2877b4aa
Bump gradle
Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
plugins { `java-gradle-plugin` `kotlin-dsl` `kotlin-dsl-precompiled-script-plugins` } repositories { google() mavenCentral() maven("https://plugins.gradle.org/m2/") maven("https://dl.bintray.com/andreyberyukhov/FlowReactiveNetwork") } object PluginVersions { const val GRADLE_ANDROID = ...
plugins { `java-gradle-plugin` `kotlin-dsl` `kotlin-dsl-precompiled-script-plugins` } repositories { google() mavenCentral() maven("https://plugins.gradle.org/m2/") maven("https://dl.bintray.com/andreyberyukhov/FlowReactiveNetwork") } object PluginVersions { const val GRADLE_ANDROID = ...
mit
Kotlin
89345cd33d6a1c8b93c79a64bce06876f0ae3266
Update build.gradle.kts
Cognifide/gradle-aem-example,Cognifide/gradle-aem-example,Cognifide/gradle-aem-example,Cognifide/gradle-aem-example,Cognifide/gradle-aem-example
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
repositories { mavenLocal() jcenter() gradlePluginPortal() } dependencies { implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72") implementation("com.neva.gradle:fork-plugin:5.0.3") implementation("com.netflix.nebula:nebula-project-plugin:7.0.9") implementation("com.cognifide.g...
repositories { mavenLocal() jcenter() gradlePluginPortal() } dependencies { implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72") implementation("com.neva.gradle:fork-plugin:5.0.3") implementation("com.netflix.nebula:nebula-project-plugin:7.0.9") implementation("com.cognifide.g...
apache-2.0
Kotlin
d1cb685f891e8664741901717c3d0ac8ce3f35d6
Remove emptyArrayNoType kotlin example
GUL-/swift-is-like-javascript,GUL-/swift-is-like-javascript,GUL-/swift-is-like-javascript
code/empty-collections.kt
code/empty-collections.kt
val emptyArray = arrayOf&lt;String>() val emptyMap = mapOf&lt;String, Float>()
val emptyArray = arrayOf&lt;String>() val emptyMap = mapOf&lt;String, Float>() val emptyArrayNoType = arrayOf&lt;Any>()
mit
Kotlin
ddeb92fb5a332333e9fe40a54dfd6c0f4aa860f8
refactor #853 Divide app-bar to other function.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/main/ui/AppBar.kt
app/src/main/java/jp/toastkid/yobidashi/main/ui/AppBar.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
5e257cb97a33a03f8aa7f9c096b7366e738eb770
refactor #232 Extract parser to lateinit field.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/rss/ParserTest.kt
app/src/test/java/jp/toastkid/yobidashi/rss/ParserTest.kt
package jp.toastkid.yobidashi.rss import okio.Okio import org.junit.Assert.* import org.junit.Before import org.junit.Test import java.io.InputStream /** * TODO clean up code. * * @author toastkidjp */ class ParserTest { private lateinit var parser: Parser @Before fun setUp() { parser = Pars...
package jp.toastkid.yobidashi.rss import okio.Okio import org.junit.Assert.* import org.junit.Test import java.io.InputStream /** * TODO clean up code. * * @author toastkidjp */ class ParserTest { @Test fun test() { val rssText = Okio.buffer(Okio.source(readStream())).readUtf8() val rss =...
epl-1.0
Kotlin
e47a0ca2984a4f18795e1c669d9332d4a4ab4064
テスト時にDatabaseをon memory に切り替える関数を定義
serorigundam/numeri3,serorigundam/numeri3
app/src/test/kotlin/net/ketc/numeri/_Robolectric.kt
app/src/test/kotlin/net/ketc/numeri/_Robolectric.kt
package net.ketc.numeri import android.app.Activity import net.ketc.numeri.util.ormlite.DataBaseHelperFactory import net.ketc.numeri.util.ormlite.getHelper import org.robolectric.Robolectric val context = Robolectric.buildActivity(Activity::class.java).get().applicationContext!! fun setOnMemoryDB() { DataBaseHel...
mit
Kotlin
0af865215ccd56b3e5533b25744a8dc143b0d3c1
remove todoTask7()
sunghwanJo/workshop-jb,sunghwanJo/workshop-jb
src/i_introduction/_6_Data_Classes/DataClasses.kt
src/i_introduction/_6_Data_Classes/DataClasses.kt
package i_introduction._6_Data_Classes import util.* fun todoTask7(): Nothing = TODO( """ Convert 'JavaCode7.Person' class to Kotlin. Then add an annotation `data` to the resulting class. This annotation means the compiler will generate a bunch of useful methods in this class: `equals`/`ha...
package i_introduction._6_Data_Classes import util.* fun todoTask7(): Nothing = TODO( """ Convert 'JavaCode7.Person' class to Kotlin. Then add an annotation `data` to the resulting class. This annotation means the compiler will generate a bunch of useful methods in this class: `equals`/`ha...
mit
Kotlin
e8f41e0565f610b1b30dd4aab8f13230a373f1e1
fix stackoverflow
alygin/intellij-rust,Undin/intellij-rust,alygin/intellij-rust,anton-okolelov/intellij-rust,anton-okolelov/intellij-rust,himikof/intellij-rust,anton-okolelov/intellij-rust,ujpv/intellij-rust,ujpv/intellij-rust,d9n/intellij-rust,himikof/intellij-rust,anton-okolelov/intellij-rust,ujpv/intellij-rust,Undin/intellij-rust,ujp...
src/main/kotlin/org/rust/lang/core/psi/RustMod.kt
src/main/kotlin/org/rust/lang/core/psi/RustMod.kt
package org.rust.lang.core.psi import com.intellij.openapi.util.Computable import com.intellij.psi.PsiDirectory import org.rust.ide.utils.recursionGuard import org.rust.lang.core.symbols.RustQualifiedPath import org.rust.lang.core.symbols.RustQualifiedPathPart interface RustMod : RustNamedElement, RustItemsOwner { ...
package org.rust.lang.core.psi import com.intellij.psi.PsiDirectory import org.rust.lang.core.symbols.RustQualifiedPath import org.rust.lang.core.symbols.RustQualifiedPathPart interface RustMod : RustNamedElement, RustItemsOwner { /** * Returns a parent module (`super::` in paths). * * The parent...
mit
Kotlin
aacfc31822acf384c4f4b8d0637b946004ac925f
reduce OrRouter to ignore if there is only one router
http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k
http4k-core/src/main/kotlin/org/http4k/routing/routing.kt
http4k-core/src/main/kotlin/org/http4k/routing/routing.kt
package org.http4k.routing import org.http4k.core.HttpHandler import org.http4k.core.Method import org.http4k.core.Request import org.http4k.core.UriTemplate import org.http4k.websocket.WsConsumer fun routes(vararg list: Pair<Method, HttpHandler>): RoutingHttpHandler = routes(*list.map { "" bind it.first to it.second...
package org.http4k.routing import org.http4k.core.HttpHandler import org.http4k.core.Method import org.http4k.core.Request import org.http4k.core.UriTemplate import org.http4k.websocket.WsConsumer fun routes(vararg list: Pair<Method, HttpHandler>): RoutingHttpHandler = routes(*list.map { "" bind it.first to it.second...
apache-2.0
Kotlin
df87c8e794850dbebfa57e4f471fd16151805f23
test for inlining added
JetBrains/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,wiltonlazary/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,JuliusKunze/kotlin-native,wiltonlazary/kotlin-native,jiaminglu/kotlin-native,jiaminglu/kotlin-n...
backend.native/tests/codegen/inline/inline0.kt
backend.native/tests/codegen/inline/inline0.kt
@Suppress("NOTHING_TO_INLINE") inline fun foo(i: Int): Int { return i + 1 } fun bar(i: Int): Int { return foo(i) } fun main(args: Array<String>) { println(bar(1).toString()) }
apache-2.0
Kotlin
1aefcec8299095407955bc90678e90913bbe858d
Make Gradle sample more minimal
sormuras/bach,sormuras/bach
doc/comparison/minimal/gradle/build.gradle.kts
doc/comparison/minimal/gradle/build.gradle.kts
plugins { `java-library` } java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 withSourcesJar() withJavadocJar() } version = "0" tasks.javadoc { (options as StandardJavadocDocletOptions).apply { addStringOption("-module", "de.sormuras.bach....
plugins { `java-library` } java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } version = "0" tasks { javadoc { (options as StandardJavadocDocletOptions).addStringOption("-module", "de.sormuras.bach.doc.minimal") (options as StandardJavad...
mit
Kotlin
fc315365961489eef1e17d1bf22ab7f41fee7ed0
bump jbehave version (via #331)
allure-framework/allure-java,allure-framework/allure-java
allure-jbehave/build.gradle.kts
allure-jbehave/build.gradle.kts
description = "Allure JBehave Integration" val agent: Configuration by configurations.creating val jbehaveVersion = "4.4" dependencies { agent("org.aspectj:aspectjweaver") api(project(":allure-java-commons")) implementation("org.jbehave:jbehave-core:$jbehaveVersion") testImplementation("org.assertj:a...
description = "Allure JBehave Integration" val agent: Configuration by configurations.creating val jbehaveVersion = "4.3.5" dependencies { agent("org.aspectj:aspectjweaver") api(project(":allure-java-commons")) implementation("org.jbehave:jbehave-core:$jbehaveVersion") testImplementation("org.assertj...
apache-2.0
Kotlin
3f1facaa34d926eb09cd876a11275d3a19b18d4d
Fix reference to task in templates
gradle-clojure/gradle-clojure,gradle-clojure/gradle-clojure
buildSrc/src/main/kotlin/clj-new-template.gradle.kts
buildSrc/src/main/kotlin/clj-new-template.gradle.kts
import java.io.ByteArrayOutputStream import org.apache.tools.ant.filters.ReplaceTokens import org.gradle.util.GradleVersion plugins { id("dev.clojurephant.clojure") id("maven-publish") } dependencies { compileOnly("org.clojure:clojure:1.10.1") compileOnly("seancorfield:clj-new:1.1.234") } publishing { publ...
import java.io.ByteArrayOutputStream import org.apache.tools.ant.filters.ReplaceTokens import org.gradle.util.GradleVersion plugins { id("dev.clojurephant.clojure") id("maven-publish") } dependencies { compileOnly("org.clojure:clojure:1.10.1") compileOnly("seancorfield:clj-new:1.1.234") } publishing { publ...
apache-2.0
Kotlin
0e37dd1dc3b97f89e05ffe3ce9e8efdf9aa24728
Speed up `checkSamples` by reusing the daemon
gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,gradle/gradle-script-kotlin,robinverduijn/gradle,blindpirate/gradle,gradle/gr...
buildSrc/src/main/kotlin/integration/CheckSamples.kt
buildSrc/src/main/kotlin/integration/CheckSamples.kt
/* * Copyright 2016 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2016 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
254fca097e133fcd423266be2cc019574509ba0e
Remove OptIn annotation warnings
joffrey-bion/mc-mining-optimizer
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.3.72" application } group = "org.hildan" version = "0.1" application { mainClassName = "org.hildan.minecraft.mining.optimizer.McMiningOptimizerKt" } repositories { mavenCentral() } dependencies { implement...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.3.72" application } group = "org.hildan" version = "0.1" application { mainClassName = "org.hildan.minecraft.mining.optimizer.McMiningOptimizerKt" } repositories { mavenCentral() } dependencies { implement...
mit
Kotlin
0867ce2d2a25eb8c8b6033257c10c83403ceaf42
update to plugin-publish-0.12.0, gradle-jgitver-0.9.1
jgitver/gradle-jgitver-plugin,jgitver/gradle-jgitver-plugin,jgitver/gradle-jgitver-plugin
build.gradle.kts
build.gradle.kts
plugins { id("com.gradle.plugin-publish") version "0.12.0" id("fr.brouillard.oss.gradle.jgitver") version "0.9.1" id("java-gradle-plugin") id("maven") // for local tests id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version "1.64" } group = "fr.brouillard.oss.gradle" jgitver { ...
plugins { id("com.gradle.plugin-publish") version "0.9.7" id("fr.brouillard.oss.gradle.jgitver") version "0.7.0" id("java-gradle-plugin") id("maven") // for local tests id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version "1.64" } group = "fr.brouillard.oss.gradle" jgitver { u...
apache-2.0
Kotlin
deaeafb0e461f16eb5610af09fcd4e3fe399c421
refactor #853 Replace with dot call.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/main/MainActivity.kt
app/src/main/java/jp/toastkid/yobidashi/main/MainActivity.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
a7f86b50866e3d962b4c1cea3b06fd1debcb9215
Use private for L
sswierczek/Helix-Movie-Guide-Android
app/src/main/kotlin/com/androidmess/helix/HelixApp.kt
app/src/main/kotlin/com/androidmess/helix/HelixApp.kt
package com.androidmess.helix import android.app.Application import androidx.multidex.MultiDex import com.androidmess.helix.common.debug.L import com.androidmess.helix.common.network.di.NetworkModule import com.androidmess.helix.di.AppModule import com.androidmess.helix.discover.di.DiscoverFragmentModule import com.an...
package com.androidmess.helix import android.app.Application import androidx.multidex.MultiDex import com.androidmess.helix.common.debug.L import com.androidmess.helix.common.network.di.NetworkModule import com.androidmess.helix.di.AppModule import com.androidmess.helix.discover.di.DiscoverFragmentModule import com.an...
apache-2.0
Kotlin
89ca61371555e4ef7e11c58e2650adbe372b045e
clear data class
trevorwang/android-kotlin-project,trevorwang/android-kotlin-project
app/src/main/kotlin/mingsin/andoridkotlin/model/Ip.kt
app/src/main/kotlin/mingsin/andoridkotlin/model/Ip.kt
package mingsin.andoridkotlin.model /** * Created by trevorwang on 10/12/2016. */ data class Ip(var origin: String)
package mingsin.andoridkotlin.model /** * Created by trevorwang on 10/12/2016. */ data class Ip(var origin: String) { }
mit
Kotlin
221fae38416527532af80b3f1862b07d4cbd1914
Remove 'SNAPSHOT' from version string.
jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics
buildSrc/src/main/kotlin/Env.kt
buildSrc/src/main/kotlin/Env.kt
/* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/...
/* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/...
apache-2.0
Kotlin
97556fced9ad3b0d9cb6d30eeb5a50f98a313562
Add tests for SentryValues (getsentry/sentry-android#238)
getsentry/raven-java,getsentry/raven-java
sentry-core/src/test/java/io/sentry/core/SentryValuesTest.kt
sentry-core/src/test/java/io/sentry/core/SentryValuesTest.kt
package io.sentry.core import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue class SentryValuesTest { @Test fun `constructor called with values`() { val values = listOf(1, 2) val sut = SentryValues<Int>(values) assertEquals(values, sut.values) } ...
bsd-3-clause
Kotlin
30625310e3da4ee799cf492f1258f1d1665cff47
refactor #853 Move OptionMenu model to lib module.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
lib/src/main/java/jp/toastkid/lib/model/OptionMenu.kt
lib/src/main/java/jp/toastkid/lib/model/OptionMenu.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
40063e42f781bef5cac374360049728de7183cd4
fix CI
kotlin-graphics/imgui,jovr/imgui,kotlin-graphics/imgui
imgui-vk/build.gradle.kts
imgui-vk/build.gradle.kts
import org.gradle.internal.os.OperatingSystem.* plugins { kotlin("jvm") } val moduleName = "${group}.imgui_vk" dependencies { implementation(project(":imgui-core")) implementation(project(":imgui-glfw")) implementation(kotlin("reflect")) val kx = "com.github.kotlin-graphics" implementation...
import org.gradle.internal.os.OperatingSystem.* plugins { kotlin("jvm") } val moduleName = "${group}.imgui_vk" dependencies { implementation(project(":imgui-core")) implementation(kotlin("reflect")) val kx = "com.github.kotlin-graphics" implementation("$kx:kool:${findProperty("koolVersion")}")...
mit
Kotlin
1f0b5b1b35b7dde16ddf6f6a20892a369b2d5aa3
Set view model feeds immutable
amasciul/Drinks,amasciul/Drinks,amasciul/Drinks
app/src/main/java/fr/masciulli/drinks/drink/DrinkViewModel.kt
app/src/main/java/fr/masciulli/drinks/drink/DrinkViewModel.kt
package fr.masciulli.drinks.drink import fr.masciulli.drinks.BaseViewModel import fr.masciulli.drinks.core.drinks.Drink import fr.masciulli.drinks.core.drinks.DrinksSource import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.Disposable import io.reactivex.schedulers.Schedulers impor...
package fr.masciulli.drinks.drink import fr.masciulli.drinks.BaseViewModel import fr.masciulli.drinks.core.drinks.Drink import fr.masciulli.drinks.core.drinks.DrinksSource import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.Disposable import io.reactivex.schedulers.Schedulers impor...
apache-2.0
Kotlin
1bc59e5af0fba4272361ec39a53f662bb2d43991
make sure the first fragment does not get added to the back stack
MHP-A-Porsche-Company/CDUI-Showcase-Android
app/src/main/kotlin/com/mhp/showcase/activity/MainActivity.kt
app/src/main/kotlin/com/mhp/showcase/activity/MainActivity.kt
package com.mhp.showcase.activity import android.annotation.SuppressLint import android.app.Activity import android.app.Fragment import android.os.Bundle import android.widget.FrameLayout import com.mhp.showcase.R import com.mhp.showcase.ShowcaseApplication import com.mhp.showcase.navigation.Route import com.mhp.showc...
package com.mhp.showcase.activity import android.annotation.SuppressLint import android.app.Activity import android.app.Fragment import android.os.Bundle import android.widget.FrameLayout import com.mhp.showcase.R import com.mhp.showcase.ShowcaseApplication import com.mhp.showcase.navigation.Route import com.mhp.showc...
mit
Kotlin
2ed4f3281764476a7a4ddeb44059b563ba19655b
Validate Body of API Request for creating events
BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend
src/main/java/backend/controller/EventController.kt
src/main/java/backend/controller/EventController.kt
package backend.controller import backend.model.event.EventService import backend.model.misc.Coords import backend.view.EventView import org.springframework.beans.factory.annotation.Autowired import org.springframework.http.HttpStatus import org.springframework.http.MediaType import org.springframework.web.bind.annota...
package backend.controller import backend.model.event.EventService import backend.model.misc.Coords import backend.view.EventView import org.springframework.beans.factory.annotation.Autowired import org.springframework.http.HttpStatus import org.springframework.http.MediaType import org.springframework.web.bind.annota...
agpl-3.0
Kotlin
3c21a5ef0f9cb0f5d3439ef61a0da08addf971a6
Initialize Jackson ObjectMapper with KotlinModule (#201)
tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin
src/main/java/io/javalin/translator/json/Jackson.kt
src/main/java/io/javalin/translator/json/Jackson.kt
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.translator.json import com.fasterxml.jackson.databind.Module import com.fasterxml.jackson.databind.ObjectMapper object JavalinJacksonPlugin { p...
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.translator.json import com.fasterxml.jackson.databind.ObjectMapper object JavalinJacksonPlugin { private var objectMapper: ObjectMapper? = null...
apache-2.0
Kotlin
fe831b52610db5c5403d70dd3eadc98e001cc86f
Change supertype for ChannelIOException so it is IOException now
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-core/src/org/jetbrains/ktor/cio/Channels.kt
ktor-core/src/org/jetbrains/ktor/cio/Channels.kt
package org.jetbrains.ktor.cio import java.io.* import java.nio.* interface Channel : Closeable interface ReadChannel : Channel { suspend fun read(dst: ByteBuffer): Int } interface WriteChannel : Channel { suspend fun write(src: ByteBuffer) suspend fun flush() } interface RandomAccessReadChannel : Read...
package org.jetbrains.ktor.cio import java.io.* import java.nio.* interface Channel : Closeable interface ReadChannel : Channel { suspend fun read(dst: ByteBuffer): Int } interface WriteChannel : Channel { suspend fun write(src: ByteBuffer) suspend fun flush() } interface RandomAccessReadChannel : Read...
apache-2.0
Kotlin
ab60e04f1ef0bd2d56683858390cf757e6e8b68a
Create message definitions
axelrindle/Broadcaster-Plugin
src/main/kotlin/de/axelrindle/broadcaster/model/Message.kt
src/main/kotlin/de/axelrindle/broadcaster/model/Message.kt
package de.axelrindle.broadcaster.model import net.md_5.bungee.api.chat.BaseComponent import net.md_5.bungee.chat.ComponentSerializer /** * A `Message` describes a piece of information that will be broadcasted around the server. */ abstract class Message /** * @param input The input text used for configuration. *...
mit
Kotlin
40c0a92b8a8121e6ed305ab5e8c517c6b45a82b4
change order of parameters in functions
clappr/clappr-android,clappr/clappr-android
player/src/main/kotlin/com/globo/clappr/log/Logger.kt
player/src/main/kotlin/com/globo/clappr/log/Logger.kt
package com.globo.clappr.log import android.util.Log class Logger { private var logLevel = LogLevel.INFO fun setLevel(level: LogLevel) { logLevel = level } fun log(level: LogLevel, message: String, scope: String? = null) { if (level <= logLevel) { val tag = "clappr" ...
package com.globo.clappr.log import android.util.Log class Logger { private var logLevel = LogLevel.INFO fun setLevel(level: LogLevel) { logLevel = level } fun log(level: LogLevel, scope: String? = null, message: String) { if (level <= logLevel) { val tag = "clappr" ...
bsd-3-clause
Kotlin
3df75b98a77b94249ed94fb724f38fa9746f5746
Declare inputs and outputs of `CheckSamples`
robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle-script-kotlin,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate...
buildSrc/src/main/kotlin/integration/CheckSamples.kt
buildSrc/src/main/kotlin/integration/CheckSamples.kt
package integration import org.apache.tools.ant.util.TeeOutputStream import org.gradle.api.DefaultTask import org.gradle.api.file.FileCollection import org.gradle.api.tasks.InputFiles import org.gradle.api.tasks.OutputDirectory import org.gradle.api.tasks.TaskAction import org.gradle.tooling.GradleConnector.newConnect...
package integration import org.gradle.api.DefaultTask import org.gradle.api.tasks.InputDirectory import org.gradle.api.tasks.TaskAction import org.gradle.tooling.GradleConnector.newConnector import org.gradle.tooling.ProjectConnection import java.io.File open class CheckSamples : DefaultTask() { override fun get...
apache-2.0
Kotlin
21a567a98b077c04e8e6711779b36714995e6085
Add KeyboardHelper.kt
RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android
app/src/main/java/chat/rocket/android/helper/KeyboardHelper.kt
app/src/main/java/chat/rocket/android/helper/KeyboardHelper.kt
package chat.rocket.android.helper import android.graphics.Rect import android.view.View object KeyboardHelper { /** * Returns true if the soft keyboard is shown, false otherwise. * * @param rootView The rootView of a view (e.g. an EditText). * @return true if the soft keyboard is shown, fals...
mit
Kotlin
5d7cdb774554c2d6540b17ee3b28e03bc6a1b381
Update to ReactiveLiveData again
chrisbanes/tivi,chrisbanes/tivi
app/src/main/java/me/banes/chris/tivi/util/ReactiveLiveData.kt
app/src/main/java/me/banes/chris/tivi/util/ReactiveLiveData.kt
/* * 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...
/* * 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...
apache-2.0
Kotlin
da60f0d308d63ee8edf4ea3169933771fd4cba36
Bump io.github.gradle-nexus.publish-plugin from 1.0.0 to 1.1.0
connectbot/simplesocks,connectbot/simplesocks
build.gradle.kts
build.gradle.kts
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { gradlePluginPortal() } dependencies { // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files...
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { gradlePluginPortal() } dependencies { // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files...
apache-2.0
Kotlin
6f8e8bfe0bd156ab51daf472e059b223ea7c69a8
Update preprocessor plugin
ReplayMod/jGui,ReplayMod/jGui
build.gradle.kts
build.gradle.kts
plugins { id("fabric-loom") version "0.2.5-SNAPSHOT" apply false id("com.replaymod.preprocess") version "59a641a" id("com.github.hierynomus.license") version "0.15.0" } group = "de.johni0702.minecraft" version = "git" license { extra.set("name", "jGui API") extra.set("author", "johni0702") ext...
plugins { id("fabric-loom") version "0.2.5-SNAPSHOT" apply false id("com.replaymod.preprocess") version "b744ea7" id("com.github.hierynomus.license") version "0.15.0" } group = "de.johni0702.minecraft" version = "git" license { extra.set("name", "jGui API") extra.set("author", "johni0702") ext...
mit
Kotlin
2e32ac465a602ec9fc5c48d2a0653fd5c5bf173d
Add koin
thuytrinh/KotlinPlayground,thuytrinh/KotlinPlayground
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { java kotlin("jvm") version "1.4.10" kotlin("plugin.serialization") version "1.4.10" } group = "thuytrinh" version = "1.0-SNAPSHOT" repositories { jcenter() } dependencies { implementation(kotlin("stdlib")) implementation("org.jetbrains.kot...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { java kotlin("jvm") version "1.4.10" kotlin("plugin.serialization") version "1.4.10" } group = "thuytrinh" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation(kotlin("stdlib")) implementation("org.jetbrain...
mit
Kotlin
b1394d7e5a93197dfae45c2703ff5af1db267186
bump versions
OpenASR/idear,breandan/idear,OpenASR/idear,breandan/idear
build.gradle.kts
build.gradle.kts
import org.jetbrains.intellij.tasks.RunIdeTask import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.intellij.tasks.PatchPluginXmlTask plugins { idea apply true id("org.jetbrains.intellij") version "0.4.22" kotlin("jvm") version "1.4.10" } intellij { version = "2020.1" plugin...
import org.jetbrains.intellij.tasks.RunIdeTask import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.intellij.tasks.PatchPluginXmlTask plugins { idea apply true id("org.jetbrains.intellij") version "0.4.21" kotlin("jvm") version "1.4.0" } intellij { version = "2020.1" pluginN...
apache-2.0
Kotlin
04053800e37252106320552ac574f57e8241f43a
Update FRC libs
TeamMeanMachine/meanlib,TeamMeanMachine/meanlib
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile buildscript { repositories { mavenCentral() } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0") classpath("org.jetbrains.dokka:dokka-gradle-plugin:0.9.17") } } plugins { java maven } appl...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile buildscript { repositories { mavenCentral() } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0") classpath("org.jetbrains.dokka:dokka-gradle-plugin:0.9.17") } } plugins { java maven } apply...
unlicense
Kotlin
766beb409a8c0cd882bf9b8baefbc147a5a988e7
update to Gradle wrapper 5.2.1
gesellix/gradle-docker-plugin,gesellix/gradle-docker-plugin
build.gradle.kts
build.gradle.kts
import java.text.SimpleDateFormat import java.util.* rootProject.extra.set("artifactVersion", SimpleDateFormat("yyyy-MM-dd\'T\'HH-mm-ss").format(Date())) buildscript { repositories { mavenLocal() jcenter() gradlePluginPortal() mavenCentral() } } plugins { id("com.github.be...
import java.text.SimpleDateFormat import java.util.* rootProject.extra.set("artifactVersion", SimpleDateFormat("yyyy-MM-dd\'T\'HH-mm-ss").format(Date())) buildscript { repositories { mavenLocal() jcenter() gradlePluginPortal() mavenCentral() } } plugins { id("com.github.be...
mit
Kotlin
f99301008fb8e70fbf00b51962ef4e49f96355dd
Fix incorrect Gradle enabling explicit API mode
square/kotlinpoet,square/kotlinpoet
build.gradle.kts
build.gradle.kts
/* * Copyright (C) 2019 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 agreed to...
/* * Copyright (C) 2019 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 agreed to...
apache-2.0
Kotlin
c7f53ca5fb8f62e11b194375e4afc714fd275ce7
remove gradle enterprise plugin/config (#2324)
Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank
settings.gradle.kts
settings.gradle.kts
import java.io.ByteArrayOutputStream import org.gradle.kotlin.dsl.support.serviceOf rootProject.name = "flank" includeBuild("maven_version_check") includeBuild("check_version_updated") include( ":test_runner", ":firebase_apis:test_api", ":flank-scripts", ":integration_tests", "samples:gradle-expo...
import java.io.ByteArrayOutputStream import org.gradle.kotlin.dsl.support.serviceOf rootProject.name = "flank" includeBuild("maven_version_check") includeBuild("check_version_updated") include( ":test_runner", ":firebase_apis:test_api", ":flank-scripts", ":integration_tests", "samples:gradle-expo...
apache-2.0
Kotlin
c95db796ef80e598662c5f9104657856e2c8cc48
Bump modb-livechart from 1.0.6 to 1.0.7
manami-project/manami,manami-project/manami
manami-app/build.gradle.kts
manami-app/build.gradle.kts
dependencies { api("io.github.manamiproject:modb-core:7.0.2") api("io.github.manamiproject:modb-db-parser:3.1.2") api("org.slf4j:slf4j-api:1.7.32") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt") implementation("io.github.manamiproject:modb-anidb:3.0.7") implemen...
dependencies { api("io.github.manamiproject:modb-core:7.0.2") api("io.github.manamiproject:modb-db-parser:3.1.2") api("org.slf4j:slf4j-api:1.7.32") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt") implementation("io.github.manamiproject:modb-anidb:3.0.7") implemen...
agpl-3.0
Kotlin
1cbf04c500b98098af1609e604dfd10cea5a35bb
update versions
breandan/idear,OpenASR/idear,OpenASR/idear,breandan/idear
build.gradle.kts
build.gradle.kts
buildscript { repositories { maven { setUrl("http://dl.bintray.com/jetbrains/intellij-plugin-service") } } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.41") } } plugins { id("org.jetbrains.intellij") version "0.2.18" id("org.jetbrains.kotlin.jvm") versio...
buildscript { repositories { maven { setUrl("http://dl.bintray.com/jetbrains/intellij-plugin-service") } } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.21") } } plugins { id("org.jetbrains.intellij") version "0.2.18" id("org.jetbrains.kotlin.jvm") versio...
apache-2.0
Kotlin
bfea547151d7ea3baaed29c743c1a7649c0e6104
Update Gradle plugin versions.
metaborg/sdf,metaborg/sdf,metaborg/sdf
build.gradle.kts
build.gradle.kts
plugins { id("org.metaborg.gradle.config.root-project") version "0.3.21" id("org.metaborg.gitonium") version "0.1.2" // Set versions for plugins to use, only applying them in subprojects (apply false here). id("org.metaborg.spoofax.gradle.langspec") version "0.2.2" apply false id("de.set.ecj") version "1.4.1...
plugins { id("org.metaborg.gradle.config.root-project") version "0.3.19" id("org.metaborg.gitonium") version "0.1.2" // Set versions for plugins to use, only applying them in subprojects (apply false here). id("org.metaborg.spoofax.gradle.langspec") version "0.2.1" apply false id("de.set.ecj") version "1.4.1...
apache-2.0
Kotlin
ce10e940339484aaed3e4e154d5ed2f39539ff74
Update build.gradle.kts
psygate/CivModCore,psygate/CivModCore
build.gradle.kts
build.gradle.kts
import net.civmc.civgradle.common.util.civRepo plugins { `java-library` `maven-publish` id("net.civmc.civgradle.plugin") version "1.0.0-SNAPSHOT" } // Temporary hack: // Remove the root build directory gradle.buildFinished { project.buildDir.deleteRecursively() } allprojects { group = "net.civmc.civmod...
import net.civmc.civgradle.common.util.civRepo plugins { `java-library` `maven-publish` id("net.civmc.civgradle.plugin") version "1.0.0-SNAPSHOT" } group = "net.civmc" version = "2.0.0-SNAPSHOT" description = "CivModCore" subprojects { apply(plugin = "net.civmc.civgradle.plugin") apply(plugin = "java-l...
bsd-3-clause
Kotlin
c972d7709d2300ab647a0d197cd384219e5f6b75
Fix vendor for Santa Tracker smoke test jvm
gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,grad...
.teamcity/src/main/kotlin/common/JvmCategory.kt
.teamcity/src/main/kotlin/common/JvmCategory.kt
/* * Copyright 2019 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2019 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
deae7fdf0662e9bcca11aa057b2f4d0ddbb106ad
verify robot every time it is clicked.
Seancheey/Ark-Sonah
src/com/seancheey/gui/RobotModelSlot.kt
src/com/seancheey/gui/RobotModelSlot.kt
package com.seancheey.gui import com.seancheey.game.Config import com.seancheey.game.Model import com.seancheey.game.RobotModel import javafx.collections.ObservableList import javafx.scene.Node import javafx.scene.image.Image import javafx.scene.input.MouseEvent /** * Created by Seancheey on 14/06/2017. * GitHub: h...
package com.seancheey.gui import com.seancheey.game.Config import com.seancheey.game.Model import com.seancheey.game.RobotModel import javafx.collections.ObservableList import javafx.scene.Node import javafx.scene.image.Image import javafx.scene.input.MouseEvent /** * Created by Seancheey on 14/06/2017. * GitHub: h...
mit
Kotlin
23d11d8c9635dc500dacdc06ddb427f68960197b
Update effects usage in `backHandler`
android/compose-samples,android/compose-samples
Owl/app/src/main/java/com/example/owl/ui/utils/Navigation.kt
Owl/app/src/main/java/com/example/owl/ui/utils/Navigation.kt
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
d59b94daf4a57c283caf4e1463efab640ccafbad
Adjust version
yngvark/snippets,yngvark/snippets,yngvark/snippets,yngvark/snippets
pc-init/src/main/kotlin/com/yngvark/pc_init/Main.kt
pc-init/src/main/kotlin/com/yngvark/pc_init/Main.kt
package com.yngvark.pc_init import com.yngvark.pc_init.process.* import com.yngvark.pc_init.robot.ConsolePasswordReader import com.yngvark.pc_init.robot.RobotHelper import com.yngvark.pc_init.robot.SecretGetter import com.yngvark.pc_init.robot.SomewhatSecureString import java.awt.Robot import java.awt.event.KeyEvent ...
package com.yngvark.pc_init import com.yngvark.pc_init.process.* import com.yngvark.pc_init.robot.ConsolePasswordReader import com.yngvark.pc_init.robot.RobotHelper import com.yngvark.pc_init.robot.SecretGetter import com.yngvark.pc_init.robot.SomewhatSecureString import java.awt.Robot import java.awt.event.KeyEvent ...
unlicense
Kotlin
745eef95bc89307c17e7c8ec9407eb4c1b0f2110
refactor #853 Add line breaks.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/main/MainActivity.kt
app/src/main/java/jp/toastkid/yobidashi/main/MainActivity.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
bcc5feffcb99500d1a3d5c90ffb0018dd504fcea
Update problem 1695
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem1695.kt
src/main/kotlin/leetcode/Problem1695.kt
package leetcode import kotlin.math.max /** * https://leetcode.com/problems/maximum-erasure-value/ */ class Problem1695 { fun maximumUniqueSubarray(nums: IntArray): Int { var answer = 0 val map = mutableMapOf<Int, Int>() var sum = 0 var index = 0 while (index < nums.size)...
package leetcode import kotlin.math.max /** * https://leetcode.com/problems/maximum-erasure-value/ */ class Problem1695 { fun maximumUniqueSubarray(nums: IntArray): Int { var answer = 0 for (i in nums.indices) { val set = mutableSetOf<Int>() var sum = 0 for (j...
mit
Kotlin
47a3ecc2c2f302e1bbc1c7ef7e6d410c8b84a393
bump org.jetbrains.intellij
JetBrains/intellij-sdk-docs,JetBrains/intellij-sdk-docs,JetBrains/intellij-sdk-docs
code_samples/project_view_pane/build.gradle.kts
code_samples/project_view_pane/build.gradle.kts
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. plugins { id("java") id("org.jetbrains.intellij") version "1.5.1" } group = "org.intellij.sdk" version = "2.0.0" repositories { mavenCentral() } java { sourceCompatibility = JavaVersion.V...
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. plugins { id("java") id("org.jetbrains.intellij") version "1.5.0" } group = "org.intellij.sdk" version = "2.0.0" repositories { mavenCentral() } java { sourceCompatibility = JavaVersion.V...
apache-2.0
Kotlin
b402cbdd6521ba19eac9dde5922dda56f55135fd
refactor #232 Use URLUtil.isNetworkUrl().
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
api/src/main/java/jp/toastkid/api/html/HtmlApi.kt
api/src/main/java/jp/toastkid/api/html/HtmlApi.kt
/* * Copyright (c) 2021 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * Copyright (c) 2021 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
cc71fd3063dc39600effb1356dddc03629234a73
bump org.jetbrains.intellij in /code_samples/tool_window
JetBrains/intellij-sdk-docs,JetBrains/intellij-sdk-docs,JetBrains/intellij-sdk-docs
code_samples/tool_window/build.gradle.kts
code_samples/tool_window/build.gradle.kts
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. plugins { id("java") id("org.jetbrains.intellij") version "1.5.1" } group = "org.intellij.sdk" version = "2.0.0" repositories { mavenCentral() } java { sourceCompatibility = JavaVersion.V...
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. plugins { id("java") id("org.jetbrains.intellij") version "1.5.0" } group = "org.intellij.sdk" version = "2.0.0" repositories { mavenCentral() } java { sourceCompatibility = JavaVersion.V...
apache-2.0
Kotlin
571b3a2ca32b2883ee0be722b9da3f16133ab2d8
Remove unnecessary comment
thaapasa/jalkametri-android,thaapasa/jalkametri-android
app/src/main/java/fi/tuska/jalkametri/activity/AboutActivity.kt
app/src/main/java/fi/tuska/jalkametri/activity/AboutActivity.kt
package fi.tuska.jalkametri.activity import android.content.Intent import android.content.pm.PackageManager.NameNotFoundException import android.os.Bundle import android.view.View import android.widget.TextView import fi.tuska.jalkametri.R class AboutActivity : JalkametriActivity(R.string.title_about, R.string.help_a...
package fi.tuska.jalkametri.activity import android.content.Intent import android.content.pm.PackageManager.NameNotFoundException import android.os.Bundle import android.view.View import android.widget.TextView import fi.tuska.jalkametri.R /** * Activity for showing an about screen. The screen shows information abou...
mit
Kotlin
368b456a584c4a42d144136db17fd5b2e3352024
fix debug
JanYoStudio/WhatAnime,JanYoStudio/WhatAnime
app/src/main/java/pw/janyo/whatanime/factory/RetrofitFactory.kt
app/src/main/java/pw/janyo/whatanime/factory/RetrofitFactory.kt
package pw.janyo.whatanime.factory import okhttp3.OkHttpClient import okhttp3.logging.HttpLoggingInterceptor import pw.janyo.whatanime.constant.Constant import retrofit2.Retrofit import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory import retrofit2.converter.gson.GsonConverterFactory import java.util.concurrent....
package pw.janyo.whatanime.factory import okhttp3.OkHttpClient import okhttp3.logging.HttpLoggingInterceptor import pw.janyo.whatanime.constant.Constant import retrofit2.Retrofit import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory import retrofit2.converter.gson.GsonConverterFactory import java.util.concurrent....
apache-2.0
Kotlin