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 |
|---|---|---|---|---|---|
cb854881bffb5cd2e32f9a9226c80fe925522396 | 68,179 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 39.093463 | 191 | 0.718814 |
0c66710f2c25a0d803aebc7eaeccdeea886793d4 | 2,629 | package com.zackehh.jackson.stream.collectors;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.IntNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.TextNode;
impor... | 32.060976 | 95 | 0.701788 |
e38dba3d699f9c94717c0e38c2b15b6b2cd61f30 | 3,055 | package gov.cms.mat.qdmqicore.conversion.dto;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import gov.cms.mat.qdmqicore.mapping.model.google.GoogleMatAttributes;
import gov.cms.mat.qdmqicore.mapping.model.google.GoogleMatAttributesData;
import gov.cms.m... | 43.642857 | 110 | 0.730606 |
ac2366c96ae108f4485f51ef19a30ecbf14d5940 | 1,754 | package com.cqupt.model;
public class Task {
private String createUser;
private String title;
private String remark;
private String startDate;
private String endDate;
private String isDiscuss;
private String content;
private int taskID;
private int students;
private int exams;
public String getCreateUser... | 18.659574 | 47 | 0.697834 |
2be4a5f701cb77c3f16fcdfff4882d34db02eeb1 | 7,339 | /*
* Copyright (C) 2015 The Async HBase Authors. All rights reserved.
* This file is part of Async HBase.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the abov... | 38.025907 | 81 | 0.685516 |
e0243f2b32cec652e5f8482b007a340ee2692161 | 4,093 | package qouteall.imm_ptl.core.mixin.client.sound;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.ClientLevel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.resources.sounds.SimpleSoundInstance;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.so... | 37.209091 | 224 | 0.640362 |
6f5def9c054ddf48483c6f478b869ddea262a4ee | 1,818 | /**
*
*/
package binarytrees;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import entities.TreeNode;
import util.Utility;
/**
* @author PRATAP LeetCode 199
*
*... | 22.444444 | 81 | 0.649615 |
f21c143ab019961760fa36751f64961e1a39ac55 | 6,503 | /*
* Copyright (C) 2012 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 39.895706 | 101 | 0.69614 |
0c01d6e4f746a2d9202073b534476814d17958a6 | 85 | package com.company.Strategy;
public interface PaymentStrategy {
void pay();
}
| 12.142857 | 34 | 0.729412 |
f58063e834971863d4f7d98e140994397155b9ef | 1,128 | package IB;
import java.util.ArrayList;
public class MergeTwoLists {
public void merge(ArrayList<Integer> a, ArrayList<Integer> b) {
int j=a.size()-1;
int k=b.size()-1;
int length = a.size()+ b.size();
System.out.println(length);
ArrayList<Integer> a1 = new ArrayList<>(le... | 25.636364 | 67 | 0.460993 |
de50ddf62f97ffb6598dfdb3eb1afeb26fa48914 | 2,164 | package middleware;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/* so that the cell does not have to keep track of all these game-wide values
* initialized in Initializer
* string to hashmap. similar to dfv but dfv never changes
* currentparameters change based on user input/choice
... | 33.8125 | 136 | 0.748614 |
1c2a70e21143f62ea67102eb3079d2e9a4b6e93a | 1,230 | package com.github.ponser2000.inside_test.to;
import java.time.LocalDateTime;
public class MessageTo {
int id;
LocalDateTime dateTime;
String message;
int user_id;
public MessageTo(int id, LocalDateTime dateTime, String message, int user_id) {
this.id = id;
this.dateTime = dateTim... | 20.5 | 83 | 0.549593 |
9dcc00bb4b364b573d9368a7d7ae9e41a2f2c05f | 1,856 | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2017 wcm.io
* %%
* 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 ap... | 24.421053 | 77 | 0.753772 |
2840e933986cf62d3d420b4a90a70da9a526b25b | 357 | package com.puppycrawl.tools.checkstyle.checks.whitespace.nowhitespaceafter;
import java.util.function.Function;
import java.util.function.IntFunction;
public class InputNoWhitespaceAfterMethodRef
{
IntFunction<int[]> arrayMaker = int []::new;//incorrect 10:40
Function<Integer, String[]> messageArrayFactory ... | 29.75 | 86 | 0.778711 |
3c0aec67378f18093b8ba87ea38aa456456634cb | 3,952 | package io.renren.modules.Excel;
import cn.afterturn.easypoi.excel.ExcelExportUtil;
import cn.afterturn.easypoi.excel.entity.ExportParams;
import io.renren.modules.eir.until.FileUtil;
import org.apache.poi.ss.usermodel.Workbook;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import ... | 29.714286 | 153 | 0.585273 |
26f8f60bc8692bd08f0a526d019f385591092e89 | 19,189 | /*
* 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 ... | 37.260194 | 133 | 0.579342 |
f6d8fe919d7cfa7c88ab4cb75231317a3f0e8313 | 2,224 | /*
* Tencent is pleased to support the open source community by making Tencent Shadow available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the License. You may obt... | 39.017544 | 103 | 0.688849 |
72bd04b9eef12522c5937110f4293a3313076590 | 3,056 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.02.04 at 03:24:... | 23.328244 | 110 | 0.585079 |
1579948909630afca07c3913eccd82aba728b1c8 | 1,077 | package br.com.venzel.store.modules.payment.payment.use_cases.update_payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.spr... | 37.137931 | 88 | 0.816156 |
e57a6dda67dfbfdd80c907002701112613067890 | 1,404 | package com.p.model.repositories;
import java.util.Collection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Reposit... | 46.8 | 129 | 0.774217 |
22e7a6dccd253ef4e0b0f64b33bde82606915088 | 513 | package polybellum.widget;
import android.app.Activity;
import android.graphics.Canvas;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends Activity implements GraphicsRenderer {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | 24.428571 | 72 | 0.725146 |
1e1f82dcd8b9948804c1f0efe8b8ff001aa71ec8 | 2,457 | /*
* Copyright 2015-2017 OpenCB
*
* 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.909091 | 136 | 0.682133 |
78c78f29d2565f92d6c27e9a2fe48058cdd77c2a | 2,270 | package com.vission.mf.base.web.interceptors;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import com... | 27.349398 | 75 | 0.737445 |
f6aea7cfe9e4003c5248b710dedc130805efa6ac | 2,705 | /*
* 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 ... | 38.642857 | 105 | 0.683549 |
7ede0afc9b0d00f9a8ca622962d36c16ac5e2622 | 3,160 | /*
* Java
*
* Copyright 2018-2019 MicroEJ Corp. All rights reserved.
* For demonstration purpose only.
* MicroEJ Corp. PROPRIETARY. Use is subject to license terms.
*/
package com.microej.example.wifi.setup.rest;
import java.io.IOException;
import java.net.InetAddress;
import java.util.logging.Level;
import java... | 33.263158 | 106 | 0.721519 |
794dcbf6ca4e639f9cd8a1d2c2064bf141210393 | 936 | package com.herman.gameserver.service.game;
import com.herman.gameserver.entity.game.Game;
import java.util.List;
/**
* 游戏信息缓存
* Created by herman on 2018/3/6.
*/
public interface IGameCache {
/**
* 通过code获取game信息
* @param code
* @return
*/
public Game getGameByCode(S... | 15.864407 | 48 | 0.527778 |
c5303778cf1b9ca36c0ea2cf51118bfc46a3e867 | 1,943 | /*
* Copyright 2002-2015 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 applicable... | 29.439394 | 118 | 0.711786 |
b7acdd33b6148cf662d0c5c02c9256c7b25e47de | 143 | package cn.pintia.zjo.practice.problem1951;
public class FileReaderTask implements Runnable {
@Override
public void run() {
}
}
| 14.3 | 49 | 0.706294 |
60d505c75ff01ffc9028c28e79fbe1a798f646f0 | 8,128 | package org.touchbit.buggy.testrail.listeners;
import org.touchbit.buggy.core.Buggy;
import org.touchbit.buggy.core.config.PrimaryConfig;
import org.touchbit.buggy.core.model.Details;
import org.touchbit.buggy.core.testng.listeners.BaseBuggyExecutionListener;
import org.testng.*;
import org.touchbit.buggy.testrail.Bas... | 44.415301 | 115 | 0.599532 |
62b61c6b24dc3963db9ebd1b94582e14baec3bb1 | 759 | package org.ovirt.engine.ui.uicommonweb.models.templates;
import org.ovirt.engine.core.common.businessentities.VmTemplate;
import org.ovirt.engine.core.common.queries.GetAllAuditLogsByVMTemplateNameParameters;
import org.ovirt.engine.core.common.queries.VdcQueryType;
public class UserPortalTemplateEventListModel exte... | 30.36 | 86 | 0.737813 |
71ef0208a96761001842db5eb9f77b97f0a893a4 | 5,342 | package us.ihmc.exampleSimulations.exampleContact;
import us.ihmc.euclid.Axis;
import us.ihmc.euclid.tuple3D.Point3D;
import us.ihmc.euclid.tuple3D.Vector3D;
import us.ihmc.graphicsDescription.Graphics3DObject;
import us.ihmc.graphicsDescription.appearance.YoAppearance;
import us.ihmc.graphicsDescription.yoGraphics.Yo... | 39.865672 | 176 | 0.725571 |
3d23335ecf6fb9181492d1f6626b7bd910e19ddd | 3,982 | package me.neznamy.tab.shared.features.layout;
import java.util.*;
import java.util.stream.Collectors;
import me.neznamy.tab.api.TabFeature;
import me.neznamy.tab.api.TabPlayer;
import me.neznamy.tab.api.chat.IChatBaseComponent;
import me.neznamy.tab.api.protocol.PacketPlayOutPlayerInfo;
import me.neznamy.tab.api.pro... | 34.034188 | 198 | 0.750879 |
8f568115c6471374351aade4c9f0d67818ff5951 | 769 | package com.go2group.uservoice.bean;
public class Comment {
private String id;
private String feedbackId;
private String forumId;
private String text;
private User creator;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getText() {
return text;
}
... | 14.788462 | 47 | 0.69961 |
ed4b55be8edcf6886b063aec3bc676e0ec9907f9 | 12,678 | /*
* Copyright (C) 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 43.417808 | 108 | 0.722906 |
60893ac717a47ead0be704062f7d88cdc6400358 | 3,506 | package com.joaopimentel.esperancastats.Service.statistics;
import com.joaopimentel.esperancastats.DTO.statistics.TransitionDTO;
import com.joaopimentel.esperancastats.Entity.statistics.Statistic;
import com.joaopimentel.esperancastats.Entity.statistics.Transition;
import com.joaopimentel.esperancastats.Repository.sta... | 38.108696 | 151 | 0.722191 |
420d43d97d7352fbb9296df3834fb09bbdacab11 | 733 | package com.ymrs.spirit.ffx.util;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
/**
* 加密工具类
*
* @author dante
*
*/
public final class EncryptUtils {
private static final BCryptPasswordEncoder bcryptEncoder = new BCryptPasswordEncoder();
private EncryptUtils() {
throw new IllegalA... | 18.325 | 88 | 0.709413 |
e3dff199fda81e309aac8653eb41b9ba4dcbc09f | 3,820 | /*
* Copyright (C) 2010-2014 Hamburg Sud and the contributors.
*
* 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 a... | 42.921348 | 289 | 0.744503 |
6dc7bba529bd4c90f63bdbf1486cc1f9d9f42dc6 | 446 | package com.so.w.config;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author zhangfeng542
* @date 5/14/19
*/
@Configuration
public class SSOConfig {
@Bean
public DefaultWebSecur... | 19.391304 | 70 | 0.789238 |
f7cbe80f60ae1f7fdf59ad52d3d7a65972539a8c | 1,343 | package one.jodi.action;
import com.google.inject.Inject;
import one.jodi.base.bootstrap.ActionRunner;
import one.jodi.base.bootstrap.RunConfig;
import one.jodi.base.bootstrap.UsageException;
import one.jodi.etl.service.loadplan.LoadPlanExportService;
import java.io.File;
public class LoadPlanPrintActionRunner imple... | 35.342105 | 105 | 0.718541 |
bc81fa6e1d1cadc7a6cda65041ea4a5ffc6dc305 | 1,554 | package com.ex.es.test;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.HttpHost;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.action.update.UpdateRequest;
import org.elasticsearch.action.update.UpdateRespon... | 35.318182 | 81 | 0.714929 |
fee373ef510d621d6587796b2ac6adcad8f26d78 | 486 | package com.kimzing.restful.service;
import com.kimzing.utils.result.ApiResult;
import com.kimzing.restful.domain.dto.UserDTO;
import com.kimzing.restful.domain.dto.UserQueryDTO;
/**
* 用户模拟服务.
*
* @author KimZing - kimzing@163.com
* @since 2019/12/28 16:16
*/
public interface UserService {
ApiResult save(Us... | 18.692308 | 51 | 0.730453 |
e86c0e6560cba965b0dfca261facbe98e638d0f6 | 1,077 | package nz.rafikn.movierates.akka;
import akka.actor.AbstractActor;
import akka.actor.ActorSystem;
import akka.event.Logging;
import akka.event.LoggingAdapter;
import akka.japi.pf.ReceiveBuilder;
import nz.rafikn.movierates.model.Movie;
import nz.rafikn.movierates.model.RawSearch;
import nz.rafikn.movierates.services.... | 28.342105 | 101 | 0.653668 |
46b45dd4ef8a008f7677499f820d7dd0fb852257 | 1,602 | package br.com.caelum.vraptor.http;
import static br.com.caelum.vraptor.config.BasicConfiguration.ENCODING;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.io.UnsupportedEncodingExcep... | 32.04 | 100 | 0.754057 |
86a6f4ed1e228799a6c292046c205e23c35d5f39 | 33,990 | package com.dji.sdk.sample.demo.flightcontroller;
import android.app.Activity;
import android.app.Service;
import android.content.Context;
import android.os.Environment;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widg... | 41.050725 | 168 | 0.532068 |
813e00adb4c736b5a2e9a903ce804cc9c4108da6 | 1,223 | package WayofTime.alchemicalWizardry.common.block;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.common.tileEntity.TESchematicSaver;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
im... | 28.44186 | 136 | 0.713818 |
09e79f89c5a4cb478ed468c7d673a97b481bed7d | 356 | package com.gioov.structural.decorator;
/**
* @author godcheese [godcheese@outlook.com]
* @date 2020-02-25
*/
public class ManDecoratorA extends Decorator {
@Override
public void eat() {
super.eat();
reEat();
System.out.println("ManDecoratorA 类");
}
private void reEat() {
S... | 17.8 | 46 | 0.620787 |
4a4614d9c738fe63034bab8e271d4685d67f293f | 2,362 | package net.newsmth.dirac.data;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
public class TextOrImage implements Parcelable {
public static final int TYPE_TEXT = 0;
public static final int TYPE_IMAGE = 1;
public static final int TYPE_AUDIO = 2; // 音频附件
public ... | 31.078947 | 105 | 0.609229 |
2581c28bf5586ea7103f5e8795f6e750311aa44f | 1,388 | /**
* Copyright (c) 2013, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"). You may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | 33.047619 | 90 | 0.737032 |
c48a6aafd5bae6798f91d1edf545fe8b8347534d | 1,213 | package catchat.data.source.entities.message;
import java.util.List;
public abstract class Message {
private String id;
private String senderAvatar;
private String sourceGUID;
private String text;
private String senderName;
private long createdAt;
private List<String> likes;
protected... | 22.054545 | 142 | 0.62737 |
d109239670c9cb6e0cb0323689ccb17cb5905b49 | 16,541 | package com.github.phylogeny.boundtotems;
import com.github.phylogeny.boundtotems.Config.Server.InventorySearch;
import com.github.phylogeny.boundtotems.block.BlockStrippedOakLog;
import com.github.phylogeny.boundtotems.block.BlockTotemShelf;
import com.github.phylogeny.boundtotems.block.PositionsTotemShelf;
import co... | 44.705405 | 150 | 0.660782 |
350025eff533f8fbfc4ed4d03e46f747f63807a3 | 12,405 | package com.idan.calendar;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.... | 30.935162 | 111 | 0.732205 |
d0f783a4a59b5ad9a58646355a2e7a75841e8fbc | 6,240 | package edu.harvard.liblab.ecru;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.FileInputStream;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
imp... | 34.475138 | 179 | 0.709615 |
52ea61c39b0605f646434b1f8a2c95d45e8fa9f3 | 205 | package intraprocedural.arithmetic;
public class Arithmetic6 {
public static void main(String[] args) {
int a = 0;
int b = 1;
int c = a ^ b;
int d = a >>> b;
}
}
| 15.769231 | 44 | 0.517073 |
a317a64ba11d2d16a34db7902f103037aea27c1e | 2,050 | package br.com.deveficiente.bolaoapi.services.championship.api.model.match;
import br.com.deveficiente.bolaoapi.services.championship.Championship;
import br.com.deveficiente.bolaoapi.services.championship.Match;
import br.com.deveficiente.bolaoapi.services.team.Team;
import br.com.deveficiente.bolaoapi.services.team.... | 32.03125 | 159 | 0.759512 |
6ed6011326859f0e8679610041ac505beda282d7 | 1,025 | /**
*
*/
package org.open.application.databean;
import java.util.Calendar;
/**
* @author SandeepRaju
*
*/
public class Product {
private int id;
private String productName;
private double price;
private Calendar dateOfManufacture;
public Product() {
}
public Product(int id, String productName, ... | 16.269841 | 88 | 0.712195 |
7e175e8975b6e5deb8dcec2f4b8383248046ded0 | 633 | import java.util.Scanner;
public class Count_the_item {
public static void main(String[] args) {
int count = 0;
double price;
Scanner input = new Scanner(System.in);
for (int i = 0; i < 3; i++) {
System.out.println(
"Please Entre the prices of the item of person " + (+i + 1) ... | 23.444444 | 80 | 0.467615 |
e130fbf8a321c955a72746e84812608f06e48097 | 1,592 | /*
* Copyright (C) 2021 xuexiangjys(xuexiangjys@163.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 a... | 22.742857 | 93 | 0.665201 |
815dfb26cd6e3a932256e62500c7a16b6f396416 | 2,857 | package com.hoasen.studio.dailymailfeed.Utilities;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.transition.Fade;
import android.transition.TransitionInflater;
imp... | 31.744444 | 117 | 0.744487 |
75042c83cb437e692c47000bb6b7f4a3a526bb89 | 282 | package arthur.dy.lee.red.envelope;
public class RedPackage {
public int remainSize;
public double remainMoney;//生产用BigDecimal
public RedPackage(int remainSize, double remainMoney){
this.remainSize = remainSize;
this.remainMoney = remainMoney;
}
}
| 23.5 | 58 | 0.712766 |
44471720487ea04bba08ad191d086b120ea353fe | 3,551 | /*
* -\-\-
* Mobius
* --
* Copyright (c) 2017-2020 Spotify AB
* --
* 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... | 35.158416 | 93 | 0.61363 |
c6164a02bae5e04718e585b3b369dc1fad0334fe | 905 | package imapi2 ;
import com4j.*;
/**
* Provides notification of the arrival/removal of CD/DVD (optical) devices.
*/
@IID("{27354131-7F64-5B0F-8F00-5D77AFBE261E}")
public interface DDiscMaster2Events extends Com4jObject {
// Methods:
/**
* <p>
* A device was added to the system
* </p>
* @param objec... | 22.073171 | 76 | 0.688398 |
4774dd1eab87fe94cbf590492a64bdeac74f9117 | 1,154 | package com.example.mobserv.remoteapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class LogActivity extends DrawerActivity {
TextView textView;... | 29.589744 | 98 | 0.629116 |
fe19bf21d528b92f78cb3fceebce8bf2e6181d56 | 1,317 | /*
* Copyright 2014 dc-square GmbH
*
* 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 agree... | 32.121951 | 82 | 0.726651 |
e3366eec4cb317451106b2bebdab073b6826c4f8 | 35 | class BaseClass {
Integer id;
} | 11.666667 | 17 | 0.657143 |
0d167c11b2622e604156b349780be86f7af6d390 | 14,325 | /*
* 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 ... | 45.04717 | 111 | 0.702897 |
e187fad470d2099683e791212bf438e4f6e5d5eb | 435 | package leecode;
public class MaximumSubarray {
public int maxSubArray(int[] nums) {
int maxSoFar = nums[0];
int maxEndingHere = nums[0];
for (int i = 1; i < nums.length; i++) {
maxEndingHere = Math.max(maxEndingHere + nums[i], nums[i]);
maxSoFar = Math.max(maxEndin... | 21.75 | 71 | 0.567816 |
70a5b141b2b3b64e8818afff9204a28e467fb20f | 2,372 | package com.intellect.spring.boot.cud.exception;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class ApplicationExceptionFactory {
ErrorCodesConfig exceptionInfo = ErrorCodesConfig.getInstance();
@Autowired
ApplicationExceptio... | 33.885714 | 113 | 0.818718 |
9f1ea3264e136b0557cdfb7e902de031db0b0681 | 1,391 | /**
*
*/
package repast.simphony.data2.engine;
import repast.simphony.data2.ConsoleDataSink;
import repast.simphony.data2.FormatType;
import repast.simphony.data2.ConsoleDataSink.OutputStream;
/**
* Sink for outputting text data to the console.
*
* @author Nick Collier
*/
public class ConsoleSinkDescriptor ex... | 20.761194 | 74 | 0.672178 |
3d34ac92042aa9f2b477e4a7964ebe164de13585 | 1,830 | /*******************************************************************************
* * Copyright 2014 Impetus Infotech.
* *
* * 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
* *
... | 24.078947 | 86 | 0.606557 |
f42b0aa444738799dc6183668edf558b1fad7467 | 6,563 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* dis... | 30.525581 | 98 | 0.649855 |
f12299a95cd118b0f7dbbbbc717064f02912dc6f | 453 | package eu.xenit.alfred.initializr.start.sdk.alfred.compose.config;
import eu.xenit.alfred.initializr.start.sdk.alfred.compose.config.DockerComposeGradlePluginConfiguration;
import org.springframework.core.Ordered;
@FunctionalInterface
public interface DockerComposeGradlePluginConfigurationCustomizer extends Ordered ... | 30.2 | 105 | 0.818985 |
03519286c88693298965e50167d94a1360ab495d | 959 | package br.dev.rodrigocury.forum.controller;
import br.dev.rodrigocury.forum.dtos.CursoDto;
import br.dev.rodrigocury.forum.models.Curso;
import br.dev.rodrigocury.forum.repositories.CursoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapp... | 29.060606 | 68 | 0.812304 |
510f0222f3949179191568dffd0554788536f024 | 6,078 | package com.fbla.atlas.atlas.reviewFragments;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android... | 34.146067 | 121 | 0.674893 |
26e25da79f191ca3014d0fa49701cc2b1c316cbe | 5,162 | /**
* Copyright © 2016-2019 The Thingsboard 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 applicab... | 44.119658 | 142 | 0.678613 |
f47ea1e3af81cece55067df02793135e9334864e | 178 | package net.minecraft.src;
import net.minecraft.entity.player.EntityPlayer;
/**
*
* @author Gregory
*/
public class NetServerHandler {
public EntityPlayer playerEntity;
}
| 14.833333 | 48 | 0.752809 |
c642d4459b6e51b30f33e3b0a2ac0a4137a4193e | 4,641 | package org.mikuclub.app.utils;
import android.content.Context;
import android.content.DialogInterface;
import android.view.KeyEvent;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import mikuclub.app.R... | 38.675 | 238 | 0.481793 |
544f67b7c2eb105d1a075f5bfe3b7356107f3131 | 2,724 | /*
* Copyright (C) 2017 Oracle
*
* 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 ... | 35.376623 | 75 | 0.708517 |
cfc447880fefe920222cbf6cb2d4fa07fc190859 | 1,157 | package org.brailleblaster.perspectives;
import nu.xom.Document;
import org.brailleblaster.wordprocessor.BBStatusBar;
import org.brailleblaster.wordprocessor.WPManager;
public interface DocumentManager {
//reset values or focus of a SWT component after switching perspectives
public void restore(WPManager ... | 39.896552 | 174 | 0.779602 |
53c30d06b9a87ad612a8adbfdbe762ba8b6d3bfa | 3,145 | package com.codetaylor.mc.dropt.modules.dropt.rule.parse;
import com.codetaylor.mc.athenaeum.parser.recipe.item.MalformedRecipeItemException;
import com.codetaylor.mc.athenaeum.parser.recipe.item.ParseResult;
import com.codetaylor.mc.athenaeum.parser.recipe.item.RecipeItemParser;
import com.codetaylor.mc.dropt.modules... | 32.091837 | 116 | 0.659459 |
492f00421f7546d9d02fed47a170c6cc164a4c92 | 2,133 | /**
* This class is generated by jOOQ
*/
package com.parallax.server.blocklyprop.db.generated.tables.pojos;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.7.4"... | 19.044643 | 66 | 0.693858 |
5b686cf2646748bd0a003146f33abc255333d44e | 394 | package io.jenkins.tools.pluginmanager.util;
public class Source {
private String version;
private String url;
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getUrl() {
return url;
... | 17.130435 | 44 | 0.606599 |
d3304860751e44a4adff5976ca2a34f83cab8605 | 1,077 | package com.zbiljic.resterror;
import org.testng.annotations.Test;
import com.zbiljic.resterror.http.HttpStatus;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
/**
* @author Nemanja Zbiljic
*/
public class RestErrorFactoryTest {
@Test
public void shouldCreat... | 30.771429 | 106 | 0.742804 |
7902206d95e48d6eb6b05a49db566b90a56503f1 | 6,976 | /**
* The MIT License
* Copyright © 2021 Heinz Nixdorf Chair for Distributed Information Systems, Friedrich Schiller University Jena
*
* 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 wi... | 31.423423 | 111 | 0.71961 |
40ca25b23e7766ae9d733b2ee6401bc1da796eb9 | 13,511 | 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.237092 | 815 | 0.816076 |
cfcf12fa767069e7e9419e4c9c2d052de283ab0d | 1,558 | /*
* Copyright (c) 2010, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2010, Remko Tronçon.
* All rights reserved.
*/
package com.isode.stroke.client;
/**
*
*/
public class ClientError {
private final Type type_;
public enum Type {
UnknownError,
DomainN... | 22.57971 | 54 | 0.652118 |
73223fafa9453dc7fff2868863493cbc1660cc60 | 112 | package com.base.java.generics;
public interface Pair<K,V> {
public K getKey();
public V getValue();
}
| 16 | 32 | 0.669643 |
9ec869193e3f82321e2898227b5d23435dcade27 | 2,348 | package me.aichina.strategy.move;
import me.aichina.board.ChessBoard;
import me.aichina.board.PieceType;
import me.aichina.game.GameState;
import me.aichina.game.Move;
/**
* 走子策略基类,getMove方法为核心方法,用于生成走子动作
*
* @author 陆梦轩
*
*/
abstract public class MoveStrategy{
/**
* 标签
*/
private String label... | 15.864865 | 77 | 0.549404 |
9651b81be73db5655f4d8e67c28812ed9b932e7e | 5,723 | package com.builtbroken.mc.lib.asm;
import com.builtbroken.mc.core.Engine;
import cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
import net.minecraft.launchwrapper.IClassTransformer;
import net.minecraft.launchwrapper.LaunchClassLoader;
import org.objectweb.asm.tree.ClassNode;
import java.io.IOE... | 24.882609 | 106 | 0.550411 |
7cddb124a5025f3ffddcc5b8e55107faec12476f | 3,184 | package com.fc.cps.action;
import com.fc.cps.global.*;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Random;
import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
... | 32.824742 | 154 | 0.709799 |
d4340675a9e907416a2f16b3cd464dbbc5f5761a | 1,060 | package cn.smile.smilemall.gateway.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.reactive.CorsWebFilter;
import org.springframework.web.cors.reactive.Url... | 33.125 | 94 | 0.814151 |
442ce883baf5e0abf8ab96e539552a56647869d2 | 1,963 | /*
* 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 ... | 33.844828 | 78 | 0.733571 |
8aeeede492b3ddd8e1fae71a5f64c63d30079fa2 | 4,318 | package com.wendyomollo.nipate;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.B... | 33.215385 | 111 | 0.646364 |
0796fcb0b40e3d3929e33ce78bad64408d8d232b | 1,273 | package com.simibubi.create.foundation.utility;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import com.simibubi.create.Create;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.world.entity.player.Player;
public... | 28.288889 | 97 | 0.752553 |
29f4f5704268e4572ed9265568a5bbfec7af11a1 | 1,705 |
package com.wavemaker.tools.deployment.cloudfoundry.archive;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.mock;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.InputStre... | 34.795918 | 143 | 0.725513 |
9da7925d1ab3268f00b348a1bf26ade26a22f1ae | 772 | package com.sicdlib.controller;
import com.sicdlib.service.IArticleSimiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
... | 28.592593 | 62 | 0.787565 |
bec1d82c5086add7686d9d9184f6a3fb00d9fd7c | 4,714 | package yokohama.yellow_man.sena.jobs;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import play.Play;
import yokohama.yellow_man.common_tools.CheckUtils;
import yokohama.yellow_man.sena.components.db.FinancesComponent;
import yokohama.yellow_man.sena.components.db.StocksComponent;
import... | 35.179104 | 206 | 0.70577 |
6010f103df19a3975112022bce0f4cae2ae6c307 | 17,509 | /*
* Copyright (c) Microsoft Corporation.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable... | 39.613122 | 122 | 0.668628 |
01f40efb14017abcc99ad60612502858033a8e13 | 697 | package com.github.rich.base.feign.factory;
import com.github.rich.base.feign.GatewayRouteServiceFeignClient;
import com.github.rich.base.feign.fallback.GatewayRouteServiceFeignClientFallbackImpl;
import feign.hystrix.FallbackFactory;
/**
* @author Petty
*/
public class GatewayRouteServiceFallbackFactory implements... | 38.722222 | 130 | 0.824964 |
311a72a9925a2cc7cb62d142f3e6d3a5e3ca9467 | 9,552 | package com.sequenceiq.authorization.service;
import static com.sequenceiq.authorization.resource.AuthorizationResourceAction.DELETE_DATAHUB;
import static com.sequenceiq.authorization.resource.AuthorizationResourceAction.EDIT_CREDENTIAL;
import static com.sequenceiq.authorization.resource.AuthorizationVariableType.CR... | 42.265487 | 160 | 0.738798 |
4da63ef10ad87cd2cbf8537afee09792832aeaff | 1,608 | /*
Copyright 2003 The Apache Software Foundation
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 l... | 30.923077 | 75 | 0.714552 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.