lang stringclasses 2
values | license stringclasses 13
values | stderr stringlengths 0 343 | commit stringlengths 40 40 | returncode int64 0 128 | repos stringlengths 6 87.7k | new_contents stringlengths 0 6.23M | new_file stringlengths 3 311 | old_contents stringlengths 0 6.23M | message stringlengths 6 9.1k | old_file stringlengths 3 311 | subject stringlengths 0 4k | git_diff stringlengths 0 6.31M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Java | bsd-3-clause | bf7ce8ab24ac417c7216d22325fe4eb656bc587e | 0 | ksclarke/basex,BaseXdb/basex,BaseXdb/basex,drmacro/basex,deshmnnit04/basex,BaseXdb/basex,BaseXdb/basex,ksclarke/basex,dimitarp/basex,ksclarke/basex,joansmith/basex,deshmnnit04/basex,JensErat/basex,vincentml/basex,deshmnnit04/basex,vincentml/basex,joansmith/basex,ksclarke/basex,BaseXdb/basex,BaseXdb/basex,dimitarp/basex... | package org.basex.query.item;
import static org.basex.data.DataText.*;
import org.basex.query.QueryException;
import org.basex.query.expr.Expr;
import org.basex.util.InputInfo;
import org.basex.util.Token;
import org.basex.util.list.ByteList;
/**
* String item.
*
* @author BaseX Team 2005-11, BSD Lic... | src/main/java/org/basex/query/item/Str.java | package org.basex.query.item;
import static org.basex.data.DataText.*;
import org.basex.query.QueryException;
import org.basex.query.expr.Expr;
import org.basex.util.InputInfo;
import org.basex.util.Token;
import org.basex.util.list.ByteList;
/**
* String item.
*
* @author BaseX Team 2005-11, BSD Lic... | [MOD] XQuery: Str dump output fix | src/main/java/org/basex/query/item/Str.java | [MOD] XQuery: Str dump output fix | <ide><path>rc/main/java/org/basex/query/item/Str.java
<ide> final ByteList tb = new ByteList();
<ide> tb.add('"');
<ide> for(final byte v : val) {
<del> switch(v) {
<del> case '&': tb.add(E_AMP); break;
<del> case '>': tb.add(E_GT); break;
<del> case '<': tb.add(E_LT); break;
<del>... | |
Java | apache-2.0 | 6de40319a37291c51d17426c70a7e70a2fb26c4c | 0 | psoreide/bnd,psoreide/bnd,psoreide/bnd | package aQute.tester.bundle.engine;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import org.junit.platform.engine.ConfigurationParameters;
import org.junit.platform.engine.EngineExecutionListener;
import org.junit.platform.engine.ExecutionRequest;
import org.junit.platform.engine.TestDes... | biz.aQute.tester.junit-platform/src/aQute/tester/bundle/engine/BundleDescriptor.java | package aQute.tester.bundle.engine;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import org.junit.platform.engine.ConfigurationParameters;
import org.junit.platform.engine.EngineExecutionListener;
import org.junit.platform.engine.ExecutionRequest;
import org.junit.platform.engine.TestDes... | junit: Use method reference for optional else operation
Signed-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>
| biz.aQute.tester.junit-platform/src/aQute/tester/bundle/engine/BundleDescriptor.java | junit: Use method reference for optional else operation | <ide><path>iz.aQute.tester.junit-platform/src/aQute/tester/bundle/engine/BundleDescriptor.java
<ide> import org.osgi.framework.Bundle;
<ide> import org.osgi.framework.BundleException;
<ide>
<add>import aQute.bnd.osgi.Constants;
<add>
<ide> public class BundleDescriptor extends AbstractTestDescriptor {
<ide>
<ide> fi... | |
Java | mit | 79e53231b8db2073c29c6f75e620c7e0994ab4da | 0 | nandan4/Jenkins,duzifang/my-jenkins,goldchang/jenkins,samatdav/jenkins,dariver/jenkins,godfath3r/jenkins,Jimilian/jenkins,scoheb/jenkins,thomassuckow/jenkins,gusreiber/jenkins,jglick/jenkins,Vlatombe/jenkins,mrooney/jenkins,SenolOzer/jenkins,petermarcoen/jenkins,seanlin816/jenkins,csimons/jenkins,wangyikai/jenkins,morf... | package hudson.scm;
import hudson.FilePath;
import hudson.FilePath.FileCallable;
import hudson.Launcher;
import hudson.Util;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
import hudson.model.Hudson;
import hudson.model.TaskListener;
import hudson.remoting.Ca... | core/src/main/java/hudson/scm/SubversionSCM.java | package hudson.scm;
import hudson.FilePath;
import hudson.FilePath.FileCallable;
import hudson.Launcher;
import hudson.Util;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
import hudson.model.Hudson;
import hudson.model.TaskListener;
import hudson.remoting.Ca... | file:// URL handling needs a non-null SVNAuthentication object to be returned.
git-svn-id: 28f34f9aa52bc55a5ddd5be9e183c5cccadc6ee4@3406 71c3de6d-444a-0410-be80-ed276b4c234a
| core/src/main/java/hudson/scm/SubversionSCM.java | file:// URL handling needs a non-null SVNAuthentication object to be returned. | <ide><path>ore/src/main/java/hudson/scm/SubversionSCM.java
<ide> import org.tmatesoft.svn.core.auth.SVNPasswordAuthentication;
<ide> import org.tmatesoft.svn.core.auth.SVNSSHAuthentication;
<ide> import org.tmatesoft.svn.core.auth.SVNSSLAuthentication;
<add>import org.tmatesoft.svn.core.auth.SVNUserNameAuthentication;
... | |
Java | bsd-3-clause | 1975a3945ad29958c37ed5b9a3412cefc92c23ba | 0 | rnathanday/dryad-repo,ojacobson/dryad-repo,mdiggory/dryad-repo,jimallman/dryad-repo,rnathanday/dryad-repo,jamie-dryad/dryad-repo,ojacobson/dryad-repo,rnathanday/dryad-repo,mdiggory/dryad-repo,jimallman/dryad-repo,rnathanday/dryad-repo,jimallman/dryad-repo,jimallman/dryad-repo,rnathanday/dryad-repo,mdiggory/dryad-repo,o... | /*
* ItemExport.java
*
* Version: $Revision$
*
* Date: $Date$
*
* Copyright (c) 2002-2005, Hewlett-Packard Company and Massachusetts
* Institute of Technology. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... | dspace-api/src/main/java/org/dspace/app/itemexport/ItemExport.java | /*
* ItemExport.java
*
* Version: $Revision$
*
* Date: $Date$
*
* Copyright (c) 2002-2005, Hewlett-Packard Company and Massachusetts
* Institute of Technology. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... | include in the 'uri' file the canonical forms of all the identifiers associated with an item
git-svn-id: 39c64a9546defcc59b5f71fe8fe20b2d01c24c1f@2424 9c30dcfa-912a-0410-8fc2-9e0234be79fd
| dspace-api/src/main/java/org/dspace/app/itemexport/ItemExport.java | include in the 'uri' file the canonical forms of all the identifiers associated with an item | <ide><path>space-api/src/main/java/org/dspace/app/itemexport/ItemExport.java
<ide> */
<ide> package org.dspace.app.itemexport;
<ide>
<del>import java.io.BufferedOutputStream;
<del>import java.io.File;
<del>import java.io.FileOutputStream;
<del>import java.io.FileWriter;
<del>import java.io.IOException;
<del>import ja... | |
JavaScript | mit | a2a2fceeb97d48c2173e16334083a28665c2c8b1 | 0 | moxie-lean/ng-patternlab,moxie-lean/ng-patternlab | 'use strict';
//
// imports
//
var gulp = require('gulp');
var gutil = require('gulp-util');
var templateCache = require('gulp-angular-templatecache');
var fs = require('fs');
var glob = require('glob');
var path = require('path');
var _ = require('lodash');
//
// constants
//
var CONFIG_FILE = '../../config/patterns... | gulpfile.js | 'use strict';
//
// imports
//
var gulp = require('gulp');
var gutil = require('gulp-util');
var templateCache = require('gulp-angular-templatecache');
var fs = require('fs');
var glob = require('glob');
var path = require('path');
var _ = require('lodash');
//
// constants
//
var CONFIG_FILE = '../../config/patterns... | comment out gulpfile hack to fix template address issue
| gulpfile.js | comment out gulpfile hack to fix template address issue | <ide><path>ulpfile.js
<ide> transformUrl: function (url) {
<ide> if (url.indexOf(PATTERNS_TEMPLATE_PAGE) >= 0)
<ide> return PATTERNS_TEMPLATE_PAGE;
<del> else
<add> else {
<add> //@Andy Barrios - there seems to be an issue ... | |
JavaScript | mit | 5b168985806f7fd895bf7e603008c07a4ebd4c25 | 0 | damon-lanphear/ember-deploy-dynamodb,damon-lanphear/ember-deploy-dynamodb | /* jshint node: true */
'use strict';
var path = require('path');
var fs = require('fs');
var denodeify = require('rsvp').denodeify;
var readFile = denodeify(fs.readFile);
var DeployPluginBase = require('ember-cli-deploy-plugin');
var DynamoDBAdapter = require('./lib/dynamodb');
var Promise = require('rsvp').Promis... | index.js | /* jshint node: true */
'use strict';
var path = require('path');
var fs = require('fs');
var denodeify = require('rsvp').denodeify;
var readFile = denodeify(fs.readFile);
var DeployPluginBase = require('ember-cli-deploy-plugin');
var DynamoDBAdapter = require('./lib/dynamodb');
var Promise = require('ember-cli/lib... | Replace deprecated Promise with rsvp
Importing ember-cli/ext/promise has been deprecated and is generating warnings. This commit changes the require() to use rsvp directly. | index.js | Replace deprecated Promise with rsvp | <ide><path>ndex.js
<ide>
<ide> var DeployPluginBase = require('ember-cli-deploy-plugin');
<ide> var DynamoDBAdapter = require('./lib/dynamodb');
<del>var Promise = require('ember-cli/lib/ext/promise');
<add>var Promise = require('rsvp').Promise;
<ide>
<ide> var DEFAULT_MANIFEST_SIZE = 10;
<ide> | |
Java | apache-2.0 | 11c6fcc1ea296497dcdfa445a58f7d2380b51b0b | 0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus | package io.quarkus.arc.processor;
import io.quarkus.arc.Lock;
import io.quarkus.arc.impl.ActivateRequestContextInterceptor;
import io.quarkus.arc.impl.InjectableRequestContextController;
import io.quarkus.arc.impl.LockInterceptor;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Modifie... | independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanArchives.java | package io.quarkus.arc.processor;
import io.quarkus.arc.Lock;
import io.quarkus.arc.impl.ActivateRequestContextInterceptor;
import io.quarkus.arc.impl.InjectableRequestContextController;
import io.quarkus.arc.impl.LockInterceptor;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Modifie... | Don't include on-demand indexed classes in getAllClasses
This can cause problems as on demand classes can be added
by other build steps concurrently, which can give an inconsistent
view. It can also lead to classes that are not in a bean archive
to be considered as beans.
| independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanArchives.java | Don't include on-demand indexed classes in getAllClasses | <ide><path>ndependent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanArchives.java
<ide> import java.util.Map;
<ide> import java.util.Optional;
<ide> import java.util.Set;
<del>import java.util.stream.Collectors;
<ide> import javax.enterprise.context.BeforeDestroyed;
<ide> import javax.enterprise.con... | |
JavaScript | mit | 8865bc6e145b9c7730a23a54857d9bac26370925 | 0 | educach/curricula-ui,educach/curricula-ui,educach/curricula-ui |
(function($, Backbone, _, Archibald) {
// Prepare a global item database. This will allow us to quickly update large
// lists of items, in case of recursive checking, for example.
var itemDatabase = new Archibald.ItemCollection();
// Prepare a global column database. This will allow us to manipulate columns,
// like... | app/js/core.js |
(function($, Backbone, _, Archibald) {
// Prepare a global item database. This will allow us to quickly update large
// lists of items, in case of recursive checking, for example.
var itemDatabase = new Archibald.ItemCollection();
// Prepare a global column database. This will allow us to manipulate columns,
// like... | Make sure we cast this to a boolean, otherwise .where() queries might not return expected results.
| app/js/core.js | Make sure we cast this to a boolean, otherwise .where() queries might not return expected results. | <ide><path>pp/js/core.js
<ide> Archibald.getItemDatabase().add(new Archibald.ItemModel({
<ide> id: items[group][i].id,
<ide> name: items[group][i].name,
<del> hasChildren: typeof items[items[group][i].id] !== undefined && items[items[group][i].id].length,
<add> hasChildren: !!(typeof... | |
Java | mit | 141abe71c6fe44f7e8937d523183aa8b8c87b674 | 0 | dchouzer/OOGASalad,tjqadri101/oogasalad | package gameFactory;
import java.util.ResourceBundle;
import objects.GameObject;
import jgame.JGObject;
import util.reflection.*;
/*
* @Author: Steve (Siyang) Wang
*/
public class GameFactory {
private String myOrder;
private GameObject myObject;
public static final String RESOURCE_PACKAGE = "engineResou... | src/gameFactory/GameFactory.java | package gameFactory;
import objects.GameObject;
import jgame.JGObject;
public class GameFactory {
/**
* Only takes String ordre as argument, for creation.
*/
public GameObject processOrder(String order){
return null;
}
/**
* Takes Ob... | try to merge conflict
| src/gameFactory/GameFactory.java | try to merge conflict | <ide><path>rc/gameFactory/GameFactory.java
<ide> package gameFactory;
<ide>
<add>import java.util.ResourceBundle;
<ide> import objects.GameObject;
<ide> import jgame.JGObject;
<add>import util.reflection.*;
<add>/*
<add> * @Author: Steve (Siyang) Wang
<add> */
<add>public class GameFactory {
<add> private String my... | |
Java | apache-2.0 | b46c36ebcbb2de3ea2d6e5e522451ca58133dcb4 | 0 | ronsigal/xerces,jimma/xerces,jimma/xerces,RackerWilliams/xercesj,RackerWilliams/xercesj,ronsigal/xerces,ronsigal/xerces,jimma/xerces,RackerWilliams/xercesj | /*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000,2001 The Apache Software Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of s... | src/org/apache/xerces/validators/schema/TraverseSchema.java | /*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000,2001 The Apache Software Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of s... | fixes for <redefine> bugs
git-svn-id: 21df804813e9d3638e43477f308dd0be51e5f30f@317222 13f79535-47bb-0310-9956-ffa450edef68
| src/org/apache/xerces/validators/schema/TraverseSchema.java | fixes for <redefine> bugs | <ide><path>rc/org/apache/xerces/validators/schema/TraverseSchema.java
<ide> String bName = (String)fRedefineAttributeGroupMap.get(dName);
<ide> if(bName != null) {
<ide> child.setAttribute(SchemaSymbols.ATT_NAME, bName);
<add> // and... | |
Java | mit | afabb66a8f33343852ae24e00b9d2f377d921c5f | 0 | om3g4zell/CityBuilderJSFML | package graphics;
import org.jsfml.system.Vector2i;
/*
* Represents a tile
*/
public class Tile {
// Enum of each tileType
public static enum TileType {
TERRAIN_GRASS,
BUILDING_HOUSE,
BUILDING_SUPERMARKET,
BUILDING_ROAD,
BUILDING_GENERATOR
}
// Track the last id.
protected static int lastId = 0;
... | CityBuilderJSFML/src/graphics/Tile.java | package graphics;
import org.jsfml.system.Vector2i;
/*
* Represents a tile
*/
public class Tile {
// Enum of each tileType
public static enum TileType {
TERRAIN_GRASS,
BUILDING_HOUSE,
BUILDING_SUPERMARKET,
BUILDING_ROAD,
BUILDING_GENERATOR
}
// Attributes.
protected TileType tileType;
protected in... | Ajout d'un constructeur à la classe Tile. | CityBuilderJSFML/src/graphics/Tile.java | Ajout d'un constructeur à la classe Tile. | <ide><path>ityBuilderJSFML/src/graphics/Tile.java
<ide> BUILDING_ROAD,
<ide> BUILDING_GENERATOR
<ide> }
<add>
<add> // Track the last id.
<add> protected static int lastId = 0;
<ide>
<ide> // Attributes.
<ide> protected TileType tileType;
<ide> protected int id;
<ide> protected Vector2i position;
<add>
<add... | |
Java | apache-2.0 | 903e4c14a32d17e4479c6b19cca99f01414b980a | 0 | jjhaggar/ninja-trials | /*
* Ninja Trials is an old school style Android Game developed for OUYA & using
* AndEngine. It features several minigames with simple gameplay.
* Copyright 2013 Mad Gear Games <madgeargames@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | src/com/madgear/ninjatrials/managers/SFXManager.java | /*
* Ninja Trials is an old school style Android Game developed for OUYA & using
* AndEngine. It features several minigames with simple gameplay.
* Copyright 2013 Mad Gear Games <madgeargames@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | Added playMusicLoop method and stopMusic.
| src/com/madgear/ninjatrials/managers/SFXManager.java | Added playMusicLoop method and stopMusic. | <ide><path>rc/com/madgear/ninjatrials/managers/SFXManager.java
<ide>
<ide> // Music Control --------------------------------
<ide>
<add> /**
<add> * Begins playing music.
<add> * @param m
<add> */
<ide> public static void playMusic(Music m) {
<ide> if(m != null && !m.isPlaying()... | |
Java | mit | f08ccefd55a70754b197eaea5f7de43b94d5696b | 0 | TVPT/VoxelGunsmith,Featherblade/VoxelGunsmith | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* 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 ri... | src/test/java/com/voxelplugineering/voxelsniper/EventBusTest.java | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* 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 ri... | dead event test documentation
| src/test/java/com/voxelplugineering/voxelsniper/EventBusTest.java | dead event test documentation | <ide><path>rc/test/java/com/voxelplugineering/voxelsniper/EventBusTest.java
<ide> DeadEventHandler handler = new DeadEventHandler();
<ide> bus.register(handler);
<ide> bus.post(new TestEvent());
<add> //This timeout is required as AsyncEventBus#post will return immediately upon posting th... | |
Java | apache-2.0 | e3a488f41c22321cc5e48738a2ff684eb36354ea | 0 | golfstream83/JavaCourse | package calculator;
public class Calculator {
public double result;
/*
сложение двух чисел
*/
public void add (double first, double second) {
this.result = first + second;
}
/*
вычитание из числа first числа second
*/
public void substruct (double first, double second) {
this.result = first - secon... | calculator/Calculator.java | package calculator;
public class Calculator {
public double result;
/*
сложение двух чисел
*/
public void add (double first, double second) {
this.result = first + second;
}
/*
вычитание из числа first числа second
*/
public void substruct (double first, double second) {
this.result = first - secon... | Update Calulator.java
| calculator/Calculator.java | Update Calulator.java | <ide><path>alculator/Calculator.java
<ide> }
<ide>
<ide> public void showResult() {
<del> System.out.println("Result : " + this.result);
<add> System.out.printf("%s%f%n" ,"Result : ", this.result);
<ide> }
<ide> } | |
Java | apache-2.0 | 988b99160e012318c165092271c79421cbc45152 | 0 | googleinterns/step87-2020,googleinterns/step87-2020,googleinterns/step87-2020,googleinterns/step87-2020 | package com.google.sps.servlets;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.EmbeddedEntity;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.EntityNot... | src/main/java/com/google/sps/servlets/EnterQueue.java | package com.google.sps.servlets;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.EmbeddedEntity;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.EntityNot... | Remove unused import.
| src/main/java/com/google/sps/servlets/EnterQueue.java | Remove unused import. | <ide><path>rc/main/java/com/google/sps/servlets/EnterQueue.java
<ide> import com.google.firebase.auth.FirebaseAuth;
<ide> import com.google.firebase.auth.FirebaseAuthException;
<ide> import com.google.firebase.auth.FirebaseToken;
<del>import com.google.firebase.auth.UserRecord;
<ide> import com.google.sps.ApplicationDe... | |
Java | apache-2.0 | error: pathspec 'src/com/strobel/core/Fences.java' did not match any file(s) known to git
| eaf3db3e5fea8c9d2ece1975e718eb0c8eaad87c | 1 | Thog/Procyon | package com.strobel.core;
/*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/
*/
/**
* A set of methods providing fine-grained control over happens-before
* and synchr... | src/com/strobel/core/Fences.java | More work on class metadata loading.
--HG--
branch : assembler
| src/com/strobel/core/Fences.java | More work on class metadata loading. | <ide><path>rc/com/strobel/core/Fences.java
<add>package com.strobel.core;
<add>
<add>/*
<add> * Written by Doug Lea with assistance from members of JCP JSR-166
<add> * Expert Group and released to the public domain, as explained at
<add> * http://creativecommons.org/publicdomain/zero/1.0/
<add> */
<add>
<add>/**
<add> ... | |
Java | apache-2.0 | 8d019822b02f5bd294af7a633617a30efa2dfd05 | 0 | liquibase/liquibase,fossamagna/liquibase,dbmanul/dbmanul,NSIT/liquibase,mattbertolini/liquibase,jimmycd/liquibase,jimmycd/liquibase,NSIT/liquibase,mattbertolini/liquibase,jimmycd/liquibase,dbmanul/dbmanul,mattbertolini/liquibase,fossamagna/liquibase,jimmycd/liquibase,NSIT/liquibase,dbmanul/dbmanul,liquibase/liquibase,N... | package liquibase;
import liquibase.util.StringUtils;
import java.util.*;
/**
* List of contexts Liquibase is running under.
*/
public class Contexts {
private HashSet<String> contextStore = new HashSet<>();
public Contexts() {
}
public Contexts(String... contexts) {
if (contexts.length ... | liquibase-core/src/main/java/liquibase/Contexts.java | package liquibase;
import liquibase.util.StringUtils;
import java.util.*;
/**
* List of contexts Liquibase is running under.
*/
public class Contexts {
private HashSet<String> contexts = new HashSet<>();
public Contexts() {
}
public Contexts(String... contexts) {
if (contexts.length == 1... | SONAR: Minor Cleanups
| liquibase-core/src/main/java/liquibase/Contexts.java | SONAR: Minor Cleanups | <ide><path>iquibase-core/src/main/java/liquibase/Contexts.java
<ide> */
<ide> public class Contexts {
<ide>
<del> private HashSet<String> contexts = new HashSet<>();
<add> private HashSet<String> contextStore = new HashSet<>();
<ide>
<ide> public Contexts() {
<ide> }
<ide> parseContextStrin... | |
JavaScript | mpl-2.0 | 87ee95887591326ed9bc297c1615e66cf6aed25c | 0 | bbondy/khan-academy-fxos,bbondy/khan-academy-fxos | import APIClient from "./apiclient";
import {getId, getDuration, getPoints, getYoutubeId} from "./data/topic-tree-helper";
import _ from "underscore";
import Util from "./util";
import {editorForPath} from "./renderer";
import Immutable from "immutable";
const userInfoLocalStorageName = "userInfo-3";
export const sig... | src/user.js | import APIClient from "./apiclient";
import {getId, getDuration, getPoints, getYoutubeId} from "./data/topic-tree-helper";
import _ from "underscore";
import Util from "./util";
import {editorForPath} from "./renderer";
import Immutable from "immutable";
const userInfoLocalStorageName = "userInfo-3";
export const sig... | Fix locally updating user points as video progress is made
| src/user.js | Fix locally updating user points as video progress is made | <ide><path>rc/user.js
<ide> // If we're just getting a completion of a video update
<ide> // the user's overall points locally.
<ide> if (result.points_earned > 0) {
<del> // TODO: It would be better to store userInfo properties directly
<del> // That wa... | |
Java | apache-2.0 | 063205affa3dd5f7fc99965d76d63246f23843b0 | 0 | HiromuHota/pentaho-kettle,pminutillo/pentaho-kettle,SergeyTravin/pentaho-kettle,ddiroma/pentaho-kettle,marcoslarsen/pentaho-kettle,tmcsantos/pentaho-kettle,skofra0/pentaho-kettle,pminutillo/pentaho-kettle,ddiroma/pentaho-kettle,matthewtckr/pentaho-kettle,flbrino/pentaho-kettle,skofra0/pentaho-kettle,wseyler/pentaho-ket... | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | core/src/main/java/org/pentaho/di/core/RowMetaAndData.java | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | [BACKLOG-21321] Avro Streaming enhancments ( pass fields from prior step, handle multiple rows containing avro content, add seperator bar and fix Mac UI )
| core/src/main/java/org/pentaho/di/core/RowMetaAndData.java | [BACKLOG-21321] Avro Streaming enhancments ( pass fields from prior step, handle multiple rows containing avro content, add seperator bar and fix Mac UI ) | <ide><path>ore/src/main/java/org/pentaho/di/core/RowMetaAndData.java
<ide> rowMeta.removeValueMeta( index );
<ide> data = RowDataUtil.removeItem( data, index );
<ide> }
<add>
<add> public void mergeRowMetaAndData( RowMetaAndData rowMetaAndData, String originStepName ) {
<add> int originalMetaSize = rowMet... | |
JavaScript | mit | a7dbce88aceca898c578a7fee62644feb9e07fd2 | 0 | code42day/google-polyline | var polyline = require( '..' )
var assert = require( 'assert' )
suite( 'Google Polyline Example', function() {
test( 'encode', function() {
var points = [
[ 38.5, -120.2 ],
[ 40.7, -120.95 ],
[ 43.252, -126.453 ]
]
var encoded = polyline.encode( points )
assert.equal( encoded, '... | test/examples.js | var polyline = require( '..' )
var assert = require( 'assert' )
suite( 'Google Polyline Example', function() {
test( 'encode', function() {
var points = [
[ 38.5, -120.2 ],
[ 40.7, -120.95 ],
[ 43.252, -126.453 ]
]
var encoded = polyline.encode( points )
assert.equal( encoded, '... | Update test: Add decoding test
| test/examples.js | Update test: Add decoding test | <ide><path>est/examples.js
<ide>
<ide> })
<ide>
<del> test( 'decode' )
<add> test( 'decode', function() {
<add>
<add> var points = polyline.decode( '_p~iF~ps|U_ulLnnqC_mqNvxq`@' )
<add> var decoded = [
<add> [ 38.5, -120.2 ],
<add> [ 40.7, -120.95 ],
<add> [ 43.252, -126.453 ]
<add> ]
<add... | |
Java | mit | 0f72e87378669fbd8437a8a4ac00d9e79d523e86 | 0 | thorinside/StandOut,loulousky/StandOut,917386389/StandOut,juoni/StandOut,lokesht/StandOut,omegasoft7/StandOut,pingpongboss/StandOut,Ringares/StandOut,gregko/StandOut,mandrigin/StandOut,sherpya/StandOut,0xD34D/StandOut,thorinside/StandOut,leasual/StandOut,wklin8607/StandOut | package wei.mark.standout;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import ... | library/src/wei/mark/standout/StandOutWindow.java | package wei.mark.standout;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import ... | Back key unfocuses
| library/src/wei/mark/standout/StandOutWindow.java | Back key unfocuses | <ide><path>ibrary/src/wei/mark/standout/StandOutWindow.java
<ide> import android.util.Log;
<ide> import android.view.Display;
<ide> import android.view.Gravity;
<add>import android.view.KeyEvent;
<ide> import android.view.LayoutInflater;
<ide> import android.view.MotionEvent;
<ide> import android.view.View;
<ide> prot... | |
Java | apache-2.0 | a0534d8d9c80fd03719ab8f369b5626bb7e652f6 | 0 | rabix/bunny,rabix/bunny,rabix/bunny,rabix/bunny,rabix/bunny | package org.rabix.bindings;
public enum ProtocolType {
CWL("org.rabix.bindings.cwl.CWLBindings", 3, "v1.0"),
DRAFT2("org.rabix.bindings.draft2.Draft2Bindings", 4, null),
SB("org.rabix.bindings.sb.SBBindings", 1, null),
DRAFT3("org.rabix.bindings.draft3.Draft3Bindings", 2, "cwl:draft-3");
public final int o... | rabix-bindings/src/main/java/org/rabix/bindings/ProtocolType.java | package org.rabix.bindings;
public enum ProtocolType {
CWL("org.rabix.bindings.cwl.CWLBindings", 1, "v1.0"),
DRAFT2("org.rabix.bindings.draft2.Draft2Bindings", 4, null),
SB("org.rabix.bindings.sb.SBBindings", 3, null),
DRAFT3("org.rabix.bindings.draft3.Draft3Bindings", 2, "cwl:draft-3");
public final int o... | reorder priorities
| rabix-bindings/src/main/java/org/rabix/bindings/ProtocolType.java | reorder priorities | <ide><path>abix-bindings/src/main/java/org/rabix/bindings/ProtocolType.java
<ide>
<ide>
<ide> public enum ProtocolType {
<del> CWL("org.rabix.bindings.cwl.CWLBindings", 1, "v1.0"),
<add> CWL("org.rabix.bindings.cwl.CWLBindings", 3, "v1.0"),
<ide> DRAFT2("org.rabix.bindings.draft2.Draft2Bindings", 4, null),
<del> ... | |
Java | mit | 17349253757e93e6284d9520cbe34a017a32bd24 | 0 | KiiPlatform/thing-if-AndroidSDK,KiiPlatform/thing-if-AndroidSDK | package com.kii.iotcloud.trigger;
import android.os.Parcel;
import android.support.annotation.NonNull;
public class StatePredicate extends Predicate {
private Condition condition;
private TriggersWhen triggersWhen;
public StatePredicate(@NonNull Condition condition, @NonNull TriggersWhen triggersWhen) {... | iotcloudsdk/src/main/java/com/kii/iotcloud/trigger/StatePredicate.java | package com.kii.iotcloud.trigger;
import android.os.Parcel;
import android.support.annotation.NonNull;
public class StatePredicate extends Predicate {
private Condition condition;
private TriggersWhen triggersWhen;
public StatePredicate(@NonNull Condition condition, @NonNull TriggersWhen triggersWhen) {... | added setter to StatePredicate
| iotcloudsdk/src/main/java/com/kii/iotcloud/trigger/StatePredicate.java | added setter to StatePredicate | <ide><path>otcloudsdk/src/main/java/com/kii/iotcloud/trigger/StatePredicate.java
<ide> public Condition getCondition() {
<ide> return this.condition;
<ide> }
<add> public void setCondition(@NonNull Condition condition) {
<add> if (condition == null) {
<add> throw new IllegalArgument... | |
Java | apache-2.0 | e8005b053007e391de37feb8244aba599c442195 | 0 | royalrangers-ck/rr-api,royalrangers-ck/rr-api | package com.royalrangers.model;
public enum AuthorityName {
ROLE_USER,
ROLE_ADMIN,
ROLE_SUPER_ADMIN,
ROLE_TEST
} | src/main/java/com/royalrangers/model/AuthorityName.java | package com.royalrangers.model;
public enum AuthorityName {
ROLE_USER,
ROLE_ADMIN,
ROLE_SUPER_ADMIN
} | Test role is added.
| src/main/java/com/royalrangers/model/AuthorityName.java | Test role is added. | <ide><path>rc/main/java/com/royalrangers/model/AuthorityName.java
<ide> public enum AuthorityName {
<ide> ROLE_USER,
<ide> ROLE_ADMIN,
<del> ROLE_SUPER_ADMIN
<add> ROLE_SUPER_ADMIN,
<add> ROLE_TEST
<ide> } | |
Java | apache-2.0 | error: pathspec 'src/main/java/six/com/crawler/schedule/consts/DownloadContants.java' did not match any file(s) known to git
| db9b60b2cde6f8b617e9530d157ae9cf0d5e1acb | 1 | lvjk/excrawler,lvjk/excrawler,lvjk/excrawler,lvjk/excrawler | package six.com.crawler.schedule.consts;
/**
* 下载状态
* @author weijiyong@tospur.com
*
*/
public class DownloadContants {
public static final int DOWN_LOAD_NOT_RUNNING=0;
public static final int DOWN_LOAD_FINISHED = 1;
public static final int DOWN_LOAD_RUNNING = 2;
public static final int ... | src/main/java/six/com/crawler/schedule/consts/DownloadContants.java | 添加下载常亮类 | src/main/java/six/com/crawler/schedule/consts/DownloadContants.java | 添加下载常亮类 | <ide><path>rc/main/java/six/com/crawler/schedule/consts/DownloadContants.java
<add>package six.com.crawler.schedule.consts;
<add>
<add>/**
<add> * 下载状态
<add> * @author weijiyong@tospur.com
<add> *
<add> */
<add>public class DownloadContants {
<add>
<add> public static final int DOWN_LOAD_NOT_RUNNING=0;
<add>
<add> pu... | |
Java | apache-2.0 | ecd2198bf0beed44eb3769e78708b7ed2771c447 | 0 | genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015 | package org.genericsystem.distributed.cacheonserver;
import java.io.Serializable;
import java.util.List;
import org.genericsystem.api.core.Snapshot;
import org.genericsystem.api.core.exceptions.ConcurrencyControlException;
import org.genericsystem.api.core.exceptions.RollbackException;
import org.genericsystem.common... | gs-kernel/src/main/java/org/genericsystem/distributed/cacheonserver/LightClientCache.java | package org.genericsystem.distributed.cacheonserver;
import java.io.Serializable;
import java.util.List;
import org.genericsystem.api.core.Snapshot;
import org.genericsystem.api.core.exceptions.ConcurrencyControlException;
import org.genericsystem.api.core.exceptions.RollbackException;
import org.genericsystem.common... | catch and throw exceptions in flush | gs-kernel/src/main/java/org/genericsystem/distributed/cacheonserver/LightClientCache.java | catch and throw exceptions in flush | <ide><path>s-kernel/src/main/java/org/genericsystem/distributed/cacheonserver/LightClientCache.java
<ide> import org.genericsystem.common.AbstractCache;
<ide> import org.genericsystem.common.Generic;
<ide> import org.genericsystem.defaults.DefaultCache;
<del>import org.genericsystem.kernel.Statics;
<ide>
<ide> public ... | |
Java | apache-2.0 | error: pathspec 'src/test/java/org/apache/commons/compress/compressors/CompressorStreamFactoryRoundtripTest.java' did not match any file(s) known to git
| 6c8345bff9b68598903a05f702ec15e969478cb9 | 1 | krosenvold/commons-compress,lookout/commons-compress,apache/commons-compress,krosenvold/commons-compress,krosenvold/commons-compress,apache/commons-compress,apache/commons-compress,lookout/commons-compress,lookout/commons-compress | package org.apache.commons.compress.compressors;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import org.apache.commons.compress.utils.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.ju... | src/test/java/org/apache/commons/compress/compressors/CompressorStreamFactoryRoundtripTest.java | Tests for [COMPRESS-359] Pack200 is broken. | src/test/java/org/apache/commons/compress/compressors/CompressorStreamFactoryRoundtripTest.java | Tests for [COMPRESS-359] Pack200 is broken. | <ide><path>rc/test/java/org/apache/commons/compress/compressors/CompressorStreamFactoryRoundtripTest.java
<add>package org.apache.commons.compress.compressors;
<add>
<add>import java.io.ByteArrayInputStream;
<add>import java.io.ByteArrayOutputStream;
<add>
<add>import org.apache.commons.compress.utils.IOUtils;
<add>imp... | |
Java | apache-2.0 | 89856fa58f003c36a6ef67b7d9b2eabb53cf78bd | 0 | Danyzzz/cordova_ringtone_default,Danyzzz/cordova_ringtone_default,Danyzzz/cordova_ringtone_default,Danyzzz/cordova_ringtone_default | /*
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... | src/android/Notification.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... | Update Notification.java | src/android/Notification.java | Update Notification.java | <ide><path>rc/android/Notification.java
<ide> import org.json.JSONArray;
<ide> import org.json.JSONException;
<ide> import org.json.JSONObject;
<add>import android.content.Context;
<ide>
<ide> import android.annotation.SuppressLint;
<ide> import android.app.AlertDialog;
<ide> import android.content.DialogInterface;
<i... | |
Java | apache-2.0 | d37071008aa60a56b5abbb21497841b6d723d33b | 0 | sotorrent/so-posthistory-extractor | package de.unitrier.st.soposthistory.tests;
import com.google.common.collect.Sets;
import de.unitrier.st.soposthistory.blocks.CodeBlockVersion;
import de.unitrier.st.soposthistory.blocks.PostBlockVersion;
import de.unitrier.st.soposthistory.blocks.TextBlockVersion;
import de.unitrier.st.soposthistory.gt.*;
import de.u... | src/de/unitrier/st/soposthistory/tests/BlockLifeSpanAndGroundTruthTest.java | package de.unitrier.st.soposthistory.tests;
import com.google.common.collect.Sets;
import de.unitrier.st.soposthistory.blocks.CodeBlockVersion;
import de.unitrier.st.soposthistory.blocks.PostBlockVersion;
import de.unitrier.st.soposthistory.blocks.TextBlockVersion;
import de.unitrier.st.soposthistory.gt.*;
import de.u... | edited test case testMetricComparisonManager:
* now all blocks of all versions of the two posts are compared
| src/de/unitrier/st/soposthistory/tests/BlockLifeSpanAndGroundTruthTest.java | edited test case testMetricComparisonManager: * now all blocks of all versions of the two posts are compared | <ide><path>rc/de/unitrier/st/soposthistory/tests/BlockLifeSpanAndGroundTruthTest.java
<ide> import de.unitrier.st.soposthistory.gt.*;
<ide> import de.unitrier.st.soposthistory.version.PostVersion;
<ide> import de.unitrier.st.soposthistory.version.PostVersionList;
<add>import org.apache.commons.csv.CSVFormat;
<add>impor... | |
Java | apache-2.0 | 124ea5eee327643fd23104915d9844a3c9365366 | 0 | HubSpot/hbase,HubSpot/hbase,HubSpot/hbase,HubSpot/hbase,HubSpot/hbase,HubSpot/hbase,HubSpot/hbase,HubSpot/hbase,HubSpot/hbase,HubSpot/hbase | /**
* 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... | hbase-server/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterWrapperImpl.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... | HBASE-25693 NPE getting metrics from standby masters (MetricsMasterWrapperImpl.getMergePlanCount) (#3091)
Signed-off-by: Duo Zhang <ca823f7b4f21a31b6ef7892c1f90d53103f0d135@apache.org>
Signed-off-by: Nick Dimiduk <3b9ed451536f6781ad420c6c3e17d91fe5c2a777@apache.org> | hbase-server/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterWrapperImpl.java | HBASE-25693 NPE getting metrics from standby masters (MetricsMasterWrapperImpl.getMergePlanCount) (#3091) | <ide><path>base-server/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterWrapperImpl.java
<ide>
<ide> @Override
<ide> public long getSplitPlanCount() {
<add> if (master.getRegionNormalizerManager() == null) {
<add> return 0;
<add> }
<ide> return master.getRegionNormalizerManager().getSplitPl... | |
JavaScript | mit | bff8dc0d9650ae8892352d351c5886697cb17695 | 0 | Raynos/jsig,Raynos/jsig,Raynos/jsig | 'use strict';
/* Verifiers take an AST & a meta
They return the type defn of the node.
*/
var assert = require('assert');
var path = require('path');
var JsigAST = require('../ast/');
var serialize = require('../serialize.js');
var Errors = require('./errors.js');
var isSameType = require('./lib/is-same-type.j... | type-checker/ast-verifier.js | 'use strict';
/* Verifiers take an AST & a meta
They return the type defn of the node.
*/
var assert = require('assert');
var path = require('path');
var JsigAST = require('../ast/');
var serialize = require('../serialize.js');
var Errors = require('./errors.js');
var isSameType = require('./lib/is-same-type.j... | bug: remove double exitFunctionScope()
| type-checker/ast-verifier.js | bug: remove double exitFunctionScope() | <ide><path>ype-checker/ast-verifier.js
<ide> };
<ide>
<ide> ASTVerifier.prototype._checkFunctionType =
<del>function checkFunctionType(node, defn) {
<add>function _checkFunctionType(node, defn) {
<ide> this.meta.enterFunctionScope(node, defn);
<ide>
<ide> this._verifyFunctionType(node, defn);
<ide> ... | |
JavaScript | apache-2.0 | 3974e382f97f65e5d3580d8531d49ce32d7e9ab0 | 0 | vingiarrusso/angular,jrote1/angular,TedSander/angular,tkarling/angular,githuya/angular,danielrasmuson/angular,leszczynski-it/angular,jackyxhb/angular,yjbanov/angular,angularbrasil/angular,kwalrath/angular,ochafik/angular,Stivfk/angular,robertmesserle/angular,Mathou54/angular,atcastle/angular,Zagorakiss/angular,pedroha/... | var gulp = require('gulp');
var gulpPlugins = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
var merge = require('merge');
var gulpTraceur = require('./tools/transpiler/gulp-traceur');
var clean = require('./tools/build/clean');
var transpile = require('./tools/build/transpile');
var html =... | gulpfile.js | var gulp = require('gulp');
var gulpPlugins = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
var merge = require('merge');
var gulpTraceur = require('./tools/transpiler/gulp-traceur');
var clean = require('./tools/build/clean');
var transpile = require('./tools/build/transpile');
var html =... | chore(gulp): fix typo HTLM to HTML in a variable name
Closes #920
| gulpfile.js | chore(gulp): fix typo HTLM to HTML in a variable name | <ide><path>ulpfile.js
<ide> modules: 'instantiate'
<ide> };
<ide>
<del>var _HTLM_DEFAULT_SCRIPTS_JS = [
<add>var _HTML_DEFAULT_SCRIPTS_JS = [
<ide> {src: gulpTraceur.RUNTIME_PATH, mimeType: 'text/javascript', copy: true},
<ide> {src: 'node_modules/es6-module-loader/dist/es6-module-loader-sans-promises.src.js',
<... | |
Java | apache-2.0 | 1f54b96acef2a5e22a708e171ae79aad16f5a1c5 | 0 | jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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/... | jenetics/src/main/java/io/jenetics/TruncationSelector.java | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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/... | #331: Remove 'equals' and 'hashCode' from 'TruncationSelector'.
| jenetics/src/main/java/io/jenetics/TruncationSelector.java | #331: Remove 'equals' and 'hashCode' from 'TruncationSelector'. | <ide><path>enetics/src/main/java/io/jenetics/TruncationSelector.java
<ide> import static java.lang.Math.min;
<ide> import static java.lang.String.format;
<ide> import static java.util.Objects.requireNonNull;
<del>import static io.jenetics.internal.util.Hashes.hash;
<ide>
<ide> import io.jenetics.util.ISeq;
<ide> impor... | |
Java | apache-2.0 | 5f8988a3a0af98b89d44185cfe77f3c8099afaf1 | 0 | spradnyesh/encog-java-core,krzysztof-magosa/encog-java-core,krzysztof-magosa/encog-java-core,SpenceSouth/encog-java-core,Crespo911/encog-java-core,ThiagoGarciaAlves/encog-java-core,danilodesousacubas/encog-java-core,Crespo911/encog-java-core,spradnyesh/encog-java-core,ThiagoGarciaAlves/encog-java-core,SpenceSouth/encog... | /*
* Encog(tm) Core v3.2 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2013 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | src/main/java/org/encog/engine/network/activation/ActivationSigmoid.java | /*
* Encog(tm) Core v3.2 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2013 Heaton Research, 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... | Revert "test"
This reverts commit 1949ee7ff7d77f096c638b67853f712575a4c66a.
| src/main/java/org/encog/engine/network/activation/ActivationSigmoid.java | Revert "test" | ||
Java | apache-2.0 | 9d9d771a7556e5ce713e611ff6ed8fdcc4c85b6a | 0 | IMAGINARY/FormulaMorph | package com.moeyinc.formulamorph;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.AffineTransform;
import java.awt.image.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.InternalFrameAdapter;
import javax.swing.event.InternalFrameEvent;
import javax.vecmath.*;
import jav... | src/com/moeyinc/formulamorph/GUI.java | package com.moeyinc.formulamorph;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.AffineTransform;
import java.awt.image.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.InternalFrameAdapter;
import javax.swing.event.InternalFrameEvent;
import javax.vecmath.*;
import jav... | jump to beginning of gallery when changing the level
| src/com/moeyinc/formulamorph/GUI.java | jump to beginning of gallery when changing the level | <ide><path>rc/com/moeyinc/formulamorph/GUI.java
<ide> {
<ide> if( s2g( s ).galleryItems().get( s2g( s ).id() ).level() != level )
<ide> {
<del> int id, count;
<add> int id;
<ide> List< Gallery.GalleryItem > galleryItems = s2g( s ).galleryItems();
<ide> for( id = 0; id < galleryItems.... | |
Java | apache-2.0 | c2c420f15179f732542a1eb9f166302ded671601 | 0 | hortonworks/streamline,hortonworks/streamline,hortonworks/streamline,hortonworks/streamline,hortonworks/streamline | /**
* Copyright 2017 Hortonworks.
*
* 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 ... | streams/runners/storm/actions/src/main/java/com/hortonworks/streamline/streams/actions/storm/topology/StormTopologyActionsImpl.java | /**
* Copyright 2017 Hortonworks.
*
* 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 ... | ISSUE-1115 Disable topology event logger in test mode
This closes #1115
Author: Jungtaek Lim <kabhwan@gmail.com>
Closes #1116 from HeartSaVioR/ISSUE-1115
| streams/runners/storm/actions/src/main/java/com/hortonworks/streamline/streams/actions/storm/topology/StormTopologyActionsImpl.java | ISSUE-1115 Disable topology event logger in test mode | <ide><path>treams/runners/storm/actions/src/main/java/com/hortonworks/streamline/streams/actions/storm/topology/StormTopologyActionsImpl.java
<ide> ctx.setCurrentAction("Adding artifacts to jar");
<ide> Path jarToDeploy = addArtifactsToJar(getArtifactsLocation(topology));
<ide> ctx.setCurrentAct... | |
Java | apache-2.0 | a85638093b6d034e1c640a0eea6b5dd4e1b1be5d | 0 | trajano/jaxws-maven-plugin | /*
* Copyright 2006 Guillaume Nodet.
*
* 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... | src/main/java/org/codehaus/mojo/jaxws/AbstractWsGenMojo.java | /*
* Copyright 2006 Guillaume Nodet.
*
* 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... | JAX-WS-COMMONS-36: Pass -extension option to wsgen, when extension parameter is passed.
git-svn-id: 14f40df4fbe57db75b406caa6ec541de922253f0@807 3b447fe2-3421-0410-a1d7-a2ef89021db4
| src/main/java/org/codehaus/mojo/jaxws/AbstractWsGenMojo.java | JAX-WS-COMMONS-36: Pass -extension option to wsgen, when extension parameter is passed. | <ide><path>rc/main/java/org/codehaus/mojo/jaxws/AbstractWsGenMojo.java
<ide>
<ide> }
<ide>
<add> if ( this.extension ) {
<add> args.add( "-extension" );
<add> }
<add>
<ide> args.add(sei);
<ide>
<ide> getLog().debug("jaxws:wsgen args: " + args); | |
Java | mit | 3c76dca5e998df209f57c5eb2e014a748142dc50 | 0 | JohanBrunet/Polytheque | package polytheque.model.DAO;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import com.mysql.jdbc.Statement;
import polytheque.model.pojos.Adherent;
import polytheque.model.pojos.Reservation;
public class Re... | Polytheque/src/polytheque/model/DAO/ReservationDAO.java | package polytheque.model.DAO;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import com.mysql.jdbc.Statement;
import polytheque.model.pojos.Adherent;
import polytheque.model.pojos.Reservation;
public class Re... | commentaires de reservationDAO | Polytheque/src/polytheque/model/DAO/ReservationDAO.java | commentaires de reservationDAO | <ide><path>olytheque/src/polytheque/model/DAO/ReservationDAO.java
<ide>
<ide> public class ReservationDAO extends DAO {
<ide>
<del>
<add> /**
<add> * mthode permettant de crer une rservation dans la base de donnes
<add> * @param reservation
<add> * @param idAdherent
<add> * @param idJeu
<add> * @param idJextensi... | |
Java | mit | 674d0efa575f3850123a9e449166919a11b81324 | 0 | ONSdigital/tredegar,ONSdigital/babbage,ONSdigital/tredegar,ONSdigital/babbage,ONSdigital/tredegar,ONSdigital/babbage,ONSdigital/babbage,ONSdigital/tredegar | package com.github.onsdigital.api.data;
import com.github.davidcarboni.ResourceUtils;
import com.github.davidcarboni.restolino.framework.Endpoint;
import com.github.onsdigital.configuration.Configuration;
import com.github.onsdigital.data.DataService;
import com.github.onsdigital.util.HostHelper;
import com.github.ons... | src/main/java/com/github/onsdigital/api/data/Data.java | package com.github.onsdigital.api.data;
import com.github.davidcarboni.ResourceUtils;
import com.github.davidcarboni.restolino.framework.Endpoint;
import com.github.onsdigital.configuration.Configuration;
import com.github.onsdigital.data.DataService;
import com.github.onsdigital.util.HostHelper;
import com.github.ons... | Added debug output.
| src/main/java/com/github/onsdigital/api/data/Data.java | Added debug output. | <ide><path>rc/main/java/com/github/onsdigital/api/data/Data.java
<ide> uriPath += "data.json";
<ide>
<ide> try {
<add> String url = Configuration.getZebedeeUrl() + "/content/" + collection;
<ide>
<del> System.out.println("Calling zebedee: ");
<add> ... | |
Java | apache-2.0 | 2502abf67db9078996b1059828259f68780fd521 | 0 | subutai-io/Subutai,subutai-io/base,subutai-io/base,subutai-io/Subutai,subutai-io/base,subutai-io/Subutai,subutai-io/Subutai,subutai-io/Subutai,subutai-io/Subutai,subutai-io/base | package org.safehaus.subutai.core.env.impl.tasks;
import java.util.concurrent.Semaphore;
import org.safehaus.subutai.common.environment.EnvironmentModificationException;
import org.safehaus.subutai.common.environment.EnvironmentNotFoundException;
import org.safehaus.subutai.common.environment.EnvironmentStatus;
impo... | management/server/core/env-manager/env-manager-impl/src/main/java/org/safehaus/subutai/core/env/impl/tasks/DestroyContainerTask.java | package org.safehaus.subutai.core.env.impl.tasks;
import java.util.concurrent.Semaphore;
import org.safehaus.subutai.common.environment.EnvironmentModificationException;
import org.safehaus.subutai.common.environment.EnvironmentNotFoundException;
import org.safehaus.subutai.common.environment.EnvironmentStatus;
impo... | Fix Environment Manager bugs
| management/server/core/env-manager/env-manager-impl/src/main/java/org/safehaus/subutai/core/env/impl/tasks/DestroyContainerTask.java | Fix Environment Manager bugs | <ide><path>anagement/server/core/env-manager/env-manager-impl/src/main/java/org/safehaus/subutai/core/env/impl/tasks/DestroyContainerTask.java
<ide> {
<ide> boolean skipError = false;
<ide> if ( e.getCause() != null && e.getCause().getMessage().contains(
<del> ... | |
Java | apache-2.0 | 27232b0c0ed17817d387acf2204083e09a604aca | 0 | orcas-elite/Microservice-Fault-Injection,jgrunert/Microservice-Fault-Injection,jgrunert/Microservice-Fault-Injection,jgrunert/Microservice-Fault-Injection,orcas-elite/Microservice-Fault-Injection,jgrunert/Microservice-Fault-Injection,jgrunert/Microservice-Fault-Injection,orcas-elite/Microservice-Fault-Injection,jgruner... |
import java.io.IOException;
import javax.servlet.AsyncContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.continuation.Continuation;
import org.eclipse.jetty.continuation.ContinuationListener;
import org... | JInjectProxy/test-server/src/main/java/TestServerMain.java |
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.AbstractHandler;
public class Test... | Test server with async response delay - for testing n-lane bridge | JInjectProxy/test-server/src/main/java/TestServerMain.java | Test server with async response delay - for testing n-lane bridge | <ide><path>InjectProxy/test-server/src/main/java/TestServerMain.java
<ide>
<ide> import java.io.IOException;
<ide>
<add>import javax.servlet.AsyncContext;
<ide> import javax.servlet.ServletException;
<ide> import javax.servlet.http.HttpServletRequest;
<ide> import javax.servlet.http.HttpServletResponse;
<ide>
<add>i... | |
JavaScript | bsd-2-clause | 759944e7fd93fe630bfc2cd89fd574dc16470eb8 | 0 | Kronos-Integration/kronos-step | /* jslint node: true, esnext: true */
"use strict";
const endpoint = require('kronos-endpoint'),
llm = require('loglevel-mixin'),
stm = require('statetransition-mixin'),
merge = require('merge-deep');
const actions = stm.prepareActions({
start: {
stopped: {
target: "running",
during: "starting",
time... | lib/step.js | /* jslint node: true, esnext: true */
"use strict";
const endpoint = require('kronos-endpoint'),
llm = require('loglevel-mixin'),
stm = require('statetransition-mixin'),
merge = require('merge-deep');
const actions = stm.prepareActions({
start: {
stopped: {
target: "running",
during: "starting",
time... | refactor(log): rename trace attribute oldState/newState into old/new
| lib/step.js | refactor(log): rename trace attribute oldState/newState into old/new | <ide><path>ib/step.js
<ide> stateChanged(oldState, newState) {
<ide> this.trace(level => ({
<ide> "message": "state changed",
<del> "oldState": oldState,
<del> "newState": newState
<add> "old": oldState,
<add> "new": newState
<ide> }));
<ide> this.manager.emit('stepStateChanged', this, oldState, newSt... | |
Java | mit | 090240fc51e2100f8b8f8e029bdc8f30aa9eada9 | 0 | Nunnery/MythicDrops | package net.nunnerycode.bukkit.mythicdrops.hooks;
import com.gmail.nossr50.events.skills.repair.McMMOPlayerRepairCheckEvent;
import net.nunnerycode.bukkit.mythicdrops.api.MythicDrops;
import net.nunnerycode.bukkit.mythicdrops.api.tiers.Tier;
import net.nunnerycode.bukkit.mythicdrops.utils.TierUtil;
import org.bukkit... | src/main/java/net/nunnerycode/bukkit/mythicdrops/hooks/McMMOWrapper.java | package net.nunnerycode.bukkit.mythicdrops.hooks;
import com.gmail.nossr50.events.skills.repair.McMMOPlayerRepairCheckEvent;
import net.nunnerycode.bukkit.mythicdrops.api.MythicDrops;
import net.nunnerycode.bukkit.mythicdrops.api.tiers.Tier;
import net.nunnerycode.bukkit.mythicdrops.utils.TierUtil;
import org.bukkit... | Update McMMOWrapper.java | src/main/java/net/nunnerycode/bukkit/mythicdrops/hooks/McMMOWrapper.java | Update McMMOWrapper.java | <ide><path>rc/main/java/net/nunnerycode/bukkit/mythicdrops/hooks/McMMOWrapper.java
<ide> import org.bukkit.event.EventHandler;
<ide> import org.bukkit.event.Listener;
<ide>
<del>public final class mcMMOWrapper implements Listener {
<add>public final class McMMOWrapper implements Listener {
<ide>
<ide> private Mythi... | |
JavaScript | mit | ca8e7c19d6ab302c27df56f8f755ac22d741aa53 | 0 | cheton/cnc.js,cheton/piduino-grbl,cheton/cnc,cheton/cnc.js,cncjs/cncjs,cheton/piduino-grbl,cheton/piduino-grbl,cheton/cnc.js,cheton/cnc,cheton/cnc,cncjs/cncjs,cncjs/cncjs | /* eslint no-unused-vars: 0 */
import dns from 'dns';
import fs from 'fs';
import os from 'os';
import path from 'path';
import _ from 'lodash';
import bcrypt from 'bcrypt-nodejs';
import chalk from 'chalk';
import webappengine from 'webappengine';
import app from './app';
import cncengine from './services/cncengine';
... | src/app/index.js | /* eslint no-unused-vars: 0 */
import dns from 'dns';
import fs from 'fs';
import os from 'os';
import path from 'path';
import _ from 'lodash';
import bcrypt from 'bcrypt-nodejs';
import chalk from 'chalk';
import webappengine from 'webappengine';
import app from './app';
import cncengine from './services/cncengine';
... | Code refinement
| src/app/index.js | Code refinement | <ide><path>rc/app/index.js
<ide> const cncrc = path.resolve(configFile || settings.cncrc);
<ide> const config = readConfigFileSync(cncrc);
<ide>
<del> // Secret
<del> if (!config.secret) {
<del> // generate a secret key
<del> config.secret = bcrypt.genSaltSync(); // TODO
<add> // cncrc
<... | |
Java | mit | 322d7215bee562f4884f852ccadc254a23dbeff1 | 0 | diachron/quality | /**
*
*/
package eu.diachron.qualitymetrics.intrinsic.consistency;
import java.util.List;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.sparql.core.Quad;
import de.unibonn.iai.eis.luzzu.properties.En... | lod-qualitymetrics/lod-qualitymetrics-intrinsic/src/test/java/eu/diachron/qualitymetrics/intrinsic/consistency/ValidIFPUsageTest.java | /**
*
*/
package eu.diachron.qualitymetrics.intrinsic.consistency;
import java.util.List;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.hp.hpl.jena.sparql.core.Quad;
import de.unibonn.iai.eis.luzzu.properties.EnvironmentProperties;
import eu.diachron.... | fixed assertsEqual result
| lod-qualitymetrics/lod-qualitymetrics-intrinsic/src/test/java/eu/diachron/qualitymetrics/intrinsic/consistency/ValidIFPUsageTest.java | fixed assertsEqual result | <ide><path>od-qualitymetrics/lod-qualitymetrics-intrinsic/src/test/java/eu/diachron/qualitymetrics/intrinsic/consistency/ValidIFPUsageTest.java
<ide> import org.junit.Before;
<ide> import org.junit.Test;
<ide>
<add>import com.hp.hpl.jena.rdf.model.Model;
<ide> import com.hp.hpl.jena.sparql.core.Quad;
<ide>
<ide> impo... | |
JavaScript | mit | 0675cadb53df6b4a5cd8f48b11594387dda287fb | 0 | ofalvai/raspi-weather,ofalvai/raspi-weather,ofalvai/raspi-weather | var config = {
/**
* Frequency of measurement in minutes
* Note: it's only needed for the graph intervals, doesn't set the logging interval.
* You have to edit your crontab for that.
*/
measurementInterval: 30,
/**
* Coordinates for getting outside weather data from foreca... | public/javascripts/app.js | var config = {
/**
* Frequency of measurement in minutes
* Note: it's only needed for the graph intervals, doesn't set the logging interval.
* You have to edit your crontab for that.
*/
measurementInterval: 30,
/**
* Coordinates for getting outside weather data from foreca... | Rewrote chartComplete event handling
| public/javascripts/app.js | Rewrote chartComplete event handling | <ide><path>ublic/javascripts/app.js
<ide>
<ide> // Limits of the night plotband (the gray area on the graphs)
<ide> nightStart: 0,
<del> nightEnd: 7
<add> nightEnd: 7,
<add>
<add> // Used in chartComplete() to delay loading current sensor data
<add> numOfCharts: 2,
<add> loadedCharts: [ ]
<ide> ... | |
JavaScript | bsd-3-clause | 5887b224cfe5df4142c723daf44fbbd390d71a52 | 0 | GPII/windows,GPII/windows | /*
* Tests for the windows login user listener.
*
* Copyright 2017 Raising the Floor - International
*
* Licensed under the New BSD license. You may not use this file except in
* compliance with this License.
*
* The R&D leading to these results received funding from the
* Department of Education - Grant H421A... | gpii/node_modules/userListeners/test/windowsLoginTests.js | /*
* Tests for the windows login user listener.
*
* Copyright 2017 Raising the Floor - International
*
* Licensed under the New BSD license. You may not use this file except in
* compliance with this License.
*
* The R&D leading to these results received funding from the
* Department of Education - Grant H421A... | GPII-4397: Fixed user login texts to recognised lower cased marker
| gpii/node_modules/userListeners/test/windowsLoginTests.js | GPII-4397: Fixed user login texts to recognised lower cased marker | <ide><path>pii/node_modules/userListeners/test/windowsLoginTests.js
<ide> fluid.each(["reg:", "regkey:"], function (prefix) {
<ide> var expectedValue = prefix === "reg:"
<ide> ? userValue
<del> : ("gpiiKey:" + userValue);
<add> : ("gpiikey:" + userValue);
<ide>
<ide> ... | |
Java | apache-2.0 | 66e07b64d861965ef15840c3506085a39b207947 | 0 | dropwizard/metrics,dropwizard/metrics,dropwizard/metrics | package com.codahale.metrics.jetty9;
import com.codahale.metrics.MetricRegistry;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.api.ContentResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.... | metrics-jetty9/src/test/java/com/codahale/metrics/jetty9/InstrumentedHandlerTest.java | package com.codahale.metrics.jetty9;
import com.codahale.metrics.MetricRegistry;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.api.ContentResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.... | chore: Ignore flaky tests for Jetty's InstrumentedHandler
| metrics-jetty9/src/test/java/com/codahale/metrics/jetty9/InstrumentedHandlerTest.java | chore: Ignore flaky tests for Jetty's InstrumentedHandler | <ide><path>etrics-jetty9/src/test/java/com/codahale/metrics/jetty9/InstrumentedHandlerTest.java
<ide> import org.eclipse.jetty.server.handler.AbstractHandler;
<ide> import org.junit.After;
<ide> import org.junit.Before;
<add>import org.junit.Ignore;
<ide> import org.junit.Test;
<ide>
<ide> import javax.servlet.AsyncCo... | |
Java | mit | d837fceaeb381fe5b89c3a89a9efb10438eb6c01 | 0 | jenkinsci/starteam-plugin,ahunigel/starteam-plugin,jenkinsci/starteam-plugin,ahunigel/starteam-plugin | package hudson.plugins.starteam;
import hudson.Util;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
/**
* Builds... | src/main/java/hudson/plugins/starteam/StarTeamChangeLogBuilder.java | package hudson.plugins.starteam;
import hudson.Util;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
/**
* Builds... | cleanup | src/main/java/hudson/plugins/starteam/StarTeamChangeLogBuilder.java | cleanup | <ide><path>rc/main/java/hudson/plugins/starteam/StarTeamChangeLogBuilder.java
<ide> *
<ide> * </p>
<ide> *
<del> * @param aOutputStream
<add> * @param outputStream
<ide> * the stream to write to
<del> * @param aChanges
<add> * @param changeSet
<ide> * the history objects to store
<... | |
Java | apache-2.0 | ead213ad654662e916730e53c7935c852ce4c458 | 0 | speedment/speedment,speedment/speedment | runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/abstracts/AbstractDbmsOperationHandler.java | /*
*
* Copyright (c) 2006-2019, Speedment, 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 requi... | runtime-core: Remove AbstractDbmsOperationHandler, Fix #787
| runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/abstracts/AbstractDbmsOperationHandler.java | runtime-core: Remove AbstractDbmsOperationHandler, Fix #787 | <ide><path>untime-parent/runtime-core/src/main/java/com/speedment/runtime/core/abstracts/AbstractDbmsOperationHandler.java
<del>/*
<del> *
<del> * Copyright (c) 2006-2019, Speedment, Inc. All Rights Reserved.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License"); You may not
<del> * use this fi... | ||
JavaScript | mit | d518fab49a533cdd726ee7f9840015101be3e4cb | 0 | voyagr/voyagr,voyagr/voyagr | import * as firebase from 'firebase'
import config from '../firebaseConfig'
export const initialize = firebase.initializeApp(config)
export const database = firebase.database()
export const auth = firebase.auth()
export const ref = database.ref()
| db/firebase.js | import * as firebase from 'firebase'
import config from '../firebaseConfig'
// import { bindActionCreators } from 'redux'
export const initialize = firebase.initializeApp(config)
export const database = firebase.database()
export const auth = firebase.auth()
export const ref = database.ref()
| Update firebase.js | db/firebase.js | Update firebase.js | <ide><path>b/firebase.js
<ide> import * as firebase from 'firebase'
<ide> import config from '../firebaseConfig'
<del>// import { bindActionCreators } from 'redux'
<ide>
<ide> export const initialize = firebase.initializeApp(config)
<ide> | |
JavaScript | mit | 399562daa73dcb094a3f65b3f724549b0c381e37 | 0 | opentok/accelerator-core-js,opentok/accelerator-core-js,adrice727/accelerator-core-js,adrice727/accelerator-core-js | /* global OT */
/**
* Dependencies
*/
const util = require('./util');
const State = require('./state').default;
const accPackEvents = require('./events');
const Communication = require('./communication').default;
const OpenTokSDK = require('./sdk-wrapper/sdkWrapper');
const { CoreError } = require('./errors');
const ... | src/core.js | /* global OT */
/**
* Dependencies
*/
const util = require('./util');
const State = require('./state').default;
const accPackEvents = require('./events');
const Communication = require('./communication').default;
const OpenTokSDK = require('./sdk-wrapper/sdkWrapper');
const { CoreError } = require('./errors');
const ... | Accept a name parameter when creating a new instance.
| src/core.js | Accept a name parameter when creating a new instance. | <ide><path>rc/core.js
<ide> }
<ide> const { credentials } = options;
<ide> validateCredentials(options.credentials);
<add> this.name = options.name;
<ide>
<ide> // Init analytics
<ide> this.analytics = new Analytics(window.location.origin, credentials.sessionId, null, credentials.apiKey); | |
Java | apache-2.0 | 55f2f62ba3a833ad42002cb01a4275731ed9de53 | 0 | grassjedi/undertow,baranowb/undertow,wildfly-security-incubator/undertow,rogerchina/undertow,amannm/undertow,undertow-io/undertow,jasonchaffee/undertow,popstr/undertow,Karm/undertow,jstourac/undertow,soul2zimate/undertow,msfm/undertow,yonglehou/undertow,rhusar/undertow,jasonchaffee/undertow,golovnin/undertow,emag/coder... | package io.undertow.websockets.jsr;
import io.undertow.servlet.ServletExtension;
import io.undertow.servlet.Servlets;
import io.undertow.servlet.api.DeploymentInfo;
import io.undertow.servlet.api.ThreadSetupAction;
import io.undertow.servlet.core.CompositeThreadSetupAction;
import io.undertow.servlet.core.ContextClass... | websockets-jsr/src/main/java/io/undertow/websockets/jsr/Bootstrap.java | package io.undertow.websockets.jsr;
import io.undertow.servlet.ServletExtension;
import io.undertow.servlet.Servlets;
import io.undertow.servlet.api.DeploymentInfo;
import io.undertow.servlet.api.ThreadSetupAction;
import io.undertow.servlet.core.CompositeThreadSetupAction;
import io.undertow.servlet.core.ContextClass... | Make the JSR web socket filter support async requests
| websockets-jsr/src/main/java/io/undertow/websockets/jsr/Bootstrap.java | Make the JSR web socket filter support async requests | <ide><path>ebsockets-jsr/src/main/java/io/undertow/websockets/jsr/Bootstrap.java
<ide> } catch (DeploymentException e) {
<ide> throw new RuntimeException(e);
<ide> }
<del> deploymentInfo.addFilter(Servlets.filter(FILTER_NAME, JsrWebSocketFilter.class));
<add> deploymentInfo.add... | |
Java | mit | error: pathspec 'momo-manage/src/main/java/com/momohelp/calculate/service/ICost.java' did not match any file(s) known to git
| 1c64bcff17129806649ec31fa63fdfe0fad94228 | 1 | momo3210/gold,momo3210/gold,momo3210/gold | package com.momohelp.calculate.service;
import com.momohelp.model.User;
public interface ICost {
/**
*
* @param user
* 当前会员
* @return boolean true 表示计算成功 false 计算失败
*/
public abstract boolean premium(User user);
// 推荐奖计算
public abstract void recommend(User user);
// 管理奖计... | momo-manage/src/main/java/com/momohelp/calculate/service/ICost.java | 增加生产消费队列以及线程池 | momo-manage/src/main/java/com/momohelp/calculate/service/ICost.java | 增加生产消费队列以及线程池 | <ide><path>omo-manage/src/main/java/com/momohelp/calculate/service/ICost.java
<add>package com.momohelp.calculate.service;
<add>
<add>import com.momohelp.model.User;
<add>
<add>public interface ICost {
<add>
<add> /**
<add> *
<add> * @param user
<add> * 当前会员
<add> * @return boolean true 表示计算成功 false 计算失... | |
Java | apache-2.0 | d9b10289c85bbe4c5abe10a60cde9148d6e391ed | 0 | openengsb/openengsb,openengsb/openengsb,openengsb/openengsb,tobster/openengsb,tobster/openengsb,openengsb/openengsb,openengsb/openengsb,tobster/openengsb,tobster/openengsb,openengsb/openengsb | /**
Copyright 2010 OpenEngSB Division, Vienna University of Technology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE\-2.0
Unless req... | core/workflow/service-engine/src/main/java/org/openengsb/drools/source/DirectoryRuleSource.java | /**
Copyright 2010 OpenEngSB Division, Vienna University of Technology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE\-2.0
Unless req... | move listFiles to seperate functions to get rid of the warnings
| core/workflow/service-engine/src/main/java/org/openengsb/drools/source/DirectoryRuleSource.java | move listFiles to seperate functions to get rid of the warnings | <ide><path>ore/workflow/service-engine/src/main/java/org/openengsb/drools/source/DirectoryRuleSource.java
<ide> StringBuffer content = new StringBuffer();
<ide> content.append(String.format("package %s;\n", getPackageName(path)));
<ide> content.append(prelude);
<del> Collection<File> func... | |
JavaScript | mit | 42589aad90ac3fe7079dce503bc1450f0569ceb7 | 0 | ludumdare/ludumdare,local-minimum/ludumdare,zwrawr/ludumdare,povrazor/ludumdare,ludumdare/ludumdare,zwrawr/ludumdare,Noojuno/ludumdare,sgstair/ludumdare,ludumdare/ludumdare,zwrawr/ludumdare,local-minimum/ludumdare,zwrawr/ludumdare,Noojuno/ludumdare,povrazor/ludumdare,sgstair/ludumdare,sgstair/ludumdare,ludumdare/ludumd... | import { h, Component } from 'preact/preact';
//import ShallowCompare from 'shallow-compare/index';
import NavSpinner from 'com/nav-spinner/spinner';
import NavLink from 'com/nav-link/link';
import SVGIcon from 'com/svg-icon/icon';
import IMG2 from 'com/img2/img2';
import ContentFoo... | src/com/content-comments/comments.js | import { h, Component } from 'preact/preact';
//import ShallowCompare from 'shallow-compare/index';
import NavSpinner from 'com/nav-spinner/spinner';
import NavLink from 'com/nav-link/link';
import SVGIcon from 'com/svg-icon/icon';
import IMG2 from 'com/img2/img2';
import ContentFoo... | added placeholder dates to newly injected comments
| src/com/content-comments/comments.js | added placeholder dates to newly injected comments | <ide><path>rc/com/content-comments/comments.js
<ide> $Note.Add( newcomment.parent, newcomment.node, newcomment.body )
<ide> .then(r => {
<ide> if ( r.note ) {
<del> var comment = Object.assign({'id': r.note}, newcomment);
<add> var Now = new Date();
<add> var comment = Object.assign({
<add> 'id': r.... | |
Java | agpl-3.0 | 7498c3422b3737bc0061989f85411f9a9a7d22cc | 0 | thehyve/Open-Clinica-Data-Uploader,thehyve/Open-Clinica-Data-Uploader,thehyve/Open-Clinica-Data-Uploader | package nl.thehyve.ocdu;
import nl.thehyve.ocdu.models.OcDefinitions.*;
import nl.thehyve.ocdu.soap.ResponseHandlers.GetStudyMetadataResponseHandler;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot... | src/test/java/nl/thehyve/ocdu/GetMetadataTests.java | package nl.thehyve.ocdu;
import nl.thehyve.ocdu.models.OcDefinitions.*;
import nl.thehyve.ocdu.soap.ResponseHandlers.GetStudyMetadataResponseHandler;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot... | Fix tests.
| src/test/java/nl/thehyve/ocdu/GetMetadataTests.java | Fix tests. | <ide><path>rc/test/java/nl/thehyve/ocdu/GetMetadataTests.java
<ide> import javax.xml.xpath.XPathFactory;
<ide> import java.io.File;
<ide> import java.io.FileInputStream;
<del>import java.util.ArrayList;
<del>import java.util.List;
<add>import java.util.*;
<ide>
<ide> import static org.hamcrest.CoreMatchers.is;
<ide> i... | |
Java | apache-2.0 | 78c77bb8e36ac646d5862ff410f69407a1950e98 | 0 | apache/wicket,bitstorm/wicket,topicusonderwijs/wicket,mafulafunk/wicket,AlienQueen/wicket,klopfdreh/wicket,topicusonderwijs/wicket,zwsong/wicket,mosoft521/wicket,mosoft521/wicket,aldaris/wicket,apache/wicket,martin-g/wicket-osgi,aldaris/wicket,Servoy/wicket,AlienQueen/wicket,mafulafunk/wicket,aldaris/wicket,bitstorm/wi... | /*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | wicket-extensions/src/java/wicket/extensions/markup/html/datepicker/DatePickerSettings.java | /*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | close resource stream
git-svn-id: ac804e38dcddf5e42ac850d29d9218b7df6087b7@460227 13f79535-47bb-0310-9956-ffa450edef68
| wicket-extensions/src/java/wicket/extensions/markup/html/datepicker/DatePickerSettings.java | close resource stream | <ide><path>icket-extensions/src/java/wicket/extensions/markup/html/datepicker/DatePickerSettings.java
<ide> package wicket.extensions.markup.html.datepicker;
<ide>
<ide> import java.io.IOException;
<add>import java.io.InputStream;
<ide> import java.io.Serializable;
<ide> import java.util.Locale;
<ide> import java.util... | |
Java | mit | 954b380ad5ee37c2611040971ad5c70667944274 | 0 | ming-soft/MCMS,ming-soft/MCMS,ming-soft/MCMS,ming-soft/MCMS | /**
* The MIT License (MIT)
* Copyright (c) 2020 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use... | src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java | /**
* The MIT License (MIT)
* Copyright (c) 2020 铭软科技(mingsoft.net)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use... | 修复叶子节点
| src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java | 修复叶子节点 | <ide><path>rc/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java
<ide> import cn.hutool.core.util.ObjectUtil;
<ide> import cn.hutool.core.util.StrUtil;
<ide> import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
<add>import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
<ide> import ... | |
Java | bsd-2-clause | 83660849cba6cc1bc5e120499a4a9c5ba0cce394 | 0 | runelite/runelite,l2-/runelite,l2-/runelite,Sethtroll/runelite,runelite/runelite,Sethtroll/runelite,runelite/runelite | /*
* Copyright (c) 2018, Lotto <https://github.com/devLotto>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, th... | runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/CrypticClue.java | /*
* Copyright (c) 2018, Lotto <https://github.com/devLotto>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, th... | Properly capitalize 'Brother Kojo' in Watchtower clue scroll (#9297)
| runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/CrypticClue.java | Properly capitalize 'Brother Kojo' in Watchtower clue scroll (#9297) | <ide><path>unelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/CrypticClue.java
<ide> new CrypticClue("46 is my number. My body is the colour of burnt orange and crawls among those with eight. Three mouths I have, yet I cannot eat. My blinking blue eye hides my grave.", new WorldPoint(3170, 388... | |
Java | apache-2.0 | ea2caac6cdc39906e504554899031f4697ae77a1 | 0 | MCUpdater/MCUpdater,MCUpdater/MCUpdater | package org.smbarbour.mcu.util;
// Credit for this class goes to Peter Koeleman, who graciously provided the initial code.
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import... | MCU-API/src/org/smbarbour/mcu/util/ModDownload.java | package org.smbarbour.mcu.util;
// Credit for this class goes to Peter Koeleman, who graciously provided the initial code.
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import... | Attempt at making direct download of Optifine work | MCU-API/src/org/smbarbour/mcu/util/ModDownload.java | Attempt at making direct download of Optifine work | <ide><path>CU-API/src/org/smbarbour/mcu/util/ModDownload.java
<ide> while (e.hasMoreElements()) {
<ide> Object name = e.nextElement();
<ide> String value = (String) attributes.getAttribute(name);
<del> if (name == HTML.Attribute.HREF && value.startsWith("download.php"))
<add> if... | |
Java | apache-2.0 | bde61486d43c80ea23295c7995259e5b41bc78a4 | 0 | orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb | package com.orientechnologies.distribution.integration;
import com.orientechnologies.orient.core.collate.OCaseInsensitiveCollate;
import com.orientechnologies.orient.core.collate.ODefaultCollate;
import com.orientechnologies.orient.core.db.ODatabaseType;
import com.orientechnologies.orient.core.metadata.schema.OClass;... | distribution/src/test/java/com/orientechnologies/distribution/integration/OGitHubIssuesIT.java | package com.orientechnologies.distribution.integration;
import com.orientechnologies.orient.core.db.ODatabaseType;
import com.orientechnologies.orient.core.sql.executor.OResult;
import com.orientechnologies.orient.core.sql.executor.OResultSet;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
imp... | Test for Issue #7264
| distribution/src/test/java/com/orientechnologies/distribution/integration/OGitHubIssuesIT.java | Test for Issue #7264 | <ide><path>istribution/src/test/java/com/orientechnologies/distribution/integration/OGitHubIssuesIT.java
<ide> package com.orientechnologies.distribution.integration;
<ide>
<add>import com.orientechnologies.orient.core.collate.OCaseInsensitiveCollate;
<add>import com.orientechnologies.orient.core.collate.ODefaultColla... | |
Java | apache-2.0 | e05dc641e89d8419e72d0591c05361915f1b7b2e | 0 | skremp/pictura-io,skremp/pictura-io,skremp/pictura-io | /**
* Copyright 2015, 2016 Steffen Kremp
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | servlet/src/main/java/io/pictura/servlet/RequestProcessor.java | /**
* Copyright 2015, 2016 Steffen Kremp
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Added new debug response header X-Pictura-SavedData | servlet/src/main/java/io/pictura/servlet/RequestProcessor.java | Added new debug response header X-Pictura-SavedData | <ide><path>ervlet/src/main/java/io/pictura/servlet/RequestProcessor.java
<ide> * whether the optional debug query parameter (URL) is set to
<ide> * <code>true</code>.
<ide> *
<del> * @return <code>true</code> if debugging is enabled; otherwise
<del> * <code>false</code>.
<add> * @return <code... | |
JavaScript | mit | 9a839b676dbe2e228dd98e5f9fdd34558a86033c | 0 | alexn1/qforms,alexn1/qforms,alexn1/qforms | const months = [
'Январь', 'Февраль',
'Март', 'Апрель', 'Май',
'Июнь', 'Июль', 'Август',
'Сентябрь', 'Октябрь', 'Ноябрь',
'Декабрь'
];
class DatePicker {
constructor(el) {
console.log('DatePicker.constructor', el);
this.el = el;
this.year = null;
this.month = nul... | gui/datepicker/DatePicker/DatePicker.js | const months = [
'Январь', 'Февраль',
'Март', 'Апрель', 'Май',
'Июнь', 'Июль', 'Август',
'Сентябрь', 'Октябрь', 'Ноябрь',
'Декабрь'
];
class DatePicker {
constructor(el) {
console.log('DatePicker.constructor', el);
this.el = el;
this.year = null;
this.month = nul... | setSelectedDate
| gui/datepicker/DatePicker/DatePicker.js | setSelectedDate | <ide><path>ui/datepicker/DatePicker/DatePicker.js
<ide> return this.selectedYear !== null && this.selectedMonth && this.selectedDate;
<ide> }
<ide>
<add> setSelectedDate(year, month, date) {
<add> this.selectedYear = year;
<add> this.selectedMonth = month;
<add> this.selectedDate = ... | |
Java | apache-2.0 | error: pathspec 'flags/src/test/java/org/cloudname/flags/FlagsHelpTest.java' did not match any file(s) known to git
| 5ec45abfb8e4cb30f42bfb9ff830016c872c96f1 | 1 | stalehd/cloudname,stalehd/cloudname,stalehd/cloudname | package org.cloudname.flags;
public class FlagsHelpTest {
@Flag(name = "no.default.value.int")
public static int noDefaultValue;
@Flag(name = "no.default.value.string")
public static String noDefaultValue2;
}
| flags/src/test/java/org/cloudname/flags/FlagsHelpTest.java | Forgot a file.
| flags/src/test/java/org/cloudname/flags/FlagsHelpTest.java | Forgot a file. | <ide><path>lags/src/test/java/org/cloudname/flags/FlagsHelpTest.java
<add>package org.cloudname.flags;
<add>
<add>public class FlagsHelpTest {
<add>
<add> @Flag(name = "no.default.value.int")
<add> public static int noDefaultValue;
<add>
<add> @Flag(name = "no.default.value.string")
<add> public static ... | |
Java | apache-2.0 | 77720bd8c62a9230f1f3a37b6634e418e4f00b20 | 0 | rbrito/commons-graph | src/main/java/org/apache/commons/graph/algorithm/util/PathImpl.java | package org.apache.commons.graph.algorithm.util;
/*
* 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 Ap... | removed unneeded Path impl, the new one is more verastile
git-svn-id: d10d6fea7dc5cdc41d063c212c6a6cfd08395fef@1135848 13f79535-47bb-0310-9956-ffa450edef68
| src/main/java/org/apache/commons/graph/algorithm/util/PathImpl.java | removed unneeded Path impl, the new one is more verastile | <ide><path>rc/main/java/org/apache/commons/graph/algorithm/util/PathImpl.java
<del>package org.apache.commons.graph.algorithm.util;
<del>
<del>/*
<del> * Licensed to the Apache Software Foundation (ASF) under one
<del> * or more contributor license agreements. See the NOTICE file
<del> * distributed with this work for... | ||
Java | mit | 27608663dfb8192d865ea9e7919ca0b31e9641c4 | 0 | jenkinsci/disk-usage-plugin | package hudson.plugins.disk_usage.integration;
import hudson.model.AbstractProject;
import org.jvnet.hudson.test.recipes.LocalData;
import hudson.plugins.disk_usage.*;
import hudson.model.TopLevelItem;
import hudson.model.Project;
import hudson.model.Build;
import hudson.model.TopLevelItemDescriptor;
import java.util.... | src/test/java/hudson/plugins/disk_usage/integration/ProjectDiskUsageActionTest.java | package hudson.plugins.disk_usage.integration;
import hudson.model.AbstractProject;
import org.jvnet.hudson.test.recipes.LocalData;
import hudson.plugins.disk_usage.*;
import hudson.model.TopLevelItem;
import hudson.model.Project;
import hudson.model.Build;
import hudson.model.TopLevelItemDescriptor;
import java.util.... | fix creation of executable in test.
| src/test/java/hudson/plugins/disk_usage/integration/ProjectDiskUsageActionTest.java | fix creation of executable in test. | <ide><path>rc/test/java/hudson/plugins/disk_usage/integration/ProjectDiskUsageActionTest.java
<ide> @Test
<ide> public void getAllBuildDiskUsageFiltered() throws Exception{
<ide> ProjectTest project = new ProjectTest(j.jenkins, "project");
<add> project.assignBuildNumber();
<ide> Calenda... | |
JavaScript | mit | 4ea8a7c18a8fb13e8604cd0a003cb044d0e133a1 | 0 | christoph26/foodgenerator-frontend,christoph26/foodgenerator-frontend | (function () {
angular.module('foodGenerator')
.service('recipeStorageService', recipeStorageService);
function recipeStorageService($window, recipeService) {
this.addMarkedRecipe = addMarkedRecipe;
this.removeMarkedRecipe = removeMarkedRecipe;
this.getMarkedRecipes = getMarke... | app/ng/components/recipe/recipe-storage-service.js | (function () {
angular.module('foodGenerator')
.service('recipeStorageService', recipeStorageService);
function recipeStorageService($window, recipeService) {
this.addMarkedRecipe = addMarkedRecipe;
this.removeMarkedRecipe = removeMarkedRecipe;
this.getMarkedRecipes = getMarke... | fixed index bug when removing recipes from storage
| app/ng/components/recipe/recipe-storage-service.js | fixed index bug when removing recipes from storage | <ide><path>pp/ng/components/recipe/recipe-storage-service.js
<ide> }
<ide>
<ide> function clearRecentlyViewedRecipes() {
<del> clearRecipeStorage('foodgenerator.recipes.marked');
<add> clearRecipeStorage('foodgenerator.recipes.recent');
<ide> }
<ide>
<ide> // Shop... | |
Java | lgpl-2.1 | 38492a8e26066cc06b00a4ab35f30f3ab2a04aee | 0 | KengoTODA/spotbugs,KengoTODA/spotbugs,sewe/spotbugs,KengoTODA/spotbugs,johnscancella/spotbugs,spotbugs/spotbugs,johnscancella/spotbugs,spotbugs/spotbugs,sewe/spotbugs,johnscancella/spotbugs,johnscancella/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,KengoTODA/spotbugs,spotbugs/spotbugs,sewe/spotbugs,sewe/spotbugs | /*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2005, University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... | findbugs/src/java/edu/umd/cs/findbugs/ba/NullnessAnnotationDatabase.java | /*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2005, University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... | Tell system that readLock and writeLock always return nonnull values
git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@5935 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
| findbugs/src/java/edu/umd/cs/findbugs/ba/NullnessAnnotationDatabase.java | Tell system that readLock and writeLock always return nonnull values | <ide><path>indbugs/src/java/edu/umd/cs/findbugs/ba/NullnessAnnotationDatabase.java
<ide> addMethodAnnotation("java.util.concurrent.ConcurrentHashMap", "putIfAbsent", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", false, NullnessAnnotation.CHECK_FOR_NULL);
<ide>
<ide>
<add> addMethodAnnotation("jav... | |
Java | apache-2.0 | 6456ebb55f83346630a9c04cb6e0eeaed9107fae | 0 | MadcowD/libgdx,xranby/libgdx,gf11speed/libgdx,PedroRomanoBarbosa/libgdx,mumer92/libgdx,NathanSweet/libgdx,realitix/libgdx,josephknight/libgdx,kagehak/libgdx,realitix/libgdx,titovmaxim/libgdx,MetSystem/libgdx,sinistersnare/libgdx,Thotep/libgdx,js78/libgdx,MovingBlocks/libgdx,flaiker/libgdx,ya7lelkom/libgdx,nelsonsilva/l... | /*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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:... | gdx/src/com/badlogic/gdx/scenes/scene2d/Stage.java | /*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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:... | Stage, enter/exit were ignoring touchability.
| gdx/src/com/badlogic/gdx/scenes/scene2d/Stage.java | Stage, enter/exit were ignoring touchability. | <ide><path>dx/src/com/badlogic/gdx/scenes/scene2d/Stage.java
<ide> private Actor fireEnterAndExit (Actor overLast, int screenX, int screenY, int pointer) {
<ide> // Find the actor under the point.
<ide> screenToStageCoordinates(stageCoords.set(screenX, screenY));
<del> Actor over = hit(stageCoords.x, stageCoords.... | |
Java | apache-2.0 | 8c9d4de88bb6a455f8c77e83492ac7263259fc28 | 0 | vase4kin/TeamCityApp,vase4kin/TeamCityApp,vase4kin/TeamCityApp | /*
* Copyright 2016 Andrey Tolpeev
*
* 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... | app/src/test/java/com/github/vase4kin/teamcityapp/buildlog/presenter/BuildLogPresenterImplTest.java | /*
* Copyright 2016 Andrey Tolpeev
*
* 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... | Fix build log presenter tests
| app/src/test/java/com/github/vase4kin/teamcityapp/buildlog/presenter/BuildLogPresenterImplTest.java | Fix build log presenter tests | <ide><path>pp/src/test/java/com/github/vase4kin/teamcityapp/buildlog/presenter/BuildLogPresenterImplTest.java
<ide> package com.github.vase4kin.teamcityapp.buildlog.presenter;
<ide>
<ide> import com.github.vase4kin.teamcityapp.buildlog.data.BuildLogInteractor;
<add>import com.github.vase4kin.teamcityapp.buildlog.route... | |
JavaScript | apache-2.0 | 3bb75d3ad43f5da7f39fabe99f6c2498e6badcbf | 0 | wallw-bits/cesium,wallw-bits/cesium,ggetz/cesium,NaderCHASER/cesium,CesiumGS/cesium,ggetz/cesium,CesiumGS/cesium,progsung/cesium,oterral/cesium,YonatanKra/cesium,geoscan/cesium,wallw-bits/cesium,hodbauer/cesium,ggetz/cesium,josh-bernstein/cesium,jasonbeverage/cesium,oterral/cesium,CesiumGS/cesium,hodbauer/cesium,soceur... | /*jslint node: true, latedef: nofunc*/
/*eslint-env node*/
'use strict';
var fs = require('fs');
var path = require('path');
var os = require('os');
var child_process = require('child_process');
var crypto = require('crypto');
var zlib = require('zlib');
var readline = require('readline');
var request = require('reque... | gulpfile.js | /*jslint node: true, latedef: nofunc*/
/*eslint-env node*/
'use strict';
var fs = require('fs');
var path = require('path');
var os = require('os');
var child_process = require('child_process');
var crypto = require('crypto');
var zlib = require('zlib');
var readline = require('readline');
var request = require('reque... | Copy images correctly
| gulpfile.js | Copy images correctly | <ide><path>ulpfile.js
<ide> }
<ide>
<ide> function buildSandcastle() {
<del> return gulp.src([
<del> 'Apps/Sandcastle/**'
<del> ])
<del> // Replace require Source with pre-built Cesium
<del> .pipe(gulpReplace('../../../ThirdParty/requirejs-2.1.20/require.js', '../... | |
Java | apache-2.0 | e901894996f7e25e8811b7ce0497cc30b22b4c56 | 0 | pkcool/qalingo-engine,qalingo/qalingo-engine,cloudbearings/qalingo-engine | /**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com - http://twitter.com/hoteia - con... | apis/api-web/api-web-fo-mcommerce/src/main/java/org/hoteia/qalingo/web/mvc/controller/common/StoreLocationController.java | /**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com - http://twitter.com/hoteia - con... | store locator | apis/api-web/api-web-fo-mcommerce/src/main/java/org/hoteia/qalingo/web/mvc/controller/common/StoreLocationController.java | store locator | <ide><path>pis/api-web/api-web-fo-mcommerce/src/main/java/org/hoteia/qalingo/web/mvc/controller/common/StoreLocationController.java
<ide> List<StoreLocatorCountryFilterBean> countries = new ArrayList<StoreLocatorCountryFilterBean>();
<ide> if(geolocData != null){
<ide> String distance = getD... | |
Java | agpl-3.0 | 27768ecaadedfefe7512a94b6ff14a76c9b77e6d | 0 | duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test,duaneking/rockstar_test | 834f83e8-2e60-11e5-9284-b827eb9e62be | hello.java | 834a17e6-2e60-11e5-9284-b827eb9e62be | 834f83e8-2e60-11e5-9284-b827eb9e62be | hello.java | 834f83e8-2e60-11e5-9284-b827eb9e62be | <ide><path>ello.java
<del>834a17e6-2e60-11e5-9284-b827eb9e62be
<add>834f83e8-2e60-11e5-9284-b827eb9e62be | |
JavaScript | unlicense | 0fe44fce2916d4edefc7f54cd90b114c387511f8 | 0 | TransforMap/demo.transformap.co,TransforMap/demo.transformap.co,species/transfor-map,species/transfor-map,species/transfor-map,TransforMap/demo.transformap.co,TransforMap/transfor-map,species/transfor-map,TransforMap/transfor-map,TransforMap/transfor-map,TransforMap/transfor-map,TransforMap/demo.transformap.co | /* this part must be in global namespace */
// fetch taxonomy, containing all translations, and implicit affiliations
// taken from Wikipedia:JSON
var url = "taxonomy.json";
var taxonomy;
var http_request = new XMLHttpRequest();
http_request.open("GET", url, true);
http_request.onreadystatechange = function () {
... | map.js | /* this part must be in global namespace */
// fetch taxonomy, containing all translations, and implicit affiliations
// taken from Wikipedia:JSON
var url = "taxonomy.json";
var taxonomy;
var http_request = new XMLHttpRequest();
http_request.open("GET", url, true);
http_request.onreadystatechange = function () {
... | comment
| map.js | comment | <ide><path>ap.js
<ide>
<ide> function bindPopupOnData(data) {
<ide> // first: check if no item with this osm-id exists...
<del> var hashtable_key = data.type + data.id;
<add> var hashtable_key = data.type + data.id; // e.g. "node1546484546"
<ide> if(marker_table[hashtable_key] == 1) //object already th... | |
Java | apache-2.0 | e959e16d98f0329533e1ba6a6a175789c64aebc6 | 0 | hurricup/intellij-community,blademainer/intellij-community,xfournet/intellij-community,muntasirsyed/intellij-community,allotria/intellij-community,ivan-fedorov/intellij-community,gnuhub/intellij-community,wreckJ/intellij-community,izonder/intellij-community,holmes/intellij-community,jagguli/intellij-community,muntasirs... | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/platform-impl/src/com/intellij/openapi/keymap/impl/KeymapImpl.java | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | cleanup
| platform/platform-impl/src/com/intellij/openapi/keymap/impl/KeymapImpl.java | cleanup | <ide><path>latform/platform-impl/src/com/intellij/openapi/keymap/impl/KeymapImpl.java
<ide> * @return string representation of passed keystroke.
<ide> */
<ide> public static String getKeyShortcutString(KeyStroke keyStroke) {
<del> StringBuffer buf = new StringBuffer();
<add> StringBuilder buf = new String... | |
JavaScript | mit | a3ee329d2708093e97f46a7db1ec3bb2cefc45e4 | 0 | xavierdutreilh/wintersmith-sitemap,xavierdutreilh/wintersmith-sitemap | 'use strict';
const path = require('path');
module.exports = function(env, callback) {
class Sitemap extends env.plugins.Page {
getFilename() {
return 'sitemap.xml';
}
getView() {
// jshint maxparams: 5
return (env, locals, contents, templates, callback) => {
const filepath = ... | lib/index.js | 'use strict';
const path = require('path');
module.exports = function(env, callback) {
class Sitemap extends env.plugins.Page {
getFilename() {
return 'sitemap.xml';
}
getEntries(contents) {
return env.helpers.contents.list(contents).filter((content) => (
content instanceof env.plug... | Clean up index file
| lib/index.js | Clean up index file | <ide><path>ib/index.js
<ide> class Sitemap extends env.plugins.Page {
<ide> getFilename() {
<ide> return 'sitemap.xml';
<del> }
<del>
<del> getEntries(contents) {
<del> return env.helpers.contents.list(contents).filter((content) => (
<del> content instanceof env.plugins.MarkdownPage &&
<de... | |
JavaScript | mit | 3c32d5d70c087744f0a2c2a7b91404e8e24bff5f | 0 | romkor/angular-wheel | (function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['angular'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS style for Browserify
module.exports = factory;
} else {
... | src/angular-wheel.js | 'use strict';
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['angular'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS style for Browserify
module.exports = factory;
} else {
... | Updated directive.
Added $destroy binding.
| src/angular-wheel.js | Updated directive. Added $destroy binding. | <ide><path>rc/angular-wheel.js
<del>'use strict';
<ide> (function (factory) {
<add> 'use strict';
<ide> if (typeof define === 'function' && define.amd) {
<ide> // AMD. Register as an anonymous module.
<ide> define(['angular'], factory);
<ide> factory(angular);
<ide> }
<ide> }(function... | |
JavaScript | mit | d7dabed3231937fe8f15aa8c23ee2848b4525ede | 0 | JamesSkemp/VideoGamesSpa,JamesSkemp/VideoGamesSpa | app.controller('HomeController', function ($scope) {
// todo not sure what I want on the page yet, since we didn't have it before
});
app.controller('GamesController', function ($scope, $http, JsonCache) {
$scope.currentPage = 0;
$scope.pageSize = 10;
$scope.games = [];
$scope.consoles = [];
$http.get('Content/... | SimpleWebsite/app/controllers/controllers.js | app.controller('HomeController', function ($scope) {
// todo not sure what I want on the page yet, since we didn't have it before
});
app.controller('GamesController', function ($scope, $http, JsonCache) {
$scope.currentPage = 0;
$scope.pageSize = 10;
$scope.games = [];
$scope.consoles = [];
$http.get('Content/... | Added PlayStation 4 platform support (simple replace for name).
| SimpleWebsite/app/controllers/controllers.js | Added PlayStation 4 platform support (simple replace for name). | <ide><path>impleWebsite/app/controllers/controllers.js
<ide> $scope.test.newPointsPercent = $scope.game.PointsPercentage;
<ide> $scope.test.newItemsPercent = $scope.game.TrophyPercentage;
<ide> $scope.graphicUrl = 'Content/images/psn/' + $scope.game.Id + '.png';
<del> $scope.platform = $scope.game.Pl... | |
Java | mit | 50191a797d9d17b6aed90d6a97998d3e8ef3b9c5 | 0 | GlowstoneMC/GlowstonePlusPlus,GlowstonePlusPlus/GlowstonePlusPlus,GlowstoneMC/GlowstonePlusPlus,GlowstoneMC/GlowstonePlusPlus,GlowstoneMC/GlowstonePlusPlus,GlowstonePlusPlus/GlowstonePlusPlus,GlowstonePlusPlus/GlowstonePlusPlus,GlowstonePlusPlus/GlowstonePlusPlus | package net.glowstone.block;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
import net.glowstone.block.blocktype.BlockAnvil;
import net.glowstone.block.blocktype.BlockBanner;
import net.glowstone.block.blocktype.BlockBeacon;
import net.glowstone.block.blocktype.BlockBed;
import net.glowstone... | src/main/java/net/glowstone/block/ItemTable.java | package net.glowstone.block;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
import net.glowstone.block.blocktype.BlockAnvil;
import net.glowstone.block.blocktype.BlockBanner;
import net.glowstone.block.blocktype.BlockBeacon;
import net.glowstone.block.blocktype.BlockBed;
import net.glowstone... | Fix CheckStyle issues in block/ItemTable.java (#680)
| src/main/java/net/glowstone/block/ItemTable.java | Fix CheckStyle issues in block/ItemTable.java (#680) | <ide><path>rc/main/java/net/glowstone/block/ItemTable.java
<ide> reg(Material.DIODE_BLOCK_ON, new BlockRedstoneRepeater());
<ide> reg(Material.DIODE_BLOCK_OFF, new BlockRedstoneRepeater());
<ide> reg(Material.MAGMA, new BlockMagma());
<del> reg(Material.NETHER_WART_BLOCK, new BlockDirectD... | |
Java | apache-2.0 | fab4ab6153a033ed3eee17fa962e2b94a4015cf7 | 0 | hdost/gerrit,gcoders/gerrit,dwhipstock/gerrit,jackminicloud/test,WANdisco/gerrit,pkdevbox/gerrit,netroby/gerrit,renchaorevee/gerrit,midnightradio/gerrit,Saulis/gerrit,thinkernel/gerrit,gcoders/gerrit,Distrotech/gerrit,hdost/gerrit,gerrit-review/gerrit,joshuawilson/merrit,pkdevbox/gerrit,MerritCR/merrit,WANdisco/gerrit,... | // Copyright (C) 2011 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | gerrit-server/src/main/java/com/google/gerrit/server/schema/Schema_57.java | // Copyright (C) 2011 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Migration v57 setInt parameter trivial fix
The first parameter for setInt in sql API starts from 1.
See: http://docs.oracle.com/javase/6/docs/api/java/sql/PreparedStatement.html#setInt(int,int)
Change-Id: I725e9ea30e78a5b0adaa1b3b58bf30e02cd3d759
| gerrit-server/src/main/java/com/google/gerrit/server/schema/Schema_57.java | Migration v57 setInt parameter trivial fix | <ide><path>errit-server/src/main/java/com/google/gerrit/server/schema/Schema_57.java
<ide> }
<ide>
<ide> AccountGroup batch = db.accountGroups().get(sc.batchUsersGroupId);
<del> stmt.setInt(0, sc.batchUsersGroupId.get());
<add> stmt.setInt(1, sc.batchUsersGroupId.get());
<ide> if ... | |
Java | apache-2.0 | a5a898a06bf1e538c8cc8cf3924294a9e085c042 | 0 | spring-cloud/spring-cloud-sleuth,spring-cloud/spring-cloud-sleuth,spring-cloud/spring-cloud-sleuth,marcingrzejszczak/spring-cloud-sleuth,marcingrzejszczak/spring-cloud-sleuth,spring-cloud/spring-cloud-sleuth,spring-cloud/spring-cloud-sleuth,marcingrzejszczak/spring-cloud-sleuth,marcingrzejszczak/spring-cloud-sleuth | /*
* Copyright 2013-2016 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... | spring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/trace/CustomLoggerTests.java | /*
* Copyright 2013-2016 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... | Trying to fix flickering tests
| spring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/trace/CustomLoggerTests.java | Trying to fix flickering tests | <ide><path>pring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/trace/CustomLoggerTests.java
<ide>
<ide> package org.springframework.cloud.sleuth.trace;
<ide>
<add>import org.apache.commons.logging.Log;
<add>import org.apache.commons.logging.LogFactory;
<add>import org.junit.Test;
<add>import org.sp... | |
Java | apache-2.0 | d389b8539d7dbb05410b7fc36c0f3a919f8240d9 | 0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | python/src/com/jetbrains/python/packaging/PyPackageManagersImpl.java | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Removed unnecessary Map.containsKey() before remove()
| python/src/com/jetbrains/python/packaging/PyPackageManagersImpl.java | Removed unnecessary Map.containsKey() before remove() | <ide><path>ython/src/com/jetbrains/python/packaging/PyPackageManagersImpl.java
<ide> @Override
<ide> public void clearCache(@NotNull Sdk sdk) {
<ide> final String key = PythonSdkType.getSdkKey(sdk);
<del> if (myInstances.containsKey(key)) {
<del> myInstances.remove(key);
<del> }
<add> myInstances.... | |
Java | mit | 34dadfacdf46931f1b63019ff958cd9f22edd1cb | 0 | andresdominguez/ng-sort | package com.andresdominguez.ngsort;
import com.google.common.collect.Lists;
import com.intellij.lang.javascript.psi.JSParameterList;
import com.intellij.lang.javascript.psi.JSProperty;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi... | src/com/andresdominguez/ngsort/SortArgsAction.java | package com.andresdominguez.ngsort;
import com.google.common.collect.Lists;
import com.intellij.lang.javascript.psi.JSParameterList;
import com.intellij.lang.javascript.psi.JSProperty;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi... | remove unused
| src/com/andresdominguez/ngsort/SortArgsAction.java | remove unused | <ide><path>rc/com/andresdominguez/ngsort/SortArgsAction.java
<ide> import org.jetbrains.annotations.NotNull;
<ide> import org.jetbrains.annotations.Nullable;
<ide>
<del>import java.util.ArrayList;
<ide> import java.util.Collection;
<ide> import java.util.Collections;
<ide> import java.util.List; | |
Java | mit | bec0da201f8d2800e39c13e7f7b50842dcd8a409 | 0 | jonafanho/Minecraft-Transit-Railway,jonafanho/Minecraft-Transit-Railway,jonafanho/Minecraft-Transit-Railway | package mtr.screen;
import com.mojang.blaze3d.vertex.PoseStack;
import mtr.client.ClientData;
import mtr.client.IDrawing;
import mtr.data.*;
import mtr.mappings.UtilitiesClient;
import mtr.packet.PacketTrainDataGuiClient;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.components.Button;
import ... | common/src/main/java/mtr/screen/EditDepotScreen.java | package mtr.screen;
import com.mojang.blaze3d.vertex.PoseStack;
import mtr.client.ClientData;
import mtr.client.IDrawing;
import mtr.data.*;
import mtr.mappings.UtilitiesClient;
import mtr.packet.PacketTrainDataGuiClient;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.components.Button;
import ... | Fixed depot screen not catching null stations
| common/src/main/java/mtr/screen/EditDepotScreen.java | Fixed depot screen not catching null stations | <ide><path>ommon/src/main/java/mtr/screen/EditDepotScreen.java
<ide>
<ide> if (successfulSegments == 1) {
<ide> RailwayData.useRoutesAndStationsFromIndex(0, data.routeIds, ClientData.DATA_CACHE, (currentStationIndex, thisRoute, nextRoute, thisStation, nextStation, lastStation) -> {
<del> stationNames.add(IG... | |
Java | mit | c49d042d056c2488a8628806f16602faf7d340af | 0 | TeamWizardry/TMT-Refraction | package com.teamwizardry.refraction.api.beam;
import com.teamwizardry.librarianlib.client.fx.particle.ParticleBuilder;
import com.teamwizardry.librarianlib.client.fx.particle.ParticleSpawner;
import com.teamwizardry.librarianlib.client.fx.particle.functions.InterpFadeInOut;
import com.teamwizardry.librarianlib.common.... | src/main/java/com/teamwizardry/refraction/api/beam/Beam.java | package com.teamwizardry.refraction.api.beam;
import com.teamwizardry.librarianlib.client.fx.particle.ParticleBuilder;
import com.teamwizardry.librarianlib.client.fx.particle.ParticleSpawner;
import com.teamwizardry.librarianlib.client.fx.particle.functions.InterpFadeInOut;
import com.teamwizardry.librarianlib.common.... | adjust sparkle numbers
| src/main/java/com/teamwizardry/refraction/api/beam/Beam.java | adjust sparkle numbers | <ide><path>rc/main/java/com/teamwizardry/refraction/api/beam/Beam.java
<ide> import java.util.UUID;
<ide> import java.util.concurrent.ThreadLocalRandom;
<ide>
<add>// TODO: make sparkles configurable + whether to spawn them at the end or beginning of a beam.
<ide> public class Beam implements INBTSerializable<NBTTagCo... | |
JavaScript | apache-2.0 | c7c8b2650c707e13bca790a1fcc2679e098ba883 | 0 | Goyatuzo/LurkerBot,Goyatuzo/LurkerBot | "use strict";
var fs = require('fs');
var mkdirp = require('mkdirp');
function _twoDigits(num) {
var s = num.toString();
return ("0" + s).slice(-2);
}
function _getCurrTimeString() {
var d = new Date();
var hours = _twoDigits(d.getHours());
var mins = _twoDigits(d.getMinutes());
var secs = ... | src/logger.js | "use strict";
var fs = require('fs');
var mkdirp = require('mkdirp');
function _twoDigits(num) {
var s = num.toString();
return ("0" + s).slice(-2);
}
function _getCurrTimeString() {
var d = new Date();
var hours = _twoDigits(d.getHours());
var mins = _twoDigits(d.getMinutes());
var secs = ... | More legible log file names.
| src/logger.js | More legible log file names. | <ide><path>rc/logger.js
<ide>
<ide> var curr = new Date();
<ide>
<del> var fileName = `${curr.getFullYear()}-${curr.getMonth()}-${curr.getDate()}-${curr.getHours()}-${curr.getMinutes()}-${curr.getSeconds()}`;
<add> var fileName = `${curr.getFullYear()}-${curr.getMonth()}-${curr.getDate()} ${curr... | |
Java | mit | c239f0253b8abb779612a179d6179cfd049b2600 | 0 | AllForFun/modpack,AllForFun/modpack | package com.allforfunmc.allforfuncore;
import java.util.ArrayList;
import java.util.Random;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;
impor... | src/main/java/com/allforfunmc/allforfuncore/Core.java | package com.allforfunmc.allforfuncore;
import java.util.ArrayList;
import java.util.Random;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;
impor... | It's Deprecated
| src/main/java/com/allforfunmc/allforfuncore/Core.java | It's Deprecated | <ide><path>rc/main/java/com/allforfunmc/allforfuncore/Core.java
<ide>
<ide> @Mod(modid = "AllForFunCore", name = "AllForFun's Modpack Core", version = "1")
<ide> public class Core {
<add> /**
<add> * @see Debug.Debug
<add> * @deprecated
<add> * Removing in ONE week
<add> */
<ide> @Deprecated
<ide> public static ... | |
Java | mit | dea9e8631e5b835904901b5c3fb44083bc9157c6 | 0 | begeekmyfriend/yasea,illuminoo/yasea,begeekmyfriend/yasea,begeekmyfriend/yasea,illuminoo/yasea,illuminoo/yasea,begeekmyfriend/yasea,begeekmyfriend/yasea,illuminoo/yasea,begeekmyfriend/yasea,illuminoo/yasea,illuminoo/yasea | app/src/main/java/com/seu/magicfilter/base/MagicCameraInputFilter.java | package com.seu.magicfilter.base;
import java.nio.FloatBuffer;
import android.opengl.GLES11Ext;
import android.opengl.GLES20;
import net.ossrs.yasea.R;
import com.seu.magicfilter.base.gpuimage.GPUImageFilter;
import com.seu.magicfilter.utils.OpenGlUtils;
public class MagicCameraInputFilter extends GPUImageFilter{
... | Romove
Signed-off-by: Leo Ma <a53a317c6ef26cd024d51182ec568f98d2cd3f6e@gmail.com>
| app/src/main/java/com/seu/magicfilter/base/MagicCameraInputFilter.java | Romove | <ide><path>pp/src/main/java/com/seu/magicfilter/base/MagicCameraInputFilter.java
<del>package com.seu.magicfilter.base;
<del>
<del>import java.nio.FloatBuffer;
<del>
<del>import android.opengl.GLES11Ext;
<del>import android.opengl.GLES20;
<del>
<del>import net.ossrs.yasea.R;
<del>
<del>import com.seu.magicfilter.base.g... | ||
JavaScript | bsd-3-clause | 109c6f9044b8641cfd4008329940581a55be27da | 0 | CartoDB/Windshaft,CartoDB/Windshaft,CartoDB/Windshaft | var mapnik = require('@carto/mapnik');
var blend = mapnik.blend;
var Timer = require('../../stats/timer');
function ImageRenderer(imageBuffer, options) {
this.imageBuffer = imageBuffer;
this.options = options || {};
this.options.tileSize = this.options.tileSize || 256;
this.options.format = this.optio... | lib/windshaft/renderers/plain/image_renderer.js | var mapnik = require('@carto/mapnik');
var blend = mapnik.blend;
var Timer = require('../../stats/timer');
function ImageRenderer(imageBuffer, options) {
this.imageBuffer = imageBuffer;
this.options = options || {};
this.options.tileSize = this.options.tileSize || 256;
this.options.format = this.optio... | handle sync errors and extract getTilesFromImage from getTile function
| lib/windshaft/renderers/plain/image_renderer.js | handle sync errors and extract getTilesFromImage from getTile function | <ide><path>ib/windshaft/renderers/plain/image_renderer.js
<ide> timer.start('render');
<ide> timer.end('render');
<ide>
<del> var TILE_SIZE = this.options.tileSize;
<del>
<del> mapnik.Image.fromBytes(this.imageBuffer, (err, image) => {
<del> if (err) {
<del> return callback(err);
<del> ... | |
Java | mit | c9f750b602b208e1097aa820fd90c18336dc0cd5 | 0 | ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid | /*
* DirectedAcyclicWordGraph.java
*
* Copyright (C) 2017 [ A Legge Up ] <stephen@aleggeup.com>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.aleggeup.confagrid.words;
import java.util.ArrayDeque;
import java.util.Array... | src/main/java/com/aleggeup/confagrid/words/DirectedAcyclicWordGraph.java | /*
* DirectedAcyclicWordGraph.java
*
* Copyright (C) 2017 [ A Legge Up ] <stephen@aleggeup.com>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.aleggeup.confagrid.words;
import java.util.ArrayDeque;
import java.util.Array... | Group words based on adjacent words from an edge
| src/main/java/com/aleggeup/confagrid/words/DirectedAcyclicWordGraph.java | Group words based on adjacent words from an edge | <ide><path>rc/main/java/com/aleggeup/confagrid/words/DirectedAcyclicWordGraph.java
<ide> final Deque<Integer> queue = new ArrayDeque<>();
<ide> final Deque<Integer> order = new ArrayDeque<>();
<ide> final int[] indegreesDiff = new int[verticiesCount];
<add> final int[] groups = new int[ve... | |
Java | apache-2.0 | error: pathspec 'tests/src/main/java/io/atomix/protocols/raft/RaftFuzzTest.java' did not match any file(s) known to git
| 9ceac6ae666fcecc9760ad3ae1ddea5dbf1c2fcd | 1 | atomix/atomix,atomix/atomix,kuujo/copycat,kuujo/copycat | /*
* Copyright 2017-present Open Networking Laboratory
*
* 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 applicabl... | tests/src/main/java/io/atomix/protocols/raft/RaftFuzzTest.java | Add Raft fuzz test.
| tests/src/main/java/io/atomix/protocols/raft/RaftFuzzTest.java | Add Raft fuzz test. | <ide><path>ests/src/main/java/io/atomix/protocols/raft/RaftFuzzTest.java
<add>/*
<add> * Copyright 2017-present Open Networking Laboratory
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obtain a cop... | |
Java | mit | b966f43763a5af0e30d36734aae050cc9d26ca87 | 0 | sormuras/bach,sormuras/bach | import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.System.Logger.Level;
import java.math.BigInteger;
import... | src/Bach.java | import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.System.Logger.Level;
import java.math.BigInteger;
import... | Flip streaming mode
| src/Bach.java | Flip streaming mode | <ide><path>rc/Bach.java
<ide> ToolCall.of("jar").with("--version"),
<ide> ToolCall.of("javac").with("--version"),
<ide> ToolCall.of("javadoc").with("--version"))
<del> .sequential()
<add> .parallel()
<ide> .forEach(call -> run(call, true));
<ide>
<ide> Stre... | |
Java | epl-1.0 | ac7db0f484baf3062b049282cf9e567c7f79b69b | 0 | zsmartsystems/com.zsmartsystems.zigbee | /**
* Copyright (c) 2016-2019 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
pa... | com.zsmartsystems.zigbee/src/test/java/com/zsmartsystems/zigbee/ZigBeeNetworkManagerTest.java | /**
* Copyright (c) 2016-2019 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
pa... | Add shutdown test (#631)
Signed-off-by: Chris Jackson <711c73f64afdce07b7e38039a96d2224209e9a6c@cd-jackson.com> | com.zsmartsystems.zigbee/src/test/java/com/zsmartsystems/zigbee/ZigBeeNetworkManagerTest.java | Add shutdown test (#631) | <ide><path>om.zsmartsystems.zigbee/src/test/java/com/zsmartsystems/zigbee/ZigBeeNetworkManagerTest.java
<ide> */
<ide> package com.zsmartsystems.zigbee;
<ide>
<del>import static org.junit.Assert.*;
<add>import static org.junit.Assert.assertEquals;
<add>import static org.junit.Assert.assertFalse;
<add>import static or... | |
JavaScript | mit | b3c2c0bd38abeb28fe63b7a19923e9fe6852dd7e | 0 | appac/cornelius | let prune = function () {}
prune.prototype.searchResults = function (data) {
let resultsCount = data.search_player_all.queryResults.totalSize;
let prunedResults = [];
if (resultsCount > 1) {
let searchResults = data.search_player_all.queryResults.row;
for (let i = 0; i < searchResults.length; i++) {
let p... | utils/prune/index.js | let prune = function () {}
prune.prototype.searchResults = function (data) {
let resultsCount = data.search_player_all.queryResults.totalSize;
let prunedResults = [];
if (resultsCount > 1) {
let searchResults = data.search_player_all.queryResults.row;
searchResults.forEach(function (player) {
let prunedPla... | correct reference to prune.playerData within prune.searchData
switched forEach to regular for loop, to maintain context | utils/prune/index.js | correct reference to prune.playerData within prune.searchData | <ide><path>tils/prune/index.js
<ide> prune.prototype.searchResults = function (data) {
<ide> let resultsCount = data.search_player_all.queryResults.totalSize;
<ide> let prunedResults = [];
<del>
<add>
<ide> if (resultsCount > 1) {
<ide> let searchResults = data.search_player_all.queryResults.row;
<ide>
<del> se... | |
Java | mit | b46b6fce35becbed7eb4ba9ddd67aa29adf3069d | 0 | kaltsimon/Chasing-Pictures-front-end,kaltsimon/Chasing-Pictures-front-end,ChasingPictures/front-end,ChasingPictures/front-end,kaltsimon/Chasing-Pictures-front-end,ChasingPictures/front-end | package de.fu_berlin.cdv.chasingpictures.util;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.widget.Toast;
import xdroid.toaster.Toaster;
/**
* Class that prov... | ChasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/util/Utilities.java | package de.fu_berlin.cdv.chasingpictures.util;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.widget.Toast;
import xdroid.toaster.Toaster;
/**
* Class that prov... | Remove obsolete utility method
| ChasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/util/Utilities.java | Remove obsolete utility method | <ide><path>hasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/util/Utilities.java
<ide> message = args.length == 0 ? message : String.format(message, args);
<ide> Toaster.toast(message);
<ide> }
<del>
<del> /**
<del> * Displays a message to the user.
<del> *
<del> * @pa... | |
JavaScript | mit | c27279c047c303e47cc8dfba0d2f917b3084844c | 0 | Hanul/UPPERCASE.JS,Hanul/UJS,Hanul/UJS,Hanul/UPPERCASE.JS,Hanul/UJS,Hanul/UPPERCASE.JS | /*
* CPU clustering work.
*/
global.CPU_CLUSTERING = METHOD(function(m) {
'use strict';
var
//IMPORT: cluster
cluster = require('cluster'),
// cpu count
cpuCount = require('os').cpus().length,
// worker id
workerId = 1,
// get worker id.
getWorkerId;
cluster.schedulingPolicy = cluster.SCHED_RR;
m.... | SRC/NODE/CLUSTERING/CPU_CLUSTERING.js | /*
* CPU clustering work.
*/
global.CPU_CLUSTERING = METHOD(function(m) {
'use strict';
var
//IMPORT: cluster
cluster = require('cluster'),
// cpu count
cpuCount = require('os').cpus().length,
// worker id
workerId = 1,
// get worker id.
getWorkerId;
cluster.schedulingPolicy = cluster.SCHED_RR;
m.... | no message
| SRC/NODE/CLUSTERING/CPU_CLUSTERING.js | no message | <ide><path>RC/NODE/CLUSTERING/CPU_CLUSTERING.js
<ide> // broadcast.
<ide> broadcast,
<ide>
<del> // get all shared store storages.
<del> getAllSharedStoreStorages,
<del>
<del> // get all shared db storages.
<del> getAllSharedDBStorages,
<del>
<ide> // get pids.
<ide> ... | |
Java | apache-2.0 | f2690cbcff59b0b6aadd9f759ba6047db8f219ef | 0 | SacredScriptureFoundation/sacredscripture | /*
* Copyright (c) 2014 Sacred Scripture Foundation.
* "All scripture is given by inspiration of God, and is profitable for
* doctrine, for reproof, for correction, for instruction in righteousness:
* That the man of God may be perfect, throughly furnished unto all good
* works." (2 Tim 3:16-17)
*
* Licen... | batch/batch-ejb/src/main/java/org/sacredscripture/platform/impl/bible/batch/LoadCanonBatchlet.java | /*
* Copyright (c) 2014 Sacred Scripture Foundation.
* "All scripture is given by inspiration of God, and is profitable for
* doctrine, for reproof, for correction, for instruction in righteousness:
* That the man of God may be perfect, throughly furnished unto all good
* works." (2 Tim 3:16-17)
*
* Licen... | Add javadoc | batch/batch-ejb/src/main/java/org/sacredscripture/platform/impl/bible/batch/LoadCanonBatchlet.java | Add javadoc | <ide><path>atch/batch-ejb/src/main/java/org/sacredscripture/platform/impl/bible/batch/LoadCanonBatchlet.java
<ide> import org.apache.log4j.LogManager;
<ide> import org.apache.log4j.Logger;
<ide>
<add>/**
<add> * This class is the batchlet that populates the canon from XML.
<add> *
<add> * @author Paul Benedict
<add> *... | |
Java | agpl-3.0 | f54c360c2697b2b6307f962333a8f9313a74f3bf | 0 | battlecode/battlecode-server,battlecode/battlecode-server | package battlecode.analysis;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.*;
import java.util.zip.GZIPInputStream;
import javax.swing.JFileChooser;
import org.apache.commons.cli.CommandLine;
import org... | src/main/battlecode/analysis/AwesomenessAnalyzer.java | package battlecode.analysis;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.*;
import java.util.zip.GZIPInputStream;
import javax.swing.JFileChooser;
import org.apache.commons.cli.CommandLine;
import org... | fixed awesomeness analyzer
| src/main/battlecode/analysis/AwesomenessAnalyzer.java | fixed awesomeness analyzer | <ide><path>rc/main/battlecode/analysis/AwesomenessAnalyzer.java
<ide> }
<ide>
<ide> MapLocation loc = s.getLoc();
<del> r = new RobotStat(loc,s.getType());
<del> robots.put(s.getRobotID(), r);
<del> events.add(new Event(SPAWN_AWESOMENESS*r.robotAwesomeness, loc));
<add> if (loc != null) {
<ad... | |
Java | apache-2.0 | 62904e89d07e167670dfc272421452cdc3974679 | 0 | tuijldert/jitsi,HelioGuilherme66/jitsi,ibauersachs/jitsi,jibaro/jitsi,gpolitis/jitsi,bebo/jitsi,bebo/jitsi,martin7890/jitsi,damencho/jitsi,ringdna/jitsi,pplatek/jitsi,jitsi/jitsi,marclaporte/jitsi,dkcreinoso/jitsi,dkcreinoso/jitsi,damencho/jitsi,jibaro/jitsi,level7systems/jitsi,pplatek/jitsi,ringdna/jitsi,level7systems... | /*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media;
import java.net.*;
import java.util.*;
import javax.sdp.*;
import javax.media.Time;
import net.java.sip.communic... | src/net/java/sip/communicator/impl/media/MediaServiceImpl.java | /*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media;
import java.net.*;
import java.util.*;
import javax.sdp.*;
import javax.media.Time;
import net.java.sip.communic... | Fixing a memory leak in the media package (Report and fix thereof by Michael Koch)
| src/net/java/sip/communicator/impl/media/MediaServiceImpl.java | Fixing a memory leak in the media package (Report and fix thereof by Michael Koch) | <ide><path>rc/net/java/sip/communicator/impl/media/MediaServiceImpl.java
<ide> CallSessionImpl callSession = new CallSessionImpl(
<ide> call, this, (URL)callDataSinkMappings.get(call));
<ide>
<del> activeCallSessions.put(call, callSession);
<del>
<add> // commented out because it ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.