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
package de.egga; import org.junit.Ignore; import org.junit.Test; import static de.egga.Position.CENTER; import static org.assertj.core.api.Assertions.assertThat; public class GameTest { @Test public void it_should_have_no_winner_before_first_move() { Game game = new Game(); assertThat(game.g...
Egga/katas
modules/tic_tac_toe/src/test/java/de/egga/GameTest.java
Java
unlicense
702
public class TeamsSelection { public String simulate(int[] preference1, int[] preference2) { char[] res = new char[preference1.length]; boolean[] taken = new boolean[preference1.length]; int first = 0; int second = 0; for (int i=0; i<preference1.length; i++) { int p = -1; while (p==-1 || taken[...
mariusj/contests
srm586/src/TeamsSelection.java
Java
unlicense
3,227
package com.github.fmottard.spanish.dto; import java.time.LocalDateTime; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor public class GenericAnswer<T> { private String answer; private LocalDateTime answerTime; private T question; private int score; public GenericAnswer(T questio...
fmottard/spanish-quizz-service
src/main/java/com/github/fmottard/spanish/dto/GenericAnswer.java
Java
unlicense
394
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.0...
JorgeVector/OfertaGuiadaVector
src/main/java/com/isb/og/wsdl/ofegui/ComIsbSanoguServiciosdirogEFCbBuscGestoraFISType.java
Java
unlicense
3,138
package nc.liat6.frame.json.wrapper; import nc.liat6.frame.json.JSON; public abstract class AbstractJsonWrapper implements IJsonWrapper{ /** 是否极简(不缩进不换行) */ protected boolean tiny; /** 字符串首尾的引号 */ protected String quote; /** 数字是否使用引号 */ protected boolean numberQuoted; protected AbstractJs...
6tail/nlf
src/nc/liat6/frame/json/wrapper/AbstractJsonWrapper.java
Java
unlicense
815
package android.support.v4.view; public abstract interface ScrollingView { public abstract int computeHorizontalScrollExtent(); public abstract int computeHorizontalScrollOffset(); public abstract int computeHorizontalScrollRange(); public abstract int computeVerticalScrollExtent(); public abstract int c...
clilystudio/NetBook
allsrc/android/support/v4/view/ScrollingView.java
Java
unlicense
583
package com.umeng.update; import android.content.Context; final class j implements Runnable { private Context a; public j(Context paramContext) { this.a = paramContext; } public final void run() { try { localUpdateResponse = new n(this.a).a(); if (localUpdateResponse == null) ...
clilystudio/NetBook
allsrc/com/umeng/update/j.java
Java
unlicense
1,010
package com.ushaqi.zhuishushenqi.widget; import android.content.Context; import android.text.InputFilter; import android.util.AttributeSet; import android.widget.EditText; public class NicknameEditText extends EditText { public NicknameEditText(Context paramContext, AttributeSet paramAttributeSet) { super(par...
clilystudio/NetBook
allsrc/com/ushaqi/zhuishushenqi/widget/NicknameEditText.java
Java
unlicense
759
package com.siclhos.controller; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.select.SelectorComposer; import org.zkoss.zk.ui.select.annotation.*; import org.zkoss.zul.*; public class ExampleController extends SelectorComposer<Component> { private static final long serialVersionUID = 1L; @Wire priva...
delimce/frameworkj6ee
src/java/com/siclhos/controller/ExampleController.java
Java
unlicense
591
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. All third-party contributions are * distributed under license by Red ...
codeApeFromChina/resource
frame_packages/java_libs/hibernate-distribution-3.6.10.Final/project/hibernate-core/src/main/java/org/hibernate/id/enhanced/AccessCallback.java
Java
unlicense
1,526
package com.iteye.baowp.netty.handler; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Created with IntelliJ IDEA. * User: baowp * Date: 12/30/13 * Time: 11:05 AM */ public ...
baowp/test-sample
src/main/java/com/iteye/baowp/netty/handler/TimeServerHandler.java
Java
unlicense
1,207
import java.io.*; public class TestObjectStream { public static void main(String[] args) { T t=new T(); t.d=100; try { FileOutputStream fos=new FileOutputStream("/home/wusicheng/workspace/the.txt"); ObjectOutputStream ops=new ObjectOutputStream(fos); ops.writeObject(t); ops.flush(); ops.close(); ...
WuSicheng54321/Thinking-in-Java-4th
ThinkingInJava18/src/TestObjectStream.java
Java
apache-2.0
996
package com.hasee.pangci.activity; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.FloatingActionButton; import android.support.design.widg...
JunGeges/PangCi
app/src/main/java/com/hasee/pangci/activity/MainActivity.java
Java
apache-2.0
20,873
package nl.nn.adapterframework.align; import static org.junit.Assert.assertEquals; import java.net.URL; import org.junit.Test; import org.w3c.dom.Document; /** * @author Gerrit van Brakel */ public class TestValidations { public void validationTest(String namespace, String xsd, String xmlResource, boolean expec...
ibissource/iaf
core/src/test/java/nl/nn/adapterframework/align/TestValidations.java
Java
apache-2.0
1,360
package info.bluefoot.scripts.threadpool; import java.util.Date; import java.util.LinkedList; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Thread pool. <br /> * This will create a number of threads that should be given at construction. <br /> * While there's still something to be executed, the t...
bluefoot/scripts
utils/src/main/java/info/bluefoot/scripts/threadpool/WorkerPool.java
Java
apache-2.0
4,762
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
consulo/consulo-python
python-impl/src/main/java/com/jetbrains/python/parsing/StatementParsing.java
Java
apache-2.0
32,571
/* * Copyright 2006 Ryan Heaton * * 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...
uniqueid001/enunciate
javac-support/src/main/java/com/webcohesion/enunciate/javac/decorations/element/DecoratedAnnotationMirror.java
Java
apache-2.0
2,299
package cn.fql.account.dao.mapper; import cn.fql.account.model.domain.AcctFlow; import tk.mybatis.mapper.common.Mapper; public interface AcctFlowMapper extends Mapper<AcctFlow> { }
fuquanlin/fishbone
account/src/main/java/cn/fql/account/dao/mapper/AcctFlowMapper.java
Java
apache-2.0
182
/* ### * IP: GHIDRA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
NationalSecurityAgency/ghidra
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/ClearAction.java
Java
apache-2.0
2,076
/* * Copyright 2003-2007 Dave Griffith, Bas Leijdekkers * * 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 applicab...
goodwinnk/intellij-community
plugins/IntentionPowerPak/src/com/siyeh/ipp/switchtoif/SwitchPredicate.java
Java
apache-2.0
2,111
package mil.nga.giat.osm; import com.google.common.io.BaseEncoding; import mil.nga.giat.osm.accumulo.osmschema.Schema; import org.junit.Assert; import org.junit.Test; import static org.junit.Assert.*; public class ColumnQualifierTest { @Test(expected=NullPointerException.class) public void TAG_QUALIFIER_NUL...
ngageoint/geowave-osm
src/test/java/mil/nga/giat/osm/ColumnQualifierTest.java
Java
apache-2.0
826
package com.redhat.osas.finder.util; import java.util.List; import com.sun.syndication.feed.synd.SyndContent; public class SyndUtil { public static String convertToString(SyndContent syndContent) { return syndContent.getValue(); } public static String convertToString(List<SyndContent> syndContent) { StringBu...
jottinger/finder
src/main/java/com/redhat/osas/finder/util/SyndUtil.java
Java
apache-2.0
470
package com.citraining.core.sample.impl; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.ConfigurationPolicy; import org.osgi.service.component.annotations.Modified; import org.osgi.service.metatype.ann...
phoolhbti/AEM
citraining/core/src/main/java/com/citraining/core/sample/impl/ConfigurationFactoryImpl.java
Java
apache-2.0
1,515
package amai.org.conventions.customviews; import android.content.Context; import androidx.appcompat.widget.ActionMenuView; import androidx.appcompat.widget.Toolbar; import android.util.AttributeSet; import android.view.Gravity; import android.view.View; import android.view.ViewParent; import android.widget.FrameLayout...
dbahat/conventions
Conventions/app/src/main/java/amai/org/conventions/customviews/CenterInToolbarFrameLayout.java
Java
apache-2.0
3,688
/* * Copyright 2015 David Laurell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
daverix/slingerORM
compiler/src/main/java/net/daverix/slingerorm/compiler/TypeElementConverter.java
Java
apache-2.0
815
package com.jude.controller; import com.jude.entity.Customer; import com.jude.entity.InteractiveItem; import com.jude.json.JSONArray; import com.jude.json.JSONObject; import com.jude.service.InteractiveItemService; import com.jude.util.ExtJS; import com.jude.util.HttpUtils; import com.jude.util.PagingSet; ...
hairlun/customer-visit-web
src/com/jude/controller/InteractiveItemController.java
Java
apache-2.0
5,029
/* * Copyright 2008 Davy Verstappen. * * 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 ag...
dverstap/wintersleep
wintersleep-spring-util/src/test/java/org/wintersleep/util/spring/tx/FirstService.java
Java
apache-2.0
837
/* * GRAL: GRAphing Library for Java(R) * * (C) Copyright 2009-2012 Erich Seifert <dev[at]erichseifert.de>, * Michael Seifert <michael[at]erichseifert.de> * * This file is part of GRAL. * * GRAL is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Licens...
charles-cooper/idylfin
src/de/erichseifert/gral/graphics/Container.java
Java
apache-2.0
3,199
/* * Copyright 2013-2020 consulo.io * * 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 ...
consulo/consulo
modules/base/platform-impl/src/main/java/consulo/ide/plugins/PluginsConfigurable.java
Java
apache-2.0
3,255
package org.hbird.transport.protocols.kiss; public final class KissConstants { /** Frame end */ public static final byte FEND = (byte) 0xC0; /** Frame escape */ public static final byte FESC = (byte) 0xDB; /** Transposed frame end */ public static final byte TFEND = (byte) 0xDC; /** Transposed frame escape ...
JohannesKlug/hbird
src/transport/protocols/src/main/java/org/hbird/transport/protocols/kiss/KissConstants.java
Java
apache-2.0
2,101
package org.schema.api.model.thing.place.civicStructure; public class Bridge extends CivicStructure { private String openingHours; public String getOpeningHours() { return openingHours; } public void setOpeningHours(String openingHours) { this.openingHours = openingHours; } }
omindra/schema_org_java_api
core_with_extensions/src/main/java/org/schema/api/model/thing/place/civicStructure/Bridge.java
Java
apache-2.0
290
package com.guitar.config; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; @Configuration @EnableJpaRepositories(basePackages={"com.guitar.repository"}) public class JpaConfiguration { }
dlbunker/ps-guitar-rest
src/main/java/com/guitar/config/JpaConfiguration.java
Java
apache-2.0
280
/* * Copyright (c) 2016-present, RxJava Contributors. * * 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...
ReactiveX/RxJava
src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFromMaybeTest.java
Java
apache-2.0
2,547
package com.Voxce.model; import java.sql.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="label_texts") public class LabelTexts { private int label_text_id; ...
trialmanager/voxce
src/com/Voxce/model/LabelTexts.java
Java
apache-2.0
2,089
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
vocefiscal/vocefiscal-android
Code/src/org/vocefiscal/asynctasks/AsyncTask.java
Java
apache-2.0
27,929
package com.xhaus.modjy; import com.mockrunner.base.NestedApplicationException; import org.python.core.PyException; public class ModjyTestHeaders extends ModjyTestBase { // From: http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.5.1 final static String[] hop_by_hop_headers = new String[] { ...
pjenvey/modjy-pjenvey
test/com/xhaus/modjy/ModjyTestHeaders.java
Java
apache-2.0
5,938
/******************************************************************************* * Copyright (c) 2013 GigaSpaces Technologies Ltd. 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 th...
Gigaspaces/xap-openspaces
src/main/java/org/openspaces/grid/gsm/machines/backup/MachinesStateBackupToSpace.java
Java
apache-2.0
8,314
/** * Entity Essentials -- A Component-based Entity System * * Copyright (C) 2017 Elmar Schug <elmar.schug@jayware.org>, * Markus Neubauer <markus.neubauer@jayware.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
jayware/entity-essentials
entity-essentials-api/src/main/java/org/jayware/e2/storage/api/Storage.java
Java
apache-2.0
820
package com.sibilantsolutions.grison.evt; import com.sibilantsolutions.grison.driver.foscam.domain.AlarmTypeE; public class AlarmEvt { private final AlarmTypeE alarmType; public AlarmEvt(AlarmTypeE alarmType) { this.alarmType = alarmType; } public AlarmTypeE getAlarmType() { ...
jtgeiger/grison
lib/src/main/java/com/sibilantsolutions/grison/evt/AlarmEvt.java
Java
apache-2.0
348
package com.planet_ink.coffee_mud.Abilities.Songs; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; impor...
oriontribunal/CoffeeMud
com/planet_ink/coffee_mud/Abilities/Songs/Play_Flutes.java
Java
apache-2.0
2,309
package mdx.gsd.data.service; import mdx.gsd.data.model.SurveyPaei; import java.util.List; /** * Created by universe (E.) on 12/06/17. */ public interface SurveyPaeiService { void addSurveyPaei(SurveyPaei surveyPaei); void updateSurveyPaei(SurveyPaei surveyPaei); SurveyPaei getSurveyPaeiById(Intege...
EvanMark/Spring-REST-API
src/main/java/mdx/gsd/data/service/SurveyPaeiService.java
Java
apache-2.0
464
package io.cattle.platform.allocator.service.impl; import io.cattle.platform.core.util.PortSpec; import java.util.List; public class PortBindingResourceRequest implements ResourceRequest { private String instanceId; private String resourceUuid; private String resource; private List<PortSpec> portRequ...
Cerfoglg/cattle
code/iaas/allocator/src/main/java/io/cattle/platform/allocator/service/impl/PortBindingResourceRequest.java
Java
apache-2.0
1,312
/** * Copyright (c) 2015 Intel Corporation * * 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 ...
trustedanalytics/hdfs-broker
src/main/java/org/trustedanalytics/servicebroker/hdfs/plans/binding/HdfsBindingClient.java
Java
apache-2.0
2,311
/**************************************************************** * Licensed to the AOS Community (AOS) under one or more * * contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regarding copyright ownership. The AOS licenses this...
XClouded/t4f-core
java/security/crypto/src/main/java/io/aos/crypto/spl02/KeyGeneratorExample.java
Java
apache-2.0
3,479
package info.jdavid.ok.server.header; /** * ETag header. */ @SuppressWarnings({ "WeakerAccess" }) public final class ETag { private ETag() {} public static final String HEADER = "ETag"; public static final String IF_MATCH = "If-Match"; public static final String IF_NONE_MATCH = "If-None-Match"; }
programingjd/okserver
src/main/java/info/jdavid/ok/server/header/ETag.java
Java
apache-2.0
314
package com.sequenceiq.cloudbreak.core.flow2.config; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import javax.annotation.PostConstruct; import javax.annotation.Resource; import javax.inject.Inject; import org.springframework.stereotype.Component...
sequenceiq/cloudbreak
core/src/main/java/com/sequenceiq/cloudbreak/core/flow2/config/Flow2Initializer.java
Java
apache-2.0
1,149
package eu.hangar.sk.module.modules; import org.lwjgl.input.Keyboard; import eu.hangar.sk.event.EventTarget; import eu.hangar.sk.module.Module; import net.minecraft.client.Minecraft; @Module.ModInfo(name = " Tableflip", description = "tableflip", category = Module.Catergoy.SALT, bind = Keyboard.KEY_P) publi...
HangarGeek/SaltKlient
eu/hangar/sk/module/modules/tableflip.java
Java
apache-2.0
557
/* * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl1.php * * Unless required by...
vivantech/kc_fixes
src/main/java/org/kuali/kra/subaward/document/authorizer/SubAwardAuthorizer.java
Java
apache-2.0
2,286
// ============================================================================ // // Copyright (C) 2006-2015 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
pbailly/daikon
daikon/src/test/java/org/talend/daikon/i18n/package1/TestClass1.java
Java
apache-2.0
795
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.toolbar; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Handler; import...
Smalinuxer/Vafrinn
app/src/main/java/org/chromium/chrome/browser/toolbar/ToolbarManager.java
Java
apache-2.0
42,616
/* * 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 n...
lqbweb/logging-log4j2
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
Java
apache-2.0
16,439
package biz.neustar.ultra.rest.client; import biz.neustar.ultra.rest.client.util.JsonUtils; import biz.neustar.ultra.rest.constants.UltraRestSharedConstant; import biz.neustar.ultra.rest.constants.ZoneType; import biz.neustar.ultra.rest.dto.AccountList; import biz.neustar.ultra.rest.dto.AlertDataList; import biz.neust...
ultradns/java_rest_api_client
src/main/java/biz/neustar/ultra/rest/client/RestApiClient.java
Java
apache-2.0
50,261
package com.vanillaci.worker.testplugins; import com.vanillaci.plugins.*; import com.vanillaci.worker.model.*; /** * Simply terminates * Created by joeljohnson on 11/27/14. */ public class TerminateStep implements WorkStep { @Override public void execute(WorkContext workContext) { workContext.setTerminated(tru...
vanilla-ci/worker
src/test/java/com/vanillaci/worker/testplugins/TerminateStep.java
Java
apache-2.0
329
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
aws/aws-sdk-java
aws-java-sdk-qldb/src/main/java/com/amazonaws/services/qldb/model/transform/DescribeJournalKinesisStreamResultJsonUnmarshaller.java
Java
apache-2.0
3,008
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
aws/aws-sdk-java
aws-java-sdk-neptune/src/main/java/com/amazonaws/services/neptune/model/transform/DeleteDBInstanceRequestMarshaller.java
Java
apache-2.0
2,434
/* * TlosSW_V1.0_Model * com.likya.tlossw.model.client.resource : CpuInfoTypeClient.java * @author Merve Ozbey * Tarih : 29.Sub.2012 09:55:35 */ package com.likya.tlossw.model.client.resource; import java.io.Serializable; public class CpuInfoTypeClient implements Serializable { private static fin...
likyateknoloji/TlosSWGroup
TlosSW_V1.0_Model/src/com/likya/tlossw/model/client/resource/CpuInfoTypeClient.java
Java
apache-2.0
1,160
package org.codehaus.jparsec; /** * Converts the current return value as a {@link Token} with starting index and length. * * @author Ben Yu */ final class ToTokenParser extends Parser<Token> { private final Parser<?> parser; ToTokenParser(Parser<?> parser) { this.parser = parser; } @Override boole...
paetti1988/qmate
PCCS/org.tud.inf.st.pceditor/src-parsec/org/codehaus/jparsec/ToTokenParser.java
Java
apache-2.0
657
/* * Seldon -- open source prediction engine * ======================================= * * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * * ******************************************************************************************** * * Licensed under the Apache License, V...
smrjan/seldon-server
server/src/io/seldon/api/service/async/JdoAsyncActionFactory.java
Java
apache-2.0
4,727
package cases; import java.util.LinkedHashMap; import java.util.Map; import java.util.Random; import org.testng.annotations.Test; import base.TestBase; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import utils.APIUtil; import utils.HttpUtil; @Test public class ApiTestModifyEvidence exte...
bubichain/blockchain
test/testcase/testng/APITest-1.0/src/cases/ApiTestModifyEvidence.java
Java
apache-2.0
13,788
/* * Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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...
xasx/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/ProcessDefinitionTableMapping.java
Java
apache-2.0
1,000
/** * Project Name:demo8 * File Name:MyConfiger.java * Package Name:com.testin * Date:2016年12月16日上午12:45:03 * Copyright (c) 2016, All Rights Reserved. * */ package com.testin; import java.lang.reflect.Method; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.Executor; import java.util....
xushjie1987/java-demos
demo8/src/main/java/com/testin/MyConfiger.java
Java
apache-2.0
2,374
// // ======================================================================== // Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
sdw2330976/Research-jetty-9.2.5
jetty-util/src/main/java/org/eclipse/jetty/util/QuotedStringTokenizer.java
Java
apache-2.0
17,643
package org.antbear.jee.spring.jdbc; import org.antbear.jee.spring.jdbc.dataaccess.CustomerDao; import org.antbear.jee.spring.jdbc.dataaccess.OrderDao; import org.antbear.jee.spring.jdbc.dataaccess.OrderPositionDao; import org.antbear.jee.spring.jdbc.dataaccess.ProductDao; import org.antbear.jee.spring.jdbc.domain.Cus...
bwolf/je-misc-samples
spring/spring-jdbc-first/src/main/java/org/antbear/jee/spring/jdbc/App.java
Java
apache-2.0
1,747
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.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 appli...
chmyga/component-runtime
component-runtime-design-extension/src/test/java/org/talend/test/MetadataMigrationProcessor.java
Java
apache-2.0
3,409
/* * QuizFront - Main Menu * * User can do the following on this screen: * -Create a new quiz * -Modify/Delete a quiz * -Play with a quiz * -Import/Export quizzes */ package wordgames.game; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.nio.channels.FileChan...
stanleychg/Quizzy
src/wordgames/game/QuizFront.java
Java
apache-2.0
26,604
package jamaica.faces.component.html; import jamaica.faces.component.html.FluentHtmlOutputFormat; import javax.faces.component.html.HtmlOutputFormat; public class HOutputFormat extends HtmlOutputFormat implements FluentHtmlOutputFormat<HOutputFormat> { public static HOutputFormat h_outputFormat() { ...
rogerkeays/novdl
src/jamaica/faces/component/html/HOutputFormat.java
Java
apache-2.0
365
package com.remondis.remap.basic; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import java.util.Arrays; import java.util.HashSet; import java.util.Iterator; import j...
remondis-it/remap
src/test/java/com/remondis/remap/basic/MapperTest.java
Java
apache-2.0
14,645
package com.webside.ofp.bean; import java.util.List; public class OfpTreeBean { private String text; private int id; private List<OfpTreeBean> nodes; public String getText() { return text; } public void setText(String text) { this.text = text; } public int getId() { return id; } pu...
ofpteam/ofp
src/main/java/com/webside/ofp/bean/OfpTreeBean.java
Java
apache-2.0
509
/** * Copyright 2015 ads-tec GmbH * * 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...
ads-tec/JSONRpcDevice
src/jsonrpcdevice/JSONRpcException.java
Java
apache-2.0
1,027
/* * DBeaver - Universal Database Manager * Copyright (C) 2017-2017 Karl Griesser (fullref@gmail.com) * Copyright (C) 2010-2022 DBeaver Corp and others * * 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...
dbeaver/dbeaver
plugins/org.jkiss.dbeaver.ext.exasol.ui/src/org/jkiss/dbeaver/ext/exasol/ui/config/ExasolCreateForeignKeyDialog.java
Java
apache-2.0
1,353
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requ...
gravitee-io/gravitee-gateway
gravitee-gateway-http/src/main/java/io/gravitee/gateway/http/vertx/VertxHttp2ServerRequest.java
Java
apache-2.0
1,884
/* * 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 ...
kisskys/incubator-asterixdb
asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/ClosedRecordConstructorResultType.java
Java
apache-2.0
3,561
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
manuelmagix/android_packages_apps_Settings
src/com/android/settings/sim/SimSettings.java
Java
apache-2.0
25,435
/* * Copyright (c) 2008-2020, Hazelcast, 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 ...
mdogan/hazelcast
hazelcast/src/main/java/com/hazelcast/sql/impl/expression/ColumnExpression.java
Java
apache-2.0
3,330
/* * ==================================================================== * 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 license...
lvweiwolf/poi-3.16
src/ooxml/testcases/org/apache/poi/ss/formula/TestFormulaParser.java
Java
apache-2.0
9,998
// 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...
mufaddalq/cloudstack-datera-driver
core/src/com/cloud/agent/api/UpgradeSnapshotCommand.java
Java
apache-2.0
2,448
package ru.job4j.condition; /** * Класс Point, содержащий класс, конструктор и метод для работы с точнами. * * @author - b.savelev (mailto: justmustdie@yandex.ru) * @version - 1.0 * @since 0.1 */ public class Point { /** * Поля класса, обозначающие его координаты. */ private int x, y; /** ...
dvamedveda/b.savelev
chapter_001/src/main/java/ru/job4j/condition/Point.java
Java
apache-2.0
1,395
package SymmetricTree; public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } }
mengdd/LeetCode
algorithms/src/main/java/SymmetricTree/TreeNode.java
Java
apache-2.0
148
package storm.parser.converter; import android.content.ContentValues; import android.database.Cursor; import junit.framework.TestCase; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; import java.lang.reflect.Type; import...
noties/Storm2.0
stormparser/parser-test/src/test/java/storm/parser/converter/StormConverterTest.java
Java
apache-2.0
9,834
package org.apache.lucene.swing.models; /** * Copyright 2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
tokee/lucene
contrib/swing/src/java/org/apache/lucene/swing/models/TableSearcher.java
Java
apache-2.0
12,319
package com.crawljax.plugins.testilizer.generated.claroline_INIT; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import java.util.concurrent.TimeUnit; import org.junit.*; import static org.junit.Assert.*; import org.openqa.selenium.*; im...
aminmf/crawljax
examples/src/test/java/com/crawljax/plugins/testilizer/generated/claroline_INIT/GeneratedTestCase45.java
Java
apache-2.0
24,939
package ru.job4j; import java.io.*; import java.lang.ref.SoftReference; import java.util.HashMap; /** * FileCacheManager class. * @author agavrikov * @since 28.08.2017 * @version 1 */ public class FileCacheManager extends CacheManger<String, String> { /** * Cache map. */ private final HashMap...
AntonGavr92/agavrikov
chapter_006/src/main/java/ru/job4j/FileCacheManager.java
Java
apache-2.0
2,120
package CC15_5_Works; import java.awt.Color; import java.util.HashMap; import java.util.Map; public class Co2_PreColorClass_2 { public static void main(String[] args) { Drawer2 d=new Drawer2(); d.drawLine(); d.drawLine("RED"); } } class Drawer2{ public Drawer2() { super(); } public void drawLine() { Sy...
wapalxj/Java
javaworkplace/ZJXL_java/src/CC15_5_Works/Co2_PreColorClass_2.java
Java
apache-2.0
1,181
package org.xblackcat.sjpu.storage.converter; import java.sql.ResultSet; import java.sql.SQLException; /** * Implementation of the interface should have a default constructor. * * @author xBlackCat */ public interface IToObjectConverter<T> { /** * Converts a current row in ResultSet object...
xBlackCat/sjpu-dbah
src/java/org/xblackcat/sjpu/storage/converter/IToObjectConverter.java
Java
apache-2.0
587
package beans; import java.util.ArrayList; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.context.FacesContext; import domain.Adresse; import services.AdresseService; @ManagedBean(name="modifyAddress") public class ModifyAddressBean { private Stri...
ymhadjou/JSFGestionContact
src/beans/ModifyAddressBean.java
Java
apache-2.0
2,200
/* * Copyright (c) 2005 - 2014, WSO2 Inc. (http://www.wso2.org) 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 ...
suhothayan/siddhi-3
modules/siddhi-api/src/main/java/org/wso2/siddhi/query/api/condition/ConditionValidator.java
Java
apache-2.0
1,297
/** * Copyright(C) 2014-2015 CHCP * Licensed to CHCP under Apache License Version 2.0 * Author: Gordon Wang */ package org.chcp.framework.user.user; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import ...
rtsgordon/chcp-toolmaker
framework-user/src/main/java/org/chcp/framework/user/user/UserServiceImpl.java
Java
apache-2.0
2,923
/* * Copyright 2016 Patrick Favre-Bulle * * 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 ...
patrickfav/density-converter
src/main/java/at/favre/tools/dconvert/arg/EScaleMode.java
Java
apache-2.0
763
/* * Copyright (C) 2014 Markus Junginger, greenrobot (http://greenrobot.de) * * 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 * * Un...
MichaelSun/corelib
src/main/java/com/michael/corelib/coreutils/StringUtils.java
Java
apache-2.0
13,348
/* * Copyright 2013 Guidewire Software, Inc. */ package gw.lang.parser; import java.util.HashMap; public class ExternalSymbolMapForMap extends ExternalSymbolMapBase { private HashMap<String, ISymbol> _externalSymbols; public ExternalSymbolMapForMap( HashMap<String, ISymbol> externalSymbols) { this(extern...
gosu-lang/old-gosu-repo
gosu-core-api/src/main/java/gw/lang/parser/ExternalSymbolMapForMap.java
Java
apache-2.0
1,227
package org.scriptonbasestar.tool.collection.joiner; import org.junit.Assert; import org.junit.Test; import org.scriptonbasestar.tool.collection.builder.ListBuilder; import java.util.List; /** * @author archmagece * @since 2017-09-06 */ public class JoinerTest { @Test public void test_Joiner_run() { //given...
ScriptonBasestar-Lib/sb-tool-jvm
collection/src/test/java/org/scriptonbasestar/tool/collection/joiner/JoinerTest.java
Java
apache-2.0
644
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2012-2013 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
wapache/wason
api/src/main/java/javax/json/spi/package-info.java
Java
apache-2.0
2,707
/* * Copyright 2014 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 ...
yext/closure-templates
java/src/com/google/template/soy/sharedpasses/render/Environment.java
Java
apache-2.0
6,182
/* * 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")...
wenzhucjy/tomcat_source
tomcat-8.0.9-sourcecode/java/org/apache/tomcat/util/bcel/classfile/ConstantString.java
Java
apache-2.0
2,115
/* * Copyright 2013-2016 consulo.io * * 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 ...
consulo/consulo
modules/base/compiler-impl/src/main/java/consulo/compiler/make/DependencyCache.java
Java
apache-2.0
2,159
package biz.neustar.ultra.rest.dto; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.google.common.base.MoreObjects; import com.google.common.base.Objects; /** * Security Question. */ @JsonInclude(Include.NON_NULL) public class SecurityQues...
ultradns/java_rest_api_client
src/main/java/biz/neustar/ultra/rest/dto/SecurityQuestion.java
Java
apache-2.0
2,160
package org.well.coolwearher.gson; import com.google.gson.annotations.SerializedName; /** * Created by zz on 2017/7/11. */ public class Basic { @SerializedName("city") public String cityName; @SerializedName("id") public String weatherId; public Update update; public class Update { ...
wellwu50/coolweather
app/src/main/java/org/well/coolwearher/gson/Basic.java
Java
apache-2.0
388
/* * Copyright 2015-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
marcinkwiatkowski/buck
test/com/facebook/buck/python/PythonTestBuilder.java
Java
apache-2.0
5,060
/* * JaamSim Discrete Event Simulation * Copyright (C) 2014 Ausenco Engineering Canada Inc. * Copyright (C) 2016-2021 JaamSim Software 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...
jaamsim/jaamsim
src/main/java/com/jaamsim/input/ExpResult.java
Java
apache-2.0
5,378
package in.dream_lab.goffish.giraph.factories; import in.dream_lab.goffish.giraph.conf.GiraphSubgraphConstants; import org.apache.giraph.conf.GiraphConfigurationSettable; import org.apache.giraph.conf.ImmutableClassesGiraphConfiguration; import org.apache.giraph.utils.WritableUtils; import org.apache.hadoop.io.Writabl...
KidEinstein/giraph
goffish-giraph/src/main/java/in/dream_lab/goffish/giraph/factories/DefaultSubgraphVertexValueFactory.java
Java
apache-2.0
994