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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0f51e82f799c85a94b5cd84ee5aa3f0fe5a52023 | Java | lanseror/Fight2 | /src/com/fight2/entity/UserArenaInfo.java | UTF-8 | 1,479 | 2.265625 | 2 | [] | no_license | package com.fight2.entity;
import java.util.List;
public class UserArenaInfo {
private int rankNumber;
private int might;
private int win;
private int lose;
private String remainTime;
private int issuedReward;
public int getIssuedReward() {
return issuedReward;
}... | true |
9292bd48a6f0ee9e06d00424ced7aedbf3aa5678 | Java | fflucas/orange-talents-04-template-ecommerce | /src/main/java/br/com/zupacademy/fabio/mercadolivre/shared/StorageFileFake.java | UTF-8 | 1,405 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zupacademy.fabio.mercadolivre.shared;
import io.jsonwebtoken.lang.Assert;
import org.apache.commons.io.FilenameUtils;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;
import org.springframework.util.DigestUtils;
import org.springframework.web... | true |
49f7b7385295987ea2886736a459b807b2ae80fb | Java | trman/cronometer | /src/ca/spaz/wizard/Wizard.java | UTF-8 | 9,089 | 2.890625 | 3 | [] | no_license | package ca.spaz.wizard;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.*;
import javax.swing.*;
import ca.spaz.util.ToolBox;
/**
* A Wizard Dialog.
*
* A Wizard contains one or more Wizard Panels
* When a user clicks 'FINISH' on the last panel,
* ea... | true |
0f8652b7f3965366a310b2a929e7b4075cab1821 | Java | quyixiao/ttl_test | /src/main/java/com/test/TppHelperTest_5.java | UTF-8 | 2,037 | 2.59375 | 3 | [] | no_license | package com.test;
import com.alibaba.ttl.TransmittableThreadLocal;
import java.util.Random;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class TppHelperTest_5 {
public sta... | true |
777d15bbdf4b906e22d030c2babfcce0c28efd91 | Java | jfrog/xray-client-java | /src/main/java/com/jfrog/xray/client/services/details/Error.java | UTF-8 | 156 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | package com.jfrog.xray.client.services.details;
/**
* @author yahavi
**/
public interface Error {
String getErrorCode();
String getMessage();
}
| true |
8c1df4c5e11a3d18c2d47ebdb19a2849384bf87c | Java | cl-zhao/software-engineering | /HotelSystem/InternetHotelReservationSystem/ClientSystem/src/main/java/presentation/webMarketerUI/controller/ChargeController.java | UTF-8 | 3,558 | 2.515625 | 3 | [
"MIT"
] | permissive | package presentation.webMarketerUI.controller;
import java.io.IOException;
import businessLogic.creditBL.CreditController;
import businessLogic.userBL.UserController;
import businessLogicService.userBLService.UserBLService;
import exception.inputException.InvalidInputException;
import exception.operationFailedExcepti... | true |
a4fdeff2318c6a58b7288bd6f2537e492c415e04 | Java | daravi/modelio | /bpmn/bpmn.xml/src/org/modelio/bpmnxml/nodes/production/flows/MessageFlowNode.java | UTF-8 | 6,481 | 1.84375 | 2 | [] | no_license | /*
* Copyright 2013-2018 Modeliosoft
*
* This file is part of Modelio.
*
* Modelio 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 3 of the License, or
* (at your option) any later ve... | true |
e6b088dd3823dd3de09fc9b7aa6827763c9fdb00 | Java | franciscoJMP/JuegoNaves | /app/src/main/java/com/example/juegoandroidspaceinvaders/NavesInvasoras.java | UTF-8 | 1,002 | 2.625 | 3 | [] | no_license | package com.example.juegoandroidspaceinvaders;
import android.graphics.Bitmap;
public class NavesInvasoras extends Sprite {
public int puntos;
public NavesInvasoras(GameView gameView, Bitmap bmp, int bmpColumns, int bmpRows,int x ,int y, int puntos) {
super(gameView, bmp, bmpColumns, bmpRows);
... | true |
3442087e4f74cd14d45880112142cad56d52d72c | Java | rohitksingh/NYT-Articles | /app/src/main/java/viewmodels/ArticleListViewModel.java | UTF-8 | 1,759 | 2.390625 | 2 | [] | no_license | package viewmodels;
import java.util.ArrayList;
import java.util.List;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import models.Article;
import repositories.ArticleRepository;
public class ArticleListViewModel extends ViewModel {
private f... | true |
bf1c70a873760a2ed029cb5d8df73471fec41e56 | Java | FeedeRino/Projekt226B | /Projekt226B/src/logic/startGames.java | UTF-8 | 1,451 | 2.78125 | 3 | [] | no_license | package logic;
import java.util.ArrayList;
import data.GamesDAO;
import data.GamesData;
import dto.Game;
/**
*
* @author Noah Hermann
* In dieser Klasse wird entschieden welche Art von Spiel gestartet werden muss
*/
public class startGames {
private GamesDAO dataGames = new GamesData();
/... | true |
ad51b188bc263c61b9eb07dd3bbde8f8270cd4cc | Java | DIOPTaiba/Sen_Forage_Spring | /src/main/java/sn/morsimplon/controller/VillageController.java | UTF-8 | 5,439 | 2.53125 | 3 | [] | no_license | package sn.morsimplon.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.spr... | true |
0ae377b52fbbd5ed3bee23d894f1a323004d1864 | Java | simpleego/Java | /sources/chap17_파일입출력/ImageFile(LAB)/src/RGB2Gray.java | UHC | 1,155 | 3.21875 | 3 | [] | no_license | import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
// ҽ Էϰ Ctrl+Shift+O ʿ Ѵ.
public class RGB2Gray {
BufferedImage myImage;
int width;
int height;
public RGB2Gray() {
File ifile = new File("test.jpg");
try {
myImage... | true |
65dfaacf608fe744a562488ba32a646750c3c21d | Java | MinnaCheng/gitskills | /src/com/cm/week10_day05_logintest/MainActivity.java | GB18030 | 4,179 | 2.65625 | 3 | [] | no_license | /*Ҫ
1,Ҫ6λַֺϣ,Toast ʾ
2,¼ť û롢һΪʱ¼ťɵ㡣
3,¼ťתAPPҳ
4ûٴε¼ʱsharedPreferenceȡû*/
package com.cm.week10_day05_logintest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import andr... | true |
1b7f2e5ddee4f5cfd6db2fb968658f39fdf8b67c | Java | bhavyadedhia2119/android-app-development-coursera | /Course 1/M6b/app/src/main/java/mooc/vandy/java4android/gate/logic/HerdManager.java | UTF-8 | 2,785 | 3.5625 | 4 | [
"MIT"
] | permissive | package mooc.vandy.java4android.gate.logic;
import java.util.Random;
import mooc.vandy.java4android.gate.ui.OutputInterface;
/**
* This class uses your Gate class to manage a herd of snails. We
* have supplied you will the code necessary to execute as an app.
* You must fill in the missing logic below.
*/
publi... | true |
697b57e504622efc931fdc7be48d6117fd358e94 | Java | Mridul-Chopra/BookShelf | /src/main/java/net/paxcel/bookshelf/dao/GetBooksDAOImpl.java | UTF-8 | 4,683 | 2.75 | 3 | [] | no_license | package net.paxcel.bookshelf.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
public class GetBooksDAOImpl implements GetBook... | true |
0b6c7a14e90b60e2154f3e641df79ad9a39f74b1 | Java | adjanorpro18/recensement-jdbc | /src/main/java/dao/DepartementDao.java | UTF-8 | 342 | 2.078125 | 2 | [] | no_license | package dao;
import entites.Departement;
import java.util.List;
public interface DepartementDao {
List<Departement> extraire();
public Departement extraireParNumero(String nomRegion);
void insert(Departement departement);
int update(String ancienNom, String nouveauNom);
boolean delete(Departe... | true |
de9fc51a3dfccee720ba91babb8536ae2dd7e494 | Java | Gosed-epsi/Datamining | /Datamining/src/epsi/i5/datamining/Datamining.java | UTF-8 | 3,961 | 2.921875 | 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 epsi.i5.datamining;
import epsi.i5.datamining.repustate.RepustateException;
import java.io.IOException;
import java.net.Malfor... | true |
c2ca1a50ab2275930cd7924622e2fa68aeb1c710 | Java | btj/jbeginner | /src/JavaClass.java | UTF-8 | 4,541 | 3.125 | 3 | [] | no_license | // Placed in the public domain, 2003. Share and enjoy!
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any
// damages arising from the use of this software.
import java.util.*;
import javax.swing.*;
class LiteralReferenceEd... | true |
9bd3c6df7576bee339e6681470211d1324c1dc5b | Java | 4SELLERS/forsellers-analyzer | /src/main/java/de/forsellers/elastic/analyzer/index/analysis/ForSellersAnalyzer.java | UTF-8 | 2,419 | 2.375 | 2 | [] | no_license | package de.forsellers.elastic.analyzer.index.analysis;
import de.forsellers.elastic.analyzer.index.analysis.tokenizer.ForSellersTokenizer;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.core.LowerCaseFilter;
import org.apache.lucene.an... | true |
c8832c38292c8ed0d0454e3b76e8e1841bd899c9 | Java | binaire10/Pacman | /javafx-platform/src/main/java/fr/univ_amu/game/javafx/JavaFXLayer.java | UTF-8 | 4,246 | 2.609375 | 3 | [] | no_license | package fr.univ_amu.game.javafx;
import fr.univ_amu.game.core.Platform;
import fr.univ_amu.game.core.Window;
import fr.univ_amu.game.core.loader.HardwareLayer;
import fr.univ_amu.game.graphic.camera.Camera;
import fr.univ_amu.game.graphic.camera.OrthographicCamera;
import fr.univ_amu.game.graphic.engine.GraphicLayer;
... | true |
0f38a1c4f1304c7746791e0443fd5fc5725d81f4 | Java | yudantoanas/2DKalkulator | /app/src/main/java/com/example/yuda/kalkulator2d/HasilActivity.java | UTF-8 | 1,035 | 1.992188 | 2 | [] | no_license | package com.example.yuda.kalkulator2d;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import org.w3c.dom.Text;
public class HasilActivity extends AppCompatActivity {
... | true |
b553e8e132dcf32bf5209ab30f8109f9ad44106b | Java | arnoldpalar/count-me-up | /src/main/java/com/ap/countmeup/controller/VoteController.java | UTF-8 | 1,267 | 2.234375 | 2 | [] | no_license | package com.ap.countmeup.controller;
import com.ap.countmeup.dto.VoteRequest;
import com.ap.countmeup.service.VoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity... | true |
2b08bae300ccea3f01b1fd34661ac6425a023d6a | Java | JustDo23/FirstLineCode | /app/src/main/java/com/just/first/chapter09/OkHttpActivity.java | UTF-8 | 2,020 | 2.703125 | 3 | [] | no_license | package com.just.first.chapter09;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.just.first.R;
import com.just.first.base.BaseActivity;
import java.io.IOException;
import okhttp3.FormBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody... | true |
b338aebf24c0cf1d1314443cb602631023952983 | Java | gegray/hash-tables-cse373-su2015 | /src/shake_n_bacon/HashTable_SC.java | UTF-8 | 4,264 | 3.5 | 4 | [] | no_license | package shake_n_bacon;
import providedCode.*;
/**
* @author Geoff Gray, Austin Meyers
* @UWNetID gegray, arm38
* @studentID 1463717, 1228316
* @email gegray@uw.edu, arm38@uw.edu
*
* Creates a hash table that uses separate chaining to implement
* the data structure.
**/
public class HashTable_SC extends Data... | true |
78ddc000c50881303e6feb29548af8db518a8c32 | Java | navneet35/spring-boot-example | /src/main/java/com/springboot/example/controller/UserController.java | UTF-8 | 865 | 2.375 | 2 | [] | no_license | package com.springboot.example.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.... | true |
50397f65680a866c313da3cd551a437031d1b728 | Java | lgcanfly/personalTraining | /src/main/java/concurrent/exchanger/TestExchanger.java | UTF-8 | 2,610 | 3.390625 | 3 | [] | no_license | package concurrent.exchanger;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.concurrent.Exchanger;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @Description:
* @author: QuLiang
* @since: 2019/3/11 Created
*/
public cla... | true |
bb0b5c9638efab828f5ccaa7a0e9bccd6b400472 | Java | piotszy653/quiz-backend | /core-module/src/main/java/projects/core/controller/quiz/RateController.java | UTF-8 | 2,035 | 2.109375 | 2 | [] | no_license | package projects.core.controller.quiz;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import projects.core.service.quiz.CoreRateService;
import projects.quiz.dto.rate.RateDto;
import projects.quiz.model.Rate;
import p... | true |
67e826cfe2b3ba87c85c8a9948977ed1fd7d765a | Java | codesqills/Java-Basics | /flowcontrol/src/flowcontrol/FlowControl4.java | UTF-8 | 412 | 3.328125 | 3 | [] | no_license | /*
* Case 3 is not allowed because it exceeds byte range
*/
package flowcontrol;
public class FlowControl4 {
public static void main(String[] args) {
// TODO Auto-generated method stub
byte b=10;
switch (b) {
case 10:
System.out.println("10");
break;
case 100:
System.out.println("10");
brea... | true |
2587366c004e05db2b35ad2b0c50628bac836d69 | Java | povidalo/MandelbrotCubeLiveWallpaper | /app/src/main/java/ru/povidalo/mandelbrotcubewallpaper/openGL/TextureModifier/MandelbrotThread.java | UTF-8 | 8,417 | 2.296875 | 2 | [] | no_license | package ru.povidalo.mandelbrotcubewallpaper.openGL.TextureModifier;
import android.os.SystemClock;
/**
* Created by user on 20.08.15.
*/
public class MandelbrotThread extends ModifierThread {
private static final long FRAME_TIME = 40;
private static final int BACKGROUND_COLOR_R = 0x40;
private static fi... | true |
8d3ebfb179e10b16d1524c3bfdb7bbabb9c5ea4f | Java | jerryliuinfo/FastAndroid | /app/src/main/java/com/apache/fastandroid/demo/adapter/PulltoRefreshAdapter.java | UTF-8 | 1,109 | 2.21875 | 2 | [] | no_license | package com.apache.fastandroid.demo.adapter;
import com.apache.fastandroid.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import java.util.List;
import androidx.annotation.Nullable;
/**
* Created by Jerry on 2021/5/4.
*/
public class Pullt... | true |
278038b986c4aca624a4dcecbc72d6188c0ba1c2 | Java | Nikolay-M-Ivanov/SeleniumAutomationQA-Tests | /src/test/java/com/selenium/course/tests/WaitTest.java | UTF-8 | 3,052 | 2.546875 | 3 | [] | no_license | package com.selenium.course.tests;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Flu... | true |
3cea991c8c247d4c932a490781ad6d8bcea3ec34 | Java | Cameobc/Servlet_4 | /src/com/iu/board/notice/NoticeService.java | UTF-8 | 5,980 | 2.1875 | 2 | [] | no_license | package com.iu.board.notice;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.iu.action.Action;... | true |
2d9c5ab6d41df1f15c15e9570962e85698fc8f3c | Java | ViniciusAMatos/gerenciadorFuncionarios | /src/main/java/br/viniciusmatos/gerenciarfuncionario/resources/FuncionarioResource.java | UTF-8 | 2,375 | 2.171875 | 2 | [] | no_license | package br.viniciusmatos.gerenciarfuncionario.resources;
import java.util.List;
import javax.persistence.PostRemove;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation... | true |
52357ed176f7427fde647f0b8b7213f641d887ac | Java | SamoSR/ezFEMapp | /src/main/java/serializableApp/commands/CmdEditProp.java | UTF-8 | 1,996 | 2.40625 | 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 serializableApp.commands;
import serializableApp.objects.Property;
import serializableApp.objects.PropertyDimension;
... | true |
3099ac44440e2e077d64aa7b940265cdf1656bbf | Java | his-eg/ecl1 | /net.sf.ecl1.extensionpoint/src/net/sf/ecl1/extensionpoint/collector/ExtensionPointBuilder.java | UTF-8 | 4,847 | 2.28125 | 2 | [] | no_license | package net.sf.ecl1.extensionpoint.collector;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.SortedMap;
import java.util.TreeMap;
import net.sf.ecl1.ext... | true |
46e5e926c44cfadf9d428a40e54e6ed179724ec6 | Java | wdqiOS/javaStudy | /FielDemo.java | UTF-8 | 237 | 2.125 | 2 | [] | no_license | import java.io.File;
public class FielDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
File f = new File("file/score.txt");
System.out.println(f.exists());
}
} | true |
efddbc17ca5b5416dd28617f12ca8b9f4101c0df | Java | braeunlich/context-model | /src/ch/uzh/ifi/seal/contextmodels/view/uml/JavaRelationConnection.java | UTF-8 | 2,595 | 2.21875 | 2 | [] | no_license | package ch.uzh.ifi.seal.contextmodels.view.uml;
import java.lang.reflect.Field;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.PolygonDecoration;
import org.eclipse.swt.SWT;
import org.eclipse.zest.core.widgets.Graph;
import org.eclipse.zest.core.widgets.GraphConnection;
import org.eclipse.zest.core.wid... | true |
2ea8192dbfb37b9aaf0b68d3a1946fd8c7e50f57 | Java | jfrog/teamcity-artifactory-plugin | /agent/src/main/java/org/jfrog/teamcity/agent/release/vcs/svn/SubversionManager.java | UTF-8 | 4,468 | 2 | 2 | [
"Apache-2.0"
] | permissive | package org.jfrog.teamcity.agent.release.vcs.svn;
import jetbrains.buildServer.agent.BuildRunnerContext;
import jetbrains.buildServer.log.Loggers;
import org.jfrog.teamcity.agent.release.vcs.AbstractScmManager;
import org.tmatesoft.svn.core.SVNCommitInfo;
import org.tmatesoft.svn.core.SVNDepth;
import org.tmatesoft.sv... | true |
a9ddc387b482851cd36c209c03aaf76430020332 | Java | RSmaruthi/JavaPrograms | /src/utility/util.java | UTF-8 | 18,939 | 3.421875 | 3 | [] | no_license | package utility;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
public class util
{
public static Scanner scanner = new Scanner(System.in);
//A libr... | true |
85e7071d0cf51936200075e229284a2938a4cb7b | Java | Knickkennedy/OperatingSystemSimulator | /src/ShortestJobFirstScheduler.java | UTF-8 | 1,461 | 3.15625 | 3 | [] | no_license | import java.util.PriorityQueue;
public class ShortestJobFirstScheduler {
private PriorityQueue<Process> readyQueue;
private PriorityQueue<Process> waitQueue;
private PriorityQueue<Process> terminateQueue;
public ShortestJobFirstScheduler(){
this.readyQueue = new PriorityQueue<Process>(25, new ... | true |
b499e1332ce382acf675e923244bef36adae7487 | Java | coodex2016/concrete.coodex.org | /concrete-pom/plugins-pom/concrete-courier-rabbitmq/src/main/java/org/coodex/concrete/couriers/rabbitmq/RabbitMQCourierPrototype.java | UTF-8 | 6,271 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2018 coodex.org (jujus.shen@126.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | true |
83f221a7772c64189d7f11cfd8528c22b320a830 | Java | a784511652/Search-Engine-Services | /src/main/java/com/united_iot/search/exception/SearchMyException.java | UTF-8 | 870 | 2.390625 | 2 | [] | no_license | package com.united_iot.search.exception;
import com.united_iot.search.enumm.SearchNewEnum;
/**
* @auther jiahaowei
* @date: 2018/1/15 0015
* @time: 13:40
* @project_name: search
* @Description :
*/
public class SearchMyException extends RuntimeException {
private String code;
public SearchMyException(S... | true |
220d87ddfb34829755fb99c0ba52aa17d549c87b | Java | Anirudhgoud/SampleLeep | /app/src/main/java/com/tracotech/tracoman/helpers/uimodels/Distance.java | UTF-8 | 960 | 2.265625 | 2 | [] | no_license | package com.tracotech.tracoman.helpers.uimodels;
/**
* Created by vishalm on 16/03/18.
*/
public class Distance {
private int distanceValue;
private int durationValue;
private String distanceText;
private String durationText;
public int getDistanceValue() {
return distanceValue;
}
... | true |
26cb0f9adb5fdd332ddeb9f4a63d193fe40fb06d | Java | ywc2016/behaviour_oneTimeNeed | /src/ielab/util/BargainPointCalculate.java | UTF-8 | 7,045 | 2.71875 | 3 | [] | no_license | package ielab.util;
import ielab.dao.BargainExperimentsDao;
import java.util.Arrays;
import java.util.List;
import static java.lang.Math.min;
/**
* 计算谈判积分
* <p>
* 如果合作,制造商的利润为:p*min(min(K-Q,Q^*),d)+w*Q-c*min(Q+Q^*,K)
* 零售商的利润为:p*min(d,Q)-w*Q;(注意:需要分别计算这个100个d值对应的利润,最后求均值)
* </p>
* <p>
* 如果不合作,制造商的利润为:p*min(d... | true |
153d8cd45fb8c0e89d2f77d54fd800c6b6818304 | Java | EmiyaXzero/nettyStudy | /study/src/main/java/com/my/netty/study/serial/UserInfo.java | UTF-8 | 1,505 | 2.546875 | 3 | [] | no_license | package com.my.netty.study.serial;
import lombok.Data;
import org.msgpack.annotation.Message;
import java.io.Serializable;
import java.nio.ByteBuffer;
/**
* @author shanghang
* @title: User
* @projectName nettyStudy
* @description: 序列化demo,msgPack pojo类必须实现Serializable和messagez注解
* @date 2020.12.27-15:46
*/
@D... | true |
0b4c8cd341077333ddd5e303c3204bff3eb5fdd6 | Java | javierarboleda/CodePath-Interviewbit-Solutions | /linked-lists/RotateList.java | UTF-8 | 1,522 | 3.265625 | 3 | [] | no_license | package com.javierarboleda.codingchallenges.challenges.lists;
/**
* Created on 1/25/17.
*/
public class RotateList {
public static ListNode rotateRight(ListNode a, int b) {
int size = getListSize(a);
if (size == size - (b % size)) {
return a;
}
b = size - (b % siz... | true |
028c24623d0c28eb4b7ee0527bc8788d1390c964 | Java | Neio/iMessageChatDecompile | /src/activity/ax.java | UTF-8 | 3,352 | 1.648438 | 2 | [] | no_license | package activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.TextView;
import com.b.w;
imp... | true |
892dc38bac12718c8f65165e25173b2b8b1e8a43 | Java | GerardoUPM/disnet_web_app | /src/main/java/edu/upm/midas/model/jpa/LogQuery.java | UTF-8 | 7,397 | 2.078125 | 2 | [] | no_license | package edu.upm.midas.model.jpa;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;
import java.util.Ob... | true |
e4616763057ed6f6dfabd86b2b2b5226b7eaebfb | Java | yang330773545/SpringbootTest | /kafka/src/main/java/com/example/kafka/component/MyBean.java | UTF-8 | 946 | 2.40625 | 2 | [] | no_license | package com.example.kafka.component;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;
@Component
public class MyBean {
private final KafkaT... | true |
8186602f9dbe4e22f4dfd1a886b7db19e8f83bab | Java | ktt43/PhotosApplication | /PhotosApplication/src/model/Photo.java | UTF-8 | 2,559 | 3.140625 | 3 | [] | no_license | package model;
/**
* @author ktt43
* Photo Class
*/
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import javafx.scene.image.Image;
public class Photo implements Serializable{
private static final long serialVersionUID = 1L;
private String name;
priv... | true |
e23a7227500c8788ffa1b819c0e4871a6a20d9b3 | Java | 52North/uncertml-api | /src/main/java/org/uncertml/statistic/Kurtosis.java | UTF-8 | 2,249 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2014 52°North Initiative for Geospatial Open Source Software GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | true |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 23