diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -129,7 +129,8 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>
// TODO(monsieurtanuki): get rid of explicit foregroundColor when appbartheme colors are correct
final Color? foregroundColor = dark ? null : Colors.black;
return Scaffold(
- body: CustomScrollView(
+ body: SafeArea(
+ child: CustomS... | fix: - SafeArea for preferences with sliver | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -187,7 +187,11 @@ impl<I: KeyExchanger, R: KeyExchanger, E: NewKeyExchanger<I, R>> ChannelManager<
let mut vault = self.vault.lock().unwrap();
let mut new_message_body: Vec<u8> = vec![];
- u16::encode(&channel.nonce, &mut new_message_body);
+ if let Err(e) = u16::encode(&channel.nonce, &mut new_message_body)
+ .map_... | fix(rust): handle result from encode and return error | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -477,7 +477,11 @@ func (f *FormField) UpdateDefaultValue(sqls ...*db.SQL) *FormField {
}), f.FormType.SelectedLabel())
} else {
- f.Options.SetSelected(string(f.Value), f.FormType.SelectedLabel())
+ f.Options.SetSelected(f.ToDisplay(FieldModel{
+ ID: "",
+ Value: string(f.Value),
+ Row: make(map[string]interface{}),... | fix(admin): fixed form selections default value error | null | goadmingroup/go-admin | Apache License 2.0 | Go |
@@ -249,7 +249,7 @@ class Serve extends AbstractCommand
*
* @throws RuntimeException
*/
- private function tearDownServer(): void
+ public function tearDownServer(): void
{
$this->output->writeln('');
$this->output->writeln('<comment>Server stopped.</comment>');
| fix(server): tear down method must be public | null | cecilapp/cecil | MIT License | PHP |
@@ -180,7 +180,6 @@ public static void Shutdown()
// Reset all statics here....
dontListen = false;
- active = false;
isLoadingScene = false;
lastSendTime = 0;
@@ -191,8 +190,13 @@ public static void Shutdown()
handlers.Clear();
newObservers.Clear();
- // destroy all spawned objects
+ // destroy all spawned objects, _t... | fix: NetworkServer.Shutdown sets active=false after destroying spawned objects | null | vis2k/mirror | MIT License | C# |
@@ -3045,6 +3045,10 @@ func (manager *SGuestManager) newCloudVM(ctx context.Context, userCred mcclient.
db.OpsLog.LogEvent(&guest, db.ACT_CREATE, guest.GetShortDesc(ctx), userCred)
+ if guest.Status == api.VM_RUNNING {
+ db.OpsLog.LogEvent(&guest, db.ACT_START, guest.GetShortDesc(ctx), userCred)
+ }
+
notifyclient.Even... | fix: guests short desc add status | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -129,5 +129,6 @@ export function buildQuery(filter: AdvancedFilter) {
let query = {};
if (filter)
{query = traverse(filter);}
+
return query;
}
\ No newline at end of file
| fix: Remove lint errors | null | aerogear/graphback | Apache License 2.0 | TypeScript |
# See the License for the specific language governing permissions and
# limitations under the License.
+{
# set the Google Cloud Project ID
project_id=$1
echo "Project ID: $project_id"
gcloud config set project "$project_id"
-
+} && {
timestamp=$(date +%s)
service_account_id="service-acc-$timestamp"
@@ -26,34 +27,40 @@... | fix: add an error message on user environment setup in case of any errors | null | googlecloudplatform/python-docs-samples | Apache License 2.0 | Shell |
@@ -4,7 +4,7 @@ status=$(ps|grep -c /usr/share/openclash/cfg_servers_address_fake_block.sh)
[ "$status" -gt "3" ] && exit 0
en_mode=$(uci get openclash.config.en_mode 2>/dev/null)
-if pidof clash >/dev/null && [ "$en_mode" != "redir-host" ]; then
+if pidof clash >/dev/null && [ -z "$(echo "$en_mode" |grep "redir-host")... | fix: disable real-ip with redir-tun mode | null | vernesong/openclash | MIT License | Shell |
@@ -47,7 +47,7 @@ export function Links() {
const routeLinks = getLinks(matches, routesConfig);
const pageAssets = getPageAssets(matches, assetsManifest);
const entryAssets = getEntryAssets(assetsManifest);
- const styles = pageAssets.concat(entryAssets).filter(path => path.indexOf('.css') > -1);
+ const styles = entry... | fix: css asserts order | null | alibaba/ice | MIT License | TypeScript |
@@ -77,15 +77,20 @@ function setCSSRule(configRule, context, value) {
// extract css file in web while inlineStyle is disabled
const postcssConfig = {
ident: 'postcss',
- plugins: () => [
+ plugins: () => {
+ const plugins = [
require('postcss-preset-env')({
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
- }),
- isWe... | fix: plugin load method | null | raxjs/rax-app | MIT License | JavaScript |
@@ -20,9 +20,6 @@ enum ParsePosNonzeroError {
}
impl ParsePosNonzeroError {
- fn from_creation(err: CreationError) -> ParsePosNonzeroError {
- ParsePosNonzeroError::Creation(err)
- }
// TODO: add another error conversion function here.
}
| fix(errors6.rs): remove one answer code | null | rust-lang/rustlings | MIT License | Rust |
@@ -314,19 +314,8 @@ class ImageElement extends Element {
void _resolveImage(Uri? resolvedUri, { bool updateImageProvider = false }) {
if (resolvedUri == null) return;
- double? width = null;
- double? height = null;
-
- if (isRendererAttached) {
- width = renderStyle.width.isAuto ? _propertyWidth : renderStyle.width.c... | fix: resize image logic | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -44,6 +44,7 @@ plugin_current_command() {
current_command() {
local terminal_format="%-15s %-15s %-10s\\n"
local exit_status=0
+ local plugin
# printf "$terminal_format" "PLUGIN" "VERSION" "SET BY CONFIG" # disbale this until we release headings across the board
if [ $# -eq 0 ]; then
@@ -51,7 +52,7 @@ current_comman... | fix: local plugin in then clause too | null | asdf-vm/asdf | MIT License | Shell |
@@ -854,10 +854,10 @@ void BaseWindow::SetVisibleOnAllWorkspaces(bool visible,
gin_helper::Dictionary options;
bool visibleOnFullScreen = false;
bool skipTransformProcessType = false;
- args->GetNext(&options) &&
+ if (args->GetNext(&options)) {
options.Get("visibleOnFullScreen", &visibleOnFullScreen);
- args->GetNext(... | fix: incorrect `skipTransformProcessType` option parsing in `win.setVisibleOnAllWorkspaces()` | null | electron/electron | MIT License | C++ |
@@ -1285,10 +1285,10 @@ namespace Unity.Netcode.Transports.UTP
SendBatchedMessages(kvp.Key, kvp.Value);
}
- // The above flush only puts the message in UTP internal buffers, need the flush send
- // job to execute to actually get things out on the wire. This will also ensure any
- // disconnect messages are sent out.
-... | fix: disconnect event not being generated | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -14,7 +14,7 @@ TITLE=$3
# ./csv-helpers/fill-empty-values.sh $OUT.temp.csv 0
# rename csv headers
-sed -i '' 's/_id/Week/; s/value.0/Code 0/g; s/value.100/Code 100/g; s/value.150/Code 150/g; s/value.//g; s/_/ /g' logs/list-error-codes-per-week.csv
+sed -i '' 's/_id/Week/; s/value.0/Code 0/g; s/value.100/Code 100/g; ... | fix(data-scripts): fix path of csv file in plot-error-codes-per-period.sh | null | openwhyd/openwhyd | MIT License | Shell |
@@ -9,7 +9,7 @@ import (
)
func HookedSeqOps(kernelSymbols *helpers.KernelSymbolTable) events.DeriveFunction {
- return singleEventDeriveFunc(events.HookedSyscalls, deriveHookedSeqOpsArgs(kernelSymbols))
+ return singleEventDeriveFunc(events.HookedSeqOps, deriveHookedSeqOpsArgs(kernelSymbols))
}
| fix: hooked_seq_ops bug | null | aquasecurity/tracee | Apache License 2.0 | Go |
@@ -9,7 +9,7 @@ export const borderWidths = {
'8': '8px',
}
-export const breakpoints = ['640px', '758px', '1024px', '1280px']
+export const breakpoints = ['640px', '768px', '1024px', '1280px']
export const baseColors = {
transparent: 'transparent',
| fix(preset-tailwind): Match medium breakpoint | null | system-ui/theme-ui | MIT License | JavaScript |
@@ -629,8 +629,8 @@ static void validate_accuracy(IAllocator& allocator, const track_array& raw_trac
const float raw_value = raw_track_writer.read_float1(track_index);
const float lossy_value = lossy_track_writer.read_float1(output_index);
ACL_ASSERT(rtm::scalar_near_equal(raw_value, lossy_value, regression_error_thres... | fix: add explicit threshold to avoid warning | null | nfrechette/acl | MIT License | C++ |
@@ -4,6 +4,12 @@ import { ArgumentMetadata } from '../../interfaces';
import { ParseIntPipe } from '../../pipes/parse-int.pipe';
import { HttpException } from '../../exceptions';
+class CustomTestError extends HttpException {
+ constructor() {
+ super('This is a TestException', 418);
+ }
+}
+
describe('ParseIntPipe', (... | fix(common): Fixed linting issue in test file | null | nestjs/nest | MIT License | TypeScript |
@@ -113,7 +113,12 @@ public class RenameDialog extends JDialog {
}
private boolean checkNewName() {
- boolean valid = NameMapper.isValidIdentifier(renameField.getText());
+ String newName = renameField.getText();
+ if (newName.isEmpty()) {
+ // use empty name to reset rename (revert to original)
+ return true;
+ }
+ bo... | fix(gui): allow to use empty name to reset rename | null | skylot/jadx | Apache License 2.0 | Java |
@@ -186,6 +186,7 @@ void alarm_info(Isolate *isolate, v8::Local<v8::String> type, v8::Local<v8::Obje
void load_plugins()
{
+ TSRMLS_FETCH();
std::vector<PluginFile> plugin_src_list;
std::string plugin_path(std::string(openrasp_ini.root_dir) + DEFAULT_SLASH + std::string("plugins"));
dirent **ent = nullptr;
| fix(php5): fix load_plugins | null | baidu/openrasp | Apache License 2.0 | C++ |
@@ -1145,6 +1145,11 @@ impl Grid {
}
self.output_buffer.update_all_lines();
}
+ fn clear_lines_above(&mut self) {
+ self.lines_above.clear();
+ self.scrollback_buffer_lines = self.recalculate_scrollback_buffer_count();
+ }
+
fn pad_current_line_until(&mut self, position: usize) {
let current_row = self.viewport.get_mut... | fix(compatibility): handle csi erase param 3 | null | zellij-org/zellij | MIT License | Rust |
@@ -155,12 +155,13 @@ gfx::Rect BrowserView::GetBounds() {
}
void BrowserView::SetBackgroundColor(const std::string& color_name) {
- if (!web_contents())
- return;
+ view_->SetBackgroundColor(ParseHexColor(color_name));
+ if (web_contents()) {
auto* wc = web_contents()->web_contents();
wc->SetPageBaseBackgroundColor(Pa... | fix: BrowserView setBackgroundColor needs two calls | null | electron/electron | MIT License | C++ |
@@ -140,6 +140,13 @@ def find_config():
return configurations
+def _remove_empty_entries(entries):
+ """Remove emtpy entries in a list"""
+ for entry in entries:
+ if entry in ['', None]:
+ entries.pop()
+ return entries
+
def _generate_security_groups(config_key):
"""Read config file and generate security group dict b... | fix: Remove empty items from security group list | null | foremast/foremast | Apache License 2.0 | Python |
@@ -312,6 +312,15 @@ def _generate_coverage_data(
# set source offset (-1 means none)
if source[0] == -1:
+ if (
+ len(pc_list) > 6
+ and pc_list[-7]["op"] == "CALLVALUE"
+ and pc_list[-1]["op"] == "REVERT"
+ ):
+ # special case - initial nonpayable check on vyper >=0.2.5
+ pc_list[-1]["dev"] = "Cannot send ether to no... | fix: nonpayable function heuristic for vyper 0.2.11 | null | eth-brownie/brownie | MIT License | Python |
@@ -147,6 +147,8 @@ open class MediaControl: UICorePlugin, UIGestureRecognizerDelegate {
private func onDrawerDragged(info: EventUserInfo) {
guard let alpha = info?["alpha"] as? CGFloat else { return }
+ keepVisible()
+ view.isHidden = false
view.alpha = alpha
}
| fix: keep media control visible if the user is interacting with the drawer | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
@@ -27,11 +27,13 @@ const BlogIndex = ({ data, location }) => {
<Layout location={location} title={siteTitle}>
<SEO title="All posts" />
<Bio />
+ <ol style={{ listStyle: `none` }}>
{posts.map(post => {
const title = post.frontmatter.title || post.fields.slug
+
return (
+ <li key={post.fields.slug}>
<article
- key={pos... | fix(gatsby-starter-blog): Use `ol` for blog post list | null | gatsbyjs/gatsby | MIT License | JavaScript |
import 'dart:convert';
import 'dart:io';
+import 'dart:async';
import 'package:flutter/foundation.dart' show debugDefaultTargetPlatformOverride, TargetPlatform;
import 'package:requests/requests.dart';
import 'package:kraken/kraken.dart';
| fix: fix Future undefined error | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -71,7 +71,7 @@ abstract class IntegrationCommandBase extends CommandBase
]],
'description' => 'The GitLab project (e.g. \'namespace/repo\')',
'validator' => function ($string) {
- return substr_count($string, '/', 1) === 1;
+ return strpos($string, '/', 1) !== false;
},
]),
'repository' => new Field('Repository', [
| fix: allow more than one / in a GitLab project name | null | platformsh/platformsh-cli | MIT License | PHP |
@@ -264,6 +264,7 @@ public class MainActivity extends AppCompatActivity {
if (drawer != null) {
drawer.closeDrawers();
}
+ break;
case R.id.nav_help_feedback:
navItemIndex = 7;
CURRENT_TAG = TAG_FAQ;
| fix: rate app navigate back to FAQ | null | fossasia/pslab-android | Apache License 2.0 | Java |
@@ -18,7 +18,7 @@ module.exports = function (cfg) {
error = true
}
- if (content.indexOf('<div id="q-app') === -1) {
+ if (!/<div id=['"]q-app/.test(content)) {
warn(`Please add back <div id="q-app"></div> to
/src/index.template.html inside of <body>\n`)
error = true
| fix(app-webpack): app-files-validations.js for HTML files using single-quotes | null | quasarframework/quasar | MIT License | JavaScript |
@@ -4,8 +4,7 @@ import { Get, isA, List, meta, ofGet } from '../types';
export type PropertyOptions<T = unknown> = { dflt?: Get<T>; convert?: Convert<any, any>; format?: string };
export class Property<T = unknown> {
- constructor(readonly owner: unknown, readonly name: string, readonly options: PropertyOptions = {}) {... | fix(utils): fix in Property.ts | null | thisisagile/easy | MIT License | TypeScript |
@@ -115,7 +115,7 @@ class Home extends PureComponent {
className={classes.scrollFix}
>
<Grid item>
- <SKLogo />
+ <img src={SKLogo} />
</Grid>
{/* <Grid item>
<Typography variant="h2" className={classes.primaryTintText}>
| fix: home issues | null | selfkeyfoundation/identity-wallet | MIT License | JavaScript |
@@ -351,6 +351,14 @@ export const WEB_ORDER_SIDEBAR_CONFIG = [
app: [WEB],
tracker: 'web::orders::cloud-db::order',
},
+ {
+ id: 'orderPrivateDatabase',
+ title: 'privateDatabase',
+ icon: 'ovh-font ovh-font-database',
+ state: 'app.private-database-order',
+ regions: ['EU', 'CA'],
+ app: [WEB],
+ },
];
export default ... | fix(web.order): add private database order | null | ovh/manager | BSD 3-Clause New or Revised License | JavaScript |
@@ -353,6 +353,25 @@ class JobPlexSync {
}
}
+ // movies with hama agent actually are tv shows with at least one episode in it
+ // try to get first episode of any season - cannot hardcode season or episode number
+ // because sometimes user can have it in other season/ep than s01e01
+ private async processHamaMovie(
+... | fix(plex-sync): get correct Plex metadata for Hama movie items | null | sct/overseerr | MIT License | TypeScript |
@@ -4,6 +4,7 @@ using Microsoft.CodeAnalysis;
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Reflection;
using System.Text;
using System.Threading;
@@ -32,13 +33,13 @@ namespace MagicOnion.CodeAnalysis
logger("failed to get metadata of System.Void.");
}
- TaskOfT = compilation.GetTypeB... | fix: obtaining Task / Task<T> types via reflection | null | cysharp/magiconion | MIT License | C# |
@@ -59,6 +59,7 @@ return [
'valid_url' => 'The {field} field must contain a valid URL.',
'valid_url_strict' => 'The {field} field must contain a valid URL.',
'valid_date' => 'The {field} field must contain a valid date.',
+ 'valid_json' => 'The {field} field must contain a valid json.',
// Credit Cards
'valid_cc_num' =... | fix: missing valid_json in Validation Language | null | codeigniter4/codeigniter4 | MIT License | PHP |
@@ -63,14 +63,17 @@ void AddStringsForPdf(base::DictionaryValue* dict) {
void AddAdditionalDataForPdf(base::DictionaryValue* dict) {
#if BUILDFLAG(ENABLE_PDF)
+ dict->SetKey("pdfFormSaveEnabled",
+ base::Value(base::FeatureList::IsEnabled(
+ chrome_pdf::features::kSaveEditedPDFForm)));
dict->SetStringKey(
"pdfViewerUpd... | fix: set presentationModeEnabled value for PDF viewer | null | electron/electron | MIT License | C++ |
@@ -959,7 +959,7 @@ namespace Shoko.Server.API.v3.Controllers
return new Series.AniDBSearchResult
{
ID = result.AnimeID,
- Type = anime != null ? Series.GetAniDBSeriesType(anime.AnimeType) : SeriesType.Unknown,
+ Type = Series.GetAniDBSeriesType(anime?.AnimeType),
Title = mainTitle,
Titles = includeTitles ? result.Titl... | fix: use optional chaining | null | shokoanime/shokoserver | MIT License | C# |
@@ -1877,7 +1877,7 @@ public static ushort PRIMARYLANGID(uint lgid)
public static uint LGID(IntPtr HKL)
{
- return (uint)(HKL.ToInt32() & 0xffff);
+ return (uint)(HKL.ToInt64() & 0xffff);
}
public const int SORT_DEFAULT = 0;
| fix: Under Windows - Arithmetic operation resulted in an overflow | null | avaloniaui/avalonia | MIT License | C# |
@@ -552,6 +552,7 @@ sap.ui.controller("view.Master", {
press: function () {
let config = model.Config
let core = sap.ui.getCore()
+ config.setTemporaryWorkspace(undefined)
if (core.byId('idSpace').getSelectedItem() == null && core.byId('idSpace')._lastValue == "") {
sap.m.MessageBox.warning("No space selected, the defa... | fix(frontend-apps): allow saving as default workspace the current non-default workspace | null | eclipse/steady | Apache License 2.0 | JavaScript |
@@ -2177,20 +2177,17 @@ fn_info_game_vints() {
servername="${unavailable}"
maxplayers="${unavailable}"
serverpassword="${unavailable}"
- port="${unavailable}"
- queryport="${unavailable}"
- configip="${unavailable}"
+ port="${port:-"0"}"
else
servername=$(jq -r '.ServerName' "${servercfgfullpath}")
maxplayers=$(jq -r '... | fix(vints): refactor to fix it when there is no config for the server | null | gameservermanagers/linuxgsm | MIT License | Shell |
@@ -18,16 +18,20 @@ pub trait OtherTrait {
}
}
-struct SomeStruct {
- name: String,
-}
+struct SomeStruct {}
+struct OtherStruct {}
impl SomeTrait for SomeStruct {}
impl OtherTrait for SomeStruct {}
+impl SomeTrait for OtherStruct {}
+impl OtherTrait for OtherStruct {}
// YOU MAY ONLY CHANGE THE NEXT LINE
fn some_func(... | fix(traits5): make exercise prefer trait-based solution | null | rust-lang/rustlings | MIT License | Rust |
@@ -28,7 +28,7 @@ module.exports = async function AuthVerify(ctx) {
renderData.message = 'Wrong Password!';
return ctx.utils.render('login', renderData);
}
- if (!VerifyPasswordHash(ctx.request.body.password, admin.password_hash)) {
+ if (!VerifyPasswordHash(ctx.request.body.password.trim(), admin.password_hash)) {
log... | fix(web): trimming password on login for consistency | null | tabarra/txadmin | MIT License | JavaScript |
@@ -382,8 +382,9 @@ class TensorflowConverter(base_converter.ConverterInterface):
op.output[i] = op_name
def add_shape_info(self, tf_graph_def):
- for node in tf_graph_def.node:
for input_node in self._option.input_nodes.values():
+ matched = False
+ for node in tf_graph_def.node:
if node.name == input_node.name \
or n... | fix: Checks if the input is valide | null | xiaomi/mace | Apache License 2.0 | Python |
@@ -5,3 +5,5 @@ export const RELOAD_WEBVIEW = 'WEBVIEWS/RELOAD_WEBVIEW';
export const HIDE_WEBVIEWS = 'WEBVIEWS/HIDE_WEBVIEWS';
export const WEBVIEW_ERROR = 'WEBVIEWS/WEBVIEW_ERROR';
+
+export const UPDATE_UNREAD_EMAILS = 'WEBVIEWS/UPDATE_UNREAD_EMAILS';
| fix(webview): add missing redux type | null | unofficial-protonmail-desktop/application | MIT License | JavaScript |
@@ -39,7 +39,6 @@ impl<'a> semantic::walk::Visitor<'_> for SerializingVisitor<'a> {
if v.err.is_some() {
return false;
}
- Rc::clone(&self.inner);
true
}
| fix(semantic/libflux): removes unnecessary rc clone in semantic serializer | null | influxdata/flux | MIT License | Rust |
@@ -82,7 +82,7 @@ final class ResourceSearchRequest extends BaseResourceSearchRequest<Resources> {
Registry registry = context.service(ResourceTypeConverter.Registry.class);
Map<String, Integer> orderMap = registry.getResourceTypeConverters().values().stream().collect(Collectors.toMap(typeDef -> typeDef.getResourceType... | fix: use scriptNumeric factory method | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -38,7 +38,7 @@ task('library:assets', () =>
.pipe(dest(join(buildConfig.libOutputDir, 'assets')))
);
-task('library:compile', execNodeTask('@angular/cli', 'ng', ['build', 'lib']));
+task('library:compile', execNodeTask('@angular/cli', 'ng', ['build', 'lib', '--prod']));
task('library:build', sequenceTask(
'library:c... | fix(build): added prod flag for lib build task | null | dynatrace-oss/barista | Apache License 2.0 | TypeScript |
@@ -26,7 +26,8 @@ export const MainGrid = (props: MainGridProps) => {
showHead,
draggable,
withCheckbox,
- data
+ data,
+ page
} = _this.props;
const classes = classNames({
@@ -36,17 +37,23 @@ export const MainGrid = (props: MainGridProps) => {
}, className);
const minRowHeight: Record<GridSize, number> = {
- comfortab... | fix(Grid): fixes extra white-space on page change | null | innovaccer/design-system | MIT License | TypeScript |
@@ -583,7 +583,7 @@ module.exports = class ftx extends Exchange {
type = 'future';
expiry = this.parse8601 (expiryDatetime);
if (expiry === undefined) {
- throw new BadResponse (this.id + " symbol '" + id + "' is a future contract but with invalid expiry datetime: " + expiryDatetime);
+ throw new BadResponse (this.id +... | fix(ftx): don't crash while concatenating str and None in Python | null | ccxt/ccxt | MIT License | JavaScript |
@@ -416,8 +416,12 @@ namespace Cicada {
pHandle->mPProbBuffer = nullptr;
}
+ if (pHandle->mPDataSource) {
pHandle->mPDataSource->setRange(start, end);
return pHandle->mPDataSource->Open(url);
+ } else {
+ return 0;
+ }
}
void demuxer_service::interrupt_callback(void *arg, int inter)
| fix(demuxer): prevent null pointer crash | null | alibaba/cicadaplayer | MIT License | C++ |
@@ -11,11 +11,7 @@ export default ({ data }) => (
<Link to={`/blog/${node.slug}`}>{node.title}</Link>
</h2>
<Byline author={node.author} date={node.publishDate} />
- <div
- dangerouslySetInnerHTML={{
- __html: node.lede,
- }}
- />
+ <p className="lede">{node.lede}</p>
</>
))}
</Layout>
| fix(blog): rm markdown handling for lede, add lede class | null | covid19tracking/website | Apache License 2.0 | JavaScript |
@@ -110,26 +110,28 @@ impl<'data> SymCache<'data> {
// SAFETY: the above buffer size check also made sure we are not going out of bounds
// here
let files = unsafe {
- &*(ptr::slice_from_raw_parts(files_start, header.num_files as usize)
- as *const [raw::File])
+ &*ptr::slice_from_raw_parts(files_start as *const raw::F... | fix(symcache): Clippy slice casting lint | null | getsentry/symbolic | MIT License | Rust |
@@ -527,7 +527,13 @@ class Image
*/
private function srcset()
{
- @list($max_width, $max_height) = getimagesize($this->original_file());
+ $file = $this->original_file();
+
+ if (!file_exists($file)) {
+ return null;
+ }
+
+ @list($max_width, $max_height) = getimagesize($file);
if ($this->width * 2 > $max_width) {
retu... | fix: PHP warning when getimagesize fails | null | podlove/podlove-publisher | MIT License | PHP |
@@ -62,25 +62,28 @@ class Test extends BrowserTestCase
Livewire::visit($browser, Component::class)
->click($duskButton)
- ->waitForLivewire()
->waitUsing(5, 75, function () use ($browser) {
return $browser->script('getElementByXPath("//button[text()=\'Accept\']").click();');
- })->waitUsing(5, 75, function () use ($bro... | fix: remove wait for livewire method | null | wireui/wireui | MIT License | PHP |
@@ -16,7 +16,7 @@ namespace Air_Light;
* Restrict blocks to only allowed blocks in the settings
*/
function allowed_block_types( $allowed_blocks, $post ) {
- if ( ! isset( THEME_SETTINGS['allowed_blocks'] ) || 'all' === THEME_SETTINGS['allowed_blocks'] ) {
+ if ( null !== THEME_SETTINGS['allowed_blocks'] || 'all' === T... | fix: Cannot use isset() on the result of an expression | null | digitoimistodude/air-light | MIT License | PHP |
@@ -6,7 +6,9 @@ function handleSync<R, E = Error>(fn: () => R): R | E {
}
}
-async function handleAsync<R, E = Error>(fn: () => Promise<R>): Promise<R | E> {
+async function handleAsync<R, E = Error>(
+ fn: () => Promise<R> | R,
+): Promise<R | E> {
try {
return await fn()
} catch (e: unknown) {
| fix(blaze): allow non promises in handleAsync | null | prisma/prisma | Apache License 2.0 | TypeScript |
@@ -282,8 +282,9 @@ class PPOAgent(IncrementalAgent):
# find ratio (pi_theta / pi_theta__old)
ratios = torch.exp(logprobs - old_logprobs.detach())
- returns = np.zeros_like(rewards)
- advantages = np.zeros_like(rewards)
+ rewards = torch.tensor(rewards).to(self.device).float()
+ returns = torch.zeros(rewards.shape).to(... | fix(PPO): handle rewards on GPU + fix GAE usage | null | rlberry-py/rlberry | MIT License | Python |
@@ -495,9 +495,9 @@ extension DatabaseClient {
case .search:
key = "searchFilter"
case .global:
- key = "watchedFilter"
- case .watched:
key = "globalFilter"
+ case .watched:
+ key = "watchedFilter"
}
return updateAppEnv(key: key, value: filter.toData())
}
| fix: Unexpected behaviors when setting global & watched filters | null | ehpanda-team/ehpanda | MIT License | Swift |
@@ -10,21 +10,21 @@ import * as _ from 'underscore'
* --settings [filename] to provide a JSON file containing the settings
*/
export interface ISettings {
- // The framerate (frames per second) used to convert internal timing information (in milliseconds)
- // into timecodes and timecode-like strings and interpret time... | fix: Settings doc | null | nrkno/tv-automation-server-core | MIT License | TypeScript |
@@ -13,8 +13,9 @@ import { CustomPopper } from './CustomPopper';
const useStyles = makeStyles({
autocomplete: {
display: 'flex',
- flexShrink: 1,
- flexBasis: '100%',
+ alignItems: 'center',
+ width: 150,
+ overflow: 'hidden',
},
input: {
display: 'flex',
@@ -24,8 +25,8 @@ const useStyles = makeStyles({
outline: 0,
min... | fix: Fix tag creation in safari and firefox | null | tolgee/tolgee-platform | Apache License 2.0 | TypeScript |
@@ -21,7 +21,7 @@ export etcd_url='http://192.17.5.10:2379'
unamestr=`uname`
-wget https://raw.githubusercontent.com/apache/apisix/master/conf/config.yaml
+wget https://raw.githubusercontent.com/apache/apisix/master/conf/config-default.yaml
if [[ "$unamestr" == 'Darwin' ]]; then
sed -i '' -e ':a' -e 'N' -e '$!ba' -e "s... | fix: mv config.yml to config-default.yml in the latest version of apisix | null | apache/apisix-dashboard | Apache License 2.0 | Shell |
@@ -2,7 +2,6 @@ import React from 'react'
import PropTypes from 'prop-types'
const Label = ({value, formatter}) => {
- console.log('render label', value)
return <div className="sui-AtomSlider-label">{formatter(value)}</div>
}
| fix(atom/slider): remove console log | null | sui-components/sui-components | MIT License | JavaScript |
@@ -73,7 +73,7 @@ module Awspec::Type
end
end
- @sec_groups.member?(sec_group) or @sec_groups_ids.member?(sec_group)
+ @sec_groups.member?(sec_group) || @sec_groups_ids.member?(sec_group)
end
def ready?
| fix: another rubocop issue | null | k1low/awspec | MIT License | Ruby |
@@ -15,7 +15,7 @@ const STEP = 7
const dateFormat = (time: number) => moment(time).format('MMM DD YYYY')
export default function TableResult({ result }: PropsType) {
- const downSampled = result.deterministic.trajectory.reduce<ExportedTimePoint[]>((acc, curr, i) => {
+ const downSampled = result.trajectory.mean.reduce<... | fix: html export to read off the new data structure | null | neherlab/covid19_scenarios | MIT License | TypeScript |
@@ -40,6 +40,15 @@ if [ $(grep -c "^sparko" < ${CLCONF}) -gt 0 ];then
fi
fi
+if [ $(grep -c "^clboss" < ${CLCONF}) -gt 0 ];then
+ if [ ! -f /home/bitcoin/${netprefix}cl-plugins-enabled/clboss ]\
+ || [ "$(eval echo \$${netprefix}sparko)" != "on" ]; then
+ echo "# The clboss plugin is not present but in config"
+ sed -i... | fix: check for clboss on CLN config file | null | rootzoll/raspiblitz | MIT License | Shell |
@@ -43,7 +43,6 @@ fn benchmark_encode<T>(
let decoded = decoded_value_generation(batch_size);
let mut encoded = vec![];
b.iter(|| {
- encoded.truncate(0);
encode(&decoded, &mut encoded).unwrap();
});
},
| fix: Remove truncate from encoding benchmark | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -667,7 +667,7 @@ class RenderFlexLayout extends RenderLayoutBox {
BoxSizeType sizeType = _getChildHeightSizeType(child);
if (isHorizontalFlexDirection(_flexDirection)) {
double maxCrossAxisSize;
- // Caculate max height constaints
+ // Calculate max height constraints
if (sizeType == BoxSizeType.specified) {
maxCros... | fix: flex layout should deflate box constraints when clip | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -539,17 +539,19 @@ func SharableModelIsShared(model ISharableBaseModel) bool {
func SharableModelCustomizeCreate(model ISharableBaseModel, ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject) error {
if !data.Contains("publ... | fix: do not share porject resource by default | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -452,6 +452,14 @@ impl Candidate {
current_dir.to_path_buf()
};
+ // if the window start and the source dir are the same directory we can end early if
+ // we wrongfully detect something like: `<dep>/src/lib/`
+ if current_level > 0 &&
+ source_dir == window_start &&
+ (is_source_dir(&source_dir) || is_lib_dir(&sour... | fix(solc): improve remappings autodetection | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
@@ -375,6 +375,8 @@ class ConfigTest extends BaseRollbarTest
public function testSender()
{
+ $this->markTestSkipped('FIXME -- What assertions should we test here?');
+
$p = m::mock("Rollbar\Payload\EncodedPayload");
$sender = m::mock("Rollbar\Senders\SenderInterface")
->shouldReceive("send")
| fix: explicit mark of incomplete test | null | rollbar/rollbar-php | MIT License | PHP |
@@ -38,8 +38,12 @@ import (
"yunion.io/x/onecloud/pkg/notify/utils"
)
+var API_VERSION = "api/v1"
+
func InitHandlers(app *appsrv.Application) {
- db.AddProjectResourceCountHandler("api/v1", app)
+ // add version handler with API_VERSION prefix
+ app.AddDefaultHandler("GET", API_VERSION+"/version", appsrv.VersionHandle... | fix: Add '/version' handler for notify | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -91,7 +91,7 @@ const parseSimpleDetail = ($ele) => {
const link = resolve('https://nhentai.net', $ele.attr('href'));
const thumb = $ele.children('img');
const thumbSrc = thumb.attr('data-src') || thumb.attr('src');
- const highResoThumbSrc = thumbSrc.replace('thumb', '1').replace('t.nhentai.net', 'i.nhentai.net');
+... | fix(route): nhentai Images host | null | diygod/rsshub | MIT License | JavaScript |
@@ -5,8 +5,10 @@ from __future__ import unicode_literals
import frappe
import unittest
+from frappe.model.db_query import DatabaseQuery
# test_records = frappe.get_test_records('ToDo')
+test_user_records = frappe.get_test_records('User')
class TestToDo(unittest.TestCase):
def test_delete(self):
@@ -47,6 +49,19 @@ class... | fix: added test case | null | frappe/frappe | MIT License | Python |
@@ -85,17 +85,6 @@ namespace DSharpPlus
}
private AsyncEvent<DiscordClient, ChannelCreateEventArgs> _channelCreated;
- /// <summary>
- /// Fired when a new direct message channel is created.
- /// For this Event you need the <see cref="DiscordIntents.DirectMessages"/> intent specified in <seealso cref="DiscordConfigura... | fix: Fix errors with DMChannelCreatedEventArgs in sharded client | null | dsharpplus/dsharpplus | MIT License | C# |
@@ -7,21 +7,60 @@ namespace VRTK.Examples.Utilities
[ExecuteInEditMode]
public class VRTKExample_FixSetup : MonoBehaviour
{
+ public bool forceOculusFloorLevel = true;
+ protected bool trackingLevelFloor = false;
+
public virtual void ApplyFixes()
{
FixOculus();
}
protected virtual void Awake()
+ {
+
+ if (Application.... | fix(Examples): rebuild oculus camera rig without a prefab | null | extendrealityltd/vrtk | MIT License | C# |
@@ -35,7 +35,8 @@ def make_translator(opt, report_score=True, logger=None, out_file=None):
for k in ["beam_size", "n_best", "max_length", "min_length",
"stepwise_penalty", "block_ngram_repeat",
"ignore_when_blocking", "dump_beam",
- "data_type", "replace_unk", "gpu", "verbose"]}
+ "data_type", "replace_unk", "gpu", "ve... | fix: -report_bleu issue | null | opennmt/opennmt-py | MIT License | Python |
using System;
using System.Linq;
-using Files.App.Filesystem;
-using Files.App.Filesystem.StorageItems;
using Files.Shared.Enums;
using Vanara.PInvoke;
using Windows.Storage;
@@ -13,48 +11,25 @@ namespace Files.App.Helpers
{
public static async void SetAsBackground(WallpaperType type, string filePath)
{
- if (UserProfi... | fix: Fixed issue where setting image as wallpaper would add image to the local state folder | null | files-community/files | MIT License | C# |
@@ -4,7 +4,7 @@ from typing import Sequence
from marshmallow import EXCLUDE, fields
-from .....config.injection_context import InjectionContext
+from .....core.profile import ProfileSession
from .....messaging.models.base_record import BaseRecord, BaseRecordSchema
from .....messaging.valid import INDY_RAW_PUBLIC_KEY
fr... | fix(mediation): correct incorrect type hints in record | null | hyperledger/aries-cloudagent-python | Apache License 2.0 | Python |
@@ -251,7 +251,7 @@ func CreatePodGetIPManifest() *v1.Pod {
Image: "k8s.gcr.io/e2e-test-images/agnhost:2.36",
ImagePullPolicy: v1.PullIfNotPresent,
Command: []string{
- "/bin/sh", "-c", "curl -v -s -m 5 --retry-delay 5 --retry 10 ifconfig.me",
+ "/bin/sh", "-c", "curl -s -m 5 --retry-delay 5 --retry 10 ifconfig.me",
},... | fix: change the curl command options when getting pod outbound IP | null | kubernetes-sigs/cloud-provider-azure | Apache License 2.0 | Go |
@@ -179,10 +179,17 @@ func (consumer *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, clai
// Do not move the code below to a goroutine.
// The `ConsumeClaim` itself is called within a goroutine, see:
// https://github.com/Shopify/sarama/blob/main/consumer_group.go#L27-L29
- for message := range claim.Messa... | fix: check session.Context().Done() in examples/consumergroup | null | shopify/sarama | MIT License | Go |
@@ -33,7 +33,7 @@ func init() {
rootCmd.AddCommand(cleanupCmd)
}
-// cleans meshery config
+// resets meshery config
func resetMesheryConfig() {
log.Info("Meshery resetting...")
if err := downloadFile(dockerComposeFile, fileURL); err != nil {
| fix: update comment in cleanup.go | null | layer5io/meshery | Apache License 2.0 | Go |
@@ -365,13 +365,8 @@ class ImageHelper {
$tmp = str_replace(WP_CONTENT_DIR, '', $tmp);
}
} else {
- // if upload dir does not contain site_url, the content-directory seems to be outside of the site_url
- // therefore using site_url() would lead to a wrong content/ path
- if ( false === strpos($upload_dir['baseurl'], si... | fix(ImageHelper): use network_home_url instead of site_url for relative urls in analyze_url function | null | timber/timber | MIT License | PHP |
@@ -3,7 +3,6 @@ package com.midtrans.sdk.uikit.views.banktransfer.status;
import android.text.TextUtils;
import com.midtrans.sdk.corekit.core.PaymentType;
-import com.midtrans.sdk.corekit.models.MerchantPreferences;
import com.midtrans.sdk.corekit.models.TransactionResponse;
import com.midtrans.sdk.uikit.abstracts.Base... | fix: modify getVaExpiration method in BankTransferStatusPresenter to handle bri as other_va_processor | null | veritrans/veritrans-android | MIT License | Java |
@@ -132,6 +132,14 @@ func (r *resolver) findVariablesInDefinition(definition *latest.Variable) map[st
return varsUsed
}
+ // check value
+ if strDefault, ok := definition.Value.(string); ok {
+ _, _ = varspkg.ParseString(strDefault, func(v string) (interface{}, error) {
+ varsUsed[v] = true
+ return "", nil
+ })
+ }
+
... | fix: vars.value with other variable | null | loft-sh/devspace | Apache License 2.0 | Go |
@@ -22,6 +22,11 @@ class Networks extends \Podlove\Modules\Base {
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
}
+ if (is_multisite()) {
+ // Actions after activation
+ add_action( 'podlove_module_was_activated_networks', array( $this, 'was_activated' ) );
+ }
+
// filter allows force-enabling network mod... | fix: network module activation hook | null | podlove/podlove-publisher | MIT License | PHP |
@@ -803,7 +803,7 @@ fn_info_game_mc(){
gamemode="${unavailable}"
gameworld="${unavailable}"
else
- servername=$(grep "motd" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/motd//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
+ servername=$(grep "motd" "${servercfgfullpath}" | sed -e 's/^[ ... | fix(Minecraft): remove motd color from servername | null | gameservermanagers/linuxgsm | MIT License | Shell |
@@ -204,6 +204,7 @@ class CodeBuildConfig extends PureComponent {
)}
{(languageType === 'Golang' ||
languageType === 'go' ||
+ languageType === 'Go' ||
languageType === 'golang') && (
<GoConfig envs={runtimeInfo} form={this.props.form} />
)}
@@ -224,6 +225,7 @@ class CodeBuildConfig extends PureComponent {
<StaticConfi... | fix: complete the language type | null | goodrain/rainbond-ui | Apache License 2.0 | JavaScript |
@@ -259,6 +259,7 @@ class ButtonWidget extends BaseWidget<ButtonWidgetProps, ButtonWidgetState> {
}
return propertiesToUpdate;
},
+ dependencies: ["iconAlign"],
validation: {
type: ValidationTypes.TEXT,
},
| fix: added iconAlign dependency to iconName prop | null | appsmithorg/appsmith | Apache License 2.0 | TypeScript |
@@ -346,7 +346,7 @@ public class GeoToolsMapGenerationService
int valueIndex = row.size() - 1;
String ou = (String) row.get( ouIndex );
- Double value = (Double) row.get( ( valueIndex ) );
+ Double value = ( (Number) row.get( valueIndex ) ).doubleValue();
mapValues.add( new MapValue( ou, value ) );
}
| fix: Some maps fail, 0 decimals | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -51,7 +51,6 @@ public class KryoNetworkSerializerTest {
TransportNetwork copiedNetwork2 = KryoNetworkSerializer.read(tempFile);
copiedNetwork2.rebuildTransientIndexes();
assertNoDifferences(copiedNetwork1, copiedNetwork2);
-
}
/**
@@ -70,8 +69,9 @@ public class KryoNetworkSerializerTest {
// Skip the somewhat unnece... | fix(tests): skip linkage map in network comparisons | null | conveyal/r5 | MIT License | Java |
@@ -19,7 +19,7 @@ namespace Blazorise
{
}
- public interface IFluentSpacingFromSide : IFluentColumn
+ public interface IFluentSpacingFromSide : IFluentSpacing
{
/// <summary>
/// For classes that set margin-top or padding-top.
@@ -57,7 +57,7 @@ namespace Blazorise
IFluentSpacingOnBreakpointWithSideAndSize OnAll { get; ... | fix: fluentspacing inheritance | null | stsrki/blazorise | MIT License | C# |
@@ -313,7 +313,7 @@ public:
CoalescedKeyRangeMap< Version > newestDirtyVersion; // Similar to newestAvailableVersion, but includes (only) keys that were only partly available (due to cancelled fetchKeys)
// The following are in rough order from newest to oldest
- Version lastTLogVersion, lastVersionWithData;
+ Version ... | fix: a storage server does not ever need to rollback before a version restored from disk | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -613,6 +613,12 @@ export function* forkApplicationSaga(
application,
},
});
+ yield put({
+ type: ReduxActionTypes.SET_CURRENT_WORKSPACE_ID,
+ payload: {
+ id: action.payload.workspaceId,
+ },
+ });
const pageURL = builderURL({
pageId: application.defaultPageId as string,
});
| fix: set current workspace id in redux store | null | appsmithorg/appsmith | Apache License 2.0 | TypeScript |
@@ -89,8 +89,8 @@ export class LWSService {
);
return walletAttrs.map(attr => ({
key: requiredMapByKey[attr.type].key,
- lable: requiredMapByKey[attr.type].label,
- attrigute: attr.data.value ? attr.data.value : attr.data
+ label: requiredMapByKey[attr.type].label,
+ attribute: attr.data.value ? attr.data.value : attr.... | fix(lws): fix typos | null | selfkeyfoundation/identity-wallet | MIT License | JavaScript |
@@ -192,9 +192,11 @@ func (cm *Manager) Release(wf *wfv1.Workflow, nodeName string, syncRef *wfv1.Syn
syncLockHolder.removeFromQueue(holderKey)
log.Debugf("%s sync lock is released by %s", lockName.EncodeName(), holderKey)
lockKey := lockName.EncodeName()
+ if wf.Status.Synchronization != nil {
wf.Status.Synchronizatio... | fix: Panic in Workflow Retry | null | argoproj/argo-workflows | Apache License 2.0 | Go |
@@ -156,6 +156,8 @@ class MeetingFragment : Fragment() {
meetingViewModel.state.observe(viewLifecycleOwner) { state ->
when (state) {
is MeetingState.Disconnected -> {
+ stopAudioManager()
+
if (state.showDialog) {
AlertDialog.Builder(requireContext())
.setMessage(state.message)
@@ -195,6 +197,7 @@ class MeetingFragmen... | fix: start audio manager during meeting | null | 100mslive/100ms-android | MIT License | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.