hexsha stringlengths 40 40 | size int64 8 1.04M | content stringlengths 8 1.04M | avg_line_length float64 2.24 100 | max_line_length int64 4 1k | alphanum_fraction float64 0.25 0.97 |
|---|---|---|---|---|---|
ee51e9c8b36d2fc8cbad326824797f0fd66a9596 | 1,454 | package cl.sebastian.bel.firma;
import java.io.IOException;
import java.io.StringReader;
import javax.xml.XMLConstants;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import org.xml.sax.SAXException;
import cl.sebastian.bel.firma.except... | 29.08 | 104 | 0.675378 |
fe5a5f21b3911467c19ea6de539fe7e84dc84fcb | 10,785 | package ucar.cdmr;
import com.google.common.collect.ImmutableList;
import ucar.array.Array;
import ucar.cdmr.client.CdmrGrid;
import ucar.cdmr.client.CdmrGridDataset;
import ucar.nc2.AttributeContainer;
import ucar.nc2.constants.AxisType;
import ucar.nc2.constants.FeatureType;
import ucar.nc2.grid.*;
import ucar.nc2.i... | 37.447917 | 120 | 0.721465 |
0e75e64a0def35911d5ff61338cb1576c21a21b8 | 3,238 | // Copyright 2010-2013 (c) IeAT, Siemens AG, AVANTSSAR and SPaCIoS consortia.
// 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
//
// Unles... | 36.382022 | 194 | 0.769302 |
1a254f4cb4eb9e8d16dcf1f715a2e25cfdc4712b | 14,533 | package io.toolisticon.annotationprocessortoolkit.validators;
import io.toolisticon.annotationprocessortoolkit.AbstractUnitTestAnnotationProcessorClass;
import io.toolisticon.annotationprocessortoolkit.tools.ElementUtils;
import io.toolisticon.annotationprocessortoolkit.tools.MessagerUtils;
import io.toolisticon.annot... | 45.13354 | 301 | 0.629051 |
b348e595674005971667217fc4791f6dd177fdbc | 530 | package com.educative;
import java.util.*;
class SingleNumber {
public static int findSingleNumber(int[] arr) {
int num = 0;
for (int i=0; i < arr.length; i++) {
System.out.print(num + " ^ " + arr[i]);
num = num ^ arr[i];
System.out.println(" = "+num);
}... | 26.5 | 77 | 0.509434 |
3acacc8854d53dcb4ee7ff4b3afcf1df698225c1 | 453 | package com.github.igorsuhorukov.groovy;
import com.github.igorsuhorukov.AetherEngine;
import groovy.lang.GroovyClassLoader;
public class GroovyClassLoaderFactory {
static {URLStreamHandlerFactoryInitialization.init();}
public static GroovyClassLoader createGroovyClassLoader(){
GroovyClassLoader gro... | 28.3125 | 70 | 0.783664 |
718116488a826032805a14932a149e22444baba7 | 414 | package io.renren.common.utils;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component
public class RabbitMqHelper {
@Resource
private RabbitTemplate rabbitTemplate;
public void sendMessage(String queueNa... | 23 | 65 | 0.792271 |
46e862b21b334b8a78d495f00bbe4f1c062a2f22 | 2,400 | import java.util.Arrays;
/**
* Created by sennhviwang
* Time: 3:26 PM on 5/15/15
* Not trying to handle Exceptions.
*/
public class Ex29 {
/**
* Searches for the integer key in the sorted array a[].
* @param key the search key
* @param a the array of integers, must be sorted in ascending order
... | 31.578947 | 87 | 0.525417 |
0ceb16824a360b44f030dc5fce420388f90a62bc | 150 | package in.spcct.spacedoc.configloader.fieldmap;
public interface FieldConverter {
Object convert(String source, FieldMapping fieldMapping);
}
| 18.75 | 61 | 0.8 |
117b589e8e09301418a9d98816a0b57cd3c95b96 | 11,219 | package com.sequenceiq.environment.environment.validation;
import static com.sequenceiq.cloudbreak.common.mappable.CloudPlatform.AWS;
import static org.apache.commons.lang3.StringUtils.isNotEmpty;
import static org.apache.logging.log4j.util.Strings.isEmpty;
import java.util.Map;
import java.util.Objects;
import java.... | 58.129534 | 160 | 0.756485 |
1b05d7108fbb44354bb8c47d67f66cd300eb468c | 1,917 | /*
* 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 org.thespheres.ical.impl;
import java.time.DayOfWeek;
import java.time.temporal.ChronoField;
import static java.time.temporal.... | 36.169811 | 125 | 0.606677 |
5b87c88addeef3047dfc61117f6b316b40194a85 | 5,359 | /*
Icewolf -- a lightweight web-browser
Copyright 2017 Nick Ivanov, Gregory Bowen, Dylan Parsons
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/... | 35.490066 | 96 | 0.604031 |
26e039a11a72f04931b4ca8cfece0f0d66664d00 | 7,979 | package gocardless.api;
import java.io.Serializable;
import java.math.BigDecimal;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Date;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
public class PreAuthorization implements Seri... | 21.277333 | 69 | 0.671387 |
a1a81379c099424d03fa5378ef4f9d58b168d108 | 147 | package com.tingfeng.controller;
import org.springframework.stereotype.Controller;
@Controller //类似Struts的Action
public class IndexAction {
} | 16.333333 | 49 | 0.809524 |
a45205ba481c27bfaddc23cd917c50c5109676eb | 293 | package concurrent;
public class Customer {
private int id;
private String name;
public Customer(int i, String n) {
this.id = i;
this.name = n;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
}
| 13.318182 | 38 | 0.535836 |
706ca05752b12d161f51ab22bfbd61fd6a325956 | 978 | package io.vcv.edufolly.fluttermobilevision.face;
import android.util.Log;
import com.google.android.gms.vision.MultiProcessor;
import com.google.android.gms.vision.Tracker;
import com.google.android.gms.vision.face.Face;
import io.vcv.edufolly.fluttermobilevision.ui.GraphicOverlay;
public class FaceTrackerFactory ... | 31.548387 | 93 | 0.722904 |
782b048122615e409986cc1541d3d236d6b3695c | 2,617 | /*
* Copyright 2021 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gridgain.com/products/software/community-edition... | 39.059701 | 113 | 0.742071 |
c08317831039fb07ea5a6c4eb637488ce61f306a | 210 | package com.hoanghuynh.orderservice.service;
import com.hoanghuynh.orderservice.model.BookOrder;
import java.util.List;
public interface BookOrderService {
List<BookOrder> getAllByStatus(int status);
}
| 19.090909 | 51 | 0.804762 |
bce0912aaec46f94916662f62d100d0b8411ae17 | 2,791 | /*
* Copyright 2014 Christian Weber
*
* 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... | 32.08046 | 118 | 0.780724 |
20b75e2b21977a76c1981ded02b1d9ccd14623c8 | 1,916 | package app.userinterface.text.subtask;
import java.util.List;
import app.controller.SubtaskController;
import app.todolist.item.task.subtask.Subtask;
import app.userinterface.text.Menu;
import app.userinterface.text.task.TaskMenu;
public class SubtaskMenu extends Menu {
private SubtaskForm subtaskForm;
private Su... | 21.054945 | 94 | 0.713987 |
786b69b165e8e3f6f45c74437f4a6b54ffd9c3cb | 5,294 | package edu.uci.ics.cs221.index.inverted;
import edu.uci.ics.cs221.analysis.Analyzer;
import edu.uci.ics.cs221.analysis.ComposableAnalyzer;
import edu.uci.ics.cs221.analysis.PorterStemmer;
import edu.uci.ics.cs221.analysis.PunctuationTokenizer;
import edu.uci.ics.cs221.storage.Document;
import org.junit.After;
import ... | 33.506329 | 138 | 0.609369 |
c772a71a76720b2f3936b19ea1c74accbb017d67 | 216 | package com.foodtruck.shop.Repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.foodtruck.shop.Model.Orders;
public interface OrdersRepo extends JpaRepository<Orders, Integer> {
}
| 21.6 | 68 | 0.824074 |
2c982a42a4c97cc34d9bf7845c4a2bad2d276de9 | 530 | package es.deusto.ingenieria.sd.eb.server.db;
import java.util.ArrayList;
import es.deusto.ingenieria.sd.eb.server.data.Persona;
import es.deusto.ingenieria.sd.eb.server.data.Reserva;
import es.deusto.ingenieria.sd.eb.server.data.Usuario;
public interface IDAO
{
public ArrayList<Persona> getPersonas();
public Arr... | 29.444444 | 54 | 0.803774 |
a2f7b50c4f3052f0bb027c2076e5770c48ec6d05 | 2,229 | package utils;
/**
* Created by Karol Pokomeda on 2017-03-08
* Interface used to unify iteration across different data structures.
* @param <T>
*/
public interface IteratorInterface<T> {
/**
* Method sets the focus of the iterator to the firs element of data structure
*/
void first();
/**
* Method sets t... | 34.828125 | 118 | 0.739345 |
02c22aa5feb7189a51a4e91189c9dc2be6615fb3 | 1,988 | package io.github.revxrsal.cub.bungee;
import io.github.revxrsal.cub.HandledCommand;
import net.md_5.bungee.api.plugin.Command;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.*;
/**
* A provider for tab completions.
*... | 36.145455 | 112 | 0.653421 |
9c69d050ee2ac0b5a74e55f08cde70d6836c6566 | 7,195 | /*
* 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... | 28.105469 | 82 | 0.657957 |
aec4090a4942061f25585aef29f15a5726a0696a | 2,472 | import java.util.*;
import org.apache.commons.collections15.Factory;
/**
* Created by Barrionuevo on 11/4/14.
*/
public class Coloring<V, E> {
// Instance Variables
private Factory<Graph<V, E>> graphFactory;
private Graph<V, E> graph;
// Constructor
public Coloring(Factory<Graph<V, E>> factory)... | 32.96 | 96 | 0.548544 |
bd098aedffa2cad16edfffe8262e1d7eccce295b | 8,781 | package schrodinger.scenarios;
import com.codeborne.selenide.Selenide;
import com.evolveum.midpoint.schrodinger.page.resource.ListResourcesPage;
import com.evolveum.midpoint.schrodinger.page.user.ListUsersPage;
import org.apache.commons.io.FileUtils;
import org.testng.Assert;
import org.testng.annotations.BeforeSuite;... | 39.913636 | 199 | 0.51042 |
976b60445c02453afa43a8caf06d0d7a6d6f4dbb | 3,903 | package word ;
import com4j.*;
@IID("{C4A02049-024C-4273-8934-E48CC21479A9}")
public interface LegendEntry extends Com4jObject {
// Methods:
/**
* <p>
* Getter method for the COM property "Parent"
* </p>
* @return Returns a value of type com4j.Com4jObject
*/
@DISPID(150) //= 0x96. The runtime ... | 20.542105 | 81 | 0.62721 |
8b61f218c574aabd41300e7b2ca05a2ce82963a5 | 1,577 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* 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... | 38.463415 | 105 | 0.758402 |
3d2d52b0d8b31ae5a6bb84631084a3e952ebfeba | 671 | package com.didispace.scca.rest.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
/**
* Created by ... | 27.958333 | 72 | 0.794337 |
d6d14003d1dbcbc0ee6a8a92a46cfa04a15e2785 | 158 |
package testPackage;
/**
* This is the business interface for MicroMarketsTbl enterprise bean.
*/
public interface MicroMarketsTblLocalBusiness {
}
| 14.363636 | 70 | 0.753165 |
ba25d7e1921b33bc1deb7c5aa29a809cd7e92a93 | 462 | package com.google.android.gms.phenotype;
import android.database.ContentObserver;
import android.os.Handler;
final class zzb extends ContentObserver {
private final /* synthetic */ zza zzm;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
zzb(zza zza, Handler handler... | 24.315789 | 89 | 0.664502 |
18363c1417cfe35699fc4a6743380128dd063541 | 1,110 | package com.closedevice.fastapp.ui;
import com.closedevice.fastapp.R;
import com.closedevice.fastapp.ui.gan.fragment.GanPagerFragment;
import com.closedevice.fastapp.ui.setting.fragment.SettingFragment;
import com.closedevice.fastapp.ui.weixin.fragment.WXFragment;
public enum MainTabs {
TAB_WX(0, R.string.main... | 24.666667 | 95 | 0.685586 |
1b44fceaf45453b3faa76f8eaeaaaee7654b60ad | 1,195 | package com.websit.service.impl;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.Sim... | 29.875 | 94 | 0.793305 |
4c48049fd2509d8606f552c18fc78ecf3f1763b1 | 3,056 | package io.crnk.core.repository;
import io.crnk.core.boot.CrnkBoot;
import io.crnk.core.engine.information.bean.BeanAttributeInformation;
import io.crnk.core.engine.information.bean.BeanInformation;
import io.crnk.core.engine.information.resource.*;
import io.crnk.core.engine.internal.information.resource.DefaultResou... | 38.2 | 163 | 0.790576 |
0d73a68076bcef4095a4f3dd51daa61b9c9cf20d | 445 | package swordoffer1;
public class solution5 {
public String replaceSpace(String s) {
if(s.equals("")) return "";
StringBuilder builder=new StringBuilder();
int i=0;
while(i<s.length()){
if(s.charAt(i)!=' '){
builder.append(s.charAt(i));
}else ... | 23.421053 | 50 | 0.47191 |
29e00498f410d97d6945914f7ab3a44d5c1a07cc | 528 | /*
* 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 de.uni_hamburg.corpora;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import... | 25.142857 | 107 | 0.770833 |
ef7ff44721470bc038f43a0f3648053486530f61 | 195 | package com.example.android_example_view01;
public class Msg {
public static final int SEND = 1;
public static final int RECEIVER = 0;
public String context;
public int type;
} | 19.5 | 43 | 0.712821 |
b011a67e372fa34424f517977b9741d50cd41294 | 939 | package me.loveshare.entity.dto.member;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* Created by Tony on 2017/8/1.
*/
@Data
public class UserInfoDTO implements Serializable {
private static final long serialVersionUID = -7192266111744705905L;
/**
* 主键
*/
privat... | 14.904762 | 71 | 0.518637 |
a61080d3d0bfca10aa927a7960fac2df207b0494 | 3,218 | package Compiler2018.FrontEnd.Semantic;
import Compiler2018.AST.*;
import Compiler2018.FrontEnd.IASTVistor;
import Compiler2018.Symbol.ClassSymbol;
import Compiler2018.Symbol.ClassTable;
import Compiler2018.Symbol.TopTable;
public class ClassScanner implements IASTVistor {
private TopTable topTable;
public C... | 20.896104 | 129 | 0.634245 |
d8e6099eabcea23ba9c6d95abb3996ba77979f69 | 2,572 | package org.zalando.riptide.opentracing;
import com.github.restdriver.clientdriver.ClientDriver;
import com.github.restdriver.clientdriver.ClientDriverFactory;
import io.opentracing.contrib.concurrent.TracedExecutorService;
import io.opentracing.mock.MockTracer;
import org.junit.jupiter.api.AfterEach;
import org.junit... | 38.38806 | 89 | 0.682737 |
ee49caac3c2efbb10c549b330d613d0c7bbdf422 | 2,186 | package org.stipendj.core;
import org.stipendj.utils.Threading;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.locks.ReentrantLock;
/**
* Created by Hash Engineering on 2/22/2016.
*
* Translated from CActiveMasternode class (dash/src/activemasternode.cpp)
*/
pub... | 32.626866 | 114 | 0.676578 |
53a351e452011db534deac30a8badd2702dc7e38 | 4,359 | /*
* Copyright 2015-2016 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.hod.client.api.textindex;
import com.hp.autonomy.hod.client.api.authentication.AuthenticationToken;
impor... | 45.884211 | 174 | 0.775407 |
9ee3d2c5dfc8fee73d6df3436ee7cdfb3f9dcf67 | 1,371 | //
// MUStatus.java
// Thud
//
// Copyright (c) 2001-2007 Anthony Parker & the THUD team.
// All rights reserved. See LICENSE.TXT for more information.
//
package net.sourceforge.btthud.ui;
import net.sourceforge.btthud.ui.status.MUStatusComponent;
import net.sourceforge.btthud.data.MUPrefs;
import ... | 25.388889 | 77 | 0.724289 |
e0d6f8e268ba162d94cc72f40c00ece8d8662fd4 | 123,652 | package org.apache.ofbiz.webtools.services.helpers;
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.ofbiz.base.util.*;
import org.apache.ofbiz.base.util.string.FlexibleStringExpander;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.GenericEntityException;
import org.apache.... | 61.426726 | 321 | 0.538916 |
4f337cc43c325ae99bbc6efd3bc8f023aba72535 | 3,537 | package edu.unicen.tallerjava.todo.users;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
i... | 29.231405 | 119 | 0.598813 |
f758732bc9cc89f436e620c7afdb39e2afd4c583 | 6,306 | /*
* 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 co.edu.uniandes.csw.incidentes.test.logic;
import co.edu.uniandes.csw.incidentes.ejb.EmpleadoIncidenteLogic;
import co... | 35.829545 | 113 | 0.658262 |
e33704fc017e7de56282d8a6ab60be57cf784900 | 2,768 | package vn.zalopay.hack.guava;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.uti... | 33.349398 | 92 | 0.594292 |
9c6e11cf0ca3ba64a3242ce84d9a4e2e34cf90bc | 607 | package pl.lodz.p.it.inz.sgruda.multiStore.mop.services.interfaces;
import pl.lodz.p.it.inz.sgruda.multiStore.entities.mop.ProductEntity;
import pl.lodz.p.it.inz.sgruda.multiStore.exceptions.OptimisticLockAppException;
import pl.lodz.p.it.inz.sgruda.multiStore.exceptions.mop.ProductNotExistsException;
public interfac... | 50.583333 | 87 | 0.848435 |
3af24c7dc1c8ff5d1d0aca30dc5545df60358ba9 | 2,741 | package group.xuxiake.web.controller;
import group.xuxiake.common.entity.Page;
import group.xuxiake.common.entity.Result;
import group.xuxiake.web.service.ShareFileService;
import group.xuxiake.web.util.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
im... | 20.765152 | 82 | 0.73112 |
842b880af6f5ddcc77709f70c8293b2d0f990208 | 7,871 | package com.ybz.entity;
import java.util.Date;
public class NodeLoanBill {
private Integer id;
private String pk;
private String userId;
private Double money;
private Double hkye;
private String hkzt;
private String szxm;
private String project;
private... | 21.564384 | 85 | 0.578961 |
cfe4af75c3354b1f6cc24a90e1eb43e194f69fce | 2,045 | package com.pictogram.pictogram.controller;
import com.pictogram.pictogram.exception.user.UserAlreadyReportedException;
import com.pictogram.pictogram.model.Comment;
import com.pictogram.pictogram.model.Post;
import com.pictogram.pictogram.service.CommentService;
import com.pictogram.pictogram.service.PostService;
imp... | 31.953125 | 100 | 0.778484 |
01d516851c198a26de9ab1bdf3dec5b9d0d947f8 | 376 | package com.w3cjava.modules.test.mapper;
import org.apache.ibatis.annotations.Mapper;
import com.w3cjava.common.persistence.CrudDao;
import com.w3cjava.modules.test.entity.Test;
/**
*
* @class TestDao
* @version 1.0.0
* @author cos
* @date 2019年7月31日
* @desc 测试增删改查基础功能Mapper
*
*/
@Mapper
... | 18.8 | 49 | 0.691489 |
d1a137c0b98cf6403d283d413ae71112051e162c | 46,390 | /*
Copyright 2017-2018 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca
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... | 47.874097 | 121 | 0.579004 |
dc573ea151872a1082b8709d64cbfe8873246e5d | 695 | package com.starlight.intrepid.message;
/**
*
*/
public class PingIMessage implements IMessage {
private final short sequence_number;
public PingIMessage( short sequence_number ) {
this.sequence_number = sequence_number;
}
@Override
public IMessageType getType() {
return IMessageType.PING;
}
public sh... | 16.95122 | 62 | 0.700719 |
a406a910cf4a172be24afc3c053470567f02ef19 | 286 | package com.ags.common.chartVO;
import lombok.Data;
/**
* 百度echart
* 饼图对象
*/
@Data
public class PieChartVO {
private String[] legendData;
private String[] seriesData;
@Data
public class serieData{
private String name;
private String value;
}
}
| 14.3 | 32 | 0.643357 |
654f3fcd8d3aa2fc8def5eea99f45dad4cd9b9ae | 3,042 | package com.rcircle.service.gateway.security.authentication;
import com.alibaba.fastjson.JSON;
import com.rcircle.service.gateway.clients.RemoteRequestWithTokenInterceptor;
import com.rcircle.service.gateway.clients.RemoteSsoRequestInterceptor;
import com.rcircle.service.gateway.model.Account;
import com.rcircle.servi... | 42.84507 | 124 | 0.738001 |
210c0b48e8e0ab3a008c08ebe931ca6fac1ff6b4 | 4,455 | package org.apache.fineract.ui.online.loanaccounts.loanapplication.loandetails;
import android.content.Context;
import org.apache.fineract.R;
import org.apache.fineract.data.datamanager.api.DataManagerLoans;
import org.apache.fineract.data.models.product.Product;
import org.apache.fineract.data.models.product.Product... | 33.496241 | 97 | 0.624691 |
7fce524cc3c138aecea1bd3777e7c692b4ef35cd | 7,316 | /*
* Copyright 1999-2015 dangdang.com.
* <p>
* 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... | 51.521127 | 192 | 0.75246 |
1b4fa47f350aba3123237e455f65c8428e7eefd6 | 2,214 | /*
* NullCredentialStoreTest.java
*
* Copyright (c) 2015 Auth0 (http://auth0.com)
*
* 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 th... | 36.295082 | 113 | 0.756549 |
f2e549c4443c217eb9323c4988763cad9e906ab7 | 472 | package com.appleeducate.fluttermidi;
import org.jfugue.Note;
import org.jfugue.ParserListenerAdapter;
import io.flutter.plugin.common.MethodChannel;
class NoteEventListener extends ParserListenerAdapter {
final MethodChannel.Result result;
NoteEventListener(MethodChannel.Result result) {
this.resul... | 22.47619 | 55 | 0.728814 |
f7b79e6e87b734c7ddbeb1bf81e24fe906380642 | 506 | package de.thkoeln.corpora.pojo;
public class SubSubSection {
private int id;
private String title;
private int size;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void... | 15.333333 | 40 | 0.555336 |
2557b925d19d102e55daf97171199b4499667464 | 292 | package com.capgemini.dnd.customexceptions;
public class SupplierAddressDoesNotExistsException extends Exception {
/**
*
*/
private static final long serialVersionUID = 9064557860342215434L;
public SupplierAddressDoesNotExistsException(String message) {
super(message);
}
}
| 18.25 | 70 | 0.780822 |
878e906942edbafcee249e59b589300918c05e15 | 1,344 | package com.google.sps.servlets;
import com.google.gson.Gson;
import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/** Handles requests sent to the /randomstring URL. ... | 34.461538 | 107 | 0.710565 |
2375d07274b2d03e4943fb30e851c06c7000fbb4 | 4,820 | package eden.common.model.cd;
import static eden.common.shared.Constants.NUL_INT;
import eden.common.util.CDDAFrame;
import eden.common.util.Numbers;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
/**
* Defines a Compact Disc (CD) index in terms of a cuesheet.
*
* @author Brendon
*... | 24.343434 | 80 | 0.649793 |
945f7b845d90861a321c3d32b3cc6e76f5fa4571 | 1,513 | package org.sedro.yadoc;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import org.sedro.yadoc.parse.YaParser;
import org.sedro.yadoc.parse.YaParserFactory;
/*
* Command Line
* Run stand alone
* DocExtract <text/html> <filename>
*/
public class YaDoc2Text {
public static void main(String[]... | 30.877551 | 99 | 0.562459 |
5e054fe8dd95bc9cfe8a6a78c2dfdda3f42cd0fb | 2,076 | /*
*
* *
* * * Copyright 2019-2020 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
* * *
* * * https://www.apache.... | 22.322581 | 81 | 0.677746 |
a35f31b9ef6d3d36ef61b4d9e9cb1859d4f965a9 | 2,012 | package network.ubic.ubic.AsyncTasks;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Iterator;
import network.ubic.ubic.HttpHandler;
import network.ubic.ubic.MainActivity;
public... | 29.15942 | 95 | 0.63171 |
a10d9d879138769c05f18c73bf50e4162df5bcc8 | 3,851 | package com.pyda.producer;
import com.devskiller.jfairy.Fairy;
import com.devskiller.jfairy.producer.person.Person;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframewor... | 52.753425 | 122 | 0.437029 |
450a7961d70e3cfe8177e118c1cc3a16044c802e | 7,834 | /*
* The MIT License
*
* Copyright (c) 2011 The Broad Institute
*
* 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... | 38.591133 | 180 | 0.691473 |
f4019104645f378a7081440bd71b1ebe90230599 | 3,355 | package com.gmail.zendarva.aei.mixins;
import com.gmail.zendarva.aei.listenerdefinitions.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.IGuiEventListenerDeferred;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;... | 37.277778 | 144 | 0.699255 |
454befce91ba03ee51954c7fe5076996a14a5aab | 365 | package com.royal.royalmall.order.dao;
import com.royal.royalmall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单
*
* @author jia.huang
* @email jia.huang@gmail.com
* @date 2020-09-01 20:40:58
*/
@Mapper
public interface Or... | 20.277778 | 59 | 0.753425 |
4814afb949a39fa391a21de774305a4437191e97 | 3,232 | package net.xtrafrancyz.mods.minidot.items.head;
import net.minecraft.client.model.ModelBox;
import net.minecraft.client.model.ModelPlayer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import net.xtrafrancyz.mods.minid... | 43.093333 | 118 | 0.660582 |
77a971536c299f771941108abe8039524150893a | 1,228 | package ch.shaktipat.saraswati.pobject;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import ch.shaktipat.saraswati.common.Event;
import ch.shaktipat.saraswati.pobject.oid.PEventQueueOID;
import ch.shaktipat.saraswati.volatility.Volatility;
public interface PEventQueue extends POwnableObject
{
@Overr... | 40.933333 | 101 | 0.801303 |
1e6727d5951c8bbf26353103aaa3b082af91070c | 72,936 | /*
* 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 ... | 50.30069 | 195 | 0.621531 |
970942497dcdc7528f24965dfdaca90e2d55c2f7 | 1,757 | import org.jgrapht.DirectedGraph;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.jgrapht.graph.DefaultEdge;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
*
* @author Charlotta Spik
* @author Isabel Ghourchian
* @version 1.0
* @since 2016-05-09
*/
public class LayGraphTest {... | 28.803279 | 117 | 0.663062 |
25a9ab2e2a9a6d1f984bb7aa23aab02adf0b53c0 | 1,840 | /*
Copyright 2017 Tony BenBrahim
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... | 33.454545 | 76 | 0.745652 |
9c88e5cef65fe908aae6b4909decae1018c39642 | 19,583 | /*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* The Federal Office of Administration (Bundesverwaltungsamt, BVA)
* licenses this file to you under the Apache License, Version 2.0 (the
* License). You may not use this file except in compliance with t... | 46.186321 | 110 | 0.672573 |
98d7b16cb5c5c6495c0f974567779f07448ffa9e | 2,991 | package streetmap.parseTreeTranslator;
import io.parseTree.Leaf;
import io.parseTree.Node;
import io.parseTree.ParseTreeStructureException;
import io.parseTree.TreeElement;
import java.util.LinkedList;
import java.util.List;
import streetmap.model.DataBase;
import streetmap.model.Street;
import streetmap.model.Stree... | 29.038835 | 93 | 0.729856 |
51406a5ce43c4864029322f81daceb8cf835fd78 | 868 | package com.api.parkingcontrol.validation;
import com.api.parkingcontrol.services.ParkingSpotService;
import com.api.parkingcontrol.validation.constraints.ExistsParkingSpotNumber;
import org.springframework.beans.factory.annotation.Autowired;
import javax.validation.ConstraintValidator;
import javax.validation.Constr... | 34.72 | 111 | 0.824885 |
5ca7fa74b1064ec22d7454bc751709160c40f376 | 1,107 | package com.vxml.tag;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
public class DocumentStore {
public VxmlDoc get(URI uri) {
try {
Document doc = getDoc(uri... | 22.591837 | 76 | 0.69467 |
bc0a532ffa6055d8cccffcfa0eba1efa55aebedd | 1,171 | package fr.epsi.jconte.service.transaction;
import fr.epsi.jconte.model.IPerson;
import fr.epsi.jconte.model.impl.Person;
import fr.epsi.jconte.service.transaction.impl.TransactionAllForOne;
import fr.epsi.jconte.service.transaction.ITransaction;
import org.junit.Test;
import java.security.NoSuchAlgorithmException;
... | 30.025641 | 139 | 0.688301 |
b3f0161fb2d000b2021b07882abdedd5b3dafa91 | 10,614 | package org.ncgr.gwas;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import org.apache.commons.cli.CommandLine;
import org... | 37.373239 | 197 | 0.631524 |
fa728553905c9107eb1cdb6a8604cc63f04885c1 | 3,981 | package sorts.exchange;
import main.ArrayVisualizer;
import sorts.templates.Sort;
/*
*
MIT License
Copyright (c) 2020 aphitorite
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 restri... | 30.623077 | 86 | 0.646571 |
b1a1e8ea520a6c9f02146644527aff889c771380 | 545 | package com.worker.springbootjdbc.dao;
import java.sql.SQLException;
import java.util.List;
import com.worker.springbootjdbc.model.Worker;
public interface WorkerDao {
public int add(Worker worker)
throws SQLException;
public int delete(int workerId)
throws SQLException;
... | 22.708333 | 47 | 0.66422 |
f8379215e9ed52a3d8bfa22f9362335c5a491427 | 495 | package com.eventcount.eventsourcing.commands;
import com.eventcount.eventsourcing.entities.Email;
/**
* Email create command
*
* @author eventcount
*/
public class EmailCreateCommand {
private final String uuid;
private final Email email;
public EmailCreateCommand(String uuid, Email email) {
... | 16.5 | 57 | 0.650505 |
70f6b266aa0b033e9246e3239a3b25fac06188f8 | 615 | package ru.job4j.sqltoxml;
import ru.job4j.tools.CmdInput;
import ru.job4j.tools.Resources;
import java.nio.file.Paths;
public class Main {
private static final String XSLT = "xml/ConvertXslt.transform.xml";
public static void main(String[] args) {
String xmlFilename = "default.xml";
if (arg... | 29.285714 | 101 | 0.64878 |
e0184229ce82d987ba452b37c45f5131e8f5ddde | 1,859 | package MVC;
import iterator.ManCollection;
import iterator.MenuIterator;
import entity.SportsMan;
import org.junit.Test;
/**
* @Tester LabmemNo004
* @Date: 18:28 2020/12/1
**/
public class MVCTest {
@Test
public void MVCtest()
{
System.out.println("=============== TEST [MVC] ===============");... | 31.508475 | 96 | 0.618612 |
22a340bf76a6d088e1f17894d77e5a80404fe0c8 | 1,588 | package edu.brown.cs.rcao6.bballs;
import edu.brown.cs.rcao6.bballs.sprites.Sprite;
/**
* Utility class that contains various constants.
*/
public class Consts {
public final static boolean enableMultithreading = true;
public final static int numThreads = 16;
public final static Sprite stageSelectTextS... | 38.731707 | 79 | 0.724811 |
0baa985e2ff7af55f50dbfff856829111ab29cd3 | 842 | package eu.linksmart.services.payloads.ogc.sensorthing.internal.serialize;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import eu.linksmart.s... | 31.185185 | 151 | 0.77791 |
a93001cf9469f62fe4f6ba1a731de96b2c6fe827 | 1,074 | package com.google.android.gms.internal.ads;
import java.util.concurrent.Callable;
/* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */
final class zzdzs extends zzdyy<V> {
private final Callable<V> zzhta;
private final /* synthetic */ zzdzq zzhty;
zzdzs(zzdzq zzdzq, Callable<V> callable... | 27.538462 | 69 | 0.625698 |
fcf35b97e3000d5239163dc114ccd7cdf746148d | 2,006 | package org.motechproject.evsmbarara.repository;
import java.util.List;
import org.joda.time.LocalDate;
import org.motechproject.commons.api.Range;
import org.motechproject.evsmbarara.domain.SubjectEnrollments;
import org.motechproject.evsmbarara.domain.enums.EnrollmentStatus;
import org.motechproject.mds.annotations.... | 45.590909 | 98 | 0.78016 |
2a0d4990d9c72e093f42af41dae2af3a8d32f288 | 653 | package core.request;
import core.EntityType;
/**
* Created by akhil raj azhikodan on 22/4/18.
*/
abstract class HttpRequestBuilderWithBody extends HttpRequestBuilder
{
public HttpRequestBuilder jsonEntity(Object object) {
this.entityType = EntityType.JSON;
entity = object;
return this;
... | 22.517241 | 68 | 0.672282 |
dbdfaec855a7c2772aee8fb7f7f57bd0dd268207 | 8,951 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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: 2018.06.... | 37.295833 | 122 | 0.616803 |
3e2c0d3bbc64992e0ee7b673519b79208877b43c | 5,444 | package com.hugman.culinaire.util;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.cauldron.CauldronBehavior;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemUsage;
import net.minecraft.sound.SoundCategory;
import ne... | 31.468208 | 162 | 0.734019 |
d6ed85afcc21453495d9138b10a6bf2e2fbcd1c6 | 1,015 | package gov.dwp.carers.xml.signing;
import gov.dwp.carers.security.keystore.KeyStoreLoader;
import org.apache.xml.security.signature.XMLSignature;
import org.apache.xml.security.utils.Constants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* To use to sign Carers XML messages to Government Gateway. U... | 35 | 105 | 0.767488 |
db87fb88aacca41c41ee5cb1960046087383585e | 711 | package com.JavaBasics;
import java.util.*;
import java.util.Set.*;
public class CollectionAPIInterface {
public static void main(String[] args){
Collection<Integer> values = new ArrayList<>();
values.add(2);
values.add(3);
values.add(34);
values.add(22);
Iterat... | 19.75 | 88 | 0.535865 |
997c868a87abf3bcd9dc0641ebad9d99bb178b18 | 3,391 | package com.zerox.javafxLearning.lesson001_023;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
/**
* @Author: ZeromaXHe
* @Time: 2021/6/22 21:56
* @Description:
* @Modified By: ZeromaXHe
*/
public class Less... | 31.110092 | 128 | 0.602477 |
2b43931140ceb25a4b42251a6efc8ec1d6227452 | 8,566 | package com.eventshop.eventshoplinux.akka.query;
import akka.camel.javaapi.UntypedConsumerActor;
import com.eventshop.eventshoplinux.model.Emage;
import com.google.gson.JsonObject;
import org.opencv.core.*;
import org.opencv.imgproc.Imgproc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Ar... | 42.197044 | 115 | 0.519145 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.