path
stringlengths
4
280
owner
stringlengths
2
39
repo_id
int64
21.1k
879M
is_fork
bool
2 classes
languages_distribution
stringlengths
13
1.95k
content
stringlengths
7
482k
issues
int64
0
13.9k
main_language
stringclasses
121 values
forks
stringlengths
1
5
stars
int64
0
111k
commit_sha
stringlengths
40
40
size
int64
7
482k
name
stringlengths
1
100
license
stringclasses
93 values
foundry-math/src/main/kotlin/com/valaphee/foundry/math/Double3.kt
valaphee
372,059,969
false
null
/* * MIT License * * Copyright (c) 2021, Valaphee. * * 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, modif...
0
Kotlin
0
1
69ecf91e6b34031162c43ac12aae88975a2e6f75
8,768
foundry
MIT License
feature_album/src/main/kotlin/com/igorwojda/showcase/album/data/datasource/database/model/TrackEntityModel.kt
igorwojda
158,460,787
false
{"Kotlin": 106132}
package com.igorwojda.showcase.album.data.datasource.database.model import com.igorwojda.showcase.album.domain.model.Track import kotlinx.serialization.Serializable @Serializable internal data class TrackEntityModel( val name: String, val duration: Int? = null, ) internal fun TrackEntityModel.toDomainModel()...
15
Kotlin
897
6,503
de16176f6f4457c11a87bb085aa237d8231c8357
384
android-showcase
MIT License
app/src/androidTest/java/dev/dnihze/revorate/data/local/impl/LocalDataSourceImplTest.kt
dniHze
240,587,602
false
null
package dev.dnihze.revorate.data.local.impl import android.content.Context import androidx.room.Room import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import dev.dnihze.revorate.data.local.LocalDataSource import dev.dnihze.revorate.data.local.db.AppDB import dev.dni...
0
Kotlin
0
0
b88339e80817aacd841cdbc3a3bdf9950cc56f4b
4,874
xchanger
Apache License 2.0
app/src/androidTest/java/dev/dnihze/revorate/data/local/impl/LocalDataSourceImplTest.kt
dniHze
240,587,602
false
null
package dev.dnihze.revorate.data.local.impl import android.content.Context import androidx.room.Room import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import dev.dnihze.revorate.data.local.LocalDataSource import dev.dnihze.revorate.data.local.db.AppDB import dev.dni...
0
Kotlin
0
0
b88339e80817aacd841cdbc3a3bdf9950cc56f4b
4,874
xchanger
Apache License 2.0
src/main/kotlin/com/mineinabyss/deeperworld/player/FallingDamageManager.kt
MineInAbyss
139,809,904
false
{"Kotlin": 80001}
package com.mineinabyss.deeperworld.player import com.mineinabyss.deeperworld.deeperWorld import com.mineinabyss.deeperworld.extensions.getRootVehicle import org.bukkit.GameMode.ADVENTURE import org.bukkit.GameMode.SURVIVAL import org.bukkit.Particle import org.bukkit.entity.Player internal object FallingDamageManage...
2
Kotlin
10
23
b82ed570abd58be767afeb5b7244817c853e0332
1,463
DeeperWorld
MIT License
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/LaunchTemplateSpecificationPropertyDsl.kt
F43nd1r
643,016,506
false
null
package com.faendir.awscdkkt.generated.services.ec2 import com.faendir.awscdkkt.AwsCdkDsl import javax.`annotation`.Generated import kotlin.Unit import software.amazon.awscdk.services.ec2.CfnInstance @Generated public fun buildLaunchTemplateSpecificationProperty(initializer: @AwsCdkDsl CfnInstance.LaunchTemplateS...
1
Kotlin
0
0
e9a0ff020b0db2b99e176059efdb124bf822d754
505
aws-cdk-kt
Apache License 2.0
src/com/fantasticthing/github/feature/UserProfile.kt
werbhelius
163,853,791
false
null
package com.fantasticthing.github.feature import com.fantasticthing.github.cache.* import com.fantasticthing.github.exception.* import com.fantasticthing.github.helper.* import com.fantasticthing.github.http.* import com.fasterxml.jackson.annotation.* import kotlinx.coroutines.* /** * Created by wanbo on 2019-01-11....
0
Kotlin
2
21
8e3106ac28bbd3a74dafb9540a8c91b9be8d77a9
18,682
github-profile
Apache License 2.0
librettist-core/src/commonMain/kotlin/dev/bnorm/librettist/show/ShowOverview.kt
bnorm
767,108,847
false
{"Kotlin": 1443893}
package dev.bnorm.librettist.show import androidx.compose.animation.AnimatedContentScope import androidx.compose.animation.SharedTransitionScope import androidx.compose.animation.core.animateFloatAsState import androidx.compose.foundation.HorizontalScrollbar import androidx.compose.foundation.border import androidx.co...
0
Kotlin
0
6
e2bafa505d2fd2ed54e3bb5f6ab6dd7927374ee4
7,074
librettist
Apache License 2.0
app/src/main/java/com/adityaamolbavadekar/messenger/dialogs/Dialogs.kt
AdityaBavadekar
551,463,718
false
null
/* * * Copyright 2022 Aditya Bavadekar * * 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 ap...
3
Kotlin
0
1
7410e4b64ebcf9508e51da2eb105bad6f1cee431
14,510
Messenger
Apache License 2.0
solar/src/main/java/com/chiksmedina/solar/linear/electronicdevices/Smartphone2.kt
CMFerrer
689,442,321
false
{"Kotlin": 36591890}
package com.chiksmedina.solar.linear.electronicdevices import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeCap.C...
0
Kotlin
0
0
3414a20650d644afac2581ad87a8525971222678
3,730
SolarIconSetAndroid
MIT License
app/src/main/java/com/example/shoprocks/controller/MainActivity.kt
joaao-felipee22
177,352,193
false
null
package com.example.shoprocks.controller import android.content.Intent import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import com.example.shoprocks.R import com.example.shoprocks.Utilites.EXTRA_CATEGORY import com.example.shoprocks.adapter.C...
0
Kotlin
0
1
543521861133de415e46ea3e46c1e964501f8033
1,254
ShopRocks
MIT License
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Locationadd.kt
Tlaster
560,394,734
false
{"Kotlin": 25133302}
package moe.tlaster.icons.vuesax.vuesaxicons.bold import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Compa...
0
Kotlin
0
2
b8a8231e6637c2008f675ae76a3423b82ee53950
2,830
VuesaxIcons
MIT License
src/main/kotlin/org/hexworks/cavesofzircon/attributes/EntityActions.kt
Hexworks
163,445,624
false
null
package org.hexworks.cavesofzircon.attributes import org.hexworks.amethyst.api.Attribute import org.hexworks.amethyst.api.entity.EntityType import org.hexworks.cavesofzircon.commands.EntityAction import org.hexworks.cavesofzircon.extensions.GameEntity import org.hexworks.cavesofzircon.world.GameContext import kotlin.r...
6
Kotlin
11
14
cc1bf041b8b8632f61d5f275ad3a4ef90ae3a101
942
caves-of-zircon-tutorial-old
Apache License 2.0
compiler/testData/codegen/bytecodeText/lazyCodegen/negateConst.kt
JakeWharton
99,388,807
false
null
fun test4() { if (!false) { val p = 1 } } fun test5() { if (!true) { val p = 1 } } // 0 IF
179
null
5640
83
4383335168338df9bbbe2a63cb213a68d0858104
123
kotlin
Apache License 2.0
pleo-antaeus-app/src/main/kotlin/io/pleo/antaeus/app/config/AppConfiguration.kt
kwahome
221,972,777
true
{"Kotlin": 57534, "Shell": 861, "Dockerfile": 249}
package io.pleo.antaeus.app.config /** * Environment driven application configuration */ object AppConfiguration { // Database val DATABASE_URL: String = System.getenv("DATABASE_URL") ?: "jdbc:sqlite:/tmp/data.db" val DATABASE_USER: String = System.getenv("DATABASE_USERNAME") ?: "" val DATABASE_PASSW...
0
Kotlin
0
0
8c2d40bdb394dc8d0507d6e61c34fac3bef1d761
934
antaeus
Creative Commons Zero v1.0 Universal
src/main/kotlin/controllers/auth/ForgotPasswordController.kt
GideonBrimleaf
272,957,278
false
{"CSS": 1885652, "JavaScript": 475833, "Kotlin": 31875, "HTML": 14495, "Shell": 5706, "Vue": 4669, "Less": 402}
package com.alpaca.fireplace.controllers.auth import dev.alpas.auth.HandlesForgottenPassword import dev.alpas.routing.Controller class ForgotPasswordController : Controller(), HandlesForgottenPassword
18
CSS
0
0
5529fe018d3668fa5f4fbb0355875915b1ee90f8
202
alpacaFireplace
MIT License
Ppap/app/src/main/java/com/jeongg/ppap/domain/usecase/subscribe/GetSubscribeById.kt
PnuPostAlarmProject
674,548,015
false
{"Kotlin": 167989}
package com.jeongg.ppap.domain.usecase.subscribe import com.jeongg.ppap.data.dto.SubscribeWithContentDTO import com.jeongg.ppap.data.util.ApiUtils import com.jeongg.ppap.data.util.getErrorMessage import com.jeongg.ppap.domain.repository.SubscribeRepository import com.jeongg.ppap.util.Resource import io.ktor.client.cal...
2
Kotlin
0
2
425cc2b98a684669b47209d84652ec1eef0f30a4
1,343
android
MIT License
aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SmokeTestsDecorator.kt
smithy-lang
308,027,791
false
{"Rust": 4428309, "Kotlin": 3842117, "Smithy": 151231, "Python": 62946, "Shell": 49728, "TypeScript": 30713, "Dockerfile": 9790, "JavaScript": 5975, "Harbour": 5848, "Makefile": 5633, "CSS": 982, "RenderScript": 116}
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package software.amazon.smithy.rustsdk import software.amazon.smithy.aws.smoketests.model.AwsSmokeTestModel import software.amazon.smithy.model.Model import software.amazon.smithy.model.node.ObjectNode ...
300
Rust
188
504
8d8e7ab7aa6c3b388ffb2365a29ab03f87c24507
12,572
smithy-rs
Apache License 2.0
aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SmokeTestsDecorator.kt
smithy-lang
308,027,791
false
{"Rust": 4428309, "Kotlin": 3842117, "Smithy": 151231, "Python": 62946, "Shell": 49728, "TypeScript": 30713, "Dockerfile": 9790, "JavaScript": 5975, "Harbour": 5848, "Makefile": 5633, "CSS": 982, "RenderScript": 116}
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package software.amazon.smithy.rustsdk import software.amazon.smithy.aws.smoketests.model.AwsSmokeTestModel import software.amazon.smithy.model.Model import software.amazon.smithy.model.node.ObjectNode ...
300
Rust
188
504
8d8e7ab7aa6c3b388ffb2365a29ab03f87c24507
12,572
smithy-rs
Apache License 2.0
src/main/kotlin/dev/emortal/lazertag/gun/MobLobber.kt
emortalmc
380,550,461
false
null
package dev.emortal.lazertag.gun import dev.emortal.lazertag.game.LazerTagGame import dev.emortal.lazertag.game.LazerTagPlayerHelper.hasSpawnProtection import net.kyori.adventure.key.Key import net.kyori.adventure.sound.Sound import net.kyori.adventure.text.format.NamedTextColor import net.kyori.adventure.text.format....
8
Kotlin
0
2
a3d98f6fd3179383aa8fce282c139e35b12d3a8c
3,909
LazerTagOld
MIT License
tmdbapi/src/test/java/com/afterroot/tmdbapi/MoviesApiTest.kt
thesandipv
255,834,235
false
null
/* * Copyright (C) 2020-2021 <NAME> * 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...
10
Kotlin
0
3
a52a1b2e2fe370c43b68b7ab4c4b6f40a161b08f
8,625
watchdone
Apache License 2.0
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/servicediscovery/NonIpInstanceDsl.kt
cloudshiftinc
667,063,030
false
null
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") package cloudshift.awscdk.dsl.services.servicediscovery import cloudshift.awscdk.common.CdkDslMarker import kotlin.String import kotlin.collec...
1
Kotlin
0
0
17c41bdaffb2e10d31b32eb2282b73dd18be09fa
2,137
awscdk-dsl-kotlin
Apache License 2.0
data/RF02946/rnartist.kts
fjossinet
449,239,232
false
{"Kotlin": 8214424}
import io.github.fjossinet.rnartist.core.* rnartist { ss { rfam { id = "RF02946" name = "consensus" use alignment numbering } } theme { details { value = 3 } color { location { 4 to 7...
0
Kotlin
0
0
3016050675602d506a0e308f07d071abf1524b67
1,358
Rfam-for-RNArtist
MIT License
app/src/main/java/datanapps/recycleviewexample/multiview/adapter/ItemVH.kt
datanapps
398,742,055
false
null
package datanapps.recycleviewexample.multiview.models import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import datanapps.example.utils.loadImage import datanapps.recycleviewexample.R import datanapps.recycleviewexample.databinding...
0
Kotlin
0
2
8fe574bf927282bc472729d6a85c97e9b7babed6
3,813
RecycleViewExample
Apache License 2.0
lib_image_editor/src/main/java/technivance/github/io/rohyme/editimage/ImageEditorConstants.kt
Rohyme
213,674,613
false
null
package technivance.github.io.rohyme.editimage const val SOURCE_PATH = "source_path" const val FORCE_PORTRAIT = "force_portrait" const val FEATURES_SCREENS = "FEATURES_SCREENS" const val EDIT_IMAGE_REQUEST = 0x2333 val IS_IMAGE_EDITED = "is_image_edited" const val OUTPUT_PATH = "output_path"
1
null
1
1
2d5bde926e1e6c8e5350cb0a91a7dd99cc169787
294
ImageEditor
MIT License
src/main/kotlin/br/com/alura/forum/service/UsuarioService.kt
brunocorbetta
818,473,461
false
{"Kotlin": 11031}
package br.com.alura.forum.service import br.com.alura.forum.model.Usuario import br.com.alura.forum.repository.UsuarioRepository import org.springframework.stereotype.Service import java.util.* @Service class UsuarioService( private val repository: UsuarioRepository) { fun buscarPorID(id: Long): Usuario { ...
0
Kotlin
0
0
aec4501364d7d59cd440afd2311202b636558e06
371
SpringBoot-Kotlin
MIT License
idea/tests/testData/structuralsearch/binaryExpression/binaryIn.kt
JetBrains
278,369,660
false
null
val a = <warning descr="SSR">1 in 0..2</warning> val b = <warning descr="SSR">(0..2).contains(1)</warning> val c = (0..1).contains(1) val d = (0..2).contains(2) val e = 2 in 0..2 val f = 1 in 1..2 val g = 1 !in 0..2 val h = !(0..2).contains(1)
0
Kotlin
30
82
cc81d7505bc3e9ad503d706998ae8026c067e838
243
intellij-kotlin
Apache License 2.0
modules/system/src/main/kotlin/com/blank/system/controller/monitor/SysUserOnlineController.kt
qq781846712
705,955,843
false
{"Kotlin": 848578, "Vue": 376959, "TypeScript": 137544, "Java": 45954, "HTML": 29445, "SCSS": 19657, "JavaScript": 3399, "Batchfile": 2056, "Shell": 1786, "Dockerfile": 1306}
package com.blank.system.controller.monitor import cn.dev33.satoken.annotation.SaCheckPermission import cn.dev33.satoken.exception.NotLoginException import cn.dev33.satoken.stp.StpUtil import cn.hutool.core.bean.BeanUtil import com.blank.common.core.constant.CacheConstants import com.blank.common.core.domain.R import ...
1
Kotlin
0
0
f58ba79b345320f753a0694b158b9b0fac7f742e
3,274
Ruoyi-Vue-Plus-Kotlin
Apache License 2.0
app/src/main/java/com/volie/wallhalla/view/adapter/CollectionAdapter.kt
harunuyan
630,386,273
false
null
package com.volie.wallhalla.view.adapter import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.vol...
0
Kotlin
0
1
8b27718441a01e44d066296e369aef15a91cddf1
2,645
Wallhalla
The Unlicense
retrofit-extension/src/main/java/com/janphkre/laminat/retrofit/dsl/RetrofitPactDsl.kt
janphkre
213,916,389
false
null
package com.janphkre.laminat.retrofit.dsl import au.com.dius.pact.consumer.dsl.DslPart import au.com.dius.pact.consumer.dsl.PactDslRequestWithPath import au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath import au.com.dius.pact.consumer.dsl.PactDslResponse import au.com.dius.pact.external.PactBuildException impo...
0
Kotlin
0
0
2989ace01d054d94fb103b80553c7bae262e900b
1,887
laminat-retrofit
Apache License 2.0
kommerce-users/src/main/kotlin/com/github/kommerce/users/utils/EitherExt.kt
michalperlak
247,168,850
false
null
package com.github.kommerce.users.utils import arrow.core.Either import arrow.core.nonFatalOrThrow fun <T : Any> Either.Companion.of(supplier: () -> T): Either<Throwable, T> = try { right(supplier()) } catch (e: Throwable) { left(e.nonFatalOrThrow()) }
0
Kotlin
0
0
642fb6087e4a9ed8902c1fc5ef2927a6f324f657
262
kommerce
MIT License
gemini-core/src/commonMain/kotlin/com/haroncode/gemini/element/Bootstrapper.kt
Hukumister
237,633,280
false
{"Kotlin": 60496, "Ruby": 1563}
package com.haroncode.gemini.element import kotlinx.coroutines.flow.Flow /** * @author HaronCode * @author kdk96 */ fun interface Bootstrapper<Action> { fun bootstrap(): Flow<Action> }
9
Kotlin
4
24
d2a0a7362669abd3b0555f03daa6a558a1386f15
195
Gemini
MIT License
app/src/main/java/it/polito/lab5/navigation/AppNavigation.kt
pex9
839,250,967
false
{"Kotlin": 689571}
package it.polito.lab5.navigation import android.app.Activity import android.content.Intent import android.graphics.BitmapFactory import android.os.Build import android.util.Log import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.ActivityResultContracts import an...
0
Kotlin
0
0
19b32f956318a4ccb0315447d1d507e41b758640
18,035
CollaborAnt
MIT License
app/src/main/java/com/psliusar/layers/sample/screen/home/HomeLayer.kt
slesar
66,919,755
false
null
package com.psliusar.layers.sample.screen.home import android.os.Bundle import android.view.View import com.psliusar.layers.Layer import com.psliusar.layers.sample.MainActivity import com.psliusar.layers.sample.R class HomeLayer : Layer(R.layout.screen_home) { private val mainActivity: MainActivity get()...
0
Kotlin
0
2
393910b43d52cc1ddd9a3d5ac9d5f546873dd909
1,185
Layers
Apache License 2.0
core/src/main/kotlin/org/rewedigital/dialog/model/google/order/OrderUpdateActionType.kt
rewe-digital-incubator
169,550,416
false
null
package org.rewedigital.dialog.model.google.order enum class OrderUpdateActionType { UNKNOWN, VIEW_DETAILS, MODIFY, CANCEL, RETURN, EXCHANGE, EMAIL, CALL, REORDER, REVIEW, CUSTOMER_SERVICE, FIX_ISSUE }
3
Kotlin
5
10
7ea2fac743323acd9e17f41eb4511df1782b874d
250
dialog
MIT License
app/src/main/java/com/hashir/android/di/DatabaseModule.kt
hashir1296
397,981,718
false
null
package com.hashir.android.di import android.content.Context import androidx.room.Room import com.hashir.android.db.PhotoDao import com.hashir.android.db.PhotoDatabase import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.co...
0
Kotlin
0
0
ee3289cd2a671d892af1af1a38b9a59c445b9bb2
909
Airlift_Gallery
Apache License 2.0
state-coroutines/src/commonTest/kotlin/ProgressiveFlowAccessorsTest.kt
CLOVIS-AI
582,958,014
false
{"Kotlin": 165993, "Shell": 556, "Dockerfile": 339}
package opensavvy.state.coroutines import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.test.runTest import opensavvy.progress.loading import opensavvy.state.outcome.Outcome import opensavvy.state.progressive.ProgressiveOutcome import kotlin.test.Test impo...
0
Kotlin
0
0
64a335b93892335f7361b282b8ebc9fd0c8c40c0
1,182
Pedestal
Apache License 2.0
lambda/src/main/typings/shield.module_aws-sdk.kt
kartoffelsup
252,152,703
false
null
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION") import kotlin.js.* import kotlin.js.Json import org.khronos.webgl.* import org.w3c.dom.* import org.w3c.dom.events.* import org.w3c.dom.parsing.* import org.w3c.dom...
0
Kotlin
0
0
6c20e6277ea66e531b4b46017faa10270b25b8bc
22,549
kt-js-lambda-cdk-test
Apache License 2.0
vendor/vendor-android/src/main/kotlin/com/malinskiy/marathon/android/RemoteFileManager.kt
Atmosfearzx
204,862,673
true
{"Kotlin": 394025, "JavaScript": 40471, "CSS": 29266, "HTML": 2960, "Shell": 1043}
package com.malinskiy.marathon.android import com.android.ddmlib.AdbCommandRejectedException import com.android.ddmlib.IDevice import com.android.ddmlib.IDevice.MNT_EXTERNAL_STORAGE import com.android.ddmlib.NullOutputReceiver import com.android.ddmlib.ShellCommandUnresponsiveException import com.android.ddmlib.Timeou...
0
Kotlin
0
0
569c6df350f5c1734f2476347e27aec641ab8c36
2,114
marathon
Apache License 2.0
cdm-support-contracts-states/src/main/kotlin/net/corda/cdmsupport/StatesAndContracts.kt
corda
212,083,895
false
null
package net.corda.cdmsupport import net.corda.core.contracts.CommandData import net.corda.core.contracts.Contract import net.corda.core.transactions.LedgerTransaction import org.isda.cdm.Event import java.math.BigDecimal import java.time.LocalDate class CDMEvent : Contract { companion object { val ID = ...
1
Kotlin
8
3
f642ff852bdaf6d770048a545cb899ceadb95087
745
barclays-derivhack
Apache License 2.0
app/src/main/java/edu/uw/ischool/opensecrets/util/JournalManager.kt
freymend
724,478,338
false
{"Kotlin": 57762}
package edu.uw.ischool.opensecrets.util import android.content.Context import android.util.Log import android.widget.Toast import edu.uw.ischool.opensecrets.model.Entry import org.json.JSONArray import org.json.JSONException import org.json.JSONObject import java.io.File import java.io.FileReader import java.io.FileWr...
9
Kotlin
0
0
3129275cd1c67f666fca4e8f70213032811936ee
7,186
Open-Secrets
MIT License
src/main/kotlin/katas/1.vowelCount.kt
ch8n
312,467,034
false
{"Kotlin": 127282}
// * Source: https://www.codewars.com/kata/54ff3102c1bad923760001f3 @file:Suppress("PackageDirectoryMismatch") package katas.vowelCount fun main() { val input = "The greatest victory is that which requires no battle" println("======== Chetan ==========") println("input size :${input.length} vowels coun...
3
Kotlin
0
2
0556b164c4679aeb557c6dc2b5029e0d4aebc8d5
1,397
Big-Brain-Kotlin
Apache License 2.0
app/src/main/java/com/polippo/imcapplication/MainActivity.kt
luispolippo
343,871,410
false
null
package com.polippo.imcapplication import android.graphics.Color import android.os.Build import android.os.Bundle import androidx.annotation.RequiresApi import androidx.appcompat.app.AppCompatActivity import com.google.android.material.snackbar.Snackbar import kotlinx.android.synthetic.main.activity_main.* class Main...
0
Kotlin
0
0
0a24569c4609e43ca5a17359eaff09a655bff20e
3,165
Aplicativo-Calculadora-IMC
MIT License
jstressy-platform/jstressy-api/src/main/kotlin/com/github/timofeevda/jstressy/api/config/parameters/StressyMetricsSummaryDefinition.kt
timofeevda
126,821,248
false
{"Kotlin": 295149, "Dockerfile": 1313, "Shell": 214}
package com.github.timofeevda.jstressy.api.config.parameters interface StressyMetricsSummaryDefinition { var interval: String }
0
Kotlin
1
2
0472f11939bad6339750a6a1d66d4b774bd4db15
132
jstressy
MIT License
src/main/java/com/littlelito/wzry/item/WzryArmorMaterials.kt
LittleLito
395,302,530
false
{"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "INI": 1, "Java": 20, "Kotlin": 47, "JSON": 62}
package com.littlelito.wzry.item import net.minecraft.entity.EquipmentSlot import net.minecraft.item.Items import net.minecraft.sound.SoundEvents class WzryArmorMaterials { // COMMON val BUJIA = WzryArmorMaterial( "bu_jia", EquipmentSlot.CHEST, 500, 90, 8, Sound...
0
Kotlin
0
0
4703b93fbd0b2deeae4e51f9fa04042412828643
2,758
Wzry-Fabric
MIT License
common/src/main/java/com/sec/common/data/response/OfficialNewsJson.kt
liuhuiAndroid
311,604,995
false
null
package com.sec.common.data.response import com.squareup.moshi.JsonClass /** * 系统消息 */ @JsonClass(generateAdapter = true) data class OfficialNewsJson( val SysInfoId: String?, val Title: String?, val InfoContent: String?, val PushTime: Long = 0, val infoType: Int?, val converImgUrl: String?, ...
0
Kotlin
0
1
2ccbf66a540cc4db738f9d3e0fdcc6f5db014526
351
fizz
MIT License
src/loop-and-increment-operator.kt
Dev-HyunSang
449,552,680
false
{"Kotlin": 5214}
fun main() { var a = 0 // while에 포함된 조건식이 참인지 확인 // 다시 while 문으로 돌아와서 조건을 확인하게 됨 // while문이 거짓이 되는 순간 반복을 중단하고 다음 구문으로 넘어가게 됨 // 반복시마다 a가 1씩 증가되기 때문에 0, 1, 2, 3, 4가 찍힘 while(a < 5) { // 참이라면 while에 따르는 구문을 1회 수행 println(a++) } println("==============") var b = 0 ...
0
Kotlin
0
0
3122ad618a0eea1815266993a1cb02d58af5bf65
961
Study-Kotlin-Basic
MIT License
source-local/src/commonMain/kotlin/tachiyomi/source/local/io/Archive.kt
mihonapp
743,704,912
false
{"Kotlin": 2817318}
package tachiyomi.source.local.io import com.hippo.unifile.UniFile import tachiyomi.core.storage.extension object Archive { private val SUPPORTED_ARCHIVE_TYPES = listOf("zip", "cbz", "rar", "cbr", "epub") fun isSupported(file: UniFile): Boolean { return file.extension in SUPPORTED_ARCHIVE_TYPES ...
143
Kotlin
98
3,189
222e111806aeeec526d1a65e37c1d0002cd6c863
324
mihon
Apache License 2.0
app/src/main/java/com/shevelev/my_footprints_remastered/ui/activity_main/fragment_gallery_grid/model/GalleryGridFragmentModel.kt
AlShevelev
283,178,554
false
null
package com.shevelev.my_footprints_remastered.ui.activity_main.fragment_gallery_grid.model import com.shevelev.my_footprints_remastered.common_entities.Footprint import com.shevelev.my_footprints_remastered.ui.activity_main.fragments_data_flow.delete.DeleteFootprintDataFlowConsumer import com.shevelev.my_footprints_re...
0
Kotlin
0
1
6894f98fb439f30ef7a9988043ace059b844c81b
1,003
MyFootprints_remastered
Apache License 2.0
app/src/main/kotlin/org/sirekanyan/devtools/Settings.kt
sirekanian
745,856,082
false
{"Kotlin": 12961, "Shell": 483}
package org.sirekanyan.devtools import android.content.ContentResolver import android.provider.Settings.Global import android.provider.Settings.System class Settings(val resolver: ContentResolver) { var dev: Int by GlobalSetting(Global.DEVELOPMENT_SETTINGS_ENABLED) var adb: Int by GlobalSetting(Global.ADB_EN...
0
Kotlin
0
0
c8a8ebc64f68b476d691e3a1c675aa9ee266feb1
1,683
devtools
MIT License
plugins/kotlin/idea/tests/testData/inspectionsLocal/enumValuesSoftDeprecate/noOptIn.kt
JetBrains
2,489,216
false
null
// COMPILER_ARGUMENTS: -XXLanguage:-EnumEntries // PROBLEM: none enum class EnumClass fun foo() { EnumClass.values<caret>() }
214
null
4829
15,129
5578c1c17d75ca03071cc95049ce260b3a43d50d
130
intellij-community
Apache License 2.0
app/src/main/java/at/mintech/nftmaker/domain/GetBalance.kt
schauersbergern
401,134,559
false
null
package at.mintech.nftmaker.domain import at.mintech.nftmaker.contracts.MyToken import at.mintech.nftmaker.helper.usecase.AsyncUseCase import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import java.math.BigInteger import java.util.concurrent.Future class GetBalance ( private val token: My...
0
null
1
3
ab06a4ad3d9bcff9eb858aed1d8c679b93ad85f0
668
NFT-creator
MIT License
features/movies/src/main/java/com/lcabral/features/movies/data/model/MovieResponse.kt
LucianaCabral
635,352,087
false
null
package com.lcabral.features.movies.data.model import com.google.gson.annotations.SerializedName internal data class MovieResponse( @SerializedName("id") val id: Int, @SerializedName("title") val name: String? = null, @SerializedName("description") val description: String? = null, @Seriali...
1
Kotlin
0
0
e7089d0ad52e4623a83b5809e8caf3678a1277ad
381
art_seventh
MIT License
comments-stubs/src/commonMain/kotlin/com/crowdproj/comments/stubs/CommentsStub.kt
crowdproj
508,567,511
false
{"Kotlin": 256828, "Shell": 730, "Dockerfile": 364}
package com.crowdproj.comments.stubs import com.crowdproj.comments.common.models.* import com.crowdproj.comments.stubs.CommentStubReview.COMMENT_REVIEW object CommentsStub { fun get(): Comment = COMMENT_REVIEW.copy() fun prepareResult(block: Comment.() -> Unit): Comment = get().apply(block) fun prepareS...
0
Kotlin
2
1
caa08972303f1667121a489deb6379bc1dc1315b
1,588
crowdproj-comments
Apache License 2.0
compiler/testData/codegen/box/inlineClasses/callableReferences/equalsHashCodeToStringGeneric.kt
JetBrains
3,432,266
false
{"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML...
// WITH_REFLECT // WITH_STDLIB // WORKS_WHEN_VALUE_CLASS // LANGUAGE: +ValueClasses, +GenericInlineClassParameter import kotlin.test.* OPTIONAL_JVM_INLINE_ANNOTATION value class Z<T: String>(val s: T) fun box(): String { val a = Z("a") val b = Z("b") val equals = Z<String>::equals assertTrue(equals....
181
Kotlin
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
574
kotlin
Apache License 2.0
android/app/src/main/java/com/algorand/android/discover/home/ui/DiscoverHomeViewModel.kt
perawallet
364,359,642
false
{"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596}
/* * Copyright 2022 Pera Wallet, LDA * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing,...
22
Swift
62
181
92fc77f73fa4105de82d5e87b03c1e67600a57c0
8,126
pera-wallet
Apache License 2.0
src/main/kotlin/me/darefox/discordfreq/MessageCleaner.kt
DareFox
787,890,125
false
{"Kotlin": 8997}
package me.darefox.discordfreq import kotlinx.coroutines.* data class CleanMessage( val header: String, val cleanLines: List<String>, ) object MessageCleaner { val scope = CoroutineScope(Dispatchers.Default + CoroutineName("MessageCleanerScope")) /** * Remove embeds, attachments, urls in message...
0
Kotlin
0
0
4eceb8e7a6657be429e31b3c3e327ce9c3eeb1f4
1,858
DiscordExportFrequencyList
MIT License
jvm-common/src/main/kotlin/org/digma/intellij/plugin/idea/execution/JavaToolOptionsBuilder.kt
digma-ai
472,408,329
false
null
package org.digma.intellij.plugin.idea.execution import com.intellij.execution.configurations.RunConfigurationBase import com.intellij.execution.configurations.SimpleProgramParameters import org.digma.intellij.plugin.env.Env import org.digma.intellij.plugin.settings.SettingsState open class JavaToolOptionsBuilder( ...
427
null
7
22
8995a81e2ede5d60ec5979319a876a1a9026b922
5,988
digma-intellij-plugin
MIT License
src/DcircleChainP-Node/ktdbtable/src/main/java/com/github/xpwu/ktdbtable/where/logic.kt
wanxiang-blockchain
683,936,032
false
{"Kotlin": 564771, "Java": 393645, "TypeScript": 313064, "Go": 182715, "SCSS": 72564, "CSS": 6411, "Solidity": 4012, "JavaScript": 2433, "HTML": 2352}
package com.github.xpwu.ktdbtable.where abstract class logic(private val wheres: Array<Where>) : Where { override val BindArgs: Array<String> by lazy { val list = ArrayList<String>() for (where in wheres) { list.addAll(where.BindArgs) } list.toArray(emptyArray()) } } class And(wheres: Array...
0
Kotlin
8
29
d3a91f9fb7b0a5b29806bcd2968e4dc8d894581b
1,825
2023WXH-DcircleChain
MIT License
glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiver.kt
seanbirke
407,611,162
true
{"Java": 50920169, "Kotlin": 39942352, "Python": 341020, "AIDL": 186810, "Shell": 161083, "C++": 45594, "ANTLR": 19860, "HTML": 10802, "TypeScript": 6933, "JavaScript": 4866, "CMake": 4279, "Objective-C++": 3190}
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
0
Java
0
0
a66982d33d367f627365cf028ef2efa39b9785fb
2,580
androidx
Apache License 2.0
src/main/kotlin/me/odinclient/features/impl/render/NickHider.kt
odtheking
657,580,559
false
null
package me.odinclient.features.impl.render import me.odinclient.features.Category import me.odinclient.features.Module import me.odinclient.features.settings.impl.StringSetting /** * @see me.odinclient.mixin.MixinFontRenderer */ object NickHider : Module( name = "<NAME>", category = Category.RENDER,...
14
Kotlin
1
11
e96e06b423781796c35ff9e7a05ae52226c4f987
434
OdinClient
The Unlicense
src/main/kotlin/astminer/parse/antlr/python/AntlrPythonFunctionInfo.kt
JetBrains-Research
161,813,380
false
{"Gradle Kotlin DSL": 2, "Shell": 2, "Dockerfile": 1, "INI": 3, "Kotlin": 157, "YAML": 6, "Text": 5, "Ignore List": 1, "Batchfile": 1, "Markdown": 8, "Java": 22, "Python": 15, "JavaScript": 2, "C++": 9, "PHP": 2, "ANTLR": 7}
package astminer.parse.antlr.python import astminer.common.model.* import astminer.parse.antlr.* import astminer.parse.findEnclosingElementBy import mu.KotlinLogging private val logger = KotlinLogging.logger("Antlr-python-function-info") class AntlrPythonFunctionInfo(override val root: AntlrNode, override val filePa...
12
Kotlin
80
279
8e7872fa78983b3b9b4ff4b9f70d24cc4dfed280
4,733
astminer
MIT License
core/src/test/kotlin/com/malinskiy/marathon/execution/SimpleClassnameFilterTest.kt
TimoPtr
252,791,707
true
{"Kotlin": 421428, "JavaScript": 40712, "CSS": 29266, "HTML": 2925, "Shell": 1904}
package com.malinskiy.marathon.execution import org.amshove.kluent.shouldEqual import org.junit.jupiter.api.Test import com.malinskiy.marathon.test.Test as MarathonTest class SimpleClassnameFilterTest { private val simpleTest = stubTest("SimpleTest") private val complexTest = stubTest("ComplexTest") priva...
0
null
0
0
e676c3f970c6a0da89217d03ac7d17eb48faefcf
920
marathon
Apache License 2.0
src/main/kotlin/flowables/01-Flowable1.kt
mkdika
152,165,665
false
null
package flowables import io.reactivex.Flowable import io.reactivex.schedulers.Schedulers import kotlinx.coroutines.delay import kotlinx.coroutines.runBlocking /** * Flowable are same as Observable, except Flowable have a backpressure feature. * Default buffer for backpressure is 128. */ fun main() { Flowable.r...
0
Kotlin
0
0
89d6a6c38d669684b7cefe4e8a2ffb3a3a3f9881
676
learn-rxkotlin
MIT License
compiler/test/data/typescript/node_modules/names/nameCollision.d.kt
Kotlin
159,510,660
false
{"Kotlin": 2656818, "WebIDL": 323681, "TypeScript": 135641, "JavaScript": 19475, "ANTLR": 11333}
// [test] nameCollision.module_resolved_name.kt @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS") import kotlin.js.* import org.khronos.webgl.* import org.w3c.dom.* import org.w3c.dom.events.* import org.w3c.dom.parsing.* import org.w3c....
244
Kotlin
42
535
d50b9be913ce8a2332b8e97fd518f1ec1ad7f69e
752
dukat
Apache License 2.0
app/src/main/java/com/dreamit/androidquiz/quizlist/presenter/QuizzesPresenter.kt
mkAndroDev
142,674,492
false
null
package com.dreamit.androidquiz.quizlist.presenter import com.dreamit.androidquiz.data.quizzes.QuizzesRepository import com.dreamit.androidquiz.quizlist.QuizzesContract import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.schedulers.Schedulers class QuizzesPresenter( private val quizze...
0
Kotlin
0
0
eabf29df22080fcb6c4656b638ef1f6c5cc004f4
1,383
AndroidQuiz
MIT License
utbot-analytics/src/main/kotlin/org/utbot/features/Transform.kt
UnitTestBot
480,810,501
false
null
package org.utbot.features import org.utbot.models.ClassifierModel import org.utbot.models.DataFrameClassifierAdapter import smile.data.DataFrame import smile.data.formula.Formula import smile.feature.* import smile.math.MathEx import smile.math.matrix.Matrix import smile.projection.GHA import smile.projection.LinearP...
397
Kotlin
32
91
f9c95348acb59c1b4fc212ecb36e6b2968e9ac5a
5,984
UTBotJava
Apache License 2.0
.support/module-generator/src/main/kotlin/app/immich/kmp/module/generator/ui/GeneratorErrorDialog.kt
eygraber
738,812,490
false
{"Kotlin": 251181, "Shell": 1809, "JavaScript": 1484, "Swift": 615, "HTML": 567}
package app.immich.kmp.module.generator.ui import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material...
4
Kotlin
0
2
48faf2af41557f9aa94db98c45fba2016c2e79de
1,819
immich-kmp
MIT License
app/common/src/commonMain/kotlin/com/denchic45/studiversity/data/storage/local/SubmissionAttachmentLocalStorage.kt
denchic45
435,895,363
false
{"Kotlin": 2110094, "Vue": 15083, "JavaScript": 2830, "CSS": 1496, "HTML": 867}
package com.denchic45.studiversity.data.storage.local import com.denchic45.studiversity.util.SystemDirs import com.denchic45.studiversity.util.clearAndDelete import me.tatarka.inject.annotations.Inject import java.io.File import java.io.FileOutputStream @Inject class SubmissionAttachmentLocalStorage(systemDirs: Syste...
0
Kotlin
0
7
293132d2f93ba3e42a3efe9b54deb07d7ff5ecf9
1,643
Studiversity
Apache License 2.0
bindings-graalvm240/src/jvmMain/kotlin/host/module/emscripten/function/HandleStackOverflow.kt
illarionov
848,247,126
false
{"Kotlin": 991649}
/* * Copyright 2024, the wasi-emscripten-host project authors and contributors. Please see the AUTHORS file * for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. * SPDX-License-Identifier: Apache-2.0 */ package at.released.weh.bindings.graalvm240.host.m...
0
Kotlin
0
2
eac1f7473d21ca17c16e4b1b01185c9e4c7c81a5
1,641
wasi-emscripten-host
Apache License 2.0
shared/src/commonMain/kotlin/com/yuroyami/syncplay/utils/PlaylistUtils.kt
yuroyami
450,707,404
false
{"Kotlin": 858690, "C++": 18246, "Java": 6481, "Swift": 4707, "Ruby": 2472, "Makefile": 2098, "C": 1310}
package com.yuroyami.syncplay.utils import com.yuroyami.syncplay.protocol.JsonSender import com.yuroyami.syncplay.settings.DataStoreKeys import com.yuroyami.syncplay.settings.valueBlockingly import com.yuroyami.syncplay.settings.writeValue import com.yuroyami.syncplay.watchroom.dispatchOSD import com.yuroyami.syncplay...
23
Kotlin
5
130
72801c0fc9abd7005dda19509eeb10108ff27f71
7,276
syncplay-mobile
Intel Open Source License
cams-component-mvvm/src/main/java/com/linwei/cams/component/mvvm/mvvm/MvvmMode.kt
WeiShuaiDev
390,640,743
false
null
package com.linwei.cams.component.mvvm.mvvm interface MvvmMode { }
0
Kotlin
0
0
43a8a8327abb1ae2d3fd9881906bc59e32fc7b7f
67
CamsModular
Apache License 2.0
app/src/main/kotlin/com/alexvanyo/composelife/ui/util/AnimatePlacement.kt
alexvanyo
375,146,193
false
null
package com.alexvanyo.composelife.ui.util import androidx.compose.animation.core.Animatable import androidx.compose.animation.core.AnimationSpec import androidx.compose.animation.core.AnimationVector2D import androidx.compose.animation.core.Spring import androidx.compose.animation.core.VectorConverter import androidx....
7
Kotlin
0
3
d8410d3a4bef0d3e9dea5041aaa2b8250afc1eb4
2,192
composelife
Apache License 2.0
app/src/main/java/com/example/wordsapp/AAA.kt
PavlovVitalii
477,381,664
false
{"Kotlin": 25996}
package com.example.wordsapp class AAA { }
0
Kotlin
0
0
b85d50f030735a1b54d32b652217eafc60aba654
43
Android-Basics-in-Kotlin_Task_3.1
Apache License 2.0
comm_util_library/src/main/java/com/ls/comm_util_library/ReuseViewPagerAdapter.kt
Kyoto36
281,307,648
false
{"Java": 852737, "Kotlin": 448639, "Shell": 483}
package com.ls.comm_util_library import android.view.View import android.view.ViewGroup import android.widget.ImageView import androidx.viewpager.widget.PagerAdapter import java.util.* /** * 每个item都一样才能使用这个,不然会出现找不到view的情况 */ abstract class ReuseViewPagerAdapter<T>(datas: MutableList<T>?): PagerAdapter(){ prote...
1
null
1
1
eab64603b4365fd62e394e0ffe94553be9b2e495
1,929
AndroidUtil
Apache License 2.0
amazon-chime-sdk/src/main/java/com/amazonaws/services/chime/sdk/meetings/audiovideo/audio/activespeakerpolicy/ActiveSpeakerPolicy.kt
aws
249,543,698
false
{"Kotlin": 1208724, "Java": 4778, "Shell": 119}
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package com.amazonaws.services.chime.sdk.meetings.audiovideo.audio.activespeakerpolicy import com.amazonaws.services.chime.sdk.meetings.audiovideo.AttendeeInfo import com.amazonaws.services.chime.sdk.mee...
32
Kotlin
53
99
9d764981cd426b57ac1d0908a598a7072243ebb0
941
amazon-chime-sdk-android
Apache License 2.0
src/main/java/com/silverhetch/vesta/downloads/Download.kt
LarryHsiao
164,227,499
false
{"Gradle": 2, "Markdown": 1, "YAML": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Java Properties": 1, "Java": 1, "Kotlin": 56, "SQL": 3, "XML": 10}
package com.silverhetch.vesta.downloads import java.net.URI /** * The download entry */ interface Download { /** * Id of this entry */ fun id(): Long /** * Uri of this entry */ fun uri(): URI /** * Delete this entry */ fun delete() }
5
null
1
1
5795894581bf205518a8dcca48cd1d3ca240d372
293
Vesta
MIT License
compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt
JakeWharton
99,388,807
false
null
// !WITH_NEW_INFERENCE // KT-7383 Assertion failed when a star-projection of function type is used fun foo() { val f : Function1<*, *> = { x -> x.toString() } <!OI;MEMBER_PROJECTED_OUT!>f<!>(<!NI;CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>) }
0
null
28
83
4383335168338df9bbbe2a63cb213a68d0858104
246
kotlin
Apache License 2.0
app/src/main/java/alex/orobinsk/vortex/domain/repository/FirebaseRepository.kt
icetick
167,527,677
false
null
package alex.orobinsk.vortex.domain.repository import alex.orobinsk.vortex.domain.Repository import com.google.android.gms.tasks.Task import com.google.firebase.firestore.FirebaseFirestore import com.google.firebase.firestore.QuerySnapshot import kotlinx.coroutines.Deferred class FirebaseRepository<T: Any>: Repositor...
0
Kotlin
0
0
1427a96a0ec752f69397721d75f481d6da26a247
1,491
VorteX
MIT License
app/src/main/java/org/wikipedia/feed/announcement/AnnouncementList.kt
greatfire
460,298,221
false
null
package org.wikipedia.feed.announcement import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable class AnnouncementList { @SerialName("announce") val items: List<Announcement> = emptyList() }
2
null
4
38
8c8de602274b0132fc5d22b394a2c47fcd0bf2eb
242
apps-android-wikipedia-envoy
Apache License 2.0
src/main/java/com/distillery/intentsender/ui/views/history/HistoryListCellRenderer.kt
vfarafonov
42,303,445
false
null
package com.distillery.intentsender.ui.views.history import com.distillery.intentsender.adb.AdbHelper.CommandType.* import com.distillery.intentsender.domain.command.Command import com.distillery.intentsender.models.IntentFlags import java.awt.Component import javax.swing.BorderFactory import javax.swing.DefaultListCe...
1
null
5
40
8adbbbe8af787ebe0df7369bbc4538149a68a9d9
4,178
idea-intent-sender-plugin
Apache License 2.0
ide-common/src/main/kotlin/org/digma/intellij/plugin/ui/panels/DigmaTabPanel.kt
digma-ai
472,408,329
false
null
package org.digma.intellij.plugin.ui.panels import javax.swing.JComponent abstract class DigmaTabPanel: DigmaResettablePanel() { abstract fun getPreferredFocusableComponent(): JComponent abstract fun getPreferredFocusedComponent(): JComponent }
264
Kotlin
4
7
ec199eb6f3eca60536282b9fe2c9fbca3e581b45
254
digma-intellij-plugin
MIT License
platform/platform-impl/src/com/intellij/ui/dsl/builder/components/DslLabel.kt
SysBind
202,502,390
false
{"Text": 6449, "XML": 6497, "YAML": 418, "Ant Build System": 12, "Shell": 561, "Markdown": 578, "Ignore List": 96, "Git Attributes": 10, "EditorConfig": 237, "Batchfile": 26, "SVG": 2676, "Java": 77500, "Kotlin": 43919, "Java Properties": 200, "HTML": 2921, "INI": 431, "JFlex": 31, "JSON": 1147, "CSS": 64, "Groovy": 34...
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ui.dsl.builder.components import com.intellij.lang.documentation.DocumentationMarkup.EXTERNAL_LINK_ICON import com.intellij.openapi.ui.pane...
1
null
1
1
0eb0bc0905884e3fa5027883af926427e21a3cea
4,653
intellij-community
Apache License 2.0
feedback/src/main/java/de/hpi/android/feedback/data/FeedbackDto.kt
HPI-de
168,352,832
false
null
package de.hpi.android.feedback.data import de.hpi.android.core.data.Dto import de.hpi.android.core.data.Id import org.threeten.bp.ZonedDateTime import java.io.File import java.net.URI data class FeedbackDto( val message: String, val meta: Metadata ) : Dto<FeedbackDto> { override val id: Id<FeedbackDto> =...
48
null
1
7
65c00f511f2eff3e1c08fe67fda1bc2dac85daba
990
hpi-android
Apache License 2.0
app/src/main/java/com/gatheringhallstudios/mhworlddatabase/features/weapons/WeaponTreeListAdapterDelegate.kt
lzacchi
171,955,440
false
{"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Text": 1, "Proguard": 1, "JSON": 1, "Kotlin": 158, "XML": 276, "Java": 26, "YAML": 1}
package com.gatheringhallstudios.mhworlddatabase.features.weapons import android.annotation.SuppressLint import android.content.Context import androidx.core.content.ContextCompat import androidx.recyclerview.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup i...
1
null
1
1
5c1036b72e40c84ac755dabf2d99f9d33e39fc04
15,501
MHWorldDatabase
MIT License
cloud/aws/src/main/java/com/nimbusframework/nimbusaws/clients/queue/InvalidQueueUrlException.kt
thomasjallerton
163,180,980
false
null
package com.nimbusframework.nimbusaws.clients.queue class InvalidQueueUrlException: Exception("Not a valid queue url. Have you set up the @UsesQueue com.nimbusframework.nimbuscore.annotation correctly?")
12
Kotlin
4
37
2f3580ceab4c32f8900941da833b1d474eb0098c
204
nimbus-core
MIT License
AgqrPlayer4Tv/app/src/main/java/org/misuzilla/agqrplayer4tv/infrastracture/webview/AgWebViewClient.kt
mayuki
41,623,758
false
null
package org.misuzilla.agqrplayer4tv.infrastracture.webview import android.webkit.WebView import android.webkit.WebViewClient class AgWebViewClient(injectScriptOnPageFinished: String) : WebViewClient() { val injectScriptOnPageFinished: String = injectScriptOnPageFinished override fun onPageFinished(view: WebV...
0
Kotlin
1
7
6997399f88d886526b62a2f0ac83139ad3dc87eb
454
AgqrPlayer4Tv
MIT License
sample/src/main/java/com/example/webtrekk/androidsdk/WebViewActivity.kt
mapp-digital
166,987,236
false
{"Kotlin": 404571, "Java": 14412}
/* * MIT License * * Copyright (c) 2019 Webtrekk GmbH * * 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, co...
2
Kotlin
2
13
7cd788ba075d62ebe09d2697dae83868f0cd7b2d
2,626
mapp-intelligence-android-sdk-v5
MIT License
sqs/src/main/kotlin/com/github/awstestkit/sqs/junit5/QueueUrlParameterResolver.kt
arhohuttunen
335,994,067
false
{"Kotlin": 79705, "Shell": 1172}
package com.github.awstestkit.sqs.junit5 import com.github.awstestkit.AwsClientFactory import org.junit.jupiter.api.extension.ExtensionContext import org.junit.jupiter.api.extension.ParameterContext import org.junit.jupiter.api.extension.ParameterResolver import software.amazon.awssdk.services.sqs.SqsClient import sof...
1
Kotlin
2
3
34a133bcde25840f358d44140f2c8783c4b3709b
1,042
awstestkit
MIT License
rewrite-gradle/src/test/kotlin/org/openrewrite/gradle/ChangeJavaCompatibilityTest.kt
mit-shiv
508,889,623
true
{"INI": 2, "Gradle Kotlin DSL": 29, "Shell": 6, "Markdown": 8, "Git Attributes": 1, "Batchfile": 2, "Text": 6, "Ignore List": 3, "Kotlin": 492, "Java": 914, "YAML": 30, "JSON": 2, "ANTLR": 19, "Groovy": 2, "XML": 1}
/* * Copyright 2022 the original author or authors. * <p> * 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 * <p> * https://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by...
0
null
0
0
5b5642dc5cbda249f3872714fcb3abd4f9d0e3f2
8,984
rewrite
Apache License 2.0
core/src/main/kotlin/com/snim/core/NumericStringSlotBased.kt
Team-Smeme
615,970,561
false
{"Java": 18895, "Kotlin": 10929}
package com.snim.core import com.snim.core.exception.CommonException interface NumericStringSlotBased : StringSlotBased { fun getNo(): Long fun getDelimiter(): Int override fun getSlot(): String { if (getDelimiter() == 0) { throw CommonException("delimiter cannot be 0") } ...
1
null
1
1
613c4d79f9cf65099c52ea3579b32f89bf69f4f4
377
platform
MIT License
engine-core/src/main/kotlin/gabek/engine/core/util/symbol/SymbolMap.kt
gabe00122
77,073,648
false
null
package gabek.engine.core.util.symbol import java.util.ArrayList import kotlin.reflect.KClass /** * @author <NAME> * @date 7/29/2017 */ class SymbolMap<S: Symbol, T>( val symbolClass: KClass<S>, private val defaultValue: () -> T ){ private val data = ArrayList<T>() operator fun get(symbol:...
0
Kotlin
0
0
6b76a69cca2baa43b743c7a30822cf4f532a67c6
952
GameEngine
MIT License
ui/src/main/java/com/riteshakya/ui/components/DoubleSidedSwitch.kt
riteshakya037
192,150,019
false
null
package com.riteshakya.ui.components import android.content.Context import android.util.AttributeSet import android.view.LayoutInflater import android.widget.Checkable import androidx.constraintlayout.widget.ConstraintLayout import com.riteshakya.ui.R import io.reactivex.Observable import io.reactivex.subjects.Publish...
1
Kotlin
1
5
576748e584023f72c198282082cb9451aafcc360
2,464
multiple-app-modules
MIT License
navigation-base/src/main/java/ru/touchin/roboswag/navigation_base/keyboard_resizeable/KeyboardBehaviorDetector.kt
TouchInstinct
148,156,940
false
null
package ru.touchin.roboswag.navigation_base.keyboard_resizeable import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import androidx.fragment.app.FragmentActivity import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleObserver import androidx.lifecycle.OnLifecycleEvent /**...
15
null
6
21
3b35c16cde524bf4400ad29f34c71fde2001a2e2
2,512
RoboSwag
Apache License 2.0
src/test/kotlin/com/msagi/recordtagger/restapi/records/UpdateRecordTest.kt
msagi
120,796,580
false
null
package com.msagi.recordtagger.restapi.records import com.msagi.recordtagger.restapi.RestApiTest import org.hamcrest.CoreMatchers import org.junit.Test class UpdateRecordTest : RestApiTest() { @Test fun testUpdateRecordSuccess() { val recordValue = "recordValue" val recordValue2 = "recordValu...
0
Kotlin
0
0
d7c028664933d58f927654ade9d1713f71ca64c1
1,431
record-tagger
Apache License 2.0
android/app/src/main/kotlin/com/stocks/stocks_app_flutter/MainActivity.kt
msantagiulianab
287,285,923
false
{"Dart": 6423, "Swift": 404, "Kotlin": 131, "Objective-C": 38}
package com.stocks.stocks_app_flutter import io.flutter.embedding.android.FlutterActivity class MainActivity : FlutterActivity()
0
Dart
1
0
ada09ed764bdde8c943cab9fc1580f552949b56e
131
StocksAppleUIClone
MIT License
process/src/main/java/com/pyamsoft/wordwiz/word/WordProcessModule.kt
pyamsoft
67,087,038
false
null
/* * Copyright 2020 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...
1
Kotlin
0
1
3e142b3bdcd5352ba47b1d728677b954195cf97a
886
wordwiz
Apache License 2.0
2022/src/main/kotlin/de/skyrising/aoc2022/day2/solution.kt
skyrising
317,830,992
false
{"Kotlin": 370865}
package de.skyrising.aoc2022.day2 import de.skyrising.aoc.BenchmarkBaseV1 import de.skyrising.aoc.TestInput import de.skyrising.aoc.part1 import de.skyrising.aoc.part2 @Suppress("unused") class BenchmarkDay : BenchmarkBaseV1(2022, 2) @Suppress("unused") fun register() { val test = TestInput(""" A Y ...
0
Kotlin
0
0
ca9cbf4212c50424f595c7ecbe3e13b53d4cefb6
1,512
aoc
MIT License
documentrenderer/src/main/java/com/tanodxyz/documentrenderer/elements/DefaultCircularProgressBarElement.kt
tanoDxyz
556,710,302
false
null
package com.tanodxyz.documentrenderer.elements import android.content.Context import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.RectF import android.text.TextPaint import android.util.SparseArray import com.tanodxyz.documentrenderer.R import com.tanodxy...
0
Kotlin
0
0
0eb8d1cdc45b222731261c1182364dee00a4f4e0
3,369
GeneralDocumentRenderer
Apache License 2.0
tmp/arrays/youTrackTests/9991.kt
DaniilStepanov
228,623,440
false
null
// Original bug: KT-8780 fun foo(x : String?, y : String?) { if (y != null && x == y) { x.toLowerCase() // Error: Only safe or non-null asserted calls are allowed on a nullable receiver } }
1
null
1
1
602285ec60b01eee473dcb0b08ce497b1c254983
207
bbfgradle
Apache License 2.0