lang stringclasses 2
values | license stringclasses 13
values | stderr stringlengths 0 343 | commit stringlengths 40 40 | returncode int64 0 128 | repos stringlengths 6 87.7k | new_contents stringlengths 0 6.23M | new_file stringlengths 3 311 | old_contents stringlengths 0 6.23M | message stringlengths 6 9.1k | old_file stringlengths 3 311 | subject stringlengths 0 4k | git_diff stringlengths 0 6.31M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Java | apache-2.0 | error: pathspec 'ohmdb-test/src/test/java/com/ohmdb/basic/ShortyTest.java' did not match any file(s) known to git
| 73eee6ececa13df84795a9eb9802cb9b21e4b5c3 | 1 | ohmdb/ohmdb,gitblit/ohmdb,ohmdb/ohmdb,gitblit/ohmdb | package com.ohmdb.basic;
/*
* #%L
* ohmdb-test
* %%
* Copyright (C) 2013 - 2014 Nikolche Mihajlovski
* %%
* 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.... | ohmdb-test/src/test/java/com/ohmdb/basic/ShortyTest.java | Initial commit: ShortyTest.java
| ohmdb-test/src/test/java/com/ohmdb/basic/ShortyTest.java | Initial commit: ShortyTest.java | <ide><path>hmdb-test/src/test/java/com/ohmdb/basic/ShortyTest.java
<add>package com.ohmdb.basic;
<add>
<add>/*
<add> * #%L
<add> * ohmdb-test
<add> * %%
<add> * Copyright (C) 2013 - 2014 Nikolche Mihajlovski
<add> * %%
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this ... | |
JavaScript | bsd-3-clause | da398f875f30373b153b525485d2e35d23c24918 | 0 | cedricpinson/WebGL-Inspector,benvanik/WebGL-Inspector,greggman/WebGL-Inspector,greggman/WebGL-Inspector,cedricpinson/WebGL-Inspector,mcanthony/WebGL-Inspector,mcanthony/WebGL-Inspector,cedricpinson/WebGL-Inspector,mcanthony/WebGL-Inspector,benvanik/WebGL-Inspector,TheKK/WebGL-Inspector,benvanik/WebGL-Inspector,TheKK/We... | (function () {
var TraceMinibar = function (view, w) {
var self = this;
this.view = view;
this.window = w;
this.elements = {
bar: w.root.getElementsByClassName("trace-minibar")[0]
};
this.buttons = {};
// Pull out the canvas from the OutputHUD an... | core/ui/traceview.js | (function () {
var TraceMinibar = function (view, w) {
var self = this;
this.view = view;
this.window = w;
this.elements = {
bar: w.root.getElementsByClassName("trace-minibar")[0]
};
this.buttons = {};
// Pull out the canvas from the OutputHUD an... | avoid heavy work on each replay step until the end
| core/ui/traceview.js | avoid heavy work on each replay step until the end | <ide><path>ore/ui/traceview.js
<ide> this.replay = new gli.Replay(w.context, replaygl);
<ide>
<ide> this.replay.onStep = function (replay, frame, callIndex) {
<del> self.view.traceListing.setActiveCall(callIndex);
<add> self.lastCallIndex = callIndex;
<ide> };
<ide>
<ide>... | |
Java | apache-2.0 | 97fb3779440636c9cf202c3a63f2a6bd4b350400 | 0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing.contentQueue;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ReadAction;
import com.intell... | platform/lang-impl/src/com/intellij/util/indexing/contentQueue/IndexUpdateRunner.java | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing.contentQueue;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ReadAction;
import com.intell... | Indexing: track number of running workers and add new workers if necessary.
If worker threads die for whatever reason, we don't want indexing to stop (we used to have some bugs when indexing worker would finish with an exception and indexing wouldn't make progress). Let's guarantee there are enough workers running.
G... | platform/lang-impl/src/com/intellij/util/indexing/contentQueue/IndexUpdateRunner.java | Indexing: track number of running workers and add new workers if necessary. | <ide><path>latform/lang-impl/src/com/intellij/util/indexing/contentQueue/IndexUpdateRunner.java
<ide> else {
<ide> ourIndexingJobs.add(indexingJob);
<ide> try {
<del> for (int i = 0; i < myNumberOfIndexingThreads; i++) {
<del> myIndexingExecutor.execute(() -> indexJobsFairly());
<del> ... | |
Java | apache-2.0 | error: pathspec 'src/test/com/google/inject/BindingTypesTest.java' did not match any file(s) known to git
| 0fdae330d8a1d5b69d85bf9da97f4571f1764999 | 1 | mikosik/deguicifier | package com.google.inject;
import static org.hamcrest.Matchers.instanceOf;
import static org.testory.Testory.given;
import static org.testory.Testory.thenReturned;
import static org.testory.Testory.when;
import org.junit.Test;
import com.google.inject.spi.ConstructorBinding;
import com.google.inject.spi.InstanceBind... | src/test/com/google/inject/BindingTypesTest.java | created learning test explaining Binding types
| src/test/com/google/inject/BindingTypesTest.java | created learning test explaining Binding types | <ide><path>rc/test/com/google/inject/BindingTypesTest.java
<add>package com.google.inject;
<add>
<add>import static org.hamcrest.Matchers.instanceOf;
<add>import static org.testory.Testory.given;
<add>import static org.testory.Testory.thenReturned;
<add>import static org.testory.Testory.when;
<add>
<add>import org.juni... | |
Java | apache-2.0 | 8ae1f8e24a7156c189bab50d30b794587809a6ca | 0 | romy-khetan/hydrator-plugins,ananya-bhattacharya/hydrator-plugins | /*
* Copyright © 2015-2016 Cask Data, 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 agr... | database-plugins/src/main/java/co/cask/hydrator/plugin/db/batch/sink/DBSink.java | /*
* Copyright © 2015-2016 Cask Data, 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 agr... | CDAP-4908 fix tablename description.
| database-plugins/src/main/java/co/cask/hydrator/plugin/db/batch/sink/DBSink.java | CDAP-4908 fix tablename description. | <ide><path>atabase-plugins/src/main/java/co/cask/hydrator/plugin/db/batch/sink/DBSink.java
<ide> @Description("Comma-separated list of columns in the specified table to export to.")
<ide> public String columns;
<ide>
<del> @Description("Name of the database table to use as a source or a sink.")
<add> @De... | |
Java | apache-2.0 | 29d0b7e3b4ec4378caa6f501c5904b30a4ccdfd5 | 0 | gpolitis/jitsi-videobridge,gpolitis/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,gpolitis/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,davidertel/jitsi-videobridge,davidertel/jitsi-videobridge,jitsi/jitsi-videobridge,davidertel/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/ji... | /*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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 ag... | src/main/java/org/jitsi/videobridge/LipSyncHack.java | /*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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 ag... | Fixes a counter increment bug.
| src/main/java/org/jitsi/videobridge/LipSyncHack.java | Fixes a counter increment bug. | <ide><path>rc/main/java/org/jitsi/videobridge/LipSyncHack.java
<ide> synchronized (injectState)
<ide> {
<ide> if (!injectState.active
<del> || injectState.numOfKeyframesSent++ >= MAX_KEY_FRAMES)
<add> || injectState.numOfKeyframesSent >= MAX_... | |
Java | bsd-3-clause | 5836cab33f9dc728122144268a857eb79587e4b0 | 0 | eclipse/rdf4j,eclipse/rdf4j,eclipse/rdf4j,eclipse/rdf4j,eclipse/rdf4j,eclipse/rdf4j | package org.eclipse.rdf4j.validation;
import org.eclipse.rdf4j.IsolationLevel;
import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Statement;
import org.eclipse.rdf4j.model.impl.TreeModel;
import org.eclipse.rdf4j.sail.NotifyingSailConnection;
import org.eclipse.rdf4j.sail.SailConnectionListener;
impo... | core/shacl/src/main/java/org/eclipse/rdf4j/validation/SHACLSailConnection.java | package org.eclipse.rdf4j.validation;
import org.eclipse.rdf4j.IsolationLevel;
import org.eclipse.rdf4j.model.Statement;
import org.eclipse.rdf4j.sail.NotifyingSailConnection;
import org.eclipse.rdf4j.sail.SailConnectionListener;
import org.eclipse.rdf4j.sail.SailException;
import org.eclipse.rdf4j.sail.helpers.Notif... | add statement added and statement removed
Signed-off-by: Heshan Jayasinghe <heshanjse>
Signed-off-by: Håvard Ottestad <0313105c39e1062c29c412ba0556463f04f14c95@gmail.com>
| core/shacl/src/main/java/org/eclipse/rdf4j/validation/SHACLSailConnection.java | add statement added and statement removed | <ide><path>ore/shacl/src/main/java/org/eclipse/rdf4j/validation/SHACLSailConnection.java
<ide> package org.eclipse.rdf4j.validation;
<ide>
<del>
<ide> import org.eclipse.rdf4j.IsolationLevel;
<add>import org.eclipse.rdf4j.model.Model;
<ide> import org.eclipse.rdf4j.model.Statement;
<add>import org.eclipse.rdf4j.model.... | |
Java | agpl-3.0 | ef77e4fbf46029a15a85241b308e2c2689f35004 | 0 | smith750/kfs,quikkian-ua-devops/kfs,smith750/kfs,ua-eas/kfs-devops-automation-fork,UniversityOfHawaii/kfs,kuali/kfs,bhutchinson/kfs,quikkian-ua-devops/will-financials,ua-eas/kfs,bhutchinson/kfs,ua-eas/kfs-devops-automation-fork,smith750/kfs,kuali/kfs,ua-eas/kfs-devops-automation-fork,ua-eas/kfs-devops-automation-fork,U... | /*
* Copyright 2005-2006 The Kuali Foundation.
*
* $Source: /opt/cvs/kfs/work/src/org/kuali/kfs/module/purap/businessobject/PurchaseOrderStatus.java,v $
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... | work/src/org/kuali/kfs/module/purap/businessobject/PurchaseOrderStatus.java | /*
* Copyright 2005-2006 The Kuali Foundation.
*
* $Source: /opt/cvs/kfs/work/src/org/kuali/kfs/module/purap/businessobject/PurchaseOrderStatus.java,v $
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... | KULPURAP-251: Fixing the bug for search
| work/src/org/kuali/kfs/module/purap/businessobject/PurchaseOrderStatus.java | KULPURAP-251: Fixing the bug for search | <ide><path>ork/src/org/kuali/kfs/module/purap/businessobject/PurchaseOrderStatus.java
<ide>
<ide> private String purchaseOrderStatusCode;
<ide> private String purchaseOrderStatusDescription;
<del> private String dataObjectMaintenanceCodeActiveIndicator;
<add> private boolean dataObjectMaintenanceCodeActiveIndicator;... | |
Java | mit | eb8a1422b48c0ea5fa41d39475ab4ee4ca5f739b | 0 | chriskearney/creeper,Syncleus/AetherMUD,chriskearney/creeper,Dibasic/creeper,Syncleus/AetherMUD | package com.comandante.creeper.room;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterators;
import com.google.common.collect.Lists;
import com.google.common.collect.UnmodifiableIterator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List... | src/main/java/com/comandante/creeper/room/MapMatrix.java | package com.comandante.creeper.room;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterators;
import com.google.common.collect.Lists;
import com.google.common.collect.UnmodifiableIterator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List... | done for real
| src/main/java/com/comandante/creeper/room/MapMatrix.java | done for real | <ide><path>rc/main/java/com/comandante/creeper/room/MapMatrix.java
<ide> int columnDifference = destinationMatrix.getMaxCol() / 2 - coords.column;
<ide> Iterator<List<Integer>> rows = getRows();
<ide> while (rows.hasNext()) {
<del> Iterator<Integer> row = rows.next().iterator();
<del>... | |
Java | apache-2.0 | d3de62f6a158231696d7a628b2e6bc9eef807012 | 0 | pyamsoft/power-manager,pyamsoft/power-manager | /*
* Copyright 2016 Peter Kenji Yamanaka
*
* 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 a... | src/main/java/com/pyamsoft/powermanager/app/main/MainActivity.java | /*
* Copyright 2016 Peter Kenji Yamanaka
*
* 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 a... | Update to latest pydroid
| src/main/java/com/pyamsoft/powermanager/app/main/MainActivity.java | Update to latest pydroid | <ide><path>rc/main/java/com/pyamsoft/powermanager/app/main/MainActivity.java
<ide> import com.pyamsoft.pydroid.about.AboutLibrariesFragment;
<ide> import com.pyamsoft.pydroid.app.PersistLoader;
<ide> import com.pyamsoft.pydroid.sec.TamperActivity;
<del>import com.pyamsoft.pydroid.support.RatingDialog;
<add>import com.p... | |
Java | apache-2.0 | 45ac4cec61b79977c14179309b9a4d7737c373c1 | 0 | sebastiansokolowski/ReservationSystem-BJ,sebastiansokolowski/ReservationSystem-BJ | package bj.pranie.controller;
import bj.pranie.dao.RoomDao;
import bj.pranie.service.UserAuthenticatedService;
import bj.pranie.service.UserServiceImpl;
import bj.pranie.entity.Room;
import bj.pranie.entity.User;
import bj.pranie.model.UserRegistrationModel;
import bj.pranie.model.UserSettingsModel;
import org.modelma... | src/main/java/bj/pranie/controller/UserController.java | package bj.pranie.controller;
import bj.pranie.dao.RoomDao;
import bj.pranie.service.UserAuthenticatedService;
import bj.pranie.service.UserServiceImpl;
import bj.pranie.entity.Room;
import bj.pranie.entity.User;
import bj.pranie.model.UserRegistrationModel;
import bj.pranie.model.UserSettingsModel;
import org.modelma... | Fix no give user tokens at start.
| src/main/java/bj/pranie/controller/UserController.java | Fix no give user tokens at start. | <ide><path>rc/main/java/bj/pranie/controller/UserController.java
<ide> @Controller
<ide> @RequestMapping("/user")
<ide> public class UserController {
<add>
<add> private final static int TOKENS_AT_START = 2;
<ide>
<ide> @Autowired
<ide> private RoomDao roomDao;
<ide> ModelMapper modelMapper = ne... | |
Java | apache-2.0 | 34f4be73dbce33a3cebce95363c6a6b4a136a74f | 0 | Grasia/swellrt,P2Pvalue/swellrt,P2Pvalue/swellrt,P2Pvalue/swellrt,Grasia/swellrt,Grasia/swellrt,Grasia/swellrt,P2Pvalue/swellrt | package org.swellrt.model.js;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArrayMixed;
import com.google.gwt.core.client.JsArrayString;
import org.swellrt.model.generic.BooleanType;
import org.swellrt.model.generic.ListType;
import org.swellrt.model.generic.MapType;
import o... | src/org/swellrt/model/js/ProxyAdapter.java | package org.swellrt.model.js;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArrayMixed;
import com.google.gwt.core.client.JsArrayString;
import org.swellrt.model.generic.BooleanType;
import org.swellrt.model.generic.ListType;
import org.swellrt.model.generic.MapType;
import o... | New js api. Get object id. | src/org/swellrt/model/js/ProxyAdapter.java | New js api. Get object id. | <ide><path>rc/org/swellrt/model/js/ProxyAdapter.java
<ide> return target._object.@org.swellrt.model.generic.Model::getModelDocument(Ljava/lang/String;)(node);
<ide> };
<ide>
<add> } else if (propKey == "_oid") {
<add>
<add> // TODO make _id property read-onl... | |
Java | apache-2.0 | b5612456c47f917a4202b121bb2c0615cfd17122 | 0 | sizebay/Sizebay-Catalog-API-Client,sizebay/Sizebay-Catalog-API-Client | package sizebay.catalog.client.model.filters;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
@Getter
@Setter
@NoArgsC... | src/main/java/sizebay/catalog/client/model/filters/ProductFilter.java | package sizebay.catalog.client.model.filters;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ProductFilter extends Filter {... | feat: added enconder on set permalink and create get decode permalink
| src/main/java/sizebay/catalog/client/model/filters/ProductFilter.java | feat: added enconder on set permalink and create get decode permalink | <ide><path>rc/main/java/sizebay/catalog/client/model/filters/ProductFilter.java
<ide> import lombok.NoArgsConstructor;
<ide> import lombok.Setter;
<ide> import lombok.experimental.Accessors;
<add>
<add>import java.net.URLDecoder;
<add>import java.net.URLEncoder;
<add>import java.nio.charset.StandardCharsets;
<ide>
<id... | |
Java | apache-2.0 | e2ebcafaae9dffaea6ae3c17ebd62dbc2abbbb1f | 0 | tascape/thx-ios,tascape/thx-ios | /*
* Copyright 2015.
*
* 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... | uia-test/src/main/java/com/tascape/qa/th/ios/driver/UiAutomationDevice.java | /*
* Copyright 2015.
*
* 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... | add send js timeout
| uia-test/src/main/java/com/tascape/qa/th/ios/driver/UiAutomationDevice.java | add send js timeout | <ide><path>ia-test/src/main/java/com/tascape/qa/th/ios/driver/UiAutomationDevice.java
<ide> import org.slf4j.Logger;
<ide> import org.slf4j.LoggerFactory;
<ide> import com.martiansoftware.nailgun.NGServer;
<add>import com.tascape.qa.th.SystemConfiguration;
<ide> import com.tascape.qa.th.exception.EntityDriverException;... | |
Java | mit | f40c8296eb4558ddef29be5bdc759027c6b4bcc9 | 0 | thandomy/foodie | package com.team3009.foodie;
import android.support.test.espresso.ViewInteraction;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.LargeTest;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;... | app/src/androidTest/java/com/team3009/foodie/MainActivityTest.java | package com.team3009.foodie;
import android.support.test.espresso.ViewInteraction;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.LargeTest;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;... | testing
| app/src/androidTest/java/com/team3009/foodie/MainActivityTest.java | testing | <ide><path>pp/src/androidTest/java/com/team3009/foodie/MainActivityTest.java
<ide> import static android.support.test.espresso.action.ViewActions.click;
<ide> import static android.support.test.espresso.action.ViewActions.closeSoftKeyboard;
<ide> import static android.support.test.espresso.action.ViewActions.replaceTex... | |
Java | apache-2.0 | 10b2cd98f6cdd1eefa4308c32d958eee0fcbd11f | 0 | lijiangdong/News | /*
* Copyright (C) 2016 Li Jiangdong Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | app/src/main/java/com/ljd/news/presentation/NewsApplication.java | /*
* Copyright (C) 2016 Li Jiangdong Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | commit
| app/src/main/java/com/ljd/news/presentation/NewsApplication.java | commit | <ide><path>pp/src/main/java/com/ljd/news/presentation/NewsApplication.java
<ide> public void onCreate() {
<ide> super.onCreate();
<ide> initializeInjector();
<add> getApplicationComponent().inject(this);
<ide> initToastUtils();
<del>// initLeakCanary();
<ide> initTimber... | |
Java | apache-2.0 | 17098e8da84347c88c8cce60d54e0d8bf4ecce24 | 0 | tylerparsons/surfdep | /*
######################################
SurfaceGrowth.java
@author Tyler Parsons
@created 7 May 2014
A runnable class that manages instant-
iation of models, visualization, data
analysis, UI and I/O of parameters.
######################################
*/
package ch13;
import org.opensourcephysics.controls.Abstr... | SurfaceGrowth.java | /*
######################################
SurfaceGrowth.java
@author Tyler Parsons
@created 7 May 2014
A runnable class that manages instant-
iation of models, visualization, data
analysis, UI and I/O of parameters.
######################################
*/
package ch13;
import org.opensourcephysics.controls.Abstr... | Obscuring implementation of Ballistic Diffusion Model
| SurfaceGrowth.java | Obscuring implementation of Ballistic Diffusion Model | <ide><path>urfaceGrowth.java
<ide> public SurfaceGrowth() {
<ide>
<ide> //set up visualizations
<del> model = new BallisticDiffusionModel();
<add> model = new BallisticDeposition();
<ide> models = new ArrayList<Deposition>();
<ide> lattice = new LatticeFrame(model.getClass().getName());
<ide>
<ide>
<id... | |
JavaScript | mit | c774dcdcaf1a5cec9d87aac2ddbbfbe14f713275 | 0 | nilenso/ashoka-survey-mobile,nilenso/ashoka-survey-mobile | var _ = require('lib/underscore')._;
var Answer = require('models/answer');
var Choice = require('models/choice');
var Response = new Ti.App.joli.model({
table : 'responses',
columns : {
id : 'INTEGER PRIMARY KEY',
survey_id : 'INTEGER',
web_id : 'INTEGER',
status : 'TEXT',
updated_at : 'TEXT'
... | Resources/models/response.js | var _ = require('lib/underscore')._;
var Answer = require('models/answer');
var Choice = require('models/choice');
var Response = new Ti.App.joli.model({
table : 'responses',
columns : {
id : 'INTEGER PRIMARY KEY',
survey_id : 'INTEGER',
web_id : 'INTEGER',
status : 'TEXT',
updated_at : 'TEXT'
... | Delete obsolete answers to subquestions on saving a response
| Resources/models/response.js | Delete obsolete answers to subquestions on saving a response | <ide><path>esources/models/response.js
<ide> 'status' : status,
<ide> 'updated_at' : (new Date()).toString()
<ide> });
<add> var self = this;
<ide> _(answersData).each(function(answerData) {
<ide> var answer = Answer.findOneById(answerData.id);
<del> answer.update(answerD... | |
Java | bsd-3-clause | b2b957e6b31f5078b7a166530e2d43e965917c16 | 0 | interdroid/ibis-ipl,interdroid/ibis-ipl,interdroid/ibis-ipl | /* $Id$ */
strictfp class BodyTreeNode {
// Instance counter;
public static int InstanceCount = 0;
// Debugging stuff;
public static boolean btnDebug;
/*
private static final String depthStr[] = {
"",
".",
"..",
"...",
"....",
".....",
"......",
"... | apps/rmi/barnes/BodyTreeNode.java | /* $Id$ */
strictfp class BodyTreeNode {
// Instance counter;
public static int InstanceCount = 0;
// Debugging stuff;
public static boolean btnDebug;
/*
private static final String depthStr[] = {
"",
".",
"..",
"...",
"....",
".....",
"......",
"... | debugging barnes
git-svn-id: f22e84ca493ccad7df8d2727bca69d1c9fc2e5c5@3565 aaf88347-d911-0410-b711-e54d386773bb
| apps/rmi/barnes/BodyTreeNode.java | debugging barnes | <ide><path>pps/rmi/barnes/BodyTreeNode.java
<ide> }
<ide> }
<ide>
<del> System.out.println("acc for body " + " = " + b.bAcc.x + ", " + b.bAcc.y + ", " + b.bAcc.z);
<add> System.err.println("acc for body " + " = " + b.bAcc.x + ", " + b.bAcc.y + ", " + b.bAcc.z);
<ide> }
<ide>
<id... | |
Java | apache-2.0 | c0d8bb62fda4a1c3ac0c2a30520d1cda7e1b27b2 | 0 | hsaputra/cdap,caskdata/cdap,mpouttuclarke/cdap,mpouttuclarke/cdap,chtyim/cdap,chtyim/cdap,mpouttuclarke/cdap,caskdata/cdap,anthcp/cdap,caskdata/cdap,hsaputra/cdap,anthcp/cdap,caskdata/cdap,chtyim/cdap,anthcp/cdap,caskdata/cdap,caskdata/cdap,anthcp/cdap,anthcp/cdap,hsaputra/cdap,chtyim/cdap,chtyim/cdap,mpouttuclarke/cda... | /*
* Copyright © 2015 Cask Data, 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 t... | cdap-app-fabric/src/main/java/co/cask/cdap/internal/app/runtime/schedule/Schedules.java | /*
* Copyright © 2015 Cask Data, 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 t... | Remove empty lines
| cdap-app-fabric/src/main/java/co/cask/cdap/internal/app/runtime/schedule/Schedules.java | Remove empty lines | <ide><path>dap-app-fabric/src/main/java/co/cask/cdap/internal/app/runtime/schedule/Schedules.java
<ide> throw new IllegalArgumentException("Could not parse the frequency");
<ide> }
<ide> }
<del>
<del>
<ide> } | |
Java | apache-2.0 | 0faaba9d4cd9950b3715d8afbaa7f88061604ddc | 0 | AnySoftKeyboard/AnySoftKeyboard,AnySoftKeyboard/AnySoftKeyboard,OmerMachluf/Mykeyboard,AnySoftKeyboard/AnySoftKeyboard,OmerMachluf/Mykeyboard,AnySoftKeyboard/AnySoftKeyboard,OmerMachluf/Mykeyboard,OmerMachluf/Mykeyboard,OmerMachluf/Mykeyboard,AnySoftKeyboard/AnySoftKeyboard,OmerMachluf/Mykeyboard,AnySoftKeyboard/AnySof... | /*
* Copyright (C) 2008-2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | src/com/menny/android/anysoftkeyboard/AnySoftKeyboard.java | /*
* Copyright (C) 2008-2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Issue 162 - even better
| src/com/menny/android/anysoftkeyboard/AnySoftKeyboard.java | Issue 162 - even better | <ide><path>rc/com/menny/android/anysoftkeyboard/AnySoftKeyboard.java
<ide> break;
<ide> default:
<ide> mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState, keyCode, event);
<add> final int clearStatesFlags = ~MetaKeyKeyListener.getMetaState(mMetaState);
<add> InputConnection ic = getCurrentInputConne... | |
Java | mit | 258b3c76452696ed2d4d2a841831680003294d0c | 0 | Bammerbom/UltimateCore | /*
* This file is part of UltimateCore, licensed under the MIT License (MIT).
*
* Copyright (c) Bammerbom
*
* 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, includi... | src/main/java/bammerbom/ultimatecore/sponge/modules/item/api/ItemPermissions.java | /*
* This file is part of UltimateCore, licensed under the MIT License (MIT).
*
* Copyright (c) Bammerbom
*
* 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, includi... | Comment permissions which are unused for now
| src/main/java/bammerbom/ultimatecore/sponge/modules/item/api/ItemPermissions.java | Comment permissions which are unused for now | <ide><path>rc/main/java/bammerbom/ultimatecore/sponge/modules/item/api/ItemPermissions.java
<ide> public static Permission UC_ITEM_ITEMHIDETAGS_BASE = Permission.create("uc.item.itemhidetags.base", "item", PermissionLevel.ADMIN, "itemhidetags", Text.of("Allows you to use the itemhidetags command."));
<ide> publ... | |
Java | mit | b9218f5976440d2ed638803cf70a4875be212b8f | 0 | relayrides/pushy,urbanairship/pushy,relayrides/pushy,urbanairship/pushy,relayrides/pushy,urbanairship/pushy | /* Copyright (c) 2013 RelayRides
*
* 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, modify, merge, publish, di... | src/main/java/com/relayrides/pushy/apns/PushManager.java | /* Copyright (c) 2013 RelayRides
*
* 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, modify, merge, publish, di... | Fixed a dumb typo.
| src/main/java/com/relayrides/pushy/apns/PushManager.java | Fixed a dumb typo. | <ide><path>rc/main/java/com/relayrides/pushy/apns/PushManager.java
<ide> } else {
<ide> // Never use more threads than concurrent connections (Netty binds a channel to a single thread, so the
<ide> // excess threads would always go unused)
<del> final int threadCounts = Math.min(concurrentConnectionCount, Run... | |
JavaScript | mit | 2f144fdec26c8ab39ec7e54ed7f1dd6cb63f7928 | 0 | BostonGlobe/slush-globeapp,BostonGlobe/slush-globeapp | import setPathCookie from './utils/setPathCookie'
import removeMobileHover from './utils/removeMobileHover'
import wireSocialButtons from './utils/wireSocialButtons'
removeMobileHover()
setPathCookie()
// Add class to html if JS is loaded
document.querySelector('html').classList.add('has-loaded')
// Wire header soci... | templates/src/js/app.js | import setPathCookie from './utils/setPathCookie'
import removeMobileHover from './utils/removeMobileHover'
import wireSocialButtons from './utils/wireSocialButtons'
removeMobileHover()
setPathCookie()
// Add class to html if JS is loaded
document.querySelector('html').classList.add('has-loaded')
// Wire header soci... | Remove unnecessary syntax
| templates/src/js/app.js | Remove unnecessary syntax | <ide><path>emplates/src/js/app.js
<ide> document.querySelector('html').classList.add('has-loaded')
<ide>
<ide> // Wire header social if present
<del>if (document.querySelectorAll('.g-header__share').length > 0) {
<add>if (document.querySelectorAll('.g-header__share').length) {
<ide> wireSocialButtons({
<ide> facebo... | |
Java | mit | c8a21724585ced0b4eb1ceaf02d748a37aafda6e | 0 | epam/NGB,epam/NGB,epam/NGB,epam/NGB | /*
* MIT License
*
* Copyright (c) 2016-2021 EPAM Systems
*
* 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... | server/catgenome/src/main/java/com/epam/catgenome/manager/FeatureIndexManager.java | /*
* MIT License
*
* Copyright (c) 2016-2021 EPAM Systems
*
* 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... | Fix gene field values method
| server/catgenome/src/main/java/com/epam/catgenome/manager/FeatureIndexManager.java | Fix gene field values method | <ide><path>erver/catgenome/src/main/java/com/epam/catgenome/manager/FeatureIndexManager.java
<ide> }
<ide>
<ide> public IndexSearchResult<GeneIndexEntry> searchGenesByReference(final GeneFilterForm filterForm,
<del> final long referenceId) t... | |
Java | mpl-2.0 | fef497f2abf155d8941b552603fe1ea7b22a164b | 0 | ydautremay/seed,jin19910624/seed,kavi87/seed,ydautremay/seed,tbouvet/seed,ydautremay/seed,kavi87/seed,jin19910624/seed,seedstack/seed,kavi87/seed,pith/seed,adrienlauer/seed,seedstack/seed,jin19910624/seed,Sherpard/seed,seedstack/seed,tbouvet/seed,pith/seed,adrienlauer/seed,Sherpard/seed,tbouvet/seed,jin19910624/seed,ad... | /**
* Copyright (c) 2013-2015 by The SeedStack authors. All rights reserved.
*
* This file is part of SeedStack, An enterprise-oriented full development stack.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You... | security-support/core/src/main/java/org/seedstack/seed/security/internal/ShiroSecuritySupport.java | /**
* Copyright (c) 2013-2015 by The SeedStack authors. All rights reserved.
*
* This file is part of SeedStack, An enterprise-oriented full development stack.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You... | Null object detected and dealt with by returning empty collection
| security-support/core/src/main/java/org/seedstack/seed/security/internal/ShiroSecuritySupport.java | Null object detected and dealt with by returning empty collection | <ide><path>ecurity-support/core/src/main/java/org/seedstack/seed/security/internal/ShiroSecuritySupport.java
<ide> import org.apache.shiro.mgt.RealmSecurityManager;
<ide> import org.apache.shiro.realm.Realm;
<ide> import org.apache.shiro.session.Session;
<add>import org.apache.shiro.subject.PrincipalCollection;
<ide> i... | |
Java | agpl-3.0 | f1f5ef3ad116baf999c4c39339b2fb5fdea7a61f | 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 | ac93370a-2e5f-11e5-9284-b827eb9e62be | hello.java | ac8db262-2e5f-11e5-9284-b827eb9e62be | ac93370a-2e5f-11e5-9284-b827eb9e62be | hello.java | ac93370a-2e5f-11e5-9284-b827eb9e62be | <ide><path>ello.java
<del>ac8db262-2e5f-11e5-9284-b827eb9e62be
<add>ac93370a-2e5f-11e5-9284-b827eb9e62be | |
JavaScript | mit | 178c59bb6235425b6d882895632beca74d215ef2 | 0 | scola84/node-validator | import Check from '../check';
export default class ArrayCheck extends Check {
constructor() {
super();
this._with = null;
}
with(...check) {
this._with = check;
return this;
}
check(value, options = {}) {
if (!Array.isArray(value)) {
return this._reason(false);
}
if (!thi... | src/check/array.js | import Check from '../check';
export default class ArrayCheck extends Check {
constructor() {
super();
this._with = null;
}
with(check) {
this._with = check;
return this;
}
check(value, options = {}) {
if (!Array.isArray(value)) {
return this._reason(false);
}
if (!this._... | Accept multiple checks in array
| src/check/array.js | Accept multiple checks in array | <ide><path>rc/check/array.js
<ide> this._with = null;
<ide> }
<ide>
<del> with(check) {
<add> with(...check) {
<ide> this._with = check;
<ide> return this;
<ide> }
<ide> let result = null;
<ide>
<ide> return value.every((entry) => {
<del> result = this._with.check(entry, options);
<del>... | |
Java | mit | 9ac055a5c6b74724d65a0825ad39e12b818a8e39 | 0 | jonalmeida/JOHN | package com.jonalmeida.john;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearL... | app/src/main/java/com/jonalmeida/john/NewsItemsRecyclerFragment.java | package com.jonalmeida.john;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearL... | Scroll listener to hide SupportActionBar
| app/src/main/java/com/jonalmeida/john/NewsItemsRecyclerFragment.java | Scroll listener to hide SupportActionBar | <ide><path>pp/src/main/java/com/jonalmeida/john/NewsItemsRecyclerFragment.java
<ide> mLinearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
<ide>
<ide> mRecyclerView.setLayoutManager(mLinearLayoutManager);
<add>
<add> setScrollListener(mRecyclerView);
<ide>
<ide> }
<ide>
<ide> ... | |
JavaScript | agpl-3.0 | c3df6eab89896ceff4fe2e961de19c2b95c51b64 | 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 | 01149036-2e64-11e5-9284-b827eb9e62be | helloWorld.js | 010f1ae8-2e64-11e5-9284-b827eb9e62be | 01149036-2e64-11e5-9284-b827eb9e62be | helloWorld.js | 01149036-2e64-11e5-9284-b827eb9e62be | <ide><path>elloWorld.js
<del>010f1ae8-2e64-11e5-9284-b827eb9e62be
<add>01149036-2e64-11e5-9284-b827eb9e62be | |
JavaScript | bsd-3-clause | 48eec5efbe92b523e4f35e7e29dfaaf516567e58 | 0 | Ventero/greasemonkey,HasClass0/greasemonkey,the8472/greasemonkey,the8472/greasemonkey,HasClass0/greasemonkey,Martii/greasemonkey,Ventero/greasemonkey,Martii/greasemonkey | const EXPORTED_SYMBOLS = ['timeout'];
function timeout(aCallback, aDelay) {
// Create the timer object.
var timer = Components.classes["@mozilla.org/timer;1"]
.createInstance(Components.interfaces.nsITimer);
// The timer object may be garbage collected before it fires, so we need to
// keep a reference ... | modules/util/timeout.js | Components.utils.import('resource://greasemonkey/util.js');
const EXPORTED_SYMBOLS = ['timeout'];
function timeout(aCallback, aDelay, aType) {
var type = aType;
if ('undefined' == typeof type) {
type = Components.interfaces.nsITimer.TYPE_ONE_SHOT;
}
// Create the timer object.
var timer = Components.cl... | Use more robust way to keep the timer reference alive.
Strict mode generates a warning about |timer;| being a useless
expression, which suggest that this might be optimized away at some
point (see also https://bugzil.la/640629#c9). Instead, explicitly
store the timer in the observer object.
| modules/util/timeout.js | Use more robust way to keep the timer reference alive. | <ide><path>odules/util/timeout.js
<del>Components.utils.import('resource://greasemonkey/util.js');
<del>
<ide> const EXPORTED_SYMBOLS = ['timeout'];
<ide>
<del>function timeout(aCallback, aDelay, aType) {
<del> var type = aType;
<del> if ('undefined' == typeof type) {
<del> type = Components.interfaces.nsITimer.T... | |
JavaScript | mit | e381202fac51e1daef88a4877094809589bfd596 | 0 | dantman/4query,dantman/4query | /*
* jQuery @VERSION - New Wave Javascript
*
* Copyright (c) 2006 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date$
* $Rev$
*/
// Global undefined variable
window.undefined = window.undefined;
/**
* Create a new jQuery Object
*
* @test... | src/jquery/jquery.js | /*
* jQuery @VERSION - New Wave Javascript
*
* Copyright (c) 2006 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date$
* $Rev$
*/
// Global undefined variable
window.undefined = window.undefined;
/**
* Create a new jQuery Object
*
* @test... | Fixed previous() in docs
git-svn-id: a6f3e0ffc78e78789c45711e92f8046af3fcb362@501 c715fcbe-d12f-0410-84c4-316a508785bb
| src/jquery/jquery.js | Fixed previous() in docs | <ide><path>rc/jquery/jquery.js
<ide> *
<ide> * It only returns the immediately previous sibling, not all previous siblings.
<ide> *
<del> * @example $("p").previous(".selected")
<add> * @example $("p").prev(".selected")
<ide> * @before <div><span>Hello</span></div><p class="selected">Hello Again</p><p>A... | |
Java | epl-1.0 | 57e626a3d86276b2c248450f272e3615422895df | 0 | codenvy/che,davidfestal/che,jonahkichwacoders/che,akervern/che,TypeFox/che,sleshchenko/che,TypeFox/che,akervern/che,akervern/che,jonahkichwacoders/che,TypeFox/che,codenvy/che,davidfestal/che,akervern/che,codenvy/che,akervern/che,sleshchenko/che,Patricol/che,davidfestal/che,Patricol/che,davidfestal/che,jonahkichwacoders... | /*
* Copyright (c) 2012-2017 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red H... | ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/factory/FactoryExtension.java | /*
* Copyright (c) 2012-2017 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red H... | Remove unused legacy parts (#6351)
| ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/factory/FactoryExtension.java | Remove unused legacy parts (#6351) | <ide><path>de/che-core-ide-app/src/main/java/org/eclipse/che/ide/factory/FactoryExtension.java
<ide> */
<ide> package org.eclipse.che.ide.factory;
<ide>
<del>import static com.google.gwt.core.client.ScriptInjector.TOP_WINDOW;
<ide> import static org.eclipse.che.ide.api.action.IdeActions.GROUP_PROJECT;
<ide> import st... | |
Java | bsd-2-clause | 43a444a22c775a2ae509ab39f2ce19c0369d5a86 | 0 | KorAP/Koral | import static org.junit.Assert.*;
import de.ids_mannheim.korap.query.serialize.CollectionQueryTree;
import de.ids_mannheim.korap.util.QueryException;
import org.junit.Test;
public class CollectionQueryTreeTest {
CollectionQueryTree cqt;
String map;
private String query;
private String expected;
private boolean ... | src/test/java/CollectionQueryTreeTest.java | import de.ids_mannheim.korap.query.serialize.CollectionQueryTree;
import de.ids_mannheim.korap.util.QueryException;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CollectionQueryTreeTest {
CollectionQueryTree cqt;
String map;
private String query;
private String expected;
priv... | test content queries
| src/test/java/CollectionQueryTreeTest.java | test content queries | <ide><path>rc/test/java/CollectionQueryTreeTest.java
<add>import static org.junit.Assert.*;
<ide> import de.ids_mannheim.korap.query.serialize.CollectionQueryTree;
<ide> import de.ids_mannheim.korap.util.QueryException;
<ide> import org.junit.Test;
<del>
<del>import static org.junit.Assert.assertEquals;
<ide>
<ide> pu... | |
Java | lgpl-2.1 | bcd25b514df37b5b5eff26b5e9dc330073b736f5 | 0 | svartika/ccnx,cawka/ndnx,ebollens/ccnmp,svartika/ccnx,cawka/ndnx,ebollens/ccnmp,ebollens/ccnmp,cawka/ndnx,svartika/ccnx,svartika/ccnx,svartika/ccnx,ebollens/ccnmp,cawka/ndnx,cawka/ndnx,svartika/ccnx,svartika/ccnx | package com.parc.ccn.data;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import javax.xml.stream.XMLStreamException;
import com.parc.ccn.Library;
import com.parc.ccn.data.util.DataUtils;
import co... | Java_CCN/com/parc/ccn/data/ContentName.java | package com.parc.ccn.data;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import javax.xml.stream.XMLStreamException;
import com.parc.ccn.Library;
import com.parc.ccn.data.util.DataUtils;
import co... | Added working hashCode to ContentName.
| Java_CCN/com/parc/ccn/data/ContentName.java | Added working hashCode to ContentName. | <ide><path>ava_CCN/com/parc/ccn/data/ContentName.java
<ide> return false;
<ide> }
<ide>
<add> /**
<add> * hashCode and equals not auto-generated, ArrayList does not do the right thing.
<add> */
<add> @Override
<ide> public boolean equals(Object obj) {
<ide> if (this == obj)
<ide> return true;
<ide> return... | |
Java | apache-2.0 | fe26567b08e1bb595058ca4309e6de645194e2be | 0 | amygithub/vavr,amygithub/vavr,ummels/vavr,ummels/vavr,dx-pbuckley/vavr,dx-pbuckley/vavr | /* / \____ _ ______ _____ / \____ ____ _____
* / \__ \/ \ / \__ \ / __// \__ \ / \/ __ \ Javaslang
* _/ // _\ \ \/ / _\ \\_ \/ // _\ \ /\ \__/ / Copyright 2014-2015 Daniel Dietrich
* /___/ \_____/\____/\_____/____/\___\_____/_/ \_/____/ Licensed under the Apache License... | src/main/java/javaslang/Value.java | /* / \____ _ ______ _____ / \____ ____ _____
* / \__ \/ \ / \__ \ / __// \__ \ / \/ __ \ Javaslang
* _/ // _\ \ \/ / _\ \\_ \/ // _\ \ /\ \__/ / Copyright 2014-2015 Daniel Dietrich
* /___/ \_____/\____/\_____/____/\___\_____/_/ \_/____/ Licensed under the Apache License... | fixed javadoc
| src/main/java/javaslang/Value.java | fixed javadoc | <ide><path>rc/main/java/javaslang/Value.java
<ide> /**
<ide> * Converts this instance to a Java array.
<ide> *
<add> * @param componentType Component type of the array
<ide> * @return A new Java array.
<ide> * @throws NullPointerException if componentType is null
<ide> */ | |
Java | mit | cdbcb1edc4053bf1cf37908081101fc49414f3d6 | 0 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | package leetcode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* https://leetcode.com/problems/k-closest-points-to-origin/
*/
public class Problem973 {
public int[][] kClosest(int[][] points, int K) {
List<PointDistance> list = new ArrayLi... | src/main/java/leetcode/Problem973.java | package leetcode;
/**
* https://leetcode.com/problems/k-closest-points-to-origin/
*/
public class Problem973 {
public int[][] kClosest(int[][] points, int K) {
// TODO
return null;
}
public static void main(String[] args) {
Problem973 prob = new Problem973();
}
}
| Update problem 973
| src/main/java/leetcode/Problem973.java | Update problem 973 | <ide><path>rc/main/java/leetcode/Problem973.java
<ide> package leetcode;
<add>
<add>import java.util.ArrayList;
<add>import java.util.Arrays;
<add>import java.util.Collections;
<add>import java.util.List;
<ide>
<ide> /**
<ide> * https://leetcode.com/problems/k-closest-points-to-origin/
<ide> */
<ide> public class Pr... | |
Java | apache-2.0 | caa63ea2ca65b5fc40da14210a1dc752e48c369e | 0 | dimagi/javarosa,dimagi/javarosa,dimagi/javarosa | /*
* Copyright (C) 2015 JavaRosa
*
* 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 ... | core/test/org/javarosa/xpath/expr/test/XPathPathExprTest.java | /*
* Copyright (C) 2015 JavaRosa
*
* 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 ... | added test that should pass once path template bug is fixed
| core/test/org/javarosa/xpath/expr/test/XPathPathExprTest.java | added test that should pass once path template bug is fixed | <ide><path>ore/test/org/javarosa/xpath/expr/test/XPathPathExprTest.java
<ide> // read in xml
<ide> try {
<ide> InputStream is = System.class.getResourceAsStream(formPath);
<del> parser = new TreeElementParser(ElementParser.instantiateParser(is), 0, "data");
<add> parser... | |
Java | apache-2.0 | c8df0d8cb66d2b02ea304121830a00c012b3bc3f | 0 | TonyChai24/cat,unidal/cat,jialinsun/cat,TonyChai24/cat,chqlb/cat,TonyChai24/cat,JacksonSha/cat,dadarom/cat,dianping/cat,wuqiangxjtu/cat,TonyChai24/cat,chinaboard/cat,xiaojiaqi/cat,itnihao/cat,dianping/cat,cdljsj/cat,howepeng/cat,xiaojiaqi/cat,michael8335/cat,chqlb/cat,xiaojiaqi/cat,ddviplinux/cat,chqlb/cat,JacksonSha/c... | package com.dianping.cat.report.service;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.codehaus.plexus.logging.LogE... | cat-core/src/main/java/com/dianping/cat/report/service/AbstractReportService.java | package com.dianping.cat.report.service;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.codehaus.plexus.logging.LogE... | modify the reportservice
| cat-core/src/main/java/com/dianping/cat/report/service/AbstractReportService.java | modify the reportservice | <ide><path>at-core/src/main/java/com/dianping/cat/report/service/AbstractReportService.java
<ide> @Override
<ide> public boolean insertDailyReport(DailyReport report, byte[] content) {
<ide> try {
<add> report.setCreationDate(new Date());
<ide> m_dailyReportDao.insert(report);
<ide>
<ide> int id = report.g... | |
Java | mpl-2.0 | e2bca4ea8e7aa7e1bdfaef7197e015194edb5fd4 | 0 | phase/sbhs,phase/sbhs,phase/sbhs | package xyz.jadonfowler.sbse;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.HashMap;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JColorChooser;
imp... | src/xyz/jadonfowler/sbse/SBHS.java | package xyz.jadonfowler.sbse;
import java.awt.Color;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Arrays;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import java... | Finish Palette Editor
| src/xyz/jadonfowler/sbse/SBHS.java | Finish Palette Editor | <ide><path>rc/xyz/jadonfowler/sbse/SBHS.java
<ide> package xyz.jadonfowler.sbse;
<ide>
<ide> import java.awt.Color;
<del>import java.awt.Container;
<ide> import java.awt.event.ActionEvent;
<ide> import java.awt.event.ActionListener;
<ide> import java.io.IOException;
<ide> import java.io.RandomAccessFile;
<del>import j... | |
Java | bsd-3-clause | 5a572bba1e12099a9b89a1c4b9107650112342bb | 0 | tomcz/spring-stringtemplate | package com.watchitlater.spring;
import org.antlr.stringtemplate.StringTemplateErrorListener;
import org.apache.commons.lang.StringUtils;
import org.springframework.context.ResourceLoaderAware;
import org.springframework.core.Ordered;
import org.springframework.core.io.ResourceLoader;
import org.springframework.web.co... | src/main/java/com/watchitlater/spring/StringTemplateViewResolver.java | package com.watchitlater.spring;
import org.antlr.stringtemplate.StringTemplateErrorListener;
import org.apache.commons.lang.StringUtils;
import org.springframework.context.ResourceLoaderAware;
import org.springframework.core.Ordered;
import org.springframework.core.io.ResourceLoader;
import org.springframework.web.co... | Don't try to resolve "forward:" or "redirect:" prefixes. Use an InternalResourceViewResolver for that.
| src/main/java/com/watchitlater/spring/StringTemplateViewResolver.java | Don't try to resolve "forward:" or "redirect:" prefixes. Use an InternalResourceViewResolver for that. | <ide><path>rc/main/java/com/watchitlater/spring/StringTemplateViewResolver.java
<ide>
<ide> protected boolean shouldNotResolve(String viewName) {
<ide> return StringUtils.isBlank(viewName)
<del> || StringUtils.startsWith(viewName, UrlBasedViewResolver.FORWARD_URL_PREFIX)
<del> ... | |
Java | mit | 174b23d6752fddc6bae9c4e7de96f5703546d6c5 | 0 | opengl-8080/Samples,opengl-8080/Samples,opengl-8080/Samples,opengl-8080/Samples,opengl-8080/Samples | package sample.javafx.property;
import javafx.collections.FXCollections;
import javafx.collections.ListChangeListener.Change;
import javafx.collections.ObservableList;
public class Main {
public static void main(String[] args) {
ObservableList<String> list = FXCollections.observableArrayList("one"... | java/javafx/src/main/java/sample/javafx/property/Main.java | package sample.javafx.property;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.ReadOnlyDoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
public class Main {
public static void main(String[] args) {
MyClass myClass = new MyClass();
DoubleProperty... | JavaFX Collection
| java/javafx/src/main/java/sample/javafx/property/Main.java | JavaFX Collection | <ide><path>ava/javafx/src/main/java/sample/javafx/property/Main.java
<ide> package sample.javafx.property;
<ide>
<del>import javafx.beans.property.DoubleProperty;
<del>import javafx.beans.property.ReadOnlyDoubleProperty;
<del>import javafx.beans.property.SimpleDoubleProperty;
<add>import javafx.collections.FXCollectio... | |
Java | mit | ebbed4aa40d49a4a96d240fb6ff99adff977301a | 0 | AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL | /*
* The MIT License (MIT)
*
* FXGL - JavaFX Game Library
*
* Copyright (c) 2015-2016 AlmasB (almaslvl@gmail.com)
*
* 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 restrictio... | src/main/java/com/almasb/fxgl/entity/component/TypeComponent.java | /*
* The MIT License (MIT)
*
* FXGL - JavaFX Game Library
*
* Copyright (c) 2015-2016 AlmasB (almaslvl@gmail.com)
*
* 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 restrictio... | added toString to SObject for pretty print
| src/main/java/com/almasb/fxgl/entity/component/TypeComponent.java | added toString to SObject for pretty print | <ide><path>rc/main/java/com/almasb/fxgl/entity/component/TypeComponent.java
<ide>
<ide> private static class SObject implements Serializable {
<ide> private static final long serialVersionUID = -1L;
<add>
<add> @Override
<add> public String toString() {
<add> return "NONE";
<add> ... | |
Java | lgpl-2.1 | a4c69d2794fe031ce401b314c11bc99d892ad64e | 0 | viktorbahr/jaer,SensorsINI/jaer,SensorsINI/jaer,SensorsINI/jaer,viktorbahr/jaer,SensorsINI/jaer,viktorbahr/jaer,SensorsINI/jaer,viktorbahr/jaer,viktorbahr/jaer,SensorsINI/jaer,viktorbahr/jaer,SensorsINI/jaer,viktorbahr/jaer,SensorsINI/jaer | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ch.unizh.ini.jaer.projects.minliu;
import ch.unizh.ini.jaer.projects.rbodo.opticalflow.AbstractMotionFlow;
import com.... | src/ch/unizh/ini/jaer/projects/minliu/PatchMatchFlow.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ch.unizh.ini.jaer.projects.minliu;
import ch.unizh.ini.jaer.projects.rbodo.opticalflow.AbstractMotionFlow;
import com.... | Fixed the problem that setAccuracy can't run normally.
git-svn-id: fe6b3b33f0410f5f719dcd9e0c58b92353e7a5d3@9227 b7f4320f-462c-0410-a916-d9f35bb82d52
| src/ch/unizh/ini/jaer/projects/minliu/PatchMatchFlow.java | Fixed the problem that setAccuracy can't run normally. | <ide><path>rc/ch/unizh/ini/jaer/projects/minliu/PatchMatchFlow.java
<ide> // There're enough events fire on the specific block now.
<ide> if(spikeTrans[blockLocX][blockLocY].size() - lastFireIndex[blockLocX][blockLocY] >= forwardEventNum ) {
<ide> lastFire... | |
Java | bsd-3-clause | f25aa3b5c1734bd05764df7e3fa6e236a46dfd67 | 0 | exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/expon... | // Copyright 2015-present 650 Industries. All rights reserved.
package host.exp.exponent.experience;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import javax.inject.Inject;
import com.amplitude.api.Amplitude;
i... | android/expoview/src/main/java/host/exp/exponent/experience/ErrorActivity.java | // Copyright 2015-present 650 Industries. All rights reserved.
package host.exp.exponent.experience;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import javax.inject.Inject;
import com.amplitude.api.Amplitude;
i... | fix timing issue with reloading from error on android
fbshipit-source-id: 3d33a44
| android/expoview/src/main/java/host/exp/exponent/experience/ErrorActivity.java | fix timing issue with reloading from error on android | <ide><path>ndroid/expoview/src/main/java/host/exp/exponent/experience/ErrorActivity.java
<ide> }
<ide>
<ide> if (mManifestUrl != null) {
<del> mKernel.reloadVisibleExperience(mManifestUrl);
<del>
<ide> // Mark as not visible so that any new errors go to a new activity.
<ide> if (sVisibleActivi... | |
Java | apache-2.0 | 156fa09288f583ddb6f3e38a4a84da184e54bdd2 | 0 | javers/javers,javers/javers | package org.javers.spring.boot.sql;
import org.hibernate.SessionFactory;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.javers.common.exception.JaversException;
import org.javers.common.reflection.ReflectionUtil;
import org.javers.core.Javers;
import org.jav... | javers-spring-boot-starter-sql/src/main/java/org/javers/spring/boot/sql/JaversSqlAutoConfiguration.java | package org.javers.spring.boot.sql;
import org.hibernate.SessionFactory;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.javers.common.exception.JaversException;
import org.javers.common.reflection.ReflectionUtil;
import org.javers.core.Javers;
import org.jav... | https://github.com/javers/javers/issues/708 - small fix for creating class instance
| javers-spring-boot-starter-sql/src/main/java/org/javers/spring/boot/sql/JaversSqlAutoConfiguration.java | https://github.com/javers/javers/issues/708 - small fix for creating class instance | <ide><path>avers-spring-boot-starter-sql/src/main/java/org/javers/spring/boot/sql/JaversSqlAutoConfiguration.java
<ide> private HibernateUnproxyObjectAccessHook createClassObject(String accessHookClassName) {
<ide> try {
<ide> final Class<?> aClass = ReflectionUtil.classForName(accessHookClassNa... | |
Java | apache-2.0 | a94189cd8984c3971d405422460a6216566cbdae | 0 | apache/commons-imaging,apache/commons-imaging | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | src/test/java/org/apache/commons/imaging/formats/tiff/TiffSubImageTest.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 ... | Added parameter and correctness tests
| src/test/java/org/apache/commons/imaging/formats/tiff/TiffSubImageTest.java | Added parameter and correctness tests | <ide><path>rc/test/java/org/apache/commons/imaging/formats/tiff/TiffSubImageTest.java
<ide> package org.apache.commons.imaging.formats.tiff;
<ide>
<ide> import static org.junit.jupiter.api.Assertions.assertEquals;
<add>import static org.junit.jupiter.api.Assertions.fail;
<ide>
<ide> import java.awt.image.BufferedImag... | |
Java | mit | 445411722d8134806e7d6c0a1dcfc54ae336ffdc | 0 | RoboEagles4828/2017Robot,RoboEagles4828/ACE | package org.usfirst.frc.team4828.vision;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
import java.nio.charset.Charset;
import org.usfirst.frc.team4828.Ultrasonic;
public class Pixy implements Runnable {
private static final String HOST = "pi... | src/main/java/org/usfirst/frc/team4828/vision/Pixy.java | package org.usfirst.frc.team4828.vision;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
import java.nio.charset.Charset;
import org.usfirst.frc.team4828.Ultrasonic;
public class Pixy implements Runnable {
private static final String HOST = "pi... | Fix Test Bug
| src/main/java/org/usfirst/frc/team4828/vision/Pixy.java | Fix Test Bug | <ide><path>rc/main/java/org/usfirst/frc/team4828/vision/Pixy.java
<ide> while (enabled) {
<ide> try {
<ide> line = in.readLine();
<del> //assert line != null;
<add> assert line != null;
<ide> currentFrame = new Frame(line.split(","), us.g... | |
Java | mit | 7a46209a3ad5952193a5124c5048d93757ef413c | 0 | CS2103AUG2016-T09-C4/main | package seedu.unburden.testutil;
import seedu.unburden.model.tag.UniqueTagList;
import seedu.unburden.model.task.*;
/**
* A mutable person object. For testing only.
*/
public class TestTask implements ReadOnlyTask {
private Name name;
private TaskDescription taskD;
private Date date;
private Time s... | src/test/java/seedu/unburden/testutil/TestTask.java | package seedu.unburden.testutil;
import seedu.unburden.model.tag.UniqueTagList;
import seedu.unburden.model.task.*;
/**
* A mutable person object. For testing only.
*/
public class TestTask implements ReadOnlyTask {
private Name name;
private TaskDescription taskD;
private Date date;
private Time s... | Updated TestTask for done command
| src/test/java/seedu/unburden/testutil/TestTask.java | Updated TestTask for done command | <ide><path>rc/test/java/seedu/unburden/testutil/TestTask.java
<ide> private Time startTime;
<ide> private Time endTime;
<ide> private UniqueTagList tags;
<add> private boolean done;
<ide>
<ide> public TestTask() {
<ide> tags = new UniqueTagList();
<ide> this.getTags().getInternalList... | |
Java | apache-2.0 | 2a137a2d8a680fc28ca58387b508e6090512e0f6 | 0 | Buzzardo/spring-boot,mdeinum/spring-boot,Buzzardo/spring-boot,scottfrederick/spring-boot,vpavic/spring-boot,dreis2211/spring-boot,wilkinsona/spring-boot,vpavic/spring-boot,scottfrederick/spring-boot,mdeinum/spring-boot,jxblum/spring-boot,michael-simons/spring-boot,chrylis/spring-boot,Buzzardo/spring-boot,aahlenst/sprin... | /*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarFileWrapperTests.java | /*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Remove Mockito from JarFileWrapperTests
Remove Mockto from JarFileWrapperTests since it seems to be failing on
later versions of Java.
See gh-22991
| spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarFileWrapperTests.java | Remove Mockito from JarFileWrapperTests | <ide><path>pring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarFileWrapperTests.java
<ide> import java.io.File;
<ide> import java.io.FileOutputStream;
<ide> import java.io.IOException;
<add>import java.io.InputStream;
<ide> import java.net.MalformedURLException;
... | |
JavaScript | mit | e831d30577a8d020e6a3f22dd81b117bb5637efc | 0 | jxmono/web-sockets | /*
* Init
* */
exports.init = function (link) {
// console.log(M.app.server);
// TODO
link.send(200, { op: "init", data: link.data });
};
/*
* Listen
* */
exports.listen = function (link) {
// TODO
link.send(200, { op: "listen" });
};
/*
* Emit
* */
exports.emit = function (link) {
//... | operations.js | /*
* Init
* */
exports.init = function (link) {
// TODO
link.send(200, { op: "init", data: link.data });
};
/*
* Listen
* */
exports.listen = function (link) {
// TODO
link.send(200, { op: "listen" });
};
/*
* Emit
* */
exports.emit = function (link) {
// TODO
link.send(200, { op: "em... | trying to get the server
| operations.js | trying to get the server | <ide><path>perations.js
<ide> * Init
<ide> * */
<ide> exports.init = function (link) {
<add> // console.log(M.app.server);
<ide> // TODO
<ide> link.send(200, { op: "init", data: link.data });
<ide> }; | |
Java | apache-2.0 | d23bc3f698f21471fdd6f5e6c4f3cd966c8349f6 | 0 | rbccps-iisc/streamprocessing | package robertbosch.utils;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.concurrent.TimeoutException;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseExcept... | src/main/java/robertbosch/utils/Testclass.java | package robertbosch.utils;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.concurrent.TimeoutException;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseExcept... | calculating latency in broker for energy meter data
| src/main/java/robertbosch/utils/Testclass.java | calculating latency in broker for energy meter data | <ide><path>rc/main/java/robertbosch/utils/Testclass.java
<ide>
<ide> //RabbitMQSpout.nbqueue.add(body);
<ide> String message = new String(body, "UTF-8");
<del> System.out.println(" [x] Received '" + message + "'");
<add> //System.out.println(" [x] Received '" + message + "'");
<ide> ... | |
JavaScript | mit | c47d003b5cfc3840fbd95b1c5a1787252cdf4271 | 0 | gscplanning/cell-towers,gscplanning/cell-towers | var map = L.map('map', {
maxZoom: 19,
minZoom: 12
}).setView([38.317236, -84.564147], 12);
var info = L.control();
info.onAdd = function (map) {
this._div = L.DomUtil.create('div','info');
this.update();
return this._div;
};
info.update = function (props) {
this._div.inne... | app.js | var map = L.map('map', {
maxZoom: 19,
minZoom: 12
}).setView([38.317236, -84.564147], 12);
var info = L.control();
info.onAdd = function (map) {
this._div = L.DomUtil.create('div','info');
this.update();
return this._div;
};
info.update = function (props) {
this._div.inne... | https-ify data sources
Maybe this will let it work...
| app.js | https-ify data sources | <ide><path>pp.js
<ide> }
<ide>
<ide> L.esri.tiledMapLayer({
<del> url: 'http://gis.gscplanning.com/arcgis/rest/services/basemaps/gscbase_streets/MapServer',
<add> url: 'https://gis.gscplanning.com/arcgis/rest/services/basemaps/gscbase_streets/MapServer',
<ide> attribution: 'GSCPC',
<ide> // Dealing... | |
Java | apache-2.0 | 13483d9afc50c2b1daef3e1d404dc803a312d6cc | 0 | dkelmer/splunk-sdk-java,splunk/splunk-sdk-java,dkelmer/splunk-sdk-java,dkelmer/splunk-sdk-java,splunk/splunk-sdk-java,splunk/splunk-sdk-java,splunk/splunk-sdk-java,splunk/splunk-sdk-java,splunk/splunk-sdk-java,dkelmer/splunk-sdk-java,dkelmer/splunk-sdk-java | /*
* Copyright 2012 Splunk, 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... | tests/com/splunk/IndexTest.java | /*
* Copyright 2012 Splunk, 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... | Adding an index test for cookies
| tests/com/splunk/IndexTest.java | Adding an index test for cookies | <ide><path>ests/com/splunk/IndexTest.java
<ide> @Override
<ide> public void setUp() throws Exception {
<ide> super.setUp();
<del>
<add>
<ide> indexName = createTemporaryName();
<ide> index = service.getIndexes().create(indexName);
<ide> assertEventuallyTrue(new Eventually... | |
Java | lgpl-2.1 | f8b16c6fa707a2556de8fad6a830c2f1cc6e7631 | 0 | johnscancella/spotbugs,johnscancella/spotbugs,spotbugs/spotbugs,sewe/spotbugs,johnscancella/spotbugs,sewe/spotbugs,KengoTODA/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,johnscancella/spotbugs,sewe/spotbugs,KengoTODA/spotbugs,sewe/spotbugs,KengoTODA/spotbugs,KengoTODA/spotbugs | /*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2003-2008 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, o... | plugins/jdbcCloudClient/src/java/edu/umd/cs/findbugs/cloud/db/DBCloud.java | /*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2003-2008 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, o... | fix tab
git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@13670 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
| plugins/jdbcCloudClient/src/java/edu/umd/cs/findbugs/cloud/db/DBCloud.java | fix tab | <ide><path>lugins/jdbcCloudClient/src/java/edu/umd/cs/findbugs/cloud/db/DBCloud.java
<ide> else if (updatesSentToDatabase == 0) {
<ide> int skipped = bugCollection.getCollection().size() - idMap.size();
<ide> if (skipped == 0)
<del> return String.format("%d issues synchroniz... | |
Java | mpl-2.0 | de445c32e4f6bad21418b138c09a6170201a2af4 | 0 | sensiasoft/sensorhub,TheRestOfMe/sensorhub,TheRestOfMe/sensorhub,sensiasoft/sensorhub-core,sensiasoft/sensorhub,sensiasoft/sensorhub-core,TheRestOfMe/sensorhub,sensiasoft/sensorhub,sensiasoft/sensorhub-core | /***************************** BEGIN LICENSE BLOCK ***************************
The contents of this file are subject to the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file, You can obtain one
at http://mozilla.org/MPL/2.0/.
Software distributed under the License is distri... | sensorhub-webui-core/src/main/java/org/sensorhub/ui/StorageAdminPanel.java | /***************************** BEGIN LICENSE BLOCK ***************************
The contents of this file are subject to the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file, You can obtain one
at http://mozilla.org/MPL/2.0/.
Software distributed under the License is distri... | Bug fix to display other field types than quantities/decimals | sensorhub-webui-core/src/main/java/org/sensorhub/ui/StorageAdminPanel.java | Bug fix to display other field types than quantities/decimals | <ide><path>ensorhub-webui-core/src/main/java/org/sensorhub/ui/StorageAdminPanel.java
<ide> import java.util.Locale;
<ide> import net.opengis.swe.v20.DataBlock;
<ide> import net.opengis.swe.v20.DataComponent;
<add>import net.opengis.swe.v20.DataRecord;
<ide> import net.opengis.swe.v20.ScalarComponent;
<add>import net.op... | |
Java | apache-2.0 | f5464363c217ed2a84a3e6f72d626f2fc92beaeb | 0 | mtamme/promises | /*
* Copyright © Martin Tamme
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distr... | src/main/java/org/util/concurrent/DefaultDeferred.java | /*
* Copyright © Martin Tamme
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distr... | Minor changes.
| src/main/java/org/util/concurrent/DefaultDeferred.java | Minor changes. | <ide><path>rc/main/java/org/util/concurrent/DefaultDeferred.java
<ide> @Override
<ide> public void setSuccess(final T value) {
<ide> if (!trySuccess(value)) {
<del> throw new IllegalStateException("Deferred is already completed");
<add> throw new IllegalStateException("Deferred is ... | |
Java | apache-2.0 | 06a4648e2432d0e17cca48dbac47a38e49fac3b6 | 0 | apache/commons-text,apache/commons-text | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | Sort members.
| src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java | Sort members. | <ide><path>rc/main/java/org/apache/commons/text/lookup/StringLookupFactory.java
<ide> }
<ide>
<ide> /**
<add> * Returns the DnsStringLookup singleton instance where the lookup key is one of:
<add> * <ul>
<add> * <li><b>name</b>: for the local host name, for example {@code EXAMPLE} but also {@code E... | |
Java | mit | fdfe4eb8b498ea2fd44976847a83df53a9bba757 | 0 | trujunzhang/IEATTA-ANDROID,trujunzhang/IEATTA-ANDROID | package org.ieatta.tasks;
import org.ieatta.activity.Page;
import org.ieatta.activity.PageProperties;
import org.ieatta.activity.PageTitle;
import org.ieatta.database.models.DBEvent;
import org.ieatta.database.models.DBPhoto;
import org.ieatta.database.models.DBRestaurant;
import org.ieatta.database.models.DBReview;
i... | app/src/main/java/org/ieatta/tasks/RestaurantDetailTask.java | package org.ieatta.tasks;
import org.ieatta.activity.Page;
import org.ieatta.activity.PageProperties;
import org.ieatta.activity.PageTitle;
import org.ieatta.database.models.DBEvent;
import org.ieatta.database.models.DBPhoto;
import org.ieatta.database.models.DBRestaurant;
import org.ieatta.database.models.DBReview;
i... | IEATTA
| app/src/main/java/org/ieatta/tasks/RestaurantDetailTask.java | IEATTA | <ide><path>pp/src/main/java/org/ieatta/tasks/RestaurantDetailTask.java
<ide> import org.ieatta.database.realm.DBBuilder;
<ide> import org.ieatta.database.realm.RealmModelReader;
<ide> import org.ieatta.parse.DBConstant;
<add>import org.ieatta.server.cache.ThumbnailImageUtil;
<ide>
<add>import java.io.File;
<add>import... | |
Java | bsd-3-clause | 6fd7bc949cefec9d7e5084ee0419f57219ef9b90 | 0 | CBIIT/caaers,NCIP/caaers,CBIIT/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers,NCIP/caaers,NCIP/caaers,CBIIT/caaers | package gov.nih.nci.cabig.caaers.web.study;
import gov.nih.nci.cabig.caaers.domain.Agent;
import gov.nih.nci.cabig.caaers.domain.INDType;
import gov.nih.nci.cabig.caaers.domain.InvestigationalNewDrug;
import gov.nih.nci.cabig.caaers.domain.Study;
import gov.nih.nci.cabig.caaers.domain.StudyAgent;
import gov.nih.nci.ca... | caAERS/software/web/src/main/java/gov/nih/nci/cabig/caaers/web/study/AgentsTab.java | package gov.nih.nci.cabig.caaers.web.study;
import gov.nih.nci.cabig.caaers.domain.Agent;
import gov.nih.nci.cabig.caaers.domain.INDType;
import gov.nih.nci.cabig.caaers.domain.InvestigationalNewDrug;
import gov.nih.nci.cabig.caaers.domain.Study;
import gov.nih.nci.cabig.caaers.domain.StudyAgent;
import gov.nih.nci.ca... | CAAERS-2739
SVN-Revision: 10531
| caAERS/software/web/src/main/java/gov/nih/nci/cabig/caaers/web/study/AgentsTab.java | CAAERS-2739 | <ide><path>aAERS/software/web/src/main/java/gov/nih/nci/cabig/caaers/web/study/AgentsTab.java
<ide> }
<ide> j++;
<ide>
<del> InputField indField = InputFieldFactory.createAutocompleterField(baseName + "[" + i + "].studyAgentINDAssociations[... | |
Java | apache-2.0 | 056400026f0560e8ccd93ebbc60450e5734dacca | 0 | FHannes/intellij-community,orekyuu/intellij-community,izonder/intellij-community,ahb0327/intellij-community,caot/intellij-community,kdwink/intellij-community,fengbaicanhe/intellij-community,asedunov/intellij-community,allotria/intellij-community,salguarnieri/intellij-community,kdwink/intellij-community,apixandru/intell... | /*
* Copyright 2000-2010 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/platform-impl/src/com/intellij/openapi/wm/impl/FocusManagerImpl.java | /*
* Copyright 2000-2010 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... | focus manager -- lost typing between app activation/deactivation, was caused by non-released focus requests which were actually rejected by forced focus command
| platform/platform-impl/src/com/intellij/openapi/wm/impl/FocusManagerImpl.java | focus manager -- lost typing between app activation/deactivation, was caused by non-released focus requests which were actually rejected by forced focus command | <ide><path>latform/platform-impl/src/com/intellij/openapi/wm/impl/FocusManagerImpl.java
<ide> final ActionCallback result = new ActionCallback();
<ide>
<ide> if (!forced) {
<del> myFocusRequests.add(command);
<add> if (!myFocusRequests.contains(command)) {
<add> myFocusRequests.add(command);
<... | |
Java | apache-2.0 | bd874a061d76c705e7c17e52c096005e4ca200cf | 0 | real-logic/Aeron,EvilMcJerkface/Aeron,EvilMcJerkface/Aeron,real-logic/Aeron,real-logic/Aeron,galderz/Aeron,mikeb01/Aeron,oleksiyp/Aeron,real-logic/Aeron,mikeb01/Aeron,galderz/Aeron,mikeb01/Aeron,EvilMcJerkface/Aeron,oleksiyp/Aeron,oleksiyp/Aeron,galderz/Aeron,EvilMcJerkface/Aeron,galderz/Aeron,mikeb01/Aeron | package io.aeron.archiver;
import io.aeron.Image;
import io.aeron.Publication;
import org.agrona.concurrent.EpochClock;
import org.junit.Before;
import org.junit.Test;
import static org.mockito.Mockito.*;
public class ControlSessionTest
{
private ControlSession session;
private Image mockImage = mock(Image.c... | aeron-archiver/src/test/java/io/aeron/archiver/ControlSessionTest.java | package io.aeron.archiver;
import io.aeron.Image;
import io.aeron.Publication;
import org.agrona.concurrent.EpochClock;
import org.junit.Before;
import org.junit.Test;
import static org.mockito.Mockito.*;
public class ControlSessionTest
{
private ControlSession session;
private Image mockImage = mock(Image.c... | [Java] remove line
| aeron-archiver/src/test/java/io/aeron/archiver/ControlSessionTest.java | [Java] remove line | <ide><path>eron-archiver/src/test/java/io/aeron/archiver/ControlSessionTest.java
<ide> // second session added to conductor after the first is done
<ide> session.onListRecordingSessionClosed(mockListRecordingSession1);
<ide> verify(mockConductor).addSession(mockListRecordingSession2);
<del>
<ide... | |
Java | lgpl-2.1 | bd81536576c6cecf2aee9b25dbecb693cec8c1a4 | 0 | pdvrieze/chatterbox,pdvrieze/chatterbox | package net.devrieze.chatterbox.client;
import java.util.Date;
import net.devrieze.chatterbox.client.StatusEvent.StatusLevel;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.AnchorElement;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Document;
import com.googl... | src/net/devrieze/chatterbox/client/ChatterboxUI.java | package net.devrieze.chatterbox.client;
import net.devrieze.chatterbox.client.StatusEvent.StatusLevel;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.AnchorElement;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Node;
i... | Make the web client display sender and time. | src/net/devrieze/chatterbox/client/ChatterboxUI.java | Make the web client display sender and time. | <ide><path>rc/net/devrieze/chatterbox/client/ChatterboxUI.java
<ide> package net.devrieze.chatterbox.client;
<add>
<add>import java.util.Date;
<ide>
<ide> import net.devrieze.chatterbox.client.StatusEvent.StatusLevel;
<ide>
<ide> import com.google.gwt.event.dom.client.KeyUpEvent;
<ide> import com.google.gwt.event.sha... | |
Java | agpl-3.0 | ca93f24d1ad35256ba3f7070fbb8ab12baecd614 | 0 | PeterWithers/temp-to-delete1,KinshipSoftware/KinOathKinshipArchiver,PeterWithers/temp-to-delete1,KinshipSoftware/KinOathKinshipArchiver | package nl.mpi.kinnate.svg;
import java.awt.geom.AffineTransform;
import java.net.URI;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map.Entry;
import nl.mpi.arbil.ui.ArbilWindowManager;
impo... | desktop/src/main/java/nl/mpi/kinnate/svg/EntitySvg.java | package nl.mpi.kinnate.svg;
import java.awt.geom.AffineTransform;
import java.net.URI;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map.Entry;
import nl.mpi.arbil.ui.ArbilWindowManager;
impo... | Incorporated the use of clarin profile xml files and the requisite transform into kinship xml.
| desktop/src/main/java/nl/mpi/kinnate/svg/EntitySvg.java | Incorporated the use of clarin profile xml files and the requisite transform into kinship xml. | <ide><path>esktop/src/main/java/nl/mpi/kinnate/svg/EntitySvg.java
<ide>
<ide> public float[] getAverageParentLocation(UniqueIdentifier entityId) {
<ide> // note that getAverageParentLocation(EntityData entityData) must be called at least once for each entity to poputlate parentIdentifiers
<del> Floa... | |
JavaScript | mit | ae5596d647a79e7bd3acb2c5e1fb24ea65366f0d | 0 | nqdy666/grunt-contrib-cssmin,fracmak/grunt-contrib-cssmin,MoLow/grunt-contrib-cssmin,bhamodi/grunt-contrib-cssmin,gruntjs/grunt-contrib-cssmin | 'use strict';
var path = require('path');
var CleanCSS = require('clean-css');
var chalk = require('chalk');
var maxmin = require('maxmin');
module.exports = function (grunt) {
var getAvailableFiles = function (filesArray) {
return filesArray.filter(function (filepath) {
if (!grunt.file.exists(filepath)) ... | tasks/cssmin.js | 'use strict';
var path = require('path');
var CleanCSS = require('clean-css');
var chalk = require('chalk');
var maxmin = require('maxmin');
module.exports = function (grunt) {
var getAvailableFiles = function (filesArray) {
return filesArray.filter(function (filepath) {
if (!grunt.file.exists(filepath)) ... | Do not swallow Clean CSS errors.
The errors produced by Clean CSS were
slightly swallowed, so throw them when they appear.
Signed-off-by: Balogh Levente <220faba313b98e147e7b5d982cb21c50852a2c07@gmail.com>
| tasks/cssmin.js | Do not swallow Clean CSS errors. | <ide><path>asks/cssmin.js
<ide>
<ide> try {
<ide> compiled = new CleanCSS(options).minify(availableFiles);
<add> if (compiled.errors && compiled.errors.length) {
<add> throw compiled.errors.join('\n');
<add> }
<ide> } catch (err) {
<ide> grunt.log.error(err);
<ide> ... | |
JavaScript | mit | 6d45eee3e038302b5754c6869ffa0990ba82f55a | 0 | Claudia108/puzzlenary,Claudia108/puzzlenary | import chai from 'chai';
import Game from '../lib/game';
import $ from "jquery";
const expect = chai.expect;
describe('game', function () {
after(function() {
$('.game-table').remove();
});
context('start', function () {
it('starts the game', function () {
const game = new Game(2, 2);
game.... | test/game-test.js | import chai from 'chai';
import Game from '../lib/game';
import $ from "jquery";
const expect = chai.expect;
describe('game', function () {
after(function() {
$('.game-table').remove();
});
context('start', function () {
it('starts the game', function () {
const game = new Game(2, 2);
game.... | Add playAgain second option test
| test/game-test.js | Add playAgain second option test | <ide><path>est/game-test.js
<ide> });
<ide>
<ide> context('from current level or level 1', function () {
<del> it('when user decides for current level', function () {
<add> xit('when user decides for current level', function () {
<ide> const game = new Game(2, 2);
<ide>
<ide> game.st... | |
Java | apache-2.0 | 8fe7808866e4c857071086e8d5da0f0888bfae2d | 0 | mygreen/xlsmapper,mygreen/xlsmapper,mygreen/xlsmapper,mygreen/xlsmapper,mygreen/xlsmapper | package com.gh.mygreen.xlsmapper.validation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import com.gh.mygreen.xlsmapper.Utils;
/**
* シートのエラー情報を処理するためのクラス。
*
* @version 0.5
* @author T.TSUCHIE
*
*/
public... | src/main/java/com/gh/mygreen/xlsmapper/validation/SheetBindingErrors.java | package com.gh.mygreen.xlsmapper.validation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import com.gh.mygreen.xlsmapper.Utils;
/**
* シートのエラー情報を処理するためのクラス。
*
* @version 0.5
* @author T.TSUCHIE
*
*/
public... | メソッド名のタイポ。fist=>first | src/main/java/com/gh/mygreen/xlsmapper/validation/SheetBindingErrors.java | メソッド名のタイポ。fist=>first | <ide><path>rc/main/java/com/gh/mygreen/xlsmapper/validation/SheetBindingErrors.java
<ide> return objectName;
<ide> }
<ide>
<add> /**
<add> * オブジェクト名を指定しするコンストラクタ。
<add> * <p>エラーメッセージを組み立てる際に、パスのルートとなる。
<add> * @param objectName オブジェクト名
<add> */
<ide> public SheetBindingErrors(fin... | |
JavaScript | agpl-3.0 | 58d22bb35bc9c24ebe4895291b6fd989293eb4bb | 0 | initiatived21/d21,initiatived21/d21,initiatived21/d21 | /**
* Synchronous function
* Crop image function
* Used for image crop tool
*
* https://gist.github.com/DominicTobias/b1fb501349893922ec7f
*
* Returns image data uri, not the loaded image
*/
function cropImage(originalImg, crop, maxWidth, maxHeight) {
const
imageWidth = originalImg.naturalWidth,
... | client/app/lib/image_processing/cropImage.js | /**
* Synchronous function
* Crop image function
* Used for image crop tool
*
* Returns image data uri, not the loaded image
*/
function cropImage(originalImg, crop, maxWidth, maxHeight) {
const
imageWidth = originalImg.naturalWidth,
imageHeight = originalImg.naturalHeight,
cropX = (crop.x / 1... | Possible fix for IE11 bug for #237
| client/app/lib/image_processing/cropImage.js | Possible fix for IE11 bug for #237 | <ide><path>lient/app/lib/image_processing/cropImage.js
<ide> * Synchronous function
<ide> * Crop image function
<ide> * Used for image crop tool
<add> *
<add> * https://gist.github.com/DominicTobias/b1fb501349893922ec7f
<ide> *
<ide> * Returns image data uri, not the loaded image
<ide> */
<ide> imageWidt... | |
Java | bsd-3-clause | a9b4d537c3e604453b296324ba1ace6b78a66eb6 | 0 | iamedu/dari,iamedu/dari,iamedu/dari,iamedu/dari | package com.psddev.dari.db;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... | db/src/main/java/com/psddev/dari/db/BulkDebugServlet.java | package com.psddev.dari.db;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... | Add USE_JDBC_FETCH_SIZE_QUERY_OPTION=false to all bulk queries.
This prevents the SQL query from being killed if it runs longer than
the removeAbandonedTimeout.
| db/src/main/java/com/psddev/dari/db/BulkDebugServlet.java | Add USE_JDBC_FETCH_SIZE_QUERY_OPTION=false to all bulk queries. | <ide><path>b/src/main/java/com/psddev/dari/db/BulkDebugServlet.java
<ide> fromType(selectedType).
<ide> resolveToReferenceOnly();
<ide>
<add> query.getOptions().put(SqlDatabase.USE_JDBC_FETCH_SIZE_QUERY_OPTION, false);
<add>
<ide> new Async... | |
Java | bsd-3-clause | a7233a51ef08d20f2fd14f4071909535618c2234 | 0 | dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk | /*
* Copyright (c) 2017, University of Oslo
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of condition... | core/src/main/java/org/hisp/dhis/android/core/calls/MetadataCall.java | /*
* Copyright (c) 2017, University of Oslo
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of condition... | foreign-key-cleaner: remove imports
| core/src/main/java/org/hisp/dhis/android/core/calls/MetadataCall.java | foreign-key-cleaner: remove imports | <ide><path>ore/src/main/java/org/hisp/dhis/android/core/calls/MetadataCall.java
<ide> import org.hisp.dhis.android.core.systeminfo.SystemInfoCall;
<ide> import org.hisp.dhis.android.core.user.User;
<ide> import org.hisp.dhis.android.core.user.UserCall;
<del>import org.hisp.dhis.android.core.user.UserCredentialsStoreImp... | |
Java | mit | error: pathspec 'java/leetcode/most-frequent-subtree-sum-508.java' did not match any file(s) known to git
| 61f6100e6d66bae9eaa93795ed3d61bd199550bf | 1 | vinnyoodles/algorithms,vinnyoodles/algorithms,vinnyoodles/algorithms | /**
* Given the root of a tree, you are asked to find the most frequent subtree sum.
* The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (including the node itself).
* So what is the most frequent subtree sum value? If there is a tie, return all the valu... | java/leetcode/most-frequent-subtree-sum-508.java | Add frequent subtree sum
| java/leetcode/most-frequent-subtree-sum-508.java | Add frequent subtree sum | <ide><path>ava/leetcode/most-frequent-subtree-sum-508.java
<add>/**
<add> * Given the root of a tree, you are asked to find the most frequent subtree sum.
<add> * The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (including the node itself).
<add> * So what... | |
JavaScript | mit | ac314914b3e406ac2589e2d5ac9298b0c4fd1114 | 0 | Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2 | import { createMuiTheme } from '@material-ui/core/styles';
import grey from '@material-ui/core/colors/grey';
import deepmerge from 'deepmerge';
import isPlainObject from 'is-plain-object';
const monoStack = [
'"Liberation Mono"',
'Menlo',
'Courier',
'monospace'
].join(',')
export const linkStyle = ({theme, un... | packages/lesswrong/themes/createThemeDefaults.js | import { createMuiTheme } from '@material-ui/core/styles';
import grey from '@material-ui/core/colors/grey';
import deepmerge from 'deepmerge';
import isPlainObject from 'is-plain-object';
const monoStack = [
'"Liberation Mono"',
'Menlo',
'Courier',
'monospace'
].join(',')
export const linkStyle = ({theme, un... | Fix misaligned first lines of code blocks
| packages/lesswrong/themes/createThemeDefaults.js | Fix misaligned first lines of code blocks | <ide><path>ackages/lesswrong/themes/createThemeDefaults.js
<ide> fontWeight: 400,
<ide> backgroundColor: grey[100],
<ide> borderRadius: 2,
<del> padding: 3,
<add> paddingTop: 3,
<add> paddingBottom: 3,
<ide> lineHeight: 1.42
<ide> },
<ide> li: { | |
Java | apache-2.0 | d3ae45450fba5a574af02576d970d74b3d23a719 | 0 | Gigaspaces/xap-mule | /*
* Copyright 2006-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | mule-latest/src/test/java/org/openspaces/itest/esb/mule/pu/PUEmbedMuleRef2Tests.java | /*
* Copyright 2006-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Fix typos
git-svn-id: 05e4ff1a4c848ee86df763ec182ab9b6b2f55dc8@129937 eb64e737-3616-4df0-8941-5ee2ae88103d
| mule-latest/src/test/java/org/openspaces/itest/esb/mule/pu/PUEmbedMuleRef2Tests.java | Fix typos | <ide><path>ule-latest/src/test/java/org/openspaces/itest/esb/mule/pu/PUEmbedMuleRef2Tests.java
<ide> import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
<ide>
<ide> /**
<del> * Test the ability to run PU with mule imbedded in it.
<add> * Test the ability to run PU with mule embedded in it.
<... | |
JavaScript | mit | ccf9d39bb48e64a755553f8cd3d7266d6a3b112a | 0 | AlloyTeam/AlloyTouch,AlloyTeam/AlloyTouch | /* AlloyTouch
* By AlloyTeam http://www.alloyteam.com/
* Github: https://github.com/AlloyTeam/AlloyTouch
* MIT Licensed.
*/
; (function () {
(function () {
var lastTime = 0;
var vendors = ['webkit', 'moz'];
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
... | alloy_touch.js | /* AlloyTouch
* By AlloyTeam http://www.alloyteam.com/
* Github: https://github.com/AlloyTeam/AlloyTouch
* MIT Licensed.
*/
; (function () {
(function () {
var lastTime = 0;
var vendors = ['webkit', 'moz'];
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
... | fix self
| alloy_touch.js | fix self | <ide><path>lloy_touch.js
<ide> },
<ide> _end: function (evt) {
<ide> if (this.isTouchStart) {
<add> var self = this;
<ide> this.touchEnd(this.scroller[this.property]);
<ide> if (this.hasMax && this.scroller[this.property] > this.max) {
<ide> ... | |
Java | apache-2.0 | 8bf379eadb10c632480614df7a849f0f6acaa276 | 0 | emre-aydin/hazelcast,emrahkocaman/hazelcast,Donnerbart/hazelcast,tkountis/hazelcast,Donnerbart/hazelcast,mdogan/hazelcast,dbrimley/hazelcast,tufangorel/hazelcast,tombujok/hazelcast,emre-aydin/hazelcast,emrahkocaman/hazelcast,dsukhoroslov/hazelcast,Donnerbart/hazelcast,mesutcelik/hazelcast,dbrimley/hazelcast,mdogan/haze... | /*
* Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | hazelcast-wm/src/main/java/com/hazelcast/web/WebFilter.java | /*
* Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | Fix HazelcastHttpSession's setAttribute() with null value
HttpSession.setAttribute() should work with null value the same as removeAttribute(). Changed from throwing an exception to delegate call to removeAttribute() | hazelcast-wm/src/main/java/com/hazelcast/web/WebFilter.java | Fix HazelcastHttpSession's setAttribute() with null value | <ide><path>azelcast-wm/src/main/java/com/hazelcast/web/WebFilter.java
<ide> throw new NullPointerException("name must not be null");
<ide> }
<ide> if (value == null) {
<del> throw new IllegalArgumentException("value must not be null");
<add> removeAt... | |
Java | bsd-2-clause | dccbc9bfe7fff926122e4d870f9c29b4ee2eb0c1 | 0 | jwoehr/ublu,jwoehr/ublu,jwoehr/ublu,jwoehr/ublu,jwoehr/ublu | /*
* Copyright (c) 2014, Absolute Performance, Inc. http://www.absolute-performance.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the ... | src/ublu/command/CmdList.java | /*
* Copyright (c) 2014, Absolute Performance, Inc. http://www.absolute-performance.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the ... | CmdList now supports Object [] and the -toarray dash-command | src/ublu/command/CmdList.java | CmdList now supports Object [] and the -toarray dash-command | <ide><path>rc/ublu/command/CmdList.java
<ide>
<ide> {
<ide> setNameAndDescription("list",
<del> "/0 [-to datasink] [--,-list @list] [[-instance] | [-source ~@enumeration|~@collection|~@string] | [-add ~@object ] | [-addstr ~@{ some string }] | [-clear] | [-get ~@{intindex}] | [-set ~@{intind... | |
Java | apache-2.0 | cd554cdb3016ac6e0a14d88a29bde0027016bdee | 0 | awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a... | import com.example.cognito.*;
import org.junit.jupiter.api.*;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.cognitoidentity.CognitoIdentityClient;
import software.amazon.awssdk.services.cognitoidentityprovider.CognitoIdentityProviderClient;
import java.io.*;
import java.util.*;
i... | javav2/example_code/cognito/src/test/java/CognitoServiceIntegrationTest.java | import com.example.cognito.*;
import org.junit.jupiter.api.*;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.cognitoidentity.CognitoIdentityClient;
import software.amazon.awssdk.services.cognitoidentityprovider.CognitoIdentityProviderClient;
import software.amazon.awssdk.services.c... | Update CognitoServiceIntegrationTest.java | javav2/example_code/cognito/src/test/java/CognitoServiceIntegrationTest.java | Update CognitoServiceIntegrationTest.java | <ide><path>avav2/example_code/cognito/src/test/java/CognitoServiceIntegrationTest.java
<ide> import software.amazon.awssdk.regions.Region;
<ide> import software.amazon.awssdk.services.cognitoidentity.CognitoIdentityClient;
<ide> import software.amazon.awssdk.services.cognitoidentityprovider.CognitoIdentityProviderClien... | |
Java | apache-2.0 | 17a848f1d3940fe01e3c8854e9e7ad37ebae880b | 0 | hortonworks/cloudbreak,hortonworks/cloudbreak,hortonworks/cloudbreak,hortonworks/cloudbreak,hortonworks/cloudbreak,hortonworks/cloudbreak | package com.sequenceiq.it.cloudbreak.testcase.e2e.sdx;
import static com.sequenceiq.it.cloudbreak.context.RunningParameter.key;
import static java.lang.String.format;
import java.util.concurrent.atomic.AtomicReference;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.t... | integration-test/src/main/java/com/sequenceiq/it/cloudbreak/testcase/e2e/sdx/SdxBaseImageTests.java | package com.sequenceiq.it.cloudbreak.testcase.e2e.sdx;
import static com.sequenceiq.it.cloudbreak.context.RunningParameter.key;
import static java.lang.String.format;
import java.util.concurrent.atomic.AtomicReference;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.t... | CB-6101 Ignore SdxBaseImageTests temporarily
| integration-test/src/main/java/com/sequenceiq/it/cloudbreak/testcase/e2e/sdx/SdxBaseImageTests.java | CB-6101 Ignore SdxBaseImageTests temporarily | <ide><path>ntegration-test/src/main/java/com/sequenceiq/it/cloudbreak/testcase/e2e/sdx/SdxBaseImageTests.java
<ide>
<ide> import org.slf4j.Logger;
<ide> import org.slf4j.LoggerFactory;
<add>import org.testng.annotations.Ignore;
<ide> import org.testng.annotations.Test;
<ide>
<ide> import com.sequenceiq.it.cloudbreak.... | |
Java | apache-2.0 | 1683e6e949b16601f1aef195cf73404dce2efe7f | 0 | apache/incubator-apex-malhar,apache/incubator-apex-malhar,tushargosavi/incubator-apex-malhar,DataTorrent/incubator-apex-malhar,tweise/apex-malhar,brightchen/apex-malhar,DataTorrent/incubator-apex-malhar,yogidevendra/apex-malhar,tweise/apex-malhar,tweise/apex-malhar,tushargosavi/incubator-apex-malhar,vrozov/incubator-ap... | /**
* 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... | library/src/test/java/com/datatorrent/lib/db/jdbc/JdbcPojoOperatorApplicationTest.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... | APEXMALHAR-2357 changing exit condition for JdbcPojoOperatorApplicationTest, due to which it was failing intermittently
| library/src/test/java/com/datatorrent/lib/db/jdbc/JdbcPojoOperatorApplicationTest.java | APEXMALHAR-2357 changing exit condition for JdbcPojoOperatorApplicationTest, due to which it was failing intermittently | <ide><path>ibrary/src/test/java/com/datatorrent/lib/db/jdbc/JdbcPojoOperatorApplicationTest.java
<ide> public class JdbcPojoOperatorApplicationTest extends JdbcOperatorTest
<ide> {
<ide> public static int TupleCount;
<del> public static com.datatorrent.lib.parser.XmlParserTest.EmployeeBean obj;
<ide>
<ide> public... | |
JavaScript | mit | cd6770d4c5afe8b756363937de689e348331a545 | 0 | rossta/webpacker,rails/webpacker,rossta/webpacker,gauravtiwari/webpacker,gauravtiwari/webpacker,gauravtiwari/webpacker,rossta/webpacker,rails/webpacker,rossta/webpacker | module.exports = {
test: /\.vue(\.erb)?$/,
use: [{
loader: 'vue-loader'
}]
}
| lib/install/loaders/vue.js | const { dev_server: devServer } = require('@rails/webpacker').config
const isProduction = process.env.NODE_ENV === 'production'
const inDevServer = process.argv.find(v => v.includes('webpack-dev-server'))
module.exports = {
test: /\.vue(\.erb)?$/,
use: [{
loader: 'vue-loader'
}]
}
| Remove unused code for vue-loader (#1518)
| lib/install/loaders/vue.js | Remove unused code for vue-loader (#1518) | <ide><path>ib/install/loaders/vue.js
<del>const { dev_server: devServer } = require('@rails/webpacker').config
<del>
<del>const isProduction = process.env.NODE_ENV === 'production'
<del>const inDevServer = process.argv.find(v => v.includes('webpack-dev-server'))
<del>
<ide> module.exports = {
<ide> test: /\.vue(\.erb... | |
Java | epl-1.0 | 1d10693a30ebd5f28a522d2894c9ca2830675d4a | 0 | Mark-Booth/daq-eclipse,Mark-Booth/daq-eclipse,Mark-Booth/daq-eclipse | package org.eclipse.scanning.event.queues;
import java.net.InetAddress;
import java.net.URI;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import org.eclips... | org.eclipse.scanning.event/src/org/eclipse/scanning/event/queues/AtomQueueService.java | package org.eclipse.scanning.event.queues;
import java.net.InetAddress;
import java.net.URI;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.EventListener;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import ja... | Update name of killTopic to commandTopic. Implements getters for heartbeat & command topics. Remove all references to QueueNameMap. Remove creation of consumer and ISubscriber objects to follow new Queue creation model. Remove submit/terminate methods now set as default on interface & change access of the generic metho... | org.eclipse.scanning.event/src/org/eclipse/scanning/event/queues/AtomQueueService.java | Update name of killTopic to commandTopic. Implements getters for heartbeat & command topics. Remove all references to QueueNameMap. Remove creation of consumer and ISubscriber objects to follow new Queue creation model. Remove submit/terminate methods now set as default on interface & change access of the generic metho... | <ide><path>rg.eclipse.scanning.event/src/org/eclipse/scanning/event/queues/AtomQueueService.java
<ide> import java.net.URI;
<ide> import java.net.UnknownHostException;
<ide> import java.util.ArrayList;
<del>import java.util.EventListener;
<ide> import java.util.HashMap;
<ide> import java.util.HashSet;
<ide> import java... | |
Java | agpl-3.0 | 2d72dd76d07f1333524c192392fbd5277a348bc4 | 0 | ColostateResearchServices/kc,ColostateResearchServices/kc,ColostateResearchServices/kc | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | coeus-impl/src/main/java/org/kuali/kra/excon/project/ExconProjectEmailBean.java | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | Fixed bug related to determining whether the application is in a production environment.
| coeus-impl/src/main/java/org/kuali/kra/excon/project/ExconProjectEmailBean.java | Fixed bug related to determining whether the application is in a production environment. | <ide><path>oeus-impl/src/main/java/org/kuali/kra/excon/project/ExconProjectEmailBean.java
<ide> }
<ide> destStr+=destination.getDestinationCountryName();
<ide> }
<del> String currentEnv=getConfigurationService().getPropertyValueAsString("environment");
<del> String prodEnv=getConfigurationServi... | |
Java | apache-2.0 | 4ea0dfff9945595754e74d6aa8fb53b240860107 | 0 | endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS | package org.endeavourhealth.queuereader;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import org.apache.commons.csv.*;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.endeavourhealth.c... | src/eds-queuereader/src/main/java/org/endeavourhealth/queuereader/Main.java | package org.endeavourhealth.queuereader;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import org.apache.commons.csv.*;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.endeavourhealth.c... | Adding routine to fix patients mapped to the same person using invalid NHS numbers
| src/eds-queuereader/src/main/java/org/endeavourhealth/queuereader/Main.java | Adding routine to fix patients mapped to the same person using invalid NHS numbers | <ide><path>rc/eds-queuereader/src/main/java/org/endeavourhealth/queuereader/Main.java
<ide> import org.endeavourhealth.core.database.dal.audit.ExchangeBatchDalI;
<ide> import org.endeavourhealth.core.database.dal.audit.ExchangeDalI;
<ide> import org.endeavourhealth.core.database.dal.audit.models.*;
<add>import org.ende... | |
Java | apache-2.0 | 3287672c23e5f7ae45d2f8d034b4c17d69f9e56e | 0 | sosy-lab/java-smt,sosy-lab/java-smt,sosy-lab/java-smt,sosy-lab/java-smt,sosy-lab/java-smt | // This file is part of JavaSMT,
// an API wrapper for a collection of SMT solvers:
// https://github.com/sosy-lab/java-smt
//
// SPDX-FileCopyrightText: 2020 Dirk Beyer <https://www.sosy-lab.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.sosy_lab.java_smt.solvers.cvc5;
import static com.google.common.bas... | src/org/sosy_lab/java_smt/solvers/cvc5/CVC5FormulaCreator.java | // This file is part of JavaSMT,
// an API wrapper for a collection of SMT solvers:
// https://github.com/sosy-lab/java-smt
//
// SPDX-FileCopyrightText: 2020 Dirk Beyer <https://www.sosy-lab.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.sosy_lab.java_smt.solvers.cvc5;
import static com.google.common.bas... | Fix preliminary visitor for CVC5 and remove duplicates in function declr
to kind map | src/org/sosy_lab/java_smt/solvers/cvc5/CVC5FormulaCreator.java | Fix preliminary visitor for CVC5 and remove duplicates in function declr to kind map | <ide><path>rc/org/sosy_lab/java_smt/solvers/cvc5/CVC5FormulaCreator.java
<ide> import static com.google.common.base.Preconditions.checkState;
<ide>
<ide> import com.google.common.base.Preconditions;
<add>import com.google.common.collect.ImmutableList;
<ide> import com.google.common.collect.ImmutableMap;
<ide> import c... | |
Java | mit | 2673347489a7e6ea83437a311ec94da8422f484f | 0 | IanEdington/ud405,IanEdington/ud405,IanEdington/ud405 | package com.udacity.gamedev.viewportsexercise;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType... | 1.4.07-Exercise-Viewports/core/src/com/udacity/gamedev/viewportsexercise/ViewportsExercise.java | package com.udacity.gamedev.viewportsexercise;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType... | Useing viewport instead of camera to manage views
| 1.4.07-Exercise-Viewports/core/src/com/udacity/gamedev/viewportsexercise/ViewportsExercise.java | Useing viewport instead of camera to manage views | <ide><path>.4.07-Exercise-Viewports/core/src/com/udacity/gamedev/viewportsexercise/ViewportsExercise.java
<ide> import com.badlogic.gdx.graphics.GL20;
<ide> import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
<ide> import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
<add>import com.badlogic.gdx.utils.... | |
Java | lgpl-2.1 | 49da2ba60110333a582049a68ded00f26d4f6ded | 0 | levants/lightmare | package org.lightmare.cache;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionMan... | src/main/java/org/lightmare/cache/MetaData.java | package org.lightmare.cache;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionMan... | implemented cache for Interceptors data | src/main/java/org/lightmare/cache/MetaData.java | implemented cache for Interceptors data | <ide><path>rc/main/java/org/lightmare/cache/MetaData.java
<ide> }
<ide> interceptors.offer(interceptor);
<ide> }
<add>
<add> public Collection<InterceptorData> getInterceptors() {
<add>
<add> return interceptors;
<add> }
<ide> } | |
Java | mit | cedb805d218d8873c22ce7475069b2317c74eb79 | 0 | YOTOV-LIMITED/validator,takenspc/validator,tripu/validator,validator/validator,tripu/validator,YOTOV-LIMITED/validator,sammuelyee/validator,sammuelyee/validator,validator/validator,takenspc/validator,YOTOV-LIMITED/validator,YOTOV-LIMITED/validator,tripu/validator,takenspc/validator,sammuelyee/validator,takenspc/validat... | /*
* This file is part of the RELAX NG schemas far (X)HTML5.
* Please see the file named LICENSE in the relaxng directory for
* license details.
*/
package org.whattf.syntax;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintW... | relaxng/tests/jdriver/src/org/whattf/syntax/Driver.java | /*
* This file is part of the RELAX NG schemas far (X)HTML5.
* Please see the file named LICENSE in the relaxng directory for
* license details.
*/
package org.whattf.syntax;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintW... | added necessary space in test-output message before word "was", so that error
message does not appear as "file:foo.xhtmlwas supposed to be invalid but was not."
--HG--
extra : convert_revision : svn%3Ae7398766-c432-0410-9565-638d39ca0058/trunk%40404
| relaxng/tests/jdriver/src/org/whattf/syntax/Driver.java | added necessary space in test-output message before word "was", so that error message does not appear as "file:foo.xhtmlwas supposed to be invalid but was not." | <ide><path>elaxng/tests/jdriver/src/org/whattf/syntax/Driver.java
<ide> failed = true;
<ide> try {
<ide> err.println(file.toURL().toString()
<del> + "was supposed to be invalid but was not.");
<add> ... | |
JavaScript | mit | 864b4d3dbc187ce8d8af3ccb466dd9a6b1f67416 | 0 | mobyan/thc-platform,mobyan/thc-platform,mobyan/thc-platform,mobyan/thc-platform | export default [{
"name": "SOILMTYXR1_H",
"desc": "土壤传感器,采集的数据为湿度H",
"unit": "%",
"type": "humility"
}, {
"name": "SOILMTYXR1_T",
"desc": "土壤传感器,采集的数据为温度T",
"unit": "℃",
"type": "temperature"
}, {
"name": "CWS1806A1AG_H",
"desc": "环境传感器, 采集的数据为湿度H",
"unit": "%",
"type": "... | src/resources/assets/js/configs/sensors.js | export default [{
"name": "SOILMTYXR1_H",
"desc": "土壤传感器,采集的数据为湿度H",
"unit": "%",
"type": "humility"
}, {
"name": "SOILMTYXR1_T",
"desc": "土壤传感器,采集的数据为温度T",
"unit": "℃",
"type": "temperature"
}, {
"name": "CWS1806A1AG_H",
"desc": "环境传感器, 采集的数据为湿度H",
"unit": "%",
"type": "... | add image sensor
| src/resources/assets/js/configs/sensors.js | add image sensor | <ide><path>rc/resources/assets/js/configs/sensors.js
<ide> "desc": "雨量传感器,采集的数据为降雨量R",
<ide> "unit": "mm",
<ide> "type": "rainfall"
<add>}, {
<add> "name": "HIKVISION_CAM_I",
<add> "desc": "图像传感器,采集数据为图像I",
<add> "unit": "",
<add> "type": "image"
<ide> }] | |
Java | apache-2.0 | dd3f1e4a681e5c8e58ba3a1ebbf75ba0861ff456 | 0 | apache/helix,apache/helix,lei-xia/helix,dasahcc/helix,lei-xia/helix,lei-xia/helix,lei-xia/helix,apache/helix,dasahcc/helix,dasahcc/helix,apache/helix,lei-xia/helix,dasahcc/helix,apache/helix,apache/helix,dasahcc/helix,lei-xia/helix,dasahcc/helix | package org.apache.helix;
/*
* 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... | helix-core/src/test/java/org/apache/helix/ZkUnitTestBase.java | package org.apache.helix;
/*
* 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... | [HELIX-680] add system setting to unblock TestZkCallbackHandlerLeak test with zookeeper 3.4.11 upgrade
| helix-core/src/test/java/org/apache/helix/ZkUnitTestBase.java | [HELIX-680] add system setting to unblock TestZkCallbackHandlerLeak test with zookeeper 3.4.11 upgrade | <ide><path>elix-core/src/test/java/org/apache/helix/ZkUnitTestBase.java
<ide>
<ide> @BeforeSuite(alwaysRun = true)
<ide> public void beforeSuite() throws Exception {
<add> // Due to ZOOKEEPER-2693 fix, we need to specify whitelist for execute zk commends
<add> System.setProperty("zookeeper.4lw.commands.white... | |
JavaScript | mit | a5ad00865c35dc3d772596b25af643e5d73097d8 | 0 | northernnhs/northernnhs.github.io,northernnhs/northernnhs.github.io | /*$(document).ready(function () {
$.getJSON("https://jsonip.com/?callback=?", function (data) {
//console.log(data);
//console.log(data.ip.toString());
//alert(data.ip);
$('#v4').html(data.ip.toString());
$('#v6').html('<a href="https://docs.google.com/forms/d/e/1FAIpQLSfDu6n... | main.js | $(document).ready(function () {
$.getJSON("https://jsonip.com/?callback=?", function (data) {
//console.log(data);
//console.log(data.ip.toString());
//alert(data.ip);
$('#v4').html(data.ip.toString());
$('#v6').html('<a href="https://docs.google.com/forms/d/e/1FAIpQLSfDu6nPV... | Obfuscate JS code.
| main.js | Obfuscate JS code. | <ide><path>ain.js
<del>$(document).ready(function () {
<add>/*$(document).ready(function () {
<ide> $.getJSON("https://jsonip.com/?callback=?", function (data) {
<ide> //console.log(data);
<ide> //console.log(data.ip.toString());
<ide> $('#v4').html(data.ip.toString());
<ide> $('#v6'... | |
Java | apache-2.0 | e442aab9e27b29aa271b347945a799e7df51465d | 0 | searchbox/framework,searchbox/framework,searchbox/framework | package com.searchbox.core.search.result;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import... | src/main/java/com/searchbox/core/search/result/TemplateElementSolrAdapter.java | package com.searchbox.core.search.result;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import... | Udpated log levels | src/main/java/com/searchbox/core/search/result/TemplateElementSolrAdapter.java | Udpated log levels | <ide><path>rc/main/java/com/searchbox/core/search/result/TemplateElementSolrAdapter.java
<ide> }
<ide>
<ide> Set<String> fields = searchElement.getRequiredFields();
<add> LOGGER.debug("Required fields: {}", fields);
<ide>
<ide> if (fields.contains(attribute.getField().getKey())) {
<ide> String ke... | |
Java | agpl-3.0 | db86c7084ba08d94a08f028043c4b59466c44467 | 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 | 2a6ed5e2-2e62-11e5-9284-b827eb9e62be | hello.java | 2a694f78-2e62-11e5-9284-b827eb9e62be | 2a6ed5e2-2e62-11e5-9284-b827eb9e62be | hello.java | 2a6ed5e2-2e62-11e5-9284-b827eb9e62be | <ide><path>ello.java
<del>2a694f78-2e62-11e5-9284-b827eb9e62be
<add>2a6ed5e2-2e62-11e5-9284-b827eb9e62be | |
JavaScript | apache-2.0 | 4d328ee3dc62d945eaf4aa2de6b1de23106321e0 | 0 | ilscipio/scipio-erp,ilscipio/scipio-erp,ilscipio/scipio-erp,ilscipio/scipio-erp,ilscipio/scipio-erp | /*
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 not use this f... | themes/base/webapp/base/js/app.js | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... | NoRef ScipioUploadProgress: test alert remove
git-svn-id: 6c0edb9fdd085beb7f3b78cf385b6ddede550bd9@13338 55bbc10b-e964-4c8f-a844-a62c6f7d3c80
| themes/base/webapp/base/js/app.js | NoRef ScipioUploadProgress: test alert remove | <ide><path>hemes/base/webapp/base/js/app.js
<ide> if (iframeErrorContent.length > 0) {
<ide> // 2016-11-02: check for custom has-scipio-errormsg attribute
<ide> var flagAttr = jQuery(iframeErrorContent).attr("has-scipio-errormsg");
<del> ... | |
Java | apache-2.0 | 064c63a40a80a833e2939c4df8d04d55c27867f3 | 0 | chmyga/component-runtime,chmyga/component-runtime,chmyga/component-runtime,chmyga/component-runtime | /**
* Copyright (C) 2006-2018 Talend Inc. - www.talend.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | component-form/component-server-proxy-parent/component-server-proxy/src/test/java/org/talend/sdk/component/proxy/service/ConfigurationFormatterImplTest.java | /**
* Copyright (C) 2006-2018 Talend Inc. - www.talend.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | TCOMP-1155 ensure we support null in arrays in server proxy
| component-form/component-server-proxy-parent/component-server-proxy/src/test/java/org/talend/sdk/component/proxy/service/ConfigurationFormatterImplTest.java | TCOMP-1155 ensure we support null in arrays in server proxy | <ide><path>omponent-form/component-server-proxy-parent/component-server-proxy/src/test/java/org/talend/sdk/component/proxy/service/ConfigurationFormatterImplTest.java
<ide> }
<ide>
<ide> @Test
<add> void flattenArrayWithNull() {
<add> final JsonObject from = factory
<add> .createObject... | |
Java | apache-2.0 | 6b09d1045a2ed369ec5ecce9e5dc512b82f312b8 | 0 | robertwb/incubator-beam,chamikaramj/beam,apache/beam,apache/beam,lukecwik/incubator-beam,chamikaramj/beam,lukecwik/incubator-beam,robertwb/incubator-beam,chamikaramj/beam,chamikaramj/beam,apache/beam,robertwb/incubator-beam,lukecwik/incubator-beam,apache/beam,lukecwik/incubator-beam,lukecwik/incubator-beam,apache/beam,... | /*
* 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 ... | sdks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/options/AwsModule.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 ... | [BEAM-13147] Avoid nullness issue during init of AwsModule (AWS Sdk v2)
| sdks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/options/AwsModule.java | [BEAM-13147] Avoid nullness issue during init of AwsModule (AWS Sdk v2) | <ide><path>dks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/options/AwsModule.java
<ide> public static final String MAX_CONNECTIONS = "maxConnections";
<ide> public static final String READ_TIMEOUT = "socketTimeout";
<ide>
<del> @SuppressWarnings({"nullness"})
<ide> public AwsModule() ... | |
Java | apache-2.0 | 9bc9ef30a8aa63950e99ca68d1e825f7313ab366 | 0 | open-power/serverwiz,open-power/serverwiz | package com.ibm.ServerWizard2.view;
import java.util.Vector;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.ColumnLabelProvider;
import o... | src/com/ibm/ServerWizard2/view/MainDialog.java | package com.ibm.ServerWizard2.view;
import java.util.Vector;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.ColumnLabelProvider;
import o... | Add height to tabbed folder
Bottom of tabbed folder was being cutoff in some OS's.
Signed-off-by: Norman James <08dd3ff542973e0e5fe0ef07f80666c27fa95b52@gmail.com> | src/com/ibm/ServerWizard2/view/MainDialog.java | Add height to tabbed folder | <ide><path>rc/com/ibm/ServerWizard2/view/MainDialog.java
<ide> rl_composite.wrap = false;
<ide> rl_composite.fill = true;
<ide> composite.setLayout(rl_composite);
<del> GridData gd_composite = new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1);
<add> GridData gd_composite = new GridData(SWT.FILL, SWT.FILL, fals... | |
Java | mit | a263da81e2d4d7904043b19d9bd30e5c1041bc68 | 0 | ylins/algo | package tree;
/**
* Created by Yue on 2017/10/12.
*/
public class BinarySearchTree<T extends Comparable<? super T>> {
private static class BinaryNode<T> {
BinaryNode(T element) {
this(element, null, null);
}
public BinaryNode(T element, BinaryNode<T> left, BinaryNode<T> rig... | src/tree/BinarySearchTree.java | package tree;
/**
* Created by Yue on 2017/10/12.
*/
public class BinarySearchTree {
}
| modified binarySearchTree
| src/tree/BinarySearchTree.java | modified binarySearchTree | <ide><path>rc/tree/BinarySearchTree.java
<ide> /**
<ide> * Created by Yue on 2017/10/12.
<ide> */
<del>public class BinarySearchTree {
<add>public class BinarySearchTree<T extends Comparable<? super T>> {
<add>
<add> private static class BinaryNode<T> {
<add>
<add> BinaryNode(T element) {
<add> t... | |
Java | apache-2.0 | d77019557fa52b51ba1a2a0199cac09c5f75d805 | 0 | donald-w/mypojo | /*
* Copyright 2011 Karl Pauls karlpauls@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 required by applicable... | framework/src/main/java/de/kalpatec/pojosr/framework/launch/ClasspathScanner.java | /*
* Copyright 2011 Karl Pauls karlpauls@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 required by applicable... | Suppress warning, reformat
| framework/src/main/java/de/kalpatec/pojosr/framework/launch/ClasspathScanner.java | Suppress warning, reformat | <ide><path>ramework/src/main/java/de/kalpatec/pojosr/framework/launch/ClasspathScanner.java
<ide> return scanForBundles(null, null);
<ide> }
<ide>
<add> @SuppressWarnings("unused")
<ide> public List<BundleDescriptor> scanForBundles(ClassLoader loader) throws Exception {
<ide> return scanForB... | |
Java | apache-2.0 | 8b5a8297fd0336f6cefe9b7b02a2e554445e34fa | 0 | edwardcapriolo/teknek-core,edwardcapriolo/teknek-core | /*
Copyright 2013 Edward Capriolo, Matt Landolf, Lodwin Cueto
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/io/teknek/daemon/TeknekDaemon.java | /*
Copyright 2013 Edward Capriolo, Matt Landolf, Lodwin Cueto
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... | graphite reporter ftw
| src/main/java/io/teknek/daemon/TeknekDaemon.java | graphite reporter ftw | <ide><path>rc/main/java/io/teknek/daemon/TeknekDaemon.java
<ide>
<ide> import io.teknek.datalayer.WorkerDao;
<ide> import io.teknek.datalayer.WorkerDaoException;
<add>import io.teknek.graphite.reporter.CommonGraphiteReporter;
<ide> import io.teknek.graphite.reporter.SimpleJmxReporter;
<ide> import io.teknek.plan.Plan;... | |
Java | apache-2.0 | 26d3af9556b4f596fa5deb7019716287fe9848c6 | 0 | apache/geronimo,apache/geronimo,apache/geronimo,apache/geronimo | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"... | framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/GeronimoRMIClientSocketFactory.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"... | fix build problem
git-svn-id: 0d16bf2c240b8111500ec482b35765e5042f5526@736774 13f79535-47bb-0310-9956-ffa450edef68
| framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/GeronimoRMIClientSocketFactory.java | fix build problem | <ide><path>ramework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/GeronimoRMIClientSocketFactory.java
<ide> this.readTimeout = readTimeout;
<ide> }
<ide>
<del> public Socket createSocket(String _host, int port) throws IOException {
<add> public Socket createSocket(String ho... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.