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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/volvo/techtask/contracts/AppLogger.kt | msndvlpr | 458,329,184 | false | {"Kotlin": 61614} | /// Author(s): Mohsen Emami
/// Modified Date: 10/Feb/2022
package com.volvo.techtask.contracts
/**
* Common util for logging events.
* Can be used to store logs locally as well.
*/
interface AppLogger {
//May extend the functionality for accumulating log files into device memory as well
fun logD(tag: Str... | 0 | Kotlin | 0 | 0 | 80dc1ca4ac26a34152430ff822fdbd9330c47ff2 | 475 | volvo_tech_task | Apache License 2.0 |
android/src/main/java/com/stoneposdeeplink/executors/Printer.kt | cassiomariott | 731,980,424 | false | {"Kotlin": 11599, "TypeScript": 3789, "Ruby": 3728, "Objective-C": 2563, "JavaScript": 2254, "Objective-C++": 1228, "C": 103, "Swift": 68} | package com.stoneposdeeplink.executors
import android.app.Activity
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReadableMap
import android.net.Uri
import android.content.Intent
import java.lang.Exception
class Printer(reactApplicationContext: ReactApplicationContext ) {
... | 0 | Kotlin | 0 | 0 | 24e820b52f5e49411180720e695de2e82d8a18af | 1,434 | react-native-stone-pos-deeplink | MIT License |
modules/core/arrow-typeclasses/src/main/kotlin/arrow/typeclasses/MonadContinuations.kt | Krishan14sharma | 183,217,828 | true | {"Kotlin": 2391225, "CSS": 152663, "JavaScript": 67900, "HTML": 23177, "Java": 4465, "Shell": 3043, "Ruby": 1598} | package arrow.typeclasses
import arrow.Kind
import arrow.core.Continuation
import java.util.concurrent.CountDownLatch
import kotlin.coroutines.*
import kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED
import kotlin.coroutines.intrinsics.suspendCoroutineUninterceptedOrReturn
interface BindingInContextContinuation<in T... | 0 | Kotlin | 0 | 1 | 2b26976e1a8fbf29b7a3786074d56612440692a8 | 2,565 | arrow | Apache License 2.0 |
src/test/kotlin/br/com/zup/orangetalents/ConsultaChaveEndpointTest.kt | jmarcosfmg | 384,517,757 | true | {"Kotlin": 50535, "Smarty": 2032, "Dockerfile": 165} | package br.com.zup.orangetalents
import br.com.zup.orangetalents.commons.external.bcb.*
import br.com.zup.orangetalents.commons.external.itau.ClienteResponse
import br.com.zup.orangetalents.commons.external.itau.SistemaItau
import br.com.zup.orangetalents.commons.external.itau.SistemaItauInstituicao
import br.com.zup.... | 0 | Kotlin | 0 | 0 | 96e90398f75cbebbe51ccc45e653864da166ad27 | 10,004 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
vmtools/src/main/kotlin/com/vmloft/develop/library/tools/widget/dialog/VMDefaultDialog.kt | lzan13 | 78,939,095 | false | {"Kotlin": 759701, "Java": 45897, "HTML": 2434, "C": 2090, "Makefile": 967} | package com.vmloft.develop.library.tools.widget.dialog
import android.content.Context
import android.view.LayoutInflater
import android.widget.LinearLayout
import android.widget.TextView
import com.vmloft.develop.library.tools.widget.dialog.VMBDialog
import com.vmloft.develop.library.tools.databinding.VmWidgetDefault... | 0 | Kotlin | 14 | 34 | c6eca3fb479d82ca14ca3bdcc3fb5f5494a4db0c | 965 | VMLibrary | MIT License |
utils/src/androidMain/kotlin/dev/icerock/moko/utils/callOnDispatcherWithoutFreeze.kt | icerockdev | 348,223,537 | false | null | /*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.utils
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
actual fun <R> callOnDispatcherWithoutFreeze(
dispatcher: CoroutineDispatcher,
block: sus... | 1 | Kotlin | 1 | 3 | 4c38882e4b1352eefa81e1d4fb43ae10a72956e5 | 439 | moko-utils | Apache License 2.0 |
src/main/kotlin/aoc2023/Day10.kt | j4velin | 572,870,735 | false | {"Kotlin": 212097, "Python": 1446} | package aoc2023
import readInput
object Day10 {
fun part1(input: List<String>): Int {
return 0
}
fun part2(input: List<String>): Int {
return 0
}
}
fun main() {
val testInput = readInput("Day10_test", 2023)
check(Day10.part1(testInput) == 0)
check(Day10.part2(testInput) == 0)
val input = readInput("Day... | 0 | Kotlin | 0 | 0 | a9f56bb01e27e501cad124bfcebb8e25763acb35 | 391 | adventOfCode | Apache License 2.0 |
app/src/main/java/com/bubelov/coins/model/User.kt | msgpo | 266,929,338 | true | {"Kotlin": 227542, "Dockerfile": 847} | package com.bubelov.coins.model
import org.joda.time.DateTime
data class User(
val id: String,
val email: String,
val emailConfirmed: Boolean,
val firstName: String,
val lastName: String,
val avatarUrl: String,
val createdAt: DateTime,
val updatedAt: DateTime
) | 0 | null | 0 | 0 | f3033534d1c104b04a98f9e734853f533a6c26dd | 295 | coin-map-android | MIT License |
graphql-kotlin-toolkit-codegen/src/test/kotlin/com/auritylab/graphql/kotlin/toolkit/codegen/CodegenSchemaParserTest.kt | AurityLab | 231,481,189 | false | null | package com.auritylab.graphql.kotlin.toolkit.codegen
import com.auritylab.graphql.kotlin.toolkit.codegen._test.TestObject
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Test
import java.nio.file.Path
internal class CodegenSchemaParserTest {
@Test
fun `should parse single sc... | 4 | Kotlin | 1 | 8 | 3dbb4e3b43cf713da34297bf827b63caaeb15ffa | 696 | graphql-kotlin-toolkit | Apache License 2.0 |
suspending/src/commonMain/kotlin/matt/collect/suspending/fake/fake.kt | mgroth0 | 532,378,323 | false | {"Kotlin": 203969} | package matt.collect.suspending.fake
import matt.collect.suspending.SuspendIterator
import matt.collect.suspending.SuspendMutableIterator
import matt.collect.suspending.list.SuspendListIterator
import matt.collect.suspending.list.SuspendMutableListIterator
import matt.lang.common.ILLEGAL
import matt.lang.common.err
f... | 0 | Kotlin | 0 | 0 | 178a627ede13e0f7b6c59a86a1d6c8c07627953a | 1,021 | collect | MIT License |
prefs/src/main/java/com/mathewsachin/fategrandautomata/prefs/BattleConfig.kt | MaxAkito | 297,404,165 | false | null | package com.mathewsachin.fategrandautomata.prefs
import androidx.core.content.edit
import com.mathewsachin.fategrandautomata.StorageDirs
import com.mathewsachin.fategrandautomata.prefs.core.PrefsCore
import com.mathewsachin.fategrandautomata.prefs.core.map
import com.mathewsachin.fategrandautomata.scripts.enums.Materi... | 0 | null | 1 | 1 | 5ea4e1478d4ac76c14ac9207d626103a6316e047 | 1,810 | FGA | MIT License |
components-core/src/main/java/com/adyen/checkout/components/base/GenericStoredPaymentComponentProvider.kt | tobias-square | 411,476,471 | true | {"Java Properties": 2, "Markdown": 6, "Gradle": 43, "Shell": 5, "EditorConfig": 1, "Batchfile": 1, "Text": 2, "Ignore List": 7, "INI": 22, "Proguard": 24, "Java": 241, "XML": 236, "Kotlin": 79, "JSON": 2, "CODEOWNERS": 1, "YAML": 4} | /*
* Copyright (c) 2020 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by caiof on 8/12/2020.
*/
package com.adyen.checkout.components.base
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import ... | 0 | null | 0 | 0 | b6069aa9df2fa2ab0e04d265dc6fa934b2d91222 | 2,046 | adyen-android | MIT License |
app/src/main/java/com/dispositivosmoveis/watchfilmes/ui/more/MoreFragment.kt | thomas-soares | 321,982,495 | false | null | package com.dispositivosmoveis.watchfilmes.ui.more
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.dispositivosmoveis.watchfilmes.R
class MoreFragment : Fragment() {
override fun onCreateView(
... | 0 | Kotlin | 0 | 0 | 0acd59e9a0d5291709b9fc3aa322e885422aeeed | 640 | WatchFilmes | MIT License |
superior-oracle-parser/src/test/java/io/github/melin/superior/parser/oracle/OracleSqlParserDdlTest.kt | melin | 140,644,913 | false | null | package io.github.melin.superior.parser.oracle
import io.github.melin.superior.common.StatementType
import io.github.melin.superior.common.relational.DefaultStatement
import io.github.melin.superior.common.relational.common.CommentData
import io.github.melin.superior.common.relational.create.CreateDatabase
import io.g... | 5 | ANTLR | 98 | 97 | dabf49097c380395b6ed0782d319da1b537453c4 | 4,785 | superior-sql-parser | Apache License 2.0 |
src/test/kotlin/com/hans/de/melo/restaurantsgeospatial/restaurantsgeospatial/ConstantsIntegrationTest.kt | hansmelo | 247,266,869 | false | null | package com.hans.de.melo.restaurantsgeospatial.restaurantsgeospatial
var polygonJson = "{\"coordinates\":" +
"[[" +
"[-73.94193078816193,40.70072523469547]," +
"[-73.9443878859649,40.70042452378256]," +
"[-73.94424286147482,40.69969927964773]," +
"[-73.94409591260093,40.69897295... | 0 | Kotlin | 0 | 1 | 7d2b5ed93dadaf35e477eaa83cffc58d90f93066 | 39,187 | restaurantsgeospatial | MIT License |
app/src/main/java/com/suqir/wasaischedule/ui/settings/TimeTableFragment.kt | suqir | 287,276,130 | true | {"Kotlin": 726821} | package com.suqir.wasaischedule.ui.settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import androidx.navigation.Navigati... | 0 | Kotlin | 0 | 0 | 533f1a36067dbb14dca8d694d4fa86cd021ac6ac | 5,635 | WaSaiSchedule | Apache License 2.0 |
src/main/kotlin/com/coxautodev/graphql/tools/SchemaParserBuilder.kt | jflorencio | 102,769,945 | true | {"Kotlin": 77982, "Groovy": 33746, "Java": 7896} | package com.coxautodev.graphql.tools
import com.fasterxml.jackson.databind.ObjectMapper
import com.google.common.collect.BiMap
import com.google.common.collect.HashBiMap
import com.google.common.collect.Maps
import graphql.parser.Parser
import graphql.schema.GraphQLScalarType
import org.antlr.v4.runtime.RecognitionExc... | 0 | Kotlin | 1 | 0 | 14101cbc3f6f67088736422fe95871ff7b2c6fdb | 7,713 | graphql-java-tools | MIT License |
mesh-exam/library/mesh/src/main/java/io/flaterlab/meshexam/librariy/mesh/client/ClientAdvertisingMeshManager.kt | chorobaev | 434,863,301 | false | {"Kotlin": 467494, "Java": 1951} | package io.flaterlab.meshexam.librariy.mesh.client
import android.content.Context
import com.google.android.gms.nearby.Nearby
import com.google.android.gms.nearby.connection.AdvertisingOptions
import com.google.android.gms.nearby.connection.ConnectionsClient
import com.google.android.gms.nearby.connection.Payload
impo... | 0 | Kotlin | 0 | 2 | 364c4fcb70a461fc02d2a5ef2590ad5f8975aab5 | 4,768 | mesh-exam | MIT License |
java/io/jackbradshaw/otter/engine/core/EngineCoreImpl.kt | jack-bradshaw | 468,854,318 | false | {"Kotlin": 139153, "Starlark": 60977, "Shell": 2958, "Java": 444} | package io.jackbradshaw.otter.engine.core
import com.jme3.app.LostFocusBehavior
import com.jme3.app.SimpleApplication
import com.jme3.app.VRAppState
import com.jme3.app.VRConstants
import com.jme3.app.VREnvironment
import com.jme3.bullet.BulletAppState
import com.jme3.system.AppSettings
import com.jme3.system.JmeConte... | 4 | Kotlin | 0 | 7 | d51e20a4564504af6a0e95c294c3d9a4e3256232 | 3,698 | monorepo | MIT License |
src/main/kotlin/net/ndrei/bcoreprocessing/integrations/jei/OreProcessorCategory.kt | MinecraftModDevelopmentMods | 100,987,449 | false | null | package net.ndrei.bcoreprocessing.integrations.jei
import mezz.jei.api.IModRegistry
import mezz.jei.api.gui.IDrawable
import mezz.jei.api.gui.IRecipeLayout
import mezz.jei.api.ingredients.IIngredients
import mezz.jei.api.recipe.IRecipeCategoryRegistration
import mezz.jei.api.recipe.IRecipeWrapper
import net.minecraft.... | 2 | Kotlin | 2 | 4 | 4bb1a16771f9643bf56c1242fb91cc83c2f7769e | 3,257 | BC-Ore-Processing | MIT License |
bbfgradle/tmp/results/BACKUP_JVM-Xuse-ir/BACKEND_wcafasm_FILE.kt | DaniilStepanov | 346,008,310 | false | null | // Bug happens on JVM -Xuse-ir
//File: tmp/tmp0.kt
fun box()
{
if (true) ({{}!!}) else 1
}
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 94 | kotlinWithFuzzer | Apache License 2.0 |
app/src/main/java/com/nkuppan/giphybrowser/presentation/searchlist/StickersSearchViewModel.kt | nkuppan | 419,636,097 | false | {"Kotlin": 100536} | package com.nkuppan.giphybrowser.presentation.searchlist
import androidx.paging.PagingSource
import com.nkuppan.giphybrowser.domain.model.GiphyImage
import com.nkuppan.giphybrowser.domain.usecase.StickerSearchUseCase
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class St... | 0 | Kotlin | 0 | 1 | e0e1eed4017eaae8c61685125a4f4b0b02146d3a | 650 | giphy-browser | Apache License 2.0 |
misc/ktx/src/main/kotlin/fan/akua/misc/ktx/AlertDialogExtensions.kt | AquaApps | 763,100,710 | false | {"Kotlin": 50201, "Java": 39623} | package fan.akua.misc.ktx
import android.annotation.TargetApi
import android.app.Dialog
import android.graphics.drawable.Drawable
import android.os.Build
import android.view.View
import android.content.DialogInterface
import android.widget.AdapterView
import android.widget.Button
import androidx.appcompat.app.AlertDi... | 0 | Kotlin | 0 | 0 | ee185df61eae49c7d840b7f4933fb2b8b67c6d5b | 6,694 | AkuaX | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/contactdiary/ui/edit/ContactDiaryEditLocationsFragment.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.contactdiary.ui.edit
import android.os.Bundle
import android.view.View
import android.view.accessibility.AccessibilityEvent
import androidx.core.view.isGone
import androidx.fragment.app.Fragment
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.contactdiary.ui.edit.ContactDiaryEdit... | 6 | null | 8 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 3,933 | cwa-app-android | Apache License 2.0 |
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/common/DimensionUtils.kt | element-hq | 429,050,697 | false | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.samples.showcase.common
import android.content.Context
import android.util.TypedValue
fun Float.dpToP... | 171 | null | 4 | 4 | 509593ac7aeed5fd7a354eec1d4703e6d798ea32 | 523 | fresco | MIT License |
autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/email/incontext/EmailProtectionInContextSignupActivity.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2023 DuckDuckGo
*
* 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 ... | 67 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 10,899 | Android | Apache License 2.0 |
app/src/main/java/com/certified/covid19response/ui/result/ResultFragment.kt | certified84 | 465,168,574 | false | {"Kotlin": 151395} | package com.certified.covid19response.ui.result
import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavContr... | 0 | Kotlin | 0 | 5 | 1a464ff649f33e8ef2a77a1c2b2515c92ab42c2d | 4,119 | COVID-19Response | Apache License 2.0 |
libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/ir/OperationBasedWithInterfacesModelGroupBuilder.kt | apollographql | 69,469,299 | false | null | package com.apollographql.apollo3.compiler.ir
import com.apollographql.apollo3.ast.GQLField
import com.apollographql.apollo3.ast.GQLFragmentDefinition
import com.apollographql.apollo3.ast.GQLFragmentSpread
import com.apollographql.apollo3.ast.GQLInlineFragment
import com.apollographql.apollo3.ast.GQLNamedType
import c... | 177 | null | 658 | 3,750 | 174cb227efe76672cf2beac1affc7054f6bb2892 | 14,457 | apollo-kotlin | MIT License |
idea/testData/inspections/canBeParameter/test.kt | JakeWharton | 99,388,807 | false | null | class NonUsed(val x: Int) // NO
// NO
data class UsedInData(val x: Int)
// YES
class UsedInProperty(val x: Int) {
val y = x
}
// YES
class UsedInInitializer(val x: Int) {
val y: Int
init {
y = x
}
}
// NO!
class UsedInConstructor(val x: Int) {
fun foo(arg: Int) = arg
constructor(): this... | 0 | null | 30 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,603 | kotlin | Apache License 2.0 |
idea/testData/inspections/canBeParameter/test.kt | JakeWharton | 99,388,807 | false | null | class NonUsed(val x: Int) // NO
// NO
data class UsedInData(val x: Int)
// YES
class UsedInProperty(val x: Int) {
val y = x
}
// YES
class UsedInInitializer(val x: Int) {
val y: Int
init {
y = x
}
}
// NO!
class UsedInConstructor(val x: Int) {
fun foo(arg: Int) = arg
constructor(): this... | 0 | null | 30 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,603 | kotlin | Apache License 2.0 |
plugin/src/main/kotlin/com/chimerapps/storageinspector/util/Logger.kt | ikbendewilliam | 445,913,624 | true | {"Kotlin": 220093, "Dart": 83872, "Shell": 1093} | package com.chimerapps.storageinspector.util
import com.intellij.openapi.diagnostic.Logger
/**
* @author <NAME>
*/
val Any.classLogger : Logger
get() = Logger.getInstance(this::class.java) | 0 | null | 0 | 0 | 6c34d22121f24374b71d0a65b7454fee4d1800fe | 196 | flutter_local_storage_inspector | MIT License |
plugin/src/main/kotlin/com/chimerapps/storageinspector/util/Logger.kt | ikbendewilliam | 445,913,624 | true | {"Kotlin": 220093, "Dart": 83872, "Shell": 1093} | package com.chimerapps.storageinspector.util
import com.intellij.openapi.diagnostic.Logger
/**
* @author <NAME>
*/
val Any.classLogger : Logger
get() = Logger.getInstance(this::class.java) | 0 | null | 0 | 0 | 6c34d22121f24374b71d0a65b7454fee4d1800fe | 196 | flutter_local_storage_inspector | MIT License |
snowplow-tracker/src/androidTest/java/com/snowplowanalytics/snowplow/tracker/ExecutorTest.kt | snowplow | 20,056,757 | false | {"Kotlin": 1227237, "Java": 38410, "Shell": 78} | /*
* Copyright (c) 2015-present Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.ap... | 16 | Kotlin | 62 | 102 | c6ad42b49faf979f3f8c13cc8b91304c423872bd | 1,906 | snowplow-android-tracker | Apache License 2.0 |
src/main/kotlin/wf/garnier/sessiondemo/user/User.kt | Kehrlann | 136,068,731 | false | {"Kotlin": 7228, "Shell": 1000, "Java": 668} | package wf.garnier.sessiondemo.user
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import com.fasterxml.jackson.annotation.JsonIgnore
@Entity
class User(@Id @GeneratedValue val id: Long = 0L,
... | 0 | Kotlin | 0 | 0 | 020de350f0dd897c760ba1eef9d8c4e016e1b76f | 594 | spring-security-and-session | Apache License 2.0 |
src/test/integration/kotlin/no/fintlabs/operator/application/DeploymentDRTest.kt | FINTLabs | 540,843,912 | false | {"Kotlin": 92018, "Smarty": 1822, "Dockerfile": 157} | package no.fintlabs.operator.application
import com.sksamuel.hoplite.PropertySource
import io.fabric8.kubernetes.api.model.*
import io.fabric8.kubernetes.api.model.apps.Deployment
import io.fabric8.kubernetes.api.model.apps.DeploymentStrategy
import io.fabric8.kubernetes.api.model.apps.RollingUpdateDeployment
import i... | 1 | Kotlin | 0 | 0 | db1265ed3f91ba78845b550e92f4a415a1c567b2 | 17,993 | flaiserator | MIT License |
app/src/main/java/net/redwarp/app/multitool/compass/CompassListener.kt | redwarp | 102,224,951 | false | {"Gradle": 4, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 8, "XML": 11, "Java": 2} | package net.redwarp.app.multitool.compass
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import io.reactivex.Observable
import io.reactivex.subjects.PublishSubject
import java.util.concu... | 0 | Kotlin | 0 | 1 | 8121a25780ce42fbcc585723532a198bfe28e22f | 2,094 | Multi-Tool | Apache License 2.0 |
formula/src/test/java/com/instacart/formula/FromObservableWithInputFormula.kt | lgleasain | 393,435,967 | true | {"Kotlin": 249040, "Shell": 275, "Ruby": 220} | package com.instacart.formula
import io.reactivex.Observable
class FromObservableWithInputFormula : StatelessFormula<FromObservableWithInputFormula.Input, Unit>() {
data class Input(
val itemId: String,
val onItem: (Item) -> Unit
)
data class Item(val itemId: String)
class Repo {
... | 0 | null | 0 | 0 | c7630a3fd657ef95b823a45b5ea5a3cba30d69b6 | 945 | formula | BSD 3-Clause Clear License |
example/src/commonMain/kotlin/com/jeantuffier/statemachine/ArticleActions.kt | jeantuffier | 448,109,955 | false | {"Kotlin": 110935} | package com.jeantuffier.statemachine
import com.jeantuffier.statemachine.orchestrate.Action
import com.jeantuffier.statemachine.orchestrate.Limit
import com.jeantuffier.statemachine.orchestrate.Offset
import com.jeantuffier.statemachine.orchestrate.PageLoader
@Action
interface LoadMovies : PageLoader {
override v... | 0 | Kotlin | 0 | 3 | 4082d1b0b503822e2348de33191622bd0677c956 | 461 | statemachine | MIT License |
features/playlist/src/main/java/com/m3u/features/playlist/PlaylistEvent.kt | realOxy | 592,741,804 | false | {"Kotlin": 734765} | package com.m3u.features.playlist
import android.content.Context
sealed interface PlaylistEvent {
data class Observe(val playlistUrl: String) : PlaylistEvent
data object Refresh : PlaylistEvent
data class Favourite(val id: Int, val target: Boolean) : PlaylistEvent
data class Ban(val id: Int, val targe... | 8 | Kotlin | 9 | 95 | 67e7185408a544094c7b4403f8309a52dad4aca0 | 583 | M3UAndroid | Apache License 2.0 |
cqrs-and-event-sourcing/src/main/kotlin/com/showmeyourcode/cqrseventsourcing/demo/repository/eventstore/EventStore.kt | maciek1839 | 657,872,861 | false | null | package com.showmeyourcode.cqrseventsourcing.demo.repository.eventstore
import com.showmeyourcode.cqrseventsourcing.demo.domain.ProductID
import com.showmeyourcode.cqrseventsourcing.demo.domain.event.Event
interface EventStore {
fun save(event: Event)
fun saveAll(events: List<Event>) {
events.forEach... | 0 | Kotlin | 0 | 0 | d43ae3ccc55357a1f911a3ac74cd53732c4e7496 | 447 | cqrs-and-event-sourcing-in-kotlin | MIT License |
MyTracker/app/src/main/java/com/mrzabbah/mytracker/feature_book_tracker/presentation/specificBook/components/CircularProgressBar.kt | MrZabbah | 442,011,201 | false | {"Kotlin": 134826} | package com.mrzabbah.mytracker.feature_book_tracker.presentation.specificBook.components
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.lay... | 0 | Kotlin | 0 | 0 | 29abd9ef0fb77b41f1888537c9a13bdcabbb0912 | 1,997 | Timestamp-Tracker-Android | MIT License |
src/main/kotlin/pl/org/pablo/slack/money/graph/Model.kt | pablow91 | 110,442,981 | false | null | package pl.org.tosio.slack.money.graph
import org.neo4j.ogm.annotation.*
import java.math.BigDecimal
import java.time.LocalDateTime
import java.util.*
@NodeEntity
data class UserEntity(
var name: String,
@Relationship(type = "PAY", direction = Relationship.OUTGOING) var payed: MutableList<PayRelation... | 4 | null | 2 | 1 | efde0f75af9286cb65cb9b6f5d0e60632fab9e66 | 2,979 | money-dispatcher | Apache License 2.0 |
src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/mgcb/previewer/properties/MgcbPropertyTable.kt | seclerp | 417,300,695 | false | {"Kotlin": 91656, "C#": 18042, "Lex": 3418, "HLSL": 843} | package me.seclerp.rider.plugins.monogame.mgcb.previewer.properties
import com.intellij.ui.table.TableView
class MgcbPropertyTable(model: MgcbPropertyTableModel) : TableView<MgcbProperty>(model) {
override fun createDefaultTableHeader() = JBTableHeader()
}
| 7 | Kotlin | 1 | 28 | 3221c0d39f857e4398851b0be4a84890036ed010 | 264 | rider-monogame | MIT License |
rest/src/commonMain/kotlin/builder/message/create/ForumMessageCreateBuilder.kt | kordlib | 202,856,399 | false | null | package dev.kord.rest.builder.message.create
import dev.kord.common.annotation.KordPreview
import dev.kord.common.entity.InteractionResponseType
import dev.kord.common.entity.optional.*
import dev.kord.rest.builder.RequestBuilder
import dev.kord.rest.builder.component.MessageComponentBuilder
import dev.kord.rest.build... | 54 | null | 74 | 781 | 29a904b330c592799c29381e7cfa9fe99f8e9dc0 | 2,164 | kord | MIT License |
idea/tests/testData/inspectionsLocal/convertNaNEquality/inequality.kt | JetBrains | 278,369,660 | false | null | // WITH_RUNTIME
fun main() {
val result = 5.0 + 3.0 <caret>!= Double.NaN;
}
| 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 80 | intellij-kotlin | Apache License 2.0 |
app/src/test/java/com/rafaelfelipeac/improov/features/backup/domain/usecase/ExportDatabaseUseCaseTest.kt | rafaelfelipeac | 160,363,382 | false | null | package com.rafaelfelipeac.improov.features.backup.domain.usecase
import com.rafaelfelipeac.improov.base.DataProviderTest
import com.rafaelfelipeac.improov.base.DataProviderTest.createJson
import com.rafaelfelipeac.improov.base.equalTo
import com.rafaelfelipeac.improov.features.backup.domain.repository.DatabaseReposit... | 1 | Kotlin | 3 | 22 | 6ff4d515f0968a0752817ef4d942f1b3f424611c | 1,913 | improov | Apache License 2.0 |
app/src/main/java/com/umaplasticsfsm/features/leaveapplynew/ClickonStatus.kt | DebashisINT | 740,356,583 | false | {"Kotlin": 13950763, "Java": 1000924} | package com.umaplasticsfsm.features.leaveapplynew
import com.umaplasticsfsm.features.addAttendence.model.Leave_list_Response
interface ClickonStatus {
fun OnApprovedclick(obj: Leave_list_Response)
fun OnRejectclick(obj: Leave_list_Response)
} | 0 | Kotlin | 0 | 0 | 2ccc871bdcf7df2d08825d0b9ded73b11495519e | 253 | UmaPlastics | Apache License 2.0 |
plugins/graphql-kotlin-gradle-plugin/src/main/kotlin/com/expediagroup/graphql/plugin/gradle/GraphQLPluginExtension.kt | ExpediaGroup | 148,706,161 | false | null | /*
* Copyright 2021 Expedia, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 68 | null | 345 | 1,739 | d3ad96077fc6d02471f996ef34c67066145acb15 | 4,187 | graphql-kotlin | Apache License 2.0 |
aaper/src/main/java/com/likethesalad/android/aaper/errors/AaperNotInitializedException.kt | LikeTheSalad | 289,293,129 | false | {"Kotlin": 130235, "Java": 1063, "Shell": 88} | package com.likethesalad.android.aaper.errors
import com.likethesalad.android.aaper.api.errors.AaperException
/**
* This exception is thrown when an attempt to access Aaper is made before initializing it.
*/
class AaperNotInitializedException
: AaperException(
"Aaper is not initialized. You must call Aaper.... | 0 | Kotlin | 9 | 219 | 8f2c88bb4272b0cb276eb006100f8ec17b70bebf | 376 | aaper | MIT License |
base/src/main/java/com/surrus/galwaybus/di/ApplicationModule.kt | chanyaz | 125,964,728 | true | {"Kotlin": 114008, "Java": 73173, "GLSL": 9264, "Ruby": 3132} | package com.surrus.galwaybus.di
import android.app.Application
import android.arch.persistence.room.Room
import android.content.Context
import com.facebook.stetho.okhttp3.StethoInterceptor
import com.google.gson.FieldNamingPolicy
import com.google.gson.GsonBuilder
import com.surrus.galwaybus.cache.GalwayBusCacheImpl
i... | 0 | Kotlin | 0 | 0 | 18b0ddc9755886ca05a7437df29a8ddaa75ab927 | 4,526 | galway-bus-android | MIT License |
ynab-api/src/main/kotlin/com/youneedabudget/client/models/Account.kt | ryanmoelter | 270,082,440 | false | null | /**
* NOTE: This class is auto generated by the Swagger Gradle Codegen for the following API: YNAB API Endpoints
*
* More info on this tool is available on https://github.com/Yelp/swagger-gradle-codegen
*/
package com.youneedabudget.client.models
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
... | 2 | Kotlin | 0 | 2 | d2fdc47362272bdd57b0a3c2667c42ce749f9c5e | 3,235 | splity | Apache License 2.0 |
core/domain/common/src/main/java/com/goalpanzi/mission_mate/core/domain/common/DomainResult.kt | Nexters | 828,096,097 | false | {"Kotlin": 469213, "Ruby": 1219} | package com.goalpanzi.mission_mate.core.domain.common
sealed interface DomainResult<out T> {
data class Success<out T>(val data: T) :
DomainResult<T>
data class Error(val code: Int? = null, val message: String? = null) :
DomainResult<Nothing>
data class Exception(val error: Throwable) :
... | 1 | Kotlin | 0 | 3 | 912bebd2706d1206f38c910e85c79fece73e4213 | 783 | goalpanzi-android | Apache License 2.0 |
client/src/main/kotlin/com/configset/client/converter/Converters.kt | raymank26 | 296,910,120 | false | null | package com.configset.client.converter
import java.util.Properties
object Converters {
val STRING = GenericConverter { it }
val LONG = GenericConverter { it.toLong() }
val INTEGER = GenericConverter { it.toInt() }
val BOOLEAN = GenericConverter { it.toBoolean() }
val CHAR = GenericConverter { str ... | 0 | null | 0 | 1 | bf54c361628a207a219afd6772ac2e4b6ffefbcb | 1,172 | configset | Apache License 2.0 |
compose/ui/ui-test/src/androidInstrumentedTest/kotlin/androidx/compose/ui/test/injectionscope/mouse/MoveTest.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 30 | Kotlin | 950 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 11,619 | androidx | Apache License 2.0 |
app/src/main/kotlin/com/j380/alarm/battery/BatteryBroadcastReceiver.kt | Ilya-Gh | 57,147,267 | false | null | package com.j380.alarm.battery
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.j380.alarm.battery.BatteryService
class BatteryBroadcastReceiver : BroadcastReceiver () {
override fun onReceive(context: Context, intent: Intent?) {
val startSe... | 0 | Kotlin | 0 | 1 | 1c4993a840c746171e452a5e4d20186e979eeb18 | 434 | BatteryReminder | MIT License |
app/src/main/kotlin/com/j380/alarm/battery/BatteryBroadcastReceiver.kt | Ilya-Gh | 57,147,267 | false | null | package com.j380.alarm.battery
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.j380.alarm.battery.BatteryService
class BatteryBroadcastReceiver : BroadcastReceiver () {
override fun onReceive(context: Context, intent: Intent?) {
val startSe... | 0 | Kotlin | 0 | 1 | 1c4993a840c746171e452a5e4d20186e979eeb18 | 434 | BatteryReminder | MIT License |
service/src/main/kotlin/net/devslash/outputs/DebugOutput.kt | devslash-paul | 152,959,898 | false | null | package net.devslash.outputs
import net.devslash.HttpResponse
import net.devslash.OutputFormat
import net.devslash.RequestData
import net.devslash.mustGet
class DebugOutput : OutputFormat {
override fun accept(resp: HttpResponse, data: RequestData<*>): ByteArray {
return """
----------------
... | 9 | null | 2 | 9 | 9346d497282869958f913bb84459921f53e3288e | 608 | fetchDSL | MIT License |
architecture/kmm-tagd-arch/kmm-tagd-arch-test/src/commonMain/kotlin/io/tagd/arch/test/FakeInjector.kt | pavan2you | 589,617,975 | false | null | /*
* Copyright (C) 2021 The TagD Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 3 | null | 3 | 2 | dd2aaf1e4f20850f31b7024f7f8e4bd33f467f3d | 1,957 | kmm-clean-architecture | Apache License 2.0 |
app/src/main/java/com/apisap/demopersistentservice/DemoServiceApplication.kt | AguilasBuildingCode | 822,727,817 | false | {"Kotlin": 64862} | package com.apisap.demopersistentservice
import com.apisap.persistentservice.PersistentServiceApplication
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class DemoServiceApplication : PersistentServiceApplication() {
override val notificationChannelId: String by lazy { resources.getString(R.string.noti... | 0 | Kotlin | 0 | 0 | 5931b3e6993eb9688efb2c9776146eb8c7986e3f | 594 | DemoPersistentService | MIT License |
database/src/commonMain/kotlin/uk/co/sentinelweb/cuer/db/mapper/PlaylistItemMapper.kt | sentinelweb | 220,796,368 | false | null | package uk.co.sentinelweb.cuer.db.mapper
import uk.co.sentinelweb.cuer.database.entity.Playlist_item
import uk.co.sentinelweb.cuer.domain.MediaDomain
import uk.co.sentinelweb.cuer.domain.PlaylistItemDomain
import uk.co.sentinelweb.cuer.domain.PlaylistItemDomain.Companion.FLAG_ARCHIVED
import uk.co.sentinelweb.cuer.dom... | 82 | Kotlin | 0 | 2 | cd5b28c720c08c9b718f904421b0580e6b716ec0 | 1,165 | cuer | Apache License 2.0 |
app/src/main/kotlin/com/pusher/chatkitdemo/room/RoomFragment.kt | KingIdee | 135,069,008 | true | {"Kotlin": 43052} | package com.pusher.chatkitdemo.room
import android.arch.lifecycle.Lifecycle.State.STARTED
import android.arch.lifecycle.LifecycleOwner
import android.os.Bundle
import android.os.Looper
import android.support.annotation.UiThread
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager... | 0 | Kotlin | 0 | 1 | d7f4bacca0db71275b691f56719296e8a225b8a2 | 7,428 | android-slack-clone | MIT License |
turms-client-kotlin/src/main/kotlin/im/turms/client/util/SystemUtil.kt | turms-im | 191,290,973 | false | null | /*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* 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
*
*... | 535 | null | 267 | 947 | 9cc2b50c3f06a34dfde82e86a3c341e505f64e4e | 1,053 | turms | Apache License 2.0 |
app/src/main/java/com/xda/nachonotch/util/EnvironmentManager.kt | zacharee | 127,220,159 | false | {"Kotlin": 102537, "AIDL": 103} | package com.xda.nachonotch.util
import android.annotation.SuppressLint
import android.content.Context
import java.util.concurrent.ConcurrentHashMap
val Context.environmentManager: EnvironmentManager
get() = EnvironmentManager.getInstance(this)
class EnvironmentManager private constructor(private val context: Con... | 4 | Kotlin | 17 | 78 | cbea9323fd43d5f84f39c7999bb2318ddcfedfe1 | 2,108 | NachoNotch | MIT License |
app/src/main/java/com/example/events/ui/di/UiModule.kt | diegoleonds | 369,679,332 | false | null | package com.example.events.ui.di
import com.example.events.ui.viewmodel.EntryViewModel
import com.example.events.ui.viewmodel.EventInfoViewModel
import com.example.events.ui.viewmodel.EventListViewModel
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module
val viewModelModule = module {
viewM... | 0 | Kotlin | 0 | 0 | d3b906fd44d1fab03bbc9449c218a668258c732d | 435 | Events-App | MIT License |
product-services/src/main/kotlin/com/academy/fourtk/product_services/application/web/controllers/builders/BuildsProducts.kt | Dev-JeanSantos | 812,719,923 | false | {"Kotlin": 68234, "Shell": 728} | package com.academy.fourtk.product_services.application.web.controllers.builders
import com.academy.fourtk.product_services.application.web.controllers.dto.requesties.ProductSavedRequestV1
import com.academy.fourtk.product_services.application.web.controllers.dto.responses.ProductSavedResponseV1
import com.academy.fou... | 0 | Kotlin | 0 | 0 | 89e0407dfdfe28b126b7adb971cece124bef1b82 | 895 | desafio-back | MIT License |
app/src/main/java/cn/wthee/pcrtool/ui/tool/pvp/PvpViewModel.kt | wthee | 277,015,110 | false | null | package cn.wthee.pcrtool.ui.tool.pvp
import androidx.compose.runtime.Immutable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import cn.wthee.pcrtool.R
import cn.wthee.pcrtool.data.db.entity.PvpFavoriteData
import cn.wthee.pcrtool.data.db.entity.PvpHistoryData
import cn.wthee.pcrtool.data... | 1 | null | 3 | 79 | 87f6753d141e16f7ee0befbebf865edb4e93badd | 10,295 | pcr-tool | Apache License 2.0 |
app/src/main/java/com/comic_con/museum/ar/views/ViewUtil.kt | Comic-Con-Museum | 153,692,659 | false | {"Kotlin": 71992} | package com.comic_con.museum.ar.views
import android.content.res.Resources
import android.util.TypedValue
class ViewUtil {
companion object {
fun dpToPx(resources: Resources, value: Float): Int {
return TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
va... | 18 | Kotlin | 1 | 8 | 6e5396fde31d57f5bcde87f608d1357c468c90d2 | 405 | ccm-android | Apache License 2.0 |
src/test/kotlin/no/nav/eessi/pensjon/prefill/sed/PrefillP9000GLmedUtlandInnvTest.kt | navikt | 358,172,246 | false | null | package no.nav.eessi.pensjon.prefill.sed
import io.mockk.every
import io.mockk.mockk
import no.nav.eessi.pensjon.eux.model.SedType
import no.nav.eessi.pensjon.prefill.InnhentingService
import no.nav.eessi.pensjon.prefill.PersonPDLMock
import no.nav.eessi.pensjon.prefill.models.EessiInformasjon
import no.nav.eessi.pens... | 3 | Kotlin | 0 | 4 | b5d65bb8df9a82e0640e5ba0eaec85e338501802 | 3,867 | eessi-pensjon-prefill | MIT License |
lib/src/integrationTest/kotlin/com/lemonappdev/konsist/core/declaration/kofunction/KoFunctionDeclarationForKoReceiverTypeProviderTest.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 2941189, "Python": 25669} | package com.lemonappdev.konsist.core.declaration.kofunction
import com.lemonappdev.konsist.TestSnippetProvider.getSnippetKoScope
import org.amshove.kluent.assertSoftly
import org.amshove.kluent.shouldBeEqualTo
import org.junit.jupiter.api.Test
class KoFunctionDeclarationForKoReceiverTypeProviderTest {
@Test
f... | 16 | Kotlin | 19 | 768 | 22f45504ab1c88fca8314bd86f91af7dd8a3672b | 1,722 | konsist | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/LessEqualGreater.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: LessEqualGreater
*
* Full name: System`LessEqualGreater
*
* Usage: LessEqualGreater[x, y, …] d... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 951 | mathemagika | Apache License 2.0 |
orchestrator/src/main/kotlin/configuration/Configuration.kt | rdf-connect | 782,188,424 | false | {"Kotlin": 107756, "TypeScript": 35127, "Python": 21679, "Shell": 1021, "Dockerfile": 423} | package technology.idlab.configuration
import technology.idlab.parser.Parser
/**
* The Configuration class is an extension of the parser, and allows for much more powerful querying
* of the model, as well as provide important assertions of the model's consistency.
*/
abstract class Configuration(parser: Parser) {}... | 13 | Kotlin | 0 | 1 | be481269e4fec6bbdf1b782ad6cc796821d0249a | 321 | orchestrator | MIT License |
solar/src/main/java/com/chiksmedina/solar/boldduotone/videoaudiosound/Rewind15SecondsBack.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.bold.videoaudiosound
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Comp... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,743 | SolarIconSetAndroid | MIT License |
app/src/main/java/com/no5ing/bbibbi/presentation/ui/common/button/IconedCTAButton.kt | depromeet | 738,807,741 | false | {"Kotlin": 649362} | package com.no5ing.bbibbi.presentation.ui.common.button
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
... | 0 | Kotlin | 0 | 3 | 5d0d722bf8390b9e75c46bdeabd40485df207251 | 2,015 | 14th-team5-AOS | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/core/storage/migrations/Migration_48_49.kt | horizontalsystems | 142,825,178 | false | null | package io.deus.wallet.core.storage.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
object Migration_48_49 : Migration(48, 49) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `NftAssetBriefMetadataRe... | 153 | null | 346 | 805 | 399fd8dc84c249dd1094fee0a7a043ec5e4ffa90 | 475 | unstoppable-wallet-android | MIT License |
modules/dagger/arrow-dagger/src/main/kotlin/arrow/dagger/instances/function1.kt | mikezx6r | 160,887,969 | true | {"Kotlin": 2173554, "CSS": 142438, "JavaScript": 66836, "HTML": 14634, "Java": 4465, "Shell": 3043, "Ruby": 1606} | package arrow.dagger.instances
import arrow.data.Function1PartialOf
import arrow.instances.Function1ApplicativeInstance
import arrow.instances.Function1FunctorInstance
import arrow.instances.Function1MonadInstance
import arrow.typeclasses.Applicative
import arrow.typeclasses.Functor
import arrow.typeclasses.Monad
impo... | 0 | Kotlin | 0 | 0 | 6d973fe5296b7d5eac8a2823057be1a8289a8f12 | 1,124 | kategory | Apache License 2.0 |
shared/src/commonMain/kotlin/com/llamalabb/phillygarbageday/domain/usecase/_old/GetHeadlinesUseCase.kt | AndyGOBrien | 569,400,450 | false | {"Kotlin": 74636, "Swift": 31810, "Ruby": 1706} | package com.llamalabb.phillygarbageday.domain.usecase._old
//import com.llamalabb.phillygarbageday.data.remote.dto.asDomainModel
//import com.llamalabb.phillygarbageday.data.repository.IAddressRepository
//import kotlinx.coroutines.flow.flow
//
//class GetHeadlinesUseCase(
// private val repository: IAddressReposit... | 0 | Kotlin | 0 | 1 | 6d70e96281eefb89fb19e4138f0975538b9b84ed | 622 | PhillyGarbageDay | Apache License 2.0 |
compiler/daemon/daemon-tests/test/org/jetbrains/kotlin/daemon/experimental/unit/ClientSerializationTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.daemon.experimental.unit
import io.ktor.network.sockets.aSocket
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutine... | 157 | null | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 3,547 | kotlin | Apache License 2.0 |
src/main/java/org/jonnyzzz/demo/lang-basic.kt | jonnyzzz | 108,171,151 | false | null | package org.jonnyzzz.demo.langbasic
fun main(args: Array<String>) {
runBasic {
10 PRINT "Hello, from Kotlin!"
30 PRINT "@jonnyzzz"
40 INPUT "@jonnyzzz" AS "twitter"
50 PRINT "Another text"
60 GOTO 10
}
}
fun runBasic(builder : BasicBuilder.() -> Unit) {
val host = ProgramBuilder()
Basic... | 0 | Kotlin | 0 | 7 | 2ffbc3bef5d7c220eb0464ecc1eb3f7e7cefee23 | 2,044 | kotlin-dsl-demo | MIT License |
Kotlin基础-2/src/main/java/com/yey/kotlin2/53-lambda表达式.kt | rgdzh1 | 266,117,976 | false | null | package com.yey.kotlin2
import org.junit.Test
class `53-lambda表达式` {
/***
* (Int,Int)->Int: 这个类型是函数类型其中(Int,Int)为参数类型,->Int为该函数的返回值类型,
* 函数类型的参数需要接收该函数的地址值.
*/
fun cacl(a: Int, b: Int, tool: (Int, Int) -> Int): Int {
// return util(a, b)
return tool.invoke(a, b)//invoke()就是调用方法
... | 0 | Kotlin | 0 | 0 | 450905528aba3d39f2c98af172c0282ec9b268aa | 3,937 | Java-Kotlin-Learning | Apache License 2.0 |
backend/src/main/java/org/gdglille/devfest/backend/internals/helpers/drive/GoogleDriveDataSource.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 763877, "Swift": 115847, "Shell": 1148, "Dockerfile": 369} | package org.gdglille.devfest.backend.internals.helpers.drive
import com.google.api.services.drive.Drive
import com.google.api.services.drive.model.File
import com.google.api.services.drive.model.Permission
private const val PageSize = 10
class GoogleDriveDataSource(private val service: Drive) : DriveDataSource {
... | 7 | Kotlin | 5 | 136 | 51ac11d04f9b0561b250ca163266a853a1965f0a | 2,854 | conferences4hall | Apache License 2.0 |
app/src/main/java/dev/tcode/thinmp/repository/media/AlbumRepository.kt | tcode-dev | 392,735,283 | false | null | package dev.tcode.thinmp.repository.media
import android.content.Context
import android.provider.MediaStore
import dev.tcode.thinmp.model.media.AlbumModel
class AlbumRepository(context: Context) : MediaStoreRepository<AlbumModel>(
context, MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, arrayOf(
MediaStore.... | 0 | Kotlin | 0 | 0 | 88b10290f674830d9fdf90a359e06d565ea86a26 | 2,009 | ThinMP_Android_Kotlin | MIT License |
src/main/kotlin/team/mke/tg/ExposedUtils.kt | MKE-overseas | 750,836,175 | false | {"Kotlin": 36096} | package team.mke.tg
import org.jetbrains.exposed.sql.Table
import team.mke.utils.db.COLLATE_UTF8MB4_UNICODE_CI
fun Table.botComment(name: String = "comment") = text(name, COLLATE_UTF8MB4_UNICODE_CI) | 0 | Kotlin | 0 | 0 | 31b1d1acedd4713a216cce4e32f57230e4d58e24 | 200 | mke-tg | Apache License 2.0 |
camerax_lib/src/main/java/com/kiylx/camerax_lib/main/manager/CameraHolder.kt | Knightwood | 517,621,489 | false | null | package com.kiylx.camerax_lib.main.manager
import android.annotation.SuppressLint
import android.net.Uri
import android.util.Log
import androidx.camera.core.*
import androidx.camera.video.Recording
import androidx.camera.video.VideoRecordEvent
import androidx.camera.view.PreviewView
import com.kiylx.camerax_lib.main.m... | 1 | null | 6 | 34 | 4db9a7dafd770415d7f85b3f5159bcb542e2925d | 10,934 | CameraX-Helper | Apache License 2.0 |
src/main/kotlin/no/nav/dagpenger/soknad/orkestrator/søknad/MeldingOmSøknadInnsendt.kt | navikt | 758,018,874 | false | {"Kotlin": 201231, "HTML": 701, "Dockerfile": 109} | package no.nav.dagpenger.soknad.orkestrator.søknad
import no.nav.helse.rapids_rivers.JsonMessage
import java.util.UUID
class MeldingOmSøknadInnsendt(private val søknadId: UUID, private val ident: String) {
fun asMessage(): JsonMessage =
JsonMessage.newMessage(
eventName = "søknad_innsendt",
... | 1 | Kotlin | 0 | 0 | b8f6d4a0f20fdc6f536bfc078c4ad4c3b1b026fd | 484 | dp-soknad-orkestrator | MIT License |
core/network/src/main/java/kr/pe/ssun/template/core/network/di/NetworkModule.kt | SunChulBaek | 604,435,864 | false | {"Kotlin": 74238} | package kr.pe.ssun.template.core.network.di
import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.serialization.json.Json
import kr.pe.ssun.template.core.network.SsunNetworkDataSource
import kr.pe.ssun.template.core.... | 0 | Kotlin | 0 | 0 | 7526786fdaaa5df42f30b0d74ae53afb47890acb | 746 | ComposeMultiTemplate | Apache License 2.0 |
vector/src/test/java/im/vector/app/features/notifications/NotificationFactoryTest.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2021 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 86 | null | 418 | 9 | 8781b6bc4c7298ee137571bb574226ff75bd7519 | 6,742 | tchap-android | Apache License 2.0 |
plan/src/main/kotlin/com/r3/demos/ubin2a/plan/NewPlanFlow.kt | project-ubin | 110,582,332 | false | null | package com.r3.demos.ubin2a.plan
import co.paralleluniverse.fibers.Suspendable
import com.r3.demos.ubin2a.obligation.Obligation
import com.r3.demos.ubin2a.plan.generator.ObligationEdge
import com.r3.demos.ubin2a.plan.solver.ComponentCycleSolver
import com.r3.demos.ubin2a.plan.solver.ComponentNettingOptimiser
import co... | 3 | Kotlin | 51 | 81 | 8eb2ab9a3decb92b2c258f2c6dd7a2b4e7ca95f8 | 1,750 | ubin-corda | Apache License 2.0 |
src/test/kotlin/no/nav/bidrag/person/hendelse/database/AktorTest.kt | navikt | 517,990,382 | false | {"Kotlin": 171422, "Dockerfile": 147} | package no.nav.bidrag.person.hendelse.database
import io.kotest.matchers.shouldBe
import io.mockk.junit5.MockKExtension
import org.assertj.core.api.SoftAssertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import java.time.LocalDateTime
@ExtendWith(MockKExtension::class)
class... | 0 | Kotlin | 0 | 0 | b00b38d83c84892ae066688d7112e936c2eb33dd | 1,015 | bidrag-person-hendelse | MIT License |
app/src/main/java/com/wreckingballsoftware/fiveoclocksomewhere/repos/CocktailsRepo.kt | leewaggoner | 691,900,392 | false | {"Kotlin": 68083} | package com.wreckingballsoftware.fiveoclocksomewhere.repos
import com.wreckingballsoftware.fiveoclocksomewhere.database.DBCocktails
import com.wreckingballsoftware.fiveoclocksomewhere.database.DBPlaces
import com.wreckingballsoftware.fiveoclocksomewhere.database.RegionalCocktailsDao
import com.wreckingballsoftware.fiv... | 0 | Kotlin | 0 | 0 | e08b78c427133dd05db999c08905054a001d0cc6 | 4,244 | fiveoclocksomewherre | Apache License 2.0 |
kcrud-core/src/main/kotlin/kcrud/core/scheduler/api/scheduler/audit/All.kt | perracodex | 682,128,013 | false | {"Kotlin": 664693, "JavaScript": 29018, "CSS": 12683, "HTML": 5862, "Dockerfile": 3127, "Java": 1017} | /*
* Copyright (c) 2024-Present Perracodex. Use of this source code is governed by an MIT license.
*/
package ktask.core.scheduler.api.scheduler.audit
import io.ktor.http.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import ktask.core.scheduler.api.SchedulerRouteAPI
import ktask.core.scheduler.... | 0 | Kotlin | 0 | 2 | dccf9121b3686f31cf487938e5ade3d2411707d4 | 795 | kcrud | MIT License |
fireko-codegen/src/main/java/de/musichin/fireko/processor/genDocumentSnapshotDeserializer.kt | musichin | 272,263,347 | false | null | package de.musichin.fireko.processor
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.PropertySpec
import com.squareup.kotlinpoet.STRING
import com.squareup.kotlinpoet.TypeName
import com.squareup.kotlinpoet.metadata... | 5 | Kotlin | 0 | 2 | 8c36bf692ec037b63fffd3d0b3f3db986a965a7a | 4,474 | fireko | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/appsync/LambdaConflictHandlerConfigPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.appsync
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.appsync.CfnResolver
@Generated
public fun buildLambdaConflictHandlerConfigProperty(initializer: @AwsCdkDsl
CfnResolver.LambdaC... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 513 | aws-cdk-kt | Apache License 2.0 |
hammer-core/src/main/kotlin/dev/vini2003/hammer/core/api/common/util/extension/PacketByteBufExtension.kt | Shnupbups | 497,613,399 | true | {"Kotlin": 647205, "Java": 143999, "GLSL": 925} | /*
* MIT License
*
* Copyright (c) 2020 - 2022 vini2003
*
* 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, ... | 0 | null | 0 | 0 | b08882400350ae95672e24b2696be04c04e15140 | 4,351 | Hammer | MIT License |
src/main/kotlin/dev/kkorolyov/ponk/Launcher.kt | kkorolyov | 363,740,075 | false | null | package dev.kkorolyov.ponk
import dev.kkorolyov.pancake.audio.jfx.system.AudioSystem
import dev.kkorolyov.pancake.core.component.ActionQueue
import dev.kkorolyov.pancake.core.component.Bounds
import dev.kkorolyov.pancake.core.component.Transform
import dev.kkorolyov.pancake.core.component.movement.Damping
import dev.k... | 0 | Kotlin | 0 | 0 | 73672bf6d7e4ea859d433ecf639e887b9538c7dc | 8,430 | ponk | MIT License |
app/src/main/java/com/base/searchapp/ui/base/viewmodel/BaseActivityViewModel.kt | uygemre | 335,039,935 | false | null | package com.base.searchapp.ui.base.viewmodel
abstract class BaseActivityViewModel : BaseViewControllerViewModel() | 0 | Kotlin | 0 | 0 | 24c32e066a2680aed91a0932eee48fae490597d8 | 114 | SearchApp | MIT License |
app/src/main/java/com/example/careerboast/view/navigation/Screen.kt | Ev4esem | 771,869,351 | false | {"Kotlin": 125189} | package com.example.careerboast.view.navigation
sealed class Screen(
val route : String
) {
object LOGIN_SCREEN : Screen("LoginScreen")
object INTERVIEWS_SCREEN : Screen("InterviewsScreen")
object INTERVIEW_SCREEN : Screen("InterviewScreen")
object MENTORS_SCREEN : Screen("MentorsScreen")
obj... | 0 | Kotlin | 0 | 0 | 2bd9ed82e8195294480e361919d1a5cc26ec8f86 | 734 | CareerBoast | Apache License 2.0 |
app/src/main/java/pl/droidsonroids/toast/app/base/BaseActivity.kt | l-o-b-s-t-e-r | 126,404,496 | true | {"Kotlin": 377167, "Prolog": 102} | package pl.droidsonroids.toast.app.base
import android.arch.lifecycle.ViewModelProvider
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import dagger.android.AndroidInjection
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidIn... | 0 | Kotlin | 0 | 0 | b33bb2419802e936cec67f771b067adda92f2117 | 886 | Toast-App | Apache License 2.0 |
collaboration-suite-phone-ui/src/main/java/com/kaleyra/collaboration_suite_phone_ui/call/dialogs/KaleyraSnapshotDialog.kt | Bandyer | 337,367,845 | false | null | /*
* Copyright 2022 Kaleyra @ https://www.kaleyra.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 1 | null | 1 | 2 | 626da0b71293360bf7708835876b1a8b2db530b4 | 8,102 | Bandyer-Android-Design | Apache License 2.0 |
gradle-dsl-toml/src/com/android/tools/idea/gradle/dsl/toml/catalog/CatalogTomlDslWriter.kt | JetBrains | 60,701,247 | false | {"Kotlin": 49550960, "Java": 35837871, "HTML": 1217714, "Starlark": 909188, "C++": 357481, "Python": 106384, "C": 71782, "Lex": 66732, "NSIS": 58538, "AIDL": 35382, "Shell": 26938, "CMake": 26798, "JavaScript": 18437, "Smali": 7580, "Batchfile": 6951, "RenderScript": 4411, "Makefile": 2495, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 3 | Kotlin | 219 | 921 | dbd9aeae0dc5b8c56ce2c7d51208ba26ea0f169b | 6,893 | android | Apache License 2.0 |
shared/domain/movie/src/main/java/com/kennethss/movie/domain/movie/preview/Preview.kt | KennethSS | 325,671,801 | false | null | package com.kennethss.movie.domain.movie.preview
data class Preview(
val key: String,
val name: String,
val site: Site,
val type: Type
) {
enum class Type {
TRAILER,
TEASER,
FEATURETTE
}
enum class Site {
YOUTUBE
}
} | 0 | Kotlin | 1 | 9 | e72bcf9a3c7b63862e41787bf45f4991cefc27dd | 282 | Movie | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.