diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -9,13 +9,14 @@ import {
mix,
mul,
neq,
- Op2,
- Prim,
+ PrimTerm,
ret,
sub,
Term,
+ TermType,
ternary,
} from "@thi.ng/shader-ast";
+import { clamp01 } from "./clamp";
/**
* Returns normalized value of `x` WRT to interval [a,b]. Returns 0, if
@@ -32,6 +33,41 @@ export const fitNorm1 = defn(
(x, a, b) => [ret(ternary... | feat(shader-ast-stdlib): add fit()/fitClamped() | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
@@ -368,6 +368,7 @@ JSValueRef JSPerformance::summary(JSContextRef ctx, JSObjectRef function, JSObje
#define GET_COST(NAME, MACRO) \
auto NAME##Measures = findAllMeasures(measures, MACRO); \
+ size_t NAME##Count = NAME##Measures.size(); \
double NAME##Cost = getMeasureTotalDuration(NAME##Measures); \
auto NAME##Avg = N... | feat: add command count and total time cost | null | openkraken/kraken | Apache License 2.0 | C++ |
@@ -108,9 +108,7 @@ module.exports = function (app) {
});
const reportConfigFilename = path.join(
- PROJECT_PATH,
- 'backstop_data',
- 'html_report',
+ _config.paths.html_report,
'config.js'
);
await modifyJsonpReport({
| feat(remote): use report paths from config | null | garris/backstopjs | MIT License | JavaScript |
var CollectorAPI = require('./collector/api')
var DESTINATIONS = require('./config/attribute-filter').DESTINATIONS
var EventEmitter = require('events').EventEmitter
-var Reservoir = require('./reservoir')
+var PriorityQueue = require('./priority-queue')
var logger = require('./logger')
var sampler = require('./sampler'... | feat(agent): add priority calculation to events | null | newrelic/node-newrelic | Apache License 2.0 | JavaScript |
*/
package org.eolang.maven;
+import java.util.Objects;
+
/**
* Short version of hash.
*
@@ -46,6 +48,34 @@ final class ChNarrow implements CommitHash {
@Override
public String hash() {
- return this.full.hash().substring(0, 7);
+ return this.validHash().substring(0, 7);
+ }
+
+ /**
+ * Valid hash.
+ *
+ * @return Full... | feat(#1174): add hash validation | null | cqfn/eo | MIT License | Java |
@@ -8,6 +8,9 @@ const NumericInput = props => (
name={props.name}
type="number"
value={props.value}
+ min={props.minValue}
+ max={props.maxValue}
+ step={props.stepValue}
onChange={props.onChange}
onBlur={props.onBlur}
disabled={props.isDisabled}
@@ -31,6 +34,9 @@ NumericInput.displayName = 'NumericInput';
NumericInput... | feat(inputs-numeric): adds new props max, min and step | null | commercetools/ui-kit | MIT License | JavaScript |
module.exports = {
- theme: {},
+ theme: {
+ extend: {
+ colors: {
+ gray: {
+ '000': '#f9f9f9',
+ '100': '#ededed',
+ '200': '#e1e1e1',
+ '300': '#d3d3d3',
+ '400': '#c4c4c4',
+ '500': '#b3b3b3',
+ '600': '#a0a0a0',
+ '700': '#898989',
+ '800': '#6c6c6c',
+ '800': '#3f3f3f',
+ }
+ }
+ }
+ },
variants: {},
plugins: [],... | feat(admin-plugin): add custom grayscale | null | flextype/flextype | MIT License | JavaScript |
@@ -35,7 +35,8 @@ final class ApplicationResolver
if (file_exists($composerFile)) {
self::$composer = json_decode((string) file_get_contents($composerFile), true);
$namespace = (string) key(self::$composer['autoload']['psr-4']);
- $serviceProviders = array_values(array_filter(self::getProjectClasses($namespace, dirname... | feat: add support for vendor-dir | null | nunomaduro/larastan | MIT License | PHP |
@@ -150,17 +150,21 @@ func NewCmdCreate(f *cmdutils.Factory) *cobra.Command {
return cmdutils.SilentError
}
- remotes, err := opts.Remotes()
+ headRepoRemote, err := repoRemote(labClient, opts, headRepo, opts.SourceProject, "glab-head")
if err != nil {
- return err
+ return nil
}
- headRepoRemote, err := remotes.FindBy... | feat(commands/mr/create): create namespaced remote if none exists | null | profclems/glab | MIT License | Go |
@@ -221,6 +221,35 @@ class VerbosityTest extends BaseRollbarTest
);
}
+ /**
+ * Test verbosity of \Rollbar\RollbarLogger::flush
+ *
+ * @return void
+ */
+ public function testRollbarLoggerFlush()
+ {
+ $rollbarLogger = $this->verboseRollbarLogger(array(
+ "access_token" => $this->getTestAccessToken(),
+ "environment" ... | feat(dev options): test verbosity in rollbar logger flush | null | rollbar/rollbar-php | MIT License | PHP |
@@ -14,7 +14,7 @@ impl<Ms> IntoNodes<Ms> for Node<Ms> {
}
}
-impl<Ms> IntoNodes<Ms> for Option<Node<Ms>> {
+impl<Ms, T: IntoNodes<Ms>> IntoNodes<Ms> for Option<T> {
fn into_nodes(self) -> Vec<Node<Ms>> {
self.map(IntoNodes::into_nodes).unwrap_or_default()
}
@@ -25,9 +25,3 @@ impl<Ms> IntoNodes<Ms> for Vec<Node<Ms>> {
s... | feat(virtual-dom): blanket impl of IntoNodes for Option | null | seed-rs/seed | MIT License | Rust |
@@ -26,11 +26,12 @@ let initialized = false;
function getNextAuthConfig({ authJson, plugins }) {
if (initialized) return nextAuthConfig;
+ const secrets = getSecretsFromEnv();
const operatorsParser = new NodeParser({
operators: { _secret },
payload: {},
- secrets: getSecretsFromEnv(),
+ secrets,
user: {},
});
@@ -46,12... | feat: Read auth secret from secrets object | null | lowdefy/lowdefy | Apache License 2.0 | JavaScript |
@@ -21,7 +21,7 @@ Arguments:
Options:
--network [name] Use a specific network (default {CONFIG.settings['networks']['default']})
--silent Suppress console output for transactions
- --interactive -I Open an interactive console if the script fails
+ --interactive -I Open an interactive console when the script completes o... | feat: allow drop-in to console after successful script | null | eth-brownie/brownie | MIT License | Python |
package com.microsoft.reacttestapp
+import android.app.Activity
+import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.widget.TextView
@@ -48,11 +50,24 @@ class MainActivity : ReactActivity() {
.show(supportFragmentManager, ComponentBottomSheetDialogFragment.TAG)
}
els... | feat(android): support starting activities | null | microsoft/react-native-test-app | MIT License | Kotlin |
@@ -39,7 +39,11 @@ let config: AppConfig | AppConfig[]
function tryCallback <T> (callback: () => T) {
try {
return callback()
- } catch {}
+ } catch (error) {
+ if (error.code !== 'MODULE_NOT_FOUND' && error.code !== 'ENOENT') {
+ throw error
+ }
+ }
}
if (['.js', '.json', '.ts'].includes(extension)) {
| feat(cli): optimize error | null | koishijs/koishi | MIT License | TypeScript |
@@ -37,6 +37,11 @@ import java.util.stream.*;
public class WebParticipant extends Participant<WebDriver>
implements JavascriptExecutor
{
+ /**
+ * Temporary added to be able to test Plan-B till it is completely dropped from Chrome.
+ */
+ private static final boolean DISABLE_UNIFIED = Boolean.getBoolean("jitsi-meet-tor... | feat: Add system property to disable unified | null | jitsi/jitsi-meet-torture | Apache License 2.0 | Java |
@@ -50,10 +50,7 @@ import com.b2international.snowowl.core.repository.RepositoryRequests;
import com.b2international.snowowl.core.request.CommitResult;
import com.b2international.snowowl.core.request.SearchResourceRequestIterator;
import com.b2international.snowowl.snomed.common.SnomedRf2Headers;
-import com.b2internat... | feat(snomed): Create inferred relationships with value in SaveJobRequest | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -93,7 +93,7 @@ defmodule MoonWeb.Pages.Components.TextInputPage do
</Form>
</:example>
- <:code></:code>
+ <:code>{example_1_code()}</:code>
<:state>{example_1_state(assigns)}</:state>
</ExampleAndCode>
@@ -159,6 +159,40 @@ defmodule MoonWeb.Pages.Components.TextInputPage do
{:noreply, assign(socket, user_changeset:... | feat: added text area example | null | coingaming/moon | MIT License | Elixir |
@@ -54,13 +54,14 @@ namespace MagicOnion.Server.OpenTelemetry
try
{
// request
- activity.SetTag("grpc.method", context.MethodType.ToString());
+ activity.SetTag("rpc.grpc.method", context.MethodType.ToString());
activity.SetTag("rpc.system", "grpc");
activity.SetTag("rpc.service", context.ServiceType.Name);
activity.S... | feat: move grpc trace key to rpc.grpc. as official do | null | cysharp/magiconion | MIT License | C# |
@@ -10,6 +10,11 @@ import { UUIMenuItemEvent } from './UUIMenuItemEvent';
export default {
title: 'Buttons/Menu Item',
component: 'uui-menu-item',
+ decorators: [
+ (story: any) => html`
+ <div style="max-width: 500px;">${story()}</div>
+ `,
+ ],
id: 'uui-menu-item',
args: {
label: 'Menu Item 1',
@@ -100,14 +105,12 @@ ... | feat(storybook): add harness to menu-item to limit max-width of all stories | null | umbraco/umbraco.ui | MIT License | TypeScript |
@@ -79,6 +79,33 @@ describe('Wallet model', () => {
expect(check.keystoreFilePath).not.toBe(itm.keystoreFilePath);
});
+ it('updateSetup', async () => {
+ let itm = await Wallet.query().insertAndFetch(testItm);
+ expect(itm.isSetupFinished).toEqual(0);
+ itm.setup = 1;
+ await Wallet.updateSetup(itm);
+ let check = awa... | feat(create-did): add more test | null | selfkeyfoundation/identity-wallet | MIT License | JavaScript |
@@ -7,13 +7,14 @@ import styled, {
import { I18nextProvider } from "react-i18next";
import NDSTheme from "../theme";
import i18n from "../i18n";
+import { ThemeType, DefaultNDSThemeType } from "../theme.type";
import { LocaleContext } from "./LocaleContext";
import { mergeThemes } from "./mergeThemes.util";
-import { T... | feat: Adds a prop to disableGlobalStyles in NDSProvider | null | nulogy/design-system | MIT License | TypeScript |
@@ -256,11 +256,12 @@ public class SpeechToText {
- parameter audio: The audio to transcribe in the format specified by the `Content-Type` header.
- parameter contentType: The type of the input.
- parameter model: The identifier of the model that is to be used for the recognition request.
- - parameter customizationID:... | feat(SpeechToTextV1): Add languageCustomizationID parameter to createJob() and recognize() | null | watson-developer-cloud/swift-sdk | Apache License 2.0 | Swift |
@@ -50,6 +50,9 @@ export function InlineWysiwyg({
return allMedia.map(media => `${media.directory}${media.filename}`)
},
+ previewUrl(src) {
+ return cms.media.store.previewSrc(src)
+ },
...passedInImageProps,
}
}, [
| feat(react-tinacms-editor): by default InlineWysiwyg will use cms.media.store for the previewUrl | null | tinacms/tinacms | Apache License 2.0 | TypeScript |
@@ -5,7 +5,13 @@ import styled, { ThemeProvider } from 'styled-components'
import { responsiveProps } from '@tds/util-prop-types'
import { handleResponsiveStyles } from '@tds/util-helpers'
-import { colorShark, colorTelusPurple, colorWhite, colorAccessibleGreen } from '@tds/core-colours'
+import {
+ colorShark,
+ color... | feat(core-interactive-icon): add error color and update size interval | null | telus/tds-core | MIT License | JavaScript |
@@ -18,7 +18,7 @@ import (
"github.com/dgrijalva/jwt-go"
"github.com/go-chi/chi"
"github.com/go-chi/cors"
- "github.com/privacybydesign/irmago"
+ irma "github.com/privacybydesign/irmago"
"github.com/privacybydesign/irmago/internal/common"
"github.com/privacybydesign/irmago/server"
"github.com/privacybydesign/irmago/ser... | feat: require AllowUnsignedCallbacks to be set for chained sessions if no JWT private key is configured | null | privacybydesign/irmago | Apache License 2.0 | Go |
@@ -20,9 +20,33 @@ import com.ibm.watson.developer_cloud.util.Validator;
*/
public class UpdateEnvironmentOptions extends GenericModel {
+ /**
+ * Size that the environment should be increased to. Environment size cannot be modified when using a Lite plan.
+ * Environment size can only increased and not decreased.
+ */... | feat(Discovery): Add size property and enums to UpdateEnvironmentOptions | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -24,4 +24,12 @@ export default class Service {
get nextBillingDate() {
return moment(this.billing.nextBillingDate).format('LL');
}
+
+ get productType() {
+ return this.route.path
+ .replace(/{.*}/, '')
+ .split('/')
+ .filter((item) => !!item)
+ .join('_');
+ }
}
| feat(service): expose product type | null | ovh/manager | BSD 3-Clause New or Revised License | JavaScript |
@@ -144,5 +144,5 @@ if __name__ == "__main__":
macro_fx_sentiment_df = macro_fx_sentiment(start_date=test_date, end_date=test_date)
print(macro_fx_sentiment_df)
- index_vix_df = index_vix(start_date='20220314', end_date='20220315')
+ index_vix_df = index_vix(start_date='20220501', end_date='20220517')
print(index_vix_d... | feat(stock_szse_area_summary): add stock_szse_area_summary interface | null | jindaxiang/akshare | MIT License | Python |
@@ -11,6 +11,7 @@ import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_field
from frappe.utils import random_string
from frappe.utils.testutils import clear_custom_fields
+from frappe.query_builder import Field
from .test_query_builder import run_only_if, db_type_is
@@ -24,6 +25,7 @@ ... | feat: Added test to assert lock for pypika objects | null | frappe/frappe | MIT License | Python |
@@ -192,7 +192,6 @@ open class Core: UIObject, UIGestureRecognizerDelegate {
plugins
.compactMap { $0 as? OverlayPlugin }
.forEach(render)
- view.bringSubviewToFront(overlayView)
}
#endif
| feat: remove overlayView manipulation | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -570,7 +570,7 @@ class Element extends Node
RenderObject childRenderObject = getRenderObjectOfNode(child);
// Only append childNode when it has no parent
if (childRenderObject != null && childRenderObject.parent == null) {
- appendChildNode(child);
+ appendChildRenderObject(child);
}
child.fireAfterConnected();
}
@@... | feat: opt append/remove child node name | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -5,6 +5,7 @@ const CLIOptions = require('../../cli-options').CLIOptions;
const logger = require('aurelia-logging').getLogger('generate-skeletons');
const selectFeatures = require('../../workflow/select-features');
const writeProject = require('../../workflow/write-project');
+const applicable = require('../../workfl... | feat(generate-skeletons): add plugin skeletons to "au generate-skeletons" | null | aurelia/cli | MIT License | JavaScript |
@@ -77,14 +77,22 @@ export class NamespaceContext implements RequestContext {
}
export class Context {
- constructor(protected state: any = { other: {} }) {}
+ constructor(protected state: any = { env: new DotEnvContext(), request: new NamespaceContext(), other: {} }) {}
get env(): EnvContext {
- return (this.state.env... | feat(types): Add setters for request and env context | null | thisisagile/easy | MIT License | TypeScript |
@@ -15,20 +15,20 @@ class RenderTextControlLeaderLayer extends RenderLeaderLayer {
RenderTextControlLeaderLayer({
required LayerLink link,
RenderTextControl? child,
- required this.scrollableX,
+ required this.scrollable,
this.renderEditable,
this.isMultiline = false,
}) : super(link: link, child: child);
RenderEditabl... | feat: support vertical scroll for textarea | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -10,7 +10,7 @@ export interface UseAsyncStateReturn<Data, Shallow extends boolean> {
execute: (delay?: number, ...args: any[]) => Promise<Data>
}
-export interface UseAsyncStateOptions<Shallow extends boolean> {
+export interface UseAsyncStateOptions<Shallow extends boolean, D = any> {
/**
* Delay for executing the ... | feat(useAsyncState): add onSuccess callbacks | null | vueuse/vueuse | MIT License | TypeScript |
@@ -66,7 +66,9 @@ func (m *machinesService) Create(poolName string) (infra.Machine, error) {
}},
}
+ diskNames := []string
for i := 0; i < int(desired.LocalSSDs); i++ {
+ name := fmt.Sprintf("nvme0n%d", i+1)
disks = append(disks, &compute.AttachedDisk{
Type: "SCRATCH",
AutoDelete: true,
@@ -75,7 +77,9 @@ func (m *machi... | feat: format local ssd disks | null | caos/orbos | Apache License 2.0 | Go |
@@ -53,7 +53,6 @@ test('test delete() method', function () {
});
test('test getDirectoryLocation() method', function () {
- $this->assertTrue(flextype('media_folders')->create('foo'));
$this->assertStringContainsString('/foo',
flextype('media_folders')->getDirectoryLocation('foo'));
});
| feat(tests): update tests for MediaFolders getDirectoryLocation() method | null | flextype/flextype | MIT License | PHP |
@@ -834,7 +834,10 @@ impl Client {
use rand::{thread_rng, Rng};
use warp::Filter;
- /// The range of ports the SSO server will try to bind to randomly
+ /// The range of ports the SSO server will try to bind to randomly.
+ ///
+ /// This is used to avoid binding to a port blocked by the browser.
+ /// See https://fetch... | feat(sdk): Improve docs for SSO login server's random ports | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
@@ -1353,7 +1353,23 @@ void dht::DhtNode::bootstrap(asio::yield_context yield)
asio::ip::udp::endpoint my_endpoint;
asio::ip::udp::endpoint bootstrap_ep;
- std::tie(my_endpoint, bootstrap_ep) = bootstrap_single(yield, "router.bittorrent.com");
+
+ // Ad-hoc circular iteration over @bootstraps@
+ std::array<std::string,... | feat(bittorrent/dht): `bootstrap()`: round-robin over bs nodes | null | equalitie/ouinet | MIT License | C++ |
@@ -5,6 +5,7 @@ const {
encodeHeader
} = require("@webassemblyjs/wasm-gen/lib/encoder");
const { makeBuffer } = require("@webassemblyjs/helper-buffer");
+const constants = require("@webassemblyjs/helper-wasm-bytecode");
const { add } = require("../lib");
@@ -59,9 +60,10 @@ describe("insert a node", () => {
const expect... | feat: add WebAssembly test for ModuleExport insertion | null | xtuc/webassemblyjs | MIT License | JavaScript |
@@ -117,27 +117,61 @@ def authenticate_player_session(
# GET /web/osu-osz2-bmsubmit-getid.php
# GET /web/osu-get-beatmap-topic.php
+OsuClientModes = Literal[
+ "Menu",
+ "Edit",
+ "Play",
+ "Exit",
+ "SelectEdit",
+ "SelectPlay",
+ "SelectDrawings",
+ "Rank",
+ "Update",
+ "Busy",
+ "Unknown",
+ "Lobby",
+ "MatchSetup"... | feat: validation improvements to /web/osu-error.php | null | osuakatsuki/bancho.py | MIT License | Python |
@@ -763,14 +763,10 @@ SQL;
*/
protected function _transRollback(): bool
{
- if ($this->connID->rollback())
- {
- $this->connID->autocommit(true);
+ $this->commitMode = OCI_COMMIT_ON_SUCCESS;
- return true;
+ return oci_rollback($this->connID);
}
- return false;
- }
// ---------------------------------------------------... | feat: add transaction rollback method | null | codeigniter4/codeigniter4 | MIT License | PHP |
@@ -152,13 +152,34 @@ export class Node2D implements ISceneNode<Node2D>, IToHiccup {
return n;
}
}
- const q = mulV23([], this.invMat, p);
+ const q = this.mapGlobalPoint(p);
if (this.containsLocalPoint(q)) {
return { node: this, p: q };
}
}
}
+ /**
+ * Returns copy of world space point `p`, transformed into this
+ * n... | feat(scenegraph): add global/local point mapping methods | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
import Foundation
open class MediaControl: UICorePlugin, UIGestureRecognizerDelegate {
- public var gesture: UITapGestureRecognizer?
+ public var tapGesture: UITapGestureRecognizer?
+ public var doubleTapGesture: UITapGestureRecognizer?
var mediaControlView: MediaControlView = .fromNib()
@@ -198,14 +199,33 @@ open clas... | feat: add doubleTap gesture to mediaControl | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -25,6 +25,7 @@ public struct Attribute: Codable, Equatable {
The type of attribute.
*/
public enum TypeEnum: String {
+ case address = "Address"
case currency = "Currency"
case datetime = "DateTime"
case location = "Location"
| feat(CompareComplyV1): Add `address` as a possible Attribute | null | watson-developer-cloud/swift-sdk | Apache License 2.0 | Swift |
@@ -442,6 +442,7 @@ public class OpportunityDatasetController implements HttpController {
private OpportunityDatasetUploadStatus createOpportunityDataset(Request req, Response res) {
final String accessGroup = req.attribute("accessGroup");
final String email = req.attribute("email");
+ final int zoom = req.attribute("z... | feat(grids): make zoom level adjustable for uploaded shapefiles and CSVs | null | conveyal/r5 | MIT License | Java |
@@ -60,6 +60,11 @@ class PytestBrownieFixtures:
"""Short form of the accounts fixture."""
yield brownie.accounts
+ @pytest.fixture(scope="session")
+ def Contract(self):
+ """Yields the Contract class, used to interact with deployments outside of a project."""
+ yield brownie.Contract
+
@pytest.fixture(scope="session")... | feat: add Contract as a session fixture | null | eth-brownie/brownie | MIT License | Python |
@@ -20,6 +20,8 @@ package com.dtstack.flinkx.websocket.format;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import java.net.URI;
@@ -34,6 +36,8 @@ public class DtWebSocketClient extends WebSocketClient {... | feat: add connect retry | null | dtstack/chunjun | Apache License 2.0 | Java |
@@ -81,29 +81,27 @@ const Demo = () => (
</MoleculeSelectWithState>
</div>
- <h2>Multiple Selection</h2>
<div className={CLASS_DEMO_SECTION}>
- <h3>With Placeholder</h3>
+ <h3>With different value and displayed text</h3>
<MoleculeSelectWithState
placeholder="Select some countries..."
onChange={(_, {value}) => console.l... | feat(Root): demo reorganized | null | sui-components/sui-components | MIT License | JavaScript |
@@ -45,14 +45,14 @@ impl<'a> TypeSerializer<'a> for StringSerializer<'a> {
) {
if in_nested {
buf.push(format.nested.quote_char);
- }
write_escaped_string(
unsafe { self.column.value_unchecked(row_index) },
buf,
format.nested.quote_char,
);
- if in_nested {
buf.push(format.nested.quote_char);
+ } else {
+ buf.extend_fr... | feat: not escape values output for unquoted strings | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -3,6 +3,7 @@ package machinepool
import (
"fmt"
"os"
+ "regexp"
"strconv"
"strings"
"time"
@@ -17,6 +18,8 @@ import (
"github.com/spf13/cobra"
)
+var labelRE = regexp.MustCompile(`^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`)
+
func addMachinePool(cmd *cobra.Command, clusterKey string, cluster *cmv1.Cluster, r *rosa.... | feat: validates machine pool label | null | openshift/rosa | Apache License 2.0 | Go |
@@ -12,6 +12,7 @@ from rlberry.agents.utils.torch_models import default_value_net_fn
from rlberry.utils.torch import choose_device
from rlberry.utils.writers import PeriodicWriter
from rlberry.wrappers.uncertainty_estimator_wrapper import UncertaintyEstimatorWrapper
+from rlberry.seeding import seeding
logger = logging... | feat(shufflet batches): add seeding | null | rlberry-py/rlberry | MIT License | Python |
@@ -4,7 +4,9 @@ extension AVFoundationPlayback {
func setupMaxResolution(for size: CGSize) {
if #available(tvOS 11.0, iOS 11.0, *) {
- player?.currentItem?.preferredMaximumResolution = size
+ let screenScale = UIScreen.main.scale
+ let screenSize = CGSize(width: size.width * screenScale, height: size.height * screenSca... | feat: add scale in setupMaxResolution | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -34,8 +34,34 @@ namespace PeanutButter.RandomGenerators
/// <returns>GenericBuilder type or null if no suitable builder was found</returns>
public static Type TryFindExistingBuilderFor(Type type)
{
- return TryFindBuilderInCurrentAssemblyFor(type)
+ if (type == null)
+ return null;
+ lock (_builderTypeCache)
+ {
+ T... | feat: cache builder-locator results for faster tests | null | fluffynuts/peanutbutter | BSD 3-Clause New or Revised License | C# |
@@ -28,7 +28,6 @@ export default class LeafletMap {
layers: [this.layerManager.layers.map[properties.selectedMapViewMode]],
scrollWheelZoom: properties.scrollWheelZoom
}
-
this._map = L.map(properties.id, mapOptions)
this.attachPropsToMapInstance(properties)
}
| feat(map/basic): needed bumped version | null | sui-components/sui-components | MIT License | JavaScript |
@@ -31,6 +31,7 @@ import errno
from pathlib import Path
from typing import Text
from typing import Union
+from typing import Dict
from pyannote.database.protocol.protocol import ProtocolFile
from pyannote.core import Segment
@@ -77,19 +78,50 @@ class Pre___ed:
* Pre___ed('/path/to/xp/train/.../validate/.../apply/...') ... | feat: add option for custom parameters in Pre___ed | null | pyannote/pyannote-audio | MIT License | Python |
-<?php
-
-namespace Appwrite\Auth\OAuth2;
-
-use Appwrite\Auth\OAuth2;
-
-class LinkedIn extends OAuth2
-{
- /**
- * @var array
- */
- protected $user = [];
-
- /**
- * @var array
- */
- protected $scopes = [
- 'r_liteprofile',
- 'r_emailaddress',
- ];
-
- /**
- * Documentation.
- *
- * OAuth:
- * https://developer.lin... | feat: removed LinkedIn.php | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -2,12 +2,22 @@ pub mod generated_types {
pub use generated_types::influxdata::platform::storage::*;
}
+use snafu::Snafu;
+
use self::generated_types::*;
use super::response::{
tag_key_is_field, tag_key_is_measurement, FIELD_TAG_KEY_BIN, MEASUREMENT_TAG_KEY_BIN,
};
use ::generated_types::google::protobuf::*;
+#[deriv... | feat: add read_window_aggregate request builder | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
+/*
+ * Certain shells output signals as "1) SIGHUP 2) SIGINT 3) SIGQUIT" (bash, zsh, ...)
+ * Other shells output looks like "HUP INT QUIT" (fish, csh, ...)
+ */
+const re = /(\d+\)\s)?([\w-+]+)/g;
+
+/*
+ * Generators
+ */
+
+const availableSignalsGenerator = (
+ suggestOptions?: Partial<Fig.Suggestion>
+): Fig.Gener... | feat(trap): add trap spec | null | withfig/autocomplete | MIT License | TypeScript |
@@ -28,22 +28,35 @@ def index(num_docs: int):
num_docs = min(num_docs, len(glob(os.path.join(os.getcwd(), IMAGE_SRC),
recursive=True)))
- f = Flow().add(uses={"jtype": "ImageCrafter",
+ f = Flow(workspace="workspace")\
+ .add(uses={"jtype": "ImageCrafter",
"with": {"target_size": 96,
"img_mean": [0.485, 0.456, 0.406],
... | feat: added example main files for 2.0 | null | jina-ai/examples | Apache License 2.0 | Python |
@@ -7,8 +7,11 @@ from deeppavlov.core.common.registry import register
class NerDatasetReader(DatasetReader):
def read(self, file_path: str):
dir_path = Path(file_path)
+ if not dir_path.is_dir():
+ raise RuntimeError('Dataset directory "{}" does not exists'.format(dir_path))
files = list(dir_path.glob('*.txt'))
- asser... | feat: better error handling in basic ner dataset reader | null | deeppavlov/deeppavlov | Apache License 2.0 | Python |
@@ -25,3 +25,9 @@ test('test copy() method', function () {
$this->assertTrue(flextype('media_folders')->create('foo'));
$this->assertTrue(flextype('media_folders')->copy('foo', 'bar'));
});
+
+test('test delete() method', function () {
+ $this->assertTrue(flextype('media_folders')->create('foo'));
+ $this->assertTrue(f... | feat(tests): update tests for MediaFolders delete() method | null | flextype/flextype | MIT License | PHP |
@@ -99,7 +99,7 @@ $app->group('/' . $admin_route, function () use ($app) : void {
// ApiController
$app->get('/api', 'ApiController:index')->setName('admin.api.index');
- $app->get('/api/tokens', 'ApiController:tokens')->setName('admin.api_tokens.index');
+ $app->get('/api/tokens', 'ApiController:tokensIndex')->setName... | feat(admin-plugin): add new route /api/tokens for API's interface | null | flextype/flextype | MIT License | PHP |
@@ -32,10 +32,12 @@ class ViewController: UIViewController {
player.on(Event.stalled) { _ in print("on Stalled") }
player.on(Event.requestFullscreen) { _ in
+ self.showAlert(with: "Fullscreen", message: "Entrar em modo fullscreen")
self.player.setFullscreen(true)
}
player.on(Event.exitFullscreen) { _ in
+ self.showAler... | feat: add alert when user tap on fullscreen | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -213,6 +213,12 @@ export class SendPage extends WalletTabsChild {
) {
const isValid = this.checkCoinAndNetwork(this.search);
if (isValid) this.redir();
+ } else if (
+ parsedData &&
+ parsedData.type == 'BitPayCard'
+ ) {
+ this.close();
+ this.incomingDataProvider.redir(this.search);
} else {
this.invalidAddress = ... | feat(bitpay-card): link card copying link into the send input | null | bitpay/wallet | MIT License | TypeScript |
@@ -487,7 +487,6 @@ class EventsView extends BaseNotificaitonsView {
start: today,
end: today
}).then(event_list => {
- console.log(event_list);
this.render_events_html(event_list);
});
}
@@ -496,26 +495,35 @@ class EventsView extends BaseNotificaitonsView {
let html = '';
if (event_list.length) {
let get_event_html = ... | feat: added open events | null | frappe/frappe | MIT License | JavaScript |
@@ -8,9 +8,14 @@ use matrix_sdk_appservice::{
events::room::member::{MembershipState, OriginalSyncRoomMemberEvent},
UserId,
},
+ HttpError,
},
AppService, AppServiceRegistration, Result,
};
+use ruma::api::{
+ client::{error::ErrorKind, uiaa::UiaaResponse},
+ error::{FromHttpResponseError, ServerError},
+};
use tracing... | feat(appservice): Improve autojoin example | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
+import React, { useState, useEffect, useContext } from 'react'
+import { RouteComponentProps, Link } from 'react-router-dom'
+import Pagination from 'rc-pagination'
+import 'rc-pagination/assets/index.css'
+import localeInfo from 'rc-pagination/lib/locale/en_US'
+import queryString from 'query-string'
+import AppConte... | feat(ui): add LockHash page | null | nervosnetwork/ckb-explorer-frontend | MIT License | TypeScript |
@@ -4,18 +4,20 @@ import { Stringer } from "./api";
import { repeat } from "./repeat";
/**
- * Returns a `Stringer` which formats given numbers to `radix` and `len`.
+ * Returns a `Stringer` which formats given numbers to `radix`, `len`
+ * and with optional prefix (not included in `len`).
*
* @param radix
* @param len... | feat(strings): add opt prefix arg for radix() | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
@@ -586,8 +586,9 @@ class Nlp extends Clonable {
context,
settings: this.applySettings(settings, this.settings.nlu),
};
+ const forceNER = input.settings && ('forceNER' in input.settings) ? input.settings.forceNER : this.forceNER;
let output = await this.nluManager.process(input);
- if (this.forceNER || !this.slotManag... | feat: allow disabling ner in nlp by settings | null | axa-group/nlp.js | MIT License | JavaScript |
@@ -80,12 +80,25 @@ func init() {
}
influxCmd.PersistentFlags().BoolVar(&flags.local, "local", false, "Run commands locally against the filesystem")
+
+ // Override help on all the commands tree
+ walk(influxCmd, func(c *cobra.Command) {
+ c.Flags().BoolP("help", "h", false, fmt.Sprintf("Help for the %s command ", c.Na... | feat(cmd/influx): override help for all commands | null | influxdata/influxdb | MIT License | Go |
@@ -7,7 +7,7 @@ export { NotificationService } from './app/core/providers/notification/notificat
export { DataModule } from './app/data/data.module';
export { DataService } from './app/data/providers/data.service';
export { ServerConfigService } from './app/data/server-config';
-export { ModalService } from './app/shar... | feat(admin-ui): Export Dialog interface | null | vendure-ecommerce/vendure | MIT License | TypeScript |
@@ -192,7 +192,7 @@ public void installTemplate(
@Argument("versionType") ServiceVersionType versionType,
@Argument("version") ServiceVersion serviceVersion,
@Flag("force") boolean forceInstall,
- @Flag("caches") boolean caches,
+ @Flag("caches") Boolean caches,
@Flag("executable") @Quoted String executable
) {
var res... | feat(node): Fix that the template command does not use the caches | null | cloudnetservice/cloudnet-v3 | Apache License 2.0 | Java |
@@ -511,6 +511,7 @@ func FindDashboards(
dashboards []*platform.Dashboard
err error
}
+
tests := []struct {
name string
fields DashboardFields
@@ -551,6 +552,116 @@ func FindDashboards(
},
},
},
+ {
+ name: "find all dashboards by offset and limit",
+ fields: DashboardFields{
+ Dashboards: []*platform.Dashboard{
+ {
+ ... | feat(testing): tests for dashboards pagination | null | influxdata/influxdb | MIT License | Go |
@@ -67,7 +67,6 @@ macro_rules! impl_from_iterator {
};
}
-
macro_rules! impl_from_opt_iterator {
([], $( { $T: ident} ),*) => {
$(
@@ -85,7 +84,6 @@ macro_rules! impl_from_opt_iterator {
};
}
-
macro_rules! impl_from_vec {
([], $( { $T: ident} ),*) => {
$(
@@ -98,7 +96,6 @@ macro_rules! impl_from_vec {
};
}
-
macro_rul... | feat(expression): make lint happy | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -35,3 +35,10 @@ test('test delete() method', function () {
$this->assertTrue(flextype('media_files_meta')->delete('foo.txt', 'title'));
$this->assertTrue(empty(flextype('yaml')->decode(flextype('filesystem')->file(PATH['project'] . '/uploads/.meta/foo.txt.yaml')->get())['bar']));
});
+
+test('test getFileMetaLocatio... | feat(tests): add tests for MediaFilesMeta getFileMetaLocation() method | null | flextype/flextype | MIT License | PHP |
@@ -864,9 +864,14 @@ class IndexTests: OnlineTestCase {
expectation.fulfill()
} else {
// Delete by query.
- let query = Query()
+ let query = Query(query: "")
query.numericFilters = ["dummy < 1500"]
self.index.deleteBy(query, completionHandler: { (content, error) -> Void in
+ if error != nil {
+ XCTFail(error!.localiz... | feat(deleteBy): add a wait task for the delete query to finish executing | null | algolia/algoliasearch-client-swift | MIT License | Swift |
@@ -65,7 +65,9 @@ import java.io.IOException;
import javax.ws.rs.HttpMethod;
import javax.ws.rs.client.Invocation.Builder;
+import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
@@ -126,19 +1... | feat: implement one follow redirect for discovery client to support AWS | null | gluufederation/oxauth | MIT License | Java |
@@ -71,8 +71,10 @@ function defaultConfig(options = {}) {
},
credentials: {
client_id: process.env.CISCOSPARK_CLIENT_ID,
+ federation: true,
scope: 'spark:all spark:kms'
},
+
// Added to help load blocking during decryption
encryption: {
kmsInitialTimeout: 10000
| feat(spark): add federation support | null | webex/react-widgets | MIT License | JavaScript |
+#!/usr/bin/python3
+
+import sys
+from subprocess import DEVNULL, PIPE
+from typing import Dict, List, Optional
+
+import psutil
+from requests.exceptions import ConnectionError as RequestsConnectionError
+
+from brownie.exceptions import RPCRequestError
+from brownie.network.web3 import web3
+
+CLI_FLAGS = {
+ "port"... | feat: geth-dev specific rpc logic | null | eth-brownie/brownie | MIT License | Python |
@@ -40,22 +40,22 @@ pub mod util;
/// Default smtp port
pub const SMTP_PORT: u16 = 25;
-
/// Default submission port
pub const SUBMISSION_PORT: u16 = 587;
+/// Default submission over TLS port
+pub const SUBMISSIONS_PORT: u16 = 465;
/// How to apply TLS to a client connection
#[derive(Clone)]
#[allow(missing_debug_impl... | feat(transport): Use submissions port by default | null | lettre/lettre | MIT License | Rust |
@@ -248,9 +248,17 @@ impl<T: Clone> Dict<T> {
if let Some(index) = entry_index.index() {
// Update existing key
if let Some(entry) = inner.entries.get_mut(index) {
- let entry = entry
- .as_mut()
- .expect("The dict was changed since we did lookup.");
+ let entry = if let Some(entry) = entry.as_mut() {
+ entry
+ } else... | feat: allow retry if as_mut fail | null | rustpython/rustpython | MIT License | Rust |
package io.clappr.player.plugin.Control
import android.view.View
-import android.widget.LinearLayout
import io.clappr.player.BuildConfig
-import io.clappr.player.base.*
+import io.clappr.player.base.BaseObject
+import io.clappr.player.base.Event
+import io.clappr.player.base.InternalEvent
+import io.clappr.player.base.... | feat(fullscreen_button_clappr): fix test | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -6,6 +6,7 @@ import 'lang/ar.dart';
import 'lang/en.dart';
import 'lang/fr.dart';
import 'lang/it.dart';
+import 'lang/ja.dart';
import 'lang/pt.dart';
import 'lang/nl.dart';
import 'lang/tr.dart';
@@ -114,6 +115,7 @@ const localizations = <String, FlutterFireUILocalizationLabels>{
'tr': TrLocalizations(),
'fr': FrL... | feat(flutterfire_ui): Add Japanese localization language support | null | firebaseextended/flutterfire | BSD 3-Clause New or Revised License | Dart |
import * as React from "react";
-import { StyleSheet, ScrollView, View, SafeAreaView } from "react-native";
+import {
+ StyleSheet,
+ ScrollView,
+ View,
+ SafeAreaView,
+ StyleProp,
+ ViewStyle,
+} from "react-native";
import { withTheme } from "../core/theming";
import Config from "./Config";
+import theme from "../s... | feat(screencontainer): convert to typescript | null | draftbit/react-native-jigsaw | MIT License | TypeScript |
@@ -42,11 +42,11 @@ namespace ChatApp.Server
metricsServer.Start();
Console.WriteLine($"Started Metrics Server on {exporterUrl}");
- // TracerServer for Zipkin push model
- var traceServer = TestHttpServer.RunServer(ProcessServerRequest, tracerHost, tracerPort);
+ // TracerServer for Zipkin push model (in case you won'... | feat: cache factory | null | cysharp/magiconion | MIT License | C# |
@@ -447,7 +447,7 @@ flextype('plugins')->init();
*/
include_once ROOT_DIR . '/src/flextype/Endpoints/Utils/errors.php';
include_once ROOT_DIR . '/src/flextype/Endpoints/Utils/access.php';
-include_once ROOT_DIR . '/src/flextype/Endpoints/entries.php';
+include_once ROOT_DIR . '/src/flextype/Endpoints/content.php';
incl... | feat(flextype): updates for flextype | null | flextype/flextype | MIT License | PHP |
@@ -118,10 +118,15 @@ def _build_coverage_output(build, coverage_eval):
f"\n contract: {color('bright magenta')}{contract_name}{color}"
f" - {_cov_color(pct)}{pct:.1%}{color}"
)
+
cov = totals[contract_name]
- for fn_name, count in cov["statements"].items():
- branch = cov["branches"][fn_name] if fn_name in cov["branch... | feat: sort coverage results by % | null | eth-brownie/brownie | MIT License | Python |
@@ -3,6 +3,8 @@ import itertools
import numpy as np
import os
+import sys
+
from deeppavlov.core.common.registry import register
from deeppavlov.core.models.trainable import Trainable
from deeppavlov.core.models.inferable import Inferable
@@ -125,7 +127,7 @@ class DefaultVocabulary(Trainable, Inferable):
return [self._... | feat: redirect prints in DefaultVocabulary to stderr | null | deeppavlov/deeppavlov | Apache License 2.0 | Python |
@@ -78,9 +78,18 @@ public final class VersionSearchRequest
* Filter by the author's username who have created the version.
*/
AUTHOR,
+ /**
+ * "Greater than equal to filter
+ */
+ CREATED_AT_FROM,
+ /**
+ * "Less than equal to filter
+ */
+ CREATED_AT_TO,
}
- VersionSearchRequest() { }
+ VersionSearchRequest() {
+ }
@... | feat: add createdAt range filter to VersionSearchRequest | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -126,6 +126,9 @@ func GetNodeBuildParameters(ctx context.Context, db gorp.SqlExecutor, store cach
if n.Context.Application.RepositoryStrategy.User != "" {
vars["git.http.user"] = n.Context.Application.RepositoryStrategy.User
}
+ if n.Context.Application.VCSServer != "" {
+ vars["git.server"] = n.Context.Application.... | feat: expose git.server as a template variable | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -20,8 +20,9 @@ function getDecodedQuery (query = {}) {
export function createPageMixin () {
return {
created: function pageCreated () {
- createPage(this)
- callPageHook(this, 'onLoad', getDecodedQuery(this.$route.query))
+ const options = getDecodedQuery(this.$route.query)
+ createPage(this, options)
+ callPageHook... | feat(h5): add options to page instance | null | dcloudio/uni-app | Apache License 2.0 | JavaScript |
@@ -104,7 +104,6 @@ class Entries
// If requested entry file founded then process it
if ($this->has($id)) {
-
$_entry = $this->read($id);
// Create unique entry cache_id
@@ -281,7 +280,6 @@ class Entries
// Create entries array from entries list and ignore current requested entry
//echo count($entries_list);
foreach ($... | feat(core): update Entries update method | null | flextype/flextype | MIT License | PHP |
@@ -4,7 +4,7 @@ import json
from hashlib import sha1
from pathlib import Path
-from hypothesis.reporting import reporter as hy_reporter
+import hypothesis
from py.path import local
import brownie
@@ -118,7 +118,8 @@ class PytestBrownieBase:
* Replaces the default hypothesis reporter with a one that applies source
highl... | feat: apply custom hypothesis reporter for verbose output | null | eth-brownie/brownie | MIT License | Python |
@@ -90,13 +90,32 @@ class Collections
$this->flextype = $flextype;
}
- public function find($array)
+ /**
+ * Find
+ *
+ * @param string $array Array
+ *
+ * @return static self reference
+ *
+ * @access public
+ */
+ public function find(array $array)
{
+ // Save error_reporting state and turn it off
+ // because PHP ... | feat(element-queries): several updates and improvements for Collections class | null | flextype/flextype | MIT License | PHP |
@@ -141,6 +141,9 @@ class _ContractBase:
)
elif language == "Solidity":
flattened_source = ""
+ has_abiencoder = False
+ abiencoder_str = "\npragma experimental ABIEncoderV2;"
+ abiencoder_re = r"(^|\r|\n|\r\n)\s*pragma experimental ABIEncoderV2;"
for name in self._build["dependencies"]:
build_json = self._project._bui... | feat: handle experimental abiencoder | null | eth-brownie/brownie | MIT License | Python |
@@ -17,8 +17,7 @@ fn search(map: &DocIndexMap, lev_builder: &LevBuilder, query: &str) {
automatons.push(lev);
}
- let limit: Option<usize> = env::var("RAPTOR_OUTPUT_LIMIT").ok().and_then(|x| x.parse().ok());
- let mut stream = RankedStream::new(&map, map.values(), automatons, limit.unwrap_or(20));
+ let mut stream = Ra... | feat: Remove env variable search output limit lookup | null | meilisearch/meilisearch | MIT License | Rust |
@@ -33,14 +33,7 @@ import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collection;
-import java.util.HashSet;
import java.util.List;
-import java.util.Set;
-import java.util.concurrent.Callable;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent... | feat(#1564): remove puzzle | null | cqfn/eo | MIT License | Java |
@@ -105,8 +105,8 @@ class Collection
// line 40: return $object[$field];
//
// @todo research this issue and find possible better solution to avoid this in the future
- $this->oldErrorReporting = error_reporting();
- error_reporting($this->oldErrorReporting & ~E_NOTICE);
+ $this->$errorReporting = error_reporting();
+ ... | feat(element-queries): fix error reporting | null | flextype/flextype | MIT License | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.