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 | 5d1b558ca36b953f14d6c4b46b137785183462f5 | 0 | mtransitapps/ca-niagara-falls-wego-bus-parser,mtransitapps/ca-niagara-falls-wego-bus-parser | package org.mtransit.parser.ca_niagara_falls_wego_bus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
i... | src/org/mtransit/parser/ca_niagara_falls_wego_bus/NiagaraFallsWEGOBusAgencyTools.java | package org.mtransit.parser.ca_niagara_falls_wego_bus;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
i... | Compatibility with latest update
| src/org/mtransit/parser/ca_niagara_falls_wego_bus/NiagaraFallsWEGOBusAgencyTools.java | Compatibility with latest update | <ide><path>rc/org/mtransit/parser/ca_niagara_falls_wego_bus/NiagaraFallsWEGOBusAgencyTools.java
<ide>
<ide> @Override
<ide> public boolean excludeRoute(GRoute gRoute) {
<del> if (!gRoute.getAgencyId().contains("Niagara Falls Transit & WeGo")) {
<add> if (!gRoute.getAgencyId().contains("Niagara Parks Commission WeG... | |
Java | mit | 08335cdfb05b0089db591bbad4c763d8e50d94de | 0 | devYaoYH/battlecode2017_edoctablet | package Scarif_stable;
import battlecode.common.*;
import java.util.ArrayList;
import java.util.HashSet;
public class GardenerPlayer extends BasePlayer {
//Gardener specific variables
private int treeTimer = 0;
private int lumberjackTimer = 0;
private int soldierTimer = 0;
private int scoutTimer... | src/Scarif_stable/GardenerPlayer.java | package Scarif_stable;
import battlecode.common.*;
import java.util.ArrayList;
import java.util.HashSet;
public class GardenerPlayer extends BasePlayer {
//Gardener specific variables
private int treeTimer = 0;
private int lumberjackTimer = 0;
private int soldierTimer = 0;
private int scoutTimer... | Fixed multiple archon gardener bug
| src/Scarif_stable/GardenerPlayer.java | Fixed multiple archon gardener bug | <ide><path>rc/Scarif_stable/GardenerPlayer.java
<ide> static int settleTimer;
<ide> static final int MAX_READ_SETTLE_PTS = 50; //Maximum number of settle pts read
<ide> static int MAX_INIT_TREES = 2; //Max number of early game trees
<add> static float MIN_SEP... | |
JavaScript | bsd-3-clause | d11fd97b3e1e092f7609b56cdc8a5f963e44a86f | 0 | Machyne/pal,Machyne/pal,Machyne/pal,Machyne/pal | var queryPAL = function(query, callback) {
$.ajax({
type: 'POST',
url: '/api/pal',
data: {
query: query,
client: 'web'
},
success: function (response) {
callback(response.result.response);
}
});
};
$(document).ready(function () {
// show speak checkbox only if browser s... | static/home.js | var queryPAL = function(query, callback) {
$.ajax({
type: 'POST',
url: '/api/pal',
data: {
query: query,
client: 'web'
},
success: function (response) {
callback(response.result.response);
}
});
};
$(document).ready(function () {
// show speak checkbox only if browser s... | making an executive decision for speech output to be slower
| static/home.js | making an executive decision for speech output to be slower | <ide><path>tatic/home.js
<ide> $('.history-result').prepend('<li>' + result + '</li>');
<ide> if($('#speak-check').is(':checked')) {
<ide> var utterance = new SpeechSynthesisUtterance(result);
<del> utterance.rate = 1.3;
<add> utterance.rate = 1.1;
<ide> window.spee... | |
JavaScript | bsd-3-clause | 1eacf4c789f1c38ad4a72f7994a81206d1bd830f | 0 | Kitware/vtk-js,Kitware/vtk-js,Kitware/vtk-js,Kitware/vtk-js | import macro from 'vtk.js/Sources/macro';
import vtkAnnotatedCubeActor from 'vtk.js/Sources/Rendering/Core/AnnotatedCubeActor';
import vtkAxesActor from 'vtk.js/Sources/Rendering/Core/AxesActor';
import vtkCornerAnnotation from 'vtk.js/Sources/Interaction/UI/CornerAnnotation';
import vtkInteractorStyleManipulator from... | Sources/Proxy/Core/ViewProxy/index.js | import macro from 'vtk.js/Sources/macro';
import vtkAnnotatedCubeActor from 'vtk.js/Sources/Rendering/Core/AnnotatedCubeActor';
import vtkAxesActor from 'vtk.js/Sources/Rendering/Core/AxesActor';
import vtkCornerAnnotation from 'vtk.js/Sources/Interaction/UI/CornerAnnotation';
import vtkInteractorStyleManipulator from... | replace array by map
| Sources/Proxy/Core/ViewProxy/index.js | replace array by map | <ide><path>ources/Proxy/Core/ViewProxy/index.js
<ide> AnnotatedCubePresets.applyPreset('default', model.orientationAxesCube);
<ide> AnnotatedCubePresets.applyPreset('lps', model.orientationAxesCube);
<ide>
<del> model.orientationAxesList = [
<del> { name: 'arrow', actor: model.orientationAxesArrow },
<del> ... | |
Java | mit | 3b8c66135a1462278446f0f183f8c4f996a54f95 | 0 | bmustiata/ftrace-injector | package com.ciplogic.jsinjector;// Generated from JavaScript.g4 by ANTLR 4.1
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.TokenStreamRewriter;
import org.antlr.v4.runtime.misc.NotNull;
public class InjectCiplogicTraceWrap extends JavaScriptBaseLis... | src/main/java/com/ciplogic/jsinjector/InjectCiplogicTraceWrap.java | package com.ciplogic.jsinjector;// Generated from JavaScript.g4 by ANTLR 4.1
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.TokenStreamRewriter;
import org.antlr.v4.runtime.misc.NotNull;
public class InjectCiplogicTraceWrap extends JavaScriptBaseLis... | Escape function names so setting callbacks from the inside of the function doesn't set it to the alleged wrapped function.
| src/main/java/com/ciplogic/jsinjector/InjectCiplogicTraceWrap.java | Escape function names so setting callbacks from the inside of the function doesn't set it to the alleged wrapped function. | <ide><path>rc/main/java/com/ciplogic/jsinjector/InjectCiplogicTraceWrap.java
<ide> String name = ctx.getChild(1).getText();
<ide>
<ide> String prefixWrap = String.format("function %s() { return ftrace.wrap('%s', '" + getLocation(ctx) + "', function() {", name, name);
<del> String suffixWrap = St... | |
Java | apache-2.0 | bf33495cdaa9f5eed7d24e6c96a3e6fd0d8a5eb6 | 0 | ne0fhyk/DP-Wear,DroidPlanner/tower-wear | package com.ox3dr.services.android.lib.drone.property;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by fhuya on 10/28/14.
*/
public enum VehicleMode implements Parcelable {
PLANE_MANUAL(0, Type.TYPE_PLANE, "Manual"),
PLANE_CIRCLE(1, Type.TYPE_PLANE, "Circle"),
PLANE_STABILIZE(2... | lib/src/com/ox3dr/services/android/lib/drone/property/VehicleMode.java | package com.ox3dr.services.android.lib.drone.property;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by fhuya on 10/28/14.
*/
public class VehicleMode implements Parcelable {
private final int mode;
private final int droneType;
private final String label;
public VehicleMode... | updated structure of the VehicleMode property.
| lib/src/com/ox3dr/services/android/lib/drone/property/VehicleMode.java | updated structure of the VehicleMode property. | <ide><path>ib/src/com/ox3dr/services/android/lib/drone/property/VehicleMode.java
<ide> /**
<ide> * Created by fhuya on 10/28/14.
<ide> */
<del>public class VehicleMode implements Parcelable {
<add>public enum VehicleMode implements Parcelable {
<add>
<add> PLANE_MANUAL(0, Type.TYPE_PLANE, "Manual"),
<add> PLANE... | |
JavaScript | mit | 33cd32c6b315388f93a7a5b21c741f28a12c1405 | 0 | spraakbanken/korp-frontend,spraakbanken/korp-frontend,spraakbanken/korp-frontend | /** @format */
import statemachine from "@/statemachine"
import { setDefaultConfigValues } from "./settings"
const korpFailImg = require("../img/korp_fail.svg")
const deparam = require("jquery-deparam")
import jStorage from "../lib/jstorage"
window.authenticationProxy = new model.AuthenticationProxy()
window.timePro... | app/scripts/main.js | /** @format */
import statemachine from "@/statemachine"
import { setDefaultConfigValues } from "./settings"
const korpFailImg = require("../img/korp_fail.svg")
const deparam = require("jquery-deparam")
import jStorage from "../lib/jstorage"
window.authenticationProxy = new model.AuthenticationProxy()
window.timePro... | remove some old stuff
| app/scripts/main.js | remove some old stuff | <ide><path>pp/scripts/main.js
<ide> } else {
<ide> statemachine.send("USER_NOT_FOUND")
<ide> }
<del>
<del>// rewriting old url format to the angular one
<del>if (location.hash.length && location.hash[1] !== "?") {
<del> location.hash = `#?${_.trimStart(location.hash, "#")}`
<del>}
<del>
<del>$.ajaxSetup({
<del> ... | |
JavaScript | mit | bf278dbb9cf1ef1819a5bda85db5dd4bd2d30d43 | 0 | igvteam/igv.js,igvteam/igv.js | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Broad Institute
*
* 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 u... | js/rulerTrack.js | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Broad Institute
*
* 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 u... | null check in rulerTrack initialization
| js/rulerTrack.js | null check in rulerTrack initialization | <ide><path>s/rulerTrack.js
<ide> str = viewport.genomicState.referenceFrame.showLocus(viewport.$viewport.width());
<ide>
<ide> // console.log('ruler update label - viewport ' + viewport.id + ' ' + str);
<del> viewport.$rulerLabel.text( str );
<add> viewport.$rulerLabel.tex... | |
JavaScript | bsd-3-clause | f14edd8a0c38c59cc10fb218ba1e9875b9644996 | 0 | exponent/react-native,arthuralee/react-native,pandiaraj44/react-native,exponentjs/react-native,myntra/react-native,arthuralee/react-native,hammerandchisel/react-native,exponentjs/react-native,exponentjs/react-native,javache/react-native,facebook/react-native,javache/react-native,exponentjs/react-native,myntra/react-nat... | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
'use strict';
const ListViewDataSource = require('ListViewDataSource');
const React = require(... | Libraries/Lists/ListView/__mocks__/ListViewMock.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
'use strict';
const ListViewDataSource = require('ListViewDataSource');
const React = require(... | Fix ListViewMock unique key error (#14894)
Summary:
Add key prop to renderHeader and renderFooter in ListViewMock.
Fix unique key error when using jest snapshots.
It closes #12762
Pull Request resolved: https://github.com/facebook/react-native/pull/14894
Reviewed By: TheSavior
Differential Revision: D13396721
Pull... | Libraries/Lists/ListView/__mocks__/ListViewMock.js | Fix ListViewMock unique key error (#14894) | <ide><path>ibraries/Lists/ListView/__mocks__/ListViewMock.js
<ide> * Flow. */
<ide> renderScrollComponent: props => <ScrollView {...props} />,
<ide> };
<add>
<ide> componentDidMount() {
<ide> ListViewMock.latestRef = this;
<ide> }
<add>
<ide> render() {
<ide> const {dataSource, renderFooter, re... | |
Java | epl-1.0 | eadfc3b7ed729470852e911adc83068d5e0e67fe | 0 | CityOfLearning/ForgeEssentials,planetguy32/ForgeEssentials,aschmois/ForgeEssentialsMain,ForgeEssentials/ForgeEssentialsMain,Techjar/ForgeEssentials,liachmodded/ForgeEssentials | package com.ForgeEssentials.data.filesystem;
import net.minecraft.server.MinecraftServer;
import net.minecraft.src.IntegratedServer;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.Property;
import com.ForgeEssentials.core.ForgeEssentials;
import com.ForgeEssentials.core.PlayerInfo;
i... | src/common/com/ForgeEssentials/data/filesystem/FileSystemDataDriver.java | package com.ForgeEssentials.data.filesystem;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.Property;
import com.ForgeEssentials.core.ForgeEssentials;
import com.ForgeEssentials.core.PlayerInfo;
import com.ForgeEssentials.data.DataDriver;
import com.ForgeEssentials.data.DataStorageMa... | Changes to Flat-file data driver directory. This method of determining server/client is much better.
| src/common/com/ForgeEssentials/data/filesystem/FileSystemDataDriver.java | Changes to Flat-file data driver directory. This method of determining server/client is much better. | <ide><path>rc/common/com/ForgeEssentials/data/filesystem/FileSystemDataDriver.java
<ide> package com.ForgeEssentials.data.filesystem;
<ide>
<add>import net.minecraft.server.MinecraftServer;
<add>import net.minecraft.src.IntegratedServer;
<ide> import net.minecraftforge.common.Configuration;
<ide> import net.minecraftf... | |
JavaScript | mit | f692aaff4b962505d0e05c761face48bd01ed151 | 0 | david-prince/rockpaperscissors |
angular.module('david.playground', [])
.controller('DavidCtrl', ['$scope', function($scope) {
console.log("David is here.");
var computerChoice = function(){
var comChoice = Math.random();
if (comChoice <= .33){
comChoice = "rock";
} else if (comChoice >= .66){
comChoice = "paper";
} ... | src/app.js |
angular.module('david.playground', [])
.controller('DavidCtrl', ['$scope', function($scope) {
console.log("David is here.");
var computerChoice = function(){
var comChoice = Math.random();
if (comChoice <= .33){
comChoice = "rock";
} else if (comChoice >= .66){
comChoice = "paper";
} ... | Fix whoWins function and call it from buttonClick
| src/app.js | Fix whoWins function and call it from buttonClick | <ide><path>rc/app.js
<ide> } else {
<ide> comChoice = "scissors";
<ide> }
<del> return comChoice;
<add> return comChoice;
<ide> };
<add>
<add> var whoWins = function(choice1,choice2){
<add> var result = "";
<add> if (choice1 === choice2) {
<add> result = "You tied with the compu... | |
JavaScript | apache-2.0 | 4a453bfe2421a79bdf2503e51e4877a7c6b6e169 | 0 | nuest/o2r-muncher,o2r-project/o2r-muncher,nuest/o2r-muncher,o2r-project/o2r-muncher,nuest/o2r-muncher,nuest/o2r-muncher,o2r-project/o2r-muncher,o2r-project/o2r-muncher,o2r-project/o2r-muncher,nuest/o2r-muncher | /*
* (C) Copyright 2017 o2r 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 applicable law or agreed... | test/job-steps.js | /*
* (C) Copyright 2017 o2r 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 applicable law or agreed... | add test for image.tar (non)existence
| test/job-steps.js | add test for image.tar (non)existence | <ide><path>est/job-steps.js
<ide> });
<ide> });
<ide> }).timeout(20000);
<add>
<add> it('should list the image tarball in the compendium file listing', function (done) {
<add> request(global.test_host + '/api/v1/compendium/' + compendium_id, (err, res, body) => {
<add> assert.ifError(er... | |
Java | apache-2.0 | 76536ce5c99651ba171971f8739793d3b0060341 | 0 | vt0r/k-9,rishabhbitsg/k-9,ndew623/k-9,ndew623/k-9,mawiegand/k-9,mawiegand/k-9,roscrazy/k-9,philipwhiuk/q-mail,philipwhiuk/k-9,cketti/k-9,G00fY2/k-9_material_design,sedrubal/k-9,philipwhiuk/q-mail,indus1/k-9,jca02266/k-9,dgger/k-9,sedrubal/k-9,vatsalsura/k-9,cketti/k-9,philipwhiuk/q-mail,cketti/k-9,k9mail/k-9,indus1/k-9... | package com.fsck.k9.mail.store.webdav;
import android.util.Log;
import com.fsck.k9.mail.*;
import com.fsck.k9.mail.filter.Base64;
import com.fsck.k9.mail.CertificateValidationException;
import com.fsck.k9.mail.store.RemoteStore;
import com.fsck.k9.mail.store.StoreConfig;
import org.apache.http.*;
import org.apache.h... | k9mail-library/src/main/java/com/fsck/k9/mail/store/webdav/WebDavStore.java | package com.fsck.k9.mail.store.webdav;
import android.util.Log;
import com.fsck.k9.mail.*;
import com.fsck.k9.mail.filter.Base64;
import com.fsck.k9.mail.CertificateValidationException;
import com.fsck.k9.mail.store.RemoteStore;
import com.fsck.k9.mail.store.StoreConfig;
import org.apache.commons.io.IOUtils;
import ... | WebDAV: Improve logging when we get an unexpected redirect during sync
| k9mail-library/src/main/java/com/fsck/k9/mail/store/webdav/WebDavStore.java | WebDAV: Improve logging when we get an unexpected redirect during sync | <ide><path>9mail-library/src/main/java/com/fsck/k9/mail/store/webdav/WebDavStore.java
<ide> import com.fsck.k9.mail.store.RemoteStore;
<ide> import com.fsck.k9.mail.store.StoreConfig;
<ide>
<del>import org.apache.commons.io.IOUtils;
<ide> import org.apache.http.*;
<ide> import org.apache.http.client.CookieStore;
<ide>... | |
Java | apache-2.0 | a50a730db501ae0b6687ecdaf840453dcd6e2f87 | 0 | juanavelez/hazelcast,Donnerbart/hazelcast,tombujok/hazelcast,emre-aydin/hazelcast,mesutcelik/hazelcast,tkountis/hazelcast,lmjacksoniii/hazelcast,tufangorel/hazelcast,emre-aydin/hazelcast,juanavelez/hazelcast,tkountis/hazelcast,tombujok/hazelcast,emre-aydin/hazelcast,lmjacksoniii/hazelcast,tufangorel/hazelcast,mesutceli... | /*
* Copyright (c) 2008-2016, 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/src/main/java/com/hazelcast/nio/IOUtil.java | /*
* Copyright (c) 2008-2016, 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 ... | Add IOUtil.rename() | hazelcast/src/main/java/com/hazelcast/nio/IOUtil.java | Add IOUtil.rename() | <ide><path>azelcast/src/main/java/com/hazelcast/nio/IOUtil.java
<ide>
<ide> public static ObjectInputStream newObjectInputStream(final ClassLoader classLoader, InputStream in) throws IOException {
<ide> return new ClassLoaderAwareObjectInputStream(classLoader, in);
<del> }
<del>
<del> private static ... | |
Java | apache-2.0 | 4e49df8c7d07efdf54f90e8a94b1f25b3e072167 | 0 | kuujo/onos,kuujo/onos,oplinkoms/onos,kuujo/onos,kuujo/onos,oplinkoms/onos,kuujo/onos,opennetworkinglab/onos,opennetworkinglab/onos,oplinkoms/onos,gkatsikas/onos,gkatsikas/onos,oplinkoms/onos,gkatsikas/onos,oplinkoms/onos,opennetworkinglab/onos,gkatsikas/onos,kuujo/onos,opennetworkinglab/onos,oplinkoms/onos,kuujo/onos,o... | /*
* Copyright 2015-present Open Networking Foundation
*
* 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... | apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java | /*
* Copyright 2015-present Open Networking Foundation
*
* 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... | Remove event handling delay
Change-Id: I890ac8643c6b331f6d1f660ef634801c305be55a
| apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java | Remove event handling delay | <ide><path>pps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
<ide> case CONFIG_UPDATED:
<ide> case CONFIG_REMOVED:
<ide> log.trace("Schedule Network Config event {}", event);
<del> mainEventExecutor.sched... | |
Java | mit | 4031b1fe3e4362780d07dee87ef3f0b191071287 | 0 | vikas17a/Algorithm-Implementations,joshimoo/Algorithm-Implementations,n1ghtmare/Algorithm-Implementations,vikas17a/Algorithm-Implementations,girishramnani/Algorithm-Implementations,jb1717/Algorithm-Implementations,jb1717/Algorithm-Implementations,kidaa/Algorithm-Implementations,sugiartocokrowibowo/Algorithm-Implementat... | Caesar-Cipher/Java/irisyuan/caesarCipher.java | import java.util.Scanner;
public class caesarCipher {
// cipher(String,int) returns original message shifted by 3 letters
// if input is numerical, adds 3 to number
public static char[] cipher(String message, int shift) {
// declare variables
String s = message;
// convert string to array of chars
cha... | Delete caesarCipher.java | Caesar-Cipher/Java/irisyuan/caesarCipher.java | Delete caesarCipher.java | <ide><path>aesar-Cipher/Java/irisyuan/caesarCipher.java
<del>import java.util.Scanner;
<del>
<del>public class caesarCipher {
<del>
<del> // cipher(String,int) returns original message shifted by 3 letters
<del> // if input is numerical, adds 3 to number
<del> public static char[] cipher(String message, int shift) {
... | ||
JavaScript | mit | 375cbf49deb1cab25693012173b8ae573e5cb2c6 | 0 | bdemirkir/socket.io,pandeysoni/socket.io,swrnvinod40/socket.io,morpheus-med/socket.io,ceosilvajr/socket.io,nicolasq92/socket.io,shreyasns/socket.io,ijidan/socket.io,pmq20/socket.io,manubb/socket.io,kolomiichenko/socket.io,darkshOw/socket.io,lattmann/socket.io,darrachequesne/socket.io,jmptrader/socket.io,samsonradu/sock... |
/*!
* socket.io-node
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var parser = require('./parser');
/**
* Expose the constructor.
*/
exports = module.exports = Transport;
/**
* Transport constructor.
*
* @api public
*/
function Transport (mng, da... | lib/transport.js |
/*!
* socket.io-node
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var parser = require('./parser');
/**
* Expose the constructor.
*/
exports = module.exports = Transport;
/**
* Transport constructor.
*
* @api public
*/
function Transport (mng, da... | Important fix for hearbeats
| lib/transport.js | Important fix for hearbeats | <ide><path>ib/transport.js
<ide> */
<ide>
<ide> Transport.prototype.setHeartbeatInterval = function () {
<del> if (!this.heartbeatTimeout) {
<add> if (!this.heartbeatInterval) {
<ide> var self = this;
<ide>
<ide> this.heartbeatInterval = setTimeout(function () {
<ide> self.heartbeat();
<add> sel... | |
Java | apache-2.0 | 7432c5255dccbe316b39e7ddfbe45c149b6aa31f | 0 | freiheit-com/wicket,klopfdreh/wicket,martin-g/wicket-osgi,mafulafunk/wicket,mosoft521/wicket,mosoft521/wicket,martin-g/wicket-osgi,Servoy/wicket,bitstorm/wicket,aldaris/wicket,astrapi69/wicket,topicusonderwijs/wicket,Servoy/wicket,dashorst/wicket,apache/wicket,dashorst/wicket,freiheit-com/wicket,astrapi69/wicket,bitsto... | /*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | wicket/src/java/wicket/util/thread/Task.java | /*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | *** empty log message ***
git-svn-id: ac804e38dcddf5e42ac850d29d9218b7df6087b7@455590 13f79535-47bb-0310-9956-ffa450edef68
| wicket/src/java/wicket/util/thread/Task.java | *** empty log message *** | <ide><path>icket/src/java/wicket/util/thread/Task.java
<ide> }
<ide>
<ide> /**
<del> * @return
<add> * Gets the log.
<add> * @return the log
<ide> */
<ide> protected Log getLog()
<ide> { | |
Java | mit | 9706fe49be141e40a5d84428b8d4be0823bd9cf8 | 0 | opennars/opennars,opennars/opennars,opennars/opennars,opennars/opennars | package nars.gui.output;
import automenta.vivisect.face.HumanoidFacePanel;
import nars.core.NAR;
public class NARFacePanel extends HumanoidFacePanel {
private final NAR nar;
public NARFacePanel(NAR n) {
super();
this.nar = n;
}
@Override
protected void onShowing(boolean sh... | nars_gui/nars/gui/output/NARFacePanel.java | package nars.gui.output;
import automenta.vivisect.face.HumanoidFacePanel;
import nars.core.NAR;
public class NARFacePanel extends HumanoidFacePanel {
private final NAR nar;
public NARFacePanel(NAR n) {
super();
this.nar = n;
}
@Override
protected void onShowing(boolean sh... | fix NAR face panel for now. | nars_gui/nars/gui/output/NARFacePanel.java | fix NAR face panel for now. | <ide><path>ars_gui/nars/gui/output/NARFacePanel.java
<ide> public void update(double t) {
<ide> happy = nar.memory.emotion.happy() > 0.6;
<ide> busy = nar.memory.emotion.busy() > 0.95;
<del> float conceptPriority = ((Number)nar.memory.logic.get("concept.priority.mean")).floatValue();
<del> ... | |
Java | apache-2.0 | 8a035b87e5f3c2558f9ca8fbc3f6b58d65b6266d | 0 | millmanorama/autopsy,rcordovano/autopsy,rcordovano/autopsy,esaunders/autopsy,esaunders/autopsy,millmanorama/autopsy,rcordovano/autopsy,esaunders/autopsy,wschaeferB/autopsy,wschaeferB/autopsy,esaunders/autopsy,wschaeferB/autopsy,rcordovano/autopsy,wschaeferB/autopsy,rcordovano/autopsy,millmanorama/autopsy,wschaeferB/aut... | /*
* Autopsy Forensic Browser
*
* Copyright 2013-2018 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... | Core/src/org/sleuthkit/autopsy/modules/embeddedfileextractor/SevenZipExtractor.java | /*
* Autopsy Forensic Browser
*
* Copyright 2013-2018 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... | 3819 additional clean up and removal of unnecessary fields depth fix
| Core/src/org/sleuthkit/autopsy/modules/embeddedfileextractor/SevenZipExtractor.java | 3819 additional clean up and removal of unnecessary fields depth fix | <ide><path>ore/src/org/sleuthkit/autopsy/modules/embeddedfileextractor/SevenZipExtractor.java
<ide> }
<ide> parentAr = depthMap.get(archiveId);
<ide> if (parentAr == null) {
<del> parentAr = new Archive(null, archiveId, 0);
<add> parentAr = new Archive(archiveId, 0);
<ide> ... | |
JavaScript | mit | 2bfd8c105cb16ce47dc76e8ffb0f0c60e2700dd5 | 0 | utarsuno/quasar_source,utarsuno/quasar_source,utarsuno/quasar_source,utarsuno/quasar_source,utarsuno/quasar_source,utarsuno/quasar_source,utarsuno/quasar_source | 'use strict'
function Floating3DText(w, h, text, type, scene) {
this.__init__(w, h, text, type, scene)
}
//const GLOBAL_FONT = new THREE.Font(JSON.parse(document.getElementById('font_3d').innerHTML))
// TODO : Abstract away the logic from the rendering in different classes.
Floating3DText.prototype = {
// O... | quasar_source_code/quasar_site_django/static/js/custom/models/floating_3d_text.js | 'use strict'
function Floating3DText(w, h, text, type, scene) {
this.__init__(w, h, text, type, scene)
}
//const GLOBAL_FONT = new THREE.Font(JSON.parse(document.getElementById('font_3d').innerHTML))
// TODO : Abstract away the logic from the rendering in different classes.
Floating3DText.prototype = {
// O... | general updating 03
| quasar_source_code/quasar_site_django/static/js/custom/models/floating_3d_text.js | general updating 03 | <ide><path>uasar_source_code/quasar_site_django/static/js/custom/models/floating_3d_text.js
<ide> },
<ide>
<ide> create_outline: function() {
<del> this.material = new THREE.MeshLambertMaterial({color: color_arg})
<del> this.current_color = color_arg
<add> this.material = new THREE.MeshLam... | |
Java | apache-2.0 | d6b1f9673c287b8b12c2ac901cd8d8ab12a408c4 | 0 | johngmyers/platform,johngmyers/platform-rack,johngmyers/platform-rack,cberner/airlift,proofpoint/platform,erichwang/airlift,mono-plane/airlift,dain/airlift,haozhun/airlift,gwittel/platform,zhenyuy-fb/airlift,mono-plane/airlift,erichwang/airlift,martint/airlift,martint/airlift,johngmyers/platform,airlift/airlift-rack,pr... | package com.proofpoint.event.client;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import org.codehaus.jackson.JsonGenerator;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.ArrayDeque;
import java.util.Comparator;
import java.util.Deque;
import jav... | event/src/main/java/com/proofpoint/event/client/EventFieldMetadata.java | package com.proofpoint.event.client;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import org.codehaus.jackson.JsonGenerator;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.ArrayDeque;
import java.util.Comparator;
import java.util.Deque;
import jav... | Extract methods for writing field data
| event/src/main/java/com/proofpoint/event/client/EventFieldMetadata.java | Extract methods for writing field data | <ide><path>vent/src/main/java/com/proofpoint/event/client/EventFieldMetadata.java
<ide> jsonGenerator.writeFieldName(name);
<ide> if (iterable) {
<ide> validateFieldValueType(value, Iterable.class);
<del> jsonGenerator.writeStartArray();
<del> for (O... | |
Java | apache-2.0 | abbf7adbedd48c7418fb4ea5ff60019c7038e532 | 0 | contentful/contentful-management.java,contentful/contentful-management.java,contentful/contentful-management.java | package com.contentful.java.cma.model;
import com.contentful.java.cma.model.RateLimits.DefaultParser;
import com.google.gson.GsonBuilder;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import okhttp3.Headers;
import okhttp3.Request;
... | src/main/java/com/contentful/java/cma/model/CMAHttpException.java | package com.contentful.java.cma.model;
import com.contentful.java.cma.model.RateLimits.DefaultParser;
import com.google.gson.GsonBuilder;
import java.io.IOException;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import okhttp3.Headers;
import okhttp3.Request;
import okhttp3.Response;
import ... | display request body in errors
| src/main/java/com/contentful/java/cma/model/CMAHttpException.java | display request body in errors | <ide><path>rc/main/java/com/contentful/java/cma/model/CMAHttpException.java
<ide> import com.google.gson.GsonBuilder;
<ide>
<ide> import java.io.IOException;
<add>import java.nio.charset.Charset;
<ide> import java.util.List;
<ide> import java.util.Locale;
<ide> import java.util.Map;
<ide>
<ide> import okhttp3.Headers... | |
JavaScript | mit | 3352de56c556bcf5c20803277d88c49f34609721 | 0 | fashionsun/jquery-placeholder,SimenB/jquery-placeholder,mathiasbynens/jquery-placeholder,jeremy-hawes/jquery-placeholder,zsh2938/jquery-placeholder,7213/jquery-placeholder,jeremy-hawes/jquery-placeholder,mlms13/jquery-placeholder,vslinko-forks/jquery-placeholder,zsh2938/jquery-placeholder,fashionsun/jquery-placeholder,... | /*!
* HTML5 Placeholder jQuery Plugin v1.7
* @link http://github.com/mathiasbynens/Placeholder-jQuery-Plugin
* @author Mathias Bynens <http://mathiasbynens.be/>
*/
(function(f,z){var e=z in document.createElement('input'),a=z in document.createElement('textarea');if(e&&a){f.fn.placeholder=function(){return this}}el... | jquery.placeholder.min.js | /*!
* HTML5 Placeholder jQuery Plugin v1.7
* @link http://github.com/mathiasbynens/Placeholder-jQuery-Plugin
* @author Mathias Bynens <http://mathiasbynens.be/>
*/
(function(f,z){var e=z in document.createElement('input'),a=z in document.createElement('textarea');if(e&&a){f.fn.placeholder=function(){return this}}el... | Update minified version
| jquery.placeholder.min.js | Update minified version | <ide><path>query.placeholder.min.js
<ide> * @link http://github.com/mathiasbynens/Placeholder-jQuery-Plugin
<ide> * @author Mathias Bynens <http://mathiasbynens.be/>
<ide> */
<del>(function(f,z){var e=z in document.createElement('input'),a=z in document.createElement('textarea');if(e&&a){f.fn.placeholder=function(){... | |
Java | apache-2.0 | 158d05fb86f7203701e91d2046c90a1aa91c556d | 0 | hidroh/materialistic,hidroh/materialistic,hidroh/materialistic,hidroh/materialistic,hidroh/materialistic | /*
* Copyright (c) 2015 Ha Duy Trung
*
* 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 agree... | app/src/main/java/io/github/hidroh/materialistic/data/HackerNewsClient.java | /*
* Copyright (c) 2015 Ha Duy Trung
*
* 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 agree... | Fix legacy widget
| app/src/main/java/io/github/hidroh/materialistic/data/HackerNewsClient.java | Fix legacy widget | <ide><path>pp/src/main/java/io/github/hidroh/materialistic/data/HackerNewsClient.java
<ide> @NonNull
<ide> private Call<int[]> getStoriesCall(@FetchMode String filter, @CacheMode int cacheMode) {
<ide> Call<int[]> call;
<add> if (filter == null) {
<add> // for legacy 'new stories' widg... | |
Java | lgpl-2.1 | ea0e5c3c35b27d963e489653d2192bf15a9e1fd1 | 0 | jimregan/languagetool,languagetool-org/languagetool,jimregan/languagetool,jimregan/languagetool,languagetool-org/languagetool,languagetool-org/languagetool,jimregan/languagetool,languagetool-org/languagetool,languagetool-org/languagetool,jimregan/languagetool | /* LanguageTool, a natural language style checker
* Copyright (C) 2007 Daniel Naber (http://www.danielnaber.de)
*
* 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... | languagetool-language-modules/en/src/main/java/org/languagetool/language/English.java | /* LanguageTool, a natural language style checker
* Copyright (C) 2007 Daniel Naber (http://www.danielnaber.de)
*
* 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... | Increase TO_TOO priority to be higher than HydraLEO and code style improvements (#4635)
* Increase priority of TO_TOO to be higher than AI_HYDRA_LEO
* Coding style improvements | languagetool-language-modules/en/src/main/java/org/languagetool/language/English.java | Increase TO_TOO priority to be higher than HydraLEO and code style improvements (#4635) | <ide><path>anguagetool-language-modules/en/src/main/java/org/languagetool/language/English.java
<ide> @Override
<ide> protected int getPriorityForId(String id) {
<ide> switch (id) {
<del> case "I_E": return 10; // needs higher prio than EN_COMPOUNDS ("i.e learning")
<del> case "Y... | |
Java | apache-2.0 | 6bba261e6630dca41de778a9aaea510ab2af84a7 | 0 | akjava/gwt-three.js-test,akjava/gwt-three.js-test,akjava/gwt-three.js-test | /*
* gwt-wrap three.js
*
* Copyright (c) 2013 akimisaki3@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 restriction, including without limitation the rights to use, cop... | src/com/akjava/gwt/three/client/js/core/BufferGeometry.java | /*
* gwt-wrap three.js
*
* Copyright (c) 2013 akimisaki3@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 restriction, including without limitation the rights to use, cop... | for r72 modify BufferGeometry | src/com/akjava/gwt/three/client/js/core/BufferGeometry.java | for r72 modify BufferGeometry | <ide><path>rc/com/akjava/gwt/three/client/js/core/BufferGeometry.java
<ide> }
<ide>
<ide>
<add> public final native BufferAttribute getIndex()/*-{
<add> return this.index;
<add> }-*/;
<add>
<add> public final native void setIndex(BufferAttribute index)/*-{
<add> this.index = index;
<add> }-*/;
<ide>
<ide> //TODO ... | |
Java | bsd-2-clause | 631da1f482a472480c18fbd30cc62ee1af7b8b98 | 0 | imagejan/imagej-updater | /*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2009 - 2014 Board of Regents of the University of
* Wisconsin-Madison, Broad Institute of MIT and Harvard, and Max Planck
* Institute of Molecular Cell Biology and Genetics.
* %%
* Redistribution and use in sourc... | src/test/java/net/imagej/updater/CommandLineUpdaterTest.java | /*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2009 - 2014 Board of Regents of the University of
* Wisconsin-Madison, Broad Institute of MIT and Harvard, and Max Planck
* Institute of Molecular Cell Biology and Genetics.
* %%
* Redistribution and use in sourc... | Add regression test for the upload of bogus new versions
Signed-off-by: Johannes Schindelin <53fb8db7833fca1e1746dd8592f61048d350f64c@gmx.de>
| src/test/java/net/imagej/updater/CommandLineUpdaterTest.java | Add regression test for the upload of bogus new versions | <ide><path>rc/test/java/net/imagej/updater/CommandLineUpdaterTest.java
<ide> import static net.imagej.updater.UpdaterTestUtils.writeFile;
<ide> import static net.imagej.updater.UpdaterTestUtils.writeGZippedFile;
<ide> import static org.junit.Assert.assertEquals;
<add>import static org.junit.Assert.assertFalse;
<ide> im... | |
Java | apache-2.0 | c69d4e14cd8dab145ad03b950a682274712d982a | 0 | langfr/camunda-bpm-platform,camunda/camunda-bpm-platform,camunda/camunda-bpm-platform,ingorichtsmeier/camunda-bpm-platform,langfr/camunda-bpm-platform,langfr/camunda-bpm-platform,langfr/camunda-bpm-platform,ingorichtsmeier/camunda-bpm-platform,falko/camunda-bpm-platform,camunda/camunda-bpm-platform,xasx/camunda-bpm-pla... | /*
* Copyright © 2013-2019 camunda services GmbH and various authors (info@camunda.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... | engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/impl/DeploymentRestServiceImpl.java | /*
* Copyright © 2013-2019 camunda services GmbH and various authors (info@camunda.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... | chore(rest): adjust error message
Related to CAM-9546
| engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/impl/DeploymentRestServiceImpl.java | chore(rest): adjust error message | <ide><path>ngine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/impl/DeploymentRestServiceImpl.java
<ide> if (fileName != null) {
<ide> deploymentBuilder.addInputStream(part.getFileName(), new ByteArrayInputStream(part.getBinaryContent()));
<ide> } else {
<del> throw new I... | |
JavaScript | mit | 2632e5cfabef2ac1d81e515dc176883d8ddf2791 | 0 | JackAdams/meteor-transactions,JackAdams/meteor-transactions,Data-Meister/meteor-transactions,Data-Meister/meteor-transactions | // *******************************
// Transactions for Meteor + Mongo
// v0.8.0
// by Brent Abrahams
// brent_abrahams@yahoo.com
// MIT Licence 2017
// *******************************
// This package adds one new mongo collection to your app
// It is exposed to the app via `tx.Transactions`, not via `Transactions`
/... | lib/transactions-common.js | // *******************************
// Transactions for Meteor + Mongo
// v0.8.0
// by Brent Abrahams
// brent_abrahams@yahoo.com
// MIT Licence 2017
// *******************************
// This package adds one new mongo collection to your app
// It is exposed to the app via `tx.Transactions`, not via `Transactions`
/... | Completed refactor and fixed logging
| lib/transactions-common.js | Completed refactor and fixed logging | <ide><path>ib/transactions-common.js
<ide> // [BOTH]
<ide>
<ide> this.log = function () { if (this.logging) { _.each(arguments, function (message) { console.log(message); }) } };
<add>
<add>
<add> // To show the connection in the logging from `Transact` instances, set `tx.showConnection = true;`
<add> // U... | |
Java | apache-2.0 | 4da12cf36d885e9d3a5247ece49f32fc173ea0e0 | 0 | TorosyanV/shop,TorosyanV/shop,TorosyanV/shop,TorosyanV/shop | /* This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be usef... | src/main/java/com/shop/TortApplication.java | package com.shop;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TortApplication {
public static void main(String[] args) {
SpringApplication.run(TortApplication.class, args);
}
}
| Update TortApplication.java | src/main/java/com/shop/TortApplication.java | Update TortApplication.java | <ide><path>rc/main/java/com/shop/TortApplication.java
<add>/* This program is free software: you can redistribute it and/or modify
<add> it under the terms of the GNU General Public License as published by
<add> the Free Software Foundation, either version 3 of the License, or
<add> (at your option) any later ... | |
Java | mit | 5e5480e8be5e3fe2e8d4c5e5e287bdc86eeb9dc0 | 0 | marinator86/bbm,marinator86/bbm | package bbm;
import bbm.actions.buildtrigger.BuildTriggerModule;
import bbm.database.orgs.OrgModule;
import bbm.database.repositories.RepositoryModule;
import bbm.handlers.*;
import bbm.actions.ActionModule;
import bbm.database.DatabaseModule;
import bbm.database.sandboxes.SandboxModule;
import bbm.database.branches.B... | src/main/java/bbm/Main.java | package bbm;
import bbm.actions.buildtrigger.BuildTriggerModule;
import bbm.database.orgs.OrgModule;
import bbm.database.repositories.RepositoryModule;
import bbm.handlers.*;
import bbm.actions.ActionModule;
import bbm.database.DatabaseModule;
import bbm.database.sandboxes.SandboxModule;
import bbm.database.branches.B... | removed unused imports
| src/main/java/bbm/Main.java | removed unused imports | <ide><path>rc/main/java/bbm/Main.java
<ide> import bbm.handlers.renderer.RepositoryRenderer;
<ide> import bbm.salesforce.SalesforceModule;
<ide> import org.pac4j.http.client.direct.DirectBasicAuthClient;
<del>import org.pac4j.http.client.indirect.FormClient;
<ide> import org.pac4j.http.credentials.authenticator.test.Si... | |
Java | mit | 4bdbdbbc0b0c9f14cdf2a643abc4b39a9dc6dd8e | 0 | CS2103JAN2017-W14-B2/main,CS2103JAN2017-W14-B2/main | package guitests;
import static org.junit.Assert.assertTrue;
import static seedu.taskboss.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import org.junit.Test;
import seedu.taskboss.commons.core.Messages;
import seedu.taskboss.logic.commands.MarkDoneCommand;
import seedu.taskboss.testutil.TaskBuilder;
import ... | src/test/java/guitests/MarkDoneCommandTest.java | package guitests;
import static org.junit.Assert.assertTrue;
import static seedu.taskboss.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import org.junit.Test;
import seedu.taskboss.commons.core.Messages;
import seedu.taskboss.logic.commands.MarkDoneCommand;
import seedu.taskboss.testutil.TaskBuilder;
import ... | solve travis error
| src/test/java/guitests/MarkDoneCommandTest.java | solve travis error | <ide><path>rc/test/java/guitests/MarkDoneCommandTest.java
<ide>
<ide> @Test
<ide> public void markDone_findThenMarkDone_success() throws Exception {
<del> commandBox.runCommand("find n/progress");
<add> commandBox.runCommand("find n/Submit progress report");
<ide>
<ide> int filteredTaskL... | |
Java | apache-2.0 | cdab79009768ff489751c2ef9a8bd847be910d74 | 0 | twak/siteplan | package org.twak.siteplan.jme;
import java.awt.Color;
import java.nio.FloatBuffer;
import java.util.ArrayList;
import java.util.List;
import javax.vecmath.Matrix4d;
import javax.vecmath.Point2d;
import javax.vecmath.Point3d;
import javax.vecmath.Tuple3d;
//import javax.vecmath.Vector2f;
//import javax.vecmath.Vector3... | src/org/twak/siteplan/jme/Jme3z.java | package org.twak.siteplan.jme;
import java.awt.Color;
import java.nio.FloatBuffer;
import java.util.ArrayList;
import java.util.List;
import javax.vecmath.Matrix4d;
import javax.vecmath.Point2d;
import javax.vecmath.Point3d;
import javax.vecmath.Tuple3d;
//import javax.vecmath.Vector2f;
//import javax.vecmath.Vector3... | use local translation when writing obj | src/org/twak/siteplan/jme/Jme3z.java | use local translation when writing obj | <ide><path>rc/org/twak/siteplan/jme/Jme3z.java
<ide> b = mat.mult( v2 );
<ide> c = mat.mult( v3 );
<ide>
<del> verts[ 0 ][ 0 ] = v1.x;
<del> verts[ 0 ][ 1 ] = v1.y;
<del> verts[ 0 ][ 2 ] = v1.z;
<del> verts[ 1 ][ 0 ] = v2.x;
<del> verts[ 1 ][ 1 ] = v2.y;
<del> verts[ 1 ][ 2 ] = v2.z;
<del> ... | |
Java | apache-2.0 | 71778cf6683100885e5344740386068c3914460b | 0 | google/blockly-android,google/blockly-android,google/blockly-android | /*
* Copyright 2016 Google 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 by applica... | blocklytest/src/androidTest/java/com/google/blockly/android/ui/fieldview/BasicFieldNumberViewTest.java | /*
* Copyright 2016 Google 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 by applica... | Using a regex instead of a string literal, because whatever Java platform Travis uses seems to render the string without the final character.
| blocklytest/src/androidTest/java/com/google/blockly/android/ui/fieldview/BasicFieldNumberViewTest.java | Using a regex instead of a string literal, because whatever Java platform Travis uses seems to render the string without the final character. | <ide><path>locklytest/src/androidTest/java/com/google/blockly/android/ui/fieldview/BasicFieldNumberViewTest.java
<ide> private static final double INITIAL_POS_DECIMAL = Math.PI;
<ide> private static final double INITIAL_SIGNED_DECIMAL = -Math.PI;
<ide>
<del> /** The decimal string equivalent of {@link Math#... | |
Java | epl-1.0 | 8306f833fec0d3ef044991ed73913b010fe3a1f1 | 0 | markcullen/kura_Windows,unverbraucht/kura,markcullen/kura_Windows,darionct/kura,cdealti/kura,gavinying/kura,MMaiero/kura,nicolatimeus/kura,markoer/kura,darionct/kura,darionct/kura,gavinying/kura,amitjoy/kura,gavinying/kura,cdealti/kura,ctron/kura,amitjoy/kura,markoer/kura,ctron/kura,ctron/kura,unverbraucht/kura,cdealti... | /**
* Copyright (c) 2011, 2014 Eurotech and/or its affiliates
*
* 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
*
... | kura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/modem/UsbModemDriver.java | /**
* Copyright (c) 2011, 2014 Eurotech and/or its affiliates
*
* 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
*
... | Moved modem reset functionality to new ModemDriver class
| kura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/modem/UsbModemDriver.java | Moved modem reset functionality to new ModemDriver class | <ide><path>ura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/modem/UsbModemDriver.java
<ide> import org.slf4j.Logger;
<ide> import org.slf4j.LoggerFactory;
<ide>
<del>public class UsbModemDriver {
<add>public class UsbModemDriver extends ModemDriver {
<ide>
<ide> private static final Logger s_... | |
Java | apache-2.0 | 570f42977a54f71c229d07aea2c3871841e48de1 | 0 | nssales/OG-Platform,McLeodMoores/starling,jerome79/OG-Platform,DevStreet/FinanceAnalytics,nssales/OG-Platform,jerome79/OG-Platform,codeaudit/OG-Platform,codeaudit/OG-Platform,McLeodMoores/starling,DevStreet/FinanceAnalytics,jeorme/OG-Platform,McLeodMoores/starling,jeorme/OG-Platform,jerome79/OG-Platform,ChinaQuants/OG-... | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.forex.forward;
import java.util.Map;
import java.util.Set;
import com.google.common.collect.ImmutableSet;
import com.opengamma.Open... | projects/OG-Financial/src/main/java/com/opengamma/financial/analytics/model/forex/forward/FXForwardPresentValueFunction.java | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.forex.forward;
import java.util.Map;
import java.util.Set;
import com.google.common.collect.ImmutableSet;
import com.opengamma.Open... | Passing all properties through when converting FX present value to present value
| projects/OG-Financial/src/main/java/com/opengamma/financial/analytics/model/forex/forward/FXForwardPresentValueFunction.java | Passing all properties through when converting FX present value to present value | <ide><path>rojects/OG-Financial/src/main/java/com/opengamma/financial/analytics/model/forex/forward/FXForwardPresentValueFunction.java
<ide> final ValueProperties properties = ValueProperties.builder()
<ide> .with(ValuePropertyNames.CALCULATION_METHOD, CalculationPropertyNamesAndValues.DISCOUNTING)
<ide> ... | |
JavaScript | mit | 4911ebd8a6b921b47109f6b50e79d5ed2b40cc41 | 0 | kumavis/etherex,kustomzone/etherex,kustomzone/etherex,etherex/etherex,kumavis/etherex,kumavis/etherex,etherex/etherex,kustomzone/etherex,etherex/etherex | var utils = require("../js/utils");
var fixtures = require("../js/fixtures");
var bigRat = require('big-rational');
var EthereumClient = function() {
this.loadAddresses = function(success, failure) {
var addresses = eth.keys.map(function (k) { return eth.secretToAddress(k); });
if (addresses)
... | etherex/frontend/app/clients/EthereumClient.js | var utils = require("../js/utils");
var fixtures = require("../js/fixtures");
var bigRat = require('big-rational');
var EthereumClient = function() {
this.loadAddresses = function(success, failure) {
var addresses = eth.keys.map(function (k) { return eth.secretToAddress(k); });
if (addresses)
... | fix trade pointer in UI
| etherex/frontend/app/clients/EthereumClient.js | fix trade pointer in UI | <ide><path>therex/frontend/app/clients/EthereumClient.js
<ide> for (var i = 0; i < total; i++) {
<ide> var type = eth.toDecimal(eth.stateAt(fixtures.addresses.trades, String(ptr)));
<ide> if (type) {
<del> var mid = _.parseInt(eth.toDecimal(eth.stateAt(fixtures.addresses.t... | |
Java | mit | 80bac3a9c0650aec0273f3c803fa918c3d878b1e | 0 | garnryang/Team8,garnryang/Team8 | package Solver;
import static org.junit.Assert.*;
import org.junit.Test;
import CoreDataStructures.Board;
import CoreDataStructures.Cell;
import CoreDataStructures.Puzzle;
import CoreDataStructures.Puzzle.DifficultyLevel;
public class HintGeneratorTests {
@Test
public void canGetHintWhenACellHasOnlyOneAvailableNu... | test/Solver/HintGeneratorTests.java | package Solver;
import static org.junit.Assert.*;
import org.junit.Test;
import CoreDataStructures.Board;
import CoreDataStructures.Cell;
import CoreDataStructures.Puzzle;
import CoreDataStructures.Puzzle.DifficultyLevel;
public class HintGeneratorTests {
@Test
public void canGetHintWhenACellHasOnlyOneAvailableNu... | Make methods private
| test/Solver/HintGeneratorTests.java | Make methods private | <ide><path>est/Solver/HintGeneratorTests.java
<ide> /**
<ide> * (1, 1) is the open cell with only one available number: 4
<ide> */
<del> public static Puzzle getPuzzleWithCellWithOnlyOneAvailableNumber() {
<add> private static Puzzle getPuzzleWithCellWithOnlyOneAvailableNumber() {
<ide> //Got this one from my i... | |
Java | apache-2.0 | a4af51dffae252a4aa274856fb97815973f57afa | 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-2017 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.build;
import com.intellij.build.events.*;
import com.intellij.execution.filters.Filter;
import com.intellij.execution.filters.HyperlinkInfo;
import com.inte... | platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java | // Copyright 2000-2017 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.build;
import com.intellij.build.events.*;
import com.intellij.execution.filters.Filter;
import com.intellij.execution.filters.HyperlinkInfo;
import com.inte... | [BTW] expand 2 levels of output (workaround missing autoexpand in async tree)
| platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java | [BTW] expand 2 levels of output (workaround missing autoexpand in async tree) | <ide><path>latform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java
<ide> final Update update = new Update(node) {
<ide> @Override
<ide> public void run() {
<del> if (node.isAutoExpandNode() && node.getChildCount() > 0) {
<del> myTreeModel.expand(node, myTree, p -> {});
<del> ... | |
Java | mit | 5fc3807716186ac0476d3b8e334828bb569159a0 | 0 | saisrimat96/cs56-m16-lab03,saisrimat96/cs56-m16-lab03 | import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import java.net.URI;
import java.net.URISyntaxException;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import static spark.Spark.get;
import com.heroku.sdk.jdbc.... | src/main/java/Main.java | import java.sql.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Map;
import java.net.URI;
import java.net.URISyntaxException;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import static spark.Spark.get;
import com.heroku.sdk.jdbc.... | database
| src/main/java/Main.java | database | <ide><path>rc/main/java/Main.java
<ide> }, new FreeMarkerEngine());
<ide>
<ide> get("/db", (req, res) -> {
<del> Connection connection = null;
<add> Connection connection = null;
<ide> Map<String, Object> attributes = new HashMap<>();
<ide> try {
<ide> connection = DatabaseUr... | |
Java | agpl-3.0 | 036c41bcf0dda16b96317c33033f76493296054c | 0 | ozwillo/ozwillo-kernel,ozwillo/ozwillo-kernel,ozwillo/ozwillo-kernel | package oasis.web.userinfo;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.WebAp... | oasis-webapp/src/main/java/oasis/web/userinfo/UserInfoEndpoint.java | package oasis.web.userinfo;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.WebAp... | Add Issuer and Audience to the response of the UserInfoEndpoint if signed.
Change-Id: Ibf0f2027aa44a5785f0ef6b2884a7ae42ecdfedb
| oasis-webapp/src/main/java/oasis/web/userinfo/UserInfoEndpoint.java | Add Issuer and Audience to the response of the UserInfoEndpoint if signed. | <ide><path>asis-webapp/src/main/java/oasis/web/userinfo/UserInfoEndpoint.java
<ide> import javax.ws.rs.core.MediaType;
<ide> import javax.ws.rs.core.Response;
<ide> import javax.ws.rs.core.SecurityContext;
<add>import javax.ws.rs.core.UriInfo;
<ide>
<ide> import org.joda.time.format.DateTimeFormatter;
<ide> import org... | |
Java | apache-2.0 | 2a1b8d1935bba52d3beb861baecd533a1770b5c6 | 0 | jsonking/mongo-java-driver,gianpaj/mongo-java-driver,jsonking/mongo-java-driver,jyemin/mongo-java-driver,rozza/mongo-java-driver,PSCGroup/mongo-java-driver,rozza/mongo-java-driver,jyemin/mongo-java-driver,kay-kim/mongo-java-driver | /*
* Copyright (c) 2008 - 2013 10gen, Inc. <http://10gen.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 ... | driver/src/main/org/mongodb/connection/ClusterDescription.java | /*
* Copyright (c) 2008 - 2013 10gen, Inc. <http://10gen.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 ... | Refactored ClusterDescription in preparation for moving acceptable latency test out.
| driver/src/main/org/mongodb/connection/ClusterDescription.java | Refactored ClusterDescription in preparation for moving acceptable latency test out. | <ide><path>river/src/main/org/mongodb/connection/ClusterDescription.java
<ide> @Immutable
<ide> public class ClusterDescription {
<ide> private final List<ServerDescription> all;
<del> private final List<ServerDescription> goodPrimaries;
<del> private final List<ServerDescription> goodSecondaries;
<del> pr... | |
Java | unlicense | f3c554c5693e7a0c99348ec734d5492fa5e1b010 | 0 | sebastianv89/hwsec | package terminal;
public class Card {
int id;
int customerID;
String customerName;
short kilometers;
long expiration;
String expString;
int revocation;
String cardPublicKey;
byte[] cardModulus;
byte[] sessionKey;
public Card(){
}
public Card(int ID, int custID, String custN... | Backend/src/terminal/Card.java | package terminal;
public class Card {
int id;
int customerID;
String customerName;
short kilometers;
long expiration;
String expString;
int revocation;
String cardPublicKey;
byte[] cardModulus;
public Card(){
}
public Card(int ID, int custID, String custName, short km, long e... | add sessionKey | Backend/src/terminal/Card.java | add sessionKey | <ide><path>ackend/src/terminal/Card.java
<ide> String cardPublicKey;
<ide>
<ide> byte[] cardModulus;
<add> byte[] sessionKey;
<ide>
<ide>
<ide> public Card(){
<ide> this.cardModulus = cardByteModulus;
<ide> }
<ide>
<add> public void setSessionKey(byte[] sessionkey){
<add> this.sessionKey = sessionkey;
<a... | |
Java | bsd-3-clause | 95c34f1dff7fa0ab4aacf30f171e75d389bae33e | 0 | CBIIT/caaers,NCIP/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers,NCIP/caaers | package gov.nih.nci.cabig.caaers.web.selenium;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Properties;
import javax.naming.NamingException;
import org.apache.log4j.Logger;
import org.apache.tools.ant.AntClassLoader;
import org.springframework.context.A... | projects/selenium/src/test/java/gov/nih/nci/cabig/caaers/web/selenium/CaaersSeleniumTestCase.java | package gov.nih.nci.cabig.caaers.web.selenium;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Properties;
import javax.naming.NamingException;
import org.apache.log4j.Logger;
import org.apache.tools.ant.AntClassLoader;
import org.springframework.context.A... | latest selenium updates
SVN-Revision: 8099
| projects/selenium/src/test/java/gov/nih/nci/cabig/caaers/web/selenium/CaaersSeleniumTestCase.java | latest selenium updates | <ide><path>rojects/selenium/src/test/java/gov/nih/nci/cabig/caaers/web/selenium/CaaersSeleniumTestCase.java
<ide> selenium.waitForPageToLoad("30000");
<ide> int maxAttempts = 20;
<ide> int attempt = 0;
<add> System.out.println("Checking for caaers...");
<ide> for (attempt = 0; attempt < maxAttempts; attempt++... | |
Java | apache-2.0 | 008c248ca5d6e8e682b02fc944483881ee597fd8 | 0 | HubSpot/Baragon,HubSpot/Baragon,HubSpot/Baragon | BaragonAgentService/src/main/java/com/hubspot/baragon/agent/handlebars/ToLowercaseHelper.java | package com.hubspot.baragon.agent.handlebars;
import java.net.UnknownHostException;
import com.github.jknack.handlebars.Helper;
import com.github.jknack.handlebars.Options;
import com.google.common.base.Strings;
public class ToLowercaseHelper implements Helper<String> {
public static final String NAME = "toLowerc... | remove tolower helper
| BaragonAgentService/src/main/java/com/hubspot/baragon/agent/handlebars/ToLowercaseHelper.java | remove tolower helper | <ide><path>aragonAgentService/src/main/java/com/hubspot/baragon/agent/handlebars/ToLowercaseHelper.java
<del>package com.hubspot.baragon.agent.handlebars;
<del>
<del>import java.net.UnknownHostException;
<del>
<del>import com.github.jknack.handlebars.Helper;
<del>import com.github.jknack.handlebars.Options;
<del>import... | ||
Java | apache-2.0 | f3e4f0ae503fb46318bc1661c896f3d5867c4957 | 0 | google/copybara,google/copybara,google/copybara | /*
* Copyright (C) 2016 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 agreed to ... | java/com/google/copybara/git/GitDestination.java | /*
* Copyright (C) 2016 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 agreed to ... | Add profiling for GitDestination add/exclude files
In some cases we can run a lot of git commands for excluded files
when there are thousands of files (because we need batching).
This should give more visibility to those times in the profiler.
BUG=124371270
PiperOrigin-RevId: 234192373
Change-Id: I28bc18c8f9c0a133a43... | java/com/google/copybara/git/GitDestination.java | Add profiling for GitDestination add/exclude files | <ide><path>ava/com/google/copybara/git/GitDestination.java
<ide> public ImmutableList<DestinationEffect> write(TransformResult transformResult,
<ide> Glob destinationFiles, Console console)
<ide> throws ValidationException, RepoException, IOException {
<del> logger.atInfo().log("Exporting from ... | |
JavaScript | mit | 20015de4b639c32fde162a1d2fc7d31f2752250d | 0 | Tangurin/SwiperHandler | (function () {
'use strict';
var Swiper = require('swiper');
/*===========================
SwiperHandler
===========================*/
var SwiperHandler = {
window: null,
swipers: {},
initialized: false,
initialize: function() {
if (SwiperHandler.init... | SwiperHandler.js | (function () {
'use strict';
var Swiper = require('swiper');
/*===========================
SwiperHandler
===========================*/
var SwiperHandler = {
window: null,
swipers: {},
initialized: false,
initialize: function() {
if (SwiperHandler.init... | Remove console.log | SwiperHandler.js | Remove console.log | <ide><path>wiperHandler.js
<ide> newSettings.navigation.prevButton = swiper.selector + ' ' + (newSettings.navigation.prevEl || '.swiper-button-prev');
<ide> newSettings.navigation.nextButton = swiper.selector + ' ' + (newSettings.navigation.nextEl || '.swiper-button-next');
<ide>
<del> ... | |
Java | apache-2.0 | 906a1f561a404184404ceb9a9e4a8ff18798e715 | 0 | spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework | /*
* Copyright 2002-2021 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-context/src/test/java/org/springframework/scheduling/support/CronTriggerTests.java | /*
* Copyright 2002-2019 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... | Polish CronTriggerTests and assess daylight savings time issue
This test polishes CronTriggerTests and modifies the
daylightSavingMissingHour() test to help analyze why the test fails
for CET if the minute value for the last completion time falls between
0 and 9 minutes.
Associated broken build:
https://ge.spring.io... | spring-context/src/test/java/org/springframework/scheduling/support/CronTriggerTests.java | Polish CronTriggerTests and assess daylight savings time issue | <ide><path>pring-context/src/test/java/org/springframework/scheduling/support/CronTriggerTests.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * ... | |
Java | apache-2.0 | ffc45e50fb681da39786218ad4dd780a0e4fc30e | 0 | nroduit/XChart,timmolter/XChart | /**
* Copyright 2015-2016 Knowm Inc. (http://knowm.org) and contributors.
* Copyright 2011-2015 Xeiam LLC (http://xeiam.com) and contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | xchart/src/main/java/org/knowm/xchart/XChartPanel.java | /**
* Copyright 2015-2016 Knowm Inc. (http://knowm.org) and contributors.
* Copyright 2011-2015 Xeiam LLC (http://xeiam.com) and contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | Add type parameter to XChartPanel
| xchart/src/main/java/org/knowm/xchart/XChartPanel.java | Add type parameter to XChartPanel | <ide><path>chart/src/main/java/org/knowm/xchart/XChartPanel.java
<ide> *
<ide> * @author timmolter
<ide> */
<del>public class XChartPanel extends JPanel {
<del>
<del> private final Chart chart;
<add>public class XChartPanel<T extends Chart> extends JPanel {
<add>
<add> private final T chart;
<ide> private final ... | |
Java | apache-2.0 | 1eb17b739c1023655b6eee303f006a76f8dac4ae | 0 | beijing-penguin/myjdbc | package org.dc.jdbc.core.utils;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Types... | src/org/dc/jdbc/core/utils/JDBCUtils.java | package org.dc.jdbc.core.utils;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Types... | 优化:字符串转javabean方法 | src/org/dc/jdbc/core/utils/JDBCUtils.java | 优化:字符串转javabean方法 | <ide><path>rc/org/dc/jdbc/core/utils/JDBCUtils.java
<ide> if (markIndex != -1) {
<ide> String startStr = str.substring(0, markIndex);
<ide> String endStr = str.substring(markIndex, str.length());
<del> String newStr = startStr + endStr.substring(1, 2).toUpperCase() + endStr.substring(2);
<add> String newStr... | |
Java | apache-2.0 | 2d95dfa60c88f91facd47e04ea291f5005155d95 | 0 | allotria/intellij-community,da1z/intellij-community,xfournet/intellij-community,xfournet/intellij-community,ThiagoGarciaAlves/intellij-community,youdonghai/intellij-community,mglukhikh/intellij-community,signed/intellij-community,youdonghai/intellij-community,allotria/intellij-community,xfournet/intellij-community,semo... | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/platform-impl/src/com/intellij/ide/ui/search/SearchUtil.java | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | assign paths for jbTabs titles (IDEA-163178)
| platform/platform-impl/src/com/intellij/ide/ui/search/SearchUtil.java | assign paths for jbTabs titles (IDEA-163178) | <ide><path>latform/platform-impl/src/com/intellij/ide/ui/search/SearchUtil.java
<ide> import com.intellij.ui.SimpleColoredComponent;
<ide> import com.intellij.ui.SimpleTextAttributes;
<ide> import com.intellij.ui.TabbedPaneWrapper;
<add>import com.intellij.ui.tabs.JBTabs;
<add>import com.intellij.ui.tabs.TabInfo;
<ide>... | |
Java | apache-2.0 | 8d125d9c4101a04b779326d537cbd45861f2293e | 0 | andrhamm/Singularity,hs-jenkins-bot/Singularity,andrhamm/Singularity,hs-jenkins-bot/Singularity,grepsr/Singularity,grepsr/Singularity,hs-jenkins-bot/Singularity,grepsr/Singularity,HubSpot/Singularity,andrhamm/Singularity,HubSpot/Singularity,HubSpot/Singularity,hs-jenkins-bot/Singularity,andrhamm/Singularity,grepsr/Sing... | package com.hubspot.singularity;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nonnull;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.comm... | SingularityBase/src/main/java/com/hubspot/singularity/SingularityPendingTask.java | package com.hubspot.singularity;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nonnull;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
import ... | save list of hosts under each slave match state
| SingularityBase/src/main/java/com/hubspot/singularity/SingularityPendingTask.java | save list of hosts under each slave match state | <ide><path>ingularityBase/src/main/java/com/hubspot/singularity/SingularityPendingTask.java
<ide> package com.hubspot.singularity;
<ide>
<add>import java.util.Arrays;
<ide> import java.util.HashMap;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> private final List<String> cmdLineArgsList;
<ide> pri... | |
Java | mit | 80054051846ab59365defd79d63c4cfc1533f30d | 0 | robert-schmidtke/flink-xtreemfs-datalocality-test | package org.xtreemfs.flink;
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.common.typeinfo.BasicTypeInfo;
import org.apache.flink.api.java.DataSet;
import ... | datalocality/src/main/java/org/xtreemfs/flink/DataLocalityTest.java | package org.xtreemfs.flink;
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.api.java.ExecutionEnvironment;
import org.... | back to custom input format, summing the counts
| datalocality/src/main/java/org/xtreemfs/flink/DataLocalityTest.java | back to custom input format, summing the counts | <ide><path>atalocality/src/main/java/org/xtreemfs/flink/DataLocalityTest.java
<ide> import java.io.FileOutputStream;
<ide>
<ide> import org.apache.flink.api.common.functions.MapFunction;
<add>import org.apache.flink.api.common.typeinfo.BasicTypeInfo;
<ide> import org.apache.flink.api.java.DataSet;
<ide> import org.apa... | |
Java | epl-1.0 | 61b0e1d35c8de9ded79be6867ed4f63f380c4639 | 0 | DavidGutknecht/elexis-3-base,DavidGutknecht/elexis-3-base,DavidGutknecht/elexis-3-base,DavidGutknecht/elexis-3-base,DavidGutknecht/elexis-3-base | /*******************************************************************************
* Copyright (c) 2007-2010, G. Weirich and Elexis
* 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 a... | bundles/ch.elexis.laborimport.hl7.allg/src/ch/elexis/laborimport/hl7/universal/Importer.java | /*******************************************************************************
* Copyright (c) 2007-2010, G. Weirich and Elexis
* 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 a... | [22008] sort files of hl7 import directory for correct order on import | bundles/ch.elexis.laborimport.hl7.allg/src/ch/elexis/laborimport/hl7/universal/Importer.java | [22008] sort files of hl7 import directory for correct order on import | <ide><path>undles/ch.elexis.laborimport.hl7.allg/src/ch/elexis/laborimport/hl7/universal/Importer.java
<ide>
<ide> import java.io.File;
<ide> import java.io.FilenameFilter;
<add>import java.util.Arrays;
<ide>
<ide> import org.eclipse.jface.action.Action;
<ide> import org.eclipse.jface.action.IAction;
<ide> int err... | |
Java | agpl-3.0 | dbdefae44a298c670fb3303bf0ab6cd1298ebef8 | 0 | KinshipSoftware/KinOathKinshipArchiver,KinshipSoftware/KinOathKinshipArchiver,PeterWithers/temp-to-delete1,PeterWithers/temp-to-delete1 | package nl.mpi.kinnate.kindocument;
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
import java.net.URI;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.parsers.DocumentBuilder;
... | desktop/src/main/java/nl/mpi/kinnate/kindocument/EntityDocument.java | package nl.mpi.kinnate.kindocument;
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
import java.net.URI;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.parsers.DocumentBuilder;
... | Refactored to match recent changes to Arbil so that singletons are not static but are injected via the constructor.
Added testes for the import translator and import character escaping process.
Update the CSV import to support more formats.
| desktop/src/main/java/nl/mpi/kinnate/kindocument/EntityDocument.java | Refactored to match recent changes to Arbil so that singletons are not static but are injected via the constructor. Added testes for the import translator and import character escaping process. Update the CSV import to support more formats. | <ide><path>esktop/src/main/java/nl/mpi/kinnate/kindocument/EntityDocument.java
<ide> }
<ide> currentNode = currentNode.getNextSibling();
<ide> }
<del> Node valueElement = metadataDom.createElementNS("http://www.clarin.eu/cmd/", /*"cmd:" +*/ translationElement.fieldName); // todo/ ... | |
Java | apache-2.0 | b1841cf901b615ceec7437a37c193f89d2a4e4f8 | 0 | mcculls/bnd,psoreide/bnd,joansmith/bnd,lostiniceland/bnd,xtracoder/bnd,GEBIT/bnd,psoreide/bnd,joansmith/bnd,lostiniceland/bnd,magnet/bnd,GEBIT/bnd,magnet/bnd,mcculls/bnd,psoreide/bnd,mcculls/bnd,magnet/bnd,xtracoder/bnd,lostiniceland/bnd | package aQute.bnd.jpm;
import static aQute.lib.io.IO.*;
import java.awt.*;
import java.awt.datatransfer.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.List;
import java.util.concurrent.*;
import java.util.regex.*;
import aQute.bnd.build.*;
import aQute.bnd.build.Container;
import aQute.... | biz.aQute.repository/src/aQute/bnd/jpm/Repository.java | package aQute.bnd.jpm;
import static aQute.lib.io.IO.*;
import java.awt.*;
import java.awt.datatransfer.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.List;
import java.util.concurrent.*;
import java.util.regex.*;
import aQute.bnd.build.*;
import aQute.bnd.build.Container;
import aQute.... | Remove trailing whitespace from JPM tooltips
When the tooltips for JPM resources are rendered in Eclipse (at least on
Windows), the trailing newlines cause them to be 1 line taller than they
should be. So trim them before returning them.
Also changed one place where string concatenation was used when a format
string... | biz.aQute.repository/src/aQute/bnd/jpm/Repository.java | Remove trailing whitespace from JPM tooltips | <ide><path>iz.aQute.repository/src/aQute/bnd/jpm/Repository.java
<ide> f.format("Number of revs %s\n", index.getRevisionRefs().size());
<ide> f.format("Dirty %s\n", index.isDirty());
<ide>
<del> return f.toString();
<add> return f.toString().trim();
<ide> }
<ide> finally {
<ide> f.close();
<i... | |
Java | unlicense | fatal: invalid reference: FETCH_HEAD^
| 1d71853d79207bb8fd18add2428ad3dcc6b8d648 | 128 | cwiggins/Scheduler | /* Scheduler.java
* Operating Systems
* Fall 2013
* Curtiss J Wiggins
*/
import java.util.LinkedList;
import java.util.Scanner;
import java.text.DecimalFormat;
public class Scheduler {
public static void arriving(LinkedList<Process> rqueue,
LinkedList<Process> nrqueue, double CPUTime, double Atime){
int i... | Scheduler.java | Clock simulation and simulation of first process executing working
| Scheduler.java | Clock simulation and simulation of first process executing working | <ide><path>cheduler.java
<add>/* Scheduler.java
<add> * Operating Systems
<add> * Fall 2013
<add> * Curtiss J Wiggins
<add> */
<add>
<add>import java.util.LinkedList;
<add>import java.util.Scanner;
<add>import java.text.DecimalFormat;
<add>
<add>
<add>public class Scheduler {
<add>
<add> public static void arriving(Lin... | |
JavaScript | apache-2.0 | 766af7ed5199373ca216a573f81c32395b25cab0 | 0 | serverboards/serverboards,serverboards/serverboards,serverboards/serverboards,serverboards/serverboards,serverboards/serverboards | import React from 'react'
import rpc from 'app/rpc'
import {MarkdownPreview} from 'react-marked-markdown'
import {to_list} from 'app/utils'
import Flash from 'app/flash'
const RichDescription=React.createClass({
process_description(vars){
vars = vars || []
let text = this.props.value
vars.map( (kv) => {
... | frontend/app/js/components/genericform.js | import React from 'react'
import rpc from 'app/rpc'
import {MarkdownPreview} from 'react-marked-markdown'
import {to_list} from 'app/utils'
import Flash from 'app/flash'
const RichDescription=React.createClass({
process_description(vars){
vars = vars || []
let text = this.props.value
vars.map( (kv) => {
... | Show description in all GenericForms
| frontend/app/js/components/genericform.js | Show description in all GenericForms | <ide><path>rontend/app/js/components/genericform.js
<ide> case 'text':
<ide> return (
<ide> <div className="field">
<del> <label>{props.label}</label>
<del> <RichDescription className="ui meta" value={props.description} vars={props.vars}/>
<del> <input type="text"
<del... | |
Java | bsd-3-clause | 3534ea51d875aabbe0fb15e0dda56bb3993d1b64 | 0 | orc-lang/orc,orc-lang/orc,orc-lang/orc,orc-lang/orc,orc-lang/orc | //
// OrcLabelProvider.java -- Java class OrcLabelProvider
// Project OrcEclipse
//
// $Id$
//
// Created by jthywiss on Aug 5, 2009.
//
// Copyright (c) 2010 The University of Texas at Austin. All rights reserved.
//
// Use and redistribution of this file is governed by the license terms in
// the LICENSE file found i... | OrcEclipse/src/edu/utexas/cs/orc/orceclipse/edit/OrcLabelProvider.java | //
// OrcLabelProvider.java -- Java class OrcLabelProvider
// Project OrcEclipse
//
// $Id$
//
// Created by jthywiss on Aug 5, 2009.
//
// Copyright (c) 2010 The University of Texas at Austin. All rights reserved.
//
// Use and redistribution of this file is governed by the license terms in
// the LICENSE file found i... | LabelProvider uses OrcSyntaxConvertable trait
| OrcEclipse/src/edu/utexas/cs/orc/orceclipse/edit/OrcLabelProvider.java | LabelProvider uses OrcSyntaxConvertable trait | <ide><path>rcEclipse/src/edu/utexas/cs/orc/orceclipse/edit/OrcLabelProvider.java
<ide> import java.util.Set;
<ide>
<ide> import orc.ast.AST;
<add>import orc.ast.OrcSyntaxConvertable;
<ide> import orc.ast.ext.ClassImport;
<ide> import orc.ast.ext.Def;
<ide> import orc.ast.ext.DefCapsule;
<ide> for (final scala.collec... | |
Java | apache-2.0 | b5957481580f68cc46d757747fdfd3db36df7814 | 0 | ador/ProteinPatternSearch | package protka;
import java.util.ArrayList;
import java.util.List;
public class Protein {
private List<String> lines = new ArrayList<String>();
private String sequence = "";
private String acNum;
private List<SequencePart> tmDomains;
private List<SequencePart> inOutDomains;
private List<SequencePart> fu... | java/src/main/java/protka/Protein.java | package protka;
import java.util.ArrayList;
import java.util.List;
public class Protein {
private List<String> lines = new ArrayList<String>();
private String sequence = "";
private String acNum;
private List<SequencePart> tmDomains;
private List<SequencePart> inOutDomains;
private List<SequencePart> fu... | Protein refactor
| java/src/main/java/protka/Protein.java | Protein refactor | <ide><path>ava/src/main/java/protka/Protein.java
<ide> return sequence;
<ide> }
<ide>
<del> public List<SequencePart> getTmNumbers() {
<add> public List<SequencePart> getTmDomains() {
<ide> return tmDomains;
<ide> }
<ide>
<ide> }
<ide>
<ide> public SequencePart getSeqForTmPart(int i) {
<del> g... | |
Java | mit | a82c399a56d0428d7d4a934bee0a49978cb9b425 | 0 | trendrr/java-oss-lib,MarkG/java-oss-lib | /**
*
*/
package com.trendrr.oss.executionreport;
import java.util.Date;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.trendrr.oss.StringHelper;
/**
* @author Dustin Norlander
* @created Oct 11, 2012
*
*/
public class ExecutionSubReport implements Execution... | src/main/com/trendrr/oss/executionreport/ExecutionSubReport.java | /**
*
*/
package com.trendrr.oss.executionreport;
import java.util.Date;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.trendrr.oss.StringHelper;
/**
* @author Dustin Norlander
* @created Oct 11, 2012
*
*/
public class ExecutionSubReport implements Execution... | correctly handle empty key
| src/main/com/trendrr/oss/executionreport/ExecutionSubReport.java | correctly handle empty key | <ide><path>rc/main/com/trendrr/oss/executionreport/ExecutionSubReport.java
<ide> }
<ide>
<ide> protected String getKey(String key) {
<add> if (key == null || key.isEmpty()) {
<add> return this.namespace;
<add> }
<ide> return this.namespace + "." + key;
<ide> }
<ide> /* (non-Javadoc) | |
Java | bsd-2-clause | 759d57f33b939eaa3ee0be316de30cef968a3d2d | 0 | scifio/scifio | /*
* #%L
* SCIFIO library for reading and converting scientific file formats.
* %%
* Copyright (C) 2011 - 2015 Board of Regents of the University of
* Wisconsin-Madison
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... | src/main/java/io/scif/formats/DICOMFormat.java | /*
* #%L
* SCIFIO library for reading and converting scientific file formats.
* %%
* Copyright (C) 2011 - 2015 Board of Regents of the University of
* Wisconsin-Madison
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... | DICOMFormat: reorder switch statement
To be alphabetical
| src/main/java/io/scif/formats/DICOMFormat.java | DICOMFormat: reorder switch statement | <ide><path>rc/main/java/io/scif/formats/DICOMFormat.java
<ide> switch (vr) {
<ide> case DICOMUtils.AE:
<ide> case DICOMUtils.AS:
<del> case DICOMUtils.CS:
<del> case DICOMUtils.DA:
<del> case DICOMUtils.DS:
<del> case DICOMUtils.DT:
<del> case DICOMUtils.IS:
<del> case DICOMUtils.LO:
<del> ... | |
Java | apache-2.0 | 5d82ac220c7e8c2c19e7ab1be3f3ed61a0aa22b0 | 0 | ruilyzhu/android-utils,Heart2009/android-utils,Ryan800/android-utils,jingle1267/android-utils,VikingDen/android-utils,huhu2008/android-utils,SoftwareME/android-utils,chaoallsome/android-utils,tsdl2013/android-utils,mumer92/android-utils-1 | /**
* Copyright 2014 Zhenguo Jin
*
* 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 i... | src/com/worthed/utils/ViewUtils.java | /**
* Copyright 2014 Zhenguo Jin
*
* 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 i... | [NewFeature] Add get text height method.
| src/com/worthed/utils/ViewUtils.java | [NewFeature] Add get text height method. | <ide><path>rc/com/worthed/utils/ViewUtils.java
<ide> import java.util.ArrayList;
<ide> import java.util.List;
<ide>
<add>import android.graphics.Paint;
<add>import android.graphics.Paint.FontMetrics;
<ide> import android.view.View;
<ide> import android.view.View.OnClickListener;
<ide> import android.view.ViewGroup;
<i... | |
JavaScript | mit | 9ca23a1f7833d1e4c58bd1e59edf08f6b6979408 | 0 | mangesh/f-album,mangesh/f-album,mangesh/f-album | $(function () {
$('#download-mode-group').slideUp();
$('.upload-alert').hide();
if($('#mode-group input[name="mode"]').length !== 0){
$('#mode-group input[name="mode"]').on('change', function (e) {
var _this = $(this);
if (_this.val() == 'download') {
$('... | public/js/application.js | $(function () {
$('#download-mode-group').slideUp();
$('.upload-alert').hide();
if($('#mode-group input[name="mode"]').length !== 0){
$('#mode-group input[name="mode"]').on('change', function (e) {
var _this = $(this);
if (_this.val() == 'download') {
$('... | Removed the debugging lines
| public/js/application.js | Removed the debugging lines | <ide><path>ublic/js/application.js
<ide>
<ide> $(document).on("shown.bs.modal", ".modal", function(event) {
<ide> if ($(".carousel").length) {
<del> console.log('hi');
<ide> $(".carousel").data("bs.carousel").fit();
<ide> }
<ide> }) | |
Java | apache-2.0 | 82bd0baab2dcc4659c68919117b24dd9a8e17ebf | 0 | FingolfinTEK/camel,pkletsko/camel,driseley/camel,oalles/camel,mcollovati/camel,gnodet/camel,jlpedrosa/camel,w4tson/camel,salikjan/camel,jmandawg/camel,dmvolod/camel,acartapanis/camel,gautric/camel,tadayosi/camel,pmoerenhout/camel,nikhilvibhav/camel,jmandawg/camel,scranton/camel,drsquidop/camel,YoshikiHigo/camel,pmoeren... | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | components/camel-kafka/src/test/java/org/apache/camel/component/kafka/KafkaProducerTest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | CAMEL-9957 Fixed the casting error in KafkaProducerTest
| components/camel-kafka/src/test/java/org/apache/camel/component/kafka/KafkaProducerTest.java | CAMEL-9957 Fixed the casting error in KafkaProducerTest | <ide><path>omponents/camel-kafka/src/test/java/org/apache/camel/component/kafka/KafkaProducerTest.java
<ide> Future future = Mockito.mock(Future.class);
<ide> Mockito.when(future.get()).thenReturn(rm);
<ide> org.apache.kafka.clients.producer.KafkaProducer kp = Mockito.mock(org.apache.kafka.clien... | |
Java | apache-2.0 | cf99caac3ac652db879ab1ec8670873e5c79c0c2 | 0 | andrey-kuznetsov/ignite,afinka77/ignite,avinogradovgg/ignite,amirakhmedov/ignite,ilantukh/ignite,chandresh-pancholi/ignite,DoudTechData/ignite,akuznetsov-gridgain/ignite,vsuslov/incubator-ignite,nizhikov/ignite,alexzaitzev/ignite,vsisko/incubator-ignite,gargvish/ignite,murador/ignite,vsisko/incubator-ignite,SharplEr/ig... | /* @java.file.header */
/* _________ _____ __________________ _____
* __ ____/___________(_)______ /__ ____/______ ____(_)_______
* _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
* / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
* \____/ /_/ /_/ \_,__/... | modules/indexing/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheQueryMultiThreadedSelfTest.java | /* @java.file.header */
/* _________ _____ __________________ _____
* __ ____/___________(_)______ /__ ____/______ ____(_)_______
* _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
* / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
* \____/ /_/ /_/ \_,__/... | GG-9141 - Enabled passing tests.
| modules/indexing/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheQueryMultiThreadedSelfTest.java | GG-9141 - Enabled passing tests. | <ide><path>odules/indexing/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheQueryMultiThreadedSelfTest.java
<ide> import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
<ide> import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.*;
<ide> import org.apache.ignite.spi.swapspace.file.*;
<del>import org.gr... | |
JavaScript | agpl-3.0 | 8bc8259d4baa10b6aa44669496cc8a99a97bb7d4 | 0 | htem/CATMAID,fzadow/CATMAID,fzadow/CATMAID,htem/CATMAID,htem/CATMAID,htem/CATMAID,fzadow/CATMAID,fzadow/CATMAID | /* -*- mode: espresso; espresso-indent-level: 2; indent-tabs-mode: nil -*- */
/* vim: set softtabstop=2 shiftwidth=2 tabstop=2 expandtab: */
// TODO check all other TODOS
/** Namespace where Node instances are created and edited. */
var SkeletonElements = new function()
{
var active_skeleton_color = "rgb(255,255,0)... | django/applications/catmaid/static/widgets/overlay_node.js | /* -*- mode: espresso; espresso-indent-level: 2; indent-tabs-mode: nil -*- */
/* vim: set softtabstop=2 shiftwidth=2 tabstop=2 expandtab: */
// TODO check all other TODOS
/** Namespace where Node instances are created and edited. */
var SkeletonElements = new function()
{
var active_skeleton_color = "rgb(255,255,0)... | SVGOverlay: more fixes for connector arrows.
The main issue is with the connectorDrawEdges having two functions:
(1) creating the arrows and (2) updating them when moving a connector.
| django/applications/catmaid/static/widgets/overlay_node.js | SVGOverlay: more fixes for connector arrows. | <ide><path>jango/applications/catmaid/static/widgets/overlay_node.js
<ide> this.r = 8;
<ide> this.c = null; // The Raphael circle for drawing
<ide> this.mc = null; // The Raphael circle for mouse actions (it's a bit larger)
<del> this.preLines = {}; // The Raphael edges to the presynaptic nodes
<del> ... | |
JavaScript | mit | 8e36012b1b19d12c6265bdec033063d8d25a4812 | 0 | tracer99/canjs,gsmeets/canjs,gsmeets/canjs,bitovi/canjs,rasjani/canjs,tracer99/canjs,rjgotten/canjs,rasjani/canjs,tracer99/canjs,rjgotten/canjs,rasjani/canjs,bitovi/canjs,rjgotten/canjs,rjgotten/canjs,bitovi/canjs,gsmeets/canjs,bitovi/canjs,rasjani/canjs | steal('can/util/can.js', function (can) {
// fragment.js
// ---------
// _DOM Fragment support._
var fragmentRE = /^\s*<(\w+)[^>]*>/,
toString = {}.toString,
fragment = function (html, name, doc) {
if (name === undefined) {
name = fragmentRE.test(html) && RegExp.$1;
}
if (html && toString.call(html... | util/fragment.js | steal('can/util/can.js', function (can) {
// fragment.js
// ---------
// _DOM Fragment support._
var fragmentRE = /^\s*<(\w+)[^>]*>/,
toString = {}.toString,
fragment = function (html, name, doc) {
if (name === undefined) {
name = fragmentRE.test(html) && RegExp.$1;
}
if (html && toString.call(html... | makes compat work with EJS
| util/fragment.js | makes compat work with EJS | <ide><path>til/fragment.js
<ide> if(html && html.nodeType === 11) {
<ide> return html;
<ide> }
<del> var parts = fragment(html, undefined, doc || document),
<add> if(!doc) {
<add> doc = document;
<add> } else if(doc.length) {
<add> doc = doc[0];
<add> }
<add>
<add> var parts = fragment(html, undefined... | |
JavaScript | mit | 1b7c1e672aa5b1240fc6eaed263769d0c1bd41ac | 0 | elexonics/bootstrap-table,zartata/bootstrap-table,djhvscf/bootstrap-table,yenyen/bootstrap-table,moccen/bootstrap-table,yepiaoyang/bootstrap-table,AlfiyaZi/bootstrap-table,hanyuzhou2006/bootstrap-table,veggiemonk/bootstrap-table,opan/bootstrap-table,Projjol/bootstrap-table,olly79/bootstrap-table,zofuthan/bootstrap-tabl... | /**
* @author zhixin wen <wenzhixin2010@gmail.com>
* version: 1.6.0
* https://github.com/wenzhixin/bootstrap-table/
*/
!function ($) {
'use strict';
// TOOLS DEFINITION
// ======================
// it only does '%s', and return '' when arguments are undefined
var sprintf = function(str) {
... | src/bootstrap-table.js | /**
* @author zhixin wen <wenzhixin2010@gmail.com>
* version: 1.6.0
* https://github.com/wenzhixin/bootstrap-table/
*/
!function ($) {
'use strict';
// TOOLS DEFINITION
// ======================
// it only does '%s', and return '' when arguments are undefined
var sprintf = function(str) {
... | Update checkBy/uncheckBy methods.
| src/bootstrap-table.js | Update checkBy/uncheckBy methods. | <ide><path>rc/bootstrap-table.js
<ide> }
<ide>
<ide> var that = this;
<del> $.each(this.data, function (index, row) {
<del> if(!row.hasOwnProperty(obj.field)) {
<add> $.each(this.options.data, function (index, row) {
<add> if (!row.hasOwnProperty(obj.field)) ... | |
Java | apache-2.0 | 83d28b375432ca818a1e0e684b11f4f069d64b51 | 0 | alibaba/java-dns-cache-manipulator,alibaba/java-dns-cache-manipulator,alibaba/java-dns-cache-manipulator,alibaba/java-dns-cache-manipulator | package com.alibaba.dcm.internal;
import com.alibaba.dcm.DnsCache;
import com.alibaba.dcm.DnsCacheEntry;
import javax.annotation.Nullable;
import javax.annotation.concurrent.GuardedBy;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java... | library/src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtilForJava8Minus.java | package com.alibaba.dcm.internal;
import com.alibaba.dcm.DnsCache;
import com.alibaba.dcm.DnsCacheEntry;
import javax.annotation.Nullable;
import javax.annotation.concurrent.GuardedBy;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java... | ! performance improve: cache reflection objects(field/constructor)
cache `InetAddress.Cache.cache` field
| library/src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtilForJava8Minus.java | ! performance improve: cache reflection objects(field/constructor) | <ide><path>ibrary/src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtilForJava8Minus.java
<ide> }
<ide>
<ide> public static void removeInetAddressCache(String host)
<del> throws NoSuchFieldException, IllegalAccessException {
<add> throws NoSuchFieldException, IllegalAccessException,... | |
JavaScript | isc | 2d925010e0b43f7567af287482b04ef4f3db444d | 0 | schutm/nyc,istanbuljs/nyc,bcoe/nyc,isaacs/nyc | /* global describe, it */
var _ = require('lodash')
var path = require('path')
var bin = path.resolve(__dirname, '../bin/nyc')
var fixturesCLI = path.resolve(__dirname, './fixtures/cli')
var fakebin = path.resolve(fixturesCLI, 'fakebin')
var fixturesHooks = path.resolve(__dirname, './fixtures/hooks')
var fs = require(... | test/nyc-bin.js | /* global describe, it */
var _ = require('lodash')
var path = require('path')
var bin = path.resolve(__dirname, '../bin/nyc')
var fixturesCLI = path.resolve(__dirname, './fixtures/cli')
var fakebin = path.resolve(fixturesCLI, 'fakebin')
var fixturesHooks = path.resolve(__dirname, './fixtures/hooks')
var fs = require(... | chore: attempt to fix appveyor (#623)
| test/nyc-bin.js | chore: attempt to fix appveyor (#623) | <ide><path>est/nyc-bin.js
<ide>
<ide> it('fails when the expected file coverage is below a threshold', function (done) {
<ide> var args = [bin, '--check-coverage', '--lines', '51', '--per-file', process.execPath, './half-covered.js']
<del> var matcher = RegExp('ERROR: Coverage for lines \\(50%\\) does n... | |
JavaScript | mit | 0aded781f3974d6013054cee0600b1152fe5b546 | 0 | njfrost/skyview | const chalk = require('chalk')
const figlet = require('figlet')
const fetch = require('node-fetch')
const dscovrMocks = require('../mocks/dscovr.mock.js')
const fs = require('fs')
const baseApi = 'https://epic.gsfc.nasa.gov/api'
const baseArchive = 'https://epic.gsfc.nasa.gov/archive'
function getJson() {
return ... | dscovr/dscovr.js | const chalk = require('chalk')
const figlet = require('figlet')
const fetch = require('node-fetch')
const dscovrMocks = require('../mocks/dscovr.mock.js')
const fs = require('fs')
const baseApi = 'https://epic.gsfc.nasa.gov/api'
const baseArchive = 'https://epic.gsfc.nasa.gov/archive'
function getJson() {
return ... | extract get image url
| dscovr/dscovr.js | extract get image url | <ide><path>scovr/dscovr.js
<ide> })
<ide> }
<ide>
<add>function getImageUrl(formattedDate, name, requestColor, requestFormat) {
<add> const color = requestColor || 'natural'
<add> const format = requestFormat || 'png'
<add> return `${baseArchive}/${color}/${formattedDate}/${format}/${name}.${format}`
<add... | |
Java | mit | 33c790a8c8f6dae06cd3793ae4a58a2b7dc6c109 | 0 | opensciencegrid/rsvprocess,opensciencegrid/rsvprocess | package rsv.process.control;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.TreeMap;
import java.util.TreeSet;
import org.apache.log4j.Logger;
import rsv.process.Configuration;
import rsv.proc... | src/rsv/process/control/RSVVOMatrix.java | package rsv.process.control;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.TreeMap;
import java.util.TreeSet;
import org.apache.log4j.Logger;
import rsv.process.Configuration;
import rsv.proc... | (patched) Switched from string to string buffer
| src/rsv/process/control/RSVVOMatrix.java | (patched) Switched from string to string buffer | <ide><path>rc/rsv/process/control/RSVVOMatrix.java
<ide> int ret = RSVMain.exitcode_ok;
<ide>
<ide> try {
<del> String xml = "<?xml version=\"1.0\"?>\n";
<del> xml += "<VOMembership>\n";
<add> StringBuffer xml = new StringBuffer();
<add> xml.append("<?xml version=\"1.0\"?>\n");
<add> xml.append("<... | |
Java | apache-2.0 | 90a0cba862bb054a417296400808a6c15486809b | 0 | foam-framework/foam,jlhughes/foam,foam-framework/foam,mdittmer/foam,mdittmer/foam,mdittmer/foam,foam-framework/foam,jlhughes/foam,mdittmer/foam,osric-the-knight/foam,foam-framework/foam,jacksonic/foam,jacksonic/foam,jacksonic/foam,osric-the-knight/foam,osric-the-knight/foam,osric-the-knight/foam,foam-framework/foam,jac... | /**
* @license
* Copyright 2013 Google 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 requir... | java/foam/core/AbstractFObject.java | /**
* @license
* Copyright 2013 Google 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 requir... | Java: Make hashCode abstract in AbstractFObject, guaranteeing an override
| java/foam/core/AbstractFObject.java | Java: Make hashCode abstract in AbstractFObject, guaranteeing an override | <ide><path>ava/foam/core/AbstractFObject.java
<ide> return compareTo(o) == 0;
<ide> }
<ide>
<add> @Override
<add> public abstract int hashCode();
<add>
<ide> public abstract StringBuilder append(StringBuilder sb);
<ide>
<ide> public String toString() { | |
JavaScript | mit | 971dba370854fe902019f92362b3efb92bdabd0c | 0 | Modernizr/Modernizr,Modernizr/Modernizr | /*!
* Modernizr v2.5.3pre
* www.modernizr.com
*
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
* Available under the BSD and MIT licenses: www.modernizr.com/license/
*/
/*
* Modernizr tests which native CSS3 and HTML5 features are available in
* the current UA and makes the results available to you in two... | modernizr.js | /*!
* Modernizr v2.5.3pre
* www.modernizr.com
*
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
* Available under the BSD and MIT licenses: www.modernizr.com/license/
*/
/*
* Modernizr tests which native CSS3 and HTML5 features are available in
* the current UA and makes the results available to you in two... | fix issue #332 and issue #501
| modernizr.js | fix issue #332 and issue #501 | <ide><path>odernizr.js
<ide> fakeBody.innerHTML += style;
<ide> fakeBody.appendChild(div);
<ide> if(!body){
<add> //avoid crashing IE8, if background image is used
<add> fakeBody.style.background = "";
<ide> docElement.appendChild(fakeBody);
<ide> }
<ide> | |
Java | apache-2.0 | fa8265e325c27bd23661e63927a37b439715937b | 0 | virajs/selenium-1,winhamwr/selenium,winhamwr/selenium,virajs/selenium-1,virajs/selenium-1,winhamwr/selenium,virajs/selenium-1,winhamwr/selenium,winhamwr/selenium,winhamwr/selenium,winhamwr/selenium,virajs/selenium-1,virajs/selenium-1,winhamwr/selenium,virajs/selenium-1,virajs/selenium-1,virajs/selenium-1 | /*
Copyright 2007-2009 WebDriver committers
Copyright 2007-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 appli... | java/client/test/org/openqa/selenium/ElementFindingTest.java | /*
Copyright 2007-2009 WebDriver committers
Copyright 2007-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 appli... | DanielWagnerHall: This test doesn't pass on Chrome yet
git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@16280 07704840-8298-11de-bf8c-fd130f914ac9
| java/client/test/org/openqa/selenium/ElementFindingTest.java | DanielWagnerHall: This test doesn't pass on Chrome yet | <ide><path>ava/client/test/org/openqa/selenium/ElementFindingTest.java
<ide> import static org.junit.Assert.assertTrue;
<ide> import static org.junit.Assert.fail;
<ide> import static org.openqa.selenium.testing.Ignore.Driver.ANDROID;
<add>import static org.openqa.selenium.testing.Ignore.Driver.CHROME;
<ide> import stat... | |
Java | apache-2.0 | 810facf5855c5928d692c971339f1634c6fc98d9 | 0 | hankcs/HanLP,YangliAtGitHub/HanLP,hankcs/HanLP,iLiXin/HanLP,xunyuw/HanLP,furaoing/HanLP,waiteryee1/HanLP,chenjun0210/HanLP | /*
* <summary></summary>
* <author>He Han</author>
* <email>hankcs.cn@gmail.com</email>
* <create-date>2014/12/10 13:44</create-date>
*
* <copyright file="CRFSegment.java" company="上海林原信息科技有限公司">
* Copyright (c) 2003-2014, 上海林原信息科技有限公司. All Right Reserved, http://www.linrunsoft.com/
* This source is subject to ... | src/main/java/com/hankcs/hanlp/seg/CRF/CRFSegment.java | /*
* <summary></summary>
* <author>He Han</author>
* <email>hankcs.cn@gmail.com</email>
* <create-date>2014/12/10 13:44</create-date>
*
* <copyright file="CRFSegment.java" company="上海林原信息科技有限公司">
* Copyright (c) 2003-2014, 上海林原信息科技有限公司. All Right Reserved, http://www.linrunsoft.com/
* This source is subject to ... | 修复CRFSegment潜在问题
| src/main/java/com/hankcs/hanlp/seg/CRF/CRFSegment.java | 修复CRFSegment潜在问题 | <ide><path>rc/main/java/com/hankcs/hanlp/seg/CRF/CRFSegment.java
<ide> System.out.println(table);
<ide> }
<ide> int offset = 0;
<add> OUTER:
<ide> for (int i = 0; i < table.v.length; offset += table.v[i][1].length(), ++i)
<ide> {
<ide> String[] line = table... | |
Java | apache-2.0 | d6ea7087359dd0c69d0c4f5c5f0f6a935a5a4edf | 0 | Reissner/maven-latex-plugin,Reissner/maven-latex-plugin,Reissner/maven-latex-plugin,Reissner/maven-latex-plugin,Reissner/maven-latex-plugin | /*
* The akquinet maven-latex-plugin project
*
* Copyright (c) 2011 by akquinet tech@spree GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | maven-latex-plugin/src/main/java/org/m2latex/core/LatexPreProcessor.java | /*
* The akquinet maven-latex-plugin project
*
* Copyright (c) 2011 by akquinet tech@spree GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | @new
for selective build:
- added parameter texSrcProcDirectory
- modified meaning of parameter texSrcDirectory
- renamed parameter readTexSrcDirRec-->readTexSrcProcDirRec
to that end:
- made choice whether texSrcProcDirectory or still texSrcDirectory is required.
@doc
corrected parameters and links. | maven-latex-plugin/src/main/java/org/m2latex/core/LatexPreProcessor.java | @new for selective build: - added parameter texSrcProcDirectory - modified meaning of parameter texSrcDirectory - renamed parameter readTexSrcDirRec-->readTexSrcProcDirRec to that end: - made choice whether texSrcProcDirectory or still texSrcDirectory is required. @doc corrected parameters and links. | <ide><path>aven-latex-plugin/src/main/java/org/m2latex/core/LatexPreProcessor.java
<ide> *
<ide> * @param figFile
<ide> * the fig file to be processed.
<del> * @param dev
<del> * the 'device' which determines whether to create pdf or pstex.
<ide> * @throws BuildFailureException
<ide>... | |
JavaScript | mit | 8030fee798b8ef593f2377e7b5ae7a78f87ac1e3 | 0 | 96AA48/rooster.io,96AA48/rooster.io | //lookup.js
//Getting local variables via the configuration file.
var config = require('./configuration');
var school_id = config().school_id;
//Getting first and third party modules
var fs = require('fs');
var database = require('mongoskin').db('mongodb://' + config().database);
function get(req, res, next, search)... | lookup.js | //lookup.js
//Getting local variables via the configuration file.
var config = require('./configuration');
var school_id = config().school_id;
//Getting first and third party modules
var fs = require('fs');
var database = require('mongoskin').db('mongodb://' + config().database); //Initialize the database connection.... | Removed all comments from lookup.js
| lookup.js | Removed all comments from lookup.js | <ide><path>ookup.js
<ide>
<ide> //Getting first and third party modules
<ide> var fs = require('fs');
<del>var database = require('mongoskin').db('mongodb://' + config().database); //Initialize the database connection.
<add>var database = require('mongoskin').db('mongodb://' + config().database);
<ide>
<del>//Functio... | |
JavaScript | mit | 567832c73542a9b5a5166c4c0a36fa1c3be78684 | 0 | michaeljdennis/go-vue-todos,michaeljdennis/go-vue-todos,skadimoolam/go-vue-todos,skadimoolam/go-vue-todos,michaeljdennis/go-vue-todos,skadimoolam/go-vue-todos | (function(Vue){
"use strict";
new Vue({
el: 'body',
data: {
tasks: [],
newTask: {}
},
created: function() {
this.$http.get('/tasks').then(function(res) {
this.tasks = res.data.items ? res.data.items : [];
});
},
methods: {
createTask: function() {
if (!$.trim(this.newTask.name)) {
this.ne... | public/app.js | (function(Vue){
"use strict";
new Vue({
el: 'body',
data: {
tasks: [],
newTask: {}
},
created: function() {
this.$http.get('/tasks').then(function(res) {
this.tasks = res.data.items ? res.data.items : [];
});
},
methods: {
createTask: function() {
if (!$.trim(this.newTask.name)) {
this.n... | Fix eslint errors
| public/app.js | Fix eslint errors | <ide><path>ublic/app.js
<ide>
<ide> new Vue({
<ide> el: 'body',
<del>
<add>
<ide> data: {
<ide> tasks: [],
<ide> newTask: {}
<ide> this.tasks.push(this.newTask);
<ide>
<ide> this.newTask = {};
<del> }).error(function(err) { console.log(err) });
<add> }).error(function(err) { console.log(err); });
<... | |
Java | apache-2.0 | 6a38869ef2b8134c435f28cc454dac36f39e5614 | 0 | RamblingWare/RamblingWare,RamblingWare/RamblingWare,RamblingWare/Rant,RamblingWare/Rant,RamblingWare/Rant,RamblingWare/RamblingWare | package org.oddox.action;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.Se... | src/main/java/org/oddox/action/RssAction.java | package org.oddox.action;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.Se... | Refractor RSS post calls to cache every 24 hours
| src/main/java/org/oddox/action/RssAction.java | Refractor RSS post calls to cache every 24 hours | <ide><path>rc/main/java/org/oddox/action/RssAction.java
<ide> private static final long serialVersionUID = 1L;
<ide> protected HttpServletResponse servletResponse;
<ide> protected HttpServletRequest servletRequest;
<del> private List<Post> posts = null;
<add> private static long cacheTime = 0l;
<add> ... | |
Java | bsd-3-clause | 2fe960f529eb25e3441b6ff8e994cc8fc71b3765 | 0 | just6979/ScoreModel,just6979/ScoreIt_P10,just6979/ScoreIt_P10,just6979/ScoreModel | /*
* Copyright (c) 2015 Justin White <jw@justinwhite.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
... | src/test/java/net/justinwhite/score_model/GameTest.java | /*
* Copyright (c) 2015 Justin White <jw@justinwhite.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
... | Update for array-to-List, add more coverage.
| src/test/java/net/justinwhite/score_model/GameTest.java | Update for array-to-List, add more coverage. | <ide><path>rc/test/java/net/justinwhite/score_model/GameTest.java
<ide> game.getPlayer(i).setName(playerNames[i]);
<ide> }
<ide> // check that scores start at 0
<del> assertArrayEquals(scores, game.getScores());
<add> assertArrayEquals(scores, game.getScores().toArray());
<ide>... | |
Java | apache-2.0 | a2c34607027302c2e842265955c5b49afc8859fe | 0 | md5555/android_packages_services_Telephony | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | src/com/android/services/telephony/TelephonyCallConnection.java | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Remove audio mode/focus code from telephony.
No longer needed now that audio mode and focus is handled by telecomm.
Change-Id: Ia311ddc638febbe676d74dd359de1809d5ce92ee
| src/com/android/services/telephony/TelephonyCallConnection.java | Remove audio mode/focus code from telephony. | <ide><path>rc/com/android/services/telephony/TelephonyCallConnection.java
<ide> package com.android.services.telephony;
<ide>
<ide> import android.content.Context;
<del>import android.media.AudioManager;
<ide> import android.os.Handler;
<ide> import android.os.Message;
<ide> import android.telecomm.CallServiceAdapter;... | |
Java | apache-2.0 | dda0cca6a6679c55ca400688ddbe76f006c7c3c0 | 0 | sonamuthu/rice-1,UniversityOfHawaiiORS/rice,jwillia/kc-rice1,bhutchinson/rice,cniesen/rice,ewestfal/rice-svn2git-test,cniesen/rice,jwillia/kc-rice1,rojlarge/rice-kc,sonamuthu/rice-1,cniesen/rice,bhutchinson/rice,gathreya/rice-kc,bsmith83/rice-1,UniversityOfHawaiiORS/rice,ewestfal/rice,smith750/rice,ewestfal/rice,jwilli... | /*
* Copyright 2005-2006 The Kuali Foundation.
*
*
* Licensed under the Educational Community License, Version 1.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 b... | impl/src/main/java/org/kuali/rice/kew/dto/DTOConverter.java | /*
* Copyright 2005-2006 The Kuali Foundation.
*
*
* Licensed under the Educational Community License, Version 1.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 b... | KULRICE-2395 Rename references to "messageEntity' to "serviceNamespace"
| impl/src/main/java/org/kuali/rice/kew/dto/DTOConverter.java | KULRICE-2395 Rename references to "messageEntity' to "serviceNamespace" | <ide><path>mpl/src/main/java/org/kuali/rice/kew/dto/DTOConverter.java
<ide> }
<ide>
<ide> // this is likely from an EDL validate call and ME may needed to be added to the AttDefinitionVO.
<del> if (ruleAttribute.getMessageEntity() != null) {
<del> definition.setMessageEntity(ruleAttri... | |
Java | epl-1.0 | c01a0ad8890ef5ebdd5c10aacef2a99b9b53b1c5 | 0 | gnodet/wikitext | /*******************************************************************************
* Copyright (c) 2004, 2007 Mylyn project committers and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskWorkingSetTest.java | /*******************************************************************************
* Copyright (c) 2004, 2007 Mylyn project committers and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | ASSIGNED - bug 221628: [patch] add tests for TaskWorkingSetTest
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221628
| org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskWorkingSetTest.java | ASSIGNED - bug 221628: [patch] add tests for TaskWorkingSetTest https://bugs.eclipse.org/bugs/show_bug.cgi?id=221628 | <ide><path>rg.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskWorkingSetTest.java
<ide> import org.eclipse.core.runtime.NullProgressMonitor;
<ide> import org.eclipse.mylyn.internal.tasks.ui.workingsets.TaskWorkingSetUpdater;
<ide> import org.eclipse.mylyn.resources.tests.ResourceTestUtil;
<add>import or... | |
JavaScript | mit | 7504d48baa238a02225edb9ac1bb5c5a9d158d91 | 0 | fjsantosb/Molecule | Molecule.module('Molecule.Game', function (require, p) {
var MapFile = require('Molecule.MapFile'),
Camera = require('Molecule.Camera'),
Scene = require('Molecule.Scene'),
Map = require('Molecule.Map'),
ImageFile = require('Molecule.ImageFile'),
AudioFile = require('Molecule... | src/game.js | Molecule.module('Molecule.Game', function (require, p) {
var MapFile = require('Molecule.MapFile'),
Camera = require('Molecule.Camera'),
Scene = require('Molecule.Scene'),
Map = require('Molecule.Map'),
ImageFile = require('Molecule.ImageFile'),
AudioFile = require('Molecule... | New Molecule method: draw
| src/game.js | New Molecule method: draw | <ide><path>rc/game.js
<ide> if (molecule.update) molecule.update();
<ide> }
<ide> };
<add>
<add> p.updateDrawMolecules = function (game) {
<add> var molecule;
<add> for (var i = 0; i < game.scene.molecules.length; i++) {
<add> molecule = game.scene.molecules[i];
<... | |
Java | unlicense | error: pathspec 'p012/p12.java' did not match any file(s) known to git
| b5c7b8d872966d17dfeff6d281dd5bb65bfff4b9 | 1 | metacity/project-euler,metacity/project-euler,metacity/project-euler | import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
public class p12 {
private static final int THREADS = Runtime.getRuntime().availableProcessors();
private static final BlockingQueue<Long> queue = new ArrayBlockingQueue<Long>(THREADS * 2);
private static final ExecutorService pool = Ex... | p012/p12.java | Added Problem 12
| p012/p12.java | Added Problem 12 | <ide><path>012/p12.java
<add>import java.util.concurrent.*;
<add>import java.util.concurrent.atomic.*;
<add>
<add>public class p12 {
<add>
<add> private static final int THREADS = Runtime.getRuntime().availableProcessors();
<add>
<add> private static final BlockingQueue<Long> queue = new ArrayBlockingQueue<Long>(... | |
JavaScript | mit | 8c3690b8f145c1cf8b400b41105f0711dc45babc | 0 | tomviner/unlimited-weeks-in-google-calendar,tomviner/unlimited-weeks-in-google-calendar,tomviner/unlimited-weeks-in-google-calendar | /* jshint esversion: 6 */
let BUTTON_CHECKED = 'goog-imageless-button-checked'
let BUTTON_CONTENT = 'goog-imageless-button-content'
function trigger(event_names, elem) {
// event_names: space sep names of events
// elem: jQuery element
if (!event_names || event_names.length === 0) {
throw (`Cannot... | src/inject/inject.js | /* jshint esversion: 6 */
let BUTTON_CHECKED = 'goog-imageless-button-checked'
let BUTTON_CONTENT = 'goog-imageless-button-content'
function trigger(event_names, elem) {
// event_names: space sep names of events
// elem: jQuery element
if (!event_names || event_names.length === 0) {
throw (`Cannot... | load_num_weeks's promise always returns an int
| src/inject/inject.js | load_num_weeks's promise always returns an int | <ide><path>rc/inject/inject.js
<ide> load_num_weeks() {
<ide> // returns a promise
<ide> if (!this.can_persist) {
<del> return new Promise((resolve) => resolve(null))
<add> return new Promise((resolve) => resolve(big_cal.num_weeks))
<ide> }
<ide> return new Prom... | |
Java | mit | 01b52b1cf196a12fafb70c21cfeccb35c90265c2 | 0 | algolia/algoliasearch-client-android,algolia/algoliasearch-client-android,algoliareadmebot/algoliasearch-client-android,algoliareadmebot/algoliasearch-client-android,algolia/algoliasearch-client-android | /*
* Copyright (c) 2012-2016 Algolia
* http://www.algolia.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 restriction, including without limitation the rights
* to use, ... | algoliasearch/src/offline/java/com/algolia/search/saas/MirroredIndex.java | /*
* Copyright (c) 2012-2016 Algolia
* http://www.algolia.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 restriction, including without limitation the rights
* to use, ... | Search first online, then offline if error and mirror available | algoliasearch/src/offline/java/com/algolia/search/saas/MirroredIndex.java | Search first online, then offline if error and mirror available | <ide><path>lgoliasearch/src/offline/java/com/algolia/search/saas/MirroredIndex.java
<ide>
<ide> public void searchASync(Query query, SearchListener listener)
<ide> {
<del> // TODO: Should use offline only as a fallback mechanism.
<ide> new SearchMirrorTask().execute(new TaskParams.Search(listene... | |
Java | bsd-2-clause | ed516434d161be34f4a2d33005c42193e5c735eb | 0 | linkedin/LiTr,linkedin/LiTr,linkedin/LiTr | /*
* Copyright 2019 LinkedIn Corporation
* All Rights Reserved.
*
* Licensed under the BSD 2-Clause License (the "License"). See License in the project root for
* license information.
*/
package com.linkedin.android.litr.transcoder;
import android.media.MediaExtractor;
import android.media.MediaFormat;
import a... | litr/src/main/java/com/linkedin/android/litr/transcoder/TrackTranscoderFactory.java | /*
* Copyright 2019 LinkedIn Corporation
* All Rights Reserved.
*
* Licensed under the BSD 2-Clause License (the "License"). See License in the project root for
* license information.
*/
package com.linkedin.android.litr.transcoder;
import android.media.MediaExtractor;
import android.media.MediaFormat;
import a... | Move video renderer null check into video transcoder creation block (#89)
| litr/src/main/java/com/linkedin/android/litr/transcoder/TrackTranscoderFactory.java | Move video renderer null check into video transcoder creation block (#89) | <ide><path>itr/src/main/java/com/linkedin/android/litr/transcoder/TrackTranscoderFactory.java
<ide> null);
<ide> }
<ide> }
<del> // TODO move into statement above when audio renderer is implemented
<del> if (trackMimeType.startsWith("v... | |
Java | apache-2.0 | c19a6504844a7df201a5b387941a4535fa4638db | 0 | WeRockStar/iosched,WeRockStar/iosched,jarekankowski/iosched,jarekankowski/iosched,WeRockStar/iosched,jarekankowski/iosched | /*
* Copyright 2017 Google 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 by applic... | server/src/main/java/com/google/samples/apps/iosched/server/userdata/Ids.java | /*
* Copyright 2017 Google 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 by applic... | Updated Android client id for server
Change-Id: I8c5331d926f982a4f3340102718645ec19f13ab9
| server/src/main/java/com/google/samples/apps/iosched/server/userdata/Ids.java | Updated Android client id for server | <ide><path>erver/src/main/java/com/google/samples/apps/iosched/server/userdata/Ids.java
<ide> * API keys.
<ide> */
<ide> public class Ids {
<del> public static final String ANDROID_CLIENT_ID = "237695054204-m87hbqe20bqpib715p3hiddpjjfih2l9"
<del> + ".apps.googleusercontent.com";
<add> public static f... | |
Java | apache-2.0 | e80f4f96f2eec05e571778bc3479c151533bbd3f | 0 | yammer/azure-table | package com.yammer.collections.guava.azure.backup.tool;
import com.google.common.base.Optional;
import org.apache.commons.cli.ParseException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import java.io.IOExcep... | azure-table-backup/src/test/java/com/yammer/collections/guava/azure/backup/tool/BackupCLIParserTest.java | package com.yammer.collections.guava.azure.backup.tool;
import com.google.common.base.Optional;
import org.apache.commons.cli.ParseException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import java.io.IOExcep... | drooped the idea to deep test command creation in the parser test. this will be covered by the individual command tests and the integration test
| azure-table-backup/src/test/java/com/yammer/collections/guava/azure/backup/tool/BackupCLIParserTest.java | drooped the idea to deep test command creation in the parser test. this will be covered by the individual command tests and the integration test | <ide><path>zure-table-backup/src/test/java/com/yammer/collections/guava/azure/backup/tool/BackupCLIParserTest.java
<ide> import static org.hamcrest.CoreMatchers.is;
<ide> import static org.junit.Assert.assertThat;
<ide>
<del>// TODO improve this tests resolution, to verify correct parsing
<ide> @RunWith(MockitoJUnitRu... | |
Java | agpl-3.0 | a591851beed21ff1a71d686b583228ca6204f1be | 0 | BloatIt/bloatit,BloatIt/bloatit,BloatIt/bloatit,BloatIt/bloatit,BloatIt/bloatit | /*
* Copyright (C) 2010 BloatIt. This file is part of BloatIt. BloatIt is free
* software: you can redistribute it and/or modify it under the terms of the GNU
* Affero General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
* Bl... | main/src/main/java/com/bloatit/web/linkable/invoice/ContributionInvoicingInformationsAction.java | /*
* Copyright (C) 2010 BloatIt. This file is part of BloatIt. BloatIt is free
* software: you can redistribute it and/or modify it under the terms of the GNU
* Affero General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
* Bl... | improve notification for invoices generation
| main/src/main/java/com/bloatit/web/linkable/invoice/ContributionInvoicingInformationsAction.java | improve notification for invoices generation | <ide><path>ain/src/main/java/com/bloatit/web/linkable/invoice/ContributionInvoicingInformationsAction.java
<ide>
<ide> }
<ide>
<del> Context.getSession().notifyGood(Context.trn("{0} invoice succefully generated.", "{0} invoices succefully generated.", contributionAmounts.size(), contributionAmounts.siz... | |
JavaScript | agpl-3.0 | 230f5c8a6908db20f9d739703022940b73a7441a | 0 | telefonicaid/notification_server,frsela/notification_server,frsela/notification_server,telefonicaid/notification_server,telefonicaid/notification_server,frsela/notification_server,frsela/notification_server,telefonicaid/notification_server,telefonicaid/notification_server,frsela/notification_server | /* jshint node:true */
/**
* PUSH Notification server
* (c) Telefonica Digital, 2012 - All rights reserved
* License: GNU Affero V3 (see LICENSE file)
* Fernando Rodríguez Sela <frsela@tid.es>
* Guillermo Lopez Leal <gll@tid.es>
*/
'use strict';
var amqp = require('amqp'),
Log = require('./Logger.js'),
... | src/common/MsgBroker.js | /* jshint node:true */
/**
* PUSH Notification server
* (c) Telefonica Digital, 2012 - All rights reserved
* License: GNU Affero V3 (see LICENSE file)
* Fernando Rodríguez Sela <frsela@tid.es>
* Guillermo Lopez Leal <gll@tid.es>
*/
'use strict';
var amqp = require('amqp'),
Log = require('./Logger.js'),
... | Resubscribe after MQ fail
| src/common/MsgBroker.js | Resubscribe after MQ fail | <ide><path>rc/common/MsgBroker.js
<ide> });
<ide>
<ide> broker.forEach(function(br) {
<del> if (br.reconnecting) {
<del> Log.debug('Avoiding create new subscriptions');
<del> return;
<del> }
<ide> var exchange = br.exchange(queueName + '-fanout', {
<ide> ... | |
Java | mpl-2.0 | 24dda6428c0ba0c490b4ec28e0efa557c2aadaae | 0 | msteinhoff/hello-world | c6f2218f-cb8e-11e5-9e8f-00264a111016 | src/main/java/HelloWorld.java | c6d4ec70-cb8e-11e5-8159-00264a111016 | I'm done | src/main/java/HelloWorld.java | I'm done | <ide><path>rc/main/java/HelloWorld.java
<del>c6d4ec70-cb8e-11e5-8159-00264a111016
<add>c6f2218f-cb8e-11e5-9e8f-00264a111016 | |
Java | apache-2.0 | 865a41026cdf6de25272bf1c66f3222d51170d9a | 0 | neo4j/neo4j-java-driver,neo4j/neo4j-java-driver,neo4j/neo4j-java-driver | /**
* Copyright (c) 2002-2016 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* 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... | driver/src/main/java/org/neo4j/driver/internal/RoutingDriver.java | /**
* Copyright (c) 2002-2016 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* 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... | Check when only one router left
Waiting until we completely run out of routing servers is too late, we must force
a call to `getServers` when there is only one known router.
| driver/src/main/java/org/neo4j/driver/internal/RoutingDriver.java | Check when only one router left | <ide><path>river/src/main/java/org/neo4j/driver/internal/RoutingDriver.java
<ide> return compare;
<ide> }
<ide> };
<del> private static final int MIN_SERVERS = 1;
<del> private static final int CONNECTION_RETRIES = 3;
<add> private static final int MIN_ROUTERS = 1;
<ide> private fin... | |
JavaScript | bsd-3-clause | db1fc144e2a0210752326bff666d9a277b28518f | 0 | dustinmoorman/tau.pe,dustinmoorman/tau.pe |
var db = require("mongojs").connect("localhost:27017/taupe", ["url"]);
var slugExists = function(slug){
db.url.findOne({"slug": slug}, function(error, match){
return match != null;
});
};
var generateSlug = function(){
var lib = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var slug =... | routes/api.js |
var db = require("mongojs").connect("localhost:27017/taupe", ["url"]);
var slugExists = function(slug){
db.url.findOne({"slug": slug}, function(error, match){
return match != null;
});
};
var generateSlug = function(){
var lib = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var slug =... | don't actually need this.
| routes/api.js | don't actually need this. | <ide><path>outes/api.js
<ide> db.url.insert({
<ide> "url": request.body.url,
<ide> "slug": slug,
<del> "ip": request.connection.remoteAddress,
<ide> "date": Date.now()
<ide> });
<ide> | |
Java | apache-2.0 | error: pathspec 'WebCrawler/src/ch/ice/controller/ExcelWriter.java' did not match any file(s) known to git
| f90c2ccc68622f09b8650279c714086e352d6169 | 1 | LuzernWGProjects/Schurter | /**
*
*/
package ch.ice.controller;
import ch.ice.controller.interf.Writer;
/**
* @author Oliver
*
*/
public class ExcelWriter implements Writer {
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet("Sample sheet");
Map<String, Object[]> data = new HashMap<S... | WebCrawler/src/ch/ice/controller/ExcelWriter.java | added excelwriter codesnipped | WebCrawler/src/ch/ice/controller/ExcelWriter.java | added excelwriter codesnipped | <ide><path>ebCrawler/src/ch/ice/controller/ExcelWriter.java
<add>/**
<add> *
<add> */
<add>package ch.ice.controller;
<add>
<add>import ch.ice.controller.interf.Writer;
<add>
<add>/**
<add> * @author Oliver
<add> *
<add> */
<add>public class ExcelWriter implements Writer {
<add>
<add> HSSFWorkbook workbook = new HSSF... | |
JavaScript | mit | 86e356385608c331f73aa2b01b7334821c10d938 | 0 | boffinHouse/rawblock,boffinHouse/rawblock | /**
* original by
* http://krasimirtsonev.com/blog/article/A-modern-JavaScript-router-in-100-lines-history-api-pushState-hash-url
*/
import rb from './global-rb';
import deserialize from './deserialize';
import getID from './get-id';
import addLog from './add-log';
const regPlus = /\+/g;
const regSlashBegin = /^\/... | utils/router.js | /**
* original by
* http://krasimirtsonev.com/blog/article/A-modern-JavaScript-router-in-100-lines-history-api-pushState-hash-url
*/
import rb from './global-rb';
import deserialize from './deserialize';
import getID from './get-id';
import addLog from './add-log';
const regPlus = /\+/g;
const regSlashBegin = /^\/... | set empty current
| utils/router.js | set empty current | <ide><path>tils/router.js
<ide> routes: {},
<ide> mode: 'history',
<ide> root: '/',
<add> current: '',
<ide> regHash: /#!(.*)$/,
<ide> regIndex: /\/index\.htm[l]*$/,
<ide> //reload reloads the page on Router.navigate, replace uses replaceState on Router.navigate and recalls the handler and re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.