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 |
|---|---|---|---|---|---|
14dc58636167fe356ba0203ca8f658af15880025 | 1,508 | package io.nerv.config;
import io.nerv.core.license.LicenseCheckInterceptor;
import io.nerv.properties.EvaConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.... | 35.069767 | 85 | 0.778515 |
c4cef1d076a36fb343304c6f7944a984300ab546 | 911 | package net.linxingyang.diary.mapper;
import java.util.List;
import net.linxingyang.diary.pojo.FutureTask;
import net.linxingyang.diary.pojo.FutureTaskExample;
import org.apache.ibatis.annotations.Param;
public interface FutureTaskMapper {
int countByExample(FutureTaskExample example);
int deleteByExample(Fu... | 30.366667 | 114 | 0.789243 |
756249a9cafe22680dff12afe955d66c57460edb | 2,490 | package app.retake;
import app.retake.controllers.AnimalAidController;
import app.retake.controllers.AnimalController;
import app.retake.controllers.ProcedureController;
import app.retake.controllers.VetController;
import app.retake.io.api.ConsoleIO;
import app.retake.io.api.FileIO;
import org.springframework.beans.fa... | 40.16129 | 134 | 0.669478 |
c121d3d9787a4ee9b2b88cc332d0dbc0de05ab74 | 1,217 | /*
* Copyright 2021 DataCanvas
*
* 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 i... | 27.659091 | 80 | 0.615448 |
5e85ef710ac012b7b9f8f4c328b6c1094c029d31 | 695 | package seedu.savenus.model.info;
import seedu.savenus.logic.commands.BuyCommand;
//@@author robytanama
/**
* Contains information on Buy command.
*/
public class BuyInfo {
public static final String COMMAND_WORD = BuyCommand.COMMAND_WORD;
public static final String INFORMATION = "Buy command allows you t... | 31.590909 | 118 | 0.696403 |
be2e664aac86d354e43b0074d038dcfcafd86319 | 1,015 |
import java.awt.*;
import java.util.Random;
/**
* @brief This class represents single slice data of pie chart
*
*/
public class SliceData
{
private int value;
private Color color;
/**
* @brief ctor of SliceData value
* @param slice value
*/
public SliceData(int value)
{
... | 17.807018 | 62 | 0.553695 |
76ac21e27a44374b6a2f01c7b313f1651bc82e3e | 2,867 | /*******************************************************************************
* ENdoSnipe 5.0 - (https://github.com/endosnipe)
*
* The MIT License (MIT)
*
* Copyright (c) 2012 Acroquest Technology Co.,Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this s... | 25.371681 | 81 | 0.584234 |
e9fe34b1fd59caad337c10567f9228f438b45490 | 11,509 | package fr.craftechmc.environment.common.blocks;
import java.util.Random;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.init.... | 34.770393 | 116 | 0.545225 |
e96275181e17ce8ae499c7a447b1e21014c16c09 | 2,625 | // Copyright 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at
// http://oss.oracle.com/licenses/upl.
package oracle.kubernetes.operator.rest.resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Pro... | 29.829545 | 98 | 0.713143 |
b37814e3a1f41c41ba1270a7685aacaa5eb47353 | 6,006 | package com.fitpay.android.paymentdevice.impl.ble;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothManager;
import android.content.Context;
import com.fitpay.android.api.models.apdu.ApduCommand;
import com.fitpay.android.api.models.apdu.ApduPackag... | 34.918605 | 117 | 0.67649 |
e02558a49a897a8060aa149c855aec0a4aaf6b22 | 1,762 |
import java.util.ArrayList;
import java.util.List;
public class Laptop {
String retailer;
String name;
String id;
String image;
String condition;
String discount;
int price;
List<String> accessories;
public Laptop(String retailer,String name, String id, String i... | 18.164948 | 145 | 0.634506 |
c95af4f27b436ea7ec6be964d044af097d3540f4 | 3,869 | /*******************************************************************************
* Copyright (c) 2014, 2015, 2020 Sergiy Yevtushenko
*
* 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
*
... | 29.534351 | 80 | 0.611011 |
e18fea464dacc2a212e70a21aebf9a901f6cc708 | 627 | package io.logz;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
/**
* Created by ofer_v on 8/11/15.
*/
public class Main {
final static Logger logger = LoggerFactory.getLogger(Main.class);
public static void main(String[] args) {
// UNCOMMENT THE FOLLOWING W... | 20.225806 | 104 | 0.663477 |
e0bc70abba21a77ce66d29e69745c877d7a3f8a7 | 352 | package org.evomaster.client.java.instrumentation.example.methodreplacement.strings;
import com.foo.somedifferentpackage.examples.methodreplacement.strings.StringsExampleImp;
public class SEnotInstrumentedTest extends StringsExampleTestBase{
@Override
protected StringsExample getInstance() {
return n... | 29.333333 | 89 | 0.809659 |
ad73dc7b84d766fe4c735a3851a51fa2638ebd75 | 582 | package com.tortuousroad.admin.security.entity;
import com.tortuousroad.framework.base.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.Date;
/**
* AdminRoleFunction
*/
@NoArgsConstructor
@AllArgsConstructor
public cl... | 24.25 | 57 | 0.781787 |
cd781e8709c67ff034d42a326927ac9ab72df3c1 | 384 | package com.alibaba.csp.sentinel.dashboard.config;
import java.util.ArrayList;
import java.util.List;
/**
* 拦截记录请求日志URL
* @author Yaosh
* @version 1.0
* @commpany 星瑞国际
* @date 2020/6/3 16:04
* @return
*/
public class LogInterceptorConfig {
public static final List<String> LogURL = new ArrayList<String>(){... | 17.454545 | 70 | 0.635417 |
142bb1f5bc4d9373c6af131c000e5f9793ec3e4d | 2,573 | /*
* Copyright 2017-2018 Adobe.
*
* 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 ... | 23.605505 | 121 | 0.682083 |
38b8c3bd702202d709bae95d3a55122b1bc3dba8 | 2,513 | /*
* Copyright [2021] [Doric.Pub]
*
* 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... | 37.507463 | 88 | 0.692797 |
f868cad144d50ba54f627d161d26c72814769769 | 36,587 | package mage.sets;
import mage.cards.ExpansionSet;
import mage.collation.BoosterCollator;
import mage.collation.BoosterStructure;
import mage.collation.CardRun;
import mage.collation.RarityConfiguration;
import mage.constants.Rarity;
import mage.constants.SetType;
import java.util.ArrayList;
import java.util.List;
/... | 89.894349 | 489 | 0.684068 |
bb7bbc9603320f4748dbe5666eae31b871ef689a | 497 | package com.ilemontech.ldcos.system.service.impl;
import com.ilemontech.ldcos.system.entity.Role;
import com.ilemontech.ldcos.system.mapper.RoleMapper;
import com.ilemontech.ldcos.system.service.IRoleService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
... | 23.666667 | 92 | 0.778672 |
0c0c57920da0617b4f7d8a8facdc11b7a915044d | 2,081 | package com.app.zine.zine;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import java.util.Objects;
public class TeamActivity exten... | 37.836364 | 104 | 0.681884 |
e8af56f1bdd191ed0966cde2fd3df31afea6f70d | 3,554 | /*
* #!
* Ontopoly Editor
* #-
* Copyright (C) 2001 - 2013 The Ontopia 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.... | 34.504854 | 101 | 0.709904 |
1ab603c1c055394ac7d74279e807e568a294549e | 2,213 | package com.georef.api.provincias.controller;
import com.georef.api.provincias.service.ProvinciaService;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.lang.String;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.fact... | 29.905405 | 101 | 0.749209 |
598bce8d97ccc2e91f4b6345cf810d518091ba06 | 3,586 | /*
* Copyright (c) 2013-2018, Bingo.Chen (finesoft@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 31.734513 | 100 | 0.70831 |
b4c1f2478409ab4a8ce94ec6dd1163b8f8821228 | 2,686 | /* Copyright 2020 Braden Farmer
*
* 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 i... | 26.07767 | 75 | 0.572971 |
9d85925a3a41ceede75592982a5eae28ab661e87 | 863 | package model.executable;
import java.util.List;
import exception.SyntacticErrorException;
import model.Executable;
import model.LogHolder;
import model.SemanticsRegistry;
/**
* Dynamic binding at runtime through semantics registry
* @author CharlesXu
*/
public class ProcedureStub extends Command {
private Sem... | 20.547619 | 70 | 0.782155 |
75400658655b16eb946a0f2f5546996382f271ee | 5,633 | package org.aries.common.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang.StringEscapeUtils;
import org.aries.common.EmailMessage;
import org.aries.util.BaseUtil;
i... | 36.108974 | 114 | 0.77188 |
cfc0fdf89196977638dbebaa31ec591e6d9e26bc | 4,309 | package com.danikula.android.garden.utils;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
i... | 39.172727 | 127 | 0.718496 |
c9aa4a35cad21ecceaae6cd583b2625edc8bec9b | 99,189 | /*
* Copyright 2014-2021 The Ideal Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/
package ideal.development.transformers;
import ideal.library.elements.*;
impor... | 41.397746 | 101 | 0.708909 |
54e27cfcafaddbe54d2f6250c3a324137fcb446b | 5,738 | package cn.tojintao.dao.impl;
import cn.tojintao.dao.UserDao;
import cn.tojintao.model.entity.Group;
import cn.tojintao.model.entity.User;
import cn.tojintao.util.DbUtil;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedList... | 28.69 | 115 | 0.501743 |
3025815de78158b1c3ce3a9ab35dd54cdc03da80 | 2,048 | package seedu.address.logic.commands;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.logic.commands.CommandTestUtil.deleteFirstHealthWorker;
import static seedu.address.logic.c... | 37.925926 | 115 | 0.750977 |
af6349ae8c21db56f38f979e788c39155683d462 | 4,287 | /*
* Copyright 2019 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 "license" ... | 42.445545 | 116 | 0.700257 |
de3f884598fc4428ca7013c7ebd5582dce7f727f | 3,325 | package io.github.aload0.spring.dva;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.util.StringUtils;
public class DvaProxy<T> implements FactoryBean {
private final Cl... | 29.6875 | 96 | 0.673083 |
8141607b3dccc33403f990e6c88bc4239133ec54 | 16,975 | /*
* Copyright DataStax, 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 in wri... | 35.217842 | 127 | 0.562651 |
6af3c55ff4bf6ae0e4d3f6bfa0520ae756df08f1 | 1,577 | package com.walnuthillseagles.walnutlibrary;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
/**
* Created by Yan Vologzhanin on 1/2/2016.
*/
public class TimedMotor extends LinearMotor implements Runnable, Auto {
public static final int MSEC... | 27.666667 | 94 | 0.603044 |
90c8fd8219f74895d0e16df0b9d4ae771f4f9057 | 883 | package com.example.run.room;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.room.Database;
import androidx.room.DatabaseConfiguration;
import androidx.room.InvalidationTracker;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.sqlite.db.Suppo... | 32.703704 | 116 | 0.734994 |
45b2fd150a9ba623adb21e4d0bad04cceeecb98a | 1,398 | interface Graphic {
void accept(Visitor v);
}
interface Visitor {
void visitShape(Shape shape);
void visitDot(Dot dot);
void visitRectangle(Rectangle rectangle);
void visitCircle(Circle circle);
}
final class ConcreteVisitor implements Visitor {
@Override
public void visitShape(Shape shape) {
System.ou... | 16.642857 | 50 | 0.705293 |
f439afec60b09c47576c911c83bd4dc2d739171d | 1,000 | import com.jaunt.*;
import com.jaunt.component.*;
public class Example19{
public static void main(String[] args){
try{
UserAgent userAgent = new UserAgent();
String url = "http://northernbushcraft.com";
userAgent.setCacheEnabled(true); //caching turned on
userAgent.visit(url); ... | 41.666667 | 120 | 0.647 |
7fd0318c4c42a70108f692e2231b13c3d554f927 | 746 | package io.github.hapjava.characteristics.impl.common;
import io.github.hapjava.characteristics.CharacteristicEnum;
import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;
/** 0 ”Inactive” 1 ”Active” 2-255 ”Reserved” */
public enum ActiveEnum implements CharacteristicEnum {
INACTIVE(0),
... | 21.314286 | 98 | 0.710456 |
7728a32fb307f8236820b73737a17f1a7ac26370 | 2,066 | private void updateViewerContent(ScrollingGraphicalViewer viewer) {
BioPAXGraph graph = (BioPAXGraph) viewer.getContents().getModel();
if (!graph.isMechanistic()) return;
Map<String, Color> highlightMap = new HashMap<String, Color>();
for (Object o : graph.getNodes()) {
I... | 41.32 | 143 | 0.578896 |
2172d447036d8e528f854429fed09611b94c656f | 1,305 | /*
* Copyright 2014-2022 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... | 29 | 75 | 0.733333 |
1069f6fc244bff42dd61ac2d25d3b4bdb3496c76 | 684 | package work.icql.java.designpattern.structural.adapter;
import work.icql.java.designpattern.structural.adapter.adaptee.Adaptee1;
import work.icql.java.designpattern.structural.adapter.adaptee.Adaptee2;
import work.icql.java.designpattern.structural.adapter.clazz.ClazzAdaptor;
import work.icql.java.designpattern.struc... | 34.2 | 76 | 0.745614 |
587b973ba30abb42dde6919697214282743151af | 2,409 | /*
* #%L
* omakase-task
* %%
* Copyright (C) 2015 Project Omakase LLC
* %%
* 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
*
* ... | 37.061538 | 128 | 0.670818 |
6278d9c628019bf1810a63b3537f2c61f092fb05 | 1,455 | package dev.controller.vm;
import dev.domain.Product;
public class ProductVM {
private String name;
private String photo;
private String description;
private double price;
private String category;
private boolean state;
private int quantity;
public ProductVM(final Product product) {
name = pr... | 18.1875 | 50 | 0.668729 |
011a13cb362a1c7aecb3510a712446b76c323c36 | 675 | package cn.stylefeng.guns.job;
import cn.stylefeng.guns.modular.game.warpper.HttpClientUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.util.Date;
/**
* Created by ccanrom7
*... | 22.5 | 62 | 0.706667 |
c0a4b9a29812ffedfe11d86df5bfc043c1b1efda | 2,057 | package io.kodlama.hrms.api.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org... | 32.140625 | 106 | 0.819154 |
004e0ee4417cd5d31b3bc9e4998d53420c2cba99 | 7,158 | import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedB... | 33.924171 | 85 | 0.605616 |
f44ce2743746f246a270233a6b454691b4b7590e | 1,924 | /**
* (c) 2009 Microsoft corp.
* This software is distributed under Microsoft Public License (MSPL)
* see http://opensource.org/licenses/ms-pl.html
*
* @author Microsoft, Vincent Simonetti
*/
package bing.requests;
/**
* Request object to be used when requesting mobile web results.
*/
public class... | 30.0625 | 160 | 0.713617 |
51f77add4811bf74a8077734b1c1574bad15402f | 220 | package com.checkmarx.flow.exception;
public class ADOClientException extends MachinaException {
public ADOClientException() {
}
public ADOClientException(String message) {
super(message);
}
}
| 18.333333 | 58 | 0.713636 |
0b9e9118c2c6bc7036e4488209f2bd3afc9424ad | 2,052 | package com.dev.base.util;
import java.io.IOException;
import java.io.Writer;
import java.util.Properties;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import com.dev.base.utils.PropertiesUtils;
import freemarker.template.Configuration;
import freemarker.templat... | 21.6 | 104 | 0.711988 |
bd7406d2458bfffca4eb89472aebdd36b91b378b | 8,977 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.co.etothepii.haddock.db.gui;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.sql.SQLException;
import java.util.ArrayList;
import... | 39.546256 | 91 | 0.619361 |
7c33d6bd426eff8f1613f7aaff3b70e24a864de3 | 3,022 | /*
* Copyright 2014 David Morrissey
*
* 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... | 34.340909 | 109 | 0.671079 |
a1821f9104d038783f6e0acaef525f50dff0c22a | 677 | package fi.aalto.dmg.exceptions;
import java.io.Serializable;
/**
* Window time duration exception
* cast util.TimeDurations to duration in different platforms
* Created by jun on 11/3/15.
*/
public class DurationException extends Exception implements Serializable {
private static final long serialVersionUI... | 19.342857 | 74 | 0.682422 |
c3abbe331dcce75d10411711961ccd97f42adb0b | 4,057 | package com.bitbreeds.webrtc.sctp.impl.model;
/*
* Copyright (c) 29/06/16, Jonas Waage
* <p>
* 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 limitati... | 32.456 | 129 | 0.638403 |
882087219866358d7b11de67d9077bbd3f6c7434 | 1,454 | package server.frame;
import java.awt.HeadlessException;
import java.sql.Date;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import server.dao.UserDao;
import server.entity.Users;
publ... | 28.509804 | 86 | 0.743466 |
7dde3ec90b5a329d48bf04264b48c831e935011c | 5,053 | package org.anasoid.jmc.plugins.utils;
import com.thoughtworks.xstream.converters.ConversionException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
impor... | 32.184713 | 99 | 0.702355 |
047f59709bceeeaffece7f5d27a7083cede59599 | 128 | package com.bookstore.dto;
public interface AuthorNameEmailDto {
public String getName();
public String getEmail();
}
| 16 | 37 | 0.734375 |
b67974b0993bdbe7a10cf19bc820c3166ed26963 | 66,327 | package com.rbkmoney.eventstock.client.thrift; /**
* Autogenerated by Thrift Compiler (1.0.0-dev)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.scheme.IScheme;... | 34.545313 | 326 | 0.652329 |
ba1a0193b84b3fdfb215a29a1bb0020ce0f450f8 | 3,055 | package net.mgsx.game.examples.platformer.ai;
import com.badlogic.ashley.core.Engine;
import com.badlogic.ashley.core.Entity;
import com.badlogic.ashley.core.Family;
import com.badlogic.ashley.systems.IteratingSystem;
import com.badlogic.ashley.utils.ImmutableArray;
import com.badlogic.gdx.math.Vector2;
import com.bad... | 39.675325 | 132 | 0.771195 |
540d3c9f5c9f1958bc8bbdd4c9eb7dd608cbe75a | 4,999 | package org.usfirst.frc.team2506.robot;
import org.usfirst.frc.team2506.robot.XboxController.JoystickManager;
import org.usfirst.frc.team2506.robot.XboxController.XboxButtons;
import org.usfirst.frc.team2506.robot.XboxController.Events.IButtonPressed;
import org.usfirst.frc.team2506.robot.XboxHandlers.ButtonStartHandl... | 33.777027 | 116 | 0.755751 |
3fafd691b51d59904b83ff05746991ba2451aa4c | 3,255 | package io.agrest.runtime;
import com.fasterxml.jackson.databind.JsonNode;
import io.agrest.AgModuleProvider;
import io.agrest.TestModuleProvider;
import io.agrest.converter.jsonvalue.JsonValueConverter;
import org.apache.cayenne.di.Binder;
import org.apache.cayenne.di.Key;
import org.apache.cayenne.di.Module;
import ... | 30.420561 | 101 | 0.664823 |
404f7908ba988ad4ea7b993cc34a3fe4700bdffd | 5,929 | /*
* 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 ... | 34.47093 | 132 | 0.561646 |
b58249ba12544e4419fc3457600ebaa04eed7fe0 | 1,157 | package me.lesmtech.nestedcategoryview.lib;
import android.support.v7.widget.RecyclerView;
import android.view.View;
/**
* @Author te.lin
* @Since 9/8/16
*/
public abstract class SimpleViewHolder<T> extends RecyclerView.ViewHolder {
private boolean isSelected = false;
public SimpleViewHolder(final View itemV... | 23.14 | 77 | 0.699222 |
be9b471954975c69091ba81b496ef2c72e039db2 | 1,186 | //
// Copyright (c) 2011, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 3 Jan 11 Brian Frank Creation
//
package fan.util;
import fan.sys.*;
import fan.std.*;
public class SeededRandomPeer
{
public static SeededRandomPeer make(SeededRandom self)
{
re... | 19.766667 | 67 | 0.63575 |
6c6959ad4f51f5b1210b1ad803717975acf641fd | 390 | package org.nutz.lang.meta;
import java.util.Arrays;
import java.util.List;
public class IssueVarStringMethodC {
private IssueVarStringMethodC(){}
public List<String> names;
public static IssueVarStringMethodC make(String...names) {
IssueVarStringMethodC sm = new IssueVarStringMethodC()... | 21.666667 | 63 | 0.687179 |
c7196b890f048922167620465d4374f54f8b72ad | 1,309 | package org.dhis2.data.service;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.work.Worker;
import androidx.work.WorkerParameters;
import com.google.firebase.perf.metrics.AddTrace;
import org.dhis2.App;
import javax.inject.Inject;
/**
* QUADRAM. Created by ppajuelo on 23/10/2... | 24.240741 | 106 | 0.659282 |
dc9ab0f7031b6f300b3122638e4f1c1080874e8a | 1,413 | package com.glume.glumemall.product.service.impl;
import com.glume.common.mybatis.PageUtils;
import com.glume.common.mybatis.Query;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybati... | 33.642857 | 126 | 0.757254 |
c08b073b86bf3799fcf942caa17927d76889a7d9 | 2,653 | /*
* Copyright © 2017-2021 Dominic Heutelbeck (dominic@heutelbeck.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 r... | 37.366197 | 87 | 0.802865 |
dff16b0aaf29350120f6c60887faf0a52d6a842b | 4,227 | // ssGAS.java
//
// Author:
// Antonio J. Nebro <antonio@lcc.uma.es>
// Juan J. Durillo <durillo@lcc.uma.es>
//
// Copyright (c) 2011 Antonio J. Nebro, Juan J. Durillo
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public Licen... | 31.544776 | 100 | 0.668086 |
e003f1a7f50466cd1ecea0810aa280e2fced963e | 988 | package lambda;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class Calculator {
interface IntegerMath {
int operation(int a, int b);
}
public int operateBinary(int a, int b, IntegerMath op) {
retur... | 30.875 | 89 | 0.61336 |
c6027aa6886ece80f5680132b124429ddcb39dbf | 4,467 | /*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 Dirk Beyer
* 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... | 34.898438 | 159 | 0.738751 |
629827c7dafe4e596bb7d717dee4bac51ae1e556 | 1,085 | package org.onetwo.boot.core.shutdown;
import java.util.Arrays;
import java.util.Collection;
import org.onetwo.boot.core.config.BootJFishConfig;
import org.onetwo.boot.core.shutdown.GraceKillSignalHandler.GraceKillProcessor;
import org.onetwo.common.log.JFishLoggerFactory;
import org.onetwo.common.utils.LangUtils;
im... | 27.820513 | 123 | 0.775115 |
582081a235bbb8145c69dc33328817ad1367f37e | 639 | package hulva.luva.wxx.platform.puzzle.backend.model;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author Hulva Luva.H
* @since 2019-10-12
*
*/
@Data
@NoArgsConstructor
public class FileModel {
private String name;
private Long fileSize;
private String type;
private String modifyTime;
private ... | 21.3 | 79 | 0.72457 |
f83313f167e5668a91cd998be9cad1856f954a09 | 4,976 | package ca.uhn.fhirtest;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.rest.api.MethodOutcome;
import ca.uhn.fhir.rest.client.api.IGenericClient;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
import org.hl7.fhir.dstu3.model.Organization;
import org.hl7.fhir.dstu3.m... | 40.455285 | 104 | 0.714429 |
2965fd56f15dac8de15a6cbcfd76a92c9079d062 | 96 | /**
* Pooling provides lower GC requirements by re-using components.
*/
package reactor.alloc; | 24 | 65 | 0.75 |
44fcd25c671200a224b1ed8896a88238a1650bee | 1,778 | package org.firstinspires.ftc.teamcode.libs;
import android.content.Context;
import com.arcrobotics.ftclib.geometry.Transform2d;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.spartronics4915.lib.T265Camera;
/*
* This file is made to be used in the Camer... | 38.652174 | 98 | 0.713161 |
cc251d7e8a2047479b8cda72bc5914de4648476f | 2,185 | package com.j2ooxml.pptx.html;
import java.awt.Color;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.sl.usermodel.TextParagraph.TextAlign;
import org.apache.poi.xslf.usermodel.XSLFTextParagraph;
import org.jsoup.nodes.Node;
import com.j2ooxml.pptx.GenerationException;
import com.j2ooxml.pptx.Stat... | 30.774648 | 101 | 0.627918 |
f774974c794efdb96d1cb3b41a7eb860c4aed28d | 1,177 | package com.example.amesingflank.rubixcube;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Shader;
import android.view.View;
/**
* Created by AmesingFlank on 16/1/9.
*/
publ... | 22.634615 | 148 | 0.656754 |
f846466c31616b17605bbb882fa415004110fec5 | 2,988 | /*
* 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 ... | 34.744186 | 95 | 0.690428 |
2f7a8595eb5430195de0632331d9dc58418f26e8 | 22,392 | package javatools.parsers;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Map;
import java.util.Set;
/**
This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools).
It is licensed under the Creative Commons Attribution License
(see http://creativecommo... | 24.633663 | 118 | 0.551268 |
7ef26593830b4a4127c700737b4ba8ffab6e9ade | 2,063 | package sword.chap4;
import java.util.HashMap;
import java.util.Map;
/**
* @author wenghengcong
* @className: StringPermutation
* @desc:
* @date 2019-07-2917:20
*/
/**
* 给定两个字符串,请设计一个方法来判定其中一个字符串是否为另一个字符串的置换。
* 置换的意思是,通过改变顺序可以使得两个字符串相等。
*
* 题目:https://www.lintcode.com/problem/string-permutation/
*
* */
pub... | 23.988372 | 72 | 0.457101 |
5dac2ec824cbed0cbd3b8295c9e58e77fabf3496 | 2,275 | package com.google.zxing.encoding;
import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.AsyncTask;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.activity.Callback;
import com.google.zxing.commo... | 35 | 117 | 0.517802 |
23688e74241002b607757a1cfe5ecd63558d82e0 | 4,026 | package no.entra.bacnet.agent.commands.cov;
import no.entra.bacnet.json.bvlc.BvlcFunction;
import no.entra.bacnet.objects.ObjectId;
import org.slf4j.Logger;
import java.io.IOException;
import java.net.DatagramSocket;
import java.net.InetAddress;
import static no.entra.bacnet.internal.objects.ObjectIdMapper.toHexStri... | 46.275862 | 162 | 0.712618 |
b3d4f05e4c8580656b16c78186e338d524c2a44a | 1,234 | package com.sy.spring.cloud.alibaba.generator.message;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.cli... | 37.393939 | 126 | 0.822528 |
3d42307d7da9df303b69b21a5ee44f88bedfd548 | 11,619 | /*
* Copyright (c) 2019 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.saml.sp.web.authnEditor;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
import java.util.stream.Collect... | 28.759901 | 104 | 0.766417 |
368fe8589a42c2aac58d135508bb6b48c285c987 | 4,410 | package org.yaoqiang.bpmn.editor.dialog.jsonpanels;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.naming.directory.Attributes;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import org.json.JSONException;
import org.json.JSONObject;
... | 33.923077 | 150 | 0.75102 |
fc1da7cb82c5cc5e73ec70a2e93e1a90e8b18462 | 3,183 | /*
* Java Information Dynamics Toolkit (JIDT)
* Copyright (C) 2012, Joseph T. Lizier
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at yo... | 37.011628 | 100 | 0.717876 |
02f72a283965c67ed697e21756d15dc7f1a83ce3 | 7,461 | /*
* $Id$
* Copyright (C) 2006 Klaus Reimer <k@ailis.de>
*
* 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, ... | 21.944118 | 79 | 0.536925 |
082fcd5ad0fdb189b3e04cc25b4b193e8e61f298 | 710 | import java.util.HashMap;
//基本数据结构专题-LeetCode560.和为K的子数组
public class test005 {
/*
给定一个整数数组和一个整数 k,你需要找到该数组中和为 k 的连续的子数组的个数。
示例:
输入:nums = [1,1,1], k = 2
输出: 2 , [1,1] 与 [1,1] 为两种不同的情况。
注意,问题要求是连续的,所以输出的意思为 结果1:a[0],a[1]; 结果2:a[1],a[2]
*/
public int subarraySum(int[] nums, int k) {
... | 26.296296 | 61 | 0.511268 |
f124f0ea017129310a9737a461af3be32bc0d47f | 1,856 | /***************************************************************************
* Copyright (C) 2018 iObserve Project (https://www.iobserve-devops.net)
*
* 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 ... | 34.37037 | 89 | 0.664332 |
2ea306afae9f0d96ec8205df79c2cfda3127e01d | 986 | package ooga.engine.physics.physicsCalculator;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class AccelerationCalculatorTest {
private AccelerationCalculator ac=new AccelerationCalculator();
@Test
void getAX() {
// double initialXAcceleration, Double fx
... | 30.8125 | 67 | 0.679513 |
d37ab27755182a19afbbb2353920b0aca6f702cb | 1,077 | package com.acme.test.vlingo.infrastructure.persistence;
import io.vlingo.xoom.annotation.persistence.Persistence;
import io.vlingo.xoom.annotation.persistence.Persistence.StorageType;
import io.vlingo.xoom.annotation.persistence.Projections;
import io.vlingo.xoom.annotation.persistence.Projection;
import io.vlingo.xo... | 38.464286 | 109 | 0.820799 |
e8d609226d4cea9adc7af9f3e1696f1cb5e1e407 | 18,056 | /*
* 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 ma... | 30.448567 | 99 | 0.701817 |
6be4a652e6e15d150d9bb5309cf9ff16e5db59e0 | 221 | package example.service;
import example.repo.Customer240Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer240Service {
public Customer240Service(Customer240Repository repo) {}
}
| 20.090909 | 57 | 0.837104 |
809196ede0983237efee08ddae122dab13d4db01 | 692 | package lab09_while_dowhile;
// A+ Computer Science - www.apluscompsci.com
//Name -
//Date -
//Class -
//Lab -
public class LetterRemoverRunner {
public static void main(String args[]) {
//add test cases
String[] testStrings = {"I am Sam I am", "ssssssssxssssesssssesss", "qwertyqwertyqwerty", ... | 28.833333 | 128 | 0.575145 |
0b8f535f78b0953405602a431a89db9c2ad9cc74 | 5,039 | package org.elastos.wallet.ela.rxjavahelp;
import android.app.Dialog;
import org.elastos.wallet.ela.utils.Log;
import android.widget.Toast;
import org.elastos.wallet.ela.ElaWallet.MyWallet;
import org.elastos.wallet.ela.base.BaseActivity;
import org.elastos.wallet.ela.base.BaseFragment;
import io.reactivex.Observer;... | 32.509677 | 129 | 0.566382 |
5ebec2b44801f62370d09132e34dcd71aa80b9d8 | 1,116 | /**
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.... | 31 | 80 | 0.734767 |
cc48f987e547bba37dd5d7572efc801757795d31 | 824 | package com.swingfrog.summer.client;
import com.google.common.collect.Lists;
import com.swingfrog.summer.util.PollingUtil;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
public class ClientGroup {
private final AtomicInteger next;
private final List<Client> clientList;
public ClientGr... | 20.6 | 72 | 0.73301 |
f37961f38ecf505aba93d671987dc3881927d29c | 4,354 | package com.cqx.leetcode;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
/**
* Created by cqx on 2018/3/26.
*/
public class DAY3 {
/**
* '?' Matches any single character.
* '*' Matches any sequence of characters (including the empty sequence).
... | 30.236111 | 102 | 0.519752 |
8e2867a393a94f282f1491549d0fe5bcf746953d | 17,485 | /*
Copyright 2012 Christian Dadswell
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
d... | 39.558824 | 218 | 0.692079 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.