diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -7,6 +7,7 @@ namespace Rollbar\Senders;
* https://github.com/segmentio/analytics-php/blob/master/lib/Segment/Consumer/Socket.php
*/
+use CurlHandle;
use Rollbar\Response;
use Rollbar\Payload\Payload;
use Rollbar\Payload\EncodedPayload;
@@ -128,7 +129,7 @@ class CurlSender implements SenderInterface
$this->batchReque... | feat: strong type the curl handle in helper func | null | rollbar/rollbar-php | MIT License | PHP |
@@ -107,8 +107,8 @@ func (t UserModel) HideUserCenterEntrance() bool {
func (t UserModel) Template(str string) string {
if t.cacheReplacer == nil {
- t.cacheReplacer = strings.NewReplacer("{{.Id}}", strconv.Itoa(int(t.Id)),
- "{{.Name}}", t.Name, "{{.UserName}}", t.UserName)
+ t.cacheReplacer = strings.NewReplacer("{{.... | feat(permissions): improve permissions | null | goadmingroup/go-admin | Apache License 2.0 | Go |
@@ -471,9 +471,26 @@ func (self *NotifyModelDispatcher) UpdateContacts(ctx context.Context, idstr str
newDatas = append(newDatas, tmp)
}
+ // Enable closing feishu and dingtalk notify.
+ // Temporary solution for 3.2.
+ allPullType := sets.NewString(models.FEISHU, models.DINGTALK)
+
pulls := make([]string, len(pullCtyp... | feat: Supports disabling of feishu and dingtalk notification | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -10,39 +10,22 @@ fn main() {
}
fn app(cx: Scope) -> Element {
- cx.render(rsx! {
- Router {
- Route { to: "/", home() }
- Route { to: "/login", login() }
- }
- })
-}
-
-fn home(cx: Scope) -> Element {
- cx.render(rsx! {
- h1 { "Welcome Home" }
- Link { to: "/login", "Login" }
- })
-}
-
-fn login(cx: Scope) -> Elemen... | feat: simplify login example | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
@@ -82,14 +82,25 @@ class BaseTestCommands(unittest.TestCase):
kwargs.update(site)
else:
kwargs = site
- command = " ".join(command.split()).format(**kwargs)
- print("{0}$ {1}{2}".format(color.silver, command, color.nc))
- command = shlex.split(command)
+ self.command = " ".join(command.split()).format(**kwargs)
+ prin... | feat: Show command execution summary in message format | null | frappe/frappe | MIT License | Python |
@@ -46,7 +46,7 @@ class ImgElement extends Element {
if (!determinBothWidthAndHeight) {
imageStream = image.resolve(imageBox.configuration);
imageListeners = [
- ImageStreamListener(getImageInfo),
+ ImageStreamListener(initImageInfo),
ImageStreamListener(handleEventAfterImageLoaded),
];
imageListeners.forEach((ImageStr... | feat: opt method name | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -29,7 +29,8 @@ class BrowserDOMInitializer implements IDOMInitializer {
config.host.ownerDocument,
Node,
Element,
- HTMLElement
+ HTMLElement,
+ CustomEvent
);
} else {
dom = new HTMLDOM(
@@ -37,7 +38,8 @@ class BrowserDOMInitializer implements IDOMInitializer {
document,
Node,
Element,
- HTMLElement
+ HTMLElement,
... | feat(runtime-html-browser): add customevent constructor to instantiation | null | aurelia/aurelia | MIT License | TypeScript |
@@ -2,7 +2,6 @@ package com.cicada.player.utils.ass;
import android.content.Context;
import android.graphics.Color;
-import android.graphics.Paint;
import android.graphics.Typeface;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
@@ -14,6 +13,7 @@ import android.text.style.StyleSpan;
import and... | feat(assSub): update pos implement | null | alibaba/cicadaplayer | MIT License | Java |
@@ -41,12 +41,25 @@ public class Credentials extends GenericModel {
String CLOUD_OBJECT_STORAGE = "cloud_object_storage";
}
+ /**
+ * The current status of this set of credentials. `connected` indicates that the credentials are available to use with
+ * the source configuration of a collection. `invalid` refers to the ... | feat(Discovery): Add status prop to Credentials | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -25,7 +25,7 @@ return [
],
Exception::GENERAL_SERVICE_DISABLED => [
'name' => Exception::GENERAL_SERVICE_DISABLED,
- 'description' => 'The requested service is disabled. You can enable/disable a service from the Appwrite console or by contacting the project administrator.',
+ 'description' => 'The requested service ... | feat: update error messages | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -2,3 +2,4 @@ export { default as t } from './t';
export { default as setLocale } from './set-locale';
export { default as addTranslations } from './add-translations';
export { default as setupIntl } from './setup-intl';
+export type { TestContext, IntlTestContext } from './setup-intl';
| feat: re-export test-support `TestContext` | null | ember-intl/ember-intl | MIT License | TypeScript |
@@ -66,6 +66,157 @@ class Entries
],
];
+ /**
+ * Fetch.
+ *
+ * @param string $id Unique identifier of the entry.
+ * @param array $options Options array.
+ *
+ * @access public
+ *
+ * @return self Returns instance of The Arrays class.
+ */
+ public function fetch(string $id, array $options = []): Arrays
+ {
+ // Sto... | feat(entries): add fetch() method with ability to execute different methods with fetch prefix | null | flextype/flextype | MIT License | PHP |
@@ -9,13 +9,6 @@ namespace TodoTemplate.Api.Startup
{
if (env.IsDevelopment())
{
- app.UseSwagger();
-
- app.UseSwaggerUI(options =>
- {
- options.InjectJavascript("/swagger/swagger-utils.js");
- });
-
app.UseDeveloperExceptionPage();
#if BlazorWebAssembly
@@ -30,6 +23,13 @@ namespace TodoTemplate.Api.Startup
app.UseBl... | feat(template): enable Swagger for all environments | null | bitfoundation/bitframework | MIT License | C# |
@@ -207,12 +207,18 @@ class Element extends Node
} else if (axisDirection == AxisDirection.right) {
offsetX += scrollOffset;
}
+ // Save original offset to scroll container in element tree to
+ // act as base offset to compute dynamic sticky offset later
child.originalScrollContainerOffset = Offset(
offsetX,
offsetY
);... | feat: exclude padding from sticky offset | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -56,6 +56,7 @@ class ChannelInfoCommand : AbstractCommand("command.channelinfo") {
"**Position** ${voice.position}\n" +
"**UserLimit** ${voice.userLimit}\n" +
"**Connected Users** ${voice.members.size}\n" +
+ "**Mention** <#${voice.idLong}>\n" +
"**Link** [click](https://discord.com/channels/${voice.guild.id}/${voic... | feat: voice channel mention | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -26,6 +26,7 @@ var debugCmd = &cobra.Command{
Config: config,
Debug: true,
PWD: pwd,
+ Shell: shellName,
},
}
env.Init()
@@ -58,5 +59,6 @@ var debugCmd = &cobra.Command{
func init() { //nolint:gochecknoinits
debugCmd.Flags().StringVar(&pwd, "pwd", "", "current working directory")
+ debugCmd.Flags().StringVar(&shellN... | feat(debug): add shell name | null | jandedobbeleer/oh-my-posh | MIT License | Go |
@@ -25,6 +25,8 @@ public class SegmentSettings extends GenericModel {
private Boolean enabled;
@SerializedName("selector_tags")
private List<String> selectorTags;
+ @SerializedName("annotated_fields")
+ private List<String> annotatedFields;
/**
* Gets the enabled.
@@ -41,7 +43,8 @@ public class SegmentSettings extends ... | feat(Discovery): Add annotatedFields prop to SegmentSettings | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -4,6 +4,7 @@ import (
"errors"
"fmt"
+ "github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/commands/cmdutils"
@@ -52,6 +53,13 @@ func NewCmdList(f *cmdutils.Factory, runE func(opts *ListOptions) error) *cobra.
Short: `List merge requests`,
Long: ``,
Aliases: []stri... | feat(commands/mr/list): add EXAMPLES | null | profclems/glab | MIT License | Go |
@@ -37,12 +37,10 @@ pub fn subcommands<'a, 'b>() -> App<'a, 'b> {
let share = SubCommand::with_name("share")
.about("share the given bdev")
.arg(Arg::with_name("name").required(true).index(1))
- .arg(
- Arg::with_name("protocol")
- .help("the protocol to used to share the given bdev")
- .required(false)
- .default_valu... | feat: make bdev share protocol argument as an option | null | openebs/mayastor | Apache License 2.0 | Rust |
@@ -41,3 +41,7 @@ export declare type PromiseType<T extends PromiseLike<any>> = T extends PromiseL
* Get the return type of a function which returns a Promise.
*/
export declare type PromiseReturnType<T extends (...args: any) => Promise<any>> = PromiseType<ReturnType<T>>
+
+export namespace Prisma {
+ export type Trans... | feat(client): add TransactionClient stub to default-index.d.ts | null | prisma/prisma | Apache License 2.0 | TypeScript |
@@ -1041,6 +1041,47 @@ export class $ECMAScriptFunction<
// 5. Return FunctionInitialize(F, kind, ParameterList, Body, Scope).
return this.FunctionInitialize(F, kind, node, Scope);
}
+
+ // http://www.ecma-international.org/ecma-262/#sec-makeconstructor
+ public MakeConstructor(writablePrototype?: $Boolean, prototype?:... | feat(aot): implement MakeConstructor | null | aurelia/aurelia | MIT License | TypeScript |
@@ -559,7 +559,7 @@ class KrakenRenderParagraph extends RenderBox
}
}
- /// Get text of each line in the paragraph
+ // Get text of each line in the paragraph.
List<String> _getLineTexts(TextPainter textPainter, TextSpan textSpan) {
TextSelection selection =
TextSelection(baseOffset: 0, extentOffset: textSpan.text!.len... | feat: avoid layout text twice when line-height not defined | null | openkraken/kraken | Apache License 2.0 | Dart |
+# coding: utf-8
+
+from __future__ import print_function
+
import argparse
+import multiprocessing
import os
import platform
-import queue
import shutil
import subprocess
import sys
@@ -35,8 +39,8 @@ def parse_argv():
misc.add_argument('-tests_matching', help='Only run tests whose names match this regex')
misc.add_arg... | feat: convert make.py to support python2 | null | nfrechette/acl | MIT License | Python |
@@ -21,7 +21,7 @@ metamodlatestfile="$(wget "${metamodscrapeurl}" -q -O -)"
metamoddownloadurl="https://www.metamodsource.net/latest.php?os=linux&version=${metamodmversion}"
metamodurl="${metamoddownloadurl}"
# Sourcemod
-sourcemodmversion="1.9"
+sourcemodmversion="1.10"
sourcemodscrapeurl="https://sm.alliedmods.net/sm... | feat(mod): Update sourcemod to 1.10 | null | gameservermanagers/linuxgsm | MIT License | Shell |
@@ -66,6 +66,15 @@ if (! function_exists('content')) {
}
}
+if (! function_exists('media')) {
+ /**
+ * Get Flextype Media Service.
+ */
+ function media() {
+ return flextype()->container()->get('media');
+ }
+}
+
if (! function_exists('parsers')) {
/**
* Get Flextype Parsers Service.
| feat(media): add `media` helper | null | flextype/flextype | MIT License | PHP |
@@ -289,6 +289,11 @@ __all__ = [
logger = logging.getLogger(__name__)
+default_termination_conds = {
+ TimeScale.RUN: Never(),
+ TimeScale.TRIAL: AllHaveRun(),
+}
+
class SchedulerError(Exception):
@@ -349,10 +354,7 @@ class Scheduler(JSONDumpable):
composition=None,
graph=None,
conditions=None,
- termination_conds={
-... | feat(Scheduler): allow partial specification of default termination conditions | null | princetonuniversity/psyneulink | Apache License 2.0 | Python |
@@ -97,9 +97,6 @@ class BlogPost(WebsiteGenerator):
else:
context.comment_text = _('{0} comments').format(len(context.comment_list))
- def get_site_url(self):
- return frappe.utils.get_url()
-
def get_list_context(context=None):
list_context = frappe._dict(
template = "templates/includes/blog/blog.html",
| feat: clean up unused api and white spaces | null | frappe/frappe | MIT License | Python |
@@ -103,10 +103,17 @@ public class BodyWidget extends Widget {
var focusedColor = new Color(1.0F, 1.0F, 1.0F, 1.0F);
var unfocusedColor = new Color(0.4F, 0.4F, 0.4F, 1.0F);
+ var orbitOffset = orbit.orbitedBodyOffset();
+
for (var angle = 0.0F; angle <= 360.0F; angle += 1.0F) {
var trailX = orbit.width() * Math.cos(Mat... | feat: orbit offsets | null | mixinors/astromine | MIT License | Java |
@@ -1175,7 +1175,7 @@ func (c *Channel) ShouldRequeueToEnd(clientID int64, clientAddr string, id Messa
}
if c.chLog.Level() >= levellogger.LOG_DEBUG || c.IsTraced() {
- c.chLog.LogDebugf("check requeue to end, timeout:%v, msg timestamp:%v, depth ts:%v, msg attempt:%v, waiting :%v",
+ c.chLog.Logf("check requeue to end,... | feat: adjust trace log for channel | null | youzan/nsq | MIT License | Go |
/*
- * Copyright 2011-2021 B2i Healthcare Pte Ltd, http://b2i.sg
+ * Copyright 2011-2022 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -57,15 +57,17 @@ public abstract class RefSetSupport {
... | feat(snomed): Move allowed referenced component types for simple.. | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -13,6 +13,8 @@ class Origin extends Validator
const CLIENT_TYPE_FLUTTER_MACOS = 'flutter-macos';
const CLIENT_TYPE_FLUTTER_WINDOWS = 'flutter-windows';
const CLIENT_TYPE_FLUTTER_LINUX = 'flutter-linux';
+ const CLIENT_TYPE_ANDROID = 'android';
+
const SCHEME_TYPE_HTTP = 'http';
const SCHEME_TYPE_HTTPS = 'https';
@@ ... | feat: added android origin check | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -105,3 +105,10 @@ test('test getCacheID entry', function () {
$this->assertEquals(32, strlen($cache_id));
flextype('registry')->set('flextype.settings.cache.enabled', false);
});
+
+test('test setStorage and getStorage entry', function () {
+ flextype('entries')->setStorage('foo', ['title' => 'Foo']);
+ flextype('en... | feat(core): add test setStorage() and getStorage() entry | null | flextype/flextype | MIT License | PHP |
+const completionSpec: Fig.Spec = {
+ name: "traceroute",
+ description: "Print the route packets take to network host",
+ options: [
+ {
+ name: ["--help", "-h"],
+ description: "Show help for traceroute",
+ },
+ {
+ name: "-a",
+ description: "Turn on AS# lookups for each hop encountered",
+ },
+ {
+ name: "-A",
+ ar... | feat: add traceroute completion spec | null | withfig/autocomplete | MIT License | TypeScript |
+private let imageCache = NSCache<AnyObject, AnyObject>()
+
public extension UIImageView {
func setImage(from url: URL) {
+ if let imageFromCache = imageCache.object(forKey: url.absoluteString as AnyObject) as? UIImage {
+ self.image = imageFromCache
+ return
+ }
+
let request = URLRequest(url: url, cachePolicy: .retur... | feat: adding NSCache to UIImageView extension | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -80,5 +80,18 @@ enum class Event(val value: String) {
/**
* Player is requesting to exit fullscreen
*/
- EXIT_FULLSCREEN("exitFullscreen")
+ EXIT_FULLSCREEN("exitFullscreen"),
+
+ /**
+ * Request to update poster
+ */
+ REQUEST_POSTER_UPDATE("requestPosterUpdate"),
+ /**
+ * Will update poster image
+ */
+ WILL_UPDA... | feat(poster): add poster update events | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -42,7 +42,9 @@ describe('mock', () => {
return expect(project.fails(false)).resolves.toMatchObject({ name: 'DevOps' });
});
- test('reject works', () => {
+ test('reject works', async () => {
+ project.fails = mock.rejectWith<Project>();
+ await expect(project.fails(false)).rejects.toMatchObject({ });
project.fails ... | feat(test): adding tests to rejectWith<T>() | null | thisisagile/easy | MIT License | TypeScript |
//!
//! [Application Service]: https://matrix.org/docs/spec/application_service/r0.1.2
//! [matrix-org/matrix-rust-sdk#228]: https://github.com/matrix-org/matrix-rust-sdk/issues/228
-//! [examples directory]: https://github.com/matrix-org/matrix-rust-sdk/tree/master/matrix_sdk_appservice/examples
+//! [examples directo... | feat(appservice): Add method to get virtual user map | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
@@ -28,7 +28,7 @@ class EntriesDeleteCommand extends Command
{
$io = new SymfonyStyle($input, $output);
- if (entries()->delete($input->getOption('id'), $data)) {
+ if (entries()->delete($input->getOption('id'))) {
$io->success('Deleted entry ' . $input->getOption('id'));
return Command::SUCCESS;
} else {
| feat(console): update EntriesDeleteCommand options | null | flextype/flextype | MIT License | PHP |
import { css } from '@emotion/react';
import { ArticleDesign, ArticleDisplay } from '@guardian/libs';
import type { ArticleFormat } from '@guardian/libs';
-import { between, body, headline, space } from '@guardian/source-foundations';
+import {
+ between,
+ body,
+ headline,
+ space,
+ textSans,
+} from '@guardian/sour... | feat: Add default global h3 styles | null | guardian/dotcom-rendering | Apache License 2.0 | TypeScript |
@@ -44,6 +44,7 @@ type WidgetBuilderFn<T> = dyn Fn() -> Box<dyn Widget<T>> + 'static;
pub struct WindowDesc<T> {
pub(crate) root_builder: Arc<WidgetBuilderFn<T>>,
pub(crate) title: Option<LocalizedString<T>>,
+ pub(crate) size: Option<(f32, f32)>,
pub(crate) menu: Option<MenuDesc<T>>,
//TODO: more things you can config... | feat: Interface to setting window size in app.rs | null | linebender/druid | Apache License 2.0 | Rust |
@@ -178,7 +178,7 @@ class BM25Ranker(TfIdfRanker):
"""
q_df, q_id = TfIdfRanker._get_df(match_idx)
total_df = np.sum(q_df)
- return {idx: np.log10((total_df + 1.) / (df + 0.5)) for idx, df in zip(q_id, q_df)}
+ return {idx: np.log10((total_df + 1.) / (df + 0.5)) ** 2 for idx, df in zip(q_id, q_df)}
def get_tf(self, mat... | feat(ranker): fix the idf | null | jina-ai/jina | Apache License 2.0 | Python |
@@ -292,6 +292,42 @@ pub fn builtins() -> Builtins<'static> {
"from" => Node::Builtin("forall [t0] (driverName: string, dataSourceName: string, query: string) -> [t0]"),
"to" => Node::Builtin("forall [t0] (<-tables: [t0], driverName: string, dataSourceName: string, table: string, ?batchSize: int) -> [t0]"),
}),
+ "stri... | feat(libflux): add type declarations for strings | null | influxdata/flux | MIT License | Rust |
@@ -7,29 +7,61 @@ import frappe, json
from frappe.model.document import Document
from frappe.permissions import (get_valid_perms, update_permission_property)
from frappe import _
+from frappe.utils import cstr
from frappe.core.utils import find
from frappe.desk.form.linked_with import get_linked_doctypes
class UserPerm... | feat: add validation for overlap default entries | null | frappe/frappe | MIT License | Python |
@@ -13,6 +13,7 @@ use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\Common\Collections\Expr\Comparison;
use Flextype\Component\Arr\Arr;
+use Awilum\ArrayDots\ArrayDots;
use function array_merge;
use function array_rand;
use function count;
@@ -111,7 +112,7 @@ class ... | feat(element-queries): Collections API use ArrayDots lib | null | flextype/flextype | MIT License | PHP |
@@ -57,13 +57,13 @@ public extension SolanaSDK {
let type: String?
}
- let program: String?
- let programId: String
- let parsed: Parsed?
+ public let program: String?
+ public let programId: String
+ public let parsed: Parsed?
// swap
public let data: String?
- let accounts: [String]?
+ public let accounts: [String]?
... | feat(instruction): change private to public | null | p2p-org/solana-swift | MIT License | Swift |
@@ -17,7 +17,6 @@ import 'package:smooth_app/database/product_query.dart';
import 'package:smooth_app/generic_lib/buttons/smooth_action_button.dart';
import 'package:smooth_app/generic_lib/design_constants.dart';
import 'package:smooth_app/helpers/analytics_helper.dart';
-import 'package:smooth_app/helpers/launch_url_h... | feat: remove bottom fab button in product page | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -277,6 +277,33 @@ class VerbosityTest extends BaseRollbarTest
);
}
+ /**
+ * Test verbosity of \Rollbar\RollbarLogger::log for reports
+ * rejected by the API (response status >= 400).
+ *
+ * @return void
+ */
+ public function testRollbarLoggerResponseStatusError()
+ {
+ $this->rollbarLogTest(
+ array( // config
+... | feat(dev options): test verbosity when api rejects requests | null | rollbar/rollbar-php | MIT License | PHP |
@@ -56,6 +56,8 @@ class Precomputed(object):
dimension : `int`, optional
Dimension of feature vectors. This is not used when `root_dir` already
exists and contains `metadata.yml`.
+ labels : iterable, optional
+ Human-readable name for each dimension.
Notes
-----
@@ -71,7 +73,7 @@ class Precomputed(object):
return path... | feat: add optional dimension "label" in Precomputed | null | pyannote/pyannote-audio | MIT License | Python |
@@ -50,6 +50,10 @@ class V06 extends Filter {
$parsedResponse = $this->parseCountryList($content);
break;
+ case Response::MODEL_PHONE_LIST:
+ $parsedResponse = $this->parsePhoneList($content);
+ break;
+
case Response::MODEL_ANY :
$parsedResponse = $content;
break;
@@ -66,9 +70,20 @@ class V06 extends Filter {
}
+ pri... | feat: parse phone list | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -50,3 +50,23 @@ test('test move() method', function () {
$this->assertTrue(flextype('media_files')->move('bar.txt', 'foo.txt'));
$this->assertFalse(flextype('media_files')->move('bar.txt', 'foo.txt'));
});
+
+test('test copy() method', function () {
+ $this->assertTrue(flextype('media_folders')->create('foo'));
+ $t... | feat(tests): add tests for MediaFiles copy() and has() method | null | flextype/flextype | MIT License | PHP |
@@ -77,6 +77,29 @@ type Client struct {
Timeout time.Duration
}
+// GDErrorField describe the error reason
+type GDErrorField struct {
+ Code *string `json:"code,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Path *string `json:"path,omitempty"`
+ PathRelated *string `json:"pathRelated,omitempty"`
+}
+
+// ... | feat: Declare error response model | null | kubernetes-sigs/external-dns | Apache License 2.0 | Go |
@@ -80,6 +80,10 @@ export class ExpressAdapter extends AbstractHttpAdapter {
return this.use(handler);
}
+ public isHeadersSent(response: any): boolean {
+ return response.headersSent;
+ }
+
public setHeader(response: any, name: string, value: string) {
return response.set(name, value);
}
| feat(platform-express): header sent abstraction | null | nestjs/nest | MIT License | TypeScript |
@@ -72,6 +72,11 @@ func (assert *Assert) Run(fn func(assert *Assert), descs ...string) {
})
}
+// Log logs using the test instance logger.
+func (assert *Assert) Log(v ...interface{}) {
+ assert.t.Log(v...)
+}
+
// ProverSucceeded fails the test if any of the following step errored:
//
// 1. compiles the circuit (or fe... | feat(test): add Log method for logging in subtests | null | consensys/gnark | Apache License 2.0 | Go |
-import 'dart:async';
-
import 'package:campus_mobile_experimental/core/providers/cards.dart';
import 'package:campus_mobile_experimental/ui/common/container_view.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
@@ -68,12 +66,11 @@ class _CardsViewState extends State<CardsView> {
activeColor: The... | feat(bug): update formatting for profile/cards.dart | null | ucsd/campus-mobile | MIT License | Dart |
@@ -37,6 +37,7 @@ public class TrainLanguageModelOptions extends GenericModel {
private String customizationId;
private String wordTypeToAdd;
private Double customizationWeight;
+ private Boolean strict;
/**
* Builder.
@@ -45,11 +46,13 @@ public class TrainLanguageModelOptions extends GenericModel {
private String cust... | feat(Speech to Text): Add strict param to TrainLanguageModelOptions | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
+import logging
+
from importlib import import_module, invalidate_caches
from inspect import isawaitable
from typing import Any, AsyncIterable, Callable, Dict, List, Optional, Union
@@ -19,6 +21,8 @@ from tartiflette.types.exceptions.tartiflette import (
)
from tartiflette.utils.errors import to_graphql_error
+logger =... | feat(engine): add warning if deprecated parameters are used | null | tartiflette/tartiflette | MIT License | Python |
@@ -9,7 +9,7 @@ declare(strict_types=1);
namespace Flextype\Foundation\Entries;
-use Flextype\Component\Arrays\Arrays;
+use Atomastic\Arrays\Arrays;
use function array_merge;
use function collect_filter;
@@ -40,7 +40,7 @@ class Entries
*/
public function getStorage(string $key)
{
- return Arrays::get($this->storage, $k... | feat(entries): use Atomastic Arrays for Entries | null | flextype/flextype | MIT License | PHP |
part of firebase_core_web;
/// The currently supported Firebase JS SDK version.
-const String supportedFirebaseJsSdkVersion = '9.11.0';
+const String supportedFirebaseJsSdkVersion = '9.15.0';
| feat: bump Firebase JS SDK to 9.15 | null | firebaseextended/flutterfire | BSD 3-Clause New or Revised License | Dart |
@@ -37,7 +37,8 @@ pub(crate) fn unwrap_block(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option
parent = parent.ancestors().find(|it| ast::MatchExpr::can_cast(it.kind()))?
}
- if matches!(parent.kind(), SyntaxKind::STMT_LIST | SyntaxKind::EXPR_STMT) {
+ if matches!(parent.kind(), SyntaxKind::STMT_LIST | SyntaxKind::... | feat: allow unwrap block in let initializers | null | rust-lang/rust-analyzer | Apache License 2.0 | Rust |
@@ -25,12 +25,10 @@ namespace OpenTelemetry.Trace.Tests
public class TracerTest : IDisposable
{
// TODO: This is only a basic test. This must cover the entire shim API scenarios.
- private readonly TracerProvider tracerProvider;
private readonly Tracer tracer;
public TracerTest()
{
- this.tracerProvider = TracerProvide... | feat(enhance-tracertest): removed unused tracerProvider | null | open-telemetry/opentelemetry-dotnet | Apache License 2.0 | C# |
@@ -22,6 +22,7 @@ import io.clappr.player.plugin.core.externalinput.ExternalInputPlugin
* Once instantiated it should be [configured][configure] and added to a view hierarchy before playback can begin.
*/
open class Player(private val base: BaseObject = BaseObject(),
+ private val coreEventsToListen: MutableSet<String>... | feat(player): allow registration of custom Core events | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -118,6 +118,11 @@ func findPositionForTablet(ctx context.Context, tablet *topodatapb.Tablet, logge
status, err := tmc.ReplicationStatus(ctx, tablet)
if err != nil {
+ sqlErr, isSQLErr := mysql.NewSQLErrorFromError(err).(*mysql.SQLError)
+ if isSQLErr && sqlErr != nil && sqlErr.Number() == mysql.ERNotReplica {
+ logg... | feat: check for empty replication status in findingForPositionTablet | null | vitessio/vitess | Apache License 2.0 | Go |
@@ -59,7 +59,7 @@ export class Delegation extends Model<Delegation> {
const arrDates = this.delegationScopes
?.filter((x) => x.validTo !== null && x.validTo !== undefined)
.map((x) => x.validTo) as Array<Date>
- if (arrDates) {
+ if (arrDates && arrDates.length > 0) {
// Return the max value
return arrDates.reduce((a, ... | feat(auth-public-api): check arr length | null | island-is/island.is | MIT License | TypeScript |
@@ -7,6 +7,7 @@ import { Link } from 'react-router'
import Loading from '../../common/components/Loading'
import EditableTextField from '../../common/components/EditableTextField'
+import WatchButton from '../../common/containers/WatchButton'
import { versionsSorter } from '../../common/util/util'
import { getComponent... | feat(deployment): add watch button for OTP deployments | null | ibi-group/datatools-ui | MIT License | JavaScript |
+package io.clappr.player.plugin.core.externalinput
+
+import io.clappr.player.base.NamedType
+import io.clappr.player.components.Core
+import io.clappr.player.plugin.PluginEntry
+import io.clappr.player.plugin.core.CorePlugin
+
+class ExternalInputPlugin(core: Core) : CorePlugin(core, name = name) {
+ companion object... | feat: create ExternalInputPlugin | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -95,9 +95,8 @@ func (ac *AzureClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecG
ctx, _, done := tele.StartSpanWithLogger(ctx, "virtualmachines.AzureClient.Delete")
defer done()
- // TODO: pass variable to force the deletion or not
- // now we are not forcing.
- deleteFuture, err := ac.virtualmachines... | feat: use force delete when deleting VMs | null | kubernetes-sigs/cluster-api-provider-azure | Apache License 2.0 | Go |
@@ -53,20 +53,18 @@ impl Interpreter for CreateUserStageInterpreter {
let user_stage = plan.user_stage_info;
if user_stage.stage_type == StageType::Internal {
- let prefix = format!("stage/{}", user_stage.stage_name);
+ let prefix = format!("stage/{}/", user_stage.stage_name);
let op = self.ctx.get_storage_operator()?;... | feat(stage): fix mkdir stage | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -8,11 +8,12 @@ from jina.logging.profile import ProgressBar
@pytest.mark.parametrize('total_steps', [0, 1, 10, 100])
@pytest.mark.parametrize('update_tick', [1, 4, 0.1, 0.5])
@pytest.mark.parametrize('task_name', [None, 'test', ''])
-def test_progressbar(total_steps, update_tick, task_name, capsys):
+@pytest.mark.pa... | feat(helper): add update desc & details for progressbar | null | jina-ai/jina | Apache License 2.0 | Python |
@@ -18,7 +18,7 @@ import com.ibm.cloud.sdk.core.service.model.GenericModel;
/**
* Workspace settings related to the disambiguation feature.
*
- * **Note:** This feature is available only to Premium users.
+ * **Note:** This feature is available only to Plus and Premium users.
*/
public class WorkspaceSystemSettingsDisa... | feat(Assistant v1): Add randomize and maxSuggestions props to WorkspaceSystemSettingsDisambiguation | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -249,10 +249,10 @@ class MessageReactionAddedListener(container: Container) : AbstractListener(cont
container.daoManager, event.guild.idLong, author?.idLong
?: -1
)
- .setAuthor(author?.asTag ?: "deleted_user#0000", null, author?.effectiveAvatarUrl)
+ .setAuthor(author?.asTag ?: "deleted_user#0000", ogMessage.jumpUr... | feat: add jumpUrl to the starboard | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -79,17 +79,30 @@ const newSub = (name: string) => `new${name}: ${name}!`
const updatedSub = (name: string) => `updated${name}: ${name}!`
const deletedSub = (name: string) => `deleted${name}: ID!`
+export const getFieldNameAndType = (f: InputModelFieldContext): { fieldName: string; fieldType: string } => {
+ let fiel... | feat: add relation to input and filter type | null | aerogear/graphback | Apache License 2.0 | TypeScript |
@@ -28,7 +28,7 @@ use function strings;
class Storage
{
/**
- * Storage Registry
+ * Storage Registry.
*
* Local entries registry used for storing current requested
* storage data and allow to change them on fly.
@@ -38,7 +38,7 @@ class Storage
private Arrays $registry;
/**
- * Storage options
+ * Storage options.
*
* ... | feat(storage): typo updates for Storage class | null | flextype/flextype | MIT License | PHP |
@@ -46,6 +46,7 @@ import {
Highlighter as HighlightDefinition,
} from '../definition'
import {
+ Marker,
Router,
Connector,
ConnectionPoint,
@@ -1845,6 +1846,7 @@ export namespace Graph {
export const registerHighlighter = HighlightDefinition.registry.register
export const registerPortLayout = PortLayout.registry.regis... | feat: export registerMarker method | null | antvis/x6 | MIT License | TypeScript |
@@ -65,6 +65,8 @@ func NewRequester(tangle *Tangle, optionalOptions ...RequesterOption) *Requester
options: newRequesterOptions(optionalOptions),
Events: &MessageRequesterEvents{
SendRequest: events.NewEvent(sendRequestEventHandler),
+ RequestStarted: events.NewEvent(MessageIDCaller),
+ RequestStopped: events.NewEvent(... | feat: added more events for debugging | null | iotaledger/goshimmer | Apache License 2.0 | Go |
@@ -4,12 +4,16 @@ import java.util.Collection;
import java.util.UUID;
import lombok.RequiredArgsConstructor;
import org.burningokr.annotation.RestApiController;
+import org.burningokr.dto.okr.ObjectiveDto;
import org.burningokr.dto.structure.StructureSchemaDto;
import org.burningokr.dto.structure.SubStructureDto;
impor... | feat(StructureController): added method to get objectives of a structure | null | burningokr/burningokr | Apache License 2.0 | Java |
@@ -50,6 +50,12 @@ exports.handleConnect = function(req, res) {
var hasEvent = util.listenerCount(proxy, 'tunnelRequest');
var isConn = req.inspectFrames;
if (hasEvent || isConn) {
+ var pauseReq, pauseRes;
+ var ignoreReq, ignoreRes;
+ var reqCallback, resCallback;
+ var reqData = [];
+ var resData = [];
+
var url = r... | feat: support to mock data for socket connections | null | avwo/whistle | MIT License | JavaScript |
@@ -7,11 +7,16 @@ fi
# Check packaging constraint.
python -c 'import setuptools; where="./src"; assert setuptools.find_packages(where) == setuptools.find_namespace_packages(where), "you seem to be missing or have extra __init__.py files"'
-
+if [[ ${RELEASE_VERSION:-} ]]; then
+ # Replace version with RELEASE_VERSION e... | feat(ci): adding support for env variables in python release script | null | linkedin/datahub | Apache License 2.0 | Shell |
@@ -154,7 +154,7 @@ class VideoGridFragment(
binding.container.apply {
unbindVideo(currentRenderedView.binding, currentRenderedView.video)
- removeView(currentRenderedView.binding.root)
+ removeViewInLayout(currentRenderedView.binding.root)
}
}
}
@@ -217,6 +217,7 @@ class VideoGridFragment(
}
private fun unbindVideo(bi... | feat(video-grid): release EglContext in onStop | null | 100mslive/100ms-android | MIT License | Kotlin |
@@ -207,6 +207,10 @@ fn catch<'vm>(
})
}
+fn throw(msg: String) -> IO<OpaqueValue<RootedThread, A>> {
+ IO::Exception(msg)
+}
+
fn clear_frames<T>(mut err: Error, stack: StackFrame) -> IO<T> {
let new_trace = match ::vm::thread::reset_stack(stack, 1) {
Ok(x) => x,
@@ -317,6 +321,7 @@ pub fn load(vm: &Thread) -> Result<... | feat(std): Add std.io.throw | null | gluon-lang/gluon | MIT License | Rust |
@@ -6,6 +6,10 @@ import Member from '@webex/plugin-meetings/src/member';
describe('member', () => {
+ afterEach(() => {
+ sinon.restore();
+ });
+
it('checks that processParticipant calls isHandRaised', () => {
const participant = {controls: {}};
| feat(raisehand): sinon restore after each added | null | webex/webex-js-sdk | MIT License | JavaScript |
@@ -50,6 +50,8 @@ module Pact
http = Net::HTTP.new(uri.host, uri.port, :ENV)
http.set_debug_output(output_stream) if verbose
http.use_ssl = (uri.scheme == 'https')
+ http.ca_file = ENV['SSL_CERT_FILE'] if ENV['SSL_CERT_FILE'] && ENV['SSL_CERT_FILE'] != ''
+ http.ca_path = ENV['SSL_CERT_DIR'] if ENV['SSL_CERT_DIR'] && E... | feat: use certificates from SSL_CERT_FILE and SSL_CERT_DIR environment variables in HTTP connections | null | pact-foundation/pact-ruby | MIT License | Ruby |
@@ -51,7 +51,7 @@ import com.netflix.graphql.types.subscription.Error as SseError
@RestController
open class DgsSSESubscriptionHandler(open val dgsQueryExecutor: DgsQueryExecutor) {
- @GetMapping("/subscriptions", produces = [MediaType.TEXT_EVENT_STREAM_VALUE])
+ @GetMapping("\${dgs.graphql.sse.path:/subscriptions}", p... | feat: customise the subscription endpoint for sse | null | netflix/dgs-framework | Apache License 2.0 | Kotlin |
@@ -384,6 +384,11 @@ impl Address {
pub fn address(&self) -> &str {
from_utf8(self.inner.as_slice()).unwrap_or("Invalid UTF-8")
}
+
+ /// Check if address is local
+ pub fn is_local(&self) -> bool {
+ self.tt == LOCAL
+ }
}
impl core::str::FromStr for Address {
| feat(rust): add `is_local` to `Address` | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -1997,7 +1997,7 @@ def filter_matrix_columns(A, theta):
return A_filter
-def filter_matrix_rows(A, theta, diagonal=False, lump=False, cost=[0.0]):
+def filter_matrix_rows(A, theta, diagonal=False, lump=False):
"""
Filter each row of A with tol, i.e., drop all entries in row k where
abs(A[i,k]) < tol max( abs(A[:,k])... | feat: change inplace doc | null | pyamg/pyamg | MIT License | Python |
@@ -251,8 +251,7 @@ export default function position(elem, options) {
position.left += myOffset[0];
position.top += myOffset[1];
- // ['left', 'top'].forEach((dir, i) => {
- ['top'].forEach((dir, i) => {
+ ['left', 'top'].forEach((dir, i) => {
const coll = collision[i];
if (rules[coll]) {
rules[coll][dir](position, {
@... | feat: flip position | null | ksc-fe/kpc | MIT License | JavaScript |
@@ -288,6 +288,11 @@ class URL
$item['aid'] = $node_explode[2];
if (count($node_explode) >= 4) {
$item['net'] = $node_explode[3];
+ if ($item['net'] == 'ws') {
+ $item['path'] = '/';
+ } else if ($item['net'] == 'tls') {
+ $item['tls'] = 'tls';
+ }
} else {
$item['net'] = "tcp";
}
| feat(v2ray): add json gentaure support for ws and tls | null | chensee/ss-panel-v3-mod_uim-alipay-wxpay | MIT License | PHP |
@@ -33,6 +33,11 @@ export class ESLScrollbar extends ESLBaseElement {
/** @readonly Inactive state marker */
@boolAttr({readonly: true}) public inactive: boolean;
+ /** @readonly Scroll at start marker */
+ @boolAttr({readonly: true}) public atStart: boolean;
+ /** @readonly Scroll at end marker */
+ @boolAttr({readonl... | feat(esl-scrollbar): add at-end / at-start markers | null | exadel-inc/esl | MIT License | TypeScript |
@@ -667,6 +667,56 @@ impl ScopeState {
value
}
+ /// Provide a context for the root component from anywhere in your app.
+ ///
+ ///
+ /// # Example
+ ///
+ /// ```rust, ignore
+ /// struct SharedState(&'static str);
+ ///
+ /// static App: Component = |cx| {
+ /// cx.use_hook(|_| cx.provide_root_context(SharedState("w... | feat: allow providing context to the root component | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
@@ -84,6 +84,7 @@ class SkillsActivity : AppCompatActivity(), SkillFragmentCallback {
loginMenuItem?.setTitle("Logout")
val signUpMenuItem = menu?.findItem(R.id.menu_signup)
signUpMenuItem?.setVisible(false)
+ signUpMenuItem?.setEnabled(false)
}
return true
}
| feat: Disable signup when logged in | null | fossasia/susi_android | Apache License 2.0 | Kotlin |
@@ -40,6 +40,7 @@ func NewServer(handler http.Handler, logger *zap.Logger) *Server {
ShutdownTimeout: DefaultShutdownTimeout,
srv: &http.Server{
Handler: handler,
+ ErrorLog: zap.NewStdLog(logger),
},
logger: logger,
}
| feat(http): add error logger for http server errors | null | influxdata/influxdb | MIT License | Go |
@@ -45,8 +45,6 @@ abstract class OAuth
$this->callback = $callback;
$this->state = $state;
$this->scopes = $scopes;
- var_dump($scopes);
- exit();
}
/**
@@ -87,6 +85,25 @@ abstract class OAuth
*/
abstract public function getUserName(string $accessToken):string;
+ /**
+ * @param $scope
+ *
+ * @return array
+ */
+ prote... | feat: added methods for adding and getting scopes | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -12,9 +12,9 @@ export default async function run (projectRoot: string, urls: OnPremiseUrls): Pr
name: 'apiKey',
message: 'What is your Bugsnag project API key?',
validate: value => {
- return /[A-Fa-f0-9]{32}/.test(value)
+ return /^[A-Fa-f0-9]{32}$/.test(value)
? true
- : 'API key is required. You can find it by go... | feat(react-native-cli): Stricter API key validation and clearer error log | null | bugsnag/bugsnag-js | MIT License | TypeScript |
@@ -101,14 +101,6 @@ plugin.file.kml.ui.updateFolder = function(options) {
*/
plugin.file.kml.ui.createOrEditPlace = function(options) {
var windowId = 'placemarkEdit';
- if (options['feature']) {
- var featureId = options['feature'].getId();
- windowId = os.ui.sanitizeId(windowId + '-' + featureId);
- }
-
- if (os.ui.... | feat(places): Use same id for create/edit place windows | null | ngageoint/opensphere | Apache License 2.0 | JavaScript |
@@ -80,8 +80,14 @@ open class Container: UIObject {
fileprivate func renderPlugin(_ plugin: UIContainerPlugin) {
view.addSubview(plugin.view)
+ do {
+ try ObjC.catchException {
plugin.render()
}
+ } catch {
+ Logger.logError(error.localizedDescription, scope: "Rendering Container Plugin")
+ }
+ }
func addPlugin(_ plugi... | feat: catch exceptionw hen rendering container plugin | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -9,11 +9,11 @@ class Course::Assessment::QuestionsController < Course::Assessment::Controller
# the Duplicator like the usual process for duplicating question_assessments.
def duplicate
if duplicate_question_and_skills
- flash.now[:success] =
- t('.success', destination_name: @destination_assessment.title,
- destina... | feat(question): duplicate responds to json | null | coursemology/coursemology2 | MIT License | Ruby |
*/
private final Statistics statistics = new Statistics();
+ /**
+ * A string which identifies the owner of this track (e.g. the endpoint
+ * which is the sender of the track).
+ */
+ private final String owner;
+
+ /**
+ * Ctor.
+ *
+ * @param mediaStreamTrackReceiver The {@link MediaStreamTrackReceiver} that
+ * rece... | feat: Adds an "owner" field to MediaStreamTrackDesc | null | jitsi/libjitsi | Apache License 2.0 | Java |
@@ -424,6 +424,9 @@ class User(Document):
frappe.cache().delete_key("enabled_users")
+ # delete user permissions
+ frappe.db.delete("User Permission", {"user": self.name})
+
def before_rename(self, old_name, new_name, merge=False):
frappe.clear_cache(user=old_name)
self.validate_rename(old_name, new_name)
| feat: delete User Permission when User is deleted | null | frappe/frappe | MIT License | Python |
@@ -6,6 +6,8 @@ import (
"os"
)
+var DefaultMessageKey = "msg"
+
// Option is Helper option.
type Option func(*Helper)
@@ -24,7 +26,7 @@ func WithMessageKey(k string) Option {
// NewHelper new a logger helper.
func NewHelper(logger Logger, opts ...Option) *Helper {
options := &Helper{
- msgKey: "msg", // default messag... | feat(log): default message key | null | go-kratos/kratos | MIT License | Go |
@@ -212,4 +212,9 @@ public extension SolanaAPIClient {
}
return info
}
+
+ /// Get fee per signature
+ func getLamportsPerSignature() async throws -> UInt64? {
+ try await getFees(commitment: nil).feeCalculator?.lamportsPerSignature
+ }
}
| feat: add helper method getLamportsPerSignature | null | p2p-org/solana-swift | MIT License | Swift |
@@ -53,6 +53,9 @@ int main (int argc, char ** argv)
char * file = argv[optind];
s = orka_load_whole_file(file, &len);
+ spec_name = file;
+ spec_buffer.start = s;
+ spec_buffer.size = len;
struct jc_definition d;
memset(&d, 0, sizeof(d));
| feat: enable source spec location | null | cee-studio/orca | MIT License | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.