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 |
|---|---|---|---|---|---|
76084fbd82473b0c187ae8ec9dc2f95dd29caad5 | 909 | package fr.adrienbrault.idea.symfony2plugin.templating.dict;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Dict for "{% macro input(name, value, type, size) %}"
*
* @author Daniel Espendiller <daniel@espendiller.net>
*/
public class TwigMacroTag implements TwigMacroTag... | 22.725 | 76 | 0.656766 |
a8c64b24f7e285714ada0d86ac3221e966e05583 | 583 | package gdocmd.service;
import javax.inject.Singleton;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import static java.lang.String.format;
@... | 29.15 | 111 | 0.80789 |
9359af88bea62d237dc7c974900ed619a5f5cb47 | 1,746 | package com.rbittencourt.pa.stock.infrastructure.kafka;
import com.rbittencourt.pa.stock.infrastructure.ecommerceorder.EcommerceOrder;
import org.apache.kafka.common.serialization.StringDeserializer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import o... | 37.148936 | 122 | 0.787514 |
bf709f4a410a9b6db7bdff4f2990fed22e6df2d0 | 16,980 | package com.zpj.blur;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Handler;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.ImageView;
import com.zpj.appmanager.utils.ThreadPoolUtils;
import com.zpj.utils.Context... | 34.653061 | 160 | 0.574028 |
614ee6b8ee6b0358993fcf6e6b67320a9bc13566 | 12,041 |
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.log... | 49.348361 | 151 | 0.66257 |
5941099d43cc8484ae61870ee809aadbf8da5682 | 380 | package com.atguigu.gmall.oms.mapper;
import com.atguigu.gmall.oms.entity.OrderItemEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单项信息
*
* @author mahongchang
* @email 15953043387@163.com
* @date 2022-02-13 16:41:52
*/
@Mapper
public interfac... | 21.111111 | 70 | 0.768421 |
1bdb9b8a640b9876f7134af6fb5650f37a5d30bb | 1,701 | /**************************************************************
*
* 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 y... | 35.4375 | 85 | 0.680776 |
c4afec6d22d3ac351dffab98cbc6d8fb16c36789 | 6,720 | package com.example.gdweather.activity;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Im... | 29.473684 | 84 | 0.71369 |
62404487cd7725f653366a2dd15e0ec11389fefa | 614 |
import java.util.Scanner;
//SERVER COMMANDS AND CHAT
public class ServerCH extends Thread{
private Scanner scan;
TCPBuffer buffer = new TCPBuffer();
@Override
public void run()
{
while(true){
try{
scan = new Scanner(System.in);
String s = scan.nextLine();
if(!s.equals(""))
{
for (Play... | 17.542857 | 60 | 0.550489 |
253a7dce93df76ece3fa08025c119b5ae0c52e8f | 613 | package com.gigya.android.sdk.auth;
import androidx.annotation.NonNull;
import com.gigya.android.sdk.GigyaLoginCallback;
import com.gigya.android.sdk.account.models.GigyaAccount;
import com.gigya.android.sdk.api.GigyaApiResponse;
import com.gigya.android.sdk.auth.resolvers.IGigyaOtpResult;
import com.gigya.android.sd... | 36.058824 | 113 | 0.815661 |
06fbee1769dbd41bbeb65dc17c7234219f05ee17 | 10,612 | //
// Copyright 2010 Cinch Logic Pty Ltd.
//
// http://www.chililog.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 requi... | 36.593103 | 142 | 0.638994 |
848af74b699d7a737536af5864639500613836e2 | 440 | package cn.edu.sysu.workflow.access.dao;
import cn.edu.sysu.workflow.common.entity.access.Authority;
/**
* 权限数据库操作
*
* @author Skye
* Created on 2020/6/10
*/
public interface AuthorityDAO {
/**
* 根据账户ID和业务流程实体ID查询对应权限记录
*
* @param accountId
* @param businessProcessEntityId
* @return... | 18.333333 | 106 | 0.7 |
c8017dd816b9d2fe5e84058d358bb79394e992a2 | 1,347 | package edu.cooper.ece366.project.borsa.server.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import javax.persistence.*;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
impo... | 24.490909 | 81 | 0.703044 |
fc7d6c114ff68d6999e41f03477e6808e23a5bea | 600 | package pipe;
public class main {
public static void main(String[] args) {
String inputFile = "src/input.txt";
String outputFile = "src/output.txt";
Pipe pipe1 = new Pipe();
Pipe pipe2 = new Pipe();
Pipe pipe3 = new Pipe();
Inputer inputer = new Inputer(inputFile, p... | 27.272727 | 60 | 0.585 |
1cd15d5ca45a90451e566a3e326d9eeabcecc1b2 | 5,797 | package ru.job4j.socket.fmanager;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Properties;
public class Server {
private Socket socket;
private String root;
private File rootDi... | 33.508671 | 104 | 0.513541 |
8d8ebf377e4331ff164ec2b132a6d6c8f8ec0963 | 725 | package aop.test;
import aop.target.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
//@EnableAspectJ... | 25.892857 | 71 | 0.757241 |
b30f6cce72030f232d118794d31df7b89857c71c | 2,372 | /*
* 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 i... | 32.493151 | 76 | 0.717538 |
4a6f10a9a858da31ffa3b74e40e2874fd982bc5a | 10,362 | package com.shixianghui.base.dao;
import java.util.Date;
public class XtUser {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column xt_user.user_id
*
* @mbggenerated Wed Nov 08 21:05:03 GMT+08:00 2017
*/
private Integer userId;
/**
... | 28.311475 | 79 | 0.636074 |
1e71ffa3723d8cfa6539dcd554aaacc4f0c76001 | 142 | package br.com.rangood.pdv.rangoodpdvordermanagementservice.expections;
public class NotFoundEntityFeignClientException extends Exception{
}
| 28.4 | 71 | 0.880282 |
797b9b7cc0badb24d5ae7af0864091813ad0abf9 | 6,645 | /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 45.827586 | 176 | 0.674191 |
ee0d008cdeffb6bd7a2566b62fd6f9e5ccd3fad5 | 221 | package ru.protei.concurrency;
import java.util.function.Function;
public interface Cache<K, V> {
void put(K key, V value);
V get(K key, Function<K, V> getIfNotInCache);
int size();
void clear();
}
| 13.8125 | 49 | 0.651584 |
0f5fcb09b0f79c0f7f2b99b917973218251496f6 | 1,012 | package org.batfish.representation.juniper;
import org.batfish.common.Warnings;
import org.batfish.datamodel.Configuration;
import org.batfish.datamodel.RoutingProtocol;
import org.batfish.datamodel.routing_policy.expr.BooleanExpr;
import org.batfish.datamodel.routing_policy.expr.Disjunction;
import org.batfish.datamo... | 28.914286 | 97 | 0.769763 |
f87132c18a1c636e2bd9fca531cdeee1bbe2227f | 18,331 | package org.salient.artplayer;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Attr... | 34.717803 | 127 | 0.618952 |
e33da8d5c77d28f5d1bca990f00660670407176e | 2,568 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016. Diorite (by Bartłomiej Mazur (aka GotoFinal))
*
* 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 withou... | 33.350649 | 86 | 0.661604 |
871d34928706445784bf5cae032f7a0d50fcd20b | 1,814 | /**
* Licensed under Apache License v2. See LICENSE for more information.
*/
package org.inaetics.wiring.admin.https;
import java.net.URL;
/**
* Interface for accessing HTTPS Admin configuration values.
*
* @author <a href="mailto:amdatu-developers@amdatu.org">Amdatu Project Team</a>
*/
public interface HttpsAd... | 21.341176 | 80 | 0.590408 |
5f0db746e0c3f15b7c545cb50494a435eb592d7b | 1,151 | package de.usu.abiegel.hystrix.helloWord;
import static org.junit.Assert.*;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import de.ab... | 25.021739 | 87 | 0.735013 |
59d39fb94c991b4c3e265a3348dc296a454ef4c4 | 939 | package Control;
import java.util.List;
import Dominio.Perfil;
import Dominio.Permissao;
import Interfaces.IPerfilRepository;
import Interfaces.IPermissaoRepository;
import Repositories.PerfilRepository;
import Repositories.PermissaoRepository;
public class PerfilControl {
private IPerfilRepository perfilRepositor... | 21.837209 | 52 | 0.794462 |
cce790a25961d7d8ecb57d4beceaa6b62a60eac9 | 2,168 | package kr.co.mlec.file;
import java.io.File;
import java.util.Iterator;
import java.util.UUID;
import javax.servlet.ServletContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import o... | 27.1 | 88 | 0.701568 |
3f079719af445c9feeb6ace9ffa3c8b1d2f16583 | 754 | package backend_internal.commands.mult_turtle_commands;
import backend_internal.Command;
public class ID extends Command {
private static final int PARAM_NUM = 0;
public ID(){
myParamNumber = PARAM_NUM;
}
/**
* Parameters: none. Returns current active turtle's ID number. ID values typic... | 34.272727 | 359 | 0.720159 |
fcd109a154b6cebba0e08f355e57a905f0b2e674 | 1,859 | package ma.bay.com.labase.common.effect;
import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.media.AudioManager;
import android.media.SoundPool;
import android.util.Log;
import org.apache.commons.lang3.exception.ExceptionUtils;
/**
* Created by wangl2138 on 2018/1/17.
*/... | 27.746269 | 107 | 0.625605 |
463db7604f1ad75f00b96f5e0da018bc00493054 | 418 | package cracking_the_coding_interview.chapter_16.exercise_01;
class Solution {
void numberSwapper(int a, int b) {
System.out.println("Before");
System.out.println("a: " + a);
System.out.println("b: " + b);
a = a - b;
b = a + b;
a = b - a;
System.out.printl... | 22 | 61 | 0.523923 |
f5f0add90d54c522ac2da031bd24a83c3439de48 | 6,828 | package net.iridgames.towerdefense.world;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.particles.ConfigurableEmitte... | 31.178082 | 114 | 0.657293 |
b483b847724f09624459c9623ca7cf3779e4d67d | 118 | package javasmmr.zoowsome.models.animals;
public class WaterType {
public enum water {
SALTWATER, FRESHWATER
}
}
| 14.75 | 41 | 0.762712 |
155d86179f4ec561612a0d45c975aa27856fe965 | 1,611 | package jnc.platform.win32;
import javax.annotation.Nonnull;
import jnc.foreign.LibraryLoader;
import jnc.foreign.annotation.Out;
import jnc.foreign.annotation.Stdcall;
import jnc.foreign.typedef.int32_t;
import jnc.foreign.typedef.uint32_t;
import jnc.foreign.typedef.uintptr_t;
@Stdcall
public interface Psapi {
... | 38.357143 | 95 | 0.71198 |
f870281ec6dc853a82138f1dadc2eb5fea359958 | 1,360 | package net.minecraft.server;
import java.util.List;
import net.minecraft.util.com.mojang.authlib.GameProfile;
public class CommandDeop extends CommandAbstract {
public CommandDeop() {}
public String getCommand() {
return "deop";
}
public int a() {
return 3;
}
public Strin... | 31.627907 | 104 | 0.628676 |
f66c1284a9edabd547a7d3494f647e530c2ae41c | 3,730 | /*
* Copyright (C) 2009 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 30.57377 | 80 | 0.691421 |
8582589c629e30bb139e290d1191283b1b0e8b09 | 5,310 | package android.support.v7.appcompat;
public final class R$dimen
{
public static final int abc_action_bar_content_inset_material = 2131099686;
public static final int abc_action_bar_default_height_material = 2131099660;
public static final int abc_action_bar_default_padding_material = 2131099661;
public static... | 67.21519 | 88 | 0.842938 |
761808b1cffaeac406ef966e5cb8013c2a803e45 | 3,327 | /*
* 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.245455 | 80 | 0.650736 |
51ad3782f96796bf61d82e0779ece40c909a4694 | 970 | package cads.impl.app.broker.data;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import cads.impl.rpc.data.Provider;
public class RegisteredProviders {
private HashMap<String, BrokerProvider> providers;
public RegisteredProviders(){
this.providers = new HashMap<>();
}
public... | 20.208333 | 70 | 0.727835 |
166f07b44cc6dbb7ccf25a7460a6141133d1ec3c | 6,900 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.bot.schema.teams;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterx... | 27.822581 | 84 | 0.639855 |
e557539af3e0e8742d4c957201b32c663c5f8415 | 2,322 | /*
* Copyright (c) 2021 Broadcom.
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifi... | 35.181818 | 100 | 0.55857 |
c8534e3d4af3bdadac71e6ab867d22d5d8d75210 | 6,923 | /*
* 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 ... | 36.246073 | 113 | 0.613173 |
3de121a651b10bcbc3d741a8dfbb032d88e02f4c | 3,315 | /*
* Copyright (c) 2016 PayMaya Philippines, 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, copy, modify, mer... | 37.247191 | 100 | 0.682655 |
9f42d707638fab7b4855d17dbb52dfb413c98da7 | 2,930 | package edu.isi.karma.linkedapi.server;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.hp.hpl.jena.rdf.model.Model;
import edu.isi.karma.model.serialization.MimeType;
import edu.isi.karma.mod... | 32.555556 | 92 | 0.740273 |
432cf0a4f38d1e9a153773b8a0d22e4d72270e4d | 3,757 | package de.idrinth.waraddonclient.gui;
import de.idrinth.waraddonclient.service.Config;
import de.idrinth.waraddonclient.gui.themes.DarculaLookAndFeelInfo;
import de.idrinth.waraddonclient.gui.themes.FlatDarculaLookAndFeelInfo;
import de.idrinth.waraddonclient.gui.themes.FlatDarkLookAndFeelInfo;
import de.idrint... | 56.074627 | 138 | 0.772425 |
b7b7351f6383b8a414ee3de4aa433ec43740a981 | 586 | package org.repodriller.filter.range;
import java.util.Arrays;
import java.util.List;
import org.repodriller.domain.ChangeSet;
import org.repodriller.scm.SCM;
public class SingleCommit implements CommitRange {
private String commit;
public SingleCommit(String commit) {
this.commit = commit;
}
@Override
pub... | 19.533333 | 69 | 0.720137 |
69bcedcfa8097317f98ac26a9580d40116374693 | 341 | package hole;
/**
* 方钉
*
* @author 霖
*/
public class SquarePeg {
private double w;
private double h;
public double getW() {
return w;
}
public void setW(double w) {
this.w = w;
}
public double getH() {
return h;
}
public void setH(double h) {
... | 11.758621 | 32 | 0.492669 |
11118883ddedf7fe77fa14061b64f385e948a506 | 366 | package com.github.houbb.sensitive.test.model.bugs;
import com.github.houbb.sensitive.annotation.SensitiveEntry;
/**
* @author binbin.hou
* @since 0.0.11
*/
public class Father {
@SensitiveEntry
private Child child;
public Child getChild() {
return child;
}
public void setChild(Child... | 16.636364 | 60 | 0.655738 |
da723fd333c5ceed3587e14020f38ed0cf494cc8 | 514 | package com.lv.base;
/**
* Created by lvyanghui on 2018/6/4.
*/
public class Daemon {
public static void main(String[] args){
DaemonTest daemonTest = new DaemonTest();
daemonTest.setDaemon(true);
daemonTest.start();
}
public static class DaemonTest extends Thread{
@Overri... | 20.56 | 51 | 0.536965 |
a3e4630fc2a6d101e2c9911f42248470e8f8a379 | 2,147 | package org.trentech.easykits.commands;
import java.util.Optional;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.trentech.easykits.kits.Kit;
import org.trentech.easykits.kits.KitService;
import org.trentech.easykits.utils.Notifications;
import org.trentech.easykits.utils.Utils;
pub... | 28.25 | 107 | 0.633908 |
59e91a3e73b6063435a048cf9b311e90fa1d204d | 661 | package org.spongepowered.asm.mixin.transformer;
import org.spongepowered.asm.mixin.transformer.ext.*;
class MixinTransformer$1 implements MixinConfig.IListener {
final /* synthetic */ IHotSwap val$hotSwapper;
final /* synthetic */ MixinTransformer this$0;
MixinTransformer$1(final MixinTransformer a1... | 28.73913 | 82 | 0.683812 |
3715ea63d433a7c7040c7d32dd402a88ee27ff55 | 6,639 |
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
static int language;
public static void main(String []args) {
double num1 = 0;
double num2 = 0;
double[] numbers = new double[2];
ArrayList<String> mod... | 37.297753 | 115 | 0.416328 |
190520a71b1c73c5bbc475e84134d236964058bb | 4,860 | /**
*
* Process Editor
*
* (C) 2009, 2010 inubit AG
* (C) 2014 the authors
*
*/
package com.inubit.research.ontologyEditor;
import java.awt.Event;
import java.awt.Point;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JTextField;
import c... | 30 | 130 | 0.731481 |
68adcaf37be406f730c99d4e4afd7376167878dd | 149 | package com.lordofthejars.nosqlunit.core;
public enum OperatingSystemFamily {
LINUX,
WINDOWS,
UNIX,
DEC_OS,
MAC,
UNKNOWN;
}
| 13.545455 | 41 | 0.66443 |
6230911d7929437b2f797e77c4e036cd4debfa10 | 747 | package Lp2Play;
public class Cliente {
private double dinheiro;
private Categoria categoria;
public Cliente(double dinheiro, String categoria) {
this.dinheiro = dinheiro;
this.categoria = this.chooseCategoria(categoria);
}
public void acumulaPontos(int pontos) {
this.cate... | 24.096774 | 57 | 0.64257 |
42ebf99dccae965d532cb40f4a6052239d882d32 | 11,284 | package com.example.dell_15.final_call;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
i... | 40.156584 | 215 | 0.624158 |
de1414e45e4745dac1e1510ebe08eb45c2d54193 | 3,233 | package org.ngbw.sdk.common.util;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.ErrorHandler;... | 21.269737 | 86 | 0.71729 |
c7059a46e1bd40f81e74ded13a4aa0177049aa50 | 120 | package org.int4.dirk.core.test.injectables;
import jakarta.inject.Singleton;
@Singleton
public class SimpleBean {
}
| 13.333333 | 44 | 0.791667 |
ee1396e0402e5277eeb7ccb8bc8c1d4c2a1a6e37 | 5,156 | package com.hazelcast.simulator.common;
import com.hazelcast.simulator.protocol.registry.AgentData;
import com.hazelcast.simulator.protocol.registry.ComponentRegistry;
import com.hazelcast.simulator.utils.CommandLineExitException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.... | 35.558621 | 85 | 0.701125 |
a2a2aee200875cce1c60e56b635ba24fe41da602 | 1,953 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.adapters.connectors.datastore.cassandra;
import org.odpi.openmetadata.frameworks.connectors.ConnectorProviderBase;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connec... | 41.553191 | 113 | 0.771121 |
d76e055fa4be525ff415b8e0c211c9d9838c92d7 | 4,836 | package com.kits.project.controllers;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;... | 39 | 132 | 0.723118 |
b2afc9e6da454588d3735340eed032f092b26e8f | 440 | package org.chy.anubis.entity;
import lombok.Data;
@Data
public class ParameterInfo {
public String type;
public String name;
public ParameterInfo(String type, String name) {
this.type = type;
this.name = name;
}
public String getSimpleType() {
int index = type.lastIndexO... | 17.6 | 52 | 0.579545 |
38e7ac49404c8eab0a917dcc3df5c21fe6362210 | 8,782 | package model.dao.implementation;
import db.DbConnection;
import db.DbException;
import model.dao.VendasModelDaoInterface;
import model.entities.DepartamentoModelEntity;
import model.entities.VendasModelEntity;
import java.sql.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java... | 37.211864 | 112 | 0.626053 |
a01494885ac7c4c8cd1fc0a72e83f38d1aa8df55 | 2,184 | package thecoronials.handler;
//Author: Fabian Faerber
import com.amazon.ask.dispatcher.request.handler.HandlerInput;
import com.amazon.ask.dispatcher.request.handler.RequestHandler;
import com.amazon.ask.model.Intent;
import com.amazon.ask.model.Response;
import com.amazon.ask.response.ResponseBuilder;
import java.u... | 33.090909 | 123 | 0.666667 |
2714935cd8cd4a2f5dd5095b906a04e8ddbd7696 | 1,424 | package bfs;
import org.junit.Test;
public class GoProcesserTest {
GoProcesser myGo = new GoProcesser();
@Test
public void testDetectAndFlip_0() {
char[][] board = {
{'O', 'O'},
{'O', 'O'}
};
myGo.detectAndFlip(board);
print(board);
}
@Test
public void testDetectAndFlip_1() {
char[][] ... | 18.025316 | 40 | 0.433287 |
71bfd9ad55b48e779aa0975b4076d0d6150afb8c | 4,957 | package com.github.ansonliao.selenium.report.factory;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.Status;
import com.github.ansonliao.selenium.annotations.Description;
import com.google.common.collect.Lists;
import com.google.co... | 42.367521 | 119 | 0.627799 |
79399c5cfaeb8bcf1f20af71c0c5643de0db2c8a | 973 | package com.activelook.demo;
import androidx.core.util.Consumer;
import com.activelook.activelooksdk.Glasses;
import com.activelook.activelooksdk.types.SensorMode;
import com.activelook.activelooksdk.types.SensorParameters;
import java.util.Map;
public class OpticalSensorCommands extends MainActivity2 {
@Overr... | 31.387097 | 74 | 0.644399 |
7d8ccd04ad5714fb674282223b9db10b8f485090 | 5,263 | package com.drk.tools.gplannercore.planner.state;
import com.drk.tools.gplannercore.core.Context;
import com.drk.tools.gplannercore.core.state.StateTransition;
import com.drk.tools.gplannercore.core.state.Statement;
import com.drk.tools.gplannercore.core.variables.Variable;
import com.drk.tools.gplannercore.planner.st... | 36.804196 | 147 | 0.689721 |
69dc4c15881244e90448aee821d860b435cedb5a | 7,663 | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... | 37.563725 | 120 | 0.689808 |
d2682e7eff0270c889ea822c07fdc4cd2702aa00 | 2,695 | package Monopoly;
public class Property {
private String name;
private String color;
private int rent;
private int rentOneHouse;
private int rentTwoHouses;
private int rentThreeHouses;
private int rentFourHouses;
private int rentHotel;
private int morgageValue;
private int housesCost;
private int hotel... | 21.910569 | 208 | 0.667532 |
3e0f840aee3d131f7cf2ba3ed63601aa8f13111a | 1,071 | package com.ddlab.rnd.type2;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
public class AcceptEither1 {
private static void sleep(int seconds) {
try {
TimeUnit.SECONDS.sleep(seconds);
} catch (Exception e) {
e.printStackTrace();
}
}
p... | 26.121951 | 82 | 0.603175 |
bf64c00e0c0d39078dd4d4cbe2526e1d4eb2b9ac | 6,089 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.uniandes.csw.tiendadiscos.test.persistence;
import co.edu.uniandes.csw.tiendadiscos.entities.CarritoDeComprasEntit... | 36.244048 | 110 | 0.648054 |
654d69f44694f53bcc9f2bb434d1ae67cee2ab28 | 9,210 | package ca.ualberta.cs.cmput301f14t14.questionapp.data;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.UUID;
import android.content.Context;
import android.content.Intent;
import android.location.Address;
import androi... | 29.14557 | 134 | 0.731162 |
7698131476f394837d7f5f50b42b641e18248590 | 900 | package com.cainiao.wireless.crashdefendkit.lang;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import com.cainiao.wireless.crashdefendkit.os.SafeHandler;
/**
* Helper class for managing the background thread used to perform io operations
* and handle async broadcasts.
*/
p... | 25 | 90 | 0.717778 |
b2354164a04b5a8598f989b7ffd5a2d0f48aed69 | 704 | package top.fosin.anan.platform.modules.user.service.inter;
import top.fosin.anan.cloudresource.dto.res.UserRoleRespDto;
import top.fosin.anan.jpa.service.ICrudBatchJpaService;
import top.fosin.anan.platform.modules.user.entity.UserRole;
import top.fosin.anan.platform.modules.user.dto.UserRoleReqDto;
import java.uti... | 28.16 | 79 | 0.774148 |
9cee9a07b72e666adc5c3cbdce2819c609aaf4c1 | 2,304 | ///*
// * 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... | 37.770492 | 84 | 0.627604 |
8ad7bfeeecf1763207453ba531ef33a2917aeb4c | 686 | package com.github.metrics.elements.event;
import java.util.LinkedHashMap;
import java.util.Map;
import lombok.Data;
@Data
public abstract class Event{
private final String type;
private final String name;
private final String trackingID;
private final long timestamp;
private M... | 23.655172 | 80 | 0.701166 |
d0e478fc605ea2ab23ffaf1140e1f467fa096bf0 | 635 | package com.xuxueli.crawler.proxy.strategy;
import com.xuxueli.crawler.proxy.ProxyMaker;
import java.net.Proxy;
import java.util.Random;
/**
* proxy macker, rancom strategy
*
* @author xuxueli 2017-11-07 20:06:54
*/
public class RandomProxyMaker extends ProxyMaker {
private Random random = new Random();
... | 20.483871 | 75 | 0.633071 |
2ca1c475e26d40580663bf1a316134f6264db5f3 | 685 | package common.db;
import edu.gsu.dmlab.isd.monitor.IJobRecordConnection;
import edu.gsu.dmlab.isd.monitor.PostgresJobRecordConnection;
/**
* Created by ahmetkucuk on 3/10/18.
*/
public class JobRecordConnectionProvider {
private static JobRecordConnectionProvider instance;
private PostgresJobRecordConnecti... | 28.541667 | 85 | 0.737226 |
e16231637be8d8969fb57ed6645720e3ed620cdc | 413 | package de.htw_berlin.ai.itsec.rsa;
import de.htw_berlin.ai.itsec.bigint.BigInt;
public class PublicKey implements Key {
private BigInt e;
private BigInt n;
/**
* @param e
* @param n
*/
public PublicKey(BigInt e, BigInt n) {
this.e = e;
this.n = n;
}
public Bi... | 14.75 | 44 | 0.547215 |
f5e1f59c049c31cebe5479cc49846db562599ad9 | 661 | package seedu.docit.testutil;
import java.time.LocalDateTime;
/**
* A utility class containing a list of {@code LocalDateTime} objects to be used in tests.
*/
public class TypicalLocalDateTimes {
// Future
public static final LocalDateTime FIRST_JAN = LocalDateTime.of(2042, 1, 1, 0, 0);
public static fi... | 36.722222 | 90 | 0.718608 |
8f3b34ef049e7e814bc49f4673ac968999ad3f46 | 4,069 | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.connector.db2;
import java.sql.SQLException;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import io.debezium.confi... | 32.552 | 114 | 0.663308 |
010de0dcce9c8224dc12a920b0c0ecb78867cba7 | 3,158 | /*
* Copyright 2000-2010 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... | 33.956989 | 125 | 0.686827 |
5d920ae7fa2ba5501114bb199888460c5c2bd431 | 6,265 | package pacman;
import pacman.powerup.PowerUp;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.util.Random;
import java.util.Stack;
public class Enemy implements CollidableObject {
private final int R = 2;
private Random r = new Random();
private ... | 33.864865 | 176 | 0.535355 |
af05a46e1299bc8de66a5cbbecbb30c6c9a6f80b | 474 | /**
* Implementation package for JSR-107 (javax.cache aka "JCache") based caches.
* Provides a {@link org.springframework.cache.CacheManager CacheManager}
* and {@link org.springframework.cache.Cache Cache} implementation for
* use in a Spring context, using a JSR-107 compliant cache provider.
*/
@NonNullApi... | 39.5 | 79 | 0.776371 |
48e2cb4a0694d19e577f8878a16425e864ecf552 | 1,266 | /**
* Classe
* Do pacote de exemplo SistemaCaixaEletronico
* ( Pacote criado para realizar as operações "virtuais" bancárias de nosso exemplo )
* Padrão de Projeto GOF - Facade
*
* @author Thiago Toledo <javaephp@gmail.com>
*
*/
package SistemaCaixaEletronico;
//Importando o Random para deixar nossos teste... | 30.878049 | 117 | 0.721169 |
c1bc7bacf89f8956fb094842fbf539cdf75c8d2e | 1,086 | /**
* Copyright (C) 2015 Stubhub.
*/
package io.bigdime.libs.kafka.partitioners;
import kafka.producer.Partitioner;
import kafka.utils.VerifiableProperties;
/**
*
* @author anaithani/mnamburi
* When the message.key has posted to kafka,
* this partitioner code base to support parsing the message and generate... | 27.15 | 105 | 0.698895 |
66b2cf8259f4c79ec4ab21ce7e26f8fb4eb20960 | 229 | package org.exolab.castor.xml;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;
public interface SAX2EventProducer {
void setContentHandler(ContentHandler var1);
void start() throws SAXException;
}
| 19.083333 | 48 | 0.781659 |
dd9e8d59050ad53e1827fa5386e315eb426b62ec | 1,671 | package com.sula;
import com.sula.business.custom.CustomerBO;
import com.sula.business.custom.ItemBO;
import com.sula.business.custom.OrderBO;
import com.sula.business.custom.impl.CustomerBOImpl;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene... | 29.315789 | 99 | 0.692998 |
f7836969c2d8ee5835f6abdd0ffa0082c9b89d9e | 5,753 | /* Soot - a J*va Optimization Framework
* Copyright (C) 1999 Patrick Lam, Raja Vallee-Rai
*
* 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, or (... | 33.063218 | 131 | 0.548931 |
1b4601f36717134092a4653c2b3ab29b97b31997 | 400 | String[] haystack = {"Zig","Zag","Wally","Ronald","Bush","Krusty","Charlie","Bush","Bozo"};
OUTERLOOP:
for (String needle : new String[]{"Washington","Bush"}) {
for (int i = 0; i < haystack.length; i++)
if (needle.equals(haystack[i])) {
System.out.println(i + " " + needle);
continue... | 33.333333 | 91 | 0.5675 |
90a1df65ebc99d10ce3fb9eca117dfe6e9a09ee9 | 2,902 | /*
* Copyright 2015 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.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | 38.693333 | 138 | 0.649207 |
07287a4a6efe3d44b40204e1c1f35107d9cde4bb | 72 | package pack2;
import pack1.Class1;
public class User1 {
Class1 a;
} | 10.285714 | 20 | 0.722222 |
45d650ef3fe0d4be643eafefc383479fb189d5ee | 2,491 | package com.skeqi.mes.pojo.chenj.srm.req;
/**
* @author ChenJ
* @date 2021/6/8
* @Classname CSrmSupplier
* @Description ${Description}
*/
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* 供应商信息表
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class CSrmSupplierReq {
/**
* 公... | 17.542254 | 61 | 0.592132 |
f810e947bcd8f879b3c5f2af33b712109906ef36 | 3,156 | package com.armdroid.rxfilechooser.request_helper;
import android.Manifest;
import android.content.Intent;
import com.armdroid.rxfilechooser.content.ImageContent;
import com.yalantis.ucrop.UCrop;
import java.util.List;
import io.reactivex.Observable;
public class ImageRequestHelper extends RequestHelper<ImageReque... | 27.206897 | 98 | 0.634981 |
688f027b8b5e920a6694104c85abc30fd49cf70d | 828 | /* */ package net.java.stun4j.message;
/* */
/* */ import net.java.stun4j.StunException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/... | 16.56 | 91 | 0.321256 |
641ca392f4f9acd718c0cc2c9062cc0923e8892d | 3,187 | package com.example.finalproject;
import androidx.appcompat.app.AppCompatActivity;
import androidx.room.*;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.io.Serializable;
public... | 33.197917 | 158 | 0.633511 |
6ab3e431a441176a78fe0120523cecb90556fa78 | 1,774 | package org.mockserver.junit.jupiter.integration;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockserver.integration.ClientAndServer;
import org.mockserver.model.HttpResponse;
import or... | 28.612903 | 115 | 0.708005 |
ea201412a8baa77eeb82b11357f44ac1101bd92a | 2,046 | package org.qiunet.logger.sender;
import io.netty.buffer.ByteBuf;
import org.qiunet.utils.date.DateUtil;
import org.qiunet.utils.encryptAndDecrypt.MD5Util;
import java.nio.ByteBuffer;
/**
* udp 的消息头
* Created by qiunet.
* 17/9/14
*/
public class MsgHeader {
// 头的长度
public static final int MESSAGE_HEADER_LENGTH... | 22.23913 | 105 | 0.659824 |
599610bc037b43be980be87c194b1d3743a44f91 | 931 | /*
* Copyright (C) 2018 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.frontend.rest.faq;
im... | 22.707317 | 67 | 0.758324 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.