diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -297,9 +297,35 @@ class AuditableTest extends AuditingTestCase
* @group Auditable::toAudit
* @test
*/
- public function itReturnsTheTransformedAuditData()
+ public function itTransformsTheAuditData()
{
- $this->markTestIncomplete();
+ $model = new class() extends Article {
+ protected $attributes = [
+ 'title' => 'H... | feat(AuditableTest): add missing test | null | owen-it/laravel-auditing | MIT License | PHP |
@@ -2,21 +2,27 @@ import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {CmpModal} from './component'
+
+import {STEPS} from '../settings'
+
export class CmpModalContainer extends Component {
state = {
consentKey: 0,
+ fetchingPurposes: false,
purposeConsents: {},
purposes: [],
+ step: STEPS.... | feat(cmp/modal): create two steps for the modal | null | sui-components/sui-components | MIT License | JavaScript |
@@ -1392,13 +1392,27 @@ pub extern fn pactffi_with_binary_file(
/// Adds a binary file as the body as a MIME multipart with the expected content type and example contents. Will use
/// a mime type matcher to match the body. Returns an error if the interaction or Pact can't be
-/// modified (i.e. the mock server for it ... | feat(FFI): updated doc comments for pactffi_with_multipart_file | null | pact-foundation/pact-reference | MIT License | Rust |
@@ -220,7 +220,7 @@ int main(int argc, const char** argv)
if (cmd_toks[0] == "get") {
if (cmd_toks.size() != 3) {
- cerr << "Bad command." << endl;
+ usage(std::cout, args[0]);
continue;
}
GetCmd get_cmd;
@@ -263,7 +263,7 @@ int main(int argc, const char** argv)
}
else if (cmd_toks[0] == "put") {
if (args.size() != 4) ... | feat(test/test-dht): Display usage instead of "bad command" | null | equalitie/ouinet | MIT License | C++ |
@@ -9,7 +9,8 @@ use std::{
/// Represents a "string-able" type.
///
/// The type is required to be able to be represented as a string [`Display`], along with knowing
-/// how to be parsed from the string representation [`FromStr`].
+/// how to be parsed from the string representation [`FromStr`]. To make sure things st... | feat(tauri): auto Tag impl now requires debug | null | tauri-apps/tauri | Apache License 2.0 | Rust |
@@ -4,8 +4,8 @@ import cx from 'classnames';
import css from './panel.module.css';
-export const Panel = ({ className, ...restProps }) => (
- <div
+export const Panel = ({ className, as: Component, ...restProps }) => (
+ <Component
className={cx(css.root, className)}
{...restProps}
/>
@@ -13,9 +13,13 @@ export const Pa... | feat: Panel - add custom render component | null | relative-ci/bundle-stats | MIT License | JavaScript |
@@ -81,7 +81,7 @@ public class AddTrips extends Modification {
// TODO lots more to fill in here, need to have a way to just specify all needed info in scenario editor.
RouteInfo info = new RouteInfo();
- info.route_short_name = "";
+ info.route_short_name = this.comment;
info.route_long_name = this.comment;
info.route... | feat(route-info): set route_short_name from modification name | null | conveyal/r5 | MIT License | Java |
@@ -24,6 +24,8 @@ class Course::Forum::TopicsController < Course::Forum::ComponentController
if @topic.save
send_created_notification(@topic)
+ @topic.ensure_subscribed_by(current_user)
+
redirect_to course_forum_topic_path(current_course, @forum, @topic),
success: t('.success', title: @topic.title)
else
| feat(forum topics): Subscribe topic creator | null | coursemology/coursemology2 | MIT License | Ruby |
+#include <logconf.h>
+
+int main(int argc, char *argv[])
+{
+ const char *file;
+ if (argc > 1)
+ file = argv[1];
+ else
+ file = "../bots/bot.config";
+
+ char *varA = "Hello";
+ int varB = 1337;
+ struct { int x } varC = { .x = 707 };
+
+ struct logconf conf={};
+
+ // initialize and link conf to a .config file
+ lo... | feat: add test-logconf.c to demonstrate logconf.c usage | null | cee-studio/orca | MIT License | C |
@@ -127,6 +127,12 @@ export const MENU = [
},
translation: 'cloud_sidebar_project_management_contact_rights',
},
+ {
+ options: {
+ state: 'pci.projects.project.edit',
+ },
+ translation: 'cloud_sidebar_project_management_settings',
+ },
],
translation: 'cloud_sidebar_project_management',
},
| feat: add project settings link | null | ovh/manager | BSD 3-Clause New or Revised License | JavaScript |
import cloud.commandframework.annotations.CommandMethod;
import cloud.commandframework.annotations.CommandPermission;
+import cloud.commandframework.annotations.Flag;
import eu.cloudnetservice.cloudnet.common.unsafe.CPUUsageResolver;
import eu.cloudnetservice.cloudnet.node.CloudNet;
import eu.cloudnetservice.cloudnet.n... | feat(node): Only expose parts of the cluster id | null | cloudnetservice/cloudnet-v3 | Apache License 2.0 | Java |
@@ -327,12 +327,14 @@ void DBImpl::background_build_index() {
_pMeta->files_to_index(to_index_files);
Status status;
for (auto& file : to_index_files) {
+ LOG(DEBUG) << "Buiding index for " << file.location;
status = build_index(file);
if (!status.ok()) {
_bg_error = status;
return;
}
}
+ LOG(DEBUG) << "All Buiding ind... | feat(db): add more print | null | milvus-io/milvus | Apache License 2.0 | C++ |
+package sqlancer.databend.ast;
+
+import sqlancer.Randomly;
+import sqlancer.common.ast.BinaryOperatorNode;
+import sqlancer.common.ast.newast.NewUnaryPostfixOperatorNode;
+import sqlancer.common.ast.newast.Node;
+import sqlancer.databend.DatabendSchema.DatabendDataType;
+
+
+public class DatabendUnaryPostfixOperation... | feat: implement the unary postfix operation | null | sqlancer/sqlancer | MIT License | Java |
@@ -83,7 +83,7 @@ if (! function_exists('getCurrentUrl')) {
if (! function_exists('getBasePath')) {
/**
- * Get the base path
+ * Get the base path.
*
* @return string Base Path.
*/
@@ -95,7 +95,7 @@ if (! function_exists('getBasePath')) {
if (! function_exists('setBasePath')) {
/**
- * Set the base path
+ * Set the ba... | feat(helpers): typo doc updates | null | flextype/flextype | MIT License | PHP |
@@ -57,12 +57,10 @@ class Course::Assessment::Question::ProgrammingController < Course::Assessment::
def destroy
if @programming_question.destroy
- redirect_to course_assessment_path(current_course, @assessment),
- success: t('.success')
+ head :ok
else
error = @programming_question.errors.full_messages.to_sentence
- r... | feat(programming): destroy responds to json | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -61,23 +61,13 @@ if (! function_exists('cache')) {
}
}
-if (! function_exists('content')) {
+if (! function_exists('entries')) {
/**
- * Get Flextype Content Service.
+ * Get Flextype Entries Service.
*/
- function content()
+ function entries()
{
- return flextype()->container()->get('content');
- }
-}
-
-if (! fun... | feat(helpers): add `upload`, `entries` functions and remove unused code | null | flextype/flextype | MIT License | PHP |
@@ -10,12 +10,6 @@ then
exit 1
fi
-# clean node_modules and build library
-echo "Build library"
-rm -rf node_modules
-yarn
-yarn build
-
# read actual dist/package.json version
actual_version=$(grep version package.json | cut -c 15- | rev | cut -c 3- | rev)
@@ -47,6 +41,12 @@ else
exit 1
fi
+# clean node_modules and bu... | feat(scripts/release): build library after update version | null | algolia/angular-instantsearch | MIT License | Shell |
@@ -34,7 +34,6 @@ import org.cactoos.experimental.Threads;
import org.cactoos.number.SumOf;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
@@ -43,10 +42,6 @@ import org.junit.jupiter.api... | feat(#1574): remove old puzzle | null | cqfn/eo | MIT License | Java |
@@ -351,6 +351,31 @@ pub extern "C-unwind" fn display(term: OpaqueTerm) -> ErlangResult {
ErlangResult::Ok(true.into())
}
+#[allow(improper_ctypes_definitions)]
+#[export_name = "erlang:display_nl/0"]
+pub extern "C-unwind" fn display_nl() -> ErlangResult {
+ println!();
+ ErlangResult::Ok(true.into())
+}
+
+#[allow(im... | feat: teach tiny runtime some hidden display bifs | null | lumen/lumen | Apache License 2.0 | Rust |
@@ -6,6 +6,8 @@ import (
"crypto/tls"
"encoding/json"
"fmt"
+ "io/ioutil"
+ "mime"
"net"
"net/http"
"net/url"
@@ -101,26 +103,23 @@ func newClient(scheme string, insecure bool) *http.Client {
// If there is no error, then this returns nil.
func checkError(resp *http.Response) error {
switch resp.StatusCode / 100 {
- ca... | feat(cli/influx): Display detailed error messages when available | null | influxdata/influxdb | MIT License | Go |
@@ -28,7 +28,12 @@ readonly GOFLAGS="-mod=readonly"
readonly GOPATH="$(mktemp -d)"
readonly MIN_REQUIRED_GO_VER="1.19"
-if go version | perl -ne "exit 0 unless m{go version go([0-9]+.[0-9]+)}; exit 1 if (\$1 >= ${MIN_REQUIRED_GO_VER})"; then
+function go_version_matches {
+ go version | perl -ne "exit 1 unless m{go ver... | feat: improve version guard readability | null | kubernetes-sigs/gateway-api | Apache License 2.0 | Shell |
use core::str;
use lmdb::{Cursor, Database, Environment, Transaction};
+use minicbor::{Decode, Encode};
use ockam_abac::{Action, Expr, PolicyStorage, Resource};
use ockam_core::async_trait;
use ockam_core::errcode::{Kind, Origin};
use ockam_core::{Error, Result};
use ockam_identity::authenticated_storage::Authenticated... | feat(rust): wrap stored policy expressions | null | ockam-network/ockam | Apache License 2.0 | Rust |
+from pype.vendor import ftrack_api
+from pype.ftrack import BaseEvent, lib
+from avalon.tools.libraryloader.io_nonsingleton import DbConnector
+from bson.objectid import ObjectId
+from pypeapp import config
+from pypeapp import Anatomy
+import subprocess
+import os
+import re
+
+
+class UserAssigmentEvent(BaseEvent):
... | feat(ftrack): user (de)assigment will run configurable shell scripts | null | pypeclub/openpype | MIT License | Python |
@@ -167,7 +167,7 @@ func (w *runcExecutor) Exec(ctx context.Context, meta executor.Meta, root cache.
if err != nil {
return errors.Wrapf(err, "working dir %s points to invalid target", newp)
}
- if err := os.MkdirAll(newp, 0700); err != nil {
+ if err := os.MkdirAll(newp, 0755); err != nil {
return errors.Wrapf(err, "f... | feat: create workdir permission with 755 according to existing docker | null | moby/buildkit | Apache License 2.0 | Go |
*/
private final int sid;
+ /**
+ * Gets the resolution of the bitstream that this instance represents.
+ */
+ private final int resolution;
+
/**
* The root {@link RTPEncodingDesc} of the dependencies DAG. Useful for
* simulcast handling.
@@ -161,7 +166,7 @@ public RTPEncodingDesc(MediaStreamTrackDesc track, long prim... | feat: Adds a resolution field to the RTPEncodingDesc | null | jitsi/libjitsi | Apache License 2.0 | Java |
@@ -1594,7 +1594,26 @@ result_t test_mm_div_ps(const SSE2NEONTestImpl &impl, uint32_t i)
result_t test_mm_div_ss(const SSE2NEONTestImpl &impl, uint32_t i)
{
- return TEST_UNIMPL;
+ const float *_a = impl.mTestFloatPointer1;
+ const float *_b = impl.mTestFloatPointer2;
+
+ float d0 = _a[0] / _b[0];
+ float d1 = _a[1];
+... | feat: Add test for _mm_div_ss | null | dltcollab/sse2neon | MIT License | C++ |
@@ -30,16 +30,25 @@ namespace PeanutButter.TempDb.LocalDb
public class TempDBLocalDb : TempDB<SqlConnection>
{
// ReSharper disable once MemberCanBePrivate.Global
- public string DatabaseName { get { return _databaseName; } set { _databaseName = value; } }
+ public string DatabaseName
+ {
+ get { return _databaseName; ... | feat: report more info when connection to localdb fails | null | fluffynuts/peanutbutter | BSD 3-Clause New or Revised License | C# |
@@ -1135,11 +1135,11 @@ class RenderBoxModel extends RenderBox with
}());
bool isHit = result.addWithPaintTransform(
- transform: transform != null ? getEffectiveTransform() : Matrix4.identity(),
+ transform: transform != null ? getEffectiveTransform() : null,
position: position,
hitTest: (BoxHitTestResult result, Offs... | feat: modify hittest scroll | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -78,11 +78,18 @@ def dryrun():
@click.option("--top_k", "-k", default=5)
def main(task, num_docs, top_k):
config()
+ workspace = os.env["JINA_WORKSPACE"]
if task == "index":
+ if os.path.exists(workspace):
+ print(f"The directory {workspace} does already exist. Please remove it before indexing again.`")
index(num_do... | feat: better error detection regarding workspace | null | jina-ai/examples | Apache License 2.0 | Python |
@@ -19,11 +19,12 @@ namespace Flextype\Parsers\Shortcodes;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
use function parsers;
-// Shortcode: [textile] textile text here [/textile]
+// Shortcode: textile
+// Usage: (textile) textile text here (/textile)
parsers()->shortcodes()->addHandler('textile', static functi... | feat(shortcodes): update `textile` shortcode | null | flextype/flextype | MIT License | PHP |
@@ -264,6 +264,9 @@ def check(protocol_name, file_finder, experiment_dir):
uri = get_unique_identifier(current_file)
print('Duration mismatch for "{uri}"'.format(uri=uri))
+ if np.any(np.isnan(features.data)):
+ print('NaN for "{uri}"'.format(uri=uri))
+
def main():
| feat: add NaN check in pyannote-speech-feature check | null | pyannote/pyannote-audio | MIT License | Python |
@@ -140,7 +140,7 @@ func init() {
genkeypairCmd.Flags().StringP("public-key-file", "p", "ipk.xml", "File to write public key to")
genkeypairCmd.Flags().StringP("expirydate", "e", "", "Expiry date for the key pair. Specify in RFC3339 (\"2006-01-02T15:04:05+07:00\") format. Alternatively, use the --valid-for option.")
ge... | feat: irma issuer keygen now has default keylength 2048 | null | privacybydesign/irmago | Apache License 2.0 | Go |
const path = require('path')
module.exports = {
+ collectCoverage: true,
+ coverageDirectory: '<rootDir>/coverage',
+ coverageReporters: ['lcov'],
modulePathIgnorePatterns: ['<rootDir>/scripts/'],
rootDir: path.resolve(__dirname, '..'),
setupFiles: ['raf/polyfill', '<rootDir>/jest/setup.js']
| feat: test coverage output; just because | null | pluralsight/design-system | Apache License 2.0 | JavaScript |
@@ -361,6 +361,7 @@ export class Subscriber extends ISubscriber {
}
private async onConnect() {
+ if (this.restartInProgress) return;
await this.restart();
this.onEnable();
}
| feat: avoids restarting multiple times | null | walletconnect/walletconnect-monorepo | Apache License 2.0 | TypeScript |
@@ -110,7 +110,7 @@ class Collection
// Check if array is associative
// Flatten a multi-dimensional array with dots.
- if (count(array_filter(array_keys($items), 'is_string'))) {
+ if ($this->isAssocArray($items)) {
$flat_array = [];
foreach ($items as $key => $value) {
@@ -393,27 +393,30 @@ class Collection
*/
public... | feat(element-queries): add protected function isAssocArray and update all() method | null | flextype/flextype | MIT License | PHP |
#include <cassert>
#include <cmath>
#include <complex>
+#include <ctime>
#include <iostream>
#include <stdexcept>
-#include <ctime>
/**
* Class Complex to represent complex numbers as a field.
@@ -26,10 +26,22 @@ class Complex {
/**
* Complex Constructor which initialises the complex number which takes two
* arguments.... | feat: added polar form initialisation to our Complex class | null | thealgorithms/c-plus-plus | MIT License | C++ |
@@ -124,6 +124,35 @@ public FrameDesc put(Long key, FrameDesc value)
}
};
+ /**
+ * The {@link TreeMap} that holds the seen {@link FrameDesc}, keyed
+ * by their RTP timestamps.
+ */
+ private final TreeMap<Long, FrameDesc> streamFrames
+ = new TreeMap<Long, FrameDesc>()
+ {
+ /**
+ * A helper {@link LinkedList} that i... | feat: Make source frame identification compatible with SVC | null | jitsi/libjitsi | Apache License 2.0 | Java |
@@ -38,7 +38,6 @@ func (c *Client) Send(ctx context.Context, network string, to, from, data []byte
fromAddr := fromAddress
toAddr := toAddress
var amount uint64 = 0
- var minFee uint64 = 1000
note := data
genID := txParams.GenesisID
genHash := txParams.GenesisHash
@@ -49,7 +48,14 @@ func (c *Client) Send(ctx context.Co... | feat: use fee supplied by algod for fees | null | mailchain/mailchain | Apache License 2.0 | Go |
open class FullscreenButton: MediaControlPlugin {
- private var fullscreenIcon = UIImage.fromName("fullscreen", for: FullscreenButton.self)
- private var windowedIcon = UIImage.fromName("fullscreen_exit", for: FullscreenButton.self)
+ open var fullscreenIcon = UIImage.fromName("fullscreen", for: FullscreenButton.self)
... | feat: make the icons visible from outside the module in FullscreenButton | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -254,6 +254,11 @@ namespace acl
return rtm::vector_to_quat(rotation);
}
};
+
+ rtm::quatf RTM_SIMD_CALL get_sample_clamped(uint32_t sample_index) const
+ {
+ return get_sample(std::min(sample_index, m_num_samples - 1));
+ }
};
class translation_track_stream final : public track_stream
@@ -289,6 +294,11 @@ namespace ... | feat(compression): add clamped sample query | null | nfrechette/acl | MIT License | C |
@@ -61,6 +61,7 @@ public class ConfigHelper {
public static class QuestionConfig {
private String title;
+ private boolean configDetected;
private Map<Integer, String> statementsLanguageMap = new HashMap<Integer, String>();
private Map<Integer, String> welcomeLanguageMap = new HashMap<Integer, String>();
private List<F... | feat(sdk-config): add configDetected to check config.ini file exists | null | codingame/codingame-game-engine | MIT License | Java |
@@ -373,3 +373,48 @@ func TestParseGitStatsInvalidLine(t *testing.T) {
status := g.parseGitStats(output, false)
assert.Equal(t, expected, status)
}
+
+func bootstrapUpstreamTest(upstream string) *git {
+ env := &MockedEnvironment{}
+ env.On("runCommand", "git", []string{"-c", "core.quotepath=false", "-c", "color.status... | feat(git): add upstream icons | null | jandedobbeleer/oh-my-posh | MIT License | Go |
@@ -78,7 +78,7 @@ public class TriGenericTest {
Assert.fail();
} catch (RpcException e) {
Assert.assertEquals(isSupportSelfDefineException, true);
- } catch (GenericException e) {
+ } catch (IllegalStateException e) {
Assert.assertEquals(isSupportSelfDefineException, false);
}
}
| feat: fix generic exception | null | apache/dubbo-samples | Apache License 2.0 | Java |
@@ -18,7 +18,11 @@ impl Command for RandomCommand {
}
fn usage(&self) -> &str {
- "Generate a random values."
+ "Generate a random value."
+ }
+
+ fn search_terms(&self) -> Vec<&str> {
+ vec!["generate", "generator"]
}
fn run(
| feat: add search terms to random & typo fix | null | nushell/nushell | MIT License | Rust |
@@ -29,7 +29,7 @@ const (
ZanTestSkip = 0
ZanTestUnskip = 1
memSizeForSmall = 2
- delayedReqToEndMinInterval = time.Millisecond * 64
+ delayedReqToEndMinInterval = time.Millisecond * 128
DefaultMaxChDelayedQNum = 10000 * 16
limitSmallMsgBytes = 1024
)
@@ -1181,7 +1181,8 @@ func (c *Channel) ShouldRequeueToEnd(clientID ... | feat: avoid req too much to delayed queue for already delayed | null | youzan/nsq | MIT License | Go |
@@ -173,11 +173,12 @@ public final class Moja<T extends AbstractMojo> {
} else {
final Class<?> parent = clazz.getSuperclass();
if (parent == null) {
- Logger.warn(
- this,
+ throw new IllegalStateException(
+ String.format(
"Can't find '%s' in '%s'",
name,
- mojo.getClass().getCanonicalName()
+ this.type.getCanonicalN... | feat(#1514): throw an exception if propery isn't found in Mojo | null | cqfn/eo | MIT License | Java |
@@ -44,11 +44,15 @@ import {
SliceLabelData,
} from './types'
+interface MayHaveLabel {
+ label?: string | number
+}
+
/**
* Format data so that we get a consistent data structure.
* It will also add the `formattedValue` and `color` property.
*/
-export const useNormalizedData = <RawDatum>({
+export const useNormalized... | feat(pie): properly handle possible presence of label on raw datum | null | plouc/nivo | MIT License | TypeScript |
@@ -19,8 +19,9 @@ namespace Flextype\Console\Commands\Entries;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Console\Input\InputArgument;
+u... | feat(console): improve `entries:create` logic | null | flextype/flextype | MIT License | PHP |
@@ -401,6 +401,59 @@ const (
valueColIdx = 3
)
+func determineTableColsForWindowAggregate(tags models.Tags, typ flux.ColType, aggregate bool) ([]flux.ColMeta, [][]byte) {
+ var size int
+ var cols []flux.ColMeta
+ var defs [][]byte
+
+ if aggregate {
+ // aggregates remove the _time column
+ size = 3
+ cols = make([]fl... | feat(storage): convert ResultSet to table stream for aggregate window | null | influxdata/influxdb | MIT License | Go |
@@ -503,12 +503,34 @@ public static int getTemporalLayerIndex(byte[] buf, int off, int len)
return pd;
}
+ /**
+ * The size in bytes of the Payload Descriptor at offset
+ * <tt>offset</tt> in <tt>input</tt>. The size is between 1 and 6.
+ *
+ * @param baf the <tt>ByteArrayBuffer</tt> that holds the VP8 payload
+ * desc... | feat: Adds a method to the VP8 depacketizer | null | jitsi/libjitsi | Apache License 2.0 | Java |
@@ -74,8 +74,6 @@ JSValueRef JSTemplateElement::TemplateElementInstance::getProperty(std::string &
return ElementInstance::getProperty(name, exception);
}
-JSTemplateElement::TemplateElementInstance::~TemplateElementInstance() {
- delete m_content;
-}
+JSTemplateElement::TemplateElementInstance::~TemplateElementInstanc... | feat: document fragement dont need delete | null | openkraken/kraken | Apache License 2.0 | C++ |
@@ -71,6 +71,8 @@ protected function handlesGrant($record, $grantType)
return $record->personal_access_client;
case 'password':
return $record->password_client;
+ case 'client_credentials':
+ return ! empty($record->secret);
default:
return true;
}
| feat: require a secret for client_credentials grant | null | laravel/passport | MIT License | PHP |
@@ -114,7 +114,8 @@ extension SolanaSDK {
feePayer: PublicKey? = nil,
transferChecked: Bool = false,
recentBlockhash: String? = nil,
- lamportsPerSignature: Lamports? = nil
+ lamportsPerSignature: Lamports? = nil,
+ minRentExemption: Lamports? = nil
) -> Single<(preparedTransaction: PreparedTransaction, realDestination... | feat: caching minRentExemption | null | p2p-org/solana-swift | MIT License | Swift |
@@ -28,4 +28,30 @@ EOT;
return parent::render();
}
+
+ /**
+ * Set min value of number field.
+ *
+ * @param integer $value
+ * @return $this
+ */
+ public function min($value)
+ {
+ $this->attribute('min', $value);
+
+ return $this;
+ }
+
+ /**
+ * Set max value of number field.
+ *
+ * @param integer $value
+ * @retu... | feat: add `max` an `min` method to number field | null | z-song/laravel-admin | MIT License | PHP |
@@ -111,7 +111,24 @@ if (argv.grep.length > 1 && argv.browser) {
throw new Error(`Karma only supports a single pattern; only specify --grep once when running browser tests`);
}
-async function runMochaSuite(packageName) {
+async function runAutomationSuite(packageName) {
+ let files = [];
+ files = files.concat(await g... | feat(tooling): split out automation tests due to code coverage src | null | webex/webex-js-sdk | MIT License | JavaScript |
+import { Color } from '../colors';
import { fonts } from '../fonts';
import * as React from 'react';
import styled, { css, StyledComponentClass } from 'styled-components';
export interface HeadlineProps {
className?: string;
+ textColor?: Color;
order?: 1 | 2 | 3;
tagName?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'd... | feat(lsg): add textColor property to headline | null | meetalva/alva | MIT License | TypeScript |
@@ -21,6 +21,8 @@ interface MockedRandomMultiPick extends RealRandomMultiPick, jest.Mock<any, [rea
}
export const sleep = jest.fn(_utils.sleep)
+export const getDateNumber = jest.fn(_utils.getDateNumber)
+export const fromDateNumber = jest.fn(_utils.fromDateNumber)
export const randomBool = jest.fn(_utils.randomBool)
e... | feat(test-utils): mocked date functions | null | koishijs/koishi | MIT License | TypeScript |
+import { AddressZero } from '@ethersproject/constants'
+import { ChainId } from '@sushiswap/chain'
+import { Currency, Native } from '@sushiswap/currency'
+import { useTokens } from 'lib/state/token-lists'
+
+export function useCurrency({ chainId = ChainId.ETHEREUM, address }: { chainId: number; address: string }): Cu... | feat(apps/swap): use currency hook | null | sushiswap/sushiswap | MIT License | TypeScript |
@@ -47,8 +47,12 @@ void HTMLParser::parseProperty(ElementInstance* element, GumboElement * gumboEle
if (position != s.npos) {
std::string styleKey = s.substr(0, position);
std::transform(styleKey.begin(), styleKey.end(), styleKey.begin(), ::tolower);
+ trim(styleKey);
+
std::string styleValue = s.substr(position + 1, s... | feat: style trim | null | openkraken/kraken | Apache License 2.0 | C++ |
@@ -46,15 +46,26 @@ class _EditProductPageState extends State<EditProductPage> {
Widget build(BuildContext context) {
final AppLocalizations appLocalizations = AppLocalizations.of(context);
final Size screenSize = MediaQuery.of(context).size;
-
- final Scaffold scaffold = SmoothScaffold(
+ return Consumer<UpToDateProdu... | feat: - added a refresh gesture to edit product page | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -12,7 +12,7 @@ public class ProductsController : ControllerBase
private static readonly Random _random = new Random();
private static readonly ProductDto[] _products = Enumerable.Range(1, 500_000)
- .Select(i => new ProductDto { Id = i, Name = Guid.NewGuid().ToString("N"), Price = _random.Next(1, 100) })
+ .Select(i... | feat(components): add a demo for the ItemProvider on the BitDropDown demo page | null | bitfoundation/bitframework | MIT License | C# |
@@ -5,6 +5,7 @@ use pdatastructs::hyperloglog::HyperLogLog;
use serde::Serialize;
use serde_json::Value;
use std::collections::{btree_map::Entry, BTreeMap, HashMap};
+use std::hash::Hash;
use crate::utils::RequestInfo;
@@ -81,6 +82,54 @@ impl<T: Serialize> Arp<T> {
}
}
+/// Helper structure to display both the Autonomo... | feat: provide company name with asn in aggregated data logging | null | curiefense/curiefense | Apache License 2.0 | Rust |
@@ -61,6 +61,8 @@ public class HealthMetrics implements AutoCloseable {
CountersFactory.createFixedSizeStripedCounter(8);
private final FixedSizeStripedLongCounter samplerKeepDroppedTraces =
CountersFactory.createFixedSizeStripedCounter(8);
+ private final FixedSizeStripedLongCounter serialFailedDroppedTraces =
+ Count... | feat(core): Add metric for serialization failure | null | datadog/dd-trace-java | Apache License 2.0 | Java |
import React from "react";
-import { View, Text } from "react-native";
+import { View, Text, StyleProp, ViewStyle } from "react-native";
import Image from "./Image";
import Card from "./Card";
import Elevation from "./Elevation";
@@ -12,28 +12,31 @@ import {
createElevationType,
} from "../core/component-types";
import... | feat(cardcontainershortimg): convert to typescript | null | draftbit/react-native-jigsaw | MIT License | TypeScript |
@@ -27,6 +27,15 @@ public interface IDispatcher
/// <returns>A task that can be used to track the method's execution.</returns>
void Post(Action action, DispatcherPriority priority = DispatcherPriority.Normal);
+ /// <summary>
+ /// Invokes a method on the dispatcher thread.
+ /// </summary>
+ /// <typeparam name="T">t... | feat: Added Post<T> to IDispatcher | null | avaloniaui/avalonia | MIT License | C# |
@@ -21,6 +21,7 @@ from overrides import overrides
from deeppavlov.core.common.registry import register
from deeppavlov.core.data.dataset_reader import DatasetReader
+from deeppavlov.core.data.utils import download_untar, mark_done
logger = logging.getLogger(__name__)
@@ -28,22 +29,29 @@ logger = logging.getLogger(__nam... | feat: dataset autoload | null | deeppavlov/deeppavlov | Apache License 2.0 | Python |
@@ -3,7 +3,9 @@ from textwrap import indent
import threading
import datetime
import logging
+import syslog
import socket
+import os
from lona.command_line.terminal import (
terminal_supports_colors,
@@ -11,6 +13,29 @@ from lona.command_line.terminal import (
)
+def journald_is_running():
+ return 'JOURNAL_STREAM' in os... | feat(logging): add support for syslog priorities | null | lona-web-org/lona | MIT License | Python |
package com.conveyal.r5.kryo;
+import com.conveyal.r5.common.R5Version;
import com.conveyal.r5.transit.TransportNetwork;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
@@ -8,6 +9,7 @@ import com.esotericsoftware.kryo.serializers.ExternalizableSerializer;
import com.esotericsoftware.kr... | feat(serialization): add version header to files | null | conveyal/r5 | MIT License | Java |
@@ -34,8 +34,8 @@ export const ArticleSemantic = ({className}) => {
<Code>alertText:</Code> prop type string, used to show an alert.
</ListItem>
<ListItem>
- <Code>successText:</Code> prop type string, used to show a success.
- text
+ <Code>successText:</Code> prop type string, used to show a success
+ text.
</ListItem... | feat(components/molecule/buttonGroupField/demo): fix text | null | sui-components/sui-components | MIT License | JavaScript |
@@ -242,11 +242,17 @@ class IntegrateFrames(pyblish.api.InstancePlugin):
instance.data["transfers"].append([src, dst])
+ if ext[1:] not in ["jpeg", "jpg", "mov", "mp4", "wav"]:
template_data["frame"] = "#" * int(anatomy_filled["render"]["padding"])
+
anatomy_filled = anatomy.format(template_data)
path_to_save = anatomy... | feat(global): integrate frames now add hashes to padding imagesequences only | null | pypeclub/openpype | MIT License | Python |
@@ -94,7 +94,8 @@ function configureAuthForServer(server) {
}
// If IDP confirmed logout, clear login info on this side
req.logout();
- res.redirect(req.get("Referer") || "/");
+ const referer = req.get("Referer");
+ res.redirect(`${config.OAUTH2_LOGOUT_URL}?referer=${referer}` || "/");
return; // appease eslint consis... | feat: add url for redirecting when logging out | null | reactioncommerce/example-storefront | Apache License 2.0 | JavaScript |
import Foundation
-struct TokensList: Decodable {
+struct TokensList: Codable {
let name: String
let logoURI: String
let keywords: [String]
@@ -9,7 +9,7 @@ struct TokensList: Decodable {
var tokens: [Token]
}
-public struct TokenTag: Hashable, Decodable {
+public struct TokenTag: Hashable, Codable {
public var name: St... | feat: make token codable | null | p2p-org/solana-swift | MIT License | Swift |
@@ -119,6 +119,7 @@ class Media(BaseModel):
location: Optional[Location] = None
user: UserShort
comment_count: Optional[int] = 0
+ comments_disabled: Optional[bool] = False
like_count: int
has_liked: Optional[bool]
caption_text: str
| feat: add comments_disabled for media | null | adw0rd/instagrapi | MIT License | Python |
@@ -313,6 +313,45 @@ void UpdateDeadLetterSubscription(
std::stoi(argv.at(3)));
}
+void ReceiveDeadLetterDeliveryAttempt(
+ google::cloud::pubsub::Subscriber subscriber,
+ google::cloud::pubsub::Subscription const& subscription,
+ std::vector<std::string> const&) {
+ //! [dead-letter-delivery-attempt]
+ // [START pubsu... | feat(pubsub): Implement pubsub_dead_letter_delivery_attempt sample | null | googleapis/google-cloud-cpp | Apache License 2.0 | C++ |
@@ -109,6 +109,7 @@ open class Playback: UIObject, NamedType {
@objc open func destroy() {
Logger.logDebug("destroying", scope: "Playback")
+ stop()
Logger.logDebug("destroying ui elements", scope: "Playback")
view.removeFromSuperview()
Logger.logDebug("destroying listeners", scope: "Playback")
| feat: stop Playback when destroying | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -890,6 +890,12 @@ func (i *InfoPanel) AddField(head, field string, typeName db.DatabaseType) *Info
return i
}
+func (i *InfoPanel) FieldImage(width, height string) {
+ i.FieldList[i.curFieldListIndex].Display = func(value FieldModel) interface{} {
+ return template.HTML(`<image src="` + value.Value + `" width="` + w... | feat: add `FieldImage` support | null | goadmingroup/go-admin | Apache License 2.0 | Go |
@@ -101,6 +101,10 @@ class User < ApplicationRecord
admin?
end
+ def send_devise_notification(notification, *args)
+ devise_mailer.send(notification, self, *args).deliver_later
+ end
+
private
def send_welcome_mail
| feat: send devise emails in sidekiq | null | circuitverse/circuitverse | MIT License | Ruby |
@@ -77,6 +77,16 @@ bool AVFoundationVideoRender::deviceRenderFrame(IAFFrame *frame)
}
}
if (frame) {
+
+ if (mRenderingCb) {
+ CicadaJSONItem params{};
+ rendered = mRenderingCb(mRenderingCbUserData, frame, params);
+ }
+
+ if (rendered) {
+ return false;
+ }
+
mRender->renderFrame(frame);
rendered = true;
}
| feat(videoRender): add SimpleBufferLayer render callback | null | alibaba/cicadaplayer | MIT License | C++ |
@@ -962,7 +962,7 @@ App::delete('/v1/functions/:functionId')
->send();
}
- Console::info("Deleting $results count");
+ Console::info("Deleting " . count($results) . " deployments");
// Delete the containers of all deployments
// TODO : @christy Delete all build containers as well. Not just the latest one,
@@ -991,7 +99... | feat: added deleteDeployment to executor | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -78,6 +78,7 @@ fn write_stdout() {
run_test("write_stdout", 0, None, &b"hi\n"[..], None);
}
+#[cfg(not(feature = "dbg"))]
#[test]
#[serial]
// v0.1.0 KEEP-CONFIG HACK: logging is hardcoded to send output to stderr,
| feat(tests): use dbg feature | null | enarx/enarx | Apache License 2.0 | Rust |
@@ -35,16 +35,6 @@ public protocol AnySideEffectContext {
@discardableResult
func anyDispatch(_ dispatchable: Dispatchable) -> Promise<Any>
- /**
- Dispatches a `SideEffect`. It the type-safe version of the `anyDispatch` method
-
- - parameter dispatchable: the side effect to dispatch
- - returns: a promise that is res... | feat: remove redundant dispatch<T: SideEffect> from the SideEffect context | null | bendingspoons/katana-swift | MIT License | Swift |
package v5cfg
import (
+ "bytes"
"io"
core "github.com/v2fly/v2ray-core/v5"
@@ -30,6 +31,15 @@ func init() {
return nil, err
}
return loadJSONConfig(data)
+ case []byte:
+ r := &json.Reader{
+ Reader: bytes.NewReader(v),
+ }
+ data, err := buf.ReadAllToBytes(r)
+ if err != nil {
+ return nil, err
+ }
+ return loadJSONC... | feat: add bytes support to v5 configuration | null | v2fly/v2ray-core | MIT License | Go |
@@ -91,9 +91,11 @@ const alerts = (state = defaultState, action) => {
}
}
}
- const allAlerts = action.rtdAlerts ? action.rtdAlerts.map((rtdAlert) => {
+ const allAlerts = action.rtdAlerts ? action.rtdAlerts
+ .filter(rtdAlert => rtdAlert.EditedBy !== 'TRAMS')
+ .map(rtdAlert => {
// let activeIndex = action.projects.f... | feat(alerts-reducer): filter out TRAMS alerts for MTC | null | ibi-group/datatools-ui | MIT License | JavaScript |
@@ -405,6 +405,10 @@ async fn new_raw_pool(
}
let search_path_query = format!("SET search_path TO {},public;", schema_name);
c.execute(sqlx::query(&search_path_query)).await?;
+
+ // Ensure explicit timezone selection, instead of deferring to
+ // the server value.
+ c.execute("SET timezone = 'UTC';").await?;
Ok(())
})... | feat(catalog): use explicit UTC time zone | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -166,6 +166,13 @@ impl Common {
self.client.join_room_by_id(self.room_id()).await
}
+ /// Get the inner client saved in this room instance.
+ ///
+ /// Returns the client this room is part of.
+ pub fn client(&self) -> Client {
+ self.client.clone()
+ }
+
/// Gets the avatar of this room, if set.
///
/// Returns the... | feat: Expose client of rooms for extensions | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
package com.conveyal.r5.profile;
+import com.conveyal.r5.api.util.TransitModes;
+import com.conveyal.r5.transit.RouteInfo;
import com.conveyal.r5.transit.TransitLayer;
import com.conveyal.r5.transit.TripPattern;
import com.conveyal.r5.transit.TripSchedule;
@@ -197,8 +199,10 @@ public class FastRaptorWorker {
int schedu... | feat(mode-selection): filter patterns by requested modes | null | conveyal/r5 | MIT License | Java |
#include <bittorrent/dht.h>
+#include <bittorrent/routing_table.h>
#include <iostream>
#include <boost/optional/optional_io.hpp>
#include "../src/util/crypto.h"
-
using namespace ouinet;
using namespace std;
using namespace ouinet::bittorrent;
+using namespace ouinet::bittorrent::dht;
using boost::string_view;
using ud... | feat(test/bep5): Ping bootstrap node | null | equalitie/ouinet | MIT License | C++ |
@@ -33,6 +33,7 @@ use Appwrite\Utopia\Response\Model\Team;
use Appwrite\Utopia\Response\Model\Locale;
use Appwrite\Utopia\Response\Model\Log;
use Appwrite\Utopia\Response\Model\Membership;
+use Appwrite\Utopia\Response\Model\Metric;
use Appwrite\Utopia\Response\Model\Permissions;
use Appwrite\Utopia\Response\Model\Phon... | feat(response): add metric and metric list to response models | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -449,8 +449,17 @@ public class DefaultDataQueryService
}
else
{
- tryParseDateRange( isoPeriodHolder )
- .ifPresent( periods::add );
+ Optional<Period> optionalPeriod = tryParseDateRange( isoPeriodHolder );
+ if ( optionalPeriod.isPresent() )
+ {
+ Period periodToAdd = optionalPeriod.get();
+ String startDate = i18n... | feat: metadata for dates | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -312,7 +312,7 @@ os.feature.createLineOfBearing = function(feature, opt_replace, opt_lobOpts) {
var geom = feature ? feature.getGeometry() : null;
if (opt_lobOpts && geom instanceof ol.geom.Point) {
- var use3D = os.MapContainer.getInstance().is3DEnabled();
+ // var use3D = os.MapContainer.getInstance().is3DEnabled(... | feat(lob): Clean up interpolation | null | ngageoint/opensphere | Apache License 2.0 | JavaScript |
@@ -30,4 +30,14 @@ class DocTypes
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">',
];
+
+ /**
+ * Whether to remove the... | feat: added property $html5 in DocTypes | null | codeigniter4/codeigniter4 | MIT License | PHP |
@@ -365,7 +365,7 @@ export default class JitsiLocalTrack extends JitsiTrack {
// containers to something
// We don't want any events to be fired on this stream
this._unregisterHandlers();
- this._stopStream();
+ this.stopStream();
this._setStream(null);
resolve();
},
@@ -515,7 +515,7 @@ export default class JitsiLocalT... | feat(JitsiLocalTrack): expose stopStream | null | jitsi/lib-jitsi-meet | Apache License 2.0 | JavaScript |
@@ -93,11 +93,20 @@ class FormController extends Controller
// Go through all sections
if (count($fieldset['sections']) > 0) {
+ $form .= '<nav class="tabs__nav w-full"><div class="flex bg-dark text-white">';
+
+ // Go through all sections and create nav items
+ foreach ($fieldset['sections'] as $key => $section) {
+ $... | feat(form-plugin): update layout style in FormController | null | flextype/flextype | MIT License | PHP |
@@ -123,7 +123,7 @@ func runScriptAction(w *currentWorker) BuiltInAction {
res.Status = sdk.StatusUnknown.String()
env := os.Environ()
- cmd.Env = []string{}
+ cmd.Env = []string{"CI=1"}
// filter technical env variables
for _, e := range env {
if strings.HasPrefix(e, "CDS_") {
| feat(worker): support volkswagen | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -395,17 +395,24 @@ impl AsyncSource for ValueSource {
return Ok(None);
}
- // Pre-calculate the positions of all `'` and `\`
- let patterns = &["'", "\\"];
+ // Pre-generate the positions of `(`, `'` and `\`
+ let patterns = &["(", "'", "\\"];
let ac = AhoCorasick::new(patterns);
+ // Use the number of '(' to estima... | feat(query): estimate insert value rows | null | datafuselabs/databend | Apache License 2.0 | Rust |
package me.melijn.melijnbot.commands.developer
+import me.melijn.melijnbot.database.votes.UserVote
import me.melijn.melijnbot.internals.command.AbstractCommand
import me.melijn.melijnbot.internals.command.CommandCategory
import me.melijn.melijnbot.internals.command.ICommandContext
+import me.melijn.melijnbot.internals.... | feat: reward resets | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -308,26 +308,39 @@ impl<T: CacheItemRequest> Cacher<T> {
let dup_file = temp_file.reopen()?;
let mut temp_fd = tokio::fs::File::from_std(dup_file);
- // TODO: consider cache expiry!
let shared_cache_hit = self
.shared_cache_service
.fetch(&shared_cache_key, &mut temp_fd)
.await;
- let status = if !shared_cache_hit {... | feat(shared-cache): Respect CacheItemRequest::should_load | null | getsentry/symbolicator | MIT License | Rust |
@@ -323,7 +323,7 @@ def stock_cash_flow_sheet_by_quarterly_em(symbol: str = "SH600519") -> pd.DataFr
if __name__ == "__main__":
stock_balance_sheet_by_report_em_df = stock_balance_sheet_by_report_em(
- symbol="SH600519"
+ symbol="SH603808"
)
print(stock_balance_sheet_by_report_em_df)
@@ -345,7 +345,7 @@ if __name__ == ... | feat(stock_profit_sheet_by_report_em): add stock_profit_sheet_by_report_em interface | null | jindaxiang/akshare | MIT License | Python |
# frozen_string_literal: true
+require 'open-uri'
+
module LicenseFinder
class Decisions
######
@@ -75,37 +77,37 @@ module LicenseFinder
end
def add_package(name, version, txn = {})
- @decisions << [:add_package, name, version, txn]
+ add_decision [:add_package, name, version, txn]
@packages << ManualPackage.new(name, ... | feat: Decision Inheritance | null | pivotal/licensefinder | MIT License | Ruby |
@@ -137,6 +137,9 @@ class Forms
// Form value
$form_value = Arr::keyExists($values, $element) ? Arr::get($values, $element) : $property['value'];
+ // Define form element
+ $form_element = '';
+
// Form elements
switch ($property['type']) {
// Simple text-input, for multi-line fields.
@@ -192,8 +195,6 @@ class Forms
pr... | feat(core): define $form_element in Forms | 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.