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 |
|---|---|---|---|---|---|
5990ee9e125a5c8fb6935b107c28996175fc5007 | 865 | package org.noear.solon.cloud.extend.jaeger.integration;
import org.noear.solon.SolonApp;
import org.noear.solon.Utils;
import org.noear.solon.cloud.extend.jaeger.JaegerProps;
import org.noear.solon.cloud.extend.jaeger.service.JaegerTracerFactory;
import org.noear.solon.cloud.tracing.TracingManager;
import org.noear.s... | 29.827586 | 79 | 0.717919 |
3312bfb4b4b2e0ae03fe66743d5b3eb589558fb0 | 576 | package com.service.dev_user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dao.dev_user.DevMapper;
import com.pojo.Dev_user;
@Service("DevService")
public class DevServiceImpl implements DevService {
@Autowired
public DevMappe... | 20.571429 | 64 | 0.75 |
9d2747472b1b9411f1359fb4dfedc56951e83951 | 2,604 | package mythicbotany.data;
import io.github.noeppi_noeppi.libx.data.provider.BlockTagProviderBase;
import io.github.noeppi_noeppi.libx.data.provider.ItemTagProviderBase;
import io.github.noeppi_noeppi.libx.mod.ModX;
import mythicbotany.ModBlockTags;
import mythicbotany.ModBlocks;
import mythicbotany.ModItemTags;
impor... | 42.688525 | 125 | 0.812212 |
1e44124d574328da1fe5b9b34e414f3124dacedc | 26,442 | /*
* API CHC v4
* Liste l'ensemble des services et des opérations disponibles dans le module choix des cursus v4
*
* The version of the OpenAPI document: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the cla... | 55.55042 | 251 | 0.677823 |
76c81f5d1ed4910618a482135e7517d191345fee | 6,335 | /*
* 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 assignmenttwo_genealogy;
import java.io.Serializable;
/**
*
* @author becky
*/
public class Nodi implements Serializable{... | 24.843137 | 79 | 0.600158 |
c1c80438ea2783f30154f39122e87fb4d901e299 | 4,238 | package icbm.explosion.blast;
import icbm.Reference;
import icbm.content.entity.EntityFlyingBlock;
import icbm.explosion.Blast;
import icbm.explosion.thread.ThreadSmallExplosion;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import net.minecraft.block.Block;
import net.minecraft.entity.Entit... | 32.852713 | 197 | 0.571024 |
ee59b3cec64612f29dab1450ccc53b8915dac382 | 683 | // Generated code from Butter Knife. Do not modify!
package br.com.mobiclub.quantoprima.ui.fragment.notification;
import android.view.View;
import butterknife.ButterKnife.Finder;
public class NotificationsConfigFragment$$ViewInjector {
public static void inject(Finder finder, final br.com.mobiclub.quantoprima.ui.fr... | 37.944444 | 154 | 0.793558 |
76765f6289ddd9e89e883dbacfc988cd95fe4f1a | 4,730 | package io.king.core.provider.module;
import io.king.core.api.cycle.CycleLoader;
import io.king.core.api.cycle.LifeCycle;
import io.king.core.api.module.Module;
import io.king.core.api.module.ModuleManager;
import io.king.core.api.module.ModuleModel;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
impo... | 30.320513 | 96 | 0.636998 |
5439a5b90d7f53dd227ae2fc9b4e73c09b6aa3fb | 2,383 | /**
* Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved.
*
* 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 fil... | 34.536232 | 112 | 0.77927 |
b108f8baf98157b45305f0c3e1f6b2f521b1fa3c | 1,588 | package com.example.funfindr;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
public c... | 26.466667 | 92 | 0.656171 |
d89eef06c5bda4bb93f1971a2f896be2ac2b91f0 | 921 | package ex8;
import java.io.Serializable;
public class Entry implements Serializable {
private String mName;
private int mWin;
private int mLose;
private int mDraw;
public Entry(final String _playerName, final int _win, final int _lose, final int _draw) {
mName = _playerName;
mWin... | 18.058824 | 94 | 0.57329 |
364716797fb3f79eeaa5e8b668de997de237cac0 | 4,074 | package tis.bhaw.DataAccessObject;
import tis.bhaw.Classes.*;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.sql.Connection;
import com.mysql.jdbc.PreparedStatement;
public class DataAccessObjectUsuario {
private Connection connection;
publ... | 24.690909 | 136 | 0.65513 |
5e98ac9cb3cae256f258b7f49e8bc5f1dd18fd83 | 1,226 | package indi.felix.kw.common.toolkit;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils;
public class MD5Utils {
private static String salt = "felixhpp.kw";
/**
* 加密字符串
* @param password 要加密的明文
* @param isAddSalt 是否加默认盐... | 21.508772 | 66 | 0.692496 |
7134030c2b407ad74b5e314822fd92260f1f45a6 | 589 | package io.virtdata.conversions.from_long;
import io.virtdata.annotations.Categories;
import io.virtdata.annotations.Category;
import io.virtdata.annotations.ThreadSafeMapper;
import java.util.function.LongFunction;
@ThreadSafeMapper
@Categories({Category.conversion})
public class ToFloat implements LongFunction<Flo... | 22.653846 | 53 | 0.714771 |
830057a4c794890ea553885b60577e4ee6d51c93 | 4,334 | package com.ros.entity;
/**
* 定义用户收货地址实体类
* @author hyf
*
*/
public class Address {
private int addressId;
private int userId;
private String receiverProvince;
private String receiverCity;
private String receiverDistrict;
private String receiverName;
private String receiverPhone;
private String address... | 28.893333 | 113 | 0.754269 |
86f1b3d41e3ee3b29c74ea632d506b079e3a4893 | 1,027 | package inpro.incremental.unit;
import sium.nlu.stat.Distribution;
import inpro.incremental.unit.IU;
public class SlotIU extends IU {
private Distribution<String> distribution;
private String name;
private boolean head;
public SlotIU(String name, Distribution<String> dist) {
setName(name);
setDistribution... | 17.706897 | 88 | 0.70594 |
10cfadbf6e6997e17cfd07a610bbc22137b2af2a | 1,649 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://... | 23.557143 | 608 | 0.788357 |
4df979d7a90548c40b3600ab4571fb94b9dfe7e7 | 1,333 | package com.github.nikbenson.roleplaybot.messages;
import org.jetbrains.annotations.NotNull;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;
public class CLIEventGenerator extends Thread {
private static CLIEventGenerator i... | 21.5 | 96 | 0.734434 |
9ff8c5324d56c35ff61efb480ecc51817481ddfc | 478 | package com.atdi.gboot.examples.guice.jetty.jersey;
import com.google.inject.AbstractModule;
import com.google.inject.name.Names;
import java.util.Properties;
public class AppConfigurationModule extends AbstractModule {
private final Properties properties;
public AppConfigurationModule(Properties properti... | 21.727273 | 60 | 0.742678 |
a975d7d1d7556e8137c437c84e1bfb184b20045d | 592 | package com.redbyte.platform.authoritycenter.core.service.impl;
import com.redbyte.platform.authoritycenter.core.entity.UserRole;
import com.redbyte.platform.authoritycenter.core.dao.UserRoleMapper;
import com.redbyte.platform.authoritycenter.core.service.IUserRoleService;
import com.baomidou.mybatisplus.extension.ser... | 28.190476 | 108 | 0.807432 |
3734a76cc55f69a35194b68cc4ac6447e31367ef | 5,517 | /*
* Copyright 2021 Richard Linsdale (richard at theretiredprogrammer.uk).
*
* 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
*
* Unl... | 38.3125 | 111 | 0.674461 |
08b9b2c08a37ee34f95317fad00eacf26e4d359e | 3,104 | package org.squiddev.plethora.integration.computercraft;
import dan200.computercraft.api.peripheral.IPeripheral;
import dan200.computercraft.shared.peripheral.speaker.SpeakerPeripheral;
import net.minecraft.client.renderer.block.model.IBakedModel;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityL... | 28.218182 | 118 | 0.752577 |
f6729aaab866d26c8aa0555cd6fb1ceaf063dc56 | 918 | //package cn.edu.neu.shop.pin.customer.service;
//
//import cn.edu.neu.shop.pin.PinApplication;
//import cn.edu.neu.shop.pin.service.StoreService;
//import org.junit.TestController;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.auto... | 32.785714 | 73 | 0.754902 |
4a2a5a61fabf9116ec97178bcd5808f77363cb58 | 2,991 | package cc.jerrywang.webviewdemo.view.utils;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.design.bottomnavigation.LabelVisibilityMode;
import android.support.design.widget.BottomNavigationView;
import android.view.MenuItem;
import android.view.View;
import cc.jerry... | 36.036145 | 95 | 0.554664 |
545edd22f67697e61aa8b5124ac44a21ff2b4490 | 574 | package com.polidea.multiplatformbleadapter.utils.mapper;
import com.polidea.multiplatformbleadapter.AdvertisementData;
import com.polidea.multiplatformbleadapter.ScanResult;
import java.util.UUID;
public class RxScanResultToScanResultMapper {
public ScanResult map(com.polidea.rxandroidble.scan.ScanResult scanRes... | 47.833333 | 238 | 0.808362 |
7051d6261842ca91b89ca54db62a9ad71f512582 | 5,276 | package com.kadiryaka.myenglishwords.activity;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import java.uti... | 35.173333 | 124 | 0.600834 |
b8c7810ac465842425c86d379cf4ab7c7ad9d2a1 | 1,287 | package com.mateuszkoslacz.moviper.ipcsample;
import android.os.Bundle;
import com.mateuszkoslacz.moviper.ipcsample.viper.presenter.ColorWidgetPresenter;
import com.mateuszkoslacz.moviper.ipcsample.viper.view.fragment.ColorWidgetFragment;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test... | 26.8125 | 84 | 0.771562 |
3155364697eff29bc365f1079f740ef5f30eae17 | 2,674 | /**
*
* Problem Statement-
* [Breadth First Search: Shortest Reach](https://www.hackerrank.com/challenges/bfsshortreach/problem)
*
*/
package com.javaaid.hackerrank.solutions.algorithms.graphtheory;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Sca... | 19.23741 | 104 | 0.545999 |
fa0110bdf19af917cd255f7adbfbf6c5eb1baef8 | 2,332 | package lsieun.asm.util;
import lsieun.utils.FileUtils;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.FieldVisitor;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.util.TraceClassVisitor;
import java.io.PrintWriter;
import static org.objectweb.asm.Opcodes.*;
public class TraceClass... | 33.314286 | 113 | 0.604202 |
187c0c17a6e41d257fd599d59dc03f5e001e3b2f | 8,129 | /*
* Copyright 2020 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 app... | 42.338542 | 182 | 0.665026 |
1ff8725d82d0647e167232f4ee63be13a97c8ab2 | 647 | package al.jdi.dao.model;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
public class CampanhaTest {
private Campanha campanha;
... | 20.870968 | 95 | 0.748068 |
c72cd9e83462146ad1666f74e8865dcede022803 | 327 | package com.github.davidmoten.rtreemulti;
import org.junit.Test;
import com.github.davidmoten.junit.Asserts;
import com.github.davidmoten.rtreemulti.internal.Comparators;
public class ComparatorsTest {
@Test
public void testConstructorIsPrivate() {
Asserts.assertIsUtilityClass(Comparators.class);
... | 20.4375 | 61 | 0.770642 |
6e962b6cf564d446e1a60754b23f7797eda53c83 | 4,066 | package com.nepxion.polaris.guide.test;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.web.client.TestRestTemplate;
import com.nepx... | 37.302752 | 177 | 0.625922 |
a477eaa13b679232fc895de5d88e3eb89bdf9e41 | 9,316 | package OnlineShop;
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
public class MyStorepage extends Base {
public MyStorepage(PageInitialization pageInitiali... | 38.495868 | 121 | 0.63128 |
e303308852b0e41c5d674380f88fe7bb415da70f | 4,893 | package com.example.subhojitsom.playbacktestapp;
import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.widget.EditText;
import an... | 33.060811 | 162 | 0.609033 |
e7155752c31739ddf8a95eb3cf5231b1131293cd | 1,423 | package com.princexml.wrapper;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class JsonTest {
@Test
void beginObj1() {
Json j = new Json()
.beginObj()
.endObj();
assertEquals("{}", j.toString());
}
@Test
void... | 22.587302 | 72 | 0.451862 |
523d252a1d6f9da7d343f8aca1f7069dddc0047d | 725 | package robert.trening;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class FibonacciRecursionImpTest {
FibonacciRecursionImp fibonacci;
@Before
public void init() {
fibonacci = new Fibo... | 21.969697 | 55 | 0.758621 |
856d55760ec3768ee5ee3075938593aab62426ba | 1,374 | /*
* 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 Models;
public class ThucDon {
private String MaMon, TenMon, MaLoai, DVT;
private int DonGia;
public ThucDon() {
... | 19.628571 | 82 | 0.568413 |
13972fa9e700635310237532c79a01760e82c292 | 2,412 | package exception;
import javax.xml.ws.http.HTTPException;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* This class represents exceptions which are thrown if CoAP interactions are faulty.
*/
public class CoapException extends HTTPException {
/****************************************************... | 23.192308 | 85 | 0.538557 |
8fa024cb3e7d02c4041ae6648fc242d13080331d | 689 | package handong.capstone2019s.salesb.app.joinstorerequest;
import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class CustomerJoinStoreRequestForm {
pri... | 18.621622 | 58 | 0.775036 |
84fafe9d8921c828d90582b38c456503d4683d2c | 751 | package koks.manager.module.impl.combat;
import koks.manager.event.Event;
import koks.manager.event.impl.EventUpdate;
import koks.manager.module.Module;
import koks.manager.module.ModuleInfo;
/**
* @author kroko
* @created on 11.10.2020 : 13:57
*/
@ModuleInfo(name = "Criticals", description = "Every hit is a crit... | 20.297297 | 111 | 0.636485 |
918211c920cf1d7174341121b9c2523dc2b6e8a9 | 8,388 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 14.050251 | 810 | 0.799952 |
061ac449b53bfed52d7f4e3439db382e0a4c3c4c | 370 | import java.util.Scanner;
public class LeapYear
{
public static void main(String []args)
{
int year;
System.out.println("Enter the year");
Scanner scan = new Scanner(System.in);
year= scan.nextInt();
if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))
{
System.out.println("Leap year");
}
... | 17.619048 | 64 | 0.616216 |
c353cf672c51d40be663c0e4df8af6db8bdab32f | 2,691 | /*
* The MIT License
*
* Copyright (c) 2010, InfraDNA, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, co... | 38.442857 | 92 | 0.766258 |
98f65e584ebaacdda5126496c7667d39defc7283 | 2,310 | package cn.itlemon.leetcode.tree;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
import cn.itlemon.leetcode.model.TreeNode;
/**
* No.145 二叉树的后序遍历 https://leetcode-cn.com/problems/binary-tree-postorder-traversal/
*
* @author itlemon <... | 25.384615 | 84 | 0.522944 |
58f34378a143c1f7bb3c17ca2ce99d088f194c44 | 14,527 | /******************************************************************************
* Copyright 2009-2020 Exactpro Systems Limited
* https://www.exactpro.com
* Build Software to Test Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | 26.704044 | 117 | 0.694706 |
ecdb8bffe3a5a6f4c39a6a531d4cc01d59203f53 | 5,405 | package com.knu.cse.board.service;
import com.knu.cse.board.domain.Board;
import com.knu.cse.board.domain.Category;
import com.knu.cse.board.dto.BoardDto;
import com.knu.cse.board.dto.BoardForm;
import com.knu.cse.board.repository.BoardRepository;
import com.knu.cse.errors.NotFoundException;
import com.knu.cse.errors.... | 37.797203 | 150 | 0.695097 |
aa2b5c5678af23d43af8e5b9c9013dd4c124821b | 1,669 | package com.hedera.hashgraph.zeroknowledge.merkletree.factory;
import com.hedera.hashgraph.identity.hcs.vc.CredentialSubject;
import io.horizen.common.librustsidechains.FieldElementConversionException;
import io.horizen.common.librustsidechains.FinalizationException;
import io.horizen.common.librustsidechains.Initiali... | 37.931818 | 249 | 0.766926 |
da205d05d934dfe47344428e8fa7c4fa12c6d7cd | 1,054 | /*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://www.phonegap.com/about/license/ for full text.
*
* Copyright (c) 2011, IBM Corporation
*/
package blackberry.common.util.json4j;
/**
* Class that implements an exception type thrown by all J... | 23.422222 | 86 | 0.648956 |
4b829e1b0b6dbfafe4ad531d0699fe1abbc45270 | 2,742 | /*
* Megaputer Text Mining API
* Megaputer Text Mining API
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package tmapi.model;
import java.util.Objects;
impo... | 25.626168 | 146 | 0.705689 |
5e5dedd88d9554b60a6394196aa93e7c80968c4e | 6,881 | /* Copyright (C) 2005-2011 Fabio Riccardi */
package com.lightcrafts.ui.browser.folders;
import com.lightcrafts.platform.Platform;
import com.lightcrafts.ui.browser.ctrls.NavigationPane;
import com.lightcrafts.ui.datatips.xswing.DataTipManager;
import com.lightcrafts.ui.toolkit.MenuButton;
import com.lightcrafts.util... | 30.995495 | 104 | 0.63174 |
a0f5262e60f68f1079ce602621d4b09d1bf786eb | 1,700 | package net.coding.program.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.nostra13.universalimageloader.core.ImageLoader;
import net.coding.program.common.ImageLoadTool;
import net.cod... | 27.868852 | 114 | 0.692353 |
b9df189a5b1067ea12b00f912d85966e207fb91a | 2,251 | // Copyright 2014 Cloudera, 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 ... | 35.171875 | 87 | 0.747668 |
db0749a610c7328cfecbbd271641275ae0614cc0 | 10,676 | /*
* Copyright 2012-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 42.031496 | 97 | 0.707662 |
758317bcfe6bb5dfdf806f97e80273acbf228e09 | 3,839 | package xyz.deszaras.grounds.server;
import java.io.Console;
import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.Properties;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.jline.terminal.Terminal;
import org.jline.te... | 33.973451 | 89 | 0.686898 |
d5951934044c6a07ec69993f011a913078e96a23 | 7,014 | /**
*/
package Gtm.impl;
import Gtm.GtmPackage;
import Gtm.ReductionCard;
import Gtm.RequiredReductionCard;
import Gtm.ServiceClass;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationI... | 24.439024 | 137 | 0.660251 |
a3fdcecad171ed3e4566b01c786ba3440cb86e85 | 10,027 | package api.loans.scenarios;
import static api.support.fixtures.TemplateContextMatchers.getItemContextMatchers;
import static api.support.fixtures.TemplateContextMatchers.getRequestContextMatchers;
import static api.support.fixtures.TemplateContextMatchers.getRequesterContextMatchers;
import static api.support.fixture... | 43.406926 | 109 | 0.767029 |
51426c3317c0fa653ef388ce4b8e3d76ee1bed82 | 3,666 | package cells;
import javafx.scene.paint.Color;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Holds fields and behavior shared by all cells, including state, color, and neighbor members as
* well as methods operating on them.
*
* @author Ben Schwennesen
... | 26.955882 | 102 | 0.639935 |
8af4f78780e4c3f4b1cbf5a6ce2e48ce6a3db84b | 1,418 | /*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2016 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... | 30.826087 | 100 | 0.714386 |
612e51c8204ab79940d95223da6d8e369608bc79 | 4,788 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 38.304 | 136 | 0.676065 |
6df97c14d3c147c8224b28f2313f973eb5b055e0 | 2,403 | /*
* 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 ... | 35.338235 | 115 | 0.629213 |
5187eba1f129ede07be3b325b76c4c340dcb4c93 | 1,916 | /*
* Copyright (C) 2011 Benoit GUEROUT <bguerout at gmail dot com> and Yves AMSELLEM <amsellem dot yves at gmail dot 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:/... | 28.597015 | 119 | 0.711378 |
aa4975c654806bc12a2dcf5c7e19e8a936bd0ac9 | 20,317 | /*
* 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 view;
import Classe.LivroData;
import javax.swing.JOptionPane;
import java.awt.Image;
import java.awt.Toolkit;
import java.net.... | 43.505353 | 473 | 0.650933 |
9e3a6352e39029e90f465fe0a1d58852e340d753 | 1,687 | package org.fortune.commons.core.help;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import java.util.Iterator;
import java.util.Lis... | 35.893617 | 104 | 0.733254 |
fae52e508c291909f74e20edcd3c96422dc17280 | 5,697 | package uk.gov.hmcts.ccd.integrations;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import java.util.Collections;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockit... | 34.527273 | 122 | 0.773038 |
23351b41cb1318a03c4052bc0f41d1aa6d35da3d | 2,459 | package liquibase.ext.mongodb.configuration;
import liquibase.configuration.AbstractConfigurationContainer;
import static java.lang.Boolean.TRUE;
public class MongoConfiguration extends AbstractConfigurationContainer {
public static final String LIQUIBASE_MONGO_NAMESPACE = "liquibase.mongodb";
public stati... | 39.031746 | 124 | 0.713705 |
ea213fa4c0d5772168f40f955095d306e016e745 | 115 | package com.rs.stayconnected.di;
/**
* Created by ranjeetsinha on 11/01/18.
*/
public interface Injectable {
}
| 12.777778 | 39 | 0.704348 |
94785872409e70089bc2f388104ed62cd83b2c31 | 1,284 | package de.adorsys.ledgers.middleware.impl.config;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
class EmailVerificationPropertiesTest {
@Test
void createConfig() {
EmailVerificationProperties properties = new EmailVerificationProperties();
... | 36.685714 | 109 | 0.707165 |
eb78415dc17385bc1bd3c333ef7918ba48bf2f0b | 848 | package org.apereo.cas.trusted.authentication.storage;
import org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord;
import lombok.Getter;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Gen... | 29.241379 | 99 | 0.79717 |
9d44f48e686850abf326dbb63138fcdd0aa4d590 | 174 | package com.rasitagac.newnews.clicklisteners;
import com.rasitagac.newnews.model.News;
public interface AdapterItemClickListener {
void onNewsItemClick(News news);
}
| 17.4 | 45 | 0.804598 |
d154ba0735676cb2ae116f557e10ee9e4d8a41e4 | 20,727 | package com.atlassian.jira.plugins.slack.service.listener;
import com.atlassian.annotations.VisibleForTesting;
import com.atlassian.event.api.EventPublisher;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.MutableIssue;
import com.atlassian.jira.perm... | 54.117493 | 142 | 0.649491 |
636ca1d6f2bc9c2a746ce9f986d4239416361798 | 148 | package com.lf.sdk.api;
public class MyFlow2 extends MyFlow{
public void configure() {
from("hell").from("hee").filter().to();
}
}
| 18.5 | 47 | 0.614865 |
90db18b5bff7533435974b57437b7f1436541f97 | 1,876 | package xyz.appint.dao;
import org.springframework.stereotype.Repository;
import xyz.appint.entity.User;
import xyz.appint.union.dao.dao.BaseDaoSupport;
import xyz.appint.union.dao.dao.annotation.Col;
import xyz.appint.union.dao.page.CursorPage;
import xyz.appint.union.dao.page.CursorPageRequest;
import java.sql.Time... | 29.777778 | 129 | 0.627932 |
a29dcdd97d0ce865dd7fcd5e3b8dc5180de7220b | 902 | //Written by Daniel Beckerich for the Advanced java programming final
//this program was began on 4/18/2017
//this program is intended to allow a user to input an incomplete sudoku puzzle
//through a GUI and the computer will solve it.
package SudokuSolver;
public class main
{
public static void main(String... | 30.066667 | 80 | 0.490022 |
39860b18169101c80497d537f28427aeb0f46d92 | 1,170 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 31.621622 | 75 | 0.713675 |
d73e0b4b3617feab6b72e61072775c8897f64d46 | 1,257 | package com.practice.parsing;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.parsing.XNode;
import org.apache.ibatis.parsing.XPathParser;
import java.io.IOException;
import java.util.Properties;
public class XPathParserTest {
public static void main(String[] args) throws Exception {
Properties... | 39.28125 | 108 | 0.679395 |
e654086f6586523595f7aecae46ffb3b97396edd | 3,358 | package net.arikia.dev.drpc;
import com.sun.jna.*;
import java.util.*;
public class DiscordRichPresence extends Structure
{
public String state;
public String details;
public long startTimestamp;
public long endTimestamp;
public String largeImageKey;
public String largeImageText;
public St... | 32.288462 | 248 | 0.578023 |
a903a9e49eb5914f372a9c6ad5a444fc40219f57 | 50 | package jeu;
public enum Age {
I, II, III;
}
| 8.333333 | 17 | 0.58 |
b28d4de13089dacf293ddcb70ac54c274885b0ab | 4,880 | package edu.psu.citeseerx.utility;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
impor... | 34.857143 | 110 | 0.621107 |
487e94cc6c04417922e716abbe9862f8af46de01 | 658 | package io.fundrequest.core.request.claim;
import io.fundrequest.core.request.domain.Platform;
import lombok.Builder;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@Data
public class UserClaimRequest {
@NotEmpty
private String address;
... | 22.689655 | 83 | 0.727964 |
4b9aa70544af958e00d870e97f43a0c44b7adca2 | 380 | package io.github.privacystreams.commons.time;
import io.github.privacystreams.core.Function;
import io.github.privacystreams.core.UQI;
/**
* Generate a time tag string
*/
final class CurrentTimeGetter extends Function<Void, Long> {
CurrentTimeGetter() {
}
@Override
public Long apply(UQI uqi, Void ... | 21.111111 | 60 | 0.713158 |
00b09dbc2d9d8ff7abfa4ae36f9a95ded7926c68 | 1,026 | package edu.cmu.lti.algorithm.container;
import java.util.Map;
public class TMapIVecI extends TMapIX<VectorI> {
private static final long serialVersionUID = 2008042701L; // YYYYMMDD
public TMapIVecI newInstance(){
return new TMapIVecI();
}
//TVectorMapIX<Double> {
public VectorI newValue(){ return new Vect... | 22.304348 | 70 | 0.681287 |
2293bf827bf182d372e12ba09bf1fafcba9e172e | 2,920 | package com.inzapp.jsonToSqlParser.core.crudParser;
import com.inzapp.jsonToSqlParser.config.JsonKey;
import com.inzapp.jsonToSqlParser.core.json.JsonManager;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.operators.relational.... | 29.2 | 77 | 0.563356 |
c522227a4019f02e4ef51464992c18d970139468 | 2,843 | /*
* Copyright 2011 JBoss 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 ... | 34.253012 | 126 | 0.620823 |
ad07cff4ade68def17000b5fa60fa5d9479bfeb2 | 126 | package edu.illinois.cs.cs125.answerable.classdesignanalysis.fixtures.modifiers.reference;
public strictfp class StractFp {}
| 31.5 | 90 | 0.849206 |
4b4fa44ee96aab72daae74c4173e003545e0537e | 4,471 | /*
* Copyright 2020 聂钊 nz@qdigo.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 24.167568 | 75 | 0.653769 |
c350428ad7e902158376d76be29bf35865f1cf05 | 8,832 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 15.631858 | 810 | 0.812953 |
a2a5a944613deff7056adddb37d2d32f358e62d9 | 1,230 | package io.reflectoring.jiraalerts.dashboard.applicationstate;
import java.util.List;
import javax.inject.Inject;
import org.apache.wicket.injection.Injector;
import org.apache.wicket.model.LoadableDetachableModel;
import io.reflectoring.jiraalerts.jiraconnection.JiraConnection;
import io.reflectoring.jiraalerts.ji... | 27.954545 | 132 | 0.786179 |
22d5d61b68060937170d648d68e719125f6fd73e | 11,825 | package com.UserManager;
import java.sql.*;
import java.util.ArrayList;
import javax.swing.JOptionPane;
public class UserManager {
private ConectionSql connectSql;
private Connection conection;
private PreparedStatement preparedStatement;
private ResultSet resultSet;
//private ResultSetMetaData r... | 36.723602 | 165 | 0.575137 |
96f2ada6b6b2faeb8d60b9131779f269c3ca927f | 205 | package com.epam.rp.test;
import com.epam.reportportal.testng.ReportPortalTestNGListener;
import org.testng.annotations.Listeners;
@Listeners(ReportPortalTestNGListener.class)
public class BaseTest {
}
| 20.5 | 63 | 0.834146 |
2ed1de68ca2b00ee0d0c3169741ff90c23d2ef93 | 1,111 | package fr.parisnanterre.miage.poa.rps;
public class Player {
private String nom;
private int score;
private RPSEnum[] listeMouvement;
public Player(String nom) {
this.nom = nom;
this.score = 0;
this.listeMouvement = new RPSEnum[10];
for (int i=0;i<listeMouvement.length... | 23.145833 | 57 | 0.532853 |
581ff89a81920679a141d540bdac5182d4d6c245 | 847 | package com.tpgame.core.services;
import com.tpgame.core.dao.UsersFileSystemDao;
import com.tpgame.core.entities.security.User;
import com.tpgame.core.exceptions.UserAlreadyExistsException;
import javax.inject.Inject;
import javax.inject.Singleton;
/**
* Created by Artem on 22.11.2015.
*/
@Singleton
public class R... | 27.322581 | 91 | 0.719008 |
a281cf96995f1fe761b0883d6dbeb1fec1db534c | 4,402 | package com.bstek.dorado.uploader.samples;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import org.h2.store.fs.FileUtils;
import org.springframework.stereotype.Component;
import com.bstek.dorado.uploader.DownloadFile... | 30.358621 | 111 | 0.720354 |
8c24a140e6412c8cc219c9e4279f3827b74037fa | 914 | package cn.edu.xmu.g12.g12ooadgoods.model.vo.coupon;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class CouponState {
private Integer code;
private String name;
public CouponState() {}
CouponState(int state) {
this();
switch (state) {
... | 21.255814 | 63 | 0.443107 |
7e242dbbb888eaed51a795002265d9816972b0ad | 4,841 | package mil.nga.giat.geowave.test.query;
import java.io.IOException;
import org.apache.log4j.Logger;
import org.geotools.data.DataUtilities;
import org.geotools.feature.SchemaException;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Asser... | 30.25625 | 88 | 0.682917 |
03db648aad4572de0a2b427831a22edb16fc450b | 1,483 | /**
* Copyright (c) 2017 Angelo Zerr and other contributors as
* indicated by the @author tags.
*
* 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/LI... | 30.265306 | 78 | 0.67768 |
2dbadd14da659a6611b591e53c9fb3cf382c82bd | 914 | package org.processmining.database.redologs.common;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
public class Key extends GraphNode implements Serializable{
public static final int UNIQUE_KEY = 1;
public static final int PRIMARY_KEY = 2;
public static final int FOREIGN_KEY = 3;
... | 20.311111 | 59 | 0.719912 |
cdf2cf4adf95bd41a8f60a5c1ff3b80bdbcaf782 | 2,048 | package com.ge.research.osate.verdict.dsl.ui.annex;
import org.osate.aadl2.AnnexLibrary;
import org.osate.aadl2.AnnexSubclause;
import org.osate.aadl2.modelsupport.errorreporting.ParseErrorReporter;
import org.osate.annexsupport.AnnexParseUtil;
import org.osate.annexsupport.AnnexParser;
import com.ge.research.osate.v... | 37.236364 | 109 | 0.800293 |
2ec02e132c2ac1b1c79faba092b67b925a81bb64 | 15,593 | package mchorse.snb.api.animation.model;
import mchorse.mclib.client.render.RenderLightmap;
import mchorse.mclib.utils.MatrixUtils;
import mchorse.snb.api.animation.Animation;
import mchorse.snb.api.animation.AnimationManager;
import mchorse.snb.api.animation.AnimationMesh;
import mchorse.snb.api.bobj.BOBJArmature;
im... | 31.50101 | 159 | 0.610787 |
f86dcdf0dc5ccfd46de38345ade96a04734ecc58 | 6,834 | /*
* The Open Geospatial Consortium 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/licenses/LICENSE-2.0
*/
package com.occamlab.te.... | 23.166102 | 98 | 0.621598 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.