code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | ivan-fedorov/intellij-community | platform/platform-impl/src/com/intellij/ui/plaf/beg/BegBorders.java | Java | apache-2.0 | 8,804 |
/*
* Copyright 2001-2011 Stephen Colebourne
*
* 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... | Guardiola31337/joda-time | src/main/java/org/joda/time/ReadablePartial.java | Java | apache-2.0 | 6,784 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | akosyakov/intellij-community | platform/platform-impl/src/com/intellij/openapi/wm/ex/ToolWindowManagerEx.java | Java | apache-2.0 | 2,657 |
/**
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | hardbitcn/HardbitSafetyCheck | src/com/google/bitcoin/core/InventoryMessage.java | Java | apache-2.0 | 3,091 |
/**
* 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... | punkhorn/camel-upstream | tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelUnivocityParsersTest.java | Java | apache-2.0 | 1,889 |
package com.marshalchen.ultimaterecyclerview.demo;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.... | bunnyblue/UltimateRecyclerView | UltimateRecyclerView/app/src/main/java/com/marshalchen/ultimaterecyclerview/demo/TestAdMob.java | Java | apache-2.0 | 6,829 |
/**
* Copyright 1999-2014 dangdang.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | shuvigoss/dubbox | dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/fst/FstObjectOutput.java | Java | apache-2.0 | 2,448 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | kuzemchik/presto | presto-main/src/main/java/com/facebook/presto/operator/aggregation/RegressionAggregation.java | Java | apache-2.0 | 3,161 |
package com.intellij.codeInsight.daemon.quickFix;
import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection;
import org.jetbrains.annotations.NotNull;
public class GenerifyFileTest extends LightQuickFixAvailabilityTestCase {
@NotNu... | android-ia/platform_tools_idea | java/java-tests/testSrc/com/intellij/codeInsight/daemon/quickFix/GenerifyFileTest.java | Java | apache-2.0 | 665 |
/**
* 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... | vlajos/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestGetBlocks.java | Java | apache-2.0 | 11,426 |
/*
* Copyright 2000-2011 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... | ernestp/consulo | platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/projectRoot/daemon/PlaceInProjectStructureBase.java | Java | apache-2.0 | 1,658 |
/**
* 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... | nikvaessen/camel | components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/IronMQPreserveHeadersTest.java | Java | apache-2.0 | 2,656 |
/*
* Copyright (C) 2011 The Guava Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 10045125/guava | guava/src/com/google/common/hash/package-info.java | Java | apache-2.0 | 958 |
/*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | rokn/Count_Words_2015 | testing/openjdk2/langtools/test/tools/javac/processing/model/type/TestTypeKind.java | Java | mit | 2,478 |
/*
Copyright 2014 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | guiquanz/binnavi | src/test/java/com/google/security/zynamics/binnavi/Database/PostgreSQL/Notifications/parsers/PostgreSQLViewNotificationParserTest.java | Java | apache-2.0 | 17,823 |
package im.actor.messenger.app.fragment.group;
import android.os.Bundle;
import im.actor.messenger.R;
import im.actor.messenger.app.activity.BaseFragmentActivity;
/**
* Created by korka on 25.05.15.
*/
public class JoinPublicGroupActivity extends BaseFragmentActivity {
@Override
protected void onCreate(Bu... | fhchina/actor-platform | actor-apps/app-android/src/main/java/im/actor/messenger/app/fragment/group/JoinPublicGroupActivity.java | Java | mit | 600 |
/*
* 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... | asedunov/intellij-community | jps/model-api/src/org/jetbrains/jps/model/java/JpsJavaDependencyExtension.java | Java | apache-2.0 | 985 |
// "Create local variable 'zeit'" "true"
public class A {
void foo() {
ze<caret>it = A::foo;
}
static void foo(){}
}
| asedunov/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createLocalFromUsage/beforeMethodRef.java | Java | apache-2.0 | 138 |
import java.util.*;
abstract class GenericPanelControl {
protected abstract void _performAction(List<?> rowVector);
}
class WorkflowPanelControl extends GenericPanelControl {
protected void _performAction(List rowVector) {
}
}
class WorkflowSubPanelControl extends WorkflowPanelControl {
protected vo... | asedunov/intellij-community | java/java-tests/testData/codeInsight/completion/normal/SuperErasure_after.java | Java | apache-2.0 | 395 |
/*
* Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | rokn/Count_Words_2015 | testing/openjdk2/jdk/src/share/classes/sun/awt/geom/Order0.java | Java | mit | 3,227 |
/*
* 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... | zshift/spring-security | samples/x509-jc/src/main/java/org/springframework/security/samples/config/MessageSecurityWebApplicationInitializer.java | Java | apache-2.0 | 998 |
package org.json;
import java.io.IOException;
import java.io.Writer;
/*
Copyright (c) 2006 JSON.org
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 witho... | rbouckaert/YABBY | src/yabby/org/json/JSONWriter.java | Java | lgpl-3.0 | 10,677 |
// Copyright 2004-present Facebook. All Rights Reserved.
package com.facebook.react;
import javax.inject.Provider;
import com.facebook.react.bridge.NativeModule;
/**
* Provider for an already initialized and non-lazy NativeModule.
*/
public class EagerModuleProvider implements Provider<NativeModule> {
private ... | prayuditb/tryout-01 | websocket/client/Client/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/EagerModuleProvider.java | Java | mit | 496 |
package com.iluwatar.callback;
/**
*
* Callback interface
*
*/
public interface Callback {
public void call();
}
| ooon/java-design-patterns | callback/src/main/java/com/iluwatar/callback/Callback.java | Java | mit | 122 |
/**
* 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... | YMartsynkevych/camel | camel-core/src/test/java/org/apache/camel/component/seda/SedaInOnlyTest.java | Java | apache-2.0 | 1,582 |
package org.elasticsearch.index.analysis;
/*
* 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 Licens... | sreeramjayan/elasticsearch | plugins/analysis-icu/src/test/java/org/elasticsearch/index/analysis/IndexableBinaryStringToolsTests.java | Java | apache-2.0 | 9,964 |
/*
* Copyright 2012 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | KyCodeHuynh/QRU | zxing-master/zxing-master/core/src/test/java/com/google/zxing/pdf417/decoder/ec/ErrorCorrectionTestCase.java | Java | gpl-2.0 | 4,353 |
/* TabularData.java -- Tables of composite data structures.
Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Founda... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/libjava/classpath/javax/management/openmbean/TabularData.java | Java | gpl-2.0 | 9,916 |
package com.iluwatar.servicelayer.wizard;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.pers... | ooon/java-design-patterns | service-layer/src/main/java/com/iluwatar/servicelayer/wizard/Wizard.java | Java | mit | 1,383 |
/**
* 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 ... | tseen/Federated-HDFS | tseenliu/FedHDFS-hadoop-src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/MetaBlockDoesNotExist.java | Java | apache-2.0 | 1,320 |
/*
* Copyright © 2015 <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" AND ... | io7m/jcanephora | com.io7m.jcanephora.fake/src/main/java/com/io7m/jcanephora/fake/FakeArrayBuffers.java | Java | isc | 7,055 |
package headfirst.adapter.ducks;
public class TurkeyTestDrive {
public static void main(String[] args) {
MallardDuck duck = new MallardDuck();
Turkey duckAdapter = new DuckAdapter(duck);
for(int i=0;i<10;i++) {
System.out.println("The DuckAdapter says...");
duckAdap... | tbian7/pst | design_patterns/headfirst/adapter/ducks/TurkeyTestDrive.java | Java | mit | 383 |
package com.jeremiq.tictactoe.game.board;
public class InvalidMoveException extends Exception {
public InvalidMoveException(String message) {
super(message);
}
}
| jeremiq/tic-tac-toe | src/main/java/com/jeremiq/tictactoe/game/board/InvalidMoveException.java | Java | mit | 179 |
package io.mewbase.rwtest;
import io.mewbase.TestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.RandomAccessFile;
/**
* Created by tim on 11/10/16.
*/
public class MemoryMappedFileRWTest implements RWTest {
private final static Logger logger = LoggerFactory... | ssouris/mewbase | src/test/java/io/mewbase/rwtest/MemoryMappedFileRWTest.java | Java | mit | 1,622 |
package equus.webstack.application;
import java.net.URI;
import javax.ws.rs.core.UriBuilder;
import lombok.Setter;
import lombok.SneakyThrows;
import lombok.val;
import lombok.extern.slf4j.Slf4j;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
@Slf4j
public class JettyStarter... | equus52/java-web-stack | src/test/java/equus/webstack/application/JettyStarter.java | Java | mit | 2,013 |
package tweaking.concurrency.reetrantLockExample;
public class MainClass {
public static void main(final String[] args) {
final ThreadSafeArrayList<String> threadSafeList = new ThreadSafeArrayList<>();
final ListAdderThread threadA = new ListAdderThread("threadA", threadSafeL... | liggetm/Tweaking | TweakingGitHub/src/tweaking/concurrency/reetrantLockExample/MainClass.java | Java | mit | 594 |
package wiselabs.com.br.studylistandcards.entity;
/**
* Created by C.Lucas on 18/12/2016.
*/
public enum TipoProjeto {
LEI_ORDINARIA, LEI_COMPLEMENTAR, EMENDA_LEI_ORGANICA, DECRETO_LEGISLATIVO, RESOLUCAO;
}
| chrislucas/repo-android | views/support/StudyListAndCards/app/src/main/java/wiselabs/com/br/studylistandcards/entity/TipoProjeto.java | Java | mit | 214 |
/**
* Filesystem based directory storage.
*/
package com.github.basking2.sdsai.dsds.fs;
| basking2/sdsai-dsds | sdsai-dsds-core/src/main/java/com/github/basking2/sdsai/dsds/fs/package-info.java | Java | mit | 90 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.peering.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
/** Resource collection API ... | Azure/azure-sdk-for-java | sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/models/ReceivedRoutes.java | Java | mit | 2,571 |
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... | juniormesquitadandao/report4all | lib/src/net/sf/jasperreports/engine/component/ContextAwareComponent.java | Java | mit | 1,351 |
package example.naoki.ble_myo;
import java.util.ArrayList;
import java.util.StringTokenizer;
/**
* Created by naoki on 15/04/09.
*
*/
public class EmgData {
private ArrayList<Double> emgData = new ArrayList<>();
public EmgData() {
}
public EmgData(EmgCharacteristicData characteristicData) {
... | meleap/myo_AndoridEMG | BLE_myo/app/src/main/java/example/naoki/ble_myo/EmgData.java | Java | mit | 2,341 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerat... | BretJohnson/autorest | AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBATFileService.java | Java | mit | 746 |
package com.xinyiglass.springSample.entity;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.jdbc.core.RowMapper;
@SuppressWarnings("rawtypes")
public class FuncVO implements FactoryBean,RowMapper<FuncVO>, Cloneable{
private... | xygdev/XYG_ALB2B | src/com/xinyiglass/springSample/entity/FuncVO.java | Java | mit | 4,250 |
package com.pandu.remotemouse;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Help extends Dialog{
public Help(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
... | pandu1990/AndroidRemote | src/com/pandu/remotemouse/Help.java | Java | mit | 750 |
package com.ernieyu.feedparser;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.InputStream;
import java.net.URL;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.junit.After;... | ernieyu/simple-feed-parser | src/test/java/com/ernieyu/feedparser/LiveFeedTestSuite.java | Java | mit | 4,870 |
package ro.ubb.samples.structural.facade.point;
public class Client {
public static void main(String[] args) {
// 3. Client uses the Facade
Line lineA = new Line(new Point(2, 4), new Point(5, 7));
lineA.move(-2, -4);
System.out.println( "after move: " + lineA );
lineA.rot... | bmariesan/iStudent | src/main/java/ro/ubb/samples/structural/facade/point/Client.java | Java | mit | 558 |
package com.simmarith.sqlCon;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
public class Permission extends DbEntity {
// Properties
private String name = null;
private String description = null;
// Getter and Setter
public String getName() {
if (thi... | Simmarith/userMan | src/com/simmarith/sqlCon/Permission.java | Java | mit | 2,289 |
package org.frutilla.examples;
import org.frutilla.annotations.Frutilla;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertTrue;
/**
* Examples using Frutilla with annotations.
*/
@RunWith(value = org.frutilla.FrutillaTestRunner.class)
public class FrutillaExamplesWithAnn... | ignaciotcrespo/frutilla | java/src/test/java/org/frutilla/examples/FrutillaExamplesWithAnnotationTest.java | Java | mit | 1,278 |
package com.cccrps.gui;
import java.awt.AWTException;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Frame;
import java.awt.HeadlessException;
import java.awt.Image;
import java.awt.MenuItem;
import java.awt.PopupMenu;
import java.awt.SystemColor;
import java.awt.SystemTray;
import java.awt.Toolki... | FloThinksPi/Catalyst-PresetSwitcher | Server/src/com/cccrps/gui/GuiManager.java | Java | mit | 11,468 |
package finalir;
public class CoreLabel{
String word;
String lemma;
int position;
public CoreLabel setWord(String s){
word = s;
return this;
}
public String word(){
return word;
}
public CoreLabel setBeginPosition(int t){
posit... | bhlshrf/IR | src/finalir/DataStructure/CoreLabel.java | Java | mit | 726 |
// Template Source: BaseEntityCollectionResponse.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------... | microsoftgraph/msgraph-sdk-java | src/main/java/com/microsoft/graph/termstore/requests/StoreCollectionResponse.java | Java | mit | 752 |
/**
* Copyright (C) 2017 Cristian Gomez Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | iyubinest/Bonzai | app/src/main/java/co/iyubinest/bonzai/App.java | Java | mit | 1,212 |
package io.avalia.samba;
import org.junit.Assert;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
/**
* *** IMPORTANT WARNING : DO NOT EDIT THIS FILE ***
*
* This file is used to specify what you have to implement. To check your work,
* we will run our own copy of the automated tests. ... | AvaliaSystems/Samba | Samba-build/Samba-tests/src/test/java/io/avalia/samba/IluTest.java | Java | mit | 1,243 |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2012. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | trc492/Frc2015RecycleRush | code/WPILibJ/Victor.java | Java | mit | 3,781 |
package com.github.mizool.technology.aws.dynamodb;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTypeConverter;
public class ZonedDateTimeConverter implements DynamoDBTypeConverter<String, ZonedDateTime>
{
@Override
pu... | mizool/mizool | technology/aws/src/main/java/com/github/mizool/technology/aws/dynamodb/ZonedDateTimeConverter.java | Java | mit | 605 |
package com.syynth.libcfg;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
i... | Syynth/libcfg | src/com/syynth/libcfg/Config.java | Java | mit | 4,160 |
package cn.org.rapid_framework.page.impl;
import java.util.List;
import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageRequest;
/**
* 处理List的分页
* @author badqiu
* @see BasePage
*/
@Deprecated
public class ListPage extends Page {
/**
* 构建ListPage对象,完成List数据的分页处理
*
* @... | neolfdev/dlscxx | java_core_src/src/cn/org/rapid_framework/page/impl/ListPage.java | Java | mit | 1,198 |
package callete.api.services.music.streams;
/**
* Implementing classes retrieve the meta data information
* about a stream, such as artist, station name, track name...
*/
public interface StreamMetaDataProvider {
/**
* Returns the name of the artist that is currently played.
*/
String getArtist();
/**... | syd711/callete | callete-api/src/main/java/callete/api/services/music/streams/StreamMetaDataProvider.java | Java | mit | 648 |
/**
* Copyright 2012 multibit.org
*
* Licensed under the MIT license (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/mit-license.php
*
* Unless required by applicable law or agreed to in writing,... | rebroad/multibit | src/test/java/org/multibit/store/ReplayableBlockStoreTest.java | Java | mit | 5,156 |
package com.tek271.funj;
import com.google.common.annotations.Beta;
import java.util.List;
import static com.google.common.collect.Lists.newArrayList;
@Beta
public class Transformer {
private List<StepFunction> steps = newArrayList();
public static Transformer create() {
return new Transformer();
}
public T... | ahabra/funj | src/main/java/com/tek271/funj/Transformer.java | Java | mit | 653 |
package net.techcable.srglib.mappings;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.UnaryOperator;
import javax.annotation.Nullable;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableBiMap;
import net.techcable.srglib.F... | ProjectTestificate/SrgLib | src/main/java/net/techcable/srglib/mappings/ImmutableMappings.java | Java | mit | 7,965 |
package eu.sii.pl;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
*
*/
public class SiiFrame extends JFrame {
private JLabel loginLabel;
private JTextFie... | p-ja/javabeginner2017 | workshop/src/eu/sii/pl/SiiFrame.java | Java | mit | 4,015 |
package dab.common.entity.attributes;
/**
* Enumerable for the possible directions a player will be going.
* Players will either being going left, right, up, down, or even
* nowhere at all.
*
* @author Eli Irvin
*/
public enum Direction
{
LEFT, UP, RIGHT, DOWN, NONE;
}
| An-Huynh/Destroy-All-Baddies | src/main/java/dab/common/entity/attributes/Direction.java | Java | mit | 279 |
package edu.utah.nanofab.coralapiserver.core;
public class EnableRequest {
private String item;
private String member;
public String getItem() {
return item;
}
public void setItem(String item) {
this.item = item;
}
public String getMember() {
return member;
}
public void setMember(String ... | ufabdyop/coralapiserver | src/main/java/edu/utah/nanofab/coralapiserver/core/EnableRequest.java | Java | mit | 518 |
package edu.hm.hafner.analysis.parser;
import org.junit.jupiter.api.Test;
import edu.hm.hafner.analysis.Issue;
import edu.hm.hafner.analysis.Issues;
import edu.hm.hafner.analysis.Priority;
import static edu.hm.hafner.analysis.assertj.IssuesAssert.*;
import static edu.hm.hafner.analysis.assertj.SoftAssertions.*;
/**
... | whaph/analysis-model | src/test/java/edu/hm/hafner/analysis/parser/LinuxKernelOutputParserTest.java | Java | mit | 8,907 |
package com.jetbrains.ther.lexer;
import com.google.common.collect.ImmutableMap;
import com.intellij.psi.TokenType;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.tree.TokenSet;
import com.jetbrains.ther.psi.TheRElementType;
//deprecated
// DO NOT USE
public class TheRTokenTypes {
/*
* There ... | ktisha/TheRPlugin | src/com/jetbrains/ther/lexer/TheRTokenTypes.java | Java | mit | 12,305 |
package com.artbeatte.launchpad;
import com.google.common.collect.ImmutableMap;
import io.dropwizard.Configuration;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.db.DataSourceFactory;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Collections;... | abeatte/launchpad | src/main/java/com/artbeatte/launchpad/LaunchpadConfiguration.java | Java | mit | 1,603 |
package com.edinubuntu.petlove.fragment;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.LayoutInflater;
import android.vi... | edwardinubuntu/PetBook | PetLove/src/main/java/com/edinubuntu/petlove/fragment/MarketSuggestionFragment.java | Java | mit | 6,305 |
package com.microsoft.bingads.v12.api.test.entities.criterions.adgroup.profile;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import com.microsoft.bingads.v12.api.test.entities.criterions.adgroup.profile.write.*;
@RunWith(Suite.class)
@Suite.SuiteClasses({
BulkAdGroupCompanyNameCriterionWriteP... | bing-ads-sdk/BingAds-Java-SDK | src/test/java/com/microsoft/bingads/v12/api/test/entities/criterions/adgroup/profile/BulkAdGroupProfileCriterionWriteTests.java | Java | mit | 691 |
//
// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802
// Consulte <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem.
// Gerado ... | Samuel-Oliveira/Java_CTe | src/main/java/br/com/swconsultoria/cte/schema_300/evPrestDesacordo/TUFSemEX.java | Java | mit | 2,329 |
package trusis.config.personaggi;
import java.util.ArrayList;
import java.util.List;
import trusis.config.personaggi.define.Personaggio;
import trusis.config.personaggi.define.stdPersonaggio;
import trusis.config.poteri.UccisioneNotturna;
import trusis.config.poteri.define.Potere;
public class Trusis exten... | rudidudi/Trusis | src/trusis/config/personaggi/Trusis.java | Java | mit | 1,137 |
package modtweaker.mods.botania.handlers;
import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IIngredient;
import minetweaker.api.item.IItemStack;
import com.blamejared.mtlib.helpers.LogHelper;
import com.blamejared.mtlib.utils.BaseListAddition;
import com.blamejared.mtlib.utils.BaseListRemoval;
import stan... | elucent/ModTweaker | src/main/java/modtweaker/mods/botania/handlers/Apothecary.java | Java | mit | 3,285 |
package database_comm;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.sun.scenario.Settings;
import config.ProgramSettings;
public class DatabaseConnection
{
static final String JDBC_DRIVER = "com.microsoft.... | TeamRedFox/PointOfSale | src/database_comm/DatabaseConnection.java | Java | mit | 2,148 |
package com.github.badoualy.telegram.tl.api.request;
import com.github.badoualy.telegram.tl.TLContext;
import com.github.badoualy.telegram.tl.api.TLAbsInputUser;
import com.github.badoualy.telegram.tl.api.TLAbsUpdates;
import com.github.badoualy.telegram.tl.core.TLMethod;
import com.github.badoualy.telegram.tl.core.TL... | badoualy/kotlogram | tl/src/main/java/com/github/badoualy/telegram/tl/api/request/TLRequestMessagesAddChatUser.java | Java | mit | 3,599 |
/*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2016 Eric Lafortune @ GuardSquare
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the F... | anphetamina/GG-well-trade | app/proguard5.3.1/src/proguard/GPL.java | Java | mit | 6,530 |
package redis.clients.jedis;
import static redis.clients.jedis.Protocol.toByteArray;
import java.io.Closeable;
import java.net.URI;
import java.util.AbstractMap;
import java.util.AbstractSet;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.... | carlvine500/jedis | src/main/java/redis/clients/jedis/BinaryJedis.java | Java | mit | 126,814 |
package com.tinkerrocks.process.traversal;
import org.apache.tinkerpop.gremlin.process.traversal.P;
import java.util.function.BiPredicate;
/** <p> Class with predicate of string Ignore case contains</p>
* Created by ashishn on 8/16/15.
*/
public class Predicate<V> extends P<V> {
public Predicate(BiPredicate<V,... | anagav/TinkerRocks | src/main/java/com/tinkerrocks/process/traversal/Predicate.java | Java | mit | 927 |
package miquilini.felipe.intermediario.carta;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public enum Carta {
PAUS_4(0, "Quatro de Paus", 1), COPAS_4(1, "Quatro de Copas", 1), ESPADAS_4(2, "Quatro de Espadas", 1), OUROS_4(3, "Quatro de Ouros", 1),
PAUS_5(4, "Cinco de Paus", 2), CO... | felipexpert/truco | src/miquilini/felipe/intermediario/carta/Carta.java | Java | mit | 3,592 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.servicebus;
import com.microsoft.azure.servicebus.management.AccessRights;
import com.microsoft.azure.servicebus.management.AuthorizationRule;
import com.microsoft.azure.servicebus.management.En... | navalev/azure-sdk-for-java | sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/ManagementTests.java | Java | mit | 27,721 |
package sales.bucket.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import sales.users.domain.User;
import javax.persistence.*;
import java.util.List;
/**
* Created by taras on 13.08.15.
*/
@Entity
@Table(name="buckets")
public class Bucket {
... | softjourn-internship/sales-if-ua | src/main/java/sales/bucket/domain/Bucket.java | Java | mit | 968 |
package com.f2prateek.segment.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.util.Collections;
import java.util.Date;
import java.util.Map;
import static com.f2prateek.segment.model.Utils.assertNotNull;
import static com.f2prateek.segment.model.Utils.assertNo... | f2prateek/segment-android | segment-model/src/main/java/com/f2prateek/segment/model/ScreenMessage.java | Java | mit | 5,218 |
package com.witchworks.api.brew;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.DamageSource;
import net.minecraftforge.event.entity.living.LivingDeathEvent;
/**
* This class was created by Arekkuusu on 06/06/2017.
* It's distributed as part of Witchworks under
* the MIT license.
*/
publi... | backuporg/Witchworks | src/main/java/com/witchworks/api/brew/IBrewDeath.java | Java | mit | 447 |
package org.innovateuk.ifs.management.publiccontent.formpopulator.section;
import org.innovateuk.ifs.competition.publiccontent.resource.PublicContentSectionType;
import org.innovateuk.ifs.management.publiccontent.form.section.ScopeForm;
import org.innovateuk.ifs.management.publiccontent.formpopulator.PublicContentFor... | InnovateUKGitHub/innovation-funding-service | ifs-web-service/ifs-competition-mgt-service/src/main/java/org/innovateuk/ifs/management/publiccontent/formpopulator/section/ScopeFormPopulator.java | Java | mit | 842 |
/**
* Copyright (C) 2014 Kasper Kronborg Isager.
*/
package dk.itu.donkey;
// SQL utilities
import java.sql.SQLException;
/**
* The Schema class is used for executing Data Definition Language (DDL)
* statements against a database thus handling schema definition.
*
* @see <a href="https://en.wikipedia.org/wiki/D... | kasperisager/bookie | src/main/java/dk/itu/donkey/Schema.java | Java | mit | 5,660 |
package com.jexpect.exception_messages;
import org.junit.Test;
import com.jexpect.util.Command;
import static com.jexpect.Expect.expect;
import static com.jexpect.util.ExceptionHandler.getExceptionMessage;
import static org.junit.Assert.assertEquals;
public class ToBeBooleanTest {
@Test
public void When_Expect... | mustah/jexpect | test/com/jexpect/exception_messages/ToBeBooleanTest.java | Java | mit | 1,619 |
package com.dwarfartisan.parsec;
import java.io.EOFException;
/**
* Created by Mars Liu on 2016-01-07.
* Digit 判断下一个项是否是一个表示数字的字符.它仅接受 Character/char .
*/
public class Digit<Status, Tran> implements Parsec<Character, Character, Status, Tran> {
@Override
public Character parse(State<Character, Status, Tran>... | Dwarfartisan/jparsec | advance/src/java/com/dwarfartisan/parsec/Digit.java | Java | mit | 653 |
public class SockServer {
/**
* @param args
*/
public static void main(String[] args) {
SockServerController server = new SockServerController(9679);
server.runServer();
}
}
| shwarzes89/ExpressionPredictor | src/SockServer.java | Java | mit | 203 |
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* Demonstrate 2D array of GUI components. (This could all be done using a
* 1D a... | BoiseState/CS121-resources | examples/chap06/TwoDColorChooser.java | Java | mit | 2,653 |
package jxdo.rjava;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.Ja... | javasuki/RJava | NXDO.Java.V2015/jxdo.rjava/src/jxdo/rjava/JCSharp.java | Java | mit | 6,826 |
package com.ado.java.odata.pool;
import java.sql.Connection;
import java.sql.SQLException;
public interface Pool {
/**
* Make a new connection
*
* @throws SQLException
*/
Connection makeConnection() throws SQLException;
/**
* Gets a valid connection from the connection pool
... | AdoHe/ODataSync | src/main/java/com/ado/java/odata/pool/Pool.java | Java | mit | 698 |
/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Feb 14, 2015, 3:28:54 PM (GM... | goldenapple3/CopperTools | src/api/vazkii/botania/api/corporea/CorporeaHelper.java | Java | mit | 11,357 |
/**
*
*/
package cn.sefa.test.combinator;
/**
* @author Lionel
*
*/
public class Result {
private String recognized ;
private String remaining;
private boolean succeeded ;
private Result(String recognized , String remaining , boolean succeeded){
this.recognized = recognized;
this.remaining = rema... | LLionel/sefa | src/cn/sefa/test/combinator/Result.java | Java | mit | 1,109 |
package com.cgroups.gendata;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
public class RandomEntry {
private ArrayList<String> words;
private ArrayList<Double> weights;
Random random = null;
private double total_weight;
... | hustcalm/elasticsearch-hotsearch | wap-gen-data/src/com/cgroups/gendata/RandomEntry.java | Java | mit | 2,458 |
package bj174x.bj1740;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Created by jsong on 30/03/2017.
*
* @hackerrank https://www.hackerrank.com/jsong00505
* @backjoon https://www.acmicpc.net/user/jsong00505
* @github https://github.com/jsong00505
* @linkedin https://www.linkedin.com/in/junesongsko... | jsong00505/Coding-Practice | backjoon/src/bj174x/bj1740/Main.java | Java | mit | 1,203 |
import java.io.IOException;
import java.io.FileInputStream;
public class UsingFileInputStream{
public static void main(String[] main) throws IOException{
FileInputStream fis=new FileInputStream("file.txt");
int i;
while((i=fis.read())!=-1){
System.out.print((char)i);
}
fis.close();
}
} | AlphaBAT69/Java-Programs | IOPackage/UsingFileInputStream.java | Java | mit | 302 |
/* The MIT License (MIT)
*
* Copyright (c) 2015 Reinventing Geospatial, Inc.
*
* 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 righ... | GitHubRGI/swagd | RGISuite/src/main/java/com/rgi/suite/tilestoreadapter/TileStoreWriterAdapter.java | Java | mit | 3,466 |
package me.rbrickis.mojo.utils;
public final class PrimitiveUtils {
public static Object toPrimitiveNumber(Number number) {
if (number instanceof Byte) {
return number.byteValue();
} else if (number instanceof Long) {
return number.longValue();
} else if (number ins... | rbrick/Mojo | Core/src/main/java/me/rbrickis/mojo/utils/PrimitiveUtils.java | Java | mit | 784 |
package com.gpshub.api;
import android.util.Log;
import com.gpshub.utils.Preferences;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.ut... | illusionww/gpsHub | client/app/src/main/java/com/gpshub/api/AccountManager.java | Java | mit | 2,355 |
package com.daeliin.components.persistence.resource.repository;
import com.daeliin.components.core.pagination.Page;
import com.daeliin.components.core.pagination.PageRequest;
import com.querydsl.core.types.OrderSpecifier;
import com.querydsl.core.types.Predicate;
import com.querydsl.sql.RelationalPathBase;
import com.... | Daeliin/java-components | components-persistence/src/main/java/com/daeliin/components/persistence/resource/repository/BaseRepository.java | Java | mit | 3,785 |
package com.tempestasludi.java.p14_cssp.pcss.selectors;
import static org.junit.Assert.*;
import org.junit.Test;
public class IdTest {
@Test
public void testId() {
Id id = new Id("main");
assertEquals("main", id.getName());
}
@Test
public void testToString() {
Id id = new Id("main");
assertEquals("#ma... | TempestasLudi/CSS-Preprocessor | src/test/java/com/tempestasludi/java/p14_cssp/pcss/selectors/IdTest.java | Java | mit | 347 |