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 |
|---|---|---|---|---|---|
99262c5db363d0c5d8b2ae04ef49d158a7382e05 | 4,080 | package no.westerdals.quiz;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.swagger.annotations.ApiParam;
import no.westerdals.quiz.dto.DtoList;
import no.westerdals.quiz.dto.QuestionDto;
import no.westerdals.quiz.converters.QuestionDtoConverter;
import no.... | 37.431193 | 126 | 0.665931 |
0857113d9e65d7dc91508d3e60cbc4929f587e0a | 887 | package com.yq.service.freight.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yq.dao.DaoSupport;
import org.change.entity.Page;
import org.change.util.PageData;
import com.yq.service.freight.FreightManager;
/**
* 说明: 运费
* 创... | 18.479167 | 68 | 0.685457 |
87dc188f4673e4f54dc2a769f7f78fc155008613 | 827 | package model;
public class Reservation {
private long reservation_id;
private long customer_id;
private Bookings bookings;
public Reservation() {
bookings = new Bookings();
}
public Reservation(long customerId) {
setCustomer_id(customerId);
bookings = new Bookings();
}
public long get... | 19.232558 | 54 | 0.706167 |
bc84eedd0934ae138a2e144cdb0946261de98928 | 3,183 | package com.hyphenate.easeui.net;
public class HXUserInfo {
/**
* code : 0000
* message : 处理成功
* userToken : null
* data : {"result":{"id":3,"userId":"112","password":"bte3dKxIaxc","nickName":"promise","headImage":"https://file.bte.top/common/avatar/1.png","createTime":"2018-07-19 18:40:03"}}... | 24.113636 | 184 | 0.510839 |
ddc365da591e43eeedc8252ab44398fb9f1355d2 | 158 | package entities;
public class GcmData {
public String message;
public GcmData(String message) {
this.message = message;
}
public GcmData() {
}
}
| 10.533333 | 33 | 0.689873 |
2ef50e745a11dbf898d6a4fea6203108d27f3f7d | 1,045 | package designpatterns.creational.singleton;
import java.io.IOException;
/**
*
* @author Ozan Aksoy
*
*/
public class SingletonCalculator implements ISingletonCalculator {
private static SingletonCalculator instance;
private SingletonCalculator() {
}// End of Constructor
public static Si... | 18.660714 | 98 | 0.644019 |
76f64622f9b80880be20bf6d750d0a16574da4bd | 1,729 | package com.zsx.controller;
import com.github.pagehelper.PageInfo;
import com.zsx.entity.MonitorHeartbeatLog;
import com.zsx.entity.User;
import com.zsx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframew... | 32.622642 | 105 | 0.697513 |
165c1464f9ce720333c0e16d6461ea7649b3c294 | 13,186 | /*
* 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 ... | 32.398034 | 100 | 0.605946 |
9866b0bf423f8a693804716c759f5218eed900bf | 759 | package cn.sswukang.example.util;
import android.content.Context;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* 工具类
*
* @author sswukang on 2017/2/21 9:49
* @version 1.0
*/
public class Utils {
/**
* 从assets读取文本信息
*/
public static String get... | 26.172414 | 98 | 0.682477 |
d0856a2bed55001bd64ef807ecf3d9d4d4b345af | 291 | package Moves;
import ru.ifmo.se.pokemon.*;
public class Crunch extends PhysicalMove{
public Crunch() {
super(Type.DARK, 80.00d, 100.00d);
}
protected void applyOppEffects(Pokemon p) {
if (Math.random() < 0.2){
p.setMod(Stat.SPECIAL_DEFENSE, -1);
}
}
}
| 18.1875 | 46 | 0.62543 |
0c4c8a1046c039647876e39f541ab0cf5278e324 | 1,328 | /*
* Copyright 2016 Realm 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 wr... | 28.255319 | 113 | 0.720633 |
1cc0169fd7fcb09f024ebb99e0ff7ad36e823c5f | 1,493 | /*
* Copyright Terracotta, 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 ... | 31.765957 | 100 | 0.770261 |
805660dd77a9ab63cacb274fdf2f32f5bb010bd9 | 181 | package de.hft.softec.dbsys2.crimemap;
import org.springframework.data.jpa.repository.JpaRepository;
public interface DistrictRepository extends JpaRepository<District, Long> { }
| 30.166667 | 77 | 0.834254 |
bbd78bda81d7b9e975644eba4b06c565031ca4c5 | 2,666 | package com.adriel.controller;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import static org.mockito.Mockito.*;
import java.util.List;
import javax.servlet.http.HttpServletRequ... | 26.39604 | 101 | 0.78057 |
593c7d784b5f1806b3912bfb912bc63c87550eae | 2,485 | ///*
// * Copyright 2016 Red Hat, Inc. and/or its affiliates.
// *
// * Licensed under the Apache License, Version 2.0 (the "License");
// * you may not use this file except in compliance with the License.
// * You may obtain a copy of the License at
// *
// * http://www.apache.org/licenses/LICENSE-2.0
// *
// * ... | 33.581081 | 97 | 0.639839 |
ee68fab2d6f260369b8f1a1edcf53eb4545599f2 | 23,462 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | 38.462295 | 100 | 0.679652 |
c93dc8eb97fb358206b7fa2ce296b2254759b2a2 | 11,631 | package com.itextpdf.text.pdf;
import com.itextpdf.text.DocWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.TreeSet;
public class PdfWriter$PdfBody {
private static final int OBJSINSTREAM = 200;
protected int currentObjNum... | 37.041401 | 198 | 0.567621 |
04ea1600c1a51944c9694963a7af90a9101e9f08 | 4,839 | package mekanism.common.integration.crafttweaker.ingredient;
import com.blamejared.crafttweaker.api.annotations.ZenRegister;
import com.blamejared.crafttweaker.api.data.IData;
import com.blamejared.crafttweaker.api.data.JSONConverter;
import com.blamejared.crafttweaker.impl.tag.MCTag;
import com.blamejared.crafttweake... | 43.205357 | 157 | 0.746022 |
be1d96dba4d9aec079288b721948199938085ac4 | 680 | package com.twu.biblioteca;
public class Book extends LibraryData {
private String bookAuthor;
private String bookPublished;
public Book(String bookName, String bookAuthor,String bookPublished ){
super(bookName);
this.bookAuthor = bookAuthor;
this.bookPublished = bookPublished;
... | 20 | 74 | 0.672059 |
e4157cfcce89f900d79432d06b7b3a097ea1b86d | 199 | /**
* 类PaddingOracleCBC编写了小于等于16字节的字符的PaddingOracle和CBC翻转攻击的demo
*
* 类PaddingOracleCBC2编写了大于16字节的字符的PaddingOracle和CBC翻转攻击的demo
*
* @author xuanyh
*/
package com.threedr3am.bug.paddingoraclecbc; | 24.875 | 61 | 0.834171 |
8529b389731517f5f5b141baa9ed193f4ce56072 | 13,839 | /*
* Copyright (C) 2021 Nameless Production Committee
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/mit-license.php
*/
package kiss;
import j... | 28.891441 | 135 | 0.557121 |
ae72abe8536f27a213f364d0c91c05f98bc9c733 | 1,676 | package com.hummer.core.manager;
import com.hummer.core.base.HMExportClass;
import com.hummer.core.common.ILifeCycle;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class HMExportManager implements ILifeCycle {
private HashMap<String, HMExportClass> mJsClasses;
private Ha... | 23.605634 | 92 | 0.609189 |
1c529ef9faf8911a609ac8bf0fec04736839aec8 | 4,311 | package org.ditto.easyhan;
import com.google.gson.Gson;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.ServerInterceptor;
import io.grpc.health.v1.HealthCheckRequest;
import io.grpc.health.v1.HealthCheckResponse;
import io.grpc.health.v1.HealthGrpc;
import io.grpc.stub.StreamObserv... | 34.488 | 150 | 0.726514 |
6b6eb706d462942df08e983398ae25e09c6bdc2a | 20,201 | /*
* Copyright 2017-2019 Crown Copyright
*
* 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 a... | 39.844181 | 114 | 0.54725 |
d2b607afea198fe21d56411d3d10833d7a3e1d1d | 1,049 | package com.kapcb.ccc.tdd;
import com.kapcb.ccc.common.result.Result;
import com.kapcb.ccc.common.result.ResultInfo;
import com.kapcb.ccc.common.json.ConvertJsonFromApi;
import com.kapcb.ccc.domain.User;
import java.time.LocalDateTime;
/**
* <a>Title: TestDevelopment </a>
* <a>Author: kapcb <a>
* <a>Description: ... | 28.351351 | 99 | 0.678742 |
66bf9fd354211bf1511147edefa0187fe58d46ba | 877 | // https://www.hackerrank.com/challenges/java-bigdecimal/problem
import helper.TerminalPrinter;
import java.math.BigDecimal;
import java.util.*;
public class JavaBigDecimal {
private static final Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int n = scanner.nextI... | 27.40625 | 73 | 0.605473 |
1a6bc14cd9a62ec80c6c8cb629eb4b4423a2cdff | 2,666 | /**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 35.546667 | 80 | 0.699925 |
7576c965abbf8341d2875c15e6e269741002cdee | 7,096 | package top.itning.generic.service.zk.service.impl;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import lombok.extern.slf4j.Slf4j;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.imps.CuratorFrameworkState;
import org.apache.curator.framew... | 36.958333 | 126 | 0.634583 |
19426df3a3433afd1aad6ce1ce96d7b2f59e14e2 | 10,974 | /*
* Copyright 2013 The Sculptor Project Team, including 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
*
* http://www.apache.org/li... | 35.980328 | 141 | 0.632222 |
b457a6066bed9f98213b5ccace9490c81d7e85d1 | 665 | package com.github.niefy.modules.cms.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
@Data
@TableName("cms_content_picture")
public class CmsContentPictureEntity implements Serializable {
private Long contentId;
private Long priority;
private... | 26.6 | 103 | 0.742857 |
e9e30dd8d127cc040db47edf774d3062c0e3ad4d | 734 | package edu.thu.ss.spec.lang.analyzer.stat;
public abstract class AnalyzerStat {
public long[] time;
public int[] line;
public AnalyzerStat(int n) {
time = new long[n];
line = new int[n];
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Time: ");
long totalTi... | 18.35 | 43 | 0.610354 |
f3fe86b4b40405b073cf39ef523143423ab380e8 | 1,356 | package specialmembershipservice.port.outgoing.adapter.creditscore;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.ProcessingException;
import javax.ws.rs.ServerErrorException;
import javax.ws.rs.client.WebTarget;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.util.Opti... | 36.648649 | 107 | 0.692478 |
a0045ee3dd007514018968c768f55576a3e003e0 | 332 | package com.capgemini.dnd.trackProductBDD;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class)
@CucumberOptions(
plugin = {"pretty", "html:target/cucumber"}
)
public class TrackProductRunner {
public TrackProductRunner()... | 15.090909 | 45 | 0.743976 |
673a724ac7949ebfc1ab8050dc92659d8a8098cc | 3,478 | package oliver.bookhunter;
import android.annotation.SuppressLint;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import java.io.Serializable;
import oliver.bookhunter.Found... | 39.522727 | 117 | 0.616734 |
bb418b82f3aba9892723cc2a6720b7c9fef007a7 | 1,326 | package com._365d1.crm.dao;
// +----------------------------------------------------------------------
// | 官方网站: www.365d1.com
// +----------------------------------------------------------------------
// | 功能描述: Nunumao代码生成器
// +----------------------------------------------------------------------
// | 创建时间: 2021-10... | 41.4375 | 74 | 0.432881 |
b0de3184c4916d6e4dc8179bb620b2d57f514987 | 8,389 | package com.jberrio.studiomanager.controller;
import com.jberrio.studiomanager.service.UserService;
import com.jberrio.studiomanager.model.Event;
import com.jberrio.studiomanager.model.User;
import com.jberrio.studiomanager.repository.EventDao;
import com.jberrio.studiomanager.repository.UserDao;
import org.springfram... | 39.570755 | 107 | 0.653236 |
89b00c7a1252c2d933e786fb5c1f66f50460cf0a | 2,361 | package io.quarkus.panache.rest.common.runtime.hal;
import java.io.IOException;
import java.util.Map;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import io.quarkus.panache.rest.common.runtime.utils.St... | 39.35 | 117 | 0.73867 |
fbd4df49f43067d7a4888d3e6036a4f8ed881ba5 | 5,276 | package com.example.anguisfragilis.Repository;
import com.example.anguisfragilis.Domain.HighScore;
import com.example.anguisfragilis.Domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
import java.sql.*;
imp... | 40.899225 | 165 | 0.579037 |
0169aeb0163fb31eb4deeaedf6e6a4175d42a689 | 3,699 | package de.viadee.camunda.kafka.pollingclient.service.event.kafka;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.viadee.camunda.kafka.event.DeploymentEvent;
import de.viadee.camunda.kafka.event.HistoryEvent;
import de.viadee.camunda.kafka.polli... | 37.363636 | 118 | 0.710733 |
5d9630a1907974bf6c3e9f7cbacf45ac90091342 | 1,067 | import java.util.*;
class Solution {
public boolean solve(String s) {
Deque<Character> stack = new ArrayDeque<Character>();
for (int i = 0; i < s.length(); i++)
{
char x = s.charAt(i);
if (x == '(' || x == '[' || x == '{')
{
stack.push(x... | 25.404762 | 60 | 0.31865 |
885b5ca5266aef38d83c3b1fef7ba9f0381fb9d1 | 2,076 | package pkgUtils;
import java.io.PrintWriter;
import java.util.Date;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.... | 31.938462 | 169 | 0.733622 |
d2b675ae9230b734ad302d7b0b8dfa42c74cbd2d | 9,952 | package fi.vexu.supercubeapi;
import android.Manifest;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothManager;
import android.bluetooth.le.BluetoothLeScanner;
import android.bluetooth.le.ScanCallback;
import android.bl... | 37.134328 | 160 | 0.624598 |
9b6dab5b4572f5ceb100295da0b0553f8d00799a | 1,552 | package com.skycaster.geomapper.activity;
import android.content.Context;
import android.content.Intent;
import com.skycaster.geomapper.R;
import com.skycaster.geomapper.base.BaseActionBarActivity;
import com.skycaster.geomapper.bean.MappingData;
import com.skycaster.geomapper.data.StartMode;
public class EditMappin... | 26.758621 | 81 | 0.704253 |
12ed93f64a0d22510bbfbac7bf36a0f41699194c | 6,926 | package bemobi.hire.me.api.controller;
import bemobi.hire.me.api.UrlShortenerApplication;
import bemobi.hire.me.api.domain.Constants;
import bemobi.hire.me.api.domain.Url;
import bemobi.hire.me.api.exception.AliasAlreadyExistsException;
import bemobi.hire.me.api.exception.ShortenedUrlNotFoundException;
import bemobi.h... | 37.037433 | 103 | 0.6311 |
d344acfde4e132a30b2850c784a5e783dc54fde0 | 249 | package uk.gov.dvsa.motr.web.eventlog.subscription;
public class PendingSubscriptionCreationFailedEvent extends PendingSubscriptionEvent {
@Override
public String getCode() {
return "PENDING-SUBSCRIPTION-CREATION-FAILED";
}
}
| 22.636364 | 86 | 0.759036 |
2f55737707ceafd66d639b72012356de48d61762 | 1,706 | package com.appjishu.fpush_demo.handler;
import com.appjishu.fpush.core.app.FpushCoreApp;
import com.appjishu.fpush.core.constant.FMessageType;
import com.appjishu.fpush.core.proto.FBody;
import com.appjishu.fpush.core.proto.FHeader;
import com.appjishu.fpush.core.proto.FMessage;
import io.netty.channel.ChannelHandle... | 32.188679 | 91 | 0.749121 |
0b7eb88aab4d99e2ed2fc67d208319586291dadc | 283 | package udf;
import org.apache.flink.table.functions.ScalarFunction;
public class ExchangeGoodsName extends ScalarFunction {
private static String[] goodsName=new String[]{"蛋糕","鲜花","生鲜"};
public String eval(Integer goodsId){
return goodsName[goodsId];
}
}
| 21.769231 | 68 | 0.713781 |
6bbec3a7f5e643326e07dbd668cd36874d673d23 | 730 | package Encapulation;
public class datahidingC {
private int ssn;
public String name;
public int age;
public int getSsn(){
return ssn;
}
public String getName() {
return name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
... | 18.25 | 73 | 0.545205 |
db08939857a5827e637802ebd90cb2a16fe6fcef | 14,373 | package com.example.phompang.eatyfinder;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import an... | 40.487324 | 130 | 0.628679 |
842e2e4e81d2f79ac852bf8307d6f94c556921ee | 9,747 | package org.hotwheel.reflect;
import org.hotwheel.assembly.Api;
import org.hotwheel.asm.ClassReader;
import org.hotwheel.asm.ClassVisitor;
import org.hotwheel.asm.Label;
import org.hotwheel.asm.MethodVisitor;
import org.hotwheel.asm.Opcodes;
import org.hotwheel.asm.Type;
import java.io.File;
import java.io.FileInputS... | 33.961672 | 131 | 0.50354 |
e18d3662b7ad21870f07f2c99e2db140e98a1f74 | 3,416 | package org.gwtbootstrap3.client.ui;
/*
* #%L
* GwtBootstrap3
* %%
* Copyright (C) 2013 GwtBootstrap3
* %%
* 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... | 26.6875 | 114 | 0.687354 |
fcd1d035957d02719ac65edec5ea3a98c6338e5c | 3,200 | /**
* Copyright 2011-2019 Asakusa Framework Team.
*
* 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... | 38.095238 | 116 | 0.674063 |
085cfc28b0d6e4746570a1206ac4537582ab4af6 | 4,047 | package com.lightel.opticalfiber;
import com.google.gson.JsonObject;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.http.GET;
import retrofit2.http.Query;
public class RestApiManager {
private static RestApiMana... | 29.540146 | 78 | 0.649617 |
c68552034612ae2530b0525db63aa993a8aaa083 | 313 | package com.frusoft.interactiondrivendesignexample.presentation.countrylist.presenter;
import com.frusoft.interactiondrivendesignexample.core.domain.country.Country;
import java.util.List;
public interface CountryListView {
void showCountryList(final List<Country> countries);
void showErrorView();
}
| 26.083333 | 86 | 0.824281 |
95c58b3fc704f28d9de68653a6f6ff7731688a1b | 2,901 | package ru.devcorvette.infinitescroll.pager.presentatation.view;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import ru.devcorvette.infinitescroll.R;
import ru.devcorvette.infinitescroll.base... | 27.367925 | 87 | 0.641503 |
c88a19ad9c81cc416e7c30330ca476ccda57216b | 2,789 | /**
* @author Vladimir Kondratyev
* @author Michael Gerasimov
*/
package com.intellij.vssSupport;
import com.intellij.openapi.util.DefaultJDOMExternalizer;
import com.intellij.openapi.util.InvalidDataException;
import com.intellij.openapi.util.JDOMExternalizable;
import com.intellij.openapi.util.WriteExternalExcept... | 30.648352 | 76 | 0.726425 |
cb3155800fb4e3a209b4c53595f9f106f3a4c0c9 | 19,386 | package seedu.whatnow.model.task;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.logging.Logger;
import java.util.regex.Pattern;
import seedu.whatnow.commons.core.Lo... | 37.42471 | 121 | 0.583617 |
021fccbde95780cfda4933a3ac868d688cbd67e8 | 1,149 |
package ren.hankai.cnanalyzer.core;
import ren.hankai.cnanalyzer.util.CharacterUtil;
import java.io.FilterReader;
import java.io.IOException;
import java.io.Reader;
/**
* 间隔符过滤器,通过此过滤器包装 Reader 来过滤需要忽略的字符。
*
* @author hankai
* @version 1.0.0
* @since Jan 20, 2017 1:14:11 PM
*/
public class SpaceCharacterFilte... | 22.98 | 75 | 0.630983 |
7b88d97e1fe3e0300e6635c495bfe9340e553699 | 396 | package ru.stqa.soap;
import com.lavasoft.GeoIPService;
import org.testng.Assert;
import org.testng.annotations.Test;
public class GeoIpServiceTests {
@Test
public void testMyIp() {
String geoIP = new GeoIPService().getGeoIPServiceSoap12().getIpLocation("188.234.216.134");
Assert.assertEqual... | 22 | 99 | 0.707071 |
db6c96ba2c4c55af4aa67300ca795094e98d12c6 | 864 | package com.gaohwang.aop.test;
import com.gaohwang.aop.config.Config;
import com.gaohwang.aop.dao.StudentDao;
import com.gaohwang.aop.service.TestService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* @Description:
* @Author: gaoh
* @Date: 2020/9/13 9:57
* @Version: 1.0
... | 28.8 | 100 | 0.770833 |
4d55a6e84d59b08a596f3d8faf92c75fd6c1a45e | 287 | package mblog.nblog.mapper;
import mblog.modules.blog.entity.Post;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SpaceMapper {
Post findLyuPostByAuthorId(int id);
long saveLyuPost(@Param("post") Post post);
}
| 23.916667 | 47 | 0.780488 |
78c0081cb906829d0a602052e915eb8b7ca7c1db | 2,422 | package org.constellation.database.api.domain;
import java.io.Serializable;
import static org.apache.sis.util.ArgumentChecks.ensureNonNull;
/**
* @author Fabien Bernard (Geomatys).
*/
public class Order implements Serializable {
private static final long serialVersionUID = -2014434636272903866L;
public s... | 28.162791 | 80 | 0.410405 |
e7b3514ebbfc11c591614a853c6c8ed412398546 | 790 | package com.rdm.base.db.pool;
/**
* Created on 2015/9/6 by .
* 新增优先级,占用ext3字段,废除key_hash,启用key索引
*/
public class PoolTableV2 extends PoolTableV1 {
public static final String CREATE_INDEX_SQL = "CREATE INDEX pool_key_index on default_pool (key)";
public static final String CREATE_TABLE_SQL = "CREATE TABLE... | 26.333333 | 102 | 0.543038 |
2d2b1e6c31db9adac824746749183e9d530e8600 | 900 | package de.dytanic.cloudnet.console.animation.questionlist.answer;
import com.google.common.primitives.Ints;
import de.dytanic.cloudnet.common.language.LanguageManager;
import de.dytanic.cloudnet.console.animation.questionlist.QuestionAnswerType;
import org.jetbrains.annotations.NotNull;
import java.util.Collection;
... | 27.272727 | 77 | 0.743333 |
cde7dd3acc4988867886c6289b100899a6f32776 | 2,103 | /*
* Copyright 2017, BAE Systems Limited.
*
* This software and its outputs are not claimed to be fit or safe for any purpose. Any user should
* satisfy themselves that this software or its outputs are appropriate for its intended purpose.
*/
package tech.ecoa.osets.eclipse.plugin.editors.parts.fassmbl.edpart;
i... | 30.478261 | 99 | 0.77223 |
ca207d0ec6d9f3a4124a6ebb73e80c3bc3d187e1 | 1,095 | package com.hackatum.bookit.ui.profiles;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.hackatum.bookit.R;
import com.hackatum.bookit.data.model.Logg... | 34.21875 | 100 | 0.761644 |
8784a4b9292108538eed2f44e6a09010549050d0 | 12,909 | package org.nem.ncc.controller;
import net.minidev.json.JSONArray;
import net.minidev.json.JSONObject;
import org.bouncycastle.crypto.BufferedBlockCipher;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.InvalidCipherTextException;
import org.bouncycastle.crypto.engines.AESEngine;
import... | 38.765766 | 164 | 0.765435 |
78cdf7e3ab47aeafa009a3b968f6760193575784 | 5,225 | package com.hengtong.henchat.dbbase.dbcontact;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.hengtong.henchat.dbbase.BaseDao;
import java.util.ArrayList;
import java.util.List;
public class ContactEn... | 50.728155 | 121 | 0.712919 |
c16676fb27949920bd20b008cd28b9f0c2b1c6f3 | 222 | package com.emergentideas.webhandle;
import java.util.List;
public class TestObj3 {
public Integer sum(List<Integer> values) {
int result = 0;
for(Integer i : values) {
result += i;
}
return result;
}
}
| 13.875 | 43 | 0.666667 |
4ae937f52a50adc6453f9c15cd5c98c2beef6568 | 872 | package nostra.resourceed.gui;
/**
* An exception type that is used by the class FilterSettingsPane in various contexts.
*
* @author Mahan Karimi, Dennis Franz
*/
public class FilterSettingsException extends Exception
{
private static final long serialVersionUID = -7130579621617109243L;
public FilterSett... | 22.947368 | 94 | 0.691514 |
175ee7281f39bdf14ee6ad1ed653dc6dd96f4c66 | 448 | package com.github.zmzhou.easyboot.api.monitor.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import com.github.zmzhou.easyboot.api.monitor.entity.SysMail;
/**
* 系统邮件记录数据访问层接口
*
* @author zmzhou
* @version 1.0
* date 2... | 24.888889 | 101 | 0.787946 |
fc620007ab0615fc9f135d1552fc9215b64644f9 | 3,277 | /*
* Copyright 2013 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 33.10101 | 118 | 0.732377 |
c7546f6f465acb0e2615cecab71aa33ba4422203 | 2,628 | /*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.hybris.sapcustomerb2b.outbound;
import de.hybris.platform.b2b.model.B2BCustomerModel;
import de.hybris.platform.basecommerce.model.site.BaseSiteModel;
import de.hybris.platform.commerceservices.event.AbstractCommerceU... | 29.863636 | 121 | 0.8086 |
6dc253282e38dc747028ff73e3d20b7e7229da2c | 543 | package org.jeecf.engine.mysql.enums;
/**
* where connector enum
*
* @author jianyiming
*
*/
public enum WhereConnectorEnum {
/**
* and Connector
*/
AND(1, "and"),
/**
* or Connector
*/
OR(2, "or"),;
public final int code;
public final String name;
private Where... | 14.675676 | 55 | 0.54512 |
3a16ec17cc0009afeba5fb2f5efd7e2cf46f6129 | 295 | package testing_lib.genericsWildcardsClazzConstructorParamLowerBoundsMutation;
import java.util.ArrayList;
public class GenericsWildcardsClazzConstructorParamLowerBoundsMutation {
public GenericsWildcardsClazzConstructorParamLowerBoundsMutation(ArrayList<? super Integer> param1) {
}
}
| 24.583333 | 102 | 0.867797 |
d1b6f66371a9e14331607a3916f0b98a14366b8c | 2,569 | package com.github.lblaszka.springsimplechat.service;
import com.github.lblaszka.springsimplechat.domain.Message;
import com.github.lblaszka.springsimplechat.exception.MessageException;
import com.github.lblaszka.springsimplechat.repository.MessageRepository;
import org.springframework.beans.factory.annotation.Autowir... | 32.1125 | 152 | 0.709225 |
f178a501414206cad5417f977ff1ce4b6a20ac93 | 2,352 | package io.github.morichan.fescue.feature.multiplicity;
import io.github.morichan.fescue.feature.value.expression.Expression;
/**
* <p> 上限クラス </p>
*
* <p>
* 使い方を次に示します。
* </p>
*
* <pre>
* {@code
* Bounder upperOfExpression = new Bounder(new OneIdentifier(1));
* System.out.print... | 26.426966 | 122 | 0.563776 |
76c42bf57b0dfd567cf61dcc47f697a2937562da | 3,972 | /*
* 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 not ... | 36.440367 | 100 | 0.722558 |
3d345d2b71aa1115f1aeaba84ba17a1f1b21c07a | 68,694 | /*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... | 57.677582 | 194 | 0.54076 |
9af6944ff573d4d2dc8760e7b1232e82b2f7f79f | 321 | package planes.types.models.passenger;
import planes.types.PassengerPlane;
public class Airbus_A320 extends PassengerPlane {
public Airbus_A320() {
model = "Airbus A320";
maxSpeed = 930;
maxFlightDistance = 11800;
maxLoadCapacity = 65500;
passengersCapacity = 188;
}
}... | 20.0625 | 49 | 0.663551 |
2b2afcab32ebc1a0c217a256bae27df69489e9c7 | 983 | /**
*
*/
package com.cgovern.governor.commons;
import java.util.List;
import com.cgovern.governor.models.Index;
import com.cgovern.governor.models.Worker;
/**
* @author vamsiravi
*
*/
public class Sequence {
public static Long getLastUsed(List<Index> indexList) {
Long lastUsedSequence = Long.MIN_VALUE;
... | 17.553571 | 72 | 0.706002 |
c80cd549b17ff1c4306be3d9afc56896c15d146f | 2,430 | package com.neko.order.util;
import com.neko.filght.util.Filght;
public class Order {
private String o_id;
Filght filght = new Filght();
private String o_type;
private int amount;
private int total_price;
private String u_name;
private String tip;
private String u_id;
public Orde... | 21.504425 | 130 | 0.58642 |
401a252ebec24a9d3c05bfbb7e270fde8935ae92 | 1,139 | package com.webcheckers.ui.route.home;
import java.util.logging.Logger;
import com.webcheckers.appl.PlayerLobby;
import com.webcheckers.model.Player;
import com.webcheckers.ui.WebServer;
import com.webcheckers.ui.route.CheckersGetRoute;
import com.webcheckers.util.TemplateMap;
import spark.Response;
import spark.Tem... | 30.783784 | 86 | 0.776119 |
80c6c0273f03885b5001803347d4d06b911e83b5 | 32,144 | /*
* Copyright 2017 Observational Health Data Sciences and Informatics <OHDSI.org>.
*
* 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
... | 57.605735 | 247 | 0.67798 |
22d4de1fb2ee9dec65735b8cdd71b46d7e83103c | 9,530 | /*
* Copyright (c) 2019 Skymind Holdings Bhd.
* Copyright (c) 2020 CertifAI Sdn. Bhd.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law... | 50.691489 | 156 | 0.650577 |
c846f421b7fc5a811129169fb52aa8005b0a20eb | 12,084 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 37.64486 | 152 | 0.671797 |
3dab922f98dd6e11822fbb59dc2536caacaf248a | 1,745 | package sunggyu.algorism.condigTest2.bruteforce.recursion;
import java.io.*;
import java.util.*;
import java.util.stream.Collectors;
//https://www.acmicpc.net/problem/16198
//에너지 모으기
/*
*/
public class Recursion7{
static BufferedReader bf;
static BufferedWriter bw;
static int N;
static int[] list;
s... | 26.044776 | 79 | 0.511175 |
d26ac0468db14fe1a77d315d636cbafb25144f28 | 1,536 | package edu.cninfo.concurrency.ch09;
import java.util.Collection;
import java.util.concurrent.TimeUnit;
public class Main {
public static void main(String[] args) {
MyLock myLock = new MyLock();
Thread[] thraeds = new Thread[5];
for (int i = 0; i < 5; i++) {
Task task = new Ta... | 34.909091 | 83 | 0.505208 |
43592fa290bd5fba8e460bf580663a349a7b266c | 6,471 | package net.arccode.wechat.pay.api.common.util;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.config.RequestConf... | 28.632743 | 178 | 0.655231 |
ec13623cf99fdb0f115d10f8b2c1272793a6fecd | 400 | package com.rpc.rpc;
import java.util.Map;
public interface Invocation {
String getMethodName();
/**
* get parameter types.
*
* @return parameter types.
* @serial
*/
Class<?>[] getParameterTypes();
/**
* get arguments.
*
* @return arguments.
* @serial
... | 14.814815 | 41 | 0.555 |
66503bd188ee79ebffe928a94cb1f24dc0867f76 | 402 | package com.andrey7mel.stepbystep.other.di;
import com.andrey7mel.stepbystep.presenter.RepoInfoPresenter;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import static org.mockito.Mockito.mock;
@Module
public class ViewTestModule {
@Provides
@Singleton
RepoInfoPresenter pr... | 18.272727 | 61 | 0.771144 |
b0ae68977dfaa621db8f15b348ba1d9d4bcf6c6c | 15,017 | /*
* 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 ... | 41.369146 | 127 | 0.624559 |
27a4040b37df7626131c0b43f11bd32337931e78 | 3,777 | package deepakvadgama.com.popularmovies;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import deepakvadgama.com.popularmovies.data.Movie;
public class MainActivity extends ActionBarActivity implements... | 36.317308 | 126 | 0.638867 |
10d88056ac820a343cc7c4d65292a2c5cf3f323e | 9,262 | package com.bytewood.filesystem;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.File;
import... | 32.727915 | 136 | 0.745195 |
2a4e1f73fd6014b4eb5113d2c401608a490175a3 | 607 | //======================================
// Kyle Russell
// AUT University 2016
// Highly Secured Systems A2
//======================================
package com.kyleruss.safesms.server.web.app;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class ContextListener imp... | 25.291667 | 62 | 0.647446 |
bf47e45a03cde03a2cc7139ddad57175f022465a | 1,953 | package uk.clavier.chiplate;
public class Memory {
private byte[] ram;
public Memory() {
this.ram = new byte[0xFFF];
// chip-8 font data
// yes this is the best way to do it mom
byte[] font = new byte[] {
(byte) 0xF0, (byte) 0x90, (byte) 0x90, (byte) 0x90, (byte) 0... | 43.4 | 81 | 0.522273 |
a8da89c2110272c9c7dda8cfacf1bc57ff088e4e | 3,851 | /**
* Copyright 2014 Tampere University of Technology, Pori Department
*
* 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
*
... | 34.383929 | 229 | 0.735134 |
d12b76c3b1aa28720285ad0ae72b58a7e7d8f2e4 | 383 | package me.codethink.asmbridge;
import com.android.build.gradle.AppExtension;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
public class AsmBridgePlugin implements Plugin<Project> {
@Override
public void apply(final Project project) {
project.getExtensions().getByType(AppExtension.clas... | 27.357143 | 113 | 0.775457 |
87609f2420975312e8c5f56b3707c00f728872fd | 3,192 | /**
* Copyright (C) FuseSource, Inc.
* http://fusesource.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... | 47.641791 | 149 | 0.715226 |
8c751abf59fb70e1e3ddc52fbfad5a5abf34a5b5 | 1,904 | /*
* 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
*
* U... | 30.709677 | 100 | 0.684874 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.