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 | b3494a1be50d59570d4dfba92d443ba6c14a441d | 0 | reactor/reactor-netty,reactor/reactor-netty | /*
* Copyright (c) 2011-2016 Pivotal Software Inc, 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
*
* Unles... | src/main/java/reactor/ipc/netty/http/HttpOperations.java | /*
* Copyright (c) 2011-2016 Pivotal Software Inc, 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
*
* Unles... | Only affect send
| src/main/java/reactor/ipc/netty/http/HttpOperations.java | Only affect send | <ide><path>rc/main/java/reactor/ipc/netty/http/HttpOperations.java
<ide>
<ide> volatile int statusAndHeadersSent = 0;
<ide>
<del> protected HttpOperations(Channel ioChannel, HttpOperations<INBOUND, OUTBOUND> replaced) {
<add> protected HttpOperations(Channel ioChannel,
<add> HttpOperations<INBOUND, OUTBOUND> repla... | |
Java | mit | 77473da4fb76688b9b19e91e2559652023e967fa | 0 | PhiCode/philib,PhiCode/philib | /*
* Copyright (c) 2012 Philipp Meinen <philipp@bind.ch>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, ... | src/main/java/ch/bind/philib/lang/MurmurHash.java | /*
* Copyright (c) 2012 Philipp Meinen <philipp@bind.ch>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, ... | remove uncommented code
| src/main/java/ch/bind/philib/lang/MurmurHash.java | remove uncommented code | <ide><path>rc/main/java/ch/bind/philib/lang/MurmurHash.java
<ide> int k = EndianConverter.decodeInt32LE(key, off);
<ide> off += 4;
<ide>
<del> // k *= MURMUR3_32_C1;
<del> // k = BitOps.rotl32(k, 15);
<del> // k *= MURMUR3_32_C2;
<del> // hash ^= k;
<ide> hash ^= murmur3_round32(k);
<ide> hash = Bi... | |
Java | apache-2.0 | b2e52205b7d73b8aebcaf9cc33a3de85b3849133 | 0 | killbill/killbill-avatax-plugin | /*
* Copyright 2014-2015 Groupon, Inc
* Copyright 2014-2015 The Billing Project, LLC
*
* The Billing 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... | src/main/java/org/killbill/billing/plugin/avatax/api/AvaTaxInvoicePluginApi.java | /*
* Copyright 2014-2015 Groupon, Inc
* Copyright 2014-2015 The Billing Project, LLC
*
* The Billing 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... | Keep the explicit type argument
| src/main/java/org/killbill/billing/plugin/avatax/api/AvaTaxInvoicePluginApi.java | Keep the explicit type argument | <ide><path>rc/main/java/org/killbill/billing/plugin/avatax/api/AvaTaxInvoicePluginApi.java
<ide>
<ide> @Override
<ide> public List<InvoiceItem> getAdditionalInvoiceItems(final Invoice invoice, final boolean dryRun, final Iterable<PluginProperty> properties, final CallContext context) {
<del> final Colle... | |
Java | mit | 5ba3b6f252648e9d92826efe7bc7e3f154b5d6d0 | 0 | simple-elf/selenide,simple-elf/selenide,simple-elf/selenide,codeborne/selenide,codeborne/selenide,codeborne/selenide,simple-elf/selenide | package com.codeborne.selenide;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.WrapsDriver;
import org.openqa.selenium.internal.WrapsElement;
import org.openqa.selenium.inter... | src/main/java/com/codeborne/selenide/SelenideElement.java | package com.codeborne.selenide;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.WrapsDriver;
import org.openqa.selenium.internal.WrapsElement;
import org.openqa.selenium.inter... | add missing </p>
| src/main/java/com/codeborne/selenide/SelenideElement.java | add missing </p> | <ide><path>rc/main/java/com/codeborne/selenide/SelenideElement.java
<ide>
<ide> /**
<ide> * Append given test to the text field and trigger "change" event.
<add> *
<ide> * <p>
<ide> * Implementation details:
<ide> * This is the same as
<ide> * 1. WebElement.sendKeys(text)
<ide> * 2. Trigger c... | |
JavaScript | isc | 72d79f8e654b60f4fc3389d83090fd58e2b1ef6e | 0 | heroku/heroku-redis-jsplugin | var Heroku = require('heroku-client');
var api = require('./shared.js');
module.exports = {
topic: 'redis',
command: 'credentials',
needsApp: true,
needsAuth: true,
args: [{name: 'database', optional: true}],
flags: [{name: 'reset', char: 'r'}],
shortHelp: 'display credentials information',
run: funct... | lib/commands/redis/credentials.js | var Heroku = require('heroku-client');
var api = require('./shared.js');
module.exports = {
topic: 'redis',
command: 'credentials',
needsApp: true,
needsAuth: true,
args: [{name: 'database', optional: false}],
flags: [{name: 'reset', char: 'r'}],
shortHelp: 'display credentials information',
run: func... | Make credentials reset work with REDIS_URL by default.
| lib/commands/redis/credentials.js | Make credentials reset work with REDIS_URL by default. | <ide><path>ib/commands/redis/credentials.js
<ide> command: 'credentials',
<ide> needsApp: true,
<ide> needsAuth: true,
<del> args: [{name: 'database', optional: false}],
<add> args: [{name: 'database', optional: true}],
<ide> flags: [{name: 'reset', char: 'r'}],
<ide> shortHelp: 'display credentials informa... | |
Java | apache-2.0 | 18ba19bce1f23cb542f1cd6d2c81bb2934c97b4d | 0 | smkniazi/hops,smkniazi/hops,hopshadoop/hops,smkniazi/hops,smkniazi/hops,smkniazi/hops,hopshadoop/hops,smkniazi/hops,hopshadoop/hops,hopshadoop/hops,hopshadoop/hops,smkniazi/hops,hopshadoop/hops,hopshadoop/hops,hopshadoop/hops,smkniazi/hops | /**
* 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... | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestDiskspaceQuotaUpdate.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... | [HOPS-754] apply HDFS-6535 | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestDiskspaceQuotaUpdate.java | [HOPS-754] apply HDFS-6535 | <ide><path>adoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestDiskspaceQuotaUpdate.java
<ide>
<ide> import io.hops.transaction.handler.HDFSOperationType;
<ide> import io.hops.transaction.handler.HopsTransactionalRequestHandler;
<del>import io.hops.transaction.handler.LightWeightReq... | |
Java | bsd-2-clause | c64840208bc8912632ccc6ddc832f04af923c63e | 0 | Naftoreiclag/Village-Simulator | /* Copyright (c) 2014 "Naftoreiclag" https://github.com/Naftoreiclag
*
* Distributed under the BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
* See accompanying file LICENSE
*
* Special thanks to Sean R. Owens for his public domain code which I added.
*/
package naftoreiclag.village.renderin... | source/naftoreiclag/village/rendering/util/WeirdObj.java | /* Copyright (c) 2014 "Naftoreiclag" https://github.com/Naftoreiclag
*
* Distributed under the BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
* See accompanying file LICENSE
*
* Special thanks to Sean R. Owens for his public domain code which I added.
*/
package naftoreiclag.village.renderin... | thats a bad word
| source/naftoreiclag/village/rendering/util/WeirdObj.java | thats a bad word | <ide><path>ource/naftoreiclag/village/rendering/util/WeirdObj.java
<ide> return facesByTextureList;
<ide> }
<ide>
<del> // @TODO: This is a crappy way to calculate vertex normals if we are missing
<add> // @TODO: This is a bad way to calculate vertex normals if we are missing
<ide> // said normals. I just wanted
<... | |
Java | agpl-3.0 | 259d05a950251703f221cc5f92dcec1ae5190e80 | 0 | tvesalainen/hoski-lib | /*
* Copyright (C) 2012 Helsingfors Segelklubb ry
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* T... | src/fi/hoski/datastore/repository/KeyInfo.java | /*
* Copyright (C) 2012 Helsingfors Segelklubb ry
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* T... | Decimals from current | src/fi/hoski/datastore/repository/KeyInfo.java | Decimals from current | <ide><path>rc/fi/hoski/datastore/repository/KeyInfo.java
<ide> {
<ide> if (value instanceof Double)
<ide> {
<del> entry.setValue(String.format("%.2f", value));
<add> Double d = (Double) value;
<add> ... | |
Java | apache-2.0 | 52f3d2c214cbee15a0ff063135334e78412bf61f | 0 | markhobson/microbrowser | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... | api/src/test/java/org/hobsoft/microbrowser/AbstractMicrodataPropertyTest.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... | Used assertThat instead of assertEquals | api/src/test/java/org/hobsoft/microbrowser/AbstractMicrodataPropertyTest.java | Used assertThat instead of assertEquals | <ide><path>pi/src/test/java/org/hobsoft/microbrowser/AbstractMicrodataPropertyTest.java
<ide> import org.hobsoft.microbrowser.support.FakeMicrodataProperty;
<ide> import org.junit.Test;
<ide>
<del>import static org.junit.Assert.assertEquals;
<add>import static org.hamcrest.CoreMatchers.is;
<add>import static org.junit... | |
JavaScript | mit | 8c217375e7f40b23591f907e574cab45de646577 | 0 | eavidan-0/Leaflet.draw,Agrimap/Leaflet.draw,riboher/Leaflet.draw,Leaflet/Leaflet.draw,Agrimap/Leaflet.draw,chasemgray/Leaflet.draw,Leaflet/Leaflet.draw,Leaflet/Leaflet.draw,manleyjster/Leaflet.draw,riboher/Leaflet.draw,Agrimap/Leaflet.draw,eavidan-0/Leaflet.draw,germanjoey/Leaflet.draw,germanjoey/Leaflet.draw,chasemgra... | L.Edit = L.Edit || {};
/*
* L.Edit.Poly is an editing handler for polylines and polygons.
*/
L.Edit.Poly = L.Handler.extend({
options: {},
initialize: function (poly, options) {
this.latlngs = [poly._latlngs];
if (poly._holes) {
this.latlngs = this.latlngs.concat(poly._holes);
}
this._poly = poly;
... | src/edit/handler/Edit.Poly.js | L.Edit = L.Edit || {};
/*
* L.Edit.Poly is an editing handler for polylines and polygons.
*/
L.Edit.Poly = L.Handler.extend({
options: {},
initialize: function (poly, options) {
this.latlngs = [poly._latlngs];
if (poly._holes) {
this.latlngs = this.latlngs.concat(poly._holes);
}
this._poly = poly;
... | Small formatting fix (!==)
| src/edit/handler/Edit.Poly.js | Small formatting fix (!==) | <ide><path>rc/edit/handler/Edit.Poly.js
<ide>
<ide> // Manually trigger 'dragend' behavior on marker we are about to remove
<ide> // WORKAROUND: introduced in 1.0.0-rc2, may be related to #4484
<del> if (L.version.indexOf('0.7') != 0) {
<add> if (L.version.indexOf('0.7') !== 0) {
<ide> marker.draggi... | |
JavaScript | isc | 579ff5b1c898835d903233cfd4b3c48113f09dec | 0 | Originate/tutorial-runner,Originate/tutorial-runner | // @flow
import type Formatter from './formatters/formatter.js'
import type { CliArgTypes } from './cli/cli-arg-types.js'
const ActivityTypeManager = require('./commands/run/activity-type-manager.js')
const { red } = require('chalk')
const commandPath = require('./commands/command-path')
const Configuration = require... | src/text-runner.js | // @flow
import type Formatter from './formatters/formatter.js'
import type { CliArgTypes } from './cli/cli-arg-types.js'
const ActivityTypeManager = require('./commands/run/activity-type-manager.js')
const { red } = require('chalk')
const commandPath = require('./commands/command-path')
const Configuration = require... | Simplify (#345)
| src/text-runner.js | Simplify (#345) | <ide><path>rc/text-runner.js
<ide> constructor (constructorArgs: CliArgTypes, configPath) {
<ide> this.constructorArgs = constructorArgs
<ide> this.configuration = new Configuration(configPath, this.constructorArgs)
<del> const formatterManager = new FormatterManager()
<del> this.formatter = formatterMa... | |
JavaScript | mit | d6a3dcdb533901f79d6287853c391ae54c4f08bf | 0 | mmalecki/dmkbot,mmalecki/dmkbot | var fs = require('fs'),
util = require('util'),
spawn = require('child_process').spawn;
function EvalModule(settings) {
this.settings = settings;
this.settings.prefix = this.settings.prefix || '/tmp/';
this.settings.timeout = this.settings.timeout || 5000;
this.routes = [
[/^eval (.+)/, this.onEval... | lib/modules/eval.js | var fs = require('fs'),
util = require('util'),
spawn = require('child_process').spawn;
function EvalModule(settings) {
this.settings = settings;
this.settings.prefix = this.settings.prefix || '/tmp/';
this.settings.timeout = this.settings.timeout || 5000;
this.routes = [
[/^eval (.+)/, this.onEval... | [fix] path to eval-jail.js
| lib/modules/eval.js | [fix] path to eval-jail.js | <ide><path>ib/modules/eval.js
<ide>
<ide> var code = args[1];
<ide> console.log(from + " requested evaluation of '" + code + "'");
<del> fs.readFile('lib/modules/eval-jail.js', 'utf-8', function (err, data) {
<add> fs.readFile(__dirname + '/eval-jail.js', 'utf-8', function (err, data) {
<ide> if (err) {
<ide... | |
Java | apache-2.0 | fb8d251d83a5cc8e57f6d57108fd334fe102130f | 0 | mrkcsc/android-mg-bootstrap,mrkcsc/android-mg-bootstrap | package com.miguelgaeta.bootstrap.mg_text;
import android.support.v7.widget.RecyclerView;
import android.text.Spannable;
import android.text.TextWatcher;
import com.miguelgaeta.bootstrap.mg_recycler.MGRecyclerAdapter;
import com.miguelgaeta.bootstrap.mg_recycler.MGRecyclerDataPayload;
import com.miguelgaeta.bootstrap... | mg-bootstrap/lib/src/main/java/com/miguelgaeta/bootstrap/mg_text/MGTextEditMention.java | package com.miguelgaeta.bootstrap.mg_text;
import android.support.v7.widget.RecyclerView;
import android.text.Spannable;
import android.text.TextWatcher;
import com.miguelgaeta.bootstrap.mg_recycler.MGRecyclerAdapter;
import com.miguelgaeta.bootstrap.mg_recycler.MGRecyclerDataPayload;
import com.miguelgaeta.bootstrap... | Updated constructor.
| mg-bootstrap/lib/src/main/java/com/miguelgaeta/bootstrap/mg_text/MGTextEditMention.java | Updated constructor. | <ide><path>g-bootstrap/lib/src/main/java/com/miguelgaeta/bootstrap/mg_text/MGTextEditMention.java
<ide>
<ide> import lombok.Getter;
<ide> import lombok.NonNull;
<del>import lombok.RequiredArgsConstructor;
<ide>
<ide> /**
<ide> * Created by mrkcsc on 5/23/15.
<ide> */
<del>@RequiredArgsConstructor
<ide> public class... | |
JavaScript | apache-2.0 | 086c21fddb232dce7b80103fbb0eb8d11a26ecce | 0 | NIRALUser/ProbtrackBrainConnectivity,NIRALUser/ProbtrackBrainConnectivity,NIRALUser/CIVILITY,NIRALUser/ProbtrackBrainConnectivity,NIRALUser/CIVILITY,NIRALUser/CIVILITY,NIRALUser/CIVILITY,juanprietob/ProbtrackBrainConnectivity,juanprietob/ProbtrackBrainConnectivity,juanprietob/ProbtrackBrainConnectivity,NIRALUser/Probtr... | angular.module('brainConnectivity')
.directive('circlePlot',function($routeParams,$location,probtrack){
function link($scope,$attrs,$filter){
$scope.plotParameters = {};
$scope.plotParameters.threshold = 0;
$scope.plotParameters.method = [true,false,false];
$scope.plotParameters.diameter = 960;
$scope.plo... | server/plugins/static/public/home/directiveCirclePlot.js | angular.module('brainConnectivity')
.directive('circlePlot',function($routeParams,$location,probtrack){
function link($scope,$attrs,$filter){
$scope.plotParameters = {};
$scope.plotParameters.threshold = 0;
$scope.plotParameters.method = [true,false,false];
$scope.plotParameters.diameter = 960;
$scope.plo... | Modif left part brain plot
| server/plugins/static/public/home/directiveCirclePlot.js | Modif left part brain plot | <ide><path>erver/plugins/static/public/home/directiveCirclePlot.js
<ide> var side = d["name"].substring(last+1);
<ide> if(side == "L")
<ide> {
<add> nbLeft = nbLeft +1;
<ide> var coordX = d["y"]+140;
<ide>
<ide> var coordY = -d["z"];
<i... | |
Java | apache-2.0 | 364e8b4dd04d13d28ae0e1cc92d87e95623620fd | 0 | igorakkerman/jlib | package org.jlib.container.sequence;
import org.jlib.container.IllegalContainerArgumentException;
/**
* {@link RuntimeException} referencing a {@link Sequence}.
*
* @author Igor Akkerman
*/
public abstract class IllegalSequenceArgumentException
extends IllegalContainerArgumentException {
/** ser... | jlib.container/src/main/java/org/jlib/container/sequence/IllegalSequenceArgumentException.java | package org.jlib.container.sequence;
import org.jlib.container.IllegalContainerArgumentException;
/**
* {@link RuntimeException} referencing a {@link Sequence}.
*
* @author Igor Akkerman
*/
public abstract class IllegalSequenceArgumentException
extends IllegalContainerArgumentException {
/** ser... | IllegalSequenceArgumentException: message parameters added | jlib.container/src/main/java/org/jlib/container/sequence/IllegalSequenceArgumentException.java | IllegalSequenceArgumentException: message parameters added | <ide><path>lib.container/src/main/java/org/jlib/container/sequence/IllegalSequenceArgumentException.java
<ide> *
<ide> * @param messagePattern
<ide> * {@link String} specifying the error message pattern
<add> *
<add> * @param messageParameters
<add> * sequence of {@link Object... | |
Java | apache-2.0 | 9bd5cca6fc67d3f4addfac698e98737a536fceac | 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-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | java/java-psi-impl/src/com/intellij/psi/impl/PsiSubstitutorImpl.java | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | PsiSubstitutorImpl: use optimized UnmodifiableHashMap#getOrDefault to avoid double lookup
GitOrigin-RevId: 1700dadf9e87f4cefdd9ecbc8fed421a127b11b4 | java/java-psi-impl/src/com/intellij/psi/impl/PsiSubstitutorImpl.java | PsiSubstitutorImpl: use optimized UnmodifiableHashMap#getOrDefault to avoid double lookup | <ide><path>ava/java-psi-impl/src/com/intellij/psi/impl/PsiSubstitutorImpl.java
<ide>
<ide> @Override
<ide> public PsiType substitute(@NotNull PsiTypeParameter typeParameter) {
<del> return containsInMap(typeParameter)
<del> ? getFromMap(typeParameter)
<del> : JavaPsiFacad... | |
Java | apache-2.0 | 5a1ace9130e702758d1241290487462fbd44c0db | 0 | premkumarbalu/scsb-etl,angelindayana/scsb-etl,angelindayana/scsb-etl,premkumarbalu/scsb-etl,angelindayana/scsb-etl,premkumarbalu/scsb-etl | package org.recap.camel.datadump;
import org.apache.camel.Exchange;
import org.apache.camel.Predicate;
import org.recap.util.datadump.BatchCounter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by peris on 11/5/16.
*/
public class DataExportPredicate implements Predicate {
private stati... | src/main/java/org/recap/camel/datadump/DataExportPredicate.java | package org.recap.camel.datadump;
import org.apache.camel.Exchange;
import org.apache.camel.Predicate;
import org.recap.util.datadump.BatchCounter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by peris on 11/5/16.
*/
public class DataExportPredicate implements Predicate {
private stati... | Added check for null in item tag creation in scsb formatter service and updated the predicate for batchsize
| src/main/java/org/recap/camel/datadump/DataExportPredicate.java | Added check for null in item tag creation in scsb formatter service and updated the predicate for batchsize | <ide><path>rc/main/java/org/recap/camel/datadump/DataExportPredicate.java
<ide>
<ide> @Override
<ide> public boolean matches(Exchange exchange) {
<del> Integer batchSize = (Integer) exchange.getIn().getHeader("batchSize");
<add> Integer batchSizeFromHeader = (Integer) exchange.getIn().getHeader("... | |
JavaScript | agpl-3.0 | 943cbe6c9d7d3414c8d1d3e3bd408fa5c894e378 | 0 | mitechie/juju-gui,mitechie/juju-gui,mitechie/juju-gui,mitechie/juju-gui | /* Copyright (C) 2018 Canonical Ltd. */
'use strict';
const React = require('react');
const enzyme = require('enzyme');
const ExpertCard = require('../expert-card/expert-card');
const EXPERTS = require('../expert-card/experts');
describe('ExpertCard', function() {
const renderComponent = (options = {}) => enzyme.... | jujugui/static/gui/src/app/components/expert-card/test-expert-card.js | /* Copyright (C) 2018 Canonical Ltd. */
'use strict';
const React = require('react');
const ExpertCard = require('../expert-card/expert-card');
const EXPERTS = require('../expert-card/experts');
const jsTestUtils = require('../../utils/component-test-utils');
describe('ExpertCard', function() {
function renderCom... | Update expert card tests to use enzyme.
| jujugui/static/gui/src/app/components/expert-card/test-expert-card.js | Update expert card tests to use enzyme. | <ide><path>ujugui/static/gui/src/app/components/expert-card/test-expert-card.js
<ide> 'use strict';
<ide>
<ide> const React = require('react');
<add>const enzyme = require('enzyme');
<ide>
<ide> const ExpertCard = require('../expert-card/expert-card');
<ide> const EXPERTS = require('../expert-card/experts');
<ide>
<... | |
Java | apache-2.0 | df605bfd83f68bba2893289f569dff0cc4582932 | 0 | apache/felix-dev,apache/felix-dev,apache/felix-dev,apache/felix-dev | /*
* 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 ... | fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.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 ... | FELIX-1593: Got an exception when restarting FileInstall bundle
git-svn-id: e057f57e93a604d3b43d277ae69bde5ebf332112@825141 13f79535-47bb-0310-9956-ffa450edef68
| fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java | FELIX-1593: Got an exception when restarting FileInstall bundle | <ide><path>ileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java
<ide>
<ide> private static Logger getLogger(BundleContext context)
<ide> {
<del> if (logger != null)
<add> if (logger != null && logger.isValidLogger(context))
<ide> {
<ide> return logger;
<ide... | |
JavaScript | mit | ae2913217552dc4c420a093cc0c81c0e05a32a69 | 0 | Aktanusa/CookieMonster,Aktanusa/CookieMonster,lgeorget/CookieMonster,lgeorget/CookieMonster | /********
* Disp *
********/
CM.Disp.FormatTime = function(time, format) {
if (time == 'Infinity') return time;
if (CM.ConfigData.TimeFormat == 1) {
if (time > 3153600000) return 'XX:XX:XX:XX:XX';
if ((format == 1) && (time == 1)) return ':01';
time = Math.ceil(time);
var y = Math.floor(time / 31536000);
... | src/Disp.js | /********
* Disp *
********/
CM.Disp.FormatTime = function(time, format) {
if (time == 'Infinity') return time;
if (CM.ConfigData.TimeFormat == 1) {
if (time > 3153600000) return 'XX:XX:XX:XX:XX';
if ((format == 1) && (time < 1)) return '';
time = Math.ceil(time);
var y = Math.floor(time / 31536000);
var... | Made a single second look nicer
Changed the condition so it returns only ":01" when the time is at a second (or less) for the items with format = 1. | src/Disp.js | Made a single second look nicer | <ide><path>rc/Disp.js
<ide> if (time == 'Infinity') return time;
<ide> if (CM.ConfigData.TimeFormat == 1) {
<ide> if (time > 3153600000) return 'XX:XX:XX:XX:XX';
<del> if ((format == 1) && (time < 1)) return '';
<add> if ((format == 1) && (time == 1)) return ':01';
<ide> time = Math.ceil(time);
<ide> var y = ... | |
Java | agpl-3.0 | 25b22e7a24ef69215db0d7f3c42738a92bc08b63 | 0 | bisq-network/exchange,bisq-network/exchange,bitsquare/bitsquare,bitsquare/bitsquare | /*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is distributed in the ... | p2p/src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java | /*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is distributed in the ... | Increase timeout for data request
At slow internet connections the current timeout make it impossible to
get the initial data and therefor to use Bisq.
The timeout is containing the request and response as well as the time
it takes to start up the network connection which can also be quite
slow.
In my scenario, it too... | p2p/src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java | Increase timeout for data request | <ide><path>2p/src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java
<ide>
<ide> @Slf4j
<ide> class RequestDataHandler implements MessageListener {
<del> private static final long TIMEOUT = 90;
<add> private static final long TIMEOUT = 180;
<ide>
<ide> private NodeAddress peersNodeAddress;
<id... | |
Java | mit | 4c34e4cdc40388220edea95d3a178d8c35d5b372 | 0 | jpederzolli/jenkins-1,singh88/jenkins,svanoort/jenkins,daniel-beck/jenkins,DoctorQ/jenkins,scoheb/jenkins,aldaris/jenkins,tastatur/jenkins,tangkun75/jenkins,ajshastri/jenkins,aheritier/jenkins,gorcz/jenkins,292388900/jenkins,luoqii/jenkins,292388900/jenkins,jk47/jenkins,v1v/jenkins,arunsingh/jenkins,vvv444/jenkins,paul... | /*
* The MIT License
*
* Copyright (c) 2010, InfraDNA, Inc.
*
* 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, co... | core/src/main/java/hudson/model/queue/AbstractQueueTask.java | /*
* The MIT License
*
* Copyright (c) 2010, InfraDNA, Inc.
*
* 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, co... | adding more default implementations
| core/src/main/java/hudson/model/queue/AbstractQueueTask.java | adding more default implementations | <ide><path>ore/src/main/java/hudson/model/queue/AbstractQueueTask.java
<ide> public final Task getOwnerTask() {
<ide> return this;
<ide> }
<add>
<add> public boolean isConcurrentBuild() {
<add> return false;
<add> }
<add>
<add> public CauseOfBlockage getCauseOfBlockage() {
<add> r... | |
Java | apache-2.0 | 742b544407f43c8b21b34ce5a90620b597008791 | 0 | fnouama/intellij-community,SerCeMan/intellij-community,mglukhikh/intellij-community,ryano144/intellij-community,ryano144/intellij-community,tmpgit/intellij-community,wreckJ/intellij-community,caot/intellij-community,Lekanich/intellij-community,blademainer/intellij-community,akosyakov/intellij-community,amith01994/intel... | package com.intellij.ide.util;
import com.intellij.openapi.fileEditor.OpenFileDescriptor;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.pom.Navigatable;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.util.PsiUtil;
public class EditSourceUtil {
public ... | source/com/intellij/ide/util/EditSourceUtil.java | package com.intellij.ide.util;
import com.intellij.openapi.fileEditor.OpenFileDescriptor;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.pom.Navigatable;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.util.PsiUtil;
public class EditSourceUtil {
public ... | take canNavigate into considerations
| source/com/intellij/ide/util/EditSourceUtil.java | take canNavigate into considerations | <ide><path>ource/com/intellij/ide/util/EditSourceUtil.java
<ide> if (element == null || !element.isValid()) {
<ide> return false;
<ide> }
<del> PsiElement navigationElement = element.getNavigationElement();
<del> VirtualFile virtualFile = PsiUtil.getVirtualFile(navigationElement);
<add> final Psi... | |
JavaScript | agpl-3.0 | ea97d043f08d9b0811448c2d5f5db3eab85b4c5e | 0 | shoedrip-unbound/dogars,shoedrip-unbound/dogars,shoedrip-unbound/dogars | const request = require('request-promise-native');
let BattleMonitor = require('./BattleMonitor.js');
let db = require('./db.js');
module.exports.champ = {};
let getCurrentThread = async () => {
let b = await request.get('http://a.4cdn.org/vp/catalog.json');
let catalog = JSON.parse(b);
let derp_no = 0;
catalog.s... | shoedrip.js | const request = require('request-promise-native');
let BattleMonitor = require('./BattleMonitor.js');
let db = require('./db.js');
module.exports.champ = {};
let getCurrentThread = async () => {
let b = await request.get('http://a.4cdn.org/vp/catalog.json');
let catalog = JSON.parse(b);
let derp_no = 0;
catalog.s... | For the retard who doesn't put showderp in the subject field
| shoedrip.js | For the retard who doesn't put showderp in the subject field | <ide><path>hoedrip.js
<ide> catalog.some(page => {
<ide> return page.threads.some(t => {
<ide> if (t.sub && t.sub.toLowerCase().indexOf('showderp') != -1 && t.no > derp_no)
<add> return derp_no = t.no;
<add> if (t.com && t.com.toLowerCase().indexOf('dogars.ml') != -1 && t.no > derp_no)
<ide> return derp_... | |
JavaScript | mit | 5307ce0eca0b539fbb692cbf590a0d9deabdbaaf | 0 | erik-am/material-date-picker,mobinni/material-date-picker,erik-am/material-date-picker,mobinni/material-date-picker | (function() {
'use strict';
/**
* By Mo Binni
*/
var app, contains;
app = angular.module('materialDatePicker', []);
contains = function(container, contained) {
var node;
node = contained.parentNode;
while (node !== null && node !== container) {
node = node.parentNode;
}
ret... | build/mbdatepicker.js | (function() {
'use strict';
/**
* By Mo Binni
*/
var app, contains;
app = angular.module('materialDatePicker', []);
contains = function(container, contained) {
var node;
node = contained.parentNode;
while (node !== null && node !== container) {
node = node.parentNode;
}
ret... | Update mbdatepicker.js | build/mbdatepicker.js | Update mbdatepicker.js | <ide><path>uild/mbdatepicker.js
<ide> init = function() {
<ide> var days, endDate, firstMonday;
<ide> firstMonday = moment(moment().date(today.month())).startOf('isoweek');
<del> if (firstMonday.format('DD') !== '01') {
<add> if (firstMonday.date() === 1) {
<ide> ... | |
JavaScript | mit | 286ec4ea831059afb49ccc60a811b933e6d7ef51 | 0 | machawk1/warcreate,machawk1/warcreate | // depends on date.js
/* ************** BEGIN STRING UTILITY FUNCTIONS ************** */
// function ab2str (buf) {
// var s = String.fromCharCode.apply(null, new Uint8Array(buf))
// return decodeUtf8(decodeUtf8(s))
// }
function str2ab (str) {
const s = encodeUtf8(str)
const buf = new ArrayBuffe... | js/warcGenerator.js | // depends on date.js
/* ************** BEGIN STRING UTILITY FUNCTIONS ************** */
// function ab2str (buf) {
// var s = String.fromCharCode.apply(null, new Uint8Array(buf))
// return decodeUtf8(decodeUtf8(s))
// }
function str2ab (str) {
const s = encodeUtf8(str)
const buf = new ArrayBuffe... | Standardize catch
| js/warcGenerator.js | Standardize catch | <ide><path>s/warcGenerator.js
<ide> let parts = href.split(' ')
<ide> try {
<ide> parts[0] = (new window.URL(parts[0])).href
<del> } catch(TypeError) {
<add> } catch (TypeError) {
<ide> // Path-only URI encountered, mitigate, see #128
<ide> parts[0] = `${window.location.origin}/${parts[0... | |
JavaScript | apache-2.0 | 1262e4fa63d59c2960c3bc7b51567858fb553c8e | 0 | darkmoon32/EspruinoWebIDE,darkmoon32/EspruinoWebIDE,espruino/EspruinoWebIDE,espruino/EspruinoWebIDE,darkmoon32/EspruinoWebIDE,espruino/EspruinoWebIDE | // Service worker for Offline Web IDE
const VERSION = 'v24';
const CACHED_RESOURCES = [
'blockly/blockly.html',
'blockly/blockly_ble.js',
'blockly/ru.js',
'blockly/en.js',
'blockly/blockly_robot.js',
'blockly/blocks_compressed.js',
'blockly/field_textarea.js',
'blockly/javascript_compressed.js',
'blo... | serviceworker.js | // Service worker for Offline Web IDE
const VERSION = 'v23';
const CACHED_RESOURCES = [
'blockly/blockly.html',
'blockly/blockly_ble.js',
'blockly/ru.js',
'blockly/en.js',
'blockly/blockly_robot.js',
'blockly/blocks_compressed.js',
'blockly/field_textarea.js',
'blockly/javascript_compressed.js',
'blo... | new sw
| serviceworker.js | new sw | <ide><path>erviceworker.js
<ide> // Service worker for Offline Web IDE
<del>const VERSION = 'v23';
<add>const VERSION = 'v24';
<ide>
<ide> const CACHED_RESOURCES = [
<ide> 'blockly/blockly.html', | |
Java | apache-2.0 | 3e52598534d3fe5f08d2e920c2580669bdfd2932 | 0 | steinarb/ukelonn,steinarb/ukelonn,steinarb/ukelonn | package no.priv.bang.ukelonn.testutils;
import java.io.File;
import java.lang.reflect.Field;
import java.net.URISyntaxException;
import java.nio.file.Paths;
import java.sql.DriverManager;
import java.sql.SQLException;
import org.ops4j.pax.jdbc.derby.impl.DerbyDataSourceFactory;
import org.osgi.service.jdbc.DataSourceF... | ukelonn.bundle/src/test/java/no/priv/bang/ukelonn/testutils/TestUtils.java | package no.priv.bang.ukelonn.testutils;
import java.io.File;
import java.lang.reflect.Field;
import java.net.URISyntaxException;
import java.nio.file.Paths;
import org.ops4j.pax.jdbc.derby.impl.DerbyDataSourceFactory;
import org.osgi.service.jdbc.DataSourceFactory;
import no.priv.bang.ukelonn.bundle.test.db.UkelonnDa... | Added memory database shutdown on mock OSGi cleanup in TestUtils.
Also added a public static method to shutdown the memory database.
| ukelonn.bundle/src/test/java/no/priv/bang/ukelonn/testutils/TestUtils.java | Added memory database shutdown on mock OSGi cleanup in TestUtils. | <ide><path>kelonn.bundle/src/test/java/no/priv/bang/ukelonn/testutils/TestUtils.java
<ide> import java.lang.reflect.Field;
<ide> import java.net.URISyntaxException;
<ide> import java.nio.file.Paths;
<add>import java.sql.DriverManager;
<add>import java.sql.SQLException;
<ide>
<ide> import org.ops4j.pax.jdbc.derby.impl.... | |
JavaScript | agpl-3.0 | ce7485ea4197cadca8087fc32be014e3c33c1d94 | 0 | CamiloMM/Noumena,CamiloMM/Noumena,CamiloMM/Noumena |
// This code handles flash messages, i.e., notifications atop the page (in the navbar).
// Use them from node as req.flash('type', 'msg') where type is good|bad|cool|boring.
module.exports = function(utils, $, _) {
// Cache for last encountered flash type.
var lastFlashType;
// Don't transverse the whole... | scripting/src/flash.js |
// This code handles flash messages, i.e., notifications atop the page (in the navbar).
module.exports = function(utils, $, _) {
// Cache for last encountered flash type.
var lastFlashType;
// Don't transverse the whole DOM every time.
var navbar = $('#navbar');
// Animate the flash messages.
... | Small reminder.
| scripting/src/flash.js | Small reminder. | <ide><path>cripting/src/flash.js
<ide>
<ide> // This code handles flash messages, i.e., notifications atop the page (in the navbar).
<add>// Use them from node as req.flash('type', 'msg') where type is good|bad|cool|boring.
<ide>
<ide> module.exports = function(utils, $, _) {
<ide> // Cache for last encountered f... | |
Java | lgpl-2.1 | a107a0273a7d6e1080531dd2f4a97122930d5107 | 0 | alkacon/opencms-core,alkacon/opencms-core,alkacon/opencms-core,gallardo/opencms-core,gallardo/opencms-core,gallardo/opencms-core,gallardo/opencms-core,alkacon/opencms-core | /*
* This library is part of OpenCms -
* the Open Source Content Management System
*
* Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by th... | src/org/opencms/main/OpenCmsUrlServletFilter.java | /*
* This library is part of OpenCms -
* the Open Source Content Management System
*
* Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by th... | Added 'handle404' to default exclude prefixes of
OpenCmsUrlServletFilter.
| src/org/opencms/main/OpenCmsUrlServletFilter.java | Added 'handle404' to default exclude prefixes of OpenCmsUrlServletFilter. | <ide><path>rc/org/opencms/main/OpenCmsUrlServletFilter.java
<ide> "/resources/",
<ide> "/webdav",
<ide> "/cmisatom",
<add> "/handle404",
<ide> "/services"};
<ide> StringBuffer regex = new StringBuffer();
<ide> regex.a... | |
Java | apache-2.0 | eed04a258c2d90f8352672c17c1a4612527c5fa9 | 0 | mingzuozhibi/mzzb-server,mingzuozhibi/mzzb-server | package com.mingzuozhibi.modules.group;
import com.mingzuozhibi.modules.disc.Disc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDate;
import java.time.LocalDateTime;
... | src/main/java/com/mingzuozhibi/modules/group/DiscGroupService.java | package com.mingzuozhibi.modules.group;
import com.mingzuozhibi.modules.disc.Disc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDate;
import java.time.LocalDateTime;
... | feat: update sorted asins
| src/main/java/com/mingzuozhibi/modules/group/DiscGroupService.java | feat: update sorted asins | <ide><path>rc/main/java/com/mingzuozhibi/modules/group/DiscGroupService.java
<ide>
<ide> import java.time.LocalDate;
<ide> import java.time.LocalDateTime;
<del>import java.util.*;
<add>import java.util.LinkedHashSet;
<add>import java.util.List;
<add>import java.util.Map;
<add>import java.util.Set;
<ide> import java.ut... | |
Java | apache-2.0 | f0992f60ac066372d38d704a1ec195a0fbeabc70 | 0 | EBIvariation/eva-pipeline,EBIvariation/eva-pipeline | /*
* Copyright 2016-2017 EMBL - European Bioinformatics Institute
*
* 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 requi... | src/main/java/uk/ac/ebi/eva/pipeline/io/readers/VcfHeaderReader.java | /*
* Copyright 2016-2017 EMBL - European Bioinformatics Institute
*
* 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 requi... | More descriptive IOExcetion.
| src/main/java/uk/ac/ebi/eva/pipeline/io/readers/VcfHeaderReader.java | More descriptive IOExcetion. | <ide><path>rc/main/java/uk/ac/ebi/eva/pipeline/io/readers/VcfHeaderReader.java
<ide>
<ide> import uk.ac.ebi.eva.commons.models.data.VariantSourceEntity;
<ide> import java.util.*;
<del>import java.util.Arrays;
<del>import java.util.List;
<ide> import java.io.File;
<ide> import java.io.IOException;
<ide>
<ide> ... | |
Java | mit | 2e7486319df91eaa1c7884457d9ea3b90ccf02a3 | 0 | sake/bouncycastle-java | package org.bouncycastle.crypto.test;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.StreamCipher;
import org.bouncycastle.crypto.engines.HC128Engine;
import org.bouncycastle.c... | test/src/org/bouncycastle/crypto/test/HCFamilyVecTest.java | package org.bouncycastle.crypto.test;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.StreamCipher;
import org.bouncycastle.crypto.engines.HC128Engine;
import org.bouncycastle.c... | JDK compatibility change.
| test/src/org/bouncycastle/crypto/test/HCFamilyVecTest.java | JDK compatibility change. | <ide><path>est/src/org/bouncycastle/crypto/test/HCFamilyVecTest.java
<ide> import org.bouncycastle.crypto.params.KeyParameter;
<ide> import org.bouncycastle.crypto.params.ParametersWithIV;
<ide> import org.bouncycastle.util.Arrays;
<add>import org.bouncycastle.util.Strings;
<ide> import org.bouncycastle.util.encoders.H... | |
Java | apache-2.0 | f72fc03442454f2b84f7e0425f7dade318f8773a | 0 | tectronics/netcare-commons.auth,mrarbi/netcare-commons.auth | src/test/java/se/inera/ifv/auth/spi/implementation/hsaws/XTestImplWScall.java | ///**
// * Copyright 2011,2012 Callista Enterprise AB
// *
// * 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
// *
... | removed XTest service
| src/test/java/se/inera/ifv/auth/spi/implementation/hsaws/XTestImplWScall.java | removed XTest service | <ide><path>rc/test/java/se/inera/ifv/auth/spi/implementation/hsaws/XTestImplWScall.java
<del>///**
<del>// * Copyright 2011,2012 Callista Enterprise AB
<del>// *
<del>// * Licensed under the Apache License, Version 2.0 (the "License");
<del>// * you may not use this file except in compliance with the License.
... | ||
Java | mit | d0af02f92c51419755a896b9b4461b375cb0c371 | 0 | bluesnap/bluesnap-android-int | package com.bluesnap.androidapi.views.activities;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullab... | bluesnap-android/src/main/java/com/bluesnap/androidapi/views/activities/CreditCardActivity.java | package com.bluesnap.androidapi.views.activities;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullab... | getBlueSnapFragment()
getBlueSnapFragmentClassSimpleName()
| bluesnap-android/src/main/java/com/bluesnap/androidapi/views/activities/CreditCardActivity.java | getBlueSnapFragment() getBlueSnapFragmentClassSimpleName() | <ide><path>luesnap-android/src/main/java/com/bluesnap/androidapi/views/activities/CreditCardActivity.java
<ide> */
<ide> @Override
<ide> public void onRestoreInstanceState(Bundle savedInstanceState) {
<del> BlueSnapFragment blueSnapFragment = (BlueSnapFragment) getFragmentManager().findFragmentById(... | |
Java | apache-2.0 | error: pathspec 'simple-configuration/src/test/java/com/rocoto/simpleconfig/SimpleConfigurationModuleTestCase.java' did not match any file(s) known to git
| 2ba6792417e4fd8124a4cfbeff1e3fd46e710b95 | 1 | janekdb/rocoto | /*
* Copyright 2009-2010 The Rocoto Team
*
* 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... | simple-configuration/src/test/java/com/rocoto/simpleconfig/SimpleConfigurationModuleTestCase.java | first commited version | simple-configuration/src/test/java/com/rocoto/simpleconfig/SimpleConfigurationModuleTestCase.java | first commited version | <ide><path>imple-configuration/src/test/java/com/rocoto/simpleconfig/SimpleConfigurationModuleTestCase.java
<add>/*
<add> * Copyright 2009-2010 The Rocoto Team
<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... | |
Java | apache-2.0 | 51c1db6beccde4552d832e2d67e96e919a93f77e | 0 | almende/dialog,almende/dialog,almende/dialog | package com.almende.dialog.accounts;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.... | dialoghandler/src/main/java/com/almende/dialog/accounts/AdapterConfig.java | package com.almende.dialog.accounts;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.... | update: added dialogId field to adapter | dialoghandler/src/main/java/com/almende/dialog/accounts/AdapterConfig.java | update: added dialogId field to adapter | <ide><path>ialoghandler/src/main/java/com/almende/dialog/accounts/AdapterConfig.java
<ide> private String accessToken="";
<ide> private String accessTokenSecret="";
<ide> Boolean anonymous=false;
<add> private String dialogId = "";
<ide>
<ide> String owner=null;
<ide> List<String> accounts=null;
<ide> {
<ide... | |
Java | bsd-3-clause | b0f900cf5134d2e7b1eb9c7754b26957b6cea870 | 0 | ffurkanhas/dungeon,mafagafogigante/dungeon,mafagafogigante/dungeon,ffurkanhas/dungeon,ffurkanhas/dungeon,mafagafogigante/dungeon | /*
* Copyright (C) 2014 Bernardo Sulzbach
*
* 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.
*
* This program is ... | src/main/java/org/dungeon/game/GameData.java | /*
* Copyright (C) 2014 Bernardo Sulzbach
*
* 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.
*
* This program is ... | Small refactorings in Corpse creation.
Magic constants extracted in GameData.
Statements reordered.
| src/main/java/org/dungeon/game/GameData.java | Small refactorings in Corpse creation. | <ide><path>rc/main/java/org/dungeon/game/GameData.java
<ide> public final class GameData {
<ide>
<ide> public static final Font FONT = getMonospacedFont();
<add> public static final int CORPSE_INTEGRITY_DECREMENT_ON_HIT = 5;
<add> public static final long CORPSE_PUTREFACTION_PERIOD = Date.SECONDS_IN_DAY;
<ide> p... | |
Java | mit | 0dc82c5e07233769de1727e7ab54fd650c79a6cf | 0 | georgewfraser/vscode-javac,georgewfraser/vscode-javac,georgewfraser/vscode-javac | package org.javacs;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.io.StringWriter;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file... | src/main/java/org/javacs/FileStore.java | package org.javacs;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.io.StringWriter;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file... | This is slow
| src/main/java/org/javacs/FileStore.java | This is slow | <ide><path>rc/main/java/org/javacs/FileStore.java
<ide> }
<ide> }
<ide>
<del> private static void checkForDeletedFiles() {
<del> var notExists = new ArrayList<Path>();
<del> for (var file : javaSources.keySet()) {
<del> if (!Files.exists(file) && !activeDocuments.containsKey(fil... | |
Java | apache-2.0 | 7fd06322d87dd28e28f974a0bed57d4c91e79c9a | 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.vcs.log.ui.frame;
import com.google.common.primitives.Ints;
import com.intellij.diff.editor.VCSContentVirtualFile;
import com.intellij.diff.impl.DiffRequestP... | platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/MainFrame.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.vcs.log.ui.frame;
import com.google.common.primitives.Ints;
import com.intellij.diff.editor.VCSContentVirtualFile;
import com.intellij.diff.impl.DiffRequestP... | [vcs-log] extract createDiffPreview method
GitOrigin-RevId: 8b7aaccd3adceaf7a0c6cc0ffd0043885913181f | platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/MainFrame.java | [vcs-log] extract createDiffPreview method | <ide><path>latform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/MainFrame.java
<ide> ProgressWindow.DEFAULT_PROGRESS_DIALOG_POSTPONE_TIME_MILLIS);
<ide> changesLoadingPane.add(myChangesBrowser);
<ide>
<del> myPreviewDiff = new VcsLogChangeProcessor(lo... | |
Java | agpl-3.0 | bd433bdafceb1ab1548991104c01ab7178618c3c | 0 | Audiveris/audiveris,Audiveris/audiveris | //-----------------------------------------------------------------------//
// //
// G l y p h L a g //
// //
// Copyright (C... | src/main/omr/glyph/GlyphLag.java | //-----------------------------------------------------------------------//
// //
// G l y p h L a g //
// //
// Copyright (C... | Standalone handling of glyph set
| src/main/omr/glyph/GlyphLag.java | Standalone handling of glyph set | <ide><path>rc/main/omr/glyph/GlyphLag.java
<ide> import omr.lag.Oriented;
<ide> import omr.selection.Selection;
<ide> import omr.selection.SelectionHint;
<add>import omr.selection.SelectionTag;
<ide> import omr.util.Logger;
<ide>
<ide> import static omr.selection.SelectionHint.*;
<ide> return list;
<ide> }... | |
Java | apache-2.0 | c1d1f73e562b609ce3f1c1484bb0105f551b0e2f | 0 | mirkosertic/Bytecoder,mirkosertic/Bytecoder,mirkosertic/Bytecoder,mirkosertic/Bytecoder,mirkosertic/Bytecoder,mirkosertic/Bytecoder | /*
* Copyright 2017 Mirko Sertic
*
* 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 ... | core/src/main/java/de/mirkosertic/bytecoder/unittest/BytecoderUnitTestRunner.java | /*
* Copyright 2017 Mirko Sertic
*
* 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 ... | Fixed #13 Optimize Selenium startup times
| core/src/main/java/de/mirkosertic/bytecoder/unittest/BytecoderUnitTestRunner.java | Fixed #13 Optimize Selenium startup times | <ide><path>ore/src/main/java/de/mirkosertic/bytecoder/unittest/BytecoderUnitTestRunner.java
<ide> import org.junit.runners.model.InitializationError;
<ide> import org.junit.runners.model.TestClass;
<ide> import org.openqa.selenium.WebDriver;
<del>import org.openqa.selenium.chrome.ChromeDriver;
<ide> import org.openqa.s... | |
Java | agpl-3.0 | 9776c7f5b1b1cf63552b199044c3d16a0e2dd3ab | 0 | imCodePartnerAB/imcms,imCodePartnerAB/imcms,imCodePartnerAB/imcms | package com.imcode.imcms.controller.api;
import com.imcode.imcms.components.datainitializer.DocumentDataInitializer;
import com.imcode.imcms.components.datainitializer.UserDataInitializer;
import com.imcode.imcms.config.TestConfig;
import com.imcode.imcms.config.WebTestConfig;
import com.imcode.imcms.controller.Abstra... | src/test/java/com/imcode/imcms/controller/api/SearchDocumentControllerTest.java | package com.imcode.imcms.controller.api;
import com.imcode.imcms.components.datainitializer.DocumentDataInitializer;
import com.imcode.imcms.config.TestConfig;
import com.imcode.imcms.config.WebTestConfig;
import com.imcode.imcms.controller.AbstractControllerTest;
import com.imcode.imcms.domain.dto.DocumentStoredField... | IMCMS-233 - Apply new UI to the admin panel and editors:
- Added test for checking text documents when user id is set.
| src/test/java/com/imcode/imcms/controller/api/SearchDocumentControllerTest.java | IMCMS-233 - Apply new UI to the admin panel and editors: - Added test for checking text documents when user id is set. | <ide><path>rc/test/java/com/imcode/imcms/controller/api/SearchDocumentControllerTest.java
<ide> package com.imcode.imcms.controller.api;
<ide>
<ide> import com.imcode.imcms.components.datainitializer.DocumentDataInitializer;
<add>import com.imcode.imcms.components.datainitializer.UserDataInitializer;
<ide> import com.... | |
Java | bsd-3-clause | 60fb3b4367d8e59377d97a5f36d112b21ba6ab77 | 0 | Adaptivity/Nuclear-Control,Speiger/Nuclear-Control,Ghostlyr/Nuclear-Control | package shedar.mods.ic2.nuclearcontrol.blocks;
import ic2.api.tile.IWrenchable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.textur... | src/main/java/shedar/mods/ic2/nuclearcontrol/blocks/BlockNuclearControlMain.java | package shedar.mods.ic2.nuclearcontrol.blocks;
import ic2.api.tile.IWrenchable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.textur... | some spacing | src/main/java/shedar/mods/ic2/nuclearcontrol/blocks/BlockNuclearControlMain.java | some spacing | <ide><path>rc/main/java/shedar/mods/ic2/nuclearcontrol/blocks/BlockNuclearControlMain.java
<ide> import net.minecraft.world.World;
<ide> import net.minecraftforge.common.util.ForgeDirection;
<ide> import shedar.mods.ic2.nuclearcontrol.IC2NuclearControl;
<del>import shedar.mods.ic2.nuclearcontrol.blocks.subblocks.Advanc... | |
Java | mit | 6a71db97db5a1fa4717c3f2c721fed4c6b19d543 | 0 | learning-layers/LAPPS,learning-layers/LAPPS | package de.rwth.dbis.layers.lapps.resource;
import java.util.List;
import java.util.logging.Logger;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Path... | LAPPS-backend/src/main/java/de/rwth/dbis/layers/lapps/resource/TagsResource.java | package de.rwth.dbis.layers.lapps.resource;
import java.util.List;
import java.util.logging.Logger;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Path... | Tags Resource, Updated JavaDoc, LAPPS-79
| LAPPS-backend/src/main/java/de/rwth/dbis/layers/lapps/resource/TagsResource.java | Tags Resource, Updated JavaDoc, LAPPS-79 | <ide><path>APPS-backend/src/main/java/de/rwth/dbis/layers/lapps/resource/TagsResource.java
<ide> import de.rwth.dbis.layers.lapps.entity.Tag;
<ide>
<ide> /**
<del> * Tag resource.
<add> * Tags resource.
<ide> */
<ide> @Api(value = "/tags", description = "Tags resource", hidden = true)
<ide> public class TagsResource ... | |
Java | lgpl-2.1 | 18d30ee2128307c74d425eaddddadc0d0801e9b2 | 0 | levants/lightmare | package org.lightmare.cache;
import java.io.IOException;
import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import javax.persistence.EntityManagerFactory;
import org.apache.log4j.Logger;
import org.lightmare.jndi.JndiManager;
import org.lightmare.jp... | src/main/java/org/lightmare/cache/ConnectionContainer.java | package org.lightmare.cache;
import java.io.IOException;
import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import javax.persistence.EntityManagerFactory;
import org.apache.log4j.Logger;
import org.lightmare.jndi.JndiManager;
import org.lightmare.jp... | improvements in ObjectUtils and CollectionUtils classes and all
dependent classes | src/main/java/org/lightmare/cache/ConnectionContainer.java | improvements in ObjectUtils and CollectionUtils classes and all dependent classes | <ide><path>rc/main/java/org/lightmare/cache/ConnectionContainer.java
<ide> import org.lightmare.jpa.datasource.Initializer;
<ide> import org.lightmare.jpa.datasource.PoolConfig;
<ide> import org.lightmare.jpa.datasource.PoolConfig.PoolProviderType;
<add>import org.lightmare.utils.CollectionUtils;
<ide> import org.light... | |
Java | apache-2.0 | 853756660efbbca95f5e871c6e2997331dadb05e | 0 | Claudenw/junit-contracts | package org.xenei.contracts.maven;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.common... | maven/src/main/java/org/xenei/contracts/maven/ContractMojo.java | package org.xenei.contracts.maven;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.common... | Changed non fatal error from error to info.
| maven/src/main/java/org/xenei/contracts/maven/ContractMojo.java | Changed non fatal error from error to info. | <ide><path>aven/src/main/java/org/xenei/contracts/maven/ContractMojo.java
<ide>
<ide> private void mojoError( String err ) throws MojoExecutionException
<ide> {
<del> getLog().error(err);
<ide> if (failOnError)
<ide> {
<add> getLog().error(err);
<ide> throw new MojoExecutionException(err);
<ide> }
<add>... | |
Java | apache-2.0 | ebe3c54f335486774f8ffe317024d5059566c9c0 | 0 | nhs-digital/gpconnect,nhs-digital/gpconnect,nhs-digital/gpconnect | package uk.gov.hscic.patient;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors... | gpconnect-demonstrator-api/src/main/java/uk/gov/hscic/patient/PatientResourceProvider.java | package uk.gov.hscic.patient;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.stream.Collectors;
import javax.activation... | GPC-269 - Identifier without mandatory system elements
| gpconnect-demonstrator-api/src/main/java/uk/gov/hscic/patient/PatientResourceProvider.java | GPC-269 - Identifier without mandatory system elements | <ide><path>pconnect-demonstrator-api/src/main/java/uk/gov/hscic/patient/PatientResourceProvider.java
<ide> import java.util.HashSet;
<ide> import java.util.List;
<ide> import java.util.Locale;
<add>import java.util.Objects;
<ide> import java.util.Set;
<ide> import java.util.stream.Collectors;
<ide>
<ide> ... | |
Java | apache-2.0 | 0849915ca42bca2d05760e1bd8dfc8a562c73a24 | 0 | gxa/atlas,gxa/atlas,gxa/atlas,gxa/atlas,gxa/atlas | /*
* Copyright 2008-2012 Microarray Informatics Team, EMBL-European Bioinformatics Institute
*
* 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-... | web/src/test/java/uk/ac/ebi/atlas/geneindex/SolrClientTest.java | /*
* Copyright 2008-2012 Microarray Informatics Team, EMBL-European Bioinformatics Institute
*
* 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-... | web/src/
| web/src/test/java/uk/ac/ebi/atlas/geneindex/SolrClientTest.java | web/src/ | <ide><path>eb/src/test/java/uk/ac/ebi/atlas/geneindex/SolrClientTest.java
<ide> @Test
<ide> public void testBuildQueryAllTextString() {
<ide> String query = "GO:0008134 \"p53 binding\"";
<del> assertThat(subject.buildQueryAllTextString(query), is("(alltext:GO0008134 \"p53 binding\")"));
<add> ... | |
Java | mit | 67d24a019e36b97323af0c22b691d67eb9891034 | 0 | KBalint1991/ivt-lab | package hu.bme.mit.spaceship;
/**
* A simple spaceship with two proton torpedos and four lasers
*/
public class GT4500 implements SpaceShip {
private TorpedoStore primaryTorpedoStore;
private TorpedoStore secondaryTorpedoStore;
private boolean wasPrimaryFiredLast = false;
public GT4500() {
this.primaryT... | src/main/java/hu/bme/mit/spaceship/GT4500.java | package hu.bme.mit.spaceship;
/**
* A simple spaceship with two proton torpedos and four lasers
*/
public class GT4500 implements SpaceShip {
private TorpedoStore primaryTorpedoStore;
private TorpedoStore secondaryTorpedoStore;
private boolean wasPrimaryFiredLast = false;
public GT4500() {
this.primaryT... | fixed the problems after merging
| src/main/java/hu/bme/mit/spaceship/GT4500.java | fixed the problems after merging | <ide><path>rc/main/java/hu/bme/mit/spaceship/GT4500.java
<ide> case ALL:
<ide> // try to fire both of the torpedos
<ide> //TODO implement feature
<del> boolean secondarySucces = true;
<add> boolean secondarySucces = false;
<ide> boolean primarySuccess = false;
<ide>
<ide> ... | |
Java | apache-2.0 | d73d0a7be856355596d051f9b80e1ea6a3b687dd | 0 | novoda/download-manager,xufeifandj/download-manager | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | library/src/main/java/com/novoda/downloadmanager/lib/DownloadThread.java | /*
* Copyright (C) 2008 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... | Privatise methods
| library/src/main/java/com/novoda/downloadmanager/lib/DownloadThread.java | Privatise methods | <ide><path>ibrary/src/main/java/com/novoda/downloadmanager/lib/DownloadThread.java
<ide> }
<ide> }
<ide>
<del> public static long getHeaderFieldLong(URLConnection conn, String field, long defaultValue) {
<add> private static long getHeaderFieldLong(URLConnection conn, String field, long defaultValue)... | |
Java | apache-2.0 | 5f6c936459aef51dc325b372241679c1ff9a9b24 | 0 | 0x1306e6d/SeekBarPreference | /*
* Copyright 2016 com.yokkomi
*
* 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... | seekbarpreference/src/main/java/com/yokkomi/commons/preference/seekbar/SeekBarPreference.java | /*
* Copyright 2016 com.yokkomi
*
* 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... | Change similar to android reference.
| seekbarpreference/src/main/java/com/yokkomi/commons/preference/seekbar/SeekBarPreference.java | Change similar to android reference. | <ide><path>eekbarpreference/src/main/java/com/yokkomi/commons/preference/seekbar/SeekBarPreference.java
<ide> import android.view.Gravity;
<ide> import android.view.View;
<ide> import android.view.ViewGroup;
<add>import android.view.ViewParent;
<ide> import android.widget.LinearLayout;
<ide> import android.widget.SeekB... | |
JavaScript | mit | 6cfe7893d49ca3b08c3ca1727960578c238b38ea | 0 | lejahmie/dotfiles,lejahmie/dotfiles | module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
curs... | .hyper.js | module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
curs... | Fixes indentations and code structure
| .hyper.js | Fixes indentations and code structure | <ide><path>hyper.js
<ide> lightBlue: '#0066ff',
<ide> lightMagenta: '#cc00ff',
<ide> lightCyan: '#00ffff',
<del> lightWhite: '#ffffff'
<add> lightWhite: '#ffffff',
<ide> },
<ide>
<ide> // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
<ide> bell: 'SOUND'... | |
JavaScript | mit | f6f5eec3ae73ee57680ddbe89f4edd1a69fd88f0 | 0 | vtsvang/karma,david-garcia-nete/karma,Sanjo/karma,gayancliyanage/karma,rhlass/karma,codedogfish/karma,david-garcia-nete/karma,skycocker/karma,wesleycho/karma,buley/karma,panrafal/karma,vtsvang/karma,chrisirhc/karma,astorije/karma,wesleycho/karma,patrickporto/karma,IsaacChapman/karma,david-garcia-nete/karma,Klaudit/karm... | var io = require('socket.io');
var di = require('di');
var cfg = require('./config');
var logger = require('./logger');
var constant = require('./constants');
var watcher = require('./watcher');
var plugin = require('./plugin');
var ws = require('./web-server');
var preprocessor = require('./preprocessor');
var Launc... | lib/server.js | var io = require('socket.io');
var di = require('di');
var cfg = require('./config');
var logger = require('./logger');
var constant = require('./constants');
var watcher = require('./watcher');
var plugin = require('./plugin');
var ws = require('./web-server');
var preprocessor = require('./preprocessor');
var Launc... | feat: allow frameworks to add preprocessors
This changes the order in which things are instantiated. Plugins are instantiated before preprocessors and all the other stuff required by `start` method. Thus a plugin can change `preprocessors` configuration before preprocessor consumes it.
| lib/server.js | feat: allow frameworks to add preprocessors This changes the order in which things are instantiated. Plugins are instantiated before preprocessors and all the other stuff required by `start` method. Thus a plugin can change `preprocessors` configuration before preprocessor consumes it. | <ide><path>ib/server.js
<ide>
<ide> var start = function(injector, config, launcher, globalEmitter, preprocess, fileList, webServer,
<ide> capturedBrowsers, socketServer, executor, done) {
<del>
<del> config.frameworks.forEach(function(framework) {
<del> injector.get('framework:' + framework);
<del> });
<ide>... | |
Java | apache-2.0 | 14107166ec941f33856a88d97e6c8a3efd1e6f9e | 0 | apache/continuum,apache/continuum,apache/continuum | package org.apache.maven.continuum.web.view.buildresults;
/*
* 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 und... | continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/buildresults/StateCell.java | package org.apache.maven.continuum.web.view.buildresults;
/*
* 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 und... | Refactored build result icon renderer so it can be used elsewhere.
git-svn-id: 14f2065c7afdeb19086ae32a80b5e7aec819bae3@1676047 13f79535-47bb-0310-9956-ffa450edef68
| continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/buildresults/StateCell.java | Refactored build result icon renderer so it can be used elsewhere. | <ide><path>ontinuum-webapp/src/main/java/org/apache/maven/continuum/web/view/buildresults/StateCell.java
<ide> */
<ide>
<ide> import org.apache.maven.continuum.model.project.BuildResult;
<del>import org.apache.maven.continuum.web.model.ProjectBuildsSummary;
<ide> import org.apache.maven.continuum.web.util.StateGenera... | |
JavaScript | apache-2.0 | 39f8f571492b007c866376c03b992fae03034793 | 0 | nexxtv/amphtml,techhtml/amphtml,koshka/amphtml,prateekbh/amphtml,danielrozenberg/amphtml,smartadserver/amphtml,rsimha-amp/amphtml,taboola/amphtml,Gregable/amphtml,techhtml/amphtml,jpettitt/amphtml,dotandads/amphtml,media-net/amphtml,lannka/amphtml,jridgewell/amphtml,alanorozco/amphtml,voyagegroup/amphtml,BenDz/amphtml,... | /**
* Copyright 2018 The AMP HTML 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 require... | extensions/amp-date-picker/0.1/test/integration/test-integration-amp-date-picker-actions.js | /**
* Copyright 2018 The AMP HTML 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 require... | Skip date picker integration tests to unflake master (#16181)
| extensions/amp-date-picker/0.1/test/integration/test-integration-amp-date-picker-actions.js | Skip date picker integration tests to unflake master (#16181) | <ide><path>xtensions/amp-date-picker/0.1/test/integration/test-integration-amp-date-picker-actions.js
<ide> import {toggleExperiment} from '../../../../../src/experiments';
<ide>
<ide> const config = describe.configure().ifNewChrome();
<del>config.run('amp-date-picker', function() {
<add>config.skip('amp-date-picker',... | |
JavaScript | mit | 5efc41bd8f73e16c340d19bc512b0cf9fec72853 | 0 | spreadshirt/rAppid.js-sprd | define(['sprd/data/SprdModel', 'sprd/model/PrintType', 'sprd/entity/Size', 'sprd/entity/DesignColor', 'sprd/entity/Price', 'js/data/Entity', 'sprd/model/Locale', 'js/core/List'], function (SprdModel, PrintType, Size, DesignColor, Price, Entity, Locale, List) {
var DENY_ON = {
No: "NO",
OnPrintArea:... | sprd/model/Design.js | define(['sprd/data/SprdModel', 'sprd/model/PrintType', 'sprd/entity/Size', 'sprd/entity/DesignColor', 'sprd/entity/Price', 'js/data/Entity', 'sprd/model/Locale', 'js/core/List'], function (SprdModel, PrintType, Size, DesignColor, Price, Entity, Locale, List) {
var DENY_ON = {
No: "NO",
OnPrintArea:... | fixed check for isVectorDesign
| sprd/model/Design.js | fixed check for isVectorDesign | <ide><path>prd/model/Design.js
<ide> parse: function (data) {
<ide> data = this.callBase();
<ide>
<del> data.colors = data.colors || new List();
<del>
<ide> if (data.href) {
<ide> data.wtfMbsId = data.id;
<ide> data.id = data.href.split("/").po... | |
Java | apache-2.0 | 837da54cf5dd6334feacfe547698b5922f75551c | 0 | cbeams-archive/spring-framework-2.5.x,cbeams-archive/spring-framework-2.5.x,cbeams-archive/spring-framework-2.5.x,cbeams-archive/spring-framework-2.5.x | /*
* Copyright 2002-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | src/org/springframework/beans/factory/access/SingletonBeanFactoryLocator.java | /*
* Copyright 2002-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | SingletonBeanFactoryLocator falls back to a single bean of type BeanFactory (if any) when given a null locator key
git-svn-id: b619a0c99665f88f1afe72824344cefe9a1c8c90@15598 fd5a2b45-1f63-4059-99e9-3c7cb7fd75c8
| src/org/springframework/beans/factory/access/SingletonBeanFactoryLocator.java | SingletonBeanFactoryLocator falls back to a single bean of type BeanFactory (if any) when given a null locator key | <ide><path>rc/org/springframework/beans/factory/access/SingletonBeanFactoryLocator.java
<ide> import org.springframework.beans.FatalBeanException;
<ide> import org.springframework.beans.factory.BeanDefinitionStoreException;
<ide> import org.springframework.beans.factory.BeanFactory;
<add>import org.springframework.bean... | |
Java | mit | 1dd7a585040ef5c19d3ddb68ff83239687087eaa | 0 | guhilling/smart-release-plugin | package scaffolding;
import static java.util.Arrays.asList;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsNot.not;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.io.PrintStream;
import java.ut... | src/test/java/scaffolding/MvnRunner.java | package scaffolding;
import static java.util.Arrays.asList;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsNot.not;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.io.PrintStream;
import java.ut... | add offline instrumentation and reporting
| src/test/java/scaffolding/MvnRunner.java | add offline instrumentation and reporting | <ide><path>rc/test/java/scaffolding/MvnRunner.java
<ide> return;
<ide> }
<ide> long start = System.currentTimeMillis();
<del> System.out.println("Installing the plugin into the local repo");
<add> System.out.print("Installing the plugin into the local repo .. ");
<ide> ... | |
JavaScript | mit | f63ba8f96f590dbf5ffedcf2abe316c5c29f6764 | 0 | potomak/gist-txt | 'use strict';
//
// Gist-txt is a minimal text adventure engine that helps game designers to
// create text adventures from GitHub gists.
//
// To create a new text adventure just create a new public gist at
// https://gist.github.com/ with at least a markdown file named
// `index.markdown`. This will be the *main sce... | gist-txt.js | 'use strict';
//
// Gist-txt is a minimal text adventure engine that helps game designers to
// create text adventures from GitHub gists.
//
// To create a new text adventure just create a new public gist at
// https://gist.github.com/ with at least a markdown file named
// `index.markdown`. This will be the *main sce... | Catch rendering errors
| gist-txt.js | Catch rendering errors | <ide><path>ist-txt.js
<ide> //
<ide> extractYFM = function (content) {
<ide> return $.Deferred(function (defer) {
<del> var parsed = yfm(content);
<del> state = $.extend(state, parsed.context.state);
<del> defer.resolve(parsed.content);
<add> try {
<add> var parsed = yfm(content);
<add> state = ... | |
JavaScript | bsd-3-clause | ab212c6c5dc9de33a1979d1021b1dc5c7b5b0b34 | 0 | rmoorman/hapi,bells17/hapi,elnaz/hapi,rodfernandez/hapi,hulbert/hapi,papimomi/hapi,jrmce/hapi,udhayam/hapi,Eric013/hapi,bells17/hapi,analytically/hapi,evdevgit/hapi,julianduque/hapi,HugoRLopes/hapi,camerow/hapi,jefflembeck/hapi,ClaudeHarry/hapi,ryanmurakami/hapi,credosam/hapi,jrmce/hapi,deepakshrma/hapi,Binarytales/hap... | // Load modules
var Path = require('path');
var Boom = require('boom');
var Code = require('code');
var Handlebars = require('handlebars');
var Hapi = require('..');
var Lab = require('lab');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.descr... | test/handler.js | // Load modules
var Path = require('path');
var Boom = require('boom');
var Code = require('code');
var Handlebars = require('handlebars');
var Hapi = require('..');
var Lab = require('lab');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.descr... | Cleanup for #2309
| test/handler.js | Cleanup for #2309 | <ide><path>est/handler.js
<ide> });
<ide> });
<ide>
<del> it('logs boom error instance as data if handler returns boom error', function(done){
<del> var server = new Hapi.Server();
<add> it('logs boom error instance as data if handler returns boom error', function (done) {... | |
Java | mit | error: pathspec 'bucket/src/test/java/com/github/simonpercic/bucket/utils/StringUtilsTest.java' did not match any file(s) known to git
| ae3154c85c308aff42ab67efde80f7c36388b84b | 1 | simonpercic/Bucket,simonpercic/Bucket | package com.github.simonpercic.bucket.utils;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* @author Simon Percic <a href="https://github.com/simonpercic">https://github.com/simonpercic</a>
*/
public class StringUtilsTest {
@SuppressWarnings(... | bucket/src/test/java/com/github/simonpercic/bucket/utils/StringUtilsTest.java | Added StringUtilsTest
| bucket/src/test/java/com/github/simonpercic/bucket/utils/StringUtilsTest.java | Added StringUtilsTest | <ide><path>ucket/src/test/java/com/github/simonpercic/bucket/utils/StringUtilsTest.java
<add>package com.github.simonpercic.bucket.utils;
<add>
<add>import org.junit.Test;
<add>
<add>import static org.junit.Assert.assertFalse;
<add>import static org.junit.Assert.assertTrue;
<add>
<add>/**
<add> * @author Simon Percic <... | |
Java | bsd-3-clause | 4ce1665141d3f047ce654e92148b389dcc21e811 | 0 | Caleydo/caleydo,Caleydo/caleydo,Caleydo/caleydo,Caleydo/caleydo,Caleydo/caleydo,Caleydo/caleydo,Caleydo/caleydo | package org.caleydo.rcp;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Map;
import java.util.logging.Level;
import org.caleydo.core.application.core.CaleydoBootloader;
import org.caleydo.core.manager.general.GeneralManager;
import org.caleydo.core.util.exception.CaleydoRuntimeException;
imp... | org.caleydo.rcp/src/org/caleydo/rcp/Application.java | package org.caleydo.rcp;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Map;
import java.util.logging.Level;
import org.caleydo.core.application.core.CaleydoBootloader;
import org.caleydo.core.manager.general.GeneralManager;
import org.caleydo.core.util.exception.CaleydoRuntimeException;
imp... | Fixed picking bug. The JOGL animator was started too early (before the creation of the views :).
git-svn-id: 149221363d454b9399d51e0b24a857a738336ca8@1451 1f7349ae-fd9f-0d40-aeb8-9798e6c0fce3
| org.caleydo.rcp/src/org/caleydo/rcp/Application.java | Fixed picking bug. The JOGL animator was started too early (before the creation of the views :). | <ide><path>rg.caleydo.rcp/src/org/caleydo/rcp/Application.java
<ide> caleydoCore.start();
<ide> }
<ide>
<add> if (!bDoExit)
<add> {
<add> // Trigger pathway loading
<add> new PathwayLoadingProgressIndicatorAction().run(null);
<add> }
<add>
<add> openViewsInRCP();
<add>
<ide> // Start OpenGL render... | |
Java | bsd-3-clause | e9ce19febd98a2fdd7cfbc91015552de4e4875d7 | 0 | CBIIT/caaers,NCIP/caaers,CBIIT/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers,NCIP/caaers,NCIP/caaers,CBIIT/caaers | package gov.nih.nci.cabig.caaers.domain.repository;
import gov.nih.nci.cabig.caaers.CaaersSystemException;
import gov.nih.nci.cabig.caaers.dao.ParticipantDao;
import gov.nih.nci.cabig.caaers.dao.StudyDao;
import gov.nih.nci.cabig.caaers.dao.report.ReportDao;
import gov.nih.nci.cabig.caaers.domain.AdverseEvent;
import ... | projects/core/src/main/java/gov/nih/nci/cabig/caaers/domain/repository/ReportRepositoryImpl.java | package gov.nih.nci.cabig.caaers.domain.repository;
import gov.nih.nci.cabig.caaers.CaaersSystemException;
import gov.nih.nci.cabig.caaers.dao.ParticipantDao;
import gov.nih.nci.cabig.caaers.dao.StudyDao;
import gov.nih.nci.cabig.caaers.dao.report.ReportDao;
import gov.nih.nci.cabig.caaers.domain.AdverseEvent;
import ... | CAAERS-660
SVN-Revision: 8366
| projects/core/src/main/java/gov/nih/nci/cabig/caaers/domain/repository/ReportRepositoryImpl.java | CAAERS-660 | <ide><path>rojects/core/src/main/java/gov/nih/nci/cabig/caaers/domain/repository/ReportRepositoryImpl.java
<ide> */
<ide> public void amendReport(Report report, Boolean useDefaultVersion){
<ide>
<del> participantDao.lock(report.getAeReport().getParticipant());
<del> reportDao.reassociate(report);... | |
Java | apache-2.0 | 5a29bd4ef200a843626ef7a351263b0633aac6ee | 0 | kawasima/moshas,kawasima/moshas | package net.unit8.moshas.dom;
import java.io.Serializable;
import net.unit8.moshas.select.Elements;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
import java.util.ArrayList;
import java.util.List;
import net.unit8.moshas.helper.Validate;
import net.unit8.moshas.parser.Tag;
import net.unit8.m... | src/main/java/net/unit8/moshas/dom/Document.java | package net.unit8.moshas.dom;
import java.io.Serializable;
import net.unit8.moshas.select.Elements;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
import java.util.ArrayList;
import java.util.List;
import net.unit8.moshas.helper.Validate;
import net.unit8.moshas.parser.Tag;
import net.unit8.m... | Remove unused static import.
| src/main/java/net/unit8/moshas/dom/Document.java | Remove unused static import. | <ide><path>rc/main/java/net/unit8/moshas/dom/Document.java
<ide> import net.unit8.moshas.parser.Tag;
<ide> import net.unit8.moshas.select.Collector;
<ide> import net.unit8.moshas.select.Evaluator;
<del>import static sun.invoke.anon.ConstantPoolVisitor.tagName;
<ide>
<ide> /**
<ide> * | |
Java | epl-1.0 | 68d950f512e620ded6d9ce02d46970f5bff3014e | 0 | alfsch/workspacemechanic,alfsch/workspacemechanic | /*******************************************************************************
* Copyright (C) 2011, Google Inc.
*
* 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
... | plugins/com.google.eclipse.mechanic.tests/src/com/google/eclipse/mechanic/internal/UriTaskProviderTest.java | package com.google.eclipse.mechanic.internal;
import static org.easymock.EasyMock.*;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.net.URI;
import java.util.List;
import org.eclipse.core.runtime.Status;
import junit.framework.TestCase;
import com.google.eclipse.mechanic.IResourceTask... | Added copyright
| plugins/com.google.eclipse.mechanic.tests/src/com/google/eclipse/mechanic/internal/UriTaskProviderTest.java | Added copyright | <ide><path>lugins/com.google.eclipse.mechanic.tests/src/com/google/eclipse/mechanic/internal/UriTaskProviderTest.java
<add>/*******************************************************************************
<add> * Copyright (C) 2011, Google Inc.
<add> *
<add> * All rights reserved. This program and the accompanying mater... | |
JavaScript | apache-2.0 | a3ae1ae6a36a198483419df440717ae8aec83e62 | 0 | vmware/octant,vmware/octant,vmware/octant,vmware/octant,vmware/octant | import React, { Component } from 'react'
import { Switch, Route, withRouter } from 'react-router-dom'
import Promise from 'promise'
import _ from 'lodash'
import {
getNavigation,
getNamespaces,
getNamespace,
setNamespace,
getContents
} from 'api'
import Home from 'pages/Home'
import Header from '../Header'
im... | web/src/components/App/index.js | import React, { Component } from 'react'
import { Switch, Route, withRouter } from 'react-router-dom'
import Promise from 'promise'
import _ from 'lodash'
import {
getNavigation,
getNamespaces,
getNamespace,
setNamespace,
getContents
} from 'api'
import Home from 'pages/Home'
import Header from '../Header'
im... | removes inconsistent return from fetchContents
| web/src/components/App/index.js | removes inconsistent return from fetchContents | <ide><path>eb/src/components/App/index.js
<ide> } = this.props
<ide> const payload = await getContents(pathname, namespace)
<ide> if (payload) {
<del> return this.setState({
<add> this.setState({
<ide> contents: payload.contents,
<ide> title: payload.title,
<ide> loading: f... | |
Java | mit | 798a56ca072c258e4468452180e8739901840a00 | 0 | Kleiin96/projexMedia | package projexMedia;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Optional;
import javafx.beans.value.ChangeListener;
import javafx.bean... | src/projexMedia/GestionnaireParametreService.java | package projexMedia;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Optional;
import javafx.beans.value.ChangeListener;
import javafx.bean... | petit changement lul | src/projexMedia/GestionnaireParametreService.java | petit changement lul | <ide><path>rc/projexMedia/GestionnaireParametreService.java
<ide> tableTypeService.setItems(list);
<ide>
<ide>
<del> btnAjouter.setText("Ajouter un Parametre");
<add> btnAjouter.setText("Ajouter un Type service");
<ide> btnAjouter.setOnAction(new EventHandler<ActionEvent>() {
<ide>
<ide> @Override | |
Java | apache-2.0 | 1bca9dd3b7867f6b79ca6f85456b1498059219ec | 0 | opensciencegrid/oim,opensciencegrid/oim,opensciencegrid/oim,opensciencegrid/oim,opensciencegrid/oim | package edu.iu.grid.oim.view.divrep;
import java.io.PrintWriter;
import com.divrep.DivRep;
import com.divrep.DivRepEvent;
import com.divrep.DivRepEventListener;
import com.divrep.common.DivRepButton;
import com.divrep.common.DivRepCheckBox;
import com.divrep.common.DivRepFormElement;
import com.divrep.commo... | src/edu/iu/grid/oim/view/divrep/ResourceWLCG.java | package edu.iu.grid.oim.view.divrep;
import java.io.PrintWriter;
import com.divrep.DivRep;
import com.divrep.DivRepEvent;
import com.divrep.DivRepEventListener;
import com.divrep.common.DivRepButton;
import com.divrep.common.DivRepCheckBox;
import com.divrep.common.DivRepFormElement;
import com.divrep.commo... | Indended wlcg_accounting_name field
| src/edu/iu/grid/oim/view/divrep/ResourceWLCG.java | Indended wlcg_accounting_name field | <ide><path>rc/edu/iu/grid/oim/view/divrep/ResourceWLCG.java
<ide> import com.divrep.common.DivRepButton;
<ide> import com.divrep.common.DivRepCheckBox;
<ide> import com.divrep.common.DivRepFormElement;
<add>import com.divrep.common.DivRepStaticContent;
<ide> import com.divrep.common.DivRepTextBox;
<ide> import com.divr... | |
JavaScript | mit | efbb278f537f443e56818418e4794be6fe7a54bc | 0 | jbaicoianu/janusweb,jbaicoianu/janusweb,jbaicoianu/janusweb | elation.elements.define('janus.ui.navigation', class extends elation.elements.ui.panel {
init() {
super.init();
}
create() {
this.innerHTML = elation.template.get('janus.ui.navigation');
this.client = this.getClient();
this.janusweb = this.client.janusweb;
this.urlbar = this.getElementsByTagN... | media/assets/webui/apps/navigation/navigation.js | elation.elements.define('janus.ui.navigation', class extends elation.elements.ui.panel {
init() {
super.init();
}
create() {
this.innerHTML = elation.template.get('janus.ui.navigation');
this.client = this.getClient();
this.janusweb = this.client.janusweb;
this.urlbar = this.getElementsByTagN... | Update navigation to use custom element based client
| media/assets/webui/apps/navigation/navigation.js | Update navigation to use custom element based client | <ide><path>edia/assets/webui/apps/navigation/navigation.js
<ide> getClient() {
<ide> var node = this;
<ide> while (node && node !== document) {
<del> if (node.dataset['elationComponent'] == 'janusweb.client') {
<del> return elation.component.fetch(node);
<del> }
<del> node = node.parentN... | |
Java | mit | daa8c82809d32a17269e0bfeba1e8d8230b66b2a | 0 | talah/BBTH | package bbth.game;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Random;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.FloatMath;
import bbth.engine.ai.Pathfinder;
import bbth.engine.fastgraph.Fas... | gameSrc/bbth/game/BBTHSimulation.java | package bbth.game;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Random;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.FloatMath;
import bbth.engine.ai.Pathfinder;
import bbth.engine.fastgraph.Fas... | PARTICLES
| gameSrc/bbth/game/BBTHSimulation.java | PARTICLES | <ide><path>ameSrc/bbth/game/BBTHSimulation.java
<ide> import bbth.engine.particles.ParticleSystem;
<ide> import bbth.engine.ui.UIScrollView;
<ide> import bbth.engine.util.Bag;
<add>import bbth.engine.util.MathUtils;
<ide> import bbth.engine.util.Timer;
<ide> import bbth.game.ai.AIController;
<ide> import bbth.game.unit... | |
Java | unlicense | 6cccf5f7347013e9cffdaa48f3625423d3293317 | 0 | SleepyTrousers/EnderIO,Joccob/EnderIO,Quantum64/EnderIO,eduardog3000/EnderIO,Joccob/EnderIO,MatthiasMann/EnderIO,MrNuggelz/EnderIO,torteropaid/EnderIO,mmelvin0/EnderIO,Vexatos/EnderIO,D-Inc/EnderIO,mezz/EnderIO,Samernieve/EnderIO,Vexatos/EnderIO,HenryLoenwind/EnderIO,eduardog3000/EnderIO | package crazypants.enderio.machine;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net... | src/main/java/crazypants/enderio/machine/AbstractMachineRenderer.java | package crazypants.enderio.machine;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockA... | Fix non-model machine rendering | src/main/java/crazypants/enderio/machine/AbstractMachineRenderer.java | Fix non-model machine rendering | <ide><path>rc/main/java/crazypants/enderio/machine/AbstractMachineRenderer.java
<ide> package crazypants.enderio.machine;
<add>
<add>import java.util.List;
<ide>
<ide> import net.minecraft.block.Block;
<ide> import net.minecraft.client.renderer.RenderBlocks;
<ide> import crazypants.render.BoundingBox;
<ide> import cra... | |
JavaScript | mit | ae9c90e2709b545aa1dc6e7643489badcf6ce50a | 0 | jose-pleonasm/py-logging | var util = require('util');
var Filterer = require('./Filterer');
/**
* @typedef {Object} module:py-logging.LogRecord
* @property {number} created Time when this record was created.
* @property {string} name Name of the logger.
* @property {number} levelno Numeric logging level.
* @property {string} levelname Tex... | lib/Logger.js | var util = require('util');
var Filterer = require('./Filterer');
/**
* @typedef {Object} module:py-logging.LogRecord
* @property {number} created Time when this record was created.
* @property {string} name Name of the logger.
* @property {number} levelno Numeric logging level.
* @property {string} levelname Tex... | renamed properties | lib/Logger.js | renamed properties | <ide><path>ib/Logger.js
<ide> * @property {string} message The logged message.
<ide> * @property {Object} [error] The logged error.
<ide> * @property {Object} [extra] Extra data.
<del> * @property {number} [process] Process ID (if available).
<del> * @property {number} [processname] Process name (if available).
<add... | |
Java | apache-2.0 | 16acffd96d39da89473ac47fb47b46b0dba3b53e | 0 | Sivaramvt/Slice | /*-
* #%L
* Slice - Core
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2012 Cognifide Limited
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | slice-core/src/test/java/com/cognifide/slice/core/internal/provider/SliceClassToKeyMapperTest.java | /*-
* #%L
* Slice - Core
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2012 Cognifide Limited
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | Added test for internal caching
| slice-core/src/test/java/com/cognifide/slice/core/internal/provider/SliceClassToKeyMapperTest.java | Added test for internal caching | <ide><path>lice-core/src/test/java/com/cognifide/slice/core/internal/provider/SliceClassToKeyMapperTest.java
<ide> import org.junit.Test;
<ide> import org.junit.runner.RunWith;
<ide> import org.mockito.Mock;
<add>import org.mockito.Mockito;
<ide> import org.mockito.runners.MockitoJUnitRunner;
<ide> import org.osgi.fram... | |
JavaScript | agpl-3.0 | 5aa66f6d30a714bbf1ec7d06ac53c59494865baa | 0 | chocolatemelt/padopt,chocolatemelt/padopt,ledowong/padopt,ledowong/padopt | var TYPES = 7;
var ORB_X_SEP = 64;
var ORB_Y_SEP = 64;
var ORB_WIDTH = 60;
var ORB_HEIGHT = 60;
var MULTI_ORB_BONUS = 0.25;
var COMBO_BONUS = 0.25;
var MAX_SOLUTIONS_COUNT = ROWS * COLS * $('#num-paths').val();
//var MAX_SOLUTIONS_COUNT = ROWS * COLS * 2 * 8;
var globalheur = -1;
function make_rc(row, col) {
retur... | ext/optimizer.js | var TYPES = 7;
var ORB_X_SEP = 64;
var ORB_Y_SEP = 64;
var ORB_WIDTH = 60;
var ORB_HEIGHT = 60;
var MULTI_ORB_BONUS = 0.25;
var COMBO_BONUS = 0.25;
var MAX_SOLUTIONS_COUNT = ROWS * COLS * $('#num-paths').val();
//var MAX_SOLUTIONS_COUNT = ROWS * COLS * 2 * 8;
var globalheur = -1;
function make_rc(row, col) {
retur... | fixed import bug for 6x7
| ext/optimizer.js | fixed import bug for 6x7 | <ide><path>xt/optimizer.js
<ide> alert('Wrong number of orbs!');
<ide> return;
<ide> }
<del> var board = board_joined.match(/.{6}/g).map(function(s) { return s.split(''); });
<add> var boardre = new RegExp(".{" + COLS + "}", 'g');
<add> var board = board_joined.match(boardr... | |
Java | apache-2.0 | fdedff54e2d0ee58756bc131f16da4d9ae9d6c7b | 0 | OpenHFT/Chronicle-Core | /*
* Copyright 2016 higherfrequencytrading.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | src/main/java/net/openhft/chronicle/core/Jvm.java | /*
* Copyright 2016 higherfrequencytrading.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Only write to the slf4j (reverted as this turns out the be useful)
| src/main/java/net/openhft/chronicle/core/Jvm.java | Only write to the slf4j (reverted as this turns out the be useful) | <ide><path>rc/main/java/net/openhft/chronicle/core/Jvm.java
<ide> */
<ide> public static void signalHandler(SignalHandler signalHandler) {
<ide> SignalHandler signalHandler2 = signal -> {
<del> Slf4jExceptionHandler.WARN.on(signalHandler.getClass(), "Signal " + signal.getName() + " triggered... | |
JavaScript | mit | 5ad6c62569b5dbcf0b0cb4c1dd29db8a649387a5 | 0 | Tuhaj/warsawjs-workshop-3-online-shop,Tuhaj/warsawjs-workshop-3-online-shop | class ShopLogoController {
constructor() {
console.log('hello controller!')
this.source = '../images/warsawjs-logo.png'
this.width = 'auto'
}
$onInit() {
if (this.size === 'medium') {
this.width = '250px'
} else if(this.size === 'small') {
thi... | app/components/shopLogo.component.js | class ShopLogoController {
constructor() {
console.log('hello controller!')
this.source = '../images/warsawjs-logo.png'
this.width = 'auto'
this.sizes = new Map([['medium', '100px'], ['small', '30px']])
}
$onInit() {
console.log(this.size)
}
}
export const name ... | adds condition for logo size
| app/components/shopLogo.component.js | adds condition for logo size | <ide><path>pp/components/shopLogo.component.js
<ide> console.log('hello controller!')
<ide> this.source = '../images/warsawjs-logo.png'
<ide> this.width = 'auto'
<del> this.sizes = new Map([['medium', '100px'], ['small', '30px']])
<ide> }
<ide>
<ide> $onInit() {
<del> cons... | |
JavaScript | mit | c44c80efe92aafae313a923fea0b3fd02ff2cdd3 | 0 | tobias74/geo-secrets,tobias74/geo-secrets,tobias74/geo-secrets | 'use strict';
angular.module('chatApp').controller('ChatController',
['$location','$scope','$route','$resource','$http','ResponsiveService','FileUploader','$rootScope','$q','store','ApiService',
function($location,$scope,$route,$resource,$http,ResponsiveService,FileUploader,$rootScope,$q,store,ApiService) {
var... | public/controller/ChatController.js | 'use strict';
angular.module('chatApp').controller('ChatController',
['$location','$scope','$route','$resource','$http','ResponsiveService','FileUploader','$rootScope','$q','store','ApiService',
function($location,$scope,$route,$resource,$http,ResponsiveService,FileUploader,$rootScope,$q,store,ApiService) {
var... | image upload working
| public/controller/ChatController.js | image upload working | <ide><path>ublic/controller/ChatController.js
<ide> {name:'200m', value:'200m'},
<ide> {name:'500m', value:'500m'},
<ide> {name:'1km', value:'1km'},
<del> {name:'2km', value:'2km'},
<del> {name:'5km', value:'5km'},
<del> {name:'10km', value:'10km'},
<del> {name:'100km', value:'100k... | |
Java | apache-2.0 | 306e39685992cfae1512830151aa6cf27e68f323 | 0 | tasomaniac/MuzeiComicsCovers | package com.tasomaniac.muzei.comiccovers;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import androidx.work.Constraints;
import androidx.work.NetworkType;
import androidx.work.On... | app/src/main/java/com/tasomaniac/muzei/comiccovers/ComicVineWorker.java | package com.tasomaniac.muzei.comiccovers;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import androidx.work.Constraints;
import androidx.work.NetworkType;
import androidx.work.On... | Add byline
| app/src/main/java/com/tasomaniac/muzei/comiccovers/ComicVineWorker.java | Add byline | <ide><path>pp/src/main/java/com/tasomaniac/muzei/comiccovers/ComicVineWorker.java
<ide> name.append(comic.getName());
<ide> }
<ide>
<add> StringBuilder byline = new StringBuilder();
<add> if (comic.getIssueNumber() != 0) {
<add> byline.append("Issue #").append(comic.getIssu... | |
Java | apache-2.0 | ba110406a27123e0fd18a0d959edd78acef49c03 | 0 | brockhaus-gruppe/M2M_framework,brockhaus-gruppe/M2M_framework,brockhaus-gruppe/M2M_framework | package de.brockhaus.m2m.config;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import org.apache.log4j.Logger;
import de.brockhaus.m2m.util.ConfigServerRMIConnector;
/**
* If to be notified by config changes, this class has to be used. The reason behind this is, that most
* of the c... | m2m_common/src/main/java/de/brockhaus/m2m/config/ConfigurationChangeRemoteListenerStub.java | package de.brockhaus.m2m.config;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import org.apache.log4j.Logger;
import de.brockhaus.m2m.util.ConfigServerRMIConnector;
/**
* If to be notified by config changes, this class has to be used. The reason behind this is, that most
* of the c... | beautification | m2m_common/src/main/java/de/brockhaus/m2m/config/ConfigurationChangeRemoteListenerStub.java | beautification | <ide><path>2m_common/src/main/java/de/brockhaus/m2m/config/ConfigurationChangeRemoteListenerStub.java
<ide> public void setConfigService(ConfigurationService configService) {
<ide> this.configService = configService;
<ide> }
<del>
<ide> } | |
Java | apache-2.0 | a3f68edeed7694fae698bed59610a6a2114bd053 | 0 | googleapis/java-pubsub,googleapis/java-pubsub,googleapis/java-pubsub | /*
* Copyright 2016 Google LLC
*
* 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... | google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java | /*
* Copyright 2016 Google LLC
*
* 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... | Fix performance regression on Cloud Pub/Sub publish (#6076)
* Mark ordering keys APIs public
* Go back to calling publish on the exectuor, which is what we did before the updates to support ordering keys. Without it, we end up with a lot of publishes hanging for long periods of time.
| google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java | Fix performance regression on Cloud Pub/Sub publish (#6076) | <ide><path>oogle-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
<ide> if (!batchesToSend.isEmpty() && orderingKey.isEmpty()) {
<ide> for (final OutstandingBatch batch : batchesToSend) {
<ide> logger.log(Level.FINER, "Scheduling a batch for immediate sending.");
<del> publi... | |
Java | apache-2.0 | c6f84b000e9e77a815d0b5f66f8a8181b2a47401 | 0 | arx-deidentifier/arx,fstahnke/arx,TheRealRasu/arx,kentoa/arx,jgaupp/arx,kbabioch/arx,COWYARD/arx,TheRealRasu/arx,fstahnke/arx,tijanat/arx,COWYARD/arx,kbabioch/arx,jgaupp/arx,kentoa/arx,arx-deidentifier/arx,RaffaelBild/arx,bitraten/arx,tijanat/arx,RaffaelBild/arx,bitraten/arx | /*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2015 Florian Kohlmayer, Fabian Prasser
*
* 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/LI... | src/main/org/deidentifier/arx/DataHandle.java | /*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2015 Florian Kohlmayer, Fabian Prasser
*
* 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/LI... | Rework existing and add new methods for data cleansing | src/main/org/deidentifier/arx/DataHandle.java | Rework existing and add new methods for data cleansing | <ide><path>rc/main/org/deidentifier/arx/DataHandle.java
<ide> import java.text.ParseException;
<ide> import java.util.Arrays;
<ide> import java.util.Date;
<add>import java.util.HashMap;
<ide> import java.util.HashSet;
<ide> import java.util.Iterator;
<add>import java.util.Locale;
<add>import java.util.Map;
<ide> import... | |
Java | apache-2.0 | c3099b5218ceec3c26dce7ab66c1b61461fc7e89 | 0 | adessaigne/camel,CodeSmell/camel,apache/camel,DariusX/camel,gnodet/camel,objectiser/camel,tadayosi/camel,tadayosi/camel,pax95/camel,pmoerenhout/camel,mcollovati/camel,christophd/camel,tdiesler/camel,adessaigne/camel,ullgren/camel,adessaigne/camel,punkhorn/camel-upstream,objectiser/camel,pmoerenhout/camel,zregvart/camel... | /**
* 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... | components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelHealthIndicator.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... | CAMEL-13120:camel-spring-boot - fixed checkstyle errors
| components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelHealthIndicator.java | CAMEL-13120:camel-spring-boot - fixed checkstyle errors | <ide><path>omponents/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelHealthIndicator.java
<ide> builder.unknown();
<ide> } else {
<ide> if (properties.isVerbose()) {
<del> builder.withDetail("name", camelContext.getName());
<add> ... | |
Java | apache-2.0 | b116abb4ca87662b16e7e5a87de2f3ecdad4c142 | 0 | blademainer/intellij-community,amith01994/intellij-community,Lekanich/intellij-community,vvv1559/intellij-community,xfournet/intellij-community,Lekanich/intellij-community,fengbaicanhe/intellij-community,orekyuu/intellij-community,kool79/intellij-community,vvv1559/intellij-community,holmes/intellij-community,robovm/rob... | package com.intellij.find.editorHeaderActions;
import com.intellij.find.EditorSearchComponent;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.util.IconLoader;
import com.intellij.util.containers.ContainerUtil;
import javax.swing.*;
import java.aw... | platform/lang-impl/src/com/intellij/find/editorHeaderActions/ShowHistoryAction.java | package com.intellij.find.editorHeaderActions;
import com.intellij.find.EditorSearchComponent;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.util.IconLoader;
import com.intellij.util.containers.ContainerUtil;
import javax.swing.*;
import java.aw... | IDEA-69218 (Not working) Search History dropdown by "down key" if there is no text in search field
| platform/lang-impl/src/com/intellij/find/editorHeaderActions/ShowHistoryAction.java | IDEA-69218 (Not working) Search History dropdown by "down key" if there is no text in search field | <ide><path>latform/lang-impl/src/com/intellij/find/editorHeaderActions/ShowHistoryAction.java
<ide> import com.intellij.util.containers.ContainerUtil;
<ide>
<ide> import javax.swing.*;
<del>import java.awt.event.InputEvent;
<del>import java.awt.event.KeyEvent;
<del>import java.awt.event.MouseEvent;
<add>import java.aw... | |
Java | mit | 3e256631fd322a06b8b42941cd760d93ef28154f | 0 | felHR85/Pincho-Usb-Mass-Storage-for-Android | package com.felhr.usbmassstorageforandroid.filesystems.fat32;
import android.util.Log;
import com.felhr.usbmassstorageforandroid.utilities.HexUtil;
import com.felhr.usbmassstorageforandroid.utilities.UnsignedUtil;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Gregorian... | src/main/java/com/felhr/usbmassstorageforandroid/filesystems/fat32/FileEntry.java | package com.felhr.usbmassstorageforandroid.filesystems.fat32;
import android.util.Log;
import com.felhr.usbmassstorageforandroid.utilities.HexUtil;
import com.felhr.usbmassstorageforandroid.utilities.UnsignedUtil;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Gregorian... | Solved a stupid endianess bug in the FileEntry
| src/main/java/com/felhr/usbmassstorageforandroid/filesystems/fat32/FileEntry.java | Solved a stupid endianess bug in the FileEntry | <ide><path>rc/main/java/com/felhr/usbmassstorageforandroid/filesystems/fat32/FileEntry.java
<ide> byte lsb = (byte) (value & 0xff);
<ide> byte msb = (byte) (value >> 8);
<ide>
<del> System.arraycopy(new byte[]{msb, lsb}, 0, rawFileEntry, index, 2);
<add> System.arraycopy(new byte[]{lsb, m... | |
Java | apache-2.0 | d8685aa6c9ae32e49d1b0f6e8d460402a0e64c3f | 0 | 1gravity/Android-ContactPicker,1gravity/Android-ContactPicker | /*
* Copyright (C) 2015-2016 Emanuel Moecklin
*
* 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... | library/src/main/java/com/onegravity/contactpicker/picture/ContactPictureLoader.java | /*
* Copyright (C) 2015-2016 Emanuel Moecklin
*
* 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... | We scale them image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
Analogous: ImageView.ScaleType CENTER_CROP
| library/src/main/java/com/onegravity/contactpicker/picture/ContactPictureLoader.java | We scale them image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding). Analogous: ImageView.ScaleType CENTER_CROP | <ide><path>ibrary/src/main/java/com/onegravity/contactpicker/picture/ContactPictureLoader.java
<ide> import java.io.FileNotFoundException;
<ide> import java.io.InputStream;
<ide> import java.lang.ref.SoftReference;
<add>
<add>import static android.graphics.Bitmap.createBitmap;
<ide>
<ide> /**
<ide> * Runnable to load... | |
Java | mit | e517576ff931c66ff885f393eba31459a652c462 | 0 | SpongeHistory/SpongeAPI-History,SpongeHistory/SpongeAPI-History | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | src/main/java/org/spongepowered/api/event/ban/IpPardonEvent.java | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | Add isFloweJPot.
| src/main/java/org/spongepowered/api/event/ban/IpPardonEvent.java | Add isFloweJPot. | <ide><path>rc/main/java/org/spongepowered/api/event/ban/IpPardonEvent.java
<ide> */
<ide> Ban.Ip getBan();
<ide>
<add> /**
<add> * Checks if this is a flowerpot.
<add> *
<add> * @return Whether this is a flowerpot
<add> */
<add> boolean isFlowerPot();
<ide> } | |
Java | apache-2.0 | fc2cdfdbb71300c3f4f79885ac05f811a3bb9073 | 0 | apache/incubator-taverna-workbench,apache/incubator-taverna-workbench,ThilinaManamgoda/incubator-taverna-workbench,ThilinaManamgoda/incubator-taverna-workbench | /*******************************************************************************
* Copyright (C) 2007 The University of Manchester
*
* Modifications to the initial code base are copyright of their
* respective authors, or their employers as appropriate.
*
* This program is free software; you can redistrib... | file-translator/src/main/java/net/sf/taverna/t2/workbench/file/translator/T1OpenHandler.java | /*******************************************************************************
* Copyright (C) 2007 The University of Manchester
*
* Modifications to the initial code base are copyright of their
* respective authors, or their employers as appropriate.
*
* This program is free software; you can redistrib... | Changed to just try open once as T1.7.2.2 works
git-svn-id: 61f4dde1fddfd0163a47b1d3841ea516a068d9ad@10939 bf327186-88b3-11dd-a302-d386e5130c1c
| file-translator/src/main/java/net/sf/taverna/t2/workbench/file/translator/T1OpenHandler.java | Changed to just try open once as T1.7.2.2 works | <ide><path>ile-translator/src/main/java/net/sf/taverna/t2/workbench/file/translator/T1OpenHandler.java
<ide> public DataflowInfo openDataflow(FileType fileType, Object source)
<ide> throws OpenException {
<ide> DataflowInfo result = null;
<del> try {
<del> result = openDataflowInMode(fileType, source, fal... | |
JavaScript | apache-2.0 | ecbfc55c33722933c53ab8a6fb74cf87b2bd34f2 | 0 | bjfreedman/tollbot | 'use strict';
const apiai = require('apiai');
const express = require('express');
const bodyParser = require('body-parser');
const uuid = require('node-uuid');
const request = require('request');
const JSONbig = require('json-bigint');
const async = require('async');
const REST_PORT = (process.env.PORT || 5000);
cons... | src/app.js | 'use strict';
const apiai = require('apiai');
const express = require('express');
const bodyParser = require('body-parser');
const uuid = require('node-uuid');
const request = require('request');
const JSONbig = require('json-bigint');
const async = require('async');
const REST_PORT = (process.env.PORT || 5000);
cons... | Update app.js | src/app.js | Update app.js | <ide><path>rc/app.js
<ide> }
<ide> }
<ide>
<add> var referral = true;
<ide> if (event.postback) {
<del>
<del> if (event.postback.referral.ref && event.postback.payload) {
<add>
<add> if (event.postback.referral.ref && referral) {
<... | |
Java | lgpl-2.1 | a2fb6b88d882b07dcdff5a21d2c6b06f92e3dd41 | 0 | pbondoer/xwiki-platform,pbondoer/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform,pbondoer/xwiki-platform,xwiki/xwiki-platform,pbondoer/xwiki-platform,pbondoer/xwiki-platform | /*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* th... | xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java | /*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* th... | [cleanup] Apply codestyle
git-svn-id: cfa2b40e478804c47c05d0f328c574ec5aa2b82e@10274 f329d543-caf0-0310-9063-dda96c69346f
| xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java | [cleanup] Apply codestyle | <ide><path>wiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
<ide> private Map<String, String[]> validTypesMap = new HashMap<String, String[]>();
<ide>
<ide> /**
<del> * This allows to initialize our storage engine. The hibernate config file path is taken from
<del> * xwiki.cfg or di... | |
Java | apache-2.0 | 561b3d7a30205bec593ce7922bebb328936a414b | 0 | metamx/extendedset | /*
* (c) 2010 Alessandro Colantonio
* <mailto:colanton@mat.uniroma3.it>
* <http://ricerca.mat.uniroma3.it/users/colanton>
*
* 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
*
* h... | src/main/java/it/uniroma3/mat/extendedset/intset/ImmutableConciseSet.java | /*
* (c) 2010 Alessandro Colantonio
* <mailto:colanton@mat.uniroma3.it>
* <http://ricerca.mat.uniroma3.it/users/colanton>
*
* 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
*
* h... | another constructor bug fix
| src/main/java/it/uniroma3/mat/extendedset/intset/ImmutableConciseSet.java | another constructor bug fix | <ide><path>rc/main/java/it/uniroma3/mat/extendedset/intset/ImmutableConciseSet.java
<ide> public ImmutableConciseSet(IntBuffer words)
<ide> {
<ide> this.words = words;
<add> this.lastWordIndex = this.words.capacity() - 1;
<add> this.size = -1;
<add> this.simulateWAH = false;
<add> }
<add>
<add> publi... | |
Java | agpl-3.0 | 10147c82bda4072aa2b0358e82bb45f4416a52ce | 0 | VietOpenCPS/opencps-v2,VietOpenCPS/opencps-v2 |
package org.opencps.api.controller.impl;
import com.liferay.document.library.kernel.service.DLAppLocalServiceUtil;
import com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.porta... | modules/backend-api-rest/src/main/java/org/opencps/api/controller/impl/DossierFileManagementImpl.java |
package org.opencps.api.controller.impl;
import com.liferay.document.library.kernel.service.DLAppLocalServiceUtil;
import com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.porta... | clone dossierFile from applicantdata: filetype | modules/backend-api-rest/src/main/java/org/opencps/api/controller/impl/DossierFileManagementImpl.java | clone dossierFile from applicantdata: filetype | <ide><path>odules/backend-api-rest/src/main/java/org/opencps/api/controller/impl/DossierFileManagementImpl.java
<ide> InputStream inputStream =
<ide> ConvertDossierFromV1Dot9Utils.getFileFromDVCOld(uri);
<ide> String fileTemplateNo = dossierTemplateNo + dossierPartNo;
<add> String sourceFileName = displayN... | |
Java | apache-2.0 | bc05be811a3896b055e1e6d8919d7f27f279e670 | 0 | lholmquist/aerogear-unified-push-server,C-B4/unifiedpush-server,danielpassos/aerogear-unifiedpush-server,matzew/aerogear-unifiedpush-server,julioa/aerogear-unifiedpush-server,matzew/aerogear-unifiedpush-server,sinarz/aerogear-unifiedpush-server,julioa/aerogear-unifiedpush-server,lholmquist/aerogear-unified-push-server,... | /**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/PushApplicationEndpoint.java | /**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | fix conflict
| jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/PushApplicationEndpoint.java | fix conflict | <ide><path>axrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/applications/PushApplicationEndpoint.java
<ide> */
<ide> package org.jboss.aerogear.unifiedpush.rest.registry.applications;
<ide>
<del>import org.jboss.aerogear.security.auth.LoggedUser;
<del>import org.jboss.aerogear.security.authz.Secure;
<i... | |
Java | agpl-3.0 | b858773b6ec352c779ff37da9b7c41afb56f8fe1 | 0 | opensourceBIM/BIMserver,opensourceBIM/BIMserver,opensourceBIM/BIMserver | package org.bimserver.database.actions;
/******************************************************************************
* Copyright (C) 2009-2016 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by... | BimServer/src/org/bimserver/database/actions/DownloadByNewJsonQueryDatabaseAction.java | package org.bimserver.database.actions;
/******************************************************************************
* Copyright (C) 2009-2016 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by... | Fixed bugs and improved performance of combination EMF + New Query
Language | BimServer/src/org/bimserver/database/actions/DownloadByNewJsonQueryDatabaseAction.java | Fixed bugs and improved performance of combination EMF + New Query Language | <ide><path>imServer/src/org/bimserver/database/actions/DownloadByNewJsonQueryDatabaseAction.java
<ide> import org.bimserver.shared.QueryException;
<ide> import org.bimserver.shared.exceptions.UserException;
<ide> import org.bimserver.webservices.authorization.Authorization;
<add>import org.eclipse.emf.common.util.Abstr... | |
Java | apache-2.0 | f0da6067ac04e0f1582212c85ec6d2be8d873054 | 0 | mtransitapps/ca-moncton-codiac-transpo-bus-parser,mtransitapps/ca-moncton-codiac-transpo-bus-parser | package org.mtransit.parser.ca_moncton_codiac_transpo_bus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtil... | src/org/mtransit/parser/ca_moncton_codiac_transpo_bus/MonctonCodiacTranspoBusAgencyTools.java | package org.mtransit.parser.ca_moncton_codiac_transpo_bus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtil... | Compatibility with latest update.
| src/org/mtransit/parser/ca_moncton_codiac_transpo_bus/MonctonCodiacTranspoBusAgencyTools.java | Compatibility with latest update. | <ide><path>rc/org/mtransit/parser/ca_moncton_codiac_transpo_bus/MonctonCodiacTranspoBusAgencyTools.java
<ide> MDirectionType.EAST.intValue(), MTrip.HEADSIGN_TYPE_STRING, PLAZA_BLVD, //
<ide> MDirectionType.WEST.intValue(), MTrip.HEADSIGN_TYPE_STRING, CASINO) //
<ide> .addTripSort(MDirectionType.EAST.intValu... | |
Java | bsd-3-clause | c5c07cb12501fd1deb7a30a10ef1cb2ab891daf5 | 0 | NordicSemiconductor/Android-DFU-Library,NordicSemiconductor/Android-DFU-Library,NordicSemiconductor/Android-DFU-Library,ringly/Android-DFU-Library,NordicSemiconductor/Android-DFU-Library | /*************************************************************************************************************************************************
* Copyright (c) 2015, Nordic Semiconductor
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted prov... | dfu/src/main/java/no/nordicsemi/android/dfu/DfuSettingsConstants.java | /*************************************************************************************************************************************************
* Copyright (c) 2015, Nordic Semiconductor
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted prov... | Typos
| dfu/src/main/java/no/nordicsemi/android/dfu/DfuSettingsConstants.java | Typos | <ide><path>fu/src/main/java/no/nordicsemi/android/dfu/DfuSettingsConstants.java
<ide>
<ide> /**
<ide> * This property must contain a boolean value.
<del> * <p>The {@link DfuBaseService}, after connected to a DFU target will check whether it is in application or in DFU bootloader mode. For DFU implementations from ... | |
Java | agpl-3.0 | ce3c777336e80ca66d605bb254b3401e56adb82c | 0 | roselleebarle04/AIDR,roselleebarle04/AIDR,qcri-social/Crisis-Computing,roselleebarle04/AIDR,qcri-social/Crisis-Computing,hsarmiento/AIDR,hsarmiento/AIDR,hsarmiento/AIDR,qcri-social/Crisis-Computing,qcri-social/AIDR,roselleebarle04/AIDR,qcri-social/Crisis-Computing,qcri-social/AIDR,hsarmiento/AIDR,qcri-social/AIDR,qcri-... | package qa.qcri.aidr.task.ejb.bean;
import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import ja... | aidr-task-manager/src/main/java/qa/qcri/aidr/task/ejb/bean/TaskManagerBean.java | package qa.qcri.aidr.task.ejb.bean;
import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import ja... | task manager changes | aidr-task-manager/src/main/java/qa/qcri/aidr/task/ejb/bean/TaskManagerBean.java | task manager changes | <ide><path>idr-task-manager/src/main/java/qa/qcri/aidr/task/ejb/bean/TaskManagerBean.java
<ide> Criterion aliasCriterion = (Restrictions.isNull(aliasTableKey));
<ide> try {
<ide> List<Document> docList = remoteDocumentEJB.getByCriteriaWithAliasByOrder(newCriterion, order, orderBy, count, aliasTable, aliasCriter... | |
Java | mit | 03799e0382d2edc4417fc613f3a236cb8d4c1597 | 0 | iBotPeaches/SimpleServer,iBotPeaches/SimpleServer | /*
* Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS)
*
* 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, ... | src/simpleserver/stream/StreamTunnel.java | /*
* Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS)
*
* 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, ... | added 0x04, added add(double), fixed CopyPlayerPosition to new protocol
| src/simpleserver/stream/StreamTunnel.java | added 0x04, added add(double), fixed CopyPlayerPosition to new protocol | <ide><path>rc/simpleserver/stream/StreamTunnel.java
<ide> break;
<ide>
<ide> case 0x04: // Entity-Equipment / Player Position
<del>
<add> add(packetId);
<add> if (isServerTunnel) {
<add> add(incoming.getInt());
<add> add(incoming.getShort());
<add> c... | |
Java | lgpl-2.1 | 545f1118cb160059189622947c258b1b0045f3f6 | 0 | petalslink/petals-se-flowable | /**
* Copyright (c) 2015-2018 Linagora
*
* This program/library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or (at your
* option) any later version.
*
* ... | src/main/java/org/ow2/petals/flowable/incoming/operation/CompleteUserTaskOperation.java | /**
* Copyright (c) 2015-2018 Linagora
*
* This program/library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or (at your
* option) any later version.
*
* ... | PETALSSEFLOWABLE-55: Unable to complete a user task directly assigned to a user
| src/main/java/org/ow2/petals/flowable/incoming/operation/CompleteUserTaskOperation.java | PETALSSEFLOWABLE-55: Unable to complete a user task directly assigned to a user | <ide><path>rc/main/java/org/ow2/petals/flowable/incoming/operation/CompleteUserTaskOperation.java
<ide>
<ide> // Get the task
<ide> final List<Task> taskList = this.taskService.createTaskQuery().processInstanceId(processInstanceId)
<del> .taskDefinitionKey(this.userTaskId).taskCandidateU... | |
JavaScript | apache-2.0 | 6d01118bb3e669d45cc524414a6a88116b561cf3 | 0 | johnsextro/saintsApp,johnsextro/saintsApp | function AddTeamWindow() {
var self = Ti.UI.createWindow({
title:'Add Team',
backgroundColor:'black'
});
self.layout = 'vertical'
TeamsWindow = require('ui/common/TeamsWindow');
var instructions = Ti.UI.createLabel({
color: 'white',
text: 'Choose a Team to Add',
font:{fontSize:16},
width: 'auto',... | Resources/schedule/AddTeamWindow.js | function AddTeamWindow() {
var self = Ti.UI.createWindow({
title:'Add Team',
backgroundColor:'black'
});
self.layout = 'vertical'
TeamsWindow = require('ui/common/TeamsWindow');
var instructions = Ti.UI.createLabel({
color: 'white',
text: 'Choose a Team to Add',
font:{fontSize:16},
width: 'auto',... | Completed the updates to the bottom bar on the AddTeamWindow view.
| Resources/schedule/AddTeamWindow.js | Completed the updates to the bottom bar on the AddTeamWindow view. | <ide><path>esources/schedule/AddTeamWindow.js
<ide> var data = [];
<ide> var json;
<ide> var teamId, teamName;
<del> var btnAddTeam = Titanium.UI.createButton({
<del> title:'Add Team',
<add> var btnAddTeam = Titanium.UI.createView({
<add> backgroundImage:'/images/approval-48.png',
<add> width: '40',
<add> height... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.