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 |
|---|---|---|---|---|---|
413222d981405c34c8cecd49f94e9822d6a174c6 | 10,982 | package com.senior.cyber.tv.web.pages.show;
import com.senior.cyber.frmk.common.base.WicketFactory;
import com.senior.cyber.frmk.common.wicket.extensions.markup.html.repeater.data.table.filter.convertor.LongConvertor;
import com.senior.cyber.frmk.common.wicket.extensions.markup.html.repeater.data.table.filter.converto... | 44.461538 | 166 | 0.730923 |
8ac131d7195fca7515faa1387706f280982e4356 | 5,489 | package cn.brody.financing.service.impl;
import cn.brody.financing.mapper.FundBasicDao;
import cn.brody.financing.mapper.FundPositionDao;
import cn.brody.financing.mapper.FundTradeRecordDao;
import cn.brody.financing.pojo.bo.AddOrUpdateFundBO;
import cn.brody.financing.pojo.bo.DelFundBO;
import cn.brody.financing.pojo... | 46.516949 | 185 | 0.73292 |
d3073bbe38f18c507863e927ec00cb8b332217dc | 1,518 | package bi.know.kettle.neo4j.steps.output;
import bi.know.kettle.neo4j.core.GraphUsage;
import bi.know.kettle.neo4j.model.GraphPropertyType;
import bi.know.kettle.neo4j.shared.NeoConnection;
import bi.know.kettle.neo4j.steps.BaseNeoStepData;
import org.neo4j.driver.v1.Driver;
import org.neo4j.driver.v1.Session;
import... | 29.192308 | 83 | 0.801713 |
5f84196a10621b8328b0da7b65161552db5e63b8 | 455 | package org.cnt.ts.beanannotation;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Retention(RUNTIME)
@Target(TYPE)
/**
* @author lixinjie
* @since 2019-08-02
*... | 19.782609 | 60 | 0.70989 |
74a5ae1363b4ca8f5c9e9da0b19c1bf250ff773d | 2,064 | /**
* Yobi, Project Hosting SW
*
* Copyright 2013 NAVER Corp.
* http://yobi.io
*
* @Author Keesun Baik
*
* 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/... | 27.157895 | 114 | 0.671027 |
2d45cc027761e102f4a49600c10935840f16489e | 2,305 | /**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, eit... | 29.551282 | 105 | 0.718004 |
d855db168c953c25067ae7f2409781fca39a6235 | 6,287 | /*
* Copyright (c) 2010-2014. Axon Framework
*
* 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 ... | 39.049689 | 120 | 0.676793 |
30c0be319e69b3b1ea8ff702d26039f26125cd0a | 6,975 | package com.josephvarghese.piggame;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import andro... | 25.089928 | 110 | 0.578208 |
ea9db52f0a03af1761849407a34c142fc98d689f | 8,521 | package com.armedarms.idealmedia.fragments;
import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import andr... | 40.193396 | 181 | 0.657787 |
807f0cd0f941374097212350e5a0484c0e29319b | 1,904 | package net.floodlightcontroller.odin.master;
import java.net.InetAddress;
import net.floodlightcontroller.util.MACAddress;
import org.codehaus.jackson.map.annotate.JsonSerialize;
@JsonSerialize(using=OdinClientSerializer.class)
public class OdinClient implements Comparable {
private final MACAddress hwAddress;
... | 18.851485 | 77 | 0.683824 |
21203ac5630bfd82e623e8c118842224eda08c05 | 1,081 | package similarity.linzijun.com.converter.domain;
import java.util.Date;
/**
* Created by linzijun on
*/
public class User {
private String uuid;
private long id;
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
public l... | 15.897059 | 49 | 0.574468 |
11f3ed31b6721e979100f890384f5afad0792868 | 3,756 | package com.giang.topdf.activity;
import static com.giang.topdf.utils.Constant.ACTIVITY_CREATE;
import static com.giang.topdf.utils.Constant.IMAGE_LIST_URI;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Button;
import android.widget.Toast;
import androidx.acti... | 37.939394 | 120 | 0.703408 |
9202556a5205cd12d56605b3991529a1e25275c9 | 1,029 | package com.github.marschall.memoryfilesystem;
import java.nio.file.attribute.FileAttribute;
final class StubFileAttribute<T> implements FileAttribute<T> {
private final String name;
private final T value;
StubFileAttribute(String name, T value) {
this.name = name;
this.value = value;
}
@Override... | 19.788462 | 62 | 0.639456 |
ed4e7e4aa1f79e83ddb80021df8633da8203e744 | 1,528 | package info.loenwind.autosave.handlers.endercore;
import java.lang.reflect.Field;
import java.util.Set;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.enderio.core.common.NBTAction;
import com.enderio.core.common.fluid.SmartTank;
import info.loenwind.autosave.Registry;
import info.lo... | 31.833333 | 159 | 0.762435 |
4d2fcc30db490fbb145ef9cc61976062d27765d4 | 2,261 | package org.eclipse.fx.drift.internal;
import java.time.Duration;
public class GPUSyncUtil {
public static enum WaitSyncResult {
AREADY_SIGNALED,
TIMEOUT_EXPIRED,
CONDITION_SATISFIED,
WAIT_FAILED
}
public static interface GPUSync {
public WaitSyncResult ClientWaitSync(Duration timeout);
public void ... | 22.61 | 74 | 0.721362 |
7deadffd2dd4574bb7fd5ff4d1934d6e4f6d4683 | 5,958 | import java.util.Scanner;
public class QuickSorter {
public static void main(String[] args) {
int[] a;
if (args.length > 0) {
a = parseIntArray(args);
} else {
Scanner in = new Scanner(System.in);
System.out.println("Enter a comma-separated list of integers to sort, or type random:");... | 32.380435 | 105 | 0.565962 |
2ff371623468b7f1e09108a54b38a43c7de06313 | 1,161 | package edu.unah.poo.model;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name="autor")
public class Autor {
@Id
private int idAutor;
priva... | 18.140625 | 62 | 0.679587 |
0f64b228839cc264f4ef8d2b54b8bce79d69e59a | 2,104 | package edu.study.ol.course.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import edu.study.ol.bean.EduCourse;
import edu.study.ol.bean.SysFunction;
import edu.study.ol.bean.SysSubject;
import edu.study.ol.course.mapper.EduCourseMapper;
import edu.study.ol.course.mapper.SysSubjectMapper;
import edu.... | 30.492754 | 76 | 0.678232 |
68d1b7de6c30b0fac5961e59b36799460a1bce70 | 2,408 | package com.android.appcore;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import java.util... | 30.871795 | 120 | 0.650332 |
f5b4341b58564c9ee3f1113a65b6000b44343ace | 8,483 | /*
* Copyright (c) 2015, Florent Hedin, Markus Meuwly, and the University of Basel
* All rights reserved.
*
* The 3-clause BSD license is applied to this software.
* see LICENSE.txt
*
*/
package ch.unibas.charmmtools.generate.inputs;
import ch.unibas.charmmtools.generate.CHARMM_InOut;
import java.io.File;
impor... | 28.56229 | 204 | 0.593068 |
f80f110d504b511b8f0b6e3962c985f2ca1be6b3 | 5,170 | package net.floodlightcontroller.util;
import java.util.Arrays;
/**
* The class representing MAC address.
*
* @author Sho Shimizu (sho.shimizu@gmail.com)
*/
public class MACAddress {
public static final int MAC_ADDRESS_LENGTH = 6;
private byte[] address = new byte[MAC_ADDRESS_LENGTH];
private MACAddr... | 32.721519 | 104 | 0.586847 |
09e33094c88e80cb90294f33387c107a64f868c1 | 1,127 | package com.vailsys.freeclimb.api.conference;
import com.google.gson.annotations.SerializedName;
/**
* This enum represents the various possible predefined values of the
* {@code playBeep} field instead a FreeClimb Conference instance. It indicates
* whether the conference will play a beep when a participant enter... | 29.657895 | 81 | 0.748891 |
975c2e4f5216deebcaf6136501bb63827e16b97f | 1,503 |
package com.compositesw.services.system.admin.archive;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for getArchiveExportDataRequest complex type.
*
* <p>The following schema fragment specifies the ... | 23.857143 | 107 | 0.642715 |
3370bbabd620f6d476b2095d6903f4b88120111f | 538 | package com.algaworks;
import javax.swing.JOptionPane;
import com.algaworks.maladireta.MalaDireta;
import com.algaworks.maladireta.csv.MalaDiretaCSV;
public class RelacionamentoCliente {
public static void main(String[] args) {
MalaDireta malaDireta = new MalaDiretaCSV("contatos.csv");
String mensagem = ... | 26.9 | 89 | 0.737918 |
9908b0b09ef24277a7a2a3a796f2393a45245648 | 3,953 | /*
* _=_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_=
* Repose
* _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
* Copyright (C) 2010 - 2015 Rackspace US, Inc.
* _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
* Licensed under t... | 44.41573 | 174 | 0.698204 |
fe16d9f977b6b5a679e839f3ffe1c2522d85e699 | 3,877 | package com.rafslab.movie.dl.ui.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotatio... | 44.563218 | 132 | 0.74568 |
97257f04ef1871ccfbe9907bbe37144ec2196ef5 | 6,463 | package Renderer;
import org.joml.*;
import org.lwjgl.BufferUtils;
import java.io.IOException;
import java.nio.FloatBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import static org.lwjgl.opengl.GL11.GL_FALSE;
import static org.lwjgl.opengl.GL20.*;
import static org.lwjgl.opengl.GL20.glGetProgramInfo... | 35.125 | 97 | 0.610243 |
dc61f8a773eb7e8f0384852e3f564d1d4fd80e06 | 2,747 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package resultsystem;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.File;
import java.io.I... | 32.702381 | 128 | 0.65708 |
b2267f2cf5f6c3da56ae928ba0280b68f9bf15e4 | 707 | package ingredients;
import beverage.Beverage;
import ingredients.Ingredient;
import ingredients.IngredientType;
public abstract class Water extends Ingredient {
/**
* @param ingredientType to define the type of ingredient
* @param quantity to define the quantity of a particular ingredient neede... | 37.210526 | 126 | 0.76662 |
5ead404bd54189e29524436195363358b94c0405 | 583 | package service;
import java.io.*;
import javax.servlet.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.stereotype.*;
import org.springframework.web.multipart.*;
@Service
public class ImageService {
@Autowired
ServletContext context;
public String getPath(MultipartFile fi... | 23.32 | 97 | 0.746141 |
1e49736937cebe5e902a06bf338408546e3cb4ac | 5,179 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.model;
import com.model.User;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic... | 30.110465 | 153 | 0.651091 |
6b765f5737ab281ebcabbf08fd68d889599b19ba | 2,334 | package top.top7.collection.list;
/******
* Created by LEARNING on 2020/10/29 14:37.
*
**********************************************************************
* .-~~~~~~~~~-._ _.-~~~~~~~~~-.
* __.' ~. .~ `.__
* .'// \./ ... | 28.814815 | 72 | 0.430591 |
b5b6c385aa829402187ee7c7c9a91a07c4e0fbe3 | 2,998 | /*
* Copyright © 2017 Mark Raynsford <code@io7m.com> https://www.io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS P... | 36.560976 | 78 | 0.726484 |
301a88c1188977341c045f11c7539cbce9d2472f | 6,002 | package com.yuan.superdemo.alarmservices;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Bundle;
import ... | 34.297143 | 144 | 0.645785 |
dbb3eb5e16a672087c44dce6e65922c09135c184 | 156 | package cn.enilu.flash.common.bean.vo.offcialsite;
import lombok.Data;
@Data
public class Author {
private String name;
private String avatar;
}
| 14.181818 | 50 | 0.737179 |
295439f81548060888be876ddafd1045f1f60f48 | 990 | package worker;
import java.util.Observable;
import java.util.Observer;
import java.util.logging.Level;
import manager.WareHouseManager;
import util.Location;
import util.WareHouse;
public class Replenisher extends Worker implements Observer {
public Replenisher(String name, WareHouse wareHouse) {
... | 26.052632 | 101 | 0.676768 |
7b72132ac4047b6fb5980cffaa9242acfee6ffe7 | 11,823 | /*
* 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 ... | 40.628866 | 126 | 0.649835 |
91040ae992313d2d9a2204b058fce932594d2dcf | 260 | package com.heroengineer.hero_engineer_backend.section;
import org.springframework.data.mongodb.repository.MongoRepository;
/**
* Repository for querying Section documents.
*/
public interface SectionRepository extends MongoRepository<Section, String> {
}
| 26 | 77 | 0.823077 |
4d30394203aae44a28922b10814ee77e98c6a36d | 1,319 | package com.example.holiday.repository;
import javax.persistence.*;
@Entity
@Table(name = "holidays")
public class HolidayEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
private long workerId;
private long monthId;
private int days;
private int firstDay;... | 17.586667 | 55 | 0.588324 |
e1f971641fd52e567e4160ab1e9566d43a117599 | 5,729 | /*******************************************************************************
* Apache License Version 2.0
*
* Saul de Nova Caballero
******************************************************************************/
package com.terraingeneration;
import com.terraingeneration.utilities.Color;
import com.terrainge... | 32.737143 | 86 | 0.494676 |
617879f7c22b20aa67239e7105841917b75aee7b | 7,300 | /*
* 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 ... | 34.92823 | 114 | 0.705616 |
201c4a704e984c6224a6bc042afc407b6f453b74 | 1,879 | // Backtracking
// The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
// Given an integer n, return the number of distinct solutions to the n-queens puzzle.
// Example:
// Input: 4
// Output: 2
// Explanation: There are two distinct solutions to ... | 27.231884 | 121 | 0.461416 |
b5cb474ba148ed937bceb23f54871d6b47638d6b | 4,898 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 35.751825 | 159 | 0.711923 |
8901544ada09413edc884e7ebe2f85178167c94f | 4,857 | /*
* ==========================================================================
* Copyright (C) 2019-2021 HCL America, Inc. ( http://www.hcl.com/ )
* All rights reserved.
* ==========================================================================
* Licensed under the Apache License, Ve... | 37.945313 | 132 | 0.676343 |
6abdb3fac61767b4ffe884efea0e3bc96b58c810 | 157 | package demo.benchmarks.ModDiffEq.Add;
public class oldV {
public static double snippet(int a, int b) {
int c = a + b;
return c;
}
}
| 19.625 | 48 | 0.598726 |
374e8b7674c541c390fefe0192acb4353244de97 | 4,525 | package com.ljs.ifootballmanager.ai.report;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableSet;
import com.ljs.ifootballmanager.ai.Role;
import com.ljs.ifootballmanager.ai.Tactic;
import com.ljs.ifootballmanager.ai.formation.Formation;
import com.ljs.ifootballmanager.ai.player.Player... | 26.005747 | 90 | 0.598674 |
e39fda572e5166fc6b56e5f6dcba12d45f08b9fe | 3,717 | package uk.gov.gds.performance.collector.logging;
import java.io.*;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Arrays;
import java.util.List;
public class GenerateLogMessageDocumentation {
public static void main(String... args) throws Exception {
String ... | 37.17 | 122 | 0.569276 |
02d30ee6a51b846d2815fb7b91b8fba9685465d6 | 577 | package cn.zelkova.lockprotocol;
/**
* 设置同步开门密码指令
*
* @author lwq
* Created by liwenqi on 2016/6/25.
*/
public class LockCommSyncPwd extends LockCommBase {
/**
* @param cmd 从服务器获得的设置开门密码命令
*/
public LockCommSyncPwd(byte[] cmd) {
super.mKLVList.add((byte) 0x01, cmd);
... | 16.970588 | 52 | 0.559792 |
742ed21657881aa567bbc2cb528767f35cdaf4b4 | 1,568 | /*
* Copyright 2010-2013 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 35.636364 | 132 | 0.769133 |
8afcd7b9c58af542d1d70d751ee7b0ab8270f7a8 | 356 | package br.com.erudio;
public class HelloDocker {
private final String content;
private final String environment;
public HelloDocker(String content, String environment) {
this.content = content;
this.environment = environment;
}
public String getContent() {
return content;
}
public String getEnviron... | 16.952381 | 57 | 0.738764 |
1433f702c186a7e1d82b0dff90ce8aa93c47d82b | 4,081 | package org.pikater.shared.database.jpa.daos;
import java.util.List;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.pikater.shared.database.jpa.EntityManagerInstancesCreator;
import org.pikat... | 39.240385 | 183 | 0.807645 |
90912d1e88d8fcc40e50093f86b9ed0b4035ae48 | 3,603 | package unalcol.optimization.testbed.real.lsgo_benchmark;
/*
* Copyright (c) 2009 Thomas Weise for NICAL
* http://www.it-weise.de/
* tweise@gmx.de
*
* GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999)
*/
/**
* <p>
* The D/m-group group Shifted and m-rotated Elliptic Function: F14.
* </p>
* <p>
... | 27.715385 | 82 | 0.635859 |
1bba7e574398b9bd3868e78307576f84ff3780bb | 649 | package tutby;
import com.qaprosoft.carina.core.gui.AbstractPage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.FindBy;
import tutby.components.SearchResult;
import java.util.List;
public class SearchResultsPage extends AbstractPage {
@FindBy(xpath = "//*[@class=\"b-results-list\"]/li... | 22.37931 | 57 | 0.718028 |
f4cf14a4e53733122a839fa80227fc437beb1d69 | 486 | /* (c) https://github.com/MontiCore/monticore */
package de.monticore.types;
import de.monticore.generating.templateengine.reporting.commons.Layouter;
import de.monticore.types.mcarraytypes._ast.ASTMCArrayType;
/**
* NodeIdentHelper for MCArrayTypes, mainly used for Reporting
*/
public class MCArrayTypesNodeIdentHe... | 28.588235 | 78 | 0.794239 |
6a87ce204ae98b97c3587876a015b65aeb66b38d | 20,407 | /*
* 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.375458 | 99 | 0.688342 |
af5137f783b897befa4b515c5964c85e5452c06c | 16,071 | /*
* Copyright 2018 Netflix, 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... | 41.634715 | 130 | 0.629395 |
54fc04c849ff5cee8e0a31d5b8d9301c99e2eb29 | 847 | //,temp,StompTelnetTest.java,53,70,temp,StompTelnetTest.java,34,51
//,2
public class xxx {
@Test(timeout = 60000)
public void testCRLF() throws Exception {
for (TransportConnector connector : brokerService.getTransportConnectors()) {
LOG.info("try: " + connector.getConnectUri());
... | 36.826087 | 85 | 0.621015 |
4614cbce8c9134eb6c2815433aea19ab3caa0b63 | 3,896 | package org.fortiss.smg.prophet.impl;
import java.util.Date;
import org.fortiss.smg.prophet.components.smgCalendar.SmgCalendarUtils;
/**
* This file contains the configuration of the forecast subsystem
*
* @author Orest Tarasiuk
* @thesisOT
*
*/
public class Config {
/*
* Location
*/
/**
... | 23.329341 | 95 | 0.602156 |
3c236249c94759b7c7ffeba821b7197a625543bd | 1,487 | /**
*
*/
package org.devel.javafx.navigation.prototype.view;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.VB... | 19.064103 | 81 | 0.753867 |
41067c24e8d10cc3ab342fdba6a332771da1bdb8 | 357 | package com.greymass.esr.models;
public class AccountName {
private String gName;
public AccountName(String name) {
gName = name;
}
public void setName(String name) {
gName = name;
}
public String getName() {
return gName;
}
@Override
public String toStri... | 15.521739 | 38 | 0.582633 |
1d86466fc4a5b20cf6fe74830b64a4698dbe0435 | 254 | package org.e792a8.acme.ui;
import org.e792a8.acme.core.workspace.IDirectory;
public interface IDirectoryActionObserver {
public void open(IDirectory directory);
public void close(IDirectory directory);
public void handleException(Exception e);
}
| 21.166667 | 49 | 0.807087 |
fece5cdb79d84908fc2cfa1f07f7e3b70951c8a5 | 12,076 | /**
*
*/
package com.issue.entity;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import com.issue.enums.FeatureScope;
import com.issue.iface.SprintDao;
import com.issue.utils.St... | 22.741996 | 114 | 0.721348 |
7c0129fb32593213728adf9f79dee05888c1a3a1 | 19,992 | /**
* Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package org.apache.cassandra.thrift;
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this wo... | 28.806916 | 176 | 0.639056 |
d98e37a7f7f5c17c2bb5b4dc2d43edafaea79594 | 1,407 | package com.er5bus.restaurant.models;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
impor... | 23.847458 | 64 | 0.766169 |
b18639706ef97401af5ebf0639e6e689dc088d07 | 2,143 | package org.gramar.platform;
import static org.junit.Assert.fail;
import java.io.Reader;
import org.gramar.IFileStore;
import org.gramar.IGramarApplicationStatus;
import org.gramar.IGramarPlatform;
import org.gramar.IModel;
import org.gramar.exception.GramarException;
import org.gramar.filestore.ConsoleFileStore;
im... | 24.352273 | 94 | 0.732618 |
d16c728fc717e967892a1c666fcaa53cd1c42bcb | 2,917 | package com.tayfint.meethub.model;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.springframework.data.annot... | 19.709459 | 74 | 0.748029 |
493ccc9cb3b5ed7898857103e6e560d36a65b627 | 1,114 | package LeetCode;
/*
给定一个字符串S,检查是否能重新排布其中的字母,使得两相邻的字符不同。
若可行,输出任意可行的结果。若不可行,返回空字符串。
示例 1:
输入: S = "aab"
输出: "aba"
示例 2:
输入: S = "aaab"
输出: ""
注意:
S 只包含小写字母并且长度在[1, 500]区间内。
*/
public class Solution767 {
public String reorganizeString(String S) {
StringBuilder res = new StringBuilder();
int[] w... | 20.62963 | 48 | 0.409336 |
6e7a006834071240fab68af5acd13fa7b61b37af | 1,297 | package com.dalma.fibrew.orm.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* The p... | 24.471698 | 82 | 0.767926 |
9661283c23bf0c45b4ddee103ff0d18562d78706 | 1,182 | /*
* Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.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 requ... | 31.945946 | 80 | 0.732657 |
b3bff4fe5f7176e935867370a96510fd93a22f28 | 4,527 | package cn.myperf4j.base.metric;
import cn.myperf4j.base.util.NumUtils;
/**
* Created by LinShunkang on 2018/8/19
* <p>
* 注意:以下成员变量的单位都是 KB
*/
public class JvmMemoryMetrics extends Metrics {
private static final long serialVersionUID = -1501873958253505089L;
private final long heapUsed;
private fina... | 28.651899 | 71 | 0.57389 |
76f5f9503d158d068a1a10c16e33c87979138a37 | 309 | // HIERARCHY
/* A static method must not hide an instance method,
* but a new method with the same name may be defined. */
public class Main extends foo{
public Main(){}
public static int bar(String s){
return 123;
}
public static int test(){
return Main.bar("Hello World!");
}
}
| 16.263158 | 57 | 0.647249 |
a59fb354cd725c8abfc13b88a19f6c73fab1e10e | 1,799 | /*
* 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... | 47.342105 | 150 | 0.821568 |
83b32c5ef1a0822fc38400b720d9ff0d45347b17 | 425 | package net.energy.queue;
/**
* 任务直销结果,包含是否完成信息,以及方法执行的返回值
*
* @author wuqh
*
* @param <T>
*/
public class TaskResult<T> {
private T result;
private boolean done;
public T getResult() {
return result;
}
public void setResult(T result) {
this.result = result;
}
public boolean i... | 13.28125 | 37 | 0.597647 |
17156f8fb60b97a63535253ff7f0ffcec9d17b96 | 3,117 | package com.appland.appmap.record;
import com.alibaba.fastjson.JSON;
import com.appland.appmap.output.v1.Event;
import org.apache.commons.lang3.StringUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
i... | 28.861111 | 95 | 0.688803 |
d45c414e5483df20afe6109946ce9206bea93fd0 | 408 | package edu.csuft.andromeda;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("edu.csuft.andromeda.mapper")
public class AndromedaApplication {
public static voi... | 27.2 | 68 | 0.82598 |
4cb122135949e4ab9162d590cfa4498b2c9aa47d | 771 | //
// Generated by JTB 1.3.2
//
package syntaxtree;
/**
* Grammar production:
* f0 -> OmpPragma()
* f1 -> ParallelDirective()
* f2 -> Statement()
*/
public class ParallelConstruct implements Node {
public OmpPragma f0;
public ParallelDirective f1;
public Statement f2;
public ParallelConstruct(OmpPra... | 20.289474 | 79 | 0.623865 |
719a225e469a3aeaa611a240cd77a8daa0e11114 | 756 | /*
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.integrations.destination.gcs.writer;
import com.amazonaws.services.s3.AmazonS3;
import io.airbyte.integrations.destination.gcs.GcsDestinationConfig;
import io.airbyte.integrations.destination.s3.writer.DestinationFileWriter;
import io... | 30.24 | 83 | 0.755291 |
4bed412a11120037f2612fb2209f6a45e893d85b | 7,553 | package module3;
//Java utilities libraries
import de.fhpotsdam.unfolding.UnfoldingMap;
import de.fhpotsdam.unfolding.data.PointFeature;
import de.fhpotsdam.unfolding.geo.Location;
import de.fhpotsdam.unfolding.marker.Marker;
import de.fhpotsdam.unfolding.marker.SimplePointMarker;
import de.fhpotsdam.unfolding.provide... | 38.733333 | 110 | 0.643188 |
18a3242d836583727fb683c13438194ca245a714 | 563 | package io.quarkus.registry.client;
/**
* Implements the basic queries a registry client is supposed to handle.
* Although there are only a few kinds of queries, a registry is not required to support
* all of them. For example, a registry may be configured to only provide platform extensions or
* the other way aro... | 46.916667 | 114 | 0.801066 |
0ce83732f1d011d0cb9dc070fbd3a35bb39cc4be | 1,894 | package com.github.badoualy.telegram.tl.api;
import com.github.badoualy.telegram.tl.core.TLObject;
/**
* Abstraction level for the following constructors:
* <ul>
* <li>{@link TLPageBlockAnchor}: pageBlockAnchor#ce0d37b0</li>
* <li>{@link TLPageBlockAuthorDate}: pageBlockAuthorDate#baafe5e0</li>
* <li>{@link TLPa... | 47.35 | 95 | 0.751848 |
9cdf2d5095339f906447cfbd2bffc099be5e8935 | 1,053 | package org.spongepowered.tools.obfuscation.interfaces;
import java.util.Collection;
import org.spongepowered.asm.mixin.injection.struct.MemberInfo;
import org.spongepowered.asm.obfuscation.mapping.common.MappingField;
import org.spongepowered.asm.obfuscation.mapping.common.MappingMethod;
import org.spongepowered.tool... | 35.1 | 85 | 0.837607 |
447112ddd76845ab67ac56b4776230ed2fb6373c | 3,915 | package org.ooc.frontend;
/**
* Contain the online (rather inline) help of the ooc compiler
*
* @author Amos Wenger
*/
public class Help {
/**
* Print a helpful help message that helps.
*/
public static void printHelp() {
System.out.println("Usage: ooc [options] files\n");
System.out.println(
"-v, -ve... | 39.94898 | 97 | 0.563985 |
b4280ed1a5652602f9730080e8914352c9705f05 | 224 | package de.adesso.budgeteer.core.budget.port.out;
import de.adesso.budgeteer.core.budget.domain.Budget;
import java.util.Optional;
public interface GetBudgetByIdPort {
Optional<Budget> getBudgetById(long budgetId);
}
| 22.4 | 53 | 0.799107 |
347eaf7f0a7e524efc31221f88220cbe39b76560 | 13,432 | package com.uniclau.simplefile;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONExc... | 27.694845 | 130 | 0.63654 |
9eb33c8d30c8a1861c39aa149f82725fe39a5167 | 1,318 | /**
* A variable definition.
* @param modifiers variable modifiers
* @param name variable name
* @param vartype type of the variable
* @param init variables initial value
* @param sym symbol
*/
public static class JCVariableDecl extends JCStatement implements VariableTree {
... | 32.146341 | 84 | 0.584219 |
581ab2b392ac3fdbc0d7b4855f684ded36bff7f1 | 120 | /**
* Rabbitmq Queue Consumer(Listener) related classes
*/
package io.github.ykalay.rabbitmqtunnel.rabbitmq.listener;
| 24 | 58 | 0.783333 |
7b2f6dbc6f198e68b4dc16e9d7a41b049f2c01e0 | 545 | package plusmul;
import java.util.Scanner;
public class PM {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int 값;
System.out.println("2 이상의 정수를 입력하시오.");
값=sc.nextInt();
int i;
int 합=0;
if(값<10) {
if(값>1) {
for(i=1;i<=9;i++)
System.out... | 12.97619 | 58 | 0.488073 |
856e5f73fa8b764f9176c11e38aa11c3b4f2b91b | 2,358 | /*
* Copyright 2014-2017 Rudy De Busscher (www.c4j.be)
*
* 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 appli... | 23.346535 | 87 | 0.620441 |
fa4f8fdf23473b8cf85c6489d945be3c7e923e71 | 4,139 | /*
* Copyright 2018 LINE Corporation
*
* LINE Corporation 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 26.363057 | 78 | 0.595313 |
d8e8f18b6699adbd1d55d57e0063e5ec28bee071 | 188 | package com.github.jeasyrest.core;
import java.io.IOException;
import java.io.Reader;
public interface IUnmarshaller<T> {
T unmarshall(Reader reader) throws IOException;
}
| 17.090909 | 55 | 0.739362 |
700c12eff8f57d96f1b50b487b84082537a9d1fd | 25,620 | /**
*
* Copyright 2015-2021 Florian Schmaus
*
* 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 ... | 36.652361 | 148 | 0.649766 |
811293feb334f2f694b9678d0268cb0d6bfc3794 | 965 | package com.coding.problems;
/**
* Write a function to find the longest common prefix string amongst an array of strings.
* <p>
* If there is no common prefix, return an empty string "".
*/
public class LongestCommonPrefix {
public String longestCommonPrefix(String[] strs) {
if(strs.length < 1){
... | 26.805556 | 89 | 0.529534 |
4fc9b2002fe0b16f68372a71384a5b54d9dbb2d0 | 1,162 | package com.tomaskostadinov.weatherapp.helper;
import org.json.JSONArray;
import org.json.JSONObject;
/**
* Created by Tomas on 03.06.2015.
*/
public class WeatherForecastHelper {
JSONObject reader, main;
JSONArray weather;
private JSONArray list;
public Integer date, temp, weather_id;
public ... | 25.822222 | 63 | 0.606713 |
4bd3530ee11948e561d19543280a1be50448a4a2 | 1,656 | package com.github.penfeizhou.animation.webp;
import android.content.Context;
import com.github.penfeizhou.animation.FrameAnimationDrawable;
import com.github.penfeizhou.animation.decode.FrameSeqDecoder;
import com.github.penfeizhou.animation.loader.AssetStreamLoader;
import com.github.penfeizhou.animation.loader.Fi... | 34.5 | 111 | 0.768116 |
2f9fd8301dcf4cbd211da77d3b5eb92b4ca18d45 | 864 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.netapp.v2020_07_01;
import com.microsoft.azure.a... | 32 | 118 | 0.784722 |
47015d957ea16559a3698aaa07689d3d83077c78 | 1,431 | /*
* Copyright (C) 2014 Siegenthaler Solutions.
*
* 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 ... | 33.27907 | 115 | 0.728861 |
10ff8111ef5cf654d29af8c80d93c635b9d961fa | 21,549 | /*
* 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.751592 | 160 | 0.68857 |
7c8b73080aec530aba472f5983b35ab117e17493 | 435 | package io.agora.openvcall;
/**
* Create by xjs
* _______date : 17/5/18
* _______description:
*/
public class AppConfig {
//public static final String HOST = "http://api.pingqulive.ping-qu.com";
//public static final String HOST = "http://api.ping-qu.com";
public static final String HOST = "http://10... | 21.75 | 76 | 0.643678 |
3981e688281bf9bae9b2caed118854f5c744ac60 | 182 | /**
* User: Pedro.Miranda
* Project: agenda
* Description: this class execute...!
* Date: 16/12/2020
*/
package br.com.phmiranda.domain;
public class Agenda {
// comment
}
| 15.166667 | 38 | 0.653846 |
932054c979052bbae639d09bdeca80ca9a724a63 | 842 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author ilisi
*/
/* ogretmen.java : Çocuk sınıf bildirimi */
public class ogretmen extends personel {
public ... | 25.515152 | 88 | 0.649644 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.