blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
54c24b67084513c60471d538afa2db38d6d8731a | Java | tick3tpy0/myProject | /AlgorithmTest/src/findChar.java | UTF-8 | 1,765 | 3.15625 | 3 | [] | no_license |
/*
[sample input]
5 3 JCA
JCEGE
IAWEJ
GWEAQ
ZXCJM
IEOPW
[output]
2
*/
import java.util.Scanner;
public class findChar {
static int N, M;
static char[][] map = new char[21][21];
static int[][] visited = new int[21][21];
static char[] word;
static int dx[] = { -1, -1, -1, 0, 0, 1, 1, 1 };
stat... | true |
994c2d44b4227ae33f415b350630dc1f845e76e5 | Java | zyLear/graduation-project | /internalcontrol-admin/src/main/java/com/zylear/internalcontrol/admin/bean/ProjectViewBean.java | UTF-8 | 3,552 | 1.828125 | 2 | [] | no_license | package com.zylear.internalcontrol.admin.bean;
import java.util.Date;
import java.util.List;
/**
* Created by xiezongyu on 2018/4/22.
*/
public class ProjectViewBean {
private Integer id;
private String projectNumber;
private String projectName;
private String applicant;
private String appl... | true |
bcdf8d31a011223f886a1fd34b1f85421b7860e0 | Java | 2017-D17/gestion-du-transport-backend | /src/main/java/gdp/api/controller/ReservVehiculeController.java | UTF-8 | 3,470 | 2.265625 | 2 | [] | no_license | package gdp.api.controller;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.... | true |
42ea5bb2a61845feaffa0802b84d4f3ba8a417c7 | Java | d3cod3/HybridPlayGameSkeleton | /android/android/src/com/hybridplay/game/android/HP_Credits.java | UTF-8 | 295 | 1.664063 | 2 | [
"MIT"
] | permissive | package com.hybridplay.game.android;
import android.os.Bundle;
public class HP_Credits extends HP_Drawer {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_hp_credits);
updateSelectedItem(3);
}
}
| true |
52326cd24a4893bcf63dbc7b35aaf61e0b58a735 | Java | RajaramRawool/JavaLearning | /src/javacourse/codingexercises/AreaCalculator.java | UTF-8 | 615 | 3.21875 | 3 | [] | no_license | package javacourse.codingexercises;
import javacourse.constants.CourseConstants;
public class AreaCalculator {
public static double area(double radius) {
if (radius < 0) {
System.out.println(CourseConstants.INVALID_VALUE_MESSAGE);
return -1;
} else {
return Cour... | true |
5d7be52945153450878e3bd3c17c99f33fcc962b | Java | guerwan/GreenDroid | /GreenDroid/src/greendroid/widget/LoaderActionBarItem.java | UTF-8 | 2,712 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2010 Cyril Mottier (http://www.cyrilmottier.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 req... | true |
bd17a0b002e2892f37525d9e0d68bb0d09eda4d7 | Java | ShawnYue08/Leetcode | /java/recall/01_WordSearch.java | UTF-8 | 1,635 | 3.5625 | 4 | [] | no_license | public class 01_WordSearch {
int n, m;
int[] dx = {-1, 0, 1, 0}, dy = {0, -1, 0, 1}; //上 左 下 右
public boolean exist(char[][] board, String word) {
//判断边界,行=0或者列=0;
if(board.length == 0 || board[0].length == 0) { return false; }
n = board.length; m = board[0].length;
//枚举起点;
... | true |
3489a53ccc85264f63971a627807b69807198fce | Java | mooseIre/arsc_compare | /MiuiSystemUI/raphael/systemui/statusbar/notification/AboveShelfChangedListener.java | UTF-8 | 147 | 1.554688 | 2 | [] | no_license | package com.android.systemui.statusbar.notification;
public interface AboveShelfChangedListener {
void onAboveShelfStateChanged(boolean z);
}
| true |
cfbd1b9086b81ce5ddd25218785ced2ad66bef6d | Java | oatpava/px-service | /src/main/java/com/px/share/model/LogDataModel_report.java | UTF-8 | 997 | 1.757813 | 2 | [] | no_license |
package com.px.share.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.Since;
import io.swagger.annotations.ApiModel;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author Mali
*/
@XmlRootElement(name = "LogDataModel_report... | true |
429ead4aa920517aa88316dcf806c6ae68b088f9 | Java | Nitrofyyy/SeaClientSourcev2.1 | /net/minecraft/stats/ObjectiveStat.java | UTF-8 | 335 | 1.765625 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.36
//
package net.minecraft.stats;
import net.minecraft.scoreboard.ScoreDummyCriteria;
public class ObjectiveStat extends ScoreDummyCriteria
{
private final StatBase stat;
public ObjectiveStat(final StatBase statIn) {
super(statIn.statId);
this.stat = s... | true |
601bd10397637c8950767e4636ec53a4af635a0f | Java | meizhu812/tw-theater-combo | /movie-db-parser/src/main/java/MovieRaw.java | UTF-8 | 643 | 1.921875 | 2 | [] | no_license | import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MovieRaw {
private int id;
private String title;
@JsonProperty("original_title... | true |
89ec91d4761bd7e324dd603f156e4a7a7ee65617 | Java | arkwl/yodlejugglepuzzle | /yodlejuggler/src/yodlejuggler/Juggler.java | UTF-8 | 147 | 2.25 | 2 | [] | no_license | package yodlejuggler;
public class Juggler {
int h, e, p;
public Juggler(int h, int e, int p){
this.h = h;
this.e = e;
this.p = p;
}
}
| true |
dc903e842da8252940e9121abf0d3aabc7985281 | Java | greatypine/GASM | /src/com/cnpc/pms/platform/entity/Order.java | UTF-8 | 11,711 | 1.90625 | 2 | [] | no_license | package com.cnpc.pms.platform.entity;
import com.cnpc.pms.base.entity.AlternativeDS;
import com.cnpc.pms.base.entity.OptLockEntity;
import javax.persistence.*;
import java.util.Date;
/**
*
* Created by liuxi on 2016/12/19.
*/
@Entity
@Table(name = "t_order")
@AlternativeDS(source = "APP")
public ... | true |
89562f05989ab3fb3d83a17d499b0d706c421926 | Java | mayankit/Algorithm1 | /src/main/java/com/mayank/algorithm1/week2/ShellSort.java | UTF-8 | 1,733 | 3.859375 | 4 | [] | no_license | package com.mayank.algorithm1.week2;
import java.util.ArrayList;
import java.util.List;
/**
* This is also called as h-sort. I am using 3x+1 based h sort algorithm in this
*/
public class ShellSort {
public static void main(String[] args) {
Integer[] arr = {7, 10, 5, 3, 8, 4, 2, 9, 6};
ShellSo... | true |
4e6a689869b17a97cf222b1b6a8ffb57ae30faed | Java | antomy-gc/art-java | /application-configurator/src/main/java/ru/art/configurator/provider/ModulesConnectionParametersProvider.java | UTF-8 | 2,442 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* ART Java
*
* Copyright 2019 ART
*
* 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 agr... | true |
71fc9326bca6e9b8ad6efeb8fa9cf46e17683495 | Java | heichen/oa-system | /forestoa/src/main/java/com/gxzn/forestoa/modules/document/dao/DocumentSendTaskMapper.java | UTF-8 | 1,755 | 2.0625 | 2 | [] | no_license | package com.gxzn.forestoa.modules.document.dao;
import java.util.List;
import java.util.Map;
import com.gxzn.forestoa.modules.document.entity.DocumentSendTask;
/**
* 公文发文任务dao
*
* @author HaiTao
*
*/
public interface DocumentSendTaskMapper {
/**
* 保存发文任务
*
* @param sendTask
* @return
*/
Long saveS... | true |
2a1280f46a1bad9db24d1b010a6346428620af3f | Java | jdelmazo9/dds-tp-gesoc | /tp2020/src/test/java/grupo6/dominio/CriterioTest.java | UTF-8 | 2,711 | 2.671875 | 3 | [] | no_license | package grupo6.dominio;
import grupo6.dominio.entidades.Categoria;
import grupo6.dominio.entidades.Criterio;
import grupo6.dominio.entidades.OperacionDeEgreso;
import grupo6.dominio.entidades.OperacionDeIngreso;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter... | true |
5b4ee2a93a4547d0ef9a56bdcd2be94aac6a2169 | Java | suchaos/zookeeper-learn | /src/main/java/com/suchaos/nativeAPI/create/ZookeeperCreateSync.java | UTF-8 | 1,378 | 2.78125 | 3 | [] | no_license | package com.suchaos.nativeAPI.create;
import org.apache.zookeeper.*;
import java.io.IOException;
import java.util.concurrent.CountDownLatch;
/**
* 使用同步 API 创建一个结点
*
* @author suchao
* @date 2020/2/4
*/
public class ZookeeperCreateSync implements Watcher {
private static CountDownLatch latch = new CountDown... | true |
339961057ce6e5a51f5dadc55d909762c7b01043 | Java | cekkaewnumchai/CS509_Individual | /src/cekkaewnumchai/calendar/controller/CalendarController.java | UTF-8 | 813 | 2.3125 | 2 | [
"MIT"
] | permissive | package cekkaewnumchai.calendar.controller;
import java.util.Iterator;
import javax.swing.DefaultListModel;
import cekkaewnumchai.calendar.model.CalendarManagementSystem;
import cekkaewnumchai.calendar.view.MainPage;
public abstract class CalendarController {
CalendarManagementSystem cms;
MainPage main... | true |
98b9017180a90659fab5c6a6011abbeb52f761ac | Java | designreuse/Logiweb-1 | /persistence/src/main/java/com/tsystems/javaschool/logiweb/dao/DeliveryOrderDao.java | UTF-8 | 259 | 1.734375 | 2 | [] | no_license | package com.tsystems.javaschool.logiweb.dao;
import com.tsystems.javaschool.logiweb.entities.DeliveryOrder;
/**
* CRUD operations for Drlivery Order entity.
*
* @author Andrey Baliushin
*/
public interface DeliveryOrderDao extends GenericDao<DeliveryOrder> {
}
| true |
1d4d9b6df2defe9daa7b1fa55bb9587923ef7ad5 | Java | frictionlessdata/tableschema-java | /src/test/java/io/frictionlessdata/tableschema/table_tests/TableIterationTest.java | UTF-8 | 10,866 | 2.578125 | 3 | [
"MIT"
] | permissive | package io.frictionlessdata.tableschema.table_tests;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.frictionlessdata.tableschema.Table;
import io.frictionlessdata.tableschema.tabledatasource.TableDataSource;
import io.frictionlessdata.tableschema.field.*;
... | true |
ff4ce3569f91a6b81521cc724c26a8dae4fd4f55 | Java | danielcorrea96/Microservicios | /Microservice - Ofertas/src/main/java/io/swagger/api/ListarApiController.java | UTF-8 | 12,088 | 1.953125 | 2 | [] | no_license | package io.swagger.api;
import io.swagger.model.JsonApiBodyRequest;
import io.swagger.model.JsonApiBodyResponseErrors;
import io.swagger.model.JsonApiBodyResponseSuccess;
import io.swagger.model.OfertasRequest;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.repository.api.UserRepository;
import io.swa... | true |
e1c8b099be2b888ee52a7898ef3d88857f9b8d29 | Java | borigor/tp_2014_02_java_borodin | /src/main/java/db/UserDataSet.java | UTF-8 | 582 | 2.40625 | 2 | [] | no_license | package db;
/**
* Created by igor on 5/21/14.
*/
public class UserDataSet {
private Long id;
private String login;
private String passd;
public UserDataSet(Long id, String login, String passd) {
this.id = id;
this.login = login;
this.passd = passd;
}
public UserDataS... | true |
d6f33a8dc6ec9f428ad6303211aa87966c8ba63e | Java | ahmadjury/java-stack | /Java spring/Counter/src/main/java/com/example/demo/Counter.java | UTF-8 | 752 | 2.234375 | 2 | [] | no_license | package com.example.demo;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class Counter {
@RequestMapping("")
public String homepage(HttpSession session) {
Integer count = (Integer) ses... | true |
4140074f518b787cceff8586d704349a17a0519a | Java | colorfulbinary/cosmos | /cosmos-parent/cosmos-workflow/src/main/java/com/cosmos/workflow/activities/sequence/logic/LogicActivity.java | UTF-8 | 702 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.cosmos.workflow.activities.sequence.logic;
import com.cosmos.workflow.activities.IClean;
import com.cosmos.workflow.activities.sequence.SQActivity;
public abstract class LogicActivity extends SQActivity implements IClean{
private static final long serialVersionUID = -4949604993241336889L;
private b... | true |
e254dd353b7d7ee3f5cbdae7acb9f8b0abf16ebb | Java | rajpatel123/Highway | /app/src/main/java/com/highway/customer/customerModelClass/bookingVehicleList/VehicleData.java | UTF-8 | 511 | 2.15625 | 2 | [] | no_license |
package com.highway.customer.customerModelClass.bookingVehicleList;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class VehicleData {
@SerializedName("vehicle_list")
@Expose
private List<VehicleList> vehicleList = null;
p... | true |
93cd5af833d4bb5ce9b5a572ffca12cd2343ef06 | Java | VulcanXE/MyJavaPractices | /Mounika/src/JavaPrograms/Sample5.java | UTF-8 | 1,326 | 3.453125 | 3 | [] | no_license | public class Sample5
{
int l = 95;
final int a = 85; // value is a final value, final is a keyword
final int abc; //blank final value, not assigned any value
static final int x;//For constant we use both static and final,
//because for static memory allocates only once, final not changle anywhere.
... | true |
eaf7ecd45b7302e48b3e22ea392dddf6bf5d1930 | Java | Amelie1992/maomi | /src/com/xed/financing/wxgzh/controller/bondtransfer/BondTransferController.java | UTF-8 | 5,868 | 2.390625 | 2 | [] | no_license | /**
* Copyright (C) 2017 FZJT Co. Ltd.
*
*
* @className:com.xed.financing.wxgzh.controller.bondtransfer.BondTransferController
* @description:
*
* @version:v1.0.0
* @author:ZhangJun
*
* Modification History:
* Date Author Version Description
* --------------------------------... | true |
c3c7dfe6e389dc03261bcfe75fd2f79699b2991b | Java | fracz/refactor-extractor | /results-java/JetBrains--intellij-community/316bf2832c2600d012d25336f142a0eb07de8751/before/DTDParserDefinition.java | UTF-8 | 950 | 1.695313 | 2 | [] | no_license | package com.intellij.lang.dtd;
import com.intellij.lang.ASTNode;
import com.intellij.lang.LanguageUtil;
import com.intellij.lang.xml.XMLParserDefinition;
import com.intellij.lexer.OldXmlLexer;
import com.intellij.psi.FileViewProvider;
import com.intellij.psi.PsiFile;
import com.intellij.psi.impl.source.xml.XmlFileImpl... | true |
5b70dc6287a3cbe122b773515df0c9bb29d4ebba | Java | INAETICS/Drones-Simulator | /implementation/visualisation/src/main/java/org/inaetics/dronessimulator/visualisation/messagehandlers/GameFinishedHandler.java | UTF-8 | 1,430 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | package org.inaetics.dronessimulator.visualisation.messagehandlers;
import javafx.application.Platform;
import javafx.scene.control.Alert;
import javafx.scene.layout.Region;
import javafx.stage.StageStyle;
import org.inaetics.dronessimulator.common.protocol.GameFinishedMessage;
import org.inaetics.dronessimulator.pubs... | true |
72e4ffb18dbf80e8d22a9a96b2aaafb9cf86a03b | Java | DeFranco13/GameOfLife | /view/SimPresenter.java | UTF-8 | 5,571 | 2.546875 | 3 | [] | no_license | package GameOfLife.view;
import GameOfLife.model.GOLModel;
import GameOfLife.loadSave;
import javafx.animation.Animation;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.canva... | true |
9ba5925471fc13acbbb03b2647356cf8bf804589 | Java | pasquatch913/task-tracker | /src/main/java/tracker/task/subscription/SubscriptionCompletionService.java | UTF-8 | 1,325 | 2.1875 | 2 | [] | no_license | package tracker.task.subscription;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tracker.task.analytics.TaskCompletionEntity;
import java.time.LocalDateTime;
@Service
public class SubscriptionCompletionService {
@Autowired
TaskInstanceRe... | true |
09bd0a65a4d7212fa9172a4ec3aac0ee217b2106 | Java | webf2e/rbp | /main_client/src/main/java/com/rbp/main/client/util/MessageUtil.java | UTF-8 | 1,465 | 2.40625 | 2 | [] | no_license | package com.rbp.main.client.util;
import com.rbp.main.client.bean.Message;
import java.net.URLDecoder;
import java.text.SimpleDateFormat;
/**
* Created by liuwenbin on 2017/9/17.
*/
public class MessageUtil {
private static SimpleDateFormat dateTimeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
pu... | true |
e076a8b7a1e5f36f450afa09053e3dee34101444 | Java | kurohieu/Flavours | /src/main/java/application/controller/web/CartController.java | UTF-8 | 1,503 | 2.03125 | 2 | [] | no_license | package application.controller.web;
import application.data.service.CartService;
import application.model.viewmodel.cart.CartVM;
import application.model.viewmodel.common.ProductVM;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.A... | true |
4b19a0d37b139aaf134dc07e32b9b80f9c90a428 | Java | apache/jena | /jena-tdb1/src/main/java/org/apache/jena/tdb/sys/TDBInternal.java | UTF-8 | 8,184 | 1.875 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | /**
* 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... | true |
dc883339e04bed293b106df3546ca6ac13a3f031 | Java | pendelhaven3/magic | /src/main/java/com/pj/magic/service/impl/ProductPriceServiceImpl.java | UTF-8 | 734 | 1.96875 | 2 | [] | no_license | package com.pj.magic.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pj.magic.dao.ProductPriceHistoryDao;
import com.pj.magic.model.ProductPriceHistory;
import com.pj.magic.model.search.ProductPrice... | true |
8f377e4de809f844054374a3638eb1bc0825477e | Java | michalfuhrmann/work-assignment-x | /src/main/java/com/mfuhrmann/coffee/corner/products/ProductType.java | UTF-8 | 102 | 1.585938 | 2 | [] | no_license | package com.mfuhrmann.coffee.corner.products;
public enum ProductType {
BEVERAGE, SNACK, EXTRA
}
| true |
34dac55709efe2b5a52738866f99d372f375f4e1 | Java | jamesdong1120/new_platform | /src/com/pccw/bedc/service/impl/BciBankTransServiceImpl.java | UTF-8 | 3,288 | 2.25 | 2 | [] | no_license | package com.pccw.bedc.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pccw.bedc.dao.BciBankTransMapper;
import com.pccw.bedc.model.BciBank;
import com.pccw.bedc.model.BciBankTrans;
impo... | true |
a587ab7adb306f820329982e3da0b2cd70790795 | Java | jonthejon/PopularMovies | /app/src/main/java/jonathanoliveira/org/popularmovies/ui/helpers/GridAdapter_Interface.java | UTF-8 | 459 | 2.171875 | 2 | [] | no_license | package jonathanoliveira.org.popularmovies.ui.helpers;
import android.content.Context;
import jonathanoliveira.org.popularmovies.core.beans.Movie;
/**
* Created by JonathanOliveira on 07/03/17.
*/
public interface GridAdapter_Interface {
Movie getAdapterDataSingleItem(int position);
void notifyAdapterFo... | true |
1fcc57bf0c9671d2961d35d148044411cc37d269 | Java | IrynaFomina/HomeWorks | /src/hw/hw3/shop/Seller.java | UTF-8 | 440 | 2.75 | 3 | [] | no_license | package hw.hw3.shop;
public class Seller {
private String sellerName;
private Product productList[];
private Double account = 0D;
public Seller(String sellerName, Product[] productList) {
this.sellerName = sellerName;
this.productList = productList;
}
public void setAccount(Do... | true |
92f97da84dcca1f64675da653673e3c7db75f1bc | Java | ZhangShao28/dev-tool | /code/code-interface/src/main/java/cn/moonnow/code/persistent/IVirtualColumnsPersistent.java | UTF-8 | 2,705 | 2.140625 | 2 | [] | no_license | package cn.moonnow.code.persistent;
import java.util.Collection;
import cn.moonnow.code.entity.VirtualColumns;
import cn.moonnow.code.query.VirtualColumnsQuery;
import cn.moonnow.code.vo.VirtualColumnsVO;
import cn.moonnow.tool.util.Paging;
import cn.moonnow.tool.util.Param;
/**
* 虚拟列 持久化接口
*/
public interface IVi... | true |
e6e886b0233b616cb287111b7555228bd3c82de4 | Java | AnudeepJ/mvp_learn | /app/src/main/java/assignment/com/dagger2learning/GitFetchPresenter.java | UTF-8 | 327 | 1.515625 | 2 | [] | no_license | package assignment.com.dagger2learning;
/**
* Created by anudeep on 16/08/17.
*/
public class GitFetchPresenter implements GithubPresenter {
@Override
public void loadRepositries() {
}
@Override
public void attachView(GithubView view) {
}
@Override
public void detachView() {
... | true |
efaab35ad84728305b87abb8c4363fe460504637 | Java | lzdujing/afresco-webapp | /share-po/src/main/java/org/alfresco/po/thirdparty/firefox/RssFeedPage.java | UTF-8 | 6,280 | 1.78125 | 2 | [] | no_license | /*
* #%L
* share-po
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following ... | true |
13de23795e0e41c6b384598f7a3834797b15a5fd | Java | thannhatttruong/HanaShop | /HanaShop_Struts2_1/src/java/truongtn/menu/MenuService.java | UTF-8 | 7,786 | 2.390625 | 2 | [] | no_license | /*
* 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 truongtn.menu;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import ja... | true |
6886907cd7c03a7548246458f7b6f778ec808dcc | Java | WellingtonGAlves/TripCuritiba | /app/src/main/java/com/example/wellclbo/tripcuritiba/Util.java | UTF-8 | 11,423 | 2.3125 | 2 | [] | no_license | package com.example.wellclbo.tripcuritiba;
import android.app.ProgressDialog;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReade... | true |
1beb035c66c76981c9c4af3e09b80e012ca5f311 | Java | JiminWen/LeetcodePractice | /143. Reorder List.java | UTF-8 | 883 | 3.0625 | 3 | [] | no_license | /**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
public class Solution {
public void reorderList(ListNode head) {
if(head==null||head.next==null) return;
ListNode slow=head,fast=head.next;
while(fast.n... | true |
e0b5d9cc7ff3ec3fbf13c3dde5a9d9245f14db52 | Java | mrsvan/frimgle | /src/main/java/mobi/nuuvo/frimgle/client/application/widget/campaignlist/CampaignListUiHandlers.java | UTF-8 | 221 | 1.632813 | 2 | [] | no_license | package mobi.nuuvo.frimgle.client.application.widget.campaignlist;
import com.gwtplatform.mvp.client.UiHandlers;
public interface CampaignListUiHandlers extends UiHandlers {
void createCampaign(String campaignName);
}
| true |
503c7eebcfc41690bc1ba55dadbe51d1a2ec2308 | Java | Donobuz/CSCI4050_TermProject_CovidWebsite | /src/main/java/com/CSCI4050/TermProject/CovidWebsite/entities/RequestEntity.java | UTF-8 | 1,196 | 2.25 | 2 | [] | no_license | package com.CSCI4050.TermProject.CovidWebsite.entities;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
@Entity(name="request")
public class RequestEntity {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private int amount;
private Date date;
p... | true |
28b14e51a3b336d6d4d276c06e1b2c043ef8ce65 | Java | Taher-Ghaleb/FlakeFlagger | /flakiness-predicter/input_data/original_tests/wildfly-wildfly/nonFlakyMethods/org.wildfly.clustering.web.infinispan.session.InfinispanSessionFactoryTestCase-getMetaDataFactory.java | UTF-8 | 112 | 1.695313 | 2 | [
"BSD-3-Clause"
] | permissive | @Test public void getMetaDataFactory(){
assertSame(this.metaDataFactory,this.factory.getMetaDataFactory());
}
| true |
796ddc091ed478d7974484cde1b522dace3b1c18 | Java | RuaOux/git-test | /Advanced/src/Exception/Demo01Exception.java | UTF-8 | 2,044 | 3.203125 | 3 | [] | no_license | /*
* Copyright (c) 2020. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagi... | true |
b62ad7baf9aee129e7ff6de59bdb1485f382a2e2 | Java | mcallistergj/BufferManager | /src/BufMgrTester.java | UTF-8 | 1,903 | 3.484375 | 3 | [] | no_license | import java.util.*;
import java.io.*;
public class BufMgrTester {
public static void main(String[] args) {
int length;
if(args.length > 0){
try{
length = Integer.parseInt(args[0]);
BufMgr mgr = new BufMgr(length);
menu(mgr);
}
catch(InputMismatchException e){
System.out.println("Inp... | true |
db156793bb1cf06ff72048beef07a393ba256e2b | Java | supersonictan/iterview | /leetcode-vs/673.最长递增子序列的个数.java | UTF-8 | 1,788 | 3.34375 | 3 | [] | no_license | /*
* @lc app=leetcode.cn id=673 lang=java
*
* [673] 最长递增子序列的个数
*
* https://leetcode-cn.com/problems/number-of-longest-increasing-subsequence/description/
*
* algorithms
* Medium (26.85%)
* Total Accepted: 824
* Total Submissions: 3.1K
* Testcase Example: '[1,3,5,4,7]'
*
* 给定一个未排序的整数数组,找到最长递增子序列的个数。
* ... | true |
533e5dda468f34e1b82caf13b0c37b9482d37d96 | Java | madhuri777/JavaPrograms | /FunctionalProgram/src/com/bridgeit/programs/Triplets.java | UTF-8 | 398 | 3.109375 | 3 | [] | no_license | package com.bridgeit.programs;
import com.bridgeit.utility.Utility;
public class Triplets {
public static void main(String[] args) {
Utility utility=new Utility();
System.out.println("enter number of elements:");
int n=utility.inputInteger();
int[] arr=new int[n];
for(int i=0;i<n;i++) {
arr[i]=utility.i... | true |
f2ae100ecff7d251d328096cb96914ecc751b98c | Java | snithakur/quora-app | /quora-api/src/main/java/com/upgrad/quora/api/controller/CommonController.java | UTF-8 | 1,461 | 2.21875 | 2 | [] | no_license | package com.upgrad.quora.api.controller;
import com.upgrad.quora.api.model.UserDetailsResponse;
import com.upgrad.quora.service.business.UserService;
import com.upgrad.quora.service.entity.UserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.... | true |
a07bb5fb1bfbe4e19533eecdf49a845213dbc1c1 | Java | lililinlin/GitTest | /Happy/src/main/java/com/study/springboot/service/MemberService.java | UTF-8 | 3,468 | 2.546875 | 3 | [] | no_license | package com.study.springboot.service;
import java.util.ArrayList;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.study.spri... | true |
9e96615acd05c2b17b5129b94499b2a952441e95 | Java | azamali12345/BridgeLabzPrograms | /dataStructure/PalindromeChecker.java | UTF-8 | 1,115 | 3.8125 | 4 | [] | no_license | package org.bridgelabz.dataStructure;
public class PalindromeChecker
{
public static void main(String args[])
{
int Og=0;
int Rev=0;
QueueLink<Character> ql=new QueueLink<Character>();
String InputString=Utility.getString();
char word[]=new char[20];//FIRST ARRAY...
char arr[]=new char[20];//SECOND ARRA... | true |
44bfa214c2dd0c8f0fbacb8bf266b3c54a177c28 | Java | 409a206/sopung | /src/com/kh/maskRush/minigame2/view/GamePanel.java | UTF-8 | 5,546 | 2.484375 | 2 | [] | no_license | package com.kh.maskRush.minigame2.view;
import java.awt.Color;
import java.awt.Image;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Random;
import... | true |
58ba24177bb3e643d3bd585a5c73c188d3c23afc | Java | stellanweadau/Remotes | /DripCoffeeMaker.java | UTF-8 | 2,416 | 3.6875 | 4 | [] | no_license | package io.github.oliviercailloux.samples.coffee;
/**
* <p>
* A <a href=
* "https://www.startpage.com/sp/search?query=drip+coffee+maker&cat=pics">drip
* coffee maker</a>. It uses a specific brand of coffee, which makes it able to
* produce coffee of any strength from 0 to 10. It takes a constant time of 2
* minu... | true |
1a8288508b7fc8798a58f4fc60abcff5515ff289 | Java | jameer-mulani/AndroidDemo | /AndroidDemoApp/App/src/main/java/com/android/test/task/event/OnApiErrorEvent.java | UTF-8 | 312 | 1.507813 | 2 | [
"Apache-2.0"
] | permissive | package com.android.test.task.event;
import com.android.test.dto.FoursquareApiErrorDto;
/**
* Created by Nicolas Jafelle on 11/28/14.
*/
public class OnApiErrorEvent {
public FoursquareApiErrorDto errorDto;
public OnApiErrorEvent(FoursquareApiErrorDto errorDto) {
this.errorDto = errorDto;
}
}... | true |
c4c6387c987179b7fb8f0ef9059837504cd10625 | Java | Pro-gramm/-dg-0-ge- | /Prog_1/src/com/game/user/Menu.java | UTF-8 | 10,850 | 2.40625 | 2 | [] | no_license | package com.game.user;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.util.Random;
import com.game.enemies.BasicEnemy;
import com.game.enemies.HardEnemy;
import co... | true |
554456348abc5f3286fa93fdb7c08841a6313c3d | Java | FilipKrat/webastoparts | /src/main/java/com/webasto/webastoparts/MaterialController.java | UTF-8 | 6,480 | 2.015625 | 2 | [] | no_license | /*
* 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.webasto.webastoparts;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.l... | true |
10b31c1382c6b982fd555a636765bfd08fab9890 | Java | binbinbear/RDA | /HorizonToolBox/src/main/java/com/vmware/horizontoolset/policy/polfile/BitUtil.java | UTF-8 | 2,882 | 2.78125 | 3 | [] | no_license | package com.vmware.horizontoolset.policy.polfile;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.Arrays;
public class BitUtil {
static final Charset ENCODING = Charset.forName("UTF-16LE");
public static boolean isLittleEndian() {
//ByteOrder b = ByteOrder.nativeOrder();
//retu... | true |
02c2fc3545ae7ffc8e7fa02f6b86e988cb1475cb | Java | KazumaKobayashi/fierce-escarpment-6843 | /src/main/java/com/example/service/UserServiceImpl.java | UTF-8 | 8,376 | 2.34375 | 2 | [] | no_license | package com.example.service;
import java.sql.Timestamp;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import org.apache.commons.lang3.StringUtils;
import ... | true |
bde36d4b66f648161f57647c765aa9d9550f7efd | Java | cugkuan/RichEditor | /app/src/main/java/com/cugkuan/editor/richeditor/htmledit/HtmlEditView.java | UTF-8 | 13,614 | 1.765625 | 2 | [] | no_license | package com.cugkuan.editor.richeditor.htmledit;
import android.content.Context;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
... | true |
a9673c6e4b096d81505a1f891f376a8ffba505cc | Java | winygit/hnatest | /hnagxotarest/src/com/hna/wjt/domin/SearchLowFareTripsRequest.java | UTF-8 | 967 | 2.21875 | 2 | [] | no_license | package com.hna.wjt.domin;
public class SearchLowFareTripsRequest {
private String leg;
private String traveler;
private String cabin;
private String promotion;
private boolean flexible;
public SearchLowFareTripsRequest(String leg, String traveler, String cabin) {
super();
this.leg = leg;
this.traveler = ... | true |
bee02ca062d54ef5ba86e7423ddecada183b067c | Java | v3921358/maple104 | /YIM/src/main/java/client/Skill.java | GB18030 | 19,314 | 1.984375 | 2 | [] | no_license | package client;
import constants.GameConstants;
import java.util.ArrayList;
import java.util.List;
import provider.MapleData;
import provider.MapleDataTool;
import server.MapleStatEffect;
import server.Randomizer;
import server.life.Element;
import tools.Pair;
public class Skill {
private String na... | true |
a946b5f810a9bfe25df9e7d1b4d3475f717402fc | Java | MrHurniak/url-shortener | /src/main/java/url/shortener/server/component/synonym/SynonymsSearchComponent.java | UTF-8 | 290 | 1.835938 | 2 | [] | no_license | package url.shortener.server.component.synonym;
import java.util.List;
import javax.validation.constraints.NotBlank;
public interface SynonymsSearchComponent {
boolean isSearchable(@NotBlank String alias);
List<String> retrieveSynonyms(@NotBlank String alias, int proposalCount);
}
| true |
66733e2f3f99c028aa7b643a38562c62fae390a0 | Java | liuying0209/farm-admin | /src/main/java/com/farm/admin/ShiroConfigure.java | UTF-8 | 3,863 | 1.773438 | 2 | [] | no_license | /*
* Copyright 2016 htouhui.com All right reserved. This software is the
* confidential and proprietary information of htouhui.com ("Confidential
* Information"). You shall not disclose such Confidential Information and shall
* use it only in accordance with the terms of the license agreement you entered
* into wi... | true |
feb9e596e43f3f60ab86576cc432743f1162cd94 | Java | code-zheng-cs/FoodManagerSystem | /model/src/Client.java | UTF-8 | 1,553 | 3.265625 | 3 | [] | no_license | abstract class Brand{
protected Pen pen;
public Brand(Pen pen){
super();
this.pen=pen;
}
public abstract void action(String msg);
}
abstract class Pen{
public abstract void write(String msg);
}
class DeLiPen extends Brand{
public DeLiPen(Pen pen){
super(pen);
}
@O... | true |
26298be46f63412d91377a0016ac42dfa6393bf1 | Java | C-maior-que-Java/Desktop | /Visual/Desktop/src/visual/tela/TelaFazerPedido.java | UTF-8 | 14,278 | 2.484375 | 2 | [] | no_license | package visual.tela;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import model.cardapio.Cardapio;
import model.produto.Produto;
import model.pedido.Pedido;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import model.clie... | true |
71c524b507905912284cd2e27da1a5ee3276207b | Java | Chandujava5/SpringBoot-CustomerApp | /CustomerApp/src/main/java/com/abc/customer/model/Customer.java | UTF-8 | 975 | 2.546875 | 3 | [] | no_license | package com.abc.customer.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Customer {
@Id
@Column
private int id;
@Column
private String cname;
@Column
private long phoneNo;
public Customer() {
super();
// TODO Aut... | true |
d9365d2428ce5320dd0a33bdeeed1b6bdccdb678 | Java | a-personal-account/thevixen | /src/main/java/thevixen/relics/ChoiceSpecs.java | UTF-8 | 2,109 | 2.21875 | 2 | [] | no_license | package thevixen.relics;
import basemod.abstracts.CustomRelic;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.utility.UseCardAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcr... | true |
f6f4add24e6e1037d355c6f55625c328b5485293 | Java | alanhala/2015-vn-group-8 | /src/main/java/grupo8/TPAnual/model/Commands/LogConsulta.java | UTF-8 | 1,360 | 2.21875 | 2 | [] | no_license | package grupo8.TPAnual.model.Commands;
import grupo8.TPAnual.model.Decorators.Filtro;
import grupo8.TPAnual.model.Dominio.Receta;
import grupo8.TPAnual.model.Dominio.Usuario;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
... | true |
a117a56d36ff9869d12aa84c1b346fe17d8227d0 | Java | athauanmarques/IFSP | /Trabalhos/POO/Trabalho - museu/ArtiumSystem/src/ArtiumSys/View/MainVisitanteUI.java | UTF-8 | 1,328 | 2.625 | 3 | [] | no_license | package ArtiumSys.View;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
public class MainVisitanteUI extends JFrame {
private JPanel contentPane;
/**
* L... | true |
ab63b8e7d109bae8529d299d61ccb70ecf35bc48 | Java | park-cheonho/Polytech_JAVA | /Poly_java_study/src/strategyPattern/Jimin_1005.java | UTF-8 | 114 | 1.820313 | 2 | [] | no_license | package strategyPattern;
public class Jimin_1005 extends BTS_1005{
public void ami(Strip_1005 strip) {
}
}
| true |
9572b8bbe1b7ca7596023d72344a507b8f6f9a15 | Java | zmyuanmy/daichao_yuanmy | /JbbXServer-next-mgt/mgt-restful/src/main/java/com/jbb/mgt/rs/action/integrate/UserContantAction.java | UTF-8 | 2,630 | 1.960938 | 2 | [] | no_license | package com.jbb.mgt.rs.action.integrate;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.Bea... | true |
95f4c63b68a6a1e486de2a1bacce59a2c330aa65 | Java | mihailojankov/PredmetniProjekat2020 | /SpringPart/src/main/java/springPart/repository/StudentRepository.java | UTF-8 | 491 | 2.140625 | 2 | [] | no_license | package springPart.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import springPart.model.korisnikPart.Student;
@Repository
public interface StudentRepository extends InheritInterface<Stu... | true |
d66a67b484668bcc28eeafd8b760f7855f0ee6a4 | Java | okanakdogan/GTU-Assignments | /Data Structures and Algorithms/HW04/cse222_hw4/src/cse222_hw4/Variable.java | UTF-8 | 747 | 2.828125 | 3 | [] | no_license | /*
* 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 cse222_hw4;
/**
* Variable class to use with List
* @author Okan
*/
public class Variable{
private String varN... | true |
fb4d219c8a12e68a824caf051b538caeeb9da451 | Java | zhongxingyu/Seer | /Diff-Raw-Data/4/4_d18bcb776d634c3ac0cef4238397121dc6503709/PbEntityListener/4_d18bcb776d634c3ac0cef4238397121dc6503709_PbEntityListener_s.java | UTF-8 | 1,306 | 2.75 | 3 | [] | no_license | package com.isitbroken.oddarrow;
import java.util.ArrayList;
import org.bukkit.Material;
import org.bukkit.entity.Arrow;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerListener;
import org.bukkit.inventory.ItemStack;
public class PbEntityListener extends PlayerL... | true |
86dbcb1209cc72b4e978e87752944787ad854741 | Java | luismartincs/proyecto_distribuidos | /java/DemoSerial.java | UTF-8 | 280 | 2.59375 | 3 | [] | no_license | import serial.SerialInterface;
public class DemoSerial{
public static void main(String args[]){
SerialInterface serialComm = new SerialInterface();
serialComm.open();
serialComm.write((int)args[0].charAt(0) - (int)('0'));
System.out.println("Hola mundo ");
}
}
| true |
17e13b0fd973378c0b4de405531844625c33cc99 | Java | graham218/card-matching-game | /src/Card.java | UTF-8 | 2,577 | 3.515625 | 4 | [] | no_license | import java.awt.Color;
import java.util.Objects;
public class Card {
public static final char CLUBS = 'C';
public static final char HEARTS = 'H';
public static final char SPADES = 'S';
public static final char DIAMONDS = 'D';
public static final int LOWEST_VALUE = 2;
public static final int H... | true |
2120fa66a9a0836d693e8d5a5755dee4e2a536b8 | Java | igormartyniuk/SweetArt | /src/main/java/com/cakes/entity/Orders.java | UTF-8 | 2,253 | 2.453125 | 2 | [] | no_license | package com.cakes.entity;
import java.time.LocalDate;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence... | true |
f34e8800763ac2864f00dac51507f16471189acf | Java | 1149897313/FaZhiChun | /app/src/main/java/com/zgkj/fazhichun/adapter/history/HistoryAdapter.java | UTF-8 | 2,797 | 2.59375 | 3 | [] | no_license | package com.zgkj.fazhichun.adapter.history;
import android.view.View;
import android.widget.TextView;
import com.zgkj.common.widgets.recycler.RecyclerViewAdapter;
import com.zgkj.fazhichun.R;
/**
* Author: bozaixing.
* Email: 654152983@qq.com.
* Date: 2018/3/9.
* Descr: 代金券历史界面适配器的定义
*/
public class Hi... | true |
36f06de2ee0a151f8dab54c2371a108c922cafe7 | Java | Srax/TextAdventureGame | /src/tag1/gitgut/Boundry.java | UTF-8 | 4,756 | 3.578125 | 4 | [] | no_license | package tag1.gitgut;
import java.util.Scanner;
public class Boundry {
Player p = new Player();
Scanner scan = new Scanner(System.in);
/**
* Takes the parameter currentRoom and return the direction as a String, if the direction is possible, else try again.
* @param currentRoom
* @return St... | true |
be4315fab55dc3de5aad6dc177ccaee70126571d | Java | sungwoo91/parser | /src/main/java/Consumer/FileConsumer.java | UTF-8 | 2,674 | 3.09375 | 3 | [] | no_license | package Consumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.BlockingQueu... | true |
2968f57f5044739bd073df1329be86dc80da0078 | Java | lavakumarThatisetti/inforsecure-backend | /src/main/java/com/inforsecure/fiuapi/gateway/resource/SingedConsentAccounts.java | UTF-8 | 535 | 1.8125 | 2 | [] | no_license | package com.inforsecure.fiuapi.gateway.resource;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.ArrayList;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class SingedConsentAccounts {
@JsonPropert... | true |
7ef3160e3d754d20f6fa8e3383389e3d9c2df505 | Java | VVKot/coding-competitions | /leetcode/java/146LRUCache.java | UTF-8 | 720 | 3.171875 | 3 | [
"MIT"
] | permissive | import java.util.LinkedHashMap;
import java.util.Map;
class LRUCache {
private static final int KEY_NOT_FOUND = -1;
private LRUStorage<Integer, Integer> storage;
public LRUCache(int capacity) {
this.storage = new LRUStorage<>(capacity);
}
public int get(int key) {
return storage.getOrDefault(key, K... | true |
f39ee21d65296f701718f7ae168c91c5f21d1b1b | Java | bob-puyon/FlyLimiter | /src/bob_puyon/FlyLimiter/EventListener.java | UTF-8 | 3,437 | 2.71875 | 3 | [] | no_license | package bob_puyon.FlyLimiter;
import org.bukkit.Location;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import ... | true |
4e9aeca9be70c6bb73a9eb5fcbdaef274eb0edcc | Java | Velory/javaee | /task_10/marina.sirotkina/src/main/java/com/hillel/bookshop/model/category/Category.java | UTF-8 | 1,188 | 2.375 | 2 | [] | no_license | package com.hillel.bookshop.model.category;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;... | true |
1a8f3fc55f3fe0283f09881b133e6a6c3be82968 | Java | khaledchobi/LearnJava | /src/www/hackerrank/com/java/Day_29.java | UTF-8 | 2,964 | 3.21875 | 3 | [] | no_license | package www.hackerrank.com.java;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Day_29 {
private static final Scanner scanner = new Scanner(System.in);
public static void main(String[] a... | true |
004e8b0bdb25a711be3fb2a4e96a0f018aaa9996 | Java | dankito/DeepThought_v0.1 | /DeepThoughtJavaFx/src/main/java/net/dankito/deepthought/platform/JavaSePlatformConfiguration.java | UTF-8 | 1,208 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package net.dankito.deepthought.platform;
import net.dankito.deepthought.platform.IPlatformConfiguration;
/**
* Created by ganymed on 23/08/15.
*/
public class JavaSePlatformConfiguration implements IPlatformConfiguration {
@Override
public String getUserName() {
return System.getProperty("user.name");
}... | true |
d9798e6e1f758c9ba6b1634b10fe206c2192f6d5 | Java | M0urad/ProjetSport | /ProjetFinalJava/src/main/java/application/exceptions/JoueurException.java | UTF-8 | 145 | 2.109375 | 2 | [] | no_license | package application.exceptions;
public class JoueurException extends Exception {
public JoueurException(String message) {
super(message);}
}
| true |
601014d68bf52b2df04dcd76749aee32a3c30f03 | Java | clarck/leetcode-1 | /src/main/java/com/example/leetcode/linkedlist/LeetCode138_CopyListWithRandomPointer.java | UTF-8 | 3,666 | 3.9375 | 4 | [] | no_license | package com.example.leetcode.linkedlist;
import com.example.leetcode.linkedlist.pojo.RandomListNode;
import java.util.HashMap;
/**
* @description: 复制带随机指针的链表
* 给定一个链表,每个节点包含一个额外增加的随机指针,该指针可以指向链表中的任何节点或空节点。
* <p>
* 要求返回这个链表的深度拷贝。
* @author: icecrea
* @create: 2019-01-10 11:19
**/
public class LeetCode138_CopyL... | true |
1bc289667877e94ca9d4b5c6a71a06af699868d3 | Java | KseniaZv/APPOO | /lab2appoo/src/com/company/Woman.java | UTF-8 | 233 | 2.78125 | 3 | [] | no_license | package com.company;
public class Woman extends Human implements ICalculator {
@Override
public int basalMetabolicRateCalculator(){
return (int) (447.6+(9.2*getWeight())+(3.1*getHeight())-(4.3*getAge()));
}
}
| true |
28eb7eb97c35f0a3d63b5770adb50a00c67f0099 | Java | ketingli1/wechat-core | /src/main/java/com/souche/wechat/core/process/parse/SceneSubscribeEventContentParser.java | UTF-8 | 1,517 | 2.109375 | 2 | [] | no_license | package com.souche.wechat.core.process.parse;
import com.souche.wechat.core.bean.WechatMessage;
import com.souche.wechat.core.bean.message.WechatSceneSubscribeEventMessage;
import com.souche.wechat.core.constants.WechatMessageConstant;
import com.souche.wechat.core.enums.EventMsgType;
import com.souche.wechat.core.enu... | true |
0f5f1c409d6730b7308f07d5c905622ecd0c979b | Java | zszzyh/taotao | /taotao/src/main/java/com/cwb/dao/TbItemCatMapper.java | UTF-8 | 728 | 1.828125 | 2 | [] | no_license | package com.cwb.dao;
import com.cwb.bean.TbItemCat;
import com.cwb.bean.TbItemCatCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface TbItemCatMapper {
long countByExample(TbItemCatCriteria example);
int de... | true |
397ce3d378334a2263ccac1cb27990a997a35e83 | Java | Valaaz/Projet_JAVA_IUT | /src/application/Fenetre.java | ISO-8859-1 | 6,198 | 2.734375 | 3 | [] | no_license | package application;
import javax.swing.*;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@SuppressWarnings("serial")
public class Fenetre extends JFrame implements ActionListener {
private JMenuBar barreMenu = new JMenuBar();... | true |
9653ed11066657c8e574f4dc37cc1078579200fb | Java | AdmiralVincent/Resume | /ProjectServer.java | UTF-8 | 7,329 | 3.3125 | 3 | [] | no_license | package Fall2013Project;
/**
* Sean Vincent
* Computer Science II
* Semester Project
* Fall 2013
*/
import javax.swing.JFrame;
import javax.swing.JTextArea;
import java.io.*;
import java.net.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ProjectServer exte... | true |
a2a8e04e75450be90e69893cb1fd9fc5cc16f6e0 | Java | Yolonaise/OurNation | /app/src/main/java/com/example/arnaudschaal/ournation/RestClient/Models/ResponseModels/GetEventsResponse.java | UTF-8 | 570 | 1.9375 | 2 | [] | no_license | package com.example.arnaudschaal.ournation.RestClient.Models.ResponseModels;
import com.example.arnaudschaal.ournation.RestClient.Models.Interface.IJSONMessage;
import com.example.arnaudschaal.ournation.RestClient.Models.Objects.Event;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.Seria... | true |
3ca308d76b2e2bf27297216c6bac61b4f5d467b9 | Java | woodyyan/zuociapi | /zuoci-api-boot/src/test/unit/java/com/easystudio/api/zuoci/validate/PhraseValidatorTest.java | UTF-8 | 2,007 | 2.34375 | 2 | [] | no_license | package com.easystudio.api.zuoci.validate;
import com.easystudio.api.zuoci.exception.ErrorException;
import com.easystudio.api.zuoci.model.PhraseData;
import com.easystudio.api.zuoci.model.PhraseRequest;
import org.junit.Test;
public class PhraseValidatorTest {
private PhraseValidator validator = new PhraseValid... | true |