lang stringclasses 2
values | license stringclasses 13
values | stderr stringlengths 0 343 | commit stringlengths 40 40 | returncode int64 0 128 | repos stringlengths 6 87.7k | new_contents stringlengths 0 6.23M | new_file stringlengths 3 311 | old_contents stringlengths 0 6.23M | message stringlengths 6 9.1k | old_file stringlengths 3 311 | subject stringlengths 0 4k | git_diff stringlengths 0 6.31M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
JavaScript | mit | 067de245d5a27cd78438b7485b3f964680ea0e9e | 0 | NRGI/rp-org-frontend,NRGI/rp-org-frontend | ////////////////
//LINK SCHEMA///
////////////////
'use strict';
var mongoose = require('mongoose');
require('mongoose-html-2').loadType(mongoose);
var linkSchema, Link,
deepPopulate = require('mongoose-deep-populate')(mongoose),
Schema = mongoose.Schema,
ObjectId = Schema.Types.ObjectId... | server/models/Links.js | ////////////////
//LINK SCHEMA///
////////////////
'use strict';
var mongoose = require('mongoose');
require('mongoose-html-2').loadType(mongoose);
var linkSchema, Link,
deepPopulate = require('mongoose-deep-populate')(mongoose),
Schema = mongoose.Schema,
ObjectId = Schema.Types.ObjectId... | SAVEPOINT
| server/models/Links.js | SAVEPOINT | <ide><path>erver/models/Links.js
<ide> transfer: {type: ObjectId, ref: 'Transfer'},
<ide> production: {type: ObjectId, ref: 'Production'},
<ide> source: {type: ObjectId, ref: 'Source'},
<del> production: {type: ObjectId, ref: 'Production'},
<ide> entities: [{ //linked entity
<ide> type: Strin... | |
Java | apache-2.0 | 2815e1689f1fbe4d813eef731f1d115777a1ad9a | 0 | MaxRau/CoffeeMud,oriontribunal/CoffeeMud,Tycheo/coffeemud,oriontribunal/CoffeeMud,sfunk1x/CoffeeMud,MaxRau/CoffeeMud,oriontribunal/CoffeeMud,Tycheo/coffeemud,sfunk1x/CoffeeMud,sfunk1x/CoffeeMud,MaxRau/CoffeeMud,bozimmerman/CoffeeMud,bozimmerman/CoffeeMud,MaxRau/CoffeeMud,bozimmerman/CoffeeMud,Tycheo/coffeemud,oriontrib... | package com.planet_ink.coffee_mud.Abilities.Spells;
import com.planet_ink.coffee_mud.interfaces.*;
import com.planet_ink.coffee_mud.common.*;
import com.planet_ink.coffee_mud.utils.*;
import java.util.*;
public class Spell_Frailty extends Spell
{
public String ID() { return "Spell_Frailty"; }
public Strin... | com/planet_ink/coffee_mud/Abilities/Spells/Spell_Frailty.java | package com.planet_ink.coffee_mud.Abilities.Spells;
import com.planet_ink.coffee_mud.interfaces.*;
import com.planet_ink.coffee_mud.common.*;
import com.planet_ink.coffee_mud.utils.*;
import java.util.*;
public class Spell_Frailty extends Spell
{
public String ID() { return "Spell_Frailty"; }
public Strin... |
git-svn-id: svn://192.168.1.10/public/CoffeeMud@3299 0d6f1817-ed0e-0410-87c9-987e46238f29
| com/planet_ink/coffee_mud/Abilities/Spells/Spell_Frailty.java | <ide><path>om/planet_ink/coffee_mud/Abilities/Spells/Spell_Frailty.java
<ide> MOB mob=(MOB)affected;
<ide> if((affect.amITarget(mob))&&(Util.bset(affect.targetCode(),Affect.MASK_HURT)))
<ide> {
<del> int recovery=(int)Math.round(Util.mul((affect.targetCode()-Affect.MASK_HURT),2.0));
<add> int recovery=(int)Ma... | ||
Java | apache-2.0 | e59323550b0f57d18b2d9292bf62ab6032555aaa | 0 | vaadin/teleport | package com.drone;
import static com.drone.ReaderUtils.getUInt32;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
impor... | backend/src/main/java/com/drone/DroneTemplate2.java | package com.drone;
import com.drone.command.ConfigCommand;
import com.drone.command.ControlCommand;
import com.drone.command.DroneCommand;
import com.drone.command.ResetWatchdogCommand;
import org.slf4j.Logger;
import org.springframework.context.Lifecycle;
import org.springframework.core.task.TaskExecutor;
import org.... | reformat
| backend/src/main/java/com/drone/DroneTemplate2.java | reformat | <ide><path>ackend/src/main/java/com/drone/DroneTemplate2.java
<ide> package com.drone;
<ide>
<del>import com.drone.command.ConfigCommand;
<del>import com.drone.command.ControlCommand;
<del>import com.drone.command.DroneCommand;
<del>import com.drone.command.ResetWatchdogCommand;
<del>import org.slf4j.Logger;
<del>impo... | |
JavaScript | apache-2.0 | e9937cc5892d89ec74c9a6e5bd106f39de1fe1ad | 0 | emepyc/tnt,tntvis/tnt | var epeek = function() {
"use strict";
// Default species and genome location
// TODO: Encapsulate this information in an object
var gene; // undefined
var ensGene; // undefined
var species = "human";
var chr = 7;
var fromPos = 139424940;
var toPos = 141784100;
var chr_length; ... | lib/ePeek.js | var epeek = function() {
"use strict";
// Default species and genome location
// TODO: Encapsulate this information in an object
var gene; // undefined
var ensGene; // undefined
var species = "human";
var chr = 7;
var fromPos = 139424940;
var toPos = 141784100;
var chr_length; ... | bugfix: working with mixed button-based and mouse-based panning/zooming
| lib/ePeek.js | bugfix: working with mixed button-based and mouse-based panning/zooming | <ide><path>ib/ePeek.js
<ide>
<ide> var currDomain = [curr_start, curr_end];
<ide> xScale.domain(currDomain);
<del> zoom();
<add> zoom(xScale);
<ide> x+=0.02;
<ide> return x>1;
<ide> });
<ide> }
<ide> };
<ide>
<del> var zoom = function () {
<add> var zoom = function (new_xScale)... | |
Java | apache-2.0 | b1accb4e42e528696dbc6be47e7f3d38df5636bc | 0 | ewestfal/rice,rojlarge/rice-kc,shahess/rice,rojlarge/rice-kc,shahess/rice,jwillia/kc-rice1,gathreya/rice-kc,kuali/kc-rice,bsmith83/rice-1,bhutchinson/rice,bsmith83/rice-1,bhutchinson/rice,cniesen/rice,cniesen/rice,jwillia/kc-rice1,bhutchinson/rice,geothomasp/kualico-rice-kc,UniversityOfHawaiiORS/rice,smith750/rice,bhut... | /*
* Copyright 2007 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by applica... | impl/src/main/java/org/kuali/rice/kew/engine/node/RoleNode.java | /*
* Copyright 2007 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by applica... | KFSMI-3445 : added priority to parallel routing grouping so that only one level would be routed to at the same time
| impl/src/main/java/org/kuali/rice/kew/engine/node/RoleNode.java | KFSMI-3445 : added priority to parallel routing grouping so that only one level would be routed to at the same time | <ide><path>mpl/src/main/java/org/kuali/rice/kew/engine/node/RoleNode.java
<ide> boolean isParallel = KEWConstants.ROUTE_LEVEL_PARALLEL.equals( activationType );
<ide> boolean requestActivated = false;
<ide> String groupToActivate = null;
<add> Integer priorityToActivate = null;
<ide> for ( ActionRequestValue r... | |
Java | apache-2.0 | 6f293f15845248d6d14436d5e957d71c23cd3cd3 | 0 | ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma,ppavlidis/Gemma | /*
* The Gemma project
*
* Copyright (c) 2008 University of British Columbia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... | gemma-web/src/main/java/ubic/gemma/web/controller/expression/experiment/DEDVController.java | /*
* The Gemma project
*
* Copyright (c) 2008 University of British Columbia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... | fix for 3554 - temporary.
| gemma-web/src/main/java/ubic/gemma/web/controller/expression/experiment/DEDVController.java | fix for 3554 - temporary. | <ide><path>emma-web/src/main/java/ubic/gemma/web/controller/expression/experiment/DEDVController.java
<ide>
<ide> layouts = experimentalDesignVisualizationService.sortVectorDataByDesign( dedvs );
<ide>
<del> layouts = experimentalDesignVisualizationService.sortLayoutSamplesByFactor( layouts );
<add> ... | |
Java | mit | 02f073424a1920b7e6b6f5a7ac26a996fc9ca204 | 0 | yukung/playground,yukung/playground,yukung/playground,yukung/playground | package org.yukung.sandbox.http;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
/**
* @author yukung
*/
public class Main {
public static void main(String[] args) throws IOException {
System.out.println("... | another-simple-server/src/main/java/org/yukung/sandbox/http/Main.java | package org.yukung.sandbox.http;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
/**
* @author yukung
*/
public class Main {
public static void main(String[] args) throws IOException {
System.out.println("... | Acquire the message body.
| another-simple-server/src/main/java/org/yukung/sandbox/http/Main.java | Acquire the message body. | <ide><path>nother-simple-server/src/main/java/org/yukung/sandbox/http/Main.java
<ide> ) {
<ide> String line = br.readLine();
<ide> StringBuilder header = new StringBuilder();
<add> int contentLength = 0;
<ide>
<ide> while (line != null && !line.isEmpty()) {
<add> ... | |
Java | apache-2.0 | 2cf7cbc9b02585a3ffba38b3b3578753469921f3 | 0 | darranl/directory-server,lucastheisen/apache-directory-server,lucastheisen/apache-directory-server,apache/directory-server,drankye/directory-server,darranl/directory-server,drankye/directory-server,apache/directory-server | /*
* 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
* "Lic... | protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/controls/PagedSearchContext.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
* "Lic... | o Used an AtomicInteger for the cookie
o Compute the cookie to avoid collisions
git-svn-id: 90776817adfbd895fc5cfa90f675377e0a62e745@944944 13f79535-47bb-0310-9956-ffa450edef68
| protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/controls/PagedSearchContext.java | o Used an AtomicInteger for the cookie o Compute the cookie to avoid collisions | <ide><path>rotocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/controls/PagedSearchContext.java
<ide>
<ide> import java.util.HashSet;
<ide> import java.util.Set;
<add>import java.util.concurrent.atomic.AtomicInteger;
<ide>
<ide> import org.apache.directory.server.core.filtering.EntryFilteringCursor;
... | |
Java | agpl-3.0 | b1c8c4eaabf5b24bdde810622259ad9de23407a1 | 0 | dmontag/neo4j-enterprise,dmontag/neo4j-enterprise | /**
* Copyright (c) 2002-2011 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software F... | backup/src/test/java/org/neo4j/backup/TestBackup.java | /**
* Copyright (c) 2002-2011 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software F... | Enabled ignored test
| backup/src/test/java/org/neo4j/backup/TestBackup.java | Enabled ignored test | <ide><path>ackup/src/test/java/org/neo4j/backup/TestBackup.java
<ide>
<ide> import org.apache.commons.io.FileUtils;
<ide> import org.junit.Before;
<del>import org.junit.Ignore;
<ide> import org.junit.Test;
<ide> import org.neo4j.com.ComException;
<ide> import org.neo4j.graphdb.DynamicRelationshipType;
<ide> }
<ide... | |
Java | agpl-3.0 | c68ea3e9ab97e2c8e5897a32ecca55d5ec1b8c86 | 0 | otavanopisto/kunta-api-server,Metatavu/kunta-api-server,otavanopisto/kunta-api-server,Metatavu/kunta-api-server,Metatavu/kunta-api-server | package fi.otavanopisto.kuntaapi.server.rest;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import ... | src/main/java/fi/otavanopisto/kuntaapi/server/rest/OrganizationsApiImpl.java | package fi.otavanopisto.kuntaapi.server.rest;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import ... | Fixed issue that prevented http cache on tile image find endpoint | src/main/java/fi/otavanopisto/kuntaapi/server/rest/OrganizationsApiImpl.java | Fixed issue that prevented http cache on tile image find endpoint | <ide><path>rc/main/java/fi/otavanopisto/kuntaapi/server/rest/OrganizationsApiImpl.java
<ide> TileId tileId = toTileId(tileIdParam);
<ide> AttachmentId attachmentId = toAttachmentId(imageIdParam);
<ide>
<del> Response notModified = httpCacheController.getNotModified(request, tileId);
<add> Response no... | |
JavaScript | mit | c1899d9d8ed7971036e65a07576b3f98518f1fd1 | 0 | greyhwndz/hammer.js,mcanthony/hammer.js,runspired/hammer.js,meobyte/hammer.js,DominikMayrhofer/hammer.js,Anlim/hammer.js,r14r-work/fork_javascript_hammer.js,greyhwndz/hammer.js,DominikMayrhofer/hammer.js,longseespace/hammer.js,r14r-work/fork_javascript_hammer.js,angeliaz/hammer.js,pengfeiWang/hammer.js,fashionsun/hamme... | /*
* Hammer.JS
* version 0.6.2
* author: Eight Media
* https://github.com/EightMedia/hammer.js
* Licensed under the MIT license.
*/
function Hammer(element, options, undefined)
{
var self = this;
var defaults = {
// prevent the default event or not... might be buggy when false
prevent_def... | hammer.js | /*
* Hammer.JS
* version 0.6.2
* author: Eight Media
* https://github.com/EightMedia/hammer.js
* Licensed under the MIT license.
*/
function Hammer(element, options, undefined)
{
var self = this;
var defaults = {
// prevent the default event or not... might be buggy when false
prevent_def... | Corrected silly typo.
Changed "diraction" to "direction". | hammer.js | Corrected silly typo. | <ide><path>ammer.js
<ide> // holds the exact angle that has been moved
<ide> var _angle = 0;
<ide>
<del> // holds the diraction that has been moved
<add> // holds the direction that has been moved
<ide> var _direction = 0;
<ide>
<ide> // holds position movement for sliding | |
JavaScript | apache-2.0 | 0eeb7163e0a26d4197957e1d7011a0365b5324e2 | 0 | joefitzgerald/gometalinter-linter | 'use babel'
import {CompositeDisposable} from 'atom'
import os from 'os'
import path from 'path'
function capitalizeFirstLetter (str) {
if (!str) {
return str
}
return str.charAt(0).toUpperCase() + str.slice(1)
}
class GometalinterLinter {
constructor (goconfigFunc, gogetFunc) {
this.goget = gogetFun... | lib/linter.js | 'use babel'
import {CompositeDisposable} from 'atom'
import os from 'os'
import path from 'path'
function capitalizeFirstLetter (str) {
if (!str) {
return str
}
return str.charAt(0).toUpperCase() + str.slice(1)
}
class GometalinterLinter {
constructor (goconfigFunc, gogetFunc) {
this.goget = gogetFun... | Make notification dismissable
- Prevents the notification from disappearing prematurely, or remaining visible too long
| lib/linter.js | Make notification dismissable | <ide><path>ib/linter.js
<ide>
<ide> let args = ['--install']
<ide> let notification = atom.notifications.addInfo('gometalinter', {
<del> dismissable: false,
<add> dismissable: true,
<ide> icon: 'cloud-download',
<ide> description: 'Running `gometalinter --install` to install t... | |
Java | apache-2.0 | 6c649fa544d7ed592e273c23ecb9ee4b8d91a0c9 | 0 | operasoftware/operaprestodriver,operasoftware/operaprestodriver,operasoftware/operaprestodriver | package com.opera.core.systems;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import com.opera.core.systems.scope.protos.SystemInputProtos.ModifierPressed;
import com.opera.core.systems.scope.protos.SystemInputProtos.MouseInfo.MouseButton;
import com.opera.core.systems.settings.OperaDriverSe... | src/com/opera/core/systems/RunDriver.java | package com.opera.core.systems;
import org.openqa.selenium.By;
import org.openqa.selenium.NotFoundException;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;
import com.opera.core.systems.OperaDriver;
import com.opera.core.systems.OperaWebElement;
import com.opera.core.systems.sco... | Debug loop RunDriver
| src/com/opera/core/systems/RunDriver.java | Debug loop RunDriver | <ide><path>rc/com/opera/core/systems/RunDriver.java
<ide> package com.opera.core.systems;
<ide>
<del>import org.openqa.selenium.By;
<del>import org.openqa.selenium.NotFoundException;
<del>import org.openqa.selenium.WebDriverException;
<del>import org.openqa.selenium.WebElement;
<del>
<del>import com.opera.core.systems... | |
Java | mit | df7f3140c3b6402ac45bef5929c9b7e513ec1297 | 0 | vincentzhang96/VahrhedralBot | package co.phoenixlab.discord.api;
import co.phoenixlab.discord.api.entities.ReadyMessage;
import co.phoenixlab.discord.api.entities.Server;
import co.phoenixlab.discord.api.entities.User;
import com.google.gson.Gson;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake... | src/main/java/co/phoenixlab/discord/api/DiscordWebSocketClient.java | package co.phoenixlab.discord.api;
import co.phoenixlab.discord.api.entities.ReadyMessage;
import co.phoenixlab.discord.api.entities.Server;
import co.phoenixlab.discord.api.entities.User;
import com.google.gson.Gson;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake... | Stub message create event handler
| src/main/java/co/phoenixlab/discord/api/DiscordWebSocketClient.java | Stub message create event handler | <ide><path>rc/main/java/co/phoenixlab/discord/api/DiscordWebSocketClient.java
<ide> case "READY":
<ide> handleReadyMessage(data);
<ide> break;
<del>
<add> case "MESSAGE_CREATE":
<add> handleMessageCreate(data);
<add> ... | |
Java | apache-2.0 | 9c951b81a107ac61cb43119899343e932b420d34 | 0 | almende/dialog,almende/dialog,almende/dialog | package com.almende.dialog.adapter;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.ArrayList;
imp... | dialoghandler/src/main/java/com/almende/dialog/adapter/VoiceXMLRESTProxy.java | package com.almende.dialog.adapter;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.ArrayList;
imp... | update: fixed charging incoming redirection | dialoghandler/src/main/java/com/almende/dialog/adapter/VoiceXMLRESTProxy.java | update: fixed charging incoming redirection | <ide><path>ialoghandler/src/main/java/com/almende/dialog/adapter/VoiceXMLRESTProxy.java
<ide> session.setDirection( direction );
<ide> session.setRemoteAddress( remoteID );
<ide> session.setType( AdapterAgent.ADAPTER_TYPE_BROADSOFT );
<del> session.setPubKey( config.getPub... | |
Java | mit | 7e91e4e2119a34fb0630d096e27652810a39f1f4 | 0 | InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service | package org.innovateuk.ifs.nonifs.controller;
import org.innovateuk.ifs.BaseControllerMockMVCTest;
import org.innovateuk.ifs.competition.resource.CompetitionResource;
import org.innovateuk.ifs.nonifs.form.NonIfsDetailsForm;
import org.innovateuk.ifs.nonifs.formpopulator.NonIfsDetailsFormPopulator;
import org.innovateu... | ifs-web-service/ifs-competition-mgt-service/src/test/java/org/innovateuk/ifs/nonifs/controller/NonIfsCompetitionControllerTest.java | package org.innovateuk.ifs.nonifs.controller;
import org.innovateuk.ifs.BaseControllerMockMVCTest;
import org.innovateuk.ifs.competition.resource.CompetitionResource;
import org.innovateuk.ifs.nonifs.form.NonIfsDetailsForm;
import org.innovateuk.ifs.nonifs.formpopulator.NonIfsDetailsFormPopulator;
import org.innovateu... | INFUND-9087 - Fixes NonIfsCompetitionControllerTest
| ifs-web-service/ifs-competition-mgt-service/src/test/java/org/innovateuk/ifs/nonifs/controller/NonIfsCompetitionControllerTest.java | INFUND-9087 - Fixes NonIfsCompetitionControllerTest | <ide><path>fs-web-service/ifs-competition-mgt-service/src/test/java/org/innovateuk/ifs/nonifs/controller/NonIfsCompetitionControllerTest.java
<ide> mvcResult.getModelAndView().getModelMap(), "form"
<ide> );
<ide>
<del> assertEquals("Please enter a year between 2000 and 9999.", bindingRes... | |
Java | mit | 9548abb14f05e6e550ced0d4bfd17fca250da4ee | 0 | nvenky/excel-parser | package com.thoughtworks.excelparser.helper;
import com.thoughtworks.excelparser.exception.ExcelParsingException;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermod... | src/main/java/com/thoughtworks/excelparser/helper/HSSFHelper.java | package com.thoughtworks.excelparser.helper;
import com.thoughtworks.excelparser.exception.ExcelParsingException;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermod... | Remove incorrect javadoc
| src/main/java/com/thoughtworks/excelparser/helper/HSSFHelper.java | Remove incorrect javadoc | <ide><path>rc/main/java/com/thoughtworks/excelparser/helper/HSSFHelper.java
<ide>
<ide> /**
<ide> * Gets the value of date cell.
<del> *
<del> * @param cell TODO
<del> * @param sheetName Sheet Name
<del> * @param rowNumber the row number where the cell is placed.
<del> * @par... | |
Java | mit | 738a3cfb25dd5471d8130403e523be720078cd05 | 0 | 1234224576/Project_Exercis_Car,1234224576/Project_Exercis_Car,1234224576/Project_Exercis_Car | package simplerace;
public class MyController implements Controller, Constants {
public static final int CHANGE_COUNT = 5;
private SensorModel inputs;
private boolean backMode = true;//デフォルトはバック走行
private double reduceSpeedDistance = 0;
private boolean isMiss = false;
public void reset() {}
public in... | carrace/carrace/simplerace/MyController.java | package simplerace;
public class MyController implements Controller, Constants {
public static final int CHANGE_COUNT = 5;
private SensorModel inputs;
private boolean backMode = true;//デフォルトはバック走行
private double reduceSpeedDistance = 0;
private boolean isMiss = false;
public void reset() {}
public in... | no message
| carrace/carrace/simplerace/MyController.java | no message | <ide><path>arrace/carrace/simplerace/MyController.java
<ide>
<ide> /***
<ide> 次の旗を取得時の突入スピードを返す
<del> ***/
<add> ***///
<ide> private double calcSpeedWhenGetNextFlag(){
<ide> double idealSpeed = 0; //理想突入スピード
<ide> | |
Java | mit | 0f85373bb6655acd4097d30fa126de31b4f05cbf | 0 | dbayub/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,dbayub/SB_Elsinore_Server | package ca.strangebrew.recipe;
import java.util.ArrayList;
import java.util.Collections;
import com.sb.elsinore.BrewServer;
import org.json.simple.JSONObject;
/**
* $Id: Mash.java,v 1.37 2008/01/16 17:55:04 jimcdiver Exp $
* @author aavis
*
*/
public class Mash {
// set this:
private double maltWeightLbs;
pr... | src/main/java/ca/strangebrew/recipe/Mash.java | package ca.strangebrew.recipe;
import java.util.ArrayList;
import java.util.Collections;
import com.sb.elsinore.BrewServer;
import org.json.simple.JSONObject;
/**
* $Id: Mash.java,v 1.37 2008/01/16 17:55:04 jimcdiver Exp $
* @author aavis
*
*/
public class Mash {
// set this:
private double maltWeightLbs;
pr... | Remove commas in infusestep
| src/main/java/ca/strangebrew/recipe/Mash.java | Remove commas in infusestep | <ide><path>rc/main/java/ca/strangebrew/recipe/Mash.java
<ide> public void setInfuseTemp(String infuseTemp) {
<ide> String[] split = infuseTemp.trim().split(" ");
<ide> try {
<del> this.infuseTemp = Double.parseDouble(split[0].trim());
<add> this.infuseTemp =... | |
JavaScript | mit | 425afad7cf7bbe32334bae73821edac71aa845b9 | 0 | rumps/rump-server,rumps/server | 'use strict';
var browserSync = require('browser-sync');
var extend = require('extend');
var gulp = require('gulp');
var path = require('path');
var rump = require('rump');
gulp.task('rump:server', ['rump:watch'], function(callback) {
var options = rump.configs.browserSync;
var files = path.join(rump.configs.main... | gulp/server.js | 'use strict';
var browserSync = require('browser-sync');
var chalk = require('chalk');
var extend = require('extend');
var gulp = require('gulp');
var path = require('path');
var rump = require('rump');
gulp.task('rump:serve', ['rump:watch'], function(callback) {
var options = rump.configs.browserSync;
var files ... | Go back to rump:server
| gulp/server.js | Go back to rump:server | <ide><path>ulp/server.js
<ide> 'use strict';
<ide>
<ide> var browserSync = require('browser-sync');
<del>var chalk = require('chalk');
<ide> var extend = require('extend');
<ide> var gulp = require('gulp');
<ide> var path = require('path');
<ide> var rump = require('rump');
<ide>
<del>gulp.task('rump:serve', ['rump:w... | |
Java | apache-2.0 | 46de504996c97cefd595937930dabf1eef998376 | 0 | madanadit/alluxio,EvilMcJerkface/alluxio,Reidddddd/alluxio,Alluxio/alluxio,jswudi/alluxio,calvinjia/tachyon,PasaLab/tachyon,calvinjia/tachyon,maboelhassan/alluxio,Alluxio/alluxio,maboelhassan/alluxio,jsimsa/alluxio,uronce-cc/alluxio,wwjiang007/alluxio,Alluxio/alluxio,WilliamZapata/alluxio,Reidddddd/alluxio,calvinjia/ta... | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | core/client/src/main/java/alluxio/client/file/FileInStream.java | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | Always allocate buffer
| core/client/src/main/java/alluxio/client/file/FileInStream.java | Always allocate buffer | <ide><path>ore/client/src/main/java/alluxio/client/file/FileInStream.java
<ide> private long mStreamBlockId;
<ide>
<ide> /** The read buffer in file seek. This is used in {@link #readCurrentBlockToEnd()}. */
<del> private byte[] mSeekBuffer = null;
<add> private byte[] mSeekBuffer;
<ide>
<ide> /**
<ide> * ... | |
Java | apache-2.0 | 3a4c7c9c93dc537d1f33d252a2ac7f18e211334b | 0 | youprofit/netty,jongyeol/netty,netty/netty,JungMinu/netty,AchinthaReemal/netty,mcanthony/netty,KatsuraKKKK/netty,Squarespace/netty,jchambers/netty,netty/netty,sunbeansoft/netty,unei66/netty,hgl888/netty,blademainer/netty,ijuma/netty,nadeeshaan/netty,serioussam/netty,ioanbsu/netty,kjniemi/netty,altihou/netty,jenskordows... | /*
* Copyright 2013 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | common/src/main/java/io/netty/util/internal/RecyclableArrayList.java | /*
* Copyright 2013 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | Also dissallow null elements on set
| common/src/main/java/io/netty/util/internal/RecyclableArrayList.java | Also dissallow null elements on set | <ide><path>ommon/src/main/java/io/netty/util/internal/RecyclableArrayList.java
<ide> import java.util.RandomAccess;
<ide>
<ide> /**
<del> * A simple list that holds the output of a codec.
<add> * A simple list which is reyclable. This implementation does not allow {@code null} elements to be added.
<ide> */
<ide> pub... | |
Java | mit | 41fbd9229c96297ece12d65ebc21bdcd478f1b9a | 0 | madumlao/oxCore,GluuFederation/oxCore | /*
* oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/package org.xdi.service.metric;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
i... | oxService/src/main/java/org/xdi/service/metric/MetricService.java | /*
* oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/package org.xdi.service.metric;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
i... | Optimizee code | oxService/src/main/java/org/xdi/service/metric/MetricService.java | Optimizee code | <ide><path>xService/src/main/java/org/xdi/service/metric/MetricService.java
<ide>
<ide> Set<String> metricDns = new HashSet<String>();
<ide> boolean stopCondition = false;
<del> while (cal.getTime().before(endDate) || !stopCondition) {
<add> while (cal.getTime().before(endDate) && !stopCondition) {
<ide> Date... | |
Java | apache-2.0 | 3c2e70106c64fba7f5f3b6fa27c5cad845d5baa1 | 0 | gfx/Android-Orma,gfx/Android-Orma,gfx/Android-Orma,gfx/Android-Orma | /*
* Copyright (c) 2015 FUJI Goro (gfx).
*
* 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... | processor/src/main/java/com/github/gfx/android/orma/processor/SchemaWriter.java | /*
* Copyright (c) 2015 FUJI Goro (gfx).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | fix @Setter(name) for constructors
| processor/src/main/java/com/github/gfx/android/orma/processor/SchemaWriter.java | fix @Setter(name) for constructors | <ide><path>rocessor/src/main/java/com/github/gfx/android/orma/processor/SchemaWriter.java
<ide> builder.add(buildPopulateValuesIntoCursor(column -> CodeBlock.builder().add("model.").build()));
<ide> builder.addStatement("return model");
<ide> } else {
<add>
<ide> if (schema.g... | |
Java | apache-2.0 | ef830428989e0b31de7660e831dcff7ed5cc6b83 | 0 | francis-pouatcha/javaext.description | package org.adorsys.javaext.display;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Ret... | src/main/java/org/adorsys/javaext/display/Association.java | package org.adorsys.javaext.display;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Ret... | Imporving implementation of associationg
| src/main/java/org/adorsys/javaext/display/Association.java | Imporving implementation of associationg | <ide><path>rc/main/java/org/adorsys/javaext/display/Association.java
<ide> * by the referencing entity.
<ide> * @return
<ide> */
<del> public String[] fields();
<add> public String[] fields() default {};
<ide>
<ide> public SelectionMode selectionMode() default SelectionMode.FORWARD;
<ide> } | |
Java | bsd-3-clause | 5599cee9cecb27b42bb42d5e8e1cb3dd92b7c879 | 0 | asamgir/openspecimen,asamgir/openspecimen,krishagni/openspecimen,krishagni/openspecimen,asamgir/openspecimen,krishagni/openspecimen | import java.io.File;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.SQLException;
import java.util.Collection;
import java.util.Random;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
impor... | private_public_migrator/MaskUsingDEMetatdata.java | import java.io.File;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.SQLException;
import java.util.Collection;
import java.util.Random;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
impor... | changes for truncating report loader queue.
SVN-Revision: 11258
| private_public_migrator/MaskUsingDEMetatdata.java | changes for truncating report loader queue. | <ide><path>rivate_public_migrator/MaskUsingDEMetatdata.java
<ide> }
<ide> }
<ide>
<del> // hql String to update ParticipantMedicalIdentifier table
<del> String sqlString="delete from CATISSUE_PART_MEDICAL_ID";
<add> // sql String to update ParticipantMedicalIdentifier table
<add> ... | |
JavaScript | apache-2.0 | 6cab7718ca204e03ac33bb3d4938b4679505b6d4 | 0 | RoonLabs/node-roon-api,RoonLabs/node-roon-api | "use strict";
/**
Roon API.
* @class RoonApi
* @param {object} desc - Information about your extension. Used by Roon to display to the end user what is trying to access Roon.
* @param {string} desc.extension_id - A unique ID for this extension. Something like @com.your_company_or_... | lib.js | "use strict";
/**
Roon API.
* @class RoonApi
* @param {object} desc - Information about your extension. Used by Roon to display to the end user what is trying to access Roon.
* @param {string} desc.extension_id - A unique ID for this extension. Something like @com.your_company_or_... | dont call service handlers if this connection has no moo. this is just a failed connection; no possibility for subscriptions in progress here.
| lib.js | dont call service handlers if this connection has no moo. this is just a failed connection; no possibility for subscriptions in progress here. | <ide><path>ib.js
<ide> if (msg.props.service_id == "00720724-5143-4a9b-abac-0e50cba674bb" && msg.props.unique_id) {
<ide> if (this._sood_conns[msg.props.unique_id]) return;
<ide> this._sood_conns[msg.props.unique_id] = true;
<del> var trans = new Transport(msg.... | |
JavaScript | agpl-3.0 | 96d79f3d9a271c3fb22a2cd526f89dc171e7d265 | 0 | bewest/node-multienv,bewest/node-multienv,bewest/node-multienv |
var restify = require('restify');
var fs = require('fs');
var path = require('path');
var tmp = require('tmp');
var mv = require('mv');
var Readable = require('stream').Readable;
var bunyan = require('bunyan');
function createServer (opts) {
var cluster = opts.cluster;
var master = opts.create;
if (opts) {
... | server.js |
var restify = require('restify');
var fs = require('fs');
var path = require('path');
var tmp = require('tmp');
var mv = require('mv');
var bunyan = require('bunyan');
function createServer (opts) {
var cluster = opts.cluster;
var master = opts.create;
if (opts) {
opts.handleUpgrades = true;
}
var serve... | try to eliminate data loss using streams
Try to follow streams best practice.
| server.js | try to eliminate data loss using streams | <ide><path>erver.js
<ide> var path = require('path');
<ide> var tmp = require('tmp');
<ide> var mv = require('mv');
<add>var Readable = require('stream').Readable;
<ide> var bunyan = require('bunyan');
<ide>
<ide> function createServer (opts) {
<ide> env[req.params.field] = req.params[req.params.field] || req.body... | |
Java | apache-2.0 | 0296736cd5dff10981b8176b25c34745c56bb6e3 | 0 | Doloops/arondor-common-reflection,Doloops/arondor-common-reflection | /*
* Copyright 2013, Arondor
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | arondor-common-reflection-gwt/src/main/java/com/arondor/common/reflection/gwt/client/view/ImplementingClassView.java | /*
* Copyright 2013, Arondor
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | View shall handle when selected item is not part of the choices,
wouldn't it ? | arondor-common-reflection-gwt/src/main/java/com/arondor/common/reflection/gwt/client/view/ImplementingClassView.java | View shall handle when selected item is not part of the choices, wouldn't it ? | <ide><path>rondor-common-reflection-gwt/src/main/java/com/arondor/common/reflection/gwt/client/view/ImplementingClassView.java
<ide> private void doSelect(String className)
<ide> {
<ide> selectedClass = className;
<add> if (className == null)
<add> {
<add> return;
<add> }... | |
Java | apache-2.0 | 9b500d994a212d5ea585c26248163cafce0b1a64 | 0 | itfsw/mybatis-generator-plugin | /*
* Copyright (c) 2017.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | src/main/java/com/itfsw/mybatis/generator/plugins/ModelColumnPlugin.java | /*
* Copyright (c) 2017.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | 解决Model生成WithBLOBs类时,Column枚举在WithBLOBs类也应该存在的问题
| src/main/java/com/itfsw/mybatis/generator/plugins/ModelColumnPlugin.java | 解决Model生成WithBLOBs类时,Column枚举在WithBLOBs类也应该存在的问题 | <ide><path>rc/main/java/com/itfsw/mybatis/generator/plugins/ModelColumnPlugin.java
<ide> import org.mybatis.generator.api.dom.java.*;
<ide> import org.mybatis.generator.internal.util.JavaBeansUtil;
<ide>
<del>import java.util.List;
<del>
<ide> /**
<ide> * --------------------------------------------------------------... | |
Java | lgpl-2.1 | b1aa1fccaed18b52b8a2a58e1fe31e5eefec143e | 0 | dizzzz/exist,wolfgangmm/exist,kohsah/exist,jessealama/exist,eXist-db/exist,adamretter/exist,ambs/exist,patczar/exist,shabanovd/exist,windauer/exist,ljo/exist,RemiKoutcherawy/exist,wshager/exist,lcahlander/exist,eXist-db/exist,wolfgangmm/exist,MjAbuz/exist,jensopetersen/exist,patczar/exist,patczar/exist,MjAbuz/exist,sha... | /*
* eXist Open Source Native XML Database
* Copyright (C) 2001-04 Wolfgang M. Meier
* wolfgang@exist-db.org
* http://exist-db.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Fou... | src/org/exist/http/servlets/EXistServlet.java | /*
* eXist Open Source Native XML Database
* Copyright (C) 2001-04 Wolfgang M. Meier
* wolfgang@exist-db.org
* http://exist-db.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Fou... | Check if an XmldbPrincipal has been passed.
svn path=/trunk/eXist-1.0/; revision=299
| src/org/exist/http/servlets/EXistServlet.java | Check if an XmldbPrincipal has been passed. | <ide><path>rc/org/exist/http/servlets/EXistServlet.java
<ide> import java.io.OutputStream;
<ide> import java.io.Reader;
<ide> import java.io.StringWriter;
<add>import java.security.Principal;
<ide> import java.util.Enumeration;
<ide> import java.util.HashMap;
<ide> import java.util.Map;
<ide> import org.exist.security.... | |
Java | apache-2.0 | c4823c063abb65553d68ea25ac22af44d1ceb95d | 0 | shwenzhang/AndResGuard,shwenzhang/AndResGuard | /**
* Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com>
* Copyright 2016 sim sun <sunsj1231@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... | AndResGuard-core/src/main/java/com/tencent/mm/androlib/res/decoder/ARSCDecoder.java | /**
* Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com>
* Copyright 2016 sim sun <sunsj1231@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... | refactor(core): extract init resguard builder logic to seperated function
| AndResGuard-core/src/main/java/com/tencent/mm/androlib/res/decoder/ARSCDecoder.java | refactor(core): extract init resguard builder logic to seperated function | <ide><path>ndResGuard-core/src/main/java/com/tencent/mm/androlib/res/decoder/ARSCDecoder.java
<ide> import java.util.LinkedHashMap;
<ide> import java.util.List;
<ide> import java.util.Map;
<del>import java.util.Set;
<ide> import java.util.logging.Logger;
<ide> import java.util.regex.Pattern;
<ide>
<ide> private int[... | |
JavaScript | mit | 139111b2a565fca0a4dd21db9548ee2d005caf21 | 0 | pagarme/hermes | 'use strict';
angular.module('hermes', [])
.factory('HttpMultipartForm', function($rootScope, $q, $browser) {
return function(request) {
var defered = $q.defer();
var xhr = new XMLHttpRequest();
var form = new FormData();
var stringifyQS = function(obj) {
var result = '';
for(var key in obj) {
res... | src/hermes.js | 'use strict';
angular.module('hermes', [])
.factory('HttpMultipartForm', function($rootScope, $q, $browser) {
return function(request) {
var defered = $q.defer();
var xhr = new XMLHttpRequest();
var form = new FormData();
var stringifyQS = function(obj) {
var result = '';
for(var key in obj) {
res... | Fix url encoding.
| src/hermes.js | Fix url encoding. | <ide><path>rc/hermes.js
<ide>
<ide> var extraBody = '';
<ide>
<del> if (typeof request.data == 'string') {
<del> extraBody = request.data;
<del> } else {
<del> extraBody = stringifyQS(request.data);
<del> }
<add> // if (typeof request.data == 'string') {
<add> // extraBody = request.data;
<add> // } else... | |
JavaScript | mit | 7a52953bca5916e183a12c37c0a9e348204f3f7f | 0 | larsvers/tree-of-charts,larsvers/tree-of-charts,larsvers/tree-of-charts | /* dataindex js | v.7.0.4 | 1/7/15 | lv */
/* width of svg adjusted (to get the container as wide as possible w/o x-scrollbars) */
// utility ---------------------------------------------------------------------------------------------------------
var log = console.log.bind(console); // snippet log
var dir = console.... | search.js | /* dataindex js | v.7.0.4 | 1/7/15 | lv */
/* width of svg adjusted (to get the container as wide as possible w/o x-scrollbars) */
// utility ---------------------------------------------------------------------------------------------------------
var log = console.log.bind(console); // snippet log
var dir = console.... | Added listeners/handlers for report card image hover (js)
| search.js | Added listeners/handlers for report card image hover (js) | <ide><path>earch.js
<ide>
<ide> /* button-listeners and handlers */
<ide>
<add>
<add> // image hover shows picture in big
<add> d3.selectAll('img#graph').on('mouseover', function() {
<add>
<add> // get client width (the browser-safe way)
<add> var w = window.innerWidth || document.documentElement.cl... | |
Java | apache-2.0 | ee69561bc2cee85cab3ae934d50455537be4db72 | 0 | Exorath/EventsService | /*
* Copyright 2016 Exorath
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | src/main/java/com/exorathcloud/service/events/Main.java | /*
* Copyright 2016 Exorath
*
* 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... | Created psvm
| src/main/java/com/exorathcloud/service/events/Main.java | Created psvm | <ide><path>rc/main/java/com/exorathcloud/service/events/Main.java
<ide> */
<ide> package com.exorathcloud.service.events;
<ide>
<add>import com.exorath.service.commons.portProvider.PortProvider;
<add>import org.slf4j.Logger;
<add>import org.slf4j.LoggerFactory;
<add>
<ide> /**
<ide> * Created by Shortninja66 on 12/2... | |
Java | apache-2.0 | 81f84c0533ed172219cccbf41e25c38b9ec043a5 | 0 | diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless | /*
* Copyright 2016 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | plugin-gradle/src/main/java/com/diffplug/gradle/spotless/ScalaExtension.java | /*
* Copyright 2016 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | Fix typo referencing scala. (#580)
| plugin-gradle/src/main/java/com/diffplug/gradle/spotless/ScalaExtension.java | Fix typo referencing scala. (#580) | <ide><path>lugin-gradle/src/main/java/com/diffplug/gradle/spotless/ScalaExtension.java
<ide> }
<ide> }
<ide>
<del> /** If the user hasn't specified the files yet, we'll assume he/she means all of the kotlin files. */
<add> /** If the user hasn't specified the files yet, we'll assume he/she means all of the scala fi... | |
Java | apache-2.0 | dc83e98e96a611f6ed9320c43fb45c69cf3990ba | 0 | dianping/cat,JacksonSha/cat,xiaojiaqi/cat,ddviplinux/cat,xiaojiaqi/cat,howepeng/cat,unidal/cat,chinaboard/cat,cdljsj/cat,gspandy/cat,cdljsj/cat,xiaojiaqi/cat,itnihao/cat,dadarom/cat,wyzssw/cat,redbeans2015/cat,redbeans2015/cat,redbeans2015/cat,chqlb/cat,dianping/cat,michael8335/cat,redbeans2015/cat,michael8335/cat,chin... | package com.dianping.cat.report.task.alert.sender;
import java.util.List;
import com.dianping.cat.Cat;
public class WeixinSender extends BaseSender {
@Override
protected void sendLog(String title, String content, List<String> receivers) {
StringBuilder builder = new StringBuilder();
builder.append(title).appe... | cat-home/src/main/java/com/dianping/cat/report/task/alert/sender/WeixinSender.java | package com.dianping.cat.report.task.alert.sender;
import java.util.List;
import com.dianping.cat.Cat;
public class WeixinSender extends BaseSender {
@Override
protected void sendLog(String title, String content, List<String> receivers) {
StringBuilder builder = new StringBuilder();
builder.append(title).appe... | change Weixin contents format
| cat-home/src/main/java/com/dianping/cat/report/task/alert/sender/WeixinSender.java | change Weixin contents format | <ide><path>at-home/src/main/java/com/dianping/cat/report/task/alert/sender/WeixinSender.java
<ide> }
<ide>
<ide> try {
<add> content = content.replaceAll("<br/>", "\n");
<ide> m_mailSms.sendWeiXin(title, content, domain, mergeList(receivers));
<ide> sendLog(title, content, receivers);
<ide> return true; | |
Java | mit | 3f729d3a87cff4eadbd24249958bb854fa5054d8 | 0 | vishalkuo/philsTonight | package com.philstonight;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import android.supp... | PhilsTonight/app/src/main/java/com/philstonight/MainActivity.java | package com.philstonight;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import android.supp... | Phil's Tonight?
| PhilsTonight/app/src/main/java/com/philstonight/MainActivity.java | Phil's Tonight? | <ide><path>hilsTonight/app/src/main/java/com/philstonight/MainActivity.java
<ide> import android.telephony.SmsManager;
<ide> import android.view.Menu;
<ide> import android.view.MenuItem;
<add>import android.view.MotionEvent;
<ide> import android.view.View;
<ide> import android.widget.AdapterView;
<ide> import android.w... | |
Java | mit | a1d5ef428e696fa2cd8c3ea4ba834a73567f8db2 | 0 | 0xd4d/iced,0xd4d/iced,0xd4d/iced,0xd4d/iced,0xd4d/iced | // SPDX-License-Identifier: MIT
// Copyright (C) 2018-present iced project and contributors
package com.github.icedland.iced.x86.enc;
import com.github.icedland.iced.x86.Code;
import com.github.icedland.iced.x86.Instruction;
import com.github.icedland.iced.x86.MvexEHBit;
import com.github.icedland.iced.x86.MvexRegMem... | src/java/iced-x86/src/main/java/com/github/icedland/iced/x86/enc/InternalOpCodeHandlers.java | // SPDX-License-Identifier: MIT
// Copyright (C) 2018-present iced project and contributors
package com.github.icedland.iced.x86.enc;
import com.github.icedland.iced.x86.Code;
import com.github.icedland.iced.x86.Instruction;
import com.github.icedland.iced.x86.MvexEHBit;
import com.github.icedland.iced.x86.MvexRegMem... | Init `mandatoryPrefix` with correct values
| src/java/iced-x86/src/main/java/com/github/icedland/iced/x86/enc/InternalOpCodeHandlers.java | Init `mandatoryPrefix` with correct values | <ide><path>rc/java/iced-x86/src/main/java/com/github/icedland/iced/x86/enc/InternalOpCodeHandlers.java
<ide>
<ide> switch ((encFlags2 >>> EncFlags2.MANDATORY_PREFIX_SHIFT) & EncFlags2.MANDATORY_PREFIX_MASK) {
<ide> case MandatoryPrefixByte.NONE:
<del> mandatoryPrefix = MandatoryPrefixByte.NONE;
<add> manda... | |
Java | apache-2.0 | 35142424861cf26262abaed3d0aee63cf4a01ba4 | 0 | spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework | /*
* Copyright 2002-2013 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-web/src/main/java/org/springframework/http/converter/xml/SourceHttpMessageConverter.java | /*
* Copyright 2002-2013 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... | SourceHttpMessageConverter's supports implementation needs to check for StAXSource
Issue: SPR-11341
| spring-web/src/main/java/org/springframework/http/converter/xml/SourceHttpMessageConverter.java | SourceHttpMessageConverter's supports implementation needs to check for StAXSource | <ide><path>pring-web/src/main/java/org/springframework/http/converter/xml/SourceHttpMessageConverter.java
<ide> import java.io.IOException;
<ide> import java.io.InputStream;
<ide> import java.io.OutputStream;
<del>
<add>import java.util.HashSet;
<add>import java.util.Set;
<ide> import javax.xml.parsers.DocumentBuilder;... | |
Java | mit | d3ee3c9ae5750065f89b62bc21333392fbad0304 | 0 | Szewek/Minecraft-Flux,Szewek/Minecraft-Flux | package szewek.mcflux;
import org.apache.logging.log4j.Logger;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecra... | src/main/java/szewek/mcflux/MCFluxMod.java | package szewek.mcflux;
import org.apache.logging.log4j.Logger;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecra... | Fixed version check | src/main/java/szewek/mcflux/MCFluxMod.java | Fixed version check | <ide><path>rc/main/java/szewek/mcflux/MCFluxMod.java
<ide>
<ide> @Mod.EventHandler
<ide> public void preInit(FMLPreInitializationEvent e) {
<add> log = e.getModLog();
<add> if (R.MCFLUX_VERSION.charAt(0) == '@')
<add> log.warn("You are running Minecraft-Flux with an unknown version (development maybe?)");
<add>... | |
Java | mit | error: pathspec 'src/test/java/fr/lille1/maven_data_extraction/core/graph/MavenMultigraphLabeledTest.java' did not match any file(s) known to git
| 3f30ee5a8fb0e6cc4146ed9886721cb68ce46f36 | 1 | blckshrk/MavenDataExtraction,blckshrk/MavenDataExtraction | package fr.lille1.maven_data_extraction.core.graph;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import fr.lille1.maven_data_extraction.core.Project;
import fr.lille1.maven_data_ext... | src/test/java/fr/lille1/maven_data_extraction/core/graph/MavenMultigraphLabeledTest.java | Adding a 'graph' package in test/ to match with the apps structure
| src/test/java/fr/lille1/maven_data_extraction/core/graph/MavenMultigraphLabeledTest.java | Adding a 'graph' package in test/ to match with the apps structure | <ide><path>rc/test/java/fr/lille1/maven_data_extraction/core/graph/MavenMultigraphLabeledTest.java
<add>package fr.lille1.maven_data_extraction.core.graph;
<add>
<add>import static org.junit.Assert.assertEquals;
<add>import static org.junit.Assert.assertTrue;
<add>
<add>import java.io.File;
<add>import java.util.List;
... | |
Java | apache-2.0 | b47ba6494a4dcaf9b9abd6a8dac49f128099c9fb | 0 | cbeams-archive/spring-framework-2.5.x,cbeams-archive/spring-framework-2.5.x,cbeams-archive/spring-framework-2.5.x,cbeams-archive/spring-framework-2.5.x | /*
* The Spring Framework is published under the terms
* of the Apache Software License.
*/
package org.springframework.jndi;
import java.util.Properties;
import javax.naming.NamingException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.fa... | src/org/springframework/jndi/AbstractJndiLocator.java | /*
* The Spring Framework is published under the terms
* of the Apache Software License.
*/
package org.springframework.jndi;
import javax.naming.NamingException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.InitializingBean;
/**
... | added setJndiEnvironment
git-svn-id: b619a0c99665f88f1afe72824344cefe9a1c8c90@1753 fd5a2b45-1f63-4059-99e9-3c7cb7fd75c8
| src/org/springframework/jndi/AbstractJndiLocator.java | added setJndiEnvironment | <ide><path>rc/org/springframework/jndi/AbstractJndiLocator.java
<ide> */
<ide>
<ide> package org.springframework.jndi;
<add>
<add>import java.util.Properties;
<ide>
<ide> import javax.naming.NamingException;
<ide>
<ide> * this class (i.e. lazy load it instead).<p>
<ide> *
<ide> * @author Rod Johnson
<del> * @ve... | |
Java | mit | 96dd9e51f250fe58d61ee13de995cbe00e781364 | 0 | 4a2e532e/RealisticSwimming,ClassicTowny/RealisticSwimming | /*
Copyright (c) 2016-2017 4a2e532e
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, s... | src/realisticSwimming/NoCheatPlusListener.java | /*
Copyright (c) 2016-2017 4a2e532e
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, s... | Only cancel specific NCP checks
| src/realisticSwimming/NoCheatPlusListener.java | Only cancel specific NCP checks | <ide><path>rc/realisticSwimming/NoCheatPlusListener.java
<ide> if(!Config.noCheatPlusCompatibilityMode || APIUtils.needsSynchronization(checkType)){
<ide> return false;
<ide> }
<del> if(player.hasMetadata("swimming") || player.hasMetadata("falling")){
<add> if((checkType == Che... | |
JavaScript | agpl-3.0 | 7cb761c0cc20e21c9743282345edac296c1a5e64 | 0 | schul-cloud/schulcloud-server,schul-cloud/schulcloud-server,schul-cloud/schulcloud-server | const { expect } = require('chai');
const { makeStringRCConform } = require('../../../src/services/rocketChat/helpers');
describe('makeStringRCConform', () => {
it('replaces german umlaute', () => {
expect(makeStringRCConform('öÖüÜäÄß')).to.equal('oeOeueUeaeAess');
});
it('replaces spaces', () => {
expect(make... | test/services/rocketChat/helpers.test.js | const { expect } = require('chai');
const { makeStringRCConform } = require('../../../src/services/rocketChat/helpers');
describe.only('makeStringRCConform', () => {
it('replaces german umlaute', () => {
expect(makeStringRCConform('öÖüÜäÄß')).to.equal('oeOeueUeaeAess');
});
it('replaces spaces', () => {
expect... | remove.only
| test/services/rocketChat/helpers.test.js | remove.only | <ide><path>est/services/rocketChat/helpers.test.js
<ide> const { expect } = require('chai');
<ide> const { makeStringRCConform } = require('../../../src/services/rocketChat/helpers');
<ide>
<del>describe.only('makeStringRCConform', () => {
<add>describe('makeStringRCConform', () => {
<ide> it('replaces german umlaute... | |
JavaScript | mit | 27e7a1d2c0ddeaf08df796cbd35e4871854118b1 | 0 | pzw224/ui-grid,xiaojie123/ng-grid,edmondpr/ng-grid,ingshtrom/ui-grid,hahn-kev/ui-grid,Lukasz-Wisniewski/ui-grid,ppossanzini/ui-grid,alex87/ui-grid,Julius1985/ui-grid,kamikasky/ui-grid,PaulL1/ng-grid,reupen/ui-grid,AdverseEvents/ui-grid,cell-one/ui-grid,benoror/ui-grid,brucebetts/ui-grid,suryasingh/ng-grid,btesser/ng-gr... | (function() {
"use strict";
/* jasmine specs for services go here */
describe('Dom Utility Service', function () {
var $dUtils;
var $scope;
var $linker;
var $cache;
beforeEach(module('ngGrid'));
beforeEach(inject(function ($rootScope, $domUtilityService, $templateCache, $compile) {
$sc... | test/unit/servicesSpec.js | (function() {
"use strict";
/* jasmine specs for services go here */
describe('Dom Utility Service', function () {
var $dUtils;
var $scope;
var $linker;
var $cache;
beforeEach(module('ngGrid'));
beforeEach(inject(function ($rootScope, $domUtilityService, $templateCache, $compile) {
$sc... | fix tests
| test/unit/servicesSpec.js | fix tests | <ide><path>est/unit/servicesSpec.js
<ide>
<ide> it('should should find the correct elements and assign them in the grid properly', function () {
<ide> $dUtils.AssignGridContainers($scope, root, grid);
<del>
<add>
<ide> expect(grid.$root.is(".ngGrid")).toEqual(true);
<ide> ... | |
Java | apache-2.0 | 221fc83ec0053a228a762adbb088d55062cede9d | 0 | atcult/mod-cataloging,atcult/mod-cataloging,atcult/mod-cataloging | package org.folio.cataloging.dao;
import net.sf.hibernate.Hibernate;
import net.sf.hibernate.HibernateException;
import net.sf.hibernate.Session;
import net.sf.hibernate.type.Type;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.folio.cataloging.Global;
import o... | src/main/java/org/folio/cataloging/dao/DAOBibliographicCorrelation.java | package org.folio.cataloging.dao;
import net.sf.hibernate.Hibernate;
import net.sf.hibernate.HibernateException;
import net.sf.hibernate.Session;
import net.sf.hibernate.type.Type;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.folio.cataloging.Global;
import o... | MODCAT-2:Error for type
| src/main/java/org/folio/cataloging/dao/DAOBibliographicCorrelation.java | MODCAT-2:Error for type | <ide><path>rc/main/java/org/folio/cataloging/dao/DAOBibliographicCorrelation.java
<ide> item.setSequence(rs.getInt("TBL_SEQ_NBR"));
<ide> // item.setCode(rs.getShort("TYP_VLU_CDE"));
<ide> item.setCode(rs.getShort("FNCTN_VLU_CDE"));
<del> item.setObsoleteIndicator(rs.getString("TBL_VLU_OBSLT_IND").equals(... | |
Java | apache-2.0 | ed0b8565729388c36904245b6b6f6a4aae4b81db | 0 | Ks89/AndroidDataBinding_Examples | package it.stefanocappa.databindingexample;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import java.util... | app/src/main/java/it/stefanocappa/databindingexample/Tab2Fragment.java | package it.stefanocappa.databindingexample;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import java.util... | removed useless private field
| app/src/main/java/it/stefanocappa/databindingexample/Tab2Fragment.java | removed useless private field | <ide><path>pp/src/main/java/it/stefanocappa/databindingexample/Tab2Fragment.java
<ide> Button randomButton;
<ide>
<ide> private User2 user;
<del> private Tab2FragmentBinding binding;
<ide>
<ide> public static Tab2Fragment newInstance() {
<ide> return new Tab2Fragment();
<ide> ButterKnif... | |
Java | mit | error: pathspec 'software/CLO/src/java/ie/ucd/clops/runtime/options/ArgOption.java' did not match any file(s) known to git
| 447c0f71d62e3caab7d59bcc9fab4277375177ef | 1 | GaloisInc/CLOPS,GaloisInc/CLOPS,GaloisInc/CLOPS,GaloisInc/CLOPS,GaloisInc/CLOPS | package ie.ucd.clops.runtime.options;
import java.util.*;
import java.util.regex.*;
import ie.ucd.clops.runtime.parser.ProcessingResult;
/**
* This class represents an argument option.
* An option whose value is the string on which it matched.
*
* @author Mikolas Janota
*
*/
public class ArgOption implements ... | software/CLO/src/java/ie/ucd/clops/runtime/options/ArgOption.java | Adding an ArgOption class.
| software/CLO/src/java/ie/ucd/clops/runtime/options/ArgOption.java | Adding an ArgOption class. | <ide><path>oftware/CLO/src/java/ie/ucd/clops/runtime/options/ArgOption.java
<add>package ie.ucd.clops.runtime.options;
<add>
<add>import java.util.*;
<add>import java.util.regex.*;
<add>
<add>import ie.ucd.clops.runtime.parser.ProcessingResult;
<add>
<add>/**
<add> * This class represents an argument option.
<add> * A... | |
Java | apache-2.0 | 328bdbcd980d025bfbbc2bbf678bfb4067ff1cd0 | 0 | profesorfalken/jHardware | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | src/main/java/org/jutils/jhardware/info/memory/unix/UnixMemoryInfo.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | Close missing meminfo stream (Related #12)
| src/main/java/org/jutils/jhardware/info/memory/unix/UnixMemoryInfo.java | Close missing meminfo stream (Related #12) | <ide><path>rc/main/java/org/jutils/jhardware/info/memory/unix/UnixMemoryInfo.java
<ide> import java.util.HashMap;
<ide> import java.util.Map;
<ide> import java.util.stream.Stream;
<add>
<ide> import org.jutils.jhardware.info.memory.AbstractMemoryInfo;
<ide> import org.jutils.jhardware.util.HardwareInfoUtils;
<ide>
<id... | |
Java | apache-2.0 | aa2df403d3d8976a777b427a70213a39c8448f6c | 0 | superkonduktr/closure-compiler,superkonduktr/closure-compiler,GerHobbelt/closure-compiler,jimmytuc/closure-compiler,shantanusharma/closure-compiler,mprobst/closure-compiler,tdelmas/closure-compiler,mediogre/closure-compiler,rockyzh/closure-compiler,GerHobbelt/closure-compiler,mbrukman/closure-compiler,TomK/closure-comp... | /*
* Copyright 2004 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | src/com/google/javascript/jscomp/VarCheck.java | /*
* Copyright 2004 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | Use NodeUtil.isNameDeclaration instead of manual checks for var, const or let.
| src/com/google/javascript/jscomp/VarCheck.java | Use NodeUtil.isNameDeclaration instead of manual checks for var, const or let. | <ide><path>rc/com/google/javascript/jscomp/VarCheck.java
<ide> package com.google.javascript.jscomp;
<ide>
<ide> import com.google.common.base.Preconditions;
<del>import com.google.common.collect.ImmutableSet;
<ide> import com.google.javascript.jscomp.NodeTraversal.AbstractPostOrderCallback;
<ide> import com.google.ja... | |
JavaScript | mit | 11f1e7fba4858db958e99dfcc98d081e209b340d | 0 | schlotg/node-aws-deploy | /*///////////////////////////////////////////////////////////////////////////
For Best results use the an 'app-config.json' file. This File should be
located in the same directory as this file. If you choose not to use it
then your application must run out of the same directory as this file
and you entry point mus... | _start.js | /*///////////////////////////////////////////////////////////////////////////
For Best results use the an 'app-config.json' file. This File should be
located in the same directory as this file. If you choose not to use it
then your application must run out of the same directory as this file
and you entry point mus... | Fixed an issue with the pull args getting cleared out
| _start.js | Fixed an issue with the pull args getting cleared out | <ide><path>start.js
<ide> process.argv.push (arg);
<ide> });
<ide> }
<add> /*
<ide> var pullArgs = configData.pullArgs;
<ide> if (pullArgs){
<ide> if (cluster.isMaster){ // only output this info once
<ide> ... | |
Java | apache-2.0 | error: pathspec 'Chapter_005_Coll.Pro/List/src/main/java/ru/sbulygin/ReplicationLinkedList.java' did not match any file(s) known to git
| d9c452ce6872d3f284acc7513655625645ea1de5 | 1 | sergeyBulygin/Java_a_to_z | package ru.sbulygin;
import java.util.Iterator;
/**
* Class ReplicationArrayList.
*
* @author sbulygin.
* @since 30.05.2017.
* @version 1.0.
* @param <E> type.
*/
public class ReplicationLinkedList<E> implements SimpleContainer<E> {
/**
* Size of list.
*/
private int size = 0;
/**
... | Chapter_005_Coll.Pro/List/src/main/java/ru/sbulygin/ReplicationLinkedList.java | implementation ReplicationLinkedList #16
| Chapter_005_Coll.Pro/List/src/main/java/ru/sbulygin/ReplicationLinkedList.java | implementation ReplicationLinkedList #16 | <ide><path>hapter_005_Coll.Pro/List/src/main/java/ru/sbulygin/ReplicationLinkedList.java
<add>package ru.sbulygin;
<add>
<add>import java.util.Iterator;
<add>
<add>/**
<add> * Class ReplicationArrayList.
<add> *
<add> * @author sbulygin.
<add> * @since 30.05.2017.
<add> * @version 1.0.
<add> * @param <E> type.
<add> */... | |
JavaScript | mit | 07863174af205f17961f3d45d78ebef6c7dae315 | 0 | globexdesigns/react-dnd,nagaozen/react-dnd,RallySoftware/react-dnd,wagonhq/react-dnd,colbyr/react-dnd,cesarandreu/react-dnd,Reggino/react-dnd,tomulin1/react-dnd,konce/react-dnd,tylercollier/react-dnd-demo,gaearon/react-dnd,prometheusresearch/react-dnd,gaearon/react-dnd,globexdesigns/react-dnd,jgable/react-dnd,jgable/re... | 'use strict';
var DragDropActionCreators = require('../actions/DragDropActionCreators'),
NativeDragItemTypes = require('../constants/NativeDragItemTypes'),
DropEffects = require('../constants/DropEffects'),
EnterLeaveMonitor = require('../utils/EnterLeaveMonitor'),
isFileDragDropEvent = require('./isFi... | modules/utils/NativeDragDropSupport.js | 'use strict';
var DragDropActionCreators = require('../actions/DragDropActionCreators'),
NativeDragItemTypes = require('../constants/NativeDragItemTypes'),
DropEffects = require('../constants/DropEffects'),
EnterLeaveMonitor = require('../utils/EnterLeaveMonitor'),
isFileDragDropEvent = require('./isFi... | Use mouse events to unambiguously know that dragging has ended
| modules/utils/NativeDragDropSupport.js | Use mouse events to unambiguously know that dragging has ended | <ide><path>odules/utils/NativeDragDropSupport.js
<ide> _initialDragTargetRect,
<ide> _imitateCurrentDragEnd,
<ide> _dragTargetRectDidChange,
<del> _lastDragSourceCheckTimeout,
<ide> _currentDropEffect;
<ide>
<ide> function getElementRect(el) {
<ide> if (isWebkit() && checkIfCurrentDragTargetRect... | |
Java | apache-2.0 | 616d1c4200b70661d9299a78a754cf136aa332ff | 0 | openintents/filemanager,imoblife/filemanager,pacificIT/filemanager,imoblife/filemanager,veniosg/Dir,pacificIT/filemanager | package org.openintents.filemanager.view;
import java.io.File;
import java.util.HashMap;
import org.openintents.filemanager.R;
import org.openintents.filemanager.view.PathBar.Mode;
import android.content.Context;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import andro... | FileManager/src/org/openintents/filemanager/view/PathButtonLayout.java | package org.openintents.filemanager.view;
import java.io.File;
import java.util.HashMap;
import org.openintents.filemanager.R;
import org.openintents.filemanager.view.PathBar.Mode;
import android.content.Context;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import andro... | Added sdcard icon for some more paths
| FileManager/src/org/openintents/filemanager/view/PathButtonLayout.java | Added sdcard icon for some more paths | <ide><path>ileManager/src/org/openintents/filemanager/view/PathButtonLayout.java
<ide> mPathDrawables.put("/sdcard", R.drawable.ic_navbar_sdcard);
<ide> mPathDrawables.put("/mnt/sdcard", R.drawable.ic_navbar_sdcard);
<ide> mPathDrawables.put("/mnt/sdcard-ext", R.drawable.ic_navbar_sdcard);
<add> mPathDrawables.p... | |
Java | apache-2.0 | eac43d38d22bd59d7ee70c04f684b4848073b946 | 0 | meetdestiny/geronimo-trader,apache/geronimo,vibe13/geronimo,apache/geronimo,apache/geronimo,vibe13/geronimo,meetdestiny/geronimo-trader,vibe13/geronimo,meetdestiny/geronimo-trader,apache/geronimo,vibe13/geronimo | /**
*
* Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.
*
* 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/... | sandbox/console-standard/src/java/org/apache/geronimo/console/util/ObjectNameConstants.java | /**
*
* Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.
*
* 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/... | Change suggested by GERONIMO-796. This should be short-lived, as I
expect all the web features will break for Tomcat, and I hope
to move web containers/connectors to the management API shortly.
git-svn-id: d69ffe4ccc4861bf06065bd0072b85c931fba7ed@225114 13f79535-47bb-0310-9956-ffa450edef68
| sandbox/console-standard/src/java/org/apache/geronimo/console/util/ObjectNameConstants.java | Change suggested by GERONIMO-796. This should be short-lived, as I expect all the web features will break for Tomcat, and I hope to move web containers/connectors to the management API shortly. | <ide><path>andbox/console-standard/src/java/org/apache/geronimo/console/util/ObjectNameConstants.java
<ide>
<ide> public static final String REPO_OBJECT_NAME = "geronimo.server:name=Repository,J2EEServer=geronimo,J2EEApplication=null,j2eeType=GBean,J2EEModule=org/apache/geronimo/System";
<ide>
<del> public sta... | |
JavaScript | mit | 243103912a582954f307149a51c1787e17744740 | 0 | alexbooker/memento | var moment = require("moment");
var sinon = require("sinon");
var chai = require("chai");
var should = chai.should();
var PasswordReboot = require("../lib/index");
describe("createToken", function() {
it("should return a token", function() {
var sut = new PasswordReboot("t9m0HLkdEyWQ6XN");
var user = {
... | test/test.js | var should = require('chai').should();
var sinon = require("sinon");
var moment = require("moment");
var PasswordReboot = require("../lib/index");
describe("PasswordReboot", function() {
describe("createToken", function() {
it("should return a token", function() {
var sut = new PasswordReboot("t9m0HLkdEy... | reduced line width to 80 characters maximum
| test/test.js | reduced line width to 80 characters maximum | <ide><path>est/test.js
<del>var should = require('chai').should();
<del>var sinon = require("sinon");
<ide> var moment = require("moment");
<add>var sinon = require("sinon");
<add>var chai = require("chai");
<add>var should = chai.should();
<ide>
<ide> var PasswordReboot = require("../lib/index");
<ide>
<del>descr... | |
Java | apache-2.0 | 389d5fee750f6dff40fa7c6033fd32192fb25b61 | 0 | apache/geronimo,apache/geronimo,apache/geronimo,apache/geronimo | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/RemoteSourceRepository.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 ... | Print the repo URI when no connection can be made
git-svn-id: 0d16bf2c240b8111500ec482b35765e5042f5526@702555 13f79535-47bb-0310-9956-ffa450edef68
| framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/RemoteSourceRepository.java | Print the repo URI when no connection can be made | <ide><path>ramework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/RemoteSourceRepository.java
<ide> URLConnection con = location.openConnection();
<ide> if (con instanceof HttpURLConnection) {
<ide> HttpURLConnection http = (HttpURLConnection) con;
<del> ... | |
JavaScript | mit | bab7f281067be01d61485478f0ef8fe6002260c2 | 0 | jkpluta/jkpluta.github.io,jkpluta/jkpluta.github.io | var base_url = "https://jkpluta.github.io";
function start(sel, spnr, href, func) {
if (spnr != null)
$(spnr).html('<img src="../img/spinner.gif">');
$.ajax({
url: base_url + href,
cache: false,
success: function (html) {
$(spnr).html('');
func(sel, html);
},
... | js/script.js | var base_url = "https://jkpluta.github.io";
function start(sel, spnr, href, func) {
if (spnr != null)
$(spnr).html('<img src="../img/spinner.gif">');
$.ajax({
url: base_url + href,
cache: false,
success: function (html) {
$(spnr).html('');
func(sel, html);
},
... | Edycja zapisków
| js/script.js | Edycja zapisków | <ide><path>s/script.js
<ide> var link = null
<ide> if(token) {
<ide> link = $('<div class="col-sm-12 col-md-6 col-lg-4"><a target="_blank"></a> <i id="del-gist-X" class="fa fa-times"></i></div>').appendTo($(sel)).children('a:first');
<del> $('#del-gist-X').click(function() {
<del>... | |
Java | apache-2.0 | 267b86c57f53dd79ca4c50563b69cca14fc8cd98 | 0 | GlenRSmith/elasticsearch,scorpionvicky/elasticsearch,nknize/elasticsearch,nknize/elasticsearch,gingerwizard/elasticsearch,gfyoung/elasticsearch,vroyer/elassandra,robin13/elasticsearch,uschindler/elasticsearch,scorpionvicky/elasticsearch,nknize/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,HonzaKral/el... | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.marvel.shield;
import org.elasticsearch.action.*;
i... | elasticsearch/x-pack/marvel/src/main/java/org/elasticsearch/marvel/shield/SecuredClient.java | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.marvel.shield;
import org.elasticsearch.action.*;
i... | Marvel: add implementation for synced flush to SecuredClient
see elastic/elasticsearch#15396
Original commit: elastic/x-pack-elasticsearch@c60c2717382b67b20c564e0cdf655cf61235d69c
| elasticsearch/x-pack/marvel/src/main/java/org/elasticsearch/marvel/shield/SecuredClient.java | Marvel: add implementation for synced flush to SecuredClient | <ide><path>lasticsearch/x-pack/marvel/src/main/java/org/elasticsearch/marvel/shield/SecuredClient.java
<ide> import org.elasticsearch.action.admin.indices.flush.FlushRequest;
<ide> import org.elasticsearch.action.admin.indices.flush.FlushRequestBuilder;
<ide> import org.elasticsearch.action.admin.indices.flush.FlushRes... | |
Java | lgpl-2.1 | 1dcbf1822d311164af6131cc392937c6b5f12e3d | 0 | codelibs/jcifs,AgNO3/jcifs-ng | /* jcifs smb client library in Java
* Copyright (C) 2000 "Michael B. Allen" <jcifs at samba dot org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the ... | src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java | /* jcifs smb client library in Java
* Copyright (C) 2000 "Michael B. Allen" <jcifs at samba dot org>
*
* 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 ... | Remove unused logger
| src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java | Remove unused logger | <ide><path>rc/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
<ide>
<ide> import java.util.Enumeration;
<ide>
<del>import org.slf4j.Logger;
<del>import org.slf4j.LoggerFactory;
<del>
<ide> import jcifs.Configuration;
<ide> import jcifs.internal.SMBProtocolDecodingException;
<ide> import jcifs.inter... | |
Java | apache-2.0 | 116648186b9b0e0acacaadcafa9d20988c5affb2 | 0 | akarnokd/reactive4java | /*
* Copyright 2011-2012 David Karnok
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Reactive4Java/src/hu/akarnokd/reactive4java/reactive/Reactive.java | /*
* Copyright 2011-2012 David Karnok
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Fixed sequenceEquals() and skipLast() | Reactive4Java/src/hu/akarnokd/reactive4java/reactive/Reactive.java | Fixed sequenceEquals() and skipLast() | <ide><path>eactive4Java/src/hu/akarnokd/reactive4java/reactive/Reactive.java
<ide>
<ide> package hu.akarnokd.reactive4java.reactive;
<ide>
<add>import static hu.akarnokd.reactive4java.base.Functions.and;
<ide> import hu.akarnokd.reactive4java.base.Action0;
<ide> import hu.akarnokd.reactive4java.base.Action1;
<ide> im... | |
JavaScript | mit | b87edd4de9253a548a5bf44b57dca8db12e9c02d | 0 | svivian/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,panpawn/Gold-Server,xfix/Pokemon-Showdown,Enigami/Pokemon-Showdown,urkerab/Pokemon-Showdown,svivian/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,Enigami/Pokemon-Showdown,Enigami/Pokemon-Showdown,panpawn/Pokemon-Showdown,xfix/Pokemon-Showdo... | /**
* Matchmaker
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This keeps track of challenges to battle made between users, setting up
* matches between users looking for a battle, and starting new battles.
*
* @License MIT License
*/
'use strict';
/** @type {typeof LadderStoreT} */
const LadderStore =... | ladders.js | /**
* Matchmaker
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This keeps track of challenges to battle made between users, setting up
* matches between users looking for a battle, and starting new battles.
*
* @License MIT License
*/
'use strict';
/** @type {typeof LadderStoreT} */
const LadderStore =... | Access searches/challenges through Ladders
In general I like to make non-local variable accesses clearer, hence
this.
...should maybe mention this in CONTRIBUTING.md
| ladders.js | Access searches/challenges through Ladders | <ide><path>adders.js
<ide> */
<ide> static clearChallenges(username) {
<ide> const userid = toId(username);
<del> const userChalls = challenges.get(userid);
<add> const userChalls = Ladders.challenges.get(userid);
<ide> if (userChalls) {
<ide> for (const chall of userChalls.slice()) {
<ide> let otherUse... | |
Java | apache-2.0 | da4bae1cd87f2c2de5d24b88edf43877f3ce4802 | 0 | creswick/StreamingQR,creswick/StreamingQR | /**
* Copyright 2014 Galois, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | development/android/qrstreamlib/src/main/java/com/galois/qrstream/lib/DecodeThread.java | /**
* Copyright 2014 Galois, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | use EXTRA_TEXT when receiving text
| development/android/qrstreamlib/src/main/java/com/galois/qrstream/lib/DecodeThread.java | use EXTRA_TEXT when receiving text | <ide><path>evelopment/android/qrstreamlib/src/main/java/com/galois/qrstream/lib/DecodeThread.java
<ide> Job message;
<ide> try {
<ide> message = (Job)receiver.decodeQRSerializable(cameraManager);
<del> Log.w(Constants.APP_TAG, "DecodeThread read message of length: " + message.getD... | |
Java | bsd-3-clause | 378de3b541879f8fec149bb91953f172e5995569 | 0 | Clunker5/tregmine-2.0,Clunker5/tregmine-2.0,EmilHernvall/tregmine,EmilHernvall/tregmine,EmilHernvall/tregmine | package info.tregmine.listeners;
import java.util.*;
import java.util.Map.Entry;
import org.bukkit.*;
import org.bukkit.block.*;
import org.bukkit.entity.*;
import org.bukkit.event.*;
import org.bukkit.event.block.Action;
import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.event.player.*;
import ... | src/info/tregmine/listeners/TregminePlayerListener.java | package info.tregmine.listeners;
import java.util.*;
import java.util.Map.Entry;
import org.bukkit.*;
import org.bukkit.block.*;
import org.bukkit.entity.*;
import org.bukkit.event.*;
import org.bukkit.event.block.Action;
import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.event.player.*;
import ... | Fixes dupe | src/info/tregmine/listeners/TregminePlayerListener.java | Fixes dupe | <ide><path>rc/info/tregmine/listeners/TregminePlayerListener.java
<ide> } else {
<ide> player.setFlySpeed(0.1f); // 0.1 is default
<ide> }
<del>
<del> if (player.getGameMode() == GameMode.CREATIVE) {
<del> return;
<del> }
<del>
<del> double pic... | |
Java | apache-2.0 | error: pathspec 'pop3/src/main/java/org/apache/james/protocols/POP3Session.java' did not match any file(s) known to git
| ec4a53eeaa4ad077adfbdb5c853f2309cfa83bab | 1 | aduprat/james-protocols,linagora/james-protocols,mbaechler/james-protocols,tools4origins/james-protocols | /****************************************************************
* 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... | pop3/src/main/java/org/apache/james/protocols/POP3Session.java | copy pop3 stuff
git-svn-id: 72b794ca7b43188aed56de932e8081c5d617dce0@905778 13f79535-47bb-0310-9956-ffa450edef68
| pop3/src/main/java/org/apache/james/protocols/POP3Session.java | copy pop3 stuff | <ide><path>op3/src/main/java/org/apache/james/protocols/POP3Session.java
<add>/****************************************************************
<add> * Licensed to the Apache Software Foundation (ASF) under one *
<add> * or more contributor license agreements. See the NOTICE file *
<add> * distributed with this work... | |
Java | mit | 35c721a742320165a6369a0bd7254d4608a1c8bb | 0 | seqcode/seqcode-core,seqcode/seqcode-core,seqcode/seqcode-core,seqcode/seqcode-core | package edu.psu.compbio.seqcode.projects.akshay.bayesments.bayesnet;
import java.io.File;
import java.util.Arrays;
import java.util.Random;
import edu.psu.compbio.seqcode.gse.utils.probability.NormalDistribution;
import edu.psu.compbio.seqcode.projects.akshay.bayesments.experiments.ExperimentManager;
import edu.psu.c... | src/edu/psu/compbio/seqcode/projects/akshay/bayesments/bayesnet/EMtrain.java | package edu.psu.compbio.seqcode.projects.akshay.bayesments.bayesnet;
import java.io.File;
import java.util.Arrays;
import java.util.Random;
import edu.psu.compbio.seqcode.gse.utils.probability.NormalDistribution;
import edu.psu.compbio.seqcode.projects.akshay.bayesments.experiments.ExperimentManager;
import edu.psu.c... | dealing with NaN doubles | src/edu/psu/compbio/seqcode/projects/akshay/bayesments/bayesnet/EMtrain.java | dealing with NaN doubles | <ide><path>rc/edu/psu/compbio/seqcode/projects/akshay/bayesments/bayesnet/EMtrain.java
<ide> for(int j=0; j<numChromStates; j++){
<ide> for(int k=0; k<numFacBindingStates; k++){
<ide> NormalDistribution gaussian = new NormalDistribution(MUc[j][c],Math.pow(SIGMAc[j][c], 2.0));
<del> Z = (i==0 && ... | |
JavaScript | apache-2.0 | bb21718c6d96747e9c5b75bb04f31ae8b9b67c06 | 0 | openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile | //
// Here is how to define your module
// has dependent on mobile-angular-ui
//
var app = angular.module('MobileAngularUiExamples', [
'Cordova',
'ngRoute',
'mobile-angular-ui',
// touch/drag feature: this is from 'mobile-angular-ui.gestures.js'
// it i... | www/js/demo.js | //
// Here is how to define your module
// has dependent on mobile-angular-ui
//
var app = angular.module('MobileAngularUiExamples', [
'Cordova',
'ngRoute',
'mobile-angular-ui',
// touch/drag feature: this is from 'mobile-angular-ui.gestures.js'
// it i... | migration test vers rfduino
| www/js/demo.js | migration test vers rfduino | <ide><path>ww/js/demo.js
<ide> //$scope.data = JSON.stringify(data);
<ide> $scope.length = data.byteLength;
<ide> var buffer1 = new Int8Array(data);
<del> alert(buffer1.toString());
<add> var str = "";
<add> for (var i=0 ; i<buffer1.length ; i++) {
<add... | |
Java | apache-2.0 | 3cd5ab760884a254dc82071a6d92166ddd35e14c | 0 | hvivani/bigdata,hvivani/bigdata,hvivani/bigdata | package com.amazonaws.vivanih.hadoop.cascading;
import java.util.Properties;
import java.util.Calendar;
import java.text.SimpleDateFormat;
import cascading.flow.Flow;
import cascading.flow.FlowConnector;
import cascading.flow.FlowDef;
import cascading.flow.hadoop.HadoopFlowConnector;
import cascading.operation.aggreg... | cascading/AveragePerMonth/Main.java | package com.amazonaws.vivanih.hadoop.cascading;
import java.util.Properties;
import java.util.Calendar;
import java.text.SimpleDateFormat;
import cascading.flow.Flow;
import cascading.flow.FlowConnector;
import cascading.flow.FlowDef;
import cascading.flow.hadoop.HadoopFlowConnector;
import cascading.operation.aggreg... | Update Main.java | cascading/AveragePerMonth/Main.java | Update Main.java | <ide><path>ascading/AveragePerMonth/Main.java
<ide> import cascading.operation.aggregator.Average;
<ide> import cascading.operation.regex.RegexSplitGenerator;
<ide> import cascading.operation.regex.RegexGenerator;
<add>import cascading.operation.regex.RegexFilter;
<ide> import cascading.operation.text.DateParser;
<ide>... | |
Java | apache-2.0 | 9954d3965557083c224ae3e04bf06260b0a709d1 | 0 | fhg-fokus-nubomedia/nubomedia-paas,fhg-fokus-nubomedia/nubomedia-paas,nubomedia/nubomedia-paas,nubomedia/nubomedia-paas,nubomedia/nubomedia-paas,fhg-fokus-nubomedia/nubomedia-paas,nubomedia/nubomedia-paas,fhg-fokus-nubomedia/nubomedia-paas | /*
* Copyright (c) 2015-2016 Fraunhofer FOKUS
*
* 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... | src/main/java/org/project/openbaton/nubomedia/paas/main/Main.java | /*
* Copyright (c) 2015-2016 Fraunhofer FOKUS
*
* 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... | Added Bean Configuration classes to ContextConfiguration
| src/main/java/org/project/openbaton/nubomedia/paas/main/Main.java | Added Bean Configuration classes to ContextConfiguration | <ide><path>rc/main/java/org/project/openbaton/nubomedia/paas/main/Main.java
<ide> package org.project.openbaton.nubomedia.paas.main;
<ide>
<ide> import org.project.openbaton.nubomedia.paas.core.openshift.OpenshiftConfiguration;
<add>import org.project.openbaton.nubomedia.paas.events.ConfigurationBeans;
<add>import org... | |
Java | apache-2.0 | bbd755006aaff1e14c950d46a883425081593ee9 | 0 | FHannes/intellij-community,clumsy/intellij-community,suncycheng/intellij-community,vladmm/intellij-community,vvv1559/intellij-community,signed/intellij-community,izonder/intellij-community,michaelgallacher/intellij-community,adedayo/intellij-community,fnouama/intellij-community,blademainer/intellij-community,kool79/int... | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonTooltipRendererProvider.java | /*
* Copyright 2000-2012 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... | better looking inspection tooltips
| platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonTooltipRendererProvider.java | better looking inspection tooltips | <ide><path>latform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonTooltipRendererProvider.java
<ide> import java.util.regex.Pattern;
<ide>
<ide> public class DaemonTooltipRendererProvider implements ErrorStripTooltipRendererProvider {
<add> @NonNls private static final String END_MARKER = "<!-- end marker -... | |
Java | apache-2.0 | 815ee08562aed1a0d6e86e620b8504058f194daa | 0 | jerome79/OG-Platform,jeorme/OG-Platform,DevStreet/FinanceAnalytics,McLeodMoores/starling,codeaudit/OG-Platform,ChinaQuants/OG-Platform,jerome79/OG-Platform,codeaudit/OG-Platform,jeorme/OG-Platform,jerome79/OG-Platform,nssales/OG-Platform,DevStreet/FinanceAnalytics,ChinaQuants/OG-Platform,nssales/OG-Platform,DevStreet/F... | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util.money;
import java.io.Serializable;
import com.opengamma.util.ArgumentChecker;
/**
* An amount of a currency.
* <p>
* This class effectively represe... | projects/OG-Util/src/main/java/com/opengamma/util/money/CurrencyAmount.java | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util.money;
import java.io.Serializable;
import com.opengamma.util.ArgumentChecker;
/**
* An amount of a currency.
* <p>
* This class effectively represe... | Add null-swallowing factory to CurrencyAmount
| projects/OG-Util/src/main/java/com/opengamma/util/money/CurrencyAmount.java | Add null-swallowing factory to CurrencyAmount | <ide><path>rojects/OG-Util/src/main/java/com/opengamma/util/money/CurrencyAmount.java
<ide> }
<ide>
<ide> /**
<add> * Creates a currency amount for the specified currency and amount,
<add> * handling null inputs by returning null.
<add> *
<add> * @param currency the currency the amount is in, may be null
... | |
Java | apache-2.0 | d67a7b093068b977d62cacbb5542999b61a8c347 | 0 | realityforge/arez,realityforge/arez,realityforge/arez | package org.realityforge.arez.processor;
import com.google.auto.service.AutoService;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.TypeSpec;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.List;
import java.util.Set;
import java.util.stream.Co... | processor/src/main/java/org/realityforge/arez/processor/ArezProcessor.java | package org.realityforge.arez.processor;
import com.google.auto.service.AutoService;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.TypeSpec;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.List;
import java.util.Set;
import java.util.stream.Co... | Whitespace
| processor/src/main/java/org/realityforge/arez/processor/ArezProcessor.java | Whitespace | <ide><path>rocessor/src/main/java/org/realityforge/arez/processor/ArezProcessor.java
<ide> final boolean generateToString = methods.stream()
<ide> .noneMatch( m -> m.getSimpleName().toString().equals( "toString" ) &&
<ide> m.getParameters().size() == 0 &&
<del> !(m... | |
JavaScript | mit | 3d7f86fa5c47f2df5b923c620c0d8174f5e87cf2 | 0 | tiltfactor/smorball,tiltfactor/smorball,tiltfactor/smorball,tiltfactor/smorball | /**
* Created by nidhincg on 27/12/14.
*/
(function(){
var CaptchaProcessor = function(config){
this.config = config;
this.wordCount = 0;
this.currentPass = 0;
this.maxPass = 1;
this.captchasOnScreen=[];
this.captchaTextBoxId = "inputText";
this.captchaPass... | Smorball/js/model/CaptchaProcessor.js | /**
* Created by nidhincg on 27/12/14.
*/
(function(){
var CaptchaProcessor = function(config){
this.config = config;
this.wordCount = 0;
this.currentPass = 0;
this.maxPass = 1;
this.captchasOnScreen=[];
this.captchaTextBoxId = "inputText";
this.captchaPass... | - Pass button needs to be disabled if 0 pass left. | Smorball/js/model/CaptchaProcessor.js | - Pass button needs to be disabled if 0 pass left. | <ide><path>morball/js/model/CaptchaProcessor.js
<ide> output.pass = false;
<ide> output.message = "incorrect";
<ide> var captcha = cw.closestOcr;
<add> var passDisabled = $("#canvasHolder #passButton").prop("disabled");
<ide> $("#canvasHolder input").prop("disa... | |
Java | mit | f750e6be8450a06a1473a8abe59fc9840f797e00 | 0 | likcoras/Asuka,likcoras/SSBot | package io.github.likcoras.ssbot.core;
import java.io.IOException;
import java.util.Set;
import io.github.likcoras.ssbot.ConfigParser;
import io.github.likcoras.ssbot.auth.AuthHandler;
import io.github.likcoras.ssbot.ignore.IgnoreHandler;
import io.github.likcoras.ssbot.util.BotUtils;
import io.github.likcoras.ssbot.... | src/main/java/io/github/likcoras/ssbot/core/BotCoreHandlers.java | package io.github.likcoras.ssbot.core;
import java.io.IOException;
import java.util.Set;
import io.github.likcoras.ssbot.ConfigParser;
import io.github.likcoras.ssbot.auth.AuthHandler;
import io.github.likcoras.ssbot.ignore.IgnoreHandler;
import io.github.likcoras.ssbot.util.BotUtils;
import io.github.likcoras.ssbot.... | Only send ignore help when explicitly requested | src/main/java/io/github/likcoras/ssbot/core/BotCoreHandlers.java | Only send ignore help when explicitly requested | <ide><path>rc/main/java/io/github/likcoras/ssbot/core/BotCoreHandlers.java
<ide> try {
<ide>
<ide> if (command.length < 2)
<del> ignoreUsage(user);
<add> invalidIgnore(user);
<ide> else if (command[1].equalsIgnoreCase("add"))
<ide> ignoreAdd(chan, command[2]);
<ide> else if (command[1].equalsIg... | |
Java | apache-2.0 | daa7e791ec4f4d2b87ba7dc917a69333f898e522 | 0 | OptimalOrange/CoolTechnologies,OptimalOrange/CoolTechnologies,Bai-Jie/CoolTechnologies,Bai-Jie/CoolTechnologies | package com.optimalorange.cooltechnologies.ui.fragment;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
import com.etsy.android.grid.StaggeredGridView;
import com.optimalorange.cooltechnologies.R;
import com.optimalorange.cooltechnologies.entity... | app/src/main/java/com/optimalorange/cooltechnologies/ui/fragment/ListVideosFragment.java | package com.optimalorange.cooltechnologies.ui.fragment;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
import com.etsy.android.grid.StaggeredGridView;
import com.optimalorange.cooltechnologies.R;
import com.optimalorange.cooltechnologies.entity... | 修改ListVideosFragment.java
增加了下拉刷新和上滑自动加载更多的功能
| app/src/main/java/com/optimalorange/cooltechnologies/ui/fragment/ListVideosFragment.java | 修改ListVideosFragment.java 增加了下拉刷新和上滑自动加载更多的功能 | <ide><path>pp/src/main/java/com/optimalorange/cooltechnologies/ui/fragment/ListVideosFragment.java
<ide> public class ListVideosFragment extends Fragment {
<ide>
<ide> // Fragment初始化参数
<add>
<ide> /**
<ide> * 应当显示的Video的genre(类型,示例:手机)<br/>
<ide> * Type: String
<ide> private VolleySingleton mVoll... | |
Java | epl-1.0 | 01408cbe55a0ecf82ee198b2da40a6a7edb50ebe | 0 | tectronics/mercurialeclipse,boa0332/mercurialeclipse,naidu/mercurialeclipse,leinier/mercurialeclipse | /*******************************************************************************
* Copyright (c) 2005-2009 VecTrace (Zingo Andersen) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | src/com/vectrace/MercurialEclipse/team/cache/AbstractRemoteCache.java | /*******************************************************************************
* Copyright (c) 2005-2009 VecTrace (Zingo Andersen) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | The remote changeset caches should now behave correctly
| src/com/vectrace/MercurialEclipse/team/cache/AbstractRemoteCache.java | The remote changeset caches should now behave correctly | <ide><path>rc/com/vectrace/MercurialEclipse/team/cache/AbstractRemoteCache.java
<ide> import com.vectrace.MercurialEclipse.commands.HgOutgoingClient;
<ide> import com.vectrace.MercurialEclipse.exception.HgException;
<ide> import com.vectrace.MercurialEclipse.model.ChangeSet;
<del>import com.vectrace.MercurialEclipse.mo... | |
Java | mit | d14a15bf68abcd087a5ff692d96be3670f0051e2 | 0 | KyleCe/ScreenLocker2 | package com.ce.game.screenlocker.util;
import android.content.Context;
import android.view.View;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;
import com.ce.game.screenlocker.common.DU;
/**
* Created by KyleCe on 2016/5/25.
*
* @author: KyleCe
*/
final public class LockLaye... | app/src/main/java/com/ce/game/screenlocker/util/LockLayer.java | package com.ce.game.screenlocker.util;
import android.content.Context;
import android.view.View;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;
import com.ce.game.screenlocker.common.DU;
/**
* Created by KyleCe on 2016/5/25.
*
* @author: KyleCe
*/
final public class LockLaye... | limit the screen orientation
| app/src/main/java/com/ce/game/screenlocker/util/LockLayer.java | limit the screen orientation | <ide><path>pp/src/main/java/com/ce/game/screenlocker/util/LockLayer.java
<ide> mLockViewLayoutParams.flags = LayoutParams.FLAG_SHOW_WHEN_LOCKED
<ide> | LayoutParams.FLAG_DISMISS_KEYGUARD
<ide> | LayoutParams.FLAG_KEEP_SCREEN_ON;
<add>
<add> mLockViewLayoutParams.alpha = 1f... | |
JavaScript | apache-2.0 | a8cca7506c2ff3f379c7bcc1386df33c49ed8e42 | 0 | ctamisier/generator-jhipster,liseri/generator-jhipster,vivekmore/generator-jhipster,atomfrede/generator-jhipster,ctamisier/generator-jhipster,atomfrede/generator-jhipster,liseri/generator-jhipster,jhipster/generator-jhipster,liseri/generator-jhipster,jhipster/generator-jhipster,atomfrede/generator-jhipster,jhipster/gen... | /**
* Copyright 2013-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | generators/generator-constants.js | /**
* Copyright 2013-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | Update postgres docker image version to 14.1
| generators/generator-constants.js | Update postgres docker image version to 14.1 | <ide><path>enerators/generator-constants.js
<ide> const DOCKER_JAVA_JRE = 'eclipse-temurin:11-jre-focal';
<ide> const DOCKER_MYSQL = 'mysql:8.0.27';
<ide> const DOCKER_MARIADB = 'mariadb:10.7.1';
<del>const DOCKER_POSTGRESQL = 'postgres:13.5';
<add>const DOCKER_POSTGRESQL = 'postgres:14.1';
<ide> const DOCKER_MONGODB =... | |
Java | mit | cda56d06f10f7f26275133b5423a667a3a0c0a71 | 0 | nRo/DataFrame | /*
*
* * Copyright (c) 2017 Alexander Grün
* *
* * Permission is hereby granted, free of charge, to any person obtaining a copy
* * of this software and associated documentation files (the "Software"), to deal
* * in the Software without restriction, including without limitation the rights
* * to use, copy... | src/main/java/de/unknownreality/dataframe/column/NumberColumn.java | /*
*
* * Copyright (c) 2017 Alexander Grün
* *
* * Permission is hereby granted, free of charge, to any person obtaining a copy
* * of this software and associated documentation files (the "Software"), to deal
* * in the Software without restriction, including without limitation the rights
* * to use, copy... | javadoc added
| src/main/java/de/unknownreality/dataframe/column/NumberColumn.java | javadoc added | <ide><path>rc/main/java/de/unknownreality/dataframe/column/NumberColumn.java
<ide> * returns the specified quantile.
<ide> * This calculation requires sorting of the values each time.
<ide> * If more than one quantile should be calculated, use {@link #getQuantiles()}.
<del> * @param percent
<add> ... | |
Java | apache-2.0 | 5f05de6c0a237c4175cda5f2187692d65de6a76b | 0 | bounswe/bounswe2016group7,bounswe/bounswe2016group7,bounswe/bounswe2016group7 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.bounswe.group7.web.controller;
import com.bounswe.group7.api.client.LoginServiceClient;
import com.bounswe.group7.model.Us... | utopic/web-application/src/main/java/com/bounswe/group7/web/controller/LoginController.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.bounswe.group7.web.controller;
import com.bounswe.group7.api.client.LoginServiceClient;
import com.bounswe.group7.model.Us... | Another bug fix
| utopic/web-application/src/main/java/com/bounswe/group7/web/controller/LoginController.java | Another bug fix | <ide><path>topic/web-application/src/main/java/com/bounswe/group7/web/controller/LoginController.java
<ide> String password = request.getParameter("password");
<ide> LoginServiceClient client = new LoginServiceClient();
<ide> Users user = null;
<add> ModelAndView index;
<ide> try ... | |
JavaScript | mit | 59a09db4d160db9e4ba9a94f1d563f73a078f94c | 0 | goje87/bsafe-rid,goje87/bsafe-rid | var express = require("express");
var router = express.Router();
var http = require('http');
var app = express();
var db = require("./model/db");
var sensorData = require("./model/sensorData");
var rideInfo = require("./model/rideInfo");
var mongoose = req... | app.js | var express = require("express");
var router = express.Router();
var http = require('http');
var app = express();
var db = require("./model/db");
var sensorData = require("./model/sensorData");
var rideInfo = require("./model/rideInfo");
var mongoose = req... | Clearing variables to preserve memory
| app.js | Clearing variables to preserve memory | <ide><path>pp.js
<ide> }
<ide> break;
<ide> }
<del>
<ide> }
<ide> }
<ide> return obj;
<ide> console.log("SUCCESS at GET / , for collection : sensorData");
<ide> console.log("Get results for RIDE ID = " + req.params.rideId );
<ide> res.send(20... | |
Java | apache-2.0 | error: pathspec 'src/web/onClient/hr/fer/zemris/vhdllab/simulations/GhdlResults.java' did not match any file(s) known to git
| 6ad41597073c9fd9b9eae9bd318357330a5475a6 | 1 | mbezjak/vhdllab,mbezjak/vhdllab,mbezjak/vhdllab | /**
* Klasa sluzi za parsiranje stringa koji sadrzi rezultate simulacije prikazane
* u jednom stringu, internog formata. Parsirane rezultate direktno koristi
* applet za iscrtavanje rezultata simulacije
*
* @author Boris Ozegovic
*/
public class GhdlResults
{
private final String HEAD_LIMITER = "%%%... | src/web/onClient/hr/fer/zemris/vhdllab/simulations/GhdlResults.java | Klasa koja parsira string dobiven HTTP-om u rezultat simulacije
git-svn-id: 650ffc0a3ae286c3f0a198ebc7b4f99e37498f62@15 cbae1e92-611c-0410-ab7b-b19ac7dee622
| src/web/onClient/hr/fer/zemris/vhdllab/simulations/GhdlResults.java | Klasa koja parsira string dobiven HTTP-om u rezultat simulacije | <ide><path>rc/web/onClient/hr/fer/zemris/vhdllab/simulations/GhdlResults.java
<add>/**
<add> * Klasa sluzi za parsiranje stringa koji sadrzi rezultate simulacije prikazane
<add> * u jednom stringu, internog formata. Parsirane rezultate direktno koristi
<add> * applet za iscrtavanje rezultata simulacije
<add> *
<add> *... | |
Java | apache-2.0 | 41dc0db52bb570a8a439f24e620193a3e18a855c | 0 | vincent-zurczak/time-sheet-generator,vincent-zurczak/time-sheet-generator | /**
* Copyright 2014 - Vincent Zurczak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | src/main/java/net/vzurczak/timesheetgenerator/internal/PdfGenerator.java | /**
* Copyright 2014 - Vincent Zurczak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Format week numbers with 2 digits | src/main/java/net/vzurczak/timesheetgenerator/internal/PdfGenerator.java | Format week numbers with 2 digits | <ide><path>rc/main/java/net/vzurczak/timesheetgenerator/internal/PdfGenerator.java
<ide> // File name
<ide> StringBuilder sb = new StringBuilder();
<ide> sb.append( "Feuille-De-Temps--s" );
<del> sb.append( bean.getStartWeek());
<add> sb.append( String.format( "%02d", bean.getStartWeek()));
<ide> sb.append( "... | |
Java | apache-2.0 | 78d2f4105725954418164ae15b53d55e3aee49bf | 0 | dimone-kun/cuba,dimone-kun/cuba,cuba-platform/cuba,cuba-platform/cuba,cuba-platform/cuba,dimone-kun/cuba | /*
* Copyright (c) 2008-2013 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/license for details.
*/
package com.haulmont.cuba.gui.categories;
import com.haulmont.chile.core.datatypes.Datatypes;
import com.haulmont.chile.core.model.MetaClass;
import com.h... | modules/gui/src/com/haulmont/cuba/gui/categories/AttributeEditor.java | /*
* Copyright (c) 2008-2013 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/license for details.
*/
package com.haulmont.cuba.gui.categories;
import com.haulmont.chile.core.datatypes.Datatypes;
import com.haulmont.chile.core.model.MetaClass;
import com.h... | New test Id mechanism for web, attribute editor field Ids #PL-2809
| modules/gui/src/com/haulmont/cuba/gui/categories/AttributeEditor.java | New test Id mechanism for web, attribute editor field Ids #PL-2809 | <ide><path>odules/gui/src/com/haulmont/cuba/gui/categories/AttributeEditor.java
<ide> clearComponents();
<ide> if (RuntimePropsDatasource.PropertyType.STRING.equals(dataType)) {
<ide> TextField textField = factory.createComponent(TextField.NAME);
<del> textField.setId("defaultValu... | |
Java | mit | 2e90bc965f4a079623196e31ce8b17bf7625f889 | 0 | SpongePowered/Sponge,SpongePowered/Sponge,SpongePowered/Sponge | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | src/main/java/org/spongepowered/common/data/provider/item/stack/ItemStackData.java | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | Fix data accessing code for Keys.LORE
| src/main/java/org/spongepowered/common/data/provider/item/stack/ItemStackData.java | Fix data accessing code for Keys.LORE | <ide><path>rc/main/java/org/spongepowered/common/data/provider/item/stack/ItemStackData.java
<ide> import org.spongepowered.api.util.weighted.ChanceTable;
<ide> import org.spongepowered.api.util.weighted.NestedTableEntry;
<ide> import org.spongepowered.api.util.weighted.WeightedTable;
<add>import org.spongepowered.comm... | |
Java | apache-2.0 | 23fa2663cea01ef294a67a9e3c05a2add635c6a4 | 0 | francisliu/hbase_namespace,cloudera/hbase,matteobertozzi/hbase,francisliu/hbase_namespace,centiteo/hbase,matteobertozzi/hbase,francisliu/hbase_namespace,Shmuma/hbase-trunk,optimizely/hbase,ryanobjc/hbase,bcopeland/hbase-thrift,centiteo/hbase,lichongxin/hbase-snapshot,matteobertozzi/hbase,jyates/hbase,francisliu/hbase_n... | /**
* Copyright 2010 The Apache Software Foundation
*
* 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... | core/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | /**
* Copyright 2010 The Apache Software Foundation
*
* 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... | HBASE-2295 Row locks may deadlock with themselves
git-svn-id: 25ca64b629f24bdef6d1cceac138f74b13f55e41@921098 13f79535-47bb-0310-9956-ffa450edef68
| core/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | HBASE-2295 Row locks may deadlock with themselves | <ide><path>ore/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
<ide> import java.util.Iterator;
<ide> import java.util.List;
<ide> import java.util.Map;
<add> import java.util.Set;
<ide> import java.util.NavigableSet;
<ide> import java.util.TreeMap;
<ide> import java.util.TreeSet;
<del> import jav... | |
Java | mit | 8f06523d82b94cf5bd586f57a7faecb3d7af23be | 0 | bcgit/bc-java,bcgit/bc-java,bcgit/bc-java | package org.bouncycastle.jce.provider.test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.math.BigInteger;
import java.security.InvalidKeyException;
import java.security.KeyFactory;... | prov/src/test/java/org/bouncycastle/jce/provider/test/GOST3410Test.java | package org.bouncycastle.jce.provider.test;
import org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.params.ECDomainParameters;
import org.bouncycastle.crypto.params.ECPublicKeyParameters;
import org.bouncycastle.crypto.params.Pa... | Java 1.4 updates
| prov/src/test/java/org/bouncycastle/jce/provider/test/GOST3410Test.java | Java 1.4 updates | <ide><path>rov/src/test/java/org/bouncycastle/jce/provider/test/GOST3410Test.java
<ide> package org.bouncycastle.jce.provider.test;
<add>
<add>import java.io.ByteArrayInputStream;
<add>import java.io.ByteArrayOutputStream;
<add>import java.io.IOException;
<add>import java.io.ObjectInputStream;
<add>import java.io.Objec... | |
JavaScript | bsd-3-clause | 589960ef2e91960b8d817d8621c789991f6fcf73 | 0 | no-context/moo,tjvr/moo,no-context/moo,tjvr/moo |
const fs = require('fs')
const moo = require('../moo')
const compile = moo.compile
const python = require('./python')
function lexAll(lexer) {return Array.from(lexer)}
describe('moo compiler', () => {
test("warns for /g, /y, /i, /m", () => {
expect(() => compile({ word: /foo/ })).not.toThrow()
expect(()... | test/test.js |
const fs = require('fs')
const moo = require('../moo')
const compile = moo.compile
const python = require('./python')
function lexAll(lexer) {
var tokens = []
var token
while ((token = lexer.next())) {
tokens.push(token)
}
return tokens
}
describe('moo compiler', () => {
test("warns for /g, /y, ... | Implement lexAll the cool way
| test/test.js | Implement lexAll the cool way | <ide><path>est/test.js
<ide> const compile = moo.compile
<ide> const python = require('./python')
<ide>
<del>
<del>function lexAll(lexer) {
<del> var tokens = []
<del> var token
<del> while ((token = lexer.next())) {
<del> tokens.push(token)
<del> }
<del> return tokens
<del>}
<del>
<add>function lexAll(lexer) ... | |
JavaScript | isc | 7f61f1bdc9f57c9f6144b086c163fdaecc30916a | 0 | braddunbar/ozymandias,braddunbar/ozymandias | 'use strict'
const assets = require('./assets')
const qs = require('querystring')
const React = require('react')
const ReactDOM = require('react-dom/server')
const toJSON = require('object-tojson')
const url = require('url')
module.exports = (req, res, next) => {
res._react = (view, locals) => {
locals.layout =... | react.js | 'use strict'
const assets = require('./assets')
const qs = require('querystring')
const React = require('react')
const ReactDOM = require('react-dom/server')
const toJSON = require('object-tojson')
const url = require('url')
module.exports = (req, res, next) => {
res._react = (view, locals) => {
locals.layout =... | Use res.format
| react.js | Use res.format | <ide><path>eact.js
<ide> version: assets.version
<ide> })
<ide>
<del> if (req.accepts('json')) return res.json(state)
<add> res.format({
<ide>
<del> state = toJSON(state)
<add> json: () => res.json(state),
<ide>
<del> const component = req.component || req.app.get('component'... | |
JavaScript | apache-2.0 | 68065e71bc41609d0467d5ddfc278440452c91de | 0 | o2r-project/o2r-muncher,o2r-project/o2r-muncher,nuest/o2r-muncher,o2r-project/o2r-muncher,o2r-project/o2r-muncher,nuest/o2r-muncher,nuest/o2r-muncher,nuest/o2r-muncher,nuest/o2r-muncher,o2r-project/o2r-muncher | /*
* (C) Copyright 2016 o2r project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | test/meta.js | /*
* (C) Copyright 2016 o2r project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | fix test with new error message
| test/meta.js | fix test with new error message | <ide><path>est/meta.js
<ide> request(req_doc_plain, (err, res, body) => {
<ide> assert.ifError(err);
<ide> assert.isObject(body);
<del> assert.propertyVal(body, 'error', 'not authorized');
<add> assert.propertyVal(body, 'error', 'not authorized to edit metadata of ' + compendium_id);... | |
JavaScript | agpl-3.0 | 9eec37d4e61bb7d56c680defde10037022d3a1b2 | 0 | frankrousseau/cozy-controller-old,frankrousseau/cozy-controller-old | /*
* git.js: Implementation of the repository pattern for remote git repositories.
*
* (C) 2010, Nodejitsu Inc.
*
*/
var util = require('util'),
path = require('path'),
exec = require('child_process').exec,
haibu = require('../../haibu'),
Repository = require('./repository').Repository;
//
// ### func... | lib/haibu/repositories/git.js | /*
* git.js: Implementation of the repository pattern for remote git repositories.
*
* (C) 2010, Nodejitsu Inc.
*
*/
var util = require('util'),
path = require('path'),
exec = require('child_process').exec,
haibu = require('../../haibu'),
Repository = require('./repository').Repository;
//
// ### func... | code cleaning
| lib/haibu/repositories/git.js | code cleaning | <ide><path>ib/haibu/repositories/git.js
<ide> self.installDependencies(function (err, packages) {
<ide> return err ? callback(err) : callback(null, true, packages);
<ide> });
<del> }
<del>
<del> function installRequirementsPython() {
<del> self.installDependenciesPython(function (err, packages) {
<de... | |
Java | bsd-3-clause | a8acce1d816b0540b972e8ff7780350ca718829b | 0 | depryf/naaccr-xml,depryf/naaccr-xml | /*
* Copyright (C) 2015 Information Management Services, Inc.
*/
package com.imsweb.naaccrxml;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.Writer;
import java.nio.file.Path;
import java.nio.file.Paths;
import java... | src/test/java/com/imsweb/naaccrxml/NaaccrXmlDictionaryUtilsTest.java | /*
* Copyright (C) 2015 Information Management Services, Inc.
*/
package com.imsweb.naaccrxml;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.Writer;
import java.nio.file.Path;
import java.nio.file.Paths;
import java... | Fixed unit tests (#125)
| src/test/java/com/imsweb/naaccrxml/NaaccrXmlDictionaryUtilsTest.java | Fixed unit tests (#125) | <ide><path>rc/test/java/com/imsweb/naaccrxml/NaaccrXmlDictionaryUtilsTest.java
<ide> // make sure internal base dictionaries are valid
<ide> try (Reader reader = new InputStreamReader(Thread.currentThread().getContextClassLoader().getResourceAsStream("naaccr-dictionary-" + version + ".xml"))) {
... | |
Java | apache-2.0 | 2c41df6f087390d3c07b30be452f8c4a5ff2e091 | 0 | libris/librisxl,libris/librisxl,libris/librisxl | package whelk.export.marc;
import org.apache.commons.lang3.StringUtils;
import se.kb.libris.export.ExportProfile;
import se.kb.libris.util.marc.MarcRecord;
import se.kb.libris.util.marc.io.Iso2709MarcRecordWriter;
import se.kb.libris.util.marc.io.MarcRecordWriter;
import se.kb.libris.util.marc.io.MarcXmlRecordWriter;
... | marc_export/src/main/java/whelk/export/marc/TotalExport.java | package whelk.export.marc;
import org.apache.commons.lang3.StringUtils;
import se.kb.libris.export.ExportProfile;
import se.kb.libris.util.marc.MarcRecord;
import se.kb.libris.util.marc.io.Iso2709MarcRecordWriter;
import se.kb.libris.util.marc.io.MarcRecordWriter;
import se.kb.libris.util.marc.io.MarcXmlRecordWriter;
... | Close output before exiting
| marc_export/src/main/java/whelk/export/marc/TotalExport.java | Close output before exiting | <ide><path>arc_export/src/main/java/whelk/export/marc/TotalExport.java
<ide> output = new Iso2709MarcRecordWriter(System.out, encoding);
<ide>
<ide> new TotalExport(Whelk.createLoadedCoreWhelk()).dump(profile, size, segment, output);
<add> output.close();
<ide> }
<ide>
<ide> private... | |
Java | bsd-3-clause | acce2bdb7b01133cec4d63555a7ed432ace3d0c1 | 0 | sabitaacharya/semanticvectors,Lucky-Dhakad/semanticvectors,anhth12/semanticvectors,Lucky-Dhakad/semanticvectors,anhth12/semanticvectors,anhth12/semanticvectors,anhth12/semanticvectors,Lucky-Dhakad/semanticvectors,sabitaacharya/semanticvectors,sabitaacharya/semanticvectors,sabitaacharya/semanticvectors,Lucky-Dhakad/sema... | /**
Copyright (c) 2008, University of Pittsburgh
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list ... | src/pitt/search/semanticvectors/TermTermVectorsFromLucene.java | /**
Copyright (c) 2008, University of Pittsburgh
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list ... | Changed two bitwise OR operators (ie '|') into conditional OR operators (ie '||'). This allows short-circuiting the test when the first condition is true and it also reads easier because there is no expectation that the operands have bitwise meaning.
| src/pitt/search/semanticvectors/TermTermVectorsFromLucene.java | Changed two bitwise OR operators (ie '|') into conditional OR operators (ie '||'). This allows short-circuiting the test when the first condition is true and it also reads easier because there is no expectation that the operands have bitwise meaning. | <ide><path>rc/pitt/search/semanticvectors/TermTermVectorsFromLucene.java
<ide> }
<ide>
<ide> // If building a permutation index, these need to be written out to be reused.
<del> if ((Flags.positionalmethod.equals("permutation") | (Flags.positionalmethod.equals("permutation_plus_basic") ))&& !retraining) {
<... | |
Java | isc | 1b7a94424f177a410ab454aac39e6f8f99f6aebe | 0 | io7m/jparasol,io7m/jparasol | /*
* Copyright © 2013 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... | io7m-jparasol-compiler-core/src/main/java/com/io7m/jparasol/parser/Parser.java | /*
* Copyright © 2013 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... | Syntactically require at least one vertex and fragment shader output assignment
| io7m-jparasol-compiler-core/src/main/java/com/io7m/jparasol/parser/Parser.java | Syntactically require at least one vertex and fragment shader output assignment | <ide><path>o7m-jparasol-compiler-core/src/main/java/com/io7m/jparasol/parser/Parser.java
<ide> final List<UASTIDShaderFragmentOutputAssignment<UASTIUnchecked>> assigns =
<ide> new ArrayList<UASTIDShaderFragmentOutputAssignment<UASTIUnchecked>>();
<ide>
<add> assigns.add(this.declarationFragmentShaderOutpu... | |
Java | mit | 44c1bdd92f143d52182961119a1a3f2271e0b932 | 0 | codesqueak/Nascom | /*
* MIT License
*
* Copyright (c) 2016
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | src/main/java/com/codingrodent/emulator/cards/cpu/nascom2/CassetteTape.java | /*
* MIT License
*
* Copyright (c) 2016
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | Play cassette tape on any UART read request; do not automatically loop tape
This is necessary for using ZEAP, and potentially other systems that save data then
expect it to be played back directly into their user interface.
| src/main/java/com/codingrodent/emulator/cards/cpu/nascom2/CassetteTape.java | Play cassette tape on any UART read request; do not automatically loop tape | <ide><path>rc/main/java/com/codingrodent/emulator/cards/cpu/nascom2/CassetteTape.java
<ide> private FileInputStream tapeFileInput;
<ide> private FileOutputStream tapeFileOutput;
<ide> private String readFileName;
<add> private int readAheadChar;
<ide>
<ide> CassetteTape() {
<ide> systemConte... | |
Java | mit | 076cf872173e10c6ce8f6c69128d67b01b737e03 | 0 | ASzc/keratin-irc,emmettu/keratin-irc | /**
* Copyright (C) 2013 Alexander Szczuczko
*
* This file may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package ca.szc.keratin.core.misc;
import java.util.LinkedList;
import java.util.List;
public class LineWrap
{
/**
* According to RFC2812, ... | keratin-core/src/ca/szc/keratin/core/misc/LineWrap.java | package ca.szc.keratin.core.misc;
import java.util.LinkedList;
import java.util.List;
public class LineWrap
{
/**
* According to RFC2812, this is strictly 510 characters (as the maximum allowed for the command and its
* parameters), however we'll allow less than that to provide for room for the overhead... | Add license header to LineWrap
| keratin-core/src/ca/szc/keratin/core/misc/LineWrap.java | Add license header to LineWrap | <ide><path>eratin-core/src/ca/szc/keratin/core/misc/LineWrap.java
<add>/**
<add> * Copyright (C) 2013 Alexander Szczuczko
<add> *
<add> * This file may be modified and distributed under the terms
<add> * of the MIT license. See the LICENSE file for details.
<add> */
<ide> package ca.szc.keratin.core.misc;
<ide>
<ide> ... | |
Java | apache-2.0 | aec6b4af48c407a8e055656f0183f8d6eae1c9e2 | 0 | mufaddalq/cloudstack-datera-driver,jcshen007/cloudstack,wido/cloudstack,jcshen007/cloudstack,jcshen007/cloudstack,resmo/cloudstack,wido/cloudstack,mufaddalq/cloudstack-datera-driver,GabrielBrascher/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,DaanHoogland/cloudstack,resmo/cloudstack,GabrielBrascher/cloudstack,Da... | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | server/src/com/cloud/upgrade/dao/Upgrade302to40.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | [ASFCS40]Upgrade to 4.0: host_details unique key addition needs IGNORE keyword to correct the duplicates
| server/src/com/cloud/upgrade/dao/Upgrade302to40.java | [ASFCS40]Upgrade to 4.0: host_details unique key addition needs IGNORE keyword to correct the duplicates | <ide><path>erver/src/com/cloud/upgrade/dao/Upgrade302to40.java
<ide> s_logger.debug("Unique key already exists on host_details - not adding new one");
<ide> }else{
<ide> //add the key
<del> PreparedStatement pstmtUpdate = conn.prepareStatement("ALTER TABLE `clo... | |
Java | apache-2.0 | cdd0f5d0f9915459fb781c9db232dcba1d6ff2a3 | 0 | StrategyObject/fop,argv-minus-one/fop,StrategyObject/fop,Distrotech/fop,Distrotech/fop,StrategyObject/fop,argv-minus-one/fop,argv-minus-one/fop,StrategyObject/fop,Distrotech/fop,argv-minus-one/fop,argv-minus-one/fop,StrategyObject/fop,Distrotech/fop | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Bugzilla 52657: instream foreign object (svg) coloration incorrect
Submitted by Glenn Adams
git-svn-id: 102839466c3b40dd9c7e25c0a1a6d26afc40150a@1291292 13f79535-47bb-0310-9956-ffa450edef68
| src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java | Bugzilla 52657: instream foreign object (svg) coloration incorrect Submitted by Glenn Adams | <ide><path>rc/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java
<ide> MarkedContentInfo mci = pdfContext.getMarkedContentInfo();
<ide> generator.beginMarkedContentSequence(mci.tag, mci.mcid);
<ide> }
<del> generator.setColor(Color.black, false);
<del> generator.setColo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.