diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -71,9 +71,17 @@ pub struct CurrentServerId(OnceNonZeroU32);
impl CurrentServerId {
pub fn set(&self, id: ServerId) -> Result<()> {
- self.0.set(id.get()).map_err(|id| Error::IdAlreadySet {
+ let id = id.get();
+
+ match self.0.set(id) {
+ Ok(()) => {
+ info!(server_id = id, "server ID set");
+ Ok(())
+ }
+ Err(id) =... | feat: info-log server ID during init | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -95,7 +95,7 @@ export async function getPools(args: PoolApiArgs) {
twapEnabled: true,
liquidityUSD: true,
volumeUSD: true,
- apr: true,
+ feeApr: true,
totalApr: true,
isIncentivized: true,
fees1d: true,
@@ -126,7 +126,7 @@ export async function getPools(args: PoolApiArgs) {
id: true,
pid: true,
chainId: true,
- typ... | feat(apis/pools): update queries to use the new fields: feeApr and chefType | null | sushiswap/sushiswap | MIT License | TypeScript |
@@ -23,6 +23,10 @@ if [[ -z $ELASTICSEARCH_AUTH_HEADER ]]; then
ELASTICSEARCH_AUTH_HEADER="Accept: */*"
fi
+if [[ $ELASTICSEARCH_INSECURE ]]; then
+ ELASTICSEARCH_INSECURE="-k"
+fi
+
function create_datahub_usage_event_datastream() {
echo -e "Going to use prefix $INDEX_PREFIX"
if [[ -z "$INDEX_PREFIX" ]]; then
@@ -31,1... | feat(elasticsearch-setup): Add insecure option for curl | null | linkedin/datahub | Apache License 2.0 | Shell |
@@ -309,7 +309,10 @@ open class AVFoundationPlayback: Playback {
@objc func setupObservers() {
guard let player = player else { return }
observers += [
- view.observe(\.bounds) { [weak self] view, _ in self?.maximizePlayer(within: view) },
+ view.observe(\.bounds) { [weak self] view, _ in
+ self?.maximizePlayer(within:... | feat: add hide subtitle for small screen on view observer | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -32,6 +32,7 @@ import com.b2international.snowowl.core.attachments.Attachment;
import com.b2international.snowowl.core.attachments.AttachmentRegistry;
import com.b2international.snowowl.core.attachments.InternalAttachmentRegistry;
import com.b2international.snowowl.core.rest.AbstractRestService;
+import com.b2intern... | feat(export): calculate countryNamespaceElement based on config | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -43,7 +43,7 @@ $app->get('/api/entries', function (Request $request, Response $response) use ($
// Set delivery token file
if ($delivery_token_file_data = $flextype['parser']->decode(Filesystem::read($delivery_token_file_path), 'yaml')) {
if ($delivery_token_file_data['state'] == 'disabled' ||
- $delivery_token_file... | feat(core): update routes validation for API's | null | flextype/flextype | MIT License | PHP |
@@ -71,6 +71,8 @@ def get_safe_globals():
msgprint=frappe.msgprint,
throw=frappe.throw,
sendmail = frappe.sendmail,
+ get_print = frappe.get_print,
+ attach_print = frappe.attach_print,
user=user,
get_fullname=frappe.utils.get_fullname,
| feat: allow get_print and attach print in server scripts | null | frappe/frappe | MIT License | Python |
@@ -506,7 +506,7 @@ func addIfMissing(recipes []types.OpenInstallationRecipe, dependencies []types.O
for _, dependency := range dependencies {
if found := findRecipeInRecipes(dependency.Name, results); found == nil {
- results = append(results, dependency)
+ results = append([]types.OpenInstallationRecipe{dependency}, ... | feat(install): add dependency ahead | null | newrelic/newrelic-cli | Apache License 2.0 | Go |
@@ -286,7 +286,18 @@ class Connection extends BaseConnection implements ConnectionInterface
*/
protected function _listColumns(string $table = ''): string
{
- return 'SHOW COLUMNS FROM ' . $this->protectIdentifiers($table, true, null, false);
+ if (strpos($table, '.') !== false)
+ {
+ sscanf($table, '%[^.].%s', $owner,... | feat: add column list method | null | codeigniter4/codeigniter4 | MIT License | PHP |
+from time import sleep
+from ethereum_client.utils import UINT64_MAX, apdu_as_string, compare_screenshot, save_screenshot, PATH_IMG, parse_sign_response
+from ethereum_client.plugin import Plugin
+import ethereum_client
+
+def test_sign_eip_1559(cmd):
+ result: list = []
+
+ bip32_path="44'/60'/0'/0/0"
+
+
\ No newlin... | feat: avoid test_eip1559 | null | ledgerhq/app-ethereum | Apache License 2.0 | Python |
@@ -97,7 +97,8 @@ final class ChText implements CommitHash {
throw new NotFound();
}
)
- )).value();
+ )
+ ).value();
}
/**
| feat(#1174): fix pair brackets | null | cqfn/eo | MIT License | Java |
@@ -697,6 +697,7 @@ export class CustomerService {
type: HistoryEntryType.CUSTOMER_ADDRESS_CREATED,
data: { address: addressToLine(createdAddress) },
});
+ createdAddress.customer = customer;
this.eventBus.publish(new CustomerAddressEvent(ctx, createdAddress, 'created', input));
return createdAddress;
}
@@ -733,6 +734,... | feat(core): Include Customer in CustomerAddressEvent | null | vendure-ecommerce/vendure | MIT License | TypeScript |
@@ -13,7 +13,7 @@ use cid::Cid;
#[derive(Debug)]
pub struct Walker {
current: InnerEntry,
- /// On the next call to `continue_walk` this will be the block, unless we have an ongoing file,
+ /// On the next call to `continue_walk` this will be the block, unless we have an ongoing file
/// walk in which case we shortcirc... | feat: walk empty root directories | null | rs-ipfs/rust-ipfs | Apache License 2.0 | Rust |
@@ -49,6 +49,8 @@ pub struct Config {
database_path: String,
#[serde(default = "default_db_cache_capacity_mb")]
db_cache_capacity_mb: f64,
+ #[serde(default = "default_conduit_cache_capacity_modifier")]
+ conduit_cache_capacity_modifier: f64,
#[serde(default = "default_rocksdb_max_open_files")]
rocksdb_max_open_files: ... | feat: cache capacity modifier | null | timokoesters/conduit | Apache License 2.0 | Rust |
@@ -42,7 +42,7 @@ final class DcsWithRuntime implements Dependencies {
/**
* Dependency downloaded by HTTP from Maven Central.
*/
- private static final Unchecked<Dependency> FROM_MAVEN = fromMaven();
+ private static final Unchecked<Dependency> MAVEN_DEPENDENCY = DcsWithRuntime.mavenDependency();
/**
* All dependencie... | feat(#1386): FROM_MAVEN -> MAVEN_DEPENDENCY | null | cqfn/eo | MIT License | Java |
@@ -6,11 +6,11 @@ const [connector, hooks, store] = initializeConnector<Network>(
(actions) => {
return new Network(
actions,
- Object.fromEntries(chains.map((chain) => [Number(chain.chainId), String(chain.rpc)])),
+ Object.fromEntries(Object.entries(chains).map(([chainId, { rpc }]) => [Number(chainId), String(rpc)])),... | feat: use chains for wallet connector | null | sushiswap/sushiswap | MIT License | TypeScript |
@@ -282,8 +282,11 @@ class Entries
// Run event
emitter()->emit('onEntriesFetchSingleHasResult');
+ // Process fields
+ $result = $this->processFields($this->registry()->get('methods.fetch.result'));
+
// Apply `filterCollection` filter for fetch result
- $this->registry()->set('methods.fetch.result', filterCollection(... | feat(entries): add fields processor | null | flextype/flextype | MIT License | PHP |
-import { ComponentRef, Injectable, OnDestroy, Provider } from '@angular/core';
+import {
+ ComponentRef,
+ Injectable,
+ OnDestroy,
+ Provider,
+ Type,
+} from '@angular/core';
import { SkyDynamicComponentService } from '@skyux/core';
import { BehaviorSubject, Observable } from 'rxjs';
@@ -69,9 +75,7 @@ export class S... | feat(components/toast): improve toast service `openComponent` `component` param type | null | blackbaud/skyux | MIT License | TypeScript |
+const got = require('@/utils/got');
+
+module.exports = async (ctx) => {
+ const link = 'https://wolley.io/';
+
+ const response = await got({
+ method: 'get',
+ url: `https://wolley.io/api/submissions/list?page=1&limit=30`,
+ headers: {
+ Referer: link,
+ },
+ });
+
+ const data = response.data.data;
+
+ ctx.state.da... | feat: add route for wolley.io | null | diygod/rsshub | MIT License | JavaScript |
@@ -10,18 +10,18 @@ declare(strict_types=1);
if (flextype('registry')->get('flextype.settings.entries.fields.routable.enabled')) {
flextype('emitter')->addListener('onEntryAfterInitialized', static function (): void {
- if (flextype('entries')->getStorage('fetch_single.data.routable') == null) {
+ if (flextype('entries... | feat(fields): fix RoutableField logic | null | flextype/flextype | MIT License | PHP |
@@ -11,3 +11,9 @@ test('test getInstance() method', function () {
test('test addEventHandler() method', function () {
$this->assertInstanceOf(ShortcodeFacade::class, flextype('shortcode')->addHandler('foo', static function() { return ''; }));
});
+
+test('test parse() method', function () {
+ $this->assertInstanceOf(Sh... | feat(tests): add tests for Shortcode parse() method | null | flextype/flextype | MIT License | PHP |
@@ -29,7 +29,6 @@ export type ModuleKeys =
| 'finance'
| 'settings'
| 'education'
- | 'educationDegree'
| 'educationLicense'
| 'educationCareer'
| 'educationStudentAssessment'
@@ -38,7 +37,6 @@ export type ModuleKeys =
export const featureFlaggedModules: ModuleKeys[] = [
'documentProvider',
'education',
- 'educationDeg... | feat(service-portal): Remove education degree page | null | island-is/island.is | MIT License | TypeScript |
@@ -427,6 +427,7 @@ export default class ICalEvent {
* event.timezone('America/New_York');
* ```
*
+ * @see https://github.com/sebbo2002/ical-generator#-date-time--timezones
* @since 0.2.6
*/
timezone(timezone: string | null): this;
@@ -438,7 +439,7 @@ export default class ICalEvent {
return this.calendar.timezone();
}... | feat(Event): Handle `timezone('UTC')` correctly | null | sebbo2002/ical-generator | MIT License | TypeScript |
@@ -231,7 +231,9 @@ export default class SubmissionsTable extends React.Component {
/>
}
disabled={unsubmitAllDisabled}
- leftIcon={<RemoveCircle color={pink600} />}
+ leftIcon={
+ isUnsubmitting ? <CircularProgress size={30} /> : <RemoveCircle color={pink600} />
+ }
onClick={() => this.setState({ unsubmitAllConfirmati... | feat(submissions): Add circular progress while unsubmitting and unsubmitting all submissions | null | coursemology/coursemology2 | MIT License | JavaScript |
@@ -16,15 +16,17 @@ use Twig_SimpleFunction;
class CsrfTwigExtension extends Twig_Extension implements Twig_Extension_GlobalsInterface
{
- /** @var Guard */
- protected $csrf;
+ /**
+ * Flextype Dependency Container
+ */
+ private $flextype;
/**
* Constructor
*/
- public function __construct(Guard $csrf)
+ public funct... | feat(core): update CsrfTwigExtension for this issue | null | flextype/flextype | MIT License | PHP |
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <libdiscord.h>
+#include <orka-utils.h>
+
+namespace discord {
+namespace emoji {
+
+dati**
+get_list(client *client, const uint64_t guild_id)
+{
+ if (!guild_id) {
+ D_PUTS("Missing 'guild_id'");
+ return NULL;
+ }
+
+ dati **new_emojis = NULL;
... | feat: add emoji::get_list() to fetch emojis from a server | null | cee-studio/orca | MIT License | C++ |
@@ -8,6 +8,9 @@ import loggingMiddleware from '../../helpers/middleware/logger'
import userMiddleware from '../../helpers/middleware/user'
import sessionMiddleware from '../../helpers/middleware/session'
+// VERCEL_ENV is a reserved env key by Vercel that specify the deployment type: "preview", "production", or "deploy... | feat(test): Enable playground for preview deployments | null | garagescript/c0d3-app | MIT License | TypeScript |
@@ -121,7 +121,7 @@ class EntriesController extends Controller
'create' => [
'link' => 'javascript:;',
'title' => __('admin_create_new_entry'),
- 'attributes' => ['class' => 'btn', 'data-toggle' => 'modal', 'data-target' => '#selectEntryTypeModal']
+ 'onclick' => 'event.preventDefault(); selectEntryType("", 0);'
]
]
]
| feat(admin-plugin): update EntriesController | null | flextype/flextype | MIT License | PHP |
@@ -157,7 +157,11 @@ pub(crate) fn run_process(
report.insert(
"bench".to_string(),
report::TestSuite {
- name: "name".into(),
+ name: bench_root
+ .file_name()
+ .ok_or("unable to find the benchmark name")?
+ .to_string_lossy()
+ .into(),
description: format!("{} test suite", kind),
elements: vec![],
evidence: Some(ev... | feat(cli): name of benchmarks in report | null | tremor-rs/tremor-runtime | Apache License 2.0 | Rust |
@@ -422,6 +422,7 @@ export const slices = gql`
content {
...HtmlFields
...AssetFields
+ ...ImageFields
}
dividerOnTop
showTitle
@@ -438,6 +439,7 @@ export const slices = gql`
content {
...HtmlFields
...AssetFields
+ ...ImageFields
}
link {
url
| feat(web): Add ImageFields to GraphQL query for slices | null | island-is/island.is | MIT License | TypeScript |
function togglePassword() {
var elem = $("form[name='vm.loginForm'] input[name='password']");
elem.attr("type", (elem.attr("type") === "text" ? "password" : "text"));
+ elem.focus();
$(".password-text.show, .password-text.hide").toggle();
}
| feat: return focus to password field on password reveal toggle | null | umbraco/umbraco-cms | MIT License | JavaScript |
@@ -44,6 +44,9 @@ impl Default for PartBuilder {
}
}
+/// Represents a message id
+pub type MessageId = String;
+
/// Builds an `Email` structure
#[derive(PartialEq, Eq, Clone, Debug, Default)]
pub struct EmailBuilder {
@@ -59,6 +62,10 @@ pub struct EmailBuilder {
bcc: Vec<Address>,
/// The Reply-To addresses for the m... | feat(email): Add In-Reply-To and References headers | null | lettre/lettre | MIT License | Rust |
@@ -3,6 +3,7 @@ import {attr, boolAttr, ESLBaseElement} from '../../esl-base-element/core';
import {bind} from '../../esl-utils/decorators/bind';
import {ready} from '../../esl-utils/decorators/ready';
import {ESLTooltip} from '../../esl-tooltip/core';
+import {promisifyTimeout} from '../../esl-utils/async/promise';
im... | feat(esl-footnotes): add activate timeout | null | exadel-inc/esl | MIT License | TypeScript |
@@ -67,3 +67,18 @@ def find_all(list_of_dict, match_function):
if match_function(entry):
found.append(entry)
return found
+
+def ljust_list(_list, length, fill_word=None):
+ '''Similar to ljust but for list
+
+ Usage:
+ $ ljust_list([1, 2, 3], 5)
+ > [1, 2, 3, None, None]
+ '''
+ # make a copy to avoid mutation of pass... | feat: Add ljust_list utility method | null | frappe/frappe | MIT License | Python |
@@ -4,6 +4,7 @@ import numpy as np
from cloudfiles import CloudFiles
+from .unsharded import UnshardedLegacyPrecomputedMeshSource
from ..sharding import ShardingSpecification, ShardReader
from ....mesh import Mesh
from ....lib import yellow, red, toiter
@@ -21,12 +22,9 @@ class UnshardedMultiLevelPrecomputedMeshSource(... | feat: support save and spatial index for mutli-LOD meshes | null | seung-lab/cloud-volume | BSD 3-Clause New or Revised License | Python |
@@ -74,12 +74,46 @@ impl Display for ByteTrimmer {
}
}
+/// An encoding that forcefully converts logical `f64` values into other integer
+/// types. It is the caller's responsibility to ensure that conversion can take
+/// place without loss of precision.
+#[derive(Debug)]
+pub struct FloatByteTrimmer {}
+macro_rules! ... | feat: add float byte trimmer encoding | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
#[cfg(test)]
mod mock;
-// #[cfg(test)]
-// mod tests;
+#[cfg(test)]
+mod tests;
#[cfg(feature = "runtime-benchmarks")]
mod benchmarking;
@@ -341,8 +341,12 @@ pub mod pallet {
/// Executes a scheduled excutor configuration request if due yet.
#[pallet::weight(10_000)] //TODO
- pub fn execute_configure_executor(origin: ... | feat: add cancel_configure_executor and make execute_configure_executor an unprivileged xt | null | t3rn/t3rn | Apache License 2.0 | Rust |
@@ -206,20 +206,28 @@ impl Profile {
}
impl Profile {
- fn check_consistency(change_event: &ProfileChangeEvent) -> bool {
+ fn check_consistency(&self, change_event: &ProfileChangeEvent) -> ockam_core::Result<()> {
// TODO: check event for consistency: e.g. you cannot rotate the same key twice during one event
// For o... | feat(rust): add event sequence check | null | ockam-network/ockam | Apache License 2.0 | Rust |
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-use tari_comms::peer_manager::NodeId;
-use tari_crypto::{keys::PublicKey, ristretto::RistrettoPublicKey};
-use tari_utilities::... | feat: multi-threaded vanity id generator | null | tari-project/tari | BSD 3-Clause New or Revised License | Rust |
-use std::{collections::HashMap, fmt, io::BufRead, path::PathBuf, process::Command};
+use std::{collections::HashMap, fmt, io::BufRead, path::PathBuf, process::Command, str::FromStr};
use glob::glob;
-use serde::{Deserialize, Serialize};
+use serde::{de::DeserializeOwned, Deserialize, Deserializer, Serialize, Serialize... | feat: add general solc contract types | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
+from functools import partial
+
import torch
import gym.spaces as spaces
from torch.nn import functional as F
@@ -5,10 +7,7 @@ from rlberry.exploration_tools.uncertainty_estimator \
import UncertaintyEstimator
from rlberry.agents.utils.torch_models import ConvolutionalNetwork
from rlberry.agents.utils.torch_models imp... | feat(rnd): add network function as a parameter | null | rlberry-py/rlberry | MIT License | Python |
@@ -23,12 +23,14 @@ export class Project extends BaseProject {
const [
ionicAngularVersion,
ionicCoreVersion,
+ ionicSchematicsAngularVersion,
angularCLIVersion,
angularDevKitCoreVersion,
angularDevKitSchematicsVersion,
] = await Promise.all([
this.getFrameworkVersion(),
this.getCoreVersion(),
+ this.getIonicSchematics... | feat(info): add version to info | null | ionic-team/ionic-cli | MIT License | TypeScript |
@@ -73,8 +73,13 @@ pub enum Error {
#[snafu(display("Unsupported predicate in gRPC table_names: {:?}", predicate))]
UnsupportedPredicateForTableNames { predicate: Predicate },
- #[snafu(display("gRPC planner got error fetching chunks: {}", source))]
+ #[snafu(display(
+ "gRPC planner got error fetching chunks for table... | feat: Add more context to error messages | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -8,6 +8,7 @@ import android.os.Handler
import android.view.View
import com.google.android.exoplayer2.*
import com.google.android.exoplayer2.analytics.AnalyticsListener
+import com.google.android.exoplayer2.audio.AudioAttributes
import com.google.android.exoplayer2.drm.*
import com.google.android.exoplayer2.source.*
... | feat(audio_focus): change ExoPlayer init to handle audio focus | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -25,6 +25,7 @@ module Agents
* `template` - A JSON object representing a mapping between item output keys and incoming event values. Use [Liquid](https://github.com/huginn/huginn/wiki/Formatting-Events-using-Liquid) to format the values. Values of the `link`, `title`, `description` and `icon` keys will be put into t... | feat: add dcmi metadata namespace | null | huginn/huginn | MIT License | Ruby |
@@ -5,6 +5,7 @@ import { Logger } from './utils/Logger'
import { Transport } from './transports/Transport'
import { BeaconError } from './errors/BeaconError'
import { ConnectionContext } from './types/ConnectionContext'
+import { Serializer } from './Serializer'
import {
getAccountBlockExplorerLinkForNetwork,
getTransa... | feat(sdk): enable deeplink pairing | null | airgap-it/beacon-sdk | MIT License | TypeScript |
@@ -149,7 +149,7 @@ $flextype['images'] = static function ($container) {
// Set source filesystem
$source = new Filesystem(
- new Local(PATH['entries'])
+ new Local(PATH['uploads'] . '/entries/')
);
// Set cache filesystem
| feat(admin-plugin): fix source filesystem path for images | null | flextype/flextype | MIT License | PHP |
@@ -1753,6 +1753,10 @@ impl QueryCursor {
}
impl<'a, 'tree> QueryMatch<'a, 'tree> {
+ pub fn id(&self) -> u32 {
+ self.id
+ }
+
pub fn remove(self) {
unsafe { ffi::ts_query_cursor_remove_match(self.cursor, self.id) }
}
| feat(rust): Add an id() method for QueryMatch | null | tree-sitter/tree-sitter | MIT License | Rust |
@@ -254,6 +254,42 @@ class Monitor {
}
}
+ @override
+ Future<bool> _pkamAuthenticate() async {
+ await createConnection();
+ try {
+ await _pkamAuthenticationMutex.acquire();
+ if (!_connection!.getMetaData()!.isAuthenticated) {
+ await _sendCommand((FromVerbBuilder()
+ ..atSign = _currentAtSign
+ ..clientConfig = _cl... | feat: Have Monitor use its AtChops to sign the PKAM response, if AtClientPreference.useAtChops is true | null | atsign-foundation/at_client_sdk | BSD 3-Clause New or Revised License | Dart |
@@ -27,7 +27,7 @@ func (d *dotnet) init(props *properties, env environmentInfo) {
d.language = &language{
env: env,
props: props,
- extensions: []string{"*.cs", "*.vb", "*.sln", "*.csproj", "*.vbproj"},
+ extensions: []string{"*.cs", "*.csx", "*.vb", "*.sln", "*.csproj", "*.vbproj", "*.fs", "*.fsx", "*.fsproj"},
comman... | feat(dotnet): support fsharp | null | jandedobbeleer/oh-my-posh | MIT License | Go |
@@ -477,7 +477,7 @@ func AddRemote(name, u string) (*Remote, error) {
}, nil
}
-func SetRemoteResolution(name, resolution string) error {
+var SetRemoteResolution = func(name, resolution string) error {
return SetConfig(name, "glab-resolved", resolution)
}
| feat(internal/git): make git.SetRemoteResolution a variable | null | profclems/glab | MIT License | Go |
@@ -26,6 +26,7 @@ class EntriesFetchCommand extends Command
$this->addArgument('id', InputArgument::OPTIONAL, 'Unique identifier of the entry.');
$this->addArgument('options', InputArgument::OPTIONAL, 'Options array.');
$this->addOption('collection', null, InputOption::VALUE_NONE, 'Set this flag to fetch entries collec... | feat(console): update EntriesFetchCommand, add --return option | null | flextype/flextype | MIT License | PHP |
@@ -2,7 +2,7 @@ use serde::Deserialize;
use thiserror::Error;
use core::convert::TryFrom;
-use std::{fmt, str::FromStr};
+use std::{default, fmt, str::FromStr};
use crate::types::U256;
@@ -177,3 +177,14 @@ impl Chain {
)
}
}
+
+impl default::Default for Chain {
+ fn default() -> Self {
+ Chain::Mainnet
+ }
+}
+
+#[test... | feat(ethers-core/Chain): implement Default trait | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
@@ -136,7 +136,7 @@ class Result extends BaseResult implements ResultInterface
*/
protected function fetchAssoc()
{
- return $this->resultID->fetch_assoc();
+ return oci_fetch_assoc($this->resultID);
}
//--------------------------------------------------------------------
| feat: fetchAssoc method | null | codeigniter4/codeigniter4 | MIT License | PHP |
@@ -16,6 +16,7 @@ extern "C" {
* its purpose is to facilitate identification
* and "intent of use".
* @{ */
+
/**
* @brief Unix time in milliseconds
*/
@@ -26,6 +27,15 @@ typedef uint64_t u64_unix_ms_t;
* Used in APIs such as Twitter and Discord for their unique IDs
*/
typedef uint64_t u64_snowflake_t;
+
+/**
+ * @brie... | feat(common.h): add u64_bitmask_t | null | cee-studio/orca | MIT License | C |
@@ -56,10 +56,13 @@ public final class PullMojo extends SafeMojo {
* The Git hash to pull objects from, in objectionary.
*
* @since 0.21.0
+ * @todo #1174:90min The wrong naming. It isn't a `hash` - it's a `tag`.
+ * We have to rename that property. Also it's important to check if we don't break something
+ * by such a... | feat(#1174): add puzzle to rename property | null | cqfn/eo | MIT License | Java |
@@ -215,7 +215,7 @@ const RssFeedDialogContent = ({
{gateways.map((url) => {
const gatewayUrl = url
.replace(':hash', ipnsKey)
- .replace('/ipfs/', '/ipns/')
+ .replace('/ipfs/', '/ipns/').concat('/rss.xml')
const hostname = url.replace(
/(https:\/\/|\/ipfs\/|:hash.?)/g,
''
| feat(rss): fix rss feed copy url | null | thematters/matters-web | Apache License 2.0 | TypeScript |
@@ -371,10 +371,9 @@ class _ProductPageState extends State<ProductPage> {
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
- ListTile(
- title: Text(appLocalizations.user_list_subtitle_product),
- trailing: const Icon(Icons.bookmark),
- onTap: _editList,
+ Te... | feat: - more standard title style for "Lists" | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -92,11 +92,14 @@ def generate_ingress(containers, outputdir):
fout.write('apiVersion: extensions/v1beta1\n')
fout.write('kind: Ingress\n')
fout.write('metadata:\n')
- fout.write(' name: \"uni-resolver-ingress\"\n')
+ fout.write(' name: \"uni-resolver-web\"\n')
fout.write(' namespace: \"uni-resolver\"\n')
fout.write(... | feat: add ssl to ingress | null | decentralized-identity/universal-resolver | Apache License 2.0 | Python |
@@ -70,6 +70,82 @@ impl<
}
}
+ //
+ pub fn default_with_total(id: AccountId, amount: Balance) -> Self {
+ StakerMetadata {
+ id,
+ total: amount,
+ stakes: OrderedSet::from(vec![]),
+ less_total: Balance::zero(),
+ status: StakerStatus::Active,
+ }
+ }
+
+ pub fn total(&self) -> Balance {
+ self.total
+ }
+
+ pub fn to... | feat: core staking actions | null | t3rn/t3rn | Apache License 2.0 | Rust |
@@ -87,8 +87,10 @@ export const validateArnEndpointOptions = (options: {
};
export const validateService = (service: string) => {
- if (service !== "s3" && service !== "s3-outposts") {
- throw new Error("Expect 's3' or 's3-outposts' in ARN service component");
+ if (service !== "s3"
+ && service !== "s3-outposts"
+ && ... | feat: add support for s3 object lamdbas | null | aws/aws-sdk-js-v3 | Apache License 2.0 | TypeScript |
@@ -8,6 +8,7 @@ use crate::shim_stack::init_stack_with_guard;
use crate::usermode::usermode;
use crate::PAYLOAD_READY;
+use crate::snp::cpuid;
use core::convert::TryFrom;
use core::sync::atomic::Ordering;
use crt0stack::{self, Builder, Entry};
@@ -125,7 +126,8 @@ fn crt0setup(
let ph_header = app_virt_start + header.e_... | feat(shim-sev): handle payload cpuid for SNP | null | enarx/enarx | Apache License 2.0 | Rust |
#include <cstdint>
#include <limits>
+#include <type_traits>
ACL_IMPL_FILE_PRAGMA_PUSH
@@ -388,6 +389,7 @@ namespace acl
template<class track_writer_type>
inline void track_array::sample_tracks(float sample_time, sample_rounding_policy rounding_policy, track_writer_type& writer) const
{
+ static_assert(std::is_base_of<... | feat(compression): validate the writer type statically | null | nfrechette/acl | MIT License | C |
@@ -74,6 +74,11 @@ open class MediaControl: UICorePlugin, UIGestureRecognizerDelegate {
listenTo(playback, eventName: Event.didComplete.rawValue) { [weak self] _ in
self?.onComplete()
+ self?.listenToOnce(playback, eventName: Event.playing.rawValue) { [weak self] _ in
+ self?.show { [weak self] in
+ self?.disappearAfte... | feat: make media control disappear after some time on replay | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -32,7 +32,7 @@ test('test delete() method', function () {
$this->assertFalse(flextype('media_folders')->delete('bar'));
});
-test('test getDirectoryLocation entry', function () {
+test('test getDirectoryLocation() method', function () {
$this->assertTrue(flextype('media_folders')->create('foo'));
$this->assertString... | feat(tests): update tests for MediaFolders | null | flextype/flextype | MIT License | PHP |
@@ -23,15 +23,16 @@ import (
"regexp"
"strings"
+ "github.com/mitchellh/mapstructure"
+ "github.com/modood/table"
+ "github.com/pkg/errors"
+ versionutil "k8s.io/apimachinery/pkg/util/version"
+
"github.com/kubesphere/kubekey/pkg/common"
"github.com/kubesphere/kubekey/pkg/core/action"
"github.com/kubesphere/kubekey/pkg... | feat: users can use "y" or "n" when confirming | null | kubesphere/kubekey | Apache License 2.0 | Go |
@@ -4,6 +4,7 @@ public class LayerComposer {
private weak var rootView: UIView?
private let backgroundLayer = BackgroundLayer()
private let playbackLayer = PlaybackLayer()
+ private let coreLayer = CoreLayer()
private let containerLayer = ContainerLayer()
public init() { }
@@ -13,7 +14,8 @@ public class LayerComposer {... | feat: add coreLayer on LayerComposer struct | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -111,7 +111,37 @@ if (!global.browser?.runtime?.sendMessage) {
webRequest: true,
};
global.browser = wrapAPIs(chrome, meta);
+} else if (process.env.DEBUG && !global.chrome.app) {
+ let counter = 0;
+ const { runtime } = browser;
+ const { sendMessage, onMessage } = runtime;
+ const log = (type, args, id, isResponse... | feat: print debug info for messaging in FF | null | violentmonkey/violentmonkey | MIT License | JavaScript |
@@ -29,43 +29,47 @@ class PascalVOC(VisionDataset):
supported_order = (
"image",
- # "boxes",
- # "boxes_category",
+ "boxes",
+ "boxes_category",
"mask",
"info",
)
def __init__(self, root, image_set, *, order=None):
+ if ("boxes" in order or "boxes_category" in order) and "mask" in order:
+ raise ValueError("PascalVOC... | feat(mge/data): voc dataset supports detection | null | megengine/megengine | Apache License 2.0 | Python |
@@ -15,8 +15,15 @@ GuiInstallStart::GuiInstallStart(Window* window) : GuiComponent(window),
{
addChild(&mMenu);
- // available install storage
std::vector<std::string> availableStorage = RecalboxSystem::getInstance()->getAvailableInstallDevices();
+ std::vector<std::string> availableArchitecture = RecalboxSystem::getIn... | feat: inform at installation that network is required is no arch is found | null | batocera-linux/batocera-emulationstation | MIT License | C++ |
@@ -263,6 +263,7 @@ where
.get("/iox/api/v1/databases", list_databases::<M>)
.put("/iox/api/v1/databases/:name", create_database::<M>)
.get("/iox/api/v1/databases/:name", get_database::<M>)
+ .get("/iox/api/v1/databases/:name/query", query::<M>)
.get("/iox/api/v1/databases/:name/wal/meta", get_wal_meta::<M>)
.put("/iox... | feat: Implement /iox/api/v1/databases/:name/query?q= | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -243,6 +243,9 @@ pub enum Error {
CannotDecodeChunkId {
source: data_types::chunk_metadata::ChunkIdConversionError,
},
+
+ #[snafu(display("Cannot parse UUID: {}", source))]
+ UuidParse { source: uuid::Error },
}
pub type Result<T, E = Error> = std::result::Result<T, E>;
@@ -532,12 +535,72 @@ impl IoxMetadata {
Ok(b... | feat: Implement deserializing IoxMetadata from protobuf | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -55,6 +55,7 @@ export const Row: React.FC<Props> = React.memo(props => {
) : (
<Cell
rowId={id}
+ key={fieldName}
config={config}
as={field ? 'div' : 'td'}
isLoading={isLoading}
| feat: add unique to each cell in the table component | null | medly/medly-components | MIT License | TypeScript |
+import threading
+import time
from abc import ABC, abstractmethod
-from typing import Optional
+from collections import deque
+from typing import Any, Optional
+
+from brownie.network.web3 import web3
class GasABC(ABC):
- pass
+ def _add_tx(self, txreceipt: Any) -> None:
+ if isinstance(self, SimpleGasStrategy):
+ ret... | feat: gas strategy queue and loop | null | eth-brownie/brownie | MIT License | Python |
@@ -226,7 +226,6 @@ public class JSONRPCAPIClient: SolanaAPIClient {
private func get<Entity: Decodable>(method: String, params: [Encodable]) async throws -> Entity {
let req = RequestEncoder.RequestType(method: method, params: params)
- try Task.checkCancellation()
let response: AnyResponse<Entity> = try await request... | feat: check cancellation | null | p2p-org/solana-swift | MIT License | Swift |
@@ -30,6 +30,8 @@ public class ValidationFactory {
SimpleDateFormat dateFormat = new SimpleDateFormat(value);
dateFormat.format(now);
} catch (Exception e) {
+ context.messageTemplate("invalid date format value '({validatedValue})': " + e.getMessage());
+
return false;
}
return true;
@@ -47,6 +49,8 @@ public class Vali... | feat(core): better validation message with exception | null | kestra-io/kestra | Apache License 2.0 | Java |
+import { FileDescription } from "~/components/system/components/GlobalCarousel/jumpers/FileDescription";
+
+import {
+ MoreInfo,
+ MoreInfoMobile,
+} from "~/components/system/components/GlobalCarousel/jumpers/MoreInfo";
+
+import {
+ EditInfo,
+ EditInfoMobile,
+} from "~/components/system/components/GlobalCarousel/j... | feat(GlobalCarousel/Jumpers): export all jumpers | null | filecoin-project/slate | MIT License | JavaScript |
@@ -43,8 +43,8 @@ class DcsNoOneHasTransitiveTest {
MatcherAssert.assertThat(
new LengthOf(
new DcsNoOneHasTransitive(
- this.single("eo-collections"),
- dependency -> this.empty()
+ DcsNoOneHasTransitiveTest.single("eo-collections"),
+ dependency -> DcsNoOneHasTransitiveTest.empty()
)).value(),
Matchers.equalTo(1L)
);... | feat(#1385): make all private test methods static | null | cqfn/eo | MIT License | Java |
@@ -296,13 +296,9 @@ abstract class Element extends Node
Element parentElementWithStack = findParent(this, (element) => element.renderStack != null);
RenderStack parentStack = parentElementWithStack.renderStack;
- // add current element back to parent stack by zIndex
- _addElementByZIndex(parentStack, renderObject);
- ... | feat: reuse insertByZIndex | null | openkraken/kraken | Apache License 2.0 | Dart |
+from collections import Counter, defaultdict
+import itertools
+
+from deeppavlov.core.common.registry import register
+from deeppavlov.core.models.trainable import Trainable
+from deeppavlov.core.models.inferable import Inferable
+from deeppavlov.core.common.attributes import check_path_exists
+
+
+@register('default... | feat: Mary's Vocab added | null | deeppavlov/deeppavlov | Apache License 2.0 | Python |
@@ -19,9 +19,7 @@ import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
public class RestIT extends AbstractWebappIntegrati... | feat(qa): add options request test | null | camunda/camunda-bpm-platform | Apache License 2.0 | Java |
@@ -35,12 +35,10 @@ class Course::Assessment::Question::VoiceResponsesController < Course::Assessmen
def destroy
if @voice_response_question.destroy
- redirect_to course_assessment_path(current_course, @assessment),
- success: t('.success')
+ head :ok
else
error = @voice_response_question.errors.full_messages.to_senten... | feat(voice_response): destroy responds to json | null | coursemology/coursemology2 | MIT License | Ruby |
-package cache
-
-import (
- "time"
-)
-
-type Cache interface {
- Set(key string, value interface{}, expiration time.Duration) error
- Get(key string) ([]byte, error)
- Del(keys ...string) (int64, error)
- Incr(key string, step int64) (int64, error)
- Decr(key string, step int64) (int64, error)
-}
| feat: rename filename | null | go-eagle/eagle | MIT License | Go |
@@ -120,7 +120,7 @@ trait AccountBase
$sessionId = $response['body']['$id'];
$session = $this->client->parseCookie((string)$response['headers']['set-cookie'])['a_session_' . $this->getProject()['$id']];
- $response = $this->client->call(Client::METHOD_POST, '/account/sessions', array_merge([
+ $response = $this->client... | feat: accounts test | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
const { hasRequiredDeps, hasRequiredFiles, getYarnOrNPMCommand, scanScripts } = require('./utils/jsdetect')
module.exports = function() {
// REQUIRED FILES
- if (!hasRequiredFiles(['package.json', 'siteConfig.js'])) return false
+ if (!hasRequiredFiles(['package.json'])) return false
+
+ const hasV1 = hasRequiredDeps([... | feat(command-dev): support Docusaurus V2 | null | netlify/cli | MIT License | JavaScript |
@@ -134,6 +134,40 @@ START_TEST(test_010CallContract_0002SetTwoBytesArraySuccess)
}
END_TEST
+
+START_TEST(test_010CallContract_0003SetTwoBytesArraysAndTwoNonFixedSuccess)
+{
+ BOAT_RESULT ret;
+
+ BoatEthWallet *wallet;
+ BoatEthTx *tx_ctx;
+
+ BCHAR *result_str;
+ BCHAR *teststring1 = "Hello";
+ BCHAR *teststring2 = ... | feat: Add test_010CallContract_0003SetTwoBytesArraysAndTwoNonFixedSuccess | null | aitos-io/boat-x-framework | Apache License 2.0 | C |
@@ -78,7 +78,7 @@ export default async function commandsOffered(plugin?: string): Promise<Tables.T
.filter(_ => !_.usage || (!_.usage.synonymFor && !_.usage.children))
.map(({ command, name }) => ({
type: 'command',
- name,
+ name: process.env.KUI_BIN_PREFIX_FOR_COMMANDS ? `${process.env.KUI_BIN_PREFIX_FOR_COMMANDS} ${... | feat(packages/core): plugin commands table should support command prefix | null | ibm/kui | Apache License 2.0 | TypeScript |
import dask
import numpy as np
from .features.utils import read_audio
-from pyannote.core import Segment, SlidingWindow, SlidingWindowFeature
+from pyannote.core import Segment, Timeline
+from pyannote.core import SlidingWindow, SlidingWindowFeature
class Stream:
@@ -287,6 +288,78 @@ class StreamAccumulate(object):
+cl... | feat: add Stream{Binarize, ToTimeline, Passthrough} | null | pyannote/pyannote-audio | MIT License | Python |
@@ -84,12 +84,19 @@ impl InputFormatTextBase for InputFormatCSV {
"quote_char can only contain one char",
));
}
+ let escape = settings.get_format_escape()?;
+ let escape = if escape.is_empty() {
+ None
+ } else {
+ Some(escape.into_bytes()[0])
+ };
Ok(FormatSettings {
record_delimiter: settings.get_format_record_delim... | feat(input_format): csv get escape from settings | null | datafuselabs/databend | Apache License 2.0 | Rust |
-/*
- * Copyright (C) 2019 Alibaba Inc. All rights reserved.
- * Author: Kraken Team.
- */
-import 'package:flutter/rendering.dart';
-import 'package:kraken/element.dart';
-import 'package:kraken/rendering.dart';
-
-class TransformParentData extends ContainerBoxParentData<RenderBox> {}
-
-class RenderElementTransform e... | feat: delete unused file | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -8,6 +8,7 @@ import frappe
from frappe import _
from frappe.desk.doctype.notification_log.notification_log import enqueue_create_notification
from frappe.model.document import Document
+from frappe.monitor import add_data_to_monitor
from frappe.utils import now
from frappe.utils.background_jobs import get_redis_conn... | feat: Adding data to monitor on action | null | frappe/frappe | MIT License | Python |
@@ -6,7 +6,7 @@ use Intervention\Image\ImageManagerStatic as Image;
if (! function_exists('imageFile')) {
/**
- * Create a new image instance.
+ * Create a new image instance for image file.
*
* @param string $file Image file.
* @param array $options Options array.
| feat(helpers): typo updates for `imageFile` function helper | null | flextype/flextype | MIT License | PHP |
/**
* Indicates whether A/V Moderation is enabled for this room.
*/
- private final Map<MediaType, Boolean> avModerationEnabled = new HashMap<>();
+ private final Map<MediaType, Boolean> avModerationEnabled = Collections.synchronizedMap(new HashMap<>());
private Map<String, List<String>> whitelists = new HashMap<>();
| feat: Use synchronized Map for AV moderation | null | jitsi/jicofo | Apache License 2.0 | Java |
@@ -15,6 +15,15 @@ namespace MLAPI.Components
/// </summary>
public static class NetworkSceneManager
{
+ /// <summary>
+ /// Delegate for when the scene has been switched
+ /// </summary>
+ public delegate void SceneSwitchedDelegate();
+ /// <summary>
+ /// Event that is invoked when the scene is switched
+ /// </summa... | feat(scene): Added OnSceneSwitched event | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -154,6 +154,7 @@ func (w *currentWorker) runGRPCPlugin(ctx context.Context, a *sdk.Action, buildI
result, err := actionPluginClient.Run(ctx, &query)
if err != nil {
+ log.Error("plugin failure %s v%s err: %v", manifest.Name, manifest.Version, err)
pluginFail(chanRes, sendLog, fmt.Sprintf("Error running action: %v", ... | feat(worker): add log on err plugin | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -23,7 +23,7 @@ namespace PepperDash.Essentials.Core
protected bool ComputedValue;
- public BoolFeedbackLogic()
+ protected BoolFeedbackLogic()
{
Output = new BoolFeedback(() => ComputedValue);
}
@@ -40,11 +40,8 @@ namespace PepperDash.Essentials.Core
public void AddOutputsIn(List<BoolFeedback> outputs)
{
- foreach (... | feat: Add clear method to BoolOutputLogical | null | pepperdash/essentials | MIT License | C# |
@@ -61,6 +61,8 @@ public enum MouseInputMode
public KeyCode mouseMovementKey = KeyCode.Mouse1;
[Tooltip("Key used to toggle control hints on/off.")]
public KeyCode toggleControlHints = KeyCode.F1;
+ [Tooltip("Key used to toggle control hints on/off.")]
+ public KeyCode toggleMouseLock = KeyCode.F4;
[Tooltip("Key used t... | feat(Simulator): add toggle hotkey for mouse lock | null | extendrealityltd/vrtk | MIT License | C# |
@@ -166,7 +166,7 @@ abstract class AbstractController implements ServiceSubscriberInterface
protected function file(\SplFileInfo|string $file, string $fileName = null, string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT): BinaryFileResponse
{
$response = new BinaryFileResponse($file);
- $response->setConten... | feat: using coalescing operator in file function | null | symfony/symfony | MIT License | PHP |
@@ -92,30 +92,7 @@ void embed_from_json(char *str, size_t len, void *p_embed)
struct sized_buffer **l_recovering_states = NULL; // get recovering_states token from JSON
- int total, page, pages, pagingCounter;
- bool hasPrevPage, hasNextPage;
- char *prevPage, *nextPage;
- json_scanf(str, len,
- "[docs]%L"
- "[total]%d... | feat: add presence and trigger_typing | null | cee-studio/orca | MIT License | C++ |
@@ -76,7 +76,13 @@ export class TypeOrmHealthIndicator extends HealthIndicator {
*
*/
private async pingDb(connection: Connection, timeout: number) {
- return await promiseTimeout(timeout, connection.query('SELECT 1'));
+ const check =
+ connection.options.type === 'mongodb'
+ ? connection.isConnected
+ ? Promise.resol... | feat(typeorm): Add mongo support | null | nestjs/terminus | MIT License | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.