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 | apache-2.0 | 5293fbaab31353eed3db9fd7e7d8971e99548f98 | 0 | GlassTune/GlassTune | package com.glasstune.activities;
import com.glasstune.R;
import com.glasstune.tone.Note;
import com.glasstune.utils.FrequencySmoother;
import com.glasstune.utils.NoteCalculator;
import com.google.android.glass.app.Card;
import com.google.android.glass.widget.CardScrollAdapter;
import com.google.android.glass.widget.C... | glass/src/main/java/com/glasstune/activities/TuneGuitarActivity.java | package com.glasstune.activities;
import com.glasstune.R;
import com.glasstune.tone.Note;
import com.glasstune.utils.FrequencySmoother;
import com.glasstune.utils.NoteCalculator;
import com.google.android.glass.app.Card;
import com.google.android.glass.media.Sounds;
import com.google.android.glass.widget.CardScrollAda... | updated backgroug thread to use Async task
| glass/src/main/java/com/glasstune/activities/TuneGuitarActivity.java | updated backgroug thread to use Async task | <ide><path>lass/src/main/java/com/glasstune/activities/TuneGuitarActivity.java
<ide> import com.glasstune.utils.FrequencySmoother;
<ide> import com.glasstune.utils.NoteCalculator;
<ide> import com.google.android.glass.app.Card;
<del>import com.google.android.glass.media.Sounds;
<ide> import com.google.android.glass.wid... | |
Java | apache-2.0 | b264a8a113ce2ee468fc6c7a131ac0db6b0ac3f1 | 0 | karahiyo/hanoi-hadoop-2.0.0-cdh,karahiyo/hanoi-hadoop-2.0.0-cdh,karahiyo/hanoi-hadoop-2.0.0-cdh,karahiyo/hanoi-hadoop-2.0.0-cdh,karahiyo/hanoi-hadoop-2.0.0-cdh,karahiyo/hanoi-hadoop-2.0.0-cdh,karahiyo/hanoi-hadoop-2.0.0-cdh,karahiyo/hanoi-hadoop-2.0.0-cdh,karahiyo/hanoi-hadoop-2.0.0-cdh | package aj.hadoop.monitor.mapreduce;
import java.io.*;
import java.net.*;
import java.util.*;
import java.text.*;
import java.lang.*;
import java.lang.management.*;
import java.util.StringTokenizer;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.mapreduce.*;
import... | src/monitor/aj/hadoop/monitor/mapreduce/MapperMonitor.java | package aj.hadoop.monitor.mapreduce;
import java.io.*;
import java.net.*;
import java.util.*;
import java.text.*;
import java.lang.*;
import java.lang.management.*;
import java.util.StringTokenizer;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.mapreduce.*;
import... | remove example jar.
| src/monitor/aj/hadoop/monitor/mapreduce/MapperMonitor.java | remove example jar. | <ide><path>rc/monitor/aj/hadoop/monitor/mapreduce/MapperMonitor.java
<ide> import java.util.logging.Logger;
<ide> import java.util.logging.Level;
<ide> import java.util.logging.FileHandler;
<del>
<del>import org.apache.hadoop.examples.*;
<ide>
<ide> @Aspect
<ide> public abstract class MapperMonitor { | |
JavaScript | apache-2.0 | 1da78c0d039ef6be530521cdf7586f97d97dfd0f | 0 | openwrt/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,hnyman/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,hnyman/luci,openwrt/luci,hnyman/luci,openwrt/luci,hnyman/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,openwrt/luci,openwrt/luci,lbthomsen/openwrt-luci,hnyman/luci,hnyman/luci... | 'use strict';
'require baseclass';
'require form';
return baseclass.extend({
title: _('RRDTool Plugin Configuration'),
description: _('The rrdtool plugin stores the collected data in rrd database files, the foundation of the diagrams.<br /><br /><strong>Warning: Setting the wrong values will result in a very high me... | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js | 'use strict';
'require baseclass';
'require form';
return baseclass.extend({
title: _('RRDTool Plugin Configuration'),
description: _('The rrdtool plugin stores the collected data in rrd database files, the foundation of the diagrams.<br /><br /><strong>Warning: Setting the wrong values will result in a very high me... | luci-app-statistics: Add help text to RRD time spans
Add clarifying help text to the RRD time span definition.
Only a few strings are allowed and it is easy to cause uninteded
results especially with minutes as only "min" is for minute while
("m" or "month") are for month.
Signed-off-by: Hannu Nyman <ab53a3387de93e3... | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js | luci-app-statistics: Add help text to RRD time spans | <ide><path>pplications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js
<ide> _('Max values for a period can be used instead of averages when not using \'only average RRAs\''));
<ide> o.depends('RRASingle', '0');
<ide>
<del> o = s.option(form.DynamicList, 'RRATimespans', _('Sto... | |
Java | apache-2.0 | cef41a336c514aad7f62244fd9c449a237e8bb29 | 0 | June92/Cardshifter,Cardshifter/Cardshifter,SirPython/Cardshifter,Cardshifter/Cardshifter,Cardshifter/Cardshifter,June92/Cardshifter,June92/Cardshifter,SirPython/Cardshifter,SirPython/Cardshifter | package com.cardshifter.gdx;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.*;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.cardshifter.api.both.ChatMessage;
import com.cardshifter.api.b... | gdx/core/src/com/cardshifter/gdx/ClientScreen.java | package com.cardshifter.gdx;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.*;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.cardshifter.api.both.ChatMessage;
import com.cardshifter.api.i... | added random generation of DeckConfig when being asked for deck
| gdx/core/src/com/cardshifter/gdx/ClientScreen.java | added random generation of DeckConfig when being asked for deck | <ide><path>dx/core/src/com/cardshifter/gdx/ClientScreen.java
<ide> import com.badlogic.gdx.scenes.scene2d.ui.*;
<ide> import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
<ide> import com.cardshifter.api.both.ChatMessage;
<add>import com.cardshifter.api.both.PlayerConfigMessage;
<add>import com.cardshifter.api.c... | |
Java | apache-2.0 | e5d9018c14d9bf732d4eb4607241162402e8ef8a | 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-2019 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.codeInspection;
import com.intellij.openapi.application.ApplicationStarter;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public class I... | platform/lang-impl/src/com/intellij/codeInspection/InspectionMain.java | // Copyright 2000-2019 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.codeInspection;
import com.intellij.openapi.application.ApplicationStarter;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public class I... | Fix array -> List<String> transition after updates from master
GitOrigin-RevId: 91447b6a601da329aec2a4ce548dbda4a285d97a | platform/lang-impl/src/com/intellij/codeInspection/InspectionMain.java | Fix array -> List<String> transition after updates from master | <ide><path>latform/lang-impl/src/com/intellij/codeInspection/InspectionMain.java
<ide> myApplication.mySourceDirectory = args.get(++i);
<ide> }
<ide> else if ("-format".equals(arg)) {
<del> myApplication.myOutputFormat = args[++i];
<add> myApplication.myOutputFormat = args.ge... | |
Java | mit | 665d6ed336bc126c614f8a8b6374aaa3842e3374 | 0 | DemigodsRPG/Demigods3 | package com.censoredsoftware.demigods.listener;
import com.censoredsoftware.demigods.Demigods;
import com.censoredsoftware.demigods.player.DCharacter;
import com.censoredsoftware.demigods.player.DPlayer;
import com.censoredsoftware.demigods.util.Messages;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
i... | src/main/java/com/censoredsoftware/demigods/listener/DisabledWorldListener.java | package com.censoredsoftware.demigods.listener;
import com.censoredsoftware.demigods.Demigods;
import com.censoredsoftware.demigods.player.DCharacter;
import com.censoredsoftware.demigods.player.DPlayer;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.Eve... | More stuff.
| src/main/java/com/censoredsoftware/demigods/listener/DisabledWorldListener.java | More stuff. | <ide><path>rc/main/java/com/censoredsoftware/demigods/listener/DisabledWorldListener.java
<ide> import com.censoredsoftware.demigods.Demigods;
<ide> import com.censoredsoftware.demigods.player.DCharacter;
<ide> import com.censoredsoftware.demigods.player.DPlayer;
<del>import org.bukkit.Bukkit;
<add>import com.censoreds... | |
Java | mit | 9e94d536471a6c368056d84e5769575b4667ba68 | 0 | smooch/react-native-smooch,smooch/react-native-smooch,smooch/react-native-smooch | package com.smooch.rnsmooch;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.ArrayList;
import java.util... | android/src/main/java/com/smooch/rnsmooch/ReactNativeSmoochPackage.java | package com.smooch.rnsmooch;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.ArrayList;
import java.util... | Remove method that was removed from interface
See https://github.com/facebook/react-native/commit/ce6fb337a146e6f261f2afb564aa19363774a7a8#diff-63e621165603dc1a84832d6c400fae31
| android/src/main/java/com/smooch/rnsmooch/ReactNativeSmoochPackage.java | Remove method that was removed from interface | <ide><path>ndroid/src/main/java/com/smooch/rnsmooch/ReactNativeSmoochPackage.java
<ide> }
<ide>
<ide> @Override
<del> public List<Class<? extends JavaScriptModule>> createJSModules() {
<del> return Collections.emptyList();
<del> }
<del>
<del> @Override
<ide> public List<ViewManager> createV... | |
Java | mit | f50834e16d408fa7cb5eae54304b0b0af7688a5a | 0 | hpe-idol/find,hpautonomy/find,hpe-idol/java-powerpoint-report,hpe-idol/find,hpautonomy/find,hpautonomy/find,hpe-idol/find,hpautonomy/find,hpautonomy/find,hpe-idol/java-powerpoint-report,hpe-idol/find,hpe-idol/find | package com.autonomy.abc.search;
import com.autonomy.abc.config.ABCTestBase;
import com.autonomy.abc.config.TestConfig;
import com.autonomy.abc.selenium.config.ApplicationType;
import com.autonomy.abc.selenium.element.DatePicker;
import com.autonomy.abc.selenium.language.Language;
import com.autonomy.abc.selenium.menu... | integration-tests-common/src/test/java/com/autonomy/abc/search/SearchPageITCase.java | package com.autonomy.abc.search;
import com.autonomy.abc.config.ABCTestBase;
import com.autonomy.abc.config.TestConfig;
import com.autonomy.abc.selenium.config.ApplicationType;
import com.autonomy.abc.selenium.element.DatePicker;
import com.autonomy.abc.selenium.language.Language;
import com.autonomy.abc.selenium.menu... | testUntilDateFilter should use DatePickerFilter
| integration-tests-common/src/test/java/com/autonomy/abc/search/SearchPageITCase.java | testUntilDateFilter should use DatePickerFilter | <ide><path>ntegration-tests-common/src/test/java/com/autonomy/abc/search/SearchPageITCase.java
<ide> searchPage.waitForSearchLoadIndicatorToDisappear();
<ide>
<ide> final String firstResult = searchPage.getSearchResultTitle(1);
<del> final Date date = searchPage.getDateFromResult(1);
<add> Date date = searchPage... | |
Java | apache-2.0 | 4b69fad6b7b2bdaef0b4080b62a933e60746f1b3 | 0 | reid-mcpherson/ExoPlayerDebug,Ood-Tsen/ExoPlayer,pittenga/ExoPlayer,Furystorm/ExoPlayer,seventhmoon/ExoPlayer,jcable/ExoPlayer,eriuzo/ExoPlayer,jeoliva/ExoPlayer,aravinds03/ExoPlayer,YouKim/ExoPlayer,YouKim/ExoPlayer,FinalLevel/ExoPlayer,reid-mcpherson/ExoPlayerDebug,tntcrowd/ExoPlayer,ened/ExoPlayer,bongole/ExoPlayer,... | /*
* Copyright (C) 2014 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 app... | library/src/main/java/com/google/android/exoplayer/text/subrip/SubripParser.java | /*
* Copyright (C) 2014 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 app... | Ignore extra returns in Subrip parsing
| library/src/main/java/com/google/android/exoplayer/text/subrip/SubripParser.java | Ignore extra returns in Subrip parsing | <ide><path>ibrary/src/main/java/com/google/android/exoplayer/text/subrip/SubripParser.java
<ide> String currentLine;
<ide>
<ide> while ((currentLine = reader.readLine()) != null) {
<add> // Skip blank lines.
<add> if (currentLine.length() == 0)
<add> continue;
<add>
<ide> // Parse the nu... | |
Java | apache-2.0 | 38c996f9347f95351d8d96f5d98f8bac5ced8644 | 0 | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | /*
* Copyright 2017, TeamDev Ltd. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRES... | testutil/src/test/java/org/spine3/test/VerifyShould.java | /*
* Copyright 2017, TeamDev Ltd. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRES... | Rename constants in `VerifyShould` according to naming convention
| testutil/src/test/java/org/spine3/test/VerifyShould.java | Rename constants in `VerifyShould` according to naming convention | <ide><path>estutil/src/test/java/org/spine3/test/VerifyShould.java
<ide> @SuppressWarnings({"ClassWithTooManyMethods", "OverlyComplexClass"})
<ide> public class VerifyShould {
<ide>
<del> private static final String emptyString = "";
<del> private static final String notEmptyString = "Not empty string";
<del> ... | |
Java | mit | 471b6f117bf92d1161ab03d1c899f6a7ae953311 | 0 | Nanopublication/nanopub-java,Nanopublication/nanopub-java | package org.nanopub.extra.server;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Serializable;
import org.apache.http.client.HttpClient;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.HttpClientBuilder... | src/main/java/org/nanopub/extra/server/ServerInfo.java | package org.nanopub.extra.server;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Serializable;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.HttpClientBuilder;
import com.google.gson.Gson;
public class ServerInfo implements Serializable {
private s... | Reduce timeout to 5 seconds for getting server info | src/main/java/org/nanopub/extra/server/ServerInfo.java | Reduce timeout to 5 seconds for getting server info | <ide><path>rc/main/java/org/nanopub/extra/server/ServerInfo.java
<ide> import java.io.InputStreamReader;
<ide> import java.io.Serializable;
<ide>
<add>import org.apache.http.client.HttpClient;
<add>import org.apache.http.client.config.RequestConfig;
<ide> import org.apache.http.client.methods.HttpGet;
<ide> import org... | |
JavaScript | agpl-3.0 | 04e8f9cd568f0f69af5f3ca9241e2163613a2809 | 0 | richardsawyer/smart-area,richardsawyer/smart-area | /**
* AngularJS Directive to allow autocomplete and dropdown suggestions
* on textareas.
*
* Homepage: https://github.com/aurbano/smart-area
*
* @author Alejandro U. Alvarez (http://urbanoalvarez.es)
* @license AGPLv3 (See LICENSE)
*/
angular.module('smartArea', [])
.directive('smartArea', function($compil... | dist/smart-area.js | /**
* AngularJS Directive to allow autocomplete and dropdown suggestions
* on textareas.
*
* Homepage: https://github.com/aurbano/smart-area
*
* @author Alejandro U. Alvarez (http://urbanoalvarez.es)
* @license AGPLv3 (See LICENSE)
*/
angular.module('smartArea', [])
.directive('smartArea', function($compil... | fix menu bug on use keyboard
| dist/smart-area.js | fix menu bug on use keyboard | <ide><path>ist/smart-area.js
<ide> }, 0);
<ide> });
<ide>
<del> $element.bind('keyup', function () {
<del> $timeout(function(){
<del> checkTriggers();
<del> }, 0);
<add> $element.bind('keyup', function (event) {
<add> ... | |
Java | apache-2.0 | 424bbbc45be4a3a71df5a57067f0bac7b1d4e658 | 0 | HanSolo/tilesfx,HanSolo/tilesfx,HanSolo/tilesfx | /*
* Copyright (c) 2016 by Gerrit Grunwald
*
* 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... | src/main/java/eu/hansolo/tilesfx/skins/TileSkin.java | /*
* Copyright (c) 2016 by Gerrit Grunwald
*
* 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... | Removed System.out.println
| src/main/java/eu/hansolo/tilesfx/skins/TileSkin.java | Removed System.out.println | <ide><path>rc/main/java/eu/hansolo/tilesfx/skins/TileSkin.java
<ide> } else if ("SECTION".equals(EVENT_TYPE)) {
<ide> sections = tile.getSections();
<ide> } else if ("TOOLTIP_TEXT".equals(EVENT_TYPE)) {
<del> System.out.println(tile.getTooltipText());
<ide> tooltip.set... | |
Java | apache-2.0 | 8a104ea09182f96768b2238682944e497ea045af | 0 | jzadeh/Aktaion,jzadeh/Aktaion | package com.aktaion.shell;
import com.aktaion.ml.weka.randomforest.ClassLabel;
import com.aktaion.ml.weka.randomforest.RandomForestLogic;
import com.aktaion.ml.weka.randomforest.WekaUtilities;
import scala.Option;
import java.util.Scanner;
public class UserInteractionLogic {
private static void pressAnyKeyToCon... | src/main/java/com/aktaion/shell/UserInteractionLogic.java | package com.aktaion.shell;
import com.aktaion.ml.weka.randomforest.ClassLabel;
import com.aktaion.ml.weka.randomforest.RandomForestLogic;
import com.aktaion.ml.weka.randomforest.WekaUtilities;
import scala.Option;
import java.util.Scanner;
public class UserInteractionLogic {
public static void main(String[] arg... | Break up demo into steps.
| src/main/java/com/aktaion/shell/UserInteractionLogic.java | Break up demo into steps. | <ide><path>rc/main/java/com/aktaion/shell/UserInteractionLogic.java
<ide> import java.util.Scanner;
<ide>
<ide> public class UserInteractionLogic {
<add>
<add> private static void pressAnyKeyToContinue() {
<add> System.out.println("Press any key to continue...");
<add> try {
<add> System.in... | |
Java | mit | 024e13b10c2be4d06795216774cabe9282879e77 | 0 | GloomyFolken/HookLib | package gloomyfolken.hooklib.asm;
import cpw.mods.fml.relauncher.FMLRelaunchLog;
import net.minecraft.launchwrapper.IClassTransformer;
import org.objectweb.asm.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
public class HookClassTransformer implements IClas... | src/minecraft/gloomyfolken/hooklib/asm/HookClassTransformer.java | package gloomyfolken.hooklib.asm;
import cpw.mods.fml.relauncher.FMLRelaunchLog;
import gloomyfolken.mods.effects.asm.EffectsMod;
import net.minecraft.launchwrapper.IClassTransformer;
import org.objectweb.asm.*;
import org.objectweb.asm.tree.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.It... | И опять я забыл выпилить методы на дебаг-вывод..)
| src/minecraft/gloomyfolken/hooklib/asm/HookClassTransformer.java | И опять я забыл выпилить методы на дебаг-вывод..) | <ide><path>rc/minecraft/gloomyfolken/hooklib/asm/HookClassTransformer.java
<ide> package gloomyfolken.hooklib.asm;
<ide>
<ide> import cpw.mods.fml.relauncher.FMLRelaunchLog;
<del>import gloomyfolken.mods.effects.asm.EffectsMod;
<ide> import net.minecraft.launchwrapper.IClassTransformer;
<ide> import org.objectweb.asm.... | |
Java | mit | c4e9f3cbff38fba7bbf10c9bd2675d4f1b08f7a1 | 0 | icode/ameba-session | package ameba.http.session;
import ameba.util.Times;
import org.apache.commons.codec.digest.DigestUtils;
import javax.annotation.Priority;
import javax.inject.Singleton;
import javax.ws.rs.Priorities;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import jav... | src/main/java/ameba/http/session/SessionFilter.java | package ameba.http.session;
import ameba.util.Times;
import org.apache.commons.codec.digest.DigestUtils;
import javax.annotation.Priority;
import javax.ws.rs.Priorities;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.ContainerRes... | 完成缓存实现的session
| src/main/java/ameba/http/session/SessionFilter.java | 完成缓存实现的session | <ide><path>rc/main/java/ameba/http/session/SessionFilter.java
<ide> import org.apache.commons.codec.digest.DigestUtils;
<ide>
<ide> import javax.annotation.Priority;
<add>import javax.inject.Singleton;
<ide> import javax.ws.rs.Priorities;
<ide> import javax.ws.rs.container.ContainerRequestContext;
<ide> import javax.w... | |
JavaScript | apache-2.0 | 73427434ea2fc1b759c201676e520025c7a027bf | 0 | HewlettPackard/grommet,HewlettPackard/grommet,grommet/grommet,grommet/grommet,grommet/grommet,HewlettPackard/grommet | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import { ThemeContext as IconThemeContext } from 'grommet-icons/contexts';
import { ThemeContext } from '../../contexts';
import { FocusedContainer } from '../FocusedContainer';
import {
backgroundIsDark, findScrollParents, findVisibl... | src/js/components/Drop/DropContainer.js | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import { ThemeContext as IconThemeContext } from 'grommet-icons/contexts';
import { ThemeContext } from '../../contexts';
import { FocusedContainer } from '../FocusedContainer';
import {
backgroundIsDark, findScrollParents, findVisibl... | Fix to close a drop element without having the focus on the drop (#2343)
| src/js/components/Drop/DropContainer.js | Fix to close a drop element without having the focus on the drop (#2343) | <ide><path>rc/js/components/Drop/DropContainer.js
<ide>
<ide> return (
<ide> <FocusedContainer>
<del> <Keyboard onEsc={onEsc} onKeyDown={onKeyDown}>
<add> <Keyboard onEsc={onEsc} onKeyDown={onKeyDown} target='document'>
<ide> {content}
<ide> </Keyboard>
<ide> </FocusedCo... | |
Java | mit | 1fe351b7107b9740f933209e0e967d693db320c4 | 0 | ekholabs/elsie-dee | package nl.ekholabs.nlp.controller;
import java.io.IOException;
import nl.ekholabs.nlp.model.TextResponse;
import nl.ekholabs.nlp.service.SpeechToTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.... | src/main/java/nl/ekholabs/nlp/controller/SpeechToTextController.java | package nl.ekholabs.nlp.controller;
import java.io.IOException;
import nl.ekholabs.nlp.model.TextResponse;
import nl.ekholabs.nlp.service.SpeechToTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.... | Remove path attribute from PostMapping
| src/main/java/nl/ekholabs/nlp/controller/SpeechToTextController.java | Remove path attribute from PostMapping | <ide><path>rc/main/java/nl/ekholabs/nlp/controller/SpeechToTextController.java
<ide> this.speechToTextService = speechToTextService;
<ide> }
<ide>
<del> @PostMapping(path = "/", produces = APPLICATION_JSON_UTF8_VALUE, consumes = MULTIPART_FORM_DATA_VALUE)
<add> @PostMapping(produces = APPLICATION_JSON_UTF8_VAL... | |
Java | apache-2.0 | e4ee186bcdd5489a759335e334ff727397a041cf | 0 | e-cuellar/pentaho-kettle,pminutillo/pentaho-kettle,wseyler/pentaho-kettle,matthewtckr/pentaho-kettle,graimundo/pentaho-kettle,bmorrise/pentaho-kettle,skofra0/pentaho-kettle,DFieldFL/pentaho-kettle,ddiroma/pentaho-kettle,graimundo/pentaho-kettle,marcoslarsen/pentaho-kettle,wseyler/pentaho-kettle,mkambol/pentaho-kettle,t... | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2018 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | core/src/test/java/org/pentaho/di/core/RowMetaAndDataTest.java | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | [BACKLOG-21321] Avro Streaming enhancments ( pass fields from prior step, handle multiple rows containing avro content, add seperator bar and fix Mac UI )
| core/src/test/java/org/pentaho/di/core/RowMetaAndDataTest.java | [BACKLOG-21321] Avro Streaming enhancments ( pass fields from prior step, handle multiple rows containing avro content, add seperator bar and fix Mac UI ) | <ide><path>ore/src/test/java/org/pentaho/di/core/RowMetaAndDataTest.java
<ide> *
<ide> * Pentaho Data Integration
<ide> *
<del> * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
<add> * Copyright (C) 2002-2018 by Hitachi Vantara : http://www.pentaho.com
<ide> *
<ide> ***************************... | |
JavaScript | mit | af25c1bf5a590b17bc0f4aef1f30d9993fc8f497 | 0 | DaemonAlchemist/atp-core,DaemonAlchemist/atp-core,DaemonAlchemist/atp-core | ;(function ( $, window, document, undefined ) {
var pluginName = "bannerRotate";
var defaults = {
bannerDisplayTime: 10000,
bannerFadeTime: 800
};
function Plugin( element, options ) {
this.element = element;
this.options = $.extend( {}, defaults, options );
this.... | public/atp-core/js/jquery_plugins/banner_rotate.js | ;(function ( $, window, document, undefined ) {
var pluginName = "bannerRotate";
var defaults = {
bannerDisplayTime: 10000,
bannerFadeTime: 800
};
function Plugin( element, options ) {
this.element = element;
this.options = $.extend( {}, defaults, options );
this.... | Add buttons to banner rotator
| public/atp-core/js/jquery_plugins/banner_rotate.js | Add buttons to banner rotator | <ide><path>ublic/atp-core/js/jquery_plugins/banner_rotate.js
<ide> var options = this.options;
<ide>
<ide> //Hide banners on first load
<del> elem.children().hide();
<del> elem.children(':first-child').addClass('banner-displayed');
<add> elem.children().addClass("banner").hide();
<add> elem.children('... | |
Java | bsd-2-clause | f04a016d6ec62acc3d261bd4fe2c432d9fe0fe5d | 0 | biovoxxel/imagej,TehSAUCE/imagej,TehSAUCE/imagej,biovoxxel/imagej,TehSAUCE/imagej,biovoxxel/imagej | package imagej;
import imagej.SampleInfo.ValueType;
import imagej.process.ImageUtils;
import imagej.process.Index;
import imagej.process.Span;
import imagej.process.TypeManager;
import imagej.process.operation.GetPlaneOperation;
import imagej.process.operation.SetPlaneOperation;
import mpicbg.imglib.container.Containe... | imagej/src/main/java/imagej/PlaneStack.java | package imagej;
import imagej.SampleInfo.ValueType;
import imagej.process.ImageUtils;
import imagej.process.Index;
import imagej.process.Span;
import imagej.process.TypeManager;
import imagej.process.operation.GetPlaneOperation;
import imagej.process.operation.SetPlaneOperation;
import mpicbg.imglib.container.Containe... | added comment
This used to be revision r1609.
| imagej/src/main/java/imagej/PlaneStack.java | added comment | <ide><path>magej/src/main/java/imagej/PlaneStack.java
<ide>
<ide> this.stack = newImage;
<ide> }
<del>
<add>
<add> /** gets a plane from a PlaneStack. returns a reference if possible */
<ide> public Object getPlane(int planeNumber)
<ide> {
<ide> int planes = this.stack.getDimension(2); | |
Java | apache-2.0 | 9e297df94d578b64e6748bf3d928d55588797269 | 0 | apixandru/intellij-community,vladmm/intellij-community,ryano144/intellij-community,mglukhikh/intellij-community,mglukhikh/intellij-community,samthor/intellij-community,izonder/intellij-community,alphafoobar/intellij-community,apixandru/intellij-community,clumsy/intellij-community,SerCeMan/intellij-community,MER-GROUP/i... | /*
* Copyright 2000-2014 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/ui/UIUtil.java | /*
* Copyright 2000-2014 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... | Use Tahoma in HTMLEditorKit on Windows
| platform/util/src/com/intellij/util/ui/UIUtil.java | Use Tahoma in HTMLEditorKit on Windows | <ide><path>latform/util/src/com/intellij/util/ui/UIUtil.java
<ide>
<ide> public static HTMLEditorKit getHTMLEditorKit() {
<ide> Font font = getLabelFont();
<del> @NonNls String family = font != null ? font.getFamily() : "Tahoma";
<add> @NonNls String family = !SystemInfo.isWindows && font != null ? font.ge... | |
Java | epl-1.0 | 5e40917f03a2d3e5e14adbcd9824ea78dc8b92cb | 0 | rrimmana/birt-1,Charling-Huang/birt,Charling-Huang/birt,rrimmana/birt-1,Charling-Huang/birt,sguan-actuate/birt,sguan-actuate/birt,rrimmana/birt-1,sguan-actuate/birt,sguan-actuate/birt,rrimmana/birt-1,rrimmana/birt-1,Charling-Huang/birt,Charling-Huang/birt,sguan-actuate/birt | /*******************************************************************************
* Copyright (c) 2004, 2007 Actuate Corporation.
* 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 av... | chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java | /*******************************************************************************
* Copyright (c) 2004, 2007 Actuate Corporation.
* 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 av... | Fix Bugzilla#254981:Secondary Y-axis format is reset when viewing chart type tab on multiple Y-axis line or area chart.
| chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java | Fix Bugzilla#254981:Secondary Y-axis format is reset when viewing chart type tab on multiple Y-axis line or area chart. | <ide><path>hart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java
<ide> ChartAdapter.beginIgnoreNotifications( );
<ide> for ( int i = 0; i < iOverlaySeriesCount; i++ )
<ide> {
<del> Series newSeries = (Series) EcoreUtil.copy( htSeriesNames.get( cbSeriesType.get... | |
Java | mit | f8ee3c1aa0bd3ed13a9575cbdeffea7028f1b7d3 | 0 | kentwang/algs4,kentwang/algs4,kentwang/algs4 | /*****************************************************************************
* Compilation: javac-algs4 Percolation.java
* Executtion: java-algs4 Percolation
*
* Percolation system class "Percolation"
*/
/**
*
*/
public class Percolation {
private int[] states; // states of a... | perlocation/Percolation.java | /*****************************************************************************
* Compilation: javac-algs4 Percolation.java
* Executtion: java-algs4 Percolation
*
* Percolation system class "Percolation"
*/
/**
*
*/
public class Percolation {
private int[] states; // states of a... | Initialization doesn't connect first/last row to top/bottom
| perlocation/Percolation.java | Initialization doesn't connect first/last row to top/bottom | <ide><path>erlocation/Percolation.java
<ide> }
<ide> states[N * N] = 1;
<ide> states[N * N + 1] = 1;
<del> for (int k = 0; k < dim; k++) { // union top and bottom 5 to top and bottom
<del> cells.union(k, dim * dim); // union top
<del> ... | |
Java | epl-1.0 | error: pathspec 'rules-java-ee/addon/src/main/java/org/jboss/windup/rules/apps/javaee/rules/DiscoverEmbeddedJSFHibernateLibraryRuleProvider.java' did not match any file(s) known to git
| 9bc19d7a0b352c7ab1945450f70c94ca52b942e9 | 1 | johnsteele/windup,OndraZizka/windup,johnsteele/windup,windup/windup,jsight/windup,OndraZizka/windup,OndraZizka/windup,johnsteele/windup,windup/windup,johnsteele/windup,OndraZizka/windup,jsight/windup,Maarc/windup,windup/windup,Maarc/windup,Maarc/windup,jsight/windup,windup/windup,jsight/windup,Maarc/windup | package org.jboss.windup.rules.apps.javaee.rules;
import org.jboss.windup.config.AbstractRuleProvider;
import org.jboss.windup.config.GraphRewrite;
import org.jboss.windup.config.loader.RuleLoaderContext;
import org.jboss.windup.config.metadata.RuleMetadata;
import org.jboss.windup.config.operation.iteration.AbstractI... | rules-java-ee/addon/src/main/java/org/jboss/windup/rules/apps/javaee/rules/DiscoverEmbeddedJSFHibernateLibraryRuleProvider.java | WINDUPRULE-226 Rule for Detecting Hibernate and JSF embedded library
| rules-java-ee/addon/src/main/java/org/jboss/windup/rules/apps/javaee/rules/DiscoverEmbeddedJSFHibernateLibraryRuleProvider.java | WINDUPRULE-226 Rule for Detecting Hibernate and JSF embedded library | <ide><path>ules-java-ee/addon/src/main/java/org/jboss/windup/rules/apps/javaee/rules/DiscoverEmbeddedJSFHibernateLibraryRuleProvider.java
<add>package org.jboss.windup.rules.apps.javaee.rules;
<add>
<add>import org.jboss.windup.config.AbstractRuleProvider;
<add>import org.jboss.windup.config.GraphRewrite;
<add>import o... | |
JavaScript | mit | 5d7a85afd8cafff30b13fa63d20f78d9830d6c2b | 0 | SerkanSipahi/app-decorators,SerkanSipahi/app-decorators | system.config.js | System.config({ globalEvaluationScope: false });
| removed unused system.config.js
| system.config.js | removed unused system.config.js | <ide><path>ystem.config.js
<del>System.config({ globalEvaluationScope: false }); | ||
Java | agpl-3.0 | 1eaffba3172052637544c22a4a34ba8a88cbe7bb | 0 | MarkehMe/FactionsPlus | package markehme.factionsplus.Cmds;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import markehme.factionsplus.EssentialsIntegration;
import markehme.factionsplus.Utilities;
import markehme.factionsplus.Cmds.req.ReqJailsEnabled;
import markehme.factionsplus.MCore.FactionData;
import markehme.factionspl... | src/markehme/factionsplus/Cmds/CmdUnJail.java | package markehme.factionsplus.Cmds;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import markehme.factionsplus.EssentialsIntegration;
import markehme.factionsplus.FactionsPlusJail;
import markehme.factionsplus.Cmds.req.ReqJailsEnabled;
import m... | Fixing this up
| src/markehme/factionsplus/Cmds/CmdUnJail.java | Fixing this up | <ide><path>rc/markehme/factionsplus/Cmds/CmdUnJail.java
<ide> package markehme.factionsplus.Cmds;
<ide>
<del>import org.bukkit.Bukkit;
<ide> import org.bukkit.Location;
<del>import org.bukkit.OfflinePlayer;
<ide> import org.bukkit.entity.Player;
<ide>
<ide> import markehme.factionsplus.EssentialsIntegration;
<del>imp... | |
Java | apache-2.0 | 789e95ac2b12ea77d868a95842b322b3c2209e02 | 0 | wjacl/ldcs,wjacl/ldcs | package com.wja.ldcs.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wja.base.system.entity.Org;
import com.wja.base.system.e... | ldcs/src/com/wja/ldcs/service/PrivilegeControlService.java | package com.wja.ldcs.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wja.base.system.entity.Org;
import com.wja.base.system.e... | 修改直播数据的权限控制 | ldcs/src/com/wja/ldcs/service/PrivilegeControlService.java | 修改直播数据的权限控制 | <ide><path>dcs/src/com/wja/ldcs/service/PrivilegeControlService.java
<ide> for (User u : us) {
<ide> ids.add(u.getId());
<ide> }
<del> params.put("brokerId_in_String", ids);
<add> params.put("brokerId_in_string", ids);
<ide> }
<ide>
<ide> /** | |
JavaScript | mit | 4d0247744ba09ac4e140c04210e78578f2aaf8f8 | 0 | iuriikyian/lang-flashcards,iuriikyian/lang-flashcards,iuriikyian/lang-flashcards,iuriikyian/lang-flashcards,iuriikyian/lang-flashcards | define(['underscore', 'zepto', 'backbone'], function(_, $, Backbone){
var CardView = Backbone.View.extend({
template : _.template($('#cardView').html()),
events : {
'click .content' : '_onContentClick',
'click .header .back-button' : '_onBack',
'click .header .menu-button' : '_onShowMenu',
'cli... | www/js/app/CardView.js | define(['underscore', 'zepto', 'backbone'], function(_, $, Backbone){
var CardView = Backbone.View.extend({
template : _.template($('#cardView').html()),
events : {
'click .content' : '_onContentClick',
'click .header .back-button' : '_onBack',
'click .header .menu-button' : '_onShowMenu',
'cli... | fixed click location calculation in FF
| www/js/app/CardView.js | fixed click location calculation in FF | <ide><path>ww/js/app/CardView.js
<ide>
<ide> _onContentClick : function(evt){
<ide> var width = $(window).width();
<del> if(evt.offsetX > width * 0.9){
<add> if(evt.clientX > width * 0.9){
<ide> return this.trigger('card:show-next');
<ide> }
<del> if(evt.offsetX < width * 0.1){
<add> if(evt.clien... | |
Java | mit | f090cc18237a4260f7f2ca73ab0bd864c20d5949 | 0 | Shalantor/Android-Basics-Nanodegree-Udacity | package com.example.georgekaraolanis.project10_inventoryapp.data;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
i... | Project10-InventoryApp/app/src/main/java/com/example/georgekaraolanis/project10_inventoryapp/data/InventoryItemProvider.java | package com.example.georgekaraolanis.project10_inventoryapp.data;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
i... | Project10: Implement delete method
| Project10-InventoryApp/app/src/main/java/com/example/georgekaraolanis/project10_inventoryapp/data/InventoryItemProvider.java | Project10: Implement delete method | <ide><path>roject10-InventoryApp/app/src/main/java/com/example/georgekaraolanis/project10_inventoryapp/data/InventoryItemProvider.java
<ide>
<ide> @Override
<ide> public int delete(Uri uri,String selection,String[] selectionArgs) {
<del> return 0;
<add>
<add> /*Get writeable database*/
<add> ... | |
JavaScript | bsd-3-clause | a95e3ba32716ac35d76bab18dd2fd9f863c17b9e | 0 | oysnet/czagenda-api,oysnet/czagenda-api,oysnet/czagenda-api | var Base = require('./base.js').Base;
var util = require("util");
var settings = require('../settings.js')
var utils = require('../libs/utils.js');
var errors = require('./errors.js');
var redis = require('../libs/redis-client');
var log = require('czagenda-log').from(__filename);
var crypto = require('crypto');
funct... | models/user.js | var Base = require('./base.js').Base;
var util = require("util");
var settings = require('../settings.js')
var utils = require('../libs/utils.js');
var errors = require('./errors.js');
var redis = require('../libs/redis-client');
var log = require('czagenda-log').from(__filename);
var crypto = require('crypto');
funct... | user hidden password
| models/user.js | user hidden password | <ide><path>odels/user.js
<ide> Base.call(this, 'user');
<ide>
<ide> this.initialData = {
<del> login : null
<add> login : null,
<add> password : null
<ide> }
<ide>
<ide> }
<ide>
<ide> User.staffWriteAttributes = User.publicWriteAttributes.concat([ 'isStaff', 'isSuperuser', 'login']);
<ide>
<add>User.hiddenP... | |
Java | mit | 173f8be4f0749e6f46c36c20c1a1f44f889aab2d | 0 | jakobehmsen/duro | package duro.reflang;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.List;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
import duro.reflang.a... | eclipse/src/duro/reflang/BodyVisitor.java | package duro.reflang;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.List;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
import duro.reflang.a... | Removed support for single arg no parenthesis message in compilation
logic.
Signed-off-by: Jakob Brandsborg Ehmsen <387ed33cc9ebf98b733caa2520baacd616b28aa5@gmail.com> | eclipse/src/duro/reflang/BodyVisitor.java | Removed support for single arg no parenthesis message in compilation logic. | <ide><path>clipse/src/duro/reflang/BodyVisitor.java
<ide> import duro.reflang.antlr4_2.DuroParser.SelectorContext;
<ide> import duro.reflang.antlr4_2.DuroParser.SelfMultiArgMessageNoParContext;
<ide> import duro.reflang.antlr4_2.DuroParser.SelfMultiArgMessageWithParContext;
<del>import duro.reflang.antlr4_2.DuroParser.... | |
Java | mit | bcb64dce19e928897c3bd5f73116a89402d19590 | 0 | aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.util.Optional;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
import javax.swing.ta... | SliderInTableCell/src/java/example/MainPanel.java | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.util.Optional;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
import javax.swing.ta... | refactor: fix typo Rednerer should be Renderer
| SliderInTableCell/src/java/example/MainPanel.java | refactor: fix typo Rednerer should be Renderer | <ide><path>liderInTableCell/src/java/example/MainPanel.java
<ide> putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
<ide> setAutoCreateRowSorter(true);
<ide> setRowHeight(26);
<del> getColumnModel().getColumn(1).setCellRenderer(new SliderRednerer());
<add> getColumnModel... | |
Java | mit | e5f4b7720da11ac9956464537fc422ddf2e6330f | 0 | DerTyan/Landlord,jcdesimp/Landlord | package com.jcdesimp.landlord;
import com.jcdesimp.landlord.landManagement.LandManagerView;
import com.jcdesimp.landlord.persistantData.Friend;
import com.jcdesimp.landlord.persistantData.OwnedLand;
import org.bukkit.*;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.com... | src/com/jcdesimp/landlord/LandlordCommandExecutor.java | package com.jcdesimp.landlord;
import com.jcdesimp.landlord.landManagement.LandManagerView;
import com.jcdesimp.landlord.persistantData.Friend;
import com.jcdesimp.landlord.persistantData.OwnedLand;
import org.bukkit.*;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.com... | Fixed minor typo in listplayer command
| src/com/jcdesimp/landlord/LandlordCommandExecutor.java | Fixed minor typo in listplayer command | <ide><path>rc/com/jcdesimp/landlord/LandlordCommandExecutor.java
<ide> for(int i = (numPerPage*pageNumber-numPerPage); i<(numPerPage*pageNumber); i++){
<ide> pMsg+=landList.get(i);
<ide> }
<del> pMsg+=ChatColor.DARK_GREEN+"--- do"+ChatColor.YELLOW+" /"+... | |
Java | apache-2.0 | 99a591c441e1c77691c4ca5d004b034334a19f1b | 0 | arx-deidentifier/arx,arx-deidentifier/arx,RaffaelBild/arx,RaffaelBild/arx | /*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2017 Fabian Prasser, Florian Kohlmayer and contributors
*
* 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.apach... | src/main/org/deidentifier/arx/algorithm/LIGHTNINGAlgorithm.java | /*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2017 Fabian Prasser, Florian Kohlmayer and contributors
*
* 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.apach... | Fix bug in lightning | src/main/org/deidentifier/arx/algorithm/LIGHTNINGAlgorithm.java | Fix bug in lightning | <ide><path>rc/main/org/deidentifier/arx/algorithm/LIGHTNINGAlgorithm.java
<ide> }
<ide> Transformation next = expand(queue, transformation);
<ide> if (next != null) {
<del> queue.remove(next);
<add> queue.remove(next.getIdentifier());
<ide> dfs(queue, next);
<id... | |
Java | mit | 7f8d32fcd82163e689f193271c7677914712a8d7 | 0 | gilleain/signatures | package signature;
import org.junit.Test;
import signature.chemistry.Molecule;
import signature.chemistry.MoleculeSignature;
public class LargeMoleculeTest {
public void addRing(int atomToAttachTo, int ringSize, Molecule molecule) {
int numberOfAtoms = molecule.getAtomCount();
int previous =... | src/test/java/signature/LargeMoleculeTest.java | package signature;
import org.junit.Test;
import signature.chemistry.Molecule;
import signature.chemistry.MoleculeSignature;
public class LargeMoleculeTest {
public void addPhenyl(int atomToAttachTo, Molecule molecule) {
int numberOfAtoms = molecule.getAtomCount();
int previous = atomToAttac... | Smaller test case for multiple rings
| src/test/java/signature/LargeMoleculeTest.java | Smaller test case for multiple rings | <ide><path>rc/test/java/signature/LargeMoleculeTest.java
<ide>
<ide> public class LargeMoleculeTest {
<ide>
<del> public void addPhenyl(int atomToAttachTo, Molecule molecule) {
<add> public void addRing(int atomToAttachTo, int ringSize, Molecule molecule) {
<ide> int numberOfAtoms = molecule.getAtom... | |
Java | apache-2.0 | edab7d35b246960907bc6520c27836a699156cb8 | 0 | google/data-transfer-project,google/data-transfer-project,google/data-transfer-project,google/data-transfer-project,google/data-transfer-project | /*
* Copyright 2018 The Data Transfer Project Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | portability-transfer/src/main/java/org/datatransferproject/transfer/PortabilityInMemoryDataCopier.java | /*
* Copyright 2018 The Data Transfer Project Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Add more logging about the copy iteration that we are on | portability-transfer/src/main/java/org/datatransferproject/transfer/PortabilityInMemoryDataCopier.java | Add more logging about the copy iteration that we are on | <ide><path>ortability-transfer/src/main/java/org/datatransferproject/transfer/PortabilityInMemoryDataCopier.java
<ide> */
<ide> package org.datatransferproject.transfer;
<ide>
<del>import static java.lang.String.format;
<del>
<ide> import com.google.common.base.Stopwatch;
<ide> import com.google.inject.Provider;
<del... | |
Java | bsd-3-clause | c0c75723fc14344cfdffe2eafd08ccb51e34d84b | 0 | bobbylight/RSyntaxTextArea,bobbylight/RSyntaxTextArea | /*
* This library is distributed under a modified BSD license. See the included
* LICENSE file for details.
*/
package org.fife.ui.rtextarea;
import org.fife.ui.SwingRunnerExtension;
import org.fife.ui.rsyntaxtextarea.AbstractRSyntaxTextAreaTest;
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
import org.junit... | RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/ClipboardHistoryPopupTest.java | /*
* This library is distributed under a modified BSD license. See the included
* LICENSE file for details.
*/
package org.fife.ui.rtextarea;
import org.fife.ui.SwingRunnerExtension;
import org.fife.ui.rsyntaxtextarea.AbstractRSyntaxTextAreaTest;
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
import org.junit... | Running with failing tests to remember what the error is
| RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/ClipboardHistoryPopupTest.java | Running with failing tests to remember what the error is | <ide><path>SyntaxTextArea/src/test/java/org/fife/ui/rtextarea/ClipboardHistoryPopupTest.java
<ide>
<ide>
<ide> @Test
<del> @Disabled("These tests run locally, but not in CI environment for some reason")
<ide> void testGetPreferredSize() {
<ide> Assertions.assertNotNull(new ClipboardHistoryPopup(frame, textArea).g... | |
Java | apache-2.0 | 0e439b83e76ee830125f7a0a32f8b601467b7c93 | 0 | s-webber/oakgp | package org.oakgp.node;
import java.util.function.Function;
import org.oakgp.Assignments;
import org.oakgp.Type;
/**
* Represents a constant value.
* <p>
* Return the same value each time is it evaluated.
*/
public final class ConstantNode implements Node {
private final Object value;
private final Type ty... | src/main/java/org/oakgp/node/ConstantNode.java | package org.oakgp.node;
import java.util.function.Function;
import org.oakgp.Assignments;
import org.oakgp.Type;
/**
* Represents a constant value.
* <p>
* Return the same value each time is it evaluated.
*/
public final class ConstantNode implements Node {
private final Object value;
private final Type ty... | ConstantNode.equals(Object)
| src/main/java/org/oakgp/node/ConstantNode.java | ConstantNode.equals(Object) | <ide><path>rc/main/java/org/oakgp/node/ConstantNode.java
<ide>
<ide> @Override
<ide> public boolean equals(Object o) {
<del> if (o instanceof ConstantNode) {
<add> if (this == o) {
<add> return true;
<add> } else if (o instanceof ConstantNode) {
<ide> ConstantNode c = (ConstantNod... | |
Java | apache-2.0 | 48f023fe14d0e09b1200735c600efc5d3da73a2d | 0 | Akylas/StickyListHeaders | package se.emilsjolander.stickylistheaders;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
/**
*
* the view that wrapps a divider header and ... | library/src/se/emilsjolander/stickylistheaders/WrapperView.java | package se.emilsjolander.stickylistheaders;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
/**
*
* the view that wrapps a divider header and ... | better size handling
| library/src/se/emilsjolander/stickylistheaders/WrapperView.java | better size handling | <ide><path>ibrary/src/se/emilsjolander/stickylistheaders/WrapperView.java
<ide>
<ide> //if height was specifically set in heightMeasureSpec, then use it.
<ide> //very usefull for insertion or removal animation.
<del> setMeasuredDimension(measuredWidth,(heightMeasureSpec <= 0)?measuredHeight:MeasureSpec.getSize(... | |
Java | epl-1.0 | 8fd3d92161434f5bec640517e31c67b605fa1021 | 0 | CityOfLearning/ForgeEssentials,planetguy32/ForgeEssentials,liachmodded/ForgeEssentials,ForgeEssentials/ForgeEssentialsMain,aschmois/ForgeEssentialsMain,Techjar/ForgeEssentials | package com.forgeessentials.permission;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
import com.forgeessentials.api.permissions.IPermRegisterEvent;
import com.forgeessentials.api.permissions.RegGroup;
import com.forgeessentials.core.moduleLauncher.CallableMap.FECallable;
import com.forgee... | src/main/java/com/forgeessentials/permission/PermRegLoader.java | package com.forgeessentials.permission;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
import com.forgeessentials.api.permissions.IPermRegisterEvent;
import com.forgeessentials.api.permissions.RegGroup;
import com.forgeessentials.core.moduleLauncher.CallableMap.FECallable;
import com.forgee... | Register permissions in all-lowercase
Easier to type this way. | src/main/java/com/forgeessentials/permission/PermRegLoader.java | Register permissions in all-lowercase Easier to type this way. | <ide><path>rc/main/java/com/forgeessentials/permission/PermRegLoader.java
<ide> @Override
<ide> public void registerPermission(String permission)
<ide> {
<del> registerred.add(permission);
<add> registerred.add(permission.toLowerCase());
<ide> }
<ide>
<ide> @Override
<ide> public void registerPermissio... | |
JavaScript | mit | 1e0252c94009a8caca2ee5f2ee28fcc471c2b162 | 0 | hoxton-one/deepstream.io-performance,hoxton-one/deepstream.io-performance | var cluster = require( 'cluster' );
var numCPUs = require( 'os' ).cpus().length;
var conf = require( '../conf' ).server;
var spawn = require( 'child_process' ).spawn;
var deepstreamConfig = conf.deepstreams;
var completedDeepStreams = 0;
var maxDeepstreams = deepstreamConfig.length;
var deepstream;
var performanceUsa... | server/cluster.js | var cluster = require( 'cluster' );
var numCPUs = require( 'os' ).cpus().length;
var conf = require( '../conf' ).server;
var spawn = require( 'child_process' ).spawn;
var deepstreamConfig = conf.deepstreams;
var completedDeepStreams = 0;
var maxDeepstreams = deepstreamConfig.length;
var deepstream;
var performanceUsa... | Using top instead of systat
| server/cluster.js | Using top instead of systat | <ide><path>erver/cluster.js
<ide> console.log( 'deepstream spawned with PID:' + pid );
<ide> performanceUsage = spawn( 'bash' );
<ide> performanceUsage.stdin.write( 'rm -rf stats && mkdir stats\n' );
<del> //Using pidstat
<del> performanceUsage.stdin.write( 'pidstat -p ' + pid + ' -r 1 > stats/' + pid + '-memory.txt... | |
Java | apache-2.0 | 1521fd980b1b0db679a2f4494405bc1a0b1a660e | 0 | euclio/learnalanguage | import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.BorderFactory;
import javax.swing.... | src/LearningGUI.java | import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
... | Added ability to run compiled classes from the GUI
| src/LearningGUI.java | Added ability to run compiled classes from the GUI | <ide><path>rc/LearningGUI.java
<ide> import java.awt.BorderLayout;
<del>import java.awt.Container;
<add>
<ide> import java.awt.Dimension;
<ide> import java.awt.FlowLayout;
<ide> import java.awt.Font;
<del>import java.awt.GridBagLayout;
<add>
<ide> import java.awt.event.ActionEvent;
<ide> import java.awt.event.ActionLis... | |
JavaScript | mit | 33bfa90c51129805091f7837a4c50f6a8e396616 | 0 | mcwehner/nabtext | /* Nabtext - an implementation of the GNU Gettext API
*/
//:m4_ifdef(`MO_PARSER', `m4_include(`binaryfile.js')')
// TODO - Handle the selective inclusion of binaryfile.js better (ideally by
// somehow making it a requirement specified by the .mo parser)
var XHR = (function ()
{
function createRequest ()
{
... | src/nabtext.core.js | /* Nabtext - an implementation of the GNU Gettext API
*/
//:m4_ifdef(`MO_PARSER', `m4_include(`binaryfile.js')')
// TODO - Handle the selective inclusion of binaryfile.js better (ideally by
// somehow making it a requirement specified by the .mo parser)
var XHR = (function ()
{
function createRequest ()
{
... | Fixed default pluralization function.
| src/nabtext.core.js | Fixed default pluralization function. | <ide><path>rc/nabtext.core.js
<ide> // library (as they're supposed to be, according to BCP 47).
<ide> this.strings = { "en-US" : {} };
<ide> this.meta = { "en-US" : {} };
<del> this.pluralFunctions = { "en-US" : function (n) { return (n != 1); } };
<add> this.pluralFunctions = { "e... | |
Java | apache-2.0 | a4b0ab72a8d9f49cc5780c1f36faafda7c372e7d | 0 | mbdevpl/open-fortran-parser-xml,mbdevpl/open-fortran-parser-xml,mbdevpl/open-fortran-parser-xml | package fortran.ofp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.antlr.runtime.Token;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import fortran.ofp.parser.java.IActionEnums;
import fortran.ofp.parser.java.IFortranParser;
... | src/fortran/ofp/XMLPrinter.java | package fortran.ofp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.antlr.runtime.Token;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import fortran.ofp.parser.java.IActionEnums;
import fortran.ofp.parser.java.IFortranParser;
... | add type to format declaration
| src/fortran/ofp/XMLPrinter.java | add type to format declaration | <ide><path>rc/fortran/ofp/XMLPrinter.java
<ide> if (verbosity >= 60)
<ide> super.format_stmt(label, formatKeyword, eos);
<ide> contextClose();
<add> if (context.getTagName().equals("declaration"))
<add> setAttribute("type", "format");
<ide> }
<ide>
<ide> public void format_specification(boolean hasFormatIt... | |
Java | apache-2.0 | bfa372c2968a24f2f22165d1066978a227738da3 | 0 | tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* 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... | src/main/java/com/tang/intellij/lua/psi/LuaPsiTreeUtil.java | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* 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... | optimize walkUpLocalNameDef()
| src/main/java/com/tang/intellij/lua/psi/LuaPsiTreeUtil.java | optimize walkUpLocalNameDef() | <ide><path>rc/main/java/com/tang/intellij/lua/psi/LuaPsiTreeUtil.java
<ide> if (element == null || processor == null)
<ide> return;
<ide> boolean continueSearch = true;
<del> boolean searchParList = false;
<ide>
<ide> PsiElement curr = element;
<ide> do {
<ide> ... | |
JavaScript | bsd-3-clause | 79a7fa2bd1a18ba138fa4c7cf22ea9abb101c149 | 0 | ipython/ipython,ipython/ipython | //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//------------------------------------------... | IPython/html/static/notebook/js/codecell.js | //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//------------------------------------------... | Added automatic close of Brackets.
| IPython/html/static/notebook/js/codecell.js | Added automatic close of Brackets. | <ide><path>Python/html/static/notebook/js/codecell.js
<ide> },
<ide> mode: 'ipython',
<ide> theme: 'ipython',
<del> matchBrackets: true
<add> matchBrackets: true,
<add> autoCloseBrackets: true
<ide> }
<ide> };
<ide> | |
JavaScript | mit | 0223d493b9f562323bb0749fcbb591b4d098d205 | 0 | vikramthyagarajan/node-excel-stream | 'use strict';
const _ = require('lodash');
const Excel = require('exceljs');
const Stream = require('stream');
class ExcelWriter {
/**
* options currently contains all are required. Arrays can be empty-
* sheets: [{
* name: String, //Name shwos up
* key: String, // Identifier to push data to this sheet
* ... | src/excel-writer.js | 'use strict';
const _ = require('lodash');
const Excel = require('exceljs');
const Stream = require('stream');
class ExcelWriter {
/**
* options currently contains all are required. Arrays can be empty-
* sheets: [{
* name: String, //Name shwos up
* key: String, // Identifier to push data to this sheet
* ... | Update excel-writer.js | src/excel-writer.js | Update excel-writer.js | <ide><path>rc/excel-writer.js
<ide> if (header.default !== undefined && header.default !== null) {
<ide> defaultValue = header.default;
<ide> }
<del> if ( dataObj.hasOwnProperty(header.key])) {
<add> if ( dataObj.hasOwnProperty(header.key)) {
<ide> rowData[index] = dataObj[header.key];
<ide> ... | |
Java | apache-2.0 | 51759ddd4d2c895b46e4f475065959a014de0f65 | 0 | hortonworks/cloudbreak,hortonworks/cloudbreak,hortonworks/cloudbreak,hortonworks/cloudbreak,hortonworks/cloudbreak,hortonworks/cloudbreak | package com.sequenceiq.datalake.service;
import static java.util.stream.Collectors.toList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.dat... | datalake/src/main/java/com/sequenceiq/datalake/service/SdxEventsService.java | package com.sequenceiq.datalake.service;
import static java.util.stream.Collectors.toList;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.spri... | CB-16451: Fix issue when getting SDX events for environment with deleted datalakes.
| datalake/src/main/java/com/sequenceiq/datalake/service/SdxEventsService.java | CB-16451: Fix issue when getting SDX events for environment with deleted datalakes. | <ide><path>atalake/src/main/java/com/sequenceiq/datalake/service/SdxEventsService.java
<ide> import static java.util.stream.Collectors.toList;
<ide>
<ide> import java.util.ArrayList;
<add>import java.util.Collections;
<ide> import java.util.Comparator;
<ide> import java.util.List;
<ide>
<ide> }
<ide>
<ide> p... | |
Java | unlicense | 43e758c382a5df6fa3d518627b78c7b315a10574 | 0 | skeeto/NativeGuide,skeeto/NativeGuide | package com.nullprogram.guide;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Field;
import java.util.logging.Logger;
/**
* Thi... | src/com/nullprogram/guide/NativeGuide.java | package com.nullprogram.guide;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Field;
import java.util.logging.Logger;
/**
* Thi... | Add a random suffix to avoid clobbering.
| src/com/nullprogram/guide/NativeGuide.java | Add a random suffix to avoid clobbering. | <ide><path>rc/com/nullprogram/guide/NativeGuide.java
<ide> /* The work has already been done. */
<ide> return;
<ide> }
<add> int suffix = (int) (Math.random() * Integer.MAX_VALUE);
<ide> File dir = new File(System.getProperty("java.io.tmpdir"),
<del> ... | |
Java | apache-2.0 | 0c0cafa413b77d5f217b3814d51932a23d01803c | 0 | bd-dev-mobileum/presto,bd-dev-mobileum/presto,bd-dev-mobileum/presto,bd-dev-mobileum/presto,bd-dev-mobileum/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-main/src/main/java/com/facebook/presto/execution/NodeScheduler.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... | Use Map.getOrDefault
| presto-main/src/main/java/com/facebook/presto/execution/NodeScheduler.java | Use Map.getOrDefault | <ide><path>resto-main/src/main/java/com/facebook/presto/execution/NodeScheduler.java
<ide>
<ide> for (RemoteTask task : existingTasks) {
<ide> String nodeId = task.getNodeId();
<del> if (!queuedSplitCountByNode.containsKey(nodeId)) {
<del> queuedSplitCountB... | |
JavaScript | apache-2.0 | 25266b135ea7e2e806e7c849a0e814a2a174ade7 | 0 | atodorov-storpool/one,OpenNebula/one,baby-gnu/one,hsanjuan/one,ohamada/one,baby-gnu/one,juanmont/one,unistra/one,ohamada/one,alvarosimon/one,ohamada/one,abelCoronado93/one,alvarosimon/one,abelCoronado93/one,baby-gnu/one,ohamada/one,fasrc/one,juanmont/one,goberle/one,fasrc/one,goberle/one,OpenNebula/one,hsanjuan/one,jua... | define(function(require) {
/*
DEPENDENCIES
*/
require('foundation.tab');
var BaseFormPanel = require('utils/form-panels/form-panel');
var Sunstone = require('sunstone');
var Locale = require('utils/locale');
var Tips = require('utils/tips');
var TemplateUtils = require('utils/template-utils');
v... | src/sunstone/public/app/tabs/secgroups-tab/form-panels/create.js | define(function(require) {
/*
DEPENDENCIES
*/
require('foundation.tab');
var BaseFormPanel = require('utils/form-panels/form-panel');
var Sunstone = require('sunstone');
var Locale = require('utils/locale');
var Tips = require('utils/tips');
var TemplateUtils = require('utils/template-utils');
v... | bug #3945: Fix abide event for add rule form
| src/sunstone/public/app/tabs/secgroups-tab/form-panels/create.js | bug #3945: Fix abide event for add rule form | <ide><path>rc/sunstone/public/app/tabs/secgroups-tab/form-panels/create.js
<ide>
<ide> function _setup(context) {
<ide> var that = this;
<add> context.foundation('abide', 'reflow');
<ide>
<ide> context.off("change", '.security_group_rule_protocol');
<ide> context.on("change", '.security_group_rule_pr... | |
Java | apache-2.0 | bf7d79fdaf8a72d8039da66d1c1cf7e3b5acd2a8 | 0 | signed/intellij-community,xfournet/intellij-community,youdonghai/intellij-community,semonte/intellij-community,youdonghai/intellij-community,ibinti/intellij-community,semonte/intellij-community,apixandru/intellij-community,FHannes/intellij-community,youdonghai/intellij-community,asedunov/intellij-community,vvv1559/inte... | /*
* 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/lang-impl/src/com/intellij/ide/fileTemplates/actions/CreateFromTemplateActionBase.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... | live templates inside file templates: ensure caret at the 0 position as state could be restored from the history and caret would be in the middle of inline template (IDEA-163994)
| platform/lang-impl/src/com/intellij/ide/fileTemplates/actions/CreateFromTemplateActionBase.java | live templates inside file templates: ensure caret at the 0 position as state could be restored from the history and caret would be in the middle of inline template (IDEA-163994) | <ide><path>latform/lang-impl/src/com/intellij/ide/fileTemplates/actions/CreateFromTemplateActionBase.java
<ide> /*
<del> * Copyright 2000-2009 JetBrains s.r.o.
<add> * Copyright 2000-2016 JetBrains s.r.o.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this fil... | |
JavaScript | apache-2.0 | f2d3cd02c332810a0213de5f44bd4ba7f884b27b | 0 | ssorj/blinky,ssorj/blinky,ssorj/blinky,ssorj/blinky | /*
*
* 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"); y... | files/gesso.js | /*
*
* 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"); y... | Update gesso
| files/gesso.js | Update gesso | <ide><path>iles/gesso.js
<ide> let weeks = Math.round(millis / 432000 / 1000);
<ide> let years = Math.round(millis / 31536000 / 1000);
<ide>
<del> if (years > 1) return `${years}${suffixes[0]}`;
<del> if (weeks > 1) return `${weeks}${suffixes[1]}`;
<del> if (days > 1) return... | |
Java | mit | error: pathspec 'src/main/test/org/jenkins/ci/plugins/jenkinslint/checker/JobDescriptionCheckerTestCase.java' did not match any file(s) known to git
| 2d284fcc8eaa40fdf2f3f46f32a577302c375197 | 1 | v1v/jenkinslint-plugin,jenkinsci/jenkinslint-plugin,jenkinsci/jenkinslint-plugin | package org.jenkins.ci.plugins.jenkinslint.checker;
import hudson.model.FreeStyleProject;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* JobDescriptionChecker Test Case.
*
* @autho... | src/main/test/org/jenkins/ci/plugins/jenkinslint/checker/JobDescriptionCheckerTestCase.java | Added JobDescription Checker Test Case
| src/main/test/org/jenkins/ci/plugins/jenkinslint/checker/JobDescriptionCheckerTestCase.java | Added JobDescription Checker Test Case | <ide><path>rc/main/test/org/jenkins/ci/plugins/jenkinslint/checker/JobDescriptionCheckerTestCase.java
<add>package org.jenkins.ci.plugins.jenkinslint.checker;
<add>
<add>import hudson.model.FreeStyleProject;
<add>import org.junit.Rule;
<add>import org.junit.Test;
<add>import org.jvnet.hudson.test.JenkinsRule;
<add>
<ad... | |
Java | apache-2.0 | 49c7e9f0c1db4e7351b23f25937acd9c59939695 | 0 | Onegini/android-example-app | /*
* Copyright (c) 2016-2017 Onegini B.V.
*
* 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 ... | app/src/main/java/com/onegini/mobile/exampleapp/view/activity/FingerprintActivity.java | /*
* Copyright (c) 2016-2017 Onegini B.V.
*
* 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 ... | Fix accepting the mobile authentication with fingerprint
| app/src/main/java/com/onegini/mobile/exampleapp/view/activity/FingerprintActivity.java | Fix accepting the mobile authentication with fingerprint | <ide><path>pp/src/main/java/com/onegini/mobile/exampleapp/view/activity/FingerprintActivity.java
<ide> protected void initialize() {
<ide> parseIntent();
<ide> updateTexts();
<add> setFingerprintAuthenticationPermissionVisibility(false);
<ide> setupUi();
<del> setFingerprintAuthenticationPermissionV... | |
Java | bsd-3-clause | c4da6ad2c9c4095a5c66c3e872e1bd8eabb2233e | 0 | interdroid/ibis-ipl,interdroid/ibis-ipl,interdroid/ibis-ipl | // $Id$
/**
* The context of the solve method. The fields in this class are cloned
* for every recursion of the solve() method.
*/
public class SATContext implements java.io.Serializable {
/** The variables to assign to, in order of decreasing use count. */
int varlist[];
/** The number of open terms o... | apps/satin/sat/SATContext.java | // $Id$
/**
* The context of the solve method. The fields in this class are cloned
* for every recursion of the solve() method.
*/
public class SATContext implements java.io.Serializable {
/** The variables to assign to, in order of decreasing use count. */
int varlist[];
/** The number of open terms o... |
CvR:
+ Added unit propagation.
git-svn-id: f22e84ca493ccad7df8d2727bca69d1c9fc2e5c5@1076 aaf88347-d911-0410-b711-e54d386773bb
| apps/satin/sat/SATContext.java | <ide><path>pps/satin/sat/SATContext.java
<ide> );
<ide> }
<ide>
<add> /** Propagates any unit clauses in the problem. */
<add> private int propagateUnitClauses( SATProblem p )
<add> {
<add> for( int i=0; i<terms.length; i++ ){
<add> if( !satisfied[i] && terms[i] == 1 ){
<add> Clause c = p.cl... | ||
Java | apache-2.0 | 870a510d89221d146cbb8f154063f15ebc1f1b28 | 0 | zplesac/android_connectionbuddy,zplesac/android_connectify | package com.zplesac.connectifty;
import com.zplesac.connectifty.interfaces.ConnectivityChangeListener;
import com.zplesac.connectifty.models.ConnectifyEvent;
import com.zplesac.connectifty.models.ConnectifyState;
import com.zplesac.connectifty.models.ConnectifyType;
import com.zplesac.connectifty.receivers.NetworkChan... | connectify/src/main/java/com/zplesac/connectifty/Connectify.java | package com.zplesac.connectifty;
import com.zplesac.connectifty.interfaces.ConnectivityChangeListener;
import com.zplesac.connectifty.models.ConnectifyEvent;
import com.zplesac.connectifty.models.ConnectifyState;
import com.zplesac.connectifty.models.ConnectifyType;
import com.zplesac.connectifty.receivers.NetworkChan... | checkstyle fixes
| connectify/src/main/java/com/zplesac/connectifty/Connectify.java | checkstyle fixes | <ide><path>onnectify/src/main/java/com/zplesac/connectifty/Connectify.java
<ide> */
<ide> public class Connectify {
<ide>
<del> private static HashMap<String, NetworkChangeReceiver> receiversHashMap = new HashMap<String, NetworkChangeReceiver>();
<del>
<ide> private static final String ACTION_CONNECTIVITY_CHAN... | |
JavaScript | apache-2.0 | 186728c34c18623b4f3f1659e7c377d42649a197 | 0 | xcesek/KobylyBot,xcesek/KobylyBot |
const sendApi = require('./send-api.js');
var userData = [];
exports.processTextMessage = function (messageText, senderID) {
if (messageText.indexOf('omsa') > -1) {
sendApi.sendQuickReply(senderID);
} else {
sendApi.sendTextMessage(senderID, "Nerozumiem, čo tým myslíte. " );
}
};
| bot/bot.js |
const sendApi = require('./send-api.js');
var userData = [];
exports.processTextMessage = function (messageText, senderID) {
if (messageText.contains('omsa')) {
sendApi.sendQuickReply(senderID);
} else {
sendApi.sendTextMessage(senderID, "Nerozumiem, čo tým myslíte. " );
}
};
| Commit
| bot/bot.js | Commit | <ide><path>ot/bot.js
<ide>
<ide> exports.processTextMessage = function (messageText, senderID) {
<ide>
<del> if (messageText.contains('omsa')) {
<add> if (messageText.indexOf('omsa') > -1) {
<ide> sendApi.sendQuickReply(senderID);
<ide> } else {
<ide> sendApi.sendTextMessage(senderID, "Neroz... | |
Java | apache-2.0 | fb37e38528bca21625e93a0608e2a1b9ee79f3ec | 0 | howardliu-cn/my-gear | package cn.howardliu.gear.spring.boot.autoconfigure;
import com.alibaba.druid.pool.DruidDataSource;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframewo... | gear-spring-boot/spring-boot-autoconfigure-mybatis-druid/src/main/java/cn/howardliu/gear/spring/boot/autoconfigure/MyBatisDruidAutoConfiguration.java | package cn.howardliu.gear.spring.boot.autoconfigure;
import com.alibaba.druid.pool.DruidDataSource;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframewo... | SELECT 'x' FROM dual
| gear-spring-boot/spring-boot-autoconfigure-mybatis-druid/src/main/java/cn/howardliu/gear/spring/boot/autoconfigure/MyBatisDruidAutoConfiguration.java | SELECT 'x' FROM dual | <ide><path>ear-spring-boot/spring-boot-autoconfigure-mybatis-druid/src/main/java/cn/howardliu/gear/spring/boot/autoconfigure/MyBatisDruidAutoConfiguration.java
<ide> dataSource.setMaxWait(60000);
<ide> dataSource.setTimeBetweenEvictionRunsMillis(6000);
<ide> dataSource.setMinEvictableIdleTimeMil... | |
JavaScript | agpl-3.0 | a124422f768767d6ca12bc9d283c728c5734a1ff | 0 | Agora-Project/agora-meteor,Agora-Project/agora-meteor | Meteor.publish(null, function() {
return Meteor.roles.find({});
});
Meteor.publish("myself", function() {
if (this.userId) {
return Meteor.users.find({
_id: this.userId
}, {
fields: {
'isBanned': 1,
'createdAt': 1
}
});... | server/publish.js | Meteor.publish(null, function() {
return Meteor.roles.find({});
});
Meteor.publish("myself", function() {
if (this.userId) {
return Meteor.users.find({
_id: this.userId
}, {
fields: {
'isBanned': 1,
'createdAt': 1
}
});... | Restricted user data that non-moderators have access to.
| server/publish.js | Restricted user data that non-moderators have access to. | <ide><path>erver/publish.js
<ide> });
<ide>
<ide> Meteor.publish("users", function() {
<del> return Meteor.users.find({});
<add> if (Roles.userIsInRole(this.userId, ['moderator'])) {
<add> return Meteor.users.find({});
<add> } else {
<add> return Meteor.users.find({}, {
<add> fields: ... | |
Java | apache-2.0 | ace15624bfdb0e6a255128d633d9ccae472ebfec | 0 | gpolitis/jitsi,ibauersachs/jitsi,pplatek/jitsi,martin7890/jitsi,459below/jitsi,tuijldert/jitsi,HelioGuilherme66/jitsi,459below/jitsi,marclaporte/jitsi,jitsi/jitsi,459below/jitsi,level7systems/jitsi,HelioGuilherme66/jitsi,bhatvv/jitsi,ringdna/jitsi,HelioGuilherme66/jitsi,jibaro/jitsi,jitsi/jitsi,tuijldert/jitsi,mckaycla... | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.protocol.jabber;
import net.java.sip.communicator.service.protocol.*;
import java.util.*;
/**
* The Jabber implementation of a... | src/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.protocol.jabber;
import net.java.sip.communicator.service.protocol.*;
import java.util.*;
/**
* The Jabber implementation of a... | Moves generic ICE methods from Jabber to service.protocol so that they can be reused by SIP
| src/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java | Moves generic ICE methods from Jabber to service.protocol so that they can be reused by SIP | <ide><path>rc/net/java/sip/communicator/service/protocol/jabber/JabberAccountID.java
<ide> }
<ide>
<ide> /**
<add> * Returns the actual name of this protocol: {@link ProtocolNames#JABBER}.
<add> *
<add> * @return Jabber: the name of this protocol.
<add> */
<add> public String getSystemProtoc... | |
Java | apache-2.0 | 6c6ba66a3fb4f6af4fd536f2faa6d295ed013b36 | 0 | stepancheg/async-http-client,Aulust/async-http-client,jxauchengchao/async-http-client,junjiemars/async-http-client,ooon/async-http-client,elijah513/async-http-client,bomgar/async-http-client,thinker-fang/async-http-client,liuyb02/async-http-client,afelisatti/async-http-client,hgl888/async-http-client,fengshao0907/async... | /*
* Copyright (c) 2012 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses... | providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/GrizzlyAsyncHttpProvider.java | /*
* Copyright (c) 2012 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses... | Ensure ordered logging of requests.
| providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/GrizzlyAsyncHttpProvider.java | Ensure ordered logging of requests. | <ide><path>roviders/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/GrizzlyAsyncHttpProvider.java
<ide> handler = new ExpectHandler(handler);
<ide> }
<ide> context.setBodyHandler(handler);
<add> if (LOGGER.isDebugEnabled()) {
<add> LOGGER.deb... | |
Java | apache-2.0 | 7852c3c4e20088714bd1808d90c1fb907479bd60 | 0 | jerome-jacob/selenium,meksh/selenium,minhthuanit/selenium,asashour/selenium,juangj/selenium,joshuaduffy/selenium,jsakamoto/selenium,petruc/selenium,yukaReal/selenium,sankha93/selenium,alb-i986/selenium,MCGallaspy/selenium,TheBlackTuxCorp/selenium,SeleniumHQ/selenium,asashour/selenium,misttechnologies/selenium,clavery/s... | /*
Copyright 2010 WebDriver committers
Copyright 2010 Google 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 ... | android/src/java/org/openqa/selenium/android/app/WebDriverWebViewClient.java | /*
Copyright 2010 WebDriver committers
Copyright 2010 Google 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 ... | DouniaBerrada: Cleaning up Android WebView client code
r12254
| android/src/java/org/openqa/selenium/android/app/WebDriverWebViewClient.java | DouniaBerrada: Cleaning up Android WebView client code | <ide><path>ndroid/src/java/org/openqa/selenium/android/app/WebDriverWebViewClient.java
<ide> @Override
<ide> public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
<ide> DesiredCapabilities caps = MainActivity.getDesiredCapabilities();
<del> boolean shouldAcceptSslCerts = fal... | |
Java | apache-2.0 | bacea0539740981c5fee618a0f19597589449743 | 0 | WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules | /*
* Copyright (c) 2012-2014 LabKey Corporation
*
* 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 app... | WNPRC_EHR/src/org/labkey/wnprc_ehr/table/WNPRC_EHRCustomizer.java | /*
* Copyright (c) 2012-2014 LabKey Corporation
*
* 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 app... | customize the sireid column on pregnancies table to link to multiple animals if necessary
| WNPRC_EHR/src/org/labkey/wnprc_ehr/table/WNPRC_EHRCustomizer.java | customize the sireid column on pregnancies table to link to multiple animals if necessary | <ide><path>NPRC_EHR/src/org/labkey/wnprc_ehr/table/WNPRC_EHRCustomizer.java
<ide> else if (table.getName().equalsIgnoreCase("protocol") && table.getSchema().getName().equalsIgnoreCase("ehr"))
<ide> customizeProtocolTable((AbstractTableInfo)table);
<ide> else if (table.getName().e... | |
Java | apache-2.0 | b9fc639dfd7f3f32ae7fe4ddf9363fd9a51e0615 | 0 | ubikloadpack/jmeter,fj11/jmeter,d0k1/jmeter,hemikak/jmeter,liwangbest/jmeter,hizhangqi/jmeter-1,max3163/jmeter,ubikloadpack/jmeter,max3163/jmeter,vherilier/jmeter,etnetera/jmeter,kyroskoh/jmeter,liwangbest/jmeter,irfanah/jmeter,tuanhq/jmeter,d0k1/jmeter,liwangbest/jmeter,vherilier/jmeter,d0k1/jmeter,ra0077/jmeter,hizha... | /*
* Copyright 2001-2004 The Apache Software Foundation.
*
* 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 appli... | src/core/org/apache/jmeter/save/SaveService.java | /*
* Copyright 2001-2004 The Apache Software Foundation.
*
* 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 appli... | Only catch expected exception
git-svn-id: 7c053b8fbd1fb5868f764c6f9536fc6a9bbe7da9@325277 13f79535-47bb-0310-9956-ffa450edef68
| src/core/org/apache/jmeter/save/SaveService.java | Only catch expected exception | <ide><path>rc/core/org/apache/jmeter/save/SaveService.java
<ide> import org.apache.log.Logger;
<ide>
<ide> import com.thoughtworks.xstream.XStream;
<add>import com.thoughtworks.xstream.alias.CannotResolveClassException;
<ide> import com.thoughtworks.xstream.alias.ClassMapper;
<ide> import com.thoughtworks.xstream.conv... | |
Java | apache-2.0 | 66a205cd724e5352231532cc81fc2637b1e7fbb9 | 0 | retomerz/intellij-community,suncycheng/intellij-community,ibinti/intellij-community,supersven/intellij-community,Lekanich/intellij-community,FHannes/intellij-community,MichaelNedzelsky/intellij-community,semonte/intellij-community,ivan-fedorov/intellij-community,slisson/intellij-community,ahb0327/intellij-community,kdw... | package org.editorconfig.configmanagement;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.ex.EditorSettingsExternalizable;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.fileEditor.FileDocumentManag... | src/org/editorconfig/configmanagement/EditorSettingsManager.java | package org.editorconfig.configmanagement;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.ex.EditorSettingsExternalizable;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.fileEditor.FileDocumentManag... | Tidied up userData logic in EditorSettingsManager
| src/org/editorconfig/configmanagement/EditorSettingsManager.java | Tidied up userData logic in EditorSettingsManager | <ide><path>rc/org/editorconfig/configmanagement/EditorSettingsManager.java
<ide> import com.intellij.openapi.fileEditor.FileDocumentManager;
<ide> import com.intellij.openapi.fileEditor.FileDocumentManagerListener;
<ide> import com.intellij.openapi.fileEditor.impl.TrailingSpacesStripper;
<add>import com.intellij.openap... | |
JavaScript | mit | a65387a29a1e903a0f73c99e259eaa12958bae9d | 0 | unexpectedjs/unexpected-sinon,unexpectedjs/unexpected-sinon | /*global unexpected:true, sinon, Promise:true*/
/* exported Promise, sinon */
unexpected = require('unexpected');
unexpected.output.preferredWidth = 80;
unexpected.installPlugin(require('./lib/unexpected-sinon'));
require('./test/monkeyPatchSinonStackFrames');
Promise = require('rsvp');
sinon = require('sinon');
| bootstrap-unexpected-markdown.js | /*global unexpected:true, Promise:true*/
/* exported Promise */
unexpected = require('unexpected');
unexpected.output.preferredWidth = 80;
unexpected.installPlugin(require('./lib/unexpected-sinon'));
require('./test/monkeyPatchSinonStackFrames');
Promise = require('rsvp');
| Unbreak documentation tests.
| bootstrap-unexpected-markdown.js | Unbreak documentation tests. | <ide><path>ootstrap-unexpected-markdown.js
<del>/*global unexpected:true, Promise:true*/
<del>/* exported Promise */
<add>/*global unexpected:true, sinon, Promise:true*/
<add>/* exported Promise, sinon */
<ide> unexpected = require('unexpected');
<ide> unexpected.output.preferredWidth = 80;
<ide> unexpected.installPlug... | |
Java | apache-2.0 | 7b1a5f49994d248b9e0bf411cfc05a0aeec05a41 | 0 | jnidzwetzki/scalephant,jnidzwetzki/scalephant,jnidzwetzki/bboxdb,jnidzwetzki/bboxdb,jnidzwetzki/bboxdb | /*******************************************************************************
*
* Copyright (C) 2015-2018 the BBoxDB 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 Licens... | bboxdb-server/src/main/java/org/bboxdb/distribution/partitioner/KDtreeSpacePartitioner.java | /*******************************************************************************
*
* Copyright (C) 2015-2018 the BBoxDB 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 Licens... | Handle shutdown call | bboxdb-server/src/main/java/org/bboxdb/distribution/partitioner/KDtreeSpacePartitioner.java | Handle shutdown call | <ide><path>boxdb-server/src/main/java/org/bboxdb/distribution/partitioner/KDtreeSpacePartitioner.java
<ide>
<ide> @Override
<ide> public void shutdown() {
<del> // TODO Auto-generated method stub
<del>
<add> logger.info("Shutdown space partitioner for instance {}",
<add> spacePartitionerContext.getDistributi... | |
Java | bsd-2-clause | 07ed0a11199105ef1f6b6da0dc5dbad75d46d0d9 | 0 | saalfeldlab/template-building,saalfeldlab/template-building,saalfeldlab/template-building,saalfeldlab/template-building,saalfeldlab/template-building | package process;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import org.janelia.utility.parse.ParseUtils;
import ij.IJ;
import ij.ImagePlus;
import io.AffineImglib2IO;
import io.WritingHelper;
import io.nii.NiftiIo;
import io.nii.N... | src/main/java/process/RenderTransformed.java | package process;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import org.janelia.utility.parse.ParseUtils;
import ij.IJ;
import ij.ImagePlus;
import io.AffineImglib2IO;
import io.nii.NiftiIo;
import io.nii.Nifti_Writer;
import loci.... | rendering changes
* add nrrd dfield support
* remove support for iterative dfield inverse
| src/main/java/process/RenderTransformed.java | rendering changes | <ide><path>rc/main/java/process/RenderTransformed.java
<ide> import ij.IJ;
<ide> import ij.ImagePlus;
<ide> import io.AffineImglib2IO;
<add>import io.WritingHelper;
<ide> import io.nii.NiftiIo;
<ide> import io.nii.Nifti_Writer;
<ide> import loci.formats.FormatException;
<ide> import net.imglib2.interpolation.randomacce... | |
Java | apache-2.0 | 31274d7e64ff6b16158a6f2ba2c4a3d6159b95b5 | 0 | pstorch/cgeo,brok85/cgeo,samueltardieu/cgeo,schwabe/cgeo,KublaikhanGeek/cgeo,ThibaultR/cgeo,xiaoyanit/cgeo,pstorch/cgeo,vishwakulkarni/cgeo,superspindel/cgeo,kumy/cgeo,ThibaultR/cgeo,auricgoldfinger/cgeo,marco-dev/c-geo-opensource,S-Bartfast/cgeo,mucek4/cgeo,brok85/cgeo,vishwakulkarni/cgeo,KublaikhanGeek/cgeo,kumy/cgeo... | package cgeo.geocaching.connector.gc;
import cgeo.geocaching.CgeoApplication;
import cgeo.geocaching.DataStore;
import cgeo.geocaching.Geocache;
import cgeo.geocaching.Image;
import cgeo.geocaching.LogEntry;
import cgeo.geocaching.PocketQueryList;
import cgeo.geocaching.R;
import cgeo.geocaching.SearchResult;
import c... | main/src/cgeo/geocaching/connector/gc/GCParser.java | package cgeo.geocaching.connector.gc;
import cgeo.geocaching.CgeoApplication;
import cgeo.geocaching.DataStore;
import cgeo.geocaching.Geocache;
import cgeo.geocaching.Image;
import cgeo.geocaching.LogEntry;
import cgeo.geocaching.PocketQueryList;
import cgeo.geocaching.R;
import cgeo.geocaching.SearchResult;
import c... | Use lesser-arguments form of getMatch when possible
| main/src/cgeo/geocaching/connector/gc/GCParser.java | Use lesser-arguments form of getMatch when possible | <ide><path>ain/src/cgeo/geocaching/connector/gc/GCParser.java
<ide>
<ide> // cache direction - image
<ide> if (Settings.getLoadDirImg()) {
<del> final String direction = TextUtils.getMatch(row, GCConstants.PATTERN_SEARCH_DIRECTION_DISTANCE, false, 1, null, false);
<add> ... | |
JavaScript | mit | 4b5674412469034bb5be926e1bdd2fe47190350c | 0 | Ritoplz/ritoplz | 'use strict'
import { createStore, applyMiddleware, compose } from 'redux'
import axios from 'axios'
import thunk from 'redux-thunk'
import rootReducer from '../reducers'
const configureStore = initialState => {
return createStore(
rootReducer,
initialState,
compose(
applyMiddleware(thunk),
... | store/configureStore.js | 'use strict'
import { createStore, applyMiddleware } from 'redux'
import axios from 'axios'
import thunk from 'redux-thunk'
import rootReducer from '../reducers'
const configureStore = initialState => {
return createStore(
rootReducer,
initialState,
applyMiddleware(thunk)
)
}
export default configur... | Add Redux DevTools
| store/configureStore.js | Add Redux DevTools | <ide><path>tore/configureStore.js
<ide> 'use strict'
<ide>
<del>import { createStore, applyMiddleware } from 'redux'
<add>import { createStore, applyMiddleware, compose } from 'redux'
<ide> import axios from 'axios'
<ide> import thunk from 'redux-thunk'
<ide>
<ide> return createStore(
<ide> rootReducer,
<ide> ... | |
Java | apache-2.0 | fdc64ac684a46c391cbfa3263046ce058fe17f3c | 0 | maksimov/dasein-cloud-cloudstack,daniellemayne/dasein-cloud-cloudstack_old,daniellemayne/dasein-cloud-cloudstack,greese/dasein-cloud-cloudstack,maksimov/dasein-cloud-cloudstack_old,dasein-cloud/dasein-cloud-cloudstack | /**
* Copyright (C) 2009-2013 enstratius, 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.ap... | src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java | /**
* Copyright (C) 2009-2013 enstratius, 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.ap... | [bugzid:2887] Parsing job response to extract vm password on initial
launch. | src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java | [bugzid:2887] Parsing job response to extract vm password on initial launch. | <ide><path>rc/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java
<ide> throw new CloudException("Could not launch server");
<ide> }
<ide> // TODO: very odd logic below; figure out what it thinks it is doing
<del> long timeout = System.currentTimeMillis() + (CalendarWra... | |
JavaScript | mit | fc007b5481de19d631f39f64476537a845f2ea22 | 0 | wulanrahayu/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable,hikmahtiar6/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable,Mathieuu/jsPDF-AutoTable,ChipCastleDotCom/jsPDF-AutoTable,venusdharan/jsPDF-AutoTable,someatoms/jsPDF-AutoTable,RobertoMalatesta/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable,wulanrahayu/jsPDF-AutoTabl... | /**
* jsPDF AutoTable plugin
* Copyright (c) 2014 Simon Bengtsson, https://github.com/someatoms/jsPDF-AutoTable
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
(function (API) {
'use strict';
var MIN_COLUMN_WIDTH = 25;
var doc, cellPos, pageCount = 1;
// See ... | jspdf.plugin.autotable.js | /**
* jsPDF AutoTable plugin
* Copyright (c) 2014 Simon Bengtsson, https://github.com/someatoms/jsPDF-AutoTable
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
(function (API) {
'use strict';
var MIN_COLUMN_WIDTH = 25;
var doc, cellPos, pageCount = 1;
// See ... | Fixed display of falsy values
| jspdf.plugin.autotable.js | Fixed display of falsy values | <ide><path>spdf.plugin.autotable.js
<ide> console.log(widest);
<ide> }
<ide> rows.forEach(function (row) {
<del> var w = getStringWidth(row[header.key] || '');
<add> if(!header.hasOwnProperty('key'))
<add> throw new Error("The key ... | |
JavaScript | agpl-3.0 | e5bec963c709a82f3dae3b9cce543a761790f510 | 0 | luanlv/lila,luanlv/lila,arex1337/lila,arex1337/lila,luanlv/lila,arex1337/lila,luanlv/lila,arex1337/lila,arex1337/lila,luanlv/lila,arex1337/lila,luanlv/lila,luanlv/lila,arex1337/lila | // CONFIGURE ME!
mainDb = Mongo('127.0.0.1:27017').getDB('lichess');
oauthDb = Mongo('127.0.0.1:27017').getDB('lichess');
studyDb = Mongo('127.0.0.1:27017').getDB('lichess');
puzzleDb = Mongo('127.0.0.1:27017').getDB('puzzler');
// CONFIG END
if (typeof user == 'undefined') throw 'Usage: mongo lichess --eval \'user="u... | bin/mongodb/user-gdpr-scrub.js | // CONFIGURE ME!
mainDb = Mongo('127.0.0.1:27017').getDB('lichess');
oauthDb = Mongo('127.0.0.1:27017').getDB('lichess');
studyDb = Mongo('127.0.0.1:27017').getDB('lichess');
puzzleDb = Mongo('127.0.0.1:27017').getDB('puzzler');
// CONFIG END
if (typeof user == 'undefined') throw 'Usage: mongo lichess --eval \'user="u... | scrub the user document
| bin/mongodb/user-gdpr-scrub.js | scrub the user document | <ide><path>in/mongodb/user-gdpr-scrub.js
<ide>
<ide> /*
<ide> We decided not to delete PMs out of legit interest of the correspondents
<del>and also to be able to comply to data requests from law enforcement
<add>and also to be able to comply with data requests from law enforcement
<ide>
<ide> const msgThreadIds = sc... | |
Java | apache-2.0 | 94dcc045d40bbf30bea003a3e53110c500df3baf | 0 | jmsalcido/catapi-android | package org.otfusion.votecats.ui.activities;
import android.content.Intent;
import android.view.GestureDetector;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import com.squareup.otto.Su... | app/src/main/java/org/otfusion/votecats/ui/activities/MainActivity.java | package org.otfusion.votecats.ui.activities;
import android.content.Intent;
import android.view.GestureDetector;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import com.squareup.otto.Su... | id:#11 have image when hit back on the favorites activity
description: just re-load a cat from the api.
| app/src/main/java/org/otfusion/votecats/ui/activities/MainActivity.java | id:#11 have image when hit back on the favorites activity description: just re-load a cat from the api. | <ide><path>pp/src/main/java/org/otfusion/votecats/ui/activities/MainActivity.java
<ide>
<ide> @Override
<ide> protected void loadContent() {
<add> loadCat();
<ide> _loadCatButton.setOnClickListener(new View.OnClickListener() {
<ide> @Override
<ide> public void onClick(Vie... | |
Java | apache-2.0 | 07cbcc410895093844903bd0e1b7488134844a8a | 0 | Aulust/async-http-client,stepancheg/async-http-client,bomgar/async-http-client,fengshao0907/async-http-client,nemoyixin/async-http-client,hgl888/async-http-client,typesafehub/async-http-client,elijah513/async-http-client,magiccao/async-http-client,thinker-fang/async-http-client,ooon/async-http-client,jxauchengchao/asyn... | /*
* Copyright 2010 Ning, Inc.
*
* Ning licenses this file to you 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 applic... | api/src/main/java/org/asynchttpclient/AsyncHttpClientConfig.java | /*
* Copyright 2010 Ning, Inc.
*
* Ning licenses this file to you 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 applic... | Fix build
| api/src/main/java/org/asynchttpclient/AsyncHttpClientConfig.java | Fix build | <ide><path>pi/src/main/java/org/asynchttpclient/AsyncHttpClientConfig.java
<ide> t.setDaemon(true);
<ide> return t;
<ide> }
<del> })
<add> });
<ide> }
<ide>
<ide> if (applicationThreadPool ==... | |
Java | mit | 459c61b93a7cfea04cebc8fddd1bbcaf9bb7013b | 0 | bcgit/bc-java,bcgit/bc-java,bcgit/bc-java | package org.bouncycastle.util;
/**
* Utility methods for processing String objects containing IP addresses.
*/
public class IPAddress
{
/**
* Validate the given IPv4 or IPv6 address.
*
* @param address the IP address as a String.
*
* @return true if a valid address, false otherwise
... | core/src/main/java/org/bouncycastle/util/IPAddress.java | package org.bouncycastle.util;
/**
* Utility methods for processing String objects containing IP addresses.
*/
public class IPAddress
{
/**
* Validate the given IPv4 or IPv6 address.
*
* @param address the IP address as a String.
*
* @return true if a valid address, false otherwise
... | Fix javadoc | core/src/main/java/org/bouncycastle/util/IPAddress.java | Fix javadoc | <ide><path>ore/src/main/java/org/bouncycastle/util/IPAddress.java
<ide> *
<ide> * @param address the IP address as a String.
<ide> *
<del> * @return true if a valid IPv4 address, false otherwise
<add> * @return true if a valid IPv6 address, false otherwise
<ide> */
<ide> public static bo... | |
Java | apache-2.0 | f6c9f4e10b8be302232ff96e9fa3926e8b7f3f73 | 0 | FHannes/intellij-community,xfournet/intellij-community,allotria/intellij-community,xfournet/intellij-community,ThiagoGarciaAlves/intellij-community,ibinti/intellij-community,apixandru/intellij-community,vvv1559/intellij-community,allotria/intellij-community,semonte/intellij-community,ibinti/intellij-community,asedunov/... | /*
* 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/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.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... | inspections: use more clear names
| platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java | inspections: use more clear names | <ide><path>latform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java
<ide> return result;
<ide> }
<ide>
<del> public void disableTool(@NotNull String toolId, @NotNull PsiElement element) {
<del> getTools(toolId, element.getProject()).disableTool(element);
<del> }
<del>
<del> publi... | |
Java | mit | error: pathspec 'src/com/algs/Quick.java' did not match any file(s) known to git
| 1214dc16106291d2c5ef9593cc04b392a6126023 | 1 | AlbertKnag/algs-practice,AlbertKnag/algs-practice,AlbertKnag/algs-practice | package com.algs;
public class Quick {
public static void sort(Comparable[] a) {
sort(a, 0, a.length - 1);
}
//让数组从a[lo] 到 a[hi]有序
private static void sort(Comparable[] a, int lo, int hi) {
if (hi <= lo) return;
int j = partition(a, lo, hi);
sort(a, lo, j-1)... | src/com/algs/Quick.java | add quick sort | src/com/algs/Quick.java | add quick sort | <ide><path>rc/com/algs/Quick.java
<add>package com.algs;
<add>
<add>
<add>public class Quick {
<add>
<add> public static void sort(Comparable[] a) {
<add> sort(a, 0, a.length - 1);
<add> }
<add>
<add> //让数组从a[lo] 到 a[hi]有序
<add> private static void sort(Comparable[] a, int lo, int hi) {
<add> if ... | |
Java | apache-2.0 | eeb610d62765268d131f010d05f1d9e9640c3ac4 | 0 | OpenCode4Workspace/Watson-Work-Services-Java-SDK | package org.opencode4workspace.tests;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.opencode4workspace.WWException;
import org.opencode4workspace.builders.SpaceDeleteGraphQLMutation;
import org.opencode4workspace.mocks.MockClient;
public class DeleteSpaceTest {
private static final ... | wws-api/src/test/java/org/opencode4workspace/tests/DeleteSpaceTest.java | package org.opencode4workspace.tests;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.opencode4workspace.WWException;
import org.opencode4workspace.builders.SpaceDeleteGraphQLMutation;
public class DeleteSpaceTest {
private static final String DELETE_SPACE_MUTATION = "mutation deleteS... | deleteSpace mutation
| wws-api/src/test/java/org/opencode4workspace/tests/DeleteSpaceTest.java | deleteSpace mutation | <ide><path>ws-api/src/test/java/org/opencode4workspace/tests/DeleteSpaceTest.java
<ide> import org.junit.Test;
<ide> import org.opencode4workspace.WWException;
<ide> import org.opencode4workspace.builders.SpaceDeleteGraphQLMutation;
<add>import org.opencode4workspace.mocks.MockClient;
<ide>
<ide> public class DeleteSp... | |
Java | mit | 73514940d413d50191caca6dc226a1e641190242 | 0 | cs2103aug2014-f10-2j/main | // @author A0112725N
package com.epictodo.logic;
import com.epictodo.controller.json.Storage;
import com.epictodo.model.*;
import com.epictodo.model.exception.InvalidDateException;
import com.epictodo.model.exception.InvalidTimeException;
import com.epictodo.util.TaskDueDateComparator;
import java.io.IOExc... | src/main/java/com/epictodo/logic/CRUDLogic.java | // @author A0112725N
package com.epictodo.logic;
import com.epictodo.controller.json.Storage;
import com.epictodo.model.*;
import com.epictodo.model.exception.InvalidDateException;
import com.epictodo.model.exception.InvalidTimeException;
import com.epictodo.util.TaskDueDateComparator;
import java.io.IOExc... | Refined display message for empty list
| src/main/java/com/epictodo/logic/CRUDLogic.java | Refined display message for empty list | <ide><path>rc/main/java/com/epictodo/logic/CRUDLogic.java
<ide> private static final String MSG_ILLEGAL_PRIORITY = "illegal priority";
<ide> private static final String MSG_KEYWORD_MUST_NOT_BE_NULL = "keyword must not be <null>";
<ide> private static final String MSG_EMPTY_LIST = "empty list";
<add> private static f... | |
Java | apache-2.0 | 859049e864dca07869203c14524c28f80e437348 | 0 | AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/andro... | /*
* Copyright (C) 2015 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 app... | core/core/src/main/java/androidx/core/widget/NestedScrollView.java | /*
* Copyright (C) 2015 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 app... | Add directional accessibility scroll actions to NestedScrollView
Test: tested with twisted talkback and example app using
NestedScrollView that scroll down has the same effect as scroll forward
and scroll up has the same effect as scroll backward.
Bug: 136277517
Change-Id: Ieb17f26f4266b6f92ee249cdec78fcfc835fd5ad
| core/core/src/main/java/androidx/core/widget/NestedScrollView.java | Add directional accessibility scroll actions to NestedScrollView | <ide><path>ore/core/src/main/java/androidx/core/widget/NestedScrollView.java
<ide> return false;
<ide> }
<ide> switch (action) {
<del> case AccessibilityNodeInfoCompat.ACTION_SCROLL_FORWARD: {
<add> case AccessibilityNodeInfoCompat.ACTION_SCROLL_FORW... | |
Java | mit | 1d87cea7d612e12c6e26e5c63945a35b29e4574a | 0 | Cloudhunter/OpenCCSensors,lyqyd/OpenCCSensors | package openccsensors.common.helper;
import openccsensors.common.core.OCSLog;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import cpw.mods.fml.common.registry.LanguageRegistry;
public class SensorHelper {
public static String getType(String rawTy... | src/openccsensors/common/helper/SensorHelper.java | package openccsensors.common.helper;
import openccsensors.common.core.OCSLog;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import cpw.mods.fml.common.registry.LanguageRegistry;
public class SensorHelper {
public static String getType(String rawTy... | trying to sort this item name shit!!!
| src/openccsensors/common/helper/SensorHelper.java | trying to sort this item name shit!!! | <ide><path>rc/openccsensors/common/helper/SensorHelper.java
<ide> public class SensorHelper {
<ide>
<ide> public static String getType(String rawType) {
<del> String translated = LanguageRegistry.instance().getStringLocalization(
<del> rawType, "en_OCS");
<add> String translated = LanguageRegistry.instance().get... | |
JavaScript | bsd-2-clause | 05553f80304e0e5a23821a3a30a6092d838696f7 | 0 | featurist/pogoscript,featurist/pogoscript,featurist/pogoscript | var _ = require('underscore');
var parseError = exports.parseError = function (term, message, expected) {
expected = expected || [];
var e = new Error(message);
e.index = term.index;
e.context = term.context;
e.expected = expected;
return e;
};
var ExpressionPrototype = new function () {
this.gene... | src/lib/codeGenerator.js | var _ = require('underscore');
var parseError = exports.parseError = function (term, message, expected) {
expected = expected || [];
var e = new Error(message);
e.index = term.index;
e.context = term.context;
e.expected = expected;
return e;
};
var ExpressionPrototype = new function () {
this.gene... | generating booleans
| src/lib/codeGenerator.js | generating booleans | <ide><path>rc/lib/codeGenerator.js
<ide>
<ide> var boolean = expressionTerm('boolean', function(value) {
<ide> this.boolean = value;
<add> this.generateJavaScript = function (buffer, scope) {
<add> if (this.boolean) {
<add> buffer.write('true');
<add> } else {
<add> buffer.write('false');
<add> }... | |
Java | mpl-2.0 | 2724dca9fb607e76b6abdd956181feaa93263a1e | 0 | msteinhoff/hello-world | 84550780-cb8e-11e5-a707-00264a111016 | src/main/java/HelloWorld.java | 844aa94f-cb8e-11e5-b94b-00264a111016 | NO CHANGES | src/main/java/HelloWorld.java | NO CHANGES | <ide><path>rc/main/java/HelloWorld.java
<del>844aa94f-cb8e-11e5-b94b-00264a111016
<add>84550780-cb8e-11e5-a707-00264a111016 | |
Java | apache-2.0 | 77cfb080a0c88bed86fad8dfacef72fdaa792ba2 | 0 | juankysoriano/material-painter | package com.novoda.materialpainter;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.os.ParcelFileDescriptor;
import android.support.v7.app.ActionBarActivity;
import androi... | app/src/main/java/com/novoda/materialpainter/PainterActivity.java | package com.novoda.materialpainter;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.os.ParcelFileDescriptor;
import android.support.v7.app.ActionBarActivity;
import androi... | had to make that animation
| app/src/main/java/com/novoda/materialpainter/PainterActivity.java | had to make that animation | <ide><path>pp/src/main/java/com/novoda/materialpainter/PainterActivity.java
<ide> public class PainterActivity extends ActionBarActivity {
<ide>
<ide> private static final int READ_REQUEST_CODE = 42;
<add> private static final int ANIMATION_START_DELAY = 300;
<add> private static final int ANIMATION_DURATION... | |
Java | apache-2.0 | 34b22e8315fbcd5f980e671c6676a2c19cf1c3c4 | 0 | CMPUT301F15T05/cuddly-quack | package ca.ualberta.cs.swapmyride;
import android.test.ActivityInstrumentationTestCase2;
import android.test.ApplicationTestCase;
/**
* Created by carsonmclean on 9/10/15.
*/
public class OfflineTest extends ActivityInstrumentationTestCase2 {
public OfflineTest() {super(MainMenu.class); }
// Use Case 28: ... | SwapMyRide/app/src/androidTest/java/ca/ualberta/cs/swapmyride/OfflineTest.java | package ca.ualberta.cs.swapmyride;
import android.test.ActivityInstrumentationTestCase2;
import android.test.ApplicationTestCase;
/**
* Created by carsonmclean on 9/10/15.
*/
public class OfflineTest extends ActivityInstrumentationTestCase2 {
public OfflineTest() {super(MainMenu.class); }
// Use Case 28: ... | this should be the last .size() == 0 change
| SwapMyRide/app/src/androidTest/java/ca/ualberta/cs/swapmyride/OfflineTest.java | this should be the last .size() == 0 change | <ide><path>wapMyRide/app/src/androidTest/java/ca/ualberta/cs/swapmyride/OfflineTest.java
<ide> //TODO: find how to turn off data
<ide> //android.turnOnData();
<ide>
<del> assertTrue(tradeList.getTrades() == null);
<add> assertTrue(tradeList.getTrades().size() == 0);
<ide> tradeLis... | |
Java | mit | 88570b800a95f1495925cfdf33d64283af5db9c1 | 0 | vtsukur/spring-rest-black-market,vtsukur/spring-rest-black-market,vtsukur/spring-rest-black-market | package org.vtsukur.spring.rest.market.domain.core.ad;
import lombok.*;
import org.springframework.hateoas.Identifiable;
import org.vtsukur.spring.rest.market.domain.core.user.User;
import javax.persistence.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
/**
* @author vo... | src/main/java/org/vtsukur/spring/rest/market/domain/core/ad/Ad.java | package org.vtsukur.spring.rest.market.domain.core.ad;
import lombok.*;
import org.springframework.hateoas.Identifiable;
import org.vtsukur.spring.rest.market.domain.core.user.User;
import javax.persistence.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
/**
* @author vo... | Renaming OUTDATED into EXPIRED.
| src/main/java/org/vtsukur/spring/rest/market/domain/core/ad/Ad.java | Renaming OUTDATED into EXPIRED. | <ide><path>rc/main/java/org/vtsukur/spring/rest/market/domain/core/ad/Ad.java
<ide>
<ide> PUBLISHED,
<ide>
<del> OUTDATED
<add> EXPIRED
<ide>
<ide> }
<ide>
<ide>
<ide> public Ad finish() {
<ide> if (status == Status.PUBLISHED) {
<del> status = Status.OUTDATED;
<add>... | |
JavaScript | mit | 22562694cefea0d8d53ba7e70f5f8682851cb225 | 0 | watson/monster-drift | 'use strict'
var debug = require('debug')('monster-drift')
delete process.env.DEBUG // hackrf doesn't like this flag
var fs = require('fs')
var devices = require('hackrf')()
var signal = {
f: fs.readFileSync('./recordings/car-f.raw'),
b: fs.readFileSync('./recordings/car-b.raw'),
l: fs.readFileSync('./recordin... | index.js | 'use strict'
var debug = require('debug')('monster-drift')
delete process.env.DEBUG // hackrf doesn't like this flag
var fs = require('fs')
var devices = require('hackrf')()
var signal = {
f: fs.readFileSync('./recordings/car-f.raw'),
b: fs.readFileSync('./recordings/car-b.raw'),
l: fs.readFileSync('./recordin... | Clean up uturn
| index.js | Clean up uturn | <ide><path>ndex.js
<ide> var self = this
<ide> this.forward()
<ide> setTimeout(function () {
<del> self._drive(signal.r)
<add> self.right()
<ide> setTimeout(function () {
<ide> self.backwardLeft()
<ide> setTimeout(function () {
<ide> self.backward()
<del> setTimeout(cb, 1000)
... | |
JavaScript | mit | 059c150e1f8a4693029cd7cf5a1e556b13b06798 | 0 | Terab/terab.github.io,Terab/terab.github.io | function GameManager(size, InputManager, Actuator, ScoreManager) {
this.size = size; // Size of the grid
this.inputManager = new InputManager;
this.scoreManager = new ScoreManager;
this.actuator = new Actuator;
this.startTiles = 2;
this.inputManager.on("move", this.move.bind(this));
this.i... | js/game_manager.js | function GameManager(size, InputManager, Actuator, ScoreManager) {
this.size = size; // Size of the grid
this.inputManager = new InputManager;
this.scoreManager = new ScoreManager;
this.actuator = new Actuator;
this.startTiles = 2;
this.inputManager.on("move", this.move.bind(this));
this.i... | negative are as awesome
| js/game_manager.js | negative are as awesome | <ide><path>s/game_manager.js
<ide> // Adds a tile in a random position
<ide> GameManager.prototype.addRandomTile = function () {
<ide> if (this.grid.cellsAvailable()) {
<del> var value = Math.random() < 0.9 ? 1024 : 2048;
<add> var value = Math.random() < 0.9 ? -2 : -4;
<ide> var tile = new Tile(this.grid.r... | |
Java | apache-2.0 | c6037b988fbb28b96e4c3cf5688f3a2e7b9009b0 | 0 | psakar/Resteasy,psakar/Resteasy,awhitford/Resteasy,awhitford/Resteasy,psakar/Resteasy,rankinc/Resteasy,rankinc/Resteasy,psakar/Resteasy,awhitford/Resteasy,rankinc/Resteasy,rankinc/Resteasy,awhitford/Resteasy,awhitford/Resteasy | package org.jboss.resteasy.plugins.server.netty;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBufferOutputStream;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.resteasy.specimpl.MultivaluedMapImpl;
import org.jboss.resteasy.spi.HttpResponse;
import javax.ws.rs.cor... | jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java | package org.jboss.resteasy.plugins.server.netty;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBufferOutputStream;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.resteasy.specimpl.MultivaluedMapImpl;
import org.jboss.resteasy.spi.HttpResponse;
import javax.ws.rs.cor... | Make sure reset does only rest the headers
| jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java | Make sure reset does only rest the headers | <ide><path>axrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java
<ide> public void reset()
<ide> {
<ide> outputHeaders.clear();
<del> buffer.clear();
<ide> }
<ide>
<ide> } | |
Java | apache-2.0 | 366e7d680377fe87831d8c43b4449f86437f668b | 0 | nobdy/mybatis-plus,baomidou/mybatis-plus,baomidou/mybatis-plus | /**
* Copyright (c) 2011-2020, hubin (jobob@qq.com).
*
* 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 ap... | mybatis-plus/src/main/java/com/baomidou/mybatisplus/spring/MybatisMapperRefresh.java | /**
* Copyright (c) 2011-2020, hubin (jobob@qq.com).
*
* 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 ... | FORMAT | mybatis-plus/src/main/java/com/baomidou/mybatisplus/spring/MybatisMapperRefresh.java | FORMAT | <ide><path>ybatis-plus/src/main/java/com/baomidou/mybatisplus/spring/MybatisMapperRefresh.java
<ide> sqlSessionFactory.getConfiguration(), // 注入的sql先不进行处理了
<ide> resource.toString(), sqlSessionFactory.getConfiguration().getSqlFragments());
<ide> xmlMapperBuilder.parse();
<del> logger.debug("refresh:" + r... | |
Java | apache-2.0 | 61036390e21e35ed643a0ae65bc2b489e95a971e | 0 | iacdingping/elasticsearch,easonC/elasticsearch,wbowling/elasticsearch,socialrank/elasticsearch,Ansh90/elasticsearch,MjAbuz/elasticsearch,marcuswr/elasticsearch-dateline,btiernay/elasticsearch,pozhidaevak/elasticsearch,jimczi/elasticsearch,tkssharma/elasticsearch,alexbrasetvik/elasticsearch,loconsolutions/elasticsearch,... | /*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may... | src/test/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java | /*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may... | removed a left over assert made redundant by last commit
| src/test/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java | removed a left over assert made redundant by last commit | <ide><path>rc/test/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java
<ide> }
<ide>
<ide> public static void assertHitCount(CountResponse countResponse, long expectedHitCount) {
<del> assertThat(countResponse.getCount(), is(expectedHitCount));
<ide> if (countResponse.getCount() !=... | |
Java | apache-2.0 | 66ddaee764022e16b5576534df525cba02bc9669 | 0 | cmballard07/wordcram,tectronics/wordcram,naren01/wordcram,cmballard07/wordcram,cmballard07/wordcram,naren01/wordcram,tectronics/wordcram,naren01/wordcram,allendaicool/wordcram,allendaicool/wordcram,allendaicool/wordcram,cmballard07/wordcram,naren01/wordcram,tectronics/wordcram | package wordcram;
/*
Copyright 2010 Daniel Bernier
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... | src/wordcram/SpiralWordNudger.java | package wordcram;
/*
Copyright 2010 Daniel Bernier
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... | SpiralWordNudger, changed the numbers around so it's a better spiral | src/wordcram/SpiralWordNudger.java | SpiralWordNudger, changed the numbers around so it's a better spiral | <ide><path>rc/wordcram/SpiralWordNudger.java
<ide>
<ide> @Override
<ide> public PVector nudgeFor(Word w, int attempt) {
<del> float rad = powerMap(2, attempt, 0, 600, 1, 100);
<add> float rad = powerMap(0.6f, attempt, 0, 600, 1, 100);
<ide>
<del> thetaIncrement = powerMap(1, attempt, 0, 600, 0.5f, 0.1f);
<add> ... | |
JavaScript | mit | 0e36620f480123b0a1cb2e749fc2dce05ef19b3d | 0 | zubairq/gosharedata,zubairq/yazz,zubairq/yazz,zubairq/gosharedata | function(args) {
/*
is_app(true)
component_type("VB")
display_name("Data control")
description("This will return the data control")
base_component_id("database_control")
load_once_from_file(true)
visibility("PRIVATE")
read_only(true)
properties(
[
{
id: "text",
name: "Text",
... | public/visifile_drivers/controls/database.js | function(args) {
/*
is_app(true)
component_type("VB")
display_name("Data control")
description("This will return the data control")
base_component_id("database_control")
load_once_from_file(true)
visibility("PRIVATE")
read_only(true)
properties(
[
{
id: "text",
name: "Text",
... | Made connection status clearer
| public/visifile_drivers/controls/database.js | Made connection status clearer | <ide><path>ublic/visifile_drivers/controls/database.js
<ide> let mm = this
<ide> let newcontrol = mm.meta.lookupComponent(mm.args.sourceControlName)
<ide> let retttq = await newcontrol.executeSql()
<del> mm.dynamic = newcontrol.result
<add> if (newcontrol.... | |
Java | apache-2.0 | 3a60f6b817f70326012d662724594679f241a79f | 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-2020 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.openapi.util.Pair;
import com.intellij.util.ThrowableRunnable;
import com.sun.management.OperatingSystemMXBean;
import it.... | platform/testFramework/src/com/intellij/testFramework/CpuUsageData.java | // Copyright 2000-2020 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.openapi.util.Pair;
import com.intellij.util.ThrowableRunnable;
import com.sun.management.OperatingSystemMXBean;
import it.... | print percentage of JIT/GC activities to easier understand how expensive they were
GitOrigin-RevId: 1343ca780e0e38be7b1253681e15fcb79521c31b | platform/testFramework/src/com/intellij/testFramework/CpuUsageData.java | print percentage of JIT/GC activities to easier understand how expensive they were | <ide><path>latform/testFramework/src/com/intellij/testFramework/CpuUsageData.java
<ide> myMemEnd = memEnd;
<ide> myCompilationTime = compilationTime;
<ide> myProcessTime = processTime;
<del> Object2LongMaps.fastForEach(gcTimes, entry -> {
<del> myGcTimes.add(Pair.create(entry.getLongValue(), entry.g... | |
Java | mit | efdd07445f0b962fbc873931590c067626b5fa52 | 0 | rhomobile/rhostudio,rhomobile/rhostudio | package rhogenwizard.editors;
import java.util.ArrayList;
import java.util.List;
import rhogenwizard.PlatformType;
public enum Capabilities
{
eUnknown(null, null),
eGps("gps", PlatformType.eUnknown),
ePim("pim", PlatformType.eUnknown),
eCamera("camera", PlatformType.eUnknown),
eVibrate("vibrate", PlatformType.e... | rhogen-wizard/src/rhogenwizard/editors/Capabilities.java | package rhogenwizard.editors;
import java.util.ArrayList;
import java.util.List;
import rhogenwizard.PlatformType;
public enum Capabilities
{
eUnknown(null, null),
eGps("gps", PlatformType.eUnknown),
ePim("pim", PlatformType.eUnknown),
eCamera("camera", PlatformType.eUnknown),
eVibrate("vibrate", PlatformType.e... | add network_state and sdcard capabilities
| rhogen-wizard/src/rhogenwizard/editors/Capabilities.java | add network_state and sdcard capabilities | <ide><path>hogen-wizard/src/rhogenwizard/editors/Capabilities.java
<ide> eNoMotoDevice("non_motorola_device", PlatformType.eUnknown),
<ide> eNativeBrowser("native_browser", PlatformType.eUnknown),
<ide> eMotoBrowser("motorola_browser", PlatformType.eUnknown),
<del> eHardAccelerate("hardware_acceleration", PlatformTy... | |
Java | apache-2.0 | 120bf498c215c56c877d03b94f231f0b6c7ba609 | 0 | sakai-mirror/evaluation,sakai-mirror/evaluation | /**********************************************************************************
*
* Copyright (c) 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | impl/logic/src/java/org/sakaiproject/evaluation/logic/impl/scheduling/EvalJobLogicImpl.java | /**********************************************************************************
*
* Copyright (c) 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | fix for EVALSYS-144 created email not sent 10 minutes after evaluation created
git-svn-id: 6eed24e287f84bf0ab23ca377a3e397011128a6f@9753 fdecad78-55fc-0310-b1b2-d7d25cf747c9
| impl/logic/src/java/org/sakaiproject/evaluation/logic/impl/scheduling/EvalJobLogicImpl.java | fix for EVALSYS-144 created email not sent 10 minutes after evaluation created | <ide><path>mpl/logic/src/java/org/sakaiproject/evaluation/logic/impl/scheduling/EvalJobLogicImpl.java
<ide> * so we schedule email for ten minutes from now, also giving instructor ten minutes
<ide> * to delete the evaluation and its notification
<ide> */
<del> long runAt = new Date().getTime() + (1000 * ... | |
JavaScript | mit | 63c286a5e20693e701f4640a0f7d76632e0cd2a0 | 0 | stevebrush/giftdibs-api | require('./shared/environment').applyEnvironment();
const express = require('express');
const bodyParser = require('body-parser');
const cors = require('cors');
const db = require('./database');
db.connect();
const app = express();
app.set('port', process.env.PORT);
app.use(bodyParser.urlencoded({ extended: true }))... | src/app.js | require('./shared/environment').applyEnvironment();
const express = require('express');
const bodyParser = require('body-parser');
const cors = require('cors');
const db = require('./database');
db.connect();
const app = express();
app.set('port', process.env.PORT);
app.use(bodyParser.urlencoded({ extended: true }))... | Added preflight continue
| src/app.js | Added preflight continue | <ide><path>rc/app.js
<ide> credentials: true,
<ide> methods: 'GET,POST,PATCH,DELETE,OPTIONS',
<ide> optionsSuccessStatus: 200,
<del> origin: process.env.ALLOW_ORIGIN
<add> origin: process.env.ALLOW_ORIGIN,
<add> preflightContinue: true
<ide> }));
<ide> app.options('*', cors());
<ide> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.