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
bsd-3-clause
3430a82ad3ab10c147877beaa6c20577db36ec11
0
GeneralElectric/snowizard,jplock/snowizard,jplock/snowizard,GeneralElectric/snowizard
package com.ge.snowizard.service; import static org.fest.assertions.api.Assertions.assertThat; import static org.mockito.Mockito.*; import java.io.File; import javax.ws.rs.core.MediaType; import org.junit.ClassRule; import org.junit.Test; import com.ge.snowizard.service.SnowizardConfiguration; import com.ge.snowizard....
snowizard-service/src/test/java/com/ge/snowizard/service/SnowizardServiceTest.java
package com.ge.snowizard.service; import static org.fest.assertions.api.Assertions.assertThat; import static org.mockito.Mockito.*; import java.io.File; import javax.ws.rs.core.MediaType; import org.junit.ClassRule; import org.junit.Test; import com.ge.snowizard.service.SnowizardConfiguration; import com.ge.snowizard....
Fixed failing unit test after adding PingResource and SnowizardResource
snowizard-service/src/test/java/com/ge/snowizard/service/SnowizardServiceTest.java
Fixed failing unit test after adding PingResource and SnowizardResource
<ide><path>nowizard-service/src/test/java/com/ge/snowizard/service/SnowizardServiceTest.java <ide> import com.ge.snowizard.service.SnowizardConfiguration; <ide> import com.ge.snowizard.service.SnowizardService; <ide> import com.ge.snowizard.service.resources.IdResource; <add>import com.ge.snowizard.service.resources.Pi...
Java
apache-2.0
7f52c64196ac3719bbdb3045f5e730a1e31fefae
0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere
/* * 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 ...
shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/hint/HintManagerTest.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 ...
Revise #9818 (#9829)
shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/hint/HintManagerTest.java
Revise #9818 (#9829)
<ide><path>hardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/hint/HintManagerTest.java <ide> import static org.junit.Assert.assertTrue; <ide> <ide> public final class HintManagerTest { <del> <add> <ide> @Test(expected = IllegalStateException.class) <ide> public v...
JavaScript
mit
00e8bb5f39b647213df065a65cd96643b79a97f4
0
ccxt/ccxt,ccxt/ccxt,ccxt/ccxt,ccxt/ccxt,ccxt/ccxt
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError } = require ('./base/errors'); // --------------------------------------------------------------------------- module.exports = class bcex extends Exchang...
js/bcex.js
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError } = require ('./base/errors'); // --------------------------------------------------------------------------- module.exports = class bcex extends Exchang...
bcex fetchBalance and currency codes
js/bcex.js
bcex fetchBalance and currency codes
<ide><path>s/bcex.js <ide> let keys = Object.keys (data); <ide> let result = { }; <ide> for (let i = 0; i < keys.length; i++) { <del> let currentKey = keys[i]; <del> let currentAmount = data[currentKey]; <del> let split = currentKey.split ('_'); <del> ...
JavaScript
mit
3e03256c4e44b342603e6aea795d228044884ad3
0
facebook/regenerator,facebook/regenerator,facebook/regenerator
/** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * https://raw.github.com/facebook/regenerator/master/LICENSE file. An * additional grant of patent rights can be found in the PATENTS file in * the same directory. */ (funct...
runtime/dev.js
/** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * https://raw.github.com/facebook/regenerator/master/LICENSE file. An * additional grant of patent rights can be found in the PATENTS file in * the same directory. */ (funct...
Use an undefined variable instead of the void 0 expression.
runtime/dev.js
Use an undefined variable instead of the void 0 expression.
<ide><path>untime/dev.js <ide> <ide> // Dummy constructor that we use as the .constructor property for <ide> // functions that return Generator objects. <del> GeneratorFunction <add> GeneratorFunction, <add> <add> // Undefined value, more compressible than void 0. <add> undefined <ide> ) { <ide> var hasOwn =...
JavaScript
mit
9fe45f545b8f9e55201955284fbb4acbed3981b1
0
spatools/ts2jsdoc,spatools/ts2jsdoc,spatools/ts2jsdoc
"use strict"; module.exports = function (grunt) { // Load grunt tasks automatically require("jit-grunt")(grunt, { nugetpack: "grunt-nuget", nugetpush: "grunt-nuget", buildcontrol: "grunt-build-control" }); require("time-grunt")(grunt); // Time how long tasks take. Can help when...
Gruntfile.js
"use strict"; module.exports = function (grunt) { // Load grunt tasks automatically require("jit-grunt")(grunt, { nugetpack: "grunt-nuget", nugetpush: "grunt-nuget", buildcontrol: "grunt-build-control" }); require("time-grunt")(grunt); // Time how long tasks take. Can help when...
Fix issue in buildcontrol task
Gruntfile.js
Fix issue in buildcontrol task
<ide><path>runtfile.js <ide> commit: true, <ide> push: true, <ide> branch: "gh-pages", <add> remote: "git@github.com:spatools/ts2jsdoc.git", <ide> message: "Built documentations %sourceName% from commit %sourceCommit% on ...
Java
mit
4bdcd1a2c37d1ccf38ac32c83671851637055efb
0
GluuFederation/oxTrust,GluuFederation/oxTrust,GluuFederation/oxTrust,GluuFederation/oxTrust,GluuFederation/oxTrust
/* * oxTrust is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.gluu.oxtrust.action; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; impor...
server/src/main/java/org/gluu/oxtrust/action/ManageCustomScriptAction.java
/* * oxTrust is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.gluu.oxtrust.action; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; impor...
New CouchBase script INUMs have "o=gluu!" prefix #1879
server/src/main/java/org/gluu/oxtrust/action/ManageCustomScriptAction.java
New CouchBase script INUMs have "o=gluu!" prefix #1879
<ide><path>erver/src/main/java/org/gluu/oxtrust/action/ManageCustomScriptAction.java <ide> String dn = customScript.getDn(); <ide> String customScriptId = customScript.getInum(); <ide> if (StringHelper.isEmpty(dn)) { <del> String basedInum = organizationService.getDnForOrganization(); <del> cus...
Java
apache-2.0
35d75b5be3a024a0bf80b228c351d1817efb80b5
0
nickman/heliosutils,nickman/heliosutils
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
src/main/java/com/heliosapm/utils/file/FileFinder.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 not use this ...
DevSync
src/main/java/com/heliosapm/utils/file/FileFinder.java
DevSync
<ide><path>rc/main/java/com/heliosapm/utils/file/FileFinder.java <ide> return this; <ide> } <ide> <add> public FileFinder addSearchDir(final File...dirs) { <add> for(File f : dirs) { <add> if(f==null) continue; <add> if(f.exists() && f.isDirectory()) { <add> dirsToSearch.add(f); <add> } <add> } <add> r...
Java
apache-2.0
4925b3ec5795ea1f415d0fe5053b96ab243d4110
0
Thelonedevil/OTBProject,NthPortal/OTBProject,OTBProject/OTBProject
package com.github.otbproject.otbproject.command.parser; import com.github.otbproject.otbproject.bot.AbstractBot; import com.github.otbproject.otbproject.bot.BotInitException; import com.github.otbproject.otbproject.bot.Control; import com.github.otbproject.otbproject.bot.nullbot.NullBot; import com.github.otbproject....
src/test/java/com/github/otbproject/otbproject/command/parser/ParserTest.java
package com.github.otbproject.otbproject.command.parser; import com.github.otbproject.otbproject.App; import com.github.otbproject.otbproject.bot.AbstractBot; import com.github.otbproject.otbproject.bot.BotInitException; import com.github.otbproject.otbproject.bot.Control; import com.github.otbproject.otbproject.confi...
Tweak ParserTest for config changes Changed test for [[service]] term to use Twitch, so that the service doesn't need to be changed, which caused concurrency issues.
src/test/java/com/github/otbproject/otbproject/command/parser/ParserTest.java
Tweak ParserTest for config changes
<ide><path>rc/test/java/com/github/otbproject/otbproject/command/parser/ParserTest.java <ide> package com.github.otbproject.otbproject.command.parser; <ide> <del>import com.github.otbproject.otbproject.App; <ide> import com.github.otbproject.otbproject.bot.AbstractBot; <ide> import com.github.otbproject.otbproject.bot...
JavaScript
mit
5a3356aa74b6e5ff8136c8266e96c86035e6dd9c
0
depcheck/depcheck,depcheck/depcheck
import fs from 'fs'; import path from 'path'; import walkdir from 'walkdir'; import minimatch from 'minimatch'; import builtInModules from 'builtin-modules'; import requirePackageName from 'require-package-name'; import component from './component'; import getNodes from './utils/get-nodes'; import discoverPropertyDep ...
src/index.js
import fs from 'fs'; import path from 'path'; import walkdir from 'walkdir'; import minimatch from 'minimatch'; import builtInModules from 'builtin-modules'; import requirePackageName from 'require-package-name'; import component from './component'; import getNodes from './utils/get-nodes'; import discoverPropertyDep ...
Build up using dependencies lookup in internal process.
src/index.js
Build up using dependencies lookup in internal process.
<ide><path>rc/index.js <ide> return obj instanceof Array && obj.every(item => typeof item === 'string'); <ide> } <ide> <add>function isNpmPackage(dep) { <add> return dep && dep !== '.' && dep !== '..' && builtInModules.indexOf(dep) === -1; <add>} <add> <ide> function isModule(dir) { <ide> try { <ide> require(...
JavaScript
mit
5c55c3a36e92f44ad4a864bf5952cdf41b3703eb
0
enesser/vCards-js
/******************************************************************************** vCards-js, Eric J Nesser, November 2014 ********************************************************************************/ /*jslint node: true */ 'use strict'; /** * Represents a contact that can be imported into Outlook, iOS, Mac OS...
index.js
/******************************************************************************** vCards-js, Eric J Nesser, November 2014 ********************************************************************************/ /*jslint node: true */ 'use strict'; /** * Represents a contact that can be imported into Outlook, iOS, Mac OS...
Allow embedding image from base64 string. Require node-specific packages inside methods that require them, making it easier to use this package in the browser.
index.js
Allow embedding image from base64 string. Require node-specific packages inside methods that require them, making it easier to use this package in the browser.
<ide><path>ndex.js <ide> * Represents a contact that can be imported into Outlook, iOS, Mac OS, Android devices, and more <ide> */ <ide> var vCard = (function () { <del> <del> var fs = require('fs'); <del> var path = require('path'); <del> <ide> /** <ide> * Get photo object for storing photos in vCards <...
Java
agpl-3.0
39c63eee50127dc5ad09ce7dc4ff94fdc1c9ea73
0
podd/podd-redesign,podd/podd-redesign,podd/podd-redesign,podd/podd-redesign
/** * PODD is an OWL ontology database used for scientific project management * * Copyright (C) 2009-2013 The University Of Queensland * * This program is free software: you can redistribute it and/or modify it under the terms of the * GNU Affero General Public License as published by the Free Software Foundati...
client/restlet/src/main/java/com/github/podd/client/impl/restlet/RestletPoddClientImpl.java
/** * PODD is an OWL ontology database used for scientific project management * * Copyright (C) 2009-2013 The University Of Queensland * * This program is free software: you can redistribute it and/or modify it under the terms of the * GNU Affero General Public License as published by the Free Software Foundati...
reorganise static constants in client
client/restlet/src/main/java/com/github/podd/client/impl/restlet/RestletPoddClientImpl.java
reorganise static constants in client
<ide><path>lient/restlet/src/main/java/com/github/podd/client/impl/restlet/RestletPoddClientImpl.java <ide> */ <ide> public class RestletPoddClientImpl implements PoddClient <ide> { <del> public final static String PROPERTY_BUNDLE = "poddclient"; <del> <del> protected final static String TEMP_UUID_PREFIX = "...
Java
apache-2.0
9eb4ef0aba8863f1ae468d2a88a27858863359b9
0
cherryhill/collectionspace-application
package org.collectionspace.chain.csp.persistence.file; import static org.junit.Assert.*; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.HashSet; import java.util.Properties; import ja...
tomcat-main/src/test/java/org/collectionspace/chain/csp/persistence/file/TestGeneral.java
package org.collectionspace.chain.csp.persistence.file; import static org.junit.Assert.*; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.HashSet; import java.util.Properties; import ja...
NOJIRA fix test error
tomcat-main/src/test/java/org/collectionspace/chain/csp/persistence/file/TestGeneral.java
NOJIRA fix test error
<ide><path>omcat-main/src/test/java/org/collectionspace/chain/csp/persistence/file/TestGeneral.java <ide> msg.setContent(message, "text/plain"); <ide> if(doIreallyWantToSpam){ <ide> Transport.send(msg); <add> assertTrue(doIreallyWantToSpam); <ide> } <ide> } catch (AddressExcep...
JavaScript
apache-2.0
85700a0c2aa1e49fab26a9764613811874145218
0
Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix
/* Copyright 2017 Infor * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
src/Views/Attachment/ViewAttachment.js
/* Copyright 2017 Infor * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
INFORCRM-21841; INFORCRM-21839: Added zoom functionality to the PDF viewer, viewer now accounts for orientation shifts and window resizing
src/Views/Attachment/ViewAttachment.js
INFORCRM-21841; INFORCRM-21839: Added zoom functionality to the PDF viewer, viewer now accounts for orientation shifts and window resizing
<ide><path>rc/Views/Attachment/ViewAttachment.js <ide> <ide> import declare from 'dojo/_base/declare'; <ide> import domGeo from 'dojo/dom-geometry'; <add>import connect from 'dojo/_base/connect'; <ide> import AttachmentManager from '../../AttachmentManager'; <ide> import Utility from '../../Utility'; <ide> import Deta...
JavaScript
mit
4ab3fd9634d981e24d5cdf0d15c0139112133792
0
prescottprue/react-redux-firebase,prescottprue/react-redux-firebase
import { capitalize } from 'lodash' import { supportedAuthProviders, actionTypes } from '../constants' /** * @description Get correct login method and params order based on provided credentials * @param {object} firebase - Internal firebase object * @param {string} providerName - Name of Auth Provider (i.e. google,...
src/utils/auth.js
import { capitalize } from 'lodash' import { supportedAuthProviders, actionTypes } from '../constants' /** * @description Get correct login method and params order based on provided credentials * @param {object} firebase - Internal firebase object * @param {string} providerName - Name of Auth Provider (i.e. google,...
fix(docs): correct wording of updateProfileOnRTDB param description (#929) - @gregfenton
src/utils/auth.js
fix(docs): correct wording of updateProfileOnRTDB param description (#929) - @gregfenton
<ide><path>rc/utils/auth.js <ide> * @param {object} options - Options object for configuring how profile <ide> * update occurs <ide> * @param {boolean} [options.useSet=true] - Use set with merge instead of <del> * update. Setting to `false` uses update (can cause issue of profile document <add> * update. Setting to ...
Java
apache-2.0
9da816e11e456093bd550a487a3ccfe9ebdc7fa1
0
smrz10/joda-time,smrz10/joda-time,smrz10/joda-time,Guardiola31337/joda-time,smrz10/joda-time,Guardiola31337/joda-time,smrz10/joda-time
package org.joda.time; import java.util.HashMap; public class Pool { private static Pool myInstance; private HashMap<Integer, Object> instances; private Pool() { this.instances = new HashMap<Integer, Object>(); } public static Pool getInstance() { if (myInstance == null) { ...
src/main/java/org/joda/time/Pool.java
package org.joda.time; import java.util.HashMap; public class Pool { private static Pool myInstance; private HashMap<Integer, Object> instances; private Pool() { this.instances = new HashMap<Integer, Object>(); } public static Pool getInstance() { if (myInstance == null) { ...
snapshot at Mon Mar 9 12:11:42 CET 2015
src/main/java/org/joda/time/Pool.java
snapshot at Mon Mar 9 12:11:42 CET 2015
<ide><path>rc/main/java/org/joda/time/Pool.java <ide> Object result = pool.getInstance(numeral); <ide> <ide> if (result == null) { <del> result = new Days(numeral); <add> result = new Minutes(numeral); <ide> pool.add(numeral, (Days) result); <ide> } <ide>
Java
apache-2.0
3353af57e4e86bf9be8f19014f1a6813838cf703
0
psiinon/zap-extensions,thc202/zap-extensions,zaproxy/zap-extensions,zaproxy/zap-extensions,kingthorin/zap-extensions,thc202/zap-extensions,zapbot/zap-extensions,denniskniep/zap-extensions,kingthorin/zap-extensions,veggiespam/zap-extensions,thc202/zap-extensions,psiinon/zap-extensions,zapbot/zap-extensions,psiinon/zap-e...
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP development team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
src/org/zaproxy/zap/extension/pscanrulesAlpha/SourceCodeDisclosureScanner.java
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP development team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
Remove pattern that causes false positives on PHP.
src/org/zaproxy/zap/extension/pscanrulesAlpha/SourceCodeDisclosureScanner.java
Remove pattern that causes false positives on PHP.
<ide><path>rc/org/zaproxy/zap/extension/pscanrulesAlpha/SourceCodeDisclosureScanner.java <ide> static { <ide> //PHP <ide> languagePatterns.put(Pattern.compile("<\\?php\\s*.+?;\\s*\\?>", Pattern.MULTILINE | Pattern.DOTALL), "PHP"); <del> languagePatterns.put(Pattern.compile("phpinfo\\s*\\(\\s*\\)"), "PHP"); <add> ...
Java
mit
error: pathspec 'Java/TopCoder/BritishCoins.java' did not match any file(s) known to git
59cf87c172d41d1d8e7a2cd7532e492dc84f657d
1
dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey
// https://community.topcoder.com/stat?c=problem_statement&pm=1862 public class BritishCoins { public static int[] coins(int pence) { final int PENNIES_IN_SHILLING = 12; final int SHILLINGS_IN_POUND = 20; final int PENNIES_IN_POUND = PENNIES_IN_SHILLING * SHILLINGS_IN_POUND; int pennyCount = 0; int shill...
Java/TopCoder/BritishCoins.java
Create BritishCoins.java
Java/TopCoder/BritishCoins.java
Create BritishCoins.java
<ide><path>ava/TopCoder/BritishCoins.java <add>// https://community.topcoder.com/stat?c=problem_statement&pm=1862 <add> <add>public class BritishCoins { <add> public static int[] coins(int pence) { <add> final int PENNIES_IN_SHILLING = 12; <add> final int SHILLINGS_IN_POUND = 20; <add> final int PENNIES_IN_POUND = P...
Java
apache-2.0
d68f53119eb1e1f9dbd02eddad58bf55a57ba0a2
0
apache/lenya,apache/lenya,apache/lenya,apache/lenya
/* * Copyright 1999-2004 The Apache Software 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 b...
src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java
/* * Copyright 1999-2004 The Apache Software 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 b...
releasing template manager git-svn-id: f6f45834fccde298d83fbef5743c9fd7982a26a3@46109 13f79535-47bb-0310-9956-ffa450edef68
src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java
releasing template manager
<ide><path>rc/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java <ide> import org.apache.avalon.framework.service.ServiceException; <ide> import org.apache.avalon.framework.service.ServiceManager; <ide> import org.apache.avalon.framework.service.Serviceable; <del>import org.apache.avalon.framework.threa...
Java
apache-2.0
1a3497e33a9354ddfae82017702fa83b9bffdb1a
0
geothomasp/kualico-rice-kc,smith750/rice,cniesen/rice,shahess/rice,sonamuthu/rice-1,bhutchinson/rice,ewestfal/rice,UniversityOfHawaiiORS/rice,kuali/kc-rice,bhutchinson/rice,UniversityOfHawaiiORS/rice,shahess/rice,smith750/rice,UniversityOfHawaiiORS/rice,cniesen/rice,bhutchinson/rice,UniversityOfHawaiiORS/rice,smith750/...
/** * Copyright 2005-2012 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl2.php * * Unless requ...
impl/src/main/java/org/kuali/rice/kim/bo/ui/KimDocumentRoleMember.java
/** * Copyright 2005-2012 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl2.php * * Unless requ...
KULRICE-7092 Role add member functionality failed if member id was not populated.
impl/src/main/java/org/kuali/rice/kim/bo/ui/KimDocumentRoleMember.java
KULRICE-7092 Role add member functionality failed if member id was not populated.
<ide><path>mpl/src/main/java/org/kuali/rice/kim/bo/ui/KimDocumentRoleMember.java <ide> */ <ide> package org.kuali.rice.kim.bo.ui; <ide> <add>import org.apache.commons.lang.StringUtils; <ide> import org.hibernate.annotations.GenericGenerator; <ide> import org.hibernate.annotations.Parameter; <ide> import org.kuali.ric...
Java
apache-2.0
db6cb554c3a2454f6d905265765c8861ec4123d7
0
dhirajsb/fabric8,PhilHardwick/fabric8,sobkowiak/fabric8,jludvice/fabric8,ffang/fuse-1,chirino/fabric8v2,jimmidyson/fabric8,mwringe/fabric8,christian-posta/fabric8,jludvice/fabric8,dhirajsb/fuse,jonathanchristison/fabric8,dhirajsb/fuse,punkhorn/fabric8,gashcrumb/fabric8,chirino/fuse,rnc/fabric8,joelschuster/fuse,avano/f...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
fabric/fabric-zookeeper/src/main/java/org/fusesource/fabric/zookeeper/curator/ManagedCuratorFramework.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
Fix #257: Unregister the CuratorFramework service whenever the connection is completely lost
fabric/fabric-zookeeper/src/main/java/org/fusesource/fabric/zookeeper/curator/ManagedCuratorFramework.java
Fix #257: Unregister the CuratorFramework service whenever the connection is completely lost
<ide><path>abric/fabric-zookeeper/src/main/java/org/fusesource/fabric/zookeeper/curator/ManagedCuratorFramework.java <ide> import java.io.IOException; <ide> import java.lang.reflect.Field; <ide> import java.util.HashSet; <add>import java.util.List; <ide> import java.util.Map; <ide> import java.util.Set; <add>import jav...
Java
mit
2a360982d0c47bd30d75b90fbbfa060142e31fe9
0
URMC/urHL7
/* * The MIT License * * Copyright (c) 2012 David Morgan, University of Rochester Medical Center * * 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 withou...
src/main/java/org/urhl7/spark/SparkFileReader.java
/* * The MIT License * * Copyright (c) 2012 David Morgan, University of Rochester Medical Center * * 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 withou...
Added gzip support in SparkFileReader
src/main/java/org/urhl7/spark/SparkFileReader.java
Added gzip support in SparkFileReader
<ide><path>rc/main/java/org/urhl7/spark/SparkFileReader.java <ide> <ide> import java.io.*; <ide> import org.urhl7.igor.Igor; <add>import java.util.zip.*; <ide> <ide> /** <ide> * A simple HL7 File reader that will use an event driven model that fires on each parsing of a message in the file. <ide> this.listen...
JavaScript
mit
c1c90ee2a87ad7c8086310c718871bbca05ac343
0
jurrish/hangman_project,jurrish/hangman_project
var questionsArray = []; var promptArray = [ 'What is the return value of wallOne?', 'What\'s the importance of updateMessage(); ?', 'Which is correct about the following diagram?', 'What is the name of the folder that the stylesheet is saved in?', 'What would the method return if the value of name was changed?', ...
game_page/game_page.js
var questionsArray = []; var promptArray = [ 'What is the return value of wallOne?', 'What\'s the importance of updateMessage(); ?', 'Which is correct about the following diagram?', 'What is the name of the folder that the stylesheet is saved in?', 'What would the method return if the value of name was changed?', ...
Added a few comments.
game_page/game_page.js
Added a few comments.
<ide><path>ame_page/game_page.js <ide> context.stroke(); <ide> }, <ide> leftArm: function() { <add> //left arm <ide> var xLeftArm = canvas.width / 1.49; <ide> var yLeftArm = canvas.height / 1.4; <ide> var armLeftRadius = 85; <ide> context.stroke(); <ide> }, <ide> gameOver: function(){ <ad...
Java
lgpl-2.1
56e449f67f127ddd35962acd92154d3b708b3be8
0
justincc/intermine,kimrutherford/intermine,joshkh/intermine,joshkh/intermine,JoeCarlson/intermine,tomck/intermine,zebrafishmine/intermine,kimrutherford/intermine,elsiklab/intermine,zebrafishmine/intermine,kimrutherford/intermine,Arabidopsis-Information-Portal/intermine,Arabidopsis-Information-Portal/intermine,kimruther...
package org.intermine.webservice.server.widget; /* * Copyright (C) 2002-2014 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/cop...
intermine/web/main/src/org/intermine/webservice/server/widget/WidgetsServiceInput.java
package org.intermine.webservice.server.widget; /* * Copyright (C) 2002-2014 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/cop...
Added a helpful toString
intermine/web/main/src/org/intermine/webservice/server/widget/WidgetsServiceInput.java
Added a helpful toString
<ide><path>ntermine/web/main/src/org/intermine/webservice/server/widget/WidgetsServiceInput.java <ide> return extraAttribute; <ide> } <ide> <add> @Override <add> public String toString() { <add> return String.format( <add> "WidgetServiceInput(" <add> + "widgetId = %s,...
Java
apache-2.0
f3bbdacd0488106a5a3ff74d14aef9c3d231b3c2
0
aosp-mirror/platform_frameworks_support,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,aosp-mirror/platform_frameworks_support,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,aosp-m...
/* * Copyright (C) 2013 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...
v4/java/android/support/v4/widget/SwipeRefreshLayout.java
/* * Copyright (C) 2013 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...
am f076ce0e: am b4ac9016: Merge "Use the negative measured height as the starting offset of the progress view" into lmp-dev * commit 'f076ce0ef9b8374d617841a8b3e921925153c96d': Use the negative measured height as the starting offset of the progress view
v4/java/android/support/v4/widget/SwipeRefreshLayout.java
am f076ce0e: am b4ac9016: Merge "Use the negative measured height as the starting offset of the progress view" into lmp-dev
<ide><path>4/java/android/support/v4/widget/SwipeRefreshLayout.java <ide> private float mTotalDragDistance = -1; <ide> private int mMediumAnimationDuration; <ide> private int mCurrentTargetOffsetTop; <add> // Whether or not the starting offset has been determined. <add> private boolean mOriginalOffset...
Java
mit
c09f0b9f1af6a449ef9fb89a516231563116fbc5
0
Narentharaa/evnts,naren-vivek/evnts
package com.code.hacks.codered.evnts.evnts.fragments; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android...
app/src/main/java/com/code/hacks/codered/evnts/evnts/fragments/HomeFragment.java
package com.code.hacks.codered.evnts.evnts.fragments; import android.content.Context; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget...
Events REST call
app/src/main/java/com/code/hacks/codered/evnts/evnts/fragments/HomeFragment.java
Events REST call
<ide><path>pp/src/main/java/com/code/hacks/codered/evnts/evnts/fragments/HomeFragment.java <ide> package com.code.hacks.codered.evnts.evnts.fragments; <ide> <ide> import android.content.Context; <del>import android.os.AsyncTask; <ide> import android.os.Bundle; <ide> import android.support.annotation.Nullable; <ide> im...
JavaScript
mit
02566e8744f599be5fbcb1462f4872a421281217
0
hustcer/star
#!/usr/bin/env node /** * @author hustcer * @license MIT * @copyright TraceInvest.com * @create 05/18/2015 */ "use strict"; let _ = require('lodash'), colors = require('colors'), Promise = require('bluebird'), cmd = require('commander'); const pkg = require('./package.js...
star.js
#!/usr/bin/env node --harmony /** * @author hustcer * @license MIT * @copyright TraceInvest.com * @create 05/18/2015 */ "use strict"; let _ = require('lodash'), colors = require('colors'), Promise = require('bluebird'), cmd = require('commander'); const pkg = require('./...
Remove harmony flag
star.js
Remove harmony flag
<ide><path>tar.js <del>#!/usr/bin/env node --harmony <add>#!/usr/bin/env node <ide> <ide> /** <ide> * @author hustcer
JavaScript
mit
8b93288b441b078426f62a84b28fd922ba5188b3
0
yitzchak/ouroboros,yitzchak/dicy,yitzchak/dicy,yitzchak/dicy,yitzchak/ouroboros
/* @flow */ import path from 'path' import commandJoin from 'command-join' import State from './State' import File from './File' import StateConsumer from './StateConsumer' import type { Action, Command, Phase, CommandOptions } from './types' export default class Rule extends StateConsumer { static fileTypes: Set...
packages/core/src/Rule.js
/* @flow */ import path from 'path' import commandJoin from 'command-join' import State from './State' import File from './File' import StateConsumer from './StateConsumer' import type { Action, Command, Phase, CommandOptions } from './types' export default class Rule extends StateConsumer { static fileTypes: Set...
Reset failure flag on input change
packages/core/src/Rule.js
Reset failure flag on input change
<ide><path>ackages/core/src/Rule.js <ide> for (const action of await this.getFileActions(file)) { <ide> if (action === 'updateDependencies' || ruleNeedsUpdate) { <ide> this.addAction(file, action) <add> // Clear the failure flag since an input update has happened <add> this.suc...
Java
apache-2.0
3934742bdbd046ce0ca9f860b7207b9785fd7fe7
0
balazs-zsoldos/querydsl,robertandrewbain/querydsl,mosoft521/querydsl,attila-kiss-it/querydsl,gordski/querydsl,lpandzic/querydsl,robertandrewbain/querydsl,johnktims/querydsl,mdiazf/querydsl,tomforster/querydsl,Log10Solutions/querydsl,querydsl/querydsl,vveloso/querydsl,attila-kiss-it/querydsl,mdiazf/querydsl,izeye/queryd...
/* * Copyright 2011, Mysema Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writin...
querydsl-sql/src/main/java/com/mysema/query/sql/types/BooleanType.java
/* * Copyright 2011, Mysema Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writin...
Added support to read boolean values in databases which do not have boolean type.
querydsl-sql/src/main/java/com/mysema/query/sql/types/BooleanType.java
Added support to read boolean values in databases which do not have boolean type.
<ide><path>uerydsl-sql/src/main/java/com/mysema/query/sql/types/BooleanType.java <ide> <ide> @Override <ide> public Boolean getValue(ResultSet rs, int startIndex) throws SQLException { <del> Object value = rs.getObject(startIndex); <del> return value instanceof Boolean ? (Boolean)value : null; <a...
Java
apache-2.0
4e592324a73ec9af4762a8bb26176d2258dbf720
0
mylog00/flink,mtunique/flink,rmetzger/flink,apache/flink,jinglining/flink,mbode/flink,wwjiang007/flink,godfreyhe/flink,lincoln-lil/flink,haohui/flink,godfreyhe/flink,darionyaphet/flink,fanzhidongyzby/flink,hequn8128/flink,fhueske/flink,WangTaoTheTonic/flink,mtunique/flink,greghogan/flink,gyfora/flink,sunjincheng121/fli...
/* * 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 ...
flink-runtime/src/main/java/org/apache/flink/runtime/util/SignalHandler.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 ...
[FLINK-3100] signal handler prints error on normal shutdown of cluster
flink-runtime/src/main/java/org/apache/flink/runtime/util/SignalHandler.java
[FLINK-3100] signal handler prints error on normal shutdown of cluster
<ide><path>link-runtime/src/main/java/org/apache/flink/runtime/util/SignalHandler.java <ide> */ <ide> @Override <ide> public void handle(Signal signal) { <del> LOG.error("RECEIVED SIGNAL " + signal.getNumber() + ": SIG" + signal.getName()); <del> LOG.error("This JVM will shut down because it was killed from ...
Java
epl-1.0
14ee0889a5159a0413fde32b4b368c8c614ef5af
0
css-iter/cs-studio,ESSICS/cs-studio,css-iter/cs-studio,ESSICS/cs-studio,ControlSystemStudio/cs-studio,ControlSystemStudio/cs-studio,ESSICS/cs-studio,ControlSystemStudio/cs-studio,ControlSystemStudio/cs-studio,ControlSystemStudio/cs-studio,ESSICS/cs-studio,ESSICS/cs-studio,ESSICS/cs-studio,css-iter/cs-studio,css-iter/cs...
package org.csstudio.diag.pvutil.view; import org.csstudio.diag.pvutil.gui.GUI; import org.csstudio.diag.pvutil.model.PVUtilModel; import org.csstudio.platform.logging.CentralLogger; import org.csstudio.platform.model.IFrontEndControllerName; import org.csstudio.platform.model.IProcessVariable; import org.csstudio.pla...
products/SNS/plugins/org.csstudio.diag.pvutil/src/org/csstudio/diag/pvutil/view/PVUtilView.java
package org.csstudio.diag.pvutil.view; import org.csstudio.diag.pvutil.gui.GUI; import org.csstudio.diag.pvutil.model.PVUtilModel; import org.csstudio.platform.logging.CentralLogger; import org.csstudio.platform.model.IFrontEndControllerName; import org.csstudio.platform.model.IProcessVariable; import org.csstudio.pla...
Small fix
products/SNS/plugins/org.csstudio.diag.pvutil/src/org/csstudio/diag/pvutil/view/PVUtilView.java
Small fix
<ide><path>roducts/SNS/plugins/org.csstudio.diag.pvutil/src/org/csstudio/diag/pvutil/view/PVUtilView.java <ide> <ide> private void setPVFilter(final String pv_name) <ide> { <del> gui.getPVFilterText().setText(pv_name); <add> gui.getDeviceFilterText().setText(""); <add> model.setFECFilter(...
Java
apache-2.0
043a7dfba5525022687f980d799b22d0bb794c27
0
jtablesaw/tablesaw,jtablesaw/tablesaw,jtablesaw/tablesaw
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
core/src/main/java/tech/tablesaw/io/DataFrameReader.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Fix bad javadoc reference
core/src/main/java/tech/tablesaw/io/DataFrameReader.java
Fix bad javadoc reference
<ide><path>ore/src/main/java/tech/tablesaw/io/DataFrameReader.java <ide> /** <ide> * Reads the given URL into a table using default options <ide> * Uses appropriate converter based on mime-type <del> * Use {@link #withOptions(ReadOptions) withOptions} to use non-default options <add> * Use {@link ...
Java
apache-2.0
e1353ed025faceead5f32153b2206b21ef429d49
0
zetbaitsu/Address_Book
package com.zelory.kace.adressbook.ui; import com.zelory.kace.adressbook.data.model.Person; import javax.swing.*; import javax.swing.text.AttributeSet; import javax.swing.text.BadLocationException; import javax.swing.text.DocumentFilter; import javax.swing.text.PlainDocument; import java.awt.*; public class PersonDe...
src/com/zelory/kace/adressbook/ui/PersonDetailDialog.java
package com.zelory.kace.adressbook.ui; import com.zelory.kace.adressbook.data.model.Person; import javax.swing.*; import java.awt.*; public class PersonDetailDialog extends JDialog { private JTextField firsNameField; private JTextField lastNameField; private JTextField addressField; private JTextFiel...
Phone number nomor doank :v
src/com/zelory/kace/adressbook/ui/PersonDetailDialog.java
Phone number nomor doank :v
<ide><path>rc/com/zelory/kace/adressbook/ui/PersonDetailDialog.java <ide> import com.zelory.kace.adressbook.data.model.Person; <ide> <ide> import javax.swing.*; <add>import javax.swing.text.AttributeSet; <add>import javax.swing.text.BadLocationException; <add>import javax.swing.text.DocumentFilter; <add>import javax.s...
Java
mit
176921aeae7c8121aee53e0de7fb475f58d5aef1
0
30days-tech/android
package com.thirtydays.common.util; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by chenxiaojin on 2017/9/13. * 验证工具类 */ public class ValidateUtil { /** * 检查手机号码是否合法 * * @param mobileNumber 要检查的手机号码 * @return true合法,false不合法 */ public static boole...
公共组件/common/src/main/java/com/thirtydays/common/util/ValidateUtil.java
package com.thirtydays.common.util; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by chenxiaojin on 2017/9/13. * 验证工具类 */ public class ValidateUtil { /** * 检查手机号码是否合法 * * @param mobileNumber 要检查的手机号码 * @return true合法,false不合法 */ public static boole...
修改工具类
公共组件/common/src/main/java/com/thirtydays/common/util/ValidateUtil.java
修改工具类
<ide><path>共组件/common/src/main/java/com/thirtydays/common/util/ValidateUtil.java <ide> } <ide> return isEmail; <ide> } <add> <add> /** <add> * 判断是否符合身份证号码的规范 <add> * <add> * @param idCard 身份证号码 <add> * @return <add> */ <add> public static boolean isIDCard(String idCard) { <...
Java
apache-2.0
962cc62131b8551da6a8e118eebd52df84d6c76a
0
duke-compsci290-spring2016/sakai,kingmook/sakai,duke-compsci290-spring2016/sakai,kingmook/sakai,colczr/sakai,kwedoff1/sakai,ktakacs/sakai,kwedoff1/sakai,rodriguezdevera/sakai,duke-compsci290-spring2016/sakai,surya-janani/sakai,rodriguezdevera/sakai,bzhouduke123/sakai,frasese/sakai,colczr/sakai,clhedrick/sakai,ktakacs/s...
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation. * * Licensed under the Educational Community License, Version 1.0 ...
site-manage/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation. * * Licensed under the Educational Community License, Version 1.0 ...
fix to SAK-12948:SiteAction: Nullpointer exception always generated by a specific part of the code and a two other minor issues [Static code review] git-svn-id: 19a9fd284f7506c72ea2840aac2b5d740703d7e8@41227 66ffb92e-73f9-0310-93c1-f5514f145a0a
site-manage/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
fix to SAK-12948:SiteAction: Nullpointer exception always generated by a specific part of the code and a two other minor issues [Static code review]
<ide><path>ite-manage/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java <ide> .split("\r\n"); <ide> <ide> for (i = 0; i < officialAccountArray.length; i++) { <del> String officialAccount = StringUtil <del> .trimToNull(officialAccountArray[i].replaceAll( <del> "[\t\r\n]", ...
Java
lgpl-2.1
d1c79b49ad66ed1aebf3261d717923d8ca8c57e0
0
spotbugs/spotbugs,KengoTODA/spotbugs,johnscancella/spotbugs,KengoTODA/spotbugs,KengoTODA/spotbugs,spotbugs/spotbugs,sewe/spotbugs,sewe/spotbugs,spotbugs/spotbugs,KengoTODA/spotbugs,spotbugs/spotbugs,johnscancella/spotbugs,spotbugs/spotbugs,johnscancella/spotbugs,sewe/spotbugs,johnscancella/spotbugs,sewe/spotbugs
/* * FindBugs - Find bugs in Java programs * Copyright (C) 2003, University of Maryland * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (...
findbugs/src/java/edu/umd/cs/findbugs/detect/InitializationChain.java
/* * FindBugs - Find bugs in Java programs * Copyright (C) 2003, University of Maryland * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (...
Removed useless debugging info git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@906 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
findbugs/src/java/edu/umd/cs/findbugs/detect/InitializationChain.java
Removed useless debugging info
<ide><path>indbugs/src/java/edu/umd/cs/findbugs/detect/InitializationChain.java <ide> public void sawOpcode(int seen) { <ide> <ide> <del> if (seen == PUTSTATIC) <del> System.out.println("Saw putstatic " + nameConstant); <ide> if (seen == PUTSTATIC && classConstant.equals(className)) { <ide> if (instan...
Java
mit
6e5c441403b722fb3f2758996b9b67c6846a9beb
0
DemigodsRPG/Demigods3
package com.censoredsoftware.Demigods.Episodes.Demo.Deity.Insignian; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.block.BlockFace; import org.bukkit.entity.Player;...
src/main/java/com/censoredsoftware/Demigods/Episodes/Demo/Deity/Insignian/OmegaX17.java
package com.censoredsoftware.Demigods.Episodes.Demo.Deity.Insignian; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.block.BlockFace; import org.bukkit.entity.Player;...
The logical conclusion.
src/main/java/com/censoredsoftware/Demigods/Episodes/Demo/Deity/Insignian/OmegaX17.java
The logical conclusion.
<ide><path>rc/main/java/com/censoredsoftware/Demigods/Episodes/Demo/Deity/Insignian/OmegaX17.java <ide> class SplosionWalking extends Ability <ide> { <ide> private static String deity = "OmegaX17", name = "Explosion Walking", command = null, permission = "demigods.insignian.omega"; <del> private static int cost = 0, d...
JavaScript
mit
e3d6d6c3ae34e5e4c5dcd09cee62ae7c1deca545
0
PetrHeinz/gods-play,PetrHeinz/gods-play
const MENU_OFFSET = 10 const MENU_INFO_TEXT_MARGIN = 5 const MENU_INFO_TEXT_WIDTH = 400 export default class MenuInterface { /** * @param {PIXI.Container} stage * @param {Game} game */ constructor (stage, game) { /** @type {PIXI.Container} */ this.stage = stage /** @type {Game} */ this.ga...
src/Interface/MenuInterface.js
const MENU_OFFSET = 10 const MENU_INFO_TEXT_MARGIN = 5 const MENU_INFO_TEXT_WIDTH = 400 export default class MenuInterface { /** * @param {PIXI.Container} stage * @param {Game} game */ constructor (stage, game) { /** @type {PIXI.Container} */ this.stage = stage /** @type {Game} */ this.ga...
MenuInterface refactoring: extraction of private methods from updateGameState
src/Interface/MenuInterface.js
MenuInterface refactoring: extraction of private methods from updateGameState
<ide><path>rc/Interface/MenuInterface.js <ide> <ide> /** @type {PIXI.Text[]} */ <ide> this.statusTexts = [] <add> <add> /** @type {number} */ <add> this.textOffset = 0 <ide> } <ide> <ide> initialize () { <ide> }) <ide> <ide> this.statusTexts = [] <del> let textsHeight = MENU_OFFSET + sel...
Java
lgpl-2.1
53d58f9d403804f2dc5738ce18f8d9dc7fac0258
0
mbatchelor/pentaho-platform-plugin-reporting,mbatchelor/pentaho-platform-plugin-reporting,mbatchelor/pentaho-platform-plugin-reporting
package org.pentaho.reporting.platform.plugin.cache; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheException; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Ehcache; import net.sf.ehcache.E...
src/org/pentaho/reporting/platform/plugin/cache/DefaultReportCache.java
package org.pentaho.reporting.platform.plugin.cache; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheException; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Ehcache; import net.sf.ehcache.E...
[BISERVER-5566] only add logout listener once
src/org/pentaho/reporting/platform/plugin/cache/DefaultReportCache.java
[BISERVER-5566] only add logout listener once
<ide><path>rc/org/pentaho/reporting/platform/plugin/cache/DefaultReportCache.java <ide> <ide> public DefaultReportCache() <ide> { <add> PentahoSystem.addLogoutListener(new LogoutHandler()); <ide> } <ide> <ide> public ReportOutputHandler get(final ReportCacheKey key) <ide> logger.debug("id: " + sess...
Java
apache-2.0
50a7e7c79448a73858333a94a376a150b1c81a95
0
kunallimaye/optaplanner,eshen1991/optaplanner,oskopek/optaplanner,DieterDePaepe/optaplanner,bernardator/optaplanner,kunallimaye/optaplanner,codeaudit/optaplanner,glamperi/optaplanner,codeaudit/optaplanner,droolsjbpm/optaplanner,glamperi/optaplanner,tomasdavidorg/optaplanner,gsheldon/optaplanner,netinept/Court-Scheduler...
/* * Copyright 2012 JBoss 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 i...
drools-planner-core/src/main/java/org/drools/planner/core/heuristic/selector/move/generic/chained/ChainedSwapMove.java
/* * Copyright 2012 JBoss 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 i...
simplify field names (remove "planning" prefix)
drools-planner-core/src/main/java/org/drools/planner/core/heuristic/selector/move/generic/chained/ChainedSwapMove.java
simplify field names (remove "planning" prefix)
<ide><path>rools-planner-core/src/main/java/org/drools/planner/core/heuristic/selector/move/generic/chained/ChainedSwapMove.java <ide> <ide> // TODO DRY with ChainedChangeMove <ide> public void doChainedMove(ScoreDirector scoreDirector, PlanningVariableDescriptor variableDescriptor, <del> Object pla...
Java
lgpl-2.1
be6b77af464f1ae157cbe4a70a65d05dcbc80750
0
mbenz89/soot,cfallin/soot,anddann/soot,mbenz89/soot,mbenz89/soot,xph906/SootNew,xph906/SootNew,plast-lab/soot,anddann/soot,plast-lab/soot,cfallin/soot,anddann/soot,cfallin/soot,xph906/SootNew,plast-lab/soot,cfallin/soot,mbenz89/soot,anddann/soot,xph906/SootNew
/* Soot - a J*va Optimization Framework * Copyright (C) 1997-2000 Etienne Gagnon. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
src/soot/jimple/toolkits/typing/integer/ConstraintCollector.java
/* Soot - a J*va Optimization Framework * Copyright (C) 1997-2000 Etienne Gagnon. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
simplified the constraint collector for integer types to also handle dynamic invoke expressions in response to #225
src/soot/jimple/toolkits/typing/integer/ConstraintCollector.java
simplified the constraint collector for integer types to also handle dynamic invoke expressions in response to #225
<ide><path>rc/soot/jimple/toolkits/typing/integer/ConstraintCollector.java <ide> import soot.jimple.InstanceFieldRef; <ide> import soot.jimple.InstanceOfExpr; <ide> import soot.jimple.IntConstant; <del>import soot.jimple.InterfaceInvokeExpr; <ide> import soot.jimple.InvokeExpr; <ide> import soot.jimple.InvokeStmt; <ide...
Java
apache-2.0
a06c49e2f55e7844cee972adafa9f63d9795f11a
0
jordancheah/oryx,SwathiMystery/oryx,feynmanliang/oryx,ChuyuHsu/oryx,OryxProject/oryx,chen0031/oryx,srowen/oryx,nvoron23/oryx,OryxProject/oryx,nvoron23/oryx,SevenYoung/oryx,brummell/oryx,dsdinter/oryx,oncewang/oryx2,jordancheah/oryx,dsdinter/oryx,chen0031/oryx,ChuyuHsu/oryx,SevenYoung/oryx,bikash/oryx-1,brummell/oryx,sr...
/* * Copyright (c) 2014, Cloudera and Intel, Inc. All Rights Reserved. * * Cloudera, Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"). You may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/lic...
oryx-ml/src/main/java/com/cloudera/oryx/ml/MLUpdate.java
/* * Copyright (c) 2014, Cloudera and Intel, Inc. All Rights Reserved. * * Cloudera, Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"). You may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/lic...
Slightly faster trick to materialize and cache RDD
oryx-ml/src/main/java/com/cloudera/oryx/ml/MLUpdate.java
Slightly faster trick to materialize and cache RDD
<ide><path>ryx-ml/src/main/java/com/cloudera/oryx/ml/MLUpdate.java <ide> import java.util.Collection; <ide> import java.util.Collections; <ide> import java.util.HashMap; <add>import java.util.Iterator; <ide> import java.util.List; <ide> import java.util.Map; <ide> import java.util.concurrent.Callable; <ide> import org....
Java
apache-2.0
106529a2362f629aa1ebb6954f1519cc0572ef7b
0
diorcety/intellij-community,gnuhub/intellij-community,ryano144/intellij-community,izonder/intellij-community,semonte/intellij-community,supersven/intellij-community,Lekanich/intellij-community,asedunov/intellij-community,jagguli/intellij-community,izonder/intellij-community,TangHao1987/intellij-community,ibinti/intelli...
/* * Copyright 2000-2010 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
platform/lang-impl/src/com/intellij/execution/impl/RunConfigurable.java
/* * Copyright 2000-2010 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
IDEA-94140 Run Configurations: first configurations of every type is shown below Defaults on creation
platform/lang-impl/src/com/intellij/execution/impl/RunConfigurable.java
IDEA-94140 Run Configurations: first configurations of every type is shown below Defaults on creation
<ide><path>latform/lang-impl/src/com/intellij/execution/impl/RunConfigurable.java <ide> else if (userObject1 == DEFAULTS && userObject2 instanceof ConfigurationType) { <ide> return 1; <ide> } <add> else if (userObject2 == DEFAULTS && userObject1 instanceof ConfigurationType) { <add> ...
JavaScript
mit
e6bf82fba5b3c07c34f05f48a3e287ab06469d02
0
azum4roll/Pokemon-Showdown,azum4roll/Pokemon-Showdown
'use strict'; exports.BattleStatuses = { brn: { inherit: true, onResidual: function (pokemon) { this.damage(pokemon.maxhp / 8); }, }, par: { inherit: true, onModifySpe: function (spe, pokemon) { if (!pokemon.hasAbility('quickfeet')) { return this.chainModify(0.25); } }, }, confusion: { ...
mods/gen6/statuses.js
'use strict'; exports.BattleStatuses = { brn: { inherit: true, onResidual: function (pokemon) { this.damage(pokemon.maxhp / 8); }, }, par: { inherit: true, onModifySpe: function (spe, pokemon) { if (!pokemon.hasAbility('quickfeet')) { return this.chainModify(0.25); } }, }, confusion: { ...
Update Choice-lock mechanics
mods/gen6/statuses.js
Update Choice-lock mechanics
<ide><path>ods/gen6/statuses.js <ide> return false; <ide> }, <ide> }, <add> choicelock: { <add> onBeforeMove: function () {}, <add> }, <ide> };
Java
agpl-3.0
310c038363fe2b244bb8f991a46dc1c7d2b85a7f
0
cryptomator/cryptofs
/******************************************************************************* * Copyright (c) 2016 Sebastian Stenzel and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the accompanying LICENSE.txt. * * Contributors: * Sebastian Stenzel - i...
src/test/java/org/cryptomator/cryptofs/DeleteNonEmptyCiphertextDirectoryIntegrationTest.java
/******************************************************************************* * Copyright (c) 2016 Sebastian Stenzel and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the accompanying LICENSE.txt. * * Contributors: * Sebastian Stenzel - i...
Partially revert 2c0b6d6d1db43c696b4c6bd33f24468a575c41e0
src/test/java/org/cryptomator/cryptofs/DeleteNonEmptyCiphertextDirectoryIntegrationTest.java
Partially revert 2c0b6d6d1db43c696b4c6bd33f24468a575c41e0
<ide><path>rc/test/java/org/cryptomator/cryptofs/DeleteNonEmptyCiphertextDirectoryIntegrationTest.java <ide> private boolean isEmptyCryptoFsDirectory(Path path) { <ide> Predicate<Path> isIgnoredFile = p -> Constants.DIR_ID_FILE.equals(p.getFileName().toString()); <ide> try (Stream<Path> files = Files.list(path)) {...
Java
epl-1.0
e671274bd329927e311a50c7fae2bc320fd15c36
0
sguan-actuate/birt,rrimmana/birt-1,Charling-Huang/birt,Charling-Huang/birt,rrimmana/birt-1,rrimmana/birt-1,sguan-actuate/birt,sguan-actuate/birt,sguan-actuate/birt,rrimmana/birt-1,Charling-Huang/birt,Charling-Huang/birt,sguan-actuate/birt,rrimmana/birt-1,Charling-Huang/birt
/******************************************************************************* * Copyright (c) 2007 Actuate Corporation. * 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 availabl...
chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/StandardChartDataSheet.java
/******************************************************************************* * Copyright (c) 2007 Actuate Corporation. * 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 availabl...
Solution: Start a transaction when opening a Select Data Binding or Filters dialog, so the operations can be canceled.
chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/StandardChartDataSheet.java
Solution: Start a transaction when opening a Select Data Binding or Filters dialog, so the operations can be canceled.
<ide><path>hart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/StandardChartDataSheet.java <ide> <ide> int invokeEditFilter( ) <ide> { <del> ExtendedItemFilterDialog page = new ExtendedItemFilterDialog( getItemHandle( ) ); <del> return page.open( ); <add> ExtendedItemHandle handle =...
Java
apache-2.0
f4df39cc5b8c69e436fb4e134e4864df2141986a
0
moko256/twicalico,moko256/twicalico
/* * Copyright 2017 The twicalico authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
app/src/main/java/com/github/moko256/twicalico/BaseTweetListFragment.java
/* * Copyright 2017 The twicalico authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
replace using method to other having a same functional in Fragment
app/src/main/java/com/github/moko256/twicalico/BaseTweetListFragment.java
replace using method to other having a same functional in Fragment
<ide><path>pp/src/main/java/com/github/moko256/twicalico/BaseTweetListFragment.java <ide> super.getItemOffsets(outRect, view, parent, state); <ide> <ide> int span = ((StaggeredGridLayoutManager.LayoutParams) view.getLayoutParams()).getSpanIndex(); <del> float dens = getCo...
Java
apache-2.0
f590d433f64ba57509f58ae76c7cc7ff5a429cd4
0
apache/uima-uimaj,apache/uima-uimaj,apache/uima-uimaj,apache/uima-uimaj,apache/uima-uimaj
/* * 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")...
uimaj-v3migration-jcas/src/main/java/org/apache/uima/migratev3/jcas/MigrateJCas.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")...
no Jira - change toString to use the no-limit version of list pretty printing git-svn-id: d56ff9e7d7ea0b208561738885f328c1a8397aa6@1797119 13f79535-47bb-0310-9956-ffa450edef68
uimaj-v3migration-jcas/src/main/java/org/apache/uima/migratev3/jcas/MigrateJCas.java
no Jira - change toString to use the no-limit version of list pretty printing
<ide><path>imaj-v3migration-jcas/src/main/java/org/apache/uima/migratev3/jcas/MigrateJCas.java <ide> try { <ide> si(sb); // new line + indent <ide> sb.append("subContainers="); <del> Misc.addElementsToStringBuilder(indent, sb, Misc.setAsList(subContainers), 100, (sbx, i) -> sbx.append(i.id)).app...
Java
apache-2.0
f5cec02835cc2d4709f7999fc71301364b53a02b
0
matthew-compton/Petfinder
package com.ambergleam.petfinder.controller; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget...
app/src/main/java/com/ambergleam/petfinder/controller/PetListFragment.java
package com.ambergleam.petfinder.controller; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget...
Fixed null pointer on rotation during load
app/src/main/java/com/ambergleam/petfinder/controller/PetListFragment.java
Fixed null pointer on rotation during load
<ide><path>pp/src/main/java/com/ambergleam/petfinder/controller/PetListFragment.java <ide> mPetIndex = savedInstanceState.getInt(STATE_PETS_INDEX); <ide> mPetOffset = savedInstanceState.getInt(STATE_PETS_OFFSET); <ide> mImageIndex = savedInstanceState.getInt(STATE_IMAGE_INDEX); <del>...
Java
apache-2.0
b525c4ac74df7752578f976162f790675f3a2efd
0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
/* * Copyright 2016-2018 shardingsphere.io. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
sharding-jdbc/src/main/java/io/shardingsphere/core/jdbc/core/ShardingContext.java
/* * Copyright 2016-2018 shardingsphere.io. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
renew metaData
sharding-jdbc/src/main/java/io/shardingsphere/core/jdbc/core/ShardingContext.java
renew metaData
<ide><path>harding-jdbc/src/main/java/io/shardingsphere/core/jdbc/core/ShardingContext.java <ide> import io.shardingsphere.core.constant.DatabaseType; <ide> import io.shardingsphere.core.exception.ShardingException; <ide> import io.shardingsphere.core.executor.ExecutorEngine; <add>import io.shardingsphere.core.jdbc.met...
Java
mit
0d1b012aff5227a39613be96ef8923d7077fe315
0
andreaslorentzen/Dansk-Datahistorisk-Forening
package app.ddf.danskdatahistoriskforening.helper; import android.media.MediaRecorder; import android.net.Uri; import com.coremedia.iso.boxes.Container; import com.googlecode.mp4parser.FileDataSourceImpl; import com.googlecode.mp4parser.authoring.Movie; import com.googlecode.mp4parser.authoring.Track; import com.goog...
app/src/main/java/app/ddf/danskdatahistoriskforening/helper/AudioRecorder.java
package app.ddf.danskdatahistoriskforening.helper; import android.media.MediaRecorder; import android.net.Uri; import com.coremedia.iso.boxes.Container; import com.googlecode.mp4parser.FileDataSourceImpl; import com.googlecode.mp4parser.authoring.Movie; import com.googlecode.mp4parser.authoring.Track; import com.goog...
#110 reformat finish
app/src/main/java/app/ddf/danskdatahistoriskforening/helper/AudioRecorder.java
#110 reformat finish
<ide><path>pp/src/main/java/app/ddf/danskdatahistoriskforening/helper/AudioRecorder.java <ide> recordedFileMerged.renameTo(new File(LocalMediaStorage.getOutputMediaFileUri(null, LocalMediaStorage.MEDIA_TYPE_AUDIO_RECORD).getPath())); <ide> } <ide> <del> public static MADATA mergeMultipleAudioFile(List<U...
Java
apache-2.0
f808f3646a94e4d523ab7fdf84cd2233ce3787c1
0
simplifyops/cli-toolbelt
/** * <p>Defines a set of commands with subcommands, using annotations to indicate methods to expose as subcommands.</p> * <p>"Commands" represent an invocable named action, with optional arguments. A "Command" may also be a container * for other "Commands" (i.e. "Subcommands"). In that case, the parent "command" i...
toolbelt/src/main/java/com/simplifyops/toolbelt/package-info.java
/** * <p>Defines a set of commands with subcommands, using annotations to indicate methods to expose as subcommands.</p> * <p>"Commands" represent an invocable named action, with optional arguments. A "Command" may also be a container * for other "Commands" (i.e. "Subcommands"). In that case, the parent "command" i...
fix javadoc
toolbelt/src/main/java/com/simplifyops/toolbelt/package-info.java
fix javadoc
<ide><path>oolbelt/src/main/java/com/simplifyops/toolbelt/package-info.java <ide> * For more advanced usage, see below: <ide> * </p> <ide> * <p> <del> * Use {@link com.simplifyops.toolbelt.ToolBelt#belt()} to create a builder. <add> * Use {@link com.simplifyops.toolbelt.ToolBelt#belt(java.lang.String)} to create a b...
Java
isc
fa0d11c27edd5579af7ef290f089d115339a3739
0
j256/simplejmx,j256/simplejmx
package com.j256.simplejmx.server; import com.j256.simplejmx.common.JmxAttributeField; import com.j256.simplejmx.common.JmxAttributeMethod; import com.j256.simplejmx.common.JmxOperation; import com.j256.simplejmx.common.JmxResource; /** * Here's a little example program that was written to show off the basic feature...
src/test/java/com/j256/simplejmx/server/ExampleTestProgram.java
package com.j256.simplejmx.server; import com.j256.simplejmx.common.JmxAttributeField; import com.j256.simplejmx.common.JmxAttributeMethod; import com.j256.simplejmx.common.JmxOperation; import com.j256.simplejmx.common.JmxResource; /** * Here's a little example program that was written to show off the basic feature...
Improved some the names.
src/test/java/com/j256/simplejmx/server/ExampleTestProgram.java
Improved some the names.
<ide><path>rc/test/java/com/j256/simplejmx/server/ExampleTestProgram.java <ide> private void doMain(String[] args) throws Exception { <ide> <ide> // create the object we will be exposing with JMX <del> RuntimeCounter lookupCache = new RuntimeCounter(); <add> RuntimeCounter counter = new RuntimeCounter(); <ide> <...
Java
apache-2.0
c70fa241f5a3f939efbbf16e47a3d4953de27f38
0
zimingd/Synapse-Repository-Services,xschildw/Synapse-Repository-Services,xschildw/Synapse-Repository-Services,zimingd/Synapse-Repository-Services,xschildw/Synapse-Repository-Services,Sage-Bionetworks/Synapse-Repository-Services,Sage-Bionetworks/Synapse-Repository-Services,zimingd/Synapse-Repository-Services,Sage-Bionet...
package org.sagebionetworks.repo.manager.team; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.mockito.Matchers.any; import static org...
services/repository-managers/src/test/java/org/sagebionetworks/repo/manager/team/MembershipInvitationManagerImplTest.java
package org.sagebionetworks.repo.manager.team; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyLong; import static org...
fix MembershipInvitationManagerImplTest
services/repository-managers/src/test/java/org/sagebionetworks/repo/manager/team/MembershipInvitationManagerImplTest.java
fix MembershipInvitationManagerImplTest
<ide><path>ervices/repository-managers/src/test/java/org/sagebionetworks/repo/manager/team/MembershipInvitationManagerImplTest.java <ide> package org.sagebionetworks.repo.manager.team; <ide> <ide> import static org.junit.Assert.assertEquals; <add>import static org.junit.Assert.assertFalse; <ide> import static org.juni...
Java
apache-2.0
31897342017bb84a98c82b534737a91384ceedeb
0
nasa/MCT-Plugins
/******************************************************************************* * Mission Control Technologies, Copyright (c) 2009-2012, United States Government * as represented by the Administrator of the National Aeronautics and Space * Administration. All rights reserved. * * The MCT platform is licensed und...
scenario/src/main/java/gov/nasa/arc/mct/scenario/view/ScenarioView.java
/******************************************************************************* * Mission Control Technologies, Copyright (c) 2009-2012, United States Government * as represented by the Administrator of the National Aeronautics and Space * Administration. All rights reserved. * * The MCT platform is licensed und...
[Scenario] Add borders to Timelines in Scenario view
scenario/src/main/java/gov/nasa/arc/mct/scenario/view/ScenarioView.java
[Scenario] Add borders to Timelines in Scenario view
<ide><path>cenario/src/main/java/gov/nasa/arc/mct/scenario/view/ScenarioView.java <ide> import java.awt.BorderLayout; <ide> import java.awt.Color; <ide> import java.awt.Component; <add>import java.awt.Graphics; <add>import java.awt.Graphics2D; <add>import java.awt.Insets; <add>import java.awt.RenderingHints; <ide> impo...
Java
bsd-3-clause
479ef7b452a594e9423902a00cc5b4c56130e968
0
muloem/xins,muloem/xins,muloem/xins
/* * $Id$ * * Copyright 2003-2005 Wanadoo Nederland B.V. * See the COPYRIGHT file for redistribution and use restrictions. */ package org.xins.tests.common.collections; import java.util.ArrayList; import java.util.Iterator; import java.util.Properties; import org.apache.log4j.PropertyConfigurator; import junit....
src/tests/org/xins/tests/common/collections/ProtectedListTests.java
/* * $Id$ * * Copyright 2003-2005 Wanadoo Nederland B.V. * See the COPYRIGHT file for redistribution and use restrictions. */ package org.xins.tests.common.collections; import java.lang.Exception; import java.util.Iterator; import java.util.Properties; import org.apache.log4j.PropertyConfigurator; import junit....
Improved a great deal.
src/tests/org/xins/tests/common/collections/ProtectedListTests.java
Improved a great deal.
<ide><path>rc/tests/org/xins/tests/common/collections/ProtectedListTests.java <ide> */ <ide> package org.xins.tests.common.collections; <ide> <del>import java.lang.Exception; <add>import java.util.ArrayList; <ide> import java.util.Iterator; <ide> import java.util.Properties; <ide> <ide> import junit.framework.TestCa...
Java
apache-2.0
e82f97e727b3661a2a3c064473d8c5a947146106
0
DevStreet/FinanceAnalytics,DevStreet/FinanceAnalytics,McLeodMoores/starling,McLeodMoores/starling,DevStreet/FinanceAnalytics,jeorme/OG-Platform,nssales/OG-Platform,nssales/OG-Platform,codeaudit/OG-Platform,ChinaQuants/OG-Platform,DevStreet/FinanceAnalytics,jerome79/OG-Platform,ChinaQuants/OG-Platform,codeaudit/OG-Platf...
/** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.web.analytics; import static org.testng.AssertJUnit.assertTrue; import java.util.List; import org.json.JSONException; import org.json.JSONObject; import org....
projects/OG-Web/src/test/java/com/opengamma/web/analytics/ViewportResultsJsonWriterTest.java
/** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.web.analytics; import static org.testng.AssertJUnit.assertTrue; import java.util.List; import org.json.JSONException; import org.json.JSONObject; import org....
[GUI-227] Fix test
projects/OG-Web/src/test/java/com/opengamma/web/analytics/ViewportResultsJsonWriterTest.java
[GUI-227] Fix test
<ide><path>rojects/OG-Web/src/test/java/com/opengamma/web/analytics/ViewportResultsJsonWriterTest.java <ide> List<ResultsCell> results = createResults(NotCalculatedSentinel.EVALUATION_ERROR, history, Double.class); <ide> ViewportResults viewportResults = new ViewportResults(results, _viewportDefinition, createC...
Java
lgpl-2.1
326e8b5903c6e17d46191455dcdf0a578641435e
0
tomazzupan/wildfly,rhusar/wildfly,99sono/wildfly,jstourac/wildfly,xasx/wildfly,jstourac/wildfly,tomazzupan/wildfly,iweiss/wildfly,iweiss/wildfly,99sono/wildfly,99sono/wildfly,pferraro/wildfly,golovnin/wildfly,jstourac/wildfly,golovnin/wildfly,wildfly/wildfly,iweiss/wildfly,jstourac/wildfly,pferraro/wildfly,rhusar/wildf...
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the t...
ee/src/main/java/org/jboss/as/ee/beanvalidation/WildFlyProviderResolver.java
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the t...
Fix permission issue with bean validation
ee/src/main/java/org/jboss/as/ee/beanvalidation/WildFlyProviderResolver.java
Fix permission issue with bean validation
<ide><path>e/src/main/java/org/jboss/as/ee/beanvalidation/WildFlyProviderResolver.java <ide> */ <ide> package org.jboss.as.ee.beanvalidation; <ide> <add>import java.security.PrivilegedAction; <ide> import java.util.Iterator; <ide> import java.util.LinkedList; <ide> import java.util.List; <ide> @Override <ide> ...
Java
mit
d955de22aa6939b6682ebf10e829812b73616048
0
culvertsoft/mgen,culvertsoft/mgen,culvertsoft/mgen,culvertsoft/mgen,culvertsoft/mgen,culvertsoft/mgen
package se.culvertsoft.mgen.javapack.serialization; import static se.culvertsoft.mgen.api.model.BinaryTypeTag.TAG_BOOL; import static se.culvertsoft.mgen.api.model.BinaryTypeTag.TAG_CUSTOM; import static se.culvertsoft.mgen.api.model.BinaryTypeTag.TAG_FLOAT32; import static se.culvertsoft.mgen.api.model.BinaryTypeTag....
mgen-javalib/src/main/java/se/culvertsoft/mgen/javapack/serialization/BinaryWriter.java
package se.culvertsoft.mgen.javapack.serialization; import static se.culvertsoft.mgen.api.model.BinaryTypeTag.TAG_BOOL; import static se.culvertsoft.mgen.api.model.BinaryTypeTag.TAG_CUSTOM; import static se.culvertsoft.mgen.api.model.BinaryTypeTag.TAG_FLOAT32; import static se.culvertsoft.mgen.api.model.BinaryTypeTag....
Added optimized writeStringArray to java binarywriter
mgen-javalib/src/main/java/se/culvertsoft/mgen/javapack/serialization/BinaryWriter.java
Added optimized writeStringArray to java binarywriter
<ide><path>gen-javalib/src/main/java/se/culvertsoft/mgen/javapack/serialization/BinaryWriter.java <ide> case FLOAT64: <ide> writeFloat64Array((double[]) arrayObj, false); <ide> break; <add> case STRING: <add> writeStringArray((String[]) arrayObj, false); <add> break; <ide> default: <ide> write...
Java
mit
6549a0ef31fb05ff62cc8b12f73e594d04f40528
0
Thatsmusic99/HeadsPlus
package io.github.thatsmusic99.headsplus.commands.maincommand; import io.github.thatsmusic99.headsplus.HeadsPlus; import io.github.thatsmusic99.headsplus.api.HPPlayer; import io.github.thatsmusic99.headsplus.commands.CommandInfo; import io.github.thatsmusic99.headsplus.commands.IHeadsPlusCommand; import io.github.that...
src/main/java/io/github/thatsmusic99/headsplus/commands/maincommand/DebugPrint.java
package io.github.thatsmusic99.headsplus.commands.maincommand; import io.github.thatsmusic99.headsplus.HeadsPlus; import io.github.thatsmusic99.headsplus.api.HPPlayer; import io.github.thatsmusic99.headsplus.commands.CommandInfo; import io.github.thatsmusic99.headsplus.commands.IHeadsPlusCommand; import io.github.that...
Something trying to fix that other issue, just because
src/main/java/io/github/thatsmusic99/headsplus/commands/maincommand/DebugPrint.java
Something trying to fix that other issue, just because
<ide><path>rc/main/java/io/github/thatsmusic99/headsplus/commands/maincommand/DebugPrint.java <ide> int slot = player.getInventory().getHeldItemSlot(); <ide> // lmao who needs getItemInMainHand <ide> ItemStack it...
Java
mit
69f1c43ae6b73f70963d20069b2e8e993db68418
0
CS2103JAN2017-W15-B4/main,CS2103JAN2017-W15-B4/main
package seedu.geekeep.storage; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlElement; import seedu.geekeep.commons.exceptions.IllegalValueException; import seedu.geekeep.model.tag.Tag; import seedu.geekeep.model.tag.UniqueTagList; import seedu.geekeep.model.task.DateTime; imp...
src/main/java/seedu/geekeep/storage/XmlAdaptedTask.java
package seedu.geekeep.storage; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlElement; import seedu.geekeep.commons.exceptions.IllegalValueException; import seedu.geekeep.model.tag.Tag; import seedu.geekeep.model.tag.UniqueTagList; import seedu.geekeep.model.task.DateTime; imp...
Support null value in field of XmlAdaptedTask
src/main/java/seedu/geekeep/storage/XmlAdaptedTask.java
Support null value in field of XmlAdaptedTask
<ide><path>rc/main/java/seedu/geekeep/storage/XmlAdaptedTask.java <ide> */ <ide> public XmlAdaptedTask(ReadOnlyTask source) { <ide> title = source.getTitle().fullTitle; <del> endDateTime = source.getEndDateTime().value; <del> startDateTime = source.getStartDateTime().value; <del> l...
Java
bsd-3-clause
f16887f6c2f77fefeee66bc1757ac81c581a3bee
0
pgesek/motech,pgesek/motech,pgesek/motech,pgesek/motech
package org.motechproject.tasks.service.impl; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.MapUtils; import org.motechproject.commons.api.DataProvider; import org.motechproject.commons.api.TasksEventParser; import org.motechproject.event.MotechEvent; import org.motechpro...
modules/tasks/tasks/src/main/java/org/motechproject/tasks/service/impl/TaskTriggerHandler.java
package org.motechproject.tasks.service.impl; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.MapUtils; import org.motechproject.commons.api.DataProvider; import org.motechproject.commons.api.TasksEventParser; import org.motechproject.event.MotechEvent; import org.motechpro...
MOTECH-3138: Fixed multiple handling one task.
modules/tasks/tasks/src/main/java/org/motechproject/tasks/service/impl/TaskTriggerHandler.java
MOTECH-3138: Fixed multiple handling one task.
<ide><path>odules/tasks/tasks/src/main/java/org/motechproject/tasks/service/impl/TaskTriggerHandler.java <ide> * @param task the given task. <ide> * @param eventParameters parameters from the given event <ide> */ <del> private void checkAndHandleTask(Task task, Map<String, Object> eventParameters) { <...
Java
apache-2.0
13ebf1eee3fa27f8e0cc47729cd60fca3bbd05c6
0
passion1014/metaworks_framework,cengizhanozcan/BroadleafCommerce,trombka/blc-tmp,caosg/BroadleafCommerce,liqianggao/BroadleafCommerce,caosg/BroadleafCommerce,zhaorui1/BroadleafCommerce,cloudbearings/BroadleafCommerce,shopizer/BroadleafCommerce,cengizhanozcan/BroadleafCommerce,wenmangbo/BroadleafCommerce,rawbenny/Broadl...
/* * #%L * BroadleafCommerce Common Libraries * %% * Copyright (C) 2009 - 2013 Broadleaf Commerce * %% * 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...
common/src/main/java/org/broadleafcommerce/common/util/BLCCollectionUtils.java
/* * #%L * BroadleafCommerce Common Libraries * %% * Copyright (C) 2009 - 2013 Broadleaf Commerce * %% * 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...
Add collectArray method
common/src/main/java/org/broadleafcommerce/common/util/BLCCollectionUtils.java
Add collectArray method
<ide><path>ommon/src/main/java/org/broadleafcommerce/common/util/BLCCollectionUtils.java <ide> return CollectionUtils.collect(inputCollection, transformer); <ide> } <ide> <add> /** <add> * The same as {@link #collect(Collection, TypedTransformer)} but returns an ArrayList <add> * @param inputCol...
Java
apache-2.0
e1d36c75cba9411753a18c5705683890ca423ca9
0
idea4bsd/idea4bsd,idea4bsd/idea4bsd,fengbaicanhe/intellij-community,slisson/intellij-community,da1z/intellij-community,robovm/robovm-studio,allotria/intellij-community,kdwink/intellij-community,robovm/robovm-studio,alphafoobar/intellij-community,MichaelNedzelsky/intellij-community,samthor/intellij-community,vvv1559/int...
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
platform/lang-impl/src/com/intellij/find/impl/FindInProjectTask.java
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
log most frequent unknown extensions only if indices were used (IDEA-121444)
platform/lang-impl/src/com/intellij/find/impl/FindInProjectTask.java
log most frequent unknown extensions only if indices were used (IDEA-121444)
<ide><path>latform/lang-impl/src/com/intellij/find/impl/FindInProjectTask.java <ide> <ide> myProgress.setIndeterminate(true); <ide> myProgress.setText("Scanning non-indexed files..."); <del> final Collection<PsiFile> otherFiles = collectFilesInScope(filesForFastWordSearch); <add> boolean skipInde...
Java
lgpl-2.1
f3a0cf90ad4e7e76088e008f219953ad00fe5adf
0
SimonKagstrom/cibyl,SimonKagstrom/cibyl,SimonKagstrom/cibyl,SimonKagstrom/cibyl,SimonKagstrom/cibyl
/* From the optimized fread by Ehud Shabtai */ public static final int NOPH_InputStream_read_into(int obj, int ptr, int size, int eof_addr) throws Exception { InputStream is = (InputStream)CRunTime.objectRepository[obj]; int count = 0; byte[] buff = new byte[size]; try { int r = is.read(buff); if (r <...
syscalls/java/implementation/NOPH_InputStream_read_into.java
/* From the optimized fread by Ehud Shabtai */ public static final int NOPH_InputStream_read_into(int obj, int ptr, int size, int eof_addr) throws Exception { InputStream is = (InputStream)CRunTime.objectRepository[__obj]; int count = 0; byte[] buff = new byte[size]; try { int r = is.read(buff); if (r...
Compile fixes, return count
syscalls/java/implementation/NOPH_InputStream_read_into.java
Compile fixes, return count
<ide><path>yscalls/java/implementation/NOPH_InputStream_read_into.java <ide> /* From the optimized fread by Ehud Shabtai */ <ide> public static final int NOPH_InputStream_read_into(int obj, int ptr, int size, int eof_addr) throws Exception <ide> { <del> InputStream is = (InputStream)CRunTime.objectRepository[__obj]; <...
JavaScript
mit
5d128ec4c4a6c0a0cd25bd6571e28afecaef7a7c
0
redaktor/rdflib.js,timbl/rdflib.js,ariutta/rdflib.js,redaktor/rdflib.js,nicola/rdflib.js,ariutta/rdflib.js,timbl/rdflib.js,nicola/rdflib.js,timbl/rdflib.js,ariutta/rdflib.js
/** * @fileoverview * RDF/XML PARSER * * Version 0.1 * Parser believed to be in full positive RDF/XML parsing compliance * with the possible exception of handling deprecated RDF attributes * appropriately. Parser is believed to comply fully with other W3C * and industry standards where appropriate (DOM, EC...
rdfparser.js
/** * @fileoverview * RDF/XML PARSER * * Version 0.1 * Parser believed to be in full positive RDF/XML parsing compliance * with the possible exception of handling deprecated RDF attributes * appropriately. Parser is believed to comply fully with other W3C * and industry standards where appropriate (DOM, EC...
Support the DOM tree generated by the node.js package xmldom
rdfparser.js
Support the DOM tree generated by the node.js package xmldom
<ide><path>dfparser.js <ide> frame = frame.parent; <ide> dom = frame.element; <ide> } <del> var candidate = dom.childNodes[frame.lastChild]; <add> var candidate = dom.childNodes && dom.childNodes[frame.lastChild]; <ide> ...
Java
bsd-3-clause
5c889b41dd9390989e56b959745df94125de6fdc
0
irfanah/jbehave-core,mestihudson/jbehave-core,gmandnepr/jbehave-core,donsenior/jbehave-core,kops/jbehave-core,skundrik/jbehave-core,jbehave/jbehave-core,codehaus/jbehave-core,donsenior/jbehave-core,mestihudson/jbehave-core,bsaylor/jbehave-core,pocamin/jbehave-core,eugen-eugen/eugensjbehave,kops/jbehave-core,bsaylor/jbe...
package org.jbehave.core.reporters; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Transformer; import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.bui...
jbehave-core/src/main/java/org/jbehave/core/reporters/PrintStreamOutput.java
package org.jbehave.core.reporters; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Transformer; import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.bui...
Updated class cast exception message to include the type of the wrong story failure.
jbehave-core/src/main/java/org/jbehave/core/reporters/PrintStreamOutput.java
Updated class cast exception message to include the type of the wrong story failure.
<ide><path>behave-core/src/main/java/org/jbehave/core/reporters/PrintStreamOutput.java <ide> this.cause = storyFailure.getCause(); <ide> print(format("failed", "{0} ({1})\n({2})\n", step, keywords.failed(), storyFailure.getCause(), ((UUIDExceptionWrapper) storyFailure).getUUID())); <ide> ...
Java
bsd-3-clause
6184e3879f2a7eddc7078e86f480bec3f7d4d1d3
0
NCIP/cananolab,NCIP/cananolab,NCIP/cananolab
package gov.nih.nci.cananolab.service.customsearch.helper; import java.io.File; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import gov.nih.nci.cananolab.restful.customsearch.bean.CustomSearchBean; import gov.nih.nci.cananolab.service.BaseSer...
software/cananolab-webapp/src/gov/nih/nci/cananolab/service/customsearch/helper/CustomSearchServiceHelper.java
package gov.nih.nci.cananolab.service.customsearch.helper; import java.io.File; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import gov.nih.nci.cananolab.restful.customsearch.bean.CustomSearchBean; import gov.nih.nci.cananolab.service.BaseSer...
Google like search changes to add View/Edit functionality for Researchers
software/cananolab-webapp/src/gov/nih/nci/cananolab/service/customsearch/helper/CustomSearchServiceHelper.java
Google like search changes to add View/Edit functionality for Researchers
<ide><path>oftware/cananolab-webapp/src/gov/nih/nci/cananolab/service/customsearch/helper/CustomSearchServiceHelper.java <ide> <ide> import gov.nih.nci.cananolab.restful.customsearch.bean.CustomSearchBean; <ide> import gov.nih.nci.cananolab.service.BaseServiceHelper; <add>import gov.nih.nci.cananolab.service.protocol....
Java
apache-2.0
063b72ad19b7e196d90d1c6ce70bd6230345174e
0
caot/intellij-community,wreckJ/intellij-community,dslomov/intellij-community,joewalnes/idea-community,ernestp/consulo,da1z/intellij-community,ThiagoGarciaAlves/intellij-community,gnuhub/intellij-community,TangHao1987/intellij-community,MER-GROUP/intellij-community,retomerz/intellij-community,mglukhikh/intellij-communit...
/* * Copyright 2000-2005 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...
plugins/svn4idea/src/org/jetbrains/idea/svn/update/SvnUpdateRootOptionsPanel.java
/* * Copyright 2000-2005 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...
enable field correctly (IDEADEV-12513)
plugins/svn4idea/src/org/jetbrains/idea/svn/update/SvnUpdateRootOptionsPanel.java
enable field correctly (IDEADEV-12513)
<ide><path>lugins/svn4idea/src/org/jetbrains/idea/svn/update/SvnUpdateRootOptionsPanel.java <ide> myRevisionText.setText(SVNRevision.HEAD.toString()); <ide> myRevisionText.getTextField().selectAll(); <ide> myRevisionText.setEnabled(myRevisionBox.isSelected()); <del> myURLText.setEnabled(false); <add> ...
Java
apache-2.0
b5630397cf440e7bee3a3b836fa546a537602b1d
0
akira-baruah/bazel,davidzchen/bazel,katre/bazel,davidzchen/bazel,perezd/bazel,katre/bazel,perezd/bazel,ButterflyNetwork/bazel,aehlig/bazel,twitter-forks/bazel,perezd/bazel,safarmer/bazel,dslomov/bazel,safarmer/bazel,twitter-forks/bazel,cushon/bazel,dslomov/bazel,ulfjack/bazel,werkt/bazel,akira-baruah/bazel,twitter-fork...
// Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/StrictJavaDepsPlugin.java
// Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
Consolidate SJD exemptions PiperOrigin-RevId: 217736958
src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/StrictJavaDepsPlugin.java
Consolidate SJD exemptions
<ide><path>rc/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/StrictJavaDepsPlugin.java <ide> @Override <ide> public void postAttribute(Env<AttrContext> env) { <ide> JavaFileObject previousSource = checkingTreeScanner.source; <del> boolean previousExemption = checkingTree...
Java
apache-2.0
b21fb36ada2ab27501c0245acf4443295360733a
0
lolay/citygrid-java-old
package com.lolay.citygrid; import java.io.Serializable; import java.net.URI; import java.util.Date; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annot...
src/main/java/com/lolay/citygrid/Editorial.java
package com.lolay.citygrid; import java.io.Serializable; import java.net.URI; import java.util.Date; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annot...
Fixed typo and added editorialReview
src/main/java/com/lolay/citygrid/Editorial.java
Fixed typo and added editorialReview
<ide><path>rc/main/java/com/lolay/citygrid/Editorial.java <ide> private String editorialTitle = null; <ide> @XmlElement(name="editorial_author",required=true) <ide> private String editorialAuthor = null; <add> @XmlElement(name="editorial_review",required=true) <add> private String editorialReview = null; <ide> @Xml...
Java
agpl-3.0
d07c04b1e381f6e778371095c042fc3ed485ae5a
0
Spirals-Team/librepair,Spirals-Team/librepair,Spirals-Team/librepair,Spirals-Team/librepair,Spirals-Team/librepair
package com.github.tdurieux.repair.maven.plugin; import exceptionparser.StackTrace; import exceptionparser.StackTraceElement; import exceptionparser.StackTraceParser; import fr.inria.spirals.npefix.config.Config; import fr.inria.spirals.npefix.main.DecisionServer; import fr.inria.spirals.npefix.main.all.DefaultRepairS...
src/maven-repair/src/main/java/com/github/tdurieux/repair/maven/plugin/NPEFixMojo.java
package com.github.tdurieux.repair.maven.plugin; import exceptionparser.StackTrace; import exceptionparser.StackTraceElement; import exceptionparser.StackTraceParser; import fr.inria.spirals.npefix.config.Config; import fr.inria.spirals.npefix.main.DecisionServer; import fr.inria.spirals.npefix.main.all.DefaultRepairS...
doc: improve documentation of NPEFixMojo (#1097)
src/maven-repair/src/main/java/com/github/tdurieux/repair/maven/plugin/NPEFixMojo.java
doc: improve documentation of NPEFixMojo (#1097)
<ide><path>rc/maven-repair/src/main/java/com/github/tdurieux/repair/maven/plugin/NPEFixMojo.java <ide> private NPEOutput result; <ide> <ide> public void execute() throws MojoExecutionException { <add> <add> // get the failing NPE tests <ide> List<Pair<String, Set<File>>> npeTests = ge...
Java
apache-2.0
error: pathspec 'src/main/java/com/google/sps/data/Image.java' did not match any file(s) known to git
b7e513575bd03182df8943e0e68986f730447cde
1
googleinterns/step256-2020,googleinterns/step256-2020,googleinterns/step256-2020
package com.google.sps.data; import com.google.auto.value.AutoValue; @AutoValue public abstract class Image{ public static Image create(long id, String blobKey, long timestamp) { return new AutoValue_Image(id, blobKey, timestamp); } public abstract long getId(); public abstract String blobKey(); publi...
src/main/java/com/google/sps/data/Image.java
Use AtuoValue for Image object class.
src/main/java/com/google/sps/data/Image.java
Use AtuoValue for Image object class.
<ide><path>rc/main/java/com/google/sps/data/Image.java <add>package com.google.sps.data; <add> <add>import com.google.auto.value.AutoValue; <add> <add>@AutoValue public abstract class Image{ <add> <add> public static Image create(long id, String blobKey, long timestamp) <add>{ <add> return new AutoValue_Image(id, blo...
Java
bsd-3-clause
ba8a02f749c95d0d1083ed1053c32be2b2adc8bb
0
inepex/ineform,inepex/ineform
package com.inepex.ineom.shared.assistedobject; import java.util.ArrayList; import java.util.Collection; import java.util.List; import com.inepex.ineom.shared.IFConsts; import com.inepex.ineom.shared.IneList; import com.inepex.ineom.shared.Relation; public class AssistedObjectUtil { public static List<Long> getOb...
ineom/src/main/java/com/inepex/ineom/shared/assistedobject/AssistedObjectUtil.java
package com.inepex.ineom.shared.assistedobject; import java.util.ArrayList; import java.util.Collection; import java.util.List; import com.inepex.ineom.shared.IFConsts; import com.inepex.ineom.shared.IneList; import com.inepex.ineom.shared.Relation; public class AssistedObjectUtil { public static List<Long> getOb...
remove whitespace
ineom/src/main/java/com/inepex/ineom/shared/assistedobject/AssistedObjectUtil.java
remove whitespace
<ide><path>neom/src/main/java/com/inepex/ineom/shared/assistedobject/AssistedObjectUtil.java <ide> } <ide> return idList; <ide> } <del> <ide> }
Java
apache-2.0
cbbd798fb5230ffd0e213d5fd4898605c2e41dc5
0
CMPUT301F16T10/Drivr
/* * Copyright 2016 CMPUT301F16T10 * * 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 ...
app/src/main/java/ca/ualberta/cs/drivr/User.java
/* * Copyright 2016 CMPUT301F16T10 * * 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 ...
Quick change, added setters + TODO comment
app/src/main/java/ca/ualberta/cs/drivr/User.java
Quick change, added setters + TODO comment
<ide><path>pp/src/main/java/ca/ualberta/cs/drivr/User.java <ide> /** <ide> * A data class for storing user information. <ide> */ <add> <add>//TODO: I've just put everything in here to keep things simple, but we could just put the new things related to Drivers in the Driver class. <ide> public class User { <ide> <ide...
Java
mit
660a97d0bcd5baa8626937a856e1890f8b6ba74f
0
andreasb242/settlers-remake,JKatzwinkel/settlers-remake,jsettlers/settlers-remake,andreasb242/settlers-remake,andreasb242/settlers-remake,andreas-eberle/settlers-remake,phirschbeck/settlers-remake,Peter-Maximilian/settlers-remake,andreas-eberle/settlers-remake,phirschbeck/settlers-remake,jsettlers/settlers-remake,andre...
package jsettlers.common; public final class Color { public static final Color BLACK = new Color(0, 0, 0, 1); public static final Color WHITE = new Color(1, 1, 1, 1); public static final Color TRANSPARENT = new Color(0, 0, 0, 0); public static final Color RED = new Color(1, 0, 0, 1); public static final Color BLU...
src/jsettlers/common/Color.java
package jsettlers.common; public final class Color { public static final Color BLACK = new Color(0, 0, 0, 1); public static final Color WHITE = new Color(1, 1, 1, 1); public static final Color TRANSPARENT = new Color(0, 0, 0, 0); public static final Color RED = new Color(1, 0, 0, 1); public static final Color BLU...
Fixed movable/mapo object colors (they were RGB, but must be BGR)
src/jsettlers/common/Color.java
Fixed movable/mapo object colors (they were RGB, but must be BGR)
<ide><path>rc/jsettlers/common/Color.java <ide> private final short shortColor; <ide> <ide> public Color(int argb) { <del> this(argb, ((argb >> 16) & 0xff) / 255f, <del> ((argb >> 8) & 0xff) / 255f, ((argb >> 0) & 0xff) / 255f, ((argb >> 24) & 0xff) / 255f); <add> this(argb, ((argb >> 16) & 0xff) / 255f, ...
Java
apache-2.0
f9b282e6360ebf8fb73ac555b6f0ace8fc9ad4c7
0
alexjyong/FlowSpaceFirewall,ajragusa/FlowSpaceFirewall,ajragusa/FlowSpaceFirewall,thompsbp/FlowSpaceFirewall,thompsbp/FlowSpaceFirewall,thompsbp/FlowSpaceFirewall,jab1982/FlowSpaceFirewall,GlobalNOC/FlowSpaceFirewall,alexjyong/FlowSpaceFirewall,jab1982/FlowSpaceFirewall,jab1982/FlowSpaceFirewall,GlobalNOC/FlowSpaceFire...
/* Copyright 2013 Trustees of Indiana University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
src/test/java/edu/iu/grnoc/flowspace_firewall/FlowStatSlicerTest.java
/* Copyright 2013 Trustees of Indiana University 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 ...
finished fixing tests
src/test/java/edu/iu/grnoc/flowspace_firewall/FlowStatSlicerTest.java
finished fixing tests
<ide><path>rc/test/java/edu/iu/grnoc/flowspace_firewall/FlowStatSlicerTest.java <ide> import org.openflow.protocol.action.OFActionVirtualLanIdentifier; <ide> import org.openflow.protocol.statistics.OFFlowStatisticsReply; <ide> import org.openflow.protocol.statistics.OFStatistics; <add>import org.slf4j.Logger; <add>impo...
Java
mit
73ab503149db3e517f7302be3555da5d7fffa1f3
0
danielgindi/android-helpers
package com.dg.helpers; import android.app.Activity; import android.content.Context; import android.os.Build; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.inputmethod.InputMethodManager; import android.widget.AdapterView; import android.widget.Button; im...
Helpers/src/main/java/com/dg/helpers/DismissSoftkeyboardHelper.java
package com.dg.helpers; import android.app.Activity; import android.content.Context; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.inputmethod.InputMethodManager; import android.widget.AdapterView; import android.widget.Button; import android.widget.Check...
Fix class not found on API < 21 when calling setupUI
Helpers/src/main/java/com/dg/helpers/DismissSoftkeyboardHelper.java
Fix class not found on API < 21 when calling setupUI
<ide><path>elpers/src/main/java/com/dg/helpers/DismissSoftkeyboardHelper.java <ide> <ide> import android.app.Activity; <ide> import android.content.Context; <add>import android.os.Build; <ide> import android.view.MotionEvent; <ide> import android.view.View; <ide> import android.view.ViewGroup; <ide> { <ide> ...
Java
apache-2.0
ff56becc88bd26e41b0491d65643aa2e6ed80d32
0
madanadit/alluxio,maboelhassan/alluxio,calvinjia/tachyon,wwjiang007/alluxio,calvinjia/tachyon,maobaolong/alluxio,ChangerYoung/alluxio,jswudi/alluxio,ShailShah/alluxio,Reidddddd/mo-alluxio,calvinjia/tachyon,jsimsa/alluxio,wwjiang007/alluxio,Reidddddd/mo-alluxio,Reidddddd/alluxio,madanadit/alluxio,maboelhassan/alluxio,ww...
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
core/client/src/test/java/alluxio/client/lineage/LineageContextTest.java
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
Adjust packages order to pass the checkstyle.
core/client/src/test/java/alluxio/client/lineage/LineageContextTest.java
Adjust packages order to pass the checkstyle.
<ide><path>ore/client/src/test/java/alluxio/client/lineage/LineageContextTest.java <ide> <ide> package alluxio.client.lineage; <ide> <del>import java.io.IOException; <del>import java.util.ArrayList; <del>import java.util.List; <add>import alluxio.Configuration; <add>import alluxio.PropertyKey; <ide> <ide> import org...
Java
mit
67812e1c154a7bc6bb87aa1709616d0b6adb5763
0
gman-x/jdungeonquest
package jdungeonquest; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import jdungeonquest.effects.Effect; import jdungeonquest.effects.GiveGold; import org.yaml.snakeyaml.Yaml; public class CardHolder { public Deck dragonDec...
src/main/java/jdungeonquest/CardHolder.java
package jdungeonquest; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import jdungeonquest.effects.Effect; import jdungeonquest.effects.GiveGold; import org.yaml.snakeyaml.Yaml; public class CardHolder { public Deck dragonDec...
Card decks are now shuffled on initialization
src/main/java/jdungeonquest/CardHolder.java
Card decks are now shuffled on initialization
<ide><path>rc/main/java/jdungeonquest/CardHolder.java <ide> default: break; <ide> } <ide> } <add> dragonDeck.shuffle(); <add> doorDeck.shuffle(); <add> corpseDeck.shuffle(); <add> cryptDeck.shuffle(); <add> trapDeck.shuffle(); <add> searchDec...
Java
mit
61ecba37e43a9f8bdfecc81918ebcde7fbd7ede4
0
bitDecayGames/GlobalGameJam2017
package com.bitdecay.game.system; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Vector3; import com.bitdecay.game.component.PositionComponent; import com.bitdecay.game.component.RemoveNowComponent; import com.bitdecay.game.component....
src/main/java/com/bitdecay/game/system/SonarPingSystem.java
package com.bitdecay.game.system; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Vector3; import com.bitdecay.game.component.PositionComponent; import com.bitdecay.game.component.RemoveNowComponent; import com.bitdecay.game.component....
fix sonar
src/main/java/com/bitdecay/game/system/SonarPingSystem.java
fix sonar
<ide><path>rc/main/java/com/bitdecay/game/system/SonarPingSystem.java <ide> */ <ide> public class SonarPingSystem extends AbstractDrawableSystem { <ide> public float propagationSpeed = 6f; <del> public float maxSonarRange = 2000f; <add> public float maxSonarRange = 4000f; <ide> <ide> public SonarPingSys...
Java
apache-2.0
1bc30d9de2074549e590a956b31007e72dd12b18
0
YMartsynkevych/camel,veithen/camel,punkhorn/camel-upstream,yury-vashchyla/camel,christophd/camel,adessaigne/camel,bfitzpat/camel,oscerd/camel,josefkarasek/camel,noelo/camel,driseley/camel,manuelh9r/camel,atoulme/camel,yury-vashchyla/camel,YMartsynkevych/camel,alvinkwekel/camel,davidwilliams1978/camel,punkhorn/camel-ups...
/** * 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-test/src/main/java/org/apache/camel/test/junit4/TestSupport.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...
Checkstyle fix git-svn-id: 11f3c9e1d08a13a4be44fe98a6d63a9c00f6ab23@1169738 13f79535-47bb-0310-9956-ffa450edef68
components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
Checkstyle fix
<ide><path>omponents/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java <ide> boolean exists = true; <ide> while (exists && (tries < maxTries)) { <ide> recursivelyDeleteDirectory(file); <del> tries ++; <add> tries++; <ide> exists = file.e...
Java
mit
975fa475eb03096c84ce4181c69819f6620cb0e4
0
PatricioAlejandro/IngSw-II
//1 //2 //3 //4 //5
pruebaSW.java
//1 //2 //3 //4
anadir linea 5
pruebaSW.java
anadir linea 5
<ide><path>ruebaSW.java <ide> //2 <ide> //3 <ide> //4 <add>//5
JavaScript
mit
9b37be91c9f37740def5d130f355c5b016bcb85a
0
mshmsh5000/dosomething-1,chloealee/dosomething,mshmsh5000/dosomething-1,angaither/dosomething,sbsmith86/dosomething,DoSomething/dosomething,angaither/dosomething,chloealee/dosomething,DoSomething/phoenix,DoSomething/dosomething,chloealee/dosomething,deadlybutter/phoenix,deadlybutter/phoenix,DoSomething/phoenix,DoSometh...
define(function(require) { "use strict"; var $ = require("jquery"); var _ = require("lodash"); var Campaign = require("finder/Campaign"); var noResultsTplSrc = require("text!finder/templates/no-results.tpl.html"); /** * ResultsView manages search results from Finder * @type {Object} */ var Resu...
lib/themes/dosomething/paraneue_dosomething/js/finder/ResultsView.js
define(function(require) { "use strict"; var $ = require("jquery"); var _ = require("lodash"); var Campaign = require("finder/Campaign"); var noResultsTplSrc = require("text!finder/templates/no-results.tpl.html"); /** * ResultsView manages search results from Finder * @type {Object} */ var Resu...
Removing debug info.
lib/themes/dosomething/paraneue_dosomething/js/finder/ResultsView.js
Removing debug info.
<ide><path>ib/themes/dosomething/paraneue_dosomething/js/finder/ResultsView.js <ide> * @param {Object} data The raw data from the query <ide> */ <ide> parseResults: function (data) { <del> console.log(data); <ide> // Remove the old results <ide> ResultsView.clear(); <ide>
Java
apache-2.0
0d5834ddd7cdd62f2442134a2a11d93c4ca06dde
0
holon-platform/holon-jaxrs
/* * Copyright 2000-2017 Holon TDCN. * * 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...
spring-boot-jersey/src/main/java/com/holonplatform/jaxrs/spring/boot/jersey/JerseyServerAutoConfiguration.java
/* * Copyright 2000-2017 Holon TDCN. * * 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...
Closes #47
spring-boot-jersey/src/main/java/com/holonplatform/jaxrs/spring/boot/jersey/JerseyServerAutoConfiguration.java
Closes #47
<ide><path>pring-boot-jersey/src/main/java/com/holonplatform/jaxrs/spring/boot/jersey/JerseyServerAutoConfiguration.java <ide> import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; <ide> import org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration; <ide> import org.springframewo...
Java
mit
73f6f426f9e3c651693d22a0c03aa012c4d25c1f
0
DSG-UniFE/ramp,DSG-UniFE/ramp
package it.unibo.deis.lia.ramp.util; import java.io.File; import java.io.FileWriter; import java.io.FilenameFilter; import java.io.IOException; import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Paths; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Date; im...
src/it/unibo/deis/lia/ramp/util/Benchmark.java
package it.unibo.deis.lia.ramp.util; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import com.opencsv.CSVWriter; import it.unibo.deis.lia.ramp.RampEntryPoint; public class Benchmark { private S...
Fixed class for benchmarks
src/it/unibo/deis/lia/ramp/util/Benchmark.java
Fixed class for benchmarks
<ide><path>rc/it/unibo/deis/lia/ramp/util/Benchmark.java <ide> <ide> import java.io.File; <ide> import java.io.FileWriter; <add>import java.io.FilenameFilter; <ide> import java.io.IOException; <add>import java.nio.file.Files; <add>import java.nio.file.LinkOption; <add>import java.nio.file.Paths; <ide> import java.text...
Java
unlicense
ca3d7e9b6f9f2dbd1e8812db9eadc3ce624b0716
0
EastWest14/CongestionImmitation,EastWest14/CongestionImmitation
package controller; import analyzer.*; import java.lang.*; public class SystemTest { public static void main(String args[]) { boolean testPasses = true; boolean scenario1 = testScenario1(); if (!scenario1) { testPasses = false; } boolean scenario2 = testScenario2(); if (!scenario2) { testPasses =...
src/controller/SystemTest.java
package controller; import analyzer.*; public class SystemTest { public static void main(String args[]) { boolean testPasses = true; boolean scenario1 = testScenario1(); if (!scenario1) { testPasses = false; } if (testPasses) { System.out.println("Full System Test: PASS"); System.exit(0); } el...
Test scenarion II: One packet sent.
src/controller/SystemTest.java
Test scenarion II: One packet sent.
<ide><path>rc/controller/SystemTest.java <ide> package controller; <ide> <ide> import analyzer.*; <add>import java.lang.*; <ide> <ide> public class SystemTest { <ide> public static void main(String args[]) { <ide> <ide> boolean scenario1 = testScenario1(); <ide> if (!scenario1) { <add> testPasses = false; <ad...
JavaScript
apache-2.0
ae36ce63b6561e0ebd940308612ed13f00795c13
0
thurt/arangodb,CoDEmanX/ArangoDB,wiltonlazary/arangodb,graetzer/arangodb,arangodb/arangodb,m0ppers/arangodb,thurt/arangodb,graetzer/arangodb,kangkot/arangodb,baslr/ArangoDB,baslr/ArangoDB,hkernbach/arangodb,Simran-B/arangodb,thurt/arangodb,graetzer/arangodb,hkernbach/arangodb,jsteemann/arangodb,joerg84/arangodb,Simran-...
/*jslint indent: 2, nomen: true, maxlen: 80, sloppy: true */ /*global require, assertEqual, assertTrue */ //////////////////////////////////////////////////////////////////////////////// /// @brief test the graph class /// /// @file /// /// DISCLAIMER /// /// Copyright 2010-2012 triagens GmbH, Cologne, Germany /// ///...
js/common/tests/shell-graph.js
/*jslint indent: 2, nomen: true, maxlen: 80, sloppy: true */ /*global require, assertEqual, assertTrue */ //////////////////////////////////////////////////////////////////////////////// /// @brief test the graph class /// /// @file /// /// DISCLAIMER /// /// Copyright 2010-2012 triagens GmbH, Cologne, Germany /// ///...
fixed test
js/common/tests/shell-graph.js
fixed test
<ide><path>s/common/tests/shell-graph.js <ide> v2 = graph.addVertex(); <ide> <ide> edge = graph.addEdge(v1, v2); <del> <add> <ide> assertEqual(edge.getId(), v1.getOutEdges()[0].getId()); <ide> assertEqual(edge.getId(), v2.getInEdges()[0].getId()); <del> assertEqual([], v1.getInEdges(...
JavaScript
mit
14f097b6c02c4b5eebf5bed51964271340bf002b
0
fent/node-ytdl
#!/usr/bin/env node var url; const info = require('../package'); const chalk = require('chalk'); const opts = require('commander') .version(info.version) .arguments('<url>') .action((a) => { url = a; }) .option('-q, --quality <ITAG>', 'Video quality to download, default: highest') .option('-r, --range <I...
bin/ytdl.js
#!/usr/bin/env node var url; const info = require('../package'); const chalk = require('chalk'); const opts = require('commander') .version(info.version) .arguments('<url>') .action((a) => { url = a; }) .option('-q, --quality <ITAG>', 'Video quality to download, default: highest') .option('-r, --range <I...
fix: update path of ytdl-core sig cache
bin/ytdl.js
fix: update path of ytdl-core sig cache
<ide><path>in/ytdl.js <ide> } <ide> }); <ide> <del> ytdl.cache.get = key => cache[key]; <del> ytdl.cache.set = (key, value) => { <add> ytdl.cache.sig.get = key => cache[key]; <add> ytdl.cache.sig.set = (key, value) => { <ide> cache[key] = value; <ide> fs.writeFile(cachefile, <ide> JSON.stringif...
Java
apache-2.0
8203ac01b9ce478f3bbfcc0092e53c09c6487c65
0
k21/buck,darkforestzero/buck,zhan-xiong/buck,zhan-xiong/buck,kageiit/buck,nguyentruongtho/buck,robbertvanginkel/buck,robbertvanginkel/buck,justinmuller/buck,grumpyjames/buck,zpao/buck,k21/buck,dsyang/buck,marcinkwiatkowski/buck,daedric/buck,vschs007/buck,romanoid/buck,daedric/buck,shybovycha/buck,darkforestzero/buck,da...
/* * Copyright 2013-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
src/com/facebook/buck/event/listener/SuperConsoleEventBusListener.java
/* * Copyright 2013-present Facebook, 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...
Print Details link on own line to prevent truncating Summary: The "Details" link in builds often gets truncated by the terminal for going over width. Put it on a new line so this doesn't happen. Test Plan: run "buck build" with a webserver port set. observe that "Details" gets printed on a new line and does not get t...
src/com/facebook/buck/event/listener/SuperConsoleEventBusListener.java
Print Details link on own line to prevent truncating
<ide><path>rc/com/facebook/buck/event/listener/SuperConsoleEventBusListener.java <ide> // All steps past this point require a build. <ide> return lines.build(); <ide> } <del> String suffix = Joiner.on(" ") <add> String suffix = Joiner.on("\n ") <ide> .join(FluentIterable.of(...
Java
apache-2.0
dc03d503ce7cf5e78e0e82d27704780a53ed180a
0
SeleniumHQ/htmlunit-driver
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
src/test/java/org/openqa/selenium/htmlunit/javascript/History2Test.java
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
next try
src/test/java/org/openqa/selenium/htmlunit/javascript/History2Test.java
next try
<ide><path>rc/test/java/org/openqa/selenium/htmlunit/javascript/History2Test.java <ide> <ide> driver.navigate().back(); <ide> assertEquals(URL_FIRST + "bar.html", driver.getCurrentUrl()); <del> verifyAlerts(driver, expectedAlerts[i++], expectedAlerts[i++]); <add> verifyAlerts(DEFAULT_WAIT...
Java
apache-2.0
fbbda80ec3300c06baf7894c2be2781325c839c7
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...
platform/util/src/com/intellij/util/io/DupOutputStream.java
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.util.io; import org.jetbrains.annotations.NotNull; import java.io.IOException; import java.io.OutputStream; public final class DupOutputStream extends Outp...
delete DupOutputStream GitOrigin-RevId: cd8ad0a47f83278d55d1f0f14165f209cc1df72c
platform/util/src/com/intellij/util/io/DupOutputStream.java
delete DupOutputStream
<ide><path>latform/util/src/com/intellij/util/io/DupOutputStream.java <del>// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. <del>package com.intellij.util.io; <del> <del>import org.jetbrains.annotations.NotNull; <del> <del>impor...
Java
apache-2.0
aa4fd4d1da6fb6fa2e27f446408033256af64137
0
bhb27/KA27,bhb27/KA27
/* * Copyright (C) 2015 Willi Ye * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
app/src/main/java/com/grarak/kerneladiutor/utils/kernel/GPU.java
/* * Copyright (C) 2015 Willi Ye * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
GPU: Fix Adreno Idler taking 1/0 or y/n per https://github.com/yoinx/kernel_adiutor/issues/70 Signed-off-by: Felipe Leon <9f70d39cc8f8fdf1b6c59e5a5f1a800d6380a37f@gmail.com>
app/src/main/java/com/grarak/kerneladiutor/utils/kernel/GPU.java
GPU: Fix Adreno Idler taking 1/0 or y/n
<ide><path>pp/src/main/java/com/grarak/kerneladiutor/utils/kernel/GPU.java <ide> } <ide> <ide> public static void activateAdrenoIdler(boolean active, Context context) { <del> Control.runCommand(active ? "Y" : "N", ADRENO_IDLER_ACTIVATE, Control.CommandType.GENERIC, context); <add> if (Utils.isLet...
Java
apache-2.0
46885a049dc4fd96a1d78f6d5cf7126f6110192f
0
tokee/lucene,tokee/lucene,tokee/lucene,tokee/lucene
package org.apache.lucene.search.payloads; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Term; import org.apache.lucene.index.TermPositions; import org.apache.lucene.search.*; import org.apache.lucene.search.spans.SpanScorer; import org.apache.lucene.search.spans.SpanTermQuery; import org....
src/java/org/apache/lucene/search/payloads/BoostingTermQuery.java
package org.apache.lucene.search.payloads; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Term; import org.apache.lucene.index.TermPositions; import org.apache.lucene.search.*; import org.apache.lucene.search.spans.SpanScorer; import org.apache.lucene.search.spans.SpanTermQuery; import org....
remove commented out code git-svn-id: 4c5078813df38efa56971a28e09a55254294f104@603057 13f79535-47bb-0310-9956-ffa450edef68
src/java/org/apache/lucene/search/payloads/BoostingTermQuery.java
remove commented out code
<ide><path>rc/java/org/apache/lucene/search/payloads/BoostingTermQuery.java <ide> <ide> } <ide> <del> /** <del> * Go to the next document <del> * <del> */ <del> /*public boolean next() throws IOException { <del> <del> boolean result = super.next(); <del> //set the payl...
Java
apache-2.0
f82825db9c673b1786951012a3f13223f6f1d578
0
ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma
/* * The Gemma project. * * Copyright (c) 2006 University of British Columbia * * 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 ...
gemma-mda/src/main/java/ubic/gemma/model/genome/biosequence/BioSequenceDaoImpl.java
/* * The Gemma project. * * Copyright (c) 2006 University of British Columbia * * 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 ...
and some more tweaking...
gemma-mda/src/main/java/ubic/gemma/model/genome/biosequence/BioSequenceDaoImpl.java
and some more tweaking...
<ide><path>emma-mda/src/main/java/ubic/gemma/model/genome/biosequence/BioSequenceDaoImpl.java <ide> <ide> bioSequence.getType(); <ide> ExternalDatabase extDB = bioSequence.getTaxon().getExternalDatabase(); <del> if (extDB != null) { <add> if (extDB != null) { <ad...
Java
apache-2.0
cc8c32a41fe33a1847e7822609d4a7a42e8bba9d
0
BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH
package de.hu_berlin.informatik.ki.nao.server; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketException; import java.nio.channels.NotYetConnectedException; import java.util.LinkedList; import java.util.List; import java...
RobotControl/RobotConnector/src/de/hu_berlin/informatik/ki/nao/server/MessageServer.java
package de.hu_berlin.informatik.ki.nao.server; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketException; import java.nio.channels.NotYetConnectedException; import java.util.LinkedList; import java.util.List; import java...
- beeing even more graceful to the robot
RobotControl/RobotConnector/src/de/hu_berlin/informatik/ki/nao/server/MessageServer.java
- beeing even more graceful to the robot
<ide><path>obotControl/RobotConnector/src/de/hu_berlin/informatik/ki/nao/server/MessageServer.java <ide> import java.util.Map; <ide> import java.util.concurrent.BlockingQueue; <ide> import java.util.concurrent.LinkedBlockingQueue; <add>import java.util.concurrent.TimeUnit; <ide> import java.util.concurrent.locks.Lock; ...
Java
lgpl-2.1
error: pathspec 'cloveretl.engine/test/org/jetel/metadata/DataRecordParsingTypeTest.java' did not match any file(s) known to git
e150c5e50b3ea3d254cc3f86c0f0d583d31ec57d
1
CloverETL/CloverETL-Engine,CloverETL/CloverETL-Engine,CloverETL/CloverETL-Engine,CloverETL/CloverETL-Engine
/* * jETeL/CloverETL - Java based ETL application framework. * Copyright (c) Javlin, a.s. (info@cloveretl.com) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * v...
cloveretl.engine/test/org/jetel/metadata/DataRecordParsingTypeTest.java
MINOR: test for DataRecordParsingType.fromString() method git-svn-id: 3b972608fd747d4039df1c934c79ac563d582597@16633 a09ad3ba-1a0f-0410-b1b9-c67202f10d70
cloveretl.engine/test/org/jetel/metadata/DataRecordParsingTypeTest.java
MINOR: test for DataRecordParsingType.fromString() method
<ide><path>loveretl.engine/test/org/jetel/metadata/DataRecordParsingTypeTest.java <add>/* <add> * jETeL/CloverETL - Java based ETL application framework. <add> * Copyright (c) Javlin, a.s. (info@cloveretl.com) <add> * <add> * This library is free software; you can redistribute it and/or <add> * modify it under the te...
JavaScript
bsd-2-clause
d2e1f071e731793b8f85b7fdb4ccfb635cee5a6c
0
zipscene/cluster-master,fasterize/cluster-master,isaacs/cluster-master
// Set up a cluster and set up resizing and such. var cluster = require("cluster") , quitting = false , restarting = false , path = require("path") , clusterSize = 0 , os = require("os") , onmessage exports = module.exports = clusterMaster exports.restart = restart exports.resize = resize exports.quitHard = quitHard ...
cluster-master.js
// Set up a cluster and set up resizing and such. var cluster = require("cluster") , quitting = false , restarting = false , path = require("path") , clusterSize = 0 , os = require("os") , onmessage exports = module.exports = clusterMaster exports.restart = restart exports.resize = resize exports.quitHard = quitHard ...
Don't respawn on fast failures
cluster-master.js
Don't respawn on fast failures
<ide><path>luster-master.js <ide> <ide> function forkListener () { <ide> cluster.on("fork", function (worker) { <add> worker.birth = Date.now() <ide> var id = worker.uniqueID <ide> console.error("Worker %j setting up", id) <ide> if (onmessage) worker.on("message", onmessage) <ide> var disconnectTi...
Java
apache-2.0
a5a4cceb7aa9070181c3df531d11e97775f4ccca
0
ascrutae/sky-walking,ascrutae/sky-walking,apache/skywalking,OpenSkywalking/skywalking,apache/skywalking,hanahmily/sky-walking,apache/skywalking,zhangkewei/sky-walking,apache/skywalking,ascrutae/sky-walking,hanahmily/sky-walking,apache/skywalking,apache/skywalking,apache/skywalking,OpenSkywalking/skywalking,ascrutae/sky...
package com.ai.cloud.skywalking.sender; import java.io.IOException; import java.net.InetSocketAddress; import java.util.logging.Logger; import com.ai.cloud.io.netty.bootstrap.Bootstrap; import com.ai.cloud.io.netty.channel.Channel; import com.ai.cloud.io.netty.channel.ChannelHandlerContext; import com.ai.cloud.io.net...
skywalking-api/src/main/java/com/ai/cloud/skywalking/sender/DataSender.java
package com.ai.cloud.skywalking.sender; import com.ai.cloud.io.netty.bootstrap.Bootstrap; import com.ai.cloud.io.netty.channel.*; import com.ai.cloud.io.netty.channel.nio.NioEventLoopGroup; import com.ai.cloud.io.netty.channel.socket.ServerSocketChannel; import com.ai.cloud.io.netty.channel.socket.nio.NioSocketChannel...
1.修改发送代码。
skywalking-api/src/main/java/com/ai/cloud/skywalking/sender/DataSender.java
1.修改发送代码。
<ide><path>kywalking-api/src/main/java/com/ai/cloud/skywalking/sender/DataSender.java <ide> package com.ai.cloud.skywalking.sender; <ide> <add>import java.io.IOException; <add>import java.net.InetSocketAddress; <add>import java.util.logging.Logger; <add> <ide> import com.ai.cloud.io.netty.bootstrap.Bootstrap; <del>imp...
JavaScript
mit
a5c1cabfb60443c13a869f16ed053c6e012a1631
0
JonClayton/phase-0,JonClayton/phase-0,JonClayton/phase-0
/* Design Basic Game Solo Challenge // This is a solo challenge Your mission description: Overall mission: win at checkers Goals: move ahead. In later versions, jump, be kinged, etc. Characters: Red team and black team (X and O in the ASCII version) Objects: Each useable square on board will be an object held withi...
week-7/design-basic-game-solo-challenge/my_solution.js
/* Design Basic Game Solo Challenge // This is a solo challenge Your mission description: Overall mission: win at checkers Goals: move ahead. In later versions, jump, be kinged, etc. Characters: Red team and black team (X and O in the ASCII version) Objects: Each useable square on board will be an object held withi...
Add working web board
week-7/design-basic-game-solo-challenge/my_solution.js
Add working web board
<ide><path>eek-7/design-basic-game-solo-challenge/my_solution.js <ide> } <ide> } <ide> <add>function UpdateBoardHTML() { <add> board.forEach (function (space, index) { <add> var color = false <add> if (space.owner == "X") color = "red"; <add> if (space.owner == "O") color = "black"; <add> var square = d...
Java
mit
792b0c5a675f33a45f62d453e9d8124736723ef8
0
Moudoux/EMC
package me.deftware.client.framework.helper; import me.deftware.client.framework.item.ItemStack; import net.minecraft.client.MinecraftClient; import net.minecraft.screen.GenericContainerScreenHandler; import java.util.Objects; /** * @author Deftware */ public class ContainerHelper { private static GenericContain...
src/main/java/me/deftware/client/framework/helper/ContainerHelper.java
package me.deftware.client.framework.helper; import me.deftware.client.framework.item.ItemStack; import net.minecraft.client.MinecraftClient; import net.minecraft.screen.GenericContainerScreenHandler; import java.util.Objects; /** * @author Deftware */ public class ContainerHelper { private static GenericContain...
Fix class cast exception
src/main/java/me/deftware/client/framework/helper/ContainerHelper.java
Fix class cast exception
<ide><path>rc/main/java/me/deftware/client/framework/helper/ContainerHelper.java <ide> public class ContainerHelper { <ide> <ide> private static GenericContainerScreenHandler getCurrent() { <del> if (Objects.requireNonNull(MinecraftClient.getInstance().player).currentScreenHandler != null) { <add> if (Objects.requi...