diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -14,6 +14,7 @@ use Doctrine\Common\Collections\Criteria;
use Doctrine\Common\Collections\Expr\Comparison;
use Flextype\Component\Filesystem\Filesystem;
use Flextype\Component\Session\Session;
+use Flextype\Component\Arr\Arr;
use Ramsey\Uuid\Uuid;
use function array_merge;
use function count;
@@ -391,6 +392,9 @@ clas... | feat(entries): add ability to fetch and filter entries by fields with help of array dot path | null | flextype/flextype | MIT License | PHP |
@@ -422,6 +422,12 @@ func (ps *PushSync) pushToClosest(ctx context.Context, ch swarm.Chunk, origin bo
ps.measurePushPeer(result.pushTime, result.err, origin)
+ if ps.warmedUp() && !errors.Is(result.err, accounting.ErrOverdraft) {
+ ps.skipList.Add(ch.Address(), result.peer, sanctionWait)
+ ps.metrics.TotalSkippedPeers.... | feat: nonconditional skip of peers pushed | null | ethersphere/bee | BSD 3-Clause New or Revised License | Go |
@@ -39,6 +39,10 @@ class V06 extends Filter {
$parsedResponse = $content;
break;
+ case Response::MODEL_MEMBERSHIP_LIST:
+ $parsedResponse = $content['memberships'];
+ break;
+
case Response::MODEL_SESSION :
$parsedResponse = $this->parseSession($content);
break;
| feat: parse membership list | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
+import { FavoriteUserItems } from '@interfaces/favorite-user.interface';
import { KeychainKeyTypesLC } from '@interfaces/keychain.interface';
import {
addToLoadingList,
@@ -17,6 +18,7 @@ import { AvailableCurrentPanelComponent } from '@popup/pages/app-container/home/
import { PowerType } from '@popup/pages/app-contain... | feat(savings): Updated default type to deposit + added autocomplete username | null | hive-keychain/hive-keychain-extension | MIT License | TypeScript |
@@ -33,6 +33,13 @@ func NewCmdView(f *cmdutils.Factory) *cobra.Command {
Short: `Display the title, body, and other information about an issue.`,
Long: ``,
Aliases: []string{"show"},
+ Example: heredoc.Doc(`
+ $ glab issue view 123
+ $ glab issue show 123
+ $ glab issue view --web 123
+ $ glab issue view --comments 123... | feat(commands/issue/view): add EXAMPLES | null | profclems/glab | MIT License | Go |
@@ -164,7 +164,7 @@ return [
],
Exception::OAUTH_MISSING_USER_ID => [
'name' => Exception::OAUTH_MISSING_USER_ID,
- 'description' => 'Failed to obtain user id from the OAuth provider.',
+ 'description' => 'Failed to obtain user ID from the OAuth provider.',
'code' => 400,
],
@@ -176,13 +176,13 @@ return [
],
Exception:... | feat: update descriptions of temas errors | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -40,6 +40,10 @@ function makeMockMeetingPayload(params) {
spaceMeetURL: params.spaceMeetURL,
spaceURI: params.spaceURI,
spaceURL: params.spaceURL,
+ meetingJoinInfo: {
+ meetingJoinURI: params.meetingJoinInfo.meetingJoinURI,
+ meetingJoinURL: params.meetingJoinInfo.meetingJoinURI
+ },
encryptedParticipants: [
{
id: ... | feat(calender): add test to support new DTO meetingJoinInfo | null | webex/webex-js-sdk | MIT License | JavaScript |
-import type { TsApiRegisterOptions } from '../types';
+import { getWordStart, languageIdToSyntax } from '@volar/shared';
+import { transformCompletionItem, transformCompletionList } from '@volar/source-map';
+import { hyphenate, isGloballyWhitelisted } from '@vue/shared';
+import type * as ts from 'typescript';
+impor... | feat: `v-on` modifiers auto-complete | null | johnsoncodehk/volar | MIT License | TypeScript |
@@ -87,7 +87,15 @@ namespace mpd {
string mpdsong::get_title() {
assert(m_song);
auto tag = mpd_song_get_tag(m_song.get(), MPD_TAG_TITLE, 0);
- return string{tag != nullptr ? tag : ""};
+ if (tag == nullptr) {
+ tag = mpd_song_get_tag(m_song.get(), MPD_TAG_NAME, 0);
+ if (tag == nullptr) {
+ auto uri = mpd_song_get_uri... | feat(mpd): Get name and/or uri if title not found | null | polybar/polybar | MIT License | C++ |
@@ -16,6 +16,6 @@ public enum InternalEvent: String {
case didDestroy
case userRequestEnterInFullscreen
case userRequestExitFullscreen
- case detectDVR
+ case supportDVR
case usingDVR
}
| feat: change internal event of dvr from detectDVR to supportDVR | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
package com.vaadin.flow.component;
import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
import java.util.List;
import java.util.Objects;
@@ -41,19 +43,32 @@ public interface HasComponents extends HasElement, HasEnabled {
/**
* Adds the given components as children of this component.
* <p>... | feat: provides collection based methods for HasComponents | null | vaadin/flow | Apache License 2.0 | Java |
@@ -23,6 +23,33 @@ pub enum Key {
Esc,
}
+// TODO: use same struct from main crate?
+#[derive(Default, Debug, Clone, Serialize, Deserialize)]
+pub struct Help {
+ pub mode: InputMode,
+ pub mode_is_persistent: bool,
+ pub keybinds: Vec<(String, String)>,
+}
+
+// TODO: use same struct from main crate?
+#[derive(Debug, ... | feat(api): set invisible borders | null | zellij-org/zellij | MIT License | Rust |
package user
import (
- "context"
"strconv"
- "github.com/1024casts/snake/internal/service"
-
- "github.com/1024casts/snake/internal/ecode"
-
"github.com/gin-gonic/gin"
"github.com/1024casts/snake/api"
+ "github.com/1024casts/snake/internal/ecode"
+ "github.com/1024casts/snake/internal/service"
"github.com/1024casts/sn... | feat: add context param | null | go-eagle/eagle | MIT License | Go |
@@ -131,12 +131,22 @@ class Slack extends OAuth2
/**
* Check if the OAuth email is verified
*
+ * In case of Slack, if an email is present, it is verified
+ *
+ * @link https://slack.com/help/articles/207262907-Change-your-email-address
+ *
* @param $accessToken
*
* @return bool
*/
public function isEmailVerififed(stri... | feat: update slack OAuth provider | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -90,15 +90,17 @@ export default {
},
attrs () {
- const att = { tabindex: this.computedTabIndex }
+ const att = { tabindex: this.computedTabIndex, role: 'link' }
if (this.type !== 'a') {
att.type = this.type || 'button'
+ att.role = 'button'
}
if (this.hasRouterLink === true) {
att.href = this.$router.resolve(this.t... | feat(QBtn): added Aria roles | null | quasarframework/quasar | MIT License | JavaScript |
@@ -337,6 +337,178 @@ pub fn builtins() -> Builtins<'static> {
"diff" => Node::Builtin("forall [t0] (got: [t0], want: [t0], ?verbose: bool) -> [{_diff: string | t0}]"),
}),
"universe" => Node::Package(maplit::hashmap! {
+ "bool" => Node::Builtin("forall [t0] (v: t0) -> bool"),
+ "bytes" => Node::Builtin("forall [t0] (v... | feat(libflux): add type declarations for universe | null | influxdata/flux | MIT License | Rust |
@@ -121,6 +121,16 @@ if (! function_exists('session')) {
}
}
+if (! function_exists('registry')) {
+ /**
+ * Get Flextype Registry Service.
+ */
+ function registry()
+ {
+ return flextype()->container()->get('registry');
+ }
+}
+
if (! function_exists('csrf')) {
/**
* Get Flextype CSRF Service.
| feat(helpers): add missed `registry` helper | null | flextype/flextype | MIT License | PHP |
@@ -437,20 +437,39 @@ impl Default for BuildProfile {
/// The definition for the implicit `std` dependency.
fn implicit_std_dep() -> Dependency {
- // The `forc-pkg` crate version formatted with the `v` prefix. E.g. "v1.2.3".
+ // Here, we use the `forc-pkg` crate version formatted with the `v` prefix (e.g. "v1.2.3"),
... | feat: handle implicit_std_dep for nightly builds | null | fuellabs/sway | Apache License 2.0 | Rust |
@@ -54,6 +54,18 @@ export class GlobalSearchService {
}
}
+ updateDoc(doc: any) {
+ if (this.index) {
+ this.index.updateDoc(doc);
+ }
+ }
+
+ removeDoc(doc: any) {
+ if (this.index) {
+ this.index.removeDoc(doc);
+ }
+ }
+
search(query: string): any {
if (this.index) {
const fields = this.index.getFields().reduce((acc... | feat(global-search): add doc update and remove | null | finastra/finastra-design-system | MIT License | TypeScript |
@@ -250,6 +250,7 @@ func run() error {
logger.Info("Stopping", zap.String("service", "task"))
scheduler.Stop()
}()
+ reg.MustRegister(scheduler.PrometheusCollectors()...)
// TODO(lh): Replace NopLogReader with real log reader
taskSvc = task.PlatformAdapter(coordinator.New(logger.With(zap.String("service", "task-coordin... | feat(task): include task scheduler metrics on /metrics endpoint | null | influxdata/influxdb | MIT License | Go |
@@ -9,6 +9,6 @@ interface KitsuUserService {
/**
* Gets the user details, requires authentication to be set.
*/
- @GET("api/edge/users?filter[self]=true")
+ @GET("api/edge/users?filter[self]=true&fields[users]=id,name,slug,ratingSystem,avatar,coverImage")
fun getUserDetailsAsync(): Deferred<Response<UserModel>>
}
| feat: remove some fields to pull for user | null | chesire/nekome | Apache License 2.0 | Kotlin |
@@ -131,15 +131,15 @@ bool MessageEventInstance::setProperty(std::string &name, JSValueRef value, JSVa
}
MessageEventInstance::~MessageEventInstance() {
-// if (nativeMessageEvent != nullptr) {
-// if (nativeMessageEvent->data->string != nullptr) {
-// nativeMessageEvent->data->free();
-// }
-// if (nativeMessageEvent-... | feat: modify ~EventMessage | null | openkraken/kraken | Apache License 2.0 | C++ |
@@ -24,7 +24,11 @@ interface DrainOptions {
function DrainNodeForm(props: Props) {
const { formData, onChange } = props;
- const helpText = <Trans>Help Text TBD</Trans>;
+ const helpText = (
+ <Trans>
+ The maximum amount of time allowed for tasks to gracefully terminate.
+ </Trans>
+ );
const handleChangeMaxGracePerio... | feat: add help text to max grace period | null | dcos/dcos-ui | Apache License 2.0 | TypeScript |
@@ -309,6 +309,9 @@ class Renderer {
ConfigHelper configHelper = new ConfigHelper();
GameConfig gameConfig = configHelper.findConfig(sourceFolderPath.resolve("config"));
+ //Check unique opti question
+ checkUniqueOpti(gameConfig, exportReport);
+
for (String league : gameConfig.getQuestionsConfig().keySet()) {
Questio... | feat(sdk): check an opti game has only one question | null | codingame/codingame-game-engine | MIT License | Java |
@@ -74,13 +74,18 @@ func readPkg(pkg, path string, idx int) error {
}
func loadPkg(name, urlOrPath, styles string, index int) error {
- if _, err := os.Stat(urlOrPath); !os.IsNotExist(err) {
- return loadLocalPkg(name, urlOrPath, styles, index)
+ if fileInfo, err := os.Stat(urlOrPath); !os.IsNotExist(err) {
+ if fileIn... | feat: install package from local directory | null | errata-ai/vale | MIT License | Go |
@@ -102,7 +102,7 @@ open class Player(private val base: BaseObject = BaseObject()) : Fragment(), Eve
}
}
- internal val loader = Loader()
+ private val loader = Loader()
/**
* Media current position in seconds.
@@ -138,11 +138,11 @@ open class Player(private val base: BaseObject = BaseObject()) : Fragment(), Eve
Playba... | feat(player): change visibility of methods and variables to private in Player | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -37,6 +37,7 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.cactoos.iterable.Filtered;
+import org.cactoos.iterator.Mapped;
import org.cactoos.list.ListOf;
import org.eolang.maven.hash.C... | feat(#1677): refactor code according with cactoos approach | null | cqfn/eo | MIT License | Java |
@@ -214,6 +214,34 @@ function checkCalcInByOut(pool: UniV3Pool, amountIn: number, direction: boolean,
)
}
+function checkPrice(pool: UniV3Pool) {
+ const price1 = pool.calcCurrentPriceWithoutFee(true)
+ const price2 = pool.calcCurrentPriceWithoutFee(false)
+ expectCloseValues(price1 * price2, 1, 1e-12)
+ if (pool.liqui... | feat: Tines: UniV3: +price check | null | sushiswap/sushiswap | MIT License | TypeScript |
@@ -12,10 +12,13 @@ class StatsService(
private val botListApi: BotListApi
) : Service("Stats", 3, 3, TimeUnit.MINUTES) {
+ var lastGuilds: Long = 0
override val service = RunnableTask {
val shards = shardManager.shardCache.size()
val guildArray = shardManager.shardCache.map { shard -> shard.guildCache.size() }
val gui... | feat: avoid posting when shards disconnect or when guilds are unavailable | null | toxicmushroom/melijn | MIT License | Kotlin |
package brew
import (
+ "github.com/jenkins-x/jx/pkg/log"
"github.com/jenkins-x/jx/pkg/util"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"sort"
- "strings"
-
- "github.com/jenkins-x/jx/pkg/log"
"github.com/pkg/errors"
)
var (
brewFilePattern = "**/*.rb"
- versionRegex = regexp.MustCompile(`\s*version \"(.*)\"`)
- shaRege... | feat: improved regex and effeciency | null | jenkins-x/jx | Apache License 2.0 | Go |
@@ -579,10 +579,14 @@ open class AVFoundationPlayback: Playback {
!hasSelectedDefaultAudio {
setMediaSelectionOption(selectedOption, characteristic: AVMediaCharacteristic.audible)
- trigger(.didFindAudio, userInfo: ["audios": AvailableMediaOptions(audioSources, hasDefaultSelected: true)])
+ DispatchQueue.main.async {
+... | feat: trigger didFindAudio in main thread | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -13,3 +13,22 @@ def get_context(context):
for line in result:
paths.setdefault(line["path"], []).append(line)
return {"result": paths}
+
+
+@frappe.whitelist()
+def get_paths():
+ paths = frappe.cache().zrange("recorder-paths", 0, -1, desc=True)
+ paths = list(map(lambda path: path.decode(), paths))
+ return paths
+... | feat(recorder): Create whitelisted methods to show recorded data | null | frappe/frappe | MIT License | Python |
@@ -10,8 +10,6 @@ import { settings } from '../../constants/Settings';
import SuiteHeader from './SuiteHeader';
import SuiteHeaderI18N from './i18n';
-const { iotPrefix } = settings;
-
const commonProps = {
suiteName: 'Application Suite',
appName: 'Application Name',
| feat(SuiteHeader): fixing a lint error | null | carbon-design-system/carbon-addons-iot-react | Apache License 2.0 | JavaScript |
@@ -37,6 +37,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/klog/v2"
+ "k8s.io/kubernetes/pkg/kubelet/cadvisor"
"github.com/kubeedge/beehive/pkg/core"
beehiveContext "github.com/kubeedge/beehive/pkg/core/context"
@@ -52,6 +53,7 @@ import (
var initNode v1.Node
va... | feat(edge): node ephemeral storage info | null | kubeedge/kubeedge | Apache License 2.0 | Go |
@@ -240,14 +240,13 @@ class Course < ApplicationRecord
end
# Returns admin email id and settings for both phantom and regular users.
+ # If it doesnt exist for one reason or another
+ # (usually the settings are not populated after data migration), create one.
#
# @return [Course::Settings::Email]
def email_enabled(com... | feat(course email settings): use find_or_create_by for settings_email to account for missing settings | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -21,7 +21,9 @@ type GenericProps = {
fullWidth?: boolean
disableTabFocusAndIUnderstandTheAccessibilityImplications?: boolean
analytics?: Analytics
+ ariaControls?: string
ariaDescribedBy?: string
+ ariaExpanded?: boolean
onFocus?: (e: React.FocusEvent<HTMLElement>) => void
onBlur?: (e: React.FocusEvent<HTMLElement>)... | feat: add aria-expanded and aria-controls props to Zen Button | null | cultureamp/kaizen-design-system | MIT License | TypeScript |
+import * as React from "react";
+import * as Styles from "~/common/styles";
+import * as System from "~/components/system";
+import * as Jumper from "~/components/core/Jumper";
+import * as SVG from "~/common/svg";
+import * as Actions from "~/common/actions";
+import * as Events from "~/common/custom-events";
+import... | feat(EditInfo): add Edit info jumper | null | filecoin-project/slate | MIT License | JavaScript |
@@ -35,7 +35,8 @@ public class AutoInjectSourceGenerator : ISourceGenerator
foreach (IGrouping<INamedTypeSymbol, ISymbol> group in receiver.EligibleMembers
.GroupBy<ISymbol, INamedTypeSymbol>(f => f.ContainingType, SymbolEqualityComparer.Default))
{
- GenerateErrorWhenClassNonPartial(context, group.Key);
+ if (IsClassI... | feat(source-generators): resolve the AutoInject issue that generates source code for non-partial classes | null | bitfoundation/bitframework | MIT License | C# |
@@ -84,7 +84,7 @@ function getProxy(url, req, callback) {
if (host.port) {
matcher = matcher + ':' + host.port;
}
- req._phost = parseUrl(util.setProtocol(matcher)).host;
+ req._phost = matcher;
req.headers[HOST_HEADER] = util.encodeURIComponent(host.rawPattern + ' ' + matcher);
} else {
reqRules.host = host;
@@ -101,6... | feat: supports to set hosts for proxy | null | avwo/whistle | MIT License | JavaScript |
@@ -4,16 +4,13 @@ export default {
"progressRing.backgroundColor": {
type: COLOR,
value: {
- ref: "basics.colors.black"
- },
- transform: {
- alpha: "0.05"
+ ref: "colorScheme.surfaceLevel100Color"
}
},
"progressRing.highlightColor": {
type: COLOR,
value: {
- ref: "basics.colors.autodeskBlue400"
+ ref: "colorScheme.acc... | feat: implement theme data for progress ring | null | autodesk/hig | Apache License 2.0 | JavaScript |
@@ -16,6 +16,7 @@ use std::path::Path;
use std::sync::Arc;
use common_base::base::GlobalIORuntime;
+use common_datavalues::chrono::Utc;
use common_datavalues::prelude::*;
use common_exception::ErrorCode;
use common_exception::Result;
@@ -42,7 +43,7 @@ use crate::sql::plans::Plan;
use crate::storages::stage::StageTable;... | feat: fix test fail | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -964,3 +964,7 @@ def get_source_value(source, key):
return source.get(key)
else:
return getattr(source, key)
+
+def is_subset(list_a, list_b):
+ '''Returns whether list_a is a subset of list_b'''
+ return len(list(set(list_a) & set(list_b))) == len(list_a)
\ No newline at end of file
| feat: Add is_subset utility | null | frappe/frappe | MIT License | Python |
@@ -47,6 +47,10 @@ func (r *Runner) Run(testcases ...*TestCase) error {
func (r *Runner) runCase(testcase *TestCase) error {
config := &testcase.Config
+ if err := r.parseConfig(config); err != nil {
+ return err
+ }
+
log.Printf("Start to run testcase: %v", config.Name)
extractedVariables := make(map[string]interface{... | feat: parseConfig | null | httprunner/httprunner | Apache License 2.0 | Go |
@@ -7,4 +7,7 @@ test('[registry-get] shortcode', function () {
parsers()->shortcodes()->parse('[registry-get name="flextype.manifest.name"]'));
$this->assertEquals('default-value',
parsers()->shortcodes()->parse('[registry-get name="item-name" default="default-value"]'));
+
+ registry()->set('flextype.settings.parsers.... | feat(tests): update tests [registry] shortcode | null | flextype/flextype | MIT License | PHP |
@@ -62,6 +62,11 @@ fn integration_test_redeem_polka_btc_execute() {
// create tokens for the vault and user
force_issue_tokens(user, vault, collateral_vault, total_polka_btc);
+ let initial_dot_balance = CollateralModule::get_balance_from_account(&account_of(user));
+ let initial_btc_balance = TreasuryModule::get_balan... | feat: add issuance amount check on redeem test | null | interlay/interbtc | Apache License 2.0 | Rust |
import Foundation
open class Container: UIObject {
- @objc internal(set) open var plugins: [UIContainerPlugin] = []
+ var plugins: [UIContainerPlugin] = []
@objc open var sharedData = SharedData()
@objc open var options: Options {
didSet {
| feat: protect container plugins array from external manipulation | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
#!/usr/bin/python3
import json
+import warnings
from collections import OrderedDict
from pathlib import Path
from typing import Dict, Iterator, List, Optional, Sequence, Tuple, Union, ValuesView
import eth_event
+from eth_event import EventError
from brownie._config import _get_data_folder
from brownie.convert.normaliz... | feat: warn instead of raising on incorrectly formatted event | null | eth-brownie/brownie | MIT License | Python |
@@ -214,6 +214,34 @@ pub enum UsymSourceRecord<'a> {
Mapped(MappedRecord<'a>),
}
+impl<'data> std::fmt::Debug for UsymSourceRecord<'data> {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ let mut formatter = f.debug_struct("UsymSourceRecord");
+ match &self {
+ UsymSourceRecord::Unmapped(record... | feat(usym): Add in a formatter for UsymSourceRecords that makes them user-readable | null | getsentry/symbolic | MIT License | Rust |
@@ -2,7 +2,7 @@ open class FullscreenButton: MediaControlPlugin {
open var fullscreenIcon = UIImage.fromName("fullscreen", for: FullscreenButton.self)
open var windowedIcon = UIImage.fromName("fullscreen_exit", for: FullscreenButton.self)
- var button: UIButton! {
+ open var button: UIButton! {
didSet {
button.accessib... | feat: open some of the fullscreenbutton properties | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -387,30 +387,36 @@ func (db *DB) SetupJoinTable(model interface{}, field string, joinTable interfac
modelSchema, joinSchema *schema.Schema
)
- if err := stmt.Parse(model); err == nil {
- modelSchema = stmt.Schema
- } else {
+ err := stmt.Parse(model)
+ if err != nil {
return err
}
+ modelSchema = stmt.Schema
- if er... | feat: adjust SetupJoinTable func if..else code | null | go-gorm/gorm | MIT License | Go |
@@ -24,13 +24,15 @@ waybar::Bar::Bar(Client &client, std::unique_ptr<struct wl_output *> &&p_output)
_setupConfig();
_setupCss();
_setupWidgets();
- bool positionBottom = (_config["position"] == "bottom");
+ bool positionBottom = _config["position"] == "bottom";
+ bool layerTop = _config["layer"] == "top";
gtk_widget_r... | feat(bar): choose between layers used | null | alexays/waybar | MIT License | C++ |
@@ -91,4 +91,14 @@ pub mod traits {
/// Try cloning a object and return an `Err` in case of failure.
async fn async_try_clone(&self) -> Result<Self>;
}
+
+ #[async_trait]
+ impl<D> AsyncTryClone for D
+ where
+ D: Clone + Sync,
+ {
+ async fn async_try_clone(&self) -> Result<Self> {
+ Ok(self.clone())
+ }
+ }
}
| feat(rust): add generic async_try_clone implementation for structs with clone | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -122,6 +122,45 @@ namespace acl
friend track_bit_rate_database;
};
+ class every_track_query
+ {
+ public:
+ explicit every_track_query(iallocator& allocator)
+ : m_allocator(allocator)
+ , m_database(nullptr)
+ , m_bit_rates(nullptr)
+ , m_indices(nullptr)
+ , m_num_transforms(0)
+ {}
+
+ ~every_track_query()
+ {
+... | feat(compression): add an object to query all tracks from the bit rate database | null | nfrechette/acl | MIT License | C |
@@ -182,40 +182,37 @@ pub fn execute_time_expression<Tz: TimeZone>(dt: &DateTime<Tz>, expression: &str
.flatten()
.unwrap_or(dt.clone());
let base_time = match result.base {
- TimeBase::Now => dt,
+ TimeBase::Now => dt.clone(),
TimeBase::Midnight => time.with_hour(0).unwrap_or(dt.clone()),
TimeBase::Noon => time.with_h... | feat: Implemented time part in date-time expressions | null | pact-foundation/pact-reference | MIT License | Rust |
@@ -257,7 +257,6 @@ class URL
$node_explode = explode(';', $node->server);
$item = [
'v'=>'2',
- 'type'=>'none',
'host'=>'',
'path'=>'',
'tls'=>''
@@ -267,11 +266,18 @@ class URL
$item['port'] = $node_explode[1];
$item['id'] = $user->getUuid();
$item['aid'] = $node_explode[3];
- if (count($node_explode) == 6) {
+ if (c... | feat(v2ray): add obfs type support | null | chensee/ss-panel-v3-mod_uim-alipay-wxpay | MIT License | PHP |
+<?php
+
+use Faker\Generator as Faker;
+use OwenIt\Auditing\Tests\Models\User;
+
+/*
+|--------------------------------------------------------------------------
+| User Factories
+|--------------------------------------------------------------------------
+|
+*/
+
+$factory->define(User::class, function (Faker $faker... | feat(Tests): added User factory for functional testing | null | owen-it/laravel-auditing | MIT License | PHP |
@@ -61,7 +61,7 @@ metamodsourcelatestfile=$(wget "${metamodsourcescrapeurl}" -q -O -)
metamodsourcedownloadurl="https://www.metamodsource.net/latest.php?os=linux&version=${metamodsourceversion}"
metamodsourceurl="${metamodsourcedownloadurl}"
# Sourcemod
-sourcemodversion="1.10"
+sourcemodversion="1.11"
sourcemodscrapeu... | feat(mods): update sourcemod to 1.11 | null | gameservermanagers/linuxgsm | MIT License | Shell |
+const completionSpec: Fig.Spec = {
+ name: "rmdir",
+ description: "Remove directories",
+ args: {
+ isVariadic: true,
+ template: "folders",
+ },
+
+ options: [
+ {
+ name: "-p",
+ description: "Remove each directory of path",
+ isDangerous: true,
+ },
+ ],
+};
+
+export default completionSpec;
| feat: add rmdir completion | null | withfig/autocomplete | MIT License | TypeScript |
#include <stdio.h>
#include <stdlib.h>
-#include "slack-common.h"
+#include "slack.h"
-void print_json_cb(char str[], size_t len, void *data) {
- fprintf(stderr, "%.*s", (int)len, str);
-}
int main(int argc, char *argv[])
{
@@ -15,16 +12,9 @@ int main(int argc, char *argv[])
else
config_file = "bot.config";
- struct sl... | feat: update test-slack-api.c to use public slack.h functions | null | cee-studio/orca | MIT License | C |
import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
+import { Location } from '@reach/router'
import { useStaticQuery, graphql } from 'gatsby'
function SEO({ lang, meta, title, socialCard }) {
@@ -10,6 +11,7 @@ function SEO({ lang, meta, title, socialCard }) {
site {
siteMetad... | feat: add og:url tag | null | covid19tracking/website | Apache License 2.0 | JavaScript |
@@ -40,7 +40,7 @@ const FinancialAidTemplate: ApplicationTemplate<
ApplicationStateSchema<Events>,
Events
> = {
- readyForProduction: false,
+ readyForProduction: true,
type: ApplicationTypes.FINANCIAL_AID,
name: application.name,
dataSchema,
| feat(fa): Change readyForProduction flag to trur | null | island-is/island.is | MIT License | TypeScript |
# frozen_string_literal: true
require 'rails_helper'
-RSpec.describe 'Course: Assessment: Submissions: Logs' do
+RSpec.describe 'Course: Assessment: Submissions: Logs', js: true do
let(:instance) { Instance.default }
with_tenant(:instance) do
@@ -28,10 +28,8 @@ RSpec.describe 'Course: Assessment: Submissions: Logs' do
... | feat(log): adapt to new assessments index ui | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -19,11 +19,16 @@ class URLParser {
if (path.startsWith('//')) path = 'https' + path;
RegExp exp = RegExp("^([a-z][a-z\d\+\-\.]*:)?\/\/");
- if (!exp.hasMatch(path) && _contextId != null) {
+ if (!exp.hasMatch(path) && _contextId != null && path.startsWith('//')) {
// relative path.
KrakenController controller = Krak... | feat: modify relative path | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -30,8 +30,6 @@ class UrlExpression implements ExpressionFunctionProviderInterface
new ExpressionFunction('getCurrentUrl', fn(Psr\Http\Message\ServerRequestInterface $request, bool $withQueryString = false) => 'getCurrentUrl($request, $withQueryString)', fn(Psr\Http\Message\ServerRequestInterface $request, bool $with... | feat(expressions): remove `setBasePath` from Url expression | null | flextype/flextype | MIT License | PHP |
@@ -38,6 +38,7 @@ import org.apache.commons.io.FilenameUtils;
import com.codingame.gameengine.runner.ConfigHelper.GameConfig;
import com.codingame.gameengine.runner.ConfigHelper.GameType;
import com.codingame.gameengine.runner.ConfigHelper.QuestionConfig;
+import com.codingame.gameengine.runner.ConfigHelper.TestCase;
i... | feat(sdk): check test cases | null | codingame/codingame-game-engine | MIT License | Java |
@@ -39,7 +39,7 @@ class FetchExpressionsMethods
*
* @param string $resource A resource that you wish to fetch.
* @param array $options Options.
- * @return Glowy\Arrays\Arrays|GuzzleHttp\Psr7\Response Returns the data from the resource or empty collection on failure.
+ * @return mixed Returns the data from the resource... | feat(expressions): update `fetch` expression | null | flextype/flextype | MIT License | PHP |
@@ -149,7 +149,7 @@ module Carto
end
def unfiltered_organization_notifications(carto_viewer)
- carto_viewer.received_notifications.limit(10).map do |n|
+ carto_viewer.received_notifications.order('updated_at DESC').limit(10).map do |n|
Carto::Api::ReceivedNotificationPresenter.new(n).to_hash
end
end
| feat: Order notifications by date | null | cartodb/cartodb | BSD 3-Clause New or Revised License | Ruby |
@@ -12,7 +12,7 @@ from platform import system as get_os_name
from xknx.exceptions import XKNXException
from .const import DEFAULT_MCAST_PORT
-from .gateway_scanner import GatewayScanner
+from .gateway_scanner import GatewayScanner, GatewayScanFilter
from .routing import Routing
from .tunnel import Tunnel
@@ -37,23 +37,... | feat(knxip): pass gateway scan filter through connection config | null | xknx/xknx | MIT License | Python |
@@ -358,8 +358,6 @@ open class ExoPlayerPlayback(source: String, mimeType: String? = null, options:
currentState = State.PAUSED
trigger(Event.DID_PAUSE)
}
-
- updateIsDvrInUseState()
}
private fun handleExoplayerBufferingState() {
| feat(dvr_onpause): Remove check isInDvr after exoplayer play/pause | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -39,6 +39,8 @@ Element createW3CElement(PayloadNode node) {
VideoElement.setDefaultPropsStyle(node.props);
return VideoElement(node.id, node.props, node.events);
}
+ case AUDIO:
+ return AudioElement(node.id, node.props, node.events);
default:
throw FlutterError('ERROR: unexpected element type, ' + node.type);
}
| feat: temp save | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -8,7 +8,9 @@ use arrow::datatypes::{DataType, Field};
use data_types::chunk_metadata::ChunkId;
use datafusion::{
error::{DataFusionError, Result as DatafusionResult},
- logical_plan::{lit, Column, DFSchemaRef, Expr, ExprRewriter, LogicalPlan, LogicalPlanBuilder},
+ logical_plan::{
+ binary_expr, lit, Column, DFSchem... | feat: add support for filtering on _value | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -71,6 +71,7 @@ modseparator="MOD"
mod_info_metamod=( MOD "metamod" "MetaMod" "${metamodurl}" "${metamodlatestfile}" "0" "LowercaseOff" "${systemdir}" "addons/metamod/metaplugins.ini;" "source;" "GAMES" "NOTGAMES" "https://www.sourcemm.net" "Plugins Framework" )
mod_info_sourcemod=( MOD "sourcemod" "SourceMod" "${sou... | feat(mods): add Stripper:Source to the modlist | null | gameservermanagers/linuxgsm | MIT License | Shell |
@@ -6,9 +6,9 @@ import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
-fun RecyclerView.addOnScrollListener(
- onScrollStateChanged: (recyclerView: RecyclerView?, newState: Int) -> Unit,
- onScrolled: (recyclerView: Recy... | feat: RecyclerView.addOnScrollListener as inline fun | null | droidkaigi/conference-app-2018 | Apache License 2.0 | Kotlin |
@@ -55,12 +55,6 @@ int ApplyAdadeltaCpuKernelMod::CheckInputShape(const std::vector<KernelTensorPtr
std::vector<int64_t> rho_shape = inputs[kRhoIndex]->GetShapeVector();
std::vector<int64_t> epsilon_shape = inputs[kEpsilonIndex]->GetShapeVector();
std::vector<int64_t> grad_shape = inputs[kGradIndex]->GetShapeVector();
... | feat: apply_adadelta CPU support 0D input | null | mindspore-ai/mindspore | Apache License 2.0 | C++ |
@@ -45,7 +45,6 @@ namespace Bit.Client.Web.BlazorUI.Playground.Web.Components
Key = "Pickers",
Links = new List<BitNavLinkItem>
{
- new BitNavLinkItem { Name= "Carousel", Key = "Carousel", Url = "/components/carousel" },
new BitNavLinkItem { Name= "ColorPicker", Key = "ColorPicker", Url = "/components/color-picker" },
... | feat(components): modify carousel menu item position | null | bitfoundation/bitframework | MIT License | C# |
@@ -174,6 +174,7 @@ func (d *db) DescribeTable(tableName string) (*schema.SQLQueryResult, error) {
res := &schema.SQLQueryResult{Columns: []*schema.Column{
{Name: "COLUMN", Type: sql.VarcharType},
{Name: "TYPE", Type: sql.VarcharType},
+ {Name: "NULLABLE", Type: sql.BooleanType},
{Name: "INDEX", Type: sql.VarcharType},... | feat(pkg/database): enhace table description by adding nullable constraint | null | codenotary/immudb | Apache License 2.0 | Go |
@@ -7,6 +7,7 @@ import (
"github.com/shopspring/decimal"
log "github.com/sirupsen/logrus"
"reflect"
+ "regexp"
)
// GlobalAccelerator struct represents <TODO: cloud service short description>.
@@ -206,6 +207,27 @@ var GlobalAcceleratorUsageSchema = []*schema.UsageItem{
},
}
+type dataTransferElement struct {
+ from str... | feat(aws): added usage tag to region code for from and to | null | infracost/infracost | Apache License 2.0 | Go |
@@ -26,6 +26,23 @@ class KebabCaseInPathSegmentsRuleTest {
assertThat(violations[0].pointer.toString()).isEqualTo("/paths/~1partnerOrders")
}
+ @Test
+ fun `checkKebabCaseInPathSegments should return violation for sub resource names which are not lowercase separate words with hyphens`() {
+ @Language("YAML")
+ val spec... | feat(server): add test for sub resources path segments | null | zalando/zally | MIT License | Kotlin |
@@ -173,20 +173,33 @@ public final class OptimizeMojo extends SafeMojo {
);
}
);
- try {
+// try {
Logger.info(
this, "Running %s optimizations in parallel",
tasks.size()
);
- Executors.newFixedThreadPool(4)
- .invokeAll(tasks)
- .forEach(
- completed -> {
+// Executors.newFixedThreadPool(4)
+// .invokeAll(tasks)
+// .... | feat(#1347): use parallel stream instead of ExecutorsService | null | cqfn/eo | MIT License | Java |
@@ -105,7 +105,7 @@ class NewApplication extends StringTemplateMessage
'link' => $this->router->assemble(
['id' => $this->application->getId()],
['name'=>'lang/applications/detail', 'force_canonical'=>true]
- ),
+ ) . '?login=' . $this->user->getLogin(),
];
$this->setTo($this->user->getInfo()->getEmail(), $this->user->... | feat: add login suggestion to the application uri in notification email | null | cross-solution/yawik | MIT License | PHP |
@@ -245,9 +245,11 @@ export default class ImageManipulator extends Component {
saveImage = () => {
const {
- onComplete, onClose, updateState, closeOnLoad, config, processWithCloudService, uploadCloudimageImage, imageMime,
+ onComplete, onClose, updateState, closeOnLoad, config, processWithCloudService, uploadCloudimag... | feat: changing the image to png if it's cropped & applying round cropping to cloudimage integration | null | scaleflex/filerobot-image-editor | MIT License | JavaScript |
@@ -98,7 +98,7 @@ public struct ABIEncoder {
/// Attempts to convert given object into `Data`.
/// Used as a part of ABI encoding process.
- /// Supported types are `Data`, `String`, `[UInt8]`, ``EthereumAddress`` and `[IntegerLiteralType]`.
+ /// Supported types are `Data`, `String`, `[UInt8]`, ``EthereumAddress``, `[... | feat: convertToData handles Bool | null | skywinder/web3swift | Apache License 2.0 | Swift |
@@ -35,3 +35,13 @@ class EncodeDriver(BaseEncodeDriver):
'the first dimension must be the same' % (len(chunk_pts), embeds.shape))
for c, emb in zip(chunk_pts, embeds):
c.embedding.CopyFrom(array2pb(emb))
+
+
+class UnaryEncodeDriver(EncodeDriver):
+ """The :class:`UnaryEncodeDriver` extracts the chunk-level content fro... | feat(drivers): add unaryencodedriver | null | jina-ai/jina | Apache License 2.0 | Python |
)]
use ockam_core::Result;
-use ockam_vault_core::{PublicKey, Secret};
+use ockam_vault_core::Secret;
use zeroize::Zeroize;
/// A trait implemented by both Initiator and Responder peers.
pub trait KeyExchanger {
- /// Run the current phase of the key exchange process.
- fn process(&mut self, data: &[u8]) -> Result<Vec<... | feat(rust): update key exchange trait | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -32,7 +32,7 @@ class AboutCommand extends Command
protected function configure(): void
{
$this->setName('about');
- $this->setDescription('Get information about Flextype');
+ $this->setDescription('Get information about Flextype.');
}
protected function execute(InputInterface $input, OutputInterface $output): int
| feat(console): typo update about flextype command description | null | flextype/flextype | MIT License | PHP |
@@ -27,7 +27,7 @@ fn_install_server_files(){
elif [ "${shortname}" == "codwaw" ]; then
remote_fileurl="http://linuxgsm.download/CallOfDutyWorldAtWar/codwaw-lnxded-1.7-full.tar.xz"; local_filedir="${tmpdir}"; local_filename="codwaw-lnxded-1.7-full.tar.xz"; chmodx="nochmodx" run="norun"; force="noforce"; md5="2c6be1bb66e... | feat(etl): update Enemy Territory: Legacy to 2.78.1 | null | gameservermanagers/linuxgsm | MIT License | Shell |
@@ -22,7 +22,7 @@ use serde::{Deserialize, Serialize};
///
/// 1. __Error Code__: A `u32` representing the precise error.
///
-#[derive(Serialize, Deserialize, Debug)]
+#[derive(Serialize, Deserialize, Eq, PartialEq, Debug)]
pub struct Error {
code: u32,
| feat(rust): make `ockam_core::Error` derive `Eq` and `PartialEq` | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -314,10 +314,11 @@ open class AVFoundationPlayback: Playback {
}
@objc func onFailedToPlayToEndTime(notification: NSNotification?) {
- if let error = notification?.userInfo?["AVPlayerItemFailedToPlayToEndTimeErrorKey"] as? Error {
+ let errorKey = "AVPlayerItemFailedToPlayToEndTimeErrorKey"
+ guard let error = notif... | feat: change AVPlayerItemFailedToPlayToEndTimeErrorKey cast to NSError | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
+from ethereum_client.utils import UINT64_MAX, apdu_as_string, compare_screenshot, save_screenshot, PATH_IMG
+from ethereum_client.plugin import Plugin
+import ethereum_client
+
+
+
+def test_set_plugin(cmd):
+ plugin = Plugin(
+ type=1,
+ version=1,
+ name="ERC721",
+ addr="0x60f80121c31a0d46b5279700f9df786054aa5ee5",... | feat: first test erc721 (set_plugin apdu) | null | ledgerhq/app-ethereum | Apache License 2.0 | Python |
@@ -7,6 +7,7 @@ class MainFlutterWindow: NSWindow {
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
+ self.level = NSWindow.Level.floating;
RegisterGeneratedPlugins(registry: flutterViewController)
| feat: integration test always on top | null | openkraken/kraken | Apache License 2.0 | Swift |
@@ -24,6 +24,18 @@ mod term_size {
pub fn dimensions() -> Option<(usize, usize)> { None }
}
+macro_rules! find_longest {
+ ($help:expr) => {{
+ let mut lw = 0;
+ for l in $help.split(' ').map(|s| str_width(s)) {
+ if l > lw {
+ lw = l;
+ }
+ }
+ lw
+ }};
+}
+
fn str_width(s: &str) -> usize { UnicodeWidthStr::width(s) }... | feat(Help Wrapping): long app names (with spaces), authors, and descriptions are now wrapped appropriately | null | clap-rs/clap | Apache License 2.0 | Rust |
@@ -31,3 +31,9 @@ test('test delete() method', function () {
$this->assertTrue(flextype('media_folders')->delete('foo'));
$this->assertFalse(flextype('media_folders')->delete('bar'));
});
+
+test('test getDirectoryLocation entry', function () {
+ $this->assertTrue(flextype('media_folders')->create('foo'));
+ $this->ass... | feat(tests): add tests for MediaFolders getDirectoryLocation() method | null | flextype/flextype | MIT License | PHP |
@@ -3204,7 +3204,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
Configuration = configuration;
}
+ [JsonIgnore]
public ZoomRoomStatus Status { get; private set; }
+ [JsonIgnore]
public ZoomRoomConfiguration Configuration { get; private set; }
public override bool AutoAnswerEnabled
| feat(essentials): Ignores Status and Configuration properties for serialization | null | pepperdash/essentials | MIT License | C# |
*/
package com.ibm.watson.assistant.v1.model;
+import java.util.List;
+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
/**
@@ -21,6 +23,8 @@ import com.ibm.cloud.sdk.core.service.model.GenericModel;
public class DialogNodeOutputOptionsElementValue extends GenericModel {
private MessageInput input;
+ private ... | feat(Assistant v1): Add intents and entities props to DialogNodeOutputOptionsElementValue | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -104,18 +104,17 @@ bool MouseEventInstance::setProperty(std::string &name, JSValueRef value, JSValu
if (propertyMap.count(name) > 0) {
auto property = propertyMap[name];
- if (property == JSMouseEvent::MouseEventProperty::clientX) {
+ switch (property) {
+ case JSMouseEvent::MouseEventProperty::clientX:
m_clientX.se... | feat: modify if to switch | null | openkraken/kraken | Apache License 2.0 | C++ |
@@ -11,6 +11,7 @@ import base64
import hashlib
from Cryptodome import Random
from Cryptodome.Cipher import AES
+from Cryptodome.Util import Padding
from MSL import MSL
from os import remove
from os.path import join, isfile
@@ -342,7 +343,7 @@ class KodiHelper:
:type data: str
:returns: string -- Encoded data
"""
- raw ... | feat(settings): Use cryptodomes own padding methods | null | castagnait/plugin.video.netflix | MIT License | Python |
@@ -8,3 +8,10 @@ test('test encode() method', function () {
->encode(['title' => 'Foo',
'content' => 'Bar']));
});
+
+test('test decode() method', function () {
+ $this->assertEquals(['title' => 'Foo',
+ 'content' => 'Bar'],
+ flextype('frontmatter')
+ ->decode("---\ntitle: Foo\n---\nBar"));
+});
| feat(tests): add tests for Serializer Frontmatter decode | null | flextype/flextype | MIT License | PHP |
@@ -305,10 +305,7 @@ func getFlagHooksFor(cmd string) (hooks []func(fs *pflag.FlagSet)) {
// ParseFlags initializes flags and handles the common case when no positional
// arguments are expected.
func ParseFlags(cmd string) {
- fs := pflag.NewFlagSet(cmd, pflag.ExitOnError)
- for _, hook := range getFlagHooksFor(cmd) {... | feat: add a function to get the flag set for a given command | null | vitessio/vitess | Apache License 2.0 | Go |
@@ -47,7 +47,7 @@ available for %s." % agent_stats.agent_name)
def compare_policies(agent_stats_list, eval_env=None, eval_horizon=None,
stationary_policy=True, n_sim=10, fignum=None,
- show=True, plot=True):
+ show=True, plot=True, **kwargs):
"""
Compare the policies of each of the agents in agent_stats_list.
Each elem... | feat(plot): make compare_policies accept optional arguments | null | rlberry-py/rlberry | MIT License | Python |
@@ -8,6 +8,9 @@ import (
"path/filepath"
"strings"
+ "github.com/spf13/cobra/doc"
+ "github.com/spf13/pflag"
+
"github.com/profclems/glab/commands"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
@@ -24,44 +27,84 @@ var tocTree = `.. toctree::
`
func main() {
- //err := doc.Gen... | feat(cmd/gen-docs): manpage generation from cobra | null | profclems/glab | MIT License | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.