diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -2,6 +2,8 @@ use bincode;
use fst::{self, Automaton};
use serde::de::DeserializeOwned;
use serde::ser::Serialize;
+use std::collections::BTreeMap;
+use std::collections::btree_map::Entry;
use std::fs::File;
use std::io::{Write, BufReader};
use std::ops::Range;
@@ -109,7 +111,7 @@ impl<T> Values<T> {
#[derive(Debug)]... | feat: Use `BTreeMap` instead of a custom algo | null | meilisearch/meilisearch | MIT License | Rust |
@@ -182,6 +182,10 @@ fn language_id_from_path(path: &Path) -> Option<&str> {
"cpp"
}
"c" | "h" => "c",
+ "js" => "javascript",
+ "jsx" => "javascriptreact",
+ "ts" => "typescript",
+ "tsx" => "typescriptreact",
_ => return None,
})
}
| feat(proxy): Add more language ids | null | lapce/lapce | Apache License 2.0 | Rust |
+/*
+Copyright 2019 vChain, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, soft... | feat(ring): ring buffer | null | codenotary/immudb | Apache License 2.0 | Go |
@@ -92,12 +92,15 @@ docker_flags+=(
)
echo -n "Uploading code coverage to codecov.io..."
+# This controls the output format from bash's `time` command.
+readonly TIMEFORMAT="DONE in %R seconds"
# Run the upload script from codecov.io within a Docker container. Save the log
# to a file because it can be very large (mult... | feat: time codecov upload | null | googleapis/google-cloud-cpp | Apache License 2.0 | Shell |
@@ -443,6 +443,18 @@ func silences(c *gin.Context) {
searchTerm = strings.ToLower(searchTermValue)
}
+ clusters := []string{}
+ if searchTerm != "" {
+ upstreams := getUpstreams()
+ for _, u := range upstreams.Instances {
+ if strings.ToLower(u.Name) == searchTerm {
+ if !slices.StringInSlice(clusters, u.Cluster) {
+ c... | feat(api): allow searching by alertmanager instance name | null | prymitive/karma | Apache License 2.0 | Go |
@@ -62,6 +62,13 @@ typedef void** ntl_t;
*/
#define NTL_T(t) t**
+/*
+ * a conventional foreach loop that can be used with NTLs
+ */
+#define NTL_FOREACH(element, ntl) \
+ for (int __i=0,__=1;__;__=0) \
+ for (element = *ntl; ntl[__i]; element = ntl[++__i])
+
/*
* this is the preferred method to allocate a ntl
| feat: add NTL_FOREACH, a utility ntl.h macro | null | cee-studio/orca | MIT License | C |
+import { getConfigStore } from "gatsby-core-utils"
+import reporter from "gatsby-cli/lib/reporter"
+
+type CancelExperimentNoticeCallback = () => void
+
+export type CancelExperimentNoticeCallbackOrUndefined =
+ | CancelExperimentNoticeCallback
+ | undefined
+
+const ONE_DAY = 24 * 60 * 60 * 1000
+
+export function sh... | feat: add utility to show experiment invitation notices | null | gatsbyjs/gatsby | MIT License | TypeScript |
+type MetadataConfig = {
+ name: string;
+ description: string;
+ scopes: string[];
+ properties: {
+ property: string;
+ name: string;
+ scopes: [];
+ type: {
+ elements: {
+ value: string;
+ text: string;
+ description: string;
+ }[];
+ multi: boolean;
+ name: string;
+ id: string;
+ type: string;
+ };
+ }[];
+};
| feat(metadata): add configParam Component | null | jetlinks/jetlinks-ui-antd | MIT License | TypeScript |
@@ -25,10 +25,7 @@ from google.protobuf import duration_pb2 as duration
CFT_TOOLS_DEFAULT_IMAGE = 'gcr.io/cloud-foundation-cicd/cft/developer-tools'
CFT_TOOLS_DEFAULT_IMAGE_VERSION = '0.11.0'
-ENABLED_MODULES = [
- 'terraform-google-cloud-storage',
- 'terraform-google-kubernetes-engine',
- 'terraform-google-gcloud'
+DI... | feat: enable comment bot all repos | null | googlecloudplatform/cloud-foundation-toolkit | Apache License 2.0 | Python |
@@ -7,12 +7,11 @@ declare(strict_types=1);
* Founded by Sergey Romanenko and maintained by Flextype Community.
*/
-use Flextype\Component\Arrays\Arrays;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
// Shortcode: [entries_fetch id="entry-id" field="field-name" default="default-value"]
if (flextype('registry')->ge... | feat(media-folder): use Atomastic Arrays for entries_fetch shortcode | null | flextype/flextype | MIT License | PHP |
@@ -665,7 +665,8 @@ static void*
dispatch_run(void *p_cxt)
{
struct _event_cxt *cxt = p_cxt;
- log_info(ANSICOLOR("pthread_run %u", 31), cxt->tid);
+ log_info(ANSICOLOR("pthread %u is running to serve %s", 31),
+ cxt->tid, cxt->p_gw->payload.event_name);
(*cxt->on_event)(cxt->p_gw, &cxt->data);
@@ -675,7 +676,8 @@ disp... | feat: logging which event is served by a thread | null | cee-studio/orca | MIT License | C |
@@ -12,12 +12,14 @@ from jina.enums import BetterEnum
from jina.helper import ArgNamespace, T, iscoroutinefunction, typename
from jina.importer import ImportExtensions
from jina.jaml import JAML, JAMLCompatible, env_var_regex, internal_var_regex
+from jina.logging.logger import JinaLogger
from jina.serve.executors.deco... | feat(executor): add self logger to executor | null | jina-ai/jina | Apache License 2.0 | Python |
@@ -47,9 +47,9 @@ userinput2="${2}"
## GitHub Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
-githubuser="GameServerManagers"
-githubrepo="LinuxGSM"
-githubbranch="master"
+[ -n "${LGSM_GITHUBUSER}" ] && githubuser="${LGSM_GITHUBUSER}" || githubuser="GameServerMana... | feat(core): allow to set github details at runtime with env vars | null | gameservermanagers/linuxgsm | MIT License | Shell |
@@ -62,11 +62,10 @@ class Course::Assessment::Question::ScribingController < Course::Assessment::Que
def destroy
if @scribing_question.destroy
- redirect_to course_assessment_path(current_course, @assessment), success: t('.success')
+ head :ok
else
error = @scribing_question.errors.full_messages.to_sentence
- redirect_... | feat(scribing): destroy responds to json | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -25,6 +25,10 @@ export interface TSOpts {
* @defaultValue "\t"
*/
indent: string;
+ /**
+ * If true (default), forces uppercase enums
+ */
+ uppercaseEnums: boolean;
}
/**
@@ -39,7 +43,11 @@ export interface TSOpts {
* @param opts
*/
export const TYPESCRIPT = (opts?: Partial<TSOpts>) => {
- const { indent } = { inde... | feat(wasm-api): update TSOpts & TS codegen | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
@@ -279,11 +279,11 @@ describe('End-to-end Router test', async function () {
}
}
- it.only('Random swap test', async function () {
- const testSeed = '4' // Change it to change random generator values
+ it.skip('Random swap test', async function () {
+ const testSeed = '10' // Change it to change random generator value... | feat: RP random test | null | sushiswap/sushiswap | MIT License | TypeScript |
@@ -185,23 +185,6 @@ class Connection extends BaseConnection implements ConnectionInterface
*/
public function setDatabase(string $databaseName): bool
{
- if ($databaseName === '')
- {
- $databaseName = $this->database;
- }
-
- if (empty($this->connID))
- {
- $this->initialize();
- }
-
- if ($this->connID->select_db($d... | feat: add setDatabase method | null | codeigniter4/codeigniter4 | MIT License | PHP |
@@ -73,6 +73,7 @@ open class ExoPlayerPlayback(
private val mainHandler = Handler()
val eventsListener = ExoPlayerEventsListener()
private val bitrateEventsListener = ExoPlayerBitrateLogger()
+ private val videoResolutionListener by lazy { VideoResolutionChangeListener(this) }
private val timeElapsedHandler = PeriodicT... | feat: attach video resolution change listener to exoPlayerPlayback | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -53,3 +53,25 @@ test('test fetch collection entry', function () {
$fetch = flextype('entries')->fetchCollection('foo');
$this->assertTrue(count($fetch) > 0);
});
+
+test('test copy entry', function () {
+ // 1
+ flextype('entries')->create('foo', []);
+ flextype('entries')->create('foo/bar', []);
+ flextype('entries... | feat(core): add test for copy() and delete() methods | null | flextype/flextype | MIT License | PHP |
@@ -7,6 +7,7 @@ import (
"go.uber.org/zap"
"github.com/influxdata/influxdb"
+ "github.com/influxdata/influxdb/kit/check"
"github.com/influxdata/influxdb/rand"
"github.com/influxdata/influxdb/snowflake"
)
@@ -135,3 +136,13 @@ func (s *Service) Initialize(ctx context.Context) error {
func (s *Service) WithStore(store Sto... | feat(tasks): add health check to kv service | null | influxdata/influxdb | MIT License | Go |
@@ -15,3 +15,51 @@ limitations under the License.
*/
package client
+
+import (
+ "context"
+ "fmt"
+
+ "google.golang.org/grpc"
+
+ "github.com/codenotary/immudb/pkg/schema"
+)
+
+func Get(address string, key string) ([]byte, error) {
+ connection, err := grpc.Dial(address, grpc.WithInsecure())
+ if err != nil {
+ ret... | feat: poc grpc client | null | codenotary/immudb | Apache License 2.0 | Go |
+#! /bin/bash
+
+# Usage: curl -sL https://raw.githubusercontent.com/IBM/kui/master/tools/install.sh | sh
+# TODO: Eventually -> curl -sL https://install.kui-shell.org | sh
+
+echo ""
+echo "|----- Kui, the hybrid command-line/GUI Kubernetes tool -----|"
+
+echo ""
+echo "Some commands need \"sudo\", so your pass could... | feat: shell script to install prebuilt releases | null | ibm/kui | Apache License 2.0 | Shell |
@@ -50,11 +50,12 @@ open class ExoPlayerPlayback(source: String, mimeType: String? = null, options:
private val eventsListener = ExoplayerEventsListener()
private val timeElapsedHandler = PeriodicTimeElapsedHandler(200L, { checkPeriodicUpdates() })
private var lastBufferPercentageSent = 0.0
- private var trackSelector:... | feat(configure_selector): add selector configuration methods | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -125,6 +125,26 @@ pub enum GetDatabaseError {
ServerError(tonic::Status),
}
+/// Errors returned by Client::delete_database
+#[derive(Debug, Error)]
+pub enum DeleteDatabaseError {
+ /// Database not found
+ #[error("Database not found")]
+ DatabaseNotFound,
+
+ /// Server indicated that it is not (yet) available
+ ... | feat: Add delete database to the management client | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -12,6 +12,7 @@ public let kMimeType = "mimeType"
public let kDefaultSubtitle = "defaultSubtitle"
public let kDefaultAudioSource = "defaultAudioSource"
public let kMinDvrSize = "minDvrSize"
+public let kMediaControlAlwaysVisible = "mediaControlAlwaysVisible"
public let kMetaData = "metadata"
public let kMetaDataConte... | feat: create moving option to keep mediacontrol visible from steve to clappr | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -8,11 +8,13 @@ from brownie._config import CONFIG as _CONFIG
from brownie.convert import Fixed, Wei
from brownie.network import accounts, alert, chain, history, rpc, web3
from brownie.network.contract import Contract # NOQA: F401
+from brownie.network.multicall2 import Multicall2
ETH_ADDRESS = "0xEeeeeEeeeEeEeeEeEeE... | feat: add multicall2 to brownie namespace | null | eth-brownie/brownie | MIT License | Python |
@@ -372,6 +372,16 @@ export enum InstanceClass {
*/
X1E = 'x1e',
+ /**
+ * Memory-intensive instances, 2nd generation with Graviton2 processors and local NVME drive
+ */
+ MEMORY_INTENSIVE_2_GRAVITON2_NVME_DRIVE = 'x2gd',
+
+ /**
+ * Memory-intensive instances, 2nd generation with Graviton2 processors and local NVME dr... | feat(ec2): add X2gd instances | null | aws/aws-cdk | Apache License 2.0 | TypeScript |
@@ -46,6 +46,15 @@ test('test collect_filter() method', function () {
$this->assertContains(collect_filter($random, ['return' => 'first']), $data);
$this->assertContains(collect_filter($random, ['return' => 'last']), $data);
+ // return: exists
+ $this->assertTrue(collect_filter($data, ['return' => 'exists']));
+
+ // ... | feat(tests): improve tests for Collection | null | flextype/flextype | MIT License | PHP |
@@ -17,9 +17,9 @@ class Endpoints
* Status code messages.
*
* @var array
- * @access private
+ * @access public
*/
- private array $statusCodeMessages = [
+ public array $statusCodeMessages = [
'400' => [
'title' => 'Bad Request',
'message' => 'Validation for this particular item failed',
| feat(endpoints): fix visibility of property statusCodeMessages | null | flextype/flextype | MIT License | PHP |
+const got = require('@/utils/got');
+const cheerio = require('cheerio');
+
+module.exports = async (ctx) => {
+ let id = ctx.params.id || 'Fashion';
+
+ id = id.toLowerCase();
+
+ const rootUrl = 'https://www.esquirehk.com';
+ const topics = ['style', 'watch', 'money-investment', 'lifestyle', 'culture', 'mens-talk', '... | feat: add esquirehk | null | diygod/rsshub | MIT License | JavaScript |
@@ -25,7 +25,7 @@ function checkGitState() {
}
function updateDockerReleaseScript () {
- sed -i.bak -E "s/vt_base_version=.*/vt_base_version='$1'/g" $ROOT/docker/release.sh
+ sed -i.bak -E "s/vt_base_version=.*/vt_base_version='v$1'/g" $ROOT/docker/release.sh
rm -f $ROOT/docker/release.sh.bak
}
| feat: fix release script | null | vitessio/vitess | Apache License 2.0 | Shell |
@@ -134,6 +134,14 @@ export default (() => {
return true
}
+ static clearPlugins() {
+ registry.plugins = {}
+ }
+
+ static clearPlaybacks() {
+ registry.playbacks = []
+ }
+
/**
* builds the loader
* @method constructor
| feat(loader): add a way to clean up the plugin/playback registry | null | clappr/clappr-core | BSD 3-Clause New or Revised License | JavaScript |
@@ -182,6 +182,7 @@ impl InputFormat for CsvInputFormat {
deserializers.push(data_type.create_deserializer(self.min_accepted_rows));
}
+ let mut state = std::mem::replace(state, self.create_state());
let state = state.as_any().downcast_mut::<CsvInputState>().unwrap();
let cursor = Cursor::new(&state.memory);
let reader... | feat(format): replace state each deserialize | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -33,7 +33,7 @@ else
exit 1
fi
-EXPECTED_BENCHWIZARD_VERSION="0.1.1"
+EXPECTED_BENCHWIZARD_VERSION="0.2.0"
echo -n "benchwizard >= $EXPECTED_BENCHWIZARD_VERSION ..... "
@@ -55,4 +55,4 @@ echo
echo
# Run the check
-benchwizard benchmark $*
+benchwizard benchmark -pc $*
| feat: performance script update for bench-wizard 0.2.0 | null | galacticcouncil/hydradx-node | Apache License 2.0 | Shell |
@@ -200,6 +200,20 @@ contract {} {{}}
)
}
+ /// Adds a new test file inside the project's test dir
+ pub fn add_test(&self, name: impl AsRef<str>, content: impl AsRef<str>) -> Result<PathBuf> {
+ let name = contract_file_name(name);
+ let tests = self.paths().tests.join(name);
+ create_contract_file(tests, content)
+ }... | feat(solc): add missing helper functions | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
@@ -24,8 +24,8 @@ impl ClientTlsParameters {
}
/// Accepted protocols by default.
-/// This removes TLS 1.0 compared to tls-native defaults.
-pub const DEFAULT_TLS_PROTOCOLS: &[Protocol] = &[Protocol::Tlsv11, Protocol::Tlsv12];
+/// This removes TLS 1.0 and 1.1 compared to tls-native defaults.
+pub const DEFAULT_TLS_PR... | feat(transport): Remove TLS 1.1 in accepted protocols by default (only allow TLS 1.2) | null | lettre/lettre | MIT License | Rust |
@@ -39,7 +39,7 @@ const Navbar = (props: Props) => {
const getNavListLink = (link: NavLink, index: number) => (
<NavDropdown.Item
- className={link.dividerAbove ? `${link.className} border-top mt-1 pt-2` : link.className}
+ className={link.dividerAbove ? 'border-top mt-1 pt-2' : ''}
href={link.href ? link.href : ''}
ke... | feat(navbar.tsx): minor syntax change | null | hospitalrun/components | MIT License | TypeScript |
using System;
using System.Collections.Generic;
-using System.ComponentModel;
using System.IO;
using System.Threading;
using Avalonia.Input;
using Avalonia.Input.Raw;
-using Avalonia.Threading;
using static Avalonia.LinuxFramebuffer.Input.LibInput.LibInputNativeUnsafeMethods;
namespace Avalonia.LinuxFramebuffer.Input.L... | feat(LibInputBackend): minimal linux boot with no input | null | avaloniaui/avalonia | MIT License | C# |
@@ -8,6 +8,7 @@ export interface INavClasses {
ul?: string;
li?: string;
a?: string;
+ span?: string;
ulActive?: string;
liActive?: string;
@@ -25,7 +26,8 @@ export interface INavClasses {
<li repeat.for="route of routes" if.bind="route.visible" class="\${route.active ? classes.liActive : ''} \${route.hasChildren} \${c... | feat(router): add separator to nav | null | aurelia/aurelia | MIT License | TypeScript |
@@ -40,6 +40,7 @@ fn run() -> Result<()> {
.setting(AppSettings::SubcommandRequiredElseHelp)
.author("Max Brunsfeld <maxbrunsfeld@gmail.com>")
.about("Generates and tests parsers")
+ .global_setting(AppSettings::ColoredHelp)
.subcommand(SubCommand::with_name("init-config").about("Generate a default config file"))
.subc... | feat(cli): Enable clap colored help | null | tree-sitter/tree-sitter | MIT License | Rust |
@@ -209,8 +209,8 @@ class Forms
{
if (Arr::keyExists($values, $element)) {
$field_value = Arr::get($values, $element);
- } elseif(Arr::keyExists($properties, 'value')) {
- $field_value = $properties['value'];
+ } elseif(Arr::keyExists($properties, 'default')) {
+ $field_value = $properties['default'];
} else {
$field_v... | feat(core): add new field property `default` instead of `value` | null | flextype/flextype | MIT License | PHP |
@@ -597,6 +597,13 @@ macro_rules! app_from_crate {
#[macro_export]
macro_rules! clap_app {
(@app ($builder:expr)) => { $builder };
+ (@app ($builder:expr) (@arg ($name:expr): $($tail:tt)*) $($tt:tt)*) => {
+ clap_app!{ @app
+ ($builder.arg(
+ clap_app!{ @arg ($crate::Arg::with_name($name)) (-) $($tail)* }))
+ $($tt)*
+... | feat(clap_app!): adds support for arg names with hyphens similar to longs with hyphens | null | clap-rs/clap | Apache License 2.0 | Rust |
@@ -53,7 +53,7 @@ public extension SolanaSDK {
case unknown
// Predefined error
- static var couldNotRetrieveAccountInfo: Self {
+ public static var couldNotRetrieveAccountInfo: Self {
.other("Could not retrieve account info")
}
}
| feat: public couldNotRetrieveAccountInfo error | null | p2p-org/solana-swift | MIT License | Swift |
@@ -153,4 +153,21 @@ final class Reflection
return $name;
}
+
+ /**
+ * Receive a map of function argument names to their types.
+ *
+ * @return array<string, string>
+ */
+ public static function getFunctionArguments(Closure $function): array
+ {
+ $parameters = (new ReflectionFunction($function))->getParameters();
+ ... | feat: add helper function for mapping a function's arguments | null | pestphp/pest | MIT License | PHP |
@@ -114,7 +114,7 @@ func (w *heartbeatWriter) Open() {
}
log.Info("Hearbeat Writer: opening")
- w.pool.Open(w.env.Config().DB.DbaWithDB())
+ w.pool.Open(w.env.Config().DB.AppWithDB())
w.enableWrites(true)
w.isOpen = true
}
| feat: change heartbeat writer to use vt_app user | null | vitessio/vitess | Apache License 2.0 | Go |
@@ -30,6 +30,7 @@ import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.util.List;
+import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.function.Predicate;
import org.apache.maven.execution.MavenSession;
@@ -211,10 +212,20 @@ abstract class... | feat(#1423): use Executor service instead of thread | null | cqfn/eo | MIT License | Java |
@@ -43,8 +43,8 @@ open class Player: AVPlayerViewController {
}
override open var preferredFocusEnvironments: [UIFocusEnvironment] {
- if let view = nextFocusEnvironment as? UIView, view.alpha > 0.1 {
- return [view]
+ if let nextFocusEnvironment = nextFocusEnvironment, nextFocusEnvironment.isFocusable {
+ return [next... | feat: apply requestFocus and updateFocus events on player and isFocusable check | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -63,6 +63,7 @@ const StyledSeatWrapper = styled.div`
&:active,
&:focus {
+ outline: revert;
${StyledPathNormal}, ${StyledPathSmall} {
fill: ${resolveFillColor({ theme, type, selected, focus: true })};
}
| feat(Seat): change focus to native colors | null | kiwicom/orbit | MIT License | JavaScript |
@@ -118,3 +118,17 @@ namespace acl
#endif
}
}
+
+//////////////////////////////////////////////////////////////////////////
+// Silence compiler warnings within switch cases that fall through
+// Note: C++17 has [[fallthrough]];
+//////////////////////////////////////////////////////////////////////////
+#if defined(AC... | feat(core): add macro to avoid warnings with fallthrough switch cases | null | nfrechette/acl | MIT License | C |
@@ -20,7 +20,8 @@ use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
+use function Thermage\div;
+use function Therm... | feat(console): improve `entries:delete` logic | null | flextype/flextype | MIT License | PHP |
@@ -117,7 +117,9 @@ class TicketViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
val price = if (tax?.rate != null && tax.isTaxIncludedInPrice) (ticket.price * 100) / (100 + tax.rate)
else ticket.price
- val priceInfo = "<b>${resource.getString(R.string.price)}:</b> ${"%.2f".format(price)}"
+ val priceD... | feat: Add ticket currency for ticket detail | null | fossasia/open-event-attendee-android | Apache License 2.0 | Kotlin |
@@ -21,6 +21,13 @@ impl BitSet {
Self::default()
}
+ /// Creates a new BitSet with `count` unset bits.
+ pub fn with_capacity(count: usize) -> Self {
+ let mut bitset = Self::default();
+ bitset.append_unset(count);
+ bitset
+ }
+
/// Appends `count` unset bits
pub fn append_unset(&mut self, count: usize) {
self.len +=... | feat: add with_capacity constructor | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -7,7 +7,7 @@ import 'dart:async';
import 'dart:collection';
import 'dart:ui';
import 'dart:ffi';
-
+import 'dart:math' as math;
import 'package:kraken/bridge.dart';
import 'package:flutter/animation.dart';
import 'package:flutter/foundation.dart';
@@ -39,6 +39,10 @@ const Map<String, dynamic> _defaultStyle = {
BORDE... | feat: add line-height and font size change logic | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -330,6 +330,7 @@ open class AVFoundationPlayback: Playback {
}
open override func seekToLivePosition() {
+ play()
seek(Double.infinity)
}
@@ -566,7 +567,7 @@ extension AVFoundationPlayback {
if isPaused && isDvrAvailable { return true }
guard let end = dvrWindowEnd, playbackType == .live else { return false }
guard ... | feat: create and use liveHeadTolerance to return isDvrInUse | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -155,6 +155,11 @@ while read -r lib; do
echo -e "libfreetype6" >> "${tmpdir}/.depdetect_ubuntu_list"
echo -e "libfreetype6" >> "${tmpdir}/.depdetect_debian_list"
libdetected=1
+ elif [ "${lib}" == "libc++.so.1" ]; then
+ echo -e "libcxx" >> "${tmpdir}/.depdetect_centos_list"
+ echo -e "libc++1" >> "${tmpdir}/.depdet... | feat(dev): add libc++.so.1 for dependency detection | null | gameservermanagers/linuxgsm | MIT License | Shell |
@@ -43,6 +43,10 @@ const AtomPopover = forwardRef(
? typeof onClose === 'function' && onClose(ev)
: typeof onOpen === 'function' && onOpen(ev)
}
+
+ const ContentComponent =
+ typeof content === 'function' ? content : () => content
+
return (
<>
<PopoverExtendChildren ref={targetRef} onToggle={handleToggle}>
@@ -64,10 ... | feat(components/atom/popover): Improve variables naming | null | sui-components/sui-components | MIT License | JavaScript |
@@ -16,6 +16,7 @@ const args = arg({
'--binary': String,
'--workpath': String,
+ '--wsl-map': String,
'--stop-on-error': String,
@@ -40,6 +41,7 @@ const args = arg({
'-s': '--secret',
'-b': '--binary',
'-w': '--workpath',
+ '-m': '--wsl-map',
'--ae': '--aerender-parameter'
});
@@ -82,6 +84,8 @@ if (args['--help']) {
-w... | feat(#442): nexrender-worker wsl support | null | inlife/nexrender | MIT License | JavaScript |
@@ -208,9 +208,16 @@ CreatePunctCandidate(const string& punct, const Segment& segment) {
bool is_ascii = (ch >= 0x20 && ch < 0x7F);
bool is_ideographic_space = (ch == 0x3000);
bool is_full_shape_ascii = (ch >= 0xFF01 && ch <= 0xFF5E);
- bool is_half_shape_kana = (ch >= 0xFF65 && ch <= 0xFFDC);
- is_half_shape = is_asci... | feat: half/full-shape labels for more characters | null | rime/librime | BSD 3-Clause New or Revised License | C++ |
@@ -12,7 +12,7 @@ from dataset import input_index_data
cur_dir = os.path.dirname(os.path.abspath(__file__))
sum_of_score = 0
-num_of_matches = 0
+num_of_searches = 0
def config(model_name):
@@ -65,16 +65,16 @@ def print_evaluation_score(resp):
batch_of_score = 0
for doc in resp.search.docs:
batch_of_score += doc.evalua... | feat: rename variable to number searches | null | jina-ai/examples | Apache License 2.0 | Python |
@@ -65,7 +65,7 @@ func PlannerNameToVersion(s string) (PlannerVersion, bool) {
case "gen4fallback":
return querypb.ExecuteOptions_Gen4WithFallback, true
case "gen4comparev3":
- return querypb.ExecuteOptions_V3, true
+ return querypb.ExecuteOptions_Gen4CompareV3, true
}
return 0, false
}
| feat: return the correct planner version for the string gen4comparev3 | null | vitessio/vitess | Apache License 2.0 | Go |
@@ -677,9 +677,9 @@ func (qre *QueryExecutor) getConn() (*connpool.DBConn, error) {
// collation.
// We encapsulate this check in a parent if that verifies that the execute options
// we receive is not nil, this situation can happen in tests for instance.
- if qre.options != nil {
- if err := conn.MatchCollation(collat... | feat: added a todo in query executor to fail collation mismatch | null | vitessio/vitess | Apache License 2.0 | Go |
@@ -19,8 +19,9 @@ package db
import (
"fmt"
- "github.com/codenotary/immudb/pkg/tree"
"github.com/dgraph-io/badger/v2"
+
+ "github.com/codenotary/immudb/pkg/tree"
)
const reservedPrefix = '_'
@@ -62,3 +63,17 @@ func (t *Topic) Set(key string, value []byte) error {
}
return nil
}
+
+func (t *Topic) Get(key string) ([]by... | feat: poc topic get | null | codenotary/immudb | Apache License 2.0 | Go |
@@ -32,7 +32,9 @@ const (
# Output structured violations data
gator test --filename="manifest.yaml" --output=json
- Note: The alpha "gator test" has been renamed to "gator verify"`
+ Note: The alpha "gator test" has been renamed to "gator verify". "gator
+ verify" verifies individual Constraint Templates against suites... | feat: Add additional context to `gator test --help` | null | open-policy-agent/gatekeeper | Apache License 2.0 | Go |
@@ -37,17 +37,20 @@ export class MDCIconButtonToggle extends MDCComponent<MDCIconButtonToggleFoundat
protected root_!: HTMLElement; // assigned in MDCComponent constructor
- private readonly ripple_: MDCRipple = this.createRipple_();
- private handleClick_!: SpecificEventListener<'click'>; // assigned in initialSyncWit... | feat(iconbutton): Remove trailing underscores from private properties | null | material-components/material-components-web | MIT License | TypeScript |
@@ -265,7 +265,6 @@ open class AVFoundationPlayback: Playback {
private func durationAvailable() {
trigger(.assetReady)
seekToStartAtIfNeeded()
- seekToLiveStartTimeIfNeeded()
}
private func seekToStartAtIfNeeded() {
@@ -275,9 +274,9 @@ open class AVFoundationPlayback: Playback {
}
private func seekToLiveStartTimeIfNee... | feat: change the moment of the live start at seek and the calc on AVFoundationPlayback | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -9,11 +9,12 @@ import re
import ftrack_api
from pype.ftrack import BaseAction
from avalon import io, inventory, schema
-from pypeapp import Anatomy
+
class TestAction(BaseAction):
'''Edit meta data action.'''
+ ignore_me = True
#: Action identifier.
identifier = 'test.action'
#: Action label.
@@ -34,11 +35,8 @@ clas... | feat(ftrack): reversing changes on action_test | null | pypeclub/openpype | MIT License | Python |
@@ -25,7 +25,7 @@ class EntriesFetchCommand extends Command
$this->setDescription('Fetch entry.');
$this->addArgument('id', InputArgument::OPTIONAL, 'Unique identifier of the entry.');
$this->addArgument('options', InputArgument::OPTIONAL, 'Options array.');
- $this->addOption('collection', null, InputOption::VALUE_NON... | feat(console): update EntriesFetchCommand | null | flextype/flextype | MIT License | PHP |
@@ -11,12 +11,6 @@ import archive
import manager
import reporting
-def window_width(window):
- return window.getmaxyx()[1]
-
-def window_height(window):
- return window.getmaxyx()[0]
-
class Log:
entries = []
cur_pos = 0
@@ -81,7 +75,7 @@ def curses_main(stdscr):
# Page layout. Currently requires at least ~40 rows.
# T... | feat: add job progress histogram to interactive mode; other minor improvements to interactive mode display | null | ericaltendorf/plotman | Apache License 2.0 | Python |
@@ -6,8 +6,12 @@ import Sso from './sso';
import serverProxy from './proxy';
export = (env) => {
- const region = (env.region || process.env.npm_package_config_region || 'eu')
- .toLowerCase();
+ const region = (
+ env.region ||
+ process.env.REGION ||
+ process.env.npm_package_config_region ||
+ 'eu'
+ ).toLowerCase()... | feat(manager-webpack-dev-server): use process env as region fallback | null | ovh/manager | BSD 3-Clause New or Revised License | TypeScript |
@@ -257,6 +257,12 @@ impl ClientBuilder {
urls("https://api-testnet.arbiscan.io/api", "https://testnet.arbiscan.io")
}
Chain::Cronos => urls("https://api.cronoscan.com/api", "https://cronoscan.com"),
+ Chain::Moonbeam => {
+ urls("https://api-moonbeam.moonscan.io/api", "https://moonbeam.moonscan.io/")
+ }
+ Chain::Moon... | feat(etherscan): add moonbeam urls | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
@@ -31,15 +31,16 @@ void OnGUI()
if (NetworkManager.singleton == null)
return;
- if (NetworkServer.active || NetworkClient.active)
- return;
-
if (!NetworkClient.isConnected && !NetworkServer.active && !NetworkClient.active)
DrawGUI();
+
+ if (NetworkServer.active || NetworkClient.active)
+ StopButtons();
}
void DrawGU... | feat: Added Stop buttons to Discovery HUD | null | vis2k/mirror | MIT License | C# |
@@ -81,20 +81,15 @@ class Result extends BaseResult implements ResultInterface
*/
public function getFieldData(): array
{
- $retVal = [];
- $fieldData = $this->resultID->fetch_fields();
-
- foreach ($fieldData as $i => $data)
- {
- $retVal[$i] = new \stdClass();
- $retVal[$i]->name = $data->name;
- $retVal[$i]->type = ... | feat: add get field data method | null | codeigniter4/codeigniter4 | MIT License | PHP |
@@ -84,9 +84,21 @@ up)
--detach
--name solana-localnet
--rm
- --publish 8899:8899
- --publish 8900:8900
- --publish 9900:9900
+ --publish 8001:8001/tcp # entrypoint
+ --publish 8899:8899/tcp # rpc http
+ --publish 8900:8900/tcp # rpc pubsub
+ --publish 8901:8901/tcp # (future) bank service
+ --publish 8902:8902/tcp # b... | feat: publish more docker ports in localnet script | null | solana-labs/solana-web3.js | MIT License | Shell |
@@ -131,7 +131,7 @@ public final class OptimizeMojo extends SafeMojo {
"Running %s optimizations in parallel",
tasks.size()
);
- final int done = tasks.parallelStream().mapToInt(Supplier::get).sum();
+ final long done = tasks.parallelStream().mapToInt(Supplier::get).sum();
if (done > 0) {
Logger.info(
this,
@@ -146,6 +... | feat(#1347): add bug description | null | cqfn/eo | MIT License | Java |
@@ -20,7 +20,7 @@ import io.clappr.player.plugin.PluginEntry
import io.clappr.player.plugin.UIPlugin.Visibility
import io.clappr.player.plugin.core.UICorePlugin
-open class MediaControl(core: Core) : UICorePlugin(core, name = name) {
+open class MediaControl(core: Core, pluginName: String = name) : UICorePlugin(core, n... | feat(media_control): make media control open | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
+// @flow
+const SUPPORTS_SMOOTH_SCROLL = document.body != null && 'scrollBehavior' in document.body.style;
+
+export function scrollSmooth(x: number, y: number) {
+ if (SUPPORTS_SMOOTH_SCROLL) {
+ window.scroll({
+ top: y,
+ left: x,
+ behavior: 'smooth',
+ });
+ } else {
+ window.scroll(x, y);
+ }
+}
| feat: scrollSmooth | null | lwjgl/lwjgl3-www | BSD 3-Clause New or Revised License | JavaScript |
@@ -38,7 +38,7 @@ const IndexPage: React.FC<{}> = (): React.ReactElement => {
<P variant="lead">
Paste is a design system used to build accessible, consistent, and high quality customer experiences at
Twilio. Paste is open source and contributions are welcome.{' '}
- <SiteLink to="/getting-started/about-paste/">Read mo... | feat(docs): remove "here" from homepage CTA | null | twilio-labs/paste | MIT License | TypeScript |
@@ -11,6 +11,10 @@ final Directory snapshots = Directory('./snapshots');
String pass = (AnsiPen()..green())('[TEST PASS]');
String err = (AnsiPen()..red())('[TEST ERROR]');
+String addJavaScriptClosure(String input) {
+ return '(function(){\n$input\n})();';
+}
+
void main() {
if (!snapshots.existsSync()) {
snapshots.cr... | feat: test fixtures add closure | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -6,7 +6,11 @@ import (
"github.com/go-resty/resty/v2"
)
-var headerDataType = "application/json"
+// docs: https://github.com/go-resty/resty
+
+const (
+ headerDataType = "application/json"
+)
type restyClient struct {
}
@@ -15,11 +19,21 @@ func newRestyClient() *restyClient {
return &restyClient{}
}
-func (r restyC... | feat: optimize get func | null | go-eagle/eagle | MIT License | Go |
package org.cloudfoundry.credhub.config;
+import com.google.common.annotations.VisibleForTesting;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.flywaydb.core.Flyway;
@@ -28,15 +29,16 @@ public class FlywayMigrationStrategyConfiguration {
};
}
+ @VisibleForTesting
void re... | feat: should be more visible | null | cloudfoundry-incubator/credhub | Apache License 2.0 | Java |
-import { PI, HALF_PI } from "./api";
+import { HALF_PI, PI } from "./api";
export const mix = (a: number, b: number, t: number) => a + (b - a) * t;
@@ -59,7 +59,7 @@ export const circular = (t: number) => {
return Math.sqrt(1 - t * t);
};
-export const cosine = (t: number): number => 1 - (Math.cos(t * PI) * 0.5 + 0.5)... | feat(math): add sigmoid / sigmoid11 fns | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
@@ -61,7 +61,8 @@ func (c *InstallStrategyDeploymentClientForNamespace) EnsureServiceAccount(servi
}
func (c *InstallStrategyDeploymentClientForNamespace) CreateDeployment(deployment *v1beta1extensions.Deployment) (*v1beta1extensions.Deployment, error) {
- return c.opClient.CreateDeployment(deployment)
+ _, d, err := c... | feat(client/deployment_install): create OR update deployment by name | null | operator-framework/operator-lifecycle-manager | Apache License 2.0 | Go |
@@ -180,10 +180,6 @@ public final class ResolveMojo extends SafeMojo {
* Find all deps for all Tojos.
*
* @return List of them
- * @todo #1595:30 Make method 'deps' testable. For now it's not possible to test
- * 'ignoreTransitive=false' branch because it's hard to mock all required fields.
- * Maybe we should provide ... | feat(#1598): remove puzzle | null | cqfn/eo | MIT License | Java |
@@ -160,6 +160,14 @@ async def push(
data: github_types.GitHubEvent,
score: typing.Optional[str] = None,
) -> None:
+ with tracer.trace(
+ "push event",
+ span_type="worker",
+ resource=f"{owner_login}/{repo_name}/{pull_number}",
+ ) as span:
+ span.set_tags(
+ {"gh_owner": owner_login, "gh_repo": repo_name, "gh_pull":... | feat(monitoring): trace and tag push events | null | mergifyio/mergify-engine | Apache License 2.0 | Python |
import { bind } from "@react-rxjs/core"
import { createListener } from "@react-rxjs/utils"
-import { scan } from "rxjs/operators"
+import { scan, tap } from "rxjs/operators"
export enum TileView {
Normal = "normal",
@@ -10,12 +10,19 @@ export enum TileView {
const [toggleSelectedView$, onToggleSelectedView] = createLis... | feat(new-client): persist selected tile view | null | adaptiveconsulting/reactivetradercloud | Apache License 2.0 | TypeScript |
@@ -176,8 +176,8 @@ static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf,
static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence)
{
LV_UNUSED(drv);
- lseek((lv_uintptr_t)file_p, pos, whence);
- return LV_FS_RES_OK;
+ off_t offset = lseek((lv_uintptr_t)... | feat(fsdrv): add posix lseek() error checking | null | lvgl/lvgl | MIT License | C |
@@ -10,7 +10,7 @@ import (
)
// DockerComposeImage holds the Docker image:tag to use for Docker Compose
-const DockerComposeImage = "docker/compose:1.28.0"
+const DockerComposeImage = "docker/compose:1.29.2"
// TtyAware interface holds functions for becoming aware of TTY
type TtyAware interface {
| feat: updated docker-compose service image version | null | kool-dev/kool | MIT License | Go |
@@ -67,7 +67,7 @@ open class ExoPlayerPlayback(
}
protected var player: SimpleExoPlayer? = null
- protected val bandwidthMeter = DefaultBandwidthMeter()
+ protected val bandwidthMeter: DefaultBandwidthMeter = DefaultBandwidthMeter.Builder(applicationContext).build()
private val mainHandler = Handler()
val eventsListene... | feat: replace deprecated api call to DefaultBandwidthMeter constructor | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -15,7 +15,7 @@ open class AVFoundationPlayback: Playback {
fileprivate var kvoBufferingContext = 0
fileprivate var kvoExternalPlaybackActiveContext = 0
- fileprivate var player: AVPlayer?
+ public var player: AVPlayer?
fileprivate var playerLayer: AVPlayerLayer?
fileprivate var playerStatus: AVPlayerStatus = .unknow... | feat(AVFoundationPlayback): Change AVPayer property visibility to public | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -4,7 +4,7 @@ import io.holunda.camunda.taskpool.api.task.CaseReference
import io.holunda.camunda.taskpool.api.task.ProcessReference
import org.springframework.data.annotation.Id
import org.springframework.data.annotation.TypeAlias
-import org.springframework.data.mongodb.core.mapping.DBRef
+import org.springframewor... | feat: add mongo indexes | null | holunda-io/camunda-bpm-taskpool | Apache License 2.0 | Kotlin |
@@ -10,6 +10,7 @@ from jina import Document
cur_dir = os.path.dirname(os.path.abspath(__file__))
+
def config(model_name):
os.environ['JINA_PARALLEL'] = os.environ.get('JINA_PARALLEL', '1')
os.environ['JINA_SHARDS'] = os.environ.get('JINA_SHARDS', '1')
@@ -28,7 +29,6 @@ def config(model_name):
raise ValueError(msg)
-
d... | feat: fix evaluate flow | null | jina-ai/examples | Apache License 2.0 | Python |
@@ -448,13 +448,16 @@ def update_parent_document_on_communication(doc):
# if status has a "Replied" option, then update the status for received communication
if ('Replied' in options) and doc.sent_or_received=="Received":
- parent.db_set("status", "Open")
+ parent.status = "Open"
+ parent.flags.ignore_mandatory = True
... | feat(Communication): set avg response time in parent | null | frappe/frappe | MIT License | Python |
@@ -8,11 +8,18 @@ import 'package:kraken/dom.dart';
import 'package:kraken/rendering.dart';
import 'package:kraken/scheduler.dart';
+enum AppearEventState {
+ none,
+ appear,
+ disappear
+}
mixin EventHandlerMixin on Node {
static const int MAX_STEP_MS = 10;
final Throttling _throttler = Throttling(duration: Duration(m... | feat: appear and disappear event only trigger once at same state | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -46,6 +46,12 @@ namespace acl
// It is not a valid value for compressed tracks.
any = 0,
+ //////////////////////////////////////////////////////////////////////////
+ // Special version identifier used when decompressing.
+ // This indicates that no version is supported by decompression.
+ // It is not a valid valu... | feat(core): add a version identifier to mean no version | null | nfrechette/acl | MIT License | C |
@@ -54,9 +54,8 @@ impl Scheme for RTLxInterface {
self.driver.0.lock().int_disable();
match self.iface.lock().poll(&mut sockets, timestamp) {
- Ok(_) => {
- //SOCKET_ACTIVITY.notify_all();
- debug!("try_handle_interrupt SOCKET_ACTIVITY unimplemented");
+ Ok(b) => {
+ debug!("nic poll, is changed ?: {}", b);
}
Err(err) ... | feat: add route in rtlx nic | null | rcore-os/zcore | MIT License | Rust |
@@ -49,14 +49,12 @@ class GestureManager {
if (renderBoxModelList.length != 0) {
renderBoxModelList[0].onPan(GestureEvent(EVENT_PAN, GestureEventInit( state: EVENT_STATE_START, deltaX: details.globalPosition.dx, deltaY: details.globalPosition.dy )));
}
- renderBoxModelList = [];
}
void onPanUpdate(DragUpdateDetails det... | feat: modify clear renderBoxModelList | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -129,7 +129,7 @@ const ArtistAutosuggestScreenQuery = graphql`
query ArtistAutosuggestQuery {
me {
myCollectionInfo {
- collectedArtistsConnection(first: 100) {
+ collectedArtistsConnection(first: 100, includePersonalArtists: true) {
edges {
node {
__typename
| feat: Add includePersonalArtists param to collection artist query | null | artsy/eigen | MIT License | TypeScript |
@@ -33,6 +33,35 @@ func newLabelPermission(a influxdb.Action, id influxdb.ID) (*influxdb.Permission
return p, p.Valid()
}
+func newResourcePermission(a influxdb.Action, id influxdb.ID, resourceType influxdb.ResourceType) (*influxdb.Permission, error) {
+ if err := resourceType.Valid(); err != nil {
+ return nil, err
+ ... | feat(authorizer): authorization of label mappings creation | null | influxdata/influxdb | MIT License | Go |
@@ -7,6 +7,7 @@ import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
+import 'dart:ui';
import 'package:kraken/kraken.dart';
class KrakenWidget extends StatelessWidget {
@@ -21,13 +22,23 @@ class KrakenWidget extends StatelessWidget... | feat: add assertion for viewportSize | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -12,6 +12,7 @@ public class VRTK_SDKManagerEditor : Editor
private SDK_BaseHeadset previousHeadsetSDK;
private SDK_BaseController previousControllerSDK;
private SDK_BaseBoundaries previousBoundariesSDK;
+ private VRTK_SDKManager.SupportedSDKs quicklySelectedSDK = VRTK_SDKManager.SupportedSDKs.None;
public override v... | feat(Editor): add quick select sdk option | null | extendrealityltd/vrtk | MIT License | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.