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 |
|---|---|---|---|---|---|
d7be791aec5c11edee58f5a9ea7be7e9bd15e3a6 | 1,012 | package eu.modernmt.context.lucene.analysis;
import eu.modernmt.context.lucene.analysis.lang.LanguageAnalyzer;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.DelegatingAnalyzerWrapper;
import org.apache.lucene.analysis.miscellaneous.LimitTokenCountAnalyzer;
import org.apache.lucene.analy... | 32.645161 | 132 | 0.763834 |
bcc0e6bfaa6f682e1eacae7d4fbaa158b7692e18 | 22,508 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 The original 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... | 45.287726 | 217 | 0.537498 |
7f95f2d6e3c2fbbd2ac1473845ce92421e9d71e9 | 937 | package com.future94.gothrough.server.listen.service;
import com.future94.gothrough.protocol.channel.GoThroughSocketChannel;
import com.future94.gothrough.protocol.model.InteractiveModel;
import com.future94.gothrough.protocol.part.SocketPart;
import com.future94.gothrough.server.listen.clear.ClearInvalidSocketPartThr... | 37.48 | 121 | 0.854856 |
a1c0ec5350570cdac1a824fb4c0623e693f0e2d1 | 2,422 | package com.bourke.glimmr.tasks;
import com.bourke.glimmr.BuildConfig;
import android.os.AsyncTask;
import android.util.Log;
import com.bourke.glimmr.common.Constants;
import com.bourke.glimmr.common.FlickrHelper;
import com.bourke.glimmr.event.Events.IExifInfoReadyListener;
import com.googlecode.flickrjandroid.Flickr... | 32.72973 | 79 | 0.638315 |
6d125bf1308d3f1686e8f82e5894d2029bf2bef6 | 2,414 | /*$$
* Copyright (c) 2004, Argonne National Laboratory (ANL) (ANL)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that the following
* conditions are met:
*
* Redistributions of source code must retain the above copyright n... | 33.527778 | 87 | 0.743579 |
16e2b04ed85b6c0def94b05fb841611724864ae1 | 7,786 | package bea;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;
import java.util.function.Consumer;
import java.util.function.Function;
/**
* This class implements the Bacterial Evolutionary Algorithm (BEA). All
* problem-dependent details were tried to remove from the implementatio... | 37.253589 | 97 | 0.554328 |
62c98b60a6f28bfcf132469bec3977c725a526f6 | 3,587 | /*
* Copyright 2012-2019 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.org/licenses/LICENSE-2.0
*
* Unless required by a... | 35.166667 | 112 | 0.779203 |
443c52cba0e5b1dea5a0bcc5faa6c973a81168d8 | 1,138 | /*
* 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... | 32.514286 | 75 | 0.762742 |
9d92eb2dbc1534ad324d56e3a6952b49188c90c8 | 947 | package datart.core.entity.poi.format;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
@Data
public class NumericFormat extends PoiNumFormat {
public static final String type = "numeric";
/** 前缀 */
private String prefix;
/** 后缀 */
private String suffix;
@Override
public... | 24.921053 | 68 | 0.588173 |
5307ce200843a665dd34cb98335ac4be39ab4cc2 | 2,013 | package ${groupId};
import org.apache.avro.Schema;
import org.apache.avro.file.DataFileReader;
import org.apache.avro.file.DataFileWriter;
import org.apache.avro.generic.GenericDatumReader;
import org.apache.avro.generic.GenericRecord;
import org.apache.avro.io.DatumReader;
import org.apache.avro.io.DatumWriter;
impor... | 41.081633 | 137 | 0.690015 |
a63ca41e41d9156caaef9c174e3073cb8edb7891 | 694 | package ilovecats.com.parsetagram;
import android.app.Application;
import com.parse.Parse;
import com.parse.ParseObject;
import ilovecats.com.parsetagram.model.Post;
public class ParseApp extends Application {
@Override
public void onCreate() {
super.onCreate();
ParseObject.registerSubclass... | 26.692308 | 99 | 0.659942 |
4608c3e4ea26ce64751a57dea78238f9bd4cdc7b | 2,530 | /*
* Copyright 2020 Philipp Schuster
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri... | 38.923077 | 463 | 0.688933 |
0ba249333f1208ef66a39bdc12ae366e49d6c588 | 1,117 | package com.gioov.oryx.common.vue.antd;
import java.io.Serializable;
import java.util.List;
/**
* @author godcheese [godcheese@outlook.com]
* @date 2019-05-30
*/
public class AntdTree implements Serializable {
private static final long serialVersionUID = 6136394266913997501L;
private Long id;
private L... | 19.258621 | 70 | 0.619517 |
0359bfcbd59a81fe0f7e77a62fad63d4dfccbb4d | 2,132 | package com.ugamdemo.core.models.Impl;
import com.ugamdemo.core.models.SingleuserOsgi;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.Attribut... | 31.820896 | 79 | 0.673546 |
1385d4ddaa36d59e1847c9192d0454239570b805 | 9,400 | /**
* Licensed to JumpMind Inc under one or more contributor
* license agreements. See the NOTICE file distributed
* with this work for additional information regarding
* copyright ownership. JumpMind Inc licenses this file
* to you under the GNU General Public License, version 3.0 (GPLv3)
* (the "License"); yo... | 51.086957 | 229 | 0.504043 |
6e544ad1d5f96af8dfa5d12949f9b1c12c166537 | 846 | package com.bbn.serif.types;
import com.bbn.bue.common.symbols.Symbol;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
public final class Indicator extends Attribute {
public static Indicator UNKNOWN = new Indicator("Unknown");
... | 30.214286 | 74 | 0.760047 |
8bbeebddadba4ad636a9de14aaab079b2e92fd1b | 741 | package org.leibnizcenter.cfg.earleyparser.scan;
/**
* When scanning goes wrong
* Created by maarten on 8-2-17.
*/
@SuppressWarnings({"unused", "WeakerAccess"})
public class ScanException extends RuntimeException {
public ScanException() {
}
public ScanException(final String message) {
super(me... | 26.464286 | 138 | 0.704453 |
312d087c127202d4abdfa73482891332742fa32b | 11,417 | package org.support.project.common.statistic;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* データ分析用のクラス.
*
* @author koda
*
*/
public final class Statistics {
/** ユーティリティクラスなので、コンス... | 19.383701 | 105 | 0.541035 |
8ceb0bb9afbb7c53d9755053c3dac2643429b2ad | 3,796 | package org.elasticsearch.index.query.image;
import net.semanticmetadata.lire.builders.DocumentBuilder;
import net.semanticmetadata.lire.builders.GlobalDocumentBuilder;
import net.semanticmetadata.lire.builders.GlobalDocumentBuilder.HashingMode;
import net.semanticmetadata.lire.imageanalysis.features.Extractor;
impor... | 41.714286 | 131 | 0.646997 |
dcf9999bc0824a5a02539af2e6427d2b7955ed83 | 691 | package com.phantom.model;
/**
* Created by vishal on 10/12/15.
*/
public interface RestaurantConstants {
final String RESTRAURANT_NAME ="restraurant_name";
final String USER_EMAIL ="user_email";
final String RESTRAURANT_LOCATION ="restraurant_location";
final String RESTRAURANT_SPECIALITY ... | 20.323529 | 67 | 0.700434 |
03570828e297b16dbb2e6c03bb4ea4d2c6aadd37 | 5,285 | /**
* encode: utf-8
*
* @author Assis Henrique Oliveira Pacheco
* @version: 0.9
*
* TODO:
* - Padronizar documentações em ingles/portugues
* - Padronizar LOG usando UtilLog
*
*/
package util.file;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOExcep... | 33.66242 | 99 | 0.508988 |
f71c864a72d9e32a11850043fd65561454412b54 | 2,836 | package com.codeyn.wechat.pages;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import com.codeyn.jfinal.annos.JFinalAnnos.Route;
import com.codeyn.wechat.jfinal.base.MsgController;
import com.codeyn.wechat.sdk.msg.model.receive.EventMsg;
import com.codeyn.wechat.sdk.msg.model.receive.Norm... | 31.865169 | 112 | 0.641044 |
8f1a8592e6c8c8bd329b32f89b6e50d6233ae9e6 | 327 | package org.qcri.rheem.basic.operators.test;
import org.qcri.rheem.core.plan.rheemplan.UnarySink;
import org.qcri.rheem.core.types.DataSetType;
/**
* Dummy sink for testing purposes.
*/
public class TestSink<T> extends UnarySink<T> {
public TestSink(DataSetType<T> inputType) {
super(inputType, null);
... | 21.8 | 52 | 0.721713 |
49c6235b56cbfd82f658d91e1f52c2e4e78423fc | 5,643 | /*
* 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 ... | 30.668478 | 109 | 0.525253 |
6eead98ff7dec1046e8289f40ead72e4c03213cf | 1,660 | package in.skdv.skdvinbackend.repository.impl;
import in.skdv.skdvinbackend.model.entity.Sequence;
import in.skdv.skdvinbackend.repository.ISequenceRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.data.mongodb.core.FindAndModifyOptions;
import org.springframework.data.mongodb.core.MongoOpe... | 33.877551 | 95 | 0.71747 |
cc180a80fd8ff6a5ee22f6e63a01b09d57b32cbc | 92 | package com.mapp.shiro.config;
public enum CacheType {
REDIS,
MAP,
EHCACHE;
}
| 10.222222 | 30 | 0.641304 |
6679fdc711bcfa7d5931d0633c2891fa7412f8ef | 654 | package dhyces.dinnerplate.inventory.api;
import dhyces.dinnerplate.util.ItemHelper;
import net.minecraft.world.item.ItemStack;
public interface ISingleItemHolder extends IItemHolder {
void setItem(ItemStack stack);
@Override
default ItemStack insertItem(ItemStack stack) {
if (containsItemStack(... | 24.222222 | 64 | 0.655963 |
cfee63db5b370d9aa7d820528987264fd9f71dba | 2,593 | package net.sf.opendse.encoding.mapping;
import static org.junit.Assert.*;
import java.util.HashSet;
import java.util.Set;
import org.junit.Test;
import org.opt4j.satdecoding.Constraint;
import net.sf.opendse.encoding.variables.M;
import net.sf.opendse.encoding.variables.T;
import net.sf.opendse.encoding.variables.... | 35.520548 | 108 | 0.77015 |
090e7ce8c9c006487557cd332f8eb46ff59a2c9b | 1,063 | package org.reactome.release.resourcechecker;
import org.reactome.release.Resource;
public class ResourceCheckerFactory {
public static ResourceChecker getInstance(Resource resource) {
switch(resource.getResourceType()) {
case FILE:
if (resource.getResourceURL().getProtocol().equals("ftp")) {
return ne... | 33.21875 | 101 | 0.716839 |
705eb6e87ec5a60d0616f7c1868fdb8c96c76943 | 14,551 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 33.839535 | 164 | 0.737338 |
d9e9721df222b6198d2afab1ea24416ad26fa761 | 3,552 | package com.bestaone.hiauth.controller;
import com.bestaone.hiauth.api.commom.ApiResponse;
import com.bestaone.hiauth.domain.App;
import com.bestaone.hiauth.domain.enums.ResourceDomainType;
import com.bestaone.hiauth.service.AppService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.fact... | 39.032967 | 146 | 0.708333 |
da419bd32bd60f0e4bad85e70ee8e55b730b5162 | 2,930 | // Copyright by Barry G. Becker, 2012. Licensed under MIT License: http://www.opensource.org/licenses/MIT
package com.barrybecker4.game.twoplayer.blockade.board.analysis;
import com.barrybecker4.common.geometry.ByteLocation;
import com.barrybecker4.common.geometry.Location;
import com.barrybecker4.game.twoplayer.block... | 39.066667 | 115 | 0.652218 |
83364eba9eb9cf632eba22231aa8d0b6d8afeff2 | 1,558 | package physics.external;
import java.awt.geom.Rectangle2D;
import java.util.List;
public abstract class CoordinateObject {
Dimensions dims;
private Rectangle2D hitBox;
private List<SubRectangle> subRects;
private Coordinate pos;
private int xSubRects = 4;
priv... | 24.730159 | 127 | 0.577022 |
f773584d56b34c13788fac0d351042ae7bd343fe | 30,714 | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.sesame.engine;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.NoS... | 37.049457 | 176 | 0.649118 |
93dad366ffbce8e3bde3e4ffb0cba6dbb6e1885d | 1,756 | package il.org.spartan.spartanizer.tippers;
import org.eclipse.jdt.core.dom.*;
import org.eclipse.jdt.core.dom.PostfixExpression.*;
import static il.org.spartan.spartanizer.ast.navigate.step.*;
import il.org.spartan.spartanizer.ast.factory.*;
import il.org.spartan.spartanizer.ast.navigate.*;
import il.org.spartan.sp... | 43.9 | 132 | 0.752847 |
6762b552b9e5f0d5a25685b2412fbed86a469b29 | 467 |
public class WrapperClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
int i = 20;
Integer ii = new Integer(20);
System.out.println(ii);
/* Auto-Boxing */
double d = 23.4;
Double dd = d;
System.out.println(dd);
/* Auto-Unboxing */
... | 11.675 | 41 | 0.554604 |
4bb3870c3663e6ad30a152f0840dc062de0aeebf | 4,392 | /**
* Copyright (c) 2014 Virtue Studios
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... | 37.538462 | 210 | 0.73133 |
80766858dd40beef468a082eab28f67c14613867 | 4,785 | // Copyright 2012 Digipom 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 ... | 29.176829 | 94 | 0.711599 |
ade2ba7311eafeca13e17b78883af7d1f75eaad0 | 5,946 | /**
* Copyright (c) 2017 Ariel Favio Carrizo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list o... | 34.976471 | 131 | 0.759502 |
ed86e255691650d3019576830ad6aa11cece6967 | 3,152 | package webcrawler.digestpage;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.pmw.tinylog.Logger;
import webcrawler.db.DBHandler;
import java.io.IOException;
import java.util.ArrayList;
/**
* Created by Gabe Sargeant on 23/01/17.... | 25.419355 | 125 | 0.552348 |
5a793bcb5f9b30cf6bbb5982db73820f4534d0b1 | 516 | package debgquestion;
import java.util.Scanner;
public class Debug2 {
public static void main(String[] args) {
Scanner day = new Scanner(System.in);
System.out.println("enter day");
String days = day.nextLine();
System.out.println("enter time");
String time = day.nextLine();
if (days.equals "monday " ||... | 22.434783 | 60 | 0.670543 |
1a39dc59f85bcccfab00932ed90a4dd8987055e7 | 5,174 | package org.ihtsdo.buildcloud.core.dao;
import org.ihtsdo.buildcloud.core.dao.io.AsyncPipedStreamBean;
import org.ihtsdo.buildcloud.core.entity.*;
import org.ihtsdo.buildcloud.core.service.build.compare.BuildComparisonReport;
import org.ihtsdo.buildcloud.core.service.build.compare.FileDiffReport;
import org.ihtsdo.otf... | 36.957143 | 155 | 0.842288 |
860a428d3a8a94e1404a4d4ce71c54415b3fac8d | 28,595 | package org.accounting.system.endpoints;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import io.quarkus.security.Authenticated;
import org.accounting.system.HierarchicalRelationSerializer;
impor... | 50.432099 | 277 | 0.609687 |
1f1bc5d79bcf3d86eeb307902b5590cb7406b7c4 | 1,710 | package com.jstarcraft.core.event;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public class EventManager implements Iterable<EventMonitor> {
private Set<EventMonitor> set;
private EventMonitor[] list;
... | 23.424658 | 77 | 0.590643 |
ab48b87786bbcdcc93e32f2000083e1e7aee1d1f | 2,835 | package com.in28minutes.java.others.date;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class DateExamples {
public static void main(String[] args) throws ParseException {
// Important points about Date
// D... | 35.4375 | 83 | 0.715344 |
6e343474cb5990f68bd09fb5e22dfeaa6ea846e0 | 477 | package hungry.ex_frag.numPrac;
import java.util.ArrayList;
/**
* Created by soy on 2016-09-04.
*/
public class SavedDate {
ArrayList<String> date=new ArrayList<>();
ArrayList<String> time=new ArrayList<>();
ArrayList<String> inco=new ArrayList<>();
void show(){
for(int i=0;i<date.size();i+... | 22.714286 | 45 | 0.593291 |
9baea3d7a981bcb0dd52a31042fd18b56a893dec | 7,108 | package org.maera.plugin.osgi.factory;
import org.apache.commons.lang.Validate;
import org.maera.plugin.ModuleDescriptor;
import org.maera.plugin.PluginException;
import org.maera.plugin.PluginInformation;
import org.maera.plugin.PluginState;
import org.maera.plugin.Resourced;
import org.maera.plugin.elements.Resource... | 28.432 | 119 | 0.680219 |
f77c34fce13ffb4faa719b940938a57bbbba488d | 394 | package cn.parzulpan.shopping.ware.dao;
import cn.parzulpan.shopping.ware.entity.WareOrderTaskEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 库存工作单
*
* @author parzulpan
* @email parzulpan@gmail.com
* @date 2021-01-04 20:42:08
*/
@Mapper
public... | 21.888889 | 75 | 0.77665 |
619fcc69b6cd194ccf5c2f157a923fdf7f8cfefb | 457 | import org.junit.Test;
public class BinaryTest {
@Test
public void test1() {
byte[] data = new byte[]{0x3e, (byte)0xAD, 0x00, 0x00};
for (byte b: data) {
System.out.format("%x\n", b);
}
long ret = 0;
int offset = 0;
ret += data[offset] & 0xff;
ret += (data[offset + 1] & 0xff) <... | 20.772727 | 59 | 0.522976 |
932875ccce2b2cd9eb8095d98e120d040b4b15a2 | 4,475 | package com.conveyal.gtfs.model;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.time.LocalDate;
import java.util.List;
/**
* Represents an exception to the schedule, which could be "On January 18th, run a Sunday schedule"
* (useful for holidays), or could be "on June 23rd, run the foll... | 35.23622 | 140 | 0.606034 |
1d5430a30fc1b17481065ec7276941b5e12b0bf9 | 310 | package com.jcommerce.gwt.client.model;
public interface ITagManager {
public static final String ID = "id";
public static final String USER = "user";
public static final String TAGWORDS = "tagWords";
public static final String GOODS = "goods";
public static final String CONTENT = "content";
}
| 31 | 51 | 0.729032 |
1e67d101fecae3b90307c719aaf1eec5f39ce373 | 1,082 | package com.sibilantsolutions.grison.driver.foscam.entity;
import java.time.Duration;
import java.time.Instant;
import com.google.auto.value.AutoValue;
import com.sibilantsolutions.grison.driver.foscam.domain.AudioFormatE;
@AutoValue
public abstract class AudioDataTextEntity implements FoscamTextEntity {
public... | 26.390244 | 71 | 0.747689 |
e2f679197beb7b5725a9cf8464a52224cf2d1e1d | 5,750 | package ghost.framework.web.module.servlet.filter;
import ghost.framework.beans.annotation.conditional.ConditionalOnMissingClass;
import ghost.framework.beans.annotation.constraints.Nullable;
import ghost.framework.beans.annotation.constructor.Constructor;
import ghost.framework.beans.annotation.order.Order;
import gh... | 30.104712 | 171 | 0.747826 |
413e5e5b5a495c287a030dc16b21de482d02d6e7 | 802 | package tools.redfox.bamboo.status.service;
import tools.redfox.bamboo.status.Status;
public class BadgeBuilder {
public static String url(Status status, String label, String value) {
return String.format(
"https://img.shields.io/static/v1.svg?label=%s&message=%s&color=%s",
... | 29.703704 | 84 | 0.625935 |
d888894da8f4322ebd6dc89ee99b8c30aba40264 | 4,283 | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 48.123596 | 117 | 0.7371 |
1e4fb63b450002bf391462fa85821b537e3b27c6 | 1,779 | package com.lframework.xingyun.settle.vo.pre;
import com.lframework.common.exceptions.impl.InputErrorException;
import com.lframework.common.utils.NumberUtil;
import com.lframework.common.utils.StringUtil;
import com.lframework.starter.web.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import java.io.Seria... | 26.161765 | 88 | 0.671164 |
2ad9be7455d1061c60260c95b4cace7a3fc08940 | 4,571 | /*
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-... | 35.434109 | 109 | 0.605557 |
8fa5e7b2b525edcefc70553295fee0aab2c9486d | 1,429 | package org.observertc.observer.security.credentialbuilders;
import io.micronaut.context.annotation.Prototype;
import org.observertc.observer.configbuilders.AbstractBuilder;
import org.observertc.observer.configbuilders.Builder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.aut... | 36.641026 | 125 | 0.740378 |
ba6ea07b77d239a288004707d0a288cbe071e447 | 190 | module com.google.gson {
exports com.google.gson;
exports com.google.gson.annotations;
exports com.google.gson.reflect;
exports com.google.gson.stream;
requires transitive java.sql;
}
| 21.111111 | 37 | 0.778947 |
d5f358eae2a4acb879be749ff337ba71b6ffc187 | 1,678 | package com.amadeus.safety.safetyRatedLocations;
import com.amadeus.Amadeus;
import com.amadeus.Params;
import com.amadeus.Response;
import com.amadeus.exceptions.ResponseException;
import com.amadeus.resources.Resource;
import com.amadeus.resources.SafePlace;
/**
* <p>
* A namespaced client for the
* <code>/v... | 25.815385 | 90 | 0.672825 |
2d06a4a79d984ac051ec6d1cc2a249e28ad2a7a7 | 2,501 | /*
* Copyright (c) 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.org/licenses/LICENSE-2.0
*
* Unless required by app... | 39.078125 | 92 | 0.663735 |
c9031270ba846efab2a3470e5b667aa4cc59dd97 | 339 | package gl;
import util.Vec;
public interface HasRotation {
public Vec getRotation();
/**
* Will rotate the object COUNTERCLOCKWISE
*
* @param rotation
* An example to rotate an object 45 degree CLOCKWISE around the
* Z axis would be "new Vec(0,0,-45)"
*/
public void setRotatio... | 18.833333 | 76 | 0.651917 |
864c4caaccfd0d3e00a45c657f6041bca1d50e11 | 1,144 | package Minimum_Distance_Between_BST_Nodes;
import Others.Tree;
import Others.TreeNode;
import java.util.Stack;
public class Solution {
public int minDiffInBST(TreeNode root) {
if (root == null) {
return 0;
}
/**
* In-order traversal
* Remember the last visi... | 24.869565 | 98 | 0.493881 |
30a65069ee480c3a52c5a84184527c80dc615b8e | 1,411 | package onemessageui;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import com.umeng.analytics.MobclickAgent;
import oneapp.onechat.oneandroid.chatsdk.ConfigConstants;
import oneapp.onechat.oneandroid.onemessage... | 29.395833 | 98 | 0.695252 |
3aa15ee3ae40798fb35d2ca3e94387c3a35b8bb3 | 481 | package com.study.xuan.editor.operate.span.richspan;
import android.graphics.Color;
import android.text.TextPaint;
import android.text.style.URLSpan;
public class URLSpanNoUnderline extends URLSpan {
public URLSpanNoUnderline(String url) {
super(url);
}
@Override
public void updateDra... | 24.05 | 52 | 0.683992 |
4628faed358456ac7969bab672325fb49af60c95 | 716 | package org.abdul.petclinic.controller;
import org.abdul.petclinic.service.VetService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMa... | 27.538462 | 65 | 0.736034 |
d444d6928edecf1e5874169607bbfd1c49cd2e06 | 2,502 | package stonering.enums.items.type.raw;
import stonering.entity.Aspect;
import stonering.entity.item.aspects.FuelAspect;
import stonering.entity.item.aspects.ItemContainerAspect;
import stonering.entity.item.aspects.ValueAspect;
import stonering.entity.item.aspects.WearAspect;
import stonering.enums.items.type.ItemPar... | 34.75 | 103 | 0.644285 |
6f397718418b2fd02e750e999fc2da45052adb9c | 907 | package tk.sunnylan.tacn.webinterface.jsoup;
import org.jsoup.Connection;
public class Util {
public static Connection mask(Connection c) {
return c.header("Host", "ta.yrdsb.ca")
.header("Connection", "keep-alive")
// .header("Content-Length", ""+c.request().requestBody().length())
.header("Cac... | 43.190476 | 143 | 0.652701 |
c6838634ad9c4cc2874d972fa2a88b2866000364 | 9,049 | /*
* -----------------------------------------------------------------------------
* VIPER SOFTWARE SERVICES
* -----------------------------------------------------------------------------
*
* MIT License
*
* Copyright (c) #{classname}.html #{util.YYYY()} Viper Software Services
*
* Perm... | 27.256024 | 125 | 0.504365 |
c541be114609b2f021b78438ce523c1f65e015cd | 3,518 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import edu.wpi.first.math.kinematics.DifferentialDriveKinematics;
/**
* The Constants class provid... | 39.977273 | 130 | 0.732518 |
20a86472311448533c891d17224f744c7e6c3fa1 | 236 | package io.thepro.apiservice.security.models;
import lombok.Data;
@Data
public class CookieProperties {
private String domain;
private String path;
private boolean httpOnly;
private boolean secure;
private int maxAgeInMinutes;
}
| 18.153846 | 45 | 0.800847 |
4ea9027a3435d163759d869cdc6659cb1574d420 | 1,182 | package com.udacity.jdnd.course3.critter.pet;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.beans.BeanUtils;
import java.time.LocalDate;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
/**
* Represents the form that pe... | 27.488372 | 90 | 0.714044 |
3d56b8929686259f4057101935baaecae1cb3aa8 | 1,349 | /*******************************************************************************
* Copyright 2016 Daniel Thommes
*
* 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.ap... | 32.902439 | 80 | 0.653076 |
00e95b95c9ab9cbc1890c9975564fa38e978e548 | 4,349 | // jTDS JDBC Driver for Microsoft SQL Server and Sybase
// Copyright (C) 2004 The jTDS Project
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, ... | 42.637255 | 123 | 0.686365 |
e8a6cf1886809def3e7cd74e90367a269539334f | 17,098 | package org.yinwang.pysonar;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import sun.net.www.protocol.file.FileURLConnection;
import java.io.*;
import java.lang.management.GarbageCollectorMXBea... | 27.488746 | 107 | 0.539888 |
5206c53d8b595fc5a69beacd4ff764a1c08375bd | 7,082 | package org.gazzax.labs.solrdf.graph.cloud;
import static org.gazzax.labs.solrdf.NTriples.asNt;
import static org.gazzax.labs.solrdf.NTriples.asNtURI;
import java.util.Iterator;
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrQu... | 32.787037 | 129 | 0.708274 |
71d0cdc0b5fa5da9c3feaa846ebe3fc4178ce8b0 | 2,031 | /*
*
* Copyright 2012-2013 The MITRE 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 la... | 25.708861 | 124 | 0.631709 |
29351fda25757fa2fec1d422286469b489529990 | 5,214 | /*
* Copyright 2013 undera.
*
* 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 ... | 28.80663 | 83 | 0.636364 |
d1defc1d51b9af0c11fc5b4c527d359d19cc5f21 | 199 | package com.hammer.screen;
public class ScreenSystemSettings {
private static volatile ScreenSystemSettings instance;
public static ScreenSystemSettings getInstance() {
return instance;
}
}
| 18.090909 | 55 | 0.798995 |
b0847d3485e02e32ea8d78bd2e977772c267df39 | 4,006 | /*
* DBeaver - Universal Database Manager
* 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 the License at
*
* http://www.apache.org/licenses/LICE... | 28.211268 | 93 | 0.675487 |
de8c401b171a8e166ea46c4cdb31a1cdf86afc73 | 2,681 | /*
* Copyright 2020 Hazelcast Inc.
*
* Licensed under the Hazelcast Community 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://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agree... | 43.241935 | 113 | 0.739276 |
260c96a422ae57b35a701d07bd13be4ba54218cd | 1,343 | package net.andreinc.mockneat.github;
import net.andreinc.mockneat.MockNeat;
import net.andreinc.mockneat.abstraction.MockUnitInt;
import net.andreinc.mockneat.types.enums.IPv4Type;
import java.util.LinkedList;
import java.util.List;
import static net.andreinc.mockneat.types.enums.CreditCardType.AMERICAN_EXPRESS;
im... | 33.575 | 83 | 0.698436 |
6a2bf3f1a0c8f054b6431ca3db27fea67c648cfa | 623 | package listUtilities;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Main {
public static void main(String[] args) {
List<String> listStr = new ArrayList<>();
Collections.addAll(listStr, "Pesh", "GOG", "ads", "zdh");
List<Integer> listInt = ... | 28.318182 | 65 | 0.656501 |
4af31830f04a3838af34f54e5f13ddec2b9e7562 | 1,337 | package gov.samhsa.c2s.vss.web;
import gov.samhsa.c2s.vss.service.ValueSetService;
import gov.samhsa.c2s.vss.service.dto.ValueSetDto;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springfram... | 34.282051 | 78 | 0.801047 |
762ce097cfe8e54db7d0c9d94e4b04b13b4929dd | 2,689 | /*
*Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*WSO2 Inc. licenses this file to you under the Apache License,
*Version 2.0 (the "License"); you may not use this file except
*in compliance with the License.
*You may obtain a copy of the License at
*
*http://www.apache.org/lic... | 41.369231 | 111 | 0.735961 |
fd4cf0602023c0311f9b345ce86811ea6f4c3cf5 | 2,604 | package com.kunal.segmentTrees;
import java.util.Arrays;
public class SegmentTree2 {
public static void main(String[] args) {
int[] arr = {1, 3, 2, -5, 6, 4};
int n = arr.length;
int[] tree = new int[4 * n + 1]; // max size of tree will be (4*n + 1)
buildTree(arr, 0, n - 1, tree,... | 29.590909 | 119 | 0.503456 |
67cfe38a43a39c2930db76377e99921500167e39 | 920 | package gov.nasa.jpl.aerie.configwithdefaults;
import gov.nasa.jpl.aerie.contrib.models.Register;
import gov.nasa.jpl.aerie.contrib.serialization.mappers.DoubleValueMapper;
import gov.nasa.jpl.aerie.contrib.serialization.mappers.IntegerValueMapper;
import gov.nasa.jpl.aerie.contrib.serialization.mappers.StringValueMap... | 43.809524 | 90 | 0.786957 |
047bab77bb08eaef4ccc0edd4c88453cb1acb88c | 342 | package org.launchcode.myrecipe.models.data;
import org.launchcode.myrecipe.models.Recipe;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
@Transactional
@Repository
public interface RecipeDao extends CrudRepository<... | 24.428571 | 68 | 0.845029 |
9ca48639b33814d95ef64e7374770083b24d8432 | 689 | package org.spt.firstspringdataredis.Config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotat... | 43.0625 | 82 | 0.879536 |
a6fd62322d9ef1a05b3557dd5165db6b4cd13885 | 237 | package no.nav.foreldrepenger.mottak.tjeneste.dokumentforsendelse.dto;
import java.util.UUID;
public record ForsendelseIdDto(UUID forsendelseId) {
public ForsendelseIdDto(String uuid) {
this(UUID.fromString(uuid));
}
}
| 23.7 | 70 | 0.755274 |
424e25b310f3a3627b22e69e7b7f02ea19ece48c | 4,483 | /* Copyright (c) 2019, Arm Limited and Contributors
*
* SPDX-License-Identifier: Apache-2.0
*
* 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/LICENS... | 31.131944 | 100 | 0.660272 |
5a128c88c2218cbb3c92533a8aaaa567b57218c3 | 1,814 | package ma.sdop.imagelist.common.web;
import android.support.annotation.StringRes;
import java.util.Locale;
import ma.sdop.imagelist.R;
public class WebConfig {
public static final String HOST_INSTAGRAM = "https://www.instagram.com/";
public static final String HOST_N = "https://www.naver.com";
public ... | 30.745763 | 89 | 0.65215 |
8e3d255970383c60a4caf21da6a6d64a239dfe03 | 1,660 | package developerTC;
import org.junit.jupiter.api.*;
import sg.dex.starfish.Asset;
import sg.dex.starfish.DataAsset;
import sg.dex.starfish.impl.memory.MemoryAsset;
import sg.dex.starfish.impl.remote.RemoteAgent;
import sg.dex.starfish.impl.remote.RemoteDataAsset;
import sg.dex.starfish.util.Utils;
import static org.... | 29.642857 | 137 | 0.698795 |
6a5988ebb3c1618db594ec02decb416fa60b991a | 203 | package net.pladema.clinichistory.hospitalization.controller.dto.summary;
import lombok.*;
@Getter
@Setter
@ToString
@NoArgsConstructor
public class EpicrisisSummaryDto extends DocumentSummaryDto {
}
| 16.916667 | 73 | 0.832512 |
f2c59557a2eee673ff6c66d480361a3f55254fae | 1,360 | package com.lee.helper.advancedandroidhelper.activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import com.lee.helper.advancedandroidhelper.R;... | 29.565217 | 69 | 0.689706 |
94bd4a9c19552f751f1c3b187dc2e39326d26a3d | 3,336 | /*
* This class was auto-generated from the API references found at
* https://epayments-api.developer-ingenico.com/s2sapi/v1/
*/
package com.ingenico.connect.gateway.sdk.java.domain.refund.definitions;
import com.ingenico.connect.gateway.sdk.java.domain.definitions.AbstractOrderStatus;
import com.ingenico.connect.g... | 40.192771 | 167 | 0.754197 |
5594b314287c93b88243bc0aaefb45fa75346b91 | 1,544 | /*
* Copyright 2012 Kevan Dunsmore. 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... | 26.169492 | 105 | 0.628238 |
bcf7a974ff1bd87c0d14bc33c7ffdbe1d299c7a3 | 709 | package jif.lang;
import java.util.Set;
import jif.lang.PrincipalUtil.DelegationPair;
/**
* A Label is the runtime representation of a Jif label.
*
*/
public interface Label {
/**
* Returns true iff this <= l. If the method returns true, then
* s has all of the delegations (i.e., DelegationPairs) a... | 21.484848 | 71 | 0.669958 |
b2a0aa8ff6fa69936ca532722dd78382bda4136d | 2,871 | package com.dmytrobilokha.disturber.commonmodel;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Objects;
/**
* The class represents Matrix event
*/
public final class MatrixEvent {
private final String sender;
private final String contentType;
privat... | 26.1 | 116 | 0.611982 |
b94272e42e52152abadce3670a2bca6f365cad23 | 1,355 |
package contable;
import javax.swing.JLabel;
import javax.swing.JProgressBar;
import javax.swing.SwingWorker;
public class Progress extends SwingWorker<Integer, String>{
private JLabel label;
private JProgressBar jpbar;
public Progress(JLabel label, JProgressBar jpbar) {
this.label = label;
... | 19.926471 | 59 | 0.582288 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.