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 | agpl-3.0 | 38972caf66d8aa3d3b974fbdced8bc640f48380e | 0 | NicolasEYSSERIC/Silverpeas-Core,stephaneperry/Silverpeas-Core,SilverYoCha/Silverpeas-Core,CecileBONIN/Silverpeas-Core,ebonnet/Silverpeas-Core,SilverYoCha/Silverpeas-Core,mmoqui/Silverpeas-Core,auroreallibe/Silverpeas-Core,mmoqui/Silverpeas-Core,SilverTeamWork/Silverpeas-Core,SilverDav/Silverpeas-Core,ebonnet/Silverpeas... | /**
* Copyright (C) 2000 - 2011 Silverpeas
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* As a spe... | web-core/src/main/java/com/silverpeas/jobDomainPeas/control/JobDomainPeasSessionController.java | /**
* Copyright (C) 2000 - 2011 Silverpeas
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* As a spe... | Updating the login max size limitation to 50
| web-core/src/main/java/com/silverpeas/jobDomainPeas/control/JobDomainPeasSessionController.java | Updating the login max size limitation to 50 | <ide><path>eb-core/src/main/java/com/silverpeas/jobDomainPeas/control/JobDomainPeasSessionController.java
<ide>
<ide> return accessGranted;
<ide> }
<del>
<add>
<ide> public void setRefreshDomain(boolean refreshDomain) {
<ide> this.refreshDomain = refreshDomain;
<ide> }
<ide> * @param filePart
<ide> ... | |
Java | apache-2.0 | a4b428323b699460ccd67a079a938a7d4a4b4fde | 0 | strapdata/elassandra,vroyer/elassandra,strapdata/elassandra,strapdata/elassandra,vroyer/elassandra,strapdata/elassandra,strapdata/elassandra,vroyer/elassandra | /*
* Licensed to Elasticsearch 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
* not use this fi... | modules/reindex/src/test/java/org/elasticsearch/index/reindex/ReindexFailureTests.java | /*
* Licensed to Elasticsearch 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
* not use this fi... | Reindex: Wait for deletion in test
The test failure tracked by #28053 occurs because we fail to get the
failure response from the reindex on the first try and on our second try
the delete index API call that was supposed to trigger the failure
actually deletes the index during document creation. This causes the
test t... | modules/reindex/src/test/java/org/elasticsearch/index/reindex/ReindexFailureTests.java | Reindex: Wait for deletion in test | <ide><path>odules/reindex/src/test/java/org/elasticsearch/index/reindex/ReindexFailureTests.java
<ide> response.get();
<ide> logger.info("Didn't trigger a reindex failure on the {} attempt", attempt);
<ide> attempt++;
<add> /*
<add> * In the... | |
Java | mit | 94a90cac33832cd576804e0f44b2f9e19b33341a | 0 | nalabelle/senior-design-project | /**
* Author: Alex Swanson 103706731?
* Date started: Early Sept
* Date Completed: IP
* Peer Review: IP
* Date: You mean today?
* Team members: Buddy Corp
* Contribution: IP
*
* Working Calendar... no functionality
* TODO
* Fix broken button/header texy issues
* Move New Event button out of header section.... | src/com/comp490/studybuddy/calendar/CalenActivity.java | /**
* Author: Alex Swanson 103706731?
* Date started: Early Sept
* Date Completed: IP
* Peer Review: IP
* Date: You mean today?
* Team members: Buddy Corp
* Contribution: IP
*
* Working Calendar... no functionality
* TODO
* Fix broken button/header texy issues
* Move New Event button out of header section.... | Added some junk code. Want to see if pushes goto Git or Stash or
hopefully Both
| src/com/comp490/studybuddy/calendar/CalenActivity.java | Added some junk code. Want to see if pushes goto Git or Stash or hopefully Both | <ide><path>rc/com/comp490/studybuddy/calendar/CalenActivity.java
<ide>
<ide> private final DateFormat dateFormatter = new DateFormat();
<ide> private static final String dateTemplate = "MMMM yyyy";
<add>
<add> //testing git and stash... nothing todo with project
<add> private int testline;
<ide> ... | |
JavaScript | mit | af72fd3260c8e3d7d7d196e13694f5b32180e0c0 | 0 | ForbesLindesay/babel-plugin-transform-react-pug,pugjs/babel-plugin-transform-react-pug | import assert from 'assert';
import error from 'pug-error';
// Mising "types"
// - Comment
// - BlockComment
// - &attributes
// - InterpolatedTag
// - Code(buffer: false + block)
// - Each(object)
function addLocToAst(ast, line) {
if (ast.loc) {
ast.loc = {
start: {line: line + ast.loc.start.line, ... | src/code-gen.js | import assert from 'assert';
import error from 'pug-error';
// Mising "types"
// - Comment
// - BlockComment
// - &attributes
// - InterpolatedTag
// - Code(buffer: false + block)
// - Each(object)
export default function ({babel, parse, helpers, ast, path, code}) {
const {types} = babel;
const baseLine = p... | Add locations to parsed JavaScript
| src/code-gen.js | Add locations to parsed JavaScript | <ide><path>rc/code-gen.js
<ide> // - Code(buffer: false + block)
<ide> // - Each(object)
<ide>
<add>function addLocToAst(ast, line) {
<add> if (ast.loc) {
<add> ast.loc = {
<add> start: {line: line + ast.loc.start.line, column: 0},
<add> end: {line: line + ast.loc.end.line, column: 0},
<add> };
<add... | |
JavaScript | mit | 5c7400baba60c7a138310162d436bff67cfb60f3 | 0 | robianmcd/image-server | var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.use( bodyParser.json() );
app.use(bodyParser.urlencoded({
extended: true
}));
var images = [
{url: 'http://i.imgur.com/DuMqW96.jpg', description: 'Owl Creek Pass, Colorado by Stuart Gordon'},
{url: 'http://i... | server.js | var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.use( bodyParser.json() ); // to support JSON-encoded bodies
app.use(bodyParser.urlencoded({ // to support URL-encoded bodies
extended: true
}));
var images = [
{url: 'http://i.imgur.com/DuMqW96.jpg', d... | test heroku deploy
| server.js | test heroku deploy | <ide><path>erver.js
<ide> var express = require('express');
<ide> var app = express();
<ide> var bodyParser = require('body-parser');
<del>app.use( bodyParser.json() ); // to support JSON-encoded bodies
<del>app.use(bodyParser.urlencoded({ // to support URL-encoded bodies
<add>app.use( bodyParser.json() );
<a... | |
Java | apache-2.0 | a39ea1208433dbdea66ad889426048460ec64e30 | 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.ide.startup.impl;
import com.intellij.diagnostic.*;
import com.intellij.diagnostic.StartUpMeasurer.Activities;
import com.intellij.ide.IdeBundle;
import com.... | platform/platform-impl/src/com/intellij/ide/startup/impl/StartupManagerImpl.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.ide.startup.impl;
import com.intellij.diagnostic.*;
import com.intellij.diagnostic.StartUpMeasurer.Activities;
import com.intellij.ide.IdeBundle;
import com.... | light edit: run StartupActivity at startup in LightEdit mode too if the activity is LightEditCompatible (IDEA-233987)
GitOrigin-RevId: 363e94b9a491edb70512ca4ed2e8802a36509807 | platform/platform-impl/src/com/intellij/ide/startup/impl/StartupManagerImpl.java | light edit: run StartupActivity at startup in LightEdit mode too if the activity is LightEditCompatible (IDEA-233987) | <ide><path>latform/platform-impl/src/com/intellij/ide/startup/impl/StartupManagerImpl.java
<ide> import com.intellij.diagnostic.*;
<ide> import com.intellij.diagnostic.StartUpMeasurer.Activities;
<ide> import com.intellij.ide.IdeBundle;
<add>import com.intellij.ide.lightEdit.LightEdit;
<add>import com.intellij.ide.ligh... | |
Java | apache-2.0 | 9b1353fe88aa0199ceec37eea4139064a7fcd9c6 | 0 | babble/babble,babble/babble,babble/babble,babble/babble,babble/babble,babble/babble | // JSArray.java
package ed.js;
import java.util.*;
import ed.js.func.*;
import ed.js.engine.*;
import static ed.js.JSInternalFunctions.*;
/**
* http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array#Iteration_methods
*
* TODO:
* reduce
* redeceRight
* concat
* indexOf (JS... | src/main/ed/js/JSArray.java | // JSArray.java
package ed.js;
import java.util.*;
import ed.js.func.*;
import ed.js.engine.*;
import static ed.js.JSInternalFunctions.*;
/**
* http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array#Iteration_methods
*
* TODO:
* reduce
* redeceRight
* concat
* indexOf (JS... | isLocked
| src/main/ed/js/JSArray.java | isLocked | <ide><path>rc/main/ed/js/JSArray.java
<ide> _array.clear();
<ide> }
<ide>
<add> public boolean isLocked(){
<add> return _locked;
<add> }
<add>
<ide> private boolean _locked = false;
<ide> final List<Object> _array;
<ide> | |
Java | apache-2.0 | 128e8c8784b4717a275d55118f96f5726159c156 | 0 | operasoftware/operaprestodriver,operasoftware/operaprestodriver,operasoftware/operaprestodriver | /*
Copyright 2008-2011 Opera Software ASA
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,... | src/com/opera/core/systems/scope/stp/StpConnection.java | /*
Copyright 2008-2011 Opera Software ASA
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,... | Reducing log message to FINE
| src/com/opera/core/systems/scope/stp/StpConnection.java | Reducing log message to FINE | <ide><path>rc/com/opera/core/systems/scope/stp/StpConnection.java
<ide>
<ide> if (readSize < 0) {
<ide> try {
<del> logger.log(Level.INFO, "Channel closed : {0}",
<del> socketChannel.socket().getInetAddress().getHostName());
<add> logger.log(Level.FINE, "Channel c... | |
Java | apache-2.0 | 9ba4e3f5b554cac2cf61e977e439f61531095123 | 0 | freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM | /*
* Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
*
* 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... | modules/regex/src/main/java/java/util/regex/NonCapFSet.java | /*
* Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
*
* 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... | Apply patch HARMONY-674 (Pattern throws ArrayIndexOutOfBoundsException when mathching regexp)
svn path=/incubator/harmony/enhanced/classlib/trunk/; revision=418840
| modules/regex/src/main/java/java/util/regex/NonCapFSet.java | Apply patch HARMONY-674 (Pattern throws ArrayIndexOutOfBoundsException when mathching regexp) | <ide><path>odules/regex/src/main/java/java/util/regex/NonCapFSet.java
<ide> MatchResultImpl matchResult) {
<ide>
<ide> int gr = getGroupIndex();
<del> int end = matchResult.getEnd(gr);
<ide> matchResult.setConsumed(gr, stringIndex - matchResult.getConsumed(gr));
<ide>
<del> i... | |
Java | lgpl-2.1 | f5fca4ac2b3545dfe513798c3f08a9c76d483539 | 0 | pentaho/pentaho-commons-xul | package org.pentaho.ui.xul.swt.tags;
import java.beans.Expression;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.dnd.... | pentaho-xul-swt/src/org/pentaho/ui/xul/swt/tags/SwtListbox.java | package org.pentaho.ui.xul.swt.tags;
import java.beans.Expression;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.dnd.... | [AGILEBI-406] firing selectedIndex events on programatic selection
| pentaho-xul-swt/src/org/pentaho/ui/xul/swt/tags/SwtListbox.java | [AGILEBI-406] firing selectedIndex events on programatic selection | <ide><path>entaho-xul-swt/src/org/pentaho/ui/xul/swt/tags/SwtListbox.java
<ide>
<ide> @Override
<ide> public void widgetSelected(SelectionEvent arg0) {
<del> int[] indices = listBox.getSelectionIndices();
<del> SwtListbox.this.changeSupport.firePropertyChange("selectedIndices", curSelectedInd... | |
Java | mit | 10e96b93501b57741a7e24f65a8b752ee47f0405 | 0 | conveyal/r5,conveyal/r5,conveyal/r5,conveyal/r5,conveyal/r5 | package com.conveyal.r5.streets;
import com.conveyal.r5.api.util.LegMode;
import com.conveyal.r5.profile.StreetMode;
import com.conveyal.r5.profile.ProfileRequest;
import com.conveyal.r5.transit.TransitLayer;
import com.conveyal.r5.util.TIntObjectHashMultimap;
import com.conveyal.r5.util.TIntObjectMultimap;
import gnu... | src/main/java/com/conveyal/r5/streets/StreetRouter.java | package com.conveyal.r5.streets;
import com.conveyal.r5.api.util.LegMode;
import com.conveyal.r5.profile.StreetMode;
import com.conveyal.r5.profile.ProfileRequest;
import com.conveyal.r5.transit.TransitLayer;
import com.conveyal.r5.util.TIntObjectHashMultimap;
import com.conveyal.r5.util.TIntObjectMultimap;
import gnu... | don't put negative edges in bestStates map.
| src/main/java/com/conveyal/r5/streets/StreetRouter.java | don't put negative edges in bestStates map. | <ide><path>rc/main/java/com/conveyal/r5/streets/StreetRouter.java
<ide>
<ide> printStream.println(String.format("%.6f,%.6f,%d", v.getLat(), v.getLon(), s0.weight));
<ide> }
<del> if (bestStatesAtEdge.containsKey(s0.backEdge)) {
<del> for (State state : bestStatesAt... | |
JavaScript | mit | 27285843118f1e405ac57cfb137c05e8c22f3a07 | 0 | GreenImp/rpg-dice-roller | /*global beforeEach, describe, DiceRoller, expect, jasmine, it */
;(function(){
'use strict';
var utils = {
/**
* Reduces an array to a single value
*
* @param obj
* @returns {*}
*/
reduceArray: function(obj){
if(Array.isArray(obj)){
return obj.reduce(function(a, b){
... | tests/dice-roll.test.js | /*global beforeEach, describe, DiceRoller, expect, jasmine, it */
;(function(){
'use strict';
var utils = {
/**
* Reduces an array to a single value
*
* @param obj
* @returns {*}
*/
reduceArray: function(obj){
if(Array.isArray(obj)){
return obj.reduce(function(a, b){
... | Updates empty log test
| tests/dice-roll.test.js | Updates empty log test | <ide><path>ests/dice-roll.test.js
<ide>
<ide> it('should be no dice rolled', function(){
<ide> expect(diceRoller).not.toHaveLogLength();
<del> expect(diceRoller + '').toEqual('No dice rolled');
<add> expect(diceRoller.getNotation()).toEqual('');
<ide> });
<ide>
<ide> it('should have 1 dice... | |
Java | lgpl-2.1 | 32dc59d4838476b092960340687f4858f66fb2ea | 0 | simoc/mapyrus,simoc/mapyrus,simoc/mapyrus | /*
* This file is part of Mapyrus, software for plotting maps.
* Copyright (C) 2003 - 2011 Simon Chenery.
*
* Mapyrus is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the Licens... | src/org/mapyrus/function/FunctionTable.java | /*
* This file is part of Mapyrus, software for plotting maps.
* Copyright (C) 2003 - 2011 Simon Chenery.
*
* Mapyrus is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the Licens... | Add Chr function.
| src/org/mapyrus/function/FunctionTable.java | Add Chr function. | <ide><path>rc/org/mapyrus/function/FunctionTable.java
<ide> f = new Ceil();
<ide> mFunctions.put(f.getName(), f);
<ide>
<add> f = new Chr();
<add> mFunctions.put(f.getName(), f);
<add>
<ide> f = new Cos();
<ide> mFunctions.put(f.getName(), f);
<ide> | |
Java | apache-2.0 | ca334097faed6f27a77dc7a53fd7ec8aea26bffc | 0 | mjl68/FallAssistant,mjl68/FallAssistant,vaibhav-jani/FallAssistant,vaibhav-jani/FallAssistant | package com.falldetect2015.android.fallassistant;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
imp... | Application/src/main/java/com/falldetect2015/android/fallassistant/PrefsActivity.java | package com.falldetect2015.android.fallassistant;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
imp... | updated prefsActivity
| Application/src/main/java/com/falldetect2015/android/fallassistant/PrefsActivity.java | updated prefsActivity | <ide><path>pplication/src/main/java/com/falldetect2015/android/fallassistant/PrefsActivity.java
<ide> titleTV = (TextView) findViewById(R.id.settingsTV);
<ide> titleTV.setText(getString(R.string.options_message));
<ide> titleTV.invalidate();
<del> //sensorMax.setMax(40);
<ide> sen... | |
Java | mit | 9545b4bba897f352977c1ba72bfc9dd8349bd2cf | 0 | oxguy3/AwesomeProxy | import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enume... | src/ProxyServer.java | import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enume... | refactoring
| src/ProxyServer.java | refactoring | <ide><path>rc/ProxyServer.java
<ide> volatile static boolean isProxyActive;
<ide>
<ide>
<del> Socket server; // connection to client
<del> BufferedReader buff; // client -> proxy
<del> DataOutputStream dos; // proxy -> client
<del>
<del> Socket client; // connection to remote
<del> DataInputStream remoteDis; // r... | |
JavaScript | mit | eb57b35089d0d361df6a1f9488c2461258a1507e | 0 | sinsinpub/KC3Kai,KC3Kai/KC3Kai,sinsinpub/KC3Kai,KC3Kai/KC3Kai,KC3Kai/KC3Kai,dragonjet/KC3Kai,DynamicSTOP/KC3Kai,sinsinpub/KC3Kai,dragonjet/KC3Kai,DynamicSTOP/KC3Kai,DynamicSTOP/KC3Kai | /* SortieManager.js
KC3改 Sortie Manager
Stores and manages states and functions during sortie of fleets (including PvP battle).
*/
(function(){
"use strict";
window.KC3SortieManager = {
onSortie: false,
onPvP: false,
onCat: false,
fleetSent: 1,
map_world: 0,
map_num: 0,
map_difficulty:... | src/library/managers/SortieManager.js | /* SortieManager.js
KC3改 Sortie Manager
Stores and manages states and functions during sortie of fleets (including PvP battle).
*/
(function(){
"use strict";
window.KC3SortieManager = {
onSortie: false,
onPvP: false,
onCat: false,
fleetSent: 1,
map_world: 0,
map_num: 0,
map_difficulty:... | Safe to advance for map end nodes
| src/library/managers/SortieManager.js | Safe to advance for map end nodes | <ide><path>rc/library/managers/SortieManager.js
<ide> // To check Taiha correctly on battle result screen, have to apply predicted afterHp first (invoke `#applyShipsAfterHp`)
<ide> let hasTaihaShip = false;
<ide> let isForcedToRetreat = false;
<add> let isSafeToAdvance = false;
<add> // No Taiha blocker ne... | |
Java | apache-2.0 | 4be74fb68fc95ec60b10394e17ab637cbc994974 | 0 | atcult/mod-cataloging,atcult/mod-cataloging,atcult/mod-cataloging | package org.folio.cataloging.resources;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.folio.cataloging.Global;
import org.folio.catalogi... | src/main/java/org/folio/cataloging/resources/RecordTemplateAPI.java | package org.folio.cataloging.resources;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.folio.cataloging.Global;
import org.folio.catalogi... | Update RecordTemplateAPI.java | src/main/java/org/folio/cataloging/resources/RecordTemplateAPI.java | Update RecordTemplateAPI.java | <ide><path>rc/main/java/org/folio/cataloging/resources/RecordTemplateAPI.java
<ide> * @author carment
<ide> */
<ide> @RestController
<add>@CrossOrigin("http://localhost:3000")
<ide> @Api(value = "modcat-api", description = "Record template resource API")
<ide> @RequestMapping(value = ModCataloging.BASE_URI, produces ... | |
JavaScript | mit | d1c093ee3e638fdbcf7cdf8855d2094c00ab0d01 | 0 | neusdq/www,neusdq/www,neusdq/www,neusdq/www,neusdq/www | $(document).ready(function () {
$(".chzn_a").chosen({
allow_single_deselect: true
});
//成功提示框设置
$('#alert-success').modal({
backdrop: false,
show: false
});
//监听radio事件
$('input[name="g_type"]:radio').change(function () {
var value = $(this).val();
if... | res/goods_manage/add_goods.js | $(document).ready(function () {
$(".chzn_a").chosen({
allow_single_deselect: true
});
//成功提示框设置
$('#alert-success').modal({
backdrop: false,
show: false
});
//监听radio事件
$('input[name="g_type"]:radio').change(function () {
var value = $(this).val();
if... | fix bug
| res/goods_manage/add_goods.js | fix bug | <ide><path>es/goods_manage/add_goods.js
<ide> }, function (ret) {
<ide> var d = $.parseJSON(ret);
<ide> if (d.errCode == 0) {
<del> alertSuccess("#alert-success", '/goods_manage/add_goods');
<add> alertSuccess("#alert-success", '/... | |
JavaScript | mit | 376972d41790637b6ef35eb04ee5d6cb4a14c29c | 0 | ewoudj/game,ewoudj/game,ewoudj/game | /*
* Engine
*/
if(typeof(require) !== 'undefined'){
var helpers = require("./helpers").helpers;
}
var engine = function(config){
helpers.apply({
debug : false,
width : 800,
height : 600,
pageColor : '#555',
canvasColor : '#000',
crosshair : true
}, this);
helpers.apply(config, this);
if(this.mode ... | static/laserwar/engine.js | /*
* Engine
*/
if(typeof(require) !== 'undefined'){
var helpers = require("./helpers").helpers;
}
var engine = function(config){
helpers.apply({
debug : false,
width : 800,
height : 600,
pageColor : '#555',
canvasColor : '#000',
crosshair : true
}, this);
helpers.apply(config, this);
if(this.mode ... | Rules object is now referenced by the engine
| static/laserwar/engine.js | Rules object is now referenced by the engine | <ide><path>tatic/laserwar/engine.js
<ide> this.previousControllerMessageTime = 0;
<ide> this.remoteDataString = [];
<ide> if(this.rulesType){
<del> this.add(new this.rulesType({engine: this}));
<add> this.rules = new this.rulesType({engine: this});
<add> this.add(this.rules);
<ide> }
<ide>
<ide> if(this.mode ... | |
Java | apache-2.0 | b992a08822a1d5536ef91120d577d64bf6683e75 | 0 | signed/intellij-community,xfournet/intellij-community,michaelgallacher/intellij-community,michaelgallacher/intellij-community,idea4bsd/idea4bsd,xfournet/intellij-community,allotria/intellij-community,allotria/intellij-community,FHannes/intellij-community,FHannes/intellij-community,semonte/intellij-community,da1z/intell... | /*
* 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/codeInsight/hint/ParameterInfoController.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... | PY-9516 Wrong current parameter info popup position with caret on indented line
| platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoController.java | PY-9516 Wrong current parameter info popup position with caret on indented line | <ide><path>latform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoController.java
<ide> short position = tooltip != null
<ide> ? toShort(tooltip.getPreferredPosition())
<ide> : HintManager.UNDER;
<del> Pair<Point, Short> pos = myProvider.getBest... | |
JavaScript | mit | 836cee3094a9f1c803a258b68d771c0e846b31cf | 0 | ColorfulCakeChen/query-submit-canvas,ColorfulCakeChen/query-submit-canvas | export { Params, Base };
import * as ValueMax from "../ValueMax.js";
import * as ValueDesc from "../Unpacker/ValueDesc.js";
import * as ParamDesc from "../Unpacker/ParamDesc.js";
import * as Weights from "../Unpacker/Weights.js";
import * as ReturnOrClone from "./ReturnOrClone.js";
import * as Pointwise from "./Pointw... | CNN/Conv/PointDepthPoint.js | export { Params, Base };
import * as ValueMax from "../ValueMax.js";
import * as ValueDesc from "../Unpacker/ValueDesc.js";
import * as ParamDesc from "../Unpacker/ParamDesc.js";
import * as Weights from "../Unpacker/Weights.js";
import * as ReturnOrClone from "./ReturnOrClone.js";
import * as Pointwise from "./Pointw... | Update PointDepthPoint.js | CNN/Conv/PointDepthPoint.js | Update PointDepthPoint.js | <ide><path>NN/Conv/PointDepthPoint.js
<ide> * @member {number} inChannels1
<ide> * The channel count of the second input tensor (i.e. inputTensors[ 1 ]). This is the same as this.channelCount1_pointwise1Before (from initer()).
<ide> *
<del>
<del>//!!! ...unfinished... (2021/08/22) What outChannels0, outChannels1, ... | |
JavaScript | bsd-3-clause | f3660e26a19bda2ed0152b56055cd3636a7a5e84 | 0 | sakuragitevil/sakura,sakuragitevil/sakura | /**
* Created by VuThuan on 4/17/2016.
*/
(function ($) {
$.fn.yiiXhr2Upload = function (method) {
var yiiXhr2UploadView = {
id: '',
url: '',
dlg: 'dlgXhr2Upload',
init: function (options) {
yiiXhr2UploadView.id = options.id;
... | common/widgets/sakura/assets/js/jquery.xhr2.js | /**
* Created by VuThuan on 4/17/2016.
*/
(function ($) {
$.fn.yiiXhr2Upload = function (method) {
var yiiXhr2UploadView = {
id: '',
url: '',
dlg: 'dlgXhr2Upload',
init: function (options) {
yiiXhr2UploadView.id = options.id;
... | Thuan-20160421-8:07AM
| common/widgets/sakura/assets/js/jquery.xhr2.js | Thuan-20160421-8:07AM | <ide><path>ommon/widgets/sakura/assets/js/jquery.xhr2.js
<ide> return false;
<ide> }
<ide> };
<del>
<ide> })(jQuery); | |
Java | apache-2.0 | 08fa28be1c7dc5a8c6e36e72cf7a904b36cbf477 | 0 | gk-brown/HTTP-RPC,gk-brown/HTTP-RPC,gk-brown/WebRPC,gk-brown/WebRPC,gk-brown/WebRPC,gk-brown/HTTP-RPC,gk-brown/WebRPC,gk-brown/WebRPC,gk-brown/WebRPC | /*
* 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
* distribute... | Server/Java/httprpc-server/src/org/httprpc/RequestDispatcherServlet.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
* distribute... | Move depth to member variable in JSONSerializer.
| Server/Java/httprpc-server/src/org/httprpc/RequestDispatcherServlet.java | Move depth to member variable in JSONSerializer. | <ide><path>erver/Java/httprpc-server/src/org/httprpc/RequestDispatcherServlet.java
<ide> }
<ide>
<ide> class JSONSerializer extends Serializer<Object> {
<add> int depth = 0;
<add>
<ide> @Override
<ide> void writeValue(PrintWriter writer, Object value) throws IOException {
<del> writeValue(writer, val... | |
Java | mit | 6c97bf4d155c9bdb5d7da5f1e6e4e9cdb80ec4b6 | 0 | senilica/LostVaults,senilica/LostVaults | package lostvaults.client;
import javax.swing.*;
import javax.swing.JDialog;
import java.awt.*;
import java.awt.event.*;
public class GUI {
String name;
int screenWidth;
int screenHeight;
JTextArea dynamicInfo = new JTextArea();
JTextField commandInputField = new JTextField();
JTextArea d... | src/lostvaults/client/GUI.java | package lostvaults.client;
import javax.swing.*;
import javax.swing.JDialog;
import java.awt.*;
import java.awt.event.*;
public class GUI {
String name;
int screenWidth;
int screenHeight;
JTextArea dynamicInfo = new JTextArea();
JTextField commandInputField = new JTextField();
JTextArea d... | Hejsan
| src/lostvaults/client/GUI.java | Hejsan | <ide><path>rc/lostvaults/client/GUI.java
<ide> window = _window;
<ide>
<ide> //Setting up the fields
<del> new BorderLayout();
<ide> button = new JButton("OK");
<ide> button.addActionListener(this);
<ide> button.setBackground(mediumBackground);
<ide> IP.add(IPInput, BorderLayout.C... | |
Java | mit | a6cdb41d63e2d02d39b0c2b062fd535d30a33b60 | 0 | Rydog101/TurtleMod | package me.thegeekyguy101.TurtleMod.entity;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.logging.Level;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityEggInfo;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityIt... | common/me/thegeekyguy101/TurtleMod/entity/customEntityList.java | package me.thegeekyguy101.TurtleMod.entity;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.logging.Level;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityEggInfo;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityIt... | Changed spawn egg colours
| common/me/thegeekyguy101/TurtleMod/entity/customEntityList.java | Changed spawn egg colours | <ide><path>ommon/me/thegeekyguy101/TurtleMod/entity/customEntityList.java
<ide> addMapping(EntityItem.class, "Item", 1);
<ide> addMapping(EntityLiving.class, "Mob", 48);
<ide> addMapping(EntityMob.class, "Monster", 49);
<del> addMapping(EntityTurtle.class, "Turtle", 351, 0x6F9DD1, 0x7AD16... | |
JavaScript | mit | 17c3fef721eda310302e858b71c8340b9eea1ae2 | 0 | Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd | require.paths.unshift('test/js/lib/modules-test');
let test = require('test'),
asserts = test.asserts;
exports.test_RequireId = function () {
// Not sure what require.id should be. it ceratinly shouldn't be 'system'
asserts.same(require.id, "modules");
}
exports.test_InstanceOf = function () {
var a1 = re... | test/js/modules.js | require.paths.unshift('test/js/lib/modules-test');
let test = require('test'),
asserts = test.asserts;
exports.test_RequireId = function () {
// Not sure what require.id should be. it ceratinly shouldn't be 'system'
asserts.same(require.id, "modules");
}
exports.test_InstanceOf = function () {
var a1 = re... | tests: remove unneeded print | test/js/modules.js | tests: remove unneeded print | <ide><path>est/js/modules.js
<ide> }
<ide>
<ide> if (require.main == module)
<del> print(test.runner(exports));
<add> test.runner(exports); | |
Java | cc0-1.0 | 8a5129a5df28edbe4596b661b2fb75e16acef30c | 0 | KhorneSyrup/PolyMath | main/java/KhorneSyrup/PolyMath/Common/network/PacketSyncPolyMath.java | package KhorneSyrup.PolyMath.Common.network;
import io.netty.buffer.ByteBuf;
import java.io.IOException;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.network.PacketBuffer;
import net.minecraft.world.World;
im... | Delete PacketSyncPolyMath.java | main/java/KhorneSyrup/PolyMath/Common/network/PacketSyncPolyMath.java | Delete PacketSyncPolyMath.java | <ide><path>ain/java/KhorneSyrup/PolyMath/Common/network/PacketSyncPolyMath.java
<del>package KhorneSyrup.PolyMath.Common.network;
<del>
<del>import io.netty.buffer.ByteBuf;
<del>
<del>import java.io.IOException;
<del>
<del>import net.minecraft.entity.Entity;
<del>import net.minecraft.entity.player.EntityPlayer;
<del>im... | ||
JavaScript | mit | 4b97d3a6e051e5d00eeaa04bf97faa4496a76373 | 0 | superjudge/paper.js,legendvijay/paper.js,mcanthony/paper.js,iconexperience/paper.js,li0t/paper.js,li0t/paper.js,lehni/paper.js,superjudge/paper.js,nancymark/paper.js,baiyanghese/paper.js,EskenderDev/paper.js,byte-foundry/paper.js,JunaidPaul/paper.js,baiyanghese/paper.js,proofme/paper.js,EskenderDev/paper.js,mcanthony/p... | /*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
/**
* A func... | src/svg/SVGImport.js | /*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
/**
* A func... | Make sure that the default SVG settings are not lost on import.
| src/svg/SVGImport.js | Make sure that the default SVG settings are not lost on import. | <ide><path>rc/svg/SVGImport.js
<ide>
<ide> // Importer functions for various SVG node types
<ide>
<del> function importGroup(node, type, options) {
<add> function importGroup(node, type, isRoot, options) {
<ide> var nodes = node.childNodes,
<ide> clip = type === 'clippath',
<ide> item = new Group(),
<ide> ... | |
Java | apache-2.0 | 8ea8e37e24283142985e9a466cf584e2617cfe9b | 0 | Stratio/stratio-connector-cassandra,Stratio/stratio-connector-cassandra | /*
* Licensed to STRATIO (C) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. The STRATIO (C) licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file... | cassandra-connector/src/main/java/com/stratio/connector/cassandra/CassandraConnector.java | /*
* Licensed to STRATIO (C) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. The STRATIO (C) licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file... | Fix to send manifest to crossdata
| cassandra-connector/src/main/java/com/stratio/connector/cassandra/CassandraConnector.java | Fix to send manifest to crossdata | <ide><path>assandra-connector/src/main/java/com/stratio/connector/cassandra/CassandraConnector.java
<ide> import java.io.FileInputStream;
<ide> import java.io.IOException;
<ide> import java.io.InputStream;
<add>import java.io.StringWriter;
<ide> import java.util.ArrayList;
<ide> import java.util.HashMap;
<ide> import j... | |
Java | apache-2.0 | 27ecdccae85c147908ef85b1f78584064211f8d0 | 0 | dimagi/commcare-android,dimagi/commcare-android,dimagi/commcare-android,dimagi/commcare-android,dimagi/commcare-android,dimagi/commcare-android | package org.commcare.views.media;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.media.MediaPlayer;
import android.net.Uri;
import android.support.annotation.IdRes;
import android.util.DisplayMetrics;
impor... | app/src/org/commcare/views/media/MediaLayout.java | package org.commcare.views.media;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.media.MediaPlayer;
import android.net.Uri;
import android.support.annotation.IdRes;
import android.util.DisplayMetrics;
impor... | Use ints marked as resources
| app/src/org/commcare/views/media/MediaLayout.java | Use ints marked as resources | <ide><path>pp/src/org/commcare/views/media/MediaLayout.java
<ide> @IdRes
<ide> public static final int INLINE_VIDEO_PANE_ID = 99999;
<ide>
<add> @IdRes
<add> private static final int QUESTION_TEXT_PANE_ID = 2342134;
<add>
<add> @IdRes
<add> private static final int AUDIO_BUTTON_ID = 3245345;
<add>
... | |
Java | mit | da1f1bbec4285eb595205e26a5109e567157ac48 | 0 | thelinmichael/spotify-web-api-java,thelinmichael/spotify-web-api-java | package com.wrapper.spotify.enums;
import java.util.HashMap;
import java.util.Map;
/**
* An enumeration with the two modality types.
*
* @see <a href="https://en.wikipedia.org/wiki/Mode_(music)">Wikipedia: Mode (Music)</a>
*/
public enum Modality {
MINOR(0),
MAJOR(1);
public final int mode;
private stat... | src/main/java/com/wrapper/spotify/enums/Modality.java | package com.wrapper.spotify.enums;
/**
* An enumeration with the two modality types.
*
* @see <a href="https://en.wikipedia.org/wiki/Mode_(music)">Wikipedia: Mode (Music)</a>
*/
public enum Modality {
MINOR(0),
MAJOR(1);
public final int mode;
Modality(final int mode) {
this.mode = mode;
}
/**
... | Enum Mapping
+ Modality map to enable value -> key resolution | src/main/java/com/wrapper/spotify/enums/Modality.java | Enum Mapping | <ide><path>rc/main/java/com/wrapper/spotify/enums/Modality.java
<ide> package com.wrapper.spotify.enums;
<add>
<add>import java.util.HashMap;
<add>import java.util.Map;
<ide>
<ide> /**
<ide> * An enumeration with the two modality types.
<ide> MAJOR(1);
<ide>
<ide> public final int mode;
<add> private static Map... | |
Java | mit | d0a6ebe51463a9a057a3c9df624154a5e6caea19 | 0 | touist/touist,touist/touist,olzd/touist,olzd/touist,olzd/touist,touist/touist,FredMaris/touist,FredMaris/touist,FredMaris/touist,touist/touist | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package gui.editionView;
import gui.MainFrame;
import gui.State;
import gui.editionView.editor.Editor;
import java.awt.event.ActionEve... | ui/gui/editionView/InsertionButton.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package gui.editionView;
import gui.MainFrame;
import gui.State;
import gui.editionView.editor.Editor;
import java.awt.event.ActionEve... | #36 Added private attribute for InsertionButton, recording the delimiters of the snippets for each formula.
Changed insertAtCaret method, to increase performance (setText entirely remove the text then insert the new one, creating a remove event (making snippets informations lost) and an insert event). | ui/gui/editionView/InsertionButton.java | #36 Added private attribute for InsertionButton, recording the delimiters of the snippets for each formula. Changed insertAtCaret method, to increase performance (setText entirely remove the text then insert the new one, creating a remove event (making snippets informations lost) and an insert event). | <ide><path>i/gui/editionView/InsertionButton.java
<ide> import gui.editionView.editor.Editor;
<ide> import java.awt.event.ActionEvent;
<ide> import java.awt.event.ActionListener;
<add>import java.util.ArrayList;
<ide> import javax.swing.JButton;
<ide>
<ide> /**
<ide>
<ide> private final Editor editorTextArea;... | |
JavaScript | mit | 6e0ee1348189f623847c100700c482cf72b78d1b | 0 | jmccutchanwd/nutalk,jmccutchanwd/nutalk,jmccutchanwd/nutalk | /* John McCutchan ========================================= */
console.log('ChatCtrl-on');
app.controller('ChatCtrl', function($location, $scope, $rootScope, PostServices, LoginServices, userUID){ // arg 1 is name of control, arg 2 is function with scope name
$scope.name = $rootScope.name;
//get uid and assign it t... | app/controllers/chat.js | /* John McCutchan ========================================= */
console.log('ChatCtrl-on');
app.controller('ChatCtrl', function($location, $scope, $rootScope, PostServices, LoginServices, userUID){ // arg 1 is name of control, arg 2 is function with scope name
$scope.name = $rootScope.name;
//get uid and assign it t... | removed console.log
| app/controllers/chat.js | removed console.log | <ide><path>pp/controllers/chat.js
<ide> //assign local $scope uid to global scope
<ide> $rootScope.uid = $scope.uid
<ide> console.log("$rootScope UID: ",$rootScope.uid)
<del> //check to see name is global
<del> console.log("Test2: ", $rootScope.name)
<ide> //build chat object
<ide> $scope.chat = {
<ide> ... | |
Java | apache-2.0 | fc603092a08e308caff5ff7bfd356879bb907b71 | 0 | microcks/microcks,microcks/microcks,microcks/microcks,microcks/microcks,microcks/microcks | /*
* Licensed to Laurent Broudoux (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not... | webapp/src/main/java/io/github/microcks/web/RestController.java | /*
* Licensed to Laurent Broudoux (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not... | feat: #659 santize trailing / if any
| webapp/src/main/java/io/github/microcks/web/RestController.java | feat: #659 santize trailing / if any | <ide><path>ebapp/src/main/java/io/github/microcks/web/RestController.java
<ide> if (resourcePath.contains("+")) {
<ide> resourcePath = resourcePath.replace("+", "%20");
<ide> }
<add> // Remove trailing '/' if any.
<add> String trimmedResourcePath = resourcePath;
<add> if (trimmedReso... | |
Java | mit | 654b30ede5455c20c0a21ea380fcd521819f2c29 | 0 | VeryGame/gdx-surface | package de.verygame.square.core.scene2d.widget;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.Matrix4;
import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup;
import com.badlogic.gdx.scenes.scene2d.utils.Drawable;
/**
* @author Rico Schrage
*/
public... | scene2d/widget/Panel.java | package de.verygame.square.core.scene2d.widget;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup;
import com.badlogic.gdx.scenes.scene2d.utils.Drawable;
/**
* @author Rico Schrage
*/
public class Panel extends WidgetGroup {
... | Made panel transformation more stable.
| scene2d/widget/Panel.java | Made panel transformation more stable. | <ide><path>cene2d/widget/Panel.java
<ide>
<ide> import com.badlogic.gdx.graphics.Color;
<ide> import com.badlogic.gdx.graphics.g2d.Batch;
<add>import com.badlogic.gdx.math.Matrix4;
<ide> import com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup;
<ide> import com.badlogic.gdx.scenes.scene2d.utils.Drawable;
<ide>
<ide>
<i... | |
Java | lgpl-2.1 | 50769f90a48fc15422e6e5e4fa602f3b1b11ca82 | 0 | OPENDAP/olfs,OPENDAP/olfs,OPENDAP/olfs,OPENDAP/olfs,OPENDAP/olfs,OPENDAP/olfs | /*
* /////////////////////////////////////////////////////////////////////////////
* // This file is part of the "Hyrax Data Server" project.
* //
* //
* // Copyright (c) 2013 OPeNDAP, Inc.
* // Author: Nathan David Potter <ndp@opendap.org>
* //
* // This library is free software; you can redistribute it and/o... | src/opendap/io/ChunkedInputStream.java | /*
* /////////////////////////////////////////////////////////////////////////////
* // This file is part of the "Hyrax Data Server" project.
* //
* //
* // Copyright (c) 2013 OPeNDAP, Inc.
* // Author: Nathan David Potter <ndp@opendap.org>
* //
* // This library is free software; you can redistribute it and/o... | hack 1a
| src/opendap/io/ChunkedInputStream.java | hack 1a | <ide><path>rc/opendap/io/ChunkedInputStream.java
<ide> public int readChunkHeader() throws IOException {
<ide> if(isClosed) throw new IOException("Cannot read from a closed stream.");
<ide>
<del> log.debug(NewPPTClient.showConnectionProperties(_mySock));
<add> log.info(NewPPTClient.showConnec... | |
Java | agpl-3.0 | 3853f9b017901847d444c9a0d7c4f8cdf51b9144 | 0 | jspacco/Knoxcraft,jspacco/Knoxcraft,jspacco/Knoxcraft,jspacco/Knoxcraft,jspacco/Knoxcraft | package edu.knox.minecraft.serverturtle;
import net.canarymod.Canary;
import net.canarymod.api.world.World;
import net.canarymod.api.world.blocks.BlockType;
import net.canarymod.api.world.position.Direction;
import net.canarymod.api.world.position.Position;
import net.canarymod.chat.MessageReceiver;
import net.canarym... | Turtles3D/src/edu/knox/minecraft/serverturtle/TurtleAPI.java | package edu.knox.minecraft.serverturtle;
import net.canarymod.Canary;
import net.canarymod.api.world.World;
import net.canarymod.api.world.blocks.BlockType;
import net.canarymod.api.world.position.Direction;
import net.canarymod.api.world.position.Position;
import net.canarymod.chat.MessageReceiver;
import net.canarym... | undid comments- still broke
| Turtles3D/src/edu/knox/minecraft/serverturtle/TurtleAPI.java | undid comments- still broke | <ide><path>urtles3D/src/edu/knox/minecraft/serverturtle/TurtleAPI.java
<ide> import net.canarymod.plugin.Plugin;
<ide> import net.canarymod.plugin.PluginListener;
<ide>
<del>//import org.json.simple.JSONArray;
<del>//import org.json.simple.JSONObject;
<del>//import org.json.simple.parser.JSONParser;
<del>//import org.... | |
Java | apache-2.0 | d98d80f031f46be0aad4a92c2e5266504acbc44a | 0 | millmanorama/autopsy,dgrove727/autopsy,APriestman/autopsy,APriestman/autopsy,millmanorama/autopsy,wschaeferB/autopsy,narfindustries/autopsy,wschaeferB/autopsy,rcordovano/autopsy,APriestman/autopsy,wschaeferB/autopsy,rcordovano/autopsy,wschaeferB/autopsy,esaunders/autopsy,APriestman/autopsy,APriestman/autopsy,dgrove727/... | /*
* Autopsy Forensic Browser
*
* Copyright 2011-2016 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... | Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByMimeType.java | /*
* Autopsy Forensic Browser
*
* Copyright 2011-2016 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... | 2306 File Types Tree will no longer blow up and disappear with non standard mimeTypes
| Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByMimeType.java | 2306 File Types Tree will no longer blow up and disappear with non standard mimeTypes | <ide><path>ore/src/org/sleuthkit/autopsy/datamodel/FileTypesByMimeType.java
<ide> final String mime_type = resultSet.getString("mime_type"); //NON-NLS
<ide> if (!mime_type.isEmpty()) {
<ide> String mimeType[] = mime_type.split("/");
<del> ... | |
JavaScript | mit | 2669f9fdc26788e0148c2e3ffa6b55c537d791e0 | 0 | florinn/typemoq,florinn/typemoq,florinn/typemoq | var fs = require('fs');
module.exports = function (config) {
// Use ENV vars on Travis and sauce.json locally to get credentials
if (!process.env.SAUCE_USERNAME) {
if (!fs.existsSync('sauce.json')) {
console.log('Create a sauce.json with your credentials based on the sauce-sample.json file... | karma.conf-ci.js | var fs = require('fs');
module.exports = function (config) {
// Use ENV vars on Travis and sauce.json locally to get credentials
if (!process.env.SAUCE_USERNAME) {
if (!fs.existsSync('sauce.json')) {
console.log('Create a sauce.json with your credentials based on the sauce-sample.json file... | BREAKING CHANGE: drop support for IE9, IE10 due to missing Object.setPrototypeOf
| karma.conf-ci.js | BREAKING CHANGE: drop support for IE9, IE10 due to missing Object.setPrototypeOf | <ide><path>arma.conf-ci.js
<ide> 'SL_Firefox': {
<ide> base: 'SauceLabs',
<ide> browserName: 'firefox'
<del> },
<del> 'SL_IE_9': {
<del> base: 'SauceLabs',
<del> browserName: 'internet explorer',
<del> version: '9'
<del> },
<del> ... | |
Java | apache-2.0 | 29e7e9ba0a0a05601d81535f383ffb0b3f642fd8 | 0 | finmath/finmath-lib,finmath/finmath-lib | /*
* (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: email@christianfries.com.
*
* Created on 15.06.2016
*/
package net.finmath.montecarlo.assetderivativevaluation;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
import net.finmath.excepti... | src/test/java/net/finmath/montecarlo/assetderivativevaluation/MonteCarloBlackScholesModelDigitalOptionSensitivitiesTest.java | /*
* (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: email@christianfries.com.
*
* Created on 15.06.2016
*/
package net.finmath.montecarlo.assetderivativevaluation;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
import net.finmath.excepti... | Added benchmark for rho and vega. | src/test/java/net/finmath/montecarlo/assetderivativevaluation/MonteCarloBlackScholesModelDigitalOptionSensitivitiesTest.java | Added benchmark for rho and vega. | <ide><path>rc/test/java/net/finmath/montecarlo/assetderivativevaluation/MonteCarloBlackScholesModelDigitalOptionSensitivitiesTest.java
<ide> private final double modelVolatility = 0.30;
<ide>
<ide> // Process discretization properties
<del> private final int numberOfPaths = 20000;
<add> private final int numb... | |
JavaScript | mit | 360d4b6df9eb05333b66e31278f126493092d667 | 0 | nchelluri/qsutil,nchelluri/qsutil | var QsUtil = (function() {
var queryStringParams = function(queryString) {
var params = {};
if (queryString.length == 0) {
return params;
}
var indicatorIndex = queryString.indexOf('?');
if (indicatorIndex !== -1) {
queryString = queryString.slice(ind... | qsutil.js | var QsUtil = (function() {
var queryStringParams = function(queryString) {
var params = {};
if (queryString.length == 0) {
return params;
}
var indicatorIndex = queryString.indexOf('?');
if (indicatorIndex !== -1) {
queryString = queryString.slice(ind... | Added TODO
| qsutil.js | Added TODO | <ide><path>sutil.js
<ide> return url + queryString;
<ide> };
<ide>
<add> // TODO: Find a way to test this.
<ide> var replaceLocation = function(url) {
<ide> window.history.replaceState({}, '', url);
<ide> }; | |
JavaScript | mit | 270c2960b2379634a32aad7a2b73c3cb6dbf8867 | 0 | aaroncox/chainbb,aaroncox/chainbb | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'
import { Button, Grid, Header, Icon, Menu, Message, Segment, Table } from 'semantic-ui-react'
import * as accountActions from '../../actions/accountActions'
import * as forumActions from '../../actions/forumAc... | services/frontend/src/containers/forum/create.js | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'
import { Button, Grid, Header, Icon, Menu, Message, Segment, Table } from 'semantic-ui-react'
import * as accountActions from '../../actions/accountActions'
import * as forumActions from '../../actions/forumAc... | Remove subforums row (not available in MVP)
| services/frontend/src/containers/forum/create.js | Remove subforums row (not available in MVP) | <ide><path>ervices/frontend/src/containers/forum/create.js
<ide> <Icon size='big' name='checkmark box' color='green' />
<ide> </Table.Cell>
<ide> </Table.Row>
<del> <Table.Row>
<add> {/* <Ta... | |
JavaScript | mit | 7a370fb56cc9a67356d005877eca1ea7f7d066f9 | 0 | shrikrishnaholla/nptel-micronotes | var mysql = require('mysql');
var crypto = require('crypto');
var salt = 'F%^$heFTY#r4y&^#@T%VVgu^T&*yh7tw78Tyug76R&^FGYUt76t%^fh';
function md5(s) {
var hash = crypto.createHash('md5').update(s).digest('hex');
return hash;
}
var connection = mysql.createConnection({
host : 'lo... | models/login_user.js | var mysql = require('mysql');
var crypto = require('crypto');
var salt = 'F%^$heFTY#r4y&^#@T%VVgu^T&*yh7tw78Tyug76R&^FGYUt76t%^fh';
function md5(s) {
var hash = crypto.createHash('md5').update(s).digest('hex');
return hash;
}
var connection = mysql.createConnection({
host : 'lo... | Fix bugs in setting user session while logging in
| models/login_user.js | Fix bugs in setting user session while logging in | <ide><path>odels/login_user.js
<ide> exports.login = function(req, callback) {
<ide> var usn = req.body.usn
<ide> , passwd = req.body.password;
<del> var details;
<del> var flag = true;
<del> var gerr;
<del> connection.query('SELECT * FROM users WHERE USN='+mysql.escape(usn.toUpperCase()), functio... | |
JavaScript | unknown | 85fdf9fc811228cf2048317b686706be94103dd5 | 0 | MikeBull94/zoom.ts,michaelbull/zoom.ts,michaelbull/zoom.ts,MikeBull94/zoom.ts,MikeBull94/zoom.ts | /*!
* zoom.ts v6.0.0
* https://www.michael-bull.com/projects/zoom.ts
*
* Copyright (c) 2017 Michael Bull (https://www.michael-bull.com)
* @license ISC
*/
!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};ret... | dist/zoom.js | /*!
* zoom.ts v6.0.0
* https://www.michael-bull.com/projects/zoom.ts
*
* Copyright (c) 2017 Michael Bull (https://www.michael-bull.com)
* @license ISC
*/
!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};ret... | Rebuild distribution
| dist/zoom.js | Rebuild distribution | <ide><path>ist/zoom.js
<ide> * Copyright (c) 2017 Michael Bull (https://www.michael-bull.com)
<ide> * @license ISC
<ide> */
<del>!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(... | |
Java | lgpl-2.1 | 4c411c3b9b8e1c4a89e156a5e03b9ae33abf2207 | 0 | ekiwi/jade-mirror,ekiwi/jade-mirror,ekiwi/jade-mirror,ekiwi/jade-mirror | /*****************************************************************
JADE - Java Agent DEvelopment Framework is a framework to develop
multi-agent systems in compliance with the FIPA specifications.
Copyright (C) 2000 CSELT S.p.A.
GNU Lesser General Public License
This library is free software; you can redistribute it... | src/demo/MeetingScheduler/Ontology/MSOntology.java | /*****************************************************************
JADE - Java Agent DEvelopment Framework is a framework to develop
multi-agent systems in compliance with the FIPA specifications.
Copyright (C) 2000 CSELT S.p.A.
GNU Lesser General Public License
This library is free software; you can redistribute it... | update ontology (remove roleEntityFactory)
| src/demo/MeetingScheduler/Ontology/MSOntology.java | update ontology (remove roleEntityFactory) | <ide><path>rc/demo/MeetingScheduler/Ontology/MSOntology.java
<ide> new SlotDescriptor("name", Ontology.PRIMITIVE_SLOT, Ontology.STRING_TYPE, Ontology.M),
<ide> new SlotDescriptor("AID", Ontology.FRAME_SLOT, BasicOntology.AGENTIDENTIFIER, Ontology.O),
<ide> new SlotDescriptor("DFName", Ontology.FRAME_SLOT, BasicOntol... | |
Java | bsd-3-clause | 218cb1395c9d766b66f5593d905f31d379696548 | 0 | ConnCollege/cas,ConnCollege/cas,ConnCollege/cas | /*
* Copyright 2005 The JA-SIG Collaborative. All rights reserved. See license
* distributed with this file and available online at
* http://www.uportal.org/license.html
*/
package org.jasig.cas;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jasig.cas.authenticatio... | core/src/main/java/org/jasig/cas/CentralAuthenticationServiceImpl.java | /*
* Copyright 2005 The JA-SIG Collaborative. All rights reserved. See license
* distributed with this file and available online at
* http://www.uportal.org/license.html
*/
package org.jasig.cas;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jasig.cas.authenticatio... | CAS-383
added message about what supplied service was
| core/src/main/java/org/jasig/cas/CentralAuthenticationServiceImpl.java | CAS-383 | <ide><path>ore/src/main/java/org/jasig/cas/CentralAuthenticationServiceImpl.java
<ide> if (!serviceTicket.isValidFor(service)) {
<ide> if (log.isDebugEnabled()) {
<ide> log.debug("ServiceTicket [" + serviceTicketId
<del> + "] does no... | |
Java | bsd-2-clause | 52893dbab4de193af17dfb86274dbbfeb5129923 | 0 | llwanghong/jslint4java,nikgoodley-ibboost/jslint4java,rsingla/jslint4java,nikgoodley-ibboost/jslint4java,nikgoodley-ibboost/jslint4java,rsingla/jslint4java,mmayorivera/jslint4java,llwanghong/jslint4java,llwanghong/jslint4java,mmayorivera/jslint4java,rsingla/jslint4java,mmayorivera/jslint4java,llwanghong/jslint4java,mma... | package com.googlecode.jslint4java;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Local... | jslint4java/src/main/java/com/googlecode/jslint4java/Main.java | package com.googlecode.jslint4java;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
* A command line ... | issue 18: Apply options after all other CLI args.
This means that switching the jslint in use will pick up all options no matter where they come on the command line. | jslint4java/src/main/java/com/googlecode/jslint4java/Main.java | issue 18: Apply options after all other CLI args. | <ide><path>slint4java/src/main/java/com/googlecode/jslint4java/Main.java
<ide> import java.io.IOException;
<ide> import java.io.InputStreamReader;
<ide> import java.util.ArrayList;
<add>import java.util.HashMap;
<ide> import java.util.List;
<ide> import java.util.Locale;
<add>import java.util.Map;
<add>import java.util... | |
Java | mit | 7ba1840fabb9204ac9a8a34b5ca20461caadffe3 | 0 | mozack/abra2,mozack/abra2,mozack/abra2,mozack/abra2 | /* Copyright 2013 University of North Carolina at Chapel Hill. All rights reserved. */
package abra;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import htsjdk.samtools.Cigar;
import htsjdk.samtools.CigarElement;
import htsjdk.samtools.C... | src/main/java/abra/IndelShifter.java | /* Copyright 2013 University of North Carolina at Chapel Hill. All rights reserved. */
package abra;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import htsjdk.samtools.Cigar;
import htsjdk.samtools.CigarElement;
import htsjdk.samtools.C... | Capture and log indel shift error. | src/main/java/abra/IndelShifter.java | Capture and log indel shift error. | <ide><path>rc/main/java/abra/IndelShifter.java
<ide>
<ide> public Cigar shiftAllIndelsLeft(int refStart, int refEnd, String chromosome, Cigar cigar, String seq, CompareToReference2 c2r) {
<ide>
<del> List<CigarElement> elems = new ArrayList<CigarElement>(cigar.getCigarElements());
<del>
<del> int elemSize = e... | |
Java | apache-2.0 | 0eb5649dc15df033d1492843d42f9910fbc89724 | 0 | etnetera/jmeter,ham1/jmeter,benbenw/jmeter,apache/jmeter,etnetera/jmeter,benbenw/jmeter,benbenw/jmeter,etnetera/jmeter,apache/jmeter,etnetera/jmeter,etnetera/jmeter,ham1/jmeter,ham1/jmeter,ham1/jmeter,apache/jmeter,ham1/jmeter,apache/jmeter,apache/jmeter,benbenw/jmeter | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Add code docn
git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1511538 13f79535-47bb-0310-9956-ffa450edef68
Former-commit-id: 775eda63f54ddc13a1d31a6936c6b15940c9427e | src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java | Add code docn | <ide><path>rc/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
<ide> if (getMethod().startsWith(HTTPConstants.CONNECT)) {
<ide> paramHttps = url;
<ide> }
<del> if (url.startsWith("/")) {
<add> /* The next line looks odd, but proxied HTTP requests look lik... | |
Java | mit | 19c8d3aa322c47b8ca793ce9c76e3c1f5f80f83f | 0 | ulriknyman/H-Uppaal | package SW9.controllers;
import SW9.HUPPAAL;
import SW9.abstractions.Component;
import SW9.abstractions.Edge;
import SW9.abstractions.Location;
import SW9.backend.UPPAALDriver;
import SW9.presentations.CanvasPresentation;
import SW9.presentations.HUPPAALPresentation;
import SW9.presentations.ProjectPanePresentation;
i... | src/main/java/SW9/controllers/HUPPAALController.java | package SW9.controllers;
import SW9.HUPPAAL;
import SW9.abstractions.Component;
import SW9.abstractions.Edge;
import SW9.abstractions.Location;
import SW9.backend.UPPAALDriver;
import SW9.presentations.CanvasPresentation;
import SW9.presentations.HUPPAALPresentation;
import SW9.presentations.ProjectPanePresentation;
i... | Add { }
| src/main/java/SW9/controllers/HUPPAALController.java | Add { } | <ide><path>rc/main/java/SW9/controllers/HUPPAALController.java
<ide> final Location initialLocation = component.getInitialLocation();
<ide> final Location finalLocation = component.getFinalLocation();
<ide>
<del> if (location.equals(initialLocation) || location.equals(fin... | |
Java | apache-2.0 | 9bcd51d37fc21b7a8d528dd4dcee077c026c70fb | 0 | kam6512/RxPermission | package com.orca.kam.rxpermission.listener;
import java.util.List;
/**
* Project RxPermission
*
* @author Kang Young Won
* @create 2016-08-29 - 오전 11:17
*/
public interface PermissionListener {
/**
* Call From Permission Activity...
* When All Permissions Granted
*/
void permissionGranted... | rxpermission/src/main/java/com/orca/kam/rxpermission/listener/PermissionListener.java | package com.orca.kam.rxpermission.listener;
import java.util.ArrayList;
/**
* Project RxPermission
*
* @author Kang Young Won
* @create 2016-08-29 - 오전 11:17
*/
public interface PermissionListener {
/**
* Call From Permission Activity...
* When All Permissions Granted
*/
void permissionGr... | PermissionListener 의 permissionDenied 인자 자료형 수정
PermissionListener.java :
- ArrayList -> List
| rxpermission/src/main/java/com/orca/kam/rxpermission/listener/PermissionListener.java | PermissionListener 의 permissionDenied 인자 자료형 수정 | <ide><path>xpermission/src/main/java/com/orca/kam/rxpermission/listener/PermissionListener.java
<ide> package com.orca.kam.rxpermission.listener;
<ide>
<del>import java.util.ArrayList;
<add>import java.util.List;
<ide>
<ide> /**
<ide> * Project RxPermission
<ide> *
<ide> * @param deniedPermissions The Deni... | |
Java | mit | 53c0c20c8a4aeb0f46dbecea6fd254598a8c9e9e | 0 | cgmb/renderdoc,Yours3lf/renderdoc,michaelrgb/renderdoc,cgmb/renderdoc,Lssikkes/renderdoc,victor-moya/renderdoc,TurtleRockStudios/renderdoc_public,baldurk/renderdoc,victor-moya/renderdoc,googlestadia/renderdoc,Yours3lf/renderdoc,michaelrgb/renderdoc,Zorro666/renderdoc,baldurk/renderdoc,baldurk/renderdoc,Yours3lf/renderd... | package org.renderdoc.renderdoccmd;
import android.app.Activity;
public class Loader extends android.app.NativeActivity
{
/* load our native library */
static {
System.loadLibrary("renderdoc");
}
@Override
protected void onCreate(android.os.Bundle savedInstanceState) {
super.onCrea... | renderdoccmd/android/src/org/renderdoc/renderdoccmd/Loader.java | package org.renderdoc.renderdoccmd;
import android.app.Activity;
public class Loader extends android.app.NativeActivity
{
/* load our native library */
static {
System.loadLibrary("renderdoc");
}
@Override
protected void onCreate(android.os.Bundle savedInstanceState) {
super.onCrea... | Prevent connection to server until Android permissions granted.
Server pops up dialog requesting file system access when the server is
launched. This is only obvious when the device is unlocked, otherwise this
pop up is never displayed.
Fixed by waiting for the user to grant permissions by preventing starting
a targe... | renderdoccmd/android/src/org/renderdoc/renderdoccmd/Loader.java | Prevent connection to server until Android permissions granted. | <ide><path>enderdoccmd/android/src/org/renderdoc/renderdoccmd/Loader.java
<ide> super.onCreate(savedInstanceState);
<ide> // Popup a dialog if we haven't granted Android storage permissions.
<ide> requestPermissions(new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
<add> ... | |
JavaScript | mit | 1cf7c4cebc1d085495ff922c59be4f14d758ec63 | 0 | samsteam/samsteam.github.io,samsteam/samsteam.github.io | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | dist/js/sams.js | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | updated sams module
| dist/js/sams.js | updated sams module | <ide><path>ist/js/sams.js
<ide> this.log("All policies cleared.")
<ide> },
<ide>
<add> _clearBuffers: function(arguments) {
<add> if (this._memorySize) {
<add> this._memory = new Memory(this._memorySize);
<add> }
<add> this._moments = [];
<add> this._resetPolicies();
<add> this.log("All buff... | |
Java | apache-2.0 | 6e9d7fbca2205d04c9b7ea7f337ac60d12f59748 | 0 | Zrips/Jobs | package com.gamingmesh.jobs.Gui;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta... | src/main/java/com/gamingmesh/jobs/Gui/GuiManager.java | package com.gamingmesh.jobs.Gui;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta... | Fix when boosted items amount not calculates the correct boosts from inventory
| src/main/java/com/gamingmesh/jobs/Gui/GuiManager.java | Fix when boosted items amount not calculates the correct boosts from inventory | <ide><path>rc/main/java/com/gamingmesh/jobs/Gui/GuiManager.java
<ide> }
<ide>
<ide> double income = jInfo.getIncome(level, numjobs);
<del> income = boost.getFinalAmount(CurrencyType.MONEY, income);
<add> income = boost.getFinalAmount(CurrencyType.MONEY, income) + ((Jobs.getPlayerManager().getInventoryBoost(playe... | |
Java | apache-2.0 | 0a975d549673ed96a9e099d989b178ee1bf757fe | 0 | sudhirkhanger/go-ubiquitous | package com.example.android.sunshine.app;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Ca... | wear/src/main/java/com/example/android/sunshine/app/SunshineWatchFaceService.java | package com.example.android.sunshine.app;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
i... | refactor
| wear/src/main/java/com/example/android/sunshine/app/SunshineWatchFaceService.java | refactor | <ide><path>ear/src/main/java/com/example/android/sunshine/app/SunshineWatchFaceService.java
<ide> import android.content.Context;
<ide> import android.content.Intent;
<ide> import android.content.IntentFilter;
<add>import android.content.res.Resources;
<ide> import android.graphics.Bitmap;
<ide> import android.graphics... | |
Java | apache-2.0 | f92264d2dbe7a03cadbb643879972ba80867c293 | 0 | benjymous/MWM-for-Android |
/*****************************************************************************
* Copyright (c) 2011 Meta Watch Ltd. *
* www.MetaWatch.org *
* *
==... | src/org/metawatch/manager/Protocol.java |
/*****************************************************************************
* Copyright (c) 2011 Meta Watch Ltd. *
* www.MetaWatch.org *
* *
==... | Fixes to the build
| src/org/metawatch/manager/Protocol.java | Fixes to the build | <ide><path>rc/org/metawatch/manager/Protocol.java
<ide> }
<ide>
<ide> public static void sendRtcNow(Context context) {
<del> Log.d(MetaWatch.TAG, "Setting time of watch");
<del>
<del> boolean isMMDD = true;
<del> char[] ch = DateFormat.getDateFormatOrder(context);
<del>
<del><<<<<<< HEAD
<del> for (int i = 0; i ... | |
Java | bsd-3-clause | 7b70f8480b359a699d1f2e936299c1d35967947d | 0 | muloem/xins,muloem/xins,muloem/xins | /*
* $Id$
*
* Copyright 2003-2005 Wanadoo Nederland B.V.
* See the COPYRIGHT file for redistribution and use restrictions.
*/
package org.xins.server;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.Writer;
import java.net.URL;
import java.u... | src/java-server-framework/org/xins/server/XSLTCallingConvention.java | /*
* $Id$
*
* Copyright 2003-2005 Wanadoo Nederland B.V.
* See the COPYRIGHT file for redistribution and use restrictions.
*/
package org.xins.server;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.Writer;
import java.net.URL;
import java.u... | Added FIXME comment.
| src/java-server-framework/org/xins/server/XSLTCallingConvention.java | Added FIXME comment. | <ide><path>rc/java-server-framework/org/xins/server/XSLTCallingConvention.java
<ide> InvalidPropertyValueException,
<ide> InitializationException {
<ide>
<add> // FIXME: Throw an InvalidPropertyValueException if the value is not
<add> // either 'true' or 'false'
<ide> _cacheT... | |
Java | mit | 8dd2a1237522b072570512e33e1179bc89764db1 | 0 | EpicEricEE/ShopChest,EpicEricEE/ShopChest | package de.epiceric.shopchest.nms;
import de.epiceric.shopchest.ShopChest;
import de.epiceric.shopchest.utils.Utils;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import j... | src/main/java/de/epiceric/shopchest/nms/JsonBuilder.java | package de.epiceric.shopchest.nms;
import de.epiceric.shopchest.ShopChest;
import de.epiceric.shopchest.utils.Utils;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import j... | Final updates for JsonBuilder
| src/main/java/de/epiceric/shopchest/nms/JsonBuilder.java | Final updates for JsonBuilder | <ide><path>rc/main/java/de/epiceric/shopchest/nms/JsonBuilder.java
<ide> private String value;
<ide>
<ide> public Part() {
<del> this("");
<add> this("", true);
<ide> }
<ide>
<ide> public Part(Object value) {
<del> if (value instanceof CharSequence) {
<... | |
Java | mit | 5c8805f6d63a651eecba0be71afea60a6a2ac1da | 0 | sdsmdg/Cognizance | package in.co.sdslabs.cognizance;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
... | Cognizance/src/in/co/sdslabs/cognizance/MainNavDrawerActivity.java | package in.co.sdslabs.cognizance;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
... | Fix Navigation Drawer Bug
| Cognizance/src/in/co/sdslabs/cognizance/MainNavDrawerActivity.java | Fix Navigation Drawer Bug | <ide><path>ognizance/src/in/co/sdslabs/cognizance/MainNavDrawerActivity.java
<ide>
<ide> @Override
<ide> public boolean onOptionsItemSelected(MenuItem item) {
<del> super.onOptionsItemSelected(item);
<del>
<add>// super.onOptionsItemSelected(item);
<add>
<add> if(mDrawerToggle.onOptionsItemSelected(item)){
<add... | |
Java | apache-2.0 | 91c23a3b9383cdaff32e97a7dcca07e13532e032 | 0 | apache/kafka,guozhangwang/kafka,apache/kafka,guozhangwang/kafka,guozhangwang/kafka,apache/kafka,guozhangwang/kafka,apache/kafka | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | clients/src/main/java/org/apache/kafka/common/network/NetworkReceive.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | MINOR: Cleanup NetworkReceive constructors (#12511)
There was unnecessary duplication and one of the overloads
did not set the size field for no good reason.
Reviewers: Luke Chen <a747209bc9e65a9d7dd7589245c91b7bed721b13@gmail.com> | clients/src/main/java/org/apache/kafka/common/network/NetworkReceive.java | MINOR: Cleanup NetworkReceive constructors (#12511) | <ide><path>lients/src/main/java/org/apache/kafka/common/network/NetworkReceive.java
<ide> */
<ide> public class NetworkReceive implements Receive {
<ide>
<del> public final static String UNKNOWN_SOURCE = "";
<del> public final static int UNLIMITED = -1;
<add> public static final String UNKNOWN_SOURCE = "";
<... | |
Java | mit | f6f22df20b7084ca61f1bc178fe35a9b6d4dd124 | 0 | tsmacdonald/simulator,tsmacdonald/simulator | package edu.wheaton.simulator.gui;
import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JLabel;
public class EditTriggerScreen extends Screen {
/**
*
*/
private static final long serialVersionUID = 3261558461232576081L;
private JButton addConditional;
private JButton addBehavior;
... | src/edu/wheaton/simulator/gui/EditTriggerScreen.java | package edu.wheaton.simulator.gui;
import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JLabel;
public class EditTriggerScreen extends Screen {
private JButton addConditional;
private JButton addBehavior;
private JLabel title;
public EditTriggerScreen(Manager sm) {
super(sm);
addC... | warning fixes
| src/edu/wheaton/simulator/gui/EditTriggerScreen.java | warning fixes | <ide><path>rc/edu/wheaton/simulator/gui/EditTriggerScreen.java
<ide> import javax.swing.JLabel;
<ide>
<ide> public class EditTriggerScreen extends Screen {
<add>
<add> /**
<add> *
<add> */
<add> private static final long serialVersionUID = 3261558461232576081L;
<ide>
<ide> private JButton addConditional;
<ide> | |
JavaScript | mit | 17a6f631350a86e2989dbb70d694b88a8f9bf907 | 0 | theappbusiness/tab-hq,theappbusiness/tab-hq,lukemarsh/tab-hq-react,lukemarsh/tab-hq-react,lukemarsh/tab-hq-react,theappbusiness/tab-hq | 'use strict';
var Reflux = require('reflux');
var CurrentUserActions = require('../actions/CurrentUserActions');
var AuthAPI = require('../utils/AuthAPI');
var CurrentTrackStore = Reflux.createStore({
init: function() {
this.user = null;
this.hasBeenChecked = false;
this.listen... | app/js/stores/CurrentUserStore.js | 'use strict';
var Reflux = require('reflux');
var CurrentUserActions = require('../actions/CurrentUserActions');
var AuthAPI = require('../utils/AuthAPI');
var CurrentTrackStore = Reflux.createStore({
init: function() {
this.user = null;
this.hasBeenChecked = false;
this.listen... | fix typo
| app/js/stores/CurrentUserStore.js | fix typo | <ide><path>pp/js/stores/CurrentUserStore.js
<ide> } else {
<ide> AuthAPI.checkLoginStatus().then(function(user) {
<ide> this.hasBeenChecked = true;
<del> this.setuser(user, cb);
<add> this.setUser(user, cb);
<ide> }.bind(this)).catch(function(err) {
<ide> this.hasBeenChecke... | |
JavaScript | mit | 24b24ab77462a1f6016f3ebaf24fc7dfd9956f05 | 0 | luislobo/waterline,balderdashy/waterline | /**
* Module Dependencies
*/
var util = require('util');
var async = require('async');
var _ = require('@sailshq/lodash');
var flaverr = require('flaverr');
var Deferred = require('../utils/query/deferred');
var forgeStageTwoQuery = require('../utils/query/forge-stage-two-query');
var forgeStageThreeQuery = require(... | lib/waterline/methods/create.js | /**
* Module Dependencies
*/
var util = require('util');
var async = require('async');
var _ = require('@sailshq/lodash');
var flaverr = require('flaverr');
var Deferred = require('../utils/query/deferred');
var forgeStageTwoQuery = require('../utils/query/forge-stage-two-query');
var forgeStageThreeQuery = require(... | Fix typos in .create() (and add use didForceFetchTrue flag to properly discard result data if it was not requested -- but actually, I'm about to remove that in the following commit, because it just makes the situation with lifecycle callbacks confusing. Better to just force fetch: true when there are collection resets... | lib/waterline/methods/create.js | Fix typos in .create() (and add use didForceFetchTrue flag to properly discard result data if it was not requested -- but actually, I'm about to remove that in the following commit, because it just makes the situation with lifecycle callbacks confusing. Better to just force fetch: true when there are collection resets... | <ide><path>ib/waterline/methods/create.js
<ide> });
<ide>
<ide> // If any collection resets were specified, force `fetch: true` (meta key)
<del> // so that we can use it below.
<add> // so that we can use it below. (+ if we force it to `true`, remember that
<add> // so we can adjust accordingly befor... | |
Java | epl-1.0 | 30001f4abb5f3025255ef9fe453d486c3c5f26d4 | 0 | lewie/openhab2,tavalin/openhab2-addons,pgfeller/openhab2-addons,trokohl/openhab2-addons,lewie/openhab2,Mr-Eskildsen/openhab2-addons,dimalo/openhab2-addons,Mr-Eskildsen/openhab2-addons,tavalin/openhab2-addons,gerrieg/openhab2,Mr-Eskildsen/openhab2-addons,tavalin/openhab2-addons,dimalo/openhab2-addons,Snickermicker/openh... | /**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGeneratorImpl.java | /**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | [homematic] Provide config-descriptions for every config-description-URI (#3278)
Our application evaluates any thing's ConfigDescriptions to decorate the thing with application-specific functionality. Therefore I suggest that the binding creates ConfigDescrition for each created
ThingType, even if it does not contain... | addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGeneratorImpl.java | [homematic] Provide config-descriptions for every config-description-URI (#3278) | <ide><path>ddons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGeneratorImpl.java
<ide> }
<ide> }
<ide> }
<del> if (!parms.isEmpty()) {
<del> configDescriptionProvider.addConfigDescription(new ConfigDesc... | |
Java | apache-2.0 | 29af377597c941f7b0a96d5a9bf7e86a07927da2 | 0 | Terasology/Minimap | /*
* Copyright 2014 MovingBlocks
*
* 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... | src/main/java/org/terasology/minimap/rendering/nui/layers/MinimapGrid.java | /*
* Copyright 2014 MovingBlocks
*
* 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... | not sure if we need this to deal with air blocks
| src/main/java/org/terasology/minimap/rendering/nui/layers/MinimapGrid.java | not sure if we need this to deal with air blocks | <ide><path>rc/main/java/org/terasology/minimap/rendering/nui/layers/MinimapGrid.java
<ide>
<ide> if (null != cells) {
<ide> Vector2i cellSize = canvas.calculatePreferredSize(cells[0][0]);
<add>
<add> canvas.drawBackground();
<ide>
<ide> for (int row = 0; row < nu... | |
Java | apache-2.0 | c6383168473190abf2f183379fca198537ed42dc | 0 | palava/palava-jmx | /**
* Copyright 2010 CosmoCode GmbH
*
* 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... | src/main/java/de/cosmocode/palava/jmx/GuiceJmxService.java | /**
* Copyright 2010 CosmoCode GmbH
*
* 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... | removed string domain parameter from constructor
| src/main/java/de/cosmocode/palava/jmx/GuiceJmxService.java | removed string domain parameter from constructor | <ide><path>rc/main/java/de/cosmocode/palava/jmx/GuiceJmxService.java
<ide> private String domain;
<ide>
<ide> @Inject
<del> public GuiceJmxService(MBeanServer server, @Named("guice.jmx.domain") String domain, Injector injector) {
<add> public GuiceJmxService(MBeanServer server, Injector injector) {
<... | |
Java | mit | 1dc2d59b0d7e7b671111e3cc765ca92d274d74ea | 0 | ashr81/unfolding,potioc/unfolding,CarlCOL/unfolding,potioc/unfolding,deepankverma/unfolding,ps793/unfolding | package de.fhpotsdam.unfolding.tiles;
import processing.core.PApplet;
import processing.core.PConstants;
import processing.core.PImage;
import de.fhpotsdam.unfolding.core.Coordinate;
import de.fhpotsdam.unfolding.providers.AbstractMapProvider;
/**
* Loads tiles from the MapProvider. Will be used in a background thre... | unfolding/src/de/fhpotsdam/unfolding/tiles/TileLoader.java | package de.fhpotsdam.unfolding.tiles;
import processing.core.PApplet;
import processing.core.PImage;
import de.fhpotsdam.unfolding.core.Coordinate;
import de.fhpotsdam.unfolding.providers.AbstractMapProvider;
/**
* Loads tiles from the MapProvider. Will be used in a background thread.
*
* Two kinds of MapProvider... | Added empty/transparent tile if provider does not return anything.
| unfolding/src/de/fhpotsdam/unfolding/tiles/TileLoader.java | Added empty/transparent tile if provider does not return anything. | <ide><path>nfolding/src/de/fhpotsdam/unfolding/tiles/TileLoader.java
<ide> package de.fhpotsdam.unfolding.tiles;
<ide>
<ide> import processing.core.PApplet;
<add>import processing.core.PConstants;
<ide> import processing.core.PImage;
<ide> import de.fhpotsdam.unfolding.core.Coordinate;
<ide> import de.fhpotsdam.unfold... | |
Java | apache-2.0 | 5c8b1416c0fbd593be03c4ae470ef35078b81d66 | 0 | macrozheng/mall,macrozheng/mall | package com.macro.mall.dao;
import com.macro.mall.model.CmsPrefrenceAreaProductRelation;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 自定义优选和商品关系操作
* Created by macro on 2018/4/26.
*/
public interface CmsPrefrenceAreaProductRelationDao {
/**
* 批量创建
*/
int insertList(@P... | mall-admin/src/main/java/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.java | package com.macro.mall.dao;
import com.macro.mall.model.CmsPrefrenceAreaProductRelation;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 自定义优选和商品关系操作
* Created by macro on 2018/4/26.
*/
public interface CmsPrefrenceAreaProductRelationDao {
int insertList(@Param("list") List<CmsPrefren... | Update CmsPrefrenceAreaProductRelationDao.java
| mall-admin/src/main/java/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.java | Update CmsPrefrenceAreaProductRelationDao.java | <ide><path>all-admin/src/main/java/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.java
<ide> * Created by macro on 2018/4/26.
<ide> */
<ide> public interface CmsPrefrenceAreaProductRelationDao {
<add> /**
<add> * 批量创建
<add> */
<ide> int insertList(@Param("list") List<CmsPrefrenceAreaProductRelat... | |
Java | apache-2.0 | 34a863fd1b0a30ef5287615cc60347e84025e8a5 | 0 | jboss-switchyard/switchyard,bfitzpat/switchyard,cunningt/switchyard,igarashitm/switchyard,igarashitm/switchyard,bfitzpat/switchyard,tadayosi/switchyard,tadayosi/switchyard,jboss-switchyard/switchyard,igarashitm/switchyard,cunningt/switchyard,cunningt/switchyard,igarashitm/switchyard,KurtStam/quickstarts,KurtStam/quicks... | /*
* JBoss, Home of Professional Open Source
* Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This copyrighted material is made a... | camel-rest-binding/src/test/java/org/switchyard/quickstarts/camel/rest/binding/CamelCxfRsBindingTest.java | /*
* JBoss, Home of Professional Open Source
* Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This copyrighted material is made a... | SWITCHYARD-945 Upgrade to Camel 2.10.0 (disable rest binding test temporarily).
| camel-rest-binding/src/test/java/org/switchyard/quickstarts/camel/rest/binding/CamelCxfRsBindingTest.java | SWITCHYARD-945 Upgrade to Camel 2.10.0 (disable rest binding test temporarily). | <ide><path>amel-rest-binding/src/test/java/org/switchyard/quickstarts/camel/rest/binding/CamelCxfRsBindingTest.java
<ide> package org.switchyard.quickstarts.camel.rest.binding;
<ide>
<ide> import org.junit.Assert;
<add>import org.junit.Ignore;
<ide> import org.junit.Test;
<ide> import org.junit.runner.RunWith;
<ide> i... | |
Java | mit | fdb2c137a1e0917a356fe61846c4c406fb99fc7f | 0 | melezov/slf4j,lukecwik/slf4j,libliflin/slf4j,qos-ch/slf4j,lukecwik/slf4j,lukecwik/slf4j,qos-ch/slf4j,yukihane/slf4j,xiaob/slf4j,adorokhine/slf4j,libliflin/slf4j,geekboxzone/mmallow_external_slf4j,geekboxzone/mmallow_external_slf4j,adorokhine/slf4j,nitinverma/slf4j,b-cuts/slf4j,kbzod/slf4j,yukihane/slf4j,Mahoney/sysout-... | package org.slf4j.agent;
import static org.slf4j.helpers.MessageFormatter.format;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.lang.instrument.Instrumentation;
import java.util.Date;
import java.util.Properties;
import org.slf4j.instrumentation.LogTransformer;
/**
* Entry point for ... | slf4j-ext/src/main/java/org/slf4j/agent/AgentPremain.java | package org.slf4j.agent;
import static org.slf4j.helpers.MessageFormatter.format;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.lang.instrument.Instrumentation;
import java.util.Date;
import java.util.Properties;
import org.slf4j.instrumentation.LogTransformer;
public class AgentPrema... | added javadoc
| slf4j-ext/src/main/java/org/slf4j/agent/AgentPremain.java | added javadoc | <ide><path>lf4j-ext/src/main/java/org/slf4j/agent/AgentPremain.java
<ide>
<ide> import org.slf4j.instrumentation.LogTransformer;
<ide>
<add>/**
<add> * Entry point for slf4j-ext when used as a Java agent.
<add> *
<add> */
<ide> public class AgentPremain {
<ide>
<ide> private static final String START_MSG = "Start ... | |
JavaScript | cc0-1.0 | 6197e554930f8a61c658bc34cf8761e1c635f769 | 0 | paullucas/lissajous-offline,furey789/lissajous,kylestetz/lissajous,kylestetz/lissajous,furey789/lissajous,paullucas/lissajous-offline | // This is the performance API.
// Golden Rule: everything starts with `var self = this` and ends with `return self`.
function _joinArgs(args) {
args = Array.prototype.slice.call(args);
for(var i = 1; i < args.length; i++) {
args[0] = args[0].concat(args[i]);
}
return args[0];
}
// _parseArguments takes m... | src/track.api.js | // This is the performance API.
// Golden Rule: everything starts with `var self = this` and ends with `return self`.
function _joinArgs(args) {
args = Array.prototype.slice.call(args);
for(var i = 1; i < args.length; i++) {
args[0] = args[0].concat(args[i]);
}
return args[0];
}
// _parseArguments takes m... | localizing arg variables and cleaning up
| src/track.api.js | localizing arg variables and cleaning up | <ide><path>rc/track.api.js
<ide>
<ide> track.prototype.beat = function() {
<ide> var self = this;
<del> arguments = _parseArguments(arguments);
<add> var arguments = _parseArguments(arguments);
<ide> self._beatPattern.set(arguments, 16);
<ide> return self;
<ide> };
<ide>
<ide> track.prototype.beat32 = functio... | |
Java | bsd-2-clause | 2462baa6a183cf6d80e171790e702d1a039171b4 | 0 | TehSAUCE/imagej,biovoxxel/imagej,TehSAUCE/imagej,biovoxxel/imagej,biovoxxel/imagej,TehSAUCE/imagej | //
// FillDataValues.java
//
/*
ImageJ software for multidimensional image processing and analysis.
Copyright (c) 2010, ImageJDev.org.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributi... | core/plugins/data/src/main/java/imagej/core/plugins/assign/FillDataValues.java | //
// FillDataValues.java
//
/*
ImageJ software for multidimensional image processing and analysis.
Copyright (c) 2010, ImageJDev.org.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributi... | eliminate dataset parameter
This used to be revision r4500.
| core/plugins/data/src/main/java/imagej/core/plugins/assign/FillDataValues.java | eliminate dataset parameter | <ide><path>ore/plugins/data/src/main/java/imagej/core/plugins/assign/FillDataValues.java
<ide> import imagej.core.tools.FGTool;
<ide> import imagej.data.Dataset;
<ide> import imagej.data.display.ImageDisplay;
<add>import imagej.data.display.ImageDisplayService;
<ide> import imagej.data.display.OverlayService;
<ide> imp... | |
JavaScript | mpl-2.0 | 1478dfb148161043bddddb3e5d9bc63012bba757 | 0 | enb-bem/enb-bem-tmpl-specs,enb-bem/enb-bem-tmpl-specs,rndD/enb-bem-tmpl-specs,rndD/enb-bem-tmpl-specs | var path = require('path'),
vfs = require('enb/lib/fs/async-fs'),
readAsset = vfs.read(path.join(__dirname, '..', 'assets', 'tmpl-spec.jst')),
template = require('lodash').template,
htmlDifferFilename = require.resolve('html-differ'),
jsBeautifyFilename = require.resolve('js-beautify');
module.expo... | lib/techs/tmpl-spec.js | var fs = require('fs'),
path = require('path'),
vfs = require('enb/lib/fs/async-fs'),
readAsset = vfs.read(path.join(__dirname, '..', 'assets', 'tmpl-spec.jst')),
template = require('lodash').template,
htmlDifferFilename = require.resolve('html-differ'),
jsBeautifyFilename = require.resolve('js-... | Fixed cache for `tmpl-spec` tech:
should rebuild if change `saveHtml` option
| lib/techs/tmpl-spec.js | Fixed cache for `tmpl-spec` tech: should rebuild if change `saveHtml` option | <ide><path>ib/techs/tmpl-spec.js
<del>var fs = require('fs'),
<del> path = require('path'),
<add>var path = require('path'),
<ide> vfs = require('enb/lib/fs/async-fs'),
<ide> readAsset = vfs.read(path.join(__dirname, '..', 'assets', 'tmpl-spec.jst')),
<ide> template = require('lodash').template,
<ide> ... | |
Java | apache-2.0 | ff177187998fae5e37af7622a201d1cd4d673035 | 0 | lqbweb/logging-log4j2,lburgazzoli/apache-logging-log4j2,apache/logging-log4j2,lburgazzoli/apache-logging-log4j2,lqbweb/logging-log4j2,GFriedrich/logging-log4j2,MagicWiz/log4j2,apache/logging-log4j2,neuro-sys/logging-log4j2,apache/logging-log4j2,lqbweb/logging-log4j2,xnslong/logging-log4j2,GFriedrich/logging-log4j2,code... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | Remove unnecessary parens. | log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java | Remove unnecessary parens. | <ide><path>og4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
<ide> this.loggerName = loggerName;
<ide> this.marker = marker;
<ide> this.loggerFqcn = loggerFQCN;
<del> this.level = (level == null) ? Level.OFF : level; // LOG4J2-462, LOG4J2-465
<add> this.... | |
Java | apache-2.0 | 5394065ba44963f0350e756fe8307221a08f6904 | 0 | brettwooldridge/buck,brettwooldridge/buck,rmaz/buck,zpao/buck,facebook/buck,rmaz/buck,romanoid/buck,zpao/buck,Addepar/buck,romanoid/buck,romanoid/buck,zpao/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,romanoid/buck,brettwooldridge/buck,JoelMarcey/buck,SeleniumHQ/buck,clonetwin26/buck,LegNeato/buck,JoelMar... | /*
* Copyright 2017-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | src/com/facebook/buck/rules/keys/DefaultRuleKeyCache.java | /*
* Copyright 2017-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Add missing stats tracking
Summary: We were tracking evictions above when individual nodes are invalidated, but not tracking evictions when everything is evicted.
Test Plan: builds
Reviewed By: ttsugriy
fbshipit-source-id: 9bf1441
| src/com/facebook/buck/rules/keys/DefaultRuleKeyCache.java | Add missing stats tracking | <ide><path>rc/com/facebook/buck/rules/keys/DefaultRuleKeyCache.java
<ide> /** Invalidate everything in the cache. */
<ide> @Override
<ide> public void invalidateAll() {
<add> evictionCount.add(cache.size());
<ide> cache.clear();
<ide> inputsIndex.clear();
<ide> } | |
Java | agpl-3.0 | 63da54ef207aff634296a75b37ef07338b8f0865 | 0 | duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test | 6a5143b2-2e61-11e5-9284-b827eb9e62be | hello.java | 6a4bcb3a-2e61-11e5-9284-b827eb9e62be | 6a5143b2-2e61-11e5-9284-b827eb9e62be | hello.java | 6a5143b2-2e61-11e5-9284-b827eb9e62be | <ide><path>ello.java
<del>6a4bcb3a-2e61-11e5-9284-b827eb9e62be
<add>6a5143b2-2e61-11e5-9284-b827eb9e62be | |
Java | mit | 4dcc14820ed5e8d884ce8bb6c4ed0c8268d2d4a0 | 0 | holmari/gerritstats,holmari/gerritstats,holmari/gerritstats,holmari/gerritstats | package com.holmsted.gerrit.processors.perperson;
import com.google.common.base.Strings;
import com.holmsted.gerrit.Commit;
import com.holmsted.gerrit.DatedCommitList;
import com.holmsted.gerrit.DatedPatchSetCommentList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Hashtable;
import java... | GerritStats/src/main/java/com/holmsted/gerrit/processors/perperson/IdentityRecord.java | package com.holmsted.gerrit.processors.perperson;
import com.google.common.base.Strings;
import com.holmsted.gerrit.Commit;
import com.holmsted.gerrit.DatedCommitList;
import com.holmsted.gerrit.DatedPatchSetCommentList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Hashtable;
import java... | Fix NaN for review comment ratio
| GerritStats/src/main/java/com/holmsted/gerrit/processors/perperson/IdentityRecord.java | Fix NaN for review comment ratio | <ide><path>erritStats/src/main/java/com/holmsted/gerrit/processors/perperson/IdentityRecord.java
<ide> }
<ide>
<ide> public float getReviewCommentRatio() {
<del> return (float) commentsWritten.size() / addedAsReviewerTo.size();
<add> if (addedAsReviewerTo.size() == 0) {
<add> return 0;... | |
Java | bsd-3-clause | 26cbd0d2737f925edd8d98937265449fe8ffa8fb | 0 | mjlaali/cleartk,mjlaali/cleartk,mjlaali/cleartk,mjlaali/cleartk | /**
* Copyright (c) 2007-2008, Regents of the University of Colorado
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above co... | ClearTK-test-util/src/main/java/org/cleartk/test/util/ConfigurationParameterNameFactory.java | package org.cleartk.test.util;
import org.uutuc.factory.ConfigurationParameterFactory;
public class ConfigurationParameterNameFactory {
public static String createConfigurationParameterName(Class<?> clazz, String fieldName) throws RuntimeException {
try {
return ConfigurationParameterFactory.getConf... | added license
git-svn-id: 34a63cff78c965ed7296912184cd0e3b6b7dc1c0@1387 2f4ce1e4-9571-11dd-93b2-6d14b300b761
| ClearTK-test-util/src/main/java/org/cleartk/test/util/ConfigurationParameterNameFactory.java | added license | <ide><path>learTK-test-util/src/main/java/org/cleartk/test/util/ConfigurationParameterNameFactory.java
<add>/**
<add> * Copyright (c) 2007-2008, Regents of the University of Colorado
<add> * All rights reserved.
<add> *
<add> * Redistribution and use in source and binary forms, with or without
<add> * modification... | |
Java | mit | 975b6246b673cf70ce3b8af10b782fbd096a818b | 0 | hyperfresh/nxchat2,hyperfresh/nxchat,hyperfresh/mc-hyperchat | package com.hyperfresh.mchyperchat.bukkit;
import com.hyperfresh.mchyperchat.HyperChat;
import com.hyperfresh.mchyperchat.Theme;
import com.hyperfresh.mchyperchat.User;
import org.bukkit.command.ConsoleCommandSender;
/**
* A wrapper for the Bukkit ConsoleCommandSender.
*/
public class BukkitConsole implements User
... | src/main/java/com/hyperfresh/mchyperchat/bukkit/BukkitConsole.java | package com.hyperfresh.mchyperchat.bukkit;
import com.hyperfresh.mchyperchat.HyperChat;
import com.hyperfresh.mchyperchat.Theme;
import com.hyperfresh.mchyperchat.User;
import org.bukkit.command.ConsoleCommandSender;
/**
* A wrapper for the Bukkit ConsoleCommandSender.
*/
public class BukkitConsole implements User
... | change BukkitConstructor constructor
| src/main/java/com/hyperfresh/mchyperchat/bukkit/BukkitConsole.java | change BukkitConstructor constructor | <ide><path>rc/main/java/com/hyperfresh/mchyperchat/bukkit/BukkitConsole.java
<ide> {
<ide> private final ConsoleCommandSender handle;
<ide>
<del> private String lastSaid;
<add> private Theme theme;
<add> private String lastSaid = null;
<ide>
<del> private Theme theme = HyperChat.getThemeManager().getDefaultTheme();
... | |
Java | bsd-3-clause | 356da94bdb61f188bae2a4cd3e4b0ce1fd4c43b6 | 0 | flexgen/flexgen | /*
FlexGen : Flexible Map Generator Library
Copyright (C) 2009 - Jeffrey J. Weston <jjweston@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the... | test/org/flexgen/map/test/MapTileTypeTest.java | /*
FlexGen : Flexible Map Generator Library
Copyright (C) 2009 - Jeffrey J. Weston <jjweston@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the... | Minor formatting fix.
| test/org/flexgen/map/test/MapTileTypeTest.java | Minor formatting fix. | <ide><path>est/org/flexgen/map/test/MapTileTypeTest.java
<ide> public void constructor_distinctMapTileOrientations_nullElement()
<ide> {
<ide> MapTileOrientation[] distinctMapTileOrientations = new MapTileOrientation[]
<del> {
<del> null
<del> };
<add> ... | |
Java | apache-2.0 | ac244527b1b1c977d70b360861c30af9540eafa0 | 0 | paulovmr/uberfire,psiroky/uberfire,uberfire/uberfire,mbarkley/uberfire,ederign/uberfire,psiroky/uberfire,Salaboy/uberfire,qmx/uberfire,baldimir/uberfire,paulovmr/uberfire,mbiarnes/uberfire,baldimir/uberfire,karreiro/uberfire,kiereleaseuser/uberfire,ederign/uberfire,paulovmr/uberfire,paulovmr/uberfire,mbarkley/uberfire,... | package org.uberfire.workbench.model.menu;
/**
* Visitor interface for implementing arbitrary operations over menus. For example, a visitor could filter a menu tree
* for items that the current user has permission to see; it could build widgets in a particular view module; it could
* simply dump the menu structure... | uberfire-api/src/main/java/org/uberfire/workbench/model/menu/MenuVisitor.java | package org.uberfire.workbench.model.menu;
/**
* Visitor interface for implementing arbitrary operations over menus. For example, a visitor could filter a menu tree
* for items that the current user has permission to see; it could build widgets in a particular view module; it could
* simply dump the menu structure... | Fixed comment
| uberfire-api/src/main/java/org/uberfire/workbench/model/menu/MenuVisitor.java | Fixed comment | <ide><path>berfire-api/src/main/java/org/uberfire/workbench/model/menu/MenuVisitor.java
<ide> /**
<ide> * Visits a menu item that has an associated command.
<ide> *
<del> * @param menuItemPlain the plain menu item to visit.
<add> * @param menuItemCommand the command menu item to visit.
<ide> ... | |
JavaScript | mit | 409a36a2c41dd575627f4e9c9bfcd104a29663a7 | 0 | gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby | import React, { useState, useEffect } from "react"
import SelectInput from "ink-select-input"
import { render, Box, Text, useInput, useApp, Transform } from "ink"
import Spinner from "ink-spinner"
import StepRenderer from "../components/step-renderer"
import hicat from "hicat"
import { trackCli } from "gatsby-telemetry... | packages/gatsby-recipes/src/cli/index.js | import React, { useState, useEffect } from "react"
import SelectInput from "ink-select-input"
import { render, Box, Text, useInput, useApp, Transform } from "ink"
import Spinner from "ink-spinner"
import StepRenderer from "../components/step-renderer"
import hicat from "hicat"
import { trackCli } from "gatsby-telemetry... | fix(gatsby-recipes): Only remove the ".mdx" ending if running local recipe (#27718)
This fixes showing the correct install command when running recipes from the recipes list shown when running `gatsby recipes` | packages/gatsby-recipes/src/cli/index.js | fix(gatsby-recipes): Only remove the ".mdx" ending if running local recipe (#27718) | <ide><path>ackages/gatsby-recipes/src/cli/index.js
<ide> </Text>
<ide> <RecipesList
<ide> setRecipe={async recipeItem => {
<del> setRecipe(recipeItem.value.slice(0, -4))
<add> if (recipeItem.value.endsWith(`.mdx`)) {
<add> setRecipe(re... | |
Java | mit | cb18855176384059f3db5ed54c4632473ec26be5 | 0 | PunchThrough/bean-sdk-android,PunchThrough/Bean-Android-SDK,PunchThrough/bean-sdk-android,PunchThrough/Bean-Android-SDK | package com.punchthrough.bean.sdk.internal.upload.firmware;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;
import android.bluetooth.BluetoothGattService;
import android.util.Log;
import com.punchthrough.bean.sdk.BeanManager;
import com.punchthrough.bean.sdk.int... | sdk/src/main/java/com/punchthrough/bean/sdk/internal/upload/firmware/OADProfile.java | package com.punchthrough.bean.sdk.internal.upload.firmware;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;
import android.bluetooth.BluetoothGattService;
import android.util.Log;
import com.punchthrough.bean.sdk.BeanManager;
import com.punchthrough.bean.sdk.int... | oad: set state to RECONNECTING if we get random disconnect | sdk/src/main/java/com/punchthrough/bean/sdk/internal/upload/firmware/OADProfile.java | oad: set state to RECONNECTING if we get random disconnect | <ide><path>dk/src/main/java/com/punchthrough/bean/sdk/internal/upload/firmware/OADProfile.java
<ide>
<ide> // OAD Internal State
<ide>
<add> private static final int OAD_TIMEOUT_SECONDS = 30;
<ide> private boolean ready = false;
<ide>
<ide> /* The current state of the OAD state-machine */
<ide> ... | |
JavaScript | mit | 7f9a4ec5737654a05dff97ecdaaa785a96aa60ef | 0 | zhangg/hexo,G-g-beringei/hexo,ChaofengZhou/hexo,zoubin/hexo,tibic/hexo,runlevelsix/hexo,0111001101111010/blog,Richardphp/hexo,kywk/hexi,chenbojian/hexo,hugoxia/hexo,0111001101111010/hexo,xushuwei202/hexo,jonesgithub/hexo,viethang/hexo,iamprasad88/hexo,biezhihua/hexo,JasonMPE/hexo,zongkelong/hexo,liuhongjiang/hexo,diefa... | var fs = require('graceful-fs'),
async = require('async'),
path = require('path'),
HexoError = require('../error');
module.exports = function(callback){
if (!hexo.env.init || hexo.env.safe) return callback();
var pluginDir = hexo.plugin_dir;
async.series([
function(next){
fs.exists(pluginDir, f... | lib/loaders/plugins.js | var fs = require('graceful-fs'),
async = require('async'),
path = require('path'),
HexoError = require('../error');
module.exports = function(callback){
if (!hexo.env.init || hexo.env.safe) return callback();
var pluginDir = hexo.plugin_dir;
async.series([
function(next){
fs.exists(pluginDir, f... | Fixed plugin loader #378
| lib/loaders/plugins.js | Fixed plugin loader #378 | <ide><path>ib/loaders/plugins.js
<ide>
<ide> try {
<ide> require(path.join(pluginDir, item));
<del> log.d('Plugin loaded successfully: ' + item);
<add> hexo.log.d('Plugin loaded successfully: ' + item);
<ide> } catch (err){
<ide> hexo.log.e('Plugin load... | |
Java | apache-2.0 | 23ef0c8b93c272316cf4f6b54da3a01910ed3bea | 0 | OpenBEL/cytoscape-plugins,OpenBEL/cytoscape-plugins | /*
* KAM Navigator Plugin
*
* URLs: http://openbel.org/
* Copyright (C) 2012, Selventa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your o... | kam-navigator-plugin/src/org/openbel/belframework/kam/dialog/KnowledgeNeighborhoodDialog.java | /*
* KAM Navigator Plugin
*
* URLs: http://openbel.org/
* Copyright (C) 2012, Selventa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your o... | Put knowledge neighborhood load into a thread to fix UI locking
Only the webservice calls to get adjacent edges and the subsequent UI
updates are in the thread.
| kam-navigator-plugin/src/org/openbel/belframework/kam/dialog/KnowledgeNeighborhoodDialog.java | Put knowledge neighborhood load into a thread to fix UI locking | <ide><path>am-navigator-plugin/src/org/openbel/belframework/kam/dialog/KnowledgeNeighborhoodDialog.java
<ide> import java.util.HashSet;
<ide> import java.util.List;
<ide> import java.util.Set;
<add>import java.util.concurrent.ExecutorService;
<add>import java.util.concurrent.Executors;
<ide>
<ide> import javax.swing.B... | |
Java | mit | 486498da884d7640d9f45c07ab62a0998f9992c8 | 0 | paymill/paymill-java,vladaspasic/paymill-java | package com.paymill.services;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.BooleanUtils;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.paymill.context.PaymillContext;
... | src/test/java/com/paymill/services/PreauthorizationServiceTest.java | package com.paymill.services;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.BooleanUtils;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.paymill.context.PaymillContext;
... | comment failing test
| src/test/java/com/paymill/services/PreauthorizationServiceTest.java | comment failing test | <ide><path>rc/test/java/com/paymill/services/PreauthorizationServiceTest.java
<ide> this.preauthorizations.add( preauthorization.getTransaction() );
<ide> }
<ide>
<del> @Test( dependsOnMethods = "testListOrderByFilterAmountLessThan" )
<add> //@Test( dependsOnMethods = "testListOrderByFilterAmountLessThan" )
<i... | |
JavaScript | mit | a68a7b5ca1a87b7dc1ea4c3bd15117b514d14f8d | 0 | rakchaev/offline_frontend-mix2016,tenebricosa/machine,myshov/story_of_vim,AnalogJ/capsulecd-slides,rakchaev/assembly-pyatnica2016,alexws54tk/shower,roadev/jekyll_caliruby_meetup,roadev/jekyll_caliruby_meetup,first-wanderer/shower,rakchaev/assembly-pyatnica2016,CaraWang/2016-talk-cnyes-elasticsearch,RubenVerborgh/shower... | window.shower = (function () {
var _ = {},
url = window.location,
body = document.body,
slides = document.querySelectorAll('div.slide'),
progress = document.querySelector('div.progress div'),
slideList = [],
l = slides.length, i;
for (i = 0; i < l; i++) {
slideList.push({
id: slides[i].id,
hasInn... | scripts/script.js | window.shower = (function () {
var _ = {},
url = window.location,
body = document.body,
slides = document.querySelectorAll('div.slide'),
progress = document.querySelector('div.progress div'),
slideList = [],
l = slides.length, i;
for (i = 0; i < l; i++) {
slideList.push({
id: slides[i].id,
hasInn... | added a simple callback on change if using the public method shower.go() | scripts/script.js | added a simple callback on change if using the public method shower.go() | <ide><path>cripts/script.js
<ide> if (!_.isListMode()) {
<ide> _.updateProgress(slideNumber);
<ide> }
<add>
<add> if (typeof _.onchange == 'function')
<add> _.onchange(slideNumber);
<ide> }
<ide>
<ide> function getContainingSlideId(el) { | |
Java | apache-2.0 | 5b930882f0adc6f8b1db68994b0408c379f4127a | 0 | jpodeszwik/mifos,vorburger/mifos-head,maduhu/mifos-head,maduhu/head,jpodeszwik/mifos,vorburger/mifos-head,vorburger/mifos-head,AArhin/head,maduhu/head,jpodeszwik/mifos,maduhu/mifos-head,AArhin/head,maduhu/mifos-head,maduhu/mifos-head,AArhin/head,maduhu/mifos-head,AArhin/head,vorburger/mifos-head,jpodeszwik/mifos,maduhu... | package org.mifos.application.accounts.loan.business;
import static org.mifos.application.meeting.util.helpers.MeetingType.CUSTOMER_MEETING;
import static org.mifos.application.meeting.util.helpers.RecurrenceType.WEEKLY;
import static org.mifos.framework.util.helpers.TestObjectFactory.EVERY_SECOND_WEEK;
import st... | mifos/test/org/mifos/application/accounts/loan/business/LoanCalculationTest.java | package org.mifos.application.accounts.loan.business;
import static org.mifos.application.meeting.util.helpers.MeetingType.CUSTOMER_MEETING;
import static org.mifos.application.meeting.util.helpers.RecurrenceType.WEEKLY;
import static org.mifos.framework.util.helpers.TestObjectFactory.EVERY_SECOND_WEEK;
import st... | Added tests to the LoanCalculationTest to read data from files and create loan calculations and verify against the imported data.
git-svn-id: 6bd94cac40bd5c1df74b384d972046d926de6ffa@12668 a8845c50-7012-0410-95d3-8e1449b9b1e4
| mifos/test/org/mifos/application/accounts/loan/business/LoanCalculationTest.java | Added tests to the LoanCalculationTest to read data from files and create loan calculations and verify against the imported data. | <ide><path>ifos/test/org/mifos/application/accounts/loan/business/LoanCalculationTest.java
<ide>
<ide> import java.math.BigDecimal;
<ide> import java.math.MathContext;
<add>import java.math.RoundingMode;
<ide> import java.util.ArrayList;
<ide> import java.util.Calendar;
<ide> import java.util.Collection;
<ide> import ... | |
Java | apache-2.0 | fc1807b8f26b98be1b0b3d257b5a6e5a7c505a04 | 0 | dpocock/camel,NickCis/camel,onders86/camel,igarashitm/camel,w4tson/camel,jmandawg/camel,lburgazzoli/apache-camel,josefkarasek/camel,jonmcewen/camel,CandleCandle/camel,engagepoint/camel,jollygeorge/camel,nboukhed/camel,mike-kukla/camel,sebi-hgdata/camel,davidkarlsen/camel,JYBESSON/camel,jkorab/camel,grgrzybek/camel,w4ts... | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | camel-core/src/main/java/org/apache/camel/component/validator/ValidatorComponent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Corrected the URL typo inside Javadoc.
git-svn-id: 11f3c9e1d08a13a4be44fe98a6d63a9c00f6ab23@1294572 13f79535-47bb-0310-9956-ffa450edef68
| camel-core/src/main/java/org/apache/camel/component/validator/ValidatorComponent.java | Corrected the URL typo inside Javadoc. | <ide><path>amel-core/src/main/java/org/apache/camel/component/validator/ValidatorComponent.java
<ide> import org.slf4j.LoggerFactory;
<ide>
<ide> /**
<del> * The <a href="http://camel.apache.org/validator.html">Validator Component</a>
<add> * The <a href="http://camel.apache.org/validation.html">Validator Component</a... | |
Java | mit | ed773d91a9f99c435a821d8ec45cc67412a4ce76 | 0 | matthieu-vergne/jMetal | package org.uma.jmetal.problem.multiobjective;
import org.uma.jmetal.problem.ConstrainedProblem;
import org.uma.jmetal.problem.impl.AbstractDoubleProblem;
import org.uma.jmetal.solution.DoubleSolution;
import org.uma.jmetal.util.solutionattribute.impl.NumberOfViolatedConstraints;
import org.uma.jmetal.util.solut... | jmetal-problem/src/main/java/org/uma/jmetal/problem/multiobjective/Water.java | package org.uma.jmetal.problem.multiobjective;
import org.uma.jmetal.problem.ConstrainedProblem;
import org.uma.jmetal.problem.impl.AbstractDoubleProblem;
import org.uma.jmetal.solution.DoubleSolution;
import org.uma.jmetal.util.solutionattribute.impl.NumberOfViolatedConstraints;
import org.uma.jmetal.util.solut... | Fix a bug in class Water
| jmetal-problem/src/main/java/org/uma/jmetal/problem/multiobjective/Water.java | Fix a bug in class Water | <ide><path>metal-problem/src/main/java/org/uma/jmetal/problem/multiobjective/Water.java
<ide> /** Evaluate() method */
<ide> @Override
<ide> public void evaluate(DoubleSolution solution) {
<del> double[] fx = new double[2];
<add> double[] fx = new double[solution.getNumberOfObjectives()];
<ide> double[... | |
JavaScript | mit | eeaa60111925f537fc0f918df423bcf95f386f9f | 0 | wmurphyrd/aframe-physics-extras,wmurphyrd/aframe-physics-extras | /* global assert, process, setup, suite, test */
const helpers = require('../helpers')
const entityFactory = helpers.entityFactory
suite('physics-collider', function () {
setup(function (done) {
var el = this.el = entityFactory()
window.CANNON = {Body: {KINEMATIC: 4}}
el.body = {el: el, id: 2}
this.... | tests/components/physics-collider.test.js | /* global assert, process, setup, suite, test */
const helpers = require('../helpers')
const entityFactory = helpers.entityFactory
suite('physics-collider', function () {
setup(function (done) {
var el = this.el = entityFactory()
window.CANNON = {Body: {KINEMATIC: 4}}
el.body = {el: el, id: 2}
this.... | Also test removal of collided entities in the upper loop
| tests/components/physics-collider.test.js | Also test removal of collided entities in the upper loop | <ide><path>ests/components/physics-collider.test.js
<ide> this.el.body.world.idToBodyMap[3] = undefined
<ide> this.comp.tick()
<ide> assert.isFalse(this.comp.collisions.has(this.target2), 'lower loop')
<add> this.el.body.world.idToBodyMap[1] = undefined
<add> this.comp.tick()
<add> asse... | |
Java | mit | 2dc23c1b75ef3667ffd17f68e50255874e694ef4 | 0 | silencio-app/app | package io.github.silencio_app.silencio;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.media.MediaRecorder;
import android.net.DhcpInfo;
import android.net.wifi.W... | app/src/main/java/io/github/silencio_app/silencio/MainActivity.java | package io.github.silencio_app.silencio;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.media.Image;
import android.media.MediaRecorder;
import android.net.DhcpInf... | Get broadcast address fixed
Signed-off-by: Divay Prakash <5970e2cf53ccdf0b4ceedbaa2c2304418366be51@gmail.com>
| app/src/main/java/io/github/silencio_app/silencio/MainActivity.java | Get broadcast address fixed | <ide><path>pp/src/main/java/io/github/silencio_app/silencio/MainActivity.java
<ide> import android.content.Context;
<ide> import android.content.Intent;
<ide> import android.content.pm.ActivityInfo;
<del>import android.media.Image;
<ide> import android.media.MediaRecorder;
<ide> import android.net.DhcpInfo;
<ide> impor... | |
Java | bsd-3-clause | 9dfdc77f63655c2ca58791e0ad7d48ec2b56b03d | 0 | eclipse/rdf4j,eclipse/rdf4j,eclipse/rdf4j,eclipse/rdf4j,eclipse/rdf4j,eclipse/rdf4j | /*******************************************************************************
* Copyright (c) 2018 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, an... | shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/AST/MaxCountPropertyShape.java | /*******************************************************************************
* Copyright (c) 2018 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, an... | eclipse/rdf4j#1380 innerjoin
Signed-off-by: Håvard Ottestad <0313105c39e1062c29c412ba0556463f04f14c95@gmail.com>
| shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/AST/MaxCountPropertyShape.java | eclipse/rdf4j#1380 innerjoin | <ide><path>hacl/src/main/java/org/eclipse/rdf4j/sail/shacl/AST/MaxCountPropertyShape.java
<ide> import org.eclipse.rdf4j.sail.shacl.ShaclSailConnection;
<ide> import org.eclipse.rdf4j.sail.shacl.SourceConstraintComponent;
<ide> import org.eclipse.rdf4j.sail.shacl.planNodes.BufferedPlanNode;
<del>import org.eclipse.rdf4... | |
Java | apache-2.0 | 9f249fe0075bb40ed1b4d9288f0c38a0cf7307be | 0 | Linuxea/testUnit | package url.httpclient;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import org.junit.Test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class HttpTest {
... | src/main/java/url/httpclient/HttpTest.java | package url.httpclient;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import org.junit.Test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class HttpTest {
... | update
| src/main/java/url/httpclient/HttpTest.java | update | <ide><path>rc/main/java/url/httpclient/HttpTest.java
<ide> HttpClient httpClient = new HttpClient();
<ide> PostMethod postMethod = new PostMethod(choiceUrl);
<ide> NameValuePair[] nameValuePairs = { new NameValuePair("username","username"),
<del> new NameValuePair("password","Admin201706"... | |
Java | apache-2.0 | d2cf75be9a7ec9b85dac005ca2622e073bf05ca8 | 0 | vroyer/elasticassandra,strapdata/elassandra,vroyer/elassandra,strapdata/elassandra,strapdata/elassandra,strapdata/elassandra,vroyer/elasticassandra,vroyer/elasticassandra,vroyer/elassandra,vroyer/elassandra,strapdata/elassandra | /*
* Licensed to Elasticsearch 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
* not use this fi... | core/src/main/java/org/elasticsearch/Version.java | /*
* Licensed to Elasticsearch 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
* not use this fi... | Add unreleased v6.1.2 version
| core/src/main/java/org/elasticsearch/Version.java | Add unreleased v6.1.2 version | <ide><path>ore/src/main/java/org/elasticsearch/Version.java
<ide> public static final Version V_6_1_0 = new Version(V_6_1_0_ID, org.apache.lucene.util.Version.LUCENE_7_1_0);
<ide> public static final int V_6_1_1_ID = 6010199;
<ide> public static final Version V_6_1_1 = new Version(V_6_1_1_ID, org.apache.luc... | |
Java | apache-2.0 | 6fd989db16f49ef0d7330f3ba3dc4b2cf7023e91 | 0 | getlantern/lantern-java,getlantern/lantern-java,getlantern/lantern-java,getlantern/lantern-java,lqch14102/lantern,lqch14102/lantern,lqch14102/lantern,getlantern/lantern-java,lqch14102/lantern,getlantern/lantern-java,lqch14102/lantern,getlantern/lantern-java,lqch14102/lantern,getlantern/lantern-java,lqch14102/lantern,lq... | package org.lantern;
import static org.junit.Assert.*;
import java.io.File;
import java.net.InetSocketAddress;
import java.util.Collection;
import java.util.concurrent.Callable;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.jivesoftware.smack.Roster;
import org.jiveso... | src/test/java/org/lantern/LanternUtilsTest.java | package org.lantern;
import static org.junit.Assert.*;
import java.io.File;
import java.net.InetSocketAddress;
import java.util.Collection;
import java.util.concurrent.Callable;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.jivesoftware.smack.Roster;
import org.jiveso... | removed unlimited strength test
| src/test/java/org/lantern/LanternUtilsTest.java | removed unlimited strength test | <ide><path>rc/test/java/org/lantern/LanternUtilsTest.java
<ide> LanternUtils.replaceInFile(temp, "<true/>", "<false/>");
<ide> final String newFile = FileUtils.readFileToString(temp, "UTF-8");
<ide> assertEquals("blah blah blah <false/> blah blah", newFile);
<del> }
<del>
<del>
<del> @Test... | |
JavaScript | mit | 5e82667b9d76a156741ccc36faf0ac24dabd9359 | 0 | dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4 | $(document).ready(function() {
// Defining all the navs on the frontpage
var navs = {
'#events': $('#events').offset().top,
'#articles': $('#articles').offset().top,
'#about': $('#about').offset().top,
'#business': $('#business').offset().top,
'#offline': $('#offline').of... | static/js/scroller.js | $(document).ready(function() {
function setnavs() {
navs = {
'#events': jQuery('#events').offset().top - 50,
'#articles': jQuery('#articles').offset().top - 50,
'#about': jQuery('#about').offset().top - 50,
'#business': jQuery('#business').offset().top - 50,
... | Attempt to clean up the scrolling-code
| static/js/scroller.js | Attempt to clean up the scrolling-code | <ide><path>tatic/js/scroller.js
<ide> $(document).ready(function() {
<del>
<del> function setnavs() {
<del> navs = {
<del> '#events': jQuery('#events').offset().top - 50,
<del> '#articles': jQuery('#articles').offset().top - 50,
<del> '#about': jQuery('#about').offset().top - ... | |
Java | epl-1.0 | error: pathspec 'src/main/java/eu/jpereira/trainings/designpatterns/structural/adapter/thirdparty/ThirdParyDoorObjectAdapter.java' did not match any file(s) known to git
| 177ff2c463f346aac6c3648059d5c67fa2952e39 | 1 | magiclud/adapter | package eu.jpereira.trainings.designpatterns.structural.adapter.thirdparty;
import eu.jpereira.trainings.designpatterns.structural.adapter.exceptions.CodeMismatchException;
import eu.jpereira.trainings.designpatterns.structural.adapter.exceptions.IncorrectDoorCodeException;
import eu.jpereira.trainings.designpatterns.... | src/main/java/eu/jpereira/trainings/designpatterns/structural/adapter/thirdparty/ThirdParyDoorObjectAdapter.java | zadanie 1.3 z samym implements
| src/main/java/eu/jpereira/trainings/designpatterns/structural/adapter/thirdparty/ThirdParyDoorObjectAdapter.java | zadanie 1.3 z samym implements | <ide><path>rc/main/java/eu/jpereira/trainings/designpatterns/structural/adapter/thirdparty/ThirdParyDoorObjectAdapter.java
<add>package eu.jpereira.trainings.designpatterns.structural.adapter.thirdparty;
<add>
<add>import eu.jpereira.trainings.designpatterns.structural.adapter.exceptions.CodeMismatchException;
<add>imp... | |
Java | epl-1.0 | 170449f74541614c7b893b86fa348659618254a7 | 0 | davidfestal/che,codenvy/che,codenvy/che,davidfestal/che,davidfestal/che,davidfestal/che,akervern/che,akervern/che,akervern/che,davidfestal/che,akervern/che,davidfestal/che,akervern/che,davidfestal/che,codenvy/che,davidfestal/che,davidfestal/che,akervern/che,codenvy/che,davidfestal/che,akervern/che,akervern/che,akervern... | /*
* Copyright (c) 2012-2018 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... | selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/miscellaneous/WorkingWithTerminalTest.java | /*
* Copyright (c) 2012-2018 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... | Fix WorkingWithTerminalTest not to depend on 'workspaceId' in CLI prompt (#10846)
Signed-off-by: Dmytro Nochevnov <812b863aa143ed75c9fe7059073e2893ee4cd3db@codenvy.com> | selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/miscellaneous/WorkingWithTerminalTest.java | Fix WorkingWithTerminalTest not to depend on 'workspaceId' in CLI prompt (#10846) | <ide><path>elenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/miscellaneous/WorkingWithTerminalTest.java
<ide>
<ide> @BeforeMethod
<ide> private void prepareNewTerminal() {
<del> try {
<del> panelSelector.selectPanelTypeFromPanelSelector(LEFT_BOTTOM_ID);
<del>
<del> projectExplorer.waitI... | |
Java | mit | 91137e922e6e7c3546408c1d32930a204aff5101 | 0 | seanhold3n/sleep-analytics,seanhold3n/sleep-analytics | package model;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @author sean
*/
public final class DaySleepDurationMap extends DayValuesMap {
private static final long serialVersionUID = -4755148060348935227L;
private static DaySleepDurationMap singleMap;
private DaySleepDurati... | src/main/java/model/DaySleepDurationMap.java | package model;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @author sean
*/
public final class DaySleepDurationMap extends DayValuesMap {
private static final long serialVersionUID = -4755148060348935227L;
private static DaySleepDurationMap singleMap;
private DaySleepDurati... | Fixed moving behavior for statistical analysis.
| src/main/java/model/DaySleepDurationMap.java | Fixed moving behavior for statistical analysis. | <ide><path>rc/main/java/model/DaySleepDurationMap.java
<ide>
<ide> for (Map.Entry<SimpleDay, Double> todayEntry : this.entrySet()){
<ide>
<del> // If in the first nDays (i.e. not enough items have been added to the set yet), just add them
<del> if (smaActiveSet.size() < nDays){
<del> smaActiveSet.add(today... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.