diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -217,6 +217,9 @@ impl InputContext {
scan_progress: Arc<Progress>,
is_multi_part: bool,
) -> Result<Self> {
+ let (format_name, rows_to_skip) = remove_clickhouse_format_suffix(format_name);
+ let rows_to_skip = std::cmp::max(settings.get_skip_header()? as usize, rows_to_skip);
+
let format_type =
StageFileFormatType... | feat(format): accept clickhouse formats suffix WithNamesAndTypes | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -44,8 +44,8 @@ open class ExoPlayerPlayback(source: String, mimeType: String? = null, options:
private val ONE_SECOND_IN_MILLIS: Int = 1000
private val DEFAULT_MIN_DVR_SIZE = 60
- private val MIN_TIME_TO_CONSIDER_IN_DVR_USE_IN_SECONDS = 20
- private val DEFAULT_SYNC_BUFFER_IN_SECONDS = 30
+ private val MIN_TIME_TO_C... | feat(dvr_onpause): use Exoplayer sync buffers time | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -3,10 +3,12 @@ import UIKit
class LayersCompositor {
private weak var rootView: UIView?
private let backgroundLayer = BackgroundLayer()
+ private let playbackLayer = PlaybackLayer()
func compose(inside rootView: UIView) {
self.rootView = rootView
backgroundLayer.attach(to: rootView, at: 0)
+ playbackLayer.attach(to:... | feat: add PlaybackLayer to hierarchy | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -536,8 +536,8 @@ frappe.ui.filter_utils = {
if (condition === 'is') {
df.fieldtype = 'Select';
df.options = [
- { label: __('Set'), value: 'set' },
- { label: __('Not Set'), value: 'not set' },
+ { label: __('Set', null, 'Field value is set'), value: 'set' },
+ { label: __('Not Set', null, 'Field value is not set'),... | feat: add context for "is (not) set" filter translations | null | frappe/frappe | MIT License | JavaScript |
package me.melijn.melijnbot.commands.developer
+import kotlinx.coroutines.Deferred
import me.melijn.melijnbot.internals.command.AbstractCommand
import me.melijn.melijnbot.internals.command.CommandCategory
import me.melijn.melijnbot.internals.command.ICommandContext
@@ -32,12 +33,13 @@ class EvalCommand : AbstractComman... | feat: eval instant return of value ect | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -40,7 +40,7 @@ func main() {
for _, cmd := range cmds {
fmt.Println("Generating docs for " + cmd.Name())
// create directories for parent commands
- err = os.MkdirAll(docLoc+cmd.Name(), 0755)
+ _ = os.MkdirAll(docLoc+cmd.Name(), 0750)
// Generate parent command
out := new(bytes.Buffer)
| feat(cmd/gen-docs): fix directory permissions and unused variable | null | profclems/glab | MIT License | Go |
@@ -107,16 +107,20 @@ static void Widget_UpdateStatus(LCUI_Widget widget)
}
}
-void LCUIWidget_ClearTrash(void)
+size_t LCUIWidget_ClearTrash(void)
{
+ size_t count;
LinkedListNode *node;
+
node = LCUIWidget.trash.head.next;
+ count = LCUIWidget.trash.length;
while (node) {
LinkedListNode *next = node->next;
LinkedList... | feat(gui): LCUIWidget_ClearTrash() will return count | null | lc-soft/lcui | MIT License | C |
@@ -115,93 +115,33 @@ final class ProbeMojoTest {
);
}
- private static String program() {
- return new UncheckedText(
- new TextOf(
- new ResourceOf("org/eolang/maven/simple-io.eo")
- )
- ).asString();
- }
-
- private static String firstEntry(final Path foreign, final String field) {
- return new LinkedList<>(new MnCs... | feat(#1679): refactor findsProbesInOyRemote test | null | cqfn/eo | MIT License | Java |
@@ -412,6 +412,16 @@ func autocomplete(c *gin.Context) {
func silences(c *gin.Context) {
noCache(c)
+ start := time.Now()
+
+ cacheKey := c.Request.RequestURI
+
+ data, found := apiCache.Get(cacheKey)
+ if found {
+ c.Data(http.StatusOK, gin.MIMEJSON, data.([]byte))
+ logAlertsView(c, "HIT", time.Since(start))
+ return... | feat(api): cache /silence.json responses | null | prymitive/karma | Apache License 2.0 | Go |
@@ -31,13 +31,21 @@ func WritePipelineEnv() *cobra.Command {
}
func runWritePipelineEnv() error {
- inBytes, err := ioutil.ReadAll(os.Stdin)
+ pipelineEnv, ok := os.LookupEnv("PIPER_pipelineEnv")
+ inBytes := []byte(pipelineEnv)
+ if !ok {
+ var err error
+ inBytes, err = ioutil.ReadAll(os.Stdin)
if err != nil {
return... | feat(commonPipelineEnv): consume pipeline environment from env variable if set | null | sap/jenkins-library | Apache License 2.0 | Go |
@@ -454,8 +454,7 @@ class RenderFlexLayout extends RenderBox
}
FlexFit _getFit(RenderBox child) {
- final FlexParentData childParentData = child.parentData;
- return childParentData.fit ?? FlexFit.tight;
+ return FlexFit.tight;
}
double _getCrossSize(RenderBox child) {
@@ -485,9 +484,30 @@ class RenderFlexLayout extend... | feat: support flex-grow | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -13,19 +13,28 @@ class ObserveTransactionStatusTests: XCTestCase {
func testObservingTransactionStatus() async throws {
let mock = NetworkManagerMock([
- .success(#""#),
+ .success(mockResponse(confirmations: 0, confirmationStatus: "processed")),
.failure(CustomError.unknownNetworkError),
- .success(#""#),
+ .succes... | feat: ObserveTransactionStatusTest | null | p2p-org/solana-swift | MIT License | Swift |
@@ -123,6 +123,13 @@ export default _ => (
<code>false</code>,
'error state flag'
]),
+ PropTypes.row([
+ 'label',
+ 'string',
+ null,
+ null,
+ 'identifying string for group'
+ ]),
PropTypes.row([
'name',
'string',
@@ -137,6 +144,13 @@ export default _ => (
null,
'triggers on radio select'
]),
+ PropTypes.row([
+ 'sub... | feat(site): add label props to radio | null | pluralsight/design-system | Apache License 2.0 | JavaScript |
@@ -102,7 +102,7 @@ export class SimplexBuyPage {
this.wallets = this.profileProvider.getWallets({
network: 'livenet',
onlyComplete: true,
- coin: ['btc', 'bch', 'eth', 'xrp'],
+ coin: ['btc', 'bch', 'eth', 'xrp', 'pax'],
backedUp: true
});
this.altCurrenciesToShow = ['USD', 'EUR'];
@@ -315,7 +315,7 @@ export class Sim... | feat: add PAX to Simplex | null | bitpay/wallet | MIT License | TypeScript |
@@ -50,14 +50,6 @@ const unitsArray = (
title: formatMessage(messages.unitsOfUseNr),
value: unit.unitOfUseNumber || '',
},
- {
- title: `${formatMessage(messages.appraisal)} ${
- unit?.appraisal?.activeYear
- }`,
- value: unit.appraisal?.activeAppraisal
- ? amountFormat(unit.appraisal?.activeAppraisal)
- : '',
- },
{
t... | feat(service-portal): Remove appraisal from units of use | null | island-is/island.is | MIT License | TypeScript |
@@ -14,19 +14,23 @@ String cardsModelToJson(Map<String, CardsModel> data) => json.encode(
class CardsModel {
CardsModel({
this.cardActive,
- this.initialURL
+ this.initialURL,
+ this.isWebCard
});
bool cardActive;
String initialURL;
+ bool isWebCard;
factory CardsModel.fromJson(Map<String, dynamic> json) => CardsModel(... | feat: add isWebCard attribute to CardsModel | null | ucsd/campus-mobile | MIT License | Dart |
@@ -11,8 +11,9 @@ namespace Flextype\Endpoints;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
+use Flextype\Endpoints\Api;
-class Content extends Endpoints
+class Content extends Api
{
/**
* Fetch content.
@@ -24,51 +25,19 @@ class Content extends Endpoints
*/
public function fetc... | feat(endpoints): update Content class | null | flextype/flextype | MIT License | PHP |
@@ -217,6 +217,17 @@ public partial class BitDatePicker
protected override Task OnParametersSetAsync()
{
var dateTime = CurrentValue.GetValueOrDefault(DateTimeOffset.Now).DateTime;
+
+ if (MinDate.HasValue && MinDate > new DateTimeOffset(dateTime))
+ {
+ dateTime = MinDate.GetValueOrDefault(DateTimeOffset.Now).DateTime... | feat(components): fix the BitDatePicker issue when the default value is smaller/bigger than the Min/Max value | null | bitfoundation/bitframework | MIT License | C# |
@@ -57,23 +57,23 @@ pub use ockam_core::println;
#[cfg(not(feature = "std"))]
pub mod logging_no_std {
- /// info!
+ /// error!
#[macro_export]
- macro_rules! info {
+ macro_rules! error {
($($arg:tt)*) => (
ockam_core::println!($($arg)*);
)
}
- /// trace!
+ /// warn!
#[macro_export]
- macro_rules! trace {
+ macro_rule... | feat(rust): add warn log macro to no_std | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -3,7 +3,7 @@ import AVKit
open class Player: UIViewController, BaseObject {
open var playbackEventsToListen: [String] = []
fileprivate var playbackEventsListenIds: [String] = []
- fileprivate(set) open var core: Core?
+ fileprivate(set) var core: Core?
static var hasAlreadyRegisteredPlaybacks = false
fileprivate var... | feat: change core visibility in tvOS and create needed vars | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -59,3 +59,10 @@ class BaseCommitizen(metaclass=ABCMeta):
def info(self) -> Optional[str]:
"""Information about the standardized commit message."""
raise NotImplementedError("Not Implemented yet")
+
+ def process_commit(self, commit: str) -> str:
+ """Process commit for changelog.
+
+ If not overwritten, it returns t... | feat(cz/base): add default process_commit for processing commit message | null | commitizen-tools/commitizen | MIT License | Python |
@@ -68,7 +68,7 @@ public class NoteObjectiveMapperTest {
// Entity to Dto
@Test
- public void mapEntityToDto_expectsNoteIdIsMappes(){
+ public void mapEntityToDto_expectsNoteIdIsMapped() {
Long expected = 123L;
noteObjective.setId(expected);
noteObjectiveDto = noteObjectiveMapper.mapEntityToDto(noteObjective);
@@ -76,7... | feat(NoteObjective): fixed typo | null | burningokr/burningokr | Apache License 2.0 | Java |
@@ -62,7 +62,7 @@ final class Shortcodes
*/
protected function __construct()
{
- $settings = registry()->get('flextype.settings.shortcodes');
+ $settings = registry()->get('flextype.settings.parsers.shortcodes');
$this->shortcodeFacade = new ShortcodeFacade();
$this->shortcodeFacade->setParser((new RegularParser((new S... | feat(shortcodes): typo fix settings path | null | flextype/flextype | MIT License | PHP |
@@ -9,9 +9,13 @@ import {Wallet} from 'ethers';
import {SignerWithAddress} from '@nomiclabs/hardhat-ethers/dist/src/signer-with-address';
const {read, execute, deploy} = deployments;
-import {Event} from '@ethersproject/contracts';
-import {setupUsers, waitFor} from '../../utils';
+import {
+ setupUsers,
+ waitFor,
+ e... | feat: modified asset fixtures for tests | null | thesandboxgame/sandbox-smart-contracts | MIT License | TypeScript |
@@ -283,6 +283,8 @@ sockopt_impl!(GetOnly, AcceptConn, libc::SOL_SOCKET, libc::SO_ACCEPTCONN, bool);
sockopt_impl!(Both, BindToDevice, libc::SOL_SOCKET, libc::SO_BINDTODEVICE, OsString<[u8; libc::IFNAMSIZ]>);
#[cfg(any(target_os = "android", target_os = "linux"))]
sockopt_impl!(GetOnly, OriginalDst, libc::SOL_IP, libc:... | feat: add libc::IP6T_SO_ORIGINAL_DST support | null | nix-rust/nix | MIT License | Rust |
@@ -9,24 +9,15 @@ declare(strict_types=1);
namespace Flextype\Foundation\Entries;
-use Flextype\Component\Arrays\Arrays;
use Flextype\Component\Filesystem\Filesystem;
-use Flextype\Component\Session\Session;
-use Ramsey\Uuid\Uuid;
use function array_merge;
use function count;
-use function date;
-use function in_array;... | feat(entries): Simplify and improve Entries API | null | flextype/flextype | MIT License | PHP |
@@ -144,6 +144,16 @@ class APIClientTests: XCTestCase {
XCTAssertEqual(result, "63ionHTAM94KaSujUCg23hfg7TLharchq5BYXdLGqia1")
}
+ func testGetSignatureStatusses() async throws {
+ let mock = NetworkManagerMock(NetworkManagerMockJSON["getSignatureStatuses"]!)
+ let apiClient = JSONRPCAPIClient(endpoint: endpoint, netwo... | feat: test for getSignatureStatusses | null | p2p-org/solana-swift | MIT License | Swift |
#include <vector>
#ifdef _WIN32
+// The below excludes some other unused services from the windows headers -- see windows.h for details.
+#define NOGDICAPMASKS // CC_*, LC_*, PC_*, CP_*, TC_*, RC_
+#define NOVIRTUALKEYCODES // VK_*
+#define NOWINMESSAGES // WM_*, EM_*, LB_*, CB_*
+#define NOWINSTYLES // WS_*, CS_*, ES_... | feat(bench): add debug code to force process affinity with MSVC | null | nfrechette/acl | MIT License | C++ |
@@ -34,6 +34,9 @@ class Shop extends Component {
routingStore.setTag({});
}
+ @trackProductListViewed()
+ componentDidUpdate() {}
+
setPageSize = (pageSize) => {
this.props.routingStore.setSearch({ limit: pageSize });
this.props.uiStore.setPageSize(pageSize);
| feat: track on update | null | reactioncommerce/example-storefront | Apache License 2.0 | JavaScript |
@@ -2,15 +2,21 @@ import Head from 'zefir/head'
import React from 'react'
const {OPTIMIZELY_KEY} = process.env
+const isDesktop = window.innerWidth > 768
+const robotoFontLink = <link
+ href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700'
+ rel='stylesheet' />
+const ptMonoFontLink = <link
+ href='http... | feat: use system fonts on mobile devices | null | syncano/website | MIT License | JavaScript |
@@ -74,6 +74,9 @@ public class FeatureFlags implements Serializable {
"Collaboration Engine backend for clustering support",
"collaborationEngineBackend",
"https://github.com/vaadin/platform/issues/1988", true, null);
+ public static final Feature GRID_MULTI_SORT_PRIORITY_APPEND = new Feature(
+ "Grid MultiSort priorit... | feat: add feature flag for Grid multi-sort priority | null | vaadin/flow | Apache License 2.0 | Java |
@@ -252,3 +252,22 @@ class Client:
def user_get(self, key):
"""Get user defined key-value pairs across processes."""
return self.proxy.user_get(key)
+
+
+def main(port=0, verbose=True):
+ mm_server_port = create_mm_server("0.0.0.0", 0)
+ server = ThreadXMLRPCServer(("0.0.0.0", port), logRequests=verbose)
+ server.regis... | feat(mge): support python -m megengine.distributed.server | null | megengine/megengine | Apache License 2.0 | Python |
@@ -132,6 +132,7 @@ func ParseCommitsInfo(info []CommitInfo) string {
"feat": {},
"deps": {},
"break": {},
+ "chore": {},
"other": {},
}
@@ -141,9 +142,10 @@ func ParseCommitsInfo(info []CommitInfo) string {
if index != -1 {
msg = msg[:index-1]
}
- prefix := []string{"fix", "feat", "deps", "break"}
+ prefix := []string... | feat(cmd/changelog): add chore group | null | go-kratos/kratos | MIT License | Go |
// primitive_types6.rs
// Use a tuple index to access the second element of `numbers`.
-// You can put this right into the `println!` where the ??? is.
+// You can put the expression for the second element where ??? is so that the test passes.
// Execute `rustlings hint primitive_types6` for hints!
// I AM NOT DONE
-fn... | feat(primitive_types6): Add a test | null | rust-lang/rustlings | MIT License | Rust |
@@ -390,8 +390,8 @@ BCHAR * BoatVenachainGetNodesInfo(BoatVenachainTx *tx_ptr,nodesResult *result_ou
BCHAR *call_result_str = NULL;
RlpEncodedStreamObject * rlp_stream_ptr;
RlpObject rlp_object_list;
- RlpObject rlp_object_txtype;
- BUINT64 txtype;
+ // RlpObject rlp_object_txtype;
+ // BUINT64 txtype;
RlpObject rlp_ob... | feat(venachain): Ignore the use of txtype | null | aitos-io/boat-x-framework | Apache License 2.0 | C |
@@ -192,8 +192,8 @@ $.fn.form = function(parameters) {
$calendar = $field.closest(selector.uiCalendar),
defaultValue = $field.data(metadata.defaultValue) || '',
isCheckbox = $element.is(selector.uiCheckbox),
- isDropdown = $element.is(selector.uiDropdown),
- isCalendar = ($calendar.length > 0),
+ isDropdown = $element.... | feat(form): check for existing calendar, dropdown or checkbox modules | null | fomantic/fomantic-ui | MIT License | JavaScript |
@@ -75,7 +75,7 @@ pub type Result<T, E = Error> = std::result::Result<T, E>;
/// way to denote them (we need to add a `u` suffix support).
///
pub fn expr_to_rpc_predicate(expr: &str) -> Result<RPCPredicate> {
- let dialect = sqlparser::dialect::GenericDialect {};
+ let dialect = sqlparser::dialect::PostgreSqlDialect {... | feat: support for regex comparisons in storage CLI | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -340,6 +340,31 @@ impl Context {
{
Ok(_) => ControlFlow::Break(Ok(())),
Err(CasFailure::QueryError(e)) => ControlFlow::Continue(e),
+ Err(CasFailure::ValueMismatch(observed))
+ if observed == new_sort_key_str =>
+ {
+ // A CAS failure occurred because of a concurrent
+ // sort key update, however the new catalog sor... | feat(persist): accept concurrent matching updates | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -75,7 +75,7 @@ private void OnGUI()
addHaptics = EditorGUILayout.Toggle("Add Haptics", addHaptics);
EditorGUILayout.Space();
- if(GUILayout.Button("Setup selected object", GUILayout.Height(40)))
+ if(GUILayout.Button("Setup selected object(s)", GUILayout.Height(40)))
{
SetupObject();
}
@@ -83,9 +83,10 @@ private voi... | feat(setupWindow): support multi selection | null | extendrealityltd/vrtk | MIT License | C# |
@@ -32,11 +32,18 @@ def update_document_title(doctype, docname, title_field=None, old_title=None, ne
return docname
-def rename_doc(doctype, old, new, force=False, merge=False, ignore_permissions=False, ignore_if_exists=False, show_alert=True):
- """
- Renames a doc(dt, old) to doc(dt, new) and
- updates all linked fie... | feat: option to not rebuild search on rename | null | frappe/frappe | MIT License | Python |
+import {getWindow} from './window';
+
+/**
+ * Get an object containing the values of all CSS properties of an element.
+ * @param element - element for which to get the computed style
+ * */
+export function getComputedStyle(element: Element): CSSStyleDeclaration {
+ return getWindow(element).getComputedStyle(element... | feat: create helpers for working with the element as part esl-util DOM helpers | null | exadel-inc/esl | MIT License | TypeScript |
@@ -27,7 +27,7 @@ func (d *App) Init(opt InitOption) error {
}
sv := out.Services[0]
- td, tdTags, err := d.DescribeTaskDefinition(ctx, *sv.TaskDefinition)
+ td, _, err := d.DescribeTaskDefinition(ctx, *sv.TaskDefinition)
if err != nil {
return errors.Wrap(err, "failed to describe task definition")
}
@@ -45,7 +45,6 @@ ... | feat: not create taskdefinition tags on init | null | kayac/ecspresso | MIT License | Go |
@@ -95,7 +95,7 @@ class AuditableTest extends AuditingTestCase
'updated',
'deleted',
'restored',
- ], $model->getAuditEvents());
+ ], $model->getAuditEvents(), true);
}
/**
@@ -114,7 +114,7 @@ class AuditableTest extends AuditingTestCase
$this->assertArraySubset([
'published' => 'publishedHandler',
'archived',
- ], $mo... | feat(Auditable): enable strict mode when testing with assertArraySubset() | null | owen-it/laravel-auditing | MIT License | PHP |
@@ -242,6 +242,7 @@ func (s msgServer) RegisterAsset(c context.Context, req *types.RegisterAssetRequ
}
s.nexus.RegisterAsset(ctx, req.Chain, req.Denom)
+ s.nexus.RegisterAsset(ctx, exported.Axelarnet.Name, req.Denom)
s.BaseKeeper.RegisterAssetToCosmosChain(ctx, req.Denom, req.Chain)
return &types.RegisterAssetResponse{... | feat(axelarnet): register asset on axelarnet | null | axelarnetwork/axelar-core | Apache License 2.0 | Go |
@@ -47,12 +47,13 @@ def revert_deprecation(revert_msg=None):
class RevertContextManager:
- def __init__(self, revert_msg=None):
+ def __init__(self, revert_msg=None, dev_revert_msg=None):
self.revert_msg = revert_msg
+ self.dev_revert_msg = dev_revert_msg
self.always_transact = CONFIG.argv["always_transact"]
- if rever... | feat: target dev revert reason with brownie.reverts | null | eth-brownie/brownie | MIT License | Python |
-const siteUrl = process.env.SITE_URL || 'https://nivo.rocks' // no trailing slash
+// 1. custom env var
+// 2. netlify deployment
+// 3. main site
+const siteUrl = process.env.SITE_URL || process.env.DEPLOY_URL || 'https://nivo.rocks' // no trailing slash
module.exports = {
siteMetadata: {
| feat(website): use netlify url if available | null | plouc/nivo | MIT License | JavaScript |
+using System.Globalization;
using Microsoft.Extensions.Logging;
using Serilog;
+using Serilog.Core;
using Serilog.Events;
using Xunit.Abstractions;
@@ -12,11 +14,26 @@ public static class ServiceCollectionLoggingExtensions
{
var serilogLogger = new LoggerConfiguration()
.MinimumLevel.Verbose()
- .WriteTo.TestOutput(ou... | feat: add thread id to logging in test output | null | bunit-dev/bunit | MIT License | C# |
@@ -111,11 +111,11 @@ class Forms
switch ($property['type']) {
// Simple text-input, for multi-line fields.
case 'textarea':
- $form_element = Form::textarea($element, $form_value, $property['attributes']);
+ $form_element = $this->textareaField($element, $form_value, $property['attributes']);
break;
// The hidden fiel... | feat(core): add textareaField and hiddenField - Forms | null | flextype/flextype | MIT License | PHP |
@@ -13,7 +13,6 @@ import { IResearch } from 'src/models/research.models'
import { IUploadedFileMeta } from 'src/stores/storage'
import { ResearchComments } from './ResearchComments/ResearchComments'
import styled from '@emotion/styled'
-import { AuthWrapper } from 'src/components/Auth/AuthWrapper'
interface IProps {
up... | feat: make research comments available to all users | null | onearmy/community-platform | MIT License | TypeScript |
@@ -92,7 +92,7 @@ mixin EventHandlerMixin on Node {
}
void handleMouseEvent(String eventType, { PointerDownEvent down, PointerUpEvent up }) {
- RenderBoxModel root = elementManager.getRootElement().renderBoxModel;
+ RenderBoxModel root = elementManager.viewportElement.renderBoxModel;
Offset globalOffset = root.globalTo... | feat: modify root | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -422,6 +422,7 @@ Maybe<std::string> debug::compare_tensor_value(const HostTensorND& v0,
return do_compare_tensor_value<DTypeTrait<_dt>::ctype>( \
expr0, expr1, v0, v1, maxerr);
MEGDNN_FOREACH_COMPUTING_DTYPE(cb)
+ cb(::megdnn::dtype::Bool)
#undef cb
default:
mgb_throw(MegBrainError, "unhandled dtype: %s", dtype.name... | feat(imperative): add helper for dnn opr caller | null | megengine/megengine | Apache License 2.0 | C++ |
@@ -30,12 +30,15 @@ struct InterpolatedVertex {
*/
double t;
- bool operator==(const InterpolatedVertex& u) const {
- return this->first == u.first && this->second == u.second &&
- std::fabs(this->t - u.t) <= std::numeric_limits<double>::epsilon();
+ constexpr bool operator==(const InterpolatedVertex& other) const noex... | feat: style use noexcept | null | cesiumgs/cesium-native | Apache License 2.0 | C |
@@ -293,6 +293,10 @@ class Response extends SwooleResponse
}
$item = $this->output($item, $rule['type']);
+ // If filter is set, parse the item
+ if(self::isFilter()){
+ $item = self::getFilter()->parse($item, $rule['type']);
+ }
}
}
}
| feat: apply parse method if filter is present | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -29,7 +29,8 @@ frappe.call = function(opts) {
if (!frappe.is_online()) {
frappe.show_alert({
indicator: 'orange',
- message: __('You are not connected to Internet. Retry after sometime.')
+ message: __('Connection Lost'),
+ subtitle: __('You are not connected to Internet. Retry after sometime.')
}, 3);
opts.always &... | feat: better connection lost message | null | frappe/frappe | MIT License | JavaScript |
@@ -342,7 +342,9 @@ auto waybar::modules::Network::update() -> void {
fmt::arg("bandwidthDownBits", pow_format(bandwidth_down * 8ull / interval_.count(), "b/s")),
fmt::arg("bandwidthUpBits", pow_format(bandwidth_up * 8ull / interval_.count(), "b/s")),
fmt::arg("bandwidthDownOctets", pow_format(bandwidth_down / interval... | feat: added network speed in Bytes | null | alexays/waybar | MIT License | C++ |
@@ -58,6 +58,10 @@ enum class ClapprOption(val value: String) {
/**
* String that represents default subtitle
*/
- DEFAULT_SUBTITLE("defaultSubtitle")
+ DEFAULT_SUBTITLE("defaultSubtitle"),
+ /**
+ * String that represents chromeless state for player
+ */
+ CHROMELESS("chromeless")
}
\ No newline at end of file
| feat: create chromeless option | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -29,7 +29,7 @@ emitter()->addListener('onEntriesFetchSingleHasResult', static function (): void
emitter()->addListener('onEntriesCreate', static function (): void {
- if (! registry()->get('flextype.settings.entries.collections.default.fields.created_at.enabled')) {
+ if (! registry()->get('methods.fetch.collection.... | feat(fields): update `CreatedAtField` | null | flextype/flextype | MIT License | PHP |
@@ -240,11 +240,30 @@ void FoldingConvBiasDimshufflePass::apply(OptState& opt) const {
&readers](OperatorNodeBase* opr) {
ThinHashSet<OperatorNodeBase*> opr_set;
ThinHashSet<OperatorNodeBase*> reader_set;
+ // check typecvt
+ auto typecvt = try_cast_as_op<opr::TypeCvt>(opr);
+ if (typecvt == nullptr)
+ return false;
+ ... | feat(mgb/gopt): fix folding conv dimshuffle pass | null | megengine/megengine | Apache License 2.0 | C++ |
@@ -1241,6 +1241,9 @@ impl EditView {
/// Opens the find dialog (Ctrl+F)
pub fn start_search(&self) {
+ if self.search_bar.get_search_mode() {
+ self.stop_search();
+ } else {
self.search_bar.set_search_mode(true);
self.replace.replace_expander.set_expanded(false);
self.replace.replace_revealer.set_reveal_child(false);... | feat(edit_view): open/close find&replace dialog upon triggering action again | null | cogitri/tau | MIT License | Rust |
@@ -53,6 +53,10 @@ const ActionButton = styled.div`
class CheckoutActionComplete extends Component {
static propTypes = {
+ /**
+ * The text for the "Change" button text.
+ */
+ changeButtonText: PropTypes.string,
/**
* You can provide a `className` prop that will be applied to the outermost DOM element
* rendered by t... | feat: added text override on CheckoutActionComplete | null | reactioncommerce/reaction-component-library | Apache License 2.0 | JavaScript |
import { implementsFunction } from "@thi.ng/checks";
+import { isNumber } from "@thi.ng/checks";
+import { ReadonlyVec } from "@thi.ng/vectors";
import { IGridLayout, ILayout, LayoutBox } from "./api";
const DEFAULT_SPANS: [number, number] = [1, 1];
@@ -43,6 +45,21 @@ export class GridLayout implements IGridLayout {
th... | feat(imgui): add GridLayout.spansForSize/colsForWidth/rowsForHeight | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
package notifyv2
import (
+ "fmt"
+
"yunion.io/x/jsonutils"
api "yunion.io/x/onecloud/pkg/apis/notify"
@@ -100,4 +102,30 @@ func init() {
printList(ret, modules.Notification.GetColumns(s))
return nil
})
+ type NotificationEventInput struct {
+ Event string
+ Priority string
+ MsgBody string
+ }
+ R(&NotificationEventIn... | feat(climc): add notify-event-send | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -1470,6 +1470,21 @@ mod test {
Ok(())
}
+ #[test]
+ fn parse_scientific_float() -> Result {
+ let input = "m0 field=-1.234456e+06 1615869152385000000";
+ //let input = "m0 field=10";
+ let parsed = parse(input);
+
+ assert!(
+ matches!(parsed, Err(super::Error::CannotParseEntireLine { .. })),
+ "Wrong error: {:?}",
... | feat: support sicientific float data type | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
import datetime
import logging
+import traceback
from abc import abstractmethod
from dataclasses import dataclass, field
from enum import Enum
@@ -762,8 +763,25 @@ class SQLAlchemySource(StatefulIngestionSourceBase):
self.report.report_dropped(dataset_name)
continue
- columns = self._get_columns(dataset_name, inspector... | feat(ingest): sql-sources - prevent hard failure on table/view ingestion exceptions | null | linkedin/datahub | Apache License 2.0 | Python |
@@ -260,4 +260,56 @@ class AuditingTest extends AuditingTestCase
'id' => 1,
], $audit->new_values, true);
}
+
+ /**
+ * @test
+ */
+ public function itWillKeepAllAudits()
+ {
+ $this->app['config']->set('audit.threshold', 0);
+ $this->app['config']->set('audit.events', [
+ 'updated',
+ ]);
+
+ $article = factory(Articl... | feat(Auditing): add threshold/prune tests | null | owen-it/laravel-auditing | MIT License | PHP |
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_update_ts3_dl() {
+ ts3latestdata=$(curl -s "https://www.${remotelocation}/versions/server.json" | jq '.linux')
if [ "${ts3arch}" == "amd64" ]; then
- remotebuildurl=$(curl -s 'https://www.teamspeak.com/versions/server.json' | jq -r '.linux.x86_64.m... | feat(ts3): check checksum for downloaded file | null | gameservermanagers/linuxgsm | MIT License | Shell |
import java.util.Collection;
import java.util.List;
import java.util.Map.Entry;
+import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.jar.Attributes;
import java.util.jar.JarInputStream;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import java.util.stream.Collectors;
import o... | feat(node): Allow "application*.jar" as a service jar as well | null | cloudnetservice/cloudnet-v3 | Apache License 2.0 | Java |
namespace OwenIt\Auditing\Tests;
+use Carbon\Carbon;
+use Mockery;
use Orchestra\Testbench\TestCase;
use OwenIt\Auditing\Models\Audit;
+use OwenIt\Auditing\Tests\Stubs\AuditableModelStub;
class AuditModelTest extends TestCase
{
+ private function setAuditAttributes(Audit $audit)
+ {
+ $audit->id = 1;
+ $audit->event = ... | feat(AuditModelTest): implement class tests | null | owen-it/laravel-auditing | MIT License | PHP |
@@ -2,7 +2,9 @@ import { Point, Line } from '../../geometry'
import { normalizePoint, toResult } from './util'
import { PortLayout } from './index'
-export interface SideArgs extends PortLayout.CommonArgs {}
+export interface SideArgs extends PortLayout.CommonArgs {
+ strict?: boolean
+}
export interface LineArgs exten... | feat: strict option for line layout | null | antvis/x6 | MIT License | TypeScript |
@@ -136,7 +136,13 @@ final class DcsDepgraph implements Dependencies {
);
return this.dir.resolve(name);
} catch (final MojoExecutionException ex) {
- throw new IllegalStateException(ex);
+ throw new IllegalStateException(
+ String.format(
+ "Dphgraph. Uploading of dependencies file failed for the dependency %s",
+ ori... | feat(#934): add context for exception | null | cqfn/eo | MIT License | Java |
@@ -2,11 +2,19 @@ package hrp
import (
"fmt"
+ "image"
+ "image/jpeg"
+ "image/png"
+ "os"
+ "path/filepath"
"strings"
+ "time"
"github.com/electricbubble/gwda"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
+
+ "github.com/httprunner/httprunner/v4/hrp/internal/builtin"
)
const (
@@ -386,6 +394,13 @@ func runStepI... | feat: take snapshot for each step | null | httprunner/httprunner | Apache License 2.0 | Go |
@@ -2,7 +2,7 @@ import cx from 'classnames'
import React, { HTMLAttributes } from 'react'
import Button from '@pluralsight/ps-design-system-button'
-import { MenuIcon, PlaceholderIcon } from '@pluralsight/ps-design-system-icon'
+import { MenuIcon, ThemeIcon } from '@pluralsight/ps-design-system-icon'
import Theme, { us... | feat(docs): use new theme icon | null | pluralsight/design-system | Apache License 2.0 | TypeScript |
@@ -215,7 +215,10 @@ fun getRoleByArgsN(context: ICommandContext, index: Int, sameGuildAsContext: Boo
val id = (ROLE_MENTION.find(arg) ?: return null).groupValues[1]
context.message.mentionedRoles.firstOrNull { it.id == id } ?: context.shardManager.getRoleById(id)
- } else role
+ } else {
+ if (arg == "everyone") conte... | feat: allow everyone as rolename for the public role | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -139,7 +139,6 @@ func StartService() {
cron.AddJobAtIntervalsWithStartRun("CalculateDomainQuotaUsages", time.Duration(opts.CalculateQuotaUsageIntervalSeconds)*time.Second, models.DomainQuotaManager.CalculateQuotaUsages, true)
cron.AddJobAtIntervalsWithStartRun("CalculateInfrasQuotaUsages", time.Duration(opts.Calcula... | feat(region): remove auto clouaccount syncing coronjob | null | yunionio/yunioncloud | Apache License 2.0 | Go |
'use strict';
+var fs = require('fs');
var path = require('path');
var assign = require('deep-assign');
var root = require('pkg-dir').sync();
-var explorer = require('cosmiconfig')('hops', {
- rcExtensions: true,
- stopDir: root,
- sync: true,
-});
+var cosmiconfig = require('cosmiconfig');
function getDefaultConfig() ... | feat(config): use cosmiconfig for inheritance | null | xing/hops | MIT License | JavaScript |
@@ -28,7 +28,6 @@ import com.ibm.watson.developer_cloud.language_translator.v2.model.TranslationMo
import com.ibm.watson.developer_cloud.language_translator.v2.model.TranslationModels;
import com.ibm.watson.developer_cloud.language_translator.v2.model.TranslationResult;
import com.ibm.watson.developer_cloud.service.Wat... | feat(language-translator): Add newest code directly from generator | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -10,6 +10,12 @@ import (
"github.com/gin-gonic/gin"
)
+var resp *Response
+
+func init() {
+ resp = NewResponse()
+}
+
// Response define a response struct
type Response struct {
Code int `json:"code"`
@@ -24,6 +30,7 @@ func NewResponse() *Response {
}
// Success return a success response
+func Success(c *gin.Contex... | feat: add alias func | null | go-eagle/eagle | MIT License | Go |
@@ -728,13 +728,14 @@ impl AccountSynchronizer {
// balance event
let mut skipped_balance_change_events = Vec::new();
- for (address_before_sync, before_sync_balance, before_sync_outputs) in &addresses_before_sync {
- let address_after_sync = account_ref
- .addresses()
+ for address_after_sync in account_ref.addresses(... | feat(sync): emit balance change events for new addresses | null | iotaledger/wallet.rs | Apache License 2.0 | Rust |
@@ -223,15 +223,20 @@ pub enum OutputFormat {
pub struct ExportCommandArgs {
/// Export the command input to a file.
/// Used to run a set of commands after creating a node with `ockam node create --run commands.json`
- #[arg(global = true, long = "export")]
+ #[arg(global = true, long = "export", hide_short_help = tru... | feat(rust): reduce output for short help command | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -5,15 +5,17 @@ import { system } from '@gympass/yoga-system';
import textStyle from '../textStyle.web';
import { deprecated } from '../../shared';
-const styledText = (type, element = false) => (element
- ? styled[type]
- : styled.p)`
+const styledText = (type, element = false) => {
+ return (element ? styled[type] ... | feat(text): add testId | null | gympass/yoga | MIT License | JavaScript |
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <assert.h>
+
+#include "discord.h"
+
+
+static void print_usage(char *prog)
+{
+ fprintf(stderr, "Usage: %s -i webhook-id -h webhook-token\n", prog);
+ exit(EXIT_FAILURE);
+}
+
+int main(int argc, char *argv[])
+{
+ char *webho... | feat(discord): add bot-webhook.c to demonstrate webhooks usage | null | cee-studio/orca | MIT License | C |
@@ -94,6 +94,8 @@ type Test struct {
rp string
writes Writes
queries []*Query
+ noDefaultMapping bool
+ noWrites bool
}
func NewTest(db, rp string) Test {
@@ -103,6 +105,12 @@ func NewTest(db, rp string) Test {
}
}
+// NewEmptyTest creates an empty test without a default database and retention policy mapping or
+// any... | feat: Empty `Test` that elides writes or a default db / rp | null | influxdata/influxdb | MIT License | Go |
const BaseStemmer = require("./base-stemmer");
const Among = require("./among");
+const stopwords = require('../stopwords/stopwords_sv.json');
class SloveneStemmer extends BaseStemmer {
constructor(tokenizer) {
- super(tokenizer);
+ super(tokenizer, stopwords.words);
this.I_p1 = 0;
}
| feat: Alternative Slovene stopwords | null | axa-group/nlp.js | MIT License | JavaScript |
@@ -162,7 +162,7 @@ if (filesystem()->file($preflightFlextypePath . '/' . $cacheID . '.php')->exists
registry()->set('flextype', $flextypeData);
// Set Flextype base path
-app()->setBasePath(registry()->get('flextype.settings.url'));
+setBasePath(registry()->get('flextype.settings.url'));
// Add Routing Middleware
app(... | feat(flextype): update flextype bootstrap code | null | flextype/flextype | MIT License | PHP |
@@ -137,13 +137,17 @@ class Notion extends OAuth2
/**
* Check if the OAuth email is verified
*
+ * If present, the email is verified. This was verfied through a manual Notion sign up process
+ *
* @param $accessToken
*
* @return bool
*/
public function isEmailVerified(string $accessToken): bool
{
- return false;
+ $ema... | feat: added check for Notion OAuth | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -54,7 +54,7 @@ pub fn execute() -> anyhow::Result<()> {
use anyhow::Context;
use tracing::level_filters::LevelFilter;
use tracing_subscriber::prelude::*;
- use tracing_subscriber::{fmt, registry};
+ use tracing_subscriber::registry;
// This is the FD of a Unix socket on which the host will send the TOML-encoded exec... | feat: log `exec-wasmtime` to stderr | null | enarx/enarx | Apache License 2.0 | Rust |
@@ -18,8 +18,8 @@ test('test find() method', function () {
});
test('test find_filter() method', function () {
- $this->assertTrue(find_filter(PATH['project'])->hasResults());
- $this->assertTrue(find_filter(PATH['project'], [])->hasResults());
- $this->assertTrue(find_filter(PATH['project'], [], 'files')->hasResults()... | feat(tests): fix tests for find_filter | null | flextype/flextype | MIT License | PHP |
@@ -102,11 +102,21 @@ class _ProjectBase:
finally:
os.chdir(cwd)
- for data in build_json.values():
+ for alias, data in build_json.items():
if self._build_path is not None:
- path = self._build_path.joinpath(f"contracts/{data['contractName']}.json")
+ if alias == data["contractName"]:
+ # if the alias == contract name... | feat: store dependency build artifacts at `build/contracts/dependencies/` | null | eth-brownie/brownie | MIT License | Python |
@@ -10,6 +10,14 @@ class InstanceUserRoleRequestsController < ApplicationController
end
def new
+ @existing_role_request = @user_role_request.
+ instance.user_role_requests.
+ where(creator_id: current_user.id, workflow_state: :pending).first
+ if @existing_role_request
+ redirect_to edit_instance_user_role_request_pat... | feat(instance user role request): redirect new page to edit page if there is an existing request and prevent update when a request is not pending | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -69,7 +69,6 @@ export const ServerConfigurationDriversForm = observer<Props>(function ServerCon
<Group maximum gap>
<GroupTitle>{translate('administration_disabled_drivers_title')}</GroupTitle>
<Combobox
- id='ss'
keySelector={item => item.id}
valueSelector={value => value.name || value.id}
iconSelector={value => va... | feat(plugin-connections-administration): typo | null | dbeaver/cloudbeaver | Apache License 2.0 | TypeScript |
@@ -7,20 +7,31 @@ import { useContext } from 'react';
const InlineRefResolverContext = React.createContext<SchemaTreeRefDereferenceFn | undefined>(void 0);
InlineRefResolverContext.displayName = 'InlineRefResolverContext';
-interface InlineRefResolverProviderTypes {
+type InlineRefResolverProviderProps =
+ | {
document... | feat(inline-ref-resolver): allow passing fully custom resolver functions | null | stoplightio/elements | Apache License 2.0 | TypeScript |
@@ -92,6 +92,15 @@ namespace acl
using sample_type = rtm::vector4f;
using desc_type = track_desc_scalarf;
};
+
+ template<>
+ struct track_traits<track_type8::qvvf>
+ {
+ static constexpr track_category8 category = track_category8::transformf;
+
+ using sample_type = rtm::qvvf;
+ using desc_type = track_desc_transformf... | feat(compression): add transform track trait | null | nfrechette/acl | MIT License | C |
@@ -461,21 +461,18 @@ public class Broker {
}
private void requestExtraWorkersIfAppropriate(Job job) {
- if (job.originPointSet == null) {
- // Don't autoscale for freeform pointset analyses until they are tested more thoroughly.
WorkerCategory workerCategory = job.workerCategory;
int categoryWorkersAlreadyRunning = wo... | feat(freeform): allow (limited) autoscaling for analyses with freeform origins | null | conveyal/r5 | MIT License | Java |
@@ -108,13 +108,8 @@ export default function SearchModal({ onClose }: Props) {
return item.breadcrumbs.join(" / ");
}
- const {
- isOpen,
- getMenuProps,
- getInputProps,
- getComboboxProps,
- getItemProps,
- } = useCombobox<SearchResult>({
+ const { getMenuProps, getInputProps, getComboboxProps, getItemProps } = useCo... | feat(docs): don't hide search results when out of focus | null | kiwicom/orbit | MIT License | TypeScript |
@@ -3,7 +3,7 @@ public protocol SolanaTokensRepository {
}
extension SolanaTokensRepository {
- func getTokensList() async throws -> Set<Token> {
+ public func getTokensList() async throws -> Set<Token> {
try await getTokensList(useCache: true)
}
}
| feat(token-repo): fix visible | null | p2p-org/solana-swift | MIT License | Swift |
@@ -210,6 +210,7 @@ class Project(_ProjectBase):
self._compile(changed, self._compiler_config, False)
self._compile_interfaces(interface_hashes)
self._create_containers()
+ self._clear_dev_deployments()
self._load_deployments()
# add project to namespaces, apply import blackmagic
@@ -296,30 +297,101 @@ class Project(_P... | feat: add deployment map | null | eth-brownie/brownie | MIT License | Python |
@@ -84,7 +84,7 @@ class ApiApplicationHydrator extends ClassMethods
$data['contact'] = parent::extract($object->getContact());
$data['contact']['image'] =
$object->getContact()->getImage()
- ? $object->getContact()->getImage()->getUri()
+ ? $this->serverUrl . $object->getContact()->getImage()->getUri()
: null
;
$data['... | feat(Applications): api/apply: use canonical urls for contact image | null | cross-solution/yawik | MIT License | PHP |
@@ -153,6 +153,19 @@ object DiscordMethods {
val arg = args[0].toIntOrNull() ?: 1
" \u200B".repeat(arg)
}),
+ Method("accountCreated", { env ->
+ val guild: Guild = env.getReifiedX("guild")
+ val user: User = env.getReifiedX("user")
+ user.timeCreated.asEpochMillisToDateTime(Container.instance.daoManager, guild.idLong,... | feat: accountCreated jagtag field | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -19,6 +19,7 @@ type cacheObject struct {
type fileCache struct {
cache *concurrentMap
cachePath string
+ dirty bool
}
func (fc *fileCache) Init(cachePath string) {
@@ -40,10 +41,10 @@ func (fc *fileCache) Init(cachePath string) {
}
func (fc *fileCache) Close() {
- cache := fc.cache.list()
- if len(cache) == 0 {
+ if... | feat(cache): only write when dirty | null | jandedobbeleer/oh-my-posh | MIT License | Go |
@@ -192,7 +192,7 @@ class ConnectionOptions {
using BackgroundThreadsFactory =
std::function<std::unique_ptr<BackgroundThreads>()>;
- BackgroundThreadsFactory background_threads_factory() {
+ BackgroundThreadsFactory background_threads_factory() const {
return background_threads_factory_;
}
| feat: const qualify ConnectionOptions::background_threads_factory() (googleapis/google-cloud-cpp-spanner#1240) | null | googleapis/google-cloud-cpp | Apache License 2.0 | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.