lang stringclasses 2
values | license stringclasses 13
values | stderr stringlengths 0 343 | commit stringlengths 40 40 | returncode int64 0 128 | repos stringlengths 6 87.7k | new_contents stringlengths 0 6.23M | new_file stringlengths 3 311 | old_contents stringlengths 0 6.23M | message stringlengths 6 9.1k | old_file stringlengths 3 311 | subject stringlengths 0 4k | git_diff stringlengths 0 6.31M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Java | agpl-3.0 | 454d30ba8202884abc6a268b621e215a001e5c06 | 0 | duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot | /*
* Skybot, a multipurpose discord bot
* Copyright (C) 2017 - 2018 Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & Maurice R S "Sanduhr32"
*
* 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 S... | src/main/java/ml/duncte123/skybot/utils/MessageUtils.java | /*
* Skybot, a multipurpose discord bot
* Copyright (C) 2017 - 2018 Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & Maurice R S "Sanduhr32"
*
* 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 S... | Use build all for large embeds
| src/main/java/ml/duncte123/skybot/utils/MessageUtils.java | Use build all for large embeds | <ide><path>rc/main/java/ml/duncte123/skybot/utils/MessageUtils.java
<ide> public static void sendEmbed(TextChannel channel, MessageEmbed embed) {
<ide> if (channel != null) {
<ide> if (!channel.getGuild().getSelfMember().hasPermission(channel, Permission.MESSAGE_EMBED_LINKS)) {
<del> ... | |
Java | mit | d06cb2416bbe173568bf384bdae8cda581bf80c2 | 0 | ButterFaces/ButterFaces,ButterFaces/ButterFaces,ButterFaces/ButterFaces,ButterFaces/ButterFaces,ButterFaces/ButterFaces | /*
* Copyright Lars Michaelis and Stephan Zerhusen 2016.
* Distributed under the MIT License.
* (See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
*/
package de.larmic.butterfaces.component.html.repeat;
import de.larmic.butterfaces.component.html.repeat.event.RowKeyEventBroadcaste... | components/src/main/java/de/larmic/butterfaces/component/html/repeat/UIDataAdaptor.java | /*
* Copyright Lars Michaelis and Stephan Zerhusen 2016.
* Distributed under the MIT License.
* (See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
*/
package de.larmic.butterfaces.component.html.repeat;
import de.larmic.butterfaces.component.html.repeat.event.RowKeyEventBroadcaste... | #40 Table: remove log output
| components/src/main/java/de/larmic/butterfaces/component/html/repeat/UIDataAdaptor.java | #40 Table: remove log output | <ide><path>omponents/src/main/java/de/larmic/butterfaces/component/html/repeat/UIDataAdaptor.java
<ide> public void setRowKey(FacesContext facesContext, Integer rowKey) {
<ide> this.saveChildState(facesContext);
<ide>
<del> if (rowKey != null) {
<del> System.out.println("Setting rowkey to... | |
Java | apache-2.0 | 71be7ca0f52a323a10ef9fbcc5ee952b8db18f85 | 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-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/vcs-impl/src/com/intellij/openapi/vcs/actions/AnnotateLocalFileAction.java | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | EA-135766 - assert: AnnotateLocalFileAction.perform
Do not report error - IpnbFileType "Jupyter Notebook" is a text file
without available TextFileEditor.
| platform/vcs-impl/src/com/intellij/openapi/vcs/actions/AnnotateLocalFileAction.java | EA-135766 - assert: AnnotateLocalFileAction.perform | <ide><path>latform/vcs-impl/src/com/intellij/openapi/vcs/actions/AnnotateLocalFileAction.java
<ide> import com.intellij.openapi.progress.ProgressManager;
<ide> import com.intellij.openapi.progress.Task;
<ide> import com.intellij.openapi.project.Project;
<add>import com.intellij.openapi.ui.Messages;
<ide> import com.int... | |
Java | apache-2.0 | 7aca39f753e86e9885b81822d77ba4312d959c2d | 0 | ywjno/nutz,nutzam/nutz,ywjno/nutz,nutzam/nutz,elkan1788/nutz,elkan1788/nutz,nutzam/nutz,nutzam/nutz,elkan1788/nutz,nutzam/nutz,ywjno/nutz,elkan1788/nutz,ywjno/nutz,ywjno/nutz | package org.nutz.lang;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStrea... | src/org/nutz/lang/Streams.java | package org.nutz.lang;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStrea... | Streams writeAndClose 最好强制刷一下流
| src/org/nutz/lang/Streams.java | Streams writeAndClose 最好强制刷一下流 | <ide><path>rc/org/nutz/lang/Streams.java
<ide> throw Lang.wrapThrow(e);
<ide> }
<ide> finally {
<add> safeFlush(writer);
<ide> safeClose(writer);
<ide> }
<ide> }
<ide> throw Lang.wrapThrow(e);
<ide> }
<ide> finally {
<add> ... | |
Java | epl-1.0 | 87b68149241ef2e00a8ce2e4a227f2f12fd661ee | 0 | smeup/asup,smeup/asup,smeup/asup | /**
* Copyright (c) 2012, 2016 Sme.UP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*
* Contribut... | org.smeup.sys.dk.compiler.rpj/src/org/smeup/sys/dk/compiler/rpj/RPJDataLikeRefactor.java | /**
* Copyright (c) 2012, 2016 Sme.UP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*
* Contribut... | Pacth per recupero definizioni da moduli | org.smeup.sys.dk.compiler.rpj/src/org/smeup/sys/dk/compiler/rpj/RPJDataLikeRefactor.java | Pacth per recupero definizioni da moduli | <ide><path>rg.smeup.sys.dk.compiler.rpj/src/org/smeup/sys/dk/compiler/rpj/RPJDataLikeRefactor.java
<ide> if(bufferedDataDef instanceof QNumericDef)
<ide> break;
<ide>
<add> // from files
<ide> QDataTerm<?> displayTerm = getFromFiles(target);
<add> if(displayTerm == null)
<add> ... | |
Java | apache-2.0 | a0197b4472fd8aa368324500a8024dc925288018 | 0 | fusepool/datalifecycle | package eu.fusepool.datalifecycle;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.security.AccessController;
import java.security.AllPermission;
import java.security.Permission;
import java.util.Collections;
import java.util.Dictionary;
import java.util.HashSet;
... | src/main/java/eu/fusepool/datalifecycle/SourcingAdmin.java | package eu.fusepool.datalifecycle;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.security.AccessController;
import java.security.AllPermission;
import java.security.Permission;
import java.util.Collections;
import java.util.Dictionary;
import java.util.HashSet;
... | implemented acquisition of digesters services references at bundle activation
| src/main/java/eu/fusepool/datalifecycle/SourcingAdmin.java | implemented acquisition of digesters services references at bundle activation | <ide><path>rc/main/java/eu/fusepool/datalifecycle/SourcingAdmin.java
<ide> import org.apache.felix.scr.annotations.Property;
<ide> import org.apache.felix.scr.annotations.Reference;
<ide> import org.apache.felix.scr.annotations.Service;
<add>import org.apache.stanbol.commons.indexedgraph.IndexedMGraph;
<ide> import org... | |
Java | apache-2.0 | 04abb5fba497bc64c15c2825b554db4860894199 | 0 | SirWellington/alchemy-test,SirWellington/alchemy-test | /*
* Copyright © 2018. Sir Wellington.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | src/main/java/tech/sirwellington/alchemy/test/junit/runners/GenerateDouble.java | /*
* Copyright © 2018. Sir Wellington.
* 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... | Refines @GenerateDouble
| src/main/java/tech/sirwellington/alchemy/test/junit/runners/GenerateDouble.java | Refines @GenerateDouble | <ide><path>rc/main/java/tech/sirwellington/alchemy/test/junit/runners/GenerateDouble.java
<ide>
<ide> import static java.lang.annotation.ElementType.FIELD;
<ide> import static java.lang.annotation.RetentionPolicy.RUNTIME;
<del>import static tech.sirwellington.alchemy.generator.NumberGenerators.doubles;
<del>import sta... | |
JavaScript | apache-2.0 | fatal: invalid reference: FETCH_HEAD^
| c976b0d9570293524b30471f4801142fc4415809 | 128 | SAPDshell/dshell | var sys = require('sys'),
url = require('url'),
exec = require('child_process').exec,
http = require('http'),
connect = require('connect'),
rimraf = require('rimraf')
var crypto = require('crypto');
var fs = require('fs');
repMiddleware = function worseThanUselessMiddleware(req, res, next) {
try {
var rep = u... | dj.js | initial commit
| dj.js | initial commit | <ide><path>j.js
<add>var sys = require('sys'),
<add> url = require('url'),
<add> exec = require('child_process').exec,
<add> http = require('http'),
<add> connect = require('connect'),
<add> rimraf = require('rimraf')
<add>
<add>var crypto = require('crypto');
<add>var fs = require('fs');
<add>
<add>repMiddleware = fun... | |
Java | apache-2.0 | b9fde2362894efb565d1f2c9b0443ddb608a0d8c | 0 | chrisrhoden/PlayerHater,PRX/PlayerHater | package org.prx.android.playerhater;
import android.media.AudioManager;
public class OnAudioFocusChangeListener implements
AudioManager.OnAudioFocusChangeListener {
// 5 seconds
public static final int REWIND_ON_RESUME_DURATION = 5000;
// 5 minutes
public static final int SKIP_RESUME_AFTER_DURATION = 300000;
... | src/org/prx/android/playerhater/OnAudioFocusChangeListener.java | package org.prx.android.playerhater;
import android.media.AudioManager;
public class OnAudioFocusChangeListener implements
android.media.AudioManager.OnAudioFocusChangeListener {
private PlayerHaterService mService;
private boolean isBeingDucked;
public OnAudioFocusChangeListener(PlayerHaterService service) {
... | playback does not resume after some period of time being interrupted
| src/org/prx/android/playerhater/OnAudioFocusChangeListener.java | playback does not resume after some period of time being interrupted | <ide><path>rc/org/prx/android/playerhater/OnAudioFocusChangeListener.java
<ide> import android.media.AudioManager;
<ide>
<ide> public class OnAudioFocusChangeListener implements
<del> android.media.AudioManager.OnAudioFocusChangeListener {
<add> AudioManager.OnAudioFocusChangeListener {
<add>
<add> // 5 seconds
<add... | |
Java | apache-2.0 | error: pathspec 'src/main/java/com/terradue/dsi/model/AccountOwner.java' did not match any file(s) known to git
| feab2955523b92ea5940ad14d5e93f0126d05b8c | 1 | Terradue/dsi-tools | package com.terradue.dsi.model;
/*
* Copyright 2012 Terradue srl
*
* 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... | src/main/java/com/terradue/dsi/model/AccountOwner.java | initial checkin of AccountOwner entity | src/main/java/com/terradue/dsi/model/AccountOwner.java | initial checkin of AccountOwner entity | <ide><path>rc/main/java/com/terradue/dsi/model/AccountOwner.java
<add>package com.terradue.dsi.model;
<add>
<add>/*
<add> * Copyright 2012 Terradue srl
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You... | |
Java | mit | 04018ecf1651ace5f434eddae5a7fdf342902d2c | 0 | lkrnac/blog-2015-11-mock-spring-bean-v2 | package net.lkrnac.blog.testing.mockbeanv2.aoptesting;
import org.mockito.Mockito;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Repository;
import lombok.Getter;
import net.lkrnac.blog.testing.mockbeanv2.beans.Addre... | src/test/java/net/lkrnac/blog/testing/mockbeanv2/aoptesting/AddressDaoMock.java | package net.lkrnac.blog.testing.mockbeanv2.aoptesting;
import org.mockito.Mockito;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Repository;
import lombok.Getter;
import net.lkrnac.blog.testing.mockbeanv2.beans.Addre... | Change type of delegate
| src/test/java/net/lkrnac/blog/testing/mockbeanv2/aoptesting/AddressDaoMock.java | Change type of delegate | <ide><path>rc/test/java/net/lkrnac/blog/testing/mockbeanv2/aoptesting/AddressDaoMock.java
<ide> @Profile("AddressService-aop-mock-test")
<ide> public class AddressDaoMock extends AddressDao{
<ide> @Getter
<del> private AddressDaoMock mockDelegate = Mockito.mock(AddressDaoMock.class);
<add> private AddressDao mockDeleg... | |
Java | mit | 6e14b241448e444f80b6d493be50d6246680c64f | 0 | ngageoint/geopackage-java,ngageoint/geopackage-java | package mil.nga.geopackage.test.extension.properties;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import junit.framework.TestCase;
import mil.nga.geopackage.extension.Extensions;
import mil.nga.geopackage.extension.properties.PropertiesExtension;
import mil.nga.geopac... | src/test/java/mil/nga/geopackage/test/extension/properties/PropertiesExtensionTest.java | package mil.nga.geopackage.test.extension.properties;
import java.util.HashSet;
import java.util.Set;
import junit.framework.TestCase;
import mil.nga.geopackage.extension.Extensions;
import mil.nga.geopackage.extension.properties.PropertiesExtension;
import mil.nga.geopackage.extension.properties.PropertyNames;
impor... | property name tests
| src/test/java/mil/nga/geopackage/test/extension/properties/PropertiesExtensionTest.java | property name tests | <ide><path>rc/test/java/mil/nga/geopackage/test/extension/properties/PropertiesExtensionTest.java
<ide> package mil.nga.geopackage.test.extension.properties;
<ide>
<ide> import java.util.HashSet;
<add>import java.util.List;
<ide> import java.util.Set;
<add>import java.util.UUID;
<ide>
<ide> import junit.framework.Tes... | |
Java | apache-2.0 | 509284ece36c1ccf07dd72e7cfad2a832f307f76 | 0 | markwoon/pathvisio,markwoon/pathvisio,PathVisio/pathvisio,PathVisio/pathvisio,markwoon/pathvisio,PathVisio/pathvisio,PathVisio/pathvisio,markwoon/pathvisio | // PathVisio,
// a tool for data visualization and analysis using Biological Pathways
// Copyright 2006-2009 BiGCaT Bioinformatics
//
// 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
//
// ht... | src/core/org/pathvisio/view/GenMAPPShapes.java | // PathVisio,
// a tool for data visualization and analysis using Biological Pathways
// Copyright 2006-2009 BiGCaT Bioinformatics
//
// 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
//
// ht... | Golgi, ER and SR shapes updated, now with fewer waypoints. | src/core/org/pathvisio/view/GenMAPPShapes.java | Golgi, ER and SR shapes updated, now with fewer waypoints. | <ide><path>rc/core/org/pathvisio/view/GenMAPPShapes.java
<ide> path.closePath();
<ide> break;
<ide> case SARCOPLASMICRETICULUM:
<del> path.moveTo (83.84f, 11.06f);
<del> path.curveTo (55.38f, 11.53f, 34.05f , 35.28f, 27.55f ,
<del> 59.42f);
<del> path.curveTo (21.34f, 79.07f, 24.23f , 100.01f, 31.18f ,... | |
Java | mit | 69d5760da1f145c58520b6610595056aee27f45f | 0 | echohaha/XChatMessageView | package com.kaneki.xchatmessageview.base;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import com.kaneki.xch... | library/src/main/java/com/kaneki/xchatmessageview/base/XChatMessageView.java | package com.kaneki.xchatmessageview.base;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import com.kaneki.xch... | yueqian:增加注释
| library/src/main/java/com/kaneki/xchatmessageview/base/XChatMessageView.java | yueqian:增加注释 | <ide><path>ibrary/src/main/java/com/kaneki/xchatmessageview/base/XChatMessageView.java
<ide> isLoadMore = false;
<ide> }
<ide>
<add> /**
<add> * remove the message on the XChatMessageView, the view should come from the XViewHolder callback.
<add> * @param view
<add> */
<ide> public void ... | |
Java | apache-2.0 | e26e9a00dbd1a56c9d578b381b5b547f8538fb4d | 0 | wcm-io-caravan/caravan-io,wcm-io-caravan/caravan-io,wcm-io-caravan/caravan-io | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2015 wcm.io
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | http/src/main/java/io/wcm/caravan/io/http/impl/servletclient/HttpServletResponseMapper.java | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2015 wcm.io
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | if the content length is known in advance then resize the ByteArrayOutputSteram accordingly
| http/src/main/java/io/wcm/caravan/io/http/impl/servletclient/HttpServletResponseMapper.java | if the content length is known in advance then resize the ByteArrayOutputSteram accordingly | <ide><path>ttp/src/main/java/io/wcm/caravan/io/http/impl/servletclient/HttpServletResponseMapper.java
<ide> @Override
<ide> public void setContentLength(int len) {
<ide> setIntHeader("Content-Length", len);
<add>
<add> // if the content length is known in advance then resize the ByteArrayOutputSteram accordi... | |
Java | mit | 871f80e7652b3675e40c02bb7b606f303a391dae | 0 | Loscillo/DACv2-temp | package fr.aumgn.dac2.game;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.event.player.Play... | src/main/java/fr/aumgn/dac2/game/GameListener.java | package fr.aumgn.dac2.game;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.event.player.Play... | Protection contre la téléportation
| src/main/java/fr/aumgn/dac2/game/GameListener.java | Protection contre la téléportation | <ide><path>rc/main/java/fr/aumgn/dac2/game/GameListener.java
<ide> import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
<ide> import org.bukkit.event.player.PlayerMoveEvent;
<ide> import org.bukkit.event.player.PlayerQuitEvent;
<add>import org.bukkit.event.player.PlayerTeleportEvent;
<add>import org.bukkit.eve... | |
JavaScript | mit | 90622a20af55c56d61238ca49e20207c4f83ac50 | 0 | therewasaguy/p5.js-sound,therewasaguy/p5.js-sound,processing/p5.js-sound,processing/p5.js-sound | define(function (require) {
'use strict';
var p5sound = require('master');
require('sndcore');
/**
* A gain node is usefull to set the relative volume of sound.
* It's typically used to build mixers.
*
* @class p5.Gain
* @constructor
* @example
* <div><code>
*
... | src/gain.js | define(function (require) {
'use strict';
var p5sound = require('master');
require('sndcore');
/**
* A gain node is usefull to set the relative volume of sound.
* It's typically used to build mixers.
*
* @class p5.Gain
* @constructor
* @example
* <div><code>
*
* ... | convert tabs to spaces
| src/gain.js | convert tabs to spaces | <ide><path>rc/gain.js
<ide>
<ide> /**
<ide> * A gain node is usefull to set the relative volume of sound.
<del> * It's typically used to build mixers.
<add> * It's typically used to build mixers.
<ide> *
<ide> * @class p5.Gain
<ide> * @constructor
<ide> * @example
<ide> *... | |
Java | apache-2.0 | 764e3634229b4cb50868c14d8f1f486a6ca94545 | 0 | webanno/webanno,webanno/webanno,webanno/webanno,webanno/webanno | /*
* Copyright 2015
* Ubiquitous Knowledge Processing (UKP) Lab and FG Language Technology
* Technische Universität Darmstadt
*
* 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
*
* htt... | webanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/annotation/component/AnnotationDetailEditorPanel.java | /*
* Copyright 2015
* Ubiquitous Knowledge Processing (UKP) Lab and FG Language Technology
* Technische Universität Darmstadt
*
* 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
*
* htt... | #430 - Refactoring project structure
- Correcting comment text
| webanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/annotation/component/AnnotationDetailEditorPanel.java | #430 - Refactoring project structure - Correcting comment text | <ide><path>ebanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/annotation/component/AnnotationDetailEditorPanel.java
<ide>
<ide> protected void onChange(AjaxRequestTarget aTarget, ActionContext aBModel)
<ide> {
<del> // Overriden in BratAnnotator
<add> // Overriden in CurationPanel
<... | |
JavaScript | mit | 3cfe2c574ce5644f24caf9a82d45df60bca54f16 | 0 | jnwatts/rallycomputer,jnwatts/rallycomputer | function Rally() {
this.init();
this.ui = new RallyUI(this);
}
Rally.prototype = {
instructions: [ ],
instruction_map: new Map(),
init: function() {
var db = this.db = new Dexie('MyDatabase');
// Define a schema
db.version(1).stores({
instructions: [ 'id++', '... | rally.js | function Rally() {
this.init();
this.ui = new RallyUI(this);
}
Rally.prototype = {
instructions: [ ],
instruction_map: new Map(),
init: function() {
var db = this.db = new Dexie('MyDatabase');
// Define a schema
db.version(1).stores({
instructions: [ 'id++', '... | Rally: Remove unused parseTime
| rally.js | Rally: Remove unused parseTime | <ide><path>ally.js
<ide> return result;
<ide> }
<ide>
<del>RallyInstruction.prototype.parseTime = function(v) {
<del> var result = moment(v, ["h-m-s", "h-m", "H-m A"]);
<del> if (result.isValid()) {
<del> return result.valueOf();
<del> } else {
<del> return null;
<del> }
<del>}
<del>
<ide... | |
Java | bsd-3-clause | 902b828958e4c4d5aa33ed18430573ddabc7ddce | 0 | wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy,wdv4758h/ZipPy | /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/info/elem/InlineableGraph.java | /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | [inliner] trickle up, thus making more visible, graph copying
| graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/info/elem/InlineableGraph.java | [inliner] trickle up, thus making more visible, graph copying | <ide><path>raal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/info/elem/InlineableGraph.java
<ide> private final StructuredGraph graph;
<ide>
<ide> public InlineableGraph(final ResolvedJavaMethod method, final Invoke invoke, final HighTierContext context, CanonicalizerPhase canonic... | |
Java | apache-2.0 | 6ebb06e0617fc677642c9c3df7588fb6023ec4ab | 0 | rPraml/org.openntf.domino,OpenNTF/org.openntf.domino,mariusj/org.openntf.domino,OpenNTF/org.openntf.domino,mariusj/org.openntf.domino,OpenNTF/org.openntf.domino,rPraml/org.openntf.domino,rPraml/org.openntf.domino,mariusj/org.openntf.domino,rPraml/org.openntf.domino | /*
* Copyright 2013
*
* @author Devin S. Olson (dolson@czarnowski.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
*
* Un... | org.openntf.domino/src/org/openntf/arpa/ISO.java | /*
* Copyright 2013
*
* @author Devin S. Olson (dolson@czarnowski.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
*
* Un... | Added startsWithIgnoreCase() method, updated toString() method, completed javadoc comments.
| org.openntf.domino/src/org/openntf/arpa/ISO.java | Added startsWithIgnoreCase() method, updated toString() method, completed javadoc comments. | <ide><path>rg.openntf.domino/src/org/openntf/arpa/ISO.java
<ide> private String _country;
<ide> private String _code3;
<ide>
<add> @Override
<add> public String toString() {
<add> return ISO3166.class.getName() + ": " + this.getCode2() + "(\"" + this.getCode3() + "\", \"" + this.getCountry() + "\")";
<add> }
... | |
JavaScript | mit | f882cfbb84b874c05a290e577558e1ff824c342a | 0 | erasme/erajs | Ui.Linkable.extend('Ui.LinkButton',
/** @lends Ui.LinkButton# */
{
graphic: undefined,
/**
* @constructs
* @class A LinkButton is a button that is an hyper link
* @extends Ui.Linkable
* @param {String} [config.text] Button's text
* @param {String} [config.icon] Icon name
* @param {Stri... | era/ui/linkbutton.js | Ui.Linkable.extend('Ui.LinkButton',
/** @lends Ui.LinkButton# */
{
graphic: undefined,
/**
* @constructs
* @class A LinkButton is a button that is an hyper link
* @extends Ui.Linkable
* @param {String} [config.text] Button's text
* @param {String} [config.icon] Icon name
* @param {Stri... | add iconSize style for Ui.LinkButton
| era/ui/linkbutton.js | add iconSize style for Ui.LinkButton | <ide><path>ra/ui/linkbutton.js
<ide> onStyleChange: function() {
<ide> this.graphic.setRadius(this.getStyleProperty('radius'));
<ide> this.graphic.setSpacing(this.getStyleProperty('spacing'));
<add> this.graphic.setIconSize(this.getStyleProperty('iconSize'));
<ide> if(this.getHasFocus())
<ide> this.graphic.s... | |
Java | mit | 28cdd4ab58f002f8d6986e9d339dc498b7157aef | 0 | DougEdey/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server | package com.sb.elsinore;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
/**
*
*
*/
public class St... | src/com/sb/elsinore/StatusRecorder.java | package com.sb.elsinore;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
/**... | Update StatusRecorder to be cleaner for code styles
| src/com/sb/elsinore/StatusRecorder.java | Update StatusRecorder to be cleaner for code styles | <ide><path>rc/com/sb/elsinore/StatusRecorder.java
<ide> import java.io.IOException;
<ide> import java.text.SimpleDateFormat;
<ide> import java.util.Date;
<del>import java.util.HashMap;
<ide> import java.util.Iterator;
<ide> import org.json.simple.JSONArray;
<ide> import org.json.simple.JSONObject;
<ide> *
<ide> *
<id... | |
JavaScript | mit | 960dd3a9d8d7e8c93332ccda190230ce9fffcb3e | 0 | twwongaq/teamform-seed,twwongaq/teamform-seed,twwongaq/teamform-seed | describe('teamform-admin-app', function() {
//
// Example: A test case of getRandomIntInclusive
//
describe('change size test', function() {
it('test change size', function() {
$scope.param.minTeamSize = 2;
$scope.param.maxTeamSize = 8;
$scope.changeMinTeamSize(3);
$scope.c... | app/unit_tests/test_admin.js | describe('teamform-admin-app', function() {
//
// Example: A test case of getRandomIntInclusive
//
var $scope;
describe('change min size test', function() {
it('test change size', function() {
var value = 2;
$scope.changeMinTeamSize(3);
expect( $scope.param.minTeamSize ).toEqual(5);... | Change size test for admin page
| app/unit_tests/test_admin.js | Change size test for admin page | <ide><path>pp/unit_tests/test_admin.js
<ide> //
<ide> // Example: A test case of getRandomIntInclusive
<ide> //
<del> var $scope;
<del> describe('change min size test', function() {
<add> describe('change size test', function() {
<ide>
<ide> it('test change size', function() {
<del> var value = 2;... | |
Java | bsd-3-clause | 2ddac22c7127f2e3c768d33c10f177621152dd9c | 0 | FieldFlux/orbit,DanielSperry/orbit,JoeHegarty/orbit,quilombodigital/orbit | /*
Copyright (C) 2015 Electronic Arts Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | actors/extensions/ldap/src/main/java/com/ea/orbit/actors/extensions/ldap/LdapStorageExtension.java | /*
Copyright (C) 2015 Electronic Arts Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | Fixing ldap get fields.
| actors/extensions/ldap/src/main/java/com/ea/orbit/actors/extensions/ldap/LdapStorageExtension.java | Fixing ldap get fields. | <ide><path>ctors/extensions/ldap/src/main/java/com/ea/orbit/actors/extensions/ldap/LdapStorageExtension.java
<ide> Map<String, Field> map = new HashMap<>();
<ide>
<ide> List<Field> fields = new ArrayList<>();
<del> for (Class c = clazz; c != null && c != Object.class; c = clazz.getSuperclass())
... | |
JavaScript | mit | 15c9f2976864250a9ac7b8759d81d7b50be71031 | 0 | tyanas/basisjs,fateevv/basisjs,fateevv/basisjs,fateevv/basisjs,tyanas/basisjs,smelukov/basisjs,basisjs/basisjs,istrel/basisjs,basisjs/basisjs,basisjs/basisjs,smelukov/basisjs,istrel/basisjs,istrel/basisjs,tyanas/basisjs,smelukov/basisjs |
basis.require('basis.event');
basis.require('basis.dom.event');
basis.require('basis.cssom');
basis.require('basis.ui');
basis.require('basis.animation');
/**
* @see ./demo/defile/scroller.html
* @namespace basis.ui.scroller
*/
var namespace = this.path;
//
// import names
//
var Event... | src/basis/ui/scroller.js |
basis.require('basis.event');
basis.require('basis.dom');
basis.require('basis.dom.event');
basis.require('basis.cssom');
basis.require('basis.ui');
basis.require('basis.animation');
/**
* @see ./demo/defile/scroller.html
* @namespace basis.ui.scroller
*/
var namespace = this.path;
//
// ... | remove basis.dom dependancy
| src/basis/ui/scroller.js | remove basis.dom dependancy | <ide><path>rc/basis/ui/scroller.js
<ide>
<ide> basis.require('basis.event');
<del> basis.require('basis.dom');
<ide> basis.require('basis.dom.event');
<ide> basis.require('basis.cssom');
<ide> basis.require('basis.ui');
<ide> // import names
<ide> //
<ide>
<del> var DOM = basis.dom;
<ide> var Event = ... | |
JavaScript | apache-2.0 | 4e74f4986abbb076a9007579db3ae821690f5ea2 | 0 | eregn001/TPSEricTest1,eregn001/TPSEricTest1,Esri/offline-editor-js,Esri/offline-editor-js,guo7711/offline-editor-js,EnzeZY/offline-editor-js,EnzeZY/offline-editor-js,plaxdan/offline-editor-js,EnzeZY/offline-editor-js,andygup/offline-editor-js,Ricardh522/offline-editor-js,eregn001/test5,guo7711/offline-editor-js,degathe... | "use strict"
var map;
var basemapLayer;
var graphics;
var cancelRequested, startTime;
var showTiles = false;
require(["esri/map",
"esri/layers/GraphicsLayer", "esri/graphic", "esri/symbols/SimpleFillSymbol",
"esri/dijit/Scalebar",
"esri/arcgis/utils",
"esri/geometry",
"dojo/dom",
"dojo/on",
"dojo/query", ... | tiles/main.js | "use strict"
var map;
var basemapLayer;
var graphics;
var cancelRequested, startTime;
var showTiles = false;
require(["esri/map",
"esri/layers/GraphicsLayer", "esri/graphic", "esri/symbols/SimpleFillSymbol",
"esri/dijit/Scalebar",
"esri/arcgis/utils",
"esri/geometry",
"dojo/dom",
"dojo/on",
"dojo/query", ... | limit levels | tiles/main.js | limit levels | <ide><path>iles/main.js
<ide> var minLevel = parseInt(dojo.byId('minLevel').value);
<ide> var maxLevel = parseInt(dojo.byId('maxLevel').value);
<ide>
<del> if( maxLevel > zoomLevel + 3)
<del> {
<del> maxLevel = zoomLevel + 3;
<add> if( maxLevel > zoomLevel + 3 || maxLevel > basemapLayer.maxLevel)
<ad... | |
Java | mit | f8f25c31be7205906c92ae5b8ed5ada7e56efe4f | 0 | my7seven/jenkins,shahharsh/jenkins,csimons/jenkins,Ykus/jenkins,chbiel/jenkins,duzifang/my-jenkins,hemantojhaa/jenkins,MichaelPranovich/jenkins_sc,godfath3r/jenkins,noikiy/jenkins,6WIND/jenkins,yonglehou/jenkins,mrooney/jenkins,protazy/jenkins,jcarrothers-sap/jenkins,MadsNielsen/jtemp,oleg-nenashev/jenkins,luoqii/jenki... | package hudson;
import org.jvnet.hudson.test.HudsonTestCase;
import org.jvnet.hudson.test.recipes.WithPlugin;
import org.apache.commons.io.FileUtils;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlButton;
import jav... | test/src/test/java/hudson/PluginManagerTest.java | package hudson;
import org.jvnet.hudson.test.HudsonTestCase;
import org.jvnet.hudson.test.recipes.WithPlugin;
import org.apache.commons.io.FileUtils;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlButton;
import jav... | doc improvement
git-svn-id: 28f34f9aa52bc55a5ddd5be9e183c5cccadc6ee4@13934 71c3de6d-444a-0410-be80-ed276b4c234a
| test/src/test/java/hudson/PluginManagerTest.java | doc improvement | <ide><path>est/src/test/java/hudson/PluginManagerTest.java
<ide> assertTrue( new File(hudson.getRootDir(),"plugins/tasks.hpi").exists() );
<ide> }
<ide>
<add> /**
<add> * Tests the effect of {@link WithPlugin}.
<add> */
<ide> @WithPlugin("tasks.hpi")
<ide> public void testWithRecipe() th... | |
Java | apache-2.0 | 82f4d5467d657a6555a953a8aa503e8da4412118 | 0 | liaozhoubei/NewWeather | package com.bei.newweather;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.preference.PreferenceManager;
import android.text.format.Time;
import com.bei.newweather.sync.SunshineSyncAdapter;
import java.t... | app/src/main/java/com/bei/newweather/Utility.java | package com.bei.newweather;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.preference.PreferenceManager;
import android.text.format.Time;
import com.bei.newweather.sync.SunshineSyncAdapter;
import java.t... | add custom View
| app/src/main/java/com/bei/newweather/Utility.java | add custom View | <ide><path>pp/src/main/java/com/bei/newweather/Utility.java
<ide> import java.text.DateFormat;
<ide> import java.text.SimpleDateFormat;
<ide> import java.util.Date;
<add>import java.util.Locale;
<ide>
<ide> /**
<ide> * Created by Administrator on 2016/10/14.
<ide> }
<ide>
<ide> public static String formatTem... | |
Java | apache-2.0 | 21427f5345603096e65357d042f66104d49578d7 | 0 | tateshitah/jspwiki,tateshitah/jspwiki,tateshitah/jspwiki,tateshitah/jspwiki | /*
JSPWiki - a JSP-based WikiWiki clone.
Copyright (C) 2001-2002 Janne Jalkanen (Janne.Jalkanen@iki.fi)
This program 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... | src/com/ecyrd/jspwiki/xmlrpc/RPCServlet.java | /*
JSPWiki - a JSP-based WikiWiki clone.
Copyright (C) 2001-2002 Janne Jalkanen (Janne.Jalkanen@iki.fi)
This program 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... | Added new initialization model based around WikiRPCHandler.
Added metaWeblogAPI.
git-svn-id: 6c0206e3b9edd104850923da33ebd73b435d374d@622683 13f79535-47bb-0310-9956-ffa450edef68
| src/com/ecyrd/jspwiki/xmlrpc/RPCServlet.java | Added new initialization model based around WikiRPCHandler. Added metaWeblogAPI. | <ide><path>rc/com/ecyrd/jspwiki/xmlrpc/RPCServlet.java
<ide>
<ide> Category log = Category.getInstance( RPCServlet.class );
<ide>
<add> public void initHandler( String prefix, String handlerName )
<add> throws ClassNotFoundException,
<add> InstantiationException,
<add> Illeg... | |
JavaScript | mit | 755ab7e6c48cf76f534feec22cd5032e9bc36424 | 0 | gszabo/poker-player-happy-friday | 'use strict';
class Player {
constructor() {
this.VERSION = "iPlayer 2.2";
}
bet_request(game_state) {
var currentPlayer = game_state.players[game_state.in_action];
var cards = [].concat(currentPlayer.hole_cards).concat(game_state.community_cards);
var result = cards.reduce(function (previousV... | player.js | 'use strict';
class Player {
constructor() {
this.VERSION = "iPlayer 2.1";
}
bet_request(game_state) {
var currentPlayer = game_state.players[game_state.in_action];
var cards = [].concat(currentPlayer.hole_cards).concat(game_state.community_cards);
var result = cards.reduce(function (previousV... | increase version
| player.js | increase version | <ide><path>layer.js
<ide>
<ide> class Player {
<ide> constructor() {
<del> this.VERSION = "iPlayer 2.1";
<add> this.VERSION = "iPlayer 2.2";
<ide> }
<ide>
<ide> bet_request(game_state) { | |
Java | apache-2.0 | 19c81431363609a7ddc735b61d7912be3d8531ac | 0 | RackerWilliams/xercesj,ronsigal/xerces,ronsigal/xerces,jimma/xerces,jimma/xerces,ronsigal/xerces,RackerWilliams/xercesj,jimma/xerces,RackerWilliams/xercesj | /*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sourc... | src/org/apache/xerces/dom/DeferredDocumentImpl.java | /*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sourc... | got rid of some unused code
git-svn-id: 21df804813e9d3638e43477f308dd0be51e5f30f@315435 13f79535-47bb-0310-9956-ffa450edef68
| src/org/apache/xerces/dom/DeferredDocumentImpl.java | got rid of some unused code | <ide><path>rc/org/apache/xerces/dom/DeferredDocumentImpl.java
<ide> int chunk = childIndex >> CHUNK_SHIFT;
<ide> int index = childIndex & CHUNK_MASK;
<ide> setChunkIndex(fNodeLastChild, childIndex, pchunk, pindex);
<del>
<del> int prev = childIndex;
<del> while (prev != -1) {
<del>... | |
Java | apache-2.0 | dc838449a4e698c3aaf7725a9bdee35bd9195354 | 0 | jagguli/intellij-community,dslomov/intellij-community,allotria/intellij-community,michaelgallacher/intellij-community,idea4bsd/idea4bsd,ThiagoGarciaAlves/intellij-community,slisson/intellij-community,amith01994/intellij-community,retomerz/intellij-community,lucafavatella/intellij-community,vladmm/intellij-community,pwo... | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/tree/nodes/XValueNodeImpl.java | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Prevent CCE.
| platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/tree/nodes/XValueNodeImpl.java | Prevent CCE. | <ide><path>latform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/tree/nodes/XValueNodeImpl.java
<ide> /**
<ide> * @author nik
<ide> */
<del>public class XValueNodeImpl extends XValueContainerNode<XValue> implements XValueNode, XCompositeNode, XValueNodePresentationConfigurator.ConfigurableXValueNode {
<add>public... | |
Java | agpl-3.0 | 4c307e97a167a0c84ac747b5eb602d1bc97aeda7 | 0 | PeterWithers/temp-to-delete1,KinshipSoftware/KinOathKinshipArchiver,PeterWithers/temp-to-delete1,KinshipSoftware/KinOathKinshipArchiver | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nl.mpi.kinnate.gedcomimport;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
... | src/main/java/nl/mpi/kinnate/gedcomimport/GedcomImporter.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nl.mpi.kinnate.gedcomimport;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
... | Added additional sample gecom files and made the import more flexible
| src/main/java/nl/mpi/kinnate/gedcomimport/GedcomImporter.java | Added additional sample gecom files and made the import more flexible | <ide><path>rc/main/java/nl/mpi/kinnate/gedcomimport/GedcomImporter.java
<ide> */
<ide> public class GedcomImporter {
<ide>
<del> private int inputLineCounter;
<del> private int currntLineCounter;
<del> private int currentProgressPercent = 0;
<add> private int inputLineCount;
<ide> private String input... | |
Java | mit | 0784ab35482a2a93992bbce60065b66cd785d169 | 0 | aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.HierarchyEvent;
import java.awt.event.HierarchyListener;
import java.awt.geom.AffineTransform;
import java.awt.geom.GeneralPath;
import java.beans.PropertyChangeEvent;
import jav... | StripedProgressBar/src/java/example/MainPanel.java | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.HierarchyEvent;
import java.awt.event.HierarchyListener;
import java.awt.geom.AffineTransform;
import java.awt.geom.GeneralPath;
import java.beans.PropertyChangeEvent;
import jav... | refactor: use Rectangle#getMaxY() instead of r.y + r.height
| StripedProgressBar/src/java/example/MainPanel.java | refactor: use Rectangle#getMaxY() instead of r.y + r.height | <ide><path>tripedProgressBar/src/java/example/MainPanel.java
<ide> GeneralPath p = new GeneralPath();
<ide> if (dir) {
<ide> p.moveTo(boxRect.x, boxRect.y);
<del> p.lineTo(boxRect.x + w * .5f, boxRect.y + boxRect.height);
<del> p.lineTo(boxRect.x + w, boxRect.y + boxRect.height);
<del>... | |
Java | apache-2.0 | d6c5335e12d7fb4b567696f2db1785a7fa8c0fe6 | 0 | opentable/otj-jaxrs,sannessa/otj-jaxrs | /*
* 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
* distributed u... | shared/src/main/java/com/opentable/jaxrs/StreamedJsonResponseConverter.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
* distributed u... | Fix Jackson deprecation warnings
| shared/src/main/java/com/opentable/jaxrs/StreamedJsonResponseConverter.java | Fix Jackson deprecation warnings | <ide><path>hared/src/main/java/com/opentable/jaxrs/StreamedJsonResponseConverter.java
<ide> expect(jp, jp.nextToken(), JsonToken.START_OBJECT);
<ide> expect(jp, jp.nextToken(), JsonToken.FIELD_NAME);
<ide> if (!"results".equals(jp.getCurrentName())) {
<del> throw new JsonParseExceptio... | |
Java | mit | ca310d16574e61524e35605bae61717741324ff8 | 0 | servicosgoval/editor-de-servicos,servicosgoval/editor-de-servicos,servicosgovbr/editor-de-servicos,servicosgovbr/editor-de-servicos,servicosgovbr/editor-de-servicos,servicosgoval/editor-de-servicos,servicosgovbr/editor-de-servicos,servicosgoval/editor-de-servicos | package br.gov.servicos.editor.xml;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import lombok.experimental.FieldDefaults;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Element;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Optional;
import java.util.function.... | src/main/java/br/gov/servicos/editor/xml/ArquivoXml.java | package br.gov.servicos.editor.xml;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import lombok.experimental.FieldDefaults;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Element;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Optional;
import java.util.function.... | Usa encoding default
| src/main/java/br/gov/servicos/editor/xml/ArquivoXml.java | Usa encoding default | <ide><path>rc/main/java/br/gov/servicos/editor/xml/ArquivoXml.java
<ide> import java.util.function.Function;
<ide>
<ide> import static java.lang.Boolean.parseBoolean;
<add>import static java.nio.charset.Charset.defaultCharset;
<ide> import static java.util.Collections.emptyList;
<ide> import static java.util.Optional.... | |
JavaScript | agpl-3.0 | 41df5dc1b692571b7b55b50f88beb3fdf7b6e0d3 | 0 | vladm3/mwEmbed,kaltura/mwEmbed,joanpuigsanz/mwEmbed,kaltura/mwEmbed,SVSG/mwEmbed,kaltura/mwEmbed,FlixMaster/mwEmbed,bordar/mwEmbed,DBezemer/mwEmbed,bordar/mwEmbed,omridevk/mwEmbed,joanpuigsanz/mwEmbed,panda-os/mwEmbed,alexmilk/mwEmbed,omridevk/mwEmbed,abaylis/mwEmbed,SVSG/mwEmbed,alexmilk/mwEmbed,joanpuigsanz/mwEmbed,D... | /**
* A media element corresponding to a <video> element.
*
* It is implemented as a collection of mediaSource objects. The media sources
* will be initialized from the <video> element, its child <source> elements,
* and/or the ROE file referenced by the <video> element.
*
* @param {element}
* videoElement... | modules/EmbedPlayer/mw.MediaElement.js | /**
* A media element corresponding to a <video> element.
*
* It is implemented as a collection of mediaSource objects. The media sources
* will be initialized from the <video> element, its child <source> elements,
* and/or the ROE file referenced by the <video> element.
*
* @param {element}
* videoElement... | bandwith pref will always set source to closest bandwith allocation while not going over EmbedPlayer.UserBandwidth
git-svn-id: c0b6191cc07a4792c57db861536a2f9523dc26f7@3746 b58a29cf-3064-46da-94c6-1c29cc75c8e5
| modules/EmbedPlayer/mw.MediaElement.js | bandwith pref will always set source to closest bandwith allocation while not going over EmbedPlayer.UserBandwidth | <ide><path>odules/EmbedPlayer/mw.MediaElement.js
<ide> }
<ide> });
<ide>
<del> //Set via user bandwith pref
<add> //Set via user bandwith pref will always set source to closest bandwith allocation while not going over EmbedPlayer.UserBandwidth
<ide> if( $.cookie('EmbedPlayer.UserBandwidth') ){
<add> var c... | |
JavaScript | mit | a4a02b4cf02819a7cff446a632769fd1bf378c27 | 0 | ndm-io/wigwam-design-coming-soon,ndm-io/wigwam-design-coming-soon,ndm-io/wigwam-design-coming-soon | const data = {
singleWords: {
english: {
design: "design",
styling: "styling",
style: "style",
digital: "digital",
services: "services",
bespoke: "bespoke",
decoration: "decoration",
enhancing: "enhancing",
... | src/scripts/translation/data/index.js | const data = {
singleWords: {
english: {
design: "design",
styling: "styling",
style: "style",
digital: "digital",
services: "services",
bespoke: "bespoke",
decoration: "decoration",
enhancing: "enhancing",
... | final changes ready for merge
| src/scripts/translation/data/index.js | final changes ready for merge | <ide><path>rc/scripts/translation/data/index.js
<ide> elleDecorMagazines: "cylchgronau elle decor",
<ide> photosTaken: "lluniau a dynnwyd",
<ide> happyClients: "cleientiaid yn hapus",
<del> bespokeBody: "Os yw eich ffocws ar ystafell unigol, byddwn yn gweithio gyda chi i g... | |
Java | mit | bcb21292835ff867e984af26fcfa8852c1ff829a | 0 | turbolinks/turbolinks-android,gavinliu/turbolinks-android,turbolinks/turbolinks-android,timoschloesser/turbolinks-android,turbolinks/turbolinks-android,timoschloesser/turbolinks-android,turbolinks/turbolinks-android,timoschloesser/turbolinks-android,timoschloesser/turbolinks-android,gavinliu/turbolinks-android,gavinliu... | package com.basecamp.turbolinks;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Handler;
import android.util.Attr... | turbolinks/src/main/java/com/basecamp/turbolinks/TurbolinksView.java | package com.basecamp.turbolinks;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Handler;
import android.util.Attr... | Update Java Docs
| turbolinks/src/main/java/com/basecamp/turbolinks/TurbolinksView.java | Update Java Docs | <ide><path>urbolinks/src/main/java/com/basecamp/turbolinks/TurbolinksView.java
<ide> * <p>Attach the shared webView to the TurbolinksView.</p>
<ide> *
<ide> * @param webView The shared webView.
<add> * @param swipeRefreshLayout parent view of webView
<ide> * @param screenshotsEnabled Indicates w... | |
Java | apache-2.0 | error: pathspec 'lineagehw/org/lineage/hardware/SunlightEnhancement.java' did not match any file(s) known to git
| 686fd9ad65a1c5da79c3bd9f836a128e25acf0c5 | 1 | TeamNexus/android_device_samsung_zero-common,TeamNexus/android_device_samsung_zero-common,TeamNexus/android_device_samsung_zero-common,TeamNexus/android_device_samsung_zero-common,TeamNexus/android_device_samsung_zero-common | /*
* Copyright (C) 2014 The CyanogenMod Project
* Copyright (C) 2018 The LineageOS 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/licen... | lineagehw/org/lineage/hardware/SunlightEnhancement.java | zero: lineahehw: add SunlightEnhancement
Change-Id: I63292064fee0180f3620c59b19a648e11738d35b
| lineagehw/org/lineage/hardware/SunlightEnhancement.java | zero: lineahehw: add SunlightEnhancement | <ide><path>ineagehw/org/lineage/hardware/SunlightEnhancement.java
<add>/*
<add> * Copyright (C) 2014 The CyanogenMod Project
<add> * Copyright (C) 2018 The LineageOS Project
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the Li... | |
Java | bsd-3-clause | b2d083666c08f1380922f4708a62de79958340f6 | 0 | NCIP/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers,CBIIT/caaers,CBIIT/caaers,CBIIT/caaers,NCIP/caaers,NCIP/caaers | package gov.nih.nci.cabig.caaers.web.participant;
import gov.nih.nci.cabig.caaers.domain.*;
import gov.nih.nci.cabig.caaers.domain.repository.OrganizationRepository;
import gov.nih.nci.cabig.caaers.utils.ConfigProperty;
import gov.nih.nci.cabig.caaers.utils.Lov;
import gov.nih.nci.cabig.caaers.web.ListValues;
i... | projects/web/src/main/java/gov/nih/nci/cabig/caaers/web/participant/CreateParticipantTab.java | package gov.nih.nci.cabig.caaers.web.participant;
import gov.nih.nci.cabig.caaers.domain.*;
import gov.nih.nci.cabig.caaers.domain.repository.OrganizationRepository;
import gov.nih.nci.cabig.caaers.utils.ConfigProperty;
import gov.nih.nci.cabig.caaers.utils.Lov;
import gov.nih.nci.cabig.caaers.web.ListValues;
i... |
SVN-Revision: 6827
| projects/web/src/main/java/gov/nih/nci/cabig/caaers/web/participant/CreateParticipantTab.java | <ide><path>rojects/web/src/main/java/gov/nih/nci/cabig/caaers/web/participant/CreateParticipantTab.java
<ide> repeatingFieldGroupFactoryOrg.addField(InputFieldFactory.createSelectField("type", "Identifier Type", true, options));
<ide> repeatingFieldGroupFactorySys.addField(InputFieldFactory.createSelect... | ||
Java | apache-2.0 | a8671b2a7b0c0fa6e5783fe082eea6f5a92a47df | 0 | HanSolo/Medusa | /*
* Copyright (c) 2016 by Gerrit Grunwald
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | src/main/java/eu/hansolo/medusa/skins/TileTextKpiSkin.java | /*
* Copyright (c) 2016 by Gerrit Grunwald
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Moved back from TextFlow to manual placement and fixed problem with negative sections and values
| src/main/java/eu/hansolo/medusa/skins/TileTextKpiSkin.java | Moved back from TextFlow to manual placement and fixed problem with negative sections and values | <ide><path>rc/main/java/eu/hansolo/medusa/skins/TileTextKpiSkin.java
<ide> import javafx.scene.paint.Color;
<ide> import javafx.scene.shape.Rectangle;
<ide> import javafx.scene.text.Text;
<del>import javafx.scene.text.TextAlignment;
<del>import javafx.scene.text.TextFlow;
<ide>
<ide> import java.util.List;
<ide> impor... | |
Java | apache-2.0 | ff1d92e4d7a472fb54480e8c0368af54d04d1bfe | 0 | jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2 | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.core;
public class SingletonFactory
implements XFactory
{
XFactory delegate_ = null;
Object instance_;
public SingletonFactory(XFactory delegate) {
delegate_ = delegat... | src/foam/core/SingletonFactory.java | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.core;
public class SingletonFactory
implements XFactory
{
XFactory delegate_ = null;
Object instance_;
public SingletonFactory(XFactory delegate) {
delegate_ = delegat... | Make SingletonFactory thread safe.
| src/foam/core/SingletonFactory.java | Make SingletonFactory thread safe. | <ide><path>rc/foam/core/SingletonFactory.java
<ide> delegate_ = delegate;
<ide> }
<ide>
<del> public Object create(X x) {
<add> public synchronized Object create(X x) {
<ide> if ( delegate_ != null ) {
<ide> instance_ = delegate_.create(x);
<ide> delegate_ = null; | |
Java | apache-2.0 | 6e882f2455be7f3d99efd074e198ee881504ad49 | 0 | cobbzilla/cobbzilla-wizard | package org.cobbzilla.wizard.model.search;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import static org.cobbzilla.util.daemon.ZillaRuntime.empty;
import static ... | wizard-common/src/main/java/org/cobbzilla/wizard/model/search/SearchBound.java | package org.cobbzilla.wizard.model.search;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import static org.cobbzilla.util.daemon.ZillaRuntime.empty;
import static ... | move constructor to top
| wizard-common/src/main/java/org/cobbzilla/wizard/model/search/SearchBound.java | move constructor to top | <ide><path>izard-common/src/main/java/org/cobbzilla/wizard/model/search/SearchBound.java
<ide> @NoArgsConstructor @AllArgsConstructor @Accessors(chain=true)
<ide> public class SearchBound {
<ide>
<add> public SearchBound(SearchBound bound) { copy(this, bound); }
<add>
<ide> @Getter @Setter private String name;
... | |
Java | bsd-3-clause | bf8403d50c551dc1601ff455462a1fadbbe10223 | 0 | tangentforks/piccolo2d.java | /*
* Copyright (c) 2008-2009, Piccolo2D project, http://piccolo2d.org
* Copyright (c) 1998-2008, University of Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistri... | extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java | /*
* Copyright (c) 2008-2009, Piccolo2D project, http://piccolo2d.org
* Copyright (c) 1998-2008, University of Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistri... | Very strange slider behaviour in mac. Trying a fix.
git-svn-id: d976a3fa9fd96fa05fb374ae920b691bf85e82cb@552 aadc08cf-1350-0410-9b51-cf97fce99a1b
| extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java | Very strange slider behaviour in mac. Trying a fix. | <ide><path>xtras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java
<ide> Border border = component.getBorder();
<ide>
<ide> int width = (int) Math.max(component.getMinimumSize().width, component.getPreferredSize().width);
<del> int height = (int) Math.max(component.getMinimumSize().he... | |
Java | apache-2.0 | a4056d17e57e535855382779195d906f8f1ad34c | 0 | WestwoodCompSci/SkippableTV_15.4,WestwoodCompSci/SkippableTV_15.4 | package backend;
public class Episode {
int time;
int number;
int rating;
public Episode(int n, int t, int r)
{
time =t;
number = n;
rating =r;
}
public int getEpisodeTime()
{
return time;
}
public int getRating()
{
return rating;
}
public int getNumber()
{
return number;
}
}
| src/backend/Episode.java | package backend;
public class Episode {
int time;
int number;
int rating;
public Episode(int n, int t, int r)
{
time =t;
number = n;
rating =r;
}
public int getEpisodeTime()
{
return time;
}
}
| added get title/num methods correctly backend
| src/backend/Episode.java | added get title/num methods correctly backend | <ide><path>rc/backend/Episode.java
<ide> {
<ide> return time;
<ide> }
<add> public int getRating()
<add> {
<add> return rating;
<add> }
<add> public int getNumber()
<add> {
<add> return number;
<add> }
<ide> }
<ide> | |
Java | agpl-3.0 | 64628345f5c0a869e55bb79bc6f9a1c1b0dfc289 | 0 | duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test | e3e02e8e-2e5f-11e5-9284-b827eb9e62be | hello.java | e3da9eba-2e5f-11e5-9284-b827eb9e62be | e3e02e8e-2e5f-11e5-9284-b827eb9e62be | hello.java | e3e02e8e-2e5f-11e5-9284-b827eb9e62be | <ide><path>ello.java
<del>e3da9eba-2e5f-11e5-9284-b827eb9e62be
<add>e3e02e8e-2e5f-11e5-9284-b827eb9e62be | |
Java | apache-2.0 | eea252905140dbda01478690dc56bdc40183297c | 0 | OrangeRhymeLabs/HelenusDB,OrangeRhymeLabs/HelenusDB,OrangeRhymeLabs/OrangeDB,OrangeRhymeLabs/OrangeDB | /*
Copyright 2015, Strategic Gains, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | cassandra/src/main/java/com/orangerhymelabs/orangedb/cassandra/AbstractCassandraRepository.java | /*
Copyright 2015, Strategic Gains, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | Enhanced AbstractCassandraRepository.bindIdentity() and readAsync() to catch InvalidTypeException and handle it appropriately.
| cassandra/src/main/java/com/orangerhymelabs/orangedb/cassandra/AbstractCassandraRepository.java | Enhanced AbstractCassandraRepository.bindIdentity() and readAsync() to catch InvalidTypeException and handle it appropriately. | <ide><path>assandra/src/main/java/com/orangerhymelabs/orangedb/cassandra/AbstractCassandraRepository.java
<ide> import com.datastax.driver.core.ResultSetFuture;
<ide> import com.datastax.driver.core.Row;
<ide> import com.datastax.driver.core.Session;
<add>import com.datastax.driver.core.exceptions.InvalidTypeException;... | |
Java | agpl-3.0 | f7d5c4f3867e2e395a0528e888fa85bf52af5ea8 | 0 | akvo/akvo-flow,akvo/akvo-flow,akvo/akvo-flow,akvo/akvo-flow,akvo/akvo-flow | /*
* Copyright (C) 2010-2013 Stichting Akvo (Akvo Foundation)
*
* This file is part of Akvo FLOW.
*
* Akvo FLOW is free software: you can redistribute it and modify it under the terms of
* the GNU Affero General Public License (AGPL) as published by the Free Software Foundation,
* either version 3 of the Li... | GAE/src/org/waterforpeople/mapping/app/web/DataProcessorRestServlet.java | /*
* Copyright (C) 2010-2013 Stichting Akvo (Akvo Foundation)
*
* This file is part of Akvo FLOW.
*
* Akvo FLOW is free software: you can redistribute it and modify it under the terms of
* the GNU Affero General Public License (AGPL) as published by the Free Software Foundation,
* either version 3 of the Li... | Issue #396 - fix logic locale type reset | GAE/src/org/waterforpeople/mapping/app/web/DataProcessorRestServlet.java | Issue #396 - fix logic locale type reset | <ide><path>AE/src/org/waterforpeople/mapping/app/web/DataProcessorRestServlet.java
<ide> for (SurveyInstance si : siList) {
<ide> if (si.getSurveyedLocaleId() != null) {
<ide> SurveyedLocale sl = slDao.getByKey(si.getSurveyedLocaleId());
<del> if (sl != null && !sl.getLocaleType().equals(localeT... | |
Java | apache-2.0 | 1bc379fe4c0ac184284b29cb039e68ff5da2efd0 | 0 | vtkhir/kaa,sashadidukh/kaa,aglne/kaa,aglne/kaa,aglne/kaa,vtkhir/kaa,vtkhir/kaa,vtkhir/kaa,sashadidukh/kaa,vtkhir/kaa,sashadidukh/kaa,sashadidukh/kaa,aglne/kaa,vtkhir/kaa,aglne/kaa,sashadidukh/kaa,sashadidukh/kaa,sashadidukh/kaa,vtkhir/kaa,aglne/kaa,aglne/kaa,sashadidukh/kaa,vtkhir/kaa | /*
* Copyright 2014-2016 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | server/node/src/main/java/org/kaaproject/kaa/server/control/service/loadmgmt/dynamicmgmt/OperationsServerLoadHistory.java | /*
* Copyright 2014-2016 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Removed duplicates.
| server/node/src/main/java/org/kaaproject/kaa/server/control/service/loadmgmt/dynamicmgmt/OperationsServerLoadHistory.java | Removed duplicates. | <ide><path>erver/node/src/main/java/org/kaaproject/kaa/server/control/service/loadmgmt/dynamicmgmt/OperationsServerLoadHistory.java
<ide> public class OperationsServerLoadHistory {
<ide> private final List<OperationsServerLoad> history;
<ide> private long maxHistoryTimeLive = 600 * 1000;
<del>
<del> /**
<del> * ... | |
Java | apache-2.0 | e467f34cc1add0dba8f669aa49f1905245266b7c | 0 | chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq,chirino/activemq | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | activemq-unit-tests/src/test/java/org/apache/activemq/usecases/QueueZeroPrefetchLazyDispatchPriorityTest.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 ... | longer receive timeout on first message, intermittent ci failure
| activemq-unit-tests/src/test/java/org/apache/activemq/usecases/QueueZeroPrefetchLazyDispatchPriorityTest.java | longer receive timeout on first message, intermittent ci failure | <ide><path>ctivemq-unit-tests/src/test/java/org/apache/activemq/usecases/QueueZeroPrefetchLazyDispatchPriorityTest.java
<ide> boolean finished = false;
<ide>
<ide> while (!finished) {
<del> Message message = consumer.receive(1000);
<add> Message message = consumer.... | |
Java | apache-2.0 | error: pathspec 'src/algorithm/other/DFS_BFS.java' did not match any file(s) known to git
| f58792b66a0616d5ee321bbbc6e439b58655107a | 1 | pingcai/LeetCode,pingcai/Algorithm | package algorithm.other;
import java.util.LinkedList;
import java.util.Stack;
/**
* date:2017/9/7 18:52
* author:黄平财
* mail:hpingcai@gmail.com
*/
public class DFS_BFS {
/**
* 9
* / \
* 8 10
* /\ \
* 6 5 12
* \
* 16
* 深度:9 8 6 5 16 10 1... | src/algorithm/other/DFS_BFS.java | bfs&dfs
| src/algorithm/other/DFS_BFS.java | bfs&dfs | <ide><path>rc/algorithm/other/DFS_BFS.java
<add>package algorithm.other;
<add>
<add>import java.util.LinkedList;
<add>import java.util.Stack;
<add>
<add>/**
<add> * date:2017/9/7 18:52
<add> * author:黄平财
<add> * mail:hpingcai@gmail.com
<add> */
<add>public class DFS_BFS {
<add> /**
<add> * 9
<add> * ... | |
Java | mit | f63e9fc184189deea0c39dd61fbb47b9dad424da | 0 | ZeusWPI/hydra,ZeusWPI/hydra,ZeusWPI/hydra | /**
*
* @author Tom Naessens Tom.Naessens@UGent.be 3de Bachelor Informatica
* Universiteit Gent
*
*/
package be.ugent.zeus.hydra;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;... | android/src/be/ugent/zeus/hydra/ActivityItemActivity.java | /**
*
* @author Tom Naessens Tom.Naessens@UGent.be 3de Bachelor Informatica
* Universiteit Gent
*
*/
package be.ugent.zeus.hydra;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;... | Style fix according messed up Android style
| android/src/be/ugent/zeus/hydra/ActivityItemActivity.java | Style fix according messed up Android style | <ide><path>ndroid/src/be/ugent/zeus/hydra/ActivityItemActivity.java
<ide> moreContent.setText(item.url);
<ide> moreContentContainer.setOnClickListener(new View.OnClickListener() {
<ide> public void onClick(View v) {
<del> if (!item.url.contains("://"))
<del> ... | |
Java | lgpl-2.1 | bd2000875c4c681b18cd2bdcab436a959b3e6d46 | 0 | MariaDB/mariadb-connector-j,MariaDB/mariadb-connector-j | package org.mariadb.jdbc;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Test;
import java.sql.*;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.TimeZone;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.ass... | src/test/java/org/mariadb/jdbc/DateTest.java | package org.mariadb.jdbc;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Test;
import java.sql.*;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.TimeZone;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.ass... | [test] correcting change timestamp default value '0000-00-00 00:00:00' since now deprecated in MySQL 5.7
| src/test/java/org/mariadb/jdbc/DateTest.java | [test] correcting change timestamp default value '0000-00-00 00:00:00' since now deprecated in MySQL 5.7 | <ide><path>rc/test/java/org/mariadb/jdbc/DateTest.java
<ide>
<ide> @Test
<ide> public void timestampZeroTest() throws SQLException {
<add> assertTrue(isMariadbServer());
<ide> String timestampZero = "0000-00-00 00:00:00";
<ide> String dateZero = "0000-00-00";
<ide> sharedConnecti... | |
Java | apache-2.0 | f55d420e6907e0738363e58744d4d130a6ff9e7f | 0 | esoco/esoco-business | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'esoco-business' project.
// Copyright 2016 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complia... | src/main/java/de/esoco/process/step/InteractionFragment.java | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'esoco-business' project.
// Copyright 2016 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complia... | FRAMEWORK-167: Removal of sub-fragments is not working correctly
Changes reverted - not a bug but necessary for certain use cases | src/main/java/de/esoco/process/step/InteractionFragment.java | FRAMEWORK-167: Removal of sub-fragments is not working correctly | <ide><path>rc/main/java/de/esoco/process/step/InteractionFragment.java
<ide> String sName,
<ide> InteractionFragment rSubFragment)
<ide> {
<del> Parameter<List<RelationType<?>>> rSubFragmentParam =
<del> listParam(sName, RelationType.class);
<del>
<del> addSubFragment(rSubFragmentParam.type(), rSubFragment)... | |
Java | apache-2.0 | 1c39037da2dbf759ef23ded1262b3d0066345ac7 | 0 | wschaeferB/autopsy,millmanorama/autopsy,mhmdfy/autopsy,karlmortensen/autopsy,dgrove727/autopsy,maxrp/autopsy,eXcomm/autopsy,karlmortensen/autopsy,millmanorama/autopsy,karlmortensen/autopsy,sidheshenator/autopsy,wschaeferB/autopsy,rcordovano/autopsy,wschaeferB/autopsy,raman-bt/autopsy,esaunders/autopsy,APriestman/autops... | /*
* Autopsy Forensic Browser
*
* Copyright 2012 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | RecentActivity/src/org/sleuthkit/autopsy/recentactivity/JavaSystemCaller.java | /*
* Autopsy Forensic Browser
*
* Copyright 2012 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | cleanup stdout/stderr collection threads after forked process returns
| RecentActivity/src/org/sleuthkit/autopsy/recentactivity/JavaSystemCaller.java | cleanup stdout/stderr collection threads after forked process returns | <ide><path>ecentActivity/src/org/sleuthkit/autopsy/recentactivity/JavaSystemCaller.java
<ide> private InputStream is;
<ide> private String type;
<ide> private StringBuffer output = new StringBuffer();
<add> private boolean doRun = false;
<ide>
<ide> StreamGobbler(final InputStrea... | |
Java | apache-2.0 | 8b7a7a40140d13cdeafefb90b915f7d769b1b5eb | 0 | pplatek/camel,onders86/camel,mnki/camel,Fabryprog/camel,davidwilliams1978/camel,tadayosi/camel,mzapletal/camel,pkletsko/camel,haku/camel,driseley/camel,pkletsko/camel,nikvaessen/camel,askannon/camel,arnaud-deprez/camel,chanakaudaya/camel,gyc567/camel,chirino/camel,allancth/camel,tadayosi/camel,bgaudaen/camel,jlpedrosa/... | /**
* 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-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.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-4422 Fixed the NPE issue of camel-smpp when sending the message length is less then 255
git-svn-id: 11f3c9e1d08a13a4be44fe98a6d63a9c00f6ab23@1165987 13f79535-47bb-0310-9956-ffa450edef68
| components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java | CAMEL-4422 Fixed the NPE issue of camel-smpp when sending the message length is less then 255 | <ide><path>omponents/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppBinding.java
<ide>
<ide> if (shortMessage.length < 255) {
<ide> submitSm.setShortMessage(shortMessage);
<add> // To avoid the NPE error
<add> submitSm.setOptionalParam... | |
Java | apache-2.0 | ee991f5f30f966c368e0bba60218373ecfebc675 | 0 | EagerLogic/Cubee | package com.eagerlogic.cubee.client.styles;
/**
*
* @author dipacs
*/
public final class Color {
public static final Color BLACK = new Color(0xff000000);
public static final Color WHITE = new Color(0xffffffff);
public static final Color TRANSPARENT = new Color(0x00000000);
public static Color getArgbColor(i... | trunk/src/Cubee/src/com/eagerlogic/cubee/client/styles/Color.java | package com.eagerlogic.cubee.client.styles;
/**
*
* @author dipacs
*/
public final class Color {
public static final Color BLACK = new Color(0xff000000);
public static final Color WHITE = new Color(0xffffffff);
public static final Color TRANSPARENT = new Color(0x00000000);
public static Color getArgbColor(i... | Fixed missing trailing ")" from Color.toCSS result.
| trunk/src/Cubee/src/com/eagerlogic/cubee/client/styles/Color.java | Fixed missing trailing ")" from Color.toCSS result. | <ide><path>runk/src/Cubee/src/com/eagerlogic/cubee/client/styles/Color.java
<ide> }
<ide>
<ide> public String toCSS() {
<del> return "rgba(" + getRed() + ", " + getGreen() + ", " + getBlue() + ", " + (getAlpha() / 255.0);
<add> return "rgba(" + getRed() + ", " + getGreen() + ", " + getBlue() + ", " + (getAlpha() ... | |
Java | apache-2.0 | b46d415ae3fe192468efb338e67051c97593dccd | 0 | rsudev/c-geo-opensource,pstorch/cgeo,mucek4/cgeo,superspindel/cgeo,kumy/cgeo,samueltardieu/cgeo,cgeo/cgeo,SammysHP/cgeo,Bananeweizen/cgeo,kumy/cgeo,S-Bartfast/cgeo,auricgoldfinger/cgeo,mucek4/cgeo,Bananeweizen/cgeo,S-Bartfast/cgeo,cgeo/cgeo,pstorch/cgeo,superspindel/cgeo,samueltardieu/cgeo,kumy/cgeo,matej116/cgeo,auric... | package cgeo.geocaching;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.activity.AbstractListActivity;
import cgeo.geocaching.activity.ActivityMixin;
import cgeo.geocaching.activity.FilteredActivity;
import cgeo.geocaching.activity.Progress;
import cgeo.geocaching.activity.ShowcaseViewBuilder... | main/src/cgeo/geocaching/CacheListActivity.java | package cgeo.geocaching;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.activity.AbstractListActivity;
import cgeo.geocaching.activity.ActivityMixin;
import cgeo.geocaching.activity.FilteredActivity;
import cgeo.geocaching.activity.Progress;
import cgeo.geocaching.activity.ShowcaseViewBuilder... | Fix #5312: Count caches in Datastore
Count the caches directly in the database to avoid problems with
filtered lists.
| main/src/cgeo/geocaching/CacheListActivity.java | Fix #5312: Count caches in Datastore | <ide><path>ain/src/cgeo/geocaching/CacheListActivity.java
<ide>
<ide> private void checkIfEmptyAndRemoveAfterConfirm() {
<ide> final boolean isNonDefaultList = isConcreteList() && listId != StoredList.STANDARD_LIST_ID;
<del> if (isNonDefaultList && CollectionUtils.isEmpty(cacheList)) {
<add> ... | |
Java | mit | 45ce9f9053826298c56ea93a494cbce5b00d3dc5 | 0 | ctisutep/trimmer | package trimmer;
import java.awt.EventQueue;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JProgressBar;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Color;
import java.awt.SystemColor;
import javax.swing.UIMana... | Trimmer/src/trimmer/Frontend.java | package trimmer;
import java.awt.EventQueue;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JProgressBar;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Color;
import java.awt.SystemColor;
import javax.swing.UIMana... | Added comments to frontend | Trimmer/src/trimmer/Frontend.java | Added comments to frontend | <ide><path>rimmer/src/trimmer/Frontend.java
<ide> EventQueue.invokeLater(new Runnable() {
<ide> public void run() {
<ide> try {
<add> //set the main window
<ide> Frontend window = new Frontend();
<ide> window.frame.setVisible(true);
<ide> } catch (Exception e) {
<ide> */
<ide> public stati... | |
Java | apache-2.0 | b5e3eb98dd0f0976e48bd2690b01e0f7b08ec177 | 0 | brandt/GridSphere,brandt/GridSphere | /*
* @author <a href="mailto:wehrens@gridsphere.org">Oliver Wehrens</a>
* @version $Id: Page.java 4496 2006-02-08 20:27:04Z wehrens $
*/
package org.gridsphere.layout.view.brush;
import org.gridsphere.layout.PortletComponent;
import org.gridsphere.layout.PortletPage;
import org.gridsphere.layout.view.BaseRender;
im... | src/org/gridsphere/layout/view/brush/Page.java | /*
* @author <a href="mailto:wehrens@gridsphere.org">Oliver Wehrens</a>
* @version $Id: Page.java 4496 2006-02-08 20:27:04Z wehrens $
*/
package org.gridsphere.layout.view.brush;
import org.gridsphere.layout.PortletComponent;
import org.gridsphere.layout.PortletPage;
import org.gridsphere.layout.view.BaseRender;
im... | add expiration to make sure its not caching
git-svn-id: 616481d960d639df1c769687dde8737486ca2a9a@5719 9c99c85f-4d0c-0410-8460-a9a1c48a3a7f
| src/org/gridsphere/layout/view/brush/Page.java | add expiration to make sure its not caching | <ide><path>rc/org/gridsphere/layout/view/brush/Page.java
<ide> page.append("\n<html dir=\"rtl\"");
<ide> }
<ide> page.append(" xmlns=\"http://www.w3.org/1999/xhtml\">");
<del> page.append("\n<!-- GridSphere Release: " + SportletProperties.getInstance().getProperty("gridsphere.release"... | |
Java | lgpl-2.1 | 898106ae7217996836cd5349e44b93b0e3bfb7b9 | 0 | jbarriosc/ACSUFRO,jbarriosc/ACSUFRO,ACS-Community/ACS,ACS-Community/ACS,csrg-utfsm/acscb,jbarriosc/ACSUFRO,csrg-utfsm/acscb,csrg-utfsm/acscb,jbarriosc/ACSUFRO,jbarriosc/ACSUFRO,jbarriosc/ACSUFRO,ACS-Community/ACS,csrg-utfsm/acscb,ACS-Community/ACS,jbarriosc/ACSUFRO,csrg-utfsm/acscb,csrg-utfsm/acscb,ACS-Community/ACS,jb... | /*******************************************************************************
* ALMA - Atacama Large Millimeter Array
* Copyright (c) ESO - European Southern Observatory, 2011
* (in the framework of the ALMA collaboration).
* All rights reserved.
*
* This library is free software; you can redistribute it and/... | Benchmark/util/src/acs/benchmark/util/ComponentAccessUtil.java | /*******************************************************************************
* ALMA - Atacama Large Millimeter Array
* Copyright (c) ESO - European Southern Observatory, 2011
* (in the framework of the ALMA collaboration).
* All rights reserved.
*
* This library is free software; you can redistribute it and/... | Added a module to release a list of components.
Shorten the critical section into releaseAllComponents()
git-svn-id: afcf11d89342f630bd950d18a70234a9e277d909@166726 523d945c-050c-4681-91ec-863ad3bb968a
| Benchmark/util/src/acs/benchmark/util/ComponentAccessUtil.java | Added a module to release a list of components. Shorten the critical section into releaseAllComponents() | <ide><path>enchmark/util/src/acs/benchmark/util/ComponentAccessUtil.java
<ide>
<ide> import java.lang.reflect.Method;
<ide> import java.util.ArrayList;
<add>import java.util.Collection;
<ide> import java.util.HashMap;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide>
<ide> /**
<ide> * Should be called... | |
JavaScript | mit | 89bbed544284e4497c3490e15e4443cadab26d1c | 0 | jaredhanson/node-tokens | /**
* Module dependencies.
*/
var moment = require('moment')
, jws = require('jws')
, NotValidError = require('../errors/notvaliderror');
/**
* Decode a structured access token.
*
* References:
* - [Structured Access Token for Sharing Authorization Grant between a Resource Server and an Authorization Serve... | lib/decode/sat.js | /**
* Module dependencies.
*/
var moment = require('moment')
, jws = require('jws')
, NotValidError = require('../errors/notvaliderror');
/**
* Decode a structured access token.
*
* References:
* - [Structured Access Token for Sharing Authorization Grant between a Resource Server and an Authorization Serve... | Parse scope in structured access token.
| lib/decode/sat.js | Parse scope in structured access token. | <ide><path>ib/decode/sat.js
<ide> }
<ide> opts = opts || {};
<ide>
<add> var aliases = audience;
<add> if (opts.audience) {
<add> aliases = audience.concat(opts.audience);
<add> }
<add>
<add>
<ide> // Decode the JWT so the header and payload are available, as they contain
<ide> ... | |
Java | apache-2.0 | error: pathspec 'main/src/com/pathtomani/entities/planet/PlanetSprites.java' did not match any file(s) known to git
| 3a8ea68c055d849ba782d89fb192668f876b76b1 | 1 | TheNightForum/Path-to-Mani,TheNightForum/Path-to-Mani,BurntGameProductions/Path-to-Mani,BurntGameProductions/Path-to-Mani,TheNightForum/Path-to-Mani,BurntGameProductions/Path-to-Mani | /*
* Copyright 2016 BurntGameProductions
*
* 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 ... | main/src/com/pathtomani/entities/planet/PlanetSprites.java | Moving files to Entities.
| main/src/com/pathtomani/entities/planet/PlanetSprites.java | Moving files to Entities. | <ide><path>ain/src/com/pathtomani/entities/planet/PlanetSprites.java
<add>/*
<add> * Copyright 2016 BurntGameProductions
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obtain a copy of the License a... | |
Java | apache-2.0 | d0380d90070f98928f3d54144ab005dedd3d989a | 0 | hawkular/hawkular-agent,hawkular/hawkular-agent,hawkular/hawkular-agent | /*
* Copyright 2015-2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | hawkular-agent-core/src/main/java/org/hawkular/agent/monitor/service/AgentCoreEngine.java | /*
* Copyright 2015-2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | do not abort agent startup if the metrics endpoint fails - let the agent keep going but log an ugly error message (#424)
| hawkular-agent-core/src/main/java/org/hawkular/agent/monitor/service/AgentCoreEngine.java | do not abort agent startup if the metrics endpoint fails - let the agent keep going but log an ugly error message (#424) | <ide><path>awkular-agent-core/src/main/java/org/hawkular/agent/monitor/service/AgentCoreEngine.java
<ide> protocolServices.start();
<ide>
<ide> // start the metrics exporter if enabled
<del> startMetricsExporter();
<add> try {
<add> startMetricsExporter();
<... | |
Java | epl-1.0 | ae048ec9861a3cabca435401df10f0acfde1f8b8 | 0 | xen-0/dawnsci,DawnScience/dawnsci,belkassaby/dawnsci,eclipse/dawnsci,jamesmudd/dawnsci,jamesmudd/dawnsci,jamesmudd/dawnsci | /*-
* Copyright (c) 2012 Diamond Light Source Ltd.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.ec... | org.eclipse.dawnsci.analysis.dataset.test/src/org/eclipse/dawnsci/analysis/dataset/MathsTest.java | /*-
* Copyright (c) 2012 Diamond Light Source Ltd.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.ec... | Ignore remainder | org.eclipse.dawnsci.analysis.dataset.test/src/org/eclipse/dawnsci/analysis/dataset/MathsTest.java | Ignore remainder | <ide><path>rg.eclipse.dawnsci.analysis.dataset.test/src/org/eclipse/dawnsci/analysis/dataset/MathsTest.java
<ide> }
<ide> }
<ide>
<add> @Ignore
<ide> @Test
<ide> public void testRemainder() {
<ide> Dataset a, b, c = null, d = null; | |
Java | lgpl-2.1 | 66e525c9072eebbef7a874f2d879f21918ac5ae3 | 0 | johnscancella/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,johnscancella/spotbugs,sewe/spotbugs,johnscancella/spotbugs,spotbugs/spotbugs,sewe/spotbugs,KengoTODA/spotbugs,spotbugs/spotbugs,sewe/spotbugs,KengoTODA/spotbugs,sewe/spotbugs,KengoTODA/spotbugs,johnscancella/spotbugs,KengoTODA/spotbugs,spotbugs/spotbugs | /*
* FindBugs - Find bugs in Java programs
* Copyright (C) 2003-2005 University of Maryland
*
* 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 the Free Software Foundation; either
* version 2.1 of the License, ... | findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java | /*
* FindBugs - Find bugs in Java programs
* Copyright (C) 2003-2005 University of Maryland
*
* 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 the Free Software Foundation; either
* version 2.1 of the License, ... | detectorTimings can't be nulled out between passes, just reallocate a new one.
git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@4525 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
| findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java | detectorTimings can't be nulled out between passes, just reallocate a new one. | <ide><path>indbugs/src/java/edu/umd/cs/findbugs/FindBugs.java
<ide> System.out.println(detectorName + ": " + detectorTime + " ms -> (" + (detectorTime * 100.0f / (float)total) + ") %");
<ide> }
<ide> System.out.println();
<del> detectorTimings = null;
<add> detectorTimings = new HashMap<String,Long>();
<... | |
Java | agpl-3.0 | e6af6cae8fe5dae88be0d4c64857b518d3222288 | 0 | qcri-social/AIDR,qcri-social/AIDR,qcri-social/AIDR,qcri-social/AIDR | package qa.qcri.aidr.manager.service.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.... | aidr-manager/src/main/java/qa/qcri/aidr/manager/service/impl/TaggerServiceImpl.java | package qa.qcri.aidr.manager.service.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.... | Commit for status code issue
| aidr-manager/src/main/java/qa/qcri/aidr/manager/service/impl/TaggerServiceImpl.java | Commit for status code issue | <ide><path>idr-manager/src/main/java/qa/qcri/aidr/manager/service/impl/TaggerServiceImpl.java
<ide> import org.codehaus.jackson.map.annotate.JsonSerialize;
<ide> import org.glassfish.jersey.jackson.JacksonFeature;
<ide> import org.springframework.beans.factory.annotation.Autowired;
<add>import org.springframework.http.... | |
Java | agpl-3.0 | 4208423946bebb4bbaf8e1dd813ab1f42fad2bc5 | 0 | podd/podd-redesign,podd/podd-redesign,podd/podd-redesign,podd/podd-redesign | /**
*
*/
package com.github.podd.restlet;
import java.util.ArrayList;
import java.util.List;
import org.openrdf.model.URI;
import org.openrdf.model.impl.ValueFactoryImpl;
import org.restlet.security.Role;
import com.github.ansell.restletutils.RestletUtilRole;
/**
* The Roles available for PODD users.
*
* @au... | webapp/api/src/main/java/com/github/podd/restlet/PoddRoles.java | /**
*
*/
package com.github.podd.restlet;
import java.util.ArrayList;
import java.util.List;
import org.openrdf.model.URI;
import org.openrdf.model.impl.ValueFactoryImpl;
import org.restlet.security.Role;
import com.github.ansell.restletutils.RestletUtilRole;
/**
* The Roles available for PODD users.
*
* @au... | Adjust Role names | webapp/api/src/main/java/com/github/podd/restlet/PoddRoles.java | Adjust Role names | <ide><path>ebapp/api/src/main/java/com/github/podd/restlet/PoddRoles.java
<ide> PROJECT_CREATOR("Project Creator", "A User who can create new projects",
<ide> "http://purl.org/podd/ns/poddUser#RoleProjectCreator", true),
<ide>
<del> PROJECT_MEMBER("Project member", "A user who is a membe... | |
Java | lgpl-2.1 | fe21259167417ebf93360e9b62d5d6406a88819e | 0 | pentaho/pentaho-commons-xul | package org.pentaho.ui.xul.swt.tags;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets... | pentaho-xul-swt/src/org/pentaho/ui/xul/swt/tags/SwtMenuitem.java | package org.pentaho.ui.xul.swt.tags;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets... | Fixed so that it respects enable/disable
| pentaho-xul-swt/src/org/pentaho/ui/xul/swt/tags/SwtMenuitem.java | Fixed so that it respects enable/disable | <ide><path>entaho-xul-swt/src/org/pentaho/ui/xul/swt/tags/SwtMenuitem.java
<ide> }
<ide> public void setDisabled(boolean disabled) {
<ide> this.disabled = disabled;
<add> if (item != null) {
<add> item.setEnabled(!disabled);
<add> }
<ide> }
<ide>
<ide> public void setDisabled(String disabled) {
... | |
JavaScript | apache-2.0 | 7f6ad0107326a225fbe0579cbc4907aed6de4d17 | 0 | werneckpaiva/retrato-js | var Settings = {
URL_PREFIX: "/",
URL_DATA_PREFIX: "/api/"
};
var StringUtil = {
sanitizeUrl: function(url){
url = url.replace(/([^:])[\/]+/g, '$1/');
return url;
},
humanizeName: function(name){
name = name.replace(/_/g, " ");
name = name.replace(/\.jpe?g/i, "");
... | src/album.js | var Settings = {
URL_PREFIX: "/",
URL_DATA_PREFIX: "/api/"
};
var StringUtil = {
sanitizeUrl: function(url){
url = url.replace(/([^:])[\/]+/g, '$1/');
return url;
},
humanizeName: function(name){
name = name.replace(/_/g, " ");
name = name.replace(/\.jpe?g/i, "");
... | Fullscreen fixed
| src/album.js | Fullscreen fixed | <ide><path>rc/album.js
<ide> });
<ide>
<ide> Fullscreen.onchange(function(event){
<del> console.log('fullscreen change')
<ide> $fullscreenButton.toggleClass("selected", Fullscreen.isActive());
<ide> });
<ide> | |
Java | mit | 92ae1cf362c130ad20eb861d08fab1b7c2161b89 | 0 | gems-uff/prov-viewer | /*
* The MIT License
*
* Copyright 2017 Kohwalter.
*
* 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, modif... | src/main/java/br/uff/ic/utility/GraphUtils.java | /*
* The MIT License
*
* Copyright 2017 Kohwalter.
*
* 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, modif... | Added a BFS algorithm
Added the method getSubPathProbability | src/main/java/br/uff/ic/utility/GraphUtils.java | Added a BFS algorithm Added the method getSubPathProbability | <ide><path>rc/main/java/br/uff/ic/utility/GraphUtils.java
<ide> import br.uff.ic.utility.graph.Vertex;
<ide> import edu.uci.ics.jung.graph.DirectedGraph;
<ide> import edu.uci.ics.jung.graph.Graph;
<add>import edu.uci.ics.jung.graph.util.Pair;
<ide> import java.util.ArrayList;
<ide> import java.util.Collection;
<ide> im... | |
Java | lgpl-2.1 | fcbccd560b98cab7004760660fc53fe5ed677a30 | 0 | ethaneldridge/vassal,ethaneldridge/vassal,ethaneldridge/vassal | /*
*
* Copyright (c) 2010 by Pieter Geerkens
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License (LGPL) as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but W... | vassal-app/src/main/java/VASSAL/build/module/StartupGlobalKeyCommand.java | /*
*
* Copyright (c) 2010 by Pieter Geerkens
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License (LGPL) as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but W... | match default to original behavior
| vassal-app/src/main/java/VASSAL/build/module/StartupGlobalKeyCommand.java | match default to original behavior | <ide><path>assal-app/src/main/java/VASSAL/build/module/StartupGlobalKeyCommand.java
<ide> protected static final UniqueIdManager idMgr = new UniqueIdManager("SGKC"); //$NON-NLS-1$
<ide> protected String id = ""; // Our unique ID
<ide>
<del> public String whenToApply = APPLY_FIRST_LAUNCH_OF_SESSION;
<add> pub... | |
Java | mit | a5e109f9966ee8401db23e6126e9249853838e36 | 0 | AvatarHurden/Tribal-Wars-Engine | package custom_components;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.aw... | resources/custom_components/EditDialog.java | package custom_components;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.aw... | Addded Delete Button
| resources/custom_components/EditDialog.java | Addded Delete Button | <ide><path>esources/custom_components/EditDialog.java
<ide>
<ide> JButton deleteButton = new JButton("Delete");
<ide>
<add> deleteButton.addActionListener(new ActionListener() {
<add>
<add> public void actionPerformed(ActionEvent arg0) {
<add>
<add> //TODO change text
<add> int delete = JOptionP... | |
Java | mit | e51886bb3fce486cfa59a53638a5192a9f4105af | 0 | AndrewKostousov/kload | import org.apache.avro.Schema;
import org.apache.avro.generic.GenericRecord;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;
import org.rapidoid.net.Server;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Properties;
public c... | src/main/java/HttpGateEntryPoint.java | import org.apache.avro.Schema;
import org.apache.avro.generic.GenericRecord;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;
import org.rapidoid.net.Server;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Properties;
public c... | tuning
| src/main/java/HttpGateEntryPoint.java | tuning | <ide><path>rc/main/java/HttpGateEntryPoint.java
<ide> props.put("retries", 0);
<ide> props.put("linger.ms", 20);
<ide> props.put("batch.size", 64 * 1000);
<del> props.put("buffer.memory", 512 * 1000 * 1000);
<add> props.put("buffer.memory", 1000 * 1000 * 1000);
<ide> props.... | |
Java | lgpl-2.1 | 98ef7f7141747b3a88fe786b1f4d16a457075db9 | 0 | OPENDAP/olfs,OPENDAP/olfs,OPENDAP/olfs,OPENDAP/olfs,OPENDAP/olfs,OPENDAP/olfs | package opendap.experiments;
import com.ontotext.trree.owlim_ext.SailImpl;
import org.openrdf.model.Resource;
import org.openrdf.model.URI;
import org.openrdf.model.ValueFactory;
import org.openrdf.repository.RepositoryConnection;
import org.openrdf.repository.RepositoryException;
import org.openrdf.repository.Reposit... | src/opendap/experiments/RepoTest.java | package opendap.experiments;
import com.ontotext.trree.owlim_ext.SailImpl;
import org.openrdf.model.Resource;
import org.openrdf.model.URI;
import org.openrdf.model.ValueFactory;
import org.openrdf.repository.RepositoryConnection;
import org.openrdf.repository.RepositoryException;
import org.openrdf.repository.Reposit... | olfs:
| src/opendap/experiments/RepoTest.java | olfs: | <ide><path>rc/opendap/experiments/RepoTest.java
<ide> try {
<ide>
<ide> SailRepository repo = setupRepository(workingDir);
<del>
<ide> loadStatements(repo,"test.trig");
<del>
<add> repo.shutDown();
<add>
<add> repo = setupRepository(workingDir);
<add>
<... | |
Java | mit | 4307aa1095cb5b7420e6f8f799f4ca0f8c5f0d7f | 0 | McJty/RFTools | package mcjty.rftools.blocks.screens.modulesclient;
import mcjty.rftools.api.screens.*;
import mcjty.rftools.api.screens.data.IModuleDataBoolean;
import mcjty.rftools.blocks.screens.modulesclient.helper.ScreenTextHelper;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.GlStateManager;... | src/main/java/mcjty/rftools/blocks/screens/modulesclient/RedstoneClientScreenModule.java | package mcjty.rftools.blocks.screens.modulesclient;
import mcjty.rftools.api.screens.*;
import mcjty.rftools.api.screens.data.IModuleDataBoolean;
import mcjty.rftools.blocks.screens.modulesclient.helper.ScreenTextHelper;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.GlStateManager;... | Forgot
| src/main/java/mcjty/rftools/blocks/screens/modulesclient/RedstoneClientScreenModule.java | Forgot | <ide><path>rc/main/java/mcjty/rftools/blocks/screens/modulesclient/RedstoneClientScreenModule.java
<ide> text = "<invalid>";
<ide> col = 0xff0000;
<ide> }
<del> if (renderInfo.font != null) {
<del> float r = (col >> 16 & 255) / 255.0f;
<del> float g = (col >>... | |
Java | mit | d990b9faeb2a57fa3e09858ee349f5d1d14c75e2 | 0 | SWE443-TeamRed/open-bank,SWE443-TeamRed/open-bank,SWE443-TeamRed/open-bank | /**
* Created by daniel on 4/11/17.
*/
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import spark.Request;
import spark.Response;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.FileHandler;
import java.util.logging.L... | OpenBankSparkServer/src/main/java/SparkServer.java | /**
* Created by daniel on 4/11/17.
*/
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import spark.Request;
import spark.Response;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.FileHandler;
import java.util.logging.L... | Pushing to test
| OpenBankSparkServer/src/main/java/SparkServer.java | Pushing to test | <ide><path>penBankSparkServer/src/main/java/SparkServer.java
<ide> } else {
<ide> accountJson.put("request", "failed");
<ide> accountJson.put("reason","user with id " + id + " does not exist");
<add> ... | |
JavaScript | bsd-3-clause | 2fa16fe5664e74963f46cc8a988f74691e547c36 | 0 | aplazame/aplazame-js,aplazame/aplazame-js,aplazame/aplazame-js |
function _key (o, key, value) {
key.split('.').forEach(function (k, i, keys) {
if( i === keys.length - 1 ) {
o[k] = value;
} else {
o[k] = o[k] || {};
o = o[k];
}
});
}
function toCamelCase (text) {
return text.replace(/[_-](\w)/g, function (_matched, letter) {
return letter.toUpperCase();
});
}... | src/tools/deserialize.js |
function _key (o, key, value) {
key.split('.').forEach(function (k, i, keys) {
if( i === keys.length - 1 ) {
o[k] = value;
} else {
o[k] = o[k] || {};
o = o[k];
}
});
}
function toCamelCase (text) {
return text.replace(/[_-](\w)/g, function (_matched, letter) {
return letter.toUpperCase();
});
}... | fixed deserialize issue
| src/tools/deserialize.js | fixed deserialize issue | <ide><path>rc/tools/deserialize.js
<ide> }).toLowerCase();
<ide> }
<ide>
<del>function deserialize (querystring, decode) {
<add>function deserialize (querystring, decode, throw_errors) {
<ide>
<ide> var result = {};
<del>
<del> if( !querystring.trim() ) return;
<ide>
<ide> querystring.split('&').forEach(function... | |
Java | apache-2.0 | 441624aaa0277a962a5806e18ac3dbd25e62fe26 | 0 | boundary/boundary-vmware | // Copyright 2014 Boundary, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | src/main/java/com/boundary/metrics/vmware/poller/MonitoredEntity.java | // Copyright 2014 Boundary, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | Incorrect name of counters | src/main/java/com/boundary/metrics/vmware/poller/MonitoredEntity.java | Incorrect name of counters | <ide><path>rc/main/java/com/boundary/metrics/vmware/poller/MonitoredEntity.java
<ide> ImmutableMap.Builder<String,Metric> virtualMachineMetrics = ImmutableMap.builder();
<ide> virtualMachineMetrics.put("cpu.usage.AVERAGE",
<ide> new Metric("SYSTEM_CPU_USAGE_AVERAGE","CPU Average Utilization"))... | |
Java | mit | 6ebb543910bae9ecd48221f9bfae5d530c1db191 | 0 | vickychijwani/quill,vickychijwani/quill,vickychijwani/quill,vickychijwani/quill | package me.vickychijwani.spectre.network;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import com.crashlytics.android.Crashlytics;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google... | app/src/main/java/me/vickychijwani/spectre/network/NetworkService.java | package me.vickychijwani.spectre.network;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import com.crashlytics.android.Crashlytics;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google... | Fix bug in 66b4dd4 (blank screen on startup if logged in).
| app/src/main/java/me/vickychijwani/spectre/network/NetworkService.java | Fix bug in 66b4dd4 (blank screen on startup if logged in). | <ide><path>pp/src/main/java/me/vickychijwani/spectre/network/NetworkService.java
<ide> @Override
<ide> public void failure(RetrofitError error) {
<ide> getBus().post(new ApiErrorEvent(error));
<add> getBus().post(new PostsLoadedEvent(getPostsSorted())); // broadcas... | |
Java | apache-2.0 | e9785684128c8c162233d171d176c496dc598856 | 0 | mikeb01/Aeron,mikeb01/Aeron,mikeb01/Aeron,mikeb01/Aeron | /*
* Copyright 2014-2021 Real Logic 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | aeron-cluster/src/main/java/io/aeron/cluster/ConsensusModuleAgent.java | /*
* Copyright 2014-2021 Real Logic 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | [Java] Await registration id before constructing ReadableCounter when creating the append position.
| aeron-cluster/src/main/java/io/aeron/cluster/ConsensusModuleAgent.java | [Java] Await registration id before constructing ReadableCounter when creating the append position. | <ide><path>eron-cluster/src/main/java/io/aeron/cluster/ConsensusModuleAgent.java
<ide> {
<ide> final CountersReader counters = aeron.countersReader();
<ide> final int counterId = awaitRecordingCounter(counters, logSessionId);
<del> final long registrationId = counters.getCounterRegistrationId... | |
JavaScript | mit | 59c004e0791ae6696b85f87bd3c6db361ab708ff | 0 | bigeasy/strata,bigeasy/strata | // **TODO** Need to ensure partition does not result in endless balance loops.
// **TODO** Vacuum delete-heavy pages.
// **TODO** Really for write-ahead, append the block list so you can read it
// quickly and deserialize it quickly. You can write each block list at a
// position in the log and write out a map to the p... | sheaf.js | // **TODO** Need to ensure partition does not result in endless balance loops.
// **TODO** Vacuum delete-heavy pages.
// **TODO** Really for write-ahead, append the block list so you can read it
// quickly and deserialize it quickly. You can write each block list at a
// position in the log and write out a map to the p... | Maintain write future set.
Was treating future set like old map of futures.
| sheaf.js | Maintain write future set. | <ide><path>heaf.js
<ide> this.deferrable.operational()
<ide> const append = this._fracture.enqueue(id)
<ide> append.value.writes.push(buffer)
<del> // **TODO** This is broken now for write-ahead since it is synchronous.
<del> // You would have to wait on a flush of the write-ahead ... | |
JavaScript | mit | a604c52af1f3bb200308c1698bd5f78043372e81 | 0 | D-PLACE/dplace,shh-dlce/dplace,NESCent/dplace,D-PLACE/dplace,D-PLACE/dplace,stefelisabeth/dplace,stefelisabeth/dplace,NESCent/dplace,shh-dlce/dplace,shh-dlce/dplace,stefelisabeth/dplace,shh-dlce/dplace,NESCent/dplace,NESCent/dplace,stefelisabeth/dplace,D-PLACE/dplace | angular.module('dplaceMapDirective', [])
.directive('dplaceMap', function(colorMapService) {
function link(scope, element, attrs) {
element.append("<div id='mapdiv' style='width:1140px; height:30rem;'></div>");
scope.localRegions = [];
scope.checkDirty = function() {
... | dplace_app/static/js/directives.js | angular.module('dplaceMapDirective', [])
.directive('dplaceMap', function(colorMapService) {
function link(scope, element, attrs) {
element.append("<div id='mapdiv' style='width:1140px; height:30rem;'></div>");
scope.localRegions = [];
scope.checkDirty = function() {
... | Fix map resize call
Changed in 2.0 from setSize to updateSize
| dplace_app/static/js/directives.js | Fix map resize call | <ide><path>place_app/static/js/directives.js
<ide> });
<ide> }
<ide> scope.$on('mapTabActivated', function(event, args) {
<del> scope.map.setSize();
<add> scope.map.updateSize();
<ide> });
<ide>
<ide> scope.$on('$destroy', fu... | |
Java | mit | error: pathspec 'LeetCodeSolutions/java/src/76_Minimum_Window_Substring/Solution.java' did not match any file(s) known to git
| a0b5e619694d5acfb8e72a165543e1deb87a0fe0 | 1 | ChuanleiGuo/AlgorithmsPlayground,ChuanleiGuo/AlgorithmsPlayground,ChuanleiGuo/AlgorithmsPlayground,ChuanleiGuo/AlgorithmsPlayground | import java.util.HashMap;
import java.util.Map;
class Solution {
public String minWindow(String s, String t) {
if(s == null || s.length() < t.length() || s.length() == 0){
return "";
}
Map<Character, Integer> map = new HashMap<>();
for (char c : t.toCharArray()) {
... | LeetCodeSolutions/java/src/76_Minimum_Window_Substring/Solution.java | 76. Minimum Window Substring
| LeetCodeSolutions/java/src/76_Minimum_Window_Substring/Solution.java | 76. Minimum Window Substring | <ide><path>eetCodeSolutions/java/src/76_Minimum_Window_Substring/Solution.java
<add>import java.util.HashMap;
<add>import java.util.Map;
<add>
<add>class Solution {
<add> public String minWindow(String s, String t) {
<add> if(s == null || s.length() < t.length() || s.length() == 0){
<add> return ""... | |
Java | apache-2.0 | be21ede1e31b77c8377d405256e08a9f3ae5100e | 0 | lopl233/BoarTrainer-master2 |
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Scanner;
import java.io.*;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
class Klient_reciver {
public static boolean isLogged=false;
private SSLConnector sslConnector;
private PrintWriter pw... | klient/src/klient.java |
import org.json.JSONException;
import org.json.JSONObject;
import java.io.*;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
class Klient_reciver {
public static boolean isLogged=false;
private SSLConnector sslConnector;
private PrintWriter pw;
private BufferedRe... | klient wersja pół-gotowa
| klient/src/klient.java | klient wersja pół-gotowa | <ide><path>lient/src/klient.java
<ide>
<ide> import org.json.JSONException;
<ide> import org.json.JSONObject;
<del>
<add>import java.util.Scanner;
<ide> import java.io.*;
<ide> import java.util.Iterator;
<ide> import java.util.LinkedHashMap;
<ide> private PrintWriter pw;
<ide> private BufferedReader br;
<ide... | |
JavaScript | agpl-3.0 | 0910146d4ee311749867bb1fe3ffe64d78887b80 | 0 | flamingo-geocms/3rd-party-components | /*
* Copyright (C) 2012-2013 B3Partners B.V.
*
* 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... | ro-tercera-component/RoTercera.js | /*
* Copyright (C) 2012-2013 B3Partners B.V.
*
* 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... | add id to Map Layer
| ro-tercera-component/RoTercera.js | add id to Map Layer | <ide><path>o-tercera-component/RoTercera.js
<ide> styles: "",
<ide> format: "image/png",
<ide> transparent: true,
<del> noCache: true
<add> noCache: true,
<ide> };
<del> var options={};
<add>... | |
Java | lgpl-2.1 | 99a707c076bb4e4fb421335d4935dc5afcf537d9 | 0 | RomanHargrave/cuelib | /*
* Cuelib library for manipulating cue sheets.
* Copyright (C) 2007-2008 Jan-Willem van den Broek
*
* 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 the Free Software Foundation; either
* version 2.1 o... | src/jwbroek/cuelib/tools/trackcutter/TrackCutter.java | /*
* Cuelib library for manipulating cue sheets.
* Copyright (C) 2007-2008 Jan-Willem van den Broek
*
* 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 the Free Software Foundation; either
* version 2.1 o... | Fix for Issue 18, "TrackCutter normalizes all metadata fields in a post-processing command."
Some whitespace and logging changes. | src/jwbroek/cuelib/tools/trackcutter/TrackCutter.java | Fix for Issue 18, "TrackCutter normalizes all metadata fields in a post-processing command." | <ide><path>rc/jwbroek/cuelib/tools/trackcutter/TrackCutter.java
<ide> import java.io.IOException;
<ide> import java.io.InputStream;
<ide> import java.io.OutputStream;
<del>import java.io.PrintWriter;
<del>import java.io.StringWriter;
<ide> import java.util.ArrayList;
<ide> import java.util.List;
<ide> import java.util.... | |
Java | mit | df1ed415d4139636c8a4c4a8b717b110c7112f51 | 0 | eduardodaluz/xfire,eduardodaluz/xfire | package org.codehaus.xfire.annotations;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
/**
* @author <a href="mailto:tsztelak@gmail.com">Tomasz Sztelak</a>
*
*/
public class AnnotationsValidatorImpl implements AnnotationsValidator {
private WebAnnotations annotations;
protected void valid... | xfire-annotations/src/main/org/codehaus/xfire/annotations/AnnotationsValidatorImpl.java | package org.codehaus.xfire.annotations;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
/**
* @author <a href="mailto:tsztelak@gmail.com">Tomasz Sztelak</a>
*
*/
public class AnnotationsValidatorImpl implements AnnotationsValidator {
private WebAnnotations annotations;
protected void valid... | +: more validations
git-svn-id: 9326b53cbc4a8f4c3d02979b62b178127d5150fe@2175 c7d0bf07-ec0d-0410-b2cc-d48fa9be22ba
| xfire-annotations/src/main/org/codehaus/xfire/annotations/AnnotationsValidatorImpl.java | +: more validations | <ide><path>fire-annotations/src/main/org/codehaus/xfire/annotations/AnnotationsValidatorImpl.java
<ide> private WebAnnotations annotations;
<ide>
<ide> protected void validateClass(Class clazz) throws AnnotationException {
<add> int modz = clazz.getModifiers();
<add> if (!clazz.isInterface()
<add> && (Modifier.... | |
Java | apache-2.0 | error: pathspec 'FootballScores/app/src/main/java/barqsoft/footballscores/logger/Debug.java' did not match any file(s) known to git
| b699106035aeb769ad14111b6aaf5f1ea5774c07 | 1 | thecodegame/udacity-p3,thecodegame/udacity-p3 | package barqsoft.footballscores.logger;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import org.json.JSON... | FootballScores/app/src/main/java/barqsoft/footballscores/logger/Debug.java | Add debug logger class
| FootballScores/app/src/main/java/barqsoft/footballscores/logger/Debug.java | Add debug logger class | <ide><path>ootballScores/app/src/main/java/barqsoft/footballscores/logger/Debug.java
<add>package barqsoft.footballscores.logger;
<add>
<add>import android.content.Context;
<add>import android.content.Intent;
<add>import android.content.SharedPreferences;
<add>import android.os.Bundle;
<add>import android.support.desig... | |
Java | mit | 3a004fcfd16deee8fd726f7007f39cc302e5b0c1 | 0 | rayram23/webcrawler,rayram23/webcrawler,rayram23/webcrawler | package com.rayram23.webcrawler;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurren... | src/main/java/com/rayram23/webcrawler/WebCrawler.java | package com.rayram23.webcrawler;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurren... | fixed some comments
| src/main/java/com/rayram23/webcrawler/WebCrawler.java | fixed some comments | <ide><path>rc/main/java/com/rayram23/webcrawler/WebCrawler.java
<ide>
<ide> this.siteMap.addPage(page);
<ide> for(String link : links){
<del> //if the link is "seen" then some other page had a link to it
<del> //but i may have not been explotred yet we dont need to add
<del> //this link to the queue sine ... | |
Java | apache-2.0 | 3d875f22e05c9549ba0e417d350f5b49cc747681 | 0 | cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala | // 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... | fe/src/main/java/org/apache/impala/catalog/HBaseTable.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... | IMPALA-7091: Address NullPointerException in HBaseTable.getRegionSize().
It's possible for "serverLoad.getRegionsLoad().get(info.getRegionName())"
to be null, which causes a NullPointerException in the planner, and
visible to the user. The code around it already says that it handles
errors by returning 0 for the size,... | fe/src/main/java/org/apache/impala/catalog/HBaseTable.java | IMPALA-7091: Address NullPointerException in HBaseTable.getRegionSize(). | <ide><path>e/src/main/java/org/apache/impala/catalog/HBaseTable.java
<ide> // If the serverLoad is null, the master doesn't have information for this region's
<ide> // server. This shouldn't normally happen.
<ide> if (serverLoad == null) {
<del> LOG.error("Unable to find load for server: " + location.g... | |
Java | agpl-3.0 | 079edac32fa2a08fcf890a413cb3b5cd08fb4cf4 | 0 | EhsanTang/ApiManager,EhsanTang/ApiManager,EhsanTang/ApiManager | package cn.crap.controller.user;
import cn.crap.adapter.ErrorAdapter;
import cn.crap.adapter.InterfaceAdapter;
import cn.crap.dto.CategoryDto;
import cn.crap.dto.DictionaryDto;
import cn.crap.dto.InterfacePDFDto;
import cn.crap.dto.SettingDto;
import cn.crap.enumer.ArticleType;
import cn.crap.enumer.MyError;
... | api/src/main/java/cn/crap/controller/user/StaticizeController.java | package cn.crap.controller.user;
import cn.crap.adapter.ErrorAdapter;
import cn.crap.adapter.InterfaceAdapter;
import cn.crap.dto.CategoryDto;
import cn.crap.dto.DictionaryDto;
import cn.crap.dto.InterfacePDFDto;
import cn.crap.dto.SettingDto;
import cn.crap.enumer.ArticleType;
import cn.crap.enumer.MyError;
... | 静态化 文章title修改
| api/src/main/java/cn/crap/controller/user/StaticizeController.java | 静态化 文章title修改 | <ide><path>pi/src/main/java/cn/crap/controller/user/StaticizeController.java
<ide> if(article.getType().equals(ArticleType.ARTICLE.name())){
<ide> Map<String, Object> returnMap = getProjectModuleInfor(module, project, "-文章详情");
<ide> returnMap.put("article", article);
<add> // 项目备注将静态化成网站的description
<add> ... | |
Java | bsd-3-clause | 1627262ecf84d6e2a0b644c4393f7c220c70423c | 0 | joansmith/tripleplay,tomfisher/tripleplay,tomfisher/tripleplay,tomfisher/tripleplay,joansmith/tripleplay,joansmith/tripleplay,joansmith/tripleplay,tomfisher/tripleplay,joansmith/tripleplay,tomfisher/tripleplay | //
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2012, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE
package tripleplay.util;
import playn.core.Color;
/**
* Utilities and constants for colors.
*/
public class Colors
{
... | core/src/main/java/tripleplay/util/Colors.java | //
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2012, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE
package tripleplay.util;
import playn.core.Color;
/**
* Utilities and constants for colors.
*/
public class Colors
{
... | Tidy up blend methods
| core/src/main/java/tripleplay/util/Colors.java | Tidy up blend methods | <ide><path>ore/src/main/java/tripleplay/util/Colors.java
<ide> BLUE = Color.rgb(0, 0, 255);
<ide>
<ide> /**
<del> * Blends the two supplied colors.
<del> *
<add> * Blends two colors.
<ide> * @return a color halfway between the two colors.
<ide> */
<ide> public static int blend (in... | |
Java | apache-2.0 | fd82129cc5dbf961d0526c3f2646199d464ed7d8 | 0 | sangramjadhav/testrs | 226a482e-2ece-11e5-905b-74de2bd44bed | hello.java | 2269ad9c-2ece-11e5-905b-74de2bd44bed | 226a482e-2ece-11e5-905b-74de2bd44bed | hello.java | 226a482e-2ece-11e5-905b-74de2bd44bed | <ide><path>ello.java
<del>2269ad9c-2ece-11e5-905b-74de2bd44bed
<add>226a482e-2ece-11e5-905b-74de2bd44bed | |
Java | mit | 4031a97ac6f8b34c7bff24ca07b17acf4a835cef | 0 | chargebee/chargebee-java | /*
* Copyright (c) 2012 chargebee.com
* All Rights Reserved.
*/
package com.chargebee.models;
import com.chargebee.*;
import com.chargebee.internal.*;
import com.chargebee.internal.HttpUtil.Method;
import com.chargebee.models.enums.*;
import org.json.*;
import java.io.*;
import java.sql.Timestamp;
import java.util.... | src/main/java/com/chargebee/models/Transaction.java | /*
* Copyright (c) 2012 chargebee.com
* All Rights Reserved.
*/
package com.chargebee.models;
import com.chargebee.*;
import com.chargebee.internal.*;
import com.chargebee.internal.HttpUtil.Method;
import com.chargebee.models.enums.*;
import org.json.*;
import java.io.*;
import java.sql.Timestamp;
import java.util.... | changes | src/main/java/com/chargebee/models/Transaction.java | changes | <ide><path>rc/main/java/com/chargebee/models/Transaction.java
<ide> return reqEnum("gateway", Gateway.class);
<ide> }
<ide>
<del> public Long invoiceId() {
<del> return reqLong("invoice_id");
<add> public String invoiceId() {
<add> return reqString("invoice_id");
<ide> }
<ide>
<ide... | |
Java | lgpl-2.1 | 5adacc3b336bacbe30aa06175ef80c3aac08a62a | 0 | MinecraftForge/FML | /*
* Forge Mod Loader
* Copyright (c) 2012-2013 cpw.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
... | src/main/java/cpw/mods/fml/common/network/internal/NetworkModHolder.java | /*
* Forge Mod Loader
* Copyright (c) 2012-2013 cpw.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
... | Check the mod, not it's container, in the check handler. Closes #358
| src/main/java/cpw/mods/fml/common/network/internal/NetworkModHolder.java | Check the mod, not it's container, in the check handler. Closes #358 | <ide><path>rc/main/java/cpw/mods/fml/common/network/internal/NetworkModHolder.java
<ide> {
<ide> try
<ide> {
<del> return (Boolean) checkHandler.invoke(container, remoteVersions, side);
<add> return (Boolean) checkHandler.invoke(container.getMod(), remoteVer... | |
Java | apache-2.0 | 27770369091fd063503ccea4cca6a815a03ca79f | 0 | tsmgeek/traccar,renaudallard/traccar,joseant/traccar-1,duke2906/traccar,orcoliver/traccar,tananaev/traccar,al3x1s/traccar,jon-stumpf/traccar,AnshulJain1985/Roadcast-Tracker,duke2906/traccar,vipien/traccar,jssenyange/traccar,tananaev/traccar,jssenyange/traccar,jssenyange/traccar,renaudallard/traccar,stalien/traccar_test... | /*
* Copyright 2012 - 2016 Anton Tananaev (anton.tananaev@gmail.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 req... | src/org/traccar/database/DataManager.java | /*
* Copyright 2012 - 2016 Anton Tananaev (anton.tananaev@gmail.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 req... | - Fixed code style. | src/org/traccar/database/DataManager.java | - Fixed code style. | <ide><path>rc/org/traccar/database/DataManager.java
<ide> int maxPoolSize = config.getInteger("database.maxPoolSize");
<ide>
<ide> if (maxPoolSize != 0) {
<del> hikariConfig.setMaximumPoolSize(maxPoolSize);
<add> hikariConfig.setMaximumPoolSize(maxPoolSize);
<ide> ... | |
JavaScript | mpl-2.0 | 9bcedb638f7178397da03782039c343dc204d8d0 | 0 | TbLtzk/Centaurus,TbLtzk/Centaurus | const reserveChunkCost = 10;
const inflationDestBalanceBuffer = 10;
var centaurusAddress = 'GDJXQYEWDPGYK4LGCLFEV6HBIW3M22IK6NN2WQONHP3ELH6HINIKBVY7';
var poolAddress = 'GA3FUYFOPWZ25YXTCA73RK2UGONHCO27OHQRSGV3VCE67UEPEFEDCOPA';
angular.module('starter.services', ['starter.services.basic'])
.factory('Account', functi... | www/js/services/services.js | const reserveChunkCost = 10;
const inflationDestBalanceBuffer = 10;
var centaurusAddress = 'GDJXQYEWDPGYK4LGCLFEV6HBIW3M22IK6NN2WQONHP3ELH6HINIKBVY7';
var poolAddress = 'GA3FUYFOPWZ25YXTCA73RK2UGONHCO27OHQRSGV3VCE67UEPEFEDCOPA';
angular.module('starter.services', ['starter.services.basic'])
.factory('Account', functi... | clarify on centaurus donation address
| www/js/services/services.js | clarify on centaurus donation address | <ide><path>ww/js/services/services.js
<ide> .factory('Contacts', function () {
<ide> // contact names are considered an id and have to be unique
<ide> var contacts = [
<del> { name: 'Centaurus', address: centaurusAddress, memo: null, memoType: null }
<add> { name: 'Centaurus donation address', add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.