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 |
|---|---|---|---|---|---|
fe4fbd2ef8c206d2ce79c690f10114c0a75d99c0 | 172 | package io.suricate.monitoring.model.enums;
/**
* Hold the data types for a configuration
*/
public enum ConfigurationDataType {
INTEGER,
STRING,
PASSWORD
}
| 15.636364 | 43 | 0.709302 |
6922099d6c44f0e50b7d433216d07723687c4cd3 | 1,511 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Java;
import Nodes.CNode;
import Nodes.CNodeKind;
/**
*
* @author jssanyu
*/
public class JLabeledStmt extends JStatement {
/**
*
*/
public String label;
/**
*
*/
publi... | 14.528846 | 70 | 0.487756 |
e0310554297ac0e2ee9333da785aed1f8e088c43 | 4,235 | package com.wragony.android.jsbridge.sample.view;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.Me... | 36.508621 | 153 | 0.683353 |
617449350dc01821ac56b977ac649aa1d84475b5 | 4,040 | /*
* Copyright (C) 2014 The Android Open Source 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 app... | 36.727273 | 111 | 0.660396 |
687892dcd3e9f2081de41dd2e1c9d1f9b8b6ec85 | 8,742 | /*
* 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")... | 27.840764 | 117 | 0.582704 |
5485165f1216a00c5f24426449d83841e12d35be | 2,321 | package com.bamboo.test;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ThreadPoolExecut... | 36.84127 | 138 | 0.662215 |
84d11b927ccb7c41d6ff2604bea77ec63177bdd7 | 166 | package me.stormma.controller.service;
/**
* @description test service
* @author stormma
* @date 2017/8/23
*/
public interface ITestService {
void test();
}
| 15.090909 | 38 | 0.686747 |
b3ba2b7106640a876afbc7e4e9a810907c16cb0f | 14,501 | /*
* 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
* distributed u... | 21.015942 | 84 | 0.673057 |
8f073c28d0da55ca778d6b32f46dc6a376516f88 | 2,267 | package org.titans.core.page;
import java.util.ArrayList;
import java.util.List;
public class PageResult {
// 总记录数
private long totalCount;
// 当前页号
private int pageNo;
// 总页数
private int totalPageCount;
// 页大小
private int pageSize;
// 列表记录
private List items;
... | 22.009709 | 82 | 0.515218 |
0459cd847d5af8b4b0381f4226b628b132f54b44 | 542 | /*
* The MIT License (MIT) Copyright (c) 2020-2021 artipie.com
* https://github.com/artipie/docker-adapter/LICENSE.txt
*/
package com.artipie.docker;
/**
* Docker repository files and metadata.
* @since 0.1
*/
public interface Repo {
/**
* Repository layers.
*
* @return Layers.
*/
L... | 15.485714 | 60 | 0.562731 |
02b2368bee87a10b9a1083104e67758b7b50e833 | 8,410 | /*
* 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 ... | 34.326531 | 125 | 0.694055 |
414e8aab4b60c91a6fe6e978b9139ab05b39c0a0 | 2,162 | package org.openecomp.sdc.be.auditing.impl.resourceadmin;
import org.openecomp.sdc.be.model.User;
import org.openecomp.sdc.be.resources.data.auditing.AuditingActionEnum;
import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData;
import org.openecomp.sdc.be.resources.data.auditing.model.ResourceCommonIn... | 56.894737 | 183 | 0.737743 |
8d10e52251f211ed82007ab8f01b33cf22790542 | 11,217 | package rcomic.control;
import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.List;
import ja... | 25.09396 | 132 | 0.612463 |
ddeea61010d4cc07c9351b83c1ba0fab2a710393 | 5,502 | /*
* Copyright (c) 2000, 2006, 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 ... | 38.746479 | 80 | 0.677754 |
ba243c046d71caf4d6403c6a3d84c070ffcf1454 | 531 | package net.seesharpsoft.intellij.lang;
import com.intellij.lang.ParserDefinition;
import com.intellij.lang.PsiParser;
import com.intellij.lexer.Lexer;
import com.intellij.psi.PsiFile;
/**
* Support for file specific parser definition.
*/
public interface FileParserDefinition extends ParserDefinition {
default ... | 26.55 | 64 | 0.758945 |
06ec8306f3b73ab9156c6c2dc04e3faaee0c0d24 | 2,360 |
package org.constellation.store.observation.db;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.geotoolkit.feature.FeatureExt;
import org.apache.sis.util.logging.Logging;
import org.geotoolkit.data... | 32.328767 | 156 | 0.647458 |
a55ca81d4944e55b475dc13e3055f57938d1b305 | 3,055 | package com.tdt.filter;
import java.io.IOException;
import java.util.Map;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRes... | 40.733333 | 102 | 0.682815 |
f1db88781a82f8731c8a9aed6b86ec88d6d5fd88 | 414 | package com.lizq.design.creational.singleton;
/**
* @author lizq
* @date 2019/01/15 22:14
*/
public class LazySingleton {
private static LazySingleton lazySingleton = null;
private LazySingleton() {
}
public synchronized static LazySingleton getInstance() {
if (lazySingleton == null) {
... | 20.7 | 60 | 0.644928 |
767a9137c55a685c82ef079a657d7eab7d1d9dfa | 402 | package com.abubusoft.kripton.examplea0.recipes.v2.persistence;
import com.abubusoft.kripton.android.annotation.BindDao;
import com.abubusoft.kripton.examplea0.recipes.v2.model.AuthorV2;
import com.abubusoft.kripton.examplea0.recipes.v2.model.IngredientV2;
/**
* Created by xcesco on 01/09/2017.
*/
@BindDao(Ingredie... | 28.714286 | 69 | 0.813433 |
ffa2dd050f8dd359310058c39a87ddd9366b9843 | 1,155 | import javafx.application.Application;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class GameGrap... | 30.394737 | 78 | 0.665801 |
d5f865cf174ec0e1ff967a183ec17945efcab887 | 84 | package com.pmu.data.model.users;
public enum UserStatus {
VERIFIED,PENDING;
}
| 14 | 33 | 0.738095 |
4efc41cc89b3c5a5a01c148879fa0d6afd1bc8c2 | 2,835 | package com.github.TKnudsen.timeseries.operations.preprocessing.multivariate.dimensionBased;
import java.util.ArrayList;
import java.util.List;
import com.github.TKnudsen.ComplexDataObject.model.processors.IDataProcessor;
import com.github.TKnudsen.ComplexDataObject.model.processors.ParameterSupportTools;
impo... | 30.159574 | 109 | 0.765785 |
dee150860c7cd5eee5dab01bae920cec69af86f1 | 568 | public class comparison_operators {
public static void main(String[] args) {
boolean result = 1 == 2;
System.out.println("1 equals 2 is " + result);
result = 1 != 2;
System.out.println("1 not equals 2 is " + result);
result = 1 > 2;
System.out.println("1 larger than 2 is " + result);
... | 23.666667 | 63 | 0.596831 |
2c2ec4546c2c0f19be6ebc2335e43a405acafe60 | 1,391 | package com.may.swim;
import com.may.swim.model.Session;
import com.may.swim.model.Set;
import java.util.ArrayList;
import java.util.Date;
/**
* @author : Mei XinLin
* @version : 1.0
*/
public class SwimTestUtil {
public static Session createSession(){
Integer poolLength = 88;
return n... | 28.979167 | 148 | 0.621136 |
1266978453c608bdaef784605b623625b7ee2053 | 615 | package com.acgist;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;
import com.acgist.distributed.scheduled.DistributedScheduled;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Configuration
public class ScheduledConfiguration {
@Scheduled(cron =... | 22.777778 | 61 | 0.730081 |
88c3d70121f1fbe1d95710022b08e51134c37d78 | 7,495 | package com.trkj.framework.mybatisplus.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.trkj.framework.entity.mybatisplus.Dept;
import com.trkj.framework.e... | 25.23569 | 100 | 0.595597 |
a30257030c92b7bb0be4594dba6e4b6c548b0909 | 4,541 |
/*
* Adito
*
* Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) an... | 38.811966 | 135 | 0.685312 |
49464a62fc2bfd0a9ce1152c9cf618c780ece9ee | 258 | package com.gof.structural.bridge;
public class Circle extends Shape {
public Circle(Renderer renderer) {
super(renderer);
}
@Override
public String draw() {
return "Drawing Circle Using " + getRenderer().render();
}
}
| 18.428571 | 64 | 0.635659 |
210280ec730de2e5cfd5abb62e831f3054a09a00 | 865 | package com.acesine.simpletodo.utils;
import android.content.Context;
import android.graphics.Typeface;
import android.util.Log;
import java.lang.reflect.Field;
public class TypefaceUtil {
public static void overrideFont(Context context, String defaultFontNameToOverride, String customFontFileNameInAssets) {
... | 41.190476 | 124 | 0.736416 |
c80aa144e5c617ef7b86e9fce34de7ef6ae03442 | 1,731 | /*
* Copyright 2013, 2014 Deutsche Nationalbibliothek
*
* 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... | 29.844828 | 111 | 0.686308 |
93862a63844c5fe126fa0f5eea8c3b2878262859 | 1,566 | /*
* Copyright 2016 lizhaotailang
*
* 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 t... | 27.964286 | 123 | 0.720945 |
e52fed7b93abfec6fac432d6a3690db960ddb71a | 705 | package com.app.jonathan.willimissbart.listener.animation.Generic;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
public class ShowOrHideAnimListener implements AnimationListener {
private View v;
private int visibility;
publ... | 23.5 | 66 | 0.72766 |
b49838ec928cac9e9283ce70aad1a17f48d7d2f4 | 486 | package com.leetcode.algorithm.medium.triangle;
import java.util.List;
class Solution {
public int minimumTotal(List<List<Integer>> triangle) {
int size = triangle.size();
int[] dp = new int[size];
for (int i = 0; i < size; i++) {
dp[i] = triangle.get(size - 1).get(i);
}
for (int i = size... | 22.090909 | 68 | 0.524691 |
92dce82870c912fe63e11fbc634ccf6da73eb629 | 1,482 | /*
* Copyright 2015 S. Webber
*
* 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... | 33.681818 | 131 | 0.719973 |
1eab15d4e4c370d8a5fba9ca8c56e2d466d99abc | 305 | package cm.dart;
public class Hello {
/**
* @param args
*/
public static void main(String[] args) {
<<<<<<< HEAD
System.out.println("Hello thieery bienvenu sur github");
=======
System.out.println("Hello Wilfried et sois le bienvenu");
>>>>>>> cfbf300b0ade147eb155d832b0cab944cdd57b65
}
}
| 17.941176 | 60 | 0.662295 |
d82b80fe1a06f1977fa99fb0531c25f31374d14a | 1,728 | package fr.sii.ogham.core.resource.resolver;
import fr.sii.ogham.core.exception.resource.ResourceResolutionException;
import fr.sii.ogham.core.resource.Resource;
import fr.sii.ogham.core.resource.path.ResolvedPath;
import fr.sii.ogham.core.resource.path.ResourcePath;
/**
* <p>
* Interface for all resource resolvers... | 31.418182 | 80 | 0.708333 |
1dd345d2e7880ed6cbb2a30808c70582cd782cdc | 6,224 | /* ###
* IP: GHIDRA
*
* 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 writin... | 28.814815 | 132 | 0.708066 |
c9c7fd3d83f7649cd43f1831aa6c4ef35ca79f44 | 2,968 | package com.arjuna.webservices11.wsat.processors;
import com.arjuna.webservices11.wsarj.processor.BaseNotificationProcessor;
import com.arjuna.webservices11.wsarj.ArjunaContext;
import org.jboss.ws.api.addressing.MAP;
import com.arjuna.webservices.base.processors.Callback;
import com.arjuna.webservices.SoapFault;
impo... | 33.727273 | 109 | 0.685984 |
6b884eb3b0aa720cb9163408fc88fd0859662c4f | 539 | package org.jaudiotagger.audio.dff;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
/**
* DSD Chunk
*/
public class DstChunk extends BaseChunk
{
public DstChunk(ByteBuffer dataBuffer)
{
super(dataBuffer);
}
@Override
public void readDataCh... | 14.972222 | 65 | 0.658627 |
01bf7533fecd249d0932e1127624f5c7bc9976cc | 1,399 | package com.jaymansmann.gameserver.gameserver.utility;
import java.lang.reflect.Method;
import java.time.Duration;
import java.util.logging.Logger;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodS... | 35.871795 | 132 | 0.789135 |
2430afcffc7f4bdc5d965d2f8868de1af186552b | 1,965 | /*
* This file is generated by jOOQ.
*/
package cn.vertxup.jet.domain;
import cn.vertxup.jet.domain.tables.IApi;
import cn.vertxup.jet.domain.tables.IJob;
import cn.vertxup.jet.domain.tables.IService;
import io.vertx.tp.ke.refine.Ke;
import org.jooq.Catalog;
import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
... | 23.392857 | 86 | 0.617812 |
2eb02eb66138003ec711539b4c678da58026e3fe | 13,984 | class i6AAjI8gMW {
}
class R {
}
class qsnZ1d7K {
public void[][][] Kz4 (void m, dqCDjRMpht4ot[] ll2yQ) {
int zzUiEkxeY = this.SeeaAbIfJ_JRVx = -!g0z7iv4pdrmRSk[ -new boolean[ !null.q5iOIOpy7_()].f];
while ( -0167.lG9) return;
void UjQP = ----210.zmmoT3qO6DRh();
void oEDm7qPl... | 36.041237 | 310 | 0.489273 |
72e281ffab86af4de16c73ba93f328bbf223aa2a | 87 | package com.securebox.abcnewsdroid.data.models;
public class RecentSearchHistory {
}
| 14.5 | 47 | 0.816092 |
d9a263b4366b87c67efca54c2a774149a886f7e8 | 135 | package com.cybernetica.bj.server.dao;
/**
* Game process DAO
* @author dmitri
*
*/
public interface GameDao extends BaseDao {
}
| 12.272727 | 42 | 0.696296 |
100b9233eebe46d428a0b61fc7f7d7e8d6d58bcd | 18,810 | /*
* Copyright 2017-2021 Pranav Pandey
*
* 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 ag... | 31.935484 | 101 | 0.604466 |
ef9613f5af1271d9d77ea1eedf8271fc4262643d | 2,394 | /*
* 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 ... | 27.837209 | 75 | 0.720134 |
32c84d74e96c9641d31de96c7484c4fda2673140 | 11,396 | /**
* Copyright (c) 2011+, HL7, Inc.
* All rights reserved.
*
* 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 above copyright notice, this... | 29.754569 | 156 | 0.655669 |
da82878c72f44bc3c5b2a552bce52f446e3fc179 | 425 | package com.kongoking.ksdstate;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.kongoking.ksdstate.mapper")
public class KsdStateApplication {
public st... | 26.5625 | 68 | 0.802353 |
e26d71c2907a98d93834a17c3e2bc9cda3f3c305 | 1,620 | package com.lego;
import entity.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import ... | 31.764706 | 81 | 0.77037 |
5b7558857e792bc49b6e6f15646da999c08df063 | 1,240 | package tech.tablesaw.columns.dates;
import static tech.tablesaw.columns.dates.PackedLocalDate.asLocalDate;
import static tech.tablesaw.columns.dates.PackedLocalDate.toDateString;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import javax.annotation.concurrent.Immutable;
import tech.tablesaw.... | 24.313725 | 83 | 0.691935 |
40164ba54840b9759757ee90814575986854381f | 2,245 | package sk.filo.plantdiary.controller;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.... | 34.538462 | 106 | 0.726503 |
5368618a5ba81640cf143a5829962e8ab94b976d | 1,930 | package com.edenrump.models.task;
import java.util.ArrayList;
import java.util.List;
/**
* Class representing a cluster of tasks with a particular name
*/
public class TaskCluster {
/**
* The name of the cluster
*/
private String name;
/**
* List of tasks in the cluster
*/
priv... | 21.685393 | 90 | 0.565285 |
0d854b112efc02e7c5e59831862924f72263c308 | 2,453 | package com.ghostship.cities;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.View.OnC... | 24.53 | 67 | 0.637587 |
c5a253f38cb5ac8c0e434e1e4a181354d779e0fc | 598 | /**
* Alipay.com Inc.
* Copyright (c) 2004-2020 All Rights Reserved.
*/
package com.alipay.sofa.ms;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
/**
* @author yiji@apache.org
*... | 26 | 69 | 0.750836 |
13338e9e359fbfcbf5ae3b5dc3f8517f6a6d0578 | 4,690 | /*
* 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 ... | 39.083333 | 88 | 0.709808 |
8766af5e2ffe11595f1ff8aeb1c926a5ea0e868d | 2,872 | package wtf.cattyn.ferret.api.feature.option.impl;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import org.luaj.vm2.LuaValue;
import org.luaj.vm2.lib.OneArgFunction;
import org.luaj.vm2.lib.jse.CoerceJavaToLua;
import wtf.cattyn.ferret.api.feature.Feature... | 29.306122 | 163 | 0.652159 |
b3a62eca3a43ad826ae5c36bc1e077479903e6d4 | 818 | package app;
import java.util.Random;
public class Lavaplatos extends Thread {
public Boolean recibiendo;
private Mesa mesa;
public Lavaplatos(Mesa mesa) {
this.mesa = mesa;
}
@Override
public void run() {
lavar();
}
public void lavar() {
while (true) {
this.recibiendo = true;
while (this.reci... | 19.023256 | 86 | 0.660147 |
7f8d120f8f906c37d263ff39b612b31e507cc8f4 | 305 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3;
/*
The channel which triggered the activity.
*/
public enum Channel {
/*
Dealer
*/
DEALER,
/*
Mobile
*/
MOBILE,
/*
Public FIX API
*/
PUBLIC_FIX_API,
/*
Public Web API
*/
PUBLIC_WEB_API,
/*
System
*/
SYSTEM,
/*
Web
*/
WEB
}
| 9.53125 | 80 | 0.708197 |
9db2b77136fa9938197e7f8df1a334a718f06170 | 902 | package org.jeecg.modules.activiti.entity;
/**
* Created by xieyt on 2018-9-20.
* 各种系统无法归类的公用的变量载体
*/
public class PointCommandEntity {
public String resCode;
public String resMsg;
public String commandJason;
public String sendResJson;
public String getSendResJson() {
return sendRes... | 18.408163 | 54 | 0.643016 |
879d30977ec24253eaa566d86aa0f421fb8ea294 | 13,471 | package org.tahom.repository.model;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.sqlproc.engine.annotation.Pojo;
import org.tahom.repository.model.Groups;
import org.tahom.repository.model.PlayOffGame;
import org.tahom.repository.model.StageStatus;
import o... | 24.992579 | 367 | 0.679088 |
17cd7cee02926d4160e18ca9f9cba7ffba0fb505 | 400 | package com.jian.lcapp.dao;
import java.time.LocalDateTime;
import java.util.List;
import com.jian.lcapp.dto.CalculationDTO;
public interface CalculationDAO {
List<CalculationDTO> findAll();
void save(String emailId, CalculationDTO calculationDTO, String calculationResult, LocalDateTime now);
List<Calculation... | 22.222222 | 103 | 0.805 |
e02470d0c6530029e6b7bb96f2b8b359e2737f57 | 657 | package net.ontrack.extension.git.client.plot;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class GPlot {
private final List<GItem> items = new ArrayList<>();
public GPlot add(GItem item) {
items.add(item);
return this;
}
public int getWidth()... | 19.323529 | 56 | 0.560122 |
f10418c38820be64000a14ed53607e2903e6b8a7 | 1,356 | package ctci;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Stack;
/*Implementation of CTCI 2.7*/
public class _07LinkedList_6 {
public static void main(String[] args) {
Scanner scanner =new Scanner(new InputStreamReader(System.in));
_02linkedList linkedList=new _02linkedList();... | 28.25 | 113 | 0.708702 |
751d03c0734e7481cdd9f849265ce138c51f1bfe | 3,334 | package jetbrains.mps.console.base.behavior;
/*Generated by MPS */
import jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor;
import org.jetbrains.mps.openapi.language.SAbstractConcept;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.core.aspects.behaviour.api.SMethod;
import... | 38.767442 | 266 | 0.773545 |
3744b9083ceff3fbb928612c7341b5e21ed99b58 | 238 | package br.com.javase8programmeri.arrays;
public class Test3 {
public static void main(String[] args) {
int[] id = new int[10];
id[0] = 1.0;
int[10][10] tb = new int[10][10];
int[][][] cb = new int[][][];
}
}
| 12.526316 | 41 | 0.546218 |
3d968e2dcc34c3cc3d5516ec1cef9cab44066483 | 309 | package jp.dodododo.dao.annotation;
import jp.dodododo.dao.dialect.Dialect;
import jp.dodododo.dao.dialect.Default;
import jp.dodododo.dao.id.IdGenerator;
public @interface IdDefSet {
Class<? extends IdGenerator> type();
String name() default "";
Class<? extends Dialect> db() default Default.class;
}
| 22.071429 | 53 | 0.760518 |
ade4011aef7aa0dd34b1658a251bf24ff9520ee1 | 257 | package com.example.gebeya_mood.GebeyaMoodGeneral;
import com.example.gebeya_mood.Mood.MoodsCountPojo;
import retrofit2.Call;
import retrofit2.http.GET;
public interface GeneralApi {
@GET("moods/count")
Call<MoodsCountPojo> getGeneralMood();
}
| 18.357143 | 51 | 0.782101 |
d617f5fd5a47666f2cf1321f2bf053d9dd257d13 | 997 | package com.studyinghome.factorymethod;
/**
* ${DESCRIPTION}
*
* @author leslie
* @create 2018-08-02 14:51
*/
public class MakePeople {
public static void main(String[] args) {
HumanCreator creator = new HumanFactory();
//1.通过自定义产生不同人类,一次制造一个
//第一次造白人
System.out.println("----... | 27.694444 | 74 | 0.553661 |
5cef555708be8861f51ecf1db86ba0cbf0347f4d | 343 | package com.umka.umka.model;
/**
* Created by trablone on 11/17/16.
*/
public class Rubric extends BaseModel {
public String one_id;
public String layer;
public String name;
public int id;
public String parent_id;
public String next_lauer;
@Override
public String toString() {
... | 17.15 | 39 | 0.653061 |
a904c8a8eb6ac3ed31810ef788fb610bf030419e | 547 | package com.dataiku.dip.output;
import java.io.IOException;
import java.io.OutputStream;
import com.dataiku.dip.datalayer.ColumnFactory;
import com.dataiku.dip.datalayer.Row;
import com.dataiku.dip.datasets.Schema;
public interface OutputFormatter {
public void header(ColumnFactory cf, OutputStream os) throws IO... | 32.176471 | 86 | 0.798903 |
3e934f23319341d9c70a0602eeda55fe69c9e88c | 641 | public int numSquares(int n) {
int root = (int) Math.sqrt(n);
int[] squares = new int[root];
for (int i = 0; i < squares.length; i++) {
squares[i] = (int) Math.pow(i + 1, 2);
}
int[] dp = new int[n + 1];
dp[0] = 0;
for (int i = 1; i <= n; i++) {
int minCombinations = Integer.... | 29.136364 | 75 | 0.475819 |
de971b432c952a968111ca4eec3316bf9083d358 | 1,528 | package com.linln.common.multithread;
/**
* 通过继承Thread来创建线程
* @Author zhaomengxia
* @create 2019/6/13 14:21
* 创建一个线程的第二种方法是创建一个新的类,该类继承Thread类,然后创建该类的实例
* 继承类必须重写run()方法,该方法是新线程的入口点。也必须调用start()方法测i能执行
*
*该方法虽被列为一种多线程实现方式,但是本质上也是实现了Runnable接口的一个实例
*/
public class CreateThreadTwo extends Thread {
private T... | 21.828571 | 82 | 0.60144 |
0323cca33cfa9e9f96ef94c2fde26ae5b961ff30 | 4,982 | package net.earthcomputer.libstructure;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import net.earthcomputer.libstructure.impl.LibStructureImpl;
import net.earthcomputer.libstructure.mixin.BiomeAccessor;
import net.earthcomputer.libstructure.mixin.FlatChunkGeneratorCo... | 47.903846 | 158 | 0.717182 |
12710ce822930eeb0a6347e566e027931c9ee6e0 | 10,455 | package neqsim.fluidMechanics.flowNode.twoPhaseNode.twoPhasePipeFlowNode;
import neqsim.fluidMechanics.flowNode.FlowNodeInterface;
import neqsim.fluidMechanics.flowNode.fluidBoundary.interphaseTransportCoefficient.interphaseTwoPhase.interphasePipeFlow.InterphaseStratifiedFlow;
import neqsim.fluidMechanics.flowNode.two... | 41.488095 | 170 | 0.617695 |
57bcf753cc4b06f07eff6825fb6cf449f6849659 | 56,372 | package com.psddev.dari.db;
import java.io.Closeable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
impo... | 32.509804 | 135 | 0.57156 |
c6c9d7ab5320a0e23832452e95d3edc274df6dba | 7,906 | package svenhjol.charm.brewing.feature;
import net.minecraft.block.BlockDispenser;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.dispenser.BehaviorDefaultDispenseItem;
import net.minecraft.dispenser.IBlockSource;
import net.minecraft.init.Blocks;
import net.m... | 35.137778 | 175 | 0.621553 |
0a89f2002988463befe67f0a69d4dd559d2daa19 | 6,313 |
package org.eclipse.birt.data.engine.olap.data.impl.aggregation.function;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import org.eclipse.birt.data.engine.api.timefunction.IPeriodsFunction;
import org.eclipse.birt.data.engine.api.timefunction.ReferenceDate;
import org.eclipse.bi... | 28.826484 | 124 | 0.703786 |
d980dc53c916880e8f92d0154c72507a37b8e41e | 3,842 | package by.bsuir.kaziukovich.oop.domain.info.user.impl;
import by.bsuir.kaziukovich.oop.domain.checker.InfoCheckersFactory;
import by.bsuir.kaziukovich.oop.domain.checker.userinfo.UserInfoChecker;
import by.bsuir.kaziukovich.oop.domain.info.user.UserRole;
import by.bsuir.kaziukovich.oop.domain.info.user.UserInfo;
impo... | 28.671642 | 134 | 0.636127 |
327d90a14b87aad43ca942309228ee122fa081d6 | 10,047 | package org.nem.nis.state;
import org.hamcrest.MatcherAssert;
import org.hamcrest.core.IsEqual;
import org.junit.*;
import org.nem.core.model.Address;
import org.nem.core.test.*;
import java.util.Collection;
import java.util.stream.IntStream;
public class MultisigLinksTest {
// region MultisigLinks
@Test
public... | 31.201863 | 127 | 0.77874 |
fa33f2463bf95cbd7cc7c371f8e7e52a7014bec8 | 254 | package model.processes;
import java.util.Map;
public class ExecutableGainScore extends Executable{
public ExecutableGainScore(Map<String, Object> parameters){
super(parameters);
}
@Override
public void execute() {
myActor.gainScore();
}
}
| 14.941176 | 60 | 0.751969 |
dcc4ad1b5e4a946f19f974c0a9c62ae5f3ec0250 | 170 | package net.xtrafrancyz.mods.discord;
import net.xtrafrancyz.mods.discord.lib.DiscordRichPresence;
public interface RPGenerator
{
DiscordRichPresence generate();
}
| 18.888889 | 60 | 0.811765 |
fcee9483a10c176cd57f0651c19926a0a5d877c8 | 108,069 | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 49.916397 | 131 | 0.731255 |
1f56b5f1c073e2047d6fbb9966ac360cd0c530c9 | 87 | package com.linkedbear.spring.container.a_beanfactory.bean;
public class Dog {
}
| 14.5 | 59 | 0.758621 |
bb06dc9bf612eee103e0633e8d56726541d86264 | 1,213 | package com.appmit.chapter2.q5_sum_lists;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
public class Question {
public static int listToNum(LinkedList<Integer> list){
int counter = 0;
int result = 0;
while(!list.isEmpty()){
... | 25.808511 | 75 | 0.574608 |
312c1db5baec3b97f83ddb0e1821f3c2b0b92906 | 4,328 | package com.simplegame.server.bus.skill.configure.export.impl;
import com.simplegame.core.data.IEntity;
import com.simplegame.server.gamerule.skill.SkillTargetChooseType;
public class SkillLianConfig implements IEntity {
private static final long serialVersionUID = 1L;
private String skillId;
pr... | 21.425743 | 81 | 0.637708 |
820854882af4d696a5984c398b0542e248b8bf35 | 4,207 | package com.stanfy.enroscar.net;
import android.net.Uri;
import android.os.Build.VERSION_CODES;
import com.stanfy.enroscar.io.IoUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricTestRunner;
import org.robolect... | 39.317757 | 100 | 0.764916 |
e40e7ea2fbb6b30d11e63d9b93b3989605feab98 | 1,935 | package com.mozz.htmlnative.http;
import android.support.annotation.IntDef;
import com.mozz.htmlnative.utils.IOUtils;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Map;
import static java.util.Collections.EMPTY_MAP;
/**
* @author Yang Tao, 17/5/29.
*/
publi... | 23.888889 | 94 | 0.620672 |
c56905bd98ffd2bd588b1fd7e303500389b03da5 | 7,385 | /*
* Copyright (C) 2013 The Android Open Source 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 app... | 34.834906 | 130 | 0.684496 |
9a8583d883c5915101f45fd21497de0d48dfa8d2 | 393 | package com.quorum.tessera.encryption;
import java.util.Objects;
public class KeyCache {
public String senderKey;
public String reciperKey;
public SharedKey sharedKey;
public int usedCount;
public KeyCache(String senderKey, String reciperKey, SharedKey sharedKey) {
this.senderKey = senderKey;
this.reciperKe... | 21.833333 | 76 | 0.770992 |
5210c480c1b481f4e33a1d17632abffc86ebda77 | 324 | package jvm.instructions.loads.lload;
import jvm.instructions.base.InstructionNoOperands;
import jvm.rtda.Frame;
public class LLOAD_0 extends InstructionNoOperands {
@Override
public void execute(Frame frame) {
Long val = frame.localVars().getLong(0);
frame.operandStack().pushLong(val);
}... | 21.6 | 52 | 0.722222 |
fa744edb8d0028b1ec1f741c1812a7f0380634ea | 7,044 | /*
* Copyright (C) 2018 Shehab Salah Open Source 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 ap... | 34.194175 | 100 | 0.646082 |
b73f697a0178c076a26fe8cfbd5345e63f18a72c | 3,951 | // Copyright 2017 The Nomulus Authors. 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 required by a... | 29.485075 | 91 | 0.666414 |
3e3d4283273a816eb05606131166b57321592033 | 980 | package com.github.danielnd14.app.repository;
import java.awt.*;
public final class ColorRepository {
private static ColorRepository instance;
private final Color purpleAccent;
private final Color greenAccent;
private final Color redAccent;
private final Color orangeAccent;
private ColorRepository() {
if (in... | 23.902439 | 107 | 0.729592 |
b7cfb1cbe3c6a09852ea7d668a6aec01e639c75b | 9,828 | package ca.ulaval.glo4003.housematch.domain.user;
import java.time.ZonedDateTime;
import java.util.HashSet;
import java.util.NoSuchElementException;
import java.util.Queue;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.apache.commons.lang3.builder.EqualsBui... | 32.76 | 140 | 0.702686 |
42922a24bc52eda63110b9cf151d0ff1d8bbd3db | 364 | package fake.jar.annotation.parser.modules;
import com.atlassian.plugins.codegen.annotations.JiraPluginModuleCreator;
/**
* @since 3.5
*/
@JiraPluginModuleCreator
public class JARJiraAnnotatedWithoutInterface {
public static final String MODULE_NAME = "Not A Plugin Module Creator";
public String getModuleN... | 22.75 | 75 | 0.755495 |
3181c516e96f1eb24eea5ce80c2925411d44a4a1 | 2,743 | package Client.Controller;
import Client.Model.Main;
import Client.Model.PageLoader;
import Server.User.User;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.image.ImageVie... | 31.170455 | 127 | 0.606635 |
08b78f2d63d3dd2e5f385d2fefe31c24dcd753b4 | 1,720 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 24.571429 | 98 | 0.684302 |
aab98fa7834c32734d4d01995de99ca7dda76841 | 1,076 | package model;
import lombok.*;
import javax.persistence.*;
import java.util.List;
@Entity
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor(access = AccessLevel.PACKAGE)
@Setter(value = AccessLevel.PACKAGE)
@Getter
@SequenceGenerator(name = "bootCounter")
public class Sc... | 26.243902 | 124 | 0.709108 |
7e77a7be67203c5d010fde80991c81e0e31b6c6c | 686 | package application;
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.layout.*;
public class Main extends Application {
private Stage window;
@Override
public void start(Stage primaryStage) ... | 19.6 | 43 | 0.696793 |
7c7b96cb6289b955391f35de79dd2e91a9cdc704 | 1,019 | package com.sitedia.common.rest.utils;
import org.springframework.security.authentication.encoding.ShaPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
/**
* SHA 512 encoder
* @author sitedia
*
*/
public final class Sha512PasswordEncoder implements PasswordEncoder {
privat... | 26.128205 | 102 | 0.734053 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.