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
JavaScript
bsd-3-clause
b32636af4601dc944550966acb72fe0a38d2aa31
0
alwalker/duty-hours
var express = require('express'); var pg = require('pg'); var app = express(); app.set('port', (process.env.PORT || 5000)); app.get('/', function(request, response) { response.send('Woooo!'); }); app.get('/api/users', function (request, response) { pg.connect(process.env.DATABASE_URL, function(err, client, done) {...
index.js
var express = require('express'); var pg = require('pg'); var app = express(); app.set('port', (process.env.PORT || 5000)); app.get('/', function(request, response) { response.send('Woooo!'); }); app.get('/api/users', function (request, response) { pg.connect(process.env.DATABASE_URL, function(err, client, done) {...
learned how for loops work
index.js
learned how for loops work
<ide><path>ndex.js <ide> else { <ide> var found = false; <ide> for(var row in result.rows) { <del> console.log('comparing ' + user + ' to ' + row['email']); <del> if(row['email'] === user) { <add> if(results.rows[row]['email'] === user) { <ide> found = true; <ide> break; <ide> }
Java
apache-2.0
f14cfba258532d57ae29f14d318dfb4be5ee0608
0
signed/intellij-community,xfournet/intellij-community,youdonghai/intellij-community,idea4bsd/idea4bsd,da1z/intellij-community,youdonghai/intellij-community,ibinti/intellij-community,idea4bsd/idea4bsd,asedunov/intellij-community,ThiagoGarciaAlves/intellij-community,xfournet/intellij-community,allotria/intellij-community...
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
platform/platform-impl/src/com/intellij/ui/popup/list/GroupedItemsListRenderer.java
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
GroupedItemsListRenderer generified
platform/platform-impl/src/com/intellij/ui/popup/list/GroupedItemsListRenderer.java
GroupedItemsListRenderer generified
<ide><path>latform/platform-impl/src/com/intellij/ui/popup/list/GroupedItemsListRenderer.java <ide> import javax.swing.*; <ide> import java.awt.*; <ide> <del>public class GroupedItemsListRenderer extends GroupedElementsRenderer.List implements ListCellRenderer { <del> protected ListItemDescriptor myDescriptor; <add>p...
Java
agpl-3.0
91dd64a46cca49d58d05a567ea413f51ce376458
0
conwetlab/fiware-rss,conwetlab/fiware-rss,Fiware/apps.Rss,Fiware/apps.Rss,Fiware/apps.Rss,Fiware/apps.Rss,conwetlab/fiware-rss,conwetlab/fiware-rss
/** * Revenue Settlement and Sharing System GE * Copyright (C) 2011-2014, Javier Lucio - lucio@tid.es * Telefonica Investigacion y Desarrollo, S.A. * * Copyright (C) 2015, CoNWeT Lab., Universidad Politécnica de Madrid * * This program is free software: you can redistribute it and/or modify * it under the ter...
fiware-rss/src/main/java/es/tid/fiware/rss/ws/RSSModelService.java
/** * Revenue Settlement and Sharing System GE * Copyright (C) 2011-2014, Javier Lucio - lucio@tid.es * Telefonica Investigacion y Desarrollo, S.A. * * Copyright (C) 2015, CoNWeT Lab., Universidad Politécnica de Madrid * * This program is free software: you can redistribute it and/or modify * it under the ter...
Remove unused import
fiware-rss/src/main/java/es/tid/fiware/rss/ws/RSSModelService.java
Remove unused import
<ide><path>iware-rss/src/main/java/es/tid/fiware/rss/ws/RSSModelService.java <ide> import javax.ws.rs.Consumes; <ide> import javax.ws.rs.DELETE; <ide> import javax.ws.rs.GET; <del>import javax.ws.rs.HeaderParam; <ide> import javax.ws.rs.POST; <ide> import javax.ws.rs.PUT; <ide> import javax.ws.rs.Path;
Java
apache-2.0
0f52a8018a6671df97ce23133348d397a1a88167
0
apache/batik,apache/batik,apache/batik,apache/batik
/* Copyright 2003, 2006 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 by applica...
sources/org/apache/batik/util/CleanerThread.java
/* Copyright 2003 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 by applicable l...
proper thread-safe initialization of queue git-svn-id: e944db0f7b5c8f0ae3e1ad43ca99b026751ef0c2@428323 13f79535-47bb-0310-9956-ffa450edef68
sources/org/apache/batik/util/CleanerThread.java
proper thread-safe initialization of queue
<ide><path>ources/org/apache/batik/util/CleanerThread.java <ide> /* <ide> <del> Copyright 2003 The Apache Software Foundation <add> Copyright 2003, 2006 The Apache Software Foundation <ide> <ide> Licensed under the Apache License, Version 2.0 (the "License"); <ide> you may not use this file except in com...
Java
apache-2.0
d5afd9622c30fa06f27cbe4b1d94cb90b25e2f89
0
miniway/presto,hgschmie/presto,facebook/presto,stewartpark/presto,zzhao0/presto,twitter-forks/presto,raghavsethi/presto,Yaliang/presto,treasure-data/presto,prateek1306/presto,arhimondr/presto,yuananf/presto,treasure-data/presto,haozhun/presto,mandusm/presto,wagnermarkd/presto,facebook/presto,svstanev/presto,zzhao0/pres...
/* * 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...
presto-main/src/main/java/com/facebook/presto/server/ServerMainModule.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...
Increase default exchange HTTP max content length to 32MB
presto-main/src/main/java/com/facebook/presto/server/ServerMainModule.java
Increase default exchange HTTP max content length to 32MB
<ide><path>resto-main/src/main/java/com/facebook/presto/server/ServerMainModule.java <ide> import io.airlift.node.NodeInfo; <ide> import io.airlift.slice.Slice; <ide> import io.airlift.stats.PauseMeter; <add>import io.airlift.units.DataSize; <ide> import io.airlift.units.Duration; <ide> <ide> import javax.inject.Singl...
Java
bsd-2-clause
275bf37287f80a4b1d3b69b925bf7f24023b4563
0
7u83/SeSim,7u83/SeSim
/* * Copyright (c) 2017, 7u83 <7u83@mail.ru> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of c...
src/main/java/gui/orderbook/OrderBook.java
/* * Copyright (c) 2017, 7u83 <7u83@mail.ru> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of c...
Uses NummericCellRenderer
src/main/java/gui/orderbook/OrderBook.java
Uses NummericCellRenderer
<ide><path>rc/main/java/gui/orderbook/OrderBook.java <ide> <ide> import gui.Globals; <ide> import gui.Globals.CfgListener; <add>import gui.tools.NummericCellRenderer; <ide> import java.awt.Component; <ide> import java.text.DecimalFormat; <ide> import java.util.ArrayList; <ide> } <ide> model = (DefaultT...
Java
apache-2.0
68942691fc20efafaa0b36825fd0b593ba118e32
0
consulo/consulo-java,consulo/consulo-java,consulo/consulo-java,consulo/consulo-java
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
java-debugger-impl/src/com/intellij/debugger/ui/breakpoints/FilteredRequestorImpl.java
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
compilation fixed
java-debugger-impl/src/com/intellij/debugger/ui/breakpoints/FilteredRequestorImpl.java
compilation fixed
<ide><path>ava-debugger-impl/src/com/intellij/debugger/ui/breakpoints/FilteredRequestorImpl.java <ide> breakpoint.setCondition(CONDITION_ENABLED ? myCondition : null); <ide> if(myCondition != null && !myCondition.isEmpty()) <ide> { <del> XDebuggerHistoryManager.getInstance(myProject).addRecentExpression(Default...
Java
apache-2.0
df96bdb403e13f6696b889b7fb2e55c37105c903
0
Orange-OpenSource/cf-java-client,cloudfoundry/cf-java-client,Orange-OpenSource/cf-java-client,cloudfoundry/cf-java-client,orange-cloudfoundry/cf-java-client,cloudfoundry/cf-java-client,alexander071/cf-java-client,orange-cloudfoundry/cf-java-client,alexander071/cf-java-client
/* * Copyright 2009-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
cloudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib/oauth2/OauthClient.java
/* * Copyright 2009-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Fixed refreshing of access token for requests.
cloudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib/oauth2/OauthClient.java
Fixed refreshing of access token for requests.
<ide><path>loudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib/oauth2/OauthClient.java <ide> } <ide> <ide> public String getAuthorizationHeader() { <del> if (token != null) { <del> return token.getTokenType() + " " + token.getValue(); <add> OAuth2AccessToken accessToken = getToken(); <add> if (acce...
Java
apache-2.0
73103cb6bc8e59f9e6bc4ee6c48119d4dbc17b6f
0
testng-team/testng-remote,testng-team/testng-remote,testng-team/testng-remote
package org.testng.remote; import com.beust.jcommander.JCommander; import com.beust.jcommander.ParameterException; import org.osgi.framework.Version; import org.testng.CommandLineArgs; import org.testng.TestNGException; import org.testng.remote.support.RemoteTestNGFactory; import org.testng.remote.support.ServiceLoad...
remote/src/main/java/org/testng/remote/RemoteTestNG.java
package org.testng.remote; import com.beust.jcommander.JCommander; import com.beust.jcommander.ParameterException; import org.osgi.framework.Version; import org.testng.CommandLineArgs; import org.testng.TestNGException; import org.testng.remote.support.RemoteTestNGFactory; import org.testng.remote.support.ServiceLoad...
logging if fall into logic of parse the version from pom.properties
remote/src/main/java/org/testng/remote/RemoteTestNG.java
logging if fall into logic of parse the version from pom.properties
<ide><path>emote/src/main/java/org/testng/remote/RemoteTestNG.java <ide> if (isDebug()) { <ide> e.printStackTrace(); <ide> } <add> p("now trying to parse the version from pom.properties"); <ide> <ide> // for testng version < 6.6, since ClassNotFound: org.testng.internal.Version...
Java
apache-2.0
587f87de13561b20f8fbaab9162a436543ed503d
0
nikita36078/J2ME-Loader,nikita36078/J2ME-Loader,nikita36078/J2ME-Loader,nikita36078/J2ME-Loader
/* * Copyright 2018 Nikita Shakarun * Copyright 2020 Yury Kharchenko * * 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 re...
app/src/main/java/ru/playsoftware/j2meloader/config/ConfigActivity.java
/* * Copyright 2018 Nikita Shakarun * Copyright 2020 Yury Kharchenko * * 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 re...
Fixed: Some options were not reset when resetting and loading config (#899) Optimization: CompoundDrawables use TextViewCompat function Co-authored-by: jobs_xie <1d65ebb7cb9eedf3ad11eea94e45e0ccfe14b178@enable-ets.com>
app/src/main/java/ru/playsoftware/j2meloader/config/ConfigActivity.java
Fixed: Some options were not reset when resetting and loading config (#899)
<ide><path>pp/src/main/java/ru/playsoftware/j2meloader/config/ConfigActivity.java <ide> import androidx.appcompat.widget.PopupMenu; <ide> import androidx.fragment.app.FragmentManager; <ide> import androidx.preference.PreferenceManager; <add>import androidx.core.widget.TextViewCompat; <add> <ide> import ru.playsoftware....
Java
apache-2.0
a9b2f06eb4951a4752b3098c56dff842bafe29bf
0
OSEHRA/ISAAC,OSEHRA/ISAAC,OSEHRA/ISAAC
/* * Copyright 2019 Organizations participating in ISAAC, ISAAC's KOMET, and SOLOR development include the US Veterans Health Administration, OSHERA, and the Health Services Platform Consortium.. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
solor/direct-import/src/main/java/sh/isaac/solor/direct/ho/HoWriter.java
/* * Copyright 2019 Organizations participating in ISAAC, ISAAC's KOMET, and SOLOR development include the US Veterans Health Administration, OSHERA, and the Health Services Platform Consortium.. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
Work on allergy concept representation for HO import.
solor/direct-import/src/main/java/sh/isaac/solor/direct/ho/HoWriter.java
Work on allergy concept representation for HO import.
<ide><path>olor/direct-import/src/main/java/sh/isaac/solor/direct/ho/HoWriter.java <ide> builder.addStringSemantic(hoRec[IS_CATEGORY], IS_CATEGORY_ASSEMBLAGE); <ide> } <ide> if (!hoRec[SNOMEDCT].isEmpty()) { <del> UUID snomedUuid = UuidT3Generator.fromSNOMED(hoRec[SNOMEDCT]); <del...
Java
agpl-3.0
0403ba46cfc1110a529aa874aef95c8a6862247a
0
istemi-bahceci/cbioportal,HectorWon/cbioportal,xmao/cbioportal,zhx828/cbioportal,holtgrewe/cbioportal,zhx828/cbioportal,leedonghn4/cbio-portal-webgl,j-hudecek/cbioportal,zhx828/cbioportal,d3b-center/pedcbioportal,shrumit/cbioportal-gsoc-final,yichaoS/cbioportal,inodb/cbioportal,n1zea144/cbioportal,adamabeshouse/cbiopor...
package org.mskcc.portal.servlet; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; i...
portal/src/org/mskcc/portal/servlet/NetworkServlet.java
package org.mskcc.portal.servlet; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; i...
fix issue: long node label of http://... shows again
portal/src/org/mskcc/portal/servlet/NetworkServlet.java
fix issue: long node label of http://... shows again
<ide><path>ortal/src/org/mskcc/portal/servlet/NetworkServlet.java <ide> for (Node node : network.getNodes()) { <ide> Set<String> ngnc = node.getXref(HGNC); <ide> <del> boolean in_query = false; <add> boolean inQuery = false; <ide> ...
Java
bsd-3-clause
8f755be36e4fc42409e540cffeb69447f0963d84
0
miguel01997/cookcc,miguel01997/cookcc,coconut2015/cookcc,coconut2015/cookcc,coconut2015/cookcc
/* * Copyright (c) 2008, Heng Yuan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of...
src/org/yuanheng/cookcc/codegen/xml/XmlParserOutput.java
/* * Copyright (c) 2008, Heng Yuan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of...
rename attribute term to rule since it is really non-terminal... Hard to find a good name.
src/org/yuanheng/cookcc/codegen/xml/XmlParserOutput.java
rename attribute term to rule since it is really non-terminal... Hard to find a good name.
<ide><path>rc/org/yuanheng/cookcc/codegen/xml/XmlParserOutput.java <ide> <ide> private void printGrammar (GrammarDoc grammar, PrintWriter p) <ide> { <del> p.println ("\t\t<grammar term=\"" + grammar.getTerm () + "\">"); <add> p.println ("\t\t<grammar rule=\"" + grammar.getRule () + "\">"); <ide> for (RhsDoc rhs ...
Java
apache-2.0
0b0e870027c3485246b965150a14987681bf1c89
0
maksimov/dasein-cloud-test
/** * Copyright (C) 2009-2015 Dell, Inc. * See annotations for authorship information * * ==================================================================== * 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 co...
src/main/java/org/dasein/cloud/test/identity/StatelessIAMTests.java
/** * Copyright (C) 2009-2015 Dell, Inc. * See annotations for authorship information * * ==================================================================== * 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 co...
Added listKeys test
src/main/java/org/dasein/cloud/test/identity/StatelessIAMTests.java
Added listKeys test
<ide><path>rc/main/java/org/dasein/cloud/test/identity/StatelessIAMTests.java <ide> } <ide> <ide> @Test <add> public void listAccessKeys() throws CloudException, InternalException { <add> assumeNotNull(identityServices); <add> assumeNotNull(identityAndAccessSupport); <add> <add> Iterabl...
Java
mit
7da714de06f99de5e08684836b379cda41b6885b
0
yegor256/cactoos
/* * The MIT License (MIT) * * Copyright (c) 2017-2020 Yegor Bugayenko * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights *...
src/main/java/org/cactoos/scalar/ScalarWithFallback.java
/* * The MIT License (MIT) * * Copyright (c) 2017-2020 Yegor Bugayenko * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights *...
(#1572) Generify ScalarWithFallback
src/main/java/org/cactoos/scalar/ScalarWithFallback.java
(#1572) Generify ScalarWithFallback
<ide><path>rc/main/java/org/cactoos/scalar/ScalarWithFallback.java <ide> /** <ide> * The fallback. <ide> */ <del> private final Iterable<Fallback<T>> fallbacks; <add> private final Iterable<Fallback<? extends T>> fallbacks; <ide> <ide> /** <ide> * Ctor. <ide> @SafeVarargs <ide> pub...
Java
apache-2.0
08356c94aa4b4aac0c3267a540ec29423764dcfa
0
italiangrid/voms-clients,ellert/voms-clients,ellert/voms-clients,italiangrid/voms-clients
package org.italiangrid.voms.clients.impl; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.security.cert.CertificateException; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Collections; import java.util.Date; import j...
src/main/java/org/italiangrid/voms/clients/impl/DefaultVOMSProxyInitBehaviour.java
package org.italiangrid.voms.clients.impl; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.security.cert.CertificateException; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Collections; import java.util.Date; import j...
Some code cleanup.
src/main/java/org/italiangrid/voms/clients/impl/DefaultVOMSProxyInitBehaviour.java
Some code cleanup.
<ide><path>rc/main/java/org/italiangrid/voms/clients/impl/DefaultVOMSProxyInitBehaviour.java <ide> this.protocolListener = protocolListener; <ide> } <ide> <del> public DefaultVOMSProxyInitBehaviour(VOMSCommandsParsingStrategy commandsParser, InitListenerAdapter listenerAdapter){ <add> public DefaultVOMSProxyInitBeh...
Java
mit
402bb4948f4f630b31a49d1ae3f9b6a2010a1b92
0
accentation/resource-server,accentation/resource-server
package com.accenture.banking; import static org.junit.Assert.assertTrue; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.web.client.TestRestTemplate...
src/test/java/com/accenture/banking/TestApplicationBuilder.java
package com.accenture.banking; import static org.junit.Assert.assertTrue; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.web.client.TestRestTemplate...
Client test Ok
src/test/java/com/accenture/banking/TestApplicationBuilder.java
Client test Ok
<ide><path>rc/test/java/com/accenture/banking/TestApplicationBuilder.java <ide> String response = restTemplate.getForObject("http://localhost:8082/offices/1", String.class); <ide> <ide> assertThat(response, containsString("678678678")); <add> } <add> <add> @Test <add> public void testClientById() throws Except...
Java
mit
d32fdf414995be00517c7a69eef15b8ce3e5d027
0
bThink-BGU/BPjs,bThink-BGU/BPjs
package il.ac.bgu.cs.bp.bpjs.bprogram.runtimeengine; import java.io.Serializable; import java.util.Optional; import org.mozilla.javascript.Context; import org.mozilla.javascript.ContinuationPending; import org.mozilla.javascript.Function; import org.mozilla.javascript.NativeContinuation; import org.mozilla.javascript...
src/main/java/il/ac/bgu/cs/bp/bpjs/bprogram/runtimeengine/BThreadSyncSnapshot.java
package il.ac.bgu.cs.bp.bpjs.bprogram.runtimeengine; import java.io.Serializable; import java.util.Optional; import org.mozilla.javascript.Context; import org.mozilla.javascript.ContinuationPending; import org.mozilla.javascript.Function; import org.mozilla.javascript.NativeContinuation; import org.mozilla.javascript...
Fixed code to enable normal forward execution
src/main/java/il/ac/bgu/cs/bp/bpjs/bprogram/runtimeengine/BThreadSyncSnapshot.java
Fixed code to enable normal forward execution
<ide><path>rc/main/java/il/ac/bgu/cs/bp/bpjs/bprogram/runtimeengine/BThreadSyncSnapshot.java <ide> import il.ac.bgu.cs.bp.bpjs.bprogram.runtimeengine.jsproxy.BThreadJsProxy; <ide> import il.ac.bgu.cs.bp.bpjs.events.BEvent; <ide> import il.ac.bgu.cs.bp.bpjs.search.ContinuationProgramState; <add>import java.util.Objects;...
Java
lgpl-2.1
e60cd6018779890d8a0957f9d57490b731f63ff1
0
jessealama/exist,jensopetersen/exist,jessealama/exist,patczar/exist,opax/exist,wolfgangmm/exist,ambs/exist,patczar/exist,eXist-db/exist,RemiKoutcherawy/exist,ljo/exist,windauer/exist,ljo/exist,ambs/exist,windauer/exist,jessealama/exist,zwobit/exist,patczar/exist,joewiz/exist,joewiz/exist,MjAbuz/exist,wolfgangmm/exist,o...
/* * eXist Open Source Native XML Database * Copyright (C) 2010 The eXist Project * http://exist-db.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2 ...
test/src/org/exist/w3c/tests/TestCase.java
/* * eXist Open Source Native XML Database * Copyright (C) 2010 The eXist Project * http://exist-db.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2 ...
[ignore] add debug messages svn path=/trunk/eXist/; revision=17378
test/src/org/exist/w3c/tests/TestCase.java
[ignore] add debug messages
<ide><path>est/src/org/exist/w3c/tests/TestCase.java <ide> */ <ide> @Before <ide> public void setUp() throws Exception { <add> System.out.println("setUp ENTERED"); <ide> synchronized (database) { <ide> if (testCollection == null) { <add> System.out.println("setUp no TS data"); <ide> loadTS(); <add> ...
Java
apache-2.0
05eb512f2f35a87dde359f2edd7d8a280159ba67
0
orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb
package com.orientechnologies.orient.core.sql.executor; import com.orientechnologies.common.concur.OTimeoutException; import com.orientechnologies.orient.core.command.OCommandContext; import com.orientechnologies.orient.core.metadata.schema.OClass; import com.orientechnologies.orient.core.sql.parser.OIdentifier; impo...
core/src/main/java/com/orientechnologies/orient/core/sql/executor/CountFromClassStep.java
package com.orientechnologies.orient.core.sql.executor; import com.orientechnologies.common.concur.OTimeoutException; import com.orientechnologies.orient.core.command.OCommandContext; import com.orientechnologies.orient.core.metadata.schema.OClass; import com.orientechnologies.orient.core.sql.parser.OIdentifier; impo...
Add javadoc to CountFromClassStep (SQL)
core/src/main/java/com/orientechnologies/orient/core/sql/executor/CountFromClassStep.java
Add javadoc to CountFromClassStep (SQL)
<ide><path>ore/src/main/java/com/orientechnologies/orient/core/sql/executor/CountFromClassStep.java <ide> import java.util.Optional; <ide> <ide> /** <add> * Returns the number of records contained in a class (including subclasses) <add> * Executes a count(*) on a class and returns a single record that contains that va...
JavaScript
apache-2.0
1c6bcf308dfea17cbefbb39cb6223adb690a8c15
0
SAP/openui5,SAP/openui5,SAP/openui5,SAP/openui5
/*! * ${copyright} */ // Provides control sap.f.ProductSwitchItem sap.ui.define([ "sap/ui/core/Control", "sap/ui/core/Icon", "sap/ui/core/library", "sap/m/Text", "sap/ui/events/KeyCodes", "sap/f/ProductSwitchItemRenderer" ], function ( Control, Icon, library, Text, KeyCodes, ProductSwitchItemRende...
src/sap.f/src/sap/f/ProductSwitchItem.js
/*! * ${copyright} */ // Provides control sap.f.ProductSwitchItem sap.ui.define([ "sap/ui/core/Control", "sap/ui/core/Icon", "sap/ui/core/library", "sap/m/Text", "sap/ui/events/KeyCodes", "sap/f/ProductSwitchItemRenderer" ], function ( Control, Icon, library, Text, KeyCodes, ProductSwitchItemRende...
[FIX] sap.f.ProductSwitchItem: Documentation for 'src' property is updated Problem: In the documentation for the 'src' property, we were stating that we support icons as well as images. The sap.f.ProductSwitchItem is not supposed to have images by design. Solution: In the documentation for the 'src' property, we are ...
src/sap.f/src/sap/f/ProductSwitchItem.js
[FIX] sap.f.ProductSwitchItem: Documentation for 'src' property is updated
<ide><path>rc/sap.f/src/sap/f/ProductSwitchItem.js <ide> properties: { <ide> /** <ide> * Defines the icon to be displayed as graphical element within the <code>ProductSwitchItem</code>. <del> * It can be an image or an icon from the SAP icon font. <add> * It can be an icon from the SAP icon fo...
Java
mit
6a42468381f129d284a6d3a808f3b218381fbda6
0
JCPedroza/XochiJava
import java.util.Arrays; public class main{ public static void main(String args[]){ Sound aSound = new Sound(440.03, 60, 1, 1, 127, 1); Note aNote = new Note("A", 440.00, 60, 1, 1, 127, 1); Formulas aFormula = new Formulas(); System.out.println(aSound.getFrequency()); ...
main.java
public class main{ public static void main(String args[]){ System.out.println("test"); } }
tests for Formulas ans Note
main.java
tests for Formulas ans Note
<ide><path>ain.java <add>import java.util.Arrays; <add> <ide> public class main{ <ide> <ide> public static void main(String args[]){ <del> System.out.println("test"); <add> Sound aSound = new Sound(440.03, 60, 1, 1, 127, 1); <add> Note aNote = new Note("A", 440.00, 60, 1, 1, 127, 1...
JavaScript
mit
1aebe875e9d5292f9a8ec561546159eec9a6c776
0
mirceaalexandru/seneca-auth,rjrodger/seneca-auth,senecajs/seneca-auth
/* Copyright (c) 2012-2014 Richard Rodger, MIT License */ "use strict"; var util = require('util') var _ = require('underscore') var async = require('async') var S = require('string') var gex = require('gex') var Cookies = require('cookies') var passport =...
auth.js
/* Copyright (c) 2012-2014 Richard Rodger, MIT License */ "use strict"; var util = require('util') var _ = require('underscore') var async = require('async') var S = require('string') var gex = require('gex') var Cookies = require('cookies') var passport =...
changes for redirect
auth.js
changes for redirect
<ide><path>uth.js <ide> <ide> //LOGIN START <ide> function afterlogin( err, next, req, res ) { <del> if( err && !err.why ) { <del> return next(null, {http$: {status: 302,redirect:redirect.fail}}) <del> } <del> <del> seneca.act({role: 'auth', cmd: 'redirect', req: req, res: res, kind: 'login'}, function...
Java
apache-2.0
747ede4d7507b27748cea773b47600131f7de6b6
0
endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS
package org.endeavourhealth.reference; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVParser; import org.apache.commons.csv.CSVRecord; import org.apache.commons.io.FilenameUtils; import org.endeavourhealth.common.utility.ThreadPool; import org.endeavourhealth.common.utility.ThreadPoolError; ...
src/utility-postcode-updater/src/main/java/org/endeavourhealth/reference/PostcodeUpdater.java
package org.endeavourhealth.reference; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVParser; import org.apache.commons.csv.CSVRecord; import org.apache.commons.io.FilenameUtils; import org.endeavourhealth.common.utility.ThreadPool; import org.endeavourhealth.common.utility.ThreadPoolError; ...
Modified Postcode Updater class, to include LSOA 2001, LSOA 2011, MSOA 2001 and MSOA 2011 fields in postcode_lookup table in reference database.
src/utility-postcode-updater/src/main/java/org/endeavourhealth/reference/PostcodeUpdater.java
Modified Postcode Updater class, to include LSOA 2001, LSOA 2011, MSOA 2001 and MSOA 2011 fields in postcode_lookup table in reference database.
<ide><path>rc/utility-postcode-updater/src/main/java/org/endeavourhealth/reference/PostcodeUpdater.java <ide> private static final String POSTCODE_GRID_REFERENCE_QUALITY = "OSGRDIND"; <ide> private static final String POSTCODE_COUNTRY = "CTRY"; <ide> private static final String POSTCODE_FORMER_SHA_CODE = "O...
Java
agpl-3.0
4a1ff7d8dfd86bec921cf7ba1386cdd15d6abb7f
0
ibcn-cloudlet/dianne,ibcn-cloudlet/dianne,ibcn-cloudlet/dianne,ibcn-cloudlet/dianne,ibcn-cloudlet/dianne,ibcn-cloudlet/dianne,ibcn-cloudlet/dianne
/******************************************************************************* * DIANNE - Framework for distributed artificial neural networks * Copyright (C) 2015 iMinds - IBCN - UGent * * This file is part of DIANNE. * * DIANNE is free software: you can redistribute it and/or modify * it under the terms of...
be.iminds.iot.dianne.io.things/src/be/iminds/iot/dianne/things/input/SensorInput.java
/******************************************************************************* * DIANNE - Framework for distributed artificial neural networks * Copyright (C) 2015 iMinds - IBCN - UGent * * This file is part of DIANNE. * * DIANNE is free software: you can redistribute it and/or modify * it under the terms of...
fix camera sensor input reshaping
be.iminds.iot.dianne.io.things/src/be/iminds/iot/dianne/things/input/SensorInput.java
fix camera sensor input reshaping
<ide><path>e.iminds.iot.dianne.io.things/src/be/iminds/iot/dianne/things/input/SensorInput.java <ide> if(type.equals("Camera")) { <ide> Frame f = (Frame) value; <ide> if(f.encoding == Frame.Encoding.RGB) { <del> t.reshape(3, f.width, f.height); <add> t.reshape(3, f.height, f.width); <ide> }...
Java
mit
2f9d53d30cb06b794dfc9b1370741bbbcda1af72
0
bladecoder/blade-ink
package com.bladecoder.ink.runtime; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Random; import java.util.Stack; import com.bladecoder.ink.runtime.CallStack.Element; /** * A Story is the core class that represen...
src/main/java/com/bladecoder/ink/runtime/Story.java
package com.bladecoder.ink.runtime; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Random; import java.util.Stack; import com.bladecoder.ink.runtime.CallStack.Element; /** * A Story is the core class that represen...
Seeing a tag after a new line counts as "new content", and therefore causes the lookahead for glue to stop.
src/main/java/com/bladecoder/ink/runtime/Story.java
Seeing a tag after a new line counts as "new content", and therefore causes the lookahead for glue to stop.
<ide><path>rc/main/java/com/bladecoder/ink/runtime/Story.java <ide> /** <ide> * Get any global tags associated with the story. These are defined as hash <ide> * tags defined at the very top of the story. <del> * @throws Exception <add> * <add> * @throws Exception <ide> */ <ide> public List<String> getGloba...
Java
mit
4159f64ecc60ac8a9e7c0cfa441652cb7d6d3f71
0
BP2014W1/JEngine,BP2014W1/JEngine,bptlab/JEngine,BP2014W1/JEngine,BP2014W1/JEngine,bptlab/JEngine,bptlab/JEngine,bptlab/JEngine
package de.uni_potsdam.hpi.bpt.bp2014.database; import de.uni_potsdam.hpi.bpt.bp2014.jhistory.Log; public class DbDataAttributeInstance extends DbObject{ /** * This method creates and saves a new DataAttributeInstance to the database into the context of a DataObjectInstance and saves a log entry into the da...
src/main/java/de/uni_potsdam/hpi/bpt/bp2014/database/DbDataAttributeInstance.java
package de.uni_potsdam.hpi.bpt.bp2014.database; import de.uni_potsdam.hpi.bpt.bp2014.jhistory.Log; public class DbDataAttributeInstance extends DbObject{ /** * This method creates and saves a new DataAttributeInstance to the database into the context of a DataObjectInstance and saves a log entry into the da...
small bug fix in dataattributeinstance logging
src/main/java/de/uni_potsdam/hpi/bpt/bp2014/database/DbDataAttributeInstance.java
small bug fix in dataattributeinstance logging
<ide><path>rc/main/java/de/uni_potsdam/hpi/bpt/bp2014/database/DbDataAttributeInstance.java <ide> * @param value This is the value the DataAttributeinstance should have after executing setValue. <ide> */ <ide> public void setValue(int dataAttributeInstance_id, Object value){ <add> Log log = new Log...
JavaScript
artistic-2.0
a84e1cd5fd7f54b92f5df41a171bbbeeda40c0f7
0
yibn2008/npm,princeofdarkness76/npm,kriskowal/npm,segment-boneyard/npm,midniteio/npm,rsp/npm,cchamberlain/npm,DaveEmmerson/npm,DIREKTSPEED-LTD/npm,chadnickbok/npm,yyx990803/npm,kriskowal/npm,kemitchell/npm,cchamberlain/npm-msys2,TimeToogo/npm,kriskowal/npm,xalopp/npm,yodeyer/npm,evocateur/npm,thomblake/npm,DIREKTSPEED-...
// See http://semver.org/ // This implementation is a *hair* less strict in that it allows // v1.2.3 things, and also tags that don't begin with a char. var semver = "v?([0-9]+)\\.([0-9]+)\\.([0-9]+)(-[0-9]+-?)?([a-zA-Z-][a-zA-Z0-9-]*)?" , expressions = exports.expressions = { parse : new RegExp("^\\s*"+semver+...
lib/utils/semver.js
// See http://semver.org/ // This implementation is a *hair* less strict in that it allows // v1.2.3 things, and also tags that don't begin with a char. var semver = "v?([0-9]+)\\.([0-9]+)\\.([0-9]+)(-[0-9]+-?)?([a-zA-Z-][a-zA-Z0-9-]*)?" , expressions = exports.expressions = { parse : new RegExp("^\\s*"+semver+...
Add a test case, and make "v0.1.2" satisfy ">=0.1.2"
lib/utils/semver.js
Add a test case, and make "v0.1.2" satisfy ">=0.1.2"
<ide><path>ib/utils/semver.js <ide> exports.validRange = validRange <ide> exports.maxSatisfying = maxSatisfying <ide> <del>function valid (version) { return exports.parse(version) && version.trim() } <add>function valid (version) { <add> return exports.parse(version) && version.trim().replace(/^v/, '') <add>} <ide> f...
Java
mit
error: pathspec 'app/src/main/java/de/christinecoenen/code/zapp/utils/ShortcutHelper.java' did not match any file(s) known to git
40c11c89f25da9e8c6709e863c37f0ebecb593f2
1
cemrich/zapp
package de.christinecoenen.code.zapp.utils; import android.annotation.TargetApi; import android.content.Context; import android.content.pm.ShortcutInfo; import android.content.pm.ShortcutManager; import android.graphics.drawable.Icon; import android.os.Build; import java.util.Collections; import de.christinecoenen....
app/src/main/java/de/christinecoenen/code/zapp/utils/ShortcutHelper.java
Create helper class to easily use shortcuts
app/src/main/java/de/christinecoenen/code/zapp/utils/ShortcutHelper.java
Create helper class to easily use shortcuts
<ide><path>pp/src/main/java/de/christinecoenen/code/zapp/utils/ShortcutHelper.java <add>package de.christinecoenen.code.zapp.utils; <add> <add> <add>import android.annotation.TargetApi; <add>import android.content.Context; <add>import android.content.pm.ShortcutInfo; <add>import android.content.pm.ShortcutManager; <add...
Java
mpl-2.0
c255325868672041974b48639995f6efb039f625
0
Pilarbrist/rhino,tntim96/rhino-apigee,ashwinrayaprolu1984/rhino,ashwinrayaprolu1984/rhino,AlexTrotsenko/rhino,Distrotech/rhino,Angelfirenze/rhino,Angelfirenze/rhino,jsdoc3/rhino,sam/htmlunit-rhino-fork,AlexTrotsenko/rhino,tntim96/rhino-jscover-repackaged,sam/htmlunit-rhino-fork,Pilarbrist/rhino,ashwinrayaprolu1984/rhin...
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Yo...
src/org/mozilla/javascript/ScriptRuntime.java
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Yo...
Avoid calling String.toString() on some hot paths
src/org/mozilla/javascript/ScriptRuntime.java
Avoid calling String.toString() on some hot paths
<ide><path>rc/org/mozilla/javascript/ScriptRuntime.java <ide> return +0.0; <ide> if (val == Undefined.instance) <ide> return NaN; <add> if (val instanceof String) <add> return toNumber((String) val); <ide> if (val instanceof CharSequence)...
Java
apache-2.0
6b879df6055de821459f7bb5aacdaa7a16565f90
0
MyRobotLab/myrobotlab,MyRobotLab/myrobotlab,MyRobotLab/myrobotlab,MyRobotLab/myrobotlab,MyRobotLab/myrobotlab,MyRobotLab/myrobotlab,MyRobotLab/myrobotlab
package org.myrobotlab.service; import java.io.IOException; import org.myrobotlab.framework.Service; import org.myrobotlab.framework.ServiceType; import org.myrobotlab.logging.Level; import org.myrobotlab.logging.LoggerFactory; import org.myrobotlab.logging.Logging; import org.myrobotlab.logging.LoggingFacto...
src/main/java/org/myrobotlab/service/Sweety.java
package org.myrobotlab.service; import java.io.IOException; import org.myrobotlab.framework.Service; import org.myrobotlab.framework.ServiceType; import org.myrobotlab.logging.Level; import org.myrobotlab.logging.LoggerFactory; import org.myrobotlab.logging.Logging; import org.myrobotlab.logging.LoggingFacto...
Added setVelocity()
src/main/java/org/myrobotlab/service/Sweety.java
Added setVelocity()
<ide><path>rc/main/java/org/myrobotlab/service/Sweety.java <ide> leftPinkyServo.setRest(leftPinky[rest]); <ide> neckTiltServo.setRest(neckTilt[rest]); <ide> neckPanServo.setRest(neckPan[rest]); <add> <add> setVelocity(75); <add> } <add> <add> void setVelocity(int value) { <add> rightShoulderSe...
Java
mit
2781b6688e7fcad428c14fe54d5b31a4a1f5f0a1
0
sherxon/AlgoDS
package interviewquestions.easy; /** * Created by sherxon on 2016-12-27. */ public class RotateArray { /** * The idea is simple. First we will reverse all array elements. Then do another reversion of elements * up to given kth-1 index and the of part of the array. Voila! rotated :) * Time complexit...
src/interviewquestions/easy/RotateArray.java
package interviewquestions.easy; /** * Created by sherxon on 2016-12-27. */ public class RotateArray { /** * The idea is simple. First we will reverse all array elements. Then do another reversion of elements * up to given kth-1 index and the of part of the array. Voila! rotated :) * Time complexit...
perform reverse method cause an exception Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
src/interviewquestions/easy/RotateArray.java
perform reverse method cause an exception
<ide><path>rc/interviewquestions/easy/RotateArray.java <ide> * */ <ide> public void rotate(int[] a, int k) { <ide> k %= a.length; <del> reverse(a, 0, a.length); <add> reverse(a, 0, a.length - 1); <ide> reverse(a, 0, k - 1); <del> reverse(a, k, a.length); <add> reverse...
JavaScript
mit
0cc9c127768ce406610958e1a241df25326f16c1
0
natefaubion/matches.js,ermouth/matches.js
// patterns.js : Powerful pattern matching for Javascript // Nathan Faubion <nathan@n-son.com> var parser = require("./parser"); var compiler = require("./compiler"); var Matcher = require("./matcher").Matcher; // Cache slice var slice = Array.prototype.slice; // Internal cache of all patterns var patterns = {}; //...
lib/index.js
// patterns.js : Powerful pattern matching for Javascript // Nathan Faubion <nathan@n-son.com> var parser = require("./parser"); var compiler = require("./compiler"); var Matcher = require("./matcher").Matcher; // Cache slice var slice = Array.prototype.slice; // Internal cache of all patterns var patterns = {}; //...
Lookup pattern string in cache before attempting to parse
lib/index.js
Lookup pattern string in cache before attempting to parse
<ide><path>ib/index.js <ide> patternStr = args[0]; <ide> successFn = args[1]; <ide> chain = args[2] ? args[2].clone() : null; <del> tree = parser.parse(patternStr); <ide> <del> // Check if we've already compiled a pattern function for the normalized <del> // pattern. If so, just use that and don't...
Java
mit
8c854a8a89334ff2a331bff458eb68bb75d30320
0
ShaneMcC/DMDirc-Client,greboid/DMDirc,DMDirc/DMDirc,csmith/DMDirc,DMDirc/DMDirc,csmith/DMDirc,DMDirc/DMDirc,DMDirc/DMDirc,greboid/DMDirc,greboid/DMDirc,ShaneMcC/DMDirc-Client,ShaneMcC/DMDirc-Client,greboid/DMDirc,ShaneMcC/DMDirc-Client,csmith/DMDirc,csmith/DMDirc
/* * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
test/com/dmdirc/plugins/PluginInfoTest.java
/* * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
3 now equals 3. (Fix broken unit test)
test/com/dmdirc/plugins/PluginInfoTest.java
3 now equals 3. (Fix broken unit test)
<ide><path>est/com/dmdirc/plugins/PluginInfoTest.java <ide> assertEquals("Description goes here", pi.getDescription()); <ide> assertEquals("randomname", pi.getName()); <ide> assertEquals("Friendly name", pi.getNiceName()); <del> assertEquals(3, pi.getVersion()); <add> assertEquals(...
Java
mit
b63c4008cffdc5b919c0b7c43c8f1487541ccd51
0
M4GiK/tosi-projects,M4GiK/tosi-projects
package com.m4gik.util; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.notNullValue; import java.util.Arrays; import java.util.Collection; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; ...
haval-algorithm/src/test/java/com/m4gik/util/UtilTest.java
package com.m4gik.util; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.notNullValue; import java.util.Arrays; import java.util.Collection; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; ...
Create TDD test for Util class.
haval-algorithm/src/test/java/com/m4gik/util/UtilTest.java
Create TDD test for Util class.
<ide><path>aval-algorithm/src/test/java/com/m4gik/util/UtilTest.java <ide> <ide> @Parameterized.Parameters <ide> public static Collection<Object[]> data() { <del> return Arrays.asList(new Object[][] { <del> { new String("test").getBytes() }, <del> { new Integer(8).byteValue...
Java
mit
3915470fc9ed2c3be456813bc7ad8a76f941cdf1
0
quemb/QMBForm
package com.quemb.qmbform.descriptor; import com.quemb.qmbform.R; import com.quemb.qmbform.annotation.FormElement; import com.quemb.qmbform.annotation.FormValidator; import android.content.Context; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; import static com.quemb.qmbform.ann...
lib/QMBForm/src/main/java/com/quemb/qmbform/descriptor/RowDescriptor.java
package com.quemb.qmbform.descriptor; import com.quemb.qmbform.R; import com.quemb.qmbform.annotation.FormElement; import com.quemb.qmbform.annotation.FormValidator; import android.content.Context; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; import static com.quemb.qmbform.ann...
Update RowDescriptor.java
lib/QMBForm/src/main/java/com/quemb/qmbform/descriptor/RowDescriptor.java
Update RowDescriptor.java
<ide><path>ib/QMBForm/src/main/java/com/quemb/qmbform/descriptor/RowDescriptor.java <ide> <ide> private int mHint = android.R.string.untitled; <ide> <add> private boolean mLastRowInSection = false; <add> <ide> public static RowDescriptor newInstance(String tag) { <ide> <ide> return RowDescriptor.n...
Java
apache-2.0
7cfa8599aac0a529d2cc20ddce8bcb134db098ba
0
kubatatami/JudoNetworking
package com.github.kubatatami.judonetworking.internals.executors; import android.os.Build; import android.os.Process; import com.github.kubatatami.judonetworking.Endpoint; import com.github.kubatatami.judonetworking.logs.JudoLogger; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadFact...
base/src/main/java/com/github/kubatatami/judonetworking/internals/executors/JudoExecutor.java
package com.github.kubatatami.judonetworking.internals.executors; import android.os.Build; import android.os.Process; import com.github.kubatatami.judonetworking.Endpoint; import com.github.kubatatami.judonetworking.logs.JudoLogger; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadFact...
core size experiment
base/src/main/java/com/github/kubatatami/judonetworking/internals/executors/JudoExecutor.java
core size experiment
<ide><path>ase/src/main/java/com/github/kubatatami/judonetworking/internals/executors/JudoExecutor.java <ide> }; <ide> <ide> public JudoExecutor(Endpoint endpoint) { <del> super(2, Integer.MAX_VALUE, 30, TimeUnit.SECONDS, new SynchronousQueue<Runnable>()); <add> super(48, Integer.MAX_VALUE, 30, T...
Java
apache-2.0
32c4a6ebcff1b5b12eef19df3e94a6b52a2c0256
0
jiyiren/LitePal,Ryan800/LitePal,luinnx/LitePal,EasonYi/LitePal,Lerist/LitePal,treejames/LitePal,axter/LitePal,weatherfish/LitePal,lifeqiuzhi520/LitePal,newyu/LitePal,LitePalFramework/LitePal,kuangxiao/LitePal,jxauchengchao/LitePal,zcwfeng/LitePal,canperragit/LitePal,hanziqi/LitePal,yooranchen/LitePal,siemensc62/LitePal...
package org.litepal.crud; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.litepal.exceptions.DataSupportException; /** * This provides a send method to allow calling method in dynamic way. (Just * like Ruby, but not clean or easy as Ru...
src/org/litepal/crud/DynamicExecutor.java
package org.litepal.crud; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.litepal.exceptions.DataSupportException; /** * This provides a send method to allow calling method in dynamic way. (Just * like Ruby, but not clean or easy as Ru...
Remove unused throws
src/org/litepal/crud/DynamicExecutor.java
Remove unused throws
<ide><path>rc/org/litepal/crud/DynamicExecutor.java <ide> * The parameter types. <ide> * @return Returns the result of dynamically invoking method. <ide> * @throws SecurityException <del> * @throws NoSuchMethodException <ide> * @throws IllegalArgumentException <ide> * @throws IllegalAccessExceptio...
JavaScript
apache-2.0
d30056ccc91bdae311f3aa59ec12b2eaed9ae9ce
0
actionhero/actionhero,crrobinson14/actionhero,chimmelb/actionhero,chimmelb/actionhero,gcoonrod/actionhero,crrobinson14/actionhero,actionhero/actionhero,witem/actionhero,gcoonrod/actionhero,S3bb1/actionhero,crrobinson14/actionhero,gcoonrod/actionhero,witem/actionhero,S3bb1/actionhero,witem/actionhero,S3bb1/actionhero,ac...
'use strict'; var fs = require('fs'); var path = require('path'); module.exports = { loadPriority: 0, initialize: function(api, next){ if(!api.utils){ api.utils = {}; } //////////////////////////////////////////////////////////////////////////// // merge two hashes recursively api.utils.hashMer...
initializers/utils.js
'use strict'; var fs = require('fs'); var path = require('path'); module.exports = { loadPriority: 0, initialize: function(api, next){ if(!api.utils){ api.utils = {}; } //////////////////////////////////////////////////////////////////////////// // merge two hashes recursively api.utils.hashMer...
Electron support, avoid bug electron/electron#5454 - remove trailing path separator from recursive directory glob - use path.join(dir, file) instead of path.normalize(dir + file)
initializers/utils.js
Electron support, avoid bug electron/electron#5454 - remove trailing path separator from recursive directory glob - use path.join(dir, file) instead of path.normalize(dir + file)
<ide><path>nitializers/utils.js <ide> if(!followLinkFiles){ followLinkFiles = true; } <ide> <ide> extension = extension.replace('.', ''); <del> if(dir[dir.length - 1] !== path.sep){ dir += path.sep; } <ide> <ide> if(fs.existsSync(dir)){ <ide> fs.readdirSync(dir).forEach(function(file){ ...
Java
apache-2.0
7a8c02b92ba681046aeef4b8fdea9cf77f29652f
0
cn-cerc/summer-mis,cn-cerc/summer-mis
package cn.cerc.mis.core; import cn.cerc.core.IHandle; import cn.cerc.db.core.IAppConfig; import cn.cerc.mis.config.ApplicationConfig; import cn.cerc.ui.core.UrlRecord; import lombok.extern.slf4j.Slf4j; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.serv...
summer-mis/src/main/java/cn/cerc/mis/core/StartApp.java
package cn.cerc.mis.core; import cn.cerc.core.IHandle; import cn.cerc.db.core.IAppConfig; import cn.cerc.mis.config.ApplicationConfig; import cn.cerc.ui.core.UrlRecord; import lombok.extern.slf4j.Slf4j; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.serv...
Update StartApp.java
summer-mis/src/main/java/cn/cerc/mis/core/StartApp.java
Update StartApp.java
<ide><path>ummer-mis/src/main/java/cn/cerc/mis/core/StartApp.java <ide> url.putParam(key, value); <ide> } <ide> } <del> String path = url.getUrl(); <del> if (path.contains("?code=")) { <del> log.info("url {}", url.getUrl()); <del> } <add> log.in...
Java
apache-2.0
76d97e27959525895ff0f7a249f3be93fc5c92f3
0
capitalone/Hydrograph,capitalone/Hydrograph,capitalone/Hydrograph
/******************************************************************************* * Copyright 2017 Capital One Services, LLC and Bitwise, 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...
hydrograph.engine/hydrograph.engine.core/src/main/java/hydrograph/engine/core/component/generator/InputOracleEntityGenerator.java
/******************************************************************************* * Copyright 2017 Capital One Services, LLC and Bitwise, 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...
Fixed a bug with the Oracle component failing when a select query was passed.
hydrograph.engine/hydrograph.engine.core/src/main/java/hydrograph/engine/core/component/generator/InputOracleEntityGenerator.java
Fixed a bug with the Oracle component failing when a select query was passed.
<ide><path>ydrograph.engine/hydrograph.engine.core/src/main/java/hydrograph/engine/core/component/generator/InputOracleEntityGenerator.java <ide> inputRDBMSEntity.setDriverType(inputOracleJaxb.getDriverType().getValue()); <ide> if (inputOracleJaxb.getSchemaName() != null) { <ide> inputRDBMSE...
Java
apache-2.0
060dec5b54bc96d2e239b1e01e9c86ebcd91ba02
0
MichaelBel/Material
package org.app.material.widget; import android.content.Context; import android.support.annotation.ColorInt; import android.support.annotation.NonNull; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.LinearLayout; import org.app.material.R; import org....
material/src/main/java/org/app/material/widget/ColorView.java
package org.app.material.widget; import android.content.Context; import android.support.annotation.ColorInt; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.LinearLayout; import org.app.material.R; import org.app.material.utils.AndroidUtilities; import...
Update widget
material/src/main/java/org/app/material/widget/ColorView.java
Update widget
<ide><path>aterial/src/main/java/org/app/material/widget/ColorView.java <ide> <ide> import android.content.Context; <ide> import android.support.annotation.ColorInt; <add>import android.support.annotation.NonNull; <ide> import android.view.View; <ide> import android.view.ViewGroup; <ide> import android.widget.FrameLay...
Java
apache-2.0
9aef684f63e742c03708e0635d4653319ea85e98
0
redisson/redisson,mrniko/redisson
/** * Copyright (c) 2013-2020 Nikita Koksharov * * 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...
redisson/src/main/java/org/redisson/codec/KryoCodec.java
/** * Copyright (c) 2013-2020 Nikita Koksharov * * 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...
KryoCodec refactoring. #2402
redisson/src/main/java/org/redisson/codec/KryoCodec.java
KryoCodec refactoring. #2402
<ide><path>edisson/src/main/java/org/redisson/codec/KryoCodec.java <ide> */ <ide> package org.redisson.codec; <ide> <add>import com.esotericsoftware.kryo.Kryo; <add>import com.esotericsoftware.kryo.io.Input; <add>import com.esotericsoftware.kryo.io.Output; <add>import io.netty.buffer.ByteBuf; <add>import io.netty.buf...
Java
bsd-2-clause
bbb2d24c400bdcefb0dbba598e7f8b8e5547059a
0
martin-kuba/perun,zwejra/perun,martin-kuba/perun,martin-kuba/perun,stavamichal/perun,mvocu/perun,zoraseb/perun,mvocu/perun,zoraseb/perun,zwejra/perun,mvocu/perun,balcirakpeter/perun,martin-kuba/perun,CESNET/perun,CESNET/perun,mvocu/perun,martin-kuba/perun,zlamalp/perun,zwejra/perun,zwejra/perun,zoraseb/perun,stavamicha...
package cz.metacentrum.perun.rpc.methods; import java.util.ArrayList; import java.util.List; import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.AttributeAlreadyMarkedUniqueException; import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException; import cz.metacentrum...
perun-rpc/src/main/java/cz/metacentrum/perun/rpc/methods/AttributesManagerMethod.java
package cz.metacentrum.perun.rpc.methods; import java.util.ArrayList; import java.util.List; import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.AttributeAlreadyMarkedUniqueException; import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException; import cz.metacentrum...
RPC: Added missing docs for getAttributes(resource,attrNames) - Added API docs for getAttributes() version with resource and specified list of attr names.
perun-rpc/src/main/java/cz/metacentrum/perun/rpc/methods/AttributesManagerMethod.java
RPC: Added missing docs for getAttributes(resource,attrNames)
<ide><path>erun-rpc/src/main/java/cz/metacentrum/perun/rpc/methods/AttributesManagerMethod.java <ide> * <ide> * @param resource int Resource <code>id</code> <ide> * @return List<Attribute> All non-empty Resource attributes <add> * @throw ResourceNotExistsException When Resource with <code>id</code> doesn't exist...
Java
apache-2.0
07c782233ec5f3eb438b093dd3ba05661c716bba
0
AVnetWS/Hentoid,AVnetWS/Hentoid,AVnetWS/Hentoid
package me.devsaki.hentoid.util; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.support.annotation.NonNull; import android.support.annotation.WorkerThread; import android.support.v4.content.ContextCompat; import an...
app/src/main/java/me/devsaki/hentoid/util/FileHelper.java
package me.devsaki.hentoid.util; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.support.annotation.NonNull; import android.support.annotation.WorkerThread; import android.support.v4.content.ContextCompat; import an...
Avoid trying to open outputstream is makefile already failed
app/src/main/java/me/devsaki/hentoid/util/FileHelper.java
Avoid trying to open outputstream is makefile already failed
<ide><path>pp/src/main/java/me/devsaki/hentoid/util/FileHelper.java <ide> <ide> try { <ide> hasPermission = FileUtil.makeFile(testFile); <del> try (OutputStream output = FileHelper.getOutputStream(testFile)) { <del> output.write("test".getBytes()); <del> syn...
Java
bsd-3-clause
d255cf117ef4021bd8cb668de420fded9f7b45f8
0
oschneid/mHIVE,oschneid/mHIVE,oschneid/mHIVE
package org.spin.mhive; import org.spin.mhive.ADSRDialog.ADSRDialogSeekBarChangeListener; import org.spin.mhive.WaveformDialog.OnWaveformDialogButtonListener; import org.spin.mhive.replay.HapticNote; import org.spin.mhive.replay.HapticNoteList; import org.spin.mhive.replay.HapticNoteRecord; import org.spin.mhive.repla...
mHIVE/src/org/spin/mhive/MainActivity.java
package org.spin.mhive; import org.spin.mhive.ADSRDialog.ADSRDialogSeekBarChangeListener; import org.spin.mhive.WaveformDialog.OnWaveformDialogButtonListener; import org.spin.mhive.replay.HapticNote; import org.spin.mhive.replay.HapticNoteList; import org.spin.mhive.replay.HapticNoteRecord; import org.spin.mhive.repla...
Minor cleanup
mHIVE/src/org/spin/mhive/MainActivity.java
Minor cleanup
<ide><path>HIVE/src/org/spin/mhive/MainActivity.java <ide> } <ide> else if (event.getAction() == MotionEvent.ACTION_UP) <ide> { <del> //TODO: put the recording stuff in HIVEAudioGenerator! <ide> hiveAudioGenerator.Stop(); <del> <ide> } <ide> <ide> return false;
JavaScript
apache-2.0
4ec463b8861ccd0f3fa70f618906f0230fbdc7b2
0
jlhughes/foam,foam-framework/foam,jlhughes/foam,foam-framework/foam,foam-framework/foam,foam-framework/foam,jlhughes/foam,jlhughes/foam,foam-framework/foam
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
js/foam/demos/U2Demo.js
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
U2: Added HTML Injection test to U2Demo.
js/foam/demos/U2Demo.js
U2: Added HTML Injection test to U2Demo.
<ide><path>s/foam/demos/U2Demo.js <ide> var E = X.E.bind(X.sub()); <ide> var dynamic = GLOBAL.dynamic = X.dynamic; <ide> <del>E('b').add('bold', E('br')).write(); <add>E('b').add( <add> 'bold', <add> E('br'), <add> '<span style="color:red">HTML Injection Attempt</span>', <add> E('br')).write(); <ide> <ide> E('b')...
Java
apache-2.0
bc90d0663caadd3df5c5943dc2af5101a4275fc2
0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.model.admin; import com.yahoo.config.model.deploy.DeployState; import com.yahoo.config.model.producer.AbstractConfigProducer; import com.yahoo.vespa.model.container.ContainerCluster;...
config-model/src/main/java/com/yahoo/vespa/model/admin/LogserverContainerCluster.java
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.model.admin; import com.yahoo.config.model.deploy.DeployState; import com.yahoo.config.model.producer.AbstractConfigProducer; import com.yahoo.vespa.model.container.ContainerCluster;...
Add access log for logserver container
config-model/src/main/java/com/yahoo/vespa/model/admin/LogserverContainerCluster.java
Add access log for logserver container
<ide><path>onfig-model/src/main/java/com/yahoo/vespa/model/admin/LogserverContainerCluster.java <ide> <ide> addDefaultHandlersWithVip(); <ide> addLogHandler(); <add> addDefaultSearchAccessLog(); <ide> } <ide> <ide> @Override
JavaScript
mit
0e93f4646955c4e22dc46b0655642b1a069273ae
0
a-rmz/sbotify
/* @flow */ const router = require('express').Router(); const SpotifyController = require('./SpotifyController'); const controller = new SpotifyController(); const validParams = ['song', 'artist', 'album']; /** * Ensure the token is valid * @type {void} */ router.post('/', (req, res, next) => { if (req.body.tok...
src/lib/spotifyRouter.js
/* @flow */ const router = require('express').Router(); const SpotifyController = require('./SpotifyController'); const controller = new SpotifyController(); const validParams = ['song', 'artist', 'album']; /** * Middleware layer that verifies that both parameter and keyword * are present in the command */ router...
Validation for slack token
src/lib/spotifyRouter.js
Validation for slack token
<ide><path>rc/lib/spotifyRouter.js <ide> const validParams = ['song', 'artist', 'album']; <ide> <ide> /** <add> * Ensure the token is valid <add> * @type {void} <add> */ <add>router.post('/', (req, res, next) => { <add> if (req.body.token == process.env.SLACK_VERIFY_TOKEN) { <add> next(); <add> } <add>}); <add> <...
Java
mpl-2.0
fb3995e8a531539c423cbbccb3ba68f6afc3d2cf
0
pragma-/networklog,RyanTech/networklog,pragma-/networklog,snehesht/networklog,snehesht/networklog,vaginessa/networklog,pragma-/networklog,pragma-/networklog,pragma-/networklog,vaginessa/networklog,vaginessa/networklog,snehesht/networklog,snehesht/networklog,RyanTech/networklog,vaginessa/networklog,RyanTech/networklog,v...
/* (C) 2012 Pragmatic Software This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/ */ package com.googlecode.networklog; import android.os.Environment; import android.p...
src/com/googlecode/networklog/Settings.java
/* (C) 2012 Pragmatic Software This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/ */ package com.googlecode.networklog; import android.os.Environment; import android.p...
Minor correction of indentation
src/com/googlecode/networklog/Settings.java
Minor correction of indentation
<ide><path>rc/com/googlecode/networklog/Settings.java <ide> editor.commit(); <ide> } <ide> <del> public void setStartForeground(boolean value) { <add> public void setStartForeground(boolean value) { <ide> SharedPreferences.Editor editor = prefs.edit(); <ide> editor.putBoolean("start_foreground", value...
Java
apache-2.0
ca2000898916b65c4e1d0748966ad966d97d7fb4
0
mathieufortin01/pdfbox,ChunghwaTelecom/pdfbox,benmccann/pdfbox,veraPDF/veraPDF-pdfbox,torakiki/sambox,BezrukovM/veraPDF-pdfbox,BezrukovM/veraPDF-pdfbox,ZhenyaM/veraPDF-pdfbox,mdamt/pdfbox,ZhenyaM/veraPDF-pdfbox,veraPDF/veraPDF-pdfbox,joansmith/pdfbox,mdamt/pdfbox,joansmith/pdfbox,gavanx/pdflearn,torakiki/sambox,mathieu...
/* * 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 ...
pdfbox/src/main/java/org/apache/pdfbox/filter/JBIG2Filter.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 ...
PDFBOX-2594: Set default params in JBIG2Filter, as suggested by Daniel Bonniot de Ruisselet git-svn-id: c3ad59981690829a43dc34c293c4e2cd04bcd994@1650378 13f79535-47bb-0310-9956-ffa450edef68
pdfbox/src/main/java/org/apache/pdfbox/filter/JBIG2Filter.java
PDFBOX-2594: Set default params in JBIG2Filter, as suggested by Daniel Bonniot de Ruisselet
<ide><path>dfbox/src/main/java/org/apache/pdfbox/filter/JBIG2Filter.java <ide> BufferedImage image; <ide> try <ide> { <del> image = reader.read(0); <add> image = reader.read(0, reader.getDefaultReadParam()); <ide> } <ide> catch (E...
Java
apache-2.0
62d24d8ee550218978669815d3422aa0e7615f74
0
pedroSG94/rtmp-rtsp-stream-client-java,pedroSG94/rtmp-streamer-java,pedroSG94/rtmp-rtsp-stream-client-java
package com.github.faucamp.simplertmp.io; import android.util.Log; import com.github.faucamp.simplertmp.RtmpPublisher; import com.github.faucamp.simplertmp.Util; import com.github.faucamp.simplertmp.amf.AmfMap; import com.github.faucamp.simplertmp.amf.AmfNull; import com.github.faucamp.simplertmp.amf.AmfNumber; import...
rtmp/src/main/java/com/github/faucamp/simplertmp/io/RtmpConnection.java
package com.github.faucamp.simplertmp.io; import android.util.Log; import com.github.faucamp.simplertmp.RtmpPublisher; import com.github.faucamp.simplertmp.Util; import com.github.faucamp.simplertmp.amf.AmfMap; import com.github.faucamp.simplertmp.amf.AmfNull; import com.github.faucamp.simplertmp.amf.AmfNumber; import...
remove failed callback on Unpublish.Success
rtmp/src/main/java/com/github/faucamp/simplertmp/io/RtmpConnection.java
remove failed callback on Unpublish.Success
<ide><path>tmp/src/main/java/com/github/faucamp/simplertmp/io/RtmpConnection.java <ide> publishLock.notifyAll(); <ide> } <ide> break; <del> case "NetStream.Unpublish.Success": <del> connectCheckerRtmp.onConnectionFailedRtmp("Unpublish received"); <del> ...
Java
apache-2.0
d4d4caa5dcaeba1fb92f0d8ee4a44fcad624d0ec
0
BURAI-team/burai
/* * Copyright (C) 2016 Satomichi Nishihara * * This file is distributed under the terms of the * GNU General Public License. See the file `LICENSE' * in the root directory of the present distribution, * or http://www.gnu.org/copyleft/gpl.txt . */ package burai.run; import java.io.BufferedWriter; i...
src/burai/run/RunningNode.java
/* * Copyright (C) 2016 Satomichi Nishihara * * This file is distributed under the terms of the * GNU General Public License. See the file `LICENSE' * in the root directory of the present distribution, * or http://www.gnu.org/copyleft/gpl.txt . */ package burai.run; import java.io.BufferedWriter; i...
change error message of RunningNode
src/burai/run/RunningNode.java
change error message of RunningNode
<ide><path>rc/burai/run/RunningNode.java <ide> <ide> final String message1; <ide> if (dirStr == null || dirStr.isEmpty()) { <del> message1 = "Error in running the project."; <add> message1 = "ERROR in running the project."; <ide> } else { <del> message1 = "Error...
Java
apache-2.0
49013e2f8d9a54ae7ff7d426f9d3117561fddd06
0
sirkkalap/DependencyCheck,sirkkalap/DependencyCheck,sirkkalap/DependencyCheck,sirkkalap/DependencyCheck,sirkkalap/DependencyCheck
/* * This file is part of dependency-check-core. * * 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 ...
dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Downloader.java
/* * This file is part of dependency-check-core. * * 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 ...
improved error reporting to assist users dealing with issue #177
dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Downloader.java
improved error reporting to assist users dealing with issue #177
<ide><path>ependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Downloader.java <ide> import java.net.HttpURLConnection; <ide> import java.net.URISyntaxException; <ide> import java.net.URL; <add>import java.security.InvalidAlgorithmParameterException; <ide> import java.util.logging.Level; <ide> import ja...
Java
apache-2.0
error: pathspec 'Java_OOP/src/org/Liuxy/SHA.java' did not match any file(s) known to git
e7add6ae6f048fad00bb9a5cd5bc40a645565534
1
Liuxyly/Java_Learning,Liuxyly/Java_Learning
package org.Liuxy; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * SHA(Secure Hash Algorithm,安全散列算法),数字签名等密码学应用中重要的工具, * 被广泛地应用于电子商务等信息安全领域。虽然,SHA与MD通过碰撞法都被破解了, 但是SHA仍然是公认的安全加密算法,较之MD更为安全 */ public class SHA { public static final String KEY_SH...
Java_OOP/src/org/Liuxy/SHA.java
SHA-256 SHA-256的使用
Java_OOP/src/org/Liuxy/SHA.java
SHA-256
<ide><path>ava_OOP/src/org/Liuxy/SHA.java <add>package org.Liuxy; <add> <add>import java.math.BigInteger; <add>import java.security.MessageDigest; <add>import java.security.NoSuchAlgorithmException; <add> <add>/** <add> * SHA(Secure Hash Algorithm,安全散列算法),数字签名等密码学应用中重要的工具, <add> * 被广泛地应用于电子商务等信息安全领域。虽然,SHA与MD通过碰撞法都被破解了...
Java
lgpl-2.1
5505c66109a0498805407f08a961880cc8d31efe
0
vaibhav345/lenskit,binweiwu/lenskit,blankazucenalg/lenskit,aglne/lenskit,vaibhav345/lenskit,kluver/lenskit,kluver/lenskit,vaibhav345/lenskit,kluver/lenskit,linjunleo/lenskit,kluver/lenskit,amaliujia/lenskit,vijayvani/Lenskit,aglne/lenskit,tajinder-txstate/lenskit,chrysalag/lenskit,tajinder-txstate/lenskit,amaliujia/len...
/* * LensKit, an open source recommender systems toolkit. * Copyright 2010-2013 Regents of the University of Minnesota and contributors * Work on LensKit has been funded by the National Science Foundation under * grants IIS 05-34939, 08-08692, 08-12148, and 10-17697. * * This program is free software; you can red...
lenskit-data-structures/src/main/java/org/grouplens/lenskit/vectors/SparseVector.java
/* * LensKit, an open source recommender systems toolkit. * Copyright 2010-2013 Regents of the University of Minnesota and contributors * Work on LensKit has been funded by the National Science Foundation under * grants IIS 05-34939, 08-08692, 08-12148, and 10-17697. * * This program is free software; you can red...
Documentation & import cleanups
lenskit-data-structures/src/main/java/org/grouplens/lenskit/vectors/SparseVector.java
Documentation & import cleanups
<ide><path>enskit-data-structures/src/main/java/org/grouplens/lenskit/vectors/SparseVector.java <ide> <ide> import com.google.common.base.Function; <ide> import com.google.common.base.Preconditions; <del>import com.google.common.collect.Iterables; <ide> import com.google.common.collect.Iterators; <ide> import com.goog...
JavaScript
mit
c717c2a1e8aa19a1c75a0d36ee3a6ab73d71585e
0
dzknj/301portfolio,dzknj/301portfolio
var projects = []; function ProjectItem(obj) { this.title = obj.title; this.author = obj.author; this.projectUrl = obj.projectUrl; this.description = obj.description; this.publishedOn = obj.publishedOn; }; /* var el = new ProjectItem('busmall','david zalk', 'http://www.google.com', 'Test for placing project...
js/app.js
var projects = []; function ProjectItem(obj) { this.title = obj.title; this.author = obj.author; this.projectUrl = obj.projectUrl; this.description = obj.description; this.publishedOn = obj.publishedOn; }; /* var el = new ProjectItem('busmall','david zalk', 'http://www.google.com', 'Test for placing project...
trying to get it to work
js/app.js
trying to get it to work
<ide><path>s/app.js <ide> ProjectItem.fetchAllFromServer = function() { <ide> console.log('fetching data from server'); <ide> $.ajax({ <add> async: false, <ide> type: 'GET', <ide> url: 'js/data.json', <ide> success: function(data, message, xhr) { <ide> localStorage.data = JSON.stringify(data); ...
Java
apache-2.0
26b3695c382e71c7e8dada66f164a1b8f40c52b0
0
da1z/intellij-community,diorcety/intellij-community,TangHao1987/intellij-community,salguarnieri/intellij-community,caot/intellij-community,akosyakov/intellij-community,lucafavatella/intellij-community,robovm/robovm-studio,kdwink/intellij-community,dslomov/intellij-community,diorcety/intellij-community,ryano144/intellij...
package com.intellij.lexer; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.fileTypes.FileType; import com.intellij.openapi.fileTypes.SyntaxHighlighter; import com.intellij.psi.jsp.el.ELTokenType; import com.intellij.psi.jsp.JspSpiUtil; import com.intellij.psi.tree.IElementType; import com.i...
xml/impl/src/com/intellij/lexer/HtmlHighlightingLexer.java
package com.intellij.lexer; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.fileTypes.FileType; import com.intellij.openapi.fileTypes.SyntaxHighlighter; import com.intellij.psi.jsp.el.ELTokenType; import com.intellij.psi.jsp.JspSpiUtil; import com.intellij.psi.tree.IElementType; import com.i...
access problem
xml/impl/src/com/intellij/lexer/HtmlHighlightingLexer.java
access problem
<ide><path>ml/impl/src/com/intellij/lexer/HtmlHighlightingLexer.java <ide> private static FileType ourStyleFileType; <ide> private static FileType ourScriptFileType; <ide> <del> class XmlEmbeddmentHandler implements TokenHandler { <add> public class XmlEmbeddmentHandler implements TokenHandler { <ide> public...
Java
apache-2.0
5e890de755f45b04290ef083505c3dcc8f850c75
0
shadabkhaniet/greenhouse,patidarjitu/networking-project-details1,StetsiukRoman/greenhouse,rajacsp/greenhouse,mqprichard/spring-greenhouse-clickstart,abisare/greenhouse,spring-projects/greenhouse,gienini/GreenHouseItteria,spring-projects/greenhouse,shadabkhaniet/greenhouse,aliasnash/z-greenhouse
package com.springsource.greenhouse.updates; import java.text.SimpleDateFormat; import java.util.Date; public class Update { private String text; private Date timestamp; private long userId; public String getText() { return text; } public void setText(String text) { this.text = text; } public D...
src/main/java/com/springsource/greenhouse/updates/Update.java
package com.springsource.greenhouse.updates; import java.text.SimpleDateFormat; import java.util.Date; public class Update { private String text; private String timestamp; private long userId; public String getText() { return text; } public void setText(String text) { this.text = text; } public...
modified the update class to use a date object instead of a string for the timestamp
src/main/java/com/springsource/greenhouse/updates/Update.java
modified the update class to use a date object instead of a string for the timestamp
<ide><path>rc/main/java/com/springsource/greenhouse/updates/Update.java <ide> <ide> private String text; <ide> <del> private String timestamp; <add> private Date timestamp; <ide> <ide> private long userId; <ide> <ide> this.text = text; <ide> } <ide> <del> public String getTimestamp() { <add> public Date g...
JavaScript
mit
eddf6d8e0bb3c9c7a6b0394cb44c3fb8044ede39
0
lduan/retour,lduan/retour,lduan/retour,bison-2014/laika,bison-2014/laika,bison-2014/laika
//= require polyline var directionsDisplay; var directionsService = new google.maps.DirectionsService(); var map; function initialize() { directionsDisplay = new google.maps.DirectionsRenderer(); var mapOptions = { zoom: 4, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(docume...
app/assets/javascripts/map.js
//= require polyline var directionsDisplay; var directionsService = new google.maps.DirectionsService(); var map; function initialize() { directionsDisplay = new google.maps.DirectionsRenderer(); var mapOptions = { zoom: 4, mapTypeId: google.maps.MapTypeId....
fixed indentation
app/assets/javascripts/map.js
fixed indentation
<ide><path>pp/assets/javascripts/map.js <ide> //= require polyline <ide> <del> var directionsDisplay; <del> var directionsService = new google.maps.DirectionsService(); <del> var map; <add>var directionsDisplay; <add>var directionsService = new google.maps.DirectionsService(); <add>var map; <ide> <del>...
Java
apache-2.0
7e3cc007bddc613a2dd135370972de4bfc5bd43f
0
fitermay/intellij-community,youdonghai/intellij-community,mglukhikh/intellij-community,michaelgallacher/intellij-community,signed/intellij-community,vvv1559/intellij-community,fitermay/intellij-community,fitermay/intellij-community,retomerz/intellij-community,signed/intellij-community,signed/intellij-community,suncyche...
/* * Copyright 2000-2013 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/terminal/src/org/jetbrains/plugins/terminal/JBTerminalSchemeColorPalette.java
/* * Copyright 2000-2013 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-118247 fix application of Color Scheme to Terminal. Previously the Terminal view only used ANSI colors 1-6 (the non-bright colors except for black and white) from the Color Scheme and inherited colors 0 and 7-15 from the JediTerm defaults. That resulted in strange partial application of the Color Scheme and, freq...
plugins/terminal/src/org/jetbrains/plugins/terminal/JBTerminalSchemeColorPalette.java
IDEA-118247 fix application of Color Scheme to Terminal.
<ide><path>lugins/terminal/src/org/jetbrains/plugins/terminal/JBTerminalSchemeColorPalette.java <ide> <ide> @Override <ide> public Color[] getIndexColors() { <del> Color[] result = XTERM_PALETTE.getIndexColors(); <del> for (int i = 1; i < 7; i++) { <add> Color[] result = new Color[ 16 ]; <add> for (int...
Java
apache-2.0
82afcf663f27c8f096f089df9652a1434d8342cd
0
francescomari/jackrabbit-oak,catholicon/jackrabbit-oak,catholicon/jackrabbit-oak,ieb/jackrabbit-oak,Kast0rTr0y/jackrabbit-oak,afilimonov/jackrabbit-oak,leftouterjoin/jackrabbit-oak,mduerig/jackrabbit-oak,alexkli/jackrabbit-oak,davidegiannella/jackrabbit-oak,code-distillery/jackrabbit-oak,FlakyTestDetection/jackrabbit-o...
/* * 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 ...
oak-core/src/test/java/org/apache/jackrabbit/oak/core/RootImplFuzzIT.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 ...
fix JavaDoc git-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1447651 13f79535-47bb-0310-9956-ffa450edef68
oak-core/src/test/java/org/apache/jackrabbit/oak/core/RootImplFuzzIT.java
fix JavaDoc
<ide><path>ak-core/src/test/java/org/apache/jackrabbit/oak/core/RootImplFuzzIT.java <ide> <ide> /** <ide> * Fuzz test running random sequences of operations on {@link Tree}. <del> * Run with -DKernelRootFuzzIT-seed=42 to set a specific seed (i.e. 42); <add> * Run with -DRootImplFuzzIT-seed=42 to set a specific seed (...
Java
apache-2.0
0680df9edf5cb17798ed4aaa72bf39fa902cb97b
0
rapodaca/Terasology,kartikey0303/Terasology,CC4401-TeraCity/TeraCity,leelib/Terasology,sceptross/Terasology,dannyzhou98/Terasology,MovingBlocks/Terasology,mertserezli/Terasology,Halamix2/Terasology,indianajohn/Terasology,flo/Terasology,rapodaca/Terasology,Nanoware/Terasology,AWildBeard/Terasology,samuto/Terasology,Mala...
/* * Copyright 2011 Benjamin Glatzel <benjamin.glatzel@me.com>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
src/org/terasology/game/Terasology.java
/* * Copyright 2011 Benjamin Glatzel <benjamin.glatzel@me.com>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Fix broken performance test.
src/org/terasology/game/Terasology.java
Fix broken performance test.
<ide><path>rc/org/terasology/game/Terasology.java <ide> } <ide> <ide> public long getTimeInMs() { <del> <add> if (_timer == null) { <add> initTimer(); <add> } <ide> return _timer.getTimeInMs(); <ide> } <ide>
Java
mit
1aff7b00883a679ac882b2ea9bf2e2b48d34a1ac
0
bcgit/bc-java,bcgit/bc-java,bcgit/bc-java
package org.bouncycastle.jsse.provider; import java.security.GeneralSecurityException; import java.security.KeyManagementException; import java.security.KeyStore; import java.security.SecureRandom; import java.util.Collections; import java.util.HashMap; import java.util.Map; import javax.net.ssl.KeyManager; import ja...
tls/src/main/java/org/bouncycastle/jsse/provider/ProvSSLContextSpi.java
package org.bouncycastle.jsse.provider; import java.security.GeneralSecurityException; import java.security.KeyManagementException; import java.security.KeyStore; import java.security.SecureRandom; import java.util.Collections; import java.util.HashMap; import java.util.Map; import javax.net.ssl.KeyManager; import ja...
Fix a few cipher suite name strings
tls/src/main/java/org/bouncycastle/jsse/provider/ProvSSLContextSpi.java
Fix a few cipher suite name strings
<ide><path>ls/src/main/java/org/bouncycastle/jsse/provider/ProvSSLContextSpi.java <ide> cs.put("TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", CipherSuite.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256); <ide> cs.put("TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_GCM...
Java
apache-2.0
b31ffde58160fced4430b703ecdd89dec7609d8a
0
lithiumtech/flow
/* * Copyright 2015 Lithium Technologies, 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 la...
src/main/java/com/lithium/flow/filer/CachedFiler.java
/* * Copyright 2015 Lithium Technologies, 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 la...
FLOW-10 Fixed CachedFiler to invalidate on write close
src/main/java/com/lithium/flow/filer/CachedFiler.java
FLOW-10 Fixed CachedFiler to invalidate on write close
<ide><path>rc/main/java/com/lithium/flow/filer/CachedFiler.java <ide> import static com.google.common.base.Preconditions.checkNotNull; <ide> <ide> import com.lithium.flow.config.Config; <add>import com.lithium.flow.io.DecoratedOutputStream; <ide> import com.lithium.flow.util.Caches; <ide> import com.lithium.flow.util....
Java
mit
911395d0d727acf8fb0d775eeb9301edc48c27cc
0
tedliang/osworkflow,tedliang/osworkflow,tedliang/osworkflow,tedliang/osworkflow
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */ package com.opensymphony.workflow.spi; import com.mckoi.database.jdbc.MSQLException; import com.opensymphony.module.propertyset.hibernate.PropertySetItem; import junit.framework.Assert; import net.sf.hibernate.SessionFactory; import net.sf.hi...
src/test/com/opensymphony/workflow/spi/DatabaseHelper.java
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */ package com.opensymphony.workflow.spi; import com.mckoi.database.jdbc.MSQLException; import com.opensymphony.module.propertyset.hibernate.PropertySetItem; import junit.framework.Assert; import net.sf.hibernate.SessionFactory; import net.sf.hi...
Slight cleanup of Database helper
src/test/com/opensymphony/workflow/spi/DatabaseHelper.java
Slight cleanup of Database helper
<ide><path>rc/test/com/opensymphony/workflow/spi/DatabaseHelper.java <ide> <ide> //~ Methods //////////////////////////////////////////////////////////////// <ide> <add> /** <add> * Create the database by loading a URL pointing at a SQL script. <add> */ <ide> public static void createDatabase(URL u...
Java
apache-2.0
7335807fbd4fff74a12ac865c3d8c4c40de422dc
0
folio-org/okapi,folio-org/okapi
package okapi; import org.folio.okapi.MainVerticle; import io.vertx.core.DeploymentOptions; import io.vertx.core.Vertx; import io.vertx.core.http.HttpClient; import io.vertx.core.json.JsonObject; import io.vertx.core.logging.Logger; import io.vertx.core.logging.LoggerFactory; import io.vertx.ext.unit.Async; import io....
okapi-core/src/test/java/okapi/ModuleTest.java
package okapi; import org.folio.okapi.MainVerticle; import io.vertx.core.DeploymentOptions; import io.vertx.core.Vertx; import io.vertx.core.http.HttpClient; import io.vertx.core.json.JsonObject; import io.vertx.core.logging.Logger; import io.vertx.core.logging.LoggerFactory; import io.vertx.ext.unit.Async; import io....
Change one test to use filters rather than routingEntries
okapi-core/src/test/java/okapi/ModuleTest.java
Change one test to use filters rather than routingEntries
<ide><path>kapi-core/src/test/java/okapi/ModuleTest.java <ide> // Set up, deploy, and enable the header module <ide> final String docHeaderModule = "{" + LS <ide> + " \"id\" : \"header-module\"," + LS <del> + " \"routingEntries\" : [ {" + LS <add> + " \"filters\" : [ {" + LS <ide> + " ...
JavaScript
apache-2.0
cd30f3aa978c8b590e6b1b7b285341634a212810
0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
'use strict'; // MODULES // var resolve = require( 'path' ).resolve; var exec = require( 'child_process' ).exec; var tape = require( 'tape' ); var IS_BROWSER = require( '@stdlib/assert/is-browser' ); var IS_WINDOWS = require( '@stdlib/assert/is-windows' ); var readFileSync = require( '@stdlib/fs/read-file' ).sync; ...
tools/snippets/test/test.cli.js
'use strict'; // MODULES // var resolve = require( 'path' ).resolve; var exec = require( 'child_process' ).exec; var tape = require( 'tape' ); var IS_BROWSER = require( '@stdlib/assert/is-browser' ); var readFileSync = require( '@stdlib/fs/read-file' ).sync; // VARIABLES // var fpath = resolve( __dirname, '..', 'b...
Update snippet
tools/snippets/test/test.cli.js
Update snippet
<ide><path>ools/snippets/test/test.cli.js <ide> var exec = require( 'child_process' ).exec; <ide> var tape = require( 'tape' ); <ide> var IS_BROWSER = require( '@stdlib/assert/is-browser' ); <add>var IS_WINDOWS = require( '@stdlib/assert/is-windows' ); <ide> var readFileSync = require( '@stdlib/fs/read-file' ).sync; <i...
Java
apache-2.0
9be65873158f39ae1cc0c893727d1d29f73583d4
0
hbs/warp10-platform,hbs/warp10-platform,hbs/warp10-platform,hbs/warp10-platform
// // Copyright 2018 SenX S.A.S. // // 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...
warp10/src/main/java/io/warp10/script/WarpScriptLib.java
// // Copyright 2018 SenX S.A.S. // // 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...
add UPDATE to lib
warp10/src/main/java/io/warp10/script/WarpScriptLib.java
add UPDATE to lib
<ide><path>arp10/src/main/java/io/warp10/script/WarpScriptLib.java <ide> addNamedWarpScriptFunction(new LOCATIONOFFSET("LOCATIONOFFSET")); <ide> addNamedWarpScriptFunction(new FLATTEN("FLATTEN")); <ide> addNamedWarpScriptFunction(new RESHAPE("RESHAPE")); <add> addNamedWarpScriptFunction(new PERMUTE("PERM...
JavaScript
mit
44f2c26307f1c8eaf6627d284872d8830d171250
0
arpetti/LEDITA,arpetti/LEDITA
var async = require('async'); var studentsService = require('./StudentsService'); var activityCreateDao = require('../dao/ActivityCreateDao'); var composesService = require('./ComposesService'); var technologyService = require('./TechnologyService'); var resourceService = require('./ResourceService'); var messages = re...
server/service/ActivityCreateService.js
var async = require('async'); var studentsService = require('./StudentsService'); var activityCreateDao = require('../dao/ActivityCreateDao'); var composesService = require('./ComposesService'); var technologyService = require('./TechnologyService'); var resourceService = require('./Resourceservice'); var messages = re...
fix build - case sensitive issue on resource service
server/service/ActivityCreateService.js
fix build - case sensitive issue on resource service
<ide><path>erver/service/ActivityCreateService.js <ide> var activityCreateDao = require('../dao/ActivityCreateDao'); <ide> var composesService = require('./ComposesService'); <ide> var technologyService = require('./TechnologyService'); <del>var resourceService = require('./Resourceservice'); <add>var resourceService =...
Java
apache-2.0
e3630178b8eb854a6d54b513972ef8413e3b9596
0
dusenberrymw/systemml,gweidner/incubator-systemml,dhutchis/systemml,dusenberrymw/systemml,sandeep-n/incubator-systemml,akchinSTC/systemml,asurve/incubator-systemml,dhutchis/systemml,niketanpansare/systemml,dhutchis/systemml,deroneriksson/incubator-systemml,dhutchis/systemml,dusenberrymw/systemml,deroneriksson/systemml,...
/**  * IBM Confidential  * OCO Source Materials  * (C) Copyright IBM Corp. 2010, 2014  * The source code for this program is not published or otherwise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office.  */ package com.ibm.bi.dml.runtime.matrix.io; import java.io.Da...
SystemML/SystemML/DML/src/main/java/com/ibm/bi/dml/runtime/matrix/io/MatrixBlockDSM.java
/**  * IBM Confidential  * OCO Source Materials  * (C) Copyright IBM Corp. 2010, 2014  * The source code for this program is not published or otherwise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office.  */ package com.ibm.bi.dml.runtime.matrix.io; import java.io.Da...
66141: SystemML Engine Enhancements - Fixes grouped aggregate block operations (sparsity estimate, dense row vectors)
SystemML/SystemML/DML/src/main/java/com/ibm/bi/dml/runtime/matrix/io/MatrixBlockDSM.java
66141: SystemML Engine Enhancements - Fixes grouped aggregate block operations (sparsity estimate, dense row vectors)
<ide><path>ystemML/SystemML/DML/src/main/java/com/ibm/bi/dml/runtime/matrix/io/MatrixBlockDSM.java <ide> return (ret && (((double)ennz)/rlenm1/clenm1) < SPARCITY_TURN_POINT); <ide> } <ide> <add> private boolean estimateSparsityOnGroupedAgg( long rlen, long groups ) <add> { <add> boolean ret = (groups>SKINNY_MATRI...
Java
apache-2.0
247c5f898d9cf927d571ddc47dfc25049530c486
0
ronaldsmartin/Material-ViewPagerIndicator
package com.itsronald.widget; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.database.DataSetObserver; import android.gr...
material-viewpagerindicator/src/main/java/com/itsronald/widget/ViewPagerIndicator.java
package com.itsronald.widget; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.database.DataSetObserver; import android.gr...
Correct condition so path works for last indicator dot.
material-viewpagerindicator/src/main/java/com/itsronald/widget/ViewPagerIndicator.java
Correct condition so path works for last indicator dot.
<ide><path>aterial-viewpagerindicator/src/main/java/com/itsronald/widget/ViewPagerIndicator.java <ide> private void updateIndicators(int currentPage, @Nullable PagerAdapter pagerAdapter) { <ide> final int pageCount = pagerAdapter == null ? 0 : pagerAdapter.getCount(); <ide> updateDotCount(pageCount)...
Java
mit
error: pathspec 'src/dk/aau/d101f14/test/InformationCollector.java' did not match any file(s) known to git
b2fd3725f718e1679c45525282475c2e217ffb84
1
D101F14/TinyVM,D101F14/TinyVM,D101F14/TinyVM
package dk.aau.d101f14.test; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; public class InformationCollector { public static void main(String[] args) { String errorText = ""; ArrayList<String> errorList = new ArrayList<String>(); int normalTermination = 0; int si...
src/dk/aau/d101f14/test/InformationCollector.java
Add class for collecting information of tests
src/dk/aau/d101f14/test/InformationCollector.java
Add class for collecting information of tests
<ide><path>rc/dk/aau/d101f14/test/InformationCollector.java <add>package dk.aau.d101f14.test; <add> <add>import java.io.IOException; <add>import java.io.InputStream; <add>import java.util.ArrayList; <add> <add>public class InformationCollector { <add> <add> public static void main(String[] args) { <add> String errorT...
Java
apache-2.0
9e9d0d47b0e9e4d4b724b74056cf5624cf8fbb94
0
krlohnes/tinkerpop,samiunn/incubator-tinkerpop,vtslab/incubator-tinkerpop,mike-tr-adamson/incubator-tinkerpop,artem-aliev/tinkerpop,apache/incubator-tinkerpop,robertdale/tinkerpop,newkek/incubator-tinkerpop,velo/incubator-tinkerpop,krlohnes/tinkerpop,krlohnes/tinkerpop,gdelafosse/incubator-tinkerpop,RedSeal-co/incubato...
package com.tinkerpop.blueprints.io.graphml; import com.tinkerpop.blueprints.Direction; import com.tinkerpop.blueprints.Edge; import com.tinkerpop.blueprints.Graph; import com.tinkerpop.blueprints.Vertex; import com.tinkerpop.blueprints.io.GraphWriter; import com.tinkerpop.blueprints.io.LexicographicalElementComparato...
blueprints/blueprints-io/src/main/java/com/tinkerpop/blueprints/io/graphml/GraphMLWriter.java
package com.tinkerpop.blueprints.io.graphml; import com.tinkerpop.blueprints.Direction; import com.tinkerpop.blueprints.Edge; import com.tinkerpop.blueprints.Graph; import com.tinkerpop.blueprints.Vertex; import com.tinkerpop.blueprints.io.GraphWriter; import com.tinkerpop.blueprints.io.LexicographicalElementComparato...
Convert XMLSchemaLocation setting to Optional in GraphMLWriter.
blueprints/blueprints-io/src/main/java/com/tinkerpop/blueprints/io/graphml/GraphMLWriter.java
Convert XMLSchemaLocation setting to Optional in GraphMLWriter.
<ide><path>lueprints/blueprints-io/src/main/java/com/tinkerpop/blueprints/io/graphml/GraphMLWriter.java <ide> private Map<String, String> vertexKeyTypes = null; <ide> private Map<String, String> edgeKeyTypes = null; <ide> <del> private String xmlSchemaLocation = null; <add> private Optional<String> xmlSc...
Java
mit
c4d909689e6f071278c63c4625508e3fc02b2a86
0
mitdbg/modeldb,mitdbg/modeldb,mitdbg/modeldb,mitdbg/modeldb,mitdbg/modeldb
package edu.mit.csail.db.ml.server.algorithm.similarity; import edu.mit.csail.db.ml.server.algorithm.similarity.comparators.*; import edu.mit.csail.db.ml.server.storage.TransformerDao; import jooq.sqlite.gen.Tables; import jooq.sqlite.gen.tables.records.LinearmodelRecord; import modeldb.BadRequestException; import mod...
server/src/main/java/edu/mit/csail/db/ml/server/algorithm/similarity/SimilarModels.java
package edu.mit.csail.db.ml.server.algorithm.similarity; import edu.mit.csail.db.ml.server.algorithm.similarity.comparators.*; import edu.mit.csail.db.ml.server.storage.TransformerDao; import jooq.sqlite.gen.Tables; import jooq.sqlite.gen.tables.records.LinearmodelRecord; import modeldb.BadRequestException; import mod...
Comment similarModels
server/src/main/java/edu/mit/csail/db/ml/server/algorithm/similarity/SimilarModels.java
Comment similarModels
<ide><path>erver/src/main/java/edu/mit/csail/db/ml/server/algorithm/similarity/SimilarModels.java <ide> import java.util.List; <ide> import java.util.stream.Collectors; <ide> <add>/** <add> * This exposes the similarModels method that allows finding models similar to a model with a given ID. <add> */ <ide> public clas...
Java
apache-2.0
3588f05ed54efd42b719b2873bde49d65d8293a6
0
rmuir/randomizedtesting,randomizedtesting/randomizedtesting,rmuir/randomizedtesting,carrotsearch/randomizedtesting,rmuir/randomizedtesting,carrotsearch/randomizedtesting,javanna/randomizedtesting,randomizedtesting/randomizedtesting,randomizedtesting/randomizedtesting,carrotsearch/randomizedtesting,javanna/randomizedtes...
package com.carrotsearch.ant.tasks.junit4.listeners; import java.io.IOException; import java.io.Writer; /** * Prefixes every new line with a given byte [], synchronizing multiple streams to emit consistent lines. */ class PrefixedWriter extends Writer { private final static char LF = '\n'; private final Writer ...
junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/PrefixedWriter.java
package com.carrotsearch.ant.tasks.junit4.listeners; import java.io.IOException; import java.io.Writer; /** * Prefixes every new line with a given byte [], synchronizing multiple streams to emit consistent lines. */ class PrefixedWriter extends Writer { private final static char LF = '\n'; private final Writer ...
Don't pass flushes immediately.
junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/PrefixedWriter.java
Don't pass flushes immediately.
<ide><path>unit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/PrefixedWriter.java <ide> <ide> @Override <ide> public void flush() throws IOException { <del> sink.flush(); <add> // don't pass flushes. <ide> } <ide> <ide> @Override
Java
bsd-3-clause
f985c6352b305e7c82cfa786e76222128724465e
0
dyanarose/jsonld-java,giorgos1987/jsonld-java,westei/jsonld-java,westei/jsonld-java,giorgos1987/jsonld-java,tristan/jsonld-java,jsonld-java/jsonld-java,dyanarose/jsonld-java,tristan/jsonld-java
package com.github.jsonldjava.impl; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.openrdf.model.BNode; import org.openrdf.model.Graph; import org.openrdf.model.Literal; import org.openrdf.model.Model...
integration/sesame/src/main/java/com/github/jsonldjava/impl/SesameRDFParser.java
package com.github.jsonldjava.impl; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.openrdf.model.BNode; import org.openrdf.model.Graph; import org.openrdf.model.Literal; import org.openrdf.model.Resource; import org.openrd...
Add stub support for namespaces passing through in similar way to Jena strategy
integration/sesame/src/main/java/com/github/jsonldjava/impl/SesameRDFParser.java
Add stub support for namespaces passing through in similar way to Jena strategy
<ide><path>ntegration/sesame/src/main/java/com/github/jsonldjava/impl/SesameRDFParser.java <ide> import java.util.LinkedHashMap; <ide> import java.util.List; <ide> import java.util.Map; <add>import java.util.Set; <ide> <ide> import org.openrdf.model.BNode; <ide> import org.openrdf.model.Graph; <ide> import org.openrdf...
Java
apache-2.0
b24fb46e0739f15f874713d7c7a41c31571a1724
0
Rauks/PixelRunner
package org.game.runner; import android.view.KeyEvent; import java.io.IOException; import org.andengine.engine.Engine; import org.andengine.engine.LimitedFPSEngine; import org.andengine.engine.camera.Camera; import org.andengine.engine.handler.timer.ITimerCallback; import org.andengine.engine.handler.timer.TimerHandle...
src/org/game/runner/GameActivity.java
package org.game.runner; import android.view.KeyEvent; import java.io.IOException; import org.andengine.engine.Engine; import org.andengine.engine.LimitedFPSEngine; import org.andengine.engine.camera.Camera; import org.andengine.engine.handler.timer.ITimerCallback; import org.andengine.engine.handler.timer.TimerHandle...
Fix pause & resume audio playback (zombie phone)
src/org/game/runner/GameActivity.java
Fix pause & resume audio playback (zombie phone)
<ide><path>rc/org/game/runner/GameActivity.java <ide> import org.game.runner.manager.AudioManager; <ide> import org.game.runner.manager.ResourcesManager; <ide> import org.game.runner.manager.SceneManager; <add>import org.andengine.util.debug.Debug; <ide> <ide> public class GameActivity extends BaseGameActivity{ <ide> ...
Java
mit
b3bc7750208886460827b5bc4cfa3ef2f3f4f131
0
wyrzyk/atlassian-connect-plugin-archetype,wyrzyk/atlassian-connect-plugin-archetype
package it.wyrzyk.archetypes.web.lifecycle; import com.jayway.restassured.module.mockmvc.response.MockMvcResponse; import com.jayway.restassured.module.mockmvc.specification.MockMvcRequestSpecification; import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; impor...
src/test/java/it/wyrzyk/archetypes/web/lifecycle/LifecycleResourceTest.java
package it.wyrzyk.archetypes.web.lifecycle; import com.jayway.restassured.module.mockmvc.response.MockMvcResponse; import com.jayway.restassured.module.mockmvc.specification.MockMvcRequestSpecification; import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; impor...
fixed mock data in lifecycle resource test
src/test/java/it/wyrzyk/archetypes/web/lifecycle/LifecycleResourceTest.java
fixed mock data in lifecycle resource test
<ide><path>rc/test/java/it/wyrzyk/archetypes/web/lifecycle/LifecycleResourceTest.java <ide> .build(); <ide> createInstalled(preparedRequest); <ide> assertThat(lifecycleService.isInstalled(clientKey)).isTrue(); <add> assertThat(lifecycleService.isEnabled(clientKey)).isFalse(); <ide...
Java
apache-2.0
4aac91f517c89f6354a9fe611e02e4dc8b3fbac2
0
intfrr/orientdb,giastfader/orientdb,rprabhat/orientdb,wyzssw/orientdb,wouterv/orientdb,tempbottle/orientdb,rprabhat/orientdb,mmacfadden/orientdb,tempbottle/orientdb,joansmith/orientdb,orientechnologies/orientdb,wyzssw/orientdb,alonsod86/orientdb,allanmoso/orientdb,rprabhat/orientdb,allanmoso/orientdb,intfrr/orientdb,al...
/* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/...
core/src/main/java/com/orientechnologies/orient/core/index/hashindex/local/cache/OWOWCache.java
/* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/...
Issue #3342 was fixed.
core/src/main/java/com/orientechnologies/orient/core/index/hashindex/local/cache/OWOWCache.java
Issue #3342 was fixed.
<ide><path>ore/src/main/java/com/orientechnologies/orient/core/index/hashindex/local/cache/OWOWCache.java <ide> <ide> if (ts - lastSpaceCheck > diskSizeCheckInterval) { <ide> final File storageDir = new File(storagePath); <del> final long freeSpace = storageDir.getFreeSpace(); <del> final long effe...
Java
apache-2.0
26bd0c0167fbb9d24f0500ba4f9fa2f54ead4ace
0
liuyuanyuan/dbeaver,AndrewKhitrin/dbeaver,liuyuanyuan/dbeaver,ruspl-afed/dbeaver,liuyuanyuan/dbeaver,ruspl-afed/dbeaver,liuyuanyuan/dbeaver,liuyuanyuan/dbeaver,ruspl-afed/dbeaver,AndrewKhitrin/dbeaver,AndrewKhitrin/dbeaver,ruspl-afed/dbeaver,AndrewKhitrin/dbeaver
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/runtime/AbstractJob.java
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
#1356 Query/session cancel enhancements
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/runtime/AbstractJob.java
#1356 Query/session cancel enhancements
<ide><path>lugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/runtime/AbstractJob.java <ide> { <ide> private static final Log log = Log.getLog(AbstractJob.class); <ide> <del> public static final int TIMEOUT_BEFORE_BLOCK_CANCEL = 400; <add> public static final int TIMEOUT_BEFORE_BLOCK_CANCEL = 250; <i...
JavaScript
bsd-3-clause
6b61e66b39b676e174497cead9151d0dae6db869
0
eatskolnikov/toggl-button,andreimoldo/toggl-button,bitbull-team/toggl-button,topdown/toggl-button,glensc/toggl-button,bitbull-team/toggl-button,glensc/toggl-button,glensc/toggl-button,topdown/toggl-button,andreimoldo/toggl-button,eatskolnikov/toggl-button
/*jslint indent: 2 */ /*global $: false, document: false, togglbutton: false*/ 'use strict'; togglbutton.render('.ha:not(.toggl)', {observe: true}, function (elem) { var link, description = $('h2', elem), project = $('.hX:last-of-type .hN', elem); if (!description) { return; } link = togglbutton....
src/scripts/content/google-mail.js
/*jslint indent: 2 */ /*global $: false, document: false, togglbutton: false*/ 'use strict'; togglbutton.render('.ha:not(.toggl)', {observe: true}, function (elem) { var link, description = $('h2', elem).textContent, project = $('.hX:last-of-type .hN', elem).textContent.split('/').pop(); link = togglbutto...
Added failsafe to Google mail
src/scripts/content/google-mail.js
Added failsafe to Google mail
<ide><path>rc/scripts/content/google-mail.js <ide> <ide> togglbutton.render('.ha:not(.toggl)', {observe: true}, function (elem) { <ide> var link, <del> description = $('h2', elem).textContent, <del> project = $('.hX:last-of-type .hN', elem).textContent.split('/').pop(); <add> description = $('h2', elem), <a...
Java
apache-2.0
d4e3fa581a08617207e37347651e42566ab97c29
0
baszero/yanel,wyona/yanel,wyona/yanel,wyona/yanel,baszero/yanel,baszero/yanel,wyona/yanel,baszero/yanel,wyona/yanel,baszero/yanel,wyona/yanel,baszero/yanel
package org.wyona.yanel.servlet; import java.util.HashMap; import java.util.Iterator; import org.wyona.security.core.api.Identity; /** * Identity map associating the identities of a user with the realms the user might be signed in (A user can be signed in to multiple realms with different indentities) */ public cl...
src/webapp/src/java/org/wyona/yanel/servlet/IdentityMap.java
package org.wyona.yanel.servlet; import java.util.HashMap; import java.util.Iterator; import org.wyona.security.core.api.Identity; /** * Identity map to get a nice toString() output */ public class IdentityMap extends HashMap { public String toString() { StringBuffer buf = new StringBuffer(); ...
javadoc clarified and improved and String buffer by builder replaced
src/webapp/src/java/org/wyona/yanel/servlet/IdentityMap.java
javadoc clarified and improved and String buffer by builder replaced
<ide><path>rc/webapp/src/java/org/wyona/yanel/servlet/IdentityMap.java <ide> import org.wyona.security.core.api.Identity; <ide> <ide> /** <del> * Identity map to get a nice toString() output <add> * Identity map associating the identities of a user with the realms the user might be signed in (A user can be signed in t...
JavaScript
mit
da4a13d4d85ef51041ed8e8649a55fceeffc7ff4
0
wakaber/Dollchan-Extension-Tools,Y0ba/Dollchan-Extension-Tools,Y0ba/Dollchan-Extension-Tools,lisanyan/Dollchan-Extension-Tools,2Rainbow/Dollchan-Extension-Tools,SthephanShinkufag/Dollchan-Extension-Tools,miku-nyan/Dollchan-Extension-Tools,aslian/Dollchan-Extension-Tools,SthephanShinkufag/Dollchan-Extension-Tools
// ==UserScript== // @name Dollchan Extension Tools // @version 14.2.17.0 // @namespace http://www.freedollchan.org/scripts/* // @author Sthephan Shinkufag @ FreeDollChan // @copyright (C)2084, Bender Bending Rodriguez // @description Doing some profit for imageboards // @icon https://raw.github.com/Sthephan...
Dollchan_Extension_Tools.user.js
// ==UserScript== // @name Dollchan Extension Tools // @version 14.2.17.0 // @namespace http://www.freedollchan.org/scripts/* // @author Sthephan Shinkufag @ FreeDollChan // @copyright (C)2084, Bender Bending Rodriguez // @description Doing some profit for imageboards // @icon https://raw.github.com/Sthephan...
Move image buttons navigation to the main hotkey storage
Dollchan_Extension_Tools.user.js
Move image buttons navigation to the main hotkey storage
<ide><path>ollchan_Extension_Tools.user.js <ide> <ide> keyNavEdit: [ <ide> '%l%i24 – предыдущая страница%/l' + <del> '%l%i33 – следующая страница%/l' + <add> '%l%i217 – следующая страница%/l' + <ide> '%l%i23 – скрыть текущий пост/тред%/l' + <del> '%l%i34 – раскрыть текущий тред%/l' + <add> '%l%i33 – раскрыть...
Java
lgpl-2.1
b21d7502ec26bdfb16835072e36a7e4a0b0c32c8
0
rhusar/wildfly,tomazzupan/wildfly,rhusar/wildfly,rhusar/wildfly,tomazzupan/wildfly,iweiss/wildfly,wildfly/wildfly,iweiss/wildfly,iweiss/wildfly,golovnin/wildfly,xasx/wildfly,jstourac/wildfly,jstourac/wildfly,jstourac/wildfly,99sono/wildfly,tadamski/wildfly,pferraro/wildfly,99sono/wildfly,rhusar/wildfly,xasx/wildfly,gol...
/* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
controller/src/main/java/org/jboss/as/controller/ServiceVerificationHandler.java
/* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
Include exception cause details in SVH failure descriptions
controller/src/main/java/org/jboss/as/controller/ServiceVerificationHandler.java
Include exception cause details in SVH failure descriptions
<ide><path>ontroller/src/main/java/org/jboss/as/controller/ServiceVerificationHandler.java <ide> import org.jboss.msc.service.ServiceController; <ide> import org.jboss.msc.service.ServiceListener; <ide> import org.jboss.msc.service.ServiceName; <add>import org.jboss.msc.service.StartException; <ide> <ide> import java....
JavaScript
mit
eb9947b5102149b64f64e109b90c17f448b3732a
0
mccxiv/xivmap,mccxiv/xivmap
var fs = require('fs'); var del = require('del'); var gulp = require('gulp'); var escape = require('escape-html'); var ghPages = require('gh-pages'); var useref = require('gulp-useref'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var gulpif = require('gulp-if'); var concat = require('gulp...
gulpfile.js
var fs = require('fs'); var del = require('del'); var gulp = require('gulp'); var escape = require('escape-html'); var ghPages = require('gh-pages'); var useref = require('gulp-useref'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var gulpif = require('gulp-if'); var concat = require('gulp...
Add standalone demo to dist
gulpfile.js
Add standalone demo to dist
<ide><path>ulpfile.js <ide> // For publishing a downloadable version including documentation <ide> // ================================================================== <ide> gulp.task('make-dist', function(cb) { <del> runSequence('clean', ['copy-demo', 'copy-xivmap', 'copy-docs', 'copy-ty-note'], ['minify-js', 'minify...
Java
apache-2.0
a773873b3b4bc44d6d13470fe619d72180603bcb
0
the-diamond-dogs-group-oss/android-http,SphericalElephant/android-http,SphericalElephant/android-http,the-diamond-dogs-group-oss/android-http
/* * Copyright (C) 2012 the diamond:dogs|group * * 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...
example/src/at/diamonddogs/example/http/activity/CachingExampleActivity.java
/* * Copyright (C) 2012 the diamond:dogs|group * * 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...
[ADD] useOfflineCache example
example/src/at/diamonddogs/example/http/activity/CachingExampleActivity.java
[ADD] useOfflineCache example
<ide><path>xample/src/at/diamonddogs/example/http/activity/CachingExampleActivity.java <ide> import android.os.Message; <ide> import android.widget.ArrayAdapter; <ide> import android.widget.Toast; <del>import at.diamonddogs.data.dataobjects.CacheInformation; <ide> import at.diamonddogs.data.dataobjects.WebRequest; <ide...
JavaScript
mit
835aefff52e94376d6c112212e089319aad6dedc
0
darryd/vanslam_live,darryd/vanslam_live,darryd/vanslam_live
var NUM_COLUMNS = 12; /*----------------------------------------------------------------------------------------------------------------------------------*/ function p_div_new(performance) { var div = document.createElement("div"); div.className = "performance_div"; div.id = makeid(20); var name = performance...
app/assets/javascripts/performance_div.js
var NUM_COLUMNS = 12; /*----------------------------------------------------------------------------------------------------------------------------------*/ function p_div_new(performance) { var div = document.createElement("div"); div.id = makeid(20); var name = performance.name; div.comm = comm_new(div, pe...
resizing inputs if necessary
app/assets/javascripts/performance_div.js
resizing inputs if necessary
<ide><path>pp/assets/javascripts/performance_div.js <ide> function p_div_new(performance) { <ide> <ide> var div = document.createElement("div"); <add> div.className = "performance_div"; <ide> div.id = makeid(20); <ide> var name = performance.name; <ide> <ide> <ide> var input = document.createElement("inpu...
JavaScript
mit
892776b21692c1b9d850cd2947162bd0582342dc
0
rasjani/canjs,rjgotten/canjs,Psykoral/canjs,mindscratch/canjs,juristr/canjs,tracer99/canjs,jebaird/canjs,yusufsafak/canjs,shiftplanning/canjs,azazel75/canjs,cohuman/canjs,schmod/canjs,mindscratch/canjs,whitecolor/canjs,patrick-steele-idem/canjs,bitovi/canjs,sporto/canjs,beno/canjs,gsmeets/canjs,rasjani/canjs,schmod/can...
/** * @add jQuery.fn */ steal.plugins("jquery/dom").then(function( $ ) { var radioCheck = /radio|checkbox/i, keyBreaker = /[^\[\]]+/g, numberMatcher = /^[\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?$/; var isNumber = function( value ) { if ( typeof value == 'number' ) { return true; } if ( typeof value !...
dom/form_params/form_params.js
/** * @add jQuery.fn */ steal.plugins("jquery/dom").then(function( $ ) { var radioCheck = /radio|checkbox/i, keyBreaker = /[^\[\]]+/g, numberMatcher = /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/ isNumber = function( value ) { if ( typeof value == 'number' ) return true; if ( typeof value != 'string' ) r...
Cleaned and JSLinted form_params.js
dom/form_params/form_params.js
Cleaned and JSLinted form_params.js
<ide><path>om/form_params/form_params.js <ide> steal.plugins("jquery/dom").then(function( $ ) { <ide> var radioCheck = /radio|checkbox/i, <ide> keyBreaker = /[^\[\]]+/g, <del> numberMatcher = /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/ <add> numberMatcher = /^[\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?$/; <ide> <del>...
Java
bsd-3-clause
dda273f6b34e835efbd2d8ebd8f814e2809d1d5f
0
jthrun/sdl_android,jthrun/sdl_android,anildahiya/sdl_android,smartdevicelink/sdl_android
package com.smartdevicelink.test.proxy; import android.test.AndroidTestCase; import com.smartdevicelink.api.ProxyBridge; import com.smartdevicelink.protocol.enums.FunctionID; import com.smartdevicelink.protocol.enums.SessionType; import com.smartdevicelink.proxy.RPCRequest; import com.smartdevicelink.proxy.SystemCapa...
sdl_android/src/androidTest/java/com/smartdevicelink/test/proxy/SystemCapabilityManagerTests.java
package com.smartdevicelink.test.proxy; import android.test.AndroidTestCase; import com.smartdevicelink.protocol.enums.FunctionID; import com.smartdevicelink.protocol.enums.SessionType; import com.smartdevicelink.proxy.RPCRequest; import com.smartdevicelink.proxy.SystemCapabilityManager; import com.smartdevicelink.pr...
Update SystemCapabilityManagerTests tests to include Isdl.addOnRPCResponseListener
sdl_android/src/androidTest/java/com/smartdevicelink/test/proxy/SystemCapabilityManagerTests.java
Update SystemCapabilityManagerTests tests to include Isdl.addOnRPCResponseListener
<ide><path>dl_android/src/androidTest/java/com/smartdevicelink/test/proxy/SystemCapabilityManagerTests.java <ide> <ide> import android.test.AndroidTestCase; <ide> <add>import com.smartdevicelink.api.ProxyBridge; <ide> import com.smartdevicelink.protocol.enums.FunctionID; <ide> import com.smartdevicelink.protocol.enum...
JavaScript
mit
ef53a13d4adb83771ecf8543b17d51f9ff2eda20
0
Teknologica/js-sdk
import chai from 'chai'; import apiInstance from '../api-instance'; import {createSessionsData} from '../utils.js'; const expect = chai.expect; describe('when using the sessions resource', () => { const testIds = {with: null, without: null}; let sharedSessionId; it('I can create a sessions with ID', asy...
test/integration/specs/sessions.spec.js
import chai from 'chai'; import apiInstance from '../api-instance'; import {createSessionsData} from '../utils.js'; const expect = chai.expect; describe('when using the sessions resource', () => { let sharedSessionId; it('I can create a sessions with ID', async() => { const {id: id, ...data} = creat...
fix style issue
test/integration/specs/sessions.spec.js
fix style issue
<ide><path>est/integration/specs/sessions.spec.js <ide> <ide> describe('when using the sessions resource', () => { <ide> <add> const testIds = {with: null, without: null}; <ide> let sharedSessionId; <ide> <ide> it('I can create a sessions with ID', async() => { <ide> const {id: id, ...data} = crea...
Java
bsd-2-clause
error: pathspec 'src/java/grl/src/grl/UDPManager.java' did not match any file(s) known to git
df7b2afc0a55c9d6479737e480d37b1e6e54a9d2
1
ahundt/robone,ahundt/robone,ahundt/robone
package grl; import java.nio.ByteBuffer; import com.kuka.task.ITaskLogger; import java.io.*; import java.net.*; public class UDPManager { DatagramSocket socket = null; ITaskLogger logger; String _Remote_IP; int _Remote_Port; InetAddress _address_send = null; int statesLength = 0; lon...
src/java/grl/src/grl/UDPManager.java
Class UDPManager added to Java code for handling communication between java software in robot and the ros interface in pc
src/java/grl/src/grl/UDPManager.java
Class UDPManager added to Java code for handling communication between java software in robot and the ros interface in pc
<ide><path>rc/java/grl/src/grl/UDPManager.java <add>package grl; <add> <add>import java.nio.ByteBuffer; <add> <add>import com.kuka.task.ITaskLogger; <add>import java.io.*; <add>import java.net.*; <add> <add>public class UDPManager { <add> <add> DatagramSocket socket = null; <add> <add> ITaskLogger logger; <add> String...
Java
mit
47801e2da5ca688d4c900fede4d86a4e8f069347
0
rcbyron/java
/* CRITTERS Critter.java * EE422C Project 4 submission by * Robert (Connor) Byron * rcb2746 * 76550 * Joel Guo * jg55475 * 76550 * Slip days used: 0 (+1 for this project) * Fall 2015 */ package project4; import java.awt.Point; import java.lang.reflect.Constructor; import java.util.ArrayList; ...
critter-world-fx/project4/Critter.java
/* CRITTERS Critter.java * EE422C Project 4 submission by * Robert (Connor) Byron * rcb2746 * 76550 * Joel Guo * jg55475 * 76550 * Slip days used: 0 (+1 for this project) * Fall 2015 */ package project4; import java.awt.Point; import java.lang.reflect.Constructor; import java.util.ArrayList; ...
Joel sux
critter-world-fx/project4/Critter.java
Joel sux
<ide><path>ritter-world-fx/project4/Critter.java <ide> x_coord = (x_coord + dirs[direction].x) % Params.world_width; <ide> y_coord = (y_coord + dirs[direction].y) % Params.world_height; <ide> hasMoved = true; <add> } <add> <add> protected String look(int direction) { <add> int x = (x_coord ...
Java
apache-2.0
23cc2d5c5420af695b9b0f219bb3f8c8efe982a6
0
polopoly/brap
package no.tornado.brap.auth; import java.io.Serializable; /** * A principal that can hold a username/password combination. * You are welcome to write your own principal, or just use your * existing domain object for authentication! * * @see no.tornado.brap.auth.AuthenticationProvider * @see no.tornado.brap.aut...
brap-server/src/main/java/no/tornado/brap/auth/UsernamePasswordPrincipal.java
package no.tornado.brap.auth; import java.io.Serializable; /** * A principal that can hold a username/password combination. * You are welcome to write your own principal, or just use your * existing domain object for authentication! * * @see no.tornado.brap.auth.AuthenticationProvider * @see no.tornado.brap.aut...
Added empty constructor to UsernamePasswordPrincipal git-svn-id: a8e09c428ee126305714c93ec2b5216c2b20765b@88 9f856da2-7ffc-11de-b80a-f3367b01929d
brap-server/src/main/java/no/tornado/brap/auth/UsernamePasswordPrincipal.java
Added empty constructor to UsernamePasswordPrincipal
<ide><path>rap-server/src/main/java/no/tornado/brap/auth/UsernamePasswordPrincipal.java <ide> public class UsernamePasswordPrincipal implements Serializable { <ide> private String username; <ide> private String password; <add> <add> public UsernamePasswordPrincipal() { <add> } <ide> <ide> public User...
Java
apache-2.0
8d667d17cef7595a8cc5bce0b8ff01fa9edacfb9
0
bywan/trello-java-wrapper,nilsga/trello-java-wrapper
package com.julienvey.trello.impl; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.julienvey.trello.TrelloHttpClient; import com.julienvey.trello.exception.TrelloHttpException; import org.apache.http.Header; import org.apache.http.HttpEntity; im...
src/main/java/com/julienvey/trello/impl/ApacheHttpClient.java
package com.julienvey.trello.impl; import com.fasterxml.jackson.databind.ObjectMapper; import com.julienvey.trello.TrelloHttpClient; import com.julienvey.trello.exception.TrelloHttpException; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.c...
Add private method getEntityAndReleaseConnection
src/main/java/com/julienvey/trello/impl/ApacheHttpClient.java
Add private method getEntityAndReleaseConnection
<ide><path>rc/main/java/com/julienvey/trello/impl/ApacheHttpClient.java <ide> package com.julienvey.trello.impl; <ide> <add>import com.fasterxml.jackson.core.JsonProcessingException; <ide> import com.fasterxml.jackson.databind.ObjectMapper; <ide> import com.julienvey.trello.TrelloHttpClient; <ide> import com.julienvey...
Java
apache-2.0
0fc460695251b91752f7f3ef0a803e83cefc6ab4
0
w2ogroup/incubator-streams,apache/streams,robdouglas/incubator_streams_apache,steveblackmon/incubator-streams,apache/streams,robdouglas/incubator_streams_apache,robdouglas/incubator-streams,jfrazee/incubator-streams,apache/streams
/* * 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 ...
streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/serializer/util/TwitterActivityUtil.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 ...
STREAMS-93 | Properly setting image in actor object
streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/serializer/util/TwitterActivityUtil.java
STREAMS-93 | Properly setting image in actor object
<ide><path>treams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/serializer/util/TwitterActivityUtil.java <ide> import com.google.common.base.Strings; <ide> import com.google.common.collect.Lists; <ide> import org.apache.streams.exceptions.ActivitySerializerException; <del>import org.apache.s...
Java
apache-2.0
7fe43f4e0f2f858e063e261e67d6f021e2227cdd
0
google/data-transfer-project,google/data-transfer-project,google/data-transfer-project,google/data-transfer-project,google/data-transfer-project
/* * Copyright 2018 The Data Transfer Project Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/dataportabilityproject/datatransfer/google/photos/GooglePhotosExporter.java
/* * Copyright 2018 The Data Transfer Project Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Quick fix on result type in Google Photos Exporter (#291)
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/dataportabilityproject/datatransfer/google/photos/GooglePhotosExporter.java
Quick fix on result type in Google Photos Exporter (#291)
<ide><path>xtensions/data-transfer/portability-data-transfer-google/src/main/java/org/dataportabilityproject/datatransfer/google/photos/GooglePhotosExporter.java <ide> } <ide> <ide> ResultType resultType = ResultType.CONTINUE; <add> if (nextPageData == null || continuationData.getContainerResources()....
Java
bsd-3-clause
6ee916489f02d9e76494e12fd70e4e9a7749429b
0
MjAbuz/carrot2,MjAbuz/carrot2,MjAbuz/carrot2,MjAbuz/carrot2,MjAbuz/carrot2,MjAbuz/carrot2,MjAbuz/carrot2,MjAbuz/carrot2
/* * Carrot2 Project * Copyright (C) 2002-2005, Dawid Weiss * Portions (C) Contributors listed in carrot2.CONTRIBUTORS file. * All rights reserved. * * Refer to the full license file "carrot2.LICENSE" * in the root folder of the CVS checkout or at: * http://www.cs.put.poznan.pl/dweiss/carrot2.LICENSE */ packag...
carrot2/components/carrot2-local-core/src/com/dawidweiss/carrot/core/local/clustering/RawDocumentBase.java
/* * Carrot2 Project * Copyright (C) 2002-2005, Dawid Weiss * Portions (C) Contributors listed in carrot2.CONTRIBUTORS file. * All rights reserved. * * Refer to the full license file "carrot2.LICENSE" * in the root folder of the CVS checkout or at: * http://www.cs.put.poznan.pl/dweiss/carrot2.LICENSE */ packag...
Added an utility constructor that takes snippet, title and url as arguments. git-svn-id: 659eb10424342cea22344621e2d2cbd98ef34d09@515 7ff1d41c-760d-0410-a7ff-a3a56f310b35
carrot2/components/carrot2-local-core/src/com/dawidweiss/carrot/core/local/clustering/RawDocumentBase.java
Added an utility constructor that takes snippet, title and url as arguments.
<ide><path>arrot2/components/carrot2-local-core/src/com/dawidweiss/carrot/core/local/clustering/RawDocumentBase.java <ide> public RawDocumentBase() <ide> { <ide> propertyHelper = new PropertyHelper(); <add> } <add> <add> /** <add> * Creates a new raw document. <add> * <add> * @param u...
JavaScript
mit
6cbc52d0caf54d1150e73d2197c3d9813985446e
0
amitsch666/nano
const express = require('express') const path = require('path') const next = require('next') const compression = require('compression') const favicon = require('serve-favicon') const dev = process.env.NODE_ENV !== 'production' const app = next({ dev }) const handle = app.getRequestHandler() app.prepare() .then(() => ...
server.js
const express = require('express') const path = require('path') const next = require('next') const compression = require('compression') const favicon = require('serve-favicon') const dev = process.env.NODE_ENV !== 'production' const app = next({ dev }) const handle = app.getRequestHandler() app.prepare() .then(() => ...
Minor improvements to Express scaffolding
server.js
Minor improvements to Express scaffolding
<ide><path>erver.js <ide> return handle(req, res) <ide> }) <ide> <del> server.listen(3000, (err) => { <add> // Normalize a port into a number, string, or false. <add> function normalizePort(val) { <add> const port = parseInt(val, 10) <add> if (isNaN(port)) { <add> // named pipe <add> return va...
Java
apache-2.0
688907ffbd69149246eed957dd4dd3f9360ae6da
0
bhecquet/seleniumRobot,bhecquet/seleniumRobot,bhecquet/seleniumRobot
package com.seleniumtests.ut.browserfactory; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.when; import java.net.URL; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.mockito.Mock; impo...
core/src/test/java/com/seleniumtests/ut/browserfactory/TestSeleniumGridDriverFactory.java
package com.seleniumtests.ut.browserfactory; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.when; import java.net.URL; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.mockito.Mock; impo...
issue #311: corrected expected exception
core/src/test/java/com/seleniumtests/ut/browserfactory/TestSeleniumGridDriverFactory.java
issue #311: corrected expected exception
<ide><path>ore/src/test/java/com/seleniumtests/ut/browserfactory/TestSeleniumGridDriverFactory.java <ide> import com.seleniumtests.core.SeleniumTestsContext; <ide> import com.seleniumtests.core.SeleniumTestsContextManager; <ide> import com.seleniumtests.customexception.ScenarioException; <del>import com.seleniumtests.c...