diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -17,6 +17,7 @@ package com.b2international.snowowl.snomed.core.domain;
import static com.google.common.base.Preconditions.checkNotNull;
+import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Function;
@@ -186,4 +187,28 @@ public final class RelationshipValue {
throw new IllegalState... | feat(domain): Add equals/hashCode/toString impl. to RelationshipValue | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -26,6 +26,21 @@ String? getBundlePathFromEnv() {
return Platform.environment[BUNDLE_PATH];
}
+List<String> _supportedByteCodeVersions = ['1'];
+
+bool isByteCodeSupported(String mimeType, String filename) {
+ for (int i = 0; i < _supportedByteCodeVersions.length; i ++) {
+ if (mimeType.contains('application/vnd.krak... | feat: add bytecode accept headers | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -205,41 +205,6 @@ trait TeamsBaseClient
return $data;
}
- /**
- * @depends testUpdateTeamMembership
- */
- public function testDeleteTeamMembership($data):array
- {
- $teamUid = $data['teamUid'] ?? '';
- $membershipUid = $data['membershipUid'] ?? '';
-
- /**
- * Test for SUCCESS
- */
- $response = $this->client->cal... | feat: reorder tests | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
#!/usr/bin/python3
+import sys
+from pathlib import Path
+
import pytest
from brownie import project
@@ -57,6 +60,15 @@ def pytest_configure(config):
print(f"{color.format_tb(e)}\n")
raise pytest.UsageError("Unable to load project")
+ # apply __tracebackhide__ so brownie internals aren't included in tracebacks
+ base_p... | feat: dynamically apply __tracebackhide__ during plugin load | null | eth-brownie/brownie | MIT License | Python |
@@ -51,7 +51,8 @@ class Container(val loader: Loader, options: Options) : UIObject() {
trigger(InternalEvent.WILL_DESTROY.value)
playback?.destroy()
playback = null
- internalPlugins.forEach { it.destroy() }
+ internalPlugins.forEach { handlePluginAction({ it.destroy() },
+ "Plugin ${it.javaClass.simpleName} crashed du... | feat(handle_broken_plugin): handle container plugin error when render or destroyed | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -592,7 +592,7 @@ func (cConfig *CruiseControlConfig) GetCCImage() string {
if cConfig.Image != "" {
return cConfig.Image
}
- return "ghcr.io/banzaicloud/cruise-control:2.5.16"
+ return "ghcr.io/banzaicloud/cruise-control:2.5.23"
}
// GetCCLog4jConfig returns the used Cruise Control log4j configuration
| feat: bump Cruise Control version to 2.5.23 | null | banzaicloud/koperator | Apache License 2.0 | Go |
@@ -120,55 +120,44 @@ class Forms
// Create attribute value
$property['label'] = Arr::keyExists($property, 'label') ? $property['label'] : true;
- $pos = strpos($element, '.');
-
- if ($pos === false) {
- $form_element_name = $element;
- } else {
- $form_element_name = str_replace('.', '][', "$element") . ']';
- }
-
- ... | feat(core): new method getElementName() in Forms | null | flextype/flextype | MIT License | PHP |
@@ -141,6 +141,16 @@ if (! function_exists('plugins')) {
}
}
+if (! function_exists('tokens')) {
+ /**
+ * Get Flextype Plugins Service.
+ */
+ function tokens()
+ {
+ return flextype()->container()->get('tokens');
+ }
+}
+
if (! function_exists('find')) {
/**
* Create a Finder instance with predefined filter params or... | feat(helpers): add `tokens` helper | null | flextype/flextype | MIT License | PHP |
@@ -23,6 +23,7 @@ using MLAPI.SceneManagement;
using MLAPI.Serialization.Pooled;
using MLAPI.Spawning;
using static MLAPI.Messaging.CustomMessagingManager;
+using MLAPI.Exceptions;
namespace MLAPI
{
@@ -944,10 +945,16 @@ namespace MLAPI
}
}
- internal void DisconnectClient(ulong clientId)
+ /// <summary>
+ /// Disconne... | feat: Exposed DisconnectClient on NetworkingManager | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -270,6 +270,17 @@ func doUpgrade() error {
return fmt.Errorf("Stopping upgrade.")
}
+ if strings.HasPrefix(getAppVersion(keptnUpgradeChart), "0.11") {
+ fmt.Printf("CAUTION: While upgrading Keptn from version %s to version %s there is a possibility of data loss due to moving to a new database model.\n", installedKep... | feat(cli): created user warning about changed database model in keptn 0.11.* | null | keptn/keptn | Apache License 2.0 | Go |
@@ -8,6 +8,7 @@ from fastapi import Body
from fastapi import Depends
from fastapi import HTTPException
from fastapi.responses import JSONResponse
+from loguru import logger
# syft absolute
from syft import serialize # type: ignore
@@ -40,7 +41,8 @@ def login_access_token(
"""
try:
node.users.login(email=email, password... | feat: login example [ch223] | null | openmined/pysyft | Apache License 2.0 | Python |
@@ -64,19 +64,14 @@ const MoleculeAutosuggest = ({multiselection, ...props}) => {
})
})
- const getErrorStateClass = errorState => {
- if (errorState) return `${BASE_CLASS}--${ERROR_STATES.ERROR}`
- if (errorState === false) return `${BASE_CLASS}--${ERROR_STATES.SUCCESS}`
- return ''
- }
-
const className = cx(
BASE_CL... | feat(molecule/autosuggest): remove getErrorStateClass function | null | sui-components/sui-components | MIT License | JavaScript |
@@ -55,7 +55,7 @@ frappe.get_indicator = function(doc, doctype) {
}
// cancelled
- if(is_submittable && doc.docstatus==2) {
+ if(is_submittable && doc.docstatus==2 && !settings.has_indicator_for_cancelled) {
return [__("Cancelled"), "red", "docstatus,=,2"];
}
| feat: enable indicator for cancelled | null | frappe/frappe | MIT License | JavaScript |
@@ -571,6 +571,8 @@ module Discordrb
# @param message_id [Integer] The ID of the message to retrieve.
# @return [Message, nil] the retrieved message, or `nil` if it couldn't be found.
def load_message(message_id)
+ raise ArgumentError, 'message_id cannot be nil' if message_id.nil?
+
response = API::Channel.message(@bot... | feat: Require message_id for Channel#load_message | null | shardlab/discordrb | MIT License | Ruby |
+import inBrowser from './inBrowser'
+
+export function setCookie(name, value, days) {
+ if (!inBrowser) {
+ return false
+ }
+ let expires = ''
+ if (days) {
+ const date = new Date()
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000))
+ expires = `; expires=${date.toGMTString()}`
+ }
+ document.cookie = `${... | feat(utils): add cookie utils | null | davidwells/analytics | MIT License | JavaScript |
@@ -212,7 +212,8 @@ class HelpCommand : AbstractCommand("command.help") {
.setEmbeds(embedder.build())
.setActionRows(
ActionRow.of(
- Button.primary("help_list", "command list")
+ Button.primary("help_list", "command list"),
+ Button.link("https://melijn.com/legal", "Privacy Policy")
)
)
sendRsp(context, messageBuilde... | feat: legal button for discord | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -179,7 +179,11 @@ impl Value {
};
x.get(index as usize)
} else {
- None
+ match &*index.to_str() {
+ "first" => x.get(0),
+ "last" => x.get(x.len() - 1),
+ _ => None,
+ }
}
}
Value::Object(ref x) => x.get(index.to_str().as_ref()),
| feat(array): indexing with `.first` and `.last` | null | cobalt-org/liquid-rust | MIT License | Rust |
@@ -28,7 +28,8 @@ pub use anyhow::{Context, Error};
/// Internal error type for the `wasi-common` crate.
/// Contains variants of the WASI `$errno` type are added according to what is actually used internally by
/// the crate. Not all values are represented presently.
-#[derive(Debug, thiserror::Error)]
+#[derive(Copy,... | feat: improve wasi_common::ErrorKind derives | null | bytecodealliance/wasmtime | Apache License 2.0 | Rust |
@@ -2,6 +2,7 @@ package schema
import (
"fmt"
+
"github.com/jhump/protoreflect/desc"
"github.com/jhump/protoreflect/desc/protoparse"
"github.com/linkedin/goavro/v2"
@@ -100,23 +101,51 @@ func (s *Service) GetProtoDescriptors() (map[int]*desc.FileDescriptor, error) {
return descriptors, nil
}
-func (s *Service) compileP... | feat: Extract transtitive references when parsing protobuf descriptors | null | cloudhut/kowl | Apache License 2.0 | Go |
@@ -78,7 +78,7 @@ extension SolanaSDK {
_verifySignatures(serializedMessage: try serializeMessage(), requiredAllSignatures: true)
}
- func findSignature(pubkey: PublicKey) -> Signature? {
+ public func findSignature(pubkey: PublicKey) -> Signature? {
signatures.first(where: { $0.publicKey == pubkey })
}
| feat: public func findSignature | null | p2p-org/solana-swift | MIT License | Swift |
@@ -17,3 +17,12 @@ export const handleFocusChain = (e: KeyboardEvent, first: HTMLElement, last: HTM
return true;
}
};
+
+/**
+ * Gets keyboard-focusable elements within a specified root element
+ * @param root - root element
+ */
+export const getKeyboardFocusableElements = (root: HTMLElement | Document = document): El... | feat(esl-utils): add helper method to get keyboard-focusable elements within a specified element | null | exadel-inc/esl | MIT License | TypeScript |
@@ -270,6 +270,14 @@ impl RulePushDownFilterJoin {
result = SExpr::create_unary(filter.into(), result);
Ok(result)
}
+
+ fn rewrite_predicates(&self, s_expr: &SExpr) -> Result<(Vec<Scalar>)> {
+ let mut filter: Filter = s_expr.plan().clone().try_into()?;
+ let mut predicate = filter.predicates;
+ let mut join: LogicalI... | feat(optimze): extract OR clause to push down | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -114,6 +114,7 @@ var RegionMapping = map[string]string{
"ap-northeast-3": "Asia Pacific (Osaka)",
"ap-southeast-1": "Asia Pacific (Singapore)",
"ap-southeast-2": "Asia Pacific (Sydney)",
+ "ap-southeast-3": "Asia Pacific (Jakarta)",
"ap-south-1": "Asia Pacific (Mumbai)",
"me-south-1": "Middle East (Bahrain)",
"sa-ea... | feat(aws): add ap-southeast-3 region to shared usage | null | infracost/infracost | Apache License 2.0 | Go |
@@ -43,6 +43,12 @@ pub(crate) enum VaultSyncState {
/// Vault sync wrapper
pub struct VaultSync(pub(crate) VaultSyncState);
+impl Clone for VaultSync {
+ fn clone(&self) -> Self {
+ self.start_another().unwrap()
+ }
+}
+
impl VaultSync {
/// Start another Vault at the same address.
pub fn start_another(&self) -> Result... | feat(rust): implement clone for vault_sync | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -235,13 +235,17 @@ os.data.xf.DataModel.prototype.clearAllFilters = function() {
/**
* Gets the <i>attr<i>'s value from the top record in dimension <i>id</i>
* @param {string} id Unique id of the dimension
- * @param {string} attr The attribute key
+ * @param {string=} opt_attr The attribute key to pull from the rec... | feat(THIN-12028): Update get functions with optional attribute | null | ngageoint/opensphere | Apache License 2.0 | JavaScript |
@@ -55,7 +55,23 @@ func TestValidEndpoint(t *testing.T) {
},
},
{
- name: "empty name",
+ name: "empty name PagerDuty",
+ src: &endpoint.PagerDuty{
+ Base: endpoint.Base{
+ ID: influxTesting.MustIDBase16Ptr(id1),
+ OrgID: influxTesting.MustIDBase16Ptr(id3),
+ Status: influxdb.Active,
+ },
+ ClientURL: "https://events.p... | feat(notification/telegram): test error on empty endpoint name | null | influxdata/influxdb | MIT License | Go |
@@ -20,9 +20,38 @@ const fs = require('fs')
const path = require('path')
let waitingForBuild = false
-let nextArgs: any = null
let count = 0
+interface FileChange {
+ filepath: string
+ content: string
+}
+
+class FileChangeQueue {
+ private pendingChanges: FileChange[] = []
+
+ get length() {
+ return this.pendingChan... | feat(file-writer): queue changes per-file | null | tinacms/tinacms | Apache License 2.0 | TypeScript |
@@ -199,7 +199,15 @@ open class Core: UIObject, UIGestureRecognizerDelegate {
containers.removeAll()
Logger.logDebug("destroying plugins", scope: "Core")
- plugins.forEach { plugin in plugin.destroy() }
+ plugins.forEach { plugin in
+ do {
+ try ObjC.catchException {
+ plugin.destroy()
+ }
+ } catch {
+ Logger.logError... | feat: when destroying core plugins, catch exceptions | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -95,7 +95,7 @@ export const Fields: React.FC<FieldsProps> = React.memo(props => {
<TextField
{...({
...commonProps,
- value: value || '',
+ value: value ?? '',
onChange: handlers.handleNumberChange(name)
} as TextFieldProps)}
/>
| feat(core): fix number field to display int 0 | null | medly/medly-components | MIT License | TypeScript |
@@ -6,27 +6,15 @@ const radiogroup = ({
borders,
fontSizes,
}) => ({
- radio: {
+ button: {
border: {
radius: radii.circle,
- },
- hover: {
- backgroundColor: colors.gray[1],
+ width: borders.small,
+ color: colors.gray[3],
},
backgroundColor: {
enabled: 'transparent',
},
- checked: {
- backgroundColor: {
- enabled: co... | feat(radiogroup.radio): add a new theme for radiogroup.radio component and revisit the old button | null | gympass/yoga | MIT License | JavaScript |
@@ -435,8 +435,9 @@ class FormController extends Controller
$size = isset($properties['size']) ? $this->sizes[$properties['size']] : $this->sizes['12'];
$id = isset($properties['id']) ? $properties['id'] : $field_id;
$name = isset($properties['name']) ? $properties['name'] : $field_name;
+ $value = isset($properties['v... | feat(admin-plugin): update html field | null | flextype/flextype | MIT License | PHP |
@@ -108,7 +108,7 @@ extension RenVM {
.map {(response, data) -> T in
// Print
if log {
- Logger.log(message: "renBTC event " + method + " " + (String(data: data, encoding: .utf8) ?? ""), event: .response, apiMethod: method)
+// Logger.log(message: "renBTC event " + method + " " + (String(data: data, encoding: .utf8) ??... | feat: disable logs in RenVM | null | p2p-org/solana-swift | MIT License | Swift |
@@ -132,7 +132,7 @@ const StyledInputGroup = styled(
box-shadow: none;
background-color: transparent;
&:focus {
- box-shadow: none;
+ outline: none;
}
}
}
| feat(InputGroup): change focus to native colors | null | kiwicom/orbit | MIT License | JavaScript |
*/
package com.b2international.snowowl.core.internal;
+import static com.b2international.index.query.Expressions.dismaxWithScoreCategories;
import static com.b2international.index.query.Expressions.exactMatch;
import static com.b2international.index.query.Expressions.matchAny;
+import static com.b2international.index.q... | feat: add expression support to search resource title by TermFiler | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -161,7 +161,7 @@ class Select extends PureComponent {
}
handleChange(_, data, fromInput) {
- const { datum, multiple, disabled } = this.props
+ const { datum, multiple, disabled, emptyAfterSelect, onFilter, filterText } = this.props
if (disabled === true) return
// if click option, ignore blur event
@@ -189,6 +189,8... | feat: Select add emptyAfterSelect | null | sheinsight/shineout | MIT License | JavaScript |
@@ -580,9 +580,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
->setParam('data', ['provider' => $provider])
;
- $events
- ->setParam('eventData', $response->output($session, Response::MODEL_SESSION))
- ;
+ $events->setParam('eventData', $response->output($session, Response::MODEL_SESSION));
if (!Config... | feat: indentation | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -8,27 +8,46 @@ import (
"github.com/1024casts/snake/pkg/net/tracing"
)
+const (
+ // DefaultServiceName service name
+ DefaultServiceName = "snake"
+)
+
func Trace() gin.HandlerFunc {
return func(c *gin.Context) {
- tracer, closer := tracing.Init("snake")
+ tracer, closer := tracing.Init(DefaultServiceName)
defer cl... | feat: add tag for tracing | null | go-eagle/eagle | MIT License | Go |
@@ -130,12 +130,20 @@ class Gitlab extends OAuth2
/**
* Check if the OAuth email is verified
*
+ * @link https://docs.gitlab.com/ee/api/users.html#list-current-user-for-normal-users
+ *
* @param $accessToken
*
* @return bool
*/
public function isEmailVerified(string $accessToken): bool
{
+ $user = $this->getUser($acces... | feat: added check for Gitlab OAuth | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -3,6 +3,7 @@ package launcher_test
import (
"bytes"
"context"
+ "encoding/json"
"fmt"
"io"
"io/ioutil"
@@ -48,6 +49,104 @@ func TestLauncher_Setup(t *testing.T) {
}
}
+// This is to mimic chronograf using cookies as sessions
+// rather than authorizations
+func TestLauncher_SetupWithUsers(t *testing.T) {
+ l := RunL... | feat(influxd/launcher): add test mimicing chronograf setup | null | influxdata/influxdb | MIT License | Go |
*/
package com.b2international.snowowl.core.rest.resource;
+import java.util.List;
+import java.util.Map;
+
import org.springdoc.api.annotations.ParameterObject;
import org.springframework.web.bind.annotation.*;
@@ -22,8 +25,11 @@ import com.b2international.snowowl.core.Resource;
import com.b2international.snowowl.core... | feat: use typeSort when retrieving resources | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -7,6 +7,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
+ "net/http/httputil"
"net/url"
"strconv"
"strings"
@@ -253,15 +254,34 @@ func (r *Runner) runStepRequest(step *TStep) (stepData *StepData, err error) {
req.URL = u
req.Host = u.Host
- // do request action
- // req.Debug = r.debug
+ // log & print request
+ if r.deb... | feat: log & print request/response | null | httprunner/httprunner | Apache License 2.0 | Go |
@@ -28,10 +28,10 @@ def load_experiment_results(output_dir, experiment_name):
"""
Parameters
----------
- output_dir : str or Path
- directory where experiment results are stored
+ output_dir : str or Path, or list
+ directory (or list of directories) where experiment results are stored
(command line argument --output_... | feat(experiment): load_experiment_results now accepts list of dirs/experiments | null | rlberry-py/rlberry | MIT License | Python |
-<?php
-
-declare(strict_types=1);
-
-/**
- * Flextype (https://flextype.org)
- * Founded by Sergey Romanenko and maintained by Flextype Community.
- */
-
-namespace Flextype\Foundation;
-
-use Psr\Http\Message\ResponseInterface;
-use Psr\Http\Message\ServerRequestInterface;
-
-use function count;
-use function flextyp... | feat(cors): remove cors class, inline cors instead added | null | flextype/flextype | MIT License | PHP |
@@ -1684,6 +1684,13 @@ func GracefulPrimaryTakeover(clusterName string, designatedKey *inst.InstanceKey
AuditTopologyRecovery(topologyRecovery, "started PlannedReparentShard with automatic primary selection.")
}
+ // check for the constraint failure for cross cell promotion
+ if designatedTabletAlias != nil && designat... | feat: honour the constraint rules before calling planned reparent shard | null | vitessio/vitess | Apache License 2.0 | Go |
@@ -38,6 +38,7 @@ public class NLS {
LANG_LOCALES.add(new LangLocale("de", "DE"));
LANG_LOCALES.add(new LangLocale("ko", "KR"));
LANG_LOCALES.add(new LangLocale("pt", "BR"));
+ LANG_LOCALES.add(new LangLocale("ru", "RU"));
LANG_LOCALES.forEach(NLS::load);
| feat(gui): add Russian Translation (PR | null | skylot/jadx | Apache License 2.0 | Java |
@@ -424,6 +424,9 @@ class Client extends EventEmitter {
* @returns {Promise} Resolves when all shards are initialized
*/
async connect() {
+ if(typeof this._token !== "string") {
+ throw new Error(`Invalid token "${this._token}"`);
+ }
try {
const data = await (this.options.maxShards === "auto" || (this.options.shardCo... | feat(connect): add token check | null | abalabahaha/eris | MIT License | JavaScript |
@@ -70,9 +70,14 @@ module Course::LessonPlan::PersonalizationConcern
next if !item.has_personal_times? || item.id.in?(submitted_lesson_plan_item_ids.keys) ||
item.personal_time_for(course_user)&.fixed?
- # Update personal time
reference_time = item.reference_time_for(course_user)
personal_time = item.find_or_create_per... | feat: prevent the shifting of deadlines forward when user switches from stragglers to fomo | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -12,7 +12,8 @@ const method = {
PUT: 'PUT',
DELETE: 'DELETE',
TRACE: 'TRACE',
- CONNECT: 'CONNECT'
+ CONNECT: 'CONNECT',
+ PATCH: 'PATCH'
}
const dataType = {
JSON: 'json'
| feat: request method support PATCH | null | dcloudio/uni-app | Apache License 2.0 | JavaScript |
@@ -59,3 +59,8 @@ pub const REQUIRES: [u8; VERSION.len() + 1] = {
/// I/O port used to trigger an exit to the host (`#VMEXIT`) for KVM driven shims.
pub const KVM_SYSCALL_TRIGGER_PORT: u16 = 0xFF;
+
+/// I/O port used to trigger an exit to the host telling it to terminate the current thread.
+///
+/// Because it does n... | feat(sallyport): add KVM_SYSCALL_TRIGGER_EXIT_THREAD | null | enarx/enarx | Apache License 2.0 | Rust |
@@ -143,6 +143,9 @@ export class RouterExplorer {
};
}
+ private static stripEndSlash = (str: string) =>
+ str[str.length - 1] === '/' ? str.slice(0, str.length - 1) : str;
+
public applyPathsToRouterProxy<T extends HttpServer>(
router: T,
routePaths: RoutePathProperties[],
@@ -161,9 +164,12 @@ export class RouterExplo... | feat(core): add basePath to route explorer | null | nestjs/nest | MIT License | TypeScript |
@@ -236,6 +236,7 @@ cli
base: options.base,
configFile: options.config,
logLevel: options.logLevel,
+ mode: options.mode,
preview: {
port: options.port,
strictPort: options.strictPort,
| feat(vite): pass mode to preview command | null | vitejs/vite | MIT License | TypeScript |
@@ -129,9 +129,8 @@ public final class OptimizeMojo extends SafeMojo {
this, "Running %s optimizations in parallel",
tasks.size()
);
- final int done = tasks.parallelStream()
- .mapToInt(Supplier::get)
- .sum();
+ tasks.parallelStream().forEach(Supplier::get);
+ final int done = tasks.size();
if (done > 0) {
Logger.inf... | feat(#1347): try to count done task differently | null | cqfn/eo | MIT License | Java |
@@ -52,8 +52,6 @@ pub fn make_final_uri(query_id: &str) -> String {
pub struct QueryError {
pub code: u16,
pub message: String,
- pub backtrace: Option<String>,
- // TODO(youngsofun): add other info more friendly to client
}
impl QueryError {
@@ -61,7 +59,6 @@ impl QueryError {
QueryError {
code: e.code(),
message: e.m... | feat(httphandler): remove backtrace from response | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -266,7 +266,7 @@ class SilencedAlert(AlertGenerator):
[newMatcher("alertname", self.name, False)],
"{}Z".format(now.isoformat()),
"{}Z".format((now + datetime.timedelta(
- minutes=30)).isoformat()),
+ minutes=random.randint(0, 60))).isoformat()),
"me@example.com",
"This alert is always silenced and the silence comme... | feat(demo): more random silence duration | null | prymitive/karma | Apache License 2.0 | Python |
@@ -155,7 +155,7 @@ function createPromptProvider(): schema.PromptProvider {
case 'list':
return {
...question,
- type: 'list',
+ type: !!definition.multiselect ? 'checkbox' : 'list',
choices:
definition.items &&
definition.items.map(item => {
| feat(schematics-cli): add multiple selection support for prompts | null | nrwl/nx | MIT License | TypeScript |
//! // database is now ready for normal playback
//! ```
use std::{
+ cmp::Ordering,
collections::{
btree_map::Entry::{Occupied, Vacant},
BTreeMap,
@@ -340,6 +341,14 @@ pub type Result<T, E = Error> = std::result::Result<T, E>;
/// Number min sequence max sequence
///```
///
+///
+/// # Ordering
+/// Partition checkpoi... | feat: impl `PartialOrd` for `PartitionCheckpoint` | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -250,6 +250,7 @@ public class VisualRecognition {
recommended pixel density is 32X32 pixels per inch, and the maximum image size is 10 MB. Redirects are followed,
so you can use a shortened URL.
You can also include images with the **images_file** parameter.
+ - parameter acceptLanguage: The desired language of part... | feat(VisualRecognitionV3): Add acceptLanguage parameter to detectFaces() | null | watson-developer-cloud/swift-sdk | Apache License 2.0 | Swift |
@@ -111,6 +111,7 @@ def get_safe_globals():
get_hooks=frappe.get_hooks,
sanitize_html=frappe.utils.sanitize_html,
log_error=frappe.log_error
+ cache=frappe.cache
),
FrappeClient=FrappeClient,
style=frappe._dict(
@@ -141,7 +142,8 @@ def get_safe_globals():
get_single_value = frappe.db.get_single_value,
get_default = fra... | feat: Enhancements in Server Script | null | frappe/frappe | MIT License | Python |
@@ -1881,7 +1881,9 @@ public MuteResult handleMuteRequest(Jid muterJid, Jid toBeMutedJid, boolean doMu
logger.warn("Unmute not allowed, muterJid=" + muterJid + ", toBeMutedJid=" + toBeMutedJid);
return MuteResult.NOT_ALLOWED;
}
- else if (!this.chatRoom.isMemberAllowedToUnmute(toBeMutedJid, mediaType))
+ // Moderators ... | feat: Allow moderators to unmute without being in the whitelist | null | jitsi/jicofo | Apache License 2.0 | Java |
<x-slot name="labelSuffix">
@endif
<div {{ $attributes->merge($getExtraAttributes())->class([
- 'gap-2',
+ 'gap-2 space-y-2',
'flex flex-wrap gap-3' => $isInline(),
]) }}>
@foreach ($getOptions() as $value => $label)
| feat: add vertical spacing to radio buttons | null | laravel-filament/filament | MIT License | PHP |
@@ -645,15 +645,105 @@ class WorkfileSettings(object):
write_dict (dict): nuke write node as dictionary
'''
- # TODO: complete this function so any write node in
# scene will have fixed colorspace following presets for the project
if not isinstance(write_dict, dict):
msg = "set_root_colorspace(): argument should be dic... | feat(nuke): setting colorspace to write and Reads from presets | null | pypeclub/openpype | MIT License | Python |
@@ -283,8 +283,10 @@ extension ExtensionDialog on GetInterface {
/// Custom UI Dialog.
Future<T?> defaultDialog<T>({
String title = "Alert",
+ EdgeInsetsGeometry? titlePadding,
TextStyle? titleStyle,
Widget? content,
+ EdgeInsetsGeometry? contentPadding,
VoidCallback? onConfirm,
VoidCallback? onCancel,
VoidCallback? on... | feat: Add padding to 'defaultDialog' | null | jonataslaw/getx | MIT License | Dart |
@@ -130,8 +130,8 @@ class MessageContext<S = Record<string, any>>
/**
* Load message payload
*/
- async loadMessagePayload(): Promise<void> {
- if (this.$filled) {
+ async loadMessagePayload({ force = false } = {}): Promise<void> {
+ if (this.$filled && !force) {
return;
}
| feat(context): add support force load reload message | null | negezor/vk-io | MIT License | TypeScript |
@@ -149,6 +149,7 @@ Configuration file:
"""
import numpy as np
+import scipy.optimize
from docopt import docopt
from .base import Application
from os.path import expanduser
@@ -157,6 +158,7 @@ from pyannote.database import get_protocol
from pyannote.audio.signal import Binarize
from pyannote.database import get_annotat... | feat: optimize binarizer during validation | null | pyannote/pyannote-audio | MIT License | Python |
+#include <bits/stdc++.h>
+using namespace std;
+const int N = 5e5 + 10;
+
+int t, l[N], r[N];
+typedef long long LL;
+
+void solve() {
+ int n;
+ string s;
+ cin >> n >> s;
+ l[0] = s[0] == '1' ? 0 : 1e6;
+ for (int i = 1; i < n; i++) {
+ if (s[i] == '1')
+ l[i] = 0;
+ else
+ l[i] = l[i - 1] + 1;
+ }
+ r[n - 1] = s[n ... | feat: kick-start 2021 round f: | null | upupming/algorithm | MIT License | C++ |
@@ -379,10 +379,12 @@ impl SlidingSyncConfig {
storage_key,
client,
mut views,
- extensions,
+ mut extensions,
subscriptions,
} = self;
- let rooms = if let Some(storage_key) = storage_key.as_ref() {
+ let mut rooms = Default::default();
+
+ if let Some(storage_key) = storage_key.as_ref() {
if let Some(mut f) = client
... | feat(sdk): Persist sliding-sync to-device extension since value | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
use super::State;
use crate::{ConduitResult, Database, Error, Result, Ruma};
use ruma::{
- api::client::r0::{
+ api::client::{
+ error::ErrorKind,
+ r0::{
directory::{
self, get_public_rooms, get_public_rooms_filtered, get_room_visibility,
set_room_visibility,
},
room,
},
+ },
events::{
room::{avatar, canonical_alias, ... | feat: handle /publicRooms pagination | null | timokoesters/conduit | Apache License 2.0 | Rust |
import React from 'react'
+import omit from 'lodash/omit'
import merge from 'lodash/merge'
import { ResponsiveFunnel, svgDefaultProps } from '@nivo/funnel'
import { ComponentTemplate } from '../../components/components/ComponentTemplate'
@@ -84,7 +85,7 @@ const Funnel = () => (
type: 'click',
label: `[part] id: ${part.... | feat(website): improve data log when clicking on funnel parts | null | plouc/nivo | MIT License | TypeScript |
@@ -3,6 +3,8 @@ package create
import (
"fmt"
"github.com/jenkins-x/jx/pkg/cmd/initcmd"
+ "github.com/pkg/errors"
+ "github.com/spf13/viper"
"github.com/jenkins-x/jx/pkg/cmd/helper"
@@ -21,7 +23,7 @@ type CreateClusterOptions struct {
InstallOptions InstallOptions
Flags initcmd.InitFlags
Provider string
- SkipInstallat... | feat: Enable skip install config | null | jenkins-x/jx | Apache License 2.0 | Go |
@@ -496,13 +496,20 @@ class EntriesController extends Controller
// Get data from POST
$data = $request->getParsedBody();
- if (!$this->entries->has($data['parent_entry'] . '/' . $data['entry_id_current'])) {
+ // Set entry id current
+ if ($this->registry->get('plugins.admin.entries.slugify') == true) {
+ $entry_id_cu... | feat(admin-panel): updates for RTL url support | null | flextype/flextype | MIT License | PHP |
</div>
</div>
+ @isset ($beforeOptions)
+ {{ $beforeOptions }}
+ @endisset
+
<template x-for="(option, index) in displayOptions" :key="`${index}.${option.value}`">
<div x-transition x-html="renderOption(option)"></div>
</template>
x-on:click="closePopover">
{{ $emptyMessage ?? __('wireui::messages.empty_options') }}
</... | feat: prepend / append options | null | wireui/wireui | MIT License | PHP |
import React from 'react';
import { NextPage } from 'next';
-import { Button, Heading, Text, Flex, Grid, GridItem } from '@chakra-ui/react';
+import { Heading, Text, Flex, Grid, GridItem } from '@chakra-ui/react';
import { LinkButton } from 'chakra-next-link';
import { useAuth } from '../../../modules/auth/store';
-imp... | feat: remove auth with google fom policy page | null | freecodecamp/chapter | BSD 3-Clause New or Revised License | TypeScript |
@@ -2,13 +2,25 @@ import Foundation
extension SolanaSDK {
public struct FeeAmount: Equatable {
- public init(transaction: UInt64, accountBalances: UInt64) {
+ public struct OtherFee: Equatable {
+ public init(amount: Double, unit: String) {
+ self.amount = amount
+ self.unit = unit
+ }
+
+ public var amount: Double
+ p... | feat: OtherFee | null | p2p-org/solana-swift | MIT License | Swift |
@@ -19,6 +19,9 @@ use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
+
+const CACHE_DURATION = 8 * 3600; // 8 hours
+
class LodestoneCharacterController extends AbstractController
{
/**
... | feat: cache for Lodestone data entries too | null | xivapi/xivapi.com | MIT License | PHP |
@@ -17,15 +17,15 @@ fi
REGISTRY_HOST=$1
USERNAME=$2
VERSION=$3
-SERVICES='generator frontend-apps frontend-bugs haproxy patch-lib-analyzer postgresql rest-backend rest-lib-utils'
+SERVICES='generator frontend-apps frontend-bugs patch-lib-analyzer rest-backend rest-lib-utils'
-docker login $REGISTRY_HOST
+docker login "... | feat(docker): don't push postgres and haproxy images | null | eclipse/steady | Apache License 2.0 | Shell |
@@ -44,7 +44,7 @@ pub fn construct() -> App<'static, 'static> {
.long("type")
.takes_value(true)
.requires("argument")
- .possible_values(&["string", "number", "idl"]),
+ .possible_values(&["string", "number", "idl", "raw"]),
)
.arg(
Arg::with_name("argument")
@@ -137,6 +137,9 @@ where
e
))
})?)),
+ Some("raw") => Ok(h... | feat: add raw type to pass in raw bytes to canister | null | dfinity/sdk | Apache License 2.0 | Rust |
//! `matchingrules` module includes all the classes to deal with V3 format matchers
use serde_json::{self, Value};
+use serde_json::map::Map;
use std::{
collections::{HashMap, HashSet},
hash::{Hash, Hasher}
@@ -163,6 +164,59 @@ impl MatchingRule {
}
}
+ /// Builds a `MatchingRule` from a `Value` struct used by language... | feat: support an integration format for matchers for language integration | null | pact-foundation/pact-reference | MIT License | Rust |
@@ -76,67 +76,43 @@ where T: NumberResultFunction + Clone + Sync + Send + 'static
}
fn eval(&self, columns: &DataColumnsWithField, _input_rows: usize) -> Result<DataColumn> {
- if columns.is_empty() {
- return Result::Err(ErrorCode::UnknownFunction(
- "Number of arguments for function toYYYYMM doesn't match: passed 0, ... | feat: using apply_cast_numeric instead iter | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -92,8 +92,8 @@ trait Audit
'user_id' => $this->getAttribute(Config::get('audit.user.foreign_key', 'user_id')),
];
- if ($this->relationLoaded('user') && $this->user) {
- foreach ($this->user->attributesToArray() as $attribute => $value) {
+ if ($user = $this->getRelation('user')) {
+ foreach ($user->attributesToArra... | feat(Audit): simplify User attribute fetch | null | owen-it/laravel-auditing | MIT License | PHP |
@@ -46,18 +46,20 @@ describe('Sentiment Analyzer', () => {
expect(analyzer.negations).toEqual([]);
});
test('It should be able to load languages', () => {
- ['en', 'es', 'it', 'fr', 'nl', 'de'].forEach(language => {
+ ['en', 'es', 'it', 'fr', 'nl', 'de', 'eu', 'gl', 'ca'].forEach(
+ language => {
const analyzer = new S... | feat: Add basque, catalan and galician to sentiment analyzer | null | axa-group/nlp.js | MIT License | JavaScript |
@@ -284,10 +284,12 @@ const (
)
func (ui *Termui) staticRender() {
+ checking, checkingColor := statusShort(sdk.StatusChecking.String())
waiting, waitingColor := statusShort(sdk.StatusWaiting.String())
building, buildingColor := statusShort(sdk.StatusBuilding.String())
disabled, disabledColor := statusShort(sdk.StatusD... | feat(cdsctl): sort hatchery workers count by status for termui | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -9,7 +9,9 @@ interface SectionProps {
}
const styles: { [key: string]: SxProps<Theme> } = {
- marginBottom: { marginBottom: 1 },
+ marginBottom: {
+ marginBottom: 1,
+ },
stickyHeadersLgOnly: (theme) => ({
[theme.breakpoints.up('lg')]: {
position: 'sticky',
@@ -17,6 +19,9 @@ const styles: { [key: string]: SxProps<Th... | feat(section): add margin between children | null | coursemology/coursemology2 | MIT License | TypeScript |
@@ -1098,10 +1098,11 @@ class EntriesController extends Controller
if ($post_data['id'] == '') {
$data = [];
- Arr::set($data, 'plugins.admin.entries.items_view_default', $post_data['items_view']);
- //Filesystem::write(PATH['config']['site'] . '/settings.yaml', $this->parser->encode(array_replace_recursive($this->regi... | feat(default-theme): fix grid view for root entries | null | flextype/flextype | MIT License | PHP |
+<?php
+
+declare(strict_types=1);
+
+namespace Tests\Features\Methods;
+
+use Illuminate\Contracts\Foundation\Application;
+use Illuminate\Contracts\Session\Session;
+
+class Contracts
+{
+ /** @var Application */
+ private $app;
+
+ /** @var Session */
+ private $session;
+
+ public function testApplicationIsLocal():... | feat: add tests around Illuminate contracts | null | nunomaduro/larastan | MIT License | PHP |
@@ -314,18 +314,18 @@ namespace Unity.Netcode
/// <summary>
/// Gets if we are executing as server
/// </summary>
- protected bool IsServer { get; private set; }
+ public bool IsServer { get; private set; }
/// <summary>
/// Gets if we are executing as client
/// </summary>
- protected bool IsClient { get; private set;... | feat: making NetworkBehaviour's IsServer, IsClient, IsHost public | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -14,10 +14,15 @@ const defaultPurgeCSSExtractor = /[\w-/:%.]+(?<!:)/g
module.exports = {
fromFile: async (config, env) => {
+ const tailwindConfig = isObject(config) ? getPropValue(config, 'build.tailwind.config') || {} : 'tailwind.config.js'
+ const tailwindConfigObject = importCwd.silent(`./${tailwindConfig}`) || ... | feat(tailwind): use purge options from tailwind config | null | maizzle/framework | MIT License | JavaScript |
+package authorizer_test
+
+import (
+ "bytes"
+ "context"
+ "testing"
+
+ "github.com/google/go-cmp/cmp"
+ "github.com/influxdata/influxdb"
+ "github.com/influxdata/influxdb/authorizer"
+ influxdbcontext "github.com/influxdata/influxdb/context"
+ "github.com/influxdata/influxdb/mock"
+ influxdbtesting "github.com/infl... | feat(authorizer): test secrets read permissions | null | influxdata/influxdb | MIT License | Go |
@@ -58,8 +58,8 @@ func (j *Join) PushPredicate(expr sqlparser.Expr, semTable *semantics.SemTable)
j.LeftJoin = false
return j.RHS.PushPredicate(expr, semTable)
}
- // TODO - we should do this on the vtgate level once we have a Filter primitive
- return vterrors.Errorf(vtrpcpb.Code_UNIMPLEMENTED, "unsupported: cross-sha... | feat: fail queries only when we know that we can't send everything to a single shard | null | vitessio/vitess | Apache License 2.0 | Go |
@@ -2,7 +2,7 @@ use crate::{
abi::{
AbiArrayType, AbiError, AbiType, Detokenize, Token, Tokenizable, TokenizableItem, Tokenize,
},
- types::{Address, Bytes, H256, U128, U256},
+ types::{Address, Bytes, H256, I256, U128, U256},
};
/// Trait for ABI encoding
@@ -63,6 +63,7 @@ impl_abi_codec!(
H256,
U128,
U256,
+ I256,
u8... | feat(abi): impl AbiEncode, AbiDecode for I256 | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
@@ -167,6 +167,7 @@ class Flow(ExitStack):
super().__init__()
self.logger = get_logger(self.__class__.__name__)
self._pod_nodes = OrderedDict() # type: Dict[str, 'FlowPod']
+ self._pod_needs = []
self._build_level = FlowBuildLevel.EMPTY
self._pod_name_counter = 0
self._last_changed_pod = ['gateway'] #: default first po... | feat: add edges | null | jina-ai/jina | Apache License 2.0 | Python |
@@ -159,6 +159,8 @@ trait TeamsBaseClient
$session = $this->client->parseCookie((string)$response['headers']['set-cookie'])['a_session_'.$this->getProject()['$id']];
$data['session'] = $session;
+
+ /** [START] TESTS TO CHECK PASSWORD UPDATE OF NEW USER CREATED USING TEAM INVITE */
/**
* New User tries to update passwo... | feat: some comments | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -18,6 +18,7 @@ import multiprocessing
import os
import sys
+from httprunner import __version__
from httprunner import logger
from httprunner.utils import init_sentry_sdk
@@ -104,6 +105,7 @@ def run_locusts_with_processes(sys_argv, processes_count):
def main():
""" Performance test with locust: parse command line opt... | feat: print HttpRunner version when executing locusts | null | httprunner/httprunner | Apache License 2.0 | Python |
@@ -97,7 +97,7 @@ if TYPE_CHECKING: # no cov
from sanic_ext import Extend # type: ignore
from sanic_ext.extensions.base import Extension # type: ignore
except ImportError:
- Extend = TypeVar("Extend") # type: ignore
+ Extend = TypeVar("Extend", Type) # type: ignore
if OS_IS_WINDOWS: # no cov
| feat(type): extend | null | sanic-org/sanic | MIT License | Python |
@@ -44,29 +44,42 @@ class MiniCartSummary extends Component {
/**
* The computed taxes for items in the cart.
*/
- displayTax: PropTypes.string
+ displayTax: PropTypes.string,
+ /**
+ * The text for the "Tax" label text.
+ */
+ taxLabelText: PropTypes.string,
+ /**
+ * The text for the "Subtotal" label text.
+ */
+ sub... | feat: added text overrides on MiniCartSummary | null | reactioncommerce/reaction-component-library | Apache License 2.0 | JavaScript |
@@ -29,7 +29,20 @@ AdL.propTypes = {
* Inner element
*/
children: PropTypes.element.isRequired,
- display: PropTypes.object.isRequired
+
+ /**
+ * display info object.
+ */
+ display: PropTypes.shape({
+ /**
+ * display URL.
+ */
+ url: PropTypes.string.isRequired,
+ /**
+ * positions array.
+ */
+ positions: PropTypes... | feat(ad/l): improve component proptypes | null | sui-components/sui-components | MIT License | JavaScript |
@@ -6,9 +6,9 @@ module Geocoder
extend self
def download(package, dir = "tmp")
- filepath = File.expand_path(File.join(dir, archive_filename(package)))
+ filepath = File.expand_path(File.join(dir, "#{archive_edition(package)}.zip"))
open(filepath, 'wb') do |file|
- uri = URI.parse(archive_url(package))
+ uri = URI.pars... | feat: add license key requirement and update download | null | alexreisner/geocoder | MIT License | Ruby |
@@ -82,6 +82,12 @@ export enum SslPolicy {
*/
RECOMMENDED = 'ELBSecurityPolicy-2016-08',
+ /**
+ * Strong foward secrecy ciphers and TLV1.2 only (2020 edition).
+ * Same as FORWARD_SECRECY_TLS12_RES, but only supports GCM versions of the TLS ciphers
+ */
+ FORWARD_SECRECY_TLS12_RES_GCM = 'ELBSecurityPolicy-FS-1-2-Res-2... | feat(elbv2): support for 2020 SSL policy | null | aws/aws-cdk | Apache License 2.0 | TypeScript |
// limitations under the License.
use std::any::Any;
+use std::collections::HashMap;
use std::sync::Arc;
use common_datablocks::BlockMetaInfo;
use common_datablocks::BlockMetaInfoPtr;
+#[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
+pub struct OverflowInfo {
+ pub temporary_path: String,
+ // bucket_... | feat(query): add overflow info | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -119,9 +119,7 @@ function createHostfunc(
const stackFrame = createStackFrame(funcinst.code, argsWithType, funcinst.originatingModule);
- if (typeof window !== 'undefined' && typeof window._enableStackframeExecutionTracing === 'function') {
- stackFrame.trace = window._enableStackframeExecutionTracing;
- }
+ stackFr... | feat: enable trace by default | null | xtuc/webassemblyjs | MIT License | JavaScript |
@@ -29,3 +29,12 @@ class DocField(Document):
if self.fieldtype == "Select":
options = self.options or ""
return [d for d in options.split("\n") if d]
+
+ def __repr__(self):
+ unsaved = "unsaved" if not self.name else ""
+ doctype = self.__class__.__name__
+
+ docstatus = f" docstatus={self.docstatus}" if self.docstatu... | feat: Useful Meta.__repr__ | null | frappe/frappe | MIT License | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.