lang stringclasses 2
values | license stringclasses 13
values | stderr stringlengths 0 343 | commit stringlengths 40 40 | returncode int64 0 128 | repos stringlengths 6 87.7k | new_contents stringlengths 0 6.23M | new_file stringlengths 3 311 | old_contents stringlengths 0 6.23M | message stringlengths 6 9.1k | old_file stringlengths 3 311 | subject stringlengths 0 4k | git_diff stringlengths 0 6.31M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Java | mit | ca8a5bde3ff1b11702a64c46841ebcce66a8a5a4 | 0 | github-api-test-org/jenkins,guoxu0514/jenkins,maikeffi/hudson,bpzhang/jenkins,morficus/jenkins,kohsuke/hudson,goldchang/jenkins,292388900/jenkins,hplatou/jenkins,kohsuke/hudson,keyurpatankar/hudson,varmenise/jenkins,lilyJi/jenkins,daniel-beck/jenkins,hemantojhaa/jenkins,lindzh/jenkins,alvarolobato/jenkins,rlugojr/jenki... | /*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant, Erik Ramfelt, Michael B. Donohue
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... | core/src/main/java/hudson/FilePath.java | /*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant, Erik Ramfelt, Michael B. Donohue
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... | [FIXED HUDSON-3254] Use a bigger buffer size to improve remote I/O performance. Will be in 1.302.
git-svn-id: 28f34f9aa52bc55a5ddd5be9e183c5cccadc6ee4@17491 71c3de6d-444a-0410-be80-ed276b4c234a
| core/src/main/java/hudson/FilePath.java | [FIXED HUDSON-3254] Use a bigger buffer size to improve remote I/O performance. Will be in 1.302. | <ide><path>ore/src/main/java/hudson/FilePath.java
<ide> public InputStream extract(InputStream _in) throws IOException {
<ide> HeadBufferingStream in = new HeadBufferingStream(_in,SIDE_BUFFER_SIZE);
<ide> try {
<del> return new GZIPInputStream(in);
<add> ... | |
Java | apache-2.0 | 56302c19489391701f6c5d1ae30341d78207f5a1 | 0 | vvv1559/intellij-community,allotria/intellij-community,asedunov/intellij-community,mglukhikh/intellij-community,apixandru/intellij-community,FHannes/intellij-community,ThiagoGarciaAlves/intellij-community,da1z/intellij-community,da1z/intellij-community,da1z/intellij-community,FHannes/intellij-community,FHannes/intellij... | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/core-impl/src/com/intellij/psi/impl/file/PsiDirectoryImpl.java | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | PsiDirectory should be invalid when project is disposed
| platform/core-impl/src/com/intellij/psi/impl/file/PsiDirectoryImpl.java | PsiDirectory should be invalid when project is disposed | <ide><path>latform/core-impl/src/com/intellij/psi/impl/file/PsiDirectoryImpl.java
<ide>
<ide> @Override
<ide> public boolean isValid() {
<del> return myFile.isValid();
<add> return myFile.isValid() && !getProject().isDisposed();
<ide> }
<ide>
<ide> @Override | |
Java | apache-2.0 | 228d06babcde91bf047a74b05ddffeeb88168720 | 0 | Commonjava/indy,jdcasey/indy,ligangty/indy,ligangty/indy,ligangty/indy,yma88/indy,ruhan1/indy,jdcasey/indy,Commonjava/indy,Commonjava/indy,pkocandr/indy,pkocandr/indy,ruhan1/indy,ligangty/indy,Commonjava/indy,Commonjava/indy,ruhan1/indy,yma88/indy,pkocandr/indy,yma88/indy,ligangty/indy,jdcasey/indy,pkocandr/indy,yma88/... | /*******************************************************************************
* Copyright (c) 2014 Red Hat, Inc..
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* ht... | addons/depgraph/jaxrs/src/main/java/org/commonjava/aprox/depgraph/jaxrs/GraphResource.java | /*******************************************************************************
* Copyright (c) 2014 Red Hat, Inc..
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* ht... | Fix reading of GAVs from URLs in GraphResource methods
The affected methods were reindex, errors, incomplete and variable.
They were all suffering from the same problems
* there was no slash expected/allowed after the method name, so one had to use for example /errorscommons-lang/commons-lang/2.6
* the value used / as... | addons/depgraph/jaxrs/src/main/java/org/commonjava/aprox/depgraph/jaxrs/GraphResource.java | Fix reading of GAVs from URLs in GraphResource methods The affected methods were reindex, errors, incomplete and variable. | <ide><path>ddons/depgraph/jaxrs/src/main/java/org/commonjava/aprox/depgraph/jaxrs/GraphResource.java
<ide> import javax.ws.rs.core.Context;
<ide> import javax.ws.rs.core.Response;
<ide>
<add>import org.apache.commons.lang.StringUtils;
<ide> import org.commonjava.aprox.AproxWorkflowException;
<ide> import org.commonjav... | |
Java | bsd-3-clause | 20c6dcbfc9b718905cdb003b5ce25cb3490fcf3c | 0 | dbgroup-at-ucsc/dbtune,dbgroup-at-ucsc/dbtune | package edu.ucsc.dbtune.inum;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableSet;
import edu.ucsc.dbtune.core.DBIndex;
import edu.ucsc.dbtune.core.DatabaseConnection;
import edu.ucsc.dbtune.spi.core.Console;
import edu.ucsc.dbtune.util.StopWatch;
import java.io.IOException;
impo... | extensions/inum/src/edu/ucsc/dbtune/inum/Inum.java | package edu.ucsc.dbtune.inum;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableSet;
import edu.ucsc.dbtune.core.DBIndex;
import edu.ucsc.dbtune.core.DatabaseConnection;
import edu.ucsc.dbtune.spi.core.Console;
import edu.ucsc.dbtune.util.StopWatch;
import java.io.IOException;
impo... | Fixed JavaDoc error on Inum class
| extensions/inum/src/edu/ucsc/dbtune/inum/Inum.java | Fixed JavaDoc error on Inum class | <ide><path>xtensions/inum/src/edu/ucsc/dbtune/inum/Inum.java
<ide> // todo(Huascar) question to Team: should we parse the interesting orders or rely on
<ide> // the recommended indexes by the extractor? For sake of speed, I am
<ide> // using the recommended indexes. For parsing the... | |
Java | apache-2.0 | f7be437825b9e4350aee89896cf8cb88919d4cc1 | 0 | rmaz/buck,SeleniumHQ/buck,SeleniumHQ/buck,brettwooldridge/buck,facebook/buck,kageiit/buck,romanoid/buck,brettwooldridge/buck,kageiit/buck,nguyentruongtho/buck,romanoid/buck,shs96c/buck,brettwooldridge/buck,rmaz/buck,zpao/buck,nguyentruongtho/buck,JoelMarcey/buck,shs96c/buck,JoelMarcey/buck,kageiit/buck,rmaz/buck,rmaz/b... | /*
* Copyright 2015-present Facebook, Inc.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | test/com/facebook/buck/crosscell/InterCellIntegrationTest.java | /*
* Copyright 2015-present Facebook, Inc.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Refactor InterCellIntegrationTest exception handling
Summary:
Replace all try ... catch blocks with
junit's [`ExpectedException`](http://junit.org/javadoc/latest/org/junit/rules/ExpectedException.html)
Reviewed By: styurin
fbshipit-source-id: cb6ee14520
| test/com/facebook/buck/crosscell/InterCellIntegrationTest.java | Refactor InterCellIntegrationTest exception handling | <ide><path>est/com/facebook/buck/crosscell/InterCellIntegrationTest.java
<ide> import static org.junit.Assert.assertFalse;
<ide> import static org.junit.Assert.assertThat;
<ide> import static org.junit.Assert.assertTrue;
<del>import static org.junit.Assert.fail;
<ide> import static org.junit.Assume.assumeThat;
<ide>
<... | |
Java | apache-2.0 | 1cc4bb4988c387fc7d97cc1a7545224e347aeb25 | 0 | warnerbros/cpe-manifest-android-experience | package com.wb.nextgenlibrary.activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
... | src/com/wb/nextgenlibrary/activity/NextGenActivity.java | package com.wb.nextgenlibrary.activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
... | NGE-697: Android: Display Experience Exit button even if experience launch view / video doesn't load
| src/com/wb/nextgenlibrary/activity/NextGenActivity.java | NGE-697: Android: Display Experience Exit button even if experience launch view / video doesn't load | <ide><path>rc/com/wb/nextgenlibrary/activity/NextGenActivity.java
<ide>
<ide> }
<ide>
<add> View.OnClickListener showButtonOnClickLister = new View.OnClickListener() {
<add> @Override
<add> public void onClick(View v) {
<add> animateButtonsOn();
<add> }
<... | |
Java | apache-2.0 | 35705c844128c34766c1519bf97c983a6cd3099f | 0 | fkbyf14/installator,fkbyf14/installator | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package installator.stages.config;
import installator.ConfigStage;
import java.util.Enumeration;
import javax.swing.AbstractButton;
import javax.swing.JRadioButton;
/**
*
* @author alina
*/
public class ChoicePanel ... | src/installator/stages/config/ChoicePanel.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package installator.stages.config;
import installator.ConfigStage;
import java.util.Enumeration;
import javax.swing.AbstractButton;
import javax.swing.JRadioButton;
/**
*
* @author alina
*/
public class ChoicePanel ... | Цикл для радиобаттонов, всё работает) | src/installator/stages/config/ChoicePanel.java | Цикл для радиобаттонов, всё работает) | <ide><path>rc/installator/stages/config/ChoicePanel.java
<ide> * Creates new form ChoicePanel
<ide> */
<ide> public ChoicePanel(ChoiceStage<Integer> stage, String name, String text,
<del> String[] radioButtonText) {
<del> radioButtons = new JRadioButton[radioButtonText.length];
<del> ... | |
Java | apache-2.0 | 8eed23be0ebce2a60e5da46ebf495d01a8c4b9ee | 0 | OpenXIP/xip-host,OpenXIP/xip-host | /**
* Copyright (c) 2008 Washington University in St. Louis. All Rights Reserved.
*/
package edu.wustl.xipHost.dataModel;
import java.util.ArrayList;
import java.util.List;
import edu.wustl.xipHost.iterator.Criteria;
/**
* SearchResult is a data structure that holds results of a query.
* Initially qu... | src/edu/wustl/xipHost/dataModel/SearchResult.java | /**
* Copyright (c) 2008 Washington University in St. Louis. All Rights Reserved.
*/
package edu.wustl.xipHost.dataModel;
import java.util.ArrayList;
import java.util.List;
import edu.wustl.xipHost.avt2ext.iterator.Criteria;
/**
* SearchResult is a data structure that holds results of a query.
* Init... | Changed referenced to the new iterator package.
SVN-Revision: 702
| src/edu/wustl/xipHost/dataModel/SearchResult.java | Changed referenced to the new iterator package. | <ide><path>rc/edu/wustl/xipHost/dataModel/SearchResult.java
<ide>
<ide> import java.util.ArrayList;
<ide> import java.util.List;
<del>import edu.wustl.xipHost.avt2ext.iterator.Criteria;
<add>import edu.wustl.xipHost.iterator.Criteria;
<ide>
<ide>
<ide> /** | |
Java | lgpl-2.1 | 15be775832624528ab544d914af952d64a869db2 | 0 | concord-consortium/otrunk,concord-consortium/otrunk | /*
* Copyright (C) 2004 The Concord Consortium, Inc.,
* 10 Concord Crossing, Concord, MA 01742
*
* Web Site: http://www.concord.org
* Email: info@concord.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publi... | src/java/org/concord/otrunk/view/OTViewer.java | /*
* Copyright (C) 2004 The Concord Consortium, Inc.,
* 10 Concord Crossing, Concord, MA 01742
*
* Web Site: http://www.concord.org
* Email: info@concord.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publi... | test saving procedure
git-svn-id: 8ebed0c25533aaea68ca43268d4d516467f97e6a@12701 6e01202a-0783-4428-890a-84243c50cc2b
| src/java/org/concord/otrunk/view/OTViewer.java | test saving procedure | <ide><path>rc/java/org/concord/otrunk/view/OTViewer.java
<ide> */
<ide> public void actionPerformed(ActionEvent arg0)
<ide> {
<add> System.out.println("trying to save authored content");
<ide> if (remoteURL != null) {
<add> System.out.println(" remote url = "+remoteURL);
<ide> try {
<ide> ... | |
Java | mit | 2898dc6e1fe26be28ba4f389a465a092dd7cf778 | 0 | YcleptJohn/SortAnalytics | package uk.co.johnjtaylor.events.sorts.bubble;
import uk.co.johnjtaylor.events.EventImportance;
import uk.co.johnjtaylor.events.EventType;
import uk.co.johnjtaylor.events.generic.SortEvent;
/**
* Represents the end of a bubble sort across a dataset;
* (detected via the lack of swaps and then spawned)
* @aut... | src/uk/co/johnjtaylor/events/sorts/bubble/BubbleSortEndEvent.java | package uk.co.johnjtaylor.events.sorts.bubble;
import uk.co.johnjtaylor.events.generic.SortEvent;
public class BubbleSortEndEvent extends SortEvent {
}
| Created a base for the BubbleSortEndEvent +jdoc | src/uk/co/johnjtaylor/events/sorts/bubble/BubbleSortEndEvent.java | Created a base for the BubbleSortEndEvent +jdoc | <ide><path>rc/uk/co/johnjtaylor/events/sorts/bubble/BubbleSortEndEvent.java
<ide> package uk.co.johnjtaylor.events.sorts.bubble;
<ide>
<add>import uk.co.johnjtaylor.events.EventImportance;
<add>import uk.co.johnjtaylor.events.EventType;
<ide> import uk.co.johnjtaylor.events.generic.SortEvent;
<del>
<add>/**
<add> * Re... | |
Java | mit | f22cff860125bb6d529b921a485b00d41f86ab74 | 0 | UNINETT/daas-apps,UNINETT/daas-apps | package com.github.sparkcaller;
import com.github.sparkcaller.preprocessing.*;
import com.github.sparkcaller.variantdiscovery.HaplotypeCaller;
import org.apache.commons.cli.*;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apac... | genomics/sparkcaller/src/main/java/com/github/sparkcaller/SparkCaller.java | package com.github.sparkcaller;
import com.github.sparkcaller.preprocessing.*;
import com.github.sparkcaller.variantdiscovery.HaplotypeCaller;
import org.apache.commons.cli.*;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apac... | [Genomics]: Stop using temporary variables in some places where it is not
necessary and where it does not work as documentation.
| genomics/sparkcaller/src/main/java/com/github/sparkcaller/SparkCaller.java | [Genomics]: Stop using temporary variables in some places where it is not necessary and where it does not work as documentation. | <ide><path>enomics/sparkcaller/src/main/java/com/github/sparkcaller/SparkCaller.java
<ide> this.toolsExtraArgs.getProperty("BaseRecalibrator")));
<ide>
<ide> this.log.info("Performing BQSR...");
<del> bamFilesRDD = bqsrTables.map(new BQSR(... | |
JavaScript | isc | 72aefc2425204a3972c77e9bdc1f84e4c896537b | 0 | mcollina/mqemitter,mcollina/mqemitter |
'use strict'
module.exports = function abstractTests (opts) {
var builder = opts.builder
var test = opts.test
test('support on and emit', function (t) {
t.plan(4)
const e = builder()
const expected = {
topic: 'hello world',
payload: { my: 'message' }
}
e.on('hello world', func... | abstractTest.js |
'use strict'
module.exports = function abstractTests (opts) {
var builder = opts.builder
var test = opts.test
test('support on and emit', function (t) {
t.plan(4)
const e = builder()
const expected = {
topic: 'hello world',
payload: { my: 'message' }
}
e.on('hello world', func... | fix: check emitted packets order to avoid leaks (#34)
| abstractTest.js | fix: check emitted packets order to avoid leaks (#34) | <ide><path>bstractTest.js
<ide> })
<ide> })
<ide>
<add> test('packets are emitted in order', function (t) {
<add> const e = builder()
<add> const total = 10000
<add> const topic = 'test'
<add>
<add> var received = 0
<add>
<add> e.on(topic, function (msg, cb) {
<add> var fail = false
<add> ... | |
Java | apache-2.0 | 8d836fd0dffe4116064dc7b0216ddb5db883c859 | 0 | SAGROUP2/apps-android-wikipedia,Duct-and-rice/KrswtkhrWiki4Android,dbrant/apps-android-wikipedia,Duct-and-rice/KrswtkhrWiki4Android,anirudh24seven/apps-android-wikipedia,dbrant/apps-android-wikipedia,anirudh24seven/apps-android-wikipedia,carloshwa/apps-android-wikipedia,anirudh24seven/apps-android-wikipedia,anirudh24se... | package org.wikipedia.test;
import android.content.Intent;
import android.test.ActivityUnitTestCase;
import org.mediawiki.api.json.ApiException;
import org.wikipedia.page.PageTitle;
import org.wikipedia.Site;
import org.wikipedia.WikipediaApp;
import org.wikipedia.editing.DoEditTask;
import org.wikipedia.editing.Edit... | wikipedia/src/androidTest/java/org/wikipedia/test/DoEditTaskTests.java | package org.wikipedia.test;
import android.content.Intent;
import android.test.ActivityUnitTestCase;
import org.mediawiki.api.json.ApiException;
import org.wikipedia.page.PageTitle;
import org.wikipedia.Site;
import org.wikipedia.WikipediaApp;
import org.wikipedia.editing.DoEditTask;
import org.wikipedia.editing.Edit... | Fix editing tests.
Change-Id: I73ca53eeab046e7ddda3d3032813c1e9a0d06f7b
| wikipedia/src/androidTest/java/org/wikipedia/test/DoEditTaskTests.java | Fix editing tests. | <ide><path>ikipedia/src/androidTest/java/org/wikipedia/test/DoEditTaskTests.java
<ide> import org.wikipedia.WikipediaApp;
<ide> import org.wikipedia.editing.DoEditTask;
<ide> import org.wikipedia.editing.EditTokenStorage;
<del>import org.wikipedia.editing.EditingException;
<ide> import org.wikipedia.editing.EditingResu... | |
Java | apache-2.0 | 1d200bd8ec57a5bc0968e635de685ac4d48bdf0f | 0 | stefanneuhaus/DependencyCheck,jeremylong/DependencyCheck,jeremylong/DependencyCheck,jeremylong/DependencyCheck,stefanneuhaus/DependencyCheck,stefanneuhaus/DependencyCheck,jeremylong/DependencyCheck,jeremylong/DependencyCheck,jeremylong/DependencyCheck,jeremylong/DependencyCheck,stefanneuhaus/DependencyCheck,stefanneuha... | /*
* This file is part of dependency-check-cli.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | cli/src/main/java/org/owasp/dependencycheck/CliParser.java | /*
* This file is part of dependency-check-cli.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | fix pnpm CLI arg
| cli/src/main/java/org/owasp/dependencycheck/CliParser.java | fix pnpm CLI arg | <ide><path>li/src/main/java/org/owasp/dependencycheck/CliParser.java
<ide> "The path to the `go` executable."))
<ide> .addOption(newOptionWithArg(ARGUMENT.PATH_TO_YARN, "path",
<ide> "The path to the `yarn` executable."))
<add> .addOption(ne... | |
Java | bsd-2-clause | c3ff11db783d8f5a335d309fc211e839c7f52c5b | 0 | TehSAUCE/imagej,TehSAUCE/imagej,TehSAUCE/imagej,biovoxxel/imagej,biovoxxel/imagej,biovoxxel/imagej | plugins/commands/src/main/java/imagej/core/commands/debug/ParameterTester.java | /*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2009 - 2013 Board of Regents of the University of
* Wisconsin-Madison, Broad Institute of MIT and Harvard, and Max Planck
* Institute of Molecular Cell Biology and Genetics.
* %%
* Redistribution and use in sourc... | Move ParameterTester example to ImageJ tutorials
| plugins/commands/src/main/java/imagej/core/commands/debug/ParameterTester.java | Move ParameterTester example to ImageJ tutorials | <ide><path>lugins/commands/src/main/java/imagej/core/commands/debug/ParameterTester.java
<del>/*
<del> * #%L
<del> * ImageJ software for multidimensional image processing and analysis.
<del> * %%
<del> * Copyright (C) 2009 - 2013 Board of Regents of the University of
<del> * Wisconsin-Madison, Broad Institute of MIT an... | ||
Java | mit | error: pathspec '1-algorithm/13-leetcode/java/src/fundamentals/tree/root2leafnum/lc113_pathsum2/Solution.java' did not match any file(s) known to git
| f32bedefa0b64205410152a266d829496fc14768 | 1 | cdai/interview | package fundamentals.tree.root2leafnum.lc113_pathsum2;
import fundamentals.tree.TreeNode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
/**
* Given a binary tree and a sum, find all root-to-leaf paths
* where each path's sum eq... | 1-algorithm/13-leetcode/java/src/fundamentals/tree/root2leafnum/lc113_pathsum2/Solution.java | leetcode-113 path sum 2
| 1-algorithm/13-leetcode/java/src/fundamentals/tree/root2leafnum/lc113_pathsum2/Solution.java | leetcode-113 path sum 2 | <ide><path>-algorithm/13-leetcode/java/src/fundamentals/tree/root2leafnum/lc113_pathsum2/Solution.java
<add>package fundamentals.tree.root2leafnum.lc113_pathsum2;
<add>
<add>import fundamentals.tree.TreeNode;
<add>
<add>import java.util.ArrayList;
<add>import java.util.Collections;
<add>import java.util.LinkedList;
<ad... | |
Java | mit | 75cfecb2374dd5dca2be0741c967fc5eefe877a6 | 0 | BrassGoggledCoders/MoarLibs,BrassGoggledCoders/OpenTransport | package xyz.brassgoggledcoders.opentransport.minecarts.entities;
import com.google.common.base.Optional;
import net.minecraft.client.gui.Gui;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.inventory.Container;
import net.minecraft.item.ItemMinecart;
import net.mi... | src/main/java/xyz/brassgoggledcoders/opentransport/minecarts/entities/EntityMinecartHolder.java | package xyz.brassgoggledcoders.opentransport.minecarts.entities;
import com.google.common.base.Optional;
import net.minecraft.client.gui.Gui;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.inventory.Container;
import net.minecraft.item.ItemMinecart;
import net.mi... | Fix Minecarts crashing when setting Item
| src/main/java/xyz/brassgoggledcoders/opentransport/minecarts/entities/EntityMinecartHolder.java | Fix Minecarts crashing when setting Item | <ide><path>rc/main/java/xyz/brassgoggledcoders/opentransport/minecarts/entities/EntityMinecartHolder.java
<ide> protected void entityInit() {
<ide> super.entityInit();
<ide> this.dataManager.register(BLOCK_CONTAINER_NAME, "");
<add> this.dataManager.register(ITEM_CART, Optional.absent());
<ide> }
<ide>
<ide> @... | |
Java | agpl-3.0 | 3e90e9d72dee157a9027eaa800e9ab4ce20af45b | 0 | WASP-System/central,WASP-System/central,WASP-System/central,WASP-System/central,WASP-System/central,WASP-System/central | package edu.yu.einstein.wasp.macstwo.batch.tasklet;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import ... | plugins/macsTwo/src/main/java/edu/yu/einstein/wasp/macstwo/batch/tasklet/MacstwoTaskletModel.java | package edu.yu.einstein.wasp.macstwo.batch.tasklet;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import ... | actually fixed the previous problem
| plugins/macsTwo/src/main/java/edu/yu/einstein/wasp/macstwo/batch/tasklet/MacstwoTaskletModel.java | actually fixed the previous problem | <ide><path>lugins/macsTwo/src/main/java/edu/yu/einstein/wasp/macstwo/batch/tasklet/MacstwoTaskletModel.java
<ide> this.job = jobService.getJobByJobId(jobId);
<ide> }
<ide> if(executionContext.containsKey(MacstwoService.PREFIX_FOR_FILE_NAME)){
<del> this.prefixForFileName = (String) executionContext.get(Macstwo... | |
Java | mit | 91cc19ebe42ed0838ccfc34ce7a060bf3dce4257 | 0 | Innovimax-SARL/mix-them | package innovimax.mixthem;
import innovimax.mixthem.arguments.Arguments;
import innovimax.mixthem.exceptions.ArgumentException;
import org.junit.Assert;
import org.junit.Test;
/*
Created by innovimax-jim
Basic tests for this application
*/
public class BasicTest {
@Test
public final void ... | src/test/java/innovimax/mixthem/BasicTest.java | package innovimax.mixthem;
import innovimax.mixthem.MixThem;
import innovimax.mixthem.arguments.Arguments;
import innovimax.mixthem.exceptions.ArgumentException;
import org.junit.Assert;
import org.junit.Test;
/*
Created by innovimax-jim
Basic tests for this application
*/
public class BasicTest... | Fix BasicTest.java
use Arguments.printUsage()
remove useless import of MixThem | src/test/java/innovimax/mixthem/BasicTest.java | Fix BasicTest.java | <ide><path>rc/test/java/innovimax/mixthem/BasicTest.java
<ide> package innovimax.mixthem;
<ide>
<del>import innovimax.mixthem.MixThem;
<ide> import innovimax.mixthem.arguments.Arguments;
<ide> import innovimax.mixthem.exceptions.ArgumentException;
<ide>
<ide> System.out.println(e.getMessage());
<ide> }
<ide>... | |
Java | mit | 9a8e4d2ef0ddfe466923a6c0177184c1b2dea8cf | 0 | BoozePal/BoozePal,BoozePal/BoozePal,BoozePal/BoozePal,BoozePal/BoozePal | package hu.deik.boozepal.service.impl;
import java.util.Arrays;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.interceptor.Interceptors;
import org.slf4j.Logger;
import org.s... | boozepal/boozepal-service/src/main/java/hu/deik/boozepal/service/impl/StartupServiceImpl.java | package hu.deik.boozepal.service.impl;
import java.util.Arrays;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.interceptor.Interceptors;
import org.slf4j.Logger;
import org.s... | First user password = admin Hotfix
| boozepal/boozepal-service/src/main/java/hu/deik/boozepal/service/impl/StartupServiceImpl.java | First user password = admin Hotfix | <ide><path>oozepal/boozepal-service/src/main/java/hu/deik/boozepal/service/impl/StartupServiceImpl.java
<ide> @Interceptors({ SpringBeanAutowiringInterceptor.class })
<ide> public class StartupServiceImpl implements StartupService {
<ide>
<add> /* password = admin */
<add> private static final String PASSWORD = "$2a$0... | |
JavaScript | mit | ee7d8f25960335aa206a8e0d68cfe12b49725bfe | 0 | chenclee/utacm_icpc_autojudge,chenclee/utacm_icpc_autojudge,ilinum/utacm_icpc_autojudge,ilinum/utacm_icpc_autojudge,ilinum/utacm_icpc_autojudge,chenclee/utacm_icpc_autojudge,ilinum/utacm_icpc_autojudge,ilinum/utacm_icpc_autojudge,chenclee/utacm_icpc_autojudge,chenclee/utacm_icpc_autojudge,ilinum/utacm_icpc_autojudge,ch... | var preContestControllers = angular.module('preContestControllers', []);
preContestControllers.controller('MainCtrl', ['$scope', '$http', '$timeout',
function ($scope, $http, $timeout, $window) {
function sync () {
$http.get('api/v1/updates').success(function (data) {
if ($scope.rawTime < p... | static/js/controllers.js | var preContestControllers = angular.module('preContestControllers', []);
preContestControllers.controller('MainCtrl', ['$scope', '$http', '$timeout',
function ($scope, $http, $timeout, $window) {
function sync () {
$http.get('api/v1/updates').success(function (data) {
if ($scope.rawTime < p... | delay alerts for correct/incorrect
| static/js/controllers.js | delay alerts for correct/incorrect | <ide><path>tatic/js/controllers.js
<ide> }).success(function (data) {
<ide> if (data) {
<ide> $scope.solved[probIds[index]] = true;
<del> $window.alert("Solution accepted!");
<add> setTimeout(function () {
<add> $window.alert("Solution accepted!");
<add... | |
JavaScript | isc | 2a9e95bc6465af125d912e9be0af7fd183547511 | 0 | mysimpleapp/mysimpleapp | const numCPUs = 1
module.exports = async function() {
if (cluster.isMaster) {
console.log(`Master ${process.pid} is running`)
for (let i = 0; i < numCPUs; i++) {
cluster.fork()
}
cluster.on('exit', (worker, code, signal) => {
console.log(`worker ${worker.process.pid} died`);
cluster.fork()
})
} el... | src/start.js | module.exports = async function() {
// create modules router
Msa.modulesRouter = Msa.express.Router()
// call msa modules msa_start.js
const modules = Msa.params.modules
for(let key in modules)
await Msa.start(key, modules[key])
// require msa modules
for(let key in Msa.Modules){
// get name of module
con... | cluster
| src/start.js | cluster | <ide><path>rc/start.js
<add>const numCPUs = 1
<add>
<ide> module.exports = async function() {
<add> if (cluster.isMaster) {
<add> console.log(`Master ${process.pid} is running`)
<add> for (let i = 0; i < numCPUs; i++) {
<add> cluster.fork()
<add> }
<add> cluster.on('exit', (worker, code, signal) => {
<add> cons... | |
Java | mit | 5ebef1272481c77d46e20c07214ae815c20fb842 | 0 | Enthri/aprctsrpg | import java.util.Random;
import ui.*;
import ui.elem.*;
import util.Assassin;
import util.BattleHandler;
import util.EntityCreature;
import util.Item;
import util.Tank;
import util.Zombie;
/*
* This is the class where all the battles are handled
*/
public class StageBattle extends Stage {
//initializing choices
... | StageBattle.java | import java.util.Random;
import ui.*;
import ui.elem.*;
import util.Assassin;
import util.BattleHandler;
import util.EntityCreature;
import util.Item;
import util.Tank;
import util.Zombie;
/*
* This is the class where all the battles are handled
*/
public class StageBattle extends Stage {
//initializing choices
... | Comment
| StageBattle.java | Comment | <ide><path>tageBattle.java
<ide> else this.addElements(new Sprite("minion2.png", 0.5f));
<ide> } else if(DataHandler.source instanceof StageMotherZombie) {
<ide> switch(new Random().nextInt(3)) {
<add> //adding the appropriate sprite to the screen
<ide> case 0: this.addElements(new Sprite("boss1.png"... | |
Java | apache-2.0 | 984a9fb1c350b65759e5f86e6a1e82ef420ac3f1 | 0 | chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | kahadb/src/main/java/org/apache/kahadb/page/Transaction.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | https://issues.apache.org/jira/browse/AMQ-3374 - long kahadb tx - parse long
git-svn-id: d2a93f579bd4835921162e9a69396c846e49961c@1138449 13f79535-47bb-0310-9956-ffa450edef68
| kahadb/src/main/java/org/apache/kahadb/page/Transaction.java | https://issues.apache.org/jira/browse/AMQ-3374 - long kahadb tx - parse long | <ide><path>ahadb/src/main/java/org/apache/kahadb/page/Transaction.java
<ide> // List of pages freed in this transaction
<ide> private final SequenceSet freeList = new SequenceSet();
<ide>
<del> private long maxTransactionSize = Integer.parseInt(System.getProperty("maxKahaDBTxSize", "" + 10485760));
<add> ... | |
Java | mit | 159cea342ffeb039beb0a1b6f4fdec90fe2e5e55 | 0 | roccobarbi/geneticLearner01 | /**
*
*/
package geneticLearner01;
/**
* Engine for the evolution of the best algorithm.
* It can be created out of a set of words, a single organism or a set of organisms
*
* @author WT-Rocco
*
*/
public class EvolutionEngine {
// Constants
private static final int BEST_SIZE = 3;
private static final i... | EvolutionEngine.java | /**
*
*/
package geneticLearner01;
/**
* Engine for the evolution of the best algorithm.
* It can be created out of a set of words, a single organism or a set of organisms
*
* @author WT-Rocco
*
*/
public class EvolutionEngine {
// Constants
private static final int BEST_SIZE = 3;
private static final int... | trainingSet added and evolution logic schema
| EvolutionEngine.java | trainingSet added and evolution logic schema | <ide><path>volutionEngine.java
<ide> */
<ide>
<ide> public class EvolutionEngine {
<add>
<ide> // Constants
<ide> private static final int BEST_SIZE = 3;
<ide> private static final int POP_SIZE = (int) Math.pow(2, BEST_SIZE) * 2;
<ide> private RuleOrganism bestChoices[]; // Not needed if I order the population a... | |
Java | mit | 3a1ed696f8fd72252f910acc6c745fa5c7233e41 | 0 | hgl888/AndroidSliderPreference,olivergeith/android_BasicsPreference,jayschwa/AndroidSliderPreference | /*
* Copyright 2012 Jay Weisskopf
*
* Licensed under the MIT License (see LICENSE.txt)
*/
package net.jayschwa.android.preference;
import android.content.Context;
import android.content.res.TypedArray;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.View;
import a... | src/net/jayschwa/android/preference/SliderPreference.java | /*
* Copyright 2012 Jay Weisskopf
*
* Licensed under the MIT License (see LICENSE.txt)
*/
package net.jayschwa.android.preference;
import android.content.Context;
import android.content.res.TypedArray;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.View;
import a... | Remove method and access variable directly
| src/net/jayschwa/android/preference/SliderPreference.java | Remove method and access variable directly | <ide><path>rc/net/jayschwa/android/preference/SliderPreference.java
<ide> }
<ide> }
<ide>
<del> protected void setSeekBarValue(int value) {
<del> mSeekBarValue = value;
<del> }
<del>
<ide> @Override
<ide> protected View onCreateDialogView() {
<ide> mSeekBarValue = (int) (mValue * SEEKBAR_RESOLUTION);
<ide> ... | |
JavaScript | mit | 07522d71eeb9dd505ded32149d38868f7cecbea1 | 0 | fabienvauchelles/scrapoxy,fabienvauchelles/scrapoxy,fabienvauchelles/scrapoxy | 'use strict';
module.exports = {
proxy: {
port: 8888,
statsSamplingDelay: 1000,
},
commander: {
port: 8889,
},
instance: {
checkDelay: 10 * 1000, // 10sec
checkAliveDelay: 20 * 1000, // 20sec
stopIfCrashedDelay: 2 * 60 * 1000, // 120sec,
a... | server/config.defaults.js | 'use strict';
module.exports = {
proxy: {
port: 8888,
statsSamplingDelay: 1000,
},
commander: {
port: 8889,
},
instance: {
checkDelay: 10 * 1000, // 10sec
checkAliveDelay: 20 * 1000, // 20sec
stopIfCrashedDelay: 2 * 60 * 1000, // 120sec,
a... | chore(aliveMax): change ping retry to 10
| server/config.defaults.js | chore(aliveMax): change ping retry to 10 | <ide><path>erver/config.defaults.js
<ide> checkAliveDelay: 20 * 1000, // 20sec
<ide> stopIfCrashedDelay: 2 * 60 * 1000, // 120sec,
<ide> autoRestartDelay: 60 * 60 * 1000, // 1h,
<del> aliveMax: 2,
<add> aliveMax: 10,
<ide>
<ide> autorestart: {
<ide> minDelay: 1... | |
Java | apache-2.0 | ed2f1e7382da732623c9674be030e8eca97ff400 | 0 | marcrh/gwt-material,GwtMaterialDesign/gwt-material,GwtMaterialDesign/gwt-material,guibertjulien/gwt-material,marcrh/gwt-material,marcrh/gwt-material,GwtMaterialDesign/gwt-material,guibertjulien/gwt-material,guibertjulien/gwt-material | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2016 GwtMaterialDesign
* %%
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
* ... | gwt-material/src/main/java/gwt/material/design/client/ui/MaterialDatePicker.java | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2016 GwtMaterialDesign
* %%
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
* ... | MaterialDatePicker - Fixed leaks on autoClose feature
| gwt-material/src/main/java/gwt/material/design/client/ui/MaterialDatePicker.java | MaterialDatePicker - Fixed leaks on autoClose feature | <ide><path>wt-material/src/main/java/gwt/material/design/client/ui/MaterialDatePicker.java
<ide> .off(options)
<ide> .on(options);
<ide>
<del> // Provide a feature to autoClose the picker when picking value
<del> if (isAutoClose()) {
<del> autoCloseHandler = add... | |
Java | lgpl-2.1 | 2a71b33564cb079546c93302a6d4d4d786fc105a | 0 | tgvaughan/beast2,Anaphory/beast2,CompEvol/beast2,Anaphory/beast2,CompEvol/beast2,tgvaughan/beast2,Anaphory/beast2,CompEvol/beast2,tgvaughan/beast2,tgvaughan/beast2,CompEvol/beast2,Anaphory/beast2 | package beast.evolution.substitutionmodel;
import beast.core.Description;
import beast.core.Input;
import beast.core.Input.Validate;
import beast.core.parameter.RealParameter;
import beast.core.util.Log;
import beast.evolution.datatype.DataType;
import beast.evolution.datatype.TwoStateCovarion;
/**
* <p/>
* a the ... | src/beast/evolution/substitutionmodel/BinaryCovarion.java | package beast.evolution.substitutionmodel;
import beast.core.Description;
import beast.core.Input;
import beast.core.Input.Validate;
import beast.core.parameter.RealParameter;
import beast.core.util.Log;
import beast.evolution.datatype.DataType;
import beast.evolution.datatype.TwoStateCovarion;
/**
* <p/>
* a the ... | issue #398 set up Input of BinaryCovarion properly
| src/beast/evolution/substitutionmodel/BinaryCovarion.java | issue #398 set up Input of BinaryCovarion properly | <ide><path>rc/beast/evolution/substitutionmodel/BinaryCovarion.java
<ide> public Input<MODE> modeInput = new Input<>("mode","one of BEAST, REVERSIBLE, TUFFLESTEEL "
<ide> + "BEAST = implementation as in BEAST 1 "
<ide> + "REVERSIBLE = like BEAST 1 implementation, but using frequencies to make it reversible "
<de... | |
Java | mit | b2de12d61cba182e07c80aa3748ef060cb4b449f | 0 | LightningDevStudios/CircuitCrawler | package com.lds.game.entity;
import com.lds.Vector2f;
public class TeleporterLinker
{
protected static Vector2f link1Pos, link2Pos, link3Pos;
protected static Teleporter entTele1, entTele2, entTele3;
protected static boolean oneWay, threeWay;
public TeleporterLinker(Teleporter ent, Teleporter ent2, b... | src/com/lds/game/entity/TeleporterLinker.java | package com.lds.game.entity;
import com.lds.Vector2f;
public class TeleporterLinker
{
protected static Vector2f link1Pos, link2Pos, link3Pos;
protected static Teleporter entTele1, entTele2, entTele3;
protected static boolean oneWay, threeWay;
public TeleporterLinker(Teleporter ent, Teleporter ent2, b... | more fixes | src/com/lds/game/entity/TeleporterLinker.java | more fixes | <ide><path>rc/com/lds/game/entity/TeleporterLinker.java
<ide> {
<ide> oneWay = bool;
<ide> }
<add>
<add> public void setThreeWay(boolean bool)
<add> {
<add> threeWay = bool;
<add> }
<ide> } | |
Java | mit | error: pathspec 'Craps.java' did not match any file(s) known to git
| 940e02d48a57805faacce28247c67ea461836a70 | 1 | k8port/Java | /** A program to simulate a game of craps. This program does not require user
* input and instead rolls the dice and plays 10,000 games. The number of
* wins and the number of losses are added and probability of winning and
* losing is output.
* Rules of craps:
* Two six-sided dice are rolled. The first ... | Craps.java | Create Craps.java
A program to simulate 10000 games of craps. Odds are calculated and output based on results of 10000 rounds. Uses Math.random() to simulate random die rolls. | Craps.java | Create Craps.java | <ide><path>raps.java
<add>/** A program to simulate a game of craps. This program does not require user
<add> * input and instead rolls the dice and plays 10,000 games. The number of
<add> * wins and the number of losses are added and probability of winning and
<add> * losing is output.
<add> * Rules of craps:
<a... | |
Java | bsd-2-clause | ea7f7a8b918846445d3a5e77b20a81cfd454e80c | 0 | malensek/galileo-net,malensek/elssa | /*
Copyright (c) 2015, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | src/main/java/io/elssa/nn/NetworkEndpoint.java | /*
Copyright (c) 2015, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | Add SocketAddress-based constructor
| src/main/java/io/elssa/nn/NetworkEndpoint.java | Add SocketAddress-based constructor | <ide><path>rc/main/java/io/elssa/nn/NetworkEndpoint.java
<ide>
<ide> package io.elssa.nn;
<ide>
<add>import java.net.InetSocketAddress;
<add>import java.net.SocketAddress;
<add>
<ide> /**
<ide> * Represents a TCP network endpoint; a host/port pair.
<ide> *
<ide> public NetworkEndpoint(String hostname, int port)... | |
Java | apache-2.0 | 0ad561ace039bca90681bccfbcd4ee5912c33103 | 0 | jagguli/intellij-community,consulo/consulo,vladmm/intellij-community,TangHao1987/intellij-community,vladmm/intellij-community,fitermay/intellij-community,allotria/intellij-community,alphafoobar/intellij-community,blademainer/intellij-community,amith01994/intellij-community,fengbaicanhe/intellij-community,supersven/inte... | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/platform-impl/src/com/intellij/ide/actions/SaveAsDirectoryBasedFormatAction.java | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | ConcurrentModificationException
| platform/platform-impl/src/com/intellij/ide/actions/SaveAsDirectoryBasedFormatAction.java | ConcurrentModificationException | <ide><path>latform/platform-impl/src/com/intellij/ide/actions/SaveAsDirectoryBasedFormatAction.java
<ide>
<ide> import java.io.File;
<ide> import java.io.IOException;
<add>import java.util.ArrayList;
<add>import java.util.Collection;
<ide>
<ide> /**
<ide> * @author spleaner
<ide>
<ide>
<ide> final Stat... | |
JavaScript | apache-2.0 | 7465cc1ff9d4b227f1baf588105a588c7ec4e0c8 | 0 | SQCLabs/openui5,cschuff/openui5,SAP/openui5,cschuff/openui5,SQCLabs/openui5,cschuff/openui5,SAP/openui5,nzamani/openui5,SAP/openui5,SAP/openui5,nzamani/openui5,SQCLabs/openui5,nzamani/openui5 | sap.ui.define([
"sap/ui/core/UIComponent"
], function(UIComponent) {
"use strict";
var Component = UIComponent.extend("sap.m.sample.UploadCollectionFolderHierarchy.Component", {
metadata: {
rootView: "sap.m.sample.UploadCollectionFolderHierarchy.Page",
dependencies: {
libs: ["sap.m", "sap.ui.unified"]
... | src/sap.m/test/sap/m/demokit/sample/UploadCollectionFolderHierarchy/Component.js | sap.ui.define([
"sap/ui/core/UIComponent"
], function(UIComponent) {
"use strict";
var Component = UIComponent.extend("sap.m.sample.UploadCollectionFolderHierarchy.Component", {
metadata: {
rootView: "sap.m.sample.UploadCollectionFolderHierarchy.Page",
dependencies: {
libs: ["sap.m", "sap.ui.unified"]
... | [INTERNAL] sap.m.UploadCollection: JSON file added to Folder Hierarchy Explored sample
Change-Id: I70830f4ef579f29880cf7a0afc1072efc60289da
| src/sap.m/test/sap/m/demokit/sample/UploadCollectionFolderHierarchy/Component.js | [INTERNAL] sap.m.UploadCollection: JSON file added to Folder Hierarchy Explored sample | <ide><path>rc/sap.m/test/sap/m/demokit/sample/UploadCollectionFolderHierarchy/Component.js
<ide> stretch: true,
<ide> files: [
<ide> "Page.view.xml",
<del> "Page.controller.js"
<add> "Page.controller.js",
<add> "UploadCollectionData.json"
<ide> ]
<ide> }
<ide> } | |
Java | apache-2.0 | f1b346522f53ff82ca88cc7c16e22d8f0c3da89a | 0 | Yaliang/presto,RobinUS2/presto,sopel39/presto,prestodb/presto,facebook/presto,troels/nz-presto,sumitkgec/presto,shixuan-fan/presto,mvp/presto,svstanev/presto,aramesh117/presto,svstanev/presto,electrum/presto,ptkool/presto,wagnermarkd/presto,miniway/presto,arhimondr/presto,11xor6/presto,electrum/presto,erichwang/presto,... | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | presto-hive/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Handle create_table failures in Hive metastore more robustly
When Hive metastore responds with failure for create_table calls,
it might have succeeded. For example, first create_partition timed
out, but the table was actually added. The second call (retry) fails
with TableAlreadyExists.
This commit changes the behavi... | presto-hive/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java | Handle create_table failures in Hive metastore more robustly | <ide><path>resto-hive/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java
<ide> }
<ide> }
<ide>
<add> private static Optional<String> getPrestoQueryId(Table table)
<add> {
<add> return Optional.ofNullable(table.getParameters().get(PRESTO_QUERY_ID_NAME));
<add> ... | |
Java | mit | 12e8e16205d7314b91ae1c7b6e5f9db550e09ab6 | 0 | pardiralli-dev/pardiralli,pardiralli-dev/pardiralli,pardiralli-dev/pardiralli | package ee.pardiralli.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Search {
private String itemId;
private String buyersEmail;
private String ownersFirstName;
private String ownersLastName;
... | src/main/java/ee/pardiralli/domain/Search.java | package ee.pardiralli.domain;
import lombok.*;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Search {
private String itemId;
private String buyersEmail;
private String ownersFirstName;
private String ownersLastName;
private String ownersPhoneNr;
}
| refactor Search, #21
| src/main/java/ee/pardiralli/domain/Search.java | refactor Search, #21 | <ide><path>rc/main/java/ee/pardiralli/domain/Search.java
<ide> package ee.pardiralli.domain;
<ide>
<del>import lombok.*;
<add>import lombok.AllArgsConstructor;
<add>import lombok.Data;
<add>import lombok.NoArgsConstructor;
<ide>
<ide> @Data
<ide> @NoArgsConstructor | |
Java | apache-2.0 | 39f42919190548212298e96a6a94c5bfa4ee6367 | 0 | brianwhu/xillium,brianwhu/xillium,brianwhu/xillium | package org.xillium.core.util;
import java.io.*;
import java.lang.reflect.*;
import java.net.*;
import java.util.*;
import java.util.logging.*;
import org.xillium.base.util.Bytes;
import org.xillium.data.DataObject;
import org.xillium.data.DataBinder;
import org.xillium.data.CachedResultSet;
import org.xillium.core.*;... | core/src/main/java/org/xillium/core/util/RemoteService.java | package org.xillium.core.util;
import java.io.*;
import java.lang.reflect.*;
import java.net.*;
import java.util.*;
import java.util.logging.*;
import org.xillium.base.util.Bytes;
import org.xillium.data.DataObject;
import org.xillium.data.DataBinder;
import org.xillium.data.CachedResultSet;
import org.xillium.core.*;... | encoding remote call parameters from DataObject/DataBinder
| core/src/main/java/org/xillium/core/util/RemoteService.java | encoding remote call parameters from DataObject/DataBinder | <ide><path>ore/src/main/java/org/xillium/core/util/RemoteService.java
<ide> try {
<ide> Object value = field.get(data);
<ide> if (value == null) value = "";
<del> list.add(field.getName() + '=' + value);
<add> try {
<add> list.... | |
JavaScript | mit | f6ffef23d4ce105cc6673c43d2396e8f5f0efd8b | 0 | kevinchappell/formBuilder,kevinchappell/formBuilder | const { exec } = require('child_process')
const pkg = require('../package.json')
const commands = [
`cd ${process.env.FORMBUILDER_WEBSITE_DIR || 'site'}/`,
`npm version ${pkg.version}`,
'git push origin master',
]
// try to deploy the demo
try {
exec(commands.join(' && '), err => !err && console.log('Site suc... | tools/deploy-site.js | const { exec } = require('child_process')
const pkg = require('../package.json')
const commands = [
`npm version ${pkg.version}`,
'git push origin master',
]
const cwd = process.env.FORMBUILDER_WEBSITE_DIR || 'site'
// try to deploy the demo
try {
exec(commands.join(' && '), { cwd }, err => !err && console.log... | update deploy-site
| tools/deploy-site.js | update deploy-site | <ide><path>ools/deploy-site.js
<ide> const pkg = require('../package.json')
<ide>
<ide> const commands = [
<add> `cd ${process.env.FORMBUILDER_WEBSITE_DIR || 'site'}/`,
<ide> `npm version ${pkg.version}`,
<ide> 'git push origin master',
<ide> ]
<ide>
<del>const cwd = process.env.FORMBUILDER_WEBSITE_DIR || 'site'... | |
Java | agpl-3.0 | 3fc22b8c4befbc1edb38375302990f820c4be19a | 0 | VietOpenCPS/opencps-v2,VietOpenCPS/opencps-v2 | package org.opencps.statistic.rest.util;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.model.Company;
import com.liferay.portal.kernel.search.Document;
import com.liferay.portal.kernel.s... | modules/backend-statistic-rest/src/main/java/org/opencps/statistic/rest/util/StatisticDataUtil.java | package org.opencps.statistic.rest.util;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.model.Company;
import com.liferay.portal.kernel.search.Document;
import com.liferay.portal.kernel.s... | Update voting statistic
| modules/backend-statistic-rest/src/main/java/org/opencps/statistic/rest/util/StatisticDataUtil.java | Update voting statistic | <ide><path>odules/backend-statistic-rest/src/main/java/org/opencps/statistic/rest/util/StatisticDataUtil.java
<ide> data.setGovAgencyName(doc.get(VotingTerm.GOV_AGENCY_NAME));
<ide> data.setVotingCode(doc.get(VotingTerm.VOTING_CODE));
<ide> data.setVotingSubject(doc.get(VotingTerm.VOTING_SUBJECT));
<add> ... | |
Java | lgpl-2.1 | 12b6c4ced1244a8be72abd2fac0aa1f891f2e09d | 0 | shuiblue/JDimeForCpp,shuiblue/JDimeForCpp,shuiblue/JDimeForCpp | /*******************************************************************************
* Copyright (c) 2013 Olaf Lessenich.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available ... | src/de/fosd/jdime/common/ASTNodeArtifact.java | /*******************************************************************************
* Copyright (c) 2013 Olaf Lessenich.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available ... | Speed up matching import statements.
| src/de/fosd/jdime/common/ASTNodeArtifact.java | Speed up matching import statements. | <ide><path>rc/de/fosd/jdime/common/ASTNodeArtifact.java
<ide>
<ide> @Override
<ide> public final boolean hasUniqueLabels() {
<add> if (astnode instanceof ImportDecl) {
<add> return true;
<add> }
<add>
<ide> return false;
<ide> }
<ide> | |
Java | bsd-3-clause | a5b29cc3f976d8b2c1788efbf0efa7ca219df504 | 0 | FIRST-FRC-Team-2028/2013 | package com.PhoebusHighSchool.PhoebusRobotics.UltimateAscent;
import com.sun.squawk.util.MathUtils;
import edu.wpi.first.wpilibj.PIDSource;
import edu.wpi.first.wpilibj.camera.*;
import edu.wpi.first.wpilibj.image.*;
/*
*/
public class AimingSystem implements PIDSource {
final int XMAXSIZE = 24;
... | src/com/phoebushighschool/phoebusrobotics/ultimateascent/AimingSystem.java | package com.PhoebusHighSchool.PhoebusRobotics.UltimateAscent;
import com.sun.squawk.util.MathUtils;
import edu.wpi.first.wpilibj.PIDSource;
import edu.wpi.first.wpilibj.camera.*;
import edu.wpi.first.wpilibj.image.*;
/*
*/
public class AimingSystem implements PIDSource {
final int XMAXSIZE = 24;
... | last change | src/com/phoebushighschool/phoebusrobotics/ultimateascent/AimingSystem.java | last change | <ide><path>rc/com/phoebushighschool/phoebusrobotics/ultimateascent/AimingSystem.java
<ide> scores[i].rectangularity = scoreRectangularity(r);
<ide> scores[i].aspectRatioHigh = scoreAspectRatio(filteredImage, r, i, false);
<ide> scores[i].aspectRatioMiddle = scoreAspectRat... | |
JavaScript | mit | 3c9037a7d2a2c89ad8ed2b4a13ec6f3283b7accf | 0 | lucalianas/ProMort,crs4/ProMort,crs4/ProMort,lucalianas/ProMort,lucalianas/ProMort,crs4/ProMort | (function () {
'use strict';
angular
.module('promort.viewer.services')
.factory('ViewerService', ViewerService)
.factory('AnnotationsViewerService', AnnotationsViewerService);
ViewerService.$inject = ['$http'];
function ViewerService($http) {
var ViewerService = {
... | promort/src/js/ome_seadragon_viewer/viewer.services.js | (function () {
'use strict';
angular
.module('promort.viewer.services')
.factory('ViewerService', ViewerService)
.factory('AnnotationsViewerService', AnnotationsViewerService);
ViewerService.$inject = ['$http'];
function ViewerService($http) {
var ViewerService = {
... | adapt ROIs to its container
| promort/src/js/ome_seadragon_viewer/viewer.services.js | adapt ROIs to its container | <ide><path>romort/src/js/ome_seadragon_viewer/viewer.services.js
<ide> getShapeArea: getShapeArea,
<ide> focusOnShape: focusOnShape,
<ide> checkContainment: checkContainment,
<add> adaptToContainer: adaptToContainer,
<ide> createRulerBindings: createRulerBindin... | |
JavaScript | mit | 6f464b80094457fc437b42136c5e9fb658f38dc1 | 0 | hideoussquid/aur-copay,bitjson/copay,matiu/copay,Bitcoin-com/Wallet,msalcala11/copay,cmgustavo/copay,Groestlcoin/GroestlPay,msalcala11/copay,bitchk-wallet/copay,JDonadio/copay,dabura667/copay,javierbitpay/copay,bitjson/copay,bitjson/copay,dabura667/copay,tanojaja/copay,ajp8164/copay,javierbitpay/copay,janko33bd/copay,G... | 'use strict';
angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $interval, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, isMobile, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog... | src/js/controllers/walletHome.js | 'use strict';
angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $interval, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, isMobile, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog... | apply timer in proposal details
| src/js/controllers/walletHome.js | apply timer in proposal details | <ide><path>rc/js/controllers/walletHome.js
<ide> }, 1000);
<ide>
<ide> function setExpirationTime() {
<del> if (moment().isAfter(expirationTime * 1000)) {
<add> var now = Math.floor(Date.now() / 1000);
<add> if (now > expirationTime) {
<ide> $scope.paymentExpired ... | |
JavaScript | mit | 8de4e0c4ca9f7762d7ca8daf123c877654a85645 | 0 | spiralnebula/table,spiralnebula/table | (function ( window, module ) {
if ( window.define && window.define.amd ) {
define(module)
} else {
var current_scripts, this_script, module_name
current_scripts = document.getElementsByTagName("script")
this_script = current_scripts[current_scripts.length-1]
module_name = this_script... | library/url_parser.js | (function ( window, module ) {
if ( window.define && window.define.amd ) {
define(module)
} else {
var current_scripts, this_script, module_name
current_scripts = document.getElementsByTagName("script")
this_script = current_scripts[current_scripts.length-1]
module_name = this_script... | Url parser has paramater change
| library/url_parser.js | Url parser has paramater change | <ide><path>ibrary/url_parser.js
<ide> }
<ide>
<ide> return {
<del> paramater : object_of_paramaters
<add> paramaters : object_of_paramaters
<ide> }
<ide> },
<ide> | |
JavaScript | mit | 7933cdb6fb5d1dd577ecd065a3bbd77eb7108718 | 0 | StreetSupport/streetsupport-admin,StreetSupport/streetsupport-admin | var Spinner = require('spin.js')
var redirect = function (url) {
window.location = url
}
var dataLoaded = function () {
var dynamicElements = document.getElementsByClassName('awaiting-data')
Array.from(dynamicElements).forEach(element => {
element.className = element.className.replace(/(?:^|\s)awaiting-data... | src/js/browser.js | var _ = require('lodash')
var Spinner = require('spin.js')
var redirect = function (url) {
window.location = url
}
var dataLoaded = function () {
var dynamicElements = document.getElementsByClassName('awaiting-data')
_.forEach(dynamicElements, function (element) {
element.className = element.className.repla... | fix removal of 'awaiting-data' class
| src/js/browser.js | fix removal of 'awaiting-data' class | <ide><path>rc/js/browser.js
<del>var _ = require('lodash')
<ide> var Spinner = require('spin.js')
<ide>
<ide> var redirect = function (url) {
<ide>
<ide> var dataLoaded = function () {
<ide> var dynamicElements = document.getElementsByClassName('awaiting-data')
<del> _.forEach(dynamicElements, function (element) {... | |
JavaScript | mit | 6c5ed7c87b6b78c0a0966d0ddbb2aed392f66dda | 0 | magicmonkey/lifxjs,ryanj/lifxjs,wiegraff13/lifxjs,WigWagCo/lifxjs,ppelleti/lifxjs,ppelleti/lifxjs,magicmonkey/lifxjs,sinnottj/lifxjs,ninjablocks/lifxjs,ryanj/lifxjs,sinnottj/lifxjs,WigWagCo/lifxjs,wiegraff13/lifxjs | var dgram = require('dgram');
var net = require('net');
var util = require('util');
var UDPClient = dgram.createSocket("udp4");
var port = 56700;
var found = false;
module.exports = {
discover: function(cb) {
UDPClient.on("error", function (err) {
console.log("UDP error " + err);
});
UDPClient.on("messag... | lifx.js | var dgram = require('dgram');
var net = require('net');
var util = require('util');
var UDPClient = dgram.createSocket("udp4");
var port = 56700;
var found = false;
module.exports = {
discover: function(cb) {
UDPClient.on("error", function (err) {
console.log("UDP error " + err);
});
UDPClient.on("messag... | Dumping the network bytes to the screen in an easy-to-read format to aid figuring out what they are
| lifx.js | Dumping the network bytes to the screen in an easy-to-read format to aid figuring out what they are | <ide><path>ifx.js
<ide> });
<ide>
<ide> UDPClient.on("message", function (msg, rinfo) {
<add>
<add> console.log(" U- " + msg.toString("hex"));
<ide> if (msg.length > 4 && msg[3] == 0x54) {
<ide> if (!found) {
<ide> found = true;
<ide> clearInterval(intervalID);
<ide> } else {
<ide> var ... | |
JavaScript | apache-2.0 | 15a9553fbe4278fd9cea37e8c3ced67eff121f1d | 0 | jessenie-intel/websensor-videocapture,jessenie-intel/websensor-videocapture | /*
* Websensor video stabilization project
* https://github.com/jessenie-intel/websensor-video
*
* Copyright (c) 2017 Jesse Nieminen
*
* 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
*... | script.js | /*
* Websensor video stabilization project
* https://github.com/jessenie-intel/websensor-video
*
* Copyright (c) 2017 Jesse Nieminen
*
* 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
*... | Build camera path
| script.js | Build camera path | <ide><path>cript.js
<ide> for(let i=0; i<nFrame; i++)
<ide> {
<ide> ctx.fillRect(cameraPath[i].x,cameraPath[i].y,3,3);
<add> console.log(cameraPath.x, cameraPath.y);
<ide> }
<ide> ctx.rect((canvas.width-widthR)/2,(canvas.height-heightR)/2,widthR,hei... | |
Java | apache-2.0 | f6b03944ff44d41528e7f6c8189652579427931c | 0 | opensingular/singular-core,opensingular/singular-core,opensingular/singular-core,opensingular/singular-core | package br.net.mirante.singular.wicket;
import java.util.Locale;
import java.util.logging.Logger;
import org.apache.wicket.RuntimeConfigurationType;
import org.apache.wicket.Session;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.request.R... | flow/ui-admin/src/main/java/br/net/mirante/singular/wicket/UIAdminApplication.java | package br.net.mirante.singular.wicket;
import java.util.Locale;
import org.apache.wicket.Session;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.request.Request;
import org.apache.wicket.request.Response;
import org.apache.wicket.request.... | ajustando para modo produção configurável
| flow/ui-admin/src/main/java/br/net/mirante/singular/wicket/UIAdminApplication.java | ajustando para modo produção configurável | <ide><path>low/ui-admin/src/main/java/br/net/mirante/singular/wicket/UIAdminApplication.java
<ide> package br.net.mirante.singular.wicket;
<ide>
<ide> import java.util.Locale;
<add>import java.util.logging.Logger;
<ide>
<add>import org.apache.wicket.RuntimeConfigurationType;
<ide> import org.apache.wicket.Session;
<i... | |
Java | apache-2.0 | 5c5b30d48abaae7aadccbf880349e7f116f4db54 | 0 | flyersa/MuninMX | /*
* MuninMX
* Copyright (c) 2014
* www.clavain.com
*
*/
package com.clavain.utils;
import com.clavain.jobs.CustomJob;
import com.clavain.jobs.MuninJob;
import com.clavain.json.ScheduledJob;
import com.clavain.munin.MuninNode;
import com.clavain.munin.MuninPlugin;
import static org.quartz.SimpleScheduleBuilder.s... | src/com/clavain/utils/Quartz.java | /*
* MuninMX
* Copyright (c) 2014
* www.clavain.com
*
*/
package com.clavain.utils;
import com.clavain.jobs.CustomJob;
import com.clavain.jobs.MuninJob;
import com.clavain.json.ScheduledJob;
import com.clavain.munin.MuninNode;
import com.clavain.munin.MuninPlugin;
import static org.quartz.SimpleScheduleBuilder.s... | fixed refresh bug reported by levent | src/com/clavain/utils/Quartz.java | fixed refresh bug reported by levent | <ide><path>rc/com/clavain/utils/Quartz.java
<ide> // crontab trigger
<ide> if(!l_mp.getCrontab().equals("false"))
<ide> {
<del> trigger = newTrigger().withIdentity("trigger", uid + l_mp.getCustomId() + System.currentTimeMillis()).withSchedule(CronScheduleBuilder.cronSchedule... | |
Java | apache-2.0 | d6b989819e702bcc9628f06ba6bbaf96928f3b75 | 0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE | package uk.ac.ebi.quickgo.annotation.controller;
import uk.ac.ebi.quickgo.annotation.AnnotationREST;
import uk.ac.ebi.quickgo.annotation.common.AnnotationRepository;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocMocker;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;
import u... | annotation-rest/src/test/java/uk/ac/ebi/quickgo/annotation/controller/AnnotationControllerIT.java | package uk.ac.ebi.quickgo.annotation.controller;
import uk.ac.ebi.quickgo.annotation.AnnotationREST;
import uk.ac.ebi.quickgo.annotation.common.AnnotationRepository;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocMocker;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;
import u... | Add Eco Id.
| annotation-rest/src/test/java/uk/ac/ebi/quickgo/annotation/controller/AnnotationControllerIT.java | Add Eco Id. | <ide><path>nnotation-rest/src/test/java/uk/ac/ebi/quickgo/annotation/controller/AnnotationControllerIT.java
<ide>
<ide> private static final String ASSIGNED_BY_PARAM = "assignedBy";
<ide> private static final String GO_EVIDENCE_PARAM = "goEvidence";
<add> private static final String ECO_ID = "ecoId";
<ide> ... | |
Java | mit | 9ba806a5b20a3d0dcb522c75c00475f7afbbe441 | 0 | mrkamel/spelling,mrkamel/spelling |
package com.flakks.spelling;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
class Connection extends Thread {
private Socket socket;
public Connectio... | src/main/java/com/flakks/spelling/Server.java |
package com.flakks.spelling;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
class Connection extends Thread {
private Socket socket;
public Connectio... | Encoding fixes
| src/main/java/com/flakks/spelling/Server.java | Encoding fixes | <ide><path>rc/main/java/com/flakks/spelling/Server.java
<ide> public void run() {
<ide> try {
<ide> try {
<del> BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
<del> OutputStreamWriter writer = new OutputStreamWriter(socket.getOutputStream());
<add> Buf... | |
Java | apache-2.0 | ff6dd39aab4e5c9359ceaaab688b1bd2fedb6ee2 | 0 | apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc | /*
* Copyright 2016-2018 shardingsphere.io.
* <p>
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | sharding-core/src/main/java/io/shardingsphere/core/parsing/antlr/extractor/statement/handler/RenameIndexExtractHandler.java | /*
* Copyright 2016-2018 shardingsphere.io.
* <p>
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | extract nothing return null
| sharding-core/src/main/java/io/shardingsphere/core/parsing/antlr/extractor/statement/handler/RenameIndexExtractHandler.java | extract nothing return null | <ide><path>harding-core/src/main/java/io/shardingsphere/core/parsing/antlr/extractor/statement/handler/RenameIndexExtractHandler.java
<ide>
<ide> @Override
<ide> public ExtractResult extract(ParserRuleContext ancestorNode) {
<del> SQLTokenExtractResult extractResult = new SQLTokenExtractResult();
<ide> ... | |
Java | mit | 3b948a3f9a9e41bea92927fd18b2e9dbf163bd64 | 0 | gitpitch/gitpitch,gitpitch/gitpitch,gitpitch/gitpitch | /*
* MIT License
*
* Copyright (c) 2016 David Russell
*
* 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 rights
* to use, copy, m... | app/com/gitpitch/models/MarkdownModel.java | /*
* MIT License
*
* Copyright (c) 2016 David Russell
*
* 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 rights
* to use, copy, m... | Updated preprocessing for implicit markdown links.
| app/com/gitpitch/models/MarkdownModel.java | Updated preprocessing for implicit markdown links. | <ide><path>pp/com/gitpitch/models/MarkdownModel.java
<ide> */
<ide> private String processAnchors(String md) {
<ide> try {
<del> boolean moreAnchors = md.contains(MD_ANCHOR_OPEN);
<del> while(moreAnchors) {
<del>
<del> if(md.contains(MD_ANCHOR_OPEN)) {
<del>
<del> ... | |
Java | apache-2.0 | 00d636b0f3ba5e023e0c2c559c01674779ffc666 | 0 | WANdisco/gerrit,MerritCR/merrit,gcoders/gerrit,gerrit-review/gerrit,MerritCR/merrit,thinkernel/gerrit,netroby/gerrit,bpollack/gerrit,dwhipstock/gerrit,quyixia/gerrit,thesamet/gerrit,pkdevbox/gerrit,midnightradio/gerrit,joshuawilson/merrit,renchaorevee/gerrit,Overruler/gerrit,joshuawilson/merrit,WANdisco/gerrit,thinkern... | // Copyright (C) 2009 The Android Open Source Project
//
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | gerrit-main/src/main/java/Main.java | // Copyright (C) 2009 The Android Open Source Project
//
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Add startup check for Java 7
Change-Id: I0ebcc126b46d0c948c1d249188bf95f0a8564c9e
| gerrit-main/src/main/java/Main.java | Add startup check for Java 7 | <ide><path>errit-main/src/main/java/Main.java
<ide>
<ide> private static boolean onSupportedJavaVersion() {
<ide> final String version = System.getProperty("java.specification.version");
<del> if (1.6 <= parse(version)) {
<add> if (1.7 <= parse(version)) {
<ide> return true;
<ide>
<ide> } else {... | |
Java | mit | error: pathspec 'src/main/java/de/ehex/foss/gematik/specifications/gemSpec_Sich_DS/AFOs.java' did not match any file(s) known to git
| 385d3059d8e7abf89aa57261e1eef84bd2166025 | 1 | eHealthExperts/gematik-specifications,ghostcity/gematik-specifications | package de.ehex.foss.gematik.specifications.gemSpec_Sich_DS;
import static de.ehex.foss.gematik.specifications.AFOType.MUST;
import static java.util.Objects.nonNull;
import de.ehex.foss.gematik.specifications.AFO;
import de.ehex.foss.gematik.specifications.AFOType;
/**
* Enumeration of all – currently co... | src/main/java/de/ehex/foss/gematik/specifications/gemSpec_Sich_DS/AFOs.java | Neu: Bislang benötigte AFOs aus [gemSpec_Sich_DS]
| src/main/java/de/ehex/foss/gematik/specifications/gemSpec_Sich_DS/AFOs.java | Neu: Bislang benötigte AFOs aus [gemSpec_Sich_DS] | <ide><path>rc/main/java/de/ehex/foss/gematik/specifications/gemSpec_Sich_DS/AFOs.java
<add>package de.ehex.foss.gematik.specifications.gemSpec_Sich_DS;
<add>
<add>import static de.ehex.foss.gematik.specifications.AFOType.MUST;
<add>import static java.util.Objects.nonNull;
<add>
<add>import de.ehex.foss.gematik.specific... | |
Java | apache-2.0 | 019c8c9fc5ccce03c76a40e81427cf7444022bd1 | 0 | Mishiranu/Dashchan,Mishiranu/Dashchan,Mishiranu/Dashchan,Mishiranu/Dashchan | package com.mishiranu.dashchan.ui.gallery;
import android.app.AlertDialog;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import ... | src/com/mishiranu/dashchan/ui/gallery/VideoUnit.java | package com.mishiranu.dashchan.ui.gallery;
import android.app.AlertDialog;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import ... | Fix missing "save" button for short videos
| src/com/mishiranu/dashchan/ui/gallery/VideoUnit.java | Fix missing "save" button for short videos | <ide><path>rc/com/mishiranu/dashchan/ui/gallery/VideoUnit.java
<ide> holder.progressBar.setVisible(false, false);
<ide> if (successFinal) {
<ide> initializePlayer();
<del> instance.galleryInstance.callback.invalidateOptionsMenu();
<ide> if (downloadTask == null) {
<ide> see... | |
Java | apache-2.0 | 6d997ca26ebaa6993b0786183fb5023acf339947 | 0 | MER-GROUP/intellij-community,mglukhikh/intellij-community,asedunov/intellij-community,da1z/intellij-community,ibinti/intellij-community,kool79/intellij-community,wreckJ/intellij-community,mglukhikh/intellij-community,caot/intellij-community,da1z/intellij-community,dslomov/intellij-community,michaelgallacher/intellij-co... | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | java/java-impl/src/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | EA-33195 - assert: DocumentUndoProvider$MyEditorDocumentListener.documentChanged: skip optimize imports during undo/redo
| java/java-impl/src/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java | EA-33195 - assert: DocumentUndoProvider$MyEditorDocumentListener.documentChanged: skip optimize imports during undo/redo | <ide><path>ava/java-impl/src/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java
<ide> import com.intellij.lang.annotation.HighlightSeverity;
<ide> import com.intellij.openapi.application.ApplicationManager;
<ide> import com.intellij.openapi.command.CommandProcessor;
<add>import com.intellij.openapi.command.... | |
Java | apache-2.0 | 594cb89cbe30efa41b49b3ec98d5f0ad39d86043 | 0 | wschaeferB/autopsy,narfindustries/autopsy,dgrove727/autopsy,wschaeferB/autopsy,esaunders/autopsy,millmanorama/autopsy,APriestman/autopsy,wschaeferB/autopsy,APriestman/autopsy,rcordovano/autopsy,rcordovano/autopsy,millmanorama/autopsy,esaunders/autopsy,rcordovano/autopsy,millmanorama/autopsy,rcordovano/autopsy,APriestma... | /*
* Autopsy Forensic Browser
*
* Copyright 2012-2017 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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
*
* http... | Core/src/org/sleuthkit/autopsy/ingest/IngestTasksScheduler.java | /*
* Autopsy Forensic Browser
*
* Copyright 2012-2017 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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
*
* http... | Added temporary logging to IngestTasksScheduler.tasksForJobAreCompleted
| Core/src/org/sleuthkit/autopsy/ingest/IngestTasksScheduler.java | Added temporary logging to IngestTasksScheduler.tasksForJobAreCompleted | <ide><path>ore/src/org/sleuthkit/autopsy/ingest/IngestTasksScheduler.java
<ide> synchronized boolean tasksForJobAreCompleted(DataSourceIngestJob job) {
<ide> for (IngestTask task : tasksInProgress) {
<ide> if (task.getIngestJob().getId() == job.getId()) {
<add> logger.log(Level.IN... | |
Java | apache-2.0 | fed94e9b199a90a404adb6c81f838e534dce7284 | 0 | dslomov/intellij-community,kool79/intellij-community,orekyuu/intellij-community,slisson/intellij-community,ftomassetti/intellij-community,ibinti/intellij-community,MER-GROUP/intellij-community,petteyg/intellij-community,kdwink/intellij-community,hurricup/intellij-community,muntasirsyed/intellij-community,akosyakov/inte... | /*
* Copyright 2000-2010 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/platform-impl/src/com/intellij/openapi/editor/impl/FoldRegionsTree.java | /*
* Copyright 2000-2010 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | We encountered situation when cached folding data is inconsistent. It's not clear what produced that, so, the following was done:
1. Corresponding check was added and cached data is rebuilt in case of inconsistency;
2. Debug asserts are activated if dedicated flag is on (it's off by default);
| platform/platform-impl/src/com/intellij/openapi/editor/impl/FoldRegionsTree.java | We encountered situation when cached folding data is inconsistent. It's not clear what produced that, so, the following was done: 1. Corresponding check was added and cached data is rebuilt in case of inconsistency; 2. Debug asserts are activated if dedicated flag is on (it's off by default); | <ide><path>latform/platform-impl/src/com/intellij/openapi/editor/impl/FoldRegionsTree.java
<ide> import com.intellij.openapi.editor.RangeMarker;
<ide> import com.intellij.util.ArrayUtil;
<ide> import com.intellij.util.containers.CollectionFactory;
<add>import org.jetbrains.annotations.Nullable;
<ide>
<ide> import java... | |
Java | mit | b29e0f84303377d092e59630f16efae6c2bbfc7c | 0 | gilleain/signatures | package signature.simple;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import junit.framework.Assert;
import org.junit.Test;
import signature.SymmetryClass;
public class CanonicalLabellingTest {
public int[] getLabels(SimpleGraph graph) {
Simp... | src/test/java/signature/simple/CanonicalLabellingTest.java | package signature.simple;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import junit.framework.Assert;
import org.junit.Test;
import signature.simple.SimpleGraph;
import signature.simple.SimpleGraphPermutor;
import signature.simple.SimpleGraphSignature;
public ... | Change test to the actual failing (isomorphic) graphs
| src/test/java/signature/simple/CanonicalLabellingTest.java | Change test to the actual failing (isomorphic) graphs | <ide><path>rc/test/java/signature/simple/CanonicalLabellingTest.java
<ide>
<ide> import org.junit.Test;
<ide>
<del>import signature.simple.SimpleGraph;
<del>import signature.simple.SimpleGraphPermutor;
<del>import signature.simple.SimpleGraphSignature;
<add>import signature.SymmetryClass;
<ide>
<ide> public class Ca... | |
Java | apache-2.0 | 4b571b3f0b9e0cfb1b8281a4f6ba42cd32a64631 | 0 | lgrill-pentaho/pentaho-kettle,lgrill-pentaho/pentaho-kettle,HiromuHota/pentaho-kettle,ddiroma/pentaho-kettle,e-cuellar/pentaho-kettle,HiromuHota/pentaho-kettle,emartin-pentaho/pentaho-kettle,rmansoor/pentaho-kettle,dkincade/pentaho-kettle,HiromuHota/pentaho-kettle,marcoslarsen/pentaho-kettle,mkambol/pentaho-kettle,pmin... | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2018 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | plugins/xml/core/src/main/java/org/pentaho/di/ui/trans/steps/xmloutput/XMLOutputDialog.java | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2018 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | [BACKLOG-22745] Get Fields in the XML Output step causes an exception
| plugins/xml/core/src/main/java/org/pentaho/di/ui/trans/steps/xmloutput/XMLOutputDialog.java | [BACKLOG-22745] Get Fields in the XML Output step causes an exception | <ide><path>lugins/xml/core/src/main/java/org/pentaho/di/ui/trans/steps/xmloutput/XMLOutputDialog.java
<ide> import org.eclipse.swt.widgets.TableItem;
<ide> import org.eclipse.swt.widgets.Text;
<ide> import org.pentaho.di.core.Const;
<del>import org.pentaho.di.core.util.StringUtil;
<ide> import org.pentaho.di.core.util.... | |
JavaScript | mit | 460f63147bdcea62ea5fd06d623f166555e76500 | 0 | CanalTP/navitia-playground,CanalTP/navitia-playground | // Copyright (c) 2016 Hove
//
// 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 rights
// to use, copy, modify, merge, publish, distribu... | js/map.js | // Copyright (c) 2016 Hove
//
// 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 rights
// to use, copy, modify, merge, publish, distribu... | Revert "Revert "Add bike street information(s)""
| js/map.js | Revert "Revert "Add bike street information(s)"" | <ide><path>s/map.js
<ide> switch (json.type) {
<ide> case 'street_network':
<ide> switch (json.mode) {
<del> case 'bike': style = map.bikeStyle; break;
<add> case 'bike':
<add> return map._makeBikeStreetInfo(context, 'section', json)
<add> ... | |
JavaScript | mit | db76a382f7eedc3eb4876bde639b1d4c6f65f389 | 0 | vibertthio/beact,vibertthio/beact,vibertthio/beact | import React, { Component } from 'react';
import { WindowResizeListener } from 'react-window-resize-listener';
import uuid4 from 'uuid/v4';
import axios from 'axios';
import key from 'keymaster';
import styles from '../styles/DrumMachine.css';
import Matrix from './Matrix';
import { Sequencer, Keyboard, changeBPM, pre... | src/components/DrumMachine.js | import React, { Component } from 'react';
import { WindowResizeListener } from 'react-window-resize-listener';
import uuid4 from 'uuid/v4';
import axios from 'axios';
import key from 'keymaster';
import styles from '../styles/DrumMachine.css';
import Matrix from './Matrix';
import { Sequencer, Keyboard, changeBPM, pre... | :flags: conditional render by controling display
| src/components/DrumMachine.js | :flags: conditional render by controling display | <ide><path>rc/components/DrumMachine.js
<ide> }
<ide> onTouchTap={() => this.toggleNarutoBool()}
<ide> >
<del> {narutoBool ? <img src={narutoG} className={styles.glow} alt="narutoG" /> : null}
<del> {narutoBool ? null : <img src={narutoW} alt="narutoW" />}
<add> <img sr... | |
Java | apache-2.0 | fb00ab5963dd07a0faae6e0f6fd8e923c52a23cb | 0 | LuisePufahl/camunda-bpm-platform_batchProcessing,hupda-edpe/c,xasx/camunda-bpm-platform,AlexMinsk/camunda-bpm-platform,jangalinski/camunda-bpm-platform,1and1/camunda-bpm-platform,filiphr/camunda-bpm-platform,joansmith/camunda-bpm-platform,fouasnon/camunda-bpm-platform,clintmanning/new-empty,AlexMinsk/camunda-bpm-platfo... | package com.camunda.fox.platform.test.functional.ejb.remote;
import org.activiti.engine.runtime.ProcessInstance;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap... | qa/integration-tests/src/test/java/com/camunda/fox/platform/test/functional/ejb/remote/RemoteSingletonBeanInvocationTest.java | package com.camunda.fox.platform.test.functional.ejb.remote;
import org.activiti.engine.runtime.ProcessInstance;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap... | Increased time for JobExecutor
| qa/integration-tests/src/test/java/com/camunda/fox/platform/test/functional/ejb/remote/RemoteSingletonBeanInvocationTest.java | Increased time for JobExecutor | <ide><path>a/integration-tests/src/test/java/com/camunda/fox/platform/test/functional/ejb/remote/RemoteSingletonBeanInvocationTest.java
<ide>
<ide> taskService.complete(taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult().getId());
<ide>
<del> waitForJobExecutorToProcessAllJobs(60... | |
Java | mit | 52074625f4d2e81b2589aa5149fb7c8166e3c122 | 0 | sakuranodoka/MyApplication | package com.example.administrator.myapplication;
import android.Manifest;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
//import android.location.Location;
//import android.location.LocationListener;
import android.location.... | app/src/main/java/com/example/administrator/myapplication/MainActivity.java | package com.example.administrator.myapplication;
import android.Manifest;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
//import android.location.Location;
//import android.location.LocationListener;
import android.location.... | First Commit Testing V.1.02
- Camera Capture (Fixed)
- Barcode Reader (Fixed)
- GPS Location (Latitude and Longtitude) (Fixed)
| app/src/main/java/com/example/administrator/myapplication/MainActivity.java | First Commit Testing V.1.02 - Camera Capture (Fixed) - Barcode Reader (Fixed) - GPS Location (Latitude and Longtitude) (Fixed) | <ide><path>pp/src/main/java/com/example/administrator/myapplication/MainActivity.java
<ide> public void onLocationChanged(Location location) {
<ide> TextView textView = (TextView) findViewById(R.id.textView);
<ide> textView.setText("Latitude : " + location.getLatitude() + "\n" +
<del> ... | |
Java | apache-2.0 | 6d8be12a1538aea0932dddd448dcf7a0620d638d | 0 | Imran-C/cassandra,nvoron23/cassandra,snazy/cassandra,scaledata/cassandra,GabrielNicolasAvellaneda/cassandra,Stratio/stratio-cassandra,snazy/cassandra,michaelsembwever/cassandra,iburmistrov/Cassandra,joesiewert/cassandra,jrwest/cassandra,LatencyUtils/cassandra-stress2,exoscale/cassandra,yonglehou/cassandra,MasahikoSawad... | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | src/java/org/apache/cassandra/metrics/FileCacheMetrics.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Correctly name FileCache metrics.
Patch by Nick Bailey, reviewed by brandonwilliams for CASSANDRA-7294
| src/java/org/apache/cassandra/metrics/FileCacheMetrics.java | Correctly name FileCache metrics. | <ide><path>rc/java/org/apache/cassandra/metrics/FileCacheMetrics.java
<ide>
<ide> public class FileCacheMetrics
<ide> {
<add> private static final MetricNameFactory factory = new DefaultNameFactory("FileCache");
<add>
<ide> /** Total number of hits */
<ide> public final Meter hits;
<ide> /** Total numbe... | |
JavaScript | mit | 75ad43baeb80b9552cab6f8399f32f33263736dc | 0 | notmessenger/sl-ember-components,notmessenger/sl-ember-components,softlayer/sl-ember-components,softlayer/sl-ember-components | import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
import { moduleForComponent, test } from 'ember-qunit';
import sinon from 'sinon';
const mockStream = {
actions: {},
on( actionName, handler ) {
this.actions[ actionName ] = handler;
},
subject: {
dispose() {
... | tests/integration/components/sl-modal-test.js | import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
import { moduleForComponent, test } from 'ember-qunit';
import sinon from 'sinon';
const mockStream = {
actions: {},
on( actionName, handler ) {
this.actions[ actionName ] = handler;
},
subject: {
dispose() {
... | cleaned up the last test to be more straight-forward
| tests/integration/components/sl-modal-test.js | cleaned up the last test to be more straight-forward | <ide><path>ests/integration/components/sl-modal-test.js
<ide> const spyModal = sinon.spy( Ember.$.fn, 'modal' );
<ide> const spyOn = sinon.spy( Ember.$.fn, 'on' );
<ide>
<del> const arrayOfJQtoArrayOfDom = function( arr ) {
<del> const newArr = [];
<del> $.each(
<del> arr,
<del> ... | |
Java | apache-2.0 | 88030526bae0ffd4a6704c90d20eb0904c6fcd86 | 0 | vvv1559/intellij-community,xfournet/intellij-community,allotria/intellij-community,apixandru/intellij-community,idea4bsd/idea4bsd,mglukhikh/intellij-community,suncycheng/intellij-community,idea4bsd/idea4bsd,ThiagoGarciaAlves/intellij-community,da1z/intellij-community,FHannes/intellij-community,da1z/intellij-community,h... | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/util/src/com/intellij/util/Restarter.java | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Cleanup (deprecated API usage)
| platform/util/src/com/intellij/util/Restarter.java | Cleanup (deprecated API usage) | <ide><path>latform/util/src/com/intellij/util/Restarter.java
<ide> final int pid = kernel32.GetCurrentProcessId();
<ide> final IntByReference argc = new IntByReference();
<ide> Pointer argv_ptr = shell32.CommandLineToArgvW(kernel32.GetCommandLineW(), argc);
<del> final String[] argv = argv_ptr.getStringA... | |
Java | apache-2.0 | 09d10b5cf388b2212f0bd8bf94ad63d13e75fa49 | 0 | philburk/jsyn,philburk/jsyn,philburk/jsyn | /*
* Copyright 2011 Phil Burk, Mobileer Inc
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | src/com/jsyn/unitgen/MultiPassThrough.java | /*
* Copyright 2011 Phil Burk, Mobileer Inc
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | jsyn: some minor improvements
Use final in MultiPassThrough
| src/com/jsyn/unitgen/MultiPassThrough.java | jsyn: some minor improvements | <ide><path>rc/com/jsyn/unitgen/MultiPassThrough.java
<ide> public class MultiPassThrough extends UnitGenerator implements UnitSink, UnitSource {
<ide> public UnitInputPort input;
<ide> public UnitOutputPort output;
<del> private int mNumParts;
<add> private final int mNumParts;
<ide>
<ide> /* Define... | |
Java | apache-2.0 | 05f1488dc63322c513fe743ac127a0cf3f163395 | 0 | DoudTechData/ignite,f7753/ignite,daradurvs/ignite,dmagda/incubator-ignite,leveyj/ignite,rfqu/ignite,endian675/ignite,arijitt/incubator-ignite,dlnufox/ignite,WilliamDo/ignite,dmagda/incubator-ignite,agura/incubator-ignite,tkpanther/ignite,shroman/ignite,svladykin/ignite,svladykin/ignite,StalkXT/ignite,psadusumilli/ignit... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | IGNITE-709 Code cleanup.
| modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java | IGNITE-709 Code cleanup. | <ide><path>odules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java
<ide> if (addr.startsWith("/"))
<ide> addr = addr.substring(1);
<ide>
<del> ipFinder.setAddresses(Arrays.asList(addr));
<add> ipFinder.setAddress... | |
Java | apache-2.0 | 10281db5302ccf13bee0fba142bf592168889f86 | 0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testFramework;
import com.intellij.application.options.CodeStyle;
import com.intellij.codeInsight.AutoPopupController;
import com.intellij.ide.highlighter.Mo... | platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testFramework;
import com.intellij.application.options.CodeStyle;
import com.intellij.codeInsight.AutoPopupController;
import com.intellij.ide.highlighter.Mo... | format leaked project info properly
| platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java | format leaked project info properly | <ide><path>latform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java
<ide> import java.util.Set;
<ide> import java.util.concurrent.TimeUnit;
<ide>
<del>import static com.intellij.testFramework.TemporaryDirectoryKt.generateTemporaryPath;
<del>
<ide> /**
<ide> * @author yole
<ide> */
<ide> int... | |
JavaScript | bsd-3-clause | a762c9df61580cf563a1aa268716f8799b483ed5 | 0 | digi604/django-smart-selects,savoirfairelinux/django-smart-selects,digi604/django-smart-selects,savoirfairelinux/django-smart-selects |
(function($) {
chainedm2m = function() {
return {
fireEvent: function(element,event) {
var evt;
if (document.createEventObject){
// dispatch for IE
evt = document.createEventObject();
return element.fire... | smart_selects/static/smart-selects/admin/js/chainedm2m.js |
(function($) {
chainedm2m = function() {
return {
fireEvent: function(element,event) {
var evt;
if (document.createEventObject){
// dispatch for IE
evt = document.createEventObject();
return element.fire... | little change for empty list
| smart_selects/static/smart-selects/admin/js/chainedm2m.js | little change for empty list | <ide><path>mart_selects/static/smart-selects/admin/js/chainedm2m.js
<ide>
<ide> var selected_values = {};
<ide> // if val and initial_parent have any common values, we need to set selected options.
<del> if($(val).filter(initial_parent).length >= 0) {
<add> ... | |
Java | bsd-3-clause | d21fc14a90c60f1efd058bf30c2905744b164302 | 0 | NCIP/cacore-sdk,NCIP/cacore-sdk,NCIP/cacore-sdk,NCIP/cacore-sdk,NCIP/cacore-sdk,NCIP/cacore-sdk,NCIP/cacore-sdk | package gov.nih.nci.sdk.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.Set;
import org.junit.Test;
/**
* ModelConverterUtilTest
*
* @author John Chen
*
*/
public class SDKUtilTest {
@T... | hydra/src/test/gov/nih/nci/sdk/util/SDKUtilTest.java | package gov.nih.nci.sdk.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.Set;
import org.junit.Test;
/**
* ModelConverterUtilTest
*
* @author John Chen
*
*/
public class SDKUtilTest {
@T... | Updated with the newly added annotation tags
SVN-Revision: 1257
| hydra/src/test/gov/nih/nci/sdk/util/SDKUtilTest.java | Updated with the newly added annotation tags | <ide><path>ydra/src/test/gov/nih/nci/sdk/util/SDKUtilTest.java
<ide> @Test
<ide> public void loadTags() {
<ide> Set<String> tagNames = SDKUtil.getAllSDKTagNames();
<del> assertEquals("All tags loaded", 56, tagNames.size());
<add> assertEquals("All tags loaded", 58, tagNames.size());
<ide> }
<ide>
<ide> @Test | |
JavaScript | apache-2.0 | 616ef1f58cd2c469f2a984b3d11badad74740619 | 0 | opencb/jsorolla,opencb/jsorolla,opencb/jsorolla,opencb/jsorolla,opencb/jsorolla | /*
* Copyright (c) 2015 Francisco Salavert (DCG-CIPF)
*
* This file is part of JS Common Libs.
*
* JS Common Libs is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (... | src/lib/data-adapter/feature/feature-template-adapter.js | /*
* Copyright (c) 2015 Francisco Salavert (DCG-CIPF)
*
* This file is part of JS Common Libs.
*
* JS Common Libs is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (... | feature template adapter status fix
| src/lib/data-adapter/feature/feature-template-adapter.js | feature template adapter status fix | <ide><path>rc/lib/data-adapter/feature/feature-template-adapter.js
<ide>
<ide> request.onload = function() {
<ide> args.webServiceCallCount--;
<del> if (request.status === 200) {
<add> if (request.status !== 400) {
<ide> ... | |
JavaScript | mit | 939a732ff63b1004f52f992dd5d642566a633dc8 | 0 | A-Tokyo/generator-at-angular,A-Tokyo/generator-at-angular,A-Tokyo/generator-at-angular | 'use strict';
var _ = require("lodash");
var utils = require("../../../utils.js");
module.exports = function (AngularATGenerator) {
AngularATGenerator.prototype.copyCopmFiles = function copyFiles() {
var data = {'pageName': this.props.pageName, 'pageNameCamel': _.camelCase(this.props.pageName), 'controller... | generators/page/src/files.js | 'use strict';
var _ = require("lodash");
var utils = require("../../../utils.js");
module.exports = function (AngularATGenerator) {
AngularATGenerator.prototype.copyCopmFiles = function copyFiles() {
var data = {'pageName': this.props.pageName, 'pageNameCamel': _.camelCase(this.props.pageName), 'controller... | removed unnecessary comments
| generators/page/src/files.js | removed unnecessary comments | <ide><path>enerators/page/src/files.js
<ide> );
<ide> var indexModulesWriteLine = "require('./pages/"+data.pageName+"/"+data.pageName+".module').name,";
<ide> utils.addToFile("index.module.js",indexModulesWriteLine,utils.PAGE_MARKER,this.destinationRoot()+"/src/app");
<del> // var indexScssWriteLine = "@... | |
Java | apache-2.0 | 0d1aaf2fd3e933b506bd705c92a43630b44566db | 0 | xiexiang89/Android-Auto-BannerView,xiexiang89/Android-Auto-BannerView,xiexiang89/Android-Auto-BannerView | /*
* Copyright (C) 2016 The Edgar
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | app/src/main/java/banner/edgar/com/banner/activitys/MainActivity.java | /*
* Copyright (C) 2016 The Edgar
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Remove old code
| app/src/main/java/banner/edgar/com/banner/activitys/MainActivity.java | Remove old code | <ide><path>pp/src/main/java/banner/edgar/com/banner/activitys/MainActivity.java
<ide> }
<ide> }
<ide> });
<del>// mBannerPagerView = (BannerPagerView) findViewById(R.id.banner_pager);
<del>// mBannerPagerView.setBannerPagerView(new FrescoBannerPageView());
<del>// ... | |
Java | bsd-3-clause | 5ccbe666287e290dbdbcddf99ec517a7bf2eac89 | 0 | knopflerfish/knopflerfish.org,knopflerfish/knopflerfish.org,knopflerfish/knopflerfish.org | /*
* Oscar Bundle Repository
* Copyright (c) 2004, Richard S. Hall
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright... | osgi/bundles/bundlerepository/src/org/ungoverned/osgi/bundle/bundlerepository/BundleRepositoryServiceImpl.java | /*
* Oscar Bundle Repository
* Copyright (c) 2004, Richard S. Hall
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright... | More User-Agent name improvements.
| osgi/bundles/bundlerepository/src/org/ungoverned/osgi/bundle/bundlerepository/BundleRepositoryServiceImpl.java | More User-Agent name improvements. | <ide><path>sgi/bundles/bundlerepository/src/org/ungoverned/osgi/bundle/bundlerepository/BundleRepositoryServiceImpl.java
<ide> {
<ide> String uaName = bundle.getSymbolicName();
<ide> String uaVers = (String) bundle.getHeaders().get("Bundle-Version");
<add> String uaComm = "";
<ide>
<ide> if ... | |
Java | agpl-3.0 | 2b927973a22bdfe4c70c30a46563f7795fcaec92 | 0 | o2oa/o2oa,o2oa/o2oa,o2oa/o2oa,o2oa/o2oa,o2oa/o2oa | package com.x.base.core.project.script;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.regex.Matcher;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.ScriptContext;
import javax.script.ScriptEngine;
imp... | o2server/x_base_core_project/src/main/java/com/x/base/core/project/script/ScriptFactory.java | package com.x.base.core.project.script;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.regex.Matcher;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.ScriptContext;
import javax.script.ScriptEngine;
imp... | 恢复ScriFactory
| o2server/x_base_core_project/src/main/java/com/x/base/core/project/script/ScriptFactory.java | 恢复ScriFactory | <ide><path>2server/x_base_core_project/src/main/java/com/x/base/core/project/script/ScriptFactory.java
<ide> return COMPILEDSCRIPT_INITIALSCRIPTTEXT;
<ide> }
<ide>
<del>// public static String functionalization(String text) {
<del>// StringBuffer sb = new StringBuffer();
<del>// sb.append("(function(){").append(S... | |
Java | agpl-3.0 | f1ea28d27774bc8877e2f803bf0585de385a2f26 | 0 | duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test | 9e9d774e-2e61-11e5-9284-b827eb9e62be | hello.java | 9e97c056-2e61-11e5-9284-b827eb9e62be | 9e9d774e-2e61-11e5-9284-b827eb9e62be | hello.java | 9e9d774e-2e61-11e5-9284-b827eb9e62be | <ide><path>ello.java
<del>9e97c056-2e61-11e5-9284-b827eb9e62be
<add>9e9d774e-2e61-11e5-9284-b827eb9e62be | |
Java | apache-2.0 | be08830ab5552fe3736e7158ffcd64c6c438a1da | 0 | psoreide/bnd,psoreide/bnd,psoreide/bnd | package bndtools.m2e;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.project.MavenProject;
impo... | bndtools.m2e/src/bndtools/m2e/BndConfigurator.java | package bndtools.m2e;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.project.MavenProject;
impo... | [m2e] Build in eclipse loops forever with bndtools.m2e project in Windows
fixes #3536
Signed-off-by: Raymond Auge <365ed8f198099d0d7be69a289ff98f85e62ba00d@liferay.com>
| bndtools.m2e/src/bndtools/m2e/BndConfigurator.java | [m2e] Build in eclipse loops forever with bndtools.m2e project in Windows | <ide><path>ndtools.m2e/src/bndtools/m2e/BndConfigurator.java
<ide>
<ide> @Override
<ide> public AbstractBuildParticipant getBuildParticipant(final IMavenProjectFacade projectFacade,
<del> MojoExecution execution, IPluginExecutionMetadata executionMetadata) {
<add> final MojoExecution execution, IPluginExecutionMet... | |
Java | apache-2.0 | e1a0ec64b8eda04c89912f3c03ce6ad5358ff706 | 0 | toby1984/jASM_16,toby1984/jASM_16 | /**
* Copyright 2012 Tobias Gierke <tobias.gierke@code-sourcery.de>
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | src/main/java/de/codesourcery/jasm16/emulator/Emulator.java | /**
* Copyright 2012 Tobias Gierke <tobias.gierke@code-sourcery.de>
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | fixed emulator glitch with arithmetic operations that use EX to return some additional result/flags and EX being the target (b) operand itself.
In this case, the emulator must not write the operation's actual result to EX as well.
| src/main/java/de/codesourcery/jasm16/emulator/Emulator.java | fixed emulator glitch with arithmetic operations that use EX to return some additional result/flags and EX being the target (b) operand itself. | <ide><path>rc/main/java/de/codesourcery/jasm16/emulator/Emulator.java
<ide> } else {
<ide> ex = 0;
<ide> }
<add> if ( isEXTargetOperand( instructionWord ) ) { // Do not overwrite EX with result
<add> return 3+source.cycleCount;
<add> } ... | |
JavaScript | mit | 5ffc949ac04f05cf9acf697f2fa151b872295489 | 0 | medikoo/dbjs-dom | 'use strict';
var aFrom = require('es5-ext/lib/Array/from')
, compact = require('es5-ext/lib/Array/prototype/compact')
, isCopy = require('es5-ext/lib/Array/prototype/is-copy')
, copy = require('es5-ext/lib/Object/copy')
, extend = require('es5-ext/lib/Object/extend')
, d ... | input/object/file.dom.js | 'use strict';
var aFrom = require('es5-ext/lib/Array/from')
, compact = require('es5-ext/lib/Array/prototype/compact')
, isCopy = require('es5-ext/lib/Array/prototype/is-copy')
, copy = require('es5-ext/lib/Object/copy')
, extend = require('es5-ext/lib/Object/extend')
, d ... | Throw on missing id
| input/object/file.dom.js | Throw on missing id | <ide><path>nput/object/file.dom.js
<ide> return this.valueDOM.firstChild.getAttribute('data-id');
<ide> }
<ide> value = map.call(this.valueDOM.childNodes, function (node) {
<del> return node.getAttribute('data-id');
<add> var id = node.getAttribute('data-id');
<add> if (!id) {
<add> throw new TypeError(... | |
JavaScript | mpl-2.0 | 753ecf4aceb407439cfed31af9135764fc9154bd | 0 | dequelabs/axe-core,dequelabs/axe-core,dequelabs/axe-core,dequelabs/axe-core | module.exports = {
evaluate: 'function (node, options, virtualNode, context) {\n<%=source%>\n}',
after: 'function (results, options) {\n<%=source%>\n}',
gather: 'function (context, options) {\n<%=source%>\n}',
matches: 'function (node, virtualNode, context) {\n<%=source%>\n}',
source: '(function () {\n<%=source%>\... | build/templates.js | module.exports = {
evaluate: 'function (node, options, virtualNode, context) {\n<%=source%>\n}',
after: 'function (results, options) {\n<%=source%>\n}',
gather: 'function (context) {\n<%=source%>\n}',
matches: 'function (node, virtualNode, context) {\n<%=source%>\n}',
source: '(function () {\n<%=source%>\n}())',
... | fix: arguments for gather function in build template (#1605)
| build/templates.js | fix: arguments for gather function in build template (#1605) | <ide><path>uild/templates.js
<ide> module.exports = {
<ide> evaluate: 'function (node, options, virtualNode, context) {\n<%=source%>\n}',
<ide> after: 'function (results, options) {\n<%=source%>\n}',
<del> gather: 'function (context) {\n<%=source%>\n}',
<add> gather: 'function (context, options) {\n<%=source%>\n}',
<... | |
Java | mit | 2ba791189d35cd8019b8f3f94fe4c95faf68bccd | 0 | Innovimax-SARL/mix-them | package innovimax.mixthem;
import innovimax.mixthem.arguments.Arguments;
import innovimax.mixthem.arguments.ArgumentException;
import java.io.IOException;
import java.util.zip.ZipException;
import org.junit.Assert;
import org.junit.Test;
/*
Created by innovimax-jim
Basic tests for this applicat... | src/test/java/innovimax/mixthem/BasicTest.java | package innovimax.mixthem;
import innovimax.mixthem.arguments.Arguments;
import innovimax.mixthem.arguments.ArgumentException;
import java.io.IOException;
import java.util.zip.ZipException;
import org.junit.Assert;
import org.junit.Test;
/*
Created by innovimax-jim
Basic tests for this applicat... | Update BasicTest.java | src/test/java/innovimax/mixthem/BasicTest.java | Update BasicTest.java | <ide><path>rc/test/java/innovimax/mixthem/BasicTest.java
<ide> }
<ide> }
<ide>
<add> @Test(expected=ArgumentException.class)
<add> public final void testMandatoryParam() throws ArgumentException, IOException, ZipException {
<add> try {
<add> final String args[] = { "-file", getC... | |
Java | mit | e8e75c300c99032b1cf419f0ebb9914d2008d185 | 0 | CyberPuck/RoboticsSimulator | package inputs;
import utilities.Point;
/**
* Holds the user defined input for a circle path.
* <p/>
* Created by CyberPuck on 2016-03-01.
*/
public class CirclePathInput implements RobotInput {
private InputMode mode = InputMode.PATH_CIRCLE;
// Robot starting location
private Point origin;
// Rad... | src/main/src/inputs/CirclePathInput.java | package inputs;
import utilities.Point;
/**
* Holds the user defined input for a circle path.
* <p/>
* Created by CyberPuck on 2016-03-01.
*/
public class CirclePathInput implements RobotInput {
private InputMode mode = InputMode.PATH_CIRCLE;
// Robot starting location
private Point origin;
// Rad... | Adding current index to the circle input, for path following.
| src/main/src/inputs/CirclePathInput.java | Adding current index to the circle input, for path following. | <ide><path>rc/main/src/inputs/CirclePathInput.java
<ide> private double speed;
<ide> // time to complete the circle
<ide> private double time;
<add> // index for the path
<add> private int currentIndex;
<ide>
<ide> public CirclePathInput(Point origin, double radius, double inclination, double end... | |
JavaScript | mit | c52400089f95f50aff7e9173e8dab43a9f9cab58 | 0 | ioBroker/ioBroker.text2command,ioBroker/ioBroker.text2command | import React, { Component, useEffect } from 'react';
import I18n from '@iobroker/adapter-react/i18n';
import { TextField, Switch, Typography } from '@material-ui/core';
import DialogSelectID from '@iobroker/adapter-react/Dialogs/SelectID';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormCo... | src/src/components/RightBar.js | import React, { Component, useEffect } from 'react';
import I18n from '@iobroker/adapter-react/i18n';
import { TextField, Switch, Typography } from '@material-ui/core';
import DialogSelectID from '@iobroker/adapter-react/Dialogs/SelectID';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormCo... | finish basic handlers functionality
| src/src/components/RightBar.js | finish basic handlers functionality | <ide><path>rc/src/components/RightBar.js
<ide> value={value}
<ide> label={label}
<ide> labelPlacement={'start'}
<del> control={<Switch onClick={onSwitchChange} />}
<add> control={
<add> <Switch onCli... | |
Java | apache-2.0 | 2d78560751beb326dbda611819ceba82db309626 | 0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE | package uk.ac.ebi.quickgo.index.annotation;
import uk.ac.ebi.quickgo.annotation.common.AnnotationDocument;
import uk.ac.ebi.quickgo.index.common.DocumentReaderException;
import com.google.common.base.Strings;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import ja... | indexing/src/main/java/uk/ac/ebi/quickgo/index/annotation/AnnotationDocumentConverter.java | package uk.ac.ebi.quickgo.index.annotation;
import uk.ac.ebi.quickgo.annotation.common.AnnotationDocument;
import uk.ac.ebi.quickgo.index.common.DocumentReaderException;
import com.google.common.base.Strings;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import ja... | The extension is now stored as a single element.
| indexing/src/main/java/uk/ac/ebi/quickgo/index/annotation/AnnotationDocumentConverter.java | The extension is now stored as a single element. | <ide><path>ndexing/src/main/java/uk/ac/ebi/quickgo/index/annotation/AnnotationDocumentConverter.java
<ide> import java.time.ZoneOffset;
<ide> import java.time.format.DateTimeFormatter;
<ide> import java.time.format.DateTimeParseException;
<del>import java.util.*;
<add>import java.util.Arrays;
<add>import java.util.Date... | |
Java | apache-2.0 | d5ba292d6b1be17bb814fba57e37db1ce2cdfefa | 0 | playframework/playframework,wsargent/playframework,mkurz/playframework,benmccann/playframework,aradchykov/playframework,rajeshpg/playframework,hagl/playframework,wegtam/playframework,mkurz/playframework,marcospereira/playframework,Shruti9520/playframework,wsargent/playframework,wsargent/playframework,marcospereira/play... | /*
* Copyright (C) 2009-2016 Typesafe Inc. <http://www.typesafe.com>
*/
package play.db.jpa;
import play.api.Play;
import play.libs.F;
import play.mvc.Http;
import javax.persistence.EntityManager;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.function.Supplier;
/**
* JPA Helpers.
*/
publi... | framework/src/play-java-jpa/src/main/java/play/db/jpa/JPA.java | /*
* Copyright (C) 2009-2016 Typesafe Inc. <http://www.typesafe.com>
*/
package play.db.jpa;
import play.*;
import play.api.Application;
import play.api.Play;
import play.libs.F;
import play.mvc.Http;
import java.util.function.Supplier;
import java.util.ArrayDeque;
import java.util.Deque;
import javax.persistence.... | Deprecate static JPA methods
| framework/src/play-java-jpa/src/main/java/play/db/jpa/JPA.java | Deprecate static JPA methods | <ide><path>ramework/src/play-java-jpa/src/main/java/play/db/jpa/JPA.java
<ide> */
<ide> package play.db.jpa;
<ide>
<del>import play.*;
<del>import play.api.Application;
<ide> import play.api.Play;
<ide> import play.libs.F;
<ide> import play.mvc.Http;
<ide>
<del>import java.util.function.Supplier;
<add>import javax.p... | |
JavaScript | mit | 2b02fe7c1aa437db7986911de32eabd7a70c6e97 | 0 | Deseteral/oudjo,Deseteral/oudjo | Polymer({
ready: function() {
var self = this;
this.$["button-previous"].onclick = function() {
$.get("/player/previous", function(data, status) {
self.updateStatus(self, JSON.parse(data));
});
};
this.$["button-play"].onclick = function() {
... | src/main/resources/view/custom_components/oudjo-controller/oudjo-controller.js | Polymer({
ready: function() {
var self = this;
this.$["button-previous"].onclick = function() {
$.get("/player/previous", function(data, status) {
self.updateStatus(self, JSON.parse(data));
});
};
this.$["button-play"].onclick = function() {
... | Fixed volume slider not updating
| src/main/resources/view/custom_components/oudjo-controller/oudjo-controller.js | Fixed volume slider not updating | <ide><path>rc/main/resources/view/custom_components/oudjo-controller/oudjo-controller.js
<ide> if (status.isPlaying) {
<ide> self.$["play-icon"].icon = "av:pause";
<ide> self.$["song-progressbar"].value = status.progress;
<add>
<add> if (status.volume != self.playerStatus.volu... | |
Java | epl-1.0 | e68427100dc60cf196c4c3f848b3005a78aec349 | 0 | angrilove/capsule,isdom/capsule,puniverse/capsule,lookfirst/capsule,trance1st/capsule,victorbriz/capsule,tal-m/capsule,guiquanz/capsule,puniverse/capsule,tal-m/capsule,victorbriz/capsule,leolujuyi/capsule,lookfirst/capsule,kevintvh/capsule,lookfirst/capsule,kevintvh/capsule,trance1st/capsule,angrilove/capsule,lookfirst... | /*
* Capsule
* Copyright (c) 2014-2015, Parallel Universe Software Co. All rights reserved.
*
* This program and the accompanying materials are licensed under the terms
* of the Eclipse Public License v1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
import co.paralleluniverse.capsule.Jar;
imp... | capsule/src/test/java/CapsuleTest.java | /*
* Capsule
* Copyright (c) 2014-2015, Parallel Universe Software Co. All rights reserved.
*
* This program and the accompanying materials are licensed under the terms
* of the Eclipse Public License v1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
import co.paralleluniverse.capsule.Jar;
imp... | Fix test fixture (!!)
| capsule/src/test/java/CapsuleTest.java | Fix test fixture (!!) | <ide><path>apsule/src/test/java/CapsuleTest.java
<ide>
<ide> private Class<?> loadCapsule(Jar jar) throws IOException {
<ide> jar = makeRealCapsuleJar(jar);
<del> return CapsuleTestUtils.loadCapsule(jar, path("capsule.jar"));
<add> Class<?> clazz = CapsuleTestUtils.loadCapsule(jar, path("caps... | |
Java | agpl-3.0 | e9f3064de2ae35754af5e6b5862593886e18cead | 0 | mnip91/proactive-component-monitoring,lpellegr/programming,paraita/programming,PaulKh/scale-proactive,acontes/scheduling,acontes/scheduling,mnip91/proactive-component-monitoring,PaulKh/scale-proactive,paraita/programming,lpellegr/programming,fviale/programming,mnip91/programming-multiactivities,jrochas/scale-proactive,... | /*
* ################################################################
*
* ProActive: The Java(TM) library for Parallel, Distributed,
* Concurrent computing with Security and Mobility
*
* Copyright (C) 1997-2002 INRIA/University of Nice-Sophia Antipolis
* Contact: proactive-support@inria.fr
*
* This library i... | src/org/objectweb/proactive/core/body/ActiveBody.java | /*
* ################################################################
*
* ProActive: The Java(TM) library for Parallel, Distributed,
* Concurrent computing with Security and Mobility
*
* Copyright (C) 1997-2002 INRIA/University of Nice-Sophia Antipolis
* Contact: proactive-support@inria.fr
*
* This library i... | Not modified since last commit
git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@124 28e8926c-6b08-0410-baaa-805c5e19b8d6
| src/org/objectweb/proactive/core/body/ActiveBody.java | Not modified since last commit | <ide><path>rc/org/objectweb/proactive/core/body/ActiveBody.java
<ide> * @since ProActive 0.9
<ide> * @see org.objectweb.proactive.Body
<ide> * @see AbstractBody
<del> * @see AbstractMigratableBody
<add> * @see org.objectweb.proactive.core.body.migration.AbstractMigratableBody
<ide> *
<ide> */
<ide> public class ... | |
Java | apache-2.0 | 9f1f0e4701c237109380bc981373d691d5e66dfb | 0 | adgear/secor,adgear/secor | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | src/main/java/com/pinterest/secor/consumer/Consumer.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Ignore hopefully-transient HTTP errors.
| src/main/java/com/pinterest/secor/consumer/Consumer.java | Ignore hopefully-transient HTTP errors. | <ide><path>rc/main/java/com/pinterest/secor/consumer/Consumer.java
<ide> private void checkUploadPolicy() {
<ide> try {
<ide> mUploader.applyPolicy();
<add> } catch(org.apache.http.NoHttpResponseException e) {
<add> LOG.warn("Ignoring HTTP failure:");
<add> e.printSt... | |
Java | lgpl-2.1 | b1882299a37fd1256862bbf630f8051818312a74 | 0 | agentlab/ru.agentlab.maia | /*******************************************************************************
* Copyright (c) 2016 AgentLab.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* ... | tests/ru.agentlab.maia.agent.test/src/ru/agentlab/maia/agent/converter/ConverterSplitDatatypeLiteralTest.java | /*******************************************************************************
* Copyright (c) 2016 AgentLab.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* ... | add java doc | tests/ru.agentlab.maia.agent.test/src/ru/agentlab/maia/agent/converter/ConverterSplitDatatypeLiteralTest.java | add java doc | <ide><path>ests/ru.agentlab.maia.agent.test/src/ru/agentlab/maia/agent/converter/ConverterSplitDatatypeLiteralTest.java
<ide> import org.semanticweb.owlapi.vocab.Namespaces;
<ide>
<ide> /**
<del> * Test method which split literal into 3 parts:
<add> * Test method {@link Converter#splitDatatypeLiteral(String)} which sp... | |
Java | apache-2.0 | e21b1861dc02d58fd4e86bc8361227275ed3043a | 0 | novoda/download-manager,xufeifandj/download-manager | package com.novoda.downloadmanager.lib;
import android.content.ContentValues;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.annotation.NonNull;
import com.novoda.notils.logger... | library/src/main/java/com/novoda/downloadmanager/lib/DatabaseHelper.java | package com.novoda.downloadmanager.lib;
import android.content.ContentValues;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.annotation.NonNull;
import com.novoda.notils.logger... | formatating
| library/src/main/java/com/novoda/downloadmanager/lib/DatabaseHelper.java | formatating | <ide><path>ibrary/src/main/java/com/novoda/downloadmanager/lib/DatabaseHelper.java
<ide> private void createDownloadsTable(SQLiteDatabase db) {
<ide> try {
<ide> db.execSQL("DROP TABLE IF EXISTS " + DownloadContract.Downloads.DOWNLOADS_TABLE_NAME);
<del> db.execSQL("CREATE TABLE " + D... | |
Java | bsd-3-clause | dc864456dd9db9d5d1d8333bf99ecc4899d232fe | 0 | firebase/flutterfire,firebase/flutterfire,firebase/flutterfire,firebase/flutterfire,firebase/flutterfire,firebase/flutterfire,firebase/flutterfire,firebase/flutterfire,firebase/flutterfire,firebase/flutterfire | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.firebasedynamiclinks;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import com.google.an... | packages/firebase_dynamic_links/android/src/main/java/io/flutter/plugins/firebasedynamiclinks/FirebaseDynamicLinksPlugin.java | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.firebasedynamiclinks;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import com.google.an... | fix(dynamic-links, android): null-check intent before calling getDynamicLink (#6911)
| packages/firebase_dynamic_links/android/src/main/java/io/flutter/plugins/firebasedynamiclinks/FirebaseDynamicLinksPlugin.java | fix(dynamic-links, android): null-check intent before calling getDynamicLink (#6911) | <ide><path>ackages/firebase_dynamic_links/android/src/main/java/io/flutter/plugins/firebasedynamiclinks/FirebaseDynamicLinksPlugin.java
<ide> }
<ide>
<ide> private void handleGetInitialDynamicLink(final Result result) {
<del> // If there's no activity, then there's no initial dynamic link.
<del> if (activity... | |
Java | apache-2.0 | ac2de2e6df31b5c03a371f8aa51cee72cb2d3f10 | 0 | Aino-io/agent-wso2-esb | /*
* Copyright 2016 Aino.io
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | src/main/java/io/aino/agents/wso2/mediator/AinoMediator.java | /*
* Copyright 2016 Aino.io
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | try-catch to mediate() so that mediation would not stop in any circumstance
| src/main/java/io/aino/agents/wso2/mediator/AinoMediator.java | try-catch to mediate() so that mediation would not stop in any circumstance | <ide><path>rc/main/java/io/aino/agents/wso2/mediator/AinoMediator.java
<ide>
<ide> @Override
<ide> public boolean mediate(MessageContext context) {
<del> initTransportHeadersMap(context);
<del>
<del>
<del> Transaction transaction = createTransaction(context);
<del> new IdPropertyBuilder(th... | |
Java | apache-2.0 | 64066bf22d1ca07c153ec6a06e42d844c61c3584 | 0 | SyncFree/SwiftCloud,SyncFree/SwiftCloud,SyncFree/SwiftCloud,SyncFree/SwiftCloud | /*****************************************************************************
* Copyright 2011-2012 INRIA
* Copyright 2011-2012 Universidade Nova de Lisboa
*
* 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 cop... | src-core/swift/client/AbstractTxnHandle.java | /*****************************************************************************
* Copyright 2011-2012 INRIA
* Copyright 2011-2012 Universidade Nova de Lisboa
*
* 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 cop... | Corrected NullPointerException bug on bulkGet.
The return map could not store null values to indicate failure to get
a crdt...
| src-core/swift/client/AbstractTxnHandle.java | Corrected NullPointerException bug on bulkGet. | <ide><path>rc-core/swift/client/AbstractTxnHandle.java
<ide>
<ide> import java.util.Arrays;
<ide> import java.util.Collection;
<add>import java.util.Collections;
<ide> import java.util.HashMap;
<ide> import java.util.HashSet;
<ide> import java.util.Map;
<ide> import java.util.Set;
<del>import java.util.concurrent.Conc... | |
Java | apache-2.0 | 6a41e85e3c9377ef03587f553d6351d687956a91 | 0 | mglukhikh/intellij-community,vvv1559/intellij-community,dslomov/intellij-community,adedayo/intellij-community,dslomov/intellij-community,ol-loginov/intellij-community,caot/intellij-community,gnuhub/intellij-community,ibinti/intellij-community,blademainer/intellij-community,blademainer/intellij-community,allotria/intell... | /*
* User: anna
* Date: 29-May-2008
*/
package com.intellij.coverage.actions;
import com.intellij.codeInsight.hint.HintManager;
import com.intellij.codeInsight.hint.ImplementationViewComponent;
import com.intellij.coverage.CoverageDataManager;
import com.intellij.coverage.CoverageSuite;
import com.intellij.coverage... | plugins/coverage-common/src/com/intellij/coverage/actions/ShowCoveringTestsAction.java | /*
* User: anna
* Date: 29-May-2008
*/
package com.intellij.coverage.actions;
import com.intellij.codeInsight.hint.HintManager;
import com.intellij.codeInsight.hint.ImplementationViewComponent;
import com.intellij.coverage.CoverageDataManager;
import com.intellij.coverage.CoverageSuite;
import com.intellij.coverage... | IDEA-92207 Make it possible to focus QuickView, Diagrams, Show Implementations, etc popups called from lists, trees, etc
| plugins/coverage-common/src/com/intellij/coverage/actions/ShowCoveringTestsAction.java | IDEA-92207 Make it possible to focus QuickView, Diagrams, Show Implementations, etc popups called from lists, trees, etc | <ide><path>lugins/coverage-common/src/com/intellij/coverage/actions/ShowCoveringTestsAction.java
<ide> final ComponentPopupBuilder popupBuilder;
<ide> if (!elements.isEmpty()) {
<ide> component = new ImplementationViewComponent(PsiUtilCore.toPsiElementArray(elements), 0);
<del> popupBuilder =... | |
JavaScript | agpl-3.0 | 649ab26da819738660954d34c506cfd39eaf0bc6 | 0 | lmcro/xo-web,lmcro/xo-web,lmcro/xo-web,vatesfr/xo-web,vatesfr/xo-web | // These global variables are not a problem because the algorithm is
// synchronous.
let permissionsByObject
let getObject
// -------------------------------------------------------------------
const authorized = () => true // eslint-disable-line no-unused-vars
const forbiddden = () => false // eslint-disable-line no... | packages/xo-acl-resolver/src/index.js | // These global variables are not a problem because the algorithm is
// synchronous.
let permissionsByObject
let getObject
// -------------------------------------------------------------------
const authorized = () => true // eslint-disable-line no-unused-vars
const forbiddden = () => false // eslint-disable-line no... | feat: gracefully handle missing objects
| packages/xo-acl-resolver/src/index.js | feat: gracefully handle missing objects | <ide><path>ackages/xo-acl-resolver/src/index.js
<ide> // Hoisting is important for this function.
<ide> function checkAuthorization (objectId, permission) {
<ide> const object = getObject(objectId)
<add> if (!object) {
<add> return false
<add> }
<add>
<ide> const checker = checkAuthorizationByTypes[object.type... | |
Java | mit | 2fa21a82a2298344a47a296cc4a02c2f6d2c84bc | 0 | yzhnasa/TASSEL-iRods,yzhnasa/TASSEL-iRods,yzhnasa/TASSEL-iRods,yzhnasa/TASSEL-iRods | // Identifier.java
//
// (c) 1999-2000 PAL Development Core Team
//
// This package may be distributed under the
// terms of the Lesser GNU General Public License (LGPL)
package net.maizegenetics.pal.ids;
import java.io.Serializable;
import net.maizegenetics.prefs.TasselPrefs;
/**
* An identifier for s... | src/net/maizegenetics/pal/ids/Identifier.java | // Identifier.java
//
// (c) 1999-2000 PAL Development Core Team
//
// This package may be distributed under the
// terms of the Lesser GNU General Public License (LGPL)
package net.maizegenetics.pal.ids;
import java.io.Serializable;
import net.maizegenetics.prefs.TasselPrefs;
/**
* An identifier for s... | Redesigned Identifier class to store both full name and tokens for efficient matching… myName = name;
myNameTokens = name.split(DELIMITER);
| src/net/maizegenetics/pal/ids/Identifier.java | Redesigned Identifier class to store both full name and tokens for efficient matching… myName = name; myNameTokens = name.split(DELIMITER); | <ide><path>rc/net/maizegenetics/pal/ids/Identifier.java
<ide> private static final long serialVersionUID = -7873729831795750538L;
<ide> public static final String DELIMITER = ":";
<ide> private final String myName;
<add> private final String[] myNameTokens;
<ide> public static Identifier ANONYMOUS = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.