diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -12,6 +12,10 @@ export default class Button extends Component {
this.buttonRef = React.createRef();
}
+ get htmlElementRef() {
+ return this.buttonRef.current;
+ }
+
isDisabled() {
const { disabled, isLoading } = this.props;
return disabled || isLoading;
| feat: add htmlElementRef class getter | null | nexxtway/react-rainbow | MIT License | JavaScript |
@@ -94,3 +94,14 @@ test('test getDirectoryLocation entry', function () {
$this->assertStringContainsString('/foo',
flextype('entries')->getDirectoryLocation('foo'));
});
+
+test('test getCacheID entry', function () {
+ flextype('entries')->create('foo', []);
+ $this->assertEquals('', flextype('entries')->getCacheID('fo... | feat(core): add test for getCacheID() entry | null | flextype/flextype | MIT License | PHP |
@@ -74,7 +74,7 @@ def set_authorization(request: IntegrationHTTPRequest, auth_credendtials):
class IntegrationOptions(BaseModel):
"""Add here any option you need to add to the logic"""
- proxy: bool = False
+ proxy: Optional[bool] = False
limit: Optional[int] = Field(None, ge=1)
| feat: SiemApiModule set proxy to Optional[bool] to handle none value | null | demisto/content | MIT License | Python |
@@ -147,7 +147,21 @@ export const ChapterPage: NextPage = () => {
const onLeaveChapter = async () => {
const ok = await confirm({
title: 'Are you sure you want to leave this chapter?',
- body: "Leaving will cancel your attendance at all of this chapter's events.",
+ body: (
+ <>
+ Leaving will cancel your attendance at... | feat: warn admin when leaving chapter | null | freecodecamp/chapter | BSD 3-Clause New or Revised License | TypeScript |
@@ -2,6 +2,7 @@ package com.absinthe.libchecker.services
import android.app.NotificationChannel
import android.app.NotificationManager
+import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.content.pm.ApplicationInfo
@@ -22,6 +23,7 @@ import com.absinthe.libchecker.con... | feat: Add pending intent to shooting notification | null | libchecker/libchecker | Apache License 2.0 | Kotlin |
@@ -21,6 +21,7 @@ import java.nio.file.StandardCopyOption;
import java.nio.file.StandardOpenOption;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.List;
@@ -701,6 +702,23 @@ class Renderer... | feat(statement): add service to split a statement | null | codingame/codingame-game-engine | MIT License | Java |
namespace OwenIt\Auditing\Tests\Models;
+use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use OwenIt\Auditing\Contracts\Auditable;
-class User extends Model implements Auditable
+class User extends Model implements Auditable, Authenticatable
{
+ use \Illuminate\Auth\Authenticatable... | feat(Tests): implement Authenticatable in User model | null | owen-it/laravel-auditing | MIT License | PHP |
@@ -113,7 +113,7 @@ return [
'name' => 'Android',
'version' => '0.0.1',
'url' => 'https://github.com/appwrite/sdk-for-android',
- 'package' => 'https://repo1.maven.org/maven2/io/appwrite/sdk-for-android/',
+ 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
'enabled' => true,
'beta' => true,... | feat(platforms): update maven links | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -10,8 +10,9 @@ const fs = require('fs');
const del = require('del');
const os = require('os');
-program.
-option('-e, --js-engine <engine>', 'The JavaScript Engine kraken used', 'jsc')
+program
+.option('-e, --js-engine <engine>', 'The JavaScript Engine kraken used', 'jsc')
+.option('-i, --inspector', 'Support JavaS... | feat: add inspector build options | null | openkraken/kraken | Apache License 2.0 | JavaScript |
@@ -489,3 +489,31 @@ open class AVFoundationPlayback: Playback {
Logger.logDebug("destroyed", scope: "AVFoundationPlayback")
}
}
+
+// MARK: - DVR
+extension AVFoundationPlayback {
+ open override var minDvrSize: Double {
+ return 60.0
+ }
+
+ open override var usingDVR: Bool {
+ guard let currentTime = player?.current... | feat: create AVFoundationPlayback extension overriding dvr properties | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -324,7 +324,7 @@ func (h *HatcheryMarathon) SpawnWorker(ctx context.Context, spawnArgs hatchery.S
Type: "DOCKER",
},
Env: &envsWm,
- CPUs: 0.5,
+ CPUs: 2,
Instances: &instance,
Mem: &mem,
Labels: &h.marathonLabels,
| feat(hatchery:marathon): increase cpu limitation for marathon containers | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
#include <faiss/IndexFlat.h>
#include <faiss/MetaIndexes.h>
#include <faiss/AutoTune.h>
+#include <thread>
+#include <easylogging++.h>
#include "db/DB.h"
#include "faiss/Index.h"
@@ -27,6 +29,7 @@ TEST(DBTest, DB_TEST) {
static const int group_dim = 256;
engine::Options opt;
+ opt.memory_sync_interval = 1;
opt.meta.bac... | feat(test): add unit test | null | milvus-io/milvus | Apache License 2.0 | C++ |
+import Foundation
+
+struct ContainerFactory {
+ static func create(with options: Options) -> Container {
+ let container = Container(options: options)
+
+ Loader.shared.containerPlugins.forEach { plugin in
+ if let containerPlugin = plugin.init(context: container) as? UIContainerPlugin {
+ container.addPlugin(contain... | feat: created ContainerFactory | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
package org.hisp.dhis.schema.descriptors;
import static com.google.common.collect.Lists.newArrayList;
+import static org.hisp.dhis.security.AuthorityType.CREATE;
import static org.hisp.dhis.security.AuthorityType.CREATE_PUBLIC;
+import static org.hisp.dhis.security.AuthorityType.DATA_CREATE;
+import static org.hisp.dhi... | feat: Add sharing to visualizations | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -107,7 +107,7 @@ export default function (
resolve: ResolveFunction,
fetchers: {[type: string]: FetchFunction},
opts: {
- networkConcurrency: number,
+ networkConcurrency?: number,
storePath: string,
storeIndex: StoreIndex,
},
| feat: networkConcurrency is optional | null | pnpm/pnpm | MIT License | TypeScript |
@@ -299,7 +299,7 @@ class Entries
public function delete(string $id) : bool
{
// Run event: onEntryDelete
- flextype('emmiter')->emit('onEntryDelete');
+ flextype('emitter')->emit('onEntryDelete');
return Filesystem::deleteDir($this->getDirLocation($id));
}
| feat(entries): fix issue with delete method | null | flextype/flextype | MIT License | PHP |
+import 'package:flutter/material.dart';
+import 'package:get/get.dart';
+
+class Wrapper extends StatelessWidget {
+ final Widget child;
+ final Map<String, GetRoute> namedRoutes;
+ final String initialRoute;
+ final Transition defaultTransition;
+
+ const Wrapper({
+ Key key,
+ this.child,
+ this.namedRoutes,
+ this.... | feat: add test wrapper | null | jonataslaw/getx | MIT License | Dart |
@@ -3,6 +3,7 @@ open class Core: UIBaseObject, UIGestureRecognizerDelegate {
didSet {
containers.forEach { $0.options = options }
trigger(Event.didUpdateOptions)
+ loadSourceIfNeeded()
}
}
@objc fileprivate(set) open var containers: [Container] = []
@@ -138,6 +139,12 @@ open class Core: UIBaseObject, UIGestureRecognize... | feat: load a new source if it exists when options changes | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -21,3 +21,13 @@ export function useMeta(meta) {
instance.proxy.$options.metaInfo = meta
instance.proxy._vueMeta = true
}
+
+export function useRouter() {
+ const instance = getCurrentInstance()
+ return instance.proxy.$router
+}
+
+export function useRoute() {
+ const instance = getCurrentInstance()
+ return instanc... | feat: `useRouter` and `useRoute` | null | gridsome/gridsome | MIT License | JavaScript |
@@ -245,6 +245,9 @@ fn settings_from(matches: &ArgMatches) -> (Settings, RunMode) {
if name == "warn_default_encoding" {
warn_default_encoding = true
}
+ if name == "no_sig_int" {
+ settings.no_sig_int = true;
+ }
let value = parts.next().map(ToOwned::to_owned);
(name, value)
}));
| feat: impl Detail option for not set SIG_INT | null | rustpython/rustpython | MIT License | Rust |
@@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"net/url"
+ "os"
"strings"
"github.com/profclems/glab/internal/config"
@@ -72,6 +73,15 @@ func NewCmdCreate(f *cmdutils.Factory) *cobra.Command {
Long: ``,
Aliases: []string{"new"},
Args: cobra.ExactArgs(0),
+ PreRun: func(cmd *cobra.Command, args []string) {
+ repoOverride, _ :=... | feat(commands/mr/create): override HeadRepo when -H is used | null | profclems/glab | MIT License | Go |
@@ -212,7 +212,7 @@ class V06 extends Filter {
$content['oauth2'.ucfirst($key)] = '';
$content['oauth2'.ucfirst($key).'AccessToken'] = '';
}
-
+ $content['status'] = empty($content['status']) ? 0 : $content['status'];
$content['roles'] = Authorization::getRoles() ?? [];
return $content;
}
| feat: add status field to users response | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -5,6 +5,7 @@ import (
"bytes"
"context"
"encoding/json"
+ "fmt"
"strings"
"testing"
@@ -18,6 +19,7 @@ import (
platform "github.com/influxdata/influxdb/v2"
"github.com/influxdata/influxdb/v2/cmd/influxd/launcher"
influxdbcontext "github.com/influxdata/influxdb/v2/context"
+ "github.com/influxdata/influxdb/v2/http"
"... | feat: add additional log to flux e2e tests | null | influxdata/influxdb | MIT License | Go |
@@ -53,7 +53,7 @@ use matrix_sdk_base::{
use ruma::{events::AnySyncStateEvent, serde::Raw, OwnedRoomId};
use serde::{de::DeserializeOwned, Deserialize};
use serde_json::value::RawValue as RawJsonValue;
-use tracing::{error, warn};
+use tracing::{debug, error, instrument, warn};
use self::maps::EventHandlerMaps;
use cra... | feat(sdk): Add tracing info to call_event_handlers | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
@@ -66,9 +66,9 @@ return [
'icon' => 'icon-amazon',
'enabled' => false,
],
- 'amazon' => [
- 'developers' => 'https://www.dropbox.com/developers/documentation',
- 'icon' => 'icon-amazon',
+ 'vk' => [
+ 'developers' => 'https://vk.com/dev',
+ 'icon' => 'icon-vk',
'enabled' => false,
],
];
| feat: added vk to providers | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -43,11 +43,19 @@ def install():
else:
menu = check_made_menu.menu()
- actions = [{
+ actions = [
+ {
'action': QAction('Set Context', None),
'function': contextmanager.show,
'icon': QIcon('icons:Position.png')
},
+ "separator",
+ {
+ 'action': QAction("Work Files...", None),
+ 'function': (lambda: workfiles.show(os.... | feat(nukestudio): integrating Workfiles tool into menu | null | pypeclub/openpype | MIT License | Python |
@@ -102,7 +102,7 @@ func NewCmdBoot(commonOpts *opts.CommonOptions) *cobra.Command {
cmd.Flags().StringVarP(&options.StartStep, "start-step", "s", "", "the step in the pipeline to start from")
cmd.Flags().StringVarP(&options.EndStep, "end-step", "e", "", "the step in the pipeline to end at")
cmd.Flags().StringVarP(&opt... | feat: update warning message for requirements option | null | jenkins-x/jx | Apache License 2.0 | Go |
@@ -15,8 +15,10 @@ import { useService } from '@cloudbeaver/core-di';
import { useTranslate } from '@cloudbeaver/core-localization';
import { BASE_TAB_STYLES, ITabData, TabList, TabPanelList, TabsState, VERTICAL_ROTATED_TAB_STYLES } from '@cloudbeaver/core-ui';
import { MetadataMap } from '@cloudbeaver/core-utils';
+im... | feat(plugin-sql-editor): add editor data context | null | dbeaver/cloudbeaver | Apache License 2.0 | TypeScript |
@@ -102,5 +102,8 @@ frappe.ui.form.ControlTable = frappe.ui.form.Control.extend({
},
validate: function() {
return this.get_value();
+ },
+ check_all_rows() {
+ this.$wrapper.find('.grid-row-check')[0].click();
}
});
| feat: Add API to check all table rows | null | frappe/frappe | MIT License | JavaScript |
@@ -28,11 +28,11 @@ namespace UnityEditor
networkedVarLabelGuiContent = new GUIContent("NetworkedVar", "This variable is a NetworkedVar. It can not be serialized and can only be changed during runtime.");
- FieldInfo[] fields = script.GetClass().GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Flatt... | feat(editor): Made drawing respect HideInInspector and private fields | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -4,9 +4,15 @@ import (
"os/exec"
"github.com/rs/zerolog/log"
+
+ "github.com/httprunner/httprunner/v4/hrp/internal/sdk"
)
func OpenWiki() error {
+ sdk.SendEvent(sdk.EventTracking{
+ Category: "OpenWiki",
+ Action: "hrp wiki",
+ })
log.Info().Msgf("%s https://httprunner.com", openCmd)
return exec.Command(openCmd, "h... | feat: report GA event for hrp wiki | null | httprunner/httprunner | Apache License 2.0 | Go |
@@ -52,28 +52,34 @@ $registry = new Registry();
$default_flextype_settings_file_path = PATH['config']['default'] . '/settings.yaml';
$custom_flextype_settings_file_path = PATH['config']['site'] . '/settings.yaml';
-// Set settings if Flextype Default settings and Flextype Custom settings config files exist
-if (! Files... | feat(core): copy core `settings` file content from `default` to `custom` folder on core init | null | flextype/flextype | MIT License | PHP |
-#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
+#include <locale.h>
+#include <limits.h>
#include "discord.h"
@@ -19,8 +20,52 @@ on_ready(struct discord *client, const struct discord_user *bot) {
bot->username, bot->discriminator);
}
+void on_cd(
... | feat: improve readability and maintainability of bot-shell.c | null | cee-studio/orca | MIT License | C |
@@ -93,6 +93,10 @@ var config = {
// Enables sending multiple video streams, i.e., camera and desktop tracks can be shared in the conference
// separately as two different streams instead of one composite stream.
// sendMultipleVideoStreams: false
+
+ // Signal that this client supports receiving multiple video streams... | feat: Always enable receiveMultipleVideoStreams | null | jitsi/jitsi-meet | Apache License 2.0 | JavaScript |
@@ -20,6 +20,8 @@ var (
DescriptionMessageStyle: NewStyle(FgWhite),
DescriptionPrefixStyle: NewStyle(FgLightWhite, BgDarkGray),
ScopeStyle: NewStyle(FgGray),
+ ProgressbarBarStyle: NewStyle(FgLightCyan),
+ ProgressbarTitleStyle: NewStyle(FgLightCyan),
}
)
@@ -43,6 +45,8 @@ type Theme struct {
DescriptionMessageStyle St... | feat: add template support for progressbars | null | pterm/pterm | MIT License | Go |
@@ -3,12 +3,11 @@ PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
DATE=$(date +%F)
# Append changelog
-echo "\n-------------------\n **v$PACKAGE_VERSION** ($DATE) \n\n$LOG" > CHANGELOG.md &&
+echo "\n-------------------\n **v$PACKAGE_VERSION** ($DATE) \n\n$LOG";
# build
npm run build &&
# add changes ... | feat(release): removes script step to append gitlog in CHANGELOG.md file, keeps git log printing | null | innovaccer/design-system | MIT License | Shell |
@@ -226,7 +226,8 @@ impl RLE {
// no null values in column so return all row ids
dst.add_range(0, self.num_rows);
} else {
- todo!();
+ // some null values in column - determine matching non-null rows
+ dst = self.row_ids_not_null(dst);
}
}
@@ -286,6 +287,37 @@ impl RLE {
dst
}
+ /// Populates the provided destination ... | feat: add support for null/non-null rows | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -59,16 +59,18 @@ const config: PlaywrightTestConfig = {
]),
/* Test against mobile viewports. */
- // {
- // name: 'Mobile Chrome',
- // use: {
- // ...devices['Pixel 5'],
- // },
- // },
+ {
+ name: 'Mobile Chrome',
+ use: {
+ ...devices['Pixel 5'],
+ locale: LOCALE,
+ },
+ },
// {
// name: 'Mobile Safari',
// use:... | feat(test): add Mobile Chrome project | null | thematters/matters-web | Apache License 2.0 | TypeScript |
@@ -38,6 +38,13 @@ def on_metadata(player, metadata, manager):
sys.stdout.flush()
+def on_player_appeared(manager, player, selected_player=None):
+ if player is not None and player.name == selected_player:
+ init_player(manager, player)
+ else:
+ logger.debug('New player appeared, but it\'s not the selected player, ski... | feat(Spotify): Add option to select player | null | alexays/waybar | MIT License | Python |
@@ -27,7 +27,6 @@ import com.jcabi.log.Logger;
import java.io.IOException;
import java.net.URL;
import org.cactoos.Text;
-import org.cactoos.io.InputOf;
import org.cactoos.text.TextOf;
import org.cactoos.text.UncheckedText;
@@ -108,6 +107,6 @@ final class ChRemote implements CommitHash {
* @throws IOException if fails
... | feat(#1382): use TextOf(URL) | null | cqfn/eo | MIT License | Java |
@@ -187,8 +187,10 @@ class SpeakerChangeDetection(SpeechActivityDetection):
lower_alpha = 0.
upper_alpha = 1.
+ best_alpha = .5 * (lower_alpha + upper_alpha)
best_coverage = 0.
+
for _ in range(10):
current_alpha = .5 * (lower_alpha + upper_alpha)
peak = Peak(alpha=current_alpha, min_duration=0.0,
@@ -209,10 +211,14 @@... | feat: keep track of best alpha value | null | pyannote/pyannote-audio | MIT License | Python |
@@ -266,7 +266,10 @@ server.handleOnConnection = (socket) => {
const utterance = data.value
try {
+ LogHelper.time('Utterance processed in')
await provider.nlu.process(utterance)
+ LogHelper.title('Execution Time')
+ LogHelper.timeEnd('Utterance processed in')
} catch (e) {
/* */
}
| feat(server): add execution time | null | leon-ai/leon | MIT License | JavaScript |
@@ -19,7 +19,7 @@ func NewHTTPClientFromEnv() cloudevents.Client {
log.Fatalf("failed to process env var: %s", err)
}
- p, err := cloudevents.NewHTTP(cloudevents.WithPort(env.Port), cloudevents.WithPath(env.Path))
+ p, err := cloudevents.NewHTTP(cloudevents.WithPort(env.Port), cloudevents.WithPath(env.Path), cloudevent... | feat(5303): Added health endpoint into sdk | null | keptn/keptn | Apache License 2.0 | Go |
@@ -2,13 +2,15 @@ import React, { Component } from "react";
import PropTypes from "prop-types";
import ButtonBase from "material-ui/ButtonBase";
import withStyles from "material-ui/styles/withStyles";
+import { inject, observer } from "mobx-react";
const styles = () => ({
root: {
- minWidth: 140
+ maxWidth: "100%"
},
i... | feat: use config from uiStore | null | reactioncommerce/example-storefront | Apache License 2.0 | JavaScript |
@@ -46,7 +46,6 @@ test('test fetch single entry', function () {
});
test('test fetch collection entry', function () {
- // 1
flextype('entries')->create('foo', []);
flextype('entries')->create('foo/bar', []);
flextype('entries')->create('foo/baz', []);
@@ -55,7 +54,6 @@ test('test fetch collection entry', function () {... | feat(core): add test for getFileLocation() entry | null | flextype/flextype | MIT License | PHP |
@@ -229,7 +229,6 @@ class Element extends Node
child.originalOffset = boxParentData.offset;
}
-
double offsetY = child.originalOffset.dy;
double offsetX = child.originalOffset.dx;
@@ -340,7 +339,6 @@ class Element extends Node
}
void _updatePosition(CSSPositionType prevPosition, CSSPositionType currentPosition) {
-
if ... | feat: add position sticky update logic | null | openkraken/kraken | Apache License 2.0 | Dart |
#!/bin/bash
-docker run -p 15000:15000 -p 15001:15001 -p 15991:15991 -p 15999:15999 --rm -it vitess/local
+docker run -p 15000:15000 -p 15001:15001 -p 15991:15991 -p 15999:15999 -p 16000:16000 --rm -it vitess/local
| feat: add vtorc port to vitess local docker run | null | vitessio/vitess | Apache License 2.0 | Shell |
@@ -63,11 +63,13 @@ namespace acl
// Called by the decoder to write out a value for a specified track index.
void write_float1(uint32_t track_index, rtm::scalarf_arg0 value)
{
+ ACL_ASSERT(type == track_type8::float1f, "Unexpected track type access");
rtm::scalar_store(value, &tracks_typed.float1f[track_index]);
}
floa... | feat: add sanity checks | null | nfrechette/acl | MIT License | C |
@@ -31,6 +31,8 @@ public class QueryResponse extends GenericModel {
private Long duplicatesRemoved;
@SerializedName("session_token")
private String sessionToken;
+ @SerializedName("retrieval_details")
+ private RetrievalDetails retrievalDetails;
/**
* Gets the matchingResults.
@@ -90,4 +92,15 @@ public class QueryRespo... | feat(Discovery): Add retrievalDetails prop to QueryResponse model | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -119,6 +119,7 @@ var RegionMapping = map[string]string{
"cn-north-1": "China (Beijing)",
"cn-northwest-1": "China (Ningxia)",
"eu-central-1": "EU (Frankfurt)",
+ "eu-central-2": "EU (Zurich)",
"eu-west-1": "EU (Ireland)",
"eu-west-2": "EU (London)",
"eu-south-1": "EU (Milan)",
| feat: add eu-central-2 region mapping | null | infracost/infracost | Apache License 2.0 | Go |
@@ -357,8 +357,13 @@ TEST_F(ClientIntegrationTest, QueryOptionsWork) {
}
++row_count;
}
+ if (!emulator_) {
EXPECT_TRUE(got_error) << "An invalid optimizer version should be an error";
EXPECT_EQ(0, row_count);
+ } else {
+ EXPECT_FALSE(got_error) << "An invalid optimizer version should be OK";
+ EXPECT_EQ(2, row_count)... | feat: allow for the emulator in ClientIntegrationTest.QueryOptionsWork (googleapis/google-cloud-cpp-spanner#1453) | null | googleapis/google-cloud-cpp | Apache License 2.0 | C++ |
@@ -13,6 +13,17 @@ def mandatory_secret!(env, value)
"mandatory in production because it's needed for the generation of secrets."
end
+# Database Environment Variables have changed.
+if ENV["PORTUS_PRODUCTION_HOST"].present? && ENV["PORTUS_DB_HOST"].blank? ||
+ ENV["PORTUS_PRODUCTION_USERNAME"].present? && ENV["PORTUS_... | feat: raise DeprecationError for old Database Configuration | null | suse/portus | Apache License 2.0 | Ruby |
@@ -18,7 +18,7 @@ Requests via FrappeClient are also handled here.
@frappe.whitelist()
def get_list(doctype, fields=None, filters=None, order_by=None,
- limit_start=None, limit_page_length=20, parent=None, debug=False, as_dict=True):
+ limit_start=None, limit_page_length=20, parent=None, debug=False, as_dict=True, or_f... | feat(REST): OR filters in REST API | null | frappe/frappe | MIT License | Python |
@@ -46,7 +46,6 @@ describe("users", () => {
.then(() => {
expect(fetchMock.called()).toEqual(true);
const [url, options]: [string, RequestInit] = fetchMock.lastCall();
- console.log("options:", options);
expect(url).toEqual(
"https://myorg.maps.arcgis.com/sharing/rest/community/users/c%40sey/setProperties"
);
| feat(arcgis-rest-portal): remove console statement | null | esri/arcgis-rest-js | Apache License 2.0 | TypeScript |
+import { IServiceLocator, Reporter, Tracer } from '@aurelia/kernel';
+import { AccessorOrObserver, BindingMode, connectable, ExpressionKind, hasBind, hasUnbind, IBinding, IBindingTargetObserver, IConnectableBinding, IForOfStatement, ILifecycle, IObserverLocator, IPartialConnectableBinding, IsBindingBehavior, IScope, L... | feat(attr-binding): add attribute binding | null | aurelia/aurelia | MIT License | TypeScript |
@@ -53,9 +53,6 @@ __BOATSTATIC BOAT_RESULT platone_createKeypair(BCHAR *keypairName)
UtilityHexToBin(binFormatKey, 32, native_demoKey, TRIMBIN_TRIM_NO, BOAT_FALSE);
keypair_config.prikey_content.field_ptr = binFormatKey;
keypair_config.prikey_content.field_len = 32;
- /* default is internal generation */
- keypair_conf... | feat(L503): fix L503 platone demo boat_platone_demo.c | null | aitos-io/boat-x-framework | Apache License 2.0 | C |
@@ -101,6 +101,7 @@ class DefaultAccountAdapter(object):
Renders an e-mail to `email`. `template_prefix` identifies the
e-mail that is to be sent, e.g. "account/email/email_confirmation"
"""
+ to = [email] if isinstance(email, str) else email
subject = render_to_string("{0}_subject.txt".format(template_prefix), context... | feat(account/adapter): Support to-list in render_mail() | null | pennersr/django-allauth | MIT License | Python |
+from rlberry.envs.benchmarks.grid_exploration.apple_gold import AppleGold
+from rlberry.agents.dynprog import ValueIterationAgent
+
+
+env = AppleGold(reward_free=False, array_observation=False)
+
+agent = ValueIterationAgent(env, gamma=0.9)
+info = agent.fit()
+print(info)
+
+env.enable_rendering()
+
+state = env.res... | feat(demo): add demo of AppleGold | null | rlberry-py/rlberry | MIT License | Python |
@@ -349,6 +349,13 @@ pub extern "C-unwind" fn display(term: OpaqueTerm) -> ErlangResult {
ErlangResult::Ok(true.into())
}
+#[export_name = "erlang:debug/1"]
+pub extern "C-unwind" fn debug(term: OpaqueTerm) -> ErlangResult {
+ let term: Term = term.into();
+ println!("{:?}", &term);
+ ErlangResult::Ok(true.into())
+}
+... | feat: add erlang:debug/1 helper for printf debugging | null | lumen/lumen | Apache License 2.0 | Rust |
@@ -99,6 +99,9 @@ class OpNode(NetworkNode):
def add_out_var(self, x):
self.outputs.append(x)
+ def __repr__(self):
+ return "%s{%s}" % (self.name, self.type)
+
def str_to_mge_class(classname):
# TODO: use megbrain C++ RTTI to replace type string
@@ -230,11 +233,17 @@ class Elemwise(OpNode):
type = "Elemwise"
opdef = b... | feat(imperative/utils): add __repr__ for network node | null | megengine/megengine | Apache License 2.0 | Python |
@@ -372,6 +372,69 @@ func launcherOpts(l *Launcher) []cli.Opt {
Flag: "feature-flags",
Desc: "feature flag overrides",
},
+
+ // storage configuration
+ {
+ DestP: &l.StorageConfig.Data.WALFsyncDelay,
+ Flag: "storage-wal-fsync-delay",
+ Desc: "The amount of time that a write will wait before fsyncing. A duration great... | feat: Add TSM 1.x storage options as flags | null | influxdata/influxdb | MIT License | Go |
@@ -140,6 +140,14 @@ const ProgramRow = withStyles(styles)(({ classes, program, onDetails, keyRate })
))}
</Grid>
</TagTableCell>
+ <TagTableCell className={classes.goodForCell}>
+ <Grid container>
+ {data.typeOfCategoryDonationRealEstateInvestmentBondsBusinessAnnualLevyPension &&
+ data.typeOfCategoryDonationRealEstat... | feat: add investment type column | null | selfkeyfoundation/identity-wallet | MIT License | JavaScript |
@@ -49,21 +49,31 @@ pub enum Kernel {
#[schemars(deny_unknown_fields)]
pub struct VariableInfo {
/// The home kernel of the variable
+ ///
+ /// The home kernel of a variable is the kernel that it was last assigned in.
+ /// As such, a variable's home kernel can change, although this is discouraged.
home: KernelId,
- /... | feat(Kernels): Only mirror variables if necessary | null | stencila/stencila | Apache License 2.0 | Rust |
@@ -34,15 +34,15 @@ class Exception extends \Exception
*/
/** General */
- const GENERAL_DEFAULT = 'general_default';
- const GENERAL_ACCESS_FORBIDDEN = 'general_access_forbidden';
- const GENERAL_UNKNOWN_ORIGIN = 'general_unknown_origin';
- const GENERAL_SERVICE_DISABLED = 'general_service_disabled';
- const GENERAL_U... | feat: remove prefix from general errors | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -426,6 +426,7 @@ impl SharedCacheService {
counter("services.shared_cache.store") += 1,
"cache" => cache_name.as_ref(),
"write" => op.as_ref(),
+ "status" => "ok",
);
if let SharedCacheStoreResult::Written(bytes) = op {
let bytes: i64 = bytes.try_into().unwrap_or(i64::MAX);
@@ -441,6 +442,11 @@ impl SharedCacheServi... | feat(metrics): Add status tag to shared_cache metrics | null | getsentry/symbolicator | MIT License | Rust |
@@ -21,5 +21,9 @@ use function parsers;
// Shortcode: [markdown] markdown text here [/markdown]
parsers()->shortcodes()->addHandler('markdown', static function (ShortcodeInterface $s) {
+ if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.markdown.enabled')) {
+ return '';
+ }
+
return parsers()->ma... | feat(shortcodes): upd `markdown` shortcode | null | flextype/flextype | MIT License | PHP |
@@ -76,7 +76,7 @@ interface PageProps {
}
const BasicLayout: FC<PageProps> = (props) => {
- const { location: { pathname }, children } = props;
+ const { location: { pathname }, children, menu = [], alias = { path: 'path', title: 'title'} } = props;
const [activeKey, setActiveKey] = useState('');
const [delectKey, setD... | feat: insert menu and use alias change tabname | null | alitajs/alita | MIT License | TypeScript |
RSpec.describe Pact::Mockserver::Mk2 do
- it "has a version number" do
+ it 'has a version number' do
expect(Pact::Mockserver::Mk2::VERSION).not_to be nil
end
-
- it "does something useful" do
- expect(false).to eq(true)
- end
end
| feat(Ruby Gem): fix broken test from skeleton | null | pact-foundation/pact-reference | MIT License | Ruby |
@@ -8,16 +8,30 @@ fn print_number(maybe_number: Option<u16>) {
println!("printing: {}", maybe_number.unwrap());
}
-fn main() {
- print_number(13);
- print_number(99);
+// This function returns how much icecream there is left in the fridge.
+// If it's before 10PM, there's 5 pieces left. At 10PM, someone eats them
+// a... | feat(options1): rewrite to remove array stuff | null | rust-lang/rustlings | MIT License | Rust |
* <value> := true | false | null | <int> | <float> | <string-literal>
* | <composite-value> | <action>
*
- * <action> := d | ld | lld | f | lf | b | <size-specifier>s
+ * <action> := d | ld | lld | f | lf | b | u64 <size-specifier>s
* | F | F_nullable
*
* <access-path-value> := <access-path> : <value>
#include <stdbool... | feat: support uint64_t as a builtin conversion; fix: oob reads | null | cee-studio/orca | MIT License | C |
@@ -24,7 +24,8 @@ func Load(g *gin.Engine, mw ...gin.HandlerFunc) *gin.Engine {
g.Use(middleware.Secure)
g.Use(middleware.Logging())
g.Use(middleware.RequestID())
- g.Use(middleware.PromMiddleware(nil))
+ g.Use(middleware.Prom(nil))
+ g.Use(middleware.Trace())
g.Use(mw...)
// 404 Handler.
| feat: add trace middleware | null | go-eagle/eagle | MIT License | Go |
+package interpolate
+
+import (
+ "github.com/influxdata/flux"
+ "github.com/influxdata/flux/codes"
+ "github.com/influxdata/flux/execute"
+ "github.com/influxdata/flux/internal/errors"
+ "github.com/influxdata/flux/plan"
+ "github.com/influxdata/flux/runtime"
+ "github.com/influxdata/flux/values"
+)
+
+const LinearIn... | feat: linear interpolation | null | influxdata/flux | MIT License | Go |
@@ -46,10 +46,10 @@ interface ModalToken extends FullToken<'Modal'> {
function box(position: React.CSSProperties['position']): React.CSSProperties {
return {
position,
- top: '0',
- right: '0',
- bottom: '0',
- left: '0',
+ top: 0,
+ right: 0,
+ bottom: 0,
+ left: 0,
};
}
@@ -122,7 +122,7 @@ const genModalStyle: Genera... | feat: support ltr for modal | null | ant-design/ant-design | MIT License | TypeScript |
@@ -56,6 +56,7 @@ async fn compact_partition(
job_semaphore: Arc<InstrumentedAsyncSemaphore>,
components: Arc<Components>,
) {
+ info!(partition_id = partition_id.get(), "compact partition",);
let mut scratchpad = components.scratchpad_gen.pad();
let res = tokio::time::timeout(
@@ -78,6 +79,7 @@ async fn compact_partit... | feat: add log around job semaphore and per-partition | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
-use crate::semantic::types::{Kind, MonoType};
+use crate::semantic::env::Environment;
+use crate::semantic::fresh::Fresher;
+use crate::semantic::sub::{Substitutable, Substitution};
+use crate::semantic::types::{minus, Error, Kind, MonoType, PolyType, Tvar};
+use std::collections::HashMap;
use std::ops;
// Type constr... | feat(semantic): generalization, instantiation, and constraint solving | null | influxdata/flux | MIT License | Rust |
@@ -65,6 +65,10 @@ where
// enforced within the buffer.
let mut max_sequence = None;
for (index, file) in files.into_iter().enumerate() {
+ // Map 0-based iter index to 1 based file count
+ let file_number = index + 1;
+
+ // Read the segment
let reader = read_handle
.reader_for_segment(file.id())
.await
@@ -73,7 +77,7... | feat(ingester2): drop empty WAL files | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -328,6 +328,7 @@ let analyticsTargets: [Target] = [
dependencies: [
.target(name: "Amplify"),
.target(name: "AWSCognitoAuthPlugin"),
+ .product(name: "SQLite", package: "SQLite.swift"),
.product(name: "AWSPinpoint", package: "AWSSwiftSDK")],
path: "AmplifyPlugins/Analytics/AWSPinpointAnalyticsPlugin",
exclude: [
| feat(Analytics): Adding SQLite dependency | null | aws-amplify/amplify-ios | Apache License 2.0 | Swift |
@@ -149,8 +149,7 @@ public final class Syntax {
);
parser.removeErrorListeners();
parser.addErrorListener(errors);
- final XeListener xel;
- xel = new XeListener(this.name, this.redundancy);
+ final XeListener xel = new XeListener(this.name, this.redundancy);
new ParseTreeWalker().walk(xel, parser.program());
final XML... | feat(#485): merge declaration and assignment | null | cqfn/eo | MIT License | Java |
@@ -184,11 +184,11 @@ void waybar::Bar::getModules(const Factory& factory, const std::string& pos)
if (pos == "modules-right") {
modules_right_.emplace_back(module);
}
- module->dp.connect([module] {
+ module->dp.connect([module, &name] {
try {
module->update();
} catch (const std::exception& e) {
- std::cerr << e.what... | feat(client): pefix module name on update error | null | alexays/waybar | MIT License | C++ |
@@ -219,8 +219,22 @@ pub fn execute_time_expression<Tz: TimeZone>(dt: &DateTime<Tz>, expression: &str
/// Parse a date-time expression, given a base date-time
pub fn execute_datetime_expression<Tz: TimeZone>(dt: &DateTime<Tz>, expression: &str) -> anyhow::Result<DateTime<Tz>> {
- if expression.is_empty() {
- Ok(dt.clon... | feat: Implemented date-time expression parser (from Pact-JVM) | null | pact-foundation/pact-reference | MIT License | Rust |
@@ -103,6 +103,15 @@ export default ({ states, stateScripts, governors }) => {
/>
</Col>
<Col width={[4, 6, 6]} paddingLeft={[0, 0, 8]}>
+ <Input
+ label="ZIP Code"
+ type="text"
+ name="zip-code"
+ id="zip-code"
+ />
+ </Col>
+ </Row>
+
<Placeholder label="State" isRequired>
{state !== noStateString ? (
<p className={... | feat(advocacy-form): add zip code field | null | covid19tracking/website | Apache License 2.0 | JavaScript |
@@ -19,7 +19,7 @@ namespace Flextype\Parsers\Shortcodes;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
use function registry;
-// Shortcode: title
+// Shortcode: field
// Usage: (field:title)
parsers()->shortcodes()->addHandler('field', static function (ShortcodeInterface $s) {
if (! registry()->get('flextype.set... | feat(shortcodes): add `field` shortcode - typo fix | null | flextype/flextype | MIT License | PHP |
@@ -69,18 +69,18 @@ class Entries
{
$this->setRegistry($registry);
$this->setOptions($options);
- $this->loadCollectionsActions();
+ $this->loadCollectionsEvents();
$this->loadCollectionsFields();
}
/**
- * Load Collections Actions
+ * Load Collections Events
*
* @access public
*/
- private function loadCollectionsActi... | feat(entries): rename entries actions to entries events | null | flextype/flextype | MIT License | PHP |
+// https://www.youtube.com/watch?v=ZBHKZF5w4YU&ab_channel=TusharRoy-CodingMadeSimple
+
+#include <climits>
+#include <cmath>
+#include <iostream>
+#include <vector>
+
+using namespace std;
+
+class SegmentTree {
+ public:
+ SegmentTree(const vector<int>& arr) {
+ int n = arr.size();
+ int m = 2 * ceil(log2(n)) - 1;
+ ... | feat: segment tree | null | upupming/algorithm | MIT License | C++ |
@@ -47,6 +47,7 @@ class SpriteComponent extends PositionComponent
Vector2? scale,
double? angle,
Anchor? anchor,
+ Iterable<Component>? children,
int? priority,
}) : this(
sprite: Sprite(
@@ -60,6 +61,7 @@ class SpriteComponent extends PositionComponent
scale: scale,
angle: angle,
anchor: anchor,
+ children: children,
... | feat: add `children` argument to `SpriteComponent.fromImage` | null | flame-engine/flame | MIT License | Dart |
@@ -69,15 +69,15 @@ class MoleculePagination extends Component {
</AtomButtom>
)}
{compressed ? (
- <PageButton page={page} focused onClickPage={onClickPage}>
- {page}
+ <PageButton page={processedPage} focused onClickPage={onClickPage}>
+ {processedPage}
</PageButton>
) : (
range.map(pageRange => (
<PageButton
key={pa... | feat(molecule/pagination): precessedPage for out of range pages | null | sui-components/sui-components | MIT License | JavaScript |
@@ -114,6 +114,7 @@ export default class LongRangeComm extends System {
`Review Training`,
);
}
+ this.update({interception: true});
}
update({interception, locked, decoded, difficulty}) {
if (interception || interception === false) {
| feat(Interception): An interception signal is now added with training mode. Closes | null | thorium-sim/thorium | Apache License 2.0 | JavaScript |
@@ -152,6 +152,10 @@ public final class Moja<T extends AbstractMojo> {
* @param mojo The mojo
* @param entry Field name and value
* @throws java.lang.IllegalAccessException If can't set field.
+ * @todo #1494:30min We have some doubts about using Logger.warn in initField method.
+ * Since it's important to notice the d... | feat(#1494): add puzzle for Logger.warn | null | cqfn/eo | MIT License | Java |
# frozen_string_literal: true
require 'rails_helper'
-RSpec.describe 'Course: Assessments: Attempt' do
+RSpec.describe 'Course: Assessments: Attempt', js: true do
let(:instance) { Instance.default }
with_tenant(:instance) do
@@ -53,10 +53,8 @@ RSpec.describe 'Course: Assessments: Attempt' do
assessment_with_condition
v... | feat(assessment_attempt): adapt to new assessments index ui | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -143,15 +143,18 @@ fn main() {
fn spawn_watch_shell(failed_exercise_hint: &Arc<Mutex<Option<String>>>) {
let failed_exercise_hint = Arc::clone(failed_exercise_hint);
- println!("Type 'hint' to get help");
+ println!("Type 'hint' to get help or 'clear' to clear the screen");
thread::spawn(move || loop {
let mut input... | feat(cli): Added 'cls' command to 'watch' mode | null | rust-lang/rustlings | MIT License | Rust |
@@ -230,6 +230,9 @@ open class ExoPlayerPlayback(source: String, mimeType: String? = null, options:
mediaType == MediaType.VOD
} ?: false
+ open val handleAudioFocus: Boolean
+ get() = options.options[ClapprOption.HANDLE_AUDIO_FOCUS.value] as? Boolean ?: false
+
init {
playerView.useController = false
playerView.subtit... | feat(audio_focus): create open property to allow default audio focus behaviour override | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -284,7 +284,7 @@ public void Dispose()
}
}
- SKRect AreaCastingShadowInHole(
+ static SKRect AreaCastingShadowInHole(
SKRect hole_rect,
float shadow_blur,
float shadow_spread,
@@ -429,7 +429,7 @@ public void DrawRectangle(IBrush brush, IPen pen, RoundedRect rect, BoxShadows b
var spread = (float)boxShadow.Spread;
va... | feat(Skia): Address rule CA1822 | null | avaloniaui/avalonia | MIT License | C# |
@@ -3,9 +3,7 @@ import Foundation
public enum BufferLayoutError: Error {
case NotImplemented
}
-public protocol BufferLayout: Codable, BorshCodable {
- static var BUFFER_LENGTH: UInt64 { get }
-}
+public protocol BufferLayout: Codable, BorshCodable {}
extension BufferLayout {
public init(from decoder: Decoder) throws {... | feat: remove BUFFER_LENGTH from BufferLayout requirement | null | p2p-org/solana-swift | MIT License | Swift |
+<?php
+
+namespace GrumPHP\Util;
+
+class Str
+{
+ public static function contains($haystack, $needles)
+ {
+ foreach ((array) $needles as $needle) {
+ if ($needle !== '' && mb_strpos($haystack, $needle) !== false) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+}
| feat(Util): Add string helper class with contains method | null | phpro/grumphp | MIT License | PHP |
@@ -116,6 +116,23 @@ export default class List extends React.Component {
// consider the two keys as 'confirm' key
case 'ArrowRight':
+ // expand node or focus on first content node or redirect to file page
+ if (focusedNode.type === 'tree') {
+ if (expandedNodes.has(focusedNode)) {
+ const nextNode = nodes[focusedNode... | feat(FileExplorer): focus on first content node | null | enixcoda/gitako | MIT License | JavaScript |
@@ -25,6 +25,8 @@ const (
DefaultBGPNeighborAs = 65001
DefaultBGPHoldtime = 90 * time.Second
DefaultPprofPort = 10667
+ DefaultGracefulRestartDeferralTime = 360 * time.Second
+ DefaultGracefulRestartTime = 90 * time.Second
)
type Configuration struct {
@@ -38,6 +40,9 @@ type Configuration struct {
HoldTime float64
BgpS... | feat: support graceful restart | null | kubeovn/kube-ovn | Apache License 2.0 | Go |
@@ -6,6 +6,7 @@ import (
"encoding/json"
"github.com/influxdata/influxdb"
+ "github.com/influxdata/influxdb/kit/tracing"
)
var (
@@ -248,7 +249,15 @@ func (s *Service) CreateLabel(ctx context.Context, l *influxdb.Label) error {
err := s.kv.Update(ctx, func(tx Tx) error {
l.ID = s.IDGenerator.ID()
- return s.putLabel(ct... | feat(kv/label): create/delete user resource mappings for labels | null | influxdata/influxdb | MIT License | Go |
@@ -410,7 +410,7 @@ class Forms
$attributes = isset($properties['attributes']) ? $properties['attributes'] : [];
$attributes['id'] = isset($attributes['id']) ? $attributes['id'] : $field_id;
- $attributes['class'] = isset($attributes['class']) ? $attributes['class'] : '';
+ $attributes['class'] = isset($attributes['cla... | feat(core): Forms API updates styles | null | flextype/flextype | MIT License | PHP |
@@ -2,6 +2,7 @@ package myirmaserver
import (
"context"
+ "encoding/json"
"net/http"
"strconv"
"time"
@@ -61,6 +62,13 @@ func New(conf *Configuration) (*Server, error) {
s.scheduler.Every(10).Seconds().Do(s.store.flush)
s.schedulerStop = s.scheduler.Start()
+ if s.conf.LogJSON {
+ s.conf.Logger.WithField("configuration... | feat: make myirmaserver print configuration at debug level during startup | null | privacybydesign/irmago | Apache License 2.0 | Go |
*/
package org.hisp.dhis.fileresource;
+import static java.util.stream.Collectors.toList;
+
+import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map.Entry;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.lang3.tupl... | feat: job progress tracking for file resource cleanup job | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.