lang stringclasses 2
values | license stringclasses 13
values | stderr stringlengths 0 343 | commit stringlengths 40 40 | returncode int64 0 128 | repos stringlengths 6 87.7k | new_contents stringlengths 0 6.23M | new_file stringlengths 3 311 | old_contents stringlengths 0 6.23M | message stringlengths 6 9.1k | old_file stringlengths 3 311 | subject stringlengths 0 4k | git_diff stringlengths 0 6.31M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Java | apache-2.0 | error: pathspec 'src/main/java/tech/aroma/banana/data/memory/MessageRepositoryInMemory.java' did not match any file(s) known to git
| 64194edeacb7472b992e920399122895cd432231 | 1 | RedRoma/aroma-data-operations,AromaTech/banana-data-operations,RedRoma/banana-data-operations,RedRoma/aroma-data-operations | /*
* Copyright 2016 Aroma Tech.
*
* 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... | src/main/java/tech/aroma/banana/data/memory/MessageRepositoryInMemory.java | Adding MessageRepositoryInMemory | src/main/java/tech/aroma/banana/data/memory/MessageRepositoryInMemory.java | Adding MessageRepositoryInMemory | <ide><path>rc/main/java/tech/aroma/banana/data/memory/MessageRepositoryInMemory.java
<add>/*
<add> * Copyright 2016 Aroma Tech.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obtain a copy of the Li... | |
Java | bsd-3-clause | 14ef5feaffa8e57cb401810ebb8df0f8a4f14976 | 0 | nish5887/blueprints | package org.apache.usergrid.drivers.blueprints;
import com.fasterxml.jackson.databind.JsonNode;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.VertexQuery;
import org.apache.usergrid.java.client.Client;
import org... | blueprints-usergrid-graph/src/main/java/org/apache/usergrid/drivers/blueprints/UsergridVertex.java | package org.apache.usergrid.drivers.blueprints;
import com.fasterxml.jackson.databind.JsonNode;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.VertexQuery;
import org.apache.usergrid.java.client.Client;
import org... | Support for null value of property that did not exist before
| blueprints-usergrid-graph/src/main/java/org/apache/usergrid/drivers/blueprints/UsergridVertex.java | Support for null value of property that did not exist before | <ide><path>lueprints-usergrid-graph/src/main/java/org/apache/usergrid/drivers/blueprints/UsergridVertex.java
<ide> }
<ide> }
<ide> }
<del> } else {
<add> } else if (value.equals(null)&&this.getProperty(key).equals(null)) {
<add> throw new IllegalA... | |
JavaScript | mit | cfeba8fe95cfba2ae4087962792fd304c78bd3e3 | 0 | mmig/mmir-lib | /*
* Copyright (C) 2012-2013 DFKI GmbH
* Deutsches Forschungszentrum fuer Kuenstliche Intelligenz
* German Research Center for Artificial Intelligence
* http://www.dfki.de
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentati... | manager/mediaManager.js | /*
* Copyright (C) 2012-2013 DFKI GmbH
* Deutsches Forschungszentrum fuer Kuenstliche Intelligenz
* German Research Center for Artificial Intelligence
* http://www.dfki.de
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentati... | added support for "observering listeners", i.e. observing registration /
removal of event-listeners | manager/mediaManager.js | added support for "observering listeners", i.e. observing registration / removal of event-listeners | <ide><path>anager/mediaManager.js
<ide> */
<ide> function constructor(){
<ide>
<add> //map of listeners for event X
<ide> var listener = new Dictionary();
<del>
<del> var logger = Logger.create(module);
<add> //map of listener-observers (get notified if listener for event X gets add... | |
Java | apache-2.0 | 89fbe746e83397ca6317f7d1811fe60b4b5ac296 | 0 | shibing624/ansj_seg,chaoliu1024/ansj_seg,chaoliu1024/ansj_seg,XYUU/ansj_seg,walletma/ansj_seg,NLPchina/ansj_seg,shibing624/ansj_seg,walletma/ansj_seg,waiteryee1/ansj_seg,waiteryee1/ansj_seg | src/test/java/org/ansj/demo/WapitiModelDemo.java | package org.ansj.demo;
import org.ansj.app.crf.Model;
import org.ansj.app.crf.model.WapitiCRFModel;
import org.ansj.util.MyStaticValue;
public class WapitiModelDemo {
public static void main(String[] args) throws Exception {
Model model = WapitiCRFModel.parseFileToModel("/Users/sunjian/Documents/src/Wapiti/test... | 删除了wapiti的模型转换方式.替代以直接调用wapitit的模型
| src/test/java/org/ansj/demo/WapitiModelDemo.java | 删除了wapiti的模型转换方式.替代以直接调用wapitit的模型 | <ide><path>rc/test/java/org/ansj/demo/WapitiModelDemo.java
<del>package org.ansj.demo;
<del>
<del>import org.ansj.app.crf.Model;
<del>import org.ansj.app.crf.model.WapitiCRFModel;
<del>import org.ansj.util.MyStaticValue;
<del>
<del>public class WapitiModelDemo {
<del> public static void main(String[] args) throws Excep... | ||
JavaScript | mit | f25404839ee88e98690ced8054ae7fb4f55a35f8 | 0 | mountsbefore/blog,lidan-cn/blog,mountsbefore/blog,lidan-cn/blog,mountsbefore/blog,lidan-cn/blog | "use strict"
var express = require('express');
var session = require('express-session');
var cookieParser = require('cookie-parser');
var db_connect_str = "mongodb://localhost/test"
var mongoose = require('mongoose');
var User = require("./application/model/user");
mongoose.connect(db_connect_str);//;连接数据库
var Mong... | rear/app.js | "use strict"
var express = require('express');
var session = require('express-session');
var cookieParser = require('cookie-parser');
var db_connect_str = "mongodb://localhost/test"
var mongoose = require('mongoose');
var User = require("./application/model/user");
var db = mongoose.createConnection(db_connect_str)... | run app in 8080
| rear/app.js | run app in 8080 | <ide><path>ear/app.js
<ide>
<ide> var User = require("./application/model/user");
<ide>
<del>var db = mongoose.createConnection(db_connect_str);//;连接数据库
<del>
<del>db.on('error',console.error.bind(console,'连接错误:'));
<del>db.once('open', function (callback) {
<del> console.log("open.....")
<del>});
<del>
<add>mongoo... | |
Java | apache-2.0 | fd166b8b35e78075d7be70048bd41f9f6e068692 | 0 | supunucsc/java-sdk,m2fd/java-sdk,watson-developer-cloud/java-sdk,watson-developer-cloud/java-sdk,m2fd/java-sdk,JoshSharpe/java-sdk,watson-developer-cloud/java-sdk,JoshSharpe/java-sdk,JoshSharpe/java-sdk,supunucsc/java-sdk,watson-developer-cloud/java-sdk,supunucsc/java-sdk,m2fd/java-sdk | /**
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | src/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java | /**
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | remove semicolon from user agent
| src/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java | remove semicolon from user agent | <ide><path>rc/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java
<ide> builder.header(key, defaultHeaders.get(key));
<ide> }
<ide> if (defaultHeaders.get(HttpHeaders.USER_AGENT) != null) {
<del> userAgent += "; " + defaultHeaders.get(HttpHeaders.USER_AGENT);
<add> user... | |
Java | mit | 2e50c3052f1aa2c167ab5a02001addb43037ae1d | 0 | Bipshark/TDA367,Bipshark/TDA367 | package edu.chalmers.sankoss.desktop.mvc.waiting;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import edu.chalmers.sankoss.core.core.CorePlayer;... | desktop/src/main/java/edu/chalmers/sankoss/desktop/mvc/waiting/WaitingRenderer.java | package edu.chalmers.sankoss.desktop.mvc.waiting;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import edu.chalmers.sankoss.core.core.CorePlayer;... | Made buttons in waitingRenderer bigger
| desktop/src/main/java/edu/chalmers/sankoss/desktop/mvc/waiting/WaitingRenderer.java | Made buttons in waitingRenderer bigger | <ide><path>esktop/src/main/java/edu/chalmers/sankoss/desktop/mvc/waiting/WaitingRenderer.java
<ide>
<ide> getTable().add(lblWaiting).expand().colspan(2);
<ide> getTable().row();
<del> getTable().add(btnBack);
<del> getTable().add(btnStart);
<add> getTable().add(btnBack.pad(8f)).lef... | |
Java | apache-2.0 | e09fa9e1fcc03f48fe1be4e29fe09eb1637ee4a8 | 0 | jbfromlbc/insightcmislab2014 | package org.foo;
import java.math.BigInteger;
import javax.servlet.http.HttpServletRequest;
import org.apache.chemistry.opencmis.commons.data.ExtensionsData;
import org.apache.chemistry.opencmis.commons.data.ObjectInFolderList;
import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships;
import org.... | src/main/java/org/foo/CmisCustomLoggingServiceWrapper.java | package org.foo;
import java.math.BigInteger;
import javax.servlet.http.HttpServletRequest;
import org.apache.chemistry.opencmis.commons.data.ExtensionsData;
import org.apache.chemistry.opencmis.commons.data.ObjectInFolderList;
import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships;
import org.... | clean up getChildren log | src/main/java/org/foo/CmisCustomLoggingServiceWrapper.java | clean up getChildren log | <ide><path>rc/main/java/org/foo/CmisCustomLoggingServiceWrapper.java
<ide> Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,
<ide> Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
<ide>
<del> slflog("getChildren ... | |
Java | mit | 49969fb5fc9a66da721767fb71120c4c5092f0f5 | 0 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | package leetcode;
import java.util.Arrays;
/**
* https://leetcode.com/problems/matchsticks-to-square/
*/
public class Problem473 {
public boolean makesquare(int[] nums) {
int sum = 0;
for (int num : nums) {
sum += num;
}
int length = sum / 4;
int remainder = s... | src/main/java/leetcode/Problem473.java | package leetcode;
/**
* https://leetcode.com/problems/matchsticks-to-square/
*/
public class Problem473 {
public boolean makesquare(int[] nums) {
int sum = 0;
for (int num : nums) {
sum += num;
}
int length = sum / 4;
int remainder = sum % 4;
if (remain... | Solve problem 473
| src/main/java/leetcode/Problem473.java | Solve problem 473 | <ide><path>rc/main/java/leetcode/Problem473.java
<ide> package leetcode;
<add>
<add>import java.util.Arrays;
<ide>
<ide> /**
<ide> * https://leetcode.com/problems/matchsticks-to-square/
<ide> }
<ide> int length = sum / 4;
<ide> int remainder = sum % 4;
<del> if (remainder != 0) {
<add> ... | |
Java | apache-2.0 | error: pathspec 'src/jdk15/org/testng/internal/remote/SocketLinkedBlockingQueue.java' did not match any file(s) known to git
| 93a14781814bcd3a907100f07fde77f2378ec0e5 | 1 | ludovicc/testng-debian,ludovicc/testng-debian,ludovicc/testng-debian | /*
* @(#)LinkedBlockingQueue.java
*
* Copyright 1999-2004 by Taleo Corporation,
* 330 St-Vallier East, Suite 400, Quebec city, Quebec, G1K 9C5, CANADA
* All rights reserved
*/
package org.testng.internal.remote;
import java.net.Socket;
public class SocketLinkedBlockingQueue extends java.util.concurre... | src/jdk15/org/testng/internal/remote/SocketLinkedBlockingQueue.java | Container class specific to JDK15
git-svn-id: 0fb7d80ee932ae2a080de675cb20a4788b2d07b0@177 1a8b0fc8-9519-0410-aeec-afd8fd7729cf
| src/jdk15/org/testng/internal/remote/SocketLinkedBlockingQueue.java | Container class specific to JDK15 | <ide><path>rc/jdk15/org/testng/internal/remote/SocketLinkedBlockingQueue.java
<add>/*
<add> * @(#)LinkedBlockingQueue.java
<add> *
<add> * Copyright 1999-2004 by Taleo Corporation,
<add> * 330 St-Vallier East, Suite 400, Quebec city, Quebec, G1K 9C5, CANADA
<add> * All rights reserved
<add> */
<add>package org.testng.i... | |
Java | apache-2.0 | bac485927250621c7edb192ff38e2047176a4586 | 0 | yelshater/hadoop-2.3.0,yelshater/hadoop-2.3.0,yelshater/hadoop-2.3.0,yelshater/hadoop-2.3.0,yelshater/hadoop-2.3.0 | /**
* 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... | hadoop-mapreduce-client-app-2.3.0-cdh5.1.0/src/main/java/org/apache/hadoop/mapreduce/v2/app/rm/RMContainerRequestor.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... | Creating a new protocol message called SplitMessage that holds the required split meta-data. This is the main protocol between RM and AM to send and receive the blocks' meta-data info in each message
| hadoop-mapreduce-client-app-2.3.0-cdh5.1.0/src/main/java/org/apache/hadoop/mapreduce/v2/app/rm/RMContainerRequestor.java | Creating a new protocol message called SplitMessage that holds the required split meta-data. This is the main protocol between RM and AM to send and receive the blocks' meta-data info in each message | <ide><path>adoop-mapreduce-client-app-2.3.0-cdh5.1.0/src/main/java/org/apache/hadoop/mapreduce/v2/app/rm/RMContainerRequestor.java
<ide> import java.util.ArrayList;
<ide> import java.util.Collections;
<ide> import java.util.HashMap;
<add>import java.util.List;
<ide> import java.util.Map;
<ide> import java.util.Set;
<id... | |
JavaScript | mit | d70553841b6e7c832babf560dc42c07044f2fd25 | 0 | AyoyAB/node-jwt | /**
* JSON Web Signature signing/validation module.
*
* @module jws
*/
var hmac = require('./hmac');
var base64url = require('./base64url');
/**
* Signing algorithms.
*
* @enum algorithm
*/
exports.algorithm = {
/** HMAC with SHA-256 */
HmacWithSha256: 'HS256',
/** RSA with PKCS#1 v 1.5 paddi... | lib/jws.js | /**
* JSON Web Signature signing/validation module.
*
* @module jws
*/
var hmac = require('./hmac');
var base64url = require('./base64url');
/**
* Signing algorithms.
*
* @enum algorithm
*/
exports.algorithm = {
/** HMAC with SHA-256 */
HmacWithSha256: 'HS256',
/** RSA with PKCS#1 v 1.5 paddi... | More test code cleanup
| lib/jws.js | More test code cleanup | <ide><path>ib/jws.js
<ide> /** HMAC with SHA-256 */
<ide> HmacWithSha256: 'HS256',
<ide> /** RSA with PKCS#1 v 1.5 padding and SHA-256 */
<del> RsaSsaWithSha256: 'RS256',
<add> RsaPkcs115WithSha256: 'RS256',
<ide> /** ECDSA with Suite B elliptic curve P-256 and SHA-256 */
<ide> EcdsaP256WithSh... | |
Java | mit | 01ae1807fd98b136405afda37038f5d47e2c8df2 | 0 | lightblueseas/swing-components,lightblueseas/swing-components | /**
* The MIT License
*
* Copyright (C) 2015 Asterios Raptis
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, c... | src/main/java/de/alpharogroup/swing/panels/lottery/LotteryBox.java | /**
* The MIT License
*
* Copyright (C) 2015 Asterios Raptis
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, c... | Update LotteryBox.java | src/main/java/de/alpharogroup/swing/panels/lottery/LotteryBox.java | Update LotteryBox.java | <ide><path>rc/main/java/de/alpharogroup/swing/panels/lottery/LotteryBox.java
<ide> @Builder.Default
<ide> int minVolume = 1;
<ide>
<add> /** The step count for the iteration */
<add> @Builder.Default
<add> int step = 1;
<add>
<ide> /** The selected numbers. */
<ide> LinkedHashSet<Integer> selectedNumbers;
<ide> | |
JavaScript | agpl-3.0 | 602d3e94b9b2d07ca7fc5522f3180eef33a67593 | 0 | schuel/hmmm,Openki/Openki,Openki/Openki,Openki/Openki,schuel/hmmm,schuel/hmmm | Template.region_sel_outer.created = function(){
this.subscribe("Regions");
var instance = this;
instance.searchingRegions = new ReactiveVar(false);
};
Template.region_sel_outer.helpers({
searchingRegions: function() {
return Template.instance().searchingRegions.get();
}
});
Template.regionsDisplay.helpers({... | client/views/regions/regions.js | Template.region_sel_outer.created = function(){
this.subscribe("Regions");
var instance = this;
instance.searchingRegions = new ReactiveVar(false);
};
Template.region_sel_outer.helpers({
searchingRegions: function() {
return Template.instance().searchingRegions.get();
}
});
Template.regionsDisplay.helpers({... | avoit premature region search
| client/views/regions/regions.js | avoit premature region search | <ide><path>lient/views/regions/regions.js
<ide>
<ide> 'focus .-searchRegions': function(event, instance) {
<ide> instance.$('.dropdown-toggle').dropdown('toggle');
<del> updateRegionSearch(event, instance);
<ide> }
<ide> }); | |
JavaScript | mit | 71c467635f70a097e669e4f21691293c4c73da94 | 0 | alphagov/govuk_elements,gavboulton/govuk_elements,alphagov/govuk_elements,gavboulton/govuk_elements,joelanman/govuk_elements,gavboulton/govuk_elements,gavboulton/govuk_elements,TFOH/govuk_elements,TFOH/govuk_elements,alphagov/govuk_elements,joelanman/govuk_elements,alphagov/govuk_elements | // <details> polyfill
// http://caniuse.com/#feat=details
// FF Support for HTML5's <details> and <summary>
// https://bugzilla.mozilla.org/show_bug.cgi?id=591737
// http://www.sitepoint.com/fixing-the-details-element/
(function () {
'use strict';
// Add event construct for modern browsers or IE
// which fire... | public/javascripts/vendor/details.polyfill.js | // <details> polyfill
// http://caniuse.com/#feat=details
// FF Support for HTML5's <details> and <summary>
// https://bugzilla.mozilla.org/show_bug.cgi?id=591737
// http://www.sitepoint.com/fixing-the-details-element/
(function () {
// Add event construct for modern browsers or IE
// which fires the callback w... | Add `use strict` for details polyfill.
| public/javascripts/vendor/details.polyfill.js | Add `use strict` for details polyfill. | <ide><path>ublic/javascripts/vendor/details.polyfill.js
<ide> // http://www.sitepoint.com/fixing-the-details-element/
<ide>
<ide> (function () {
<add> 'use strict';
<ide>
<ide> // Add event construct for modern browsers or IE
<ide> // which fires the callback with a pre-converted target reference | |
Java | apache-2.0 | 7116f8bc507f1513ea158e82a21e374169e2c16d | 0 | kryptnostic/kodex | package com.kryptnostic.v2.storage.api;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import com.kryptnostic.kodex.v1.crypto.ciphers.BlockCiphertext;
import com.kryptnostic.v2.constants.Names;
import com.kryptnostic.v2.storage.models.CreateMetadataObjectRequest;
import com.kryptnostic.v2.storage.... | src/main/java/com/kryptnostic/v2/storage/api/ObjectStorageApi.java | package com.kryptnostic.v2.storage.api;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import com.kryptnostic.kodex.v1.crypto.ciphers.BlockCiphertext;
import com.kryptnostic.v2.constants.Names;
import com.kryptnostic.v2.storage.models.CreateMetadataObjectRequest;
import com.kryptnostic.v2.storage.... | remove unused calls
| src/main/java/com/kryptnostic/v2/storage/api/ObjectStorageApi.java | remove unused calls | <ide><path>rc/main/java/com/kryptnostic/v2/storage/api/ObjectStorageApi.java
<ide> import com.kryptnostic.v2.storage.models.ObjectMetadata;
<ide> import com.kryptnostic.v2.storage.models.ObjectMetadataEncryptedNode;
<ide> import com.kryptnostic.v2.storage.models.ObjectTreeLoadRequest;
<del>import com.kryptnostic.v2.sto... | |
JavaScript | mit | 1758b64191b43d8254437f2145bdfd0a873d2ab7 | 0 | nicolasmccurdy/procrastinate,nicolasmccurdy/procrastinate | var assert = require('assert');
var fs = require('fs');
var path = require('path');
var procrastinate = require('..');
describe('procrastinate()', function () {
context('with an empty input', function () {
it('returns an empty string', function () {
assert.equal(procrastinate('mocha', ''), '');
});
}... | test/index.js | var assert = require('assert');
var fs = require('fs');
var procrastinate = require('..');
describe('procrastinate()', function () {
context('with an empty input', function () {
it('returns an empty string', function () {
assert.equal(procrastinate('mocha', ''), '');
});
});
var fileOptions = { en... | Add a test helper function for reading data files
| test/index.js | Add a test helper function for reading data files | <ide><path>est/index.js
<ide> var assert = require('assert');
<ide> var fs = require('fs');
<add>var path = require('path');
<ide> var procrastinate = require('..');
<ide>
<ide> describe('procrastinate()', function () {
<ide> });
<ide>
<ide> var fileOptions = { encoding: 'utf-8' };
<del> var input = fs.readFileS... | |
JavaScript | isc | 4e654120122c1f36a0ebd1ced7a5db56a460db56 | 0 | bladerunner2020/node-red-contrib-mikrotik,bladerunner2020/node-red-contrib-mikrotik | /**
* Created by Bladerunner on 11/03/16.
*/
var mikrotik = require('mikronode-ng');
module.exports = function(RED) {
function NodeMikrotik(config) {
RED.nodes.createNode(this,config);
this.action = config.action;
this.ip = config.ip;
this.action = config.action;
var node... | mikrotik.js | /**
* Created by Bladerunner on 11/03/16.
*/
var mikrotik = require('mikronode-ng');
module.exports = function(RED) {
function NodeMikrotik(config) {
RED.nodes.createNode(this,config);
this.action = config.action;
this.ip = config.ip;
this.action = config.action;
var node... | fix once "action" bug (#2)
Bug: If used msg.payload, "action" variable not cleared in (assigned once). | mikrotik.js | fix once "action" bug (#2) | <ide><path>ikrotik.js
<ide> var connection = null;
<ide>
<ide> this.on('input', function(msg) {
<del> if (action == '') action = msg.payload;
<del> if(action == '') return false;
<add> var cmd = action;
<add> if (cmd == '') cmd = msg.payload;
<add> ... | |
Java | mit | bb9252743b1d53a93e483d53095b0f239919a17b | 0 | hhu-stups/bmoth | package de.bmoth.ltl;
import de.bmoth.backend.ltl.LTLTransformations;
import de.bmoth.parser.Parser;
import de.bmoth.parser.ParserException;
import de.bmoth.parser.ast.nodes.ltl.LTLBPredicateNode;
import de.bmoth.parser.ast.nodes.ltl.LTLFormula;
import de.bmoth.parser.ast.nodes.ltl.LTLNode;
import de.bmoth.parser.ast.... | src/test/java/de/bmoth/ltl/LTLTransformationTest.java | package de.bmoth.ltl;
import de.bmoth.backend.ltl.LTLTransformations;
import de.bmoth.parser.Parser;
import de.bmoth.parser.ParserException;
import de.bmoth.parser.ast.nodes.ltl.LTLFormula;
import de.bmoth.parser.ast.nodes.ltl.LTLNode;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ... | add test verifying if LTL not is pushed into the B predicate | src/test/java/de/bmoth/ltl/LTLTransformationTest.java | add test verifying if LTL not is pushed into the B predicate | <ide><path>rc/test/java/de/bmoth/ltl/LTLTransformationTest.java
<ide> import de.bmoth.backend.ltl.LTLTransformations;
<ide> import de.bmoth.parser.Parser;
<ide> import de.bmoth.parser.ParserException;
<add>import de.bmoth.parser.ast.nodes.ltl.LTLBPredicateNode;
<ide> import de.bmoth.parser.ast.nodes.ltl.LTLFormula;
<id... | |
Java | apache-2.0 | d36549e64ba11c090073a645b18ecfd4f39c5e1d | 0 | AVnetWS/Hentoid,AVnetWS/Hentoid,AVnetWS/Hentoid | package me.devsaki.hentoid.database;
import android.content.Context;
import android.util.SparseIntArray;
import androidx.annotation.NonNull;
import com.annimon.stream.Collectors;
import com.annimon.stream.Stream;
import org.apache.commons.lang3.tuple.ImmutablePair;
import java.util.ArrayList;
import java.util.Coll... | app/src/main/java/me/devsaki/hentoid/database/ObjectBoxDB.java | package me.devsaki.hentoid.database;
import android.content.Context;
import android.util.SparseIntArray;
import androidx.annotation.NonNull;
import com.annimon.stream.Collectors;
import com.annimon.stream.Stream;
import org.apache.commons.lang3.tuple.ImmutablePair;
import java.util.ArrayList;
import java.util.Coll... | Cleanup
| app/src/main/java/me/devsaki/hentoid/database/ObjectBoxDB.java | Cleanup | <ide><path>pp/src/main/java/me/devsaki/hentoid/database/ObjectBoxDB.java
<ide> QueryBuilder<Group> qb = store.boxFor(Group.class).query().equal(Group_.grouping, grouping);
<ide>
<ide> if (0 == orderStyle) qb.order(Group_.name);
<del> // TODO implement order by number of children
<del> ... | |
Java | apache-2.0 | 5d47e3871fd1464f0ed97ace9b9ab187a362dad5 | 0 | michal-lipski/java8-workshop,nurkiewicz/java8-workshop,michal-lipski/java8-workshop | package com.nurkiewicz.java8;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.fest.assertions.api.Assertions.assertThat;
/**
* Hint: String.chars()
*/
public class J05b_StringsTest {
@Test
public void arrAllCharactersDigits() throws Exception {
assertThat(onlyDigits("... | src/test/java/com/nurkiewicz/java8/J05b_StringsTest.java | package com.nurkiewicz.java8;
import org.junit.Ignore;
import org.junit.Test;
import static org.fest.assertions.api.Assertions.assertThat;
/**
* Hint: String.chars()
*/
@Ignore
public class J05b_StringsTest {
@Test
public void arrAllCharactersDigits() throws Exception {
assertThat(onlyDigits("+12 345-678 (90)... | String tests
| src/test/java/com/nurkiewicz/java8/J05b_StringsTest.java | String tests | <ide><path>rc/test/java/com/nurkiewicz/java8/J05b_StringsTest.java
<ide> package com.nurkiewicz.java8;
<ide>
<del>import org.junit.Ignore;
<ide> import org.junit.Test;
<add>
<add>import java.util.Arrays;
<add>import java.util.List;
<ide>
<ide> import static org.fest.assertions.api.Assertions.assertThat;
<ide>
<ide> ... | |
Java | apache-2.0 | b98d315050d82843a31158dfe18ab9e79c70d8b3 | 0 | shinymayhem/radio-presets-widget | /*
* Copyright (C) 2013 Reese Wilson | Shiny Mayhem
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 appl... | src/com/shinymayhem/radiopresets/RadioPlayer.java | /*
* Copyright (C) 2013 Reese Wilson | Shiny Mayhem
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 appl... | changing service to not auto-start, not-sticky
affects #1
| src/com/shinymayhem/radiopresets/RadioPlayer.java | changing service to not auto-start, not-sticky | <ide><path>rc/com/shinymayhem/radiopresets/RadioPlayer.java
<ide> int preset = Integer.valueOf(intent.getIntExtra(MainActivity.EXTRA_STATION_PRESET, 0));
<ide> log("preset in action:" + String.valueOf(preset), "v");
<ide> play(preset);
<del> return START_REDELIVER_INTENT;
<add> //return START_REDELIV... | |
Java | epl-1.0 | f402f608f7921b24791cb40be3c83e7ebfa63006 | 0 | Snickermicker/smarthome,Snickermicker/smarthome,Snickermicker/smarthome,Snickermicker/smarthome | /**
* Copyright (c) 2014,2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is av... | bundles/config/org.eclipse.smarthome.config.discovery/src/main/java/org/eclipse/smarthome/config/discovery/internal/console/InboxConsoleCommandExtension.java | /**
* Copyright (c) 2014,2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is av... | Display usage help when entering non-existing inbox console command; add (#5588)
explicit list command for inbox console commands.
Signed-off-by: Henning Sudbrock <e531a909cd67924dfdd976272c14533a099de87a@telekom.de> | bundles/config/org.eclipse.smarthome.config.discovery/src/main/java/org/eclipse/smarthome/config/discovery/internal/console/InboxConsoleCommandExtension.java | Display usage help when entering non-existing inbox console command; add (#5588) | <ide><path>undles/config/org.eclipse.smarthome.config.discovery/src/main/java/org/eclipse/smarthome/config/discovery/internal/console/InboxConsoleCommandExtension.java
<ide> import org.osgi.service.component.annotations.Reference;
<ide>
<ide> /**
<del> * This class provides console commands around the inbox functional... | |
Java | apache-2.0 | 981d94d96815b14c2f1ac940f45e38082876c4dc | 0 | anotherdev/robospice-fluent-request,anotherdev/robospice-fluent-request | package com.anotherdev.android.robospice;
import javax.annotation.Nullable;
abstract class Optional<T> {
public static <T> Optional<T> absent() {
return Absent.withType();
}
public static <T> Optional<T> from(@Nullable T nullableReference) {
return (nullableReference == null)
... | library/src/main/java/com/anotherdev/android/robospice/Optional.java | package com.anotherdev.android.robospice;
import javax.annotation.Nullable;
abstract class Optional<T> {
public static <T> Optional<T> absent() {
return Absent.withType();
}
public static <T> Optional<T> from(@Nullable T nullableReference) {
return (nullableReference == null)
... | don't use the same generic type
| library/src/main/java/com/anotherdev/android/robospice/Optional.java | don't use the same generic type | <ide><path>ibrary/src/main/java/com/anotherdev/android/robospice/Optional.java
<ide>
<ide> public abstract T or(T defaultValue);
<ide>
<add> public abstract Optional<T> or(Optional<? extends T> secondChoice);
<add>
<ide> @Nullable
<ide> public abstract T orNull();
<ide>
<del> protected T checkNotNu... | |
JavaScript | mit | c114848a75d96f62c04d460ee12a506a2ca626d7 | 0 | JustinBeaudry/gulp-gitmodified,mikaelbr/gulp-gitmodified,denvo/gulp-gitmodified | /*global describe, it*/
"use strict";
var should = require("should"),
through = require("through2"),
fs = require("fs"),
join = require("path").join,
git = require("../lib/git");
require("mocha");
var filePath = join(__dirname, "./fixtures/*.txt"),
expectedFile = join(__dirname, "./fixtures/a.txt");
var... | test/main.js | /*global describe, it*/
"use strict";
var should = require("should"),
through = require("through2"),
fs = require("fs"),
join = require("path").join,
git = require("../lib/git");
require("mocha");
var filePath = join(__dirname, "./fixtures/*.txt"),
expectedFile = join(__dirname, "./fixtures/a.txt");
var... | Adds assertion for if content is null on stream test.
| test/main.js | Adds assertion for if content is null on stream test. | <ide><path>est/main.js
<ide> path: "test/fixtures/a.txt",
<ide> cwd: "test/",
<ide> base: "test/fixtures/",
<del> contents: fs.createReadStream("test/fixtures/a.txt")
<add> contents: fs.createReadStream(join(__dirname, "/fixtures/a.txt"))
<ide> });
<ide>
<ide> git.getStatusByMatcher... | |
Java | apache-2.0 | 83c941d5e5479e8792771b169cabfab0a9b1fe83 | 0 | apache/geronimo,apache/geronimo,apache/geronimo,apache/geronimo | /**
* 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"); yo... | modules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.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"); yo... | delay setting of the response code
git-svn-id: 0d16bf2c240b8111500ec482b35765e5042f5526@531496 13f79535-47bb-0310-9956-ffa450edef68
| modules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java | delay setting of the response code | <ide><path>odules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
<ide> public void send(Message message) throws IOException {
<ide> Response response = (Response)request.get(Response.class);
<ide>
<del> // 1. handle response code
<del> ... | |
Java | mit | 794c2372988c998ed018a16e5157f094a1780cb8 | 0 | anagav/TinkerRocks | package com.tinkerrocks.process.traversal;
import com.tinkerrocks.index.RocksIndex;
import com.tinkerrocks.structure.RocksGraph;
import org.apache.tinkerpop.gremlin.process.traversal.Compare;
import org.apache.tinkerpop.gremlin.process.traversal.step.HasContainerHolder;
import org.apache.tinkerpop.gremlin.process.trav... | src/main/java/com/tinkerrocks/process/traversal/RocksGraphStep.java | package com.tinkerrocks.process.traversal;
import com.tinkerrocks.index.RocksIndex;
import com.tinkerrocks.structure.RocksGraph;
import org.apache.tinkerpop.gremlin.process.traversal.Compare;
import org.apache.tinkerpop.gremlin.process.traversal.step.HasContainerHolder;
import org.apache.tinkerpop.gremlin.process.trav... | supress warnings
| src/main/java/com/tinkerrocks/process/traversal/RocksGraphStep.java | supress warnings | <ide><path>rc/main/java/com/tinkerrocks/process/traversal/RocksGraphStep.java
<ide>
<ide> }
<ide>
<add> @SuppressWarnings("EqualsBetweenInconvertibleTypes")
<ide> private HasContainer getIndexKey(final Class<? extends Element> indexedClass) {
<ide> final Set<String> indexedKeys = ((RocksGraph) this... | |
Java | apache-2.0 | 9974591fdc894435a60627f9f12a5e674c029649 | 0 | tom-harwood/jburg3,tom-harwood/jburg3,tom-harwood/jburg3 | package jburg;
import java.util.*;
/**
* A State represents a vertex in the transition table.
* Vertices represent an equivalence class of input nodes,
* each of which has the same opcode/arity; an input node
* must match one of the pattern-matching productions in
* the state. The state may also be able to produ... | src/java/jburg/State.java | package jburg;
import java.util.*;
/**
* A State represents a vertex in the transition table.
* Vertices represent an equivalence class of input nodes,
* each of which has the same opcode/arity; an input node
* must match one of the pattern-matching productions in
* the state. The state may also be able to produ... | Remove State's Comparable semantics, add comments
| src/java/jburg/State.java | Remove State's Comparable semantics, add comments | <ide><path>rc/java/jburg/State.java
<ide> * the state. The state may also be able to produce other
<ide> * nonterminals via nonterminal-to-nonterminal closures.
<ide> *
<del> * The State class is Comparable so that it can be
<del> * sorted on its state number.
<add> * <p>Store State objects in hashed associative con... | |
Java | apache-2.0 | 93f02a8b3fa598a1996f3af15207e4ffb0fa29c7 | 0 | spiffyui/spiffyui,spiffyui/spiffyui,spiffyui/spiffyui | /*
* Copyright (c) 2010 Unpublished Work of Novell, Inc. All Rights Reserved.
*
* THIS WORK IS AN UNPUBLISHED WORK AND CONTAINS CONFIDENTIAL,
* PROPRIETARY AND TRADE SECRET INFORMATION OF NOVELL, INC. ACCESS TO
* THIS WORK IS RESTRICTED TO (I) NOVELL, INC. EMPLOYEES WHO HAVE A NEED
* TO KNOW HOW TO PERFORM ... | src/com/novell/spsample/client/WidgetsPanel.java | /*
* Copyright (c) 2010 Unpublished Work of Novell, Inc. All Rights Reserved.
*
* THIS WORK IS AN UNPUBLISHED WORK AND CONTAINS CONFIDENTIAL,
* PROPRIETARY AND TRADE SECRET INFORMATION OF NOVELL, INC. ACCESS TO
* THIS WORK IS RESTRICTED TO (I) NOVELL, INC. EMPLOYEES WHO HAVE A NEED
* TO KNOW HOW TO PERFORM ... | text tweaks to widgets panel
| src/com/novell/spsample/client/WidgetsPanel.java | text tweaks to widgets panel | <ide><path>rc/com/novell/spsample/client/WidgetsPanel.java
<ide>
<ide> addFancyButton();
<ide>
<add> addMessageButton();
<add>
<ide> addLoginPanel();
<del>
<del> addMessageButton();
<ide>
<ide> addMultiValueAutoComplete();
<ide>
<... | |
JavaScript | bsd-3-clause | 3519d16a73fbd3202c001bb4a358162435922491 | 0 | assetgraph/assetgraph-builder | var vm = require('vm'),
_ = require('underscore'),
memoizer = require('memoizer'),
uglify = require('uglify-js'),
uglifyAst = require('assetgraph/lib/util/uglifyAst'),
i18nTools = {};
// Helper for getting a prioritized list of relevant locale ids from a specific locale id.
// For instance, "en_US"... | lib/util/i18nTools.js | var vm = require('vm'),
_ = require('underscore'),
memoizer = require('memoizer'),
uglify = require('uglify-js'),
uglifyAst = require('assetgraph/lib/util/uglifyAst'),
i18nTools = {};
// Helper for getting a prioritized list of relevant locale ids from a specific locale id.
// For instance, "en_US"... | i18nTools.eachOneTrInAst: Fixed traversal order.
| lib/util/i18nTools.js | i18nTools.eachOneTrInAst: Fixed traversal order. | <ide><path>ib/util/i18nTools.js
<ide> return;
<ide> }
<ide> }
<del> for (var i = 0 ; i < node.length ; i += 1) {
<add> for (var i = node.length - 1 ; i >= 1 ; i -= 1) {
<ide> if (Array.isArray(node[i])) {
<ide> q.push(node[i]);
<ide> ... | |
Java | mit | 8bad1102eae3bad7aed8114ed40736bba037662a | 0 | yeputons/spbau-java-course-torrent-term4,yeputons/spbau-java-course-torrent-term4 | package net.yeputons.spbau.spring2016.torrent.client;
import net.yeputons.spbau.spring2016.torrent.FileDescription;
import net.yeputons.spbau.spring2016.torrent.StateFileHolder;
import net.yeputons.spbau.spring2016.torrent.TorrentConnection;
import net.yeputons.spbau.spring2016.torrent.TrackerServer;
import net.yeputo... | src/main/java/net/yeputons/spbau/spring2016/torrent/client/ConsoleClient.java | package net.yeputons.spbau.spring2016.torrent.client;
import net.yeputons.spbau.spring2016.torrent.FileDescription;
import net.yeputons.spbau.spring2016.torrent.StateFileHolder;
import net.yeputons.spbau.spring2016.torrent.TorrentConnection;
import net.yeputons.spbau.spring2016.torrent.TrackerServer;
import net.yeputo... | ConsoleClient: make part size specifiable via system properties
| src/main/java/net/yeputons/spbau/spring2016/torrent/client/ConsoleClient.java | ConsoleClient: make part size specifiable via system properties | <ide><path>rc/main/java/net/yeputons/spbau/spring2016/torrent/client/ConsoleClient.java
<ide> import java.util.LinkedList;
<ide>
<ide> public class ConsoleClient implements Runnable {
<del> private static final int PART_SIZE = 40;
<add> private final int partSize;
<ide> private final Path storage = Paths.get... | |
Java | apache-2.0 | 938fffec543ce311635a8243506630de470ac911 | 0 | zhuyuqing/bestconf,zhuyuqing/bestconf | /**
* Copyright (c) 2017 Institute of Computing Technology, Chinese Academy of Sciences, 2017
* Institute of Computing Technology, Chinese Academy of Sciences contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in complian... | src/spark/cn/ict/zyq/bestConf/cluster/InterfaceImpl/SparkConfigReadin.java | /**
* Copyright (c) 2017 Institute of Computing Technology, Chinese Academy of Sciences, 2017
* Institute of Computing Technology, Chinese Academy of Sciences contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in complian... | Update SparkConfigReadin.java | src/spark/cn/ict/zyq/bestConf/cluster/InterfaceImpl/SparkConfigReadin.java | Update SparkConfigReadin.java | <ide><path>rc/spark/cn/ict/zyq/bestConf/cluster/InterfaceImpl/SparkConfigReadin.java
<ide> * LICENSE file.
<ide> */
<ide> package cn.ict.zyq.bestConf.cluster.InterfaceImpl;
<del>
<del>import java.io.File;
<del>import java.io.FileInputStream;
<del>import java.io.FileNotFoundException;
<del>import java.io.IOException;
... | |
Java | apache-2.0 | 17e0f147cc7849c4fd7612581c744fd760466f9d | 0 | powertac/powertac-server,powertac/powertac-server,powertac/powertac-server,powertac/powertac-server | /*
* Copyright (c) 2012 by the original author
*
* 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/test/java/org/powertac/genco/GencoConfigTest.java | /*
* Copyright (c) 2012 by the original author
*
* 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... | Annotate SpringJUnit4ClassRunner tests with TestExecutionListeners
| src/test/java/org/powertac/genco/GencoConfigTest.java | Annotate SpringJUnit4ClassRunner tests with TestExecutionListeners | <ide><path>rc/test/java/org/powertac/genco/GencoConfigTest.java
<ide> import org.springframework.context.ApplicationContext;
<ide> import org.springframework.core.io.Resource;
<ide> import org.springframework.test.context.ContextConfiguration;
<add>import org.springframework.test.context.TestExecutionListeners;
<ide> i... | |
Java | agpl-3.0 | 809cdd84954ba2df1f06192ad5f5c3e4b33a9196 | 0 | jspacco/Knoxcraft,jspacco/Knoxcraft,jspacco/Knoxcraft,jspacco/Knoxcraft,jspacco/Knoxcraft | package org.knoxcraft.turtle3d;
import java.util.HashMap;
import org.spongepowered.api.CatalogType;
import org.spongepowered.api.CatalogTypes;
import org.spongepowered.api.block.BlockState;
import org.spongepowered.api.block.BlockType;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.data.k... | TurtleSponge/src/main/java/org/knoxcraft/turtle3d/KCTBlockTypesBuilder.java | package org.knoxcraft.turtle3d;
import java.util.HashMap;
import org.spongepowered.api.block.BlockState;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.data.key.Keys;
import org.spongepowered.api.data.type.BrickTypes;
import org.spongepowered.api.data.type.DirtTypes;
import org.spongepowe... | Added more detailed javadoc for initializing KCTBlockTypesBuilder | TurtleSponge/src/main/java/org/knoxcraft/turtle3d/KCTBlockTypesBuilder.java | Added more detailed javadoc for initializing KCTBlockTypesBuilder | <ide><path>urtleSponge/src/main/java/org/knoxcraft/turtle3d/KCTBlockTypesBuilder.java
<ide>
<ide> import java.util.HashMap;
<ide>
<add>import org.spongepowered.api.CatalogType;
<add>import org.spongepowered.api.CatalogTypes;
<ide> import org.spongepowered.api.block.BlockState;
<add>import org.spongepowered.api.block.... | |
Java | apache-2.0 | c28774a7b2447303444c71352b0cc4f284294381 | 0 | mta452/Tehreer-Android,mta452/Tehreer-Android,mta452/Tehreer-Android | /*
* Copyright (C) 2018 Muhammad Tayyab Akram
*
* 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 la... | tehreer-android/src/main/java/com/mta/tehreer/layout/LineResolver.java | /*
* Copyright (C) 2018 Muhammad Tayyab Akram
*
* 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 la... | [lib] Provided metrics to glyph run in line resolver...
| tehreer-android/src/main/java/com/mta/tehreer/layout/LineResolver.java | [lib] Provided metrics to glyph run in line resolver... | <ide><path>ehreer-android/src/main/java/com/mta/tehreer/layout/LineResolver.java
<ide>
<ide> return new GlyphRun(charStart, charEnd, Arrays.asList(spans),
<ide> intrinsicRun.isBackward, intrinsicRun.bidiLevel,
<del> intrinsicRun.typeface, intrinsicRun.type... | |
Java | mit | error: pathspec 'src/com/javaquery/core/immutable/ImmutableClassLatLon.java' did not match any file(s) known to git
| d79a127c1f077a55e686da2581c52fb531ee3ecd | 1 | javaquery/Examples | package com.javaquery.core.immutable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Example of Immutable class in java.
* @author javaQuery
* @date 2019-12-10
* @Github: https://github.com/javaquery/Examples
*/
public final class ImmutableClassLatLon {
private final double... | src/com/javaquery/core/immutable/ImmutableClassLatLon.java | immutable class example
| src/com/javaquery/core/immutable/ImmutableClassLatLon.java | immutable class example | <ide><path>rc/com/javaquery/core/immutable/ImmutableClassLatLon.java
<add>package com.javaquery.core.immutable;
<add>
<add>import java.util.ArrayList;
<add>import java.util.Arrays;
<add>import java.util.List;
<add>
<add>/**
<add> * Example of Immutable class in java.
<add> * @author javaQuery
<add> * @date 2019-12-10
<... | |
Java | bsd-3-clause | e314755cc3311d8fca5fd1bb758f61ec6f40165f | 0 | wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy | /*
* Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopFragment.java | /*
* Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | use iterable for LoopFragment.toHirBlocks rather than reify collections
| graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopFragment.java | use iterable for LoopFragment.toHirBlocks rather than reify collections | <ide><path>raal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopFragment.java
<ide> }
<ide> }
<ide>
<del> protected static NodeBitMap computeNodes(Graph graph, Collection<AbstractBeginNode> blocks) {
<add> protected static NodeBitMap computeNodes(Graph graph, Iterable<AbstractBeginNode> blocks) {... | |
Java | lgpl-2.1 | 894ac11171db15d730cae35545532ec55aea5d62 | 0 | nattaku/MineChem,pixlepix/MineChem,nattaku/MineChem | package ljdp.minechem.client;
import java.util.EnumSet;
import java.util.List;
import ljdp.minechem.api.core.EnumMolecule;
import ljdp.minechem.common.MinechemItems;
import ljdp.minechem.common.PotionInjector;
import ljdp.minechem.common.utils.ConstantValue;
import net.minecraft.block.material.Material;
import net.mi... | src/ljdp/minechem/client/TickHandler.java | package ljdp.minechem.client;
import java.util.EnumSet;
import java.util.List;
import ljdp.minechem.api.core.EnumMolecule;
import ljdp.minechem.common.MinechemItems;
import ljdp.minechem.common.PotionInjector;
import ljdp.minechem.common.utils.ConstantValue;
import net.minecraft.block.material.Material;
import net.mi... | Update TickHandler.java | src/ljdp/minechem/client/TickHandler.java | Update TickHandler.java | <ide><path>rc/ljdp/minechem/client/TickHandler.java
<ide> Gui gui = new Gui();
<ide> GL11.glDisable(GL11.GL_DEPTH_TEST);
<ide> GL11.glDisable(GL11.GL_ALPHA_TEST);
<del> int color = (int) (220.0F * markiplier - 125) << 24 | 1052704;
<add> int color = (int) (220.0F * markiplier - 150) << 24 | 1052704;
<ide> gui... | |
Java | agpl-3.0 | fb9ca7d350831fe8511141eaaa7f0e82627b7f2b | 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 | 780545b8-2e60-11e5-9284-b827eb9e62be | hello.java | 77ffc868-2e60-11e5-9284-b827eb9e62be | 780545b8-2e60-11e5-9284-b827eb9e62be | hello.java | 780545b8-2e60-11e5-9284-b827eb9e62be | <ide><path>ello.java
<del>77ffc868-2e60-11e5-9284-b827eb9e62be
<add>780545b8-2e60-11e5-9284-b827eb9e62be | |
Java | mit | 68813255db10cb964178ffd36edc7a85e6b7eb26 | 0 | asafge/NewsBlurPlus | package com.noinnion.android.newsplus.extension.newsblurplus;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONExc... | newsplus/extensions/NewsblurExtension/src/com/noinnion/android/newsplus/extension/newsblurplus/NewsBlurPlus.java | package com.noinnion.android.newsplus.extension.newsblurplus;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONExc... | Remove spaces
| newsplus/extensions/NewsblurExtension/src/com/noinnion/android/newsplus/extension/newsblurplus/NewsBlurPlus.java | Remove spaces | <ide><path>ewsplus/extensions/NewsblurExtension/src/com/noinnion/android/newsplus/extension/newsblurplus/NewsBlurPlus.java
<ide> }
<ide> }
<ide>
<del>
<ide> /*
<ide> * Get the content of a single feed
<ide> *
<ide> return true; // TODO: Return some real feedback
<ide> }
<ide>
<del>
<ide> /*
<ide> ... | |
JavaScript | mit | b1d28a3f6acba13b000b6b7ee8f0a783badefb1e | 0 | wpfpizicai/knowledge,wpfpizicai/knowledge,wpfpizicai/knowledge | /**
* controller
* @return
*/
module.exports = Controller("Home/BaseController", function(){
"use strict";
var courses = [{name:"创造力提升",id:"creativedad",detail:"",source:"UNAM",time:"永久开放",img:"1.jpg"},{name:"跨领域医疗信息学",id:"creativedad",detail:"",source:"Minnesota",time:"永久开放",img:"2.png"},{name:"微观经济学",id:"creat... | App/Lib/Controller/Home/IndexController.js | /**
* controller
* @return
*/
module.exports = Controller("Home/BaseController", function(){
"use strict";
var courses = [{name:"创造力提升",id:"creativedad",detail:"",source:"UNAM",time:"永久开放",img:"1.jpg"},{name:"跨领域医疗信息学",id:"creativedad",detail:"",source:"Minnesota",time:"永久开放",img:"2.png"},{name:"微观经济学",id:"creat... | add files by wangpengfei
| App/Lib/Controller/Home/IndexController.js | add files by wangpengfei | <ide><path>pp/Lib/Controller/Home/IndexController.js
<ide> this.assign(extend({
<ide> courses:courses,
<ide> title : "首页",
<del> userInfo : this.userInfo
<add> userInfo : D('User').where({ //根据用户邮箱和密码查询符合条件的数据
<add> email: "tjuwpf@163.com",
<add> pwd: md5("a... | |
Java | apache-2.0 | 1461f42d0ebd90f714482c2cb018a8d82f9aa1fb | 0 | blademainer/intellij-community,holmes/intellij-community,semonte/intellij-community,michaelgallacher/intellij-community,pwoodworth/intellij-community,asedunov/intellij-community,holmes/intellij-community,Distrotech/intellij-community,adedayo/intellij-community,dslomov/intellij-community,caot/intellij-community,signed/i... | package com.intellij.codeInsight.highlighting;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.components.ProjectComponent;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.EditorFactory;
import ... | codeInsight/impl/com/intellij/codeInsight/highlighting/BraceHighlighter.java | package com.intellij.codeInsight.highlighting;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.components.ProjectComponent;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.EditorFactory;
import ... | avoid accessing PSI from within alien project
| codeInsight/impl/com/intellij/codeInsight/highlighting/BraceHighlighter.java | avoid accessing PSI from within alien project | <ide><path>odeInsight/impl/com/intellij/codeInsight/highlighting/BraceHighlighter.java
<ide> private void updateBraces(final Editor editor) {
<ide> ApplicationManager.getApplication().invokeLater(new Runnable() {
<ide> public void run() {
<del> if (!myIsDisposed && !myProject.isDisposed() && edit... | |
Java | bsd-3-clause | c4298f70cba07972b4d7fc9bd567f4554a83ed87 | 0 | GuacoIV/VisEQ,GuacoIV/VisEQ,GuacoIV/VisEQ | /*
Copyright (c) 2012, Spotify AB
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following... | src/com/lsu/vizeq/PlayerActivity.java | /*
Copyright (c) 2012, Spotify AB
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following... | hotfix
| src/com/lsu/vizeq/PlayerActivity.java | hotfix | <ide><path>rc/com/lsu/vizeq/PlayerActivity.java
<ide> playerBackground = (RelativeLayout) findViewById(R.id.PlayerLayout);
<ide>
<ide> // //light sending stuff
<del> new Thread( new Runnable()
<del> {
<del> public void run()
<del> {
<del> try {
<del>
<del> DatagramSocket sendSocket = new Datagra... | |
Java | apache-2.0 | be4c48fb07a0359f3d18ffdc29898af7fc4f358d | 0 | chirino/fabric8v2,KurtStam/fabric8,chirino/fabric8v2,rhuss/fabric8,KurtStam/fabric8,rhuss/fabric8,KurtStam/fabric8,rhuss/fabric8,dhirajsb/fabric8,dhirajsb/fabric8,dhirajsb/fabric8,rhuss/fabric8,chirino/fabric8v2,dhirajsb/fabric8,KurtStam/fabric8,chirino/fabric8v2 | /**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | components/kubernetes-api/src/main/java/io/fabric8/kubernetes/api/Controller.java | /**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | add support for Ingress
| components/kubernetes-api/src/main/java/io/fabric8/kubernetes/api/Controller.java | add support for Ingress | <ide><path>omponents/kubernetes-api/src/main/java/io/fabric8/kubernetes/api/Controller.java
<ide> import io.fabric8.kubernetes.api.model.ServiceAccount;
<ide> import io.fabric8.kubernetes.api.model.Volume;
<ide> import io.fabric8.kubernetes.api.model.extensions.DaemonSet;
<add>import io.fabric8.kubernetes.api.model.ext... | |
Java | apache-2.0 | f2bf2f7b9d42680398cab1461bf9d26d9b1870a2 | 0 | apache/lenya,apache/lenya,apache/lenya,apache/lenya | /*
* DocumentTypeBuilder.java
*
* Created on 9. April 2003, 10:11
*/
package org.apache.lenya.cms.publication;
import java.io.File;
import org.apache.lenya.xml.DocumentHelper;
import org.apache.xpath.XPathAPI;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
/**
* A builder for document types.
*
* @auth... | src/java/org/apache/lenya/cms/publication/DocumentTypeBuilder.java | /*
* DocumentTypeBuilder.java
*
* Created on 9. April 2003, 10:11
*/
package org.apache.lenya.cms.publication;
import java.io.File;
import org.apache.lenya.xml.DocumentHelper;
import org.apache.xpath.XPathAPI;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
/**
* A builder for document types.
*
* @auth... | added DOCTYPE_DIRECTORY field
git-svn-id: f6f45834fccde298d83fbef5743c9fd7982a26a3@39731 13f79535-47bb-0310-9956-ffa450edef68
| src/java/org/apache/lenya/cms/publication/DocumentTypeBuilder.java | added DOCTYPE_DIRECTORY field | <ide><path>rc/java/org/apache/lenya/cms/publication/DocumentTypeBuilder.java
<ide> public DocumentTypeBuilder() {
<ide> }
<ide>
<add>
<ide> /**
<add> * The default document types configuration directory, relative to the publication directory.
<add> */
<add> public static final String DOC... | |
JavaScript | apache-2.0 | a23075140553a6ebf52622627ecab75ecfeddd84 | 0 | jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2 | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.graphics',
name: 'TreeNode',
extends: 'foam.graphics.Box',
requires: [
'foam.graphics.Box',
'foam.graphics.CView',
'foam.graphics.Label',
'foam... | src/foam/graphics/TreeNode.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.graphics',
name: 'TreeNode',
extends: 'foam.graphics.Box',
requires: [
'foam.graphics.Box',
'foam.graphics.CView',
'foam.graphics.Label',
'foam... | basically forgot about a .length
| src/foam/graphics/TreeNode.js | basically forgot about a .length | <ide><path>rc/foam/graphics/TreeNode.js
<ide> name: 'expanded',
<ide> expression: function(isAutoExpandedByDefault, childNodesForAutoExpansion, childNodes) {
<ide> if ( isAutoExpandedByDefault ) {
<del> return childNodes < childNodesForAutoExpansion;
<add> return childNodes.length ... | |
Java | mit | d86ff6ee371e7aa010f9c7994539de67996dde06 | 0 | brianbolze/VoogaSalad_Final_Project,brianbolze/VoogaSalad_Final_Project,gregory-lyons/CS308-final-project,gregory-lyons/CS308-final-project,Chase-M/voogasalad_LosTorres,thefreshduke/voogasalad,thefreshduke/voogasalad,Chase-M/Tower-Defense-Game-Engine,Chase-M/Tower-Defense-Game-Engine,Chase-M/voogasalad_LosTorres,akyker... | package gamePlayer.mainClasses.welcomeScreen.availableGames;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javafx.scene.image.ImageView;
import utilities.JavaFXutilities.imageView.StringToImageViewConverter;
public class GameDescriptionLoader {
private static String GAMES_DIRECTOR... | src/gamePlayer/mainClasses/welcomeScreen/availableGames/GameDescriptionLoader.java | package gamePlayer.mainClasses.welcomeScreen.availableGames;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javafx.scene.image.ImageView;
import utilities.JavaFXutilities.imageView.StringToImageViewConverter;
public class GameDescriptionLoader {
private static String GAMES_DIRECTOR... | modified s-player game description
| src/gamePlayer/mainClasses/welcomeScreen/availableGames/GameDescriptionLoader.java | modified s-player game description | <ide><path>rc/gamePlayer/mainClasses/welcomeScreen/availableGames/GameDescriptionLoader.java
<ide> for (File file:games) {
<ide> ImageView gameImage = StringToImageViewConverter.getImageView
<ide> (GameDescription.WIDTH, GameDescription.GAME_IMAGE_HEIGHT, file.getAbsolutePath()+"... | |
Java | apache-2.0 | 78a63c00c1dac7cc87125c07a63d41232592ab7b | 0 | apache/pdfbox,apache/pdfbox,kalaspuffar/pdfbox,kalaspuffar/pdfbox | /*
* 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 ... | pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.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 ... | PDFBOX-3110: adjust bead rectangles for flip and cropbox
git-svn-id: c3ad59981690829a43dc34c293c4e2cd04bcd994@1714590 13f79535-47bb-0310-9956-ffa450edef68
| pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java | PDFBOX-3110: adjust bead rectangles for flip and cropbox | <ide><path>dfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java
<ide> if (bead != null)
<ide> {
<ide> PDRectangle rect = bead.getRectangle();
<add>
<add> // bead rectangle is in PDF coordinates (y=0... | |
Java | apache-2.0 | 57a8756a9eacb390d79e820aae5319270c65558f | 0 | apache/solr,apache/solr,apache/solr,apache/solr,apache/solr | package org.apache.lucene.index.memory;
/**
* 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... | lucene/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java | package org.apache.lucene.index.memory;
/**
* 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... | support cranking up the memory index test randomness
git-svn-id: 308d55f399f3bd9aa0560a10e81a003040006c48@942719 13f79535-47bb-0310-9956-ffa450edef68
| lucene/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java | support cranking up the memory index test randomness | <ide><path>ucene/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
<ide> private Set<String> queries = new HashSet<String>();
<ide> private Random random;
<ide>
<del> public static final int ITERATIONS = 100;
<add> public static final int ITERATIONS = 100*_TestUtil.getRandomMultiplier... | |
JavaScript | mit | 6b768ae3a21664d18b9533fa88d602b793b23371 | 0 | kfbow/CouponApp,kfbow/CouponApp,kfbow/CouponApp | /** @flow */
'use strict';
import React from 'react';
import {
Alert,
Clipboard,
View,
Text,
Image,
Linking,
ScrollView,
StatusBar,
TouchableOpacity
} from 'react-native';
import Dimensions from 'Dimensions';
import { stringDiscounted, stringOriginal } from './RandomStrings';
expor... | src/Detail.js | /** @flow */
'use strict';
import React from 'react';
import {
Alert,
Clipboard,
View,
Text,
Image,
Linking,
ScrollView,
StatusBar,
TouchableOpacity
} from 'react-native';
import Dimensions from 'Dimensions';
import { stringDiscounted, stringOriginal } from './RandomStrings';
expor... | Fix button bug
| src/Detail.js | Fix button bug | <ide><path>rc/Detail.js
<ide> </View>
<ide> </ScrollView>
<ide>
<del> <TouchableOpacity
<del> onPress={ () => onButtonPress(data) }>
<del> <View style={ styles.promoContainer }>
<add> <View style={ styles.promoContainer }>
<add> ... | |
Java | apache-2.0 | 99358c62075b6fdd833466e3985edc10e2d0232e | 0 | kelemen/JTrim,kelemen/JTrim | package org.jtrim.concurrent;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import org.jtrim.cancel.*;
import org.jtrim.event.*;... | jtrim-core/src/test/java/org/jtrim/concurrent/AbstractTaskExecutorServiceTest.java | package org.jtrim.concurrent;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import org.jtrim.cancel.*;
import org.jtrim.event.*;... | Added more tests for AbstractTaskExecutorService | jtrim-core/src/test/java/org/jtrim/concurrent/AbstractTaskExecutorServiceTest.java | Added more tests for AbstractTaskExecutorService | <ide><path>trim-core/src/test/java/org/jtrim/concurrent/AbstractTaskExecutorServiceTest.java
<ide> import org.junit.*;
<ide>
<ide> import static org.junit.Assert.*;
<add>import static org.mockito.Mockito.*;
<ide>
<ide> /**
<ide> *
<ide> executor.shutdown();
<ide> executor.awaitTermination(Cancellatio... | |
Java | apache-2.0 | 9df45dc1240e9b2154c8d7454b7b6e05e53a36a6 | 0 | kythe/kythe,kythe/kythe,kythe/kythe,kythe/kythe,kythe/kythe,kythe/kythe,kythe/kythe,kythe/kythe,kythe/kythe,kythe/kythe,kythe/kythe | /*
* Copyright 2014 The Kythe Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | kythe/java/com/google/devtools/kythe/extractors/java/standalone/AbstractJavacWrapper.java | /*
* Copyright 2014 The Kythe Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | chore: use withCause for logging (#4826)
| kythe/java/com/google/devtools/kythe/extractors/java/standalone/AbstractJavacWrapper.java | chore: use withCause for logging (#4826) | <ide><path>ythe/java/com/google/devtools/kythe/extractors/java/standalone/AbstractJavacWrapper.java
<ide> try {
<ide> return Integer.parseInt(s);
<ide> } catch (NumberFormatException err) {
<del> logger.atWarning().log("Invalid KYTHE_JAVA_SOURCE_BATCH_SIZE: %s"... | |
JavaScript | agpl-3.0 | 45db396c38fa058f8d6650502bf675157932a857 | 0 | Daksh/turtleblocksjs,tchx84/turtleblocksjs,hemantkasat/turtleblocksjs,hemantkasat/turtleblocksjs,garyservin/turtleblocksjs,walterbender/turtleblocksjs,garyservin/turtleblocksjs,i5o/turtleblocksjs,hemantkasat/turtleblocksjs,i5o/turtleblocksjs,Daksh/turtleblocksjs,garyservin/turtleblocksjs,tchx84/turtleblocksjs,i5o/turtl... | // Copyright (c) 2014,2015 Walter Bender
//
// 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 option) any later version.
//
// You should have re... | js/blocks.js | // Copyright (c) 2014,2015 Walter Bender
//
// 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 option) any later version.
//
// You should have re... | tweak thumbnail position
| js/blocks.js | tweak thumbnail position | <ide><path>s/blocks.js
<ide> bitmap.scaleX = bitmap.scaleY = bitmap.scale = MEDIASAFEAREA[3] / image.height;
<ide> }
<ide> me.container.addChild(bitmap);
<del> bitmap.x = MEDIASAFEAREA[0];
<add> bitmap.x = MEDIASAFEAREA[0] - 10;
<ide> bitmap.y = ... | |
Java | apache-2.0 | 630c6cdacd080fbaeca6b38c2c44e5037bacbcb0 | 0 | Spartanflyer/Sunshine-Version-2,bwdur/Sunshine | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | app/src/main/java/com/example/android/sunshine/app/data/WeatherContract.java | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 4.03 Define constants in Contract
| app/src/main/java/com/example/android/sunshine/app/data/WeatherContract.java | 4.03 Define constants in Contract | <ide><path>pp/src/main/java/com/example/android/sunshine/app/data/WeatherContract.java
<ide> }
<ide>
<ide> /*
<del> Inner class that defines the table contents of the location table
<del> Students: This is where you will add the strings. (Similar to what has been
<del> done for WeatherEnt... | |
Java | mit | 656a7ba172991ffce6a6469c44c6c3fa68e6a55a | 0 | Haruki/FilmzRestServer,Haruki/FilmzRestServer,Haruki/FilmzRestServer | package gl.hb.filmzrestserver.resources;
import com.codahale.metrics.annotation.Timed;
import gl.hb.filmzrestserver.api.Film;
import gl.hb.filmzrestserver.dao.FilmzDao;
import gl.hb.filmzrestserver.dao.mapper.FilmzMapper;
import gl.hb.filmzrestserver.resources.beans.FilmzBean;
import org.skife.jdbi.v2.sqlobject.custom... | src/main/java/gl/hb/filmzrestserver/resources/FilmzResource.java | package gl.hb.filmzrestserver.resources;
import com.codahale.metrics.annotation.Timed;
import gl.hb.filmzrestserver.api.Film;
import gl.hb.filmzrestserver.dao.FilmzDao;
import gl.hb.filmzrestserver.dao.mapper.FilmzMapper;
import gl.hb.filmzrestserver.resources.beans.FilmzBean;
import org.skife.jdbi.v2.sqlobject.custom... | FilmzResource angepasst
| src/main/java/gl/hb/filmzrestserver/resources/FilmzResource.java | FilmzResource angepasst | <ide><path>rc/main/java/gl/hb/filmzrestserver/resources/FilmzResource.java
<ide> filmzDao.setSeenById(id.get());
<ide> return filmzDao.findFilmById(id.get());
<ide> } else {
<del> return null;
<add> throw new WebApplicationException(404);
<ide> }
<ide> }... | |
Java | epl-1.0 | 0c4d88a8f4714f7087bc10702eec6e7b2a600bd6 | 0 | StBurcher/hawkbit,bsinno/hawkbit,eclipse/hawkbit,stormc/hawkbit,StBurcher/hawkbit,eclipse/hawkbit,eclipse/hawkbit,bsinno/hawkbit,eclipse/hawkbit,stormc/hawkbit,stormc/hawkbit,StBurcher/hawkbit,bsinno/hawkbit | /**
* Copyright (c) 2015 Bosch Software Innovations GmbH and others.
*
* 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
... | hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/amqp/AmqpMessageHandlerServiceTest.java | /**
* Copyright (c) 2015 Bosch Software Innovations GmbH and others.
*
* 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
... | Fixed test.
Signed-off-by: Kai Zimmermann <76f4a30a6bf694b8484c948ccc522d848e6e51b6@bosch-si.com> | hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/amqp/AmqpMessageHandlerServiceTest.java | Fixed test. | <ide><path>awkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/amqp/AmqpMessageHandlerServiceTest.java
<ide> try {
<ide> amqpMessageHandlerService.onMessage(message, MessageType.THING_CREATED.name(), TENANT, "vHost");
<ide> fail("IllegalArgumentException was excepeted due to worng content ... | |
Java | apache-2.0 | 3b0faf486a29f9f49d84cc198be90c01375b53b1 | 0 | enternoescape/sagetv,webernissle/sagetv,jusjoken/sagetv,jfthibert/sagetv,jason-bean/sagetv,webernissle/sagetv,google/sagetv,OpenSageTV/sagetv,webernissle/sagetv,gasinger/sagetv,JustFred51/sagetv,google/sagetv,JREkiwi/sagetv,skiingwiz/sagetv,tmiranda1962/sagetv-1,BartokW/sagetv,rflitcroft/sagetv,skiingwiz/sagetv,tmirand... | /*
* Copyright 2015 The SageTV Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | java/sage/IOUtils.java | /*
* Copyright 2015 The SageTV Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Added files via upload
Added code to check for smbmount command and use mount.cifs if it wasn't found. Uses a property entry so that the check is only done once as long as the property exists | java/sage/IOUtils.java | Added files via upload | <ide><path>ava/sage/IOUtils.java
<ide> else
<ide> smbOptions = "guest:";
<ide> }
<del> if (IOUtils.exec2(Sage.LINUX_OS ? new String[] { "smbmount", smbPath, localPath , "-o", smbOptions } :
<add> // check to see if property exists if it doesn't check for smbmount with "which"... | |
Java | lgpl-2.1 | b3e2a7b63e057d399efb32781293905351f9b5d1 | 0 | MinecraftForge/ForgeGradle,MinecraftForge/ForgeGradle | package net.minecraftforge.gradle.common.diff;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collection... | src/common/java/net/minecraftforge/gradle/common/diff/ZipContext.java | package net.minecraftforge.gradle.common.diff;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collection... | Fixed accidental J9 dependency
| src/common/java/net/minecraftforge/gradle/common/diff/ZipContext.java | Fixed accidental J9 dependency | <ide><path>rc/common/java/net/minecraftforge/gradle/common/diff/ZipContext.java
<ide> import java.nio.charset.StandardCharsets;
<ide> import java.util.ArrayList;
<ide> import java.util.Collections;
<add>import java.util.Enumeration;
<ide> import java.util.HashMap;
<ide> import java.util.HashSet;
<ide> import java.util.... | |
Java | apache-2.0 | c1f3921e84bdbbd6e540fe4907c5a0ac1dec2229 | 0 | UweTrottmann/trakt-java | package com.uwetrottmann.trakt.v2;
import org.apache.oltu.oauth2.client.request.OAuthClientRequest;
import org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse;
import org.apache.oltu.oauth2.common.exception.OAuthProblemException;
import org.apache.oltu.oauth2.common.exception.OAuthSystemException;
import o... | src/test/java/com/uwetrottmann/trakt/v2/AuthTest.java | package com.uwetrottmann.trakt.v2;
import org.apache.oltu.oauth2.client.request.OAuthClientRequest;
import org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse;
import org.apache.oltu.oauth2.common.exception.OAuthProblemException;
import org.apache.oltu.oauth2.common.exception.OAuthSystemException;
import o... | trakt now supports refresh tokens.
| src/test/java/com/uwetrottmann/trakt/v2/AuthTest.java | trakt now supports refresh tokens. | <ide><path>rc/test/java/com/uwetrottmann/trakt/v2/AuthTest.java
<ide> OAuthAccessTokenResponse response = TraktV2.getAccessToken(
<ide> TEST_CLIENT_ID, TEST_CLIENT_SECRET, TEST_REDIRECT_URI, TEST_AUTH_CODE);
<ide> assertThat(response.getAccessToken()).isNotEmpty();
<del> assertTha... | |
JavaScript | mit | a247fe9b27ec57152f07aaa5dfc79f633d2b6d10 | 0 | inway/bootstrap,coliff/bootstrap,inway/bootstrap,twbs/bootstrap,m5o/bootstrap,tjkohli/bootstrap,m5o/bootstrap,inway/bootstrap,tjkohli/bootstrap,twbs/bootstrap,coliff/bootstrap | /**
* --------------------------------------------------------------------------
* Bootstrap (v5.1.3): carousel.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
import {
defineJQueryPlugin,
getElementF... | js/src/carousel.js | /**
* --------------------------------------------------------------------------
* Bootstrap (v5.1.3): carousel.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
import {
defineJQueryPlugin,
getElementF... | Carousel: simplify initialization on document load, using `getOrCreateInstance`
| js/src/carousel.js | Carousel: simplify initialization on document load, using `getOrCreateInstance` | <ide><path>s/src/carousel.js
<ide> const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE)
<ide>
<ide> for (const carousel of carousels) {
<del> Carousel.carouselInterface(carousel, Carousel.getInstance(carousel))
<add> Carousel.getOrCreateInstance(carousel)
<ide> }
<ide> })
<ide> | |
Java | epl-1.0 | 124524b69f8ebcb5e5c421098606dbb7eb307851 | 0 | Mark-Booth/daq-eclipse,Mark-Booth/daq-eclipse,Mark-Booth/daq-eclipse | package org.eclipse.scanning.test.event.queues;
import static org.junit.Assert.assertEquals;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.eclipse.scanning.api.event.EventException;
import org.eclipse.scanning.api.event.IEventService;
import org.e... | org.eclipse.scanning.test/src/org/eclipse/scanning/test/event/queues/QueueServiceIntegrationPluginTest.java | package org.eclipse.scanning.test.event.queues;
import static org.junit.Assert.assertEquals;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.eclipse.scanning.api.event.EventException;
import org.eclipse.scanning.api.event.IEventService;
import org.e... | Adds wait to testTaskBean instead of sleep. N.B. Long sleep in timeout.
Signed-off-by: Michael Wharmby <6d9b938fb052d7fc89d498105ee5ecd048aae550@diamond.ac.uk> | org.eclipse.scanning.test/src/org/eclipse/scanning/test/event/queues/QueueServiceIntegrationPluginTest.java | Adds wait to testTaskBean instead of sleep. N.B. Long sleep in timeout. | <ide><path>rg.eclipse.scanning.test/src/org/eclipse/scanning/test/event/queues/QueueServiceIntegrationPluginTest.java
<ide> queueControl.submit(task, queueService.getJobQueueID());
<ide>
<ide> try {
<del> Thread.sleep(1000000);
<add>// Thread.sleep(1000000);
<add> waitForBeanFinalStatus(dummyB, queueServic... | |
Java | apache-2.0 | 526ea78c82b2d466d663ef4d9734545bb31c686a | 0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa | // Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller;
import com.yahoo.config.application.api.DeploymentInstanceSpec;
import com.yahoo.config.application.api.DeploymentSpec;
import com.yahoo.config.provision.Applicati... | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/RoutingController.java | // Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller;
import com.yahoo.config.application.api.DeploymentInstanceSpec;
import com.yahoo.config.application.api.DeploymentSpec;
import com.yahoo.config.provision.Applicati... | Add TODO
| controller-server/src/main/java/com/yahoo/vespa/hosted/controller/RoutingController.java | Add TODO | <ide><path>ontroller-server/src/main/java/com/yahoo/vespa/hosted/controller/RoutingController.java
<ide> }
<ide>
<ide> /** Returns global-scoped endpoints for given instance */
<add> // TODO(mpolden): Add a endpointsOf(Instance, DeploymentId) variant of this that only returns global endpoint of
<add> // ... | |
Java | apache-2.0 | abdbd0583f93e47910705be5597070220cdb5d98 | 0 | Uwe-Fuchs/open-ur | package org.openur.remoting.webservice.config;
import javax.inject.Inject;
import javax.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportRe... | open_ur-remoting/open_ur-remoting-webservice-app/src/main/java/org/openur/remoting/webservice/config/JpaRepositorySpringConfig.java | package org.openur.remoting.webservice.config;
import javax.inject.Inject;
import javax.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportRe... | get database-jndi-name from properties or system-property, set default-value.
| open_ur-remoting/open_ur-remoting-webservice-app/src/main/java/org/openur/remoting/webservice/config/JpaRepositorySpringConfig.java | get database-jndi-name from properties or system-property, set default-value. | <ide><path>pen_ur-remoting/open_ur-remoting-webservice-app/src/main/java/org/openur/remoting/webservice/config/JpaRepositorySpringConfig.java
<ide> {
<ide> final JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
<ide> dsLookup.setResourceRef(true);
<del> DataSource dataSource = dsLookup.getDataSou... | |
Java | bsd-3-clause | db6904eb2816af097523e0377aadb7dada0c3441 | 0 | NCIP/cagrid-core,NCIP/cagrid-core,NCIP/cagrid-core,NCIP/cagrid-core | package org.cagrid.tests.data.styles.cacore42.story;
import gov.nih.nci.cagrid.common.Utils;
import java.io.File;
import junit.framework.TestResult;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
impo... | integration-tests/projects/sdk42StyleTests/src/org/cagrid/tests/data/styles/cacore42/story/SDK42DataServiceSystemTests.java | package org.cagrid.tests.data.styles.cacore42.story;
import gov.nih.nci.cagrid.common.Utils;
import java.io.File;
import junit.framework.TestResult;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
impo... |
git-svn-id: https://ncisvn.nci.nih.gov/svn/cagrid/trunk/cagrid/Software/core@14827 dd7b0c16-3c94-4492-92de-414b6a06f0b1
| integration-tests/projects/sdk42StyleTests/src/org/cagrid/tests/data/styles/cacore42/story/SDK42DataServiceSystemTests.java | <ide><path>ntegration-tests/projects/sdk42StyleTests/src/org/cagrid/tests/data/styles/cacore42/story/SDK42DataServiceSystemTests.java
<ide> public void sdk42DataServiceSystemTests() throws Throwable {
<ide> // create a temporary directory for the SDK application to package things in
<ide> tempApplic... | ||
Java | apache-2.0 | 8835cd5dbde41f4b7df9aafcba876e75d5bafb9e | 0 | wardev/orekit,liscju/Orekit,ProjectPersephone/Orekit,attatrol/Orekit,attatrol/Orekit,CS-SI/Orekit,Yakushima/Orekit,CS-SI/Orekit,petrushy/Orekit,liscju/Orekit,Yakushima/Orekit,ProjectPersephone/Orekit,petrushy/Orekit | /* Copyright 2002-2014 CS Systèmes d'Information
* Licensed to CS Systèmes d'Information (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Versi... | src/main/java/org/orekit/propagation/conversion/TLEPropagatorBuilder.java | /* Copyright 2002-2014 CS Systèmes d'Information
* Licensed to CS Systèmes d'Information (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Versi... | Fixed checkstyle warning. | src/main/java/org/orekit/propagation/conversion/TLEPropagatorBuilder.java | Fixed checkstyle warning. | <ide><path>rc/main/java/org/orekit/propagation/conversion/TLEPropagatorBuilder.java
<ide> final Iterator<String> freeItr = freeParameters.iterator();
<ide> for (int i = 6; i < parameters.length; i++) {
<ide> final String free = freeItr.next();
<del> for (String available : get... | |
Java | mit | 05c4314dc1c393749d7cc0de37544424ed9abb0a | 0 | leanix/leanix-sdk-java | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 LeanIX GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* us... | src/test/java/net/leanix/api/test/UsersApiTest.java | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 LeanIX GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* us... | improve assertion in test for better diagnose of CI build test failure
| src/test/java/net/leanix/api/test/UsersApiTest.java | improve assertion in test for better diagnose of CI build test failure | <ide><path>rc/test/java/net/leanix/api/test/UsersApiTest.java
<ide>
<ide> package net.leanix.api.test;
<ide>
<add>import static org.junit.Assert.assertEquals;
<ide> import static org.junit.Assert.assertNotNull;
<ide> import static org.junit.Assert.assertTrue;
<ide>
<ide> import net.leanix.api.models.User;
<ide>
<id... | |
Java | mit | 1ed784b3af5138f520f3d0f33c4c41f1b50eb631 | 0 | evokly/kafka-connect-mqtt | /**
* Copyright 2016 Evokly S.A.
* See LICENSE file for License
**/
package com.evokly.kafka.connect.mqtt;
import com.evokly.kafka.connect.mqtt.util.Version;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.source.SourceRecord;
import org.apache.kafka.connect.source.SourceTask;
import... | src/main/java/com/evokly/kafka/connect/mqtt/MqttSourceTask.java | /**
* Copyright 2016 Evokly S.A.
* See LICENSE file for License
**/
package com.evokly.kafka.connect.mqtt;
import com.evokly.kafka.connect.mqtt.util.Version;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.source.SourceRecord;
import org.apache.kafka.connect.source.SourceTask;
import... | feat(Task): block poll method if no data is currently available
| src/main/java/com/evokly/kafka/connect/mqtt/MqttSourceTask.java | feat(Task): block poll method if no data is currently available | <ide><path>rc/main/java/com/evokly/kafka/connect/mqtt/MqttSourceTask.java
<ide> log.trace("[{}] Polling new data if exists.", mMqttClientId);
<ide>
<ide> if (mQueue.isEmpty()) {
<del> // no message to process
<del> return null;
<add> // block if no data is currently ava... | |
Java | mit | 86b3334f6b8facacbf420056844c85c225204b3d | 0 | alecw/picard,nh13/picard,alecw/picard,nh13/picard,annkupi/picard,alecw/picard,broadinstitute/picard,annkupi/picard,annkupi/picard,alecw/picard,broadinstitute/picard,nh13/picard,broadinstitute/picard,nh13/picard,broadinstitute/picard,annkupi/picard,broadinstitute/picard | package picard.analysis;
import htsjdk.samtools.AlignmentBlock;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.SamReader;
import htsjdk.samtools.SamReaderFactory;
import htsjdk.samtools.filter.SamRecordFilter;
import htsjdk.samtools.filter.SecondaryAlignmentFilter;
import htsjdk.samtools.metrics.MetricBase;
... | src/java/picard/analysis/CollectWgsMetrics.java | package picard.analysis;
import htsjdk.samtools.AlignmentBlock;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.SamReader;
import htsjdk.samtools.SamReaderFactory;
import htsjdk.samtools.filter.SamRecordFilter;
import htsjdk.samtools.filter.SecondaryAlignmentFilter;
import htsjdk.samtools.metrics.MetricBase;
... | Add option to count unpaired reads in CollectWgsMetrics.
| src/java/picard/analysis/CollectWgsMetrics.java | Add option to count unpaired reads in CollectWgsMetrics. | <ide><path>rc/java/picard/analysis/CollectWgsMetrics.java
<ide>
<ide> @Option(doc = "Determines whether to include the base quality histogram in the metrics file.")
<ide> public boolean INCLUDE_BQ_HISTOGRAM = false;
<add>
<add> @Option(doc="If true, count unpaired reads, and paired reads with one end unmapp... | |
Java | mit | 16f4781682a5a0a2c931080ba8ffcf8e04f5580f | 0 | anagav/TinkerRocks | package com.tinkerrocks.storage;
import com.tinkerrocks.structure.*;
import org.apache.tinkerpop.gremlin.structure.*;
import org.apache.tinkerpop.gremlin.structure.util.ElementHelper;
import org.rocksdb.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.u... | src/main/java/com/tinkerrocks/storage/VertexDB.java | package com.tinkerrocks.storage;
import com.tinkerrocks.structure.*;
import org.apache.tinkerpop.gremlin.structure.*;
import org.apache.tinkerpop.gremlin.structure.util.ElementHelper;
import org.rocksdb.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.u... | fixes
| src/main/java/com/tinkerrocks/storage/VertexDB.java | fixes | <ide><path>rc/main/java/com/tinkerrocks/storage/VertexDB.java
<ide>
<ide>
<ide> public List<byte[]> getEdgeIDs(byte[] id, Direction direction, HashSet<String> edgeLabels) {
<del> List<byte[]> edgeIds = new ArrayList<>(50);
<add> List<byte[]> edgeIds = new ArrayList<>();
<ide> RocksIterator i... | |
Java | apache-2.0 | b6c99cb4d938ba4ec225045d3ca3ac8cb44ff6cb | 0 | MatthewTamlin/Spyglass | package com.matthewtamlin.spyglass.processors.code_generation;
import com.matthewtamlin.spyglass.annotations.call_handler_annotations.SpecificEnumHandler;
import com.matthewtamlin.spyglass.annotations.call_handler_annotations.SpecificFlagHandler;
import com.matthewtamlin.spyglass.annotations.default_annotations.Defaul... | processors/src/main/java/com/matthewtamlin/spyglass/processors/code_generation/CallerComponentGenerator.java | package com.matthewtamlin.spyglass.processors.code_generation;
import com.matthewtamlin.spyglass.annotations.call_handler_annotations.SpecificEnumHandler;
import com.matthewtamlin.spyglass.annotations.call_handler_annotations.SpecificFlagHandler;
import com.matthewtamlin.spyglass.annotations.default_annotations.Defaul... | Deleted erroneous line
| processors/src/main/java/com/matthewtamlin/spyglass/processors/code_generation/CallerComponentGenerator.java | Deleted erroneous line | <ide><path>rocessors/src/main/java/com/matthewtamlin/spyglass/processors/code_generation/CallerComponentGenerator.java
<ide> new ParametrisedSupplier<AnnotationMirror, CodeBlock>() {
<ide> @Override
<ide> public CodeBlock supplyFor(final AnnotationMirror object) {
<del> final int getAttributeId(objec... | |
Java | lgpl-2.1 | 8ba2f87fefa01d8560d4daa95be30b726337ecff | 0 | levants/lightmare | package org.lightmare.cache;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
imp... | src/main/java/org/lightmare/cache/MetaContainer.java | package org.lightmare.cache;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
imp... | improved / commented code in utility classes | src/main/java/org/lightmare/cache/MetaContainer.java | improved / commented code in utility classes | <ide><path>rc/main/java/org/lightmare/cache/MetaContainer.java
<ide> }
<ide>
<ide> /**
<del> * Caches bean name by {@link URL} of jar ear or any file
<add> * Caches EJB bean name by {@link URL} of jar ear or any file
<ide> *
<ide> * @param beanName
<ide> */ | |
Java | apache-2.0 | d24d8220e3beec2cd6b1e2d362d67b930ccc57f2 | 0 | realityforge/gwt-eventsource,realityforge/gwt-eventsource | package org.realityforge.gwt.eventsource.client;
import com.google.gwt.core.shared.GWT;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.HandlerRegistration;
import javax.annotation.Nonnull;
import org.realityforge.gwt.eventsource.client.event.CloseEvent;
import org.reali... | src/main/java/org/realityforge/gwt/eventsource/client/EventSource.java | package org.realityforge.gwt.eventsource.client;
import com.google.gwt.core.shared.GWT;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.HandlerRegistration;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.realityforge.gwt.eventsource.client.... | Optimise imports
| src/main/java/org/realityforge/gwt/eventsource/client/EventSource.java | Optimise imports | <ide><path>rc/main/java/org/realityforge/gwt/eventsource/client/EventSource.java
<ide> import com.google.web.bindery.event.shared.EventBus;
<ide> import com.google.web.bindery.event.shared.HandlerRegistration;
<ide> import javax.annotation.Nonnull;
<del>import javax.annotation.Nullable;
<ide> import org.realityforge.gw... | |
Java | apache-2.0 | 3dff0ce947bb893ba1c08414dac6f7314d5bf906 | 0 | apache/logging-log4j2,apache/logging-log4j2,apache/logging-log4j2 | /*
* 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-mongodb2/src/test/java/org/apache/logging/log4j/mongodb2/MongoDbTest.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... | Tests that the level is converted.
| log4j-mongodb2/src/test/java/org/apache/logging/log4j/mongodb2/MongoDbTest.java | Tests that the level is converted. | <ide><path>og4j-mongodb2/src/test/java/org/apache/logging/log4j/mongodb2/MongoDbTest.java
<ide> final DBObject first = cursor.next();
<ide> Assert.assertNotNull(first);
<ide> Assert.assertEquals(first.toMap().toString(), "Hello log", first.get("message"));
<add> ... | |
Java | lgpl-2.1 | 5b55902d9aad9d0f4baea67d954ab7390510d569 | 0 | GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework | /*
* 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 gate.plugin.learningframework.engines;
import cc.mallet.fst.CRF;
import cc.mallet.fst.CRFOptimizableByLabelLikelihood;
import... | src/gate/plugin/learningframework/engines/EngineMalletSeq.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 gate.plugin.learningframework.engines;
import cc.mallet.fst.CRF;
import cc.mallet.fst.CRFOptimizableByLabelLikelihood;
import... | Add comment about parameter/option.
| src/gate/plugin/learningframework/engines/EngineMalletSeq.java | Add comment about parameter/option. | <ide><path>rc/gate/plugin/learningframework/engines/EngineMalletSeq.java
<ide> if(wdd) crf.setWeightsDimensionDensely();
<ide>
<ide> // initialize model's weights
<add> // TODO: make this conditional on a parm, how does this relate to
<add> // weightDimDensely??
<add> // !!! This sho... | |
Java | apache-2.0 | 5dd17f754d7a0ae1eade7e5a9ea5ec9ca4b67de6 | 0 | NessComputing/components-ness-pg,NessComputing/components-ness-pg | /**
* Copyright (C) 2012 Ness Computing, 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/main/java/com/nesscomputing/db/postgres/embedded/EmbeddedPostgreSQL.java | /**
* Copyright (C) 2012 Ness Computing, 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 ... | Don't bail if postmaster cleanup fails
Fixes #16
| src/main/java/com/nesscomputing/db/postgres/embedded/EmbeddedPostgreSQL.java | Don't bail if postmaster cleanup fails Fixes #16 | <ide><path>rc/main/java/com/nesscomputing/db/postgres/embedded/EmbeddedPostgreSQL.java
<ide> if (lock != null) {
<ide> LOG.info("Found stale data directory {}", dir);
<ide> if (new File(dir, "postmaster.pid").exists()) {
<del> ... | |
Java | apache-2.0 | fb7dad3c489411354b19daa0e5ebf8aacb37a3e8 | 0 | seema-at-box/box-android-browse-sdk,box/box-android-browse-sdk,seema-at-box/box-android-browse-sdk,box/box-android-browse-sdk | package com.box.androidsdk.browse.fragments;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.PorterDuf... | box-browse-sdk/src/main/java/com/box/androidsdk/browse/fragments/BoxBrowseFragment.java | package com.box.androidsdk.browse.fragments;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.drawable.... | Styling progress bar for pre-lollipop releases
| box-browse-sdk/src/main/java/com/box/androidsdk/browse/fragments/BoxBrowseFragment.java | Styling progress bar for pre-lollipop releases | <ide><path>ox-browse-sdk/src/main/java/com/box/androidsdk/browse/fragments/BoxBrowseFragment.java
<ide> import android.content.IntentFilter;
<ide> import android.content.res.Resources;
<ide> import android.graphics.Canvas;
<add>import android.graphics.PorterDuff;
<ide> import android.graphics.drawable.Drawable;
<add>im... | |
Java | apache-2.0 | ed8484937fe944fcc4b30a797f7bc70076a428f4 | 0 | AlienQueen/wicket,mosoft521/wicket,dashorst/wicket,martin-g/wicket-osgi,freiheit-com/wicket,mosoft521/wicket,Servoy/wicket,freiheit-com/wicket,mosoft521/wicket,astrapi69/wicket,bitstorm/wicket,klopfdreh/wicket,mafulafunk/wicket,klopfdreh/wicket,martin-g/wicket-osgi,selckin/wicket,Servoy/wicket,topicusonderwijs/wicket,f... | /*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* 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/lic... | wicket/src/java/wicket/markup/html/link/ImageMap.java | /*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* 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/lic... | Made shapelink class Serializable so that image maps can be clustered
git-svn-id: ac804e38dcddf5e42ac850d29d9218b7df6087b7@455776 13f79535-47bb-0310-9956-ffa450edef68
| wicket/src/java/wicket/markup/html/link/ImageMap.java | Made shapelink class Serializable so that image maps can be clustered | <ide><path>icket/src/java/wicket/markup/html/link/ImageMap.java
<ide> import java.util.ArrayList;
<ide> import java.util.Iterator;
<ide> import java.util.List;
<add>import java.io.Serializable;
<ide>
<ide> import wicket.markup.ComponentTag;
<ide> import wicket.markup.MarkupStream;
<ide> */
<ide> public final class Im... | |
Java | epl-1.0 | 9ea9616a56f69ba2ca77e644944cc48359df2348 | 0 | codenvy/plugin-editor-codemirror,codenvy/plugin-editor-codemirror | /*******************************************************************************
* Copyright (c) 2014 Codenvy, S.A.
* 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
*... | src/main/java/com/codenvy/ide/editor/codemirror/client/jso/CodeMirrorOverlay.java | /*******************************************************************************
* Copyright (c) 2014 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*... | Add missing protected constructor | src/main/java/com/codenvy/ide/editor/codemirror/client/jso/CodeMirrorOverlay.java | Add missing protected constructor | <ide><path>rc/main/java/com/codenvy/ide/editor/codemirror/client/jso/CodeMirrorOverlay.java
<ide> * Overlay on the CodeMirror javascript object.
<ide> */
<ide> public class CodeMirrorOverlay extends JavaScriptObject {
<add>
<add> protected CodeMirrorOverlay() {}
<ide>
<ide> /**
<ide> * Creates an editor ... | |
Java | mit | e446cc4604a0a89c8d742a0ca29772853641136a | 0 | przodownikR1/springJpaCamp,przodownikR1/springJpaCamp | package pl.java.scalatech.exercise.creating;
import org.junit.Test;
public class CreateUsingStandardServiceRegistryBuilderTest {
//AnnotationConfiguration, ServiceRegistryBuilder deprecated from hibernate 4
@Test
public void shouldCreateSession(){
}
}
| src/test/java/pl/java/scalatech/exercise/creating/CreateUsingStandardServiceRegistryBuilderTest.java | package pl.java.scalatech.exercise.creating;
import org.junit.Test;
public class CreateUsingStandardServiceRegistryBuilderTest {
@Test
public void shouldCreateSession(){
}
}
| session builder test
| src/test/java/pl/java/scalatech/exercise/creating/CreateUsingStandardServiceRegistryBuilderTest.java | session builder test | <ide><path>rc/test/java/pl/java/scalatech/exercise/creating/CreateUsingStandardServiceRegistryBuilderTest.java
<ide> package pl.java.scalatech.exercise.creating;
<add>
<ide>
<ide> import org.junit.Test;
<ide>
<ide> public class CreateUsingStandardServiceRegistryBuilderTest {
<del>
<add>
<add> //AnnotationConfi... | |
Java | apache-2.0 | d153a0e89a246d7d25e5a3b76804f2678bf1caa5 | 0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.fileTypes.impl;
import com.google.common.annotations.VisibleForTesting;
import com.intellij.diagnostic.PluginException;
import com.intellij.ide.highl... | platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.fileTypes.impl;
import com.google.common.annotations.VisibleForTesting;
import com.intellij.diagnostic.PluginException;
import com.intellij.ide.highl... | FileTypeManagerImpl return null if file type is not found by name
GitOrigin-RevId: b51e76fa0245de79c0c10dfea807d8b66991f3c4 | platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java | FileTypeManagerImpl return null if file type is not found by name | <ide><path>latform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java
<ide> FileType type = getStdFileType(fileTypeName);
<ide> // TODO: Abstract file types are not std one, so need to be restored specially,
<ide> // currently there are 6 of them and restoration does not happen v... | |
Java | apache-2.0 | a3927664dddb21b7e67306a31f9acdf60dfd4f20 | 0 | asterisk-java/asterisk-java,asterisk-java/asterisk-java | package org.asteriskjava.util;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
import java.ut... | src/main/java/org/asteriskjava/util/Locker.java | package org.asteriskjava.util;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
import java.ut... | reduce logging
| src/main/java/org/asteriskjava/util/Locker.java | reduce logging | <ide><path>rc/main/java/org/asteriskjava/util/Locker.java
<ide> stats.totalWaitTime.addAndGet(waitTime);
<ide> stats.totalHoldTime.addAndGet(holdTime);
<ide>
<del> if (waiters > 0 && holdTime > 1)
<add> long averageHoldTime = stats.getAverageHoldTime();
<ad... | |
Java | apache-2.0 | 47bb175bd4b443f992d8ecc55f0bc795693ba016 | 0 | wido/cloudstack,jcshen007/cloudstack,GabrielBrascher/cloudstack,GabrielBrascher/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,jcshen007/cloudstack,DaanHoogland/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,DaanHoogland/cloudstack,resmo/cloudstack,GabrielBrascher/cloudstack,GabrielBrascher/cloudstack,resmo/c... | //
// 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 ... | utils/src/com/cloud/utils/nio/Link.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 ... | Partially reverting c61c636ce8a1d74fd22d89026d40ba904fff6cf8. Changing the name if cloud.keystore has bigger impact than just changing the name.
| utils/src/com/cloud/utils/nio/Link.java | Partially reverting c61c636ce8a1d74fd22d89026d40ba904fff6cf8. Changing the name if cloud.keystore has bigger impact than just changing the name. | <ide><path>tils/src/com/cloud/utils/nio/Link.java
<ide> private boolean _gotFollowingPacket;
<ide>
<ide> private SSLEngine _sslEngine;
<del> public static String keystoreFile = "/cloudmanagementserver.keystore";
<add> public static String keystoreFile = "/cloud.keystore";
<ide>
<ide> public Link(Ine... | |
JavaScript | mit | 24c942a45d087621bd125e3b5495a17c67dd3ee3 | 0 | phetsims/axon,phetsims/axon,phetsims/axon | // Copyright 2013-2016, University of Colorado Boulder
/**
* An observable array of items.
*
* Because the array is observable, we must be careful about the possibility of concurrent-modification errors.
* Any time we iterate over the array, we must iterate over a copy, because callback may be modifying the array.... | js/ObservableArray.js | // Copyright 2013-2016, University of Colorado Boulder
/**
* An observable array of items.
*
* Because the array is observable, we must be careful about the possibility of concurrent-modification errors.
* Any time we iterate over the array, we must iterate over a copy, because callback may be modifying the array.... | instrument lengthProperty, see #135
| js/ObservableArray.js | instrument lengthProperty, see #135 | <ide><path>s/ObservableArray.js
<ide> var TObservableArray = require( 'AXON/TObservableArray' );
<ide> var Tandem = require( 'TANDEM/Tandem' );
<ide>
<add> // phet-io modules
<add> var TNumber = require( 'ifphetio!PHET_IO/types/TNumber' );
<add>
<ide> /**
<ide> * @param {Object[]} [array]
<ide> * @param ... | |
Java | mit | 202018ce1e4c4b87e763a26cd17b103fbfb2c101 | 0 | openforis/collect,openforis/collect,openforis/collect,openforis/collect | package org.openforis.collect.persistence.jooq;
import static org.jooq.impl.DSL.name;
import java.math.BigDecimal;
import java.sql.Connection;
import java.util.Date;
import org.jooq.CollectCreateIndexStep;
import org.jooq.Configuration;
import org.jooq.DataType;
import org.jooq.Name;
import org.jooq.SQLD... | collect-core/src/main/java/org/openforis/collect/persistence/jooq/CollectDSLContext.java | package org.openforis.collect.persistence.jooq;
import static org.jooq.impl.DSL.name;
import java.math.BigDecimal;
import java.sql.Connection;
import java.util.Date;
import org.jooq.CollectCreateIndexStep;
import org.jooq.Configuration;
import org.jooq.DataType;
import org.jooq.Name;
import org.jooq.SQLD... | Use SQL REAL data type in SQLite DB for numeric columns (otherwise Saiku
rounds all numbers) | collect-core/src/main/java/org/openforis/collect/persistence/jooq/CollectDSLContext.java | Use SQL REAL data type in SQLite DB for numeric columns (otherwise Saiku rounds all numbers) | <ide><path>ollect-core/src/main/java/org/openforis/collect/persistence/jooq/CollectDSLContext.java
<ide> if (type == Date.class) {
<ide> jooqType = java.sql.Date.class;
<ide> } else if (type == Double.class) {
<del> jooqType = BigDecimal.class;
<add> if (dialect() == SQLDialect.SQLITE) {
<add> jooqType = ... | |
Java | apache-2.0 | ce9c8c001effe91f1184009f38eb61ae1434bf11 | 0 | yunarta/works-codex-android | package com.mobilesolutionworks.codex.internal;
import com.jamesmurty.utils.XMLBuilder2;
import com.mobilesolutionworks.codex.Action;
import com.mobilesolutionworks.codex.ActionHook;
import com.mobilesolutionworks.codex.ActionInfo;
import com.mobilesolutionworks.codex.Property;
import com.mobilesolutionworks.codex.Pro... | processor/src/main/java/com/mobilesolutionworks/codex/internal/AnnotationProcessor.java | package com.mobilesolutionworks.codex.internal;
import com.jamesmurty.utils.XMLBuilder2;
import com.mobilesolutionworks.codex.Action;
import com.mobilesolutionworks.codex.ActionHook;
import com.mobilesolutionworks.codex.ActionInfo;
import com.mobilesolutionworks.codex.Property;
import com.mobilesolutionworks.codex.Pro... | added method to documents oprhan hooks and subscribers
| processor/src/main/java/com/mobilesolutionworks/codex/internal/AnnotationProcessor.java | added method to documents oprhan hooks and subscribers | <ide><path>rocessor/src/main/java/com/mobilesolutionworks/codex/internal/AnnotationProcessor.java
<ide> }
<ide> properties.up();
<ide>
<add> XMLBuilder2 orphanHooks = codex.e("orphan-actionHooks");
<add>
<add> for (Map.Entry<String, List<ActionHookInfoDoc>> entry : allActionHooks.entrySet... | |
JavaScript | mit | 88eea458763b7c4da6860ff3f186f91dd067b824 | 0 | keskiju/autocomplete-java | 'use babel';
import { _ } from 'lodash';
import { TextEditor } from 'atom';
import { CompositeDisposable } from 'atom';
import { AtomAutocompleteProvider } from './AtomAutocompleteProvider';
import { JavaClassLoader } from './JavaClassLoader';
import atomJavaUtil from './atomJavaUtil';
class AtomAutocompletePackage {... | lib/atomAutocompletePackage.js | 'use babel';
import { _ } from 'lodash';
import { TextEditor } from 'atom';
import { CompositeDisposable } from 'atom';
import { AtomAutocompleteProvider } from './AtomAutocompleteProvider';
import { JavaClassLoader } from './JavaClassLoader';
import atomJavaUtil from './atomJavaUtil';
class AtomAutocompletePackage {... | issue #38
| lib/atomAutocompletePackage.js | issue #38 | <ide><path>ib/atomAutocompletePackage.js
<ide>
<ide> // Listen for buffer change
<ide> this.subscriptions.add(
<del> atom.workspace.onDidStopChangingActivePaneItem((paneItem) => {
<del> this._onChange(paneItem);
<del> }));
<add> atom.workspace.onDidStopChangingActivePaneItem((paneItem) => {
<ad... | |
Java | apache-2.0 | 38a178ff7979a4ff7d703861bade92fb5377e60a | 0 | cunningt/camel,tdiesler/camel,christophd/camel,DariusX/camel,tdiesler/camel,apache/camel,adessaigne/camel,nikhilvibhav/camel,nicolaferraro/camel,DariusX/camel,pmoerenhout/camel,nikhilvibhav/camel,pax95/camel,cunningt/camel,pmoerenhout/camel,adessaigne/camel,gnodet/camel,gnodet/camel,ullgren/camel,adessaigne/camel,alvin... | /*
* 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 ... | core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.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 ... | Regen
| core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java | Regen | <ide><path>ore/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java
<ide> *
<ide> * The option is a: <code>boolean</code> type.
<ide> *
<add> * Default: false
<ide> * Group: common
<ide> */
<ide> default Avro... | |
Java | apache-2.0 | 3dc7a9c01dc5e88656d9cc64b4a512c0634e4b04 | 0 | kirimin/kumin | package me.kirimin.kumin.ui.service;
import java.util.List;
import me.kirimin.kumin.ui.notification.AppNotificationBuilder;
import twitter4j.Status;
import me.kirimin.kumin.AppPreferences;
import me.kirimin.kumin.Constants;
import me.kirimin.kumin.R;
import me.kirimin.kumin.Twitter;
import me.kirimin.kumin.db.HashTa... | app/src/main/java/me/kirimin/kumin/ui/service/TweetViewService.java | package me.kirimin.kumin.ui.service;
import java.util.List;
import me.kirimin.kumin.ui.notification.AppNotificationBuilder;
import twitter4j.Status;
import me.kirimin.kumin.AppPreferences;
import me.kirimin.kumin.Constants;
import me.kirimin.kumin.R;
import me.kirimin.kumin.Twitter;
import me.kirimin.kumin.db.HashTa... | 定数名のPARAMESをPARAMSに置換
| app/src/main/java/me/kirimin/kumin/ui/service/TweetViewService.java | 定数名のPARAMESをPARAMSに置換 | <ide><path>pp/src/main/java/me/kirimin/kumin/ui/service/TweetViewService.java
<ide>
<ide> private static final int LAYOUT_TOP_ID = 1;
<ide>
<del> private static final WindowManager.LayoutParams NOT_FOCUSABLE_PARAMES = new WindowManager.LayoutParams(
<add> private static final WindowManager.LayoutParams NOT_... | |
Java | apache-2.0 | 915bf5f5b7d0afa40c9921bea0025d80cb29a51a | 0 | johnou/netty,idelpivnitskiy/netty,artgon/netty,fenik17/netty,netty/netty,Squarespace/netty,andsel/netty,Apache9/netty,fenik17/netty,Spikhalskiy/netty,doom369/netty,jchambers/netty,carl-mastrangelo/netty,Spikhalskiy/netty,idelpivnitskiy/netty,carl-mastrangelo/netty,jchambers/netty,andsel/netty,NiteshKant/netty,fenik17/n... | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | handler/src/main/java/io/netty/handler/ssl/SslHandler.java | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | SslHandler#handlerRemoved0() shouldn't care about the SSLEngine being a specific type but only if it's ReferenceCounted
Motivation
SslHandler should release any type of SSLEngine if it implements the ReferenceCounted interface
Modifications
Change condition to check for ReferenceCounted interface
Result
Better us... | handler/src/main/java/io/netty/handler/ssl/SslHandler.java | SslHandler#handlerRemoved0() shouldn't care about the SSLEngine being a specific type but only if it's ReferenceCounted | <ide><path>andler/src/main/java/io/netty/handler/ssl/SslHandler.java
<ide> import io.netty.channel.PendingWriteQueue;
<ide> import io.netty.handler.codec.ByteToMessageDecoder;
<ide> import io.netty.handler.codec.UnsupportedMessageTypeException;
<add>import io.netty.util.ReferenceCounted;
<ide> import io.netty.util.conc... | |
Java | apache-2.0 | eb53e535a8033b7b67f6e10aa349de0edf4df20e | 0 | apache/ignite,vsisko/incubator-ignite,alexzaitzev/ignite,dlnufox/ignite,endian675/ignite,DoudTechData/ignite,dream-x/ignite,samaitra/ignite,chandresh-pancholi/ignite,abhishek-ch/incubator-ignite,kidaa/incubator-ignite,ntikhonov/ignite,vldpyatkov/ignite,agura/incubator-ignite,afinka77/ignite,psadusumilli/ignite,samaitra... | /* @java.file.header */
/* _________ _____ __________________ _____
* __ ____/___________(_)______ /__ ____/______ ____(_)_______
* _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
* / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
* \____/ /_/ /_/ \_,__/... | modules/core/src/main/java/org/gridgain/grid/cache/GridCache.java | /* @java.file.header */
/* _________ _____ __________________ _____
* __ ____/___________(_)______ /__ ____/______ ____(_)_______
* _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
* / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
* \____/ /_/ /_/ \_,__/... | # GG-9116 - GridCacheStore in .NET
| modules/core/src/main/java/org/gridgain/grid/cache/GridCache.java | # GG-9116 - GridCacheStore in .NET | <ide><path>odules/core/src/main/java/org/gridgain/grid/cache/GridCache.java
<ide> * data store before start, or for read-only caches.
<ide> *
<ide> * @param p Optional predicate (may be {@code null}). If provided, will be used to
<add> * filter values to be put into cache.
<ide> * @param tt... | |
JavaScript | mit | 4682f97946885d10a670be38ccb25cc0bd847786 | 0 | xing/hops,xing/hops,xing/hops |
var fetch = require('isomorphic-fetch');
var bindActionCreators = require('redux').bindActionCreators;
var createAction = require('./store').createAction;
function normalizeOptions(defaults, overrides) {
if (typeof defaults === 'string') {
defaults = { url: defaults };
}
if (typeof overrides === 'string') ... | lib/network.js |
var fetch = require('isomorphic-fetch');
var createAction = require('./store').createAction;
exports.createFetchAction = function (key, url, defaults) {
var update = createAction(key);
return function (overrides) {
var options = Object.assign({}, defaults, overrides);
return function (dispatch) {
d... | add composeFetchAction()
| lib/network.js | add composeFetchAction() | <ide><path>ib/network.js
<ide>
<ide> var fetch = require('isomorphic-fetch');
<add>var bindActionCreators = require('redux').bindActionCreators;
<ide>
<ide> var createAction = require('./store').createAction;
<ide>
<del>exports.createFetchAction = function (key, url, defaults) {
<del> var update = createAction(key)... | |
Java | apache-2.0 | 247703775cca1b9c693d16c8bc6c381ec6f44951 | 0 | corcoran/okhttp-oauth2-client | package ca.mimic.oauth2library;
import java.io.IOException;
import java.util.Map;
import okhttp3.Authenticator;
import okhttp3.Credentials;
import okhttp3.FormBody;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.Route;
class Utils {
protected static boolean isJsonResponse(Response response) {
... | oauth2library/src/main/java/ca/mimic/oauth2library/Utils.java | package ca.mimic.oauth2library;
import java.io.IOException;
import java.util.Map;
import okhttp3.Authenticator;
import okhttp3.Credentials;
import okhttp3.FormBody;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.Route;
class Utils {
protected static boolean isJsonResponse(Response response) {
... | Fix NPE in case the content-type is empty in the response | oauth2library/src/main/java/ca/mimic/oauth2library/Utils.java | Fix NPE in case the content-type is empty in the response | <ide><path>auth2library/src/main/java/ca/mimic/oauth2library/Utils.java
<ide> class Utils {
<ide>
<ide> protected static boolean isJsonResponse(Response response) {
<del> return response.body() != null && response.body().contentType().subtype().equals("json");
<add> return response.body() != null && ... | |
Java | apache-2.0 | 0976f42cb7818394aeaae974203981c71cff418c | 0 | jay-hodgson/SynapseWebClient,Sage-Bionetworks/SynapseWebClient,Sage-Bionetworks/SynapseWebClient,jay-hodgson/SynapseWebClient,Sage-Bionetworks/SynapseWebClient,jay-hodgson/SynapseWebClient,Sage-Bionetworks/SynapseWebClient,jay-hodgson/SynapseWebClient | package org.sagebionetworks.web.client.widget.entity.renderer;
import org.sagebionetworks.web.client.DisplayUtils;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Tree;... | src/main/java/org/sagebionetworks/web/client/widget/entity/renderer/WikiSubpagesViewImpl.java | package org.sagebionetworks.web.client.widget.entity.renderer;
import org.sagebionetworks.web.client.DisplayUtils;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.TreeItem;
im... | SWC-677: greatly simplify layout for wiki subpage widget
| src/main/java/org/sagebionetworks/web/client/widget/entity/renderer/WikiSubpagesViewImpl.java | SWC-677: greatly simplify layout for wiki subpage widget | <ide><path>rc/main/java/org/sagebionetworks/web/client/widget/entity/renderer/WikiSubpagesViewImpl.java
<ide>
<ide> import com.extjs.gxt.ui.client.widget.LayoutContainer;
<ide> import com.extjs.gxt.ui.client.widget.layout.FitLayout;
<add>import com.google.gwt.user.client.ui.SimplePanel;
<ide> import com.google.gwt.use... | |
Java | agpl-3.0 | 2ec3d529f0ab6ed891fe376981eb74d0a656612c | 0 | roskens/opennms-pre-github,roskens/opennms-pre-github,tdefilip/opennms,rdkgit/opennms,roskens/opennms-pre-github,tdefilip/opennms,aihua/opennms,aihua/opennms,tdefilip/opennms,aihua/opennms,aihua/opennms,aihua/opennms,rdkgit/opennms,rdkgit/opennms,tdefilip/opennms,roskens/opennms-pre-github,roskens/opennms-pre-github,td... | //
// This file is part of the OpenNMS(R) Application.
//
// OpenNMS(R) is Copyright (C) 2005 The OpenNMS Group, Inc. All rights reserved.
// OpenNMS(R) is a derivative work, containing both original code, included code and modified
// code that was published under the GNU General Public License. Copyrights for modifi... | src/services/org/opennms/netmgt/collectd/CollectionSet.java | //
// This file is part of the OpenNMS(R) Application.
//
// OpenNMS(R) is Copyright (C) 2005 The OpenNMS Group, Inc. All rights reserved.
// OpenNMS(R) is a derivative work, containing both original code, included code and modified
// code that was published under the GNU General Public License. Copyrights for modifi... | fix getIfInfos to use values rather than keySet.. oops
| src/services/org/opennms/netmgt/collectd/CollectionSet.java | fix getIfInfos to use values rather than keySet.. oops | <ide><path>rc/services/org/opennms/netmgt/collectd/CollectionSet.java
<ide> }
<ide>
<ide> public Collection getIfInfos() {
<del> return getIfMap().keySet();
<add> return getIfMap().values();
<ide> }
<ide>
<ide> } | |
Java | mit | 2743eeab870dc53adc838731b1a94bc88af6c21e | 0 | samarth-math/project-connect | package LogMaintainence;
import globalfunctions.Contact;
import java.io.*;
import java.util.Iterator;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import GuiElements.ChatWindowPanelReceiver;
import GuiElem... | IPml/src/LogMaintainence/GettingChatLogs.java | package LogMaintainence;
import globalfunctions.Contact;
import java.io.*;
import java.util.Iterator;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import GuiElements.ChatWindowPanelReceiver;
import GuiElem... | Minor change in GeetingChatLogs | IPml/src/LogMaintainence/GettingChatLogs.java | Minor change in GeetingChatLogs | <ide><path>Pml/src/LogMaintainence/GettingChatLogs.java
<ide> if(chatFilePath.exists())
<ide> {
<ide> try {
<del> Object obj = parser.parse(new FileReader(chatFilePath));
<del> JSONObject logInfo = (JSONObject)obj;
<add> Object obj = parser.parse(new FileReader(chatFilePath));
<add> JSO... | |
JavaScript | mit | c26e37b06b2f379499d2cc487142d0951861565f | 0 | matreshkajs/matreshka_examples,matreshkajs/matreshka_examples | // store html binder in a short variable
const htmlBinder = Matreshka.binders.html;
// create a class that inherits Matreshka
class Application extends Matreshka {
constructor() {
super();
// bind the property x and the text field
this.bindNode('x', '.my-input');
// bind the prope... | hello-world/js/app.js | // сохраняем html байндер в переменную с коротким именем
const htmlBinder = Matreshka.binders.html;
// создаём класс, который наследуется от Matreshka
class Application extends Matreshka {
constructor() {
super();
// связываем свойство x и текстовое поле
this.bindNode('x', '.my-input');
... | update hello-world
| hello-world/js/app.js | update hello-world | <ide><path>ello-world/js/app.js
<del>// сохраняем html байндер в переменную с коротким именем
<add>// store html binder in a short variable
<ide> const htmlBinder = Matreshka.binders.html;
<ide>
<del>// создаём класс, который наследуется от Matreshka
<add>// create a class that inherits Matreshka
<ide> class Applicati... | |
Java | apache-2.0 | 5e2745d04020f46860c3471d11e0d6c5ea82d724 | 0 | DigitalPebble/storm-crawler,DigitalPebble/storm-crawler | /**
* Licensed to DigitalPebble Ltd under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* DigitalPebble licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this... | external/solr/src/main/java/com/digitalpebble/stormcrawler/solr/persistence/StatusUpdaterBolt.java | /**
* Licensed to DigitalPebble Ltd under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* DigitalPebble licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this... | SOLR StatusUpdater use short status name, fixes #627
| external/solr/src/main/java/com/digitalpebble/stormcrawler/solr/persistence/StatusUpdaterBolt.java | SOLR StatusUpdater use short status name, fixes #627 | <ide><path>xternal/solr/src/main/java/com/digitalpebble/stormcrawler/solr/persistence/StatusUpdaterBolt.java
<ide>
<ide> doc.setField("host", URLUtil.getHost(url));
<ide>
<del> doc.setField("status", status);
<add> doc.setField("status", status.name());
<ide>
<ide> Iterator<String> keyI... | |
Java | apache-2.0 | 008aa2621ad9809638f0f1703d941ed7e236c2ff | 0 | campbe13/JavaSourceSamples360 | //package fromslides.S09;
import java.util.Scanner;
/**
* This class illustrates exercises from the slide deck for the course
* 360-420-DW Intro to Java
* @author PMCampbell
* @version today
**/
public class PassByValue
{
public static void main(String[] args)
{
int number = 99;
System.out.pri... | fromslides/S09/PassByValue.java | //package fromslides.S08;
import java.util.Scanner;
/**
* This class illustrates exercises from the slide deck for the course
* 360-420-DW Intro to Java
* @author PMCampbell
* @version today
**/
public class SimpleMethods2
{
public static void main(String[] args)
{
int num1, num2;
message("T... | source for slides 9
| fromslides/S09/PassByValue.java | source for slides 9 | <ide><path>romslides/S09/PassByValue.java
<del>//package fromslides.S08;
<add>//package fromslides.S09;
<ide> import java.util.Scanner;
<ide> /**
<ide> * This class illustrates exercises from the slide deck for the course
<ide> * @author PMCampbell
<ide> * @version today
<ide> **/
<del>public class SimpleMethods2
<... | |
Java | apache-2.0 | 66955576db2bff6daf27a3b75165848c48dff71e | 0 | happy6666/remote_r | import org.jsoup.Jsoup;
import org.rosuda.REngine.REXPMismatchException;
import org.rosuda.REngine.RList;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeUtility;
import java.io.IOException;
import java.util.*;
import java.util.con... | src/main/java/EmailRecSend.java | import org.jsoup.Jsoup;
import org.rosuda.REngine.REXPMismatchException;
import org.rosuda.REngine.RList;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeUtility;
import java.io.IOException;
import java.util.*;
import java.util.con... | Add debug information
| src/main/java/EmailRecSend.java | Add debug information | <ide><path>rc/main/java/EmailRecSend.java
<ide> // 向回话"请求"一个某种提供者的存储库,是一个POP3提供者
<ide> System.out.println("Get store");
<ide> store = ss.getStore(provider);
<add> } else {
<add> System.out.println("Store is ready");
<ide> }
<ide> if (!store.isConnected()) {
<ide> // 连接存储库,从而可以打开存储库中的文件夹,此时是面向... | |
Java | apache-2.0 | error: pathspec 'src/main/java/org/apdplat/extractor/html/ExtractRegular.java' did not match any file(s) known to git
| 25c34f897693a42f85d39c15fcc154cdabd1be98 | 1 | ysc/HtmlExtractor | /**
*
* APDPlat - Application Product Development Platform
* Copyright (c) 2013, 杨尚川, yang-shangchuan@qq.com
*
* 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 Li... | src/main/java/org/apdplat/extractor/html/ExtractRegular.java | URL抽取规则 | src/main/java/org/apdplat/extractor/html/ExtractRegular.java | URL抽取规则 | <ide><path>rc/main/java/org/apdplat/extractor/html/ExtractRegular.java
<add>/**
<add> *
<add> * APDPlat - Application Product Development Platform
<add> * Copyright (c) 2013, 杨尚川, yang-shangchuan@qq.com
<add> *
<add> * This program is free software: you can redistribute it and/or modify
<add> * it under the terms of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.