diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -11,6 +11,7 @@ namespace Flextype;
use Twig_Extension;
use Twig_SimpleFunction;
+use Twig_SimpleFilter;
class YamlTwigExtension extends Twig_Extension
{
@@ -40,6 +41,19 @@ class YamlTwigExtension extends Twig_Extension
];
}
+ /**
+ * Returns a list of filters to add to the existing list.
+ *
+ * @return array
+ */
+... | feat(core): add yaml_encode and yaml_decode twig filter | null | flextype/flextype | MIT License | PHP |
@@ -19,6 +19,32 @@ import Starscream
import IBMSwiftSDKCore
internal class SpeechToTextSocket: WebSocketDelegate {
+ // TODO: need to figure out what this does
+ func didReceive(event: WebSocketEvent, client: WebSocket) {
+ switch event {
+ case .connected(let headers):
+ self.websocketDidConnect(socket: client)
+ case... | feat(websockets): update to match starscream 4.X protocols | null | watson-developer-cloud/swift-sdk | Apache License 2.0 | Swift |
@@ -5,6 +5,7 @@ namespace App\Service\DataCustom;
use App\Service\Data\CsvReader;
use App\Service\Content\ManualHelper;
use App\Common\Service\Redis\Redis;
+use stdClass;
class Item extends ManualHelper
{
@@ -22,6 +23,7 @@ class Item extends ManualHelper
$item->Materia = $item->Materia ?? null;
// do stuff
+ $this->pro... | feat(item): added embed bonuses and stats for eligible items | null | xivapi/xivapi.com | MIT License | PHP |
@@ -14,16 +14,23 @@ export function formatToBase64({
const reader = new FileReader() //eslint-disable-line
reader.readAsDataURL(file)
let originalBase64
- let exifOrientation
return new Promise((resolve, reject) => {
reader.onload = () => {
getExifOrientation(file)
.then(getExifOrientationResult => {
- exifOrientation ... | feat(molecule/photoUploader): add initial rotation based on EXIF metadata | null | sui-components/sui-components | MIT License | JavaScript |
@@ -135,7 +135,8 @@ os.ui.windowDirective = function() {
'windowContainer': '@',
/* Array.<os.ui.window.HeaderBtnConfig> */
'headerBtns': '=?',
- 'border': '='
+ 'border': '=',
+ 'bottom': '=?'
},
templateUrl: os.ROOT + 'views/window/window.html',
controller: os.ui.WindowCtrl,
@@ -660,7 +661,10 @@ os.ui.WindowCtrl = fu... | feat(window): add ability to position a window by 'bottom' | null | ngageoint/opensphere | Apache License 2.0 | JavaScript |
public partial class AppComponentBase : ComponentBase
{
- [AutoInject] private IExceptionHandler exceptionHandler = default!;
+ [AutoInject] protected IExceptionHandler exceptionHandler = default!;
protected async sealed override Task OnInitializedAsync()
{
| feat(templates): change the access modifier of exceptionHandler in the base component class of the TodoTemplate | null | bitfoundation/bitframework | MIT License | C# |
@@ -57,6 +57,179 @@ extension Web3 {
self.isPayRequest = isPayRequest
self.targetAddress = targetAddress
}
+<<<<<<< HEAD
+=======
+
+ public func makeEIP681Link() -> String? {
+ let address: String
+ switch targetAddress {
+ case .ethereumAddress(let ethereumAddress):
+ address = ethereumAddress.address
+ case let .ens... | feat: encoding query parameters for EIP681 - except tuples, this is still a TODO | null | skywinder/web3swift | Apache License 2.0 | Swift |
@@ -11,6 +11,7 @@ namespace Flextype;
use Flextype\Component\Arr\Arr;
use Flextype\Component\Form\Form;
+use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use function count;
use function Flextype\Component\I18n\__;
@@ -46,13 +47,12 @@ class Forms
*
* @access pu... | feat(core): add new protected methods in Forms class | null | flextype/flextype | MIT License | PHP |
+import Accordion from './Accordion';
+import AccordionSection from './AccordionSection';
import Avatar from './Avatar';
+import AvatarMenu from './AvatarMenu';
import Badge from './Badge';
import Button from './Button';
import ButtonGroup from './ButtonGroup';
+import ButtonIcon from './ButtonIcon';
import ButtonMenu ... | feat: add new components to global index export | null | nexxtway/react-rainbow | MIT License | JavaScript |
@@ -25,8 +25,12 @@ class ViewController: UIViewController {
}
func listenToPlayerEvents() {
+ player.on(Event.willPlay) { _ in print("on willPlay") }
+
player.on(Event.playing) { _ in print("on Play") }
+ player.on(Event.willPause) { _ in print("on willPause") }
+
player.on(Event.didPause) { _ in print("on Pause") }
pl... | feat: make sample's player listen to willPlay and willPause events on tvos | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -38,6 +38,9 @@ var (
// Spaces are always added between operands and a newline is appended.
// It returns the number of bytes written and any write error encountered.
Fprintln = color.Fprintln
+
+ // RemoveColors removes color codes from a string.
+ RemoveColors = color.ClearCode
)
// Foreground colors. basic foregr... | feat: add `RemoveColors` | null | pterm/pterm | MIT License | Go |
@@ -184,6 +184,12 @@ impl<M: Message> Routed<M> {
pub fn payload(&self) -> &[u8] {
&self.local_msg.transport().payload
}
+
+ /// Get underlying binary message payload
+ #[inline]
+ pub fn take_payload(self) -> Vec<u8> {
+ self.local_msg.into_transport_message().payload
+ }
}
impl<M: Message> Deref for Routed<M> {
| feat(rust): add `take_payload` to `Routed` | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -3,6 +3,8 @@ import * as System from "~/components/system";
import * as Styles from "~/common/styles";
import * as SVG from "~/common/svg";
+import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper";
+
import { css } from "@emotion/react";
const STYLES_SAVING_SHORTCUT_ICON = (theme) => css`
@@ ... | feat(pages/extension-onboarding): update jumper shortcut and add page title | null | filecoin-project/slate | MIT License | JavaScript |
{!! $js !!}
+ <script id="flarum-json-payload" type="application/json">@json($payload)</script>
+
<script>
+ const data = JSON.parse(document.getElementById('flarum-json-payload').textContent);
document.getElementById('flarum-loading').style.display = 'none';
try {
- flarum.core.app.load(@json($payload));
+ flarum.core... | feat: split preloaded JSON payload and frontend boot into separate <script> tags | null | flarum/core | MIT License | PHP |
@@ -47,6 +47,10 @@ func listMergeRequest(cmd *cobra.Command, args []string) error {
l.PerPage = p
}
+ if mine, _ := cmd.Flags().GetBool("mine"); mine {
+ l.Scope = gitlab.String("assigned_to_me")
+ }
+
gitlabClient, repo := git.InitGitlabClient()
if r, _ := cmd.Flags().GetString("repo"); r != "" {
repo, _ = fixRepoName... | feat: add `mr list` flag `mine` | null | profclems/glab | MIT License | Go |
@@ -25,6 +25,10 @@ func (p ParagraphPrinter) WithMaxWidth(width int) *ParagraphPrinter {
// Sprint formats using the default formats for its operands and returns the resulting string.
// Spaces are added between operands when neither is a string.
func (p ParagraphPrinter) Sprint(a ...interface{}) string {
+ if RawOutpu... | feat(paragraph): add raw output mode | null | pterm/pterm | MIT License | Go |
@@ -84,15 +84,14 @@ if Code.ensure_loaded?(ConfigParser) do
defp rename_sso_credential_keys(role_credentials) do
# TODO: make this future proof and just convert all to snake case or be explicit?
- Enum.into(role_credentials, %{}, fn {k, v} ->
- case k do
- "accessKeyId" -> {:access_key_id, v}
- "expiration" -> {:expira... | feat(creds): improve durability of get-role-credentials | null | ex-aws/ex_aws | MIT License | Elixir |
@@ -38,8 +38,12 @@ const styles = (theme) => ({
class CartPage extends Component {
static propTypes = {
cart: PropTypes.shape({
+ totalItems: PropTypes.number,
items: PropTypes.arrayOf(PropTypes.object),
checkout: PropTypes.shape({
+ fulfillmentTotal: PropTypes.shape({
+ displayAmount: PropTypes.string
+ }),
itemTotal:... | feat: use cart data for summary component | null | reactioncommerce/example-storefront | Apache License 2.0 | JavaScript |
@@ -79,6 +79,7 @@ export class PatternListContainer extends React.Component<PatternListContainerPr
result.push({
value: pattern.getId(),
draggable: true,
+ icon: pattern.getIconPath(),
handleDragStart: (e: React.DragEvent<HTMLElement>) => {
this.handleDragStart(e, pattern);
},
@@ -109,6 +110,7 @@ export class PatternLi... | feat(component): integrate icon in pattern list | null | meetalva/alva | MIT License | TypeScript |
@@ -6,7 +6,6 @@ open class AVFoundationPlayback: Playback {
"m3u8": "application/x-mpegurl",
]
- private var kvoSeekableTimeRangesContext = 0
private var kvoBufferingContext = 0
private var kvoExternalPlaybackActiveContext = 0
private var kvoPlayerRateContext = 0
@@ -269,10 +268,9 @@ open class AVFoundationPlayback: Pl... | feat: handle currentItem seekableTimeRange changes with newer kvo syntax | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -132,9 +132,9 @@ public final class OptimizeMojo extends SafeMojo {
this, "Running %s optimizations in parallel",
tasks.size()
);
- final long done = tasks.stream()
- .parallel()
- .mapToInt(this::executeOptimizationTask).sum();
+ final int done = tasks.stream()
+ .parallel().mapToInt(OptimizeMojo::executeOptimizati... | feat(#1347): add javadocs for utility methods | null | cqfn/eo | MIT License | Java |
@@ -133,7 +133,7 @@ void parse_args( const vector<string>& args
exit(0);
}
- if (args.size() < 3) {
+ if (args.size() < 2) {
usage(std::cerr, args[0], "Too few arguments");
exit(1);
}
| feat(test/test-dht): Two args are enough now | null | equalitie/ouinet | MIT License | C++ |
@@ -27,7 +27,7 @@ namespace Adaptive.ReactiveTrader.Server.TradeExecution
public async Task<ExecuteTradeResponseDto> ExecuteAsync(ExecuteTradeRequestDto request, string user)
{
var id = await _tradeIdProvider.GetNextId();
- var tradeDate = DateTimeOffset.UtcNow.Date;
+ var tradeDate = DateTimeOffset.UtcNow;
DateTimeOff... | feat(server): fix wrong date displayed in blotter | null | adaptiveconsulting/reactivetradercloud | Apache License 2.0 | C# |
@@ -36,6 +36,10 @@ class CordovaRunner {
args.push(`--target=${cfg.ctx.emulator}`)
}
+ if (cfg.ctx.targetName === 'ios') {
+ args.push(`--buildFlag=-UseModernBuildSystem=0`)
+ }
+
return this.__runCordovaCommand(
cfg,
args
| feat(@quasar/app): Enforce correct build mode for Cordova on iOS with latest XCode | null | quasarframework/quasar | MIT License | JavaScript |
import React, { Component } from "react";
import PropTypes from "prop-types";
+import withCart from "containers/cart/withCart";
import withCatalogItemProduct from "containers/catalog/withCatalogItemProduct";
import ProductDetail from "components/ProductDetail";
+@withCart
@withCatalogItemProduct
class ProductDetailPage... | feat: add withCart decorator to product page component | null | reactioncommerce/example-storefront | Apache License 2.0 | JavaScript |
@@ -133,6 +133,7 @@ const LOAD_ARTICLE = gql`
replyRequestCount
replyCount
createdAt
+ status
references {
type
}
@@ -353,6 +354,8 @@ function ArticlePage() {
<title>
{ellipsis(article.text, { wordCount: 100 })} | {t`Cofacts`}
</title>
+ {/* Don't let search engines index blocked spam */ article.status ===
+ 'BLOCKED' ... | feat(article): add meta tag that blocks search engine for blocked articles | null | cofacts/rumors-site | MIT License | JavaScript |
@@ -45,6 +45,7 @@ module.exports = (context, target, options = {}, onGetWebpackConfig) => {
.add(`./${entryPath}?role=component`);
config
+ .cache(true)
.mode('production')
.target('node');
| feat(build-plugin-rax-component): add cache | null | raxjs/rax-app | MIT License | JavaScript |
@@ -1156,6 +1156,11 @@ void server_state::drop_app(dsn::message_ex *msg)
} else {
switch (app->status) {
case app_status::AS_AVAILABLE:
+ if (app->splitting()) {
+ // not drop splitting app
+ response.err = ERR_SPLITTING;
+ break;
+ }
do_dropping = true;
app->status = app_status::AS_DROPPING;
app->drop_second = dsn_now... | feat(split): add split check when drop app | null | apache/incubator-pegasus | Apache License 2.0 | C++ |
@@ -249,18 +249,19 @@ ${level ? `Level: ${level}\n` : ""}Username: ${name}`,
s => s.simulatorId === simulator.id && s.type === "ComputerCore",
);
if (!system) return "text";
- return system.terminals.map(t => ({
+ return [{label: "All Terminals", value: "all"}].concat(
+ system.terminals.map(t => ({
label: `${t.name}${... | feat(Tasks): Adds support to the Computer Core Terminal Reset task for having the crew reset every terminal in the computer core. Closes | null | thorium-sim/thorium | Apache License 2.0 | JavaScript |
@@ -493,10 +493,6 @@ public:
JSObjectRef instanceConstructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount,
const JSValueRef *arguments, JSValueRef *exception) override;
- static void traverseCloneNode(JSContextRef ctx, ElementInstance* element, ElementInstance* parentElement);
-
- static JSValueRef c... | feat: move function to private | null | openkraken/kraken | Apache License 2.0 | C |
import bs58 from 'bs58';
import {Buffer} from 'buffer';
-import fetch from 'cross-fetch';
+import crossFetch from 'cross-fetch';
import {
type as pick,
number,
@@ -814,9 +814,11 @@ function createRpcClient(
url: string,
useHttps: boolean,
httpHeaders?: HttpHeaders,
+ customFetch?: typeof crossFetch,
fetchMiddleware?: F... | feat: support overriding fetch function in Connection | null | solana-labs/solana-web3.js | MIT License | TypeScript |
@@ -133,6 +133,10 @@ func (rm *replManager) checkActionLocked() {
// reset the replication manager state and deleting the marker-file.
// it does not start or stop the ticks. Use setReplicationStopped instead to change that.
func (rm *replManager) reset() {
+ if *mysqlctl.DisableActiveReparents {
+ return
+ }
+
rm.mu.L... | feat: change reset function to not do anything when disable-active-reparents is set | null | vitessio/vitess | Apache License 2.0 | Go |
@@ -235,15 +235,10 @@ impl InfluxRPCPlanner {
.await
.expect("to be able to get table schema");
let column_names: Vec<&str> = schema
- .iter()
- .filter_map(|(influx_column_type, field)| {
- if matches!(influx_column_type, Some(InfluxColumnType::Tag)) {
- Some(field.name().as_str())
- } else {
- None
- }
- })
+ .tags_i... | feat: use newly implemented tags_iter to get Tag columns | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -11,8 +11,10 @@ import {
eq,
fit1101,
float,
+ fogExp2,
ifThen,
lambert,
+ mix,
mul,
program,
raymarch,
@@ -20,10 +22,11 @@ import {
raymarchNormal,
ret,
sdAABB,
- sdBlend,
+ sdOpSmoothUnion,
sdSphere,
- Sym,
+ sdTxRepeat3,
sym,
+ Sym,
targetGLSL,
targetJS,
TRUE,
@@ -44,7 +47,7 @@ import {
const JS_MODE = location.h... | feat(examples): update/extends raymarch demo | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
@@ -297,8 +297,42 @@ export function defmultiN<T>(impls: { [id: number]: Implementation<T> }) {
* @param impls
*/
export const implementations = (type: PropertyKey, ...impls: (MultiFn<any> | Implementation<any>)[]) => {
- (impls.length & 1) && illegalArgs("require an even number of implementation items");
+ (impls.leng... | feat(defmulti): add relations() | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
@@ -4,6 +4,7 @@ import json
import os
import re
import shutil
+import sys
import warnings
from collections import defaultdict
from pathlib import Path
@@ -13,6 +14,7 @@ import yaml
from hypothesis import settings as hp_settings
from hypothesis.database import DirectoryBasedExampleDatabase
+from brownie._cli.__main__ im... | feat: add custom user-agent for requests | null | eth-brownie/brownie | MIT License | Python |
-export * from './state.module';
-export * from './utils/index';
+export * from './config/default-state-config';
export * from './config/state-config';
export * from './meta-reducer';
+export * from './state.module';
+export * from './utils/index';
| feat: api review - state | null | sap/spartacus | Apache License 2.0 | TypeScript |
@@ -174,3 +174,10 @@ func (s *Source) DeleteBucket(ctx context.Context, id ID) error {
}
return s.BucketService.DeleteBucket(ctx, id)
}
+
+func (s *Source) Query(ctx context.Context, q *SourceQuery) (*SourceQueryResult, error) {
+ if s.SourceQuerier == nil {
+ return nil, fmt.Errorf("not supported")
+ }
+ return s.Sour... | feat(platform): ensure that Source implements query interface | null | influxdata/influxdb | MIT License | Go |
@@ -38,6 +38,15 @@ func (r *Req) Accept(contentType string) *Req {
return r.Header("Accept", contentType)
}
+// Auth sets the authorization for a request.
+func (r *Req) Auth(authFn func(r *http.Request)) *Req {
+ if r.err != nil {
+ return r
+ }
+ r.authFn = authFn
+ return r
+}
+
// ContentType sets the Content-Type ... | feat(httpc): extend request with Auth beahvior | null | influxdata/influxdb | MIT License | Go |
@@ -5449,15 +5449,18 @@ pub unsafe extern "C" fn wallet_send_transaction(
};
if one_sided {
- match (*wallet)
- .runtime
- .block_on((*wallet).wallet.transaction_service.send_one_sided_transaction(
+ match (*wallet).runtime.block_on(
+ (*wallet)
+ .wallet
+ .transaction_service
+ .send_one_sided_to_stealth_address_tran... | feat: make stealth addresses the default for one sided in ffi | null | tari-project/tari | BSD 3-Clause New or Revised License | Rust |
@@ -64,7 +64,7 @@ final class OyFallbackTest {
void getsObjectWhenPrimaryContains() throws Exception {
MatcherAssert.assertThat(
new TextOf(this.fallback.get("org.example.main")).asString(),
- Matchers.equalTo(primary.source)
+ Matchers.equalTo(this.primary.source)
);
MatcherAssert.assertThat(
this.primary.invocations.... | feat(#1623): fix all qulice suggestions | null | cqfn/eo | MIT License | Java |
@@ -45,6 +45,7 @@ extension DVRPlugin {
private func bindPlaybackEvents() {
guard let playback = playback else { return }
listenToOnce(playback, eventName: Event.bufferUpdate.rawValue) { [weak self] _ in self?.triggerDvrEvent() }
+ listenTo(playback, eventName: Event.didSeek.rawValue) { [weak self] (info: EventUserInfo... | feat: add listenTo didSeek event and sending usingDVR based on the position and minDvrSize | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -73,6 +73,14 @@ test('test delete entry', function () {
$this->assertFalse(flextype('entries')->has('foo'));
});
+test('test move entry', function () {
+ flextype('entries')->create('foo', []);
+
+ $this->assertTrue(flextype('entries')->move('foo', 'bar'));
+ $this->assertTrue(flextype('entries')->has('bar'));
+ $th... | feat(core): add test for move() entry | null | flextype/flextype | MIT License | PHP |
@@ -314,14 +314,13 @@ func (h *AuthHandlers) doCredentialLogin(ctx context.Context, req *http.Request,
// log.Debugf("doCredentialLogin body: %s", body)
cliIp := netutils2.GetHttpRequestIp(req)
if body.Contains("username") {
- uname, _ := body.GetString("username")
-
if h.preLoginHook != nil {
- if err = h.preLoginHook... | feat(yunionapi): pre login hook fix | null | yunionio/yunioncloud | Apache License 2.0 | Go |
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2016-2022 Objectionary.com
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the ... | feat(#934): remove unused interface | null | cqfn/eo | MIT License | Java |
@@ -39,8 +39,8 @@ def bytes_to_mb(num_bytes):
return num_bytes / (1024 * 1024)
if __name__ == "__main__":
- if len(sys.argv) != 2:
- print('Usage: python gen_decomp_delta_stats.py <path/to/input_file.sjson>')
+ if len(sys.argv) != 2 and len(sys.argv) != 3:
+ print('Usage: python gen_decomp_delta_stats.py <path/to/input... | feat(stat): add warm decompression stat aggregation | null | nfrechette/acl | MIT License | Python |
package com.conveyal.r5.profile;
+import com.conveyal.r5.transit.RouteInfo;
import com.conveyal.r5.transit.TransitLayer;
import com.conveyal.r5.transit.TripPattern;
import com.google.common.primitives.Ints;
@@ -238,10 +239,10 @@ public class Path {
for (int i = 0; i < length; i++) {
// TODO use a compact feed index, in... | feat(paths): refine string summaries | null | conveyal/r5 | MIT License | Java |
@@ -163,6 +163,7 @@ class TransactionReceipt:
self._events: Optional[EventDict] = None
self._return_value: Any = None
self._revert_msg: Optional[str] = None
+ self._dev_revert_msg: Optional[str] = None
self._modified_state: Optional[bool] = None
self._new_contracts: Optional[List] = None
self._internal_transfers: Optio... | feat: dev_revert_msg | null | eth-brownie/brownie | MIT License | Python |
@@ -163,6 +163,8 @@ export class NovoChipsElement extends OutsideClick implements OnInit {
});
} else if (this.source.getLabels && typeof this.source.getLabels === 'function') {
noLabels.push(value);
+ } else if (this.source.options) {
+ this.items.push(this.getLabelFromOptions(value));
} else {
this.items.push({
value... | feat(Chips): Adding support for Chips labels to be displayed correctly when only value passed in | null | bullhorn/novo-elements | MIT License | TypeScript |
@@ -182,19 +182,47 @@ mod friendly_date_time {
}
}
+// Parse a string representing the date and time.
+//
+// Accepts any of the formats listed below and builds return an `Option`
+// containing a `DateTimeImpl`.
+//
+// Supported formats:
+//
+// * `default` - `YYYY-MM-DD HH:MM:SS`
+// * `day_month` - `DD Month YYYY H... | feat(core): Add two new date/time formats and tests | null | cobalt-org/liquid-rust | MIT License | Rust |
@@ -12,7 +12,7 @@ use ruma::{
room::history_visibility::HistoryVisibility, AnyStateEvent, AnySyncStateEvent, EventType,
},
serde::Raw,
- UserId,
+ EventId, UserId,
};
use crate::{
@@ -190,14 +190,9 @@ impl Common {
Ok(response)
}
- /// Sends a request to `/_matrix/client/r0/rooms/{roomId}/event/{eventId}`
- /// and ret... | feat(sdk): Simplify the API of Common::event | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
@@ -48,6 +48,9 @@ public class SimpleWebTransport : Transport
[Header("Ssl Settings")]
+ [Tooltip("Sets connect scheme to wss. Useful when client needs to connect using wss when TLS is outside of transport, NOTE: if sslEnabled is true clientUseWss is also true")]
+ public bool clientUseWss;
+
public bool sslEnabled;
[T... | feat(SimpleWebTransport): adding option to allow for tls outside of the transport | null | vis2k/mirror | MIT License | C# |
@@ -72,8 +72,8 @@ class Dropbox extends OAuth
{
$user = $this->getUser($accessToken);
- if (isset($user['id'])) {
- return $user['id'];
+ if (isset($user['account_id'])) {
+ return $user['account_id'];
}
return '';
@@ -88,8 +88,8 @@ class Dropbox extends OAuth
{
$user = $this->getUser($accessToken);
- if (isset($user['... | feat: Dropbox OAuth Added | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -250,6 +250,33 @@ class VerbosityTest extends BaseRollbarTest
);
}
+ /**
+ * Test verbosity of \Rollbar\RollbarLogger::log for reports
+ * rejected by the SDK (response status == 0).
+ *
+ * @return void
+ */
+ public function testRollbarLoggerResponseStatusZero()
+ {
+ $this->rollbarLogTest(
+ array( // config
+ "a... | feat(dev options): test verbosity for reports rejected by the SDK | null | rollbar/rollbar-php | MIT License | PHP |
@@ -28,12 +28,13 @@ class PDFView extends Component {
this.state = {
shouldRequestPassword: false,
shouldAttemptPdfLoad: true,
+ shouldShowLoadingIndicator: true,
isPasswordInvalid: false,
password: '',
};
this.initiatePasswordChallenge = this.initiatePasswordChallenge.bind(this);
this.attemptPdfLoadWithPassword = this... | feat: pdf password form - added loading indicator for mobile | null | expensify/expensify.cash | MIT License | JavaScript |
@@ -53,7 +53,11 @@ export function webpackServer(schema: Schema, context: BuilderContext) {
// The extra Webpack configuration file can export a synchronous or asynchronous function,
// for instance: `module.exports = async config => { ... }`.
if (typeof customWebpackConfiguration === 'function') {
- return customWebpa... | feat(angular): pass additional args to devServer custom configuration function | null | nrwl/nx | MIT License | TypeScript |
@@ -59,6 +59,10 @@ public class CreateTicketPresenter extends BasePresenter<ICreateTicketView> impl
getView().showError("End time should be after start time");
return false;
}
+ if (ticket.minOrder != null && ticket.maxOrder != null && ticket.minOrder > ticket.maxOrder) {
+ getView().showError("Minimum order should be ... | feat: Min. and max. field validation for Create Ticket Form | null | fossasia/open-event-organizer-android | Apache License 2.0 | Java |
@@ -341,7 +341,7 @@ flextype()->patch('/api/entries', function (Request $request, Response $response
});
/**
- * Rename entry
+ * Move entry
*
* endpoint: PUT /api/entries
*
@@ -352,7 +352,7 @@ flextype()->patch('/api/entries', function (Request $request, Response $response
* access_token - [REQUIRED] - Valid Authentic... | feat(entries): use new `move()` method instead of `rename()` | null | flextype/flextype | MIT License | PHP |
@@ -130,8 +130,13 @@ export function formatI18n (message) {
function resolveJsonObj (jsonObj, names) {
if (names.length === 1) {
if (jsonObj) {
- const value = jsonObj[names[0]]
- if (isStr(value) && isI18nStr(value, I18N_JSON_DELIMITERS)) {
+ const _isI18nStr = (value) => isStr(value) && isI18nStr(value, I18N_JSON_DEL... | feat(i18n): h5 titleNView buttons text | null | dcloudio/uni-app | Apache License 2.0 | JavaScript |
@@ -107,6 +107,12 @@ namespace MLAPI
{
_networkedObject = GetComponentInParent<NetworkedObject>();
}
+
+ if (_networkedObject == null)
+ {
+ throw new NullReferenceException("Could not get NetworkedObject for the NetworkedBehaviour. Are you missing a NetworkedObject component?");
+ }
+
return _networkedObject;
}
}
| feat: Added exception messaging when accessing NetworkedBehaviour without object | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -140,6 +140,7 @@ doc_events = {
"frappe.social.doctype.energy_point_rule.energy_point_rule.process_energy_points"
],
"after_insert": "frappe.cache_manager.build_table_count_cache",
+ "on_trash": "frappe.cache_manager.build_table_count_cache",
},
"Event": {
"after_insert": "frappe.integrations.doctype.google_calendar... | feat: rebuild table count cache on trash | null | frappe/frappe | MIT License | Python |
@@ -6,7 +6,7 @@ from packaging.version import Version
from commitizen import cmd, factory, out
from commitizen.__version__ import __version__
-from commitizen.config import BaseConfig, TomlConfig
+from commitizen.config import BaseConfig, JsonConfig, TomlConfig
from commitizen.cz import registry
from commitizen.default... | feat(Init): add the json config support as an option at Init | null | commitizen-tools/commitizen | MIT License | Python |
@@ -391,7 +391,7 @@ export class BaseAxisChart extends BaseChart {
};
// Add y-axis title
- if (this.innerWrap.select(".axis-label.y").nodes().length === 0 || this.options.scales.y.title) {
+ if (this.innerWrap.select(".axis-label.y").nodes().length === 0 && this.options.scales.y.title) {
yAxisRef.append("text")
.attr(... | feat($browser): Add y axis | null | carbon-design-system/carbon-charts | Apache License 2.0 | TypeScript |
+import logging
+import os
+import _winreg
+from pype.lib import PypeHook
+from pypeapp import Logger
+
+log = logging.getLogger(__name__)
+
+
+class CelactionPrelounchHook(PypeHook):
+ """
+ This hook will check if current workfile path has Unreal
+ project inside. IF not, it initialize it and finally it pass
+ path t... | feat(celaction): adding prelaunch | null | pypeclub/openpype | MIT License | Python |
use core::ops::Deref;
use core::sync::atomic::{compiler_fence, Ordering::SeqCst};
use core::cmp::min;
+pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3};
use crate::target::{spim0, SPIM0};
@@ -21,15 +22,15 @@ use crate::gpio::{
};
pub trait SpimExt : Deref<Target=spim0::RegisterBlock> +... | feat: SPIM configuration | null | nrf-rs/nrf-hal | Apache License 2.0 | Rust |
@@ -174,6 +174,15 @@ const plugins = [
],
];
+/** @type {Config["themeConfig"]["algolia"]} */
+const algolia = {
+ apiKey: 'DUMMY',
+ indexName: 'feature-sliced',
+
+ // Optional: see doc section below
+ contextualSearch: true,
+};
+
/** @type {Config["themeConfig"]["announcementBar"]} */
const announcementBar = {
id: ... | feat(website): add algolia (while without apiKey) | null | feature-sliced/documentation | MIT License | JavaScript |
@@ -7,6 +7,7 @@ import (
"strings"
"unicode"
+ "github.com/pyroscope-io/pyroscope/pkg/storage/metadata"
"github.com/pyroscope-io/pyroscope/pkg/structs/flamebearer"
)
@@ -23,6 +24,11 @@ var (
//revive:disable:line-length-limit We want to keep the base64 example in a single line
+type fileTypeDataModel struct {
+ SpyName... | feat(adhoc): support passing custom spyName/unit when uploading | null | pyroscope-io/pyroscope | Apache License 2.0 | Go |
@@ -18,6 +18,7 @@ import (
"context"
"database/sql"
"fmt"
+ "runtime/debug"
"strconv"
"strings"
"time"
@@ -126,10 +127,29 @@ func (manager *SOpsLogManager) LogEvent(model IModel, action string, notes inter
if !consts.OpsLogEnabled() {
return
}
- if len(model.GetId()) == 0 {
- log.Errorf("logevent for an object without ... | feat(cloudcommon): opslog: log joint models | null | yunionio/yunioncloud | Apache License 2.0 | Go |
package decoder
import (
+ "bytes"
"reflect"
"unicode"
"unicode/utf16"
@@ -308,49 +309,30 @@ func (d *stringDecoder) decodeByte(buf []byte, cursor int64) ([]byte, int64, err
cursor++
start := cursor
b := (*sliceHeader)(unsafe.Pointer(&buf)).data
+ escaped := 0
for {
switch char(b, cursor) {
case '\\':
+ escaped++
curso... | feat: improve performance when a payload contains escape sequence | null | goccy/go-json | MIT License | Go |
@@ -301,6 +301,33 @@ class Module(metaclass=ABCMeta):
**kwargs,
)
+ def tensors(self, recursive: bool = True, **kwargs) -> Iterable[Parameter]:
+ r"""
+ Returns an iterable for the :class:`~.Tensor` of the module.
+
+ :param recursive: If ``True``, returns all :class:`~.Tensor` within this
+ module, else only returns :... | feat(module): add tensors and named_tensors | null | megengine/megengine | Apache License 2.0 | Python |
@@ -22,6 +22,11 @@ class Crontab extends AbstractCommand
foreach ($info as $k => $v) {
$data[$k] = $v;
}
+ if (empty($data)) {
+ $response->setMsg("crontab info is abnormal.");
+ $response->setStatus($response::STATUS_COMMAND_ERROR);
+ return false;
+ }
$response->setArgs($data);
}
| feat: crontab show | null | easy-swoole/easyswoole | Apache License 2.0 | PHP |
package com.chesire.malime.kitsu
import android.content.SharedPreferences
+import androidx.core.content.edit
import javax.inject.Inject
private const val ACCESS_TOKEN = "KEY_KITSU_ACCESS_TOKEN"
@@ -13,17 +14,24 @@ class AuthProvider @Inject constructor(
var accessToken: String
get() = decryptData(preferences.getString(... | feat: add method to clear the auth in authprovider | null | chesire/nekome | Apache License 2.0 | Kotlin |
+# Copyright 2019 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writ... | feat(python): add header replacement for proto files | null | googleapis/synthtool | Apache License 2.0 | Python |
@@ -15,8 +15,8 @@ use generated_types::{
Int64ValuesResponse, MeasurementFieldsRequest, MeasurementFieldsResponse,
MeasurementNamesRequest, MeasurementTagKeysRequest, MeasurementTagValuesRequest, Predicate,
ReadFilterRequest, ReadGroupRequest, ReadResponse, ReadSeriesCardinalityRequest,
- ReadWindowAggregateRequest, St... | feat: add support for binary tag key format | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -49,12 +49,14 @@ import (
)
const (
- DEFAULT_LENGTH_RANDOM_LABEL = 4
+ defaultLengthRandomLabel = 4
+ maxLengthUserPrefix = 15
)
var args struct {
region string
rawFiles bool
+ userPrefix string
}
var Cmd = &cobra.Command{
@@ -71,6 +73,9 @@ var Cmd = &cobra.Command{
const (
rawFilesFlag = "raw-files"
+ userPrefixFl... | feat: add user prefix to oidc configuration | null | openshift/rosa | Apache License 2.0 | Go |
+import requests
+import sys
import time
+import warnings
+
from brownie import Contract, ZERO_ADDRESS, accounts
from brownie.network.gas.strategies import GasNowScalingStrategy
+warnings.filterwarnings("ignore")
+
# This script is used to claim fees from all pool contracts
# and "burn" them, converting to 3CRV and sen... | feat: check claimable amount, only claim above threshold | null | curvefi/curve-dao-contracts | MIT License | Python |
@@ -3,7 +3,11 @@ use std::sync::Arc;
use matrix_sdk_base::{locks::RwLock, store::StoreConfig, BaseClient, StateStore};
use ruma::{
api::{
- client::discover::{discover_homeserver, get_supported_versions},
+ client::{
+ discover::{discover_homeserver, get_supported_versions},
+ Error,
+ },
+ error::FromHttpResponseError... | feat(sdk): Detect invalid .well-known endpoint response | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
@@ -290,6 +290,7 @@ class _NetworkAPI(_LiteCObjBase):
("LITE_set_async_callback", [_Cnetwork, LiteAsyncCallback]),
("LITE_set_start_callback", [_Cnetwork]),
("LITE_set_finish_callback", [_Cnetwork]),
+ ("LITE_get_static_memory_alloc_info", [_Cnetwork, c_char_p]),
]
@@ -532,3 +533,7 @@ class LiteNetwork(object):
def io_... | feat(lite): add get static mem info function in pylite | null | megengine/megengine | Apache License 2.0 | Python |
+# frozen_string_literal: true
+class Course::LessonPlan::CoursewidePersonalizedTimelineUpdateJob < ApplicationJob
+ include Course::LessonPlan::PersonalizationConcern
+ queue_as :lowest
+
+ protected
+
+ def perform(lesson_plan_item)
+ instance = Course.unscoped { lesson_plan_item.course.instance }
+ ActsAsTenant.with... | feat: add job for recomputing personal times for a single lesson plan item | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -37,6 +37,30 @@ class AuditableModelStub extends Model implements AuditableContract
return '127.0.0.1';
}
+ /**
+ * Set the attributes that should be included when auditing.
+ *
+ * @param array $include
+ *
+ * @return void
+ */
+ public function setAuditInclude(array $include)
+ {
+ $this->auditInclude = $include;... | feat(AuditableModelStub): implemented setAuditInclude() and setAuditExclude() methods | null | owen-it/laravel-auditing | MIT License | PHP |
//! Data for the lifecycle of the Ingester
-use std::{collections::BTreeMap, sync::Arc};
+use std::{collections::BTreeMap, sync::Arc, time::Instant};
use async_trait::async_trait;
use backoff::{Backoff, BackoffConfig};
@@ -247,6 +247,10 @@ impl Persister for IngesterData {
table_id: TableId,
partition_id: PartitionId,
... | feat: Log how long each persist plan takes to complete | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -3,6 +3,7 @@ import {
DaffProductPageActions,
DaffProductPageActionTypes,
} from '@daffodil/product/state';
+import { DaffRelatedProduct } from '@daffodil/related-products';
import { DaffRelatedProductsReducerState } from './reducer-state.interface';
@@ -23,7 +24,7 @@ export function daffRelatedProductsReducer<T ext... | feat(related-products): cast main product from product response | null | graycoreio/daffodil | MIT License | TypeScript |
@@ -28,7 +28,7 @@ import java.util.Collection;
import org.apache.maven.model.Dependency;
/**
- * Test case for {@link org.eolang.maven.DcsTransitive}.
+ * Transitive dependencies.
*
* @since 0.28.11
*/
| feat(#934): fix DcsTransitive javadoc | null | cqfn/eo | MIT License | Java |
@@ -131,7 +131,8 @@ open class ExoPlayerPlayback(source: String, mimeType: String? = null, options:
override val isDvrAvailable: Boolean
get() {
val videoHasMinimumDurationForDvr = duration >= MINIMUM_DURATION_FOR_DVR
- return mediaType == MediaType.LIVE && videoHasMinimumDurationForDvr
+ val isCurrentWindowSeekable = ... | feat(dvr_exoplayer): only meke seekable windows be DVR | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -463,6 +463,12 @@ where
let db_name = get_database_name(&tag_values_request)?;
+ let ob = self.metrics.requests.observation();
+ let labels = &[
+ KeyValue::new("operation", "tag_values"),
+ KeyValue::new("db_name", db_name.to_string()),
+ ];
+
let TagValuesRequest {
tags_source: _tag_source,
range,
@@ -478,19 +484,... | feat: instrument tag_values | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -8,6 +8,13 @@ import * as inspector from 'inspector';
if (!process.env.NODE_INSPECTOR_IPC)
return;
+ // Do not enable for Electron and other hybrid environments.
+ try {
+ eval('window');
+ return;
+ } catch (e) {
+ }
+
let scriptName = '';
try {
scriptName = require.resolve(process.argv[1]);
| feat(electron): allow attaching to Electron main process | null | microsoft/vscode-js-debug | MIT License | TypeScript |
@@ -12,8 +12,10 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/painting.dart';
import 'package:flutter/rendering.dart';
+import 'package:flutter/scheduler.dart';
import 'package:kraken/bridge.dart';
import 'package:kraken/element.dart';
+import 'package:krak... | feat: force flush layout before click | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -100,6 +100,23 @@ impl service::room::edus::presence::Data for KeyValueDatabase {
Ok(hashmap)
}
+
+ fn presence_maintain(&self, db: Arc<TokioRwLock<Database>>) {
+ // TODO @M0dEx: move this to a timed tasks module
+ tokio::spawn(async move {
+ loop {
+ select! {
+ Some(user_id) = self.presence_timers.next() {
+ // T... | feat(database/presence): add skeleton for presence maintenance | null | timokoesters/conduit | Apache License 2.0 | Rust |
@@ -10,11 +10,17 @@ class EmailAddressAdmin(admin.ModelAdmin):
list_filter = ("primary", "verified")
search_fields = []
raw_id_fields = ("user",)
+ actions = ["make_verified"]
def get_search_fields(self, request):
base_fields = get_adapter(request).get_user_search_fields()
return ["email"] + list(map(lambda a: "user__"... | feat(admin): Add `make_verified` action | null | pennersr/django-allauth | MIT License | Python |
@@ -7,6 +7,7 @@ from pyannote.audio.embedding.extraction import SequenceEmbedding
from pyannote.audio.embedding.clustering import Clustering
from pyannote.core import Annotation
from pyannote.audio.embedding.utils import l2_normalize
+from pyannote.database import get_annotated
class SpeakerDiarization(object):
@@ -78,... | feat: add "annotated" option to SpeakerDiarization.__call__ | null | pyannote/pyannote-audio | MIT License | Python |
@@ -21,6 +21,7 @@ public class ApplicationTemplate extends BaseDomain {
private List<String> functions;
private List<String> useCases;
private List<String> datasources;
+ private List<String> pageNames;
private String minVersion;
private String minVersionPadded;
private Long downloadCount;
| feat: added page names to the templates meta data | null | appsmithorg/appsmith | Apache License 2.0 | Java |
+package cmd
+
+import (
+ "os"
+ "strconv"
+
+ "github.com/spf13/cobra"
+)
+
+// LogsFlags holds the flags for the logs command
+type LogsFlags struct {
+ Tail int
+ Follow bool
+}
+
+var logsCmd = &cobra.Command{
+ Use: "logs [options] [service...]",
+ Short: "Displays log output from services.",
+ Run: runLogs,
+}
+... | feat(logs): New logs command | null | kool-dev/kool | MIT License | Go |
package org.apereo.portal.health;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.sql.Statement;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.... | feat: add memory and db query info to health-check | null | uportal-project/uportal | Apache License 2.0 | Java |
@@ -25,7 +25,9 @@ import 'package:flutter/services.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:get/get.dart';
import 'package:giphy_get/giphy_get.dart';
+import 'package:image_picker/image_picker.dart';
import 'package:pasteboard/pasteboard.dart';
+import 'package:permission_handler/perm... | feat: adds camera to cupertino text field | null | bluebubblesapp/bluebubbles-app | Apache License 2.0 | Dart |
@@ -15,12 +15,10 @@ import {
OpenStrategy,
skipOnEventsByWinnrs,
isWindows,
+ prettyPrint,
} from '../util';
import { SourceViewBuilder } from './view-builder';
-import {
- HighlightPosition,
- HighlightPositionWithLine,
-} from './highlight-manager';
+import { HighlightPosition, HighlightPositionWithLine } from './hig... | feat: Make all lists default with insert mode, fix | null | weirongxu/coc-explorer | MIT License | TypeScript |
@@ -97,7 +97,7 @@ use event_handler::AppserviceFn;
pub use matrix_sdk;
#[doc(no_inline)]
pub use matrix_sdk::ruma;
-use matrix_sdk::{reqwest::Url, Client, ClientBuilder};
+use matrix_sdk::{config::RequestConfig, reqwest::Url, Client, ClientBuilder};
use ruma::{
api::{
appservice::{
@@ -141,6 +141,7 @@ pub struct AppSer... | feat(appservice): Add default request config | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
@@ -6,6 +6,7 @@ const { exec } = require('child_process');
const axios = require('axios');
const path = require('path');
const readline = require('readline');
+const readlineSync = require('readline-sync');
const hardhatSettings = require('../hardhat.config');
const { encrypt, decrypt } = require('./utils/crypto');
@@ ... | feat: hide text when entering secret word | null | defisaver/defisaver-v3-contracts | MIT License | JavaScript |
@@ -453,10 +453,11 @@ async def lastFM(
"""
-# bancho.py supports both cheesegull mirrors & chimu.moe.
-# chimu.moe handles things a bit differently than cheesegull,
+# bancho.py supports cheesegull mirrors, chimu.moe and nasuya.xyz.
+# chimu.moe and nasuya.xyz handle things a bit differently than cheesegull,
# and has... | feat: nasuya support | null | osuakatsuki/bancho.py | MIT License | Python |
@@ -137,9 +137,10 @@ final class OptimizeMojoTest {
*
* @param temp Temporary test directory.
* @throws Exception if unexpected error happened.
- * @todo #1223:90min remove '@Disabled' annotation when caching of already optimized xmir files
- * will be implemented. Also don't forget to remove '@Disabled' annotation fro... | feat(#1223): rewrite puzzle description | null | cqfn/eo | MIT License | Java |
@@ -177,7 +177,7 @@ impl CliLoop {
if let Err(err) = self.context.handle_command_str(line).await {
println!("Wrong command to watch `{}`. Failed with: {}", line, err);
} else {
- loop {
+ while !self.done {
let interval = time::sleep(interval);
tokio::select! {
_ = interval => {
@@ -188,6 +188,9 @@ impl CliLoop {
},
_ ... | feat: add graceful shutdown of base node | null | tari-project/tari | BSD 3-Clause New or Revised License | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.