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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f4f2aa206213aa481c5e894834de6e786a33228c | Java | RavenLeaks/Aegis-src-cfr | /com/google/common/collect/RegularImmutableSortedMultiset.java | UTF-8 | 4,981 | 2.21875 | 2 | [] | no_license | /*
* Decompiled with CFR <Could not determine version>.
*
* Could not load the following classes:
* javax.annotation.Nullable
*/
package com.google.common.collect;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.Preconditions;
import com.google.common.collect.BoundType;
impor... | true |
117768bf24dd80ae760afe576d13bb6ea00bac94 | Java | tjxn/StrategyPatternUseCase | /StrategyPatternUseCase/src/TitleSort.java | UTF-8 | 1,717 | 4.125 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.List;
/** Sorts all Books in a BookShelf alphabetically using Insertion Sort */
public class TitleSort implements SortingStrategy {
public TitleSort(){};
/**
* @param currentShelf - a List of Books
*
* Sorts the given list of books into alphabetical ... | true |
581402a2d33caf70377a09d413c7f053bec39bbe | Java | sinhdev/java-demo | /JavaNetworkProgramming/UDP/UDPServer.java | UTF-8 | 1,052 | 3.21875 | 3 | [
"MIT"
] | permissive |
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.io.IOException;
public class UDPServer {
public static void main(String[] args) {
try
{
DatagramSocket socket = new DatagramSocket(3000);
byte[] buffer = new byte[512];
DatagramPacket r... | true |
be9a25f20a1b9135ae5e715fdd833e4ff4da1ca6 | Java | fjh658/bindiff | /src_procyon/y/d/b/y.java | UTF-8 | 1,381 | 2.5 | 2 | [] | no_license | package y.d.b;
import y.g.*;
public class y implements z
{
private static y a;
private static y b;
private double c;
public y(final double c) {
this.c = c;
}
public z a() {
return y.a;
}
public z b() {
return y.b;
}
public z a(final z... | true |
697d5b0c8fa8d862b956ce10cd1a146b881eab19 | Java | chriscoyle101/SpringMVC | /WebApplication/src/com/nextgate/chriscoyle/service/ArtistInformation.java | UTF-8 | 1,189 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.nextgate.chriscoyle.service;
public class ArtistInformation {
private String singerName;
private String dob;
private String sex;
private String album;
private String releaseYear;
private String company;
// -------------------------- //
// GETTER METHODS
// -------------------------- //
publi... | true |
d43793222f784668c2ba66b602d4f40a9e167288 | Java | prettyhe/alpha-coding4j | /coding-bo/src/main/java/com/alpha/coding/bo/annotation/HttpParam.java | UTF-8 | 716 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.alpha.coding.bo.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.web.bind.annotation.Mapping;
/**
* HttpParam
*
... | true |
6c2dc8e06f91bd9ff6d1394a91879845d9869d98 | Java | teodora12/mbrsMaster | /mbrs-test/src/main/java/uns/ftn/mbrs/controller/ItemController.java | UTF-8 | 2,328 | 2.15625 | 2 | [] | no_license | package uns.ftn.mbrs.controller;
import java.util.*;
import uns.ftn.mbrs.model.*;
import uns.ftn.mbrs.service.ItemService;
import uns.ftn.mbrs.service.ReportService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import u... | true |
5bc2f848ede5a64363f174efd88cce59f6c2deb4 | Java | AkhilaKomanduri/Selenium-2017-18 | /Selenium _Learning _Project/src/WebDriver_Learning/FileDownload.java | UTF-8 | 512 | 1.898438 | 2 | [] | no_license | package WebDriver_Learning;
import org.openqa.selenium.chrome.ChromeDriver;
public class FileDownload {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "/Users/RaviAkhi/Desktop/Selenium Dump/chromedriver");
ChromeDriver Prof = new ChromeDriverProfile();
driver.setPrefere... | true |
1311447864a632fa4cfab0892b6e18f1526b6d28 | Java | yhznd/OtoTakip | /app/src/main/java/com/example/yunus/ototakip/Araba.java | UTF-8 | 2,575 | 1.929688 | 2 | [] | no_license | package com.example.yunus.ototakip;
/**
* Created by Eren Özhan on 9.4.2017.
*/
public class Araba {
private String userId;
private String userMail;
private String editTextPlaka;
private String editTextModel;
private String editTextKaskoTarihi;
private String editTextMuayeneTarihi;
priva... | true |
ee835c4b7513b8191a39e25488aa4fc482779fa3 | Java | SatishTA/SeleniumSessions | /src/SeleniumSessions/locatorsConcept.java | UTF-8 | 1,062 | 2.109375 | 2 | [] | no_license | package src.SeleniumSessions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurrent.TimeUnit;
public class locatorsConcept {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","D:... | true |
34d07c58f48df6b13081ed7c1080dda76b2ac36d | Java | ezcoding4all/coding_solutions | /week_2/linked_lists/ListCycle.java | UTF-8 | 1,092 | 4 | 4 | [] | no_license | /**
* List Cycle
*
* Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
*
* 1 -> 2 -> 3 -> 4 ---> 3
* return node of value 3
*
* [interviewbit]
* https://www.interviewbit.com/problems/list-cycle/
*/
public class ListCycle {
public static void main(String[] args)... | true |
54a312fb6d948773c6457ab06e04cbf8dc87c373 | Java | XlsBo/MyMusicPlayerAgain | /src/music/adapter/SongListAdapter.java | GB18030 | 2,044 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | package music.adapter;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import music.activity.R;
import music.util.GetM... | true |
725bcf4f6cd59b649cd79bf72d189489a560bb7e | Java | maicolstevenchunza/AKUAVIDA | /Codigo/AkuavidaJPA/src/main/java/edu/co/sena/akuavida/modelo/jpa/dao/interfaces/ICarritosComprasDAO.java | UTF-8 | 808 | 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 edu.co.sena.akuavida.modelo.jpa.dao.interfaces;
import edu.co.sena.akuavida.modelo.entitis.CarritoDeCompras;
import java.util.... | true |
de432e4eb82718e6ae7d1c1676aa40609c182163 | Java | romaric-roussel/Cours | /java/src/test/fr/lp/iem/tdd/TestEtudiant.java | UTF-8 | 1,249 | 3.078125 | 3 | [] | no_license | package fr.lp.iem.tdd;
import java.util.*;
public class TestEtudiant {
public static void main(String[] args) {
//testTriList();
List<String> chaine = Arrays.asList("toto","titi","TUTU","aBc","abc");
Collections.sort(chaine, String.CASE_INSENSITIVE_ORDER);
System.out.println(cha... | true |
7d85e0cdd5776272f4aaa1342f6b32699cc2e4f3 | Java | nghuy1610/VDCAssignment | /VDCProduct/src/main/java/com/vdc/product/exception/ProductException.java | UTF-8 | 624 | 2.4375 | 2 | [] | no_license | package com.vdc.product.exception;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;
public class ProductException extends BaseException{
@Getter @AllArgsConstructor
public enum ProductError {
PRODUCT_NOT_FOUND(HttpStatus.NOT_FOUND, "ProductNotFound", ... | true |
76959b01190d50c78a0d35637dc60fa56c8180e1 | Java | maliktoujani/PFE2021-Back | /src/main/java/com/pfe2021/PFE2021/repository/ContratRepository.java | UTF-8 | 335 | 1.9375 | 2 | [] | no_license | package com.pfe2021.PFE2021.repository;
import com.pfe2021.PFE2021.model.Contrat;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface ContratRepository extends JpaRepository<Contrat, Long> {
Optional<Contrat> findContratById(Long id);
void deleteContratBy... | true |
5a308add65bc9570d12556ab110a12a42f8a7475 | Java | zhongxingyu/Seer | /Diff-Raw-Data/11/11_d9ad2f9270afefd981768de4ec83a69b11dbacbe/ImportsModel/11_d9ad2f9270afefd981768de4ec83a69b11dbacbe_ImportsModel_t.java | UTF-8 | 7,740 | 2.453125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.netbeans.modules.javafx.editor.imports;
import java.util.HashSet;
import java.util.Set;
import javax.lang.model.element.TypeElement;
import org.netbeans.api.javafx.source.ElementHandle;
/**
... | true |
67c81cedd872c6bd82dd07c656aa1f4674782c30 | Java | HongDongwei/VSM | /app/src/main/java/com/codvision/vsm/presenter/contract/ScheduleSubmitContract.java | UTF-8 | 555 | 1.835938 | 2 | [] | no_license | package com.codvision.vsm.presenter.contract;
import com.codvision.vsm.base.BaseView;
import com.codvision.vsm.module.bean.ScheduleSubmit;
/**
* Created by sxy on 2019/5/16 14:53
* todo
*/
public interface ScheduleSubmitContract {
public interface Presenter {
//删除
void submitSchedule(ScheduleSu... | true |
4796ad9d680d12c7d33c3292e5413ffb710bf0d9 | Java | lhe2010/mySpringMvc2Prac01_copy | /mySpringMvc2Prac01/src/main/java/com/spring/boardPrac01/controller/BoardController.java | UTF-8 | 963 | 2.125 | 2 | [] | no_license | package com.spring.boardPrac01.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.ann... | true |
3bcec3e5967634744e67cd93ff8bd56519db646c | Java | at15/mellowtech-core | /src/test/java/org/mellowtech/core/cache/LRUCacheTest.java | UTF-8 | 3,707 | 2.609375 | 3 | [] | no_license | /*
* Copyright (c) 2012 mellowtech.org.
*
* The contents of this file are subject to the terms of one of the following
* open source licenses: Apache 2.0 or LGPL 3.0 or LGPL 2.1 or CDDL 1.0 or EPL
* 1.0 (the "Licenses"). You can select the license that you prefer but you may
* not use this file except in co... | true |
b150f6eab41d2d8fa33813b99211e2adc05c81da | Java | Yasinaaa/AndroidLab | /GithubMVP/app/src/test/java/ru/itis/lectures/githubmvp/api/ApiProviderTest.java | UTF-8 | 794 | 1.953125 | 2 | [] | no_license | package ru.itis.lectures.githubmvp.api;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import ru.itis.lectures.githubmvp.testutils.TestGithubService;
import ru.itis.lectures.githubmvp.testutils.TestProviderImpl;
import static org.junit.Asse... | true |
1e5abea9e796a08431e46e2783eee0641a59859f | Java | Asharam-CIT/jenkinsTest | /src/client/HttpClientFactory.java | UTF-8 | 4,740 | 2.421875 | 2 | [] | no_license | package client;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.KeyManager;
import javax.... | true |
089bdab90e5b5157ffcbdd7ab2a73b42ad12e0a6 | Java | Emma123456/leetcodepractice | /src/stack/NextGreaterElement503.java | UTF-8 | 2,111 | 4.125 | 4 | [] | no_license | package stack;
import java.util.Stack;
public class NextGreaterElement503 {
/**
* 可以返回来再次比较
*
* 解决循环数组的思路有两种: 第一:将原始数组扩大两倍,当做普通问题处理 第二:借助栈
*
* @param nums
* @return
*/
public int[] nextGreaterElements(int[] nums) {
int[] result = new int[nums.length];
Stack<Integer> stack = new Stack<Integer>();... | true |
dbd2645d87dab61318030d93af4f535b4ca5a1a1 | Java | google/nomulus | /core/src/test/java/google/registry/batch/AsyncTaskEnqueuerTest.java | UTF-8 | 5,109 | 1.710938 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | // Copyright 2018 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | true |
42e5e19dbde0662877740796c8cc845ec65a0cea | Java | pjohalloran/cardgame45 | /src/server/cardgame/Deck.java | UTF-8 | 4,061 | 3.578125 | 4 | [] | no_license | /*
* Created on 25-Jan-2005
*/
package server.cardgame;
import java.util.ArrayList;
import java.util.Collections;
/**
* @author Pj O' Halloran
*
* A Deck of cards object. Cards can only be taken off the
* top of the deck.
*/
public class Deck {
private static final int INITIAL_DEFAULT_CAPA... | true |
777f4accad34a90a21fa5965b5d37e24450f6286 | Java | coexxister/Tawe-Lib-230 | /src/JavaFX/AccountEditorController.java | UTF-8 | 5,619 | 2.953125 | 3 | [] | no_license | package JavaFX;
import Core.User;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import java.net.URL;
import java.sql.SQLExceptio... | true |
c6a8542347afc496bd3fff0b84765e54d08bd090 | Java | XLOUS-X/utils_demo | /src/main/java/com/example/utilsdemo/controller/TestController.java | UTF-8 | 689 | 1.914063 | 2 | [] | no_license | package com.example.utilsdemo.controller;
import com.alibaba.fastjson.JSON;
import com.example.utilsdemo.entity.NewSocketMsg;
import com.example.utilsdemo.utils.HttpClientUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
pub... | true |
41b086675ffb26c1e60acc1aa42aa8797b684bbc | Java | mikita-semiannik/grow | /src/main/java/com/grow/corebasicconcepts/Triangle.java | UTF-8 | 426 | 3.375 | 3 | [] | no_license | package com.grow.corebasicconcepts;
public class Triangle implements Figure{
Point point1;
Point point2;
Point point3;
public Triangle(Point point1, Point point2, Point point3) {
this.point1 = point1;
this.point2 = point2;
this.point3 = point3;
}
@Override
public ... | true |
35b57b6dc76389e03a3d8412d839004944add8f5 | Java | chenzhu005774/IndiaIPTV | /app/src/main/java/com/amt/indiaiptv/utils/net/Api.java | UTF-8 | 2,995 | 2.421875 | 2 | [] | no_license | package com.amt.indiaiptv.utils.net;
import com.amt.indiaiptv.utils.LogUtils;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.R... | true |
b2761fe2b1c5dc27cd1cd42c9d84e6981b411817 | Java | LeviSooky/Szamologep | /calculator-web/src/main/java/CurrServlet.java | UTF-8 | 4,170 | 2.28125 | 2 | [] | no_license | import Modell.CurrencyConv;
import Modell.CurrencyDAO;
import Modell.CurrencyDAOImpl;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import javax.net.ssl.HttpsURLConnection;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
imp... | true |
c325d2b6648da6498e3ae0c4132cc803582229b8 | Java | andyvkim/lab4 | /src/main/java/kim/andy/lab4/kim/andy/labTooLargeTooSmall.java | UTF-8 | 1,275 | 3.109375 | 3 | [] | no_license | package kim.andy.lab4.kim.andy;
import java.util.Scanner;
import java.util.Random;
/**
* Created by andykim on 1/12/17.
*/
public class labTooLargeTooSmall {
public void howManyGuesses() {
Random rand = new Random();
int secretNumber = rand.nextInt(10)+1;
Scanner input ... | true |
90275ddd112a75ff61c71ec8d0d50614753c8ffa | Java | ChadwickDS2017-2018/binary-search-tree-codewick-chadwick | /support/structures/PreOrderIterator.java | UTF-8 | 1,131 | 3.78125 | 4 | [] | no_license | package structures;
import java.util.Deque;
import java.util.Iterator;
import java.util.LinkedList;
public class PreOrderIterator<T> implements Iterator<T> {
private final Deque<BinaryTreeNode<T>> stack;
public PreOrderIterator(BinaryTreeNode<T> root){
stack = new LinkedList<BinaryTreeNode<T>>();
stack.pus... | true |
ef7903dd3b414ee873be390e4333308f1ded4a93 | Java | madaaf/tribe | /app/src/main/java/com/tribe/app/presentation/view/widget/SquareConstraintLayout.java | UTF-8 | 774 | 2.453125 | 2 | [] | no_license | package com.tribe.app.presentation.view.widget;
import android.content.Context;
import android.support.constraint.ConstraintLayout;
import android.util.AttributeSet;
/**
* A ConstraintLayout that will always be square (based out of its width)
*/
public class SquareConstraintLayout extends ConstraintLayout {
publ... | true |
3754def35432d0a88c38a9f6d51106ad1ad9587b | Java | BillBrown20000/JavaNotes | /src/main/java/JavaReaderWriter/BufferedReader.java | UTF-8 | 1,193 | 3.515625 | 4 | [] | no_license | package JavaReaderWriter;
public class BufferedReader {
}
/*
Working of BufferedReader
The BufferedReader maintains an internal buffer of 8192 characters.
During the read operation in BufferedReader, a chunk of characters
is read from the disk and stored in the internal buffer.
And from the internal buffer characters... | true |
3c081ead0a190857a16d974bac6757148fa256e5 | Java | ChoeMinji/glide | /library/src/main/java/com/bumptech/glide/manager/SingletonConnectivityReceiver.java | UTF-8 | 9,859 | 1.953125 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause-Views",
"Xfig",
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.bumptech.glide.manager;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.ConnectivityManager.NetworkCallback;
impor... | true |
dd082d7c2720c1b49736deeb178b13d625c5b434 | Java | jflores1997/car-dealership | /src/com/revature/pojo/Employee.java | UTF-8 | 196 | 1.757813 | 2 | [] | no_license | package com.revature.pojo;
public class Employee extends User {
private static final long serialVersionUID = 3050062013534252559L;
public Employee(String username) {
super(username);
}
}
| true |
b8bc34896d2272347efaeec3faf277e15f1ff042 | Java | albavi1718daw2/M6UF1Act3 | /Programa.java | ISO-8859-1 | 1,611 | 4 | 4 | [] | no_license | import java.io.IOException;
import java.util.Scanner;
public class Programa {
public static void main(String[] args) throws IOException {
// Llamamos al men
menu();
}
public static void menu() throws IOException {
Scanner teclado = new Scanner(System.in);
System.out.println("Elige una opcion: "... | true |
34ebc9dd4baeb1c05c30b1e28e73de25e4f5b128 | Java | adhamalaa111/StepView | /stepview/src/main/java/com/baoyachi/stepview/HorizontalStepView.java | UTF-8 | 7,203 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.baoyachi.stepview;
import android.content.Context;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
im... | true |
0bbdd4d5ed002d9fb5e7ea29ed74feefee115d6f | Java | cazous/ProjetoPersonalExpenses | /PersonalExpenses/src/crud/InserirDados.java | ISO-8859-1 | 815 | 2.5 | 2 | [] | no_license | package crud;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import jdbc.FabricaConexao;
public class InserirDados {
public void inserirDAO(String _nome, float _valor, int _categoria) {
Connection conexao;
try {
... | true |
191fe375a0ba981d49a427b5c119ad49670e54e9 | Java | stevejia/game | /distribute-game-backend/distribute-game-service/src/main/java/com/gongyu/service/distribute/game/model/dto/PigGoodsResultDto.java | UTF-8 | 3,762 | 2.125 | 2 | [] | no_license | package com.gongyu.service.distribute.game.model.dto;
import com.gongyu.snowcloud.framework.data.mybatis.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author zhaoQiXing
* @version 1.0
* @date 2020/6/28 15:48
*/
@Data
pu... | true |
3afe573172eeb6036de39d7b601300611ae432af | Java | BingBingHe/IT-Learning | /LeetCode/LeetCode/src/ContinuousSubarraySum_523/Solution.java | UTF-8 | 694 | 3.15625 | 3 | [] | no_license | package ContinuousSubarraySum_523;
import java.util.HashMap;
import java.util.Map;
public class Solution {
public static void main(String[] args) {
int[] nums = { 0, 0, 0 };
System.out.println(new Solution().checkSubarraySum(nums, 0));
Map<Integer, Integer> map = new HashMap<Integer, Integer>(){{put(0,22);}};... | true |
7a9f52a20515dcc29669f3c3fe91e6358f1f8ed6 | Java | kimjonghos/boot-jpa-gradle-handlebars | /src/main/java/com/example/webservice/dto/PostsDetailResponseDto.java | UTF-8 | 1,028 | 2.40625 | 2 | [] | no_license | package com.example.webservice.dto;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Optional;
import com.example.webservice.domain.Posts;
import lombok.Getter;
import lombok.ToString;
@ToString
@Getter
public class PostsDetailResponseDto {
private ... | true |
7b7e5b3bccef8639b7b095faad2451b8b2fc59d4 | Java | samiromic/interaktivni_raspored | /InteraktivniRaspored/src/modeli/Rezervacija_.java | UTF-8 | 2,297 | 2.578125 | 3 | [] | no_license | package modeli;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Rezervacija_ {
int sifRezervacija;
Date datumRezervacija;
String tipRezervacije;
int satRezervacijeH;
int satRezervacijeMin;
int satRezervacijeKrajH;
int satRezervacijeKrajMin;
int sifPredmet;
int sifSala;
int sifNastavni... | true |
a021a5e9420f7d54f61ae5a6f911878d83c470b7 | Java | PoisenFox/Bic-Biome-Craft-1.7.10 | /src/main/java/com/tung/bicbiomecraft/SkinkiumAxe.java | UTF-8 | 188 | 2.09375 | 2 | [] | no_license | package com.tung.bicbiomecraft;
import net.minecraft.item.ItemAxe;
public class SkinkiumAxe extends ItemAxe{
protected SkinkiumAxe(ToolMaterial material) {
super(material);
}
}
| true |
9dbfaa2b7c7eeb3af6a1f5678b6137dc944448ee | Java | FILSSE/nationalrailways | /nationalrailways/src/main/java/businesslogic/PayCardController.java | UTF-8 | 619 | 2.265625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package businesslogic;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import services.DatabaseTemplate;
/**
*
* @author AndreiM
*/
public class PayCa... | true |
8c569c26f242a7ad130fde2e374f2917d638d744 | Java | pedalv/JavaApp | /CorePlatform/src/main/java/no/the/core/platform/collections/queues/b_priority_queues/PriorityHelpDeskJava8.java | UTF-8 | 1,755 | 3.234375 | 3 | [] | no_license | package no.the.core.platform.collections.queues.b_priority_queues;
import no.the.core.platform.collections.model.Category;
import no.the.core.platform.collections.model.Customer;
import no.the.core.platform.collections.model.Enquiry;
import java.util.ArrayDeque;
import java.util.Comparator;
import java.util.PriorityQ... | true |
3c0c49ce22b357c61a460d775599fff086634f37 | Java | pmanzoni/GRCBoxv2 | /GrcBoxLib/src/es/upv/grc/grcbox/androlib/GrcBoxDatagramSocket.java | UTF-8 | 6,260 | 2.390625 | 2 | [] | no_license | package es.upv.grc.grcbox.androlib;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.DatagramSocketImpl;
import java.net.InetAddress;
import java.net.SocketAddress;
import java.net.SocketException;
import java.nio.channels.DatagramChannel;
import es.upv.grc.gr... | true |
63288e83a14897a6b2da196e9a38c2245c8344fa | Java | shift02/SextiarySector2 | /src/main/java/shift/sextiarysector/SSEvents.java | UTF-8 | 2,560 | 1.835938 | 2 | [] | no_license | package shift.sextiarysector;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.common.MinecraftForge;
import shift.sextiarysector.api.event.VanillaFoodHandler;
import shift.sextiarysector.event.AchievementEventHandler;
import shift.sexti... | true |
7ddbb0af4f61d1fd132459c0fa5ac2b0053b84b9 | Java | cuba-platform/restapi | /test/restapi-demo/modules/global/src/com/haulmont/rest/demo/core/entity/identity/IdentityCustomer.java | UTF-8 | 787 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2016 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/commercial-software-license for details.
*/
package com.haulmont.rest.demo.core.entity.identity;
import com.haulmont.chile.core.annotations.NamePattern;
import com.haulmont.cuba.core.enti... | true |
768ad1e34a91a6956b2fc4d067868aafc61d0d16 | Java | Alexander-Berg/serenity-core | /serenity-junit5/src/test/java/net/serenitybdd/junit5/samples/integration/WhenRunningANestedTest.java | UTF-8 | 1,571 | 2.265625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package net.serenitybdd.junit5.samples.integration;
import net.serenitybdd.junit5.AbstractTestStepRunnerTest;
import net.serenitybdd.junit5.TestLauncher;
import net.thucydides.core.model.TestOutcome;
import net.thucydides.core.steps.StepEventBus;
import net.thucydides.samples.SamplePassingNonWebScenario;
import org.ju... | true |
054a18d3847e7580a3e08c91aacdf53d48793f9b | Java | iamdaiyuan/App | /App/.svn/pristine/05/054a18d3847e7580a3e08c91aacdf53d48793f9b.svn-base | UTF-8 | 625 | 1.75 | 2 | [] | no_license | package com.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.junl.apps.service.users.IUsers;
@Ru... | true |
74bf4286ce77eee6fe8465cc7016c532f977764e | Java | kudrys/WirtualnaJava | /src/Wilk.java | UTF-8 | 170 | 1.960938 | 2 | [] | no_license | /**
* Created by RYchu on 2015-12-29.
*/
public class Wilk extends Zwierze {
public Wilk(){
label = 'W';
sila = 9;
inicjatywa = 5;
}
}
| true |
5ca32862e731bb7652345c11b2dc1e21e86dcb87 | Java | TrongCanh/PTPMCN-111592 | /src/main/java/com/sapo/repository/AutoPriceRepository.java | UTF-8 | 385 | 1.921875 | 2 | [] | no_license | package com.sapo.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.sapo.model.AutoPrice;
@Repository
public interface AutoPriceRepository extends JpaRepository<AutoPrice, Long> {
List<AutoPrice> findByItemid(... | true |
1d14180b07aa9377e7232275124aaec2ed9c5a54 | Java | douglascraigschmidt/CS891 | /assignment1c/movies-ex/src/main/java/edu/vandy/recommender/movies/server/MoviesApplication.java | UTF-8 | 2,341 | 2.6875 | 3 | [] | no_license | package edu.vandy.recommender.movies.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration;
import org.springframework.boot.web.embedded.tomcat.TomcatProtocolHandl... | true |
97dbd042e240770f6be3c7eedadba79418f863ee | Java | MHFethi/BookView | /app/src/main/java/hf/app/bookview/dao/ClientManager.java | UTF-8 | 3,591 | 2.6875 | 3 | [] | no_license | package hf.app.bookview.dao;
import android.content.Context;
import android.util.Log;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.stmt.QueryBuilder;
import java.sql.SQLException;
import java.util.List;
import hf.app.bookview.database.BddManager;
import hf.app.bookview.model.Client;
public class Clie... | true |
86d3c49cf2c858d9a51cd5fda9692a744a866d6d | Java | VivekGarg1/JdbcBatchProcessingDemo | /JdbcBatchProcessingDemo/src/com/home/client/PreparedStatementBatchClientTest.java | UTF-8 | 821 | 2.640625 | 3 | [] | no_license | package com.home.client;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Statement;
import com.home.util.JdbcUtil;
public class PreparedStatementBatchClientTest {
public static void main(String[] args) {
String SQLUPDATE="update employee_table set salary=? where employee_id=?";
t... | true |
17ec7e6366006c5a787d56998a094c196b3160ae | Java | google-code/android-ws-client | /AndroidWSProxyClient-old/src-ws/org/jinouts/transport/HttpTransportUtil.java | UTF-8 | 2,130 | 2.171875 | 2 | [] | no_license | /**
* Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.html *
*
*/
package org.jinouts.transport;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
impor... | true |
256c3b952d0e9c2290c1fa28e04fe798b93ef17b | Java | 2020-Summer-Cohort/blog-java-mia | /src/main/java/org/wcci/blog/controllers/PostController.java | UTF-8 | 2,887 | 2.453125 | 2 | [] | no_license | package org.wcci.blog.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.wcci.b... | true |
66fb945455833acf42ed19eedb12009b496fdeb2 | Java | asha-github/BlogSystem | /src/main/java/com/blog/biz/UserService.java | UTF-8 | 1,815 | 2.6875 | 3 | [] | no_license | package com.blog.biz;
import java.util.logging.Logger;
import com.blog.api.BlogServiceException;
import com.blog.api.IUserService;
import com.blog.api.User;
import com.blog.data.IUserDAO;
import com.blog.data.JpaUserDAO;
import com.blog.security.JWTTokenUtil;
public class UserService implements IUserService {
priva... | true |
18134d33ed19ffba7a647d7402723372d275abde | Java | Setes-eor/Eye-of-Ra-Java | /eye_of_ra/ResourceBar.java | UTF-8 | 4,428 | 2.375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package eye_of_ra;
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author setes
*/
public class ResourceBar extends Entity{
// attributes of the class
//
BasicE... | true |
62c39b1065af2bcab090fcfa81eed89aed594834 | Java | LTYYTL/dataStructure | /src/com/test/queue/LinkedListQueueTest.java | UTF-8 | 775 | 3.125 | 3 | [] | no_license | package com.test.queue;
import com.dataStructure.queue.LinkedListQueue;
public class LinkedListQueueTest {
public static void main(String[] args) {
LinkedListQueue<Integer> linkedListQueue = new LinkedListQueue<>();
//入队
linkedListQueue.enqueue(1);
linkedListQueue.enqueue(2);
... | true |
54275675c5f2209d3b32dc45eed77f21259c2211 | Java | MDSP777/UVA-Repo-2.0 | /src/UVa_12532.java | UTF-8 | 2,291 | 2.921875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class UVa_12532 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while(true) {
StringBuilder sb = new StringBuilder();
St... | true |
eba519e338dbb8b41eaadd2d6b829eccf6378c31 | Java | mahesh1981/Maidul | /rallee-androidMarket/src/com/radiorunt/businessobjects/FBGroupsReceiver.java | UTF-8 | 749 | 1.8125 | 2 | [] | no_license | package com.radiorunt.businessobjects;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public abstract class FBGroupsReceiver extends BroadcastReceiver {
public static final String ACTION_DONE = "com.radiorunt.FBGroupsLoad.done";
public static final String AC... | true |
cc0c1611fc777f9f79b6c245fa7ef03303840df8 | Java | Christianmsousa/springboot-student-api | /src/main/java/com/christian/modelonovo/swagger/SwaggerConfig.java | UTF-8 | 1,219 | 2.109375 | 2 | [] | no_license | package com.christian.modelonovo.swagger;
import java.util.ArrayList;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox... | true |
3954fafdad1497153812b8ffafdfb4da3a619549 | Java | namejack/publicspringboot | /src/main/java/com/chinacreator/springboot/entity/UserBean.java | GB18030 | 479 | 2.09375 | 2 | [] | no_license | package com.chinacreator.springboot.entity;
/**
* @author hua.tang
*
* @version ʱ䣺2021-9-1 12:30:15
*
* ˵
*/
public class UserBean {
private String userName;
private String userId;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = use... | true |
23a77a63a6be08ce36c7eed80a64a2382533fc1c | Java | johnlin0228/30_Days_of_Code_Hackerrank | /Day 6/Let_Us_Review.java | UTF-8 | 881 | 3.640625 | 4 | [] | no_license | import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
/*
* Enter your code here. Read input from STDIN. Print output to STDOUT. Your
* class should be named Solution.
*/
Scanner sc = new Scanner(System.in);
int N =... | true |
aab663c008f90ebb7af4f7ea0ae0c237af867112 | Java | mkwert/github-upload | /src/Model/LedgerItem.java | UTF-8 | 1,399 | 2.84375 | 3 | [] | no_license | /*
*/
package Model;
import java.util.ArrayList;
/**
*
* @author melis
*/
public class LedgerItem extends Transaction implements Printable
{
private String account;
ArrayList <String> ledgerItemNames;
public LedgerItem (Date d, String n, Category c, double am, String ac)
... | true |
3953e5d2f694a3e8698ea89249804aca8b245e3d | Java | bdionne/evs-history | /src/main/java/gov/nih/nci/evs/EVSHistoryTableModel.java | UTF-8 | 2,623 | 2.203125 | 2 | [] | no_license | package gov.nih.nci.evs;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.server.http.messages.History;
import org.semanticweb.owlapi.model.OWLOntology;
public class EVSHistoryTableMod... | true |
8e0e0448f6d4562f350f3508e9d6fca420369568 | Java | MarianMacik/quarkus-startstop | /testsuite/src/it/resources/JSONtoEnum.java | UTF-8 | 3,357 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 Contributors to the Quarkus StartStop project
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the Lic... | true |
787c141e7e1dc82b8beebb4e70903ede082d5cd5 | Java | nileshthummar/Android | /watchback-android/WatchBackApp/src/main/java/com/watchback2/android/viewmodels/InterestsViewModel.java | UTF-8 | 6,724 | 1.96875 | 2 | [] | no_license | package com.watchback2.android.viewmodels;
import android.content.Context;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.ObservableBoolean;
import androidx.databinding.ObservableField;
import com.perk.request.auth.AuthAPIRequestControll... | true |
97a008e1b142451f54c223ff6cef8ff40bf01df9 | Java | limeiyin1/helloword | /Blog/src/main/java/com/red/Dao/UserDao.java | UTF-8 | 226 | 2 | 2 | [] | no_license | package com.red.Dao;
import org.springframework.stereotype.Repository;
import com.red.Pojo.User;
@Repository
public interface UserDao {
public User selectByUsername(User user);
public void insertUser(User user);
}
| true |
f3ee2d5a4acecd8b3d415a246ce4a68e89351e28 | Java | mcanterb/SC2TerranGA | /src/org/sc2sim/commands/GatherGas.java | UTF-8 | 1,397 | 2.5625 | 3 | [] | no_license | package org.sc2sim.commands;
import java.util.ArrayList;
import org.sc2sim.Action;
import org.sc2sim.Command;
import org.sc2sim.StarcraftWorld;
import org.sc2sim.Unit;
import org.sc2sim.commands.GatherGas.GatherGasAction;
import org.sc2sim.units.Refinery;
public class GatherGas implements Command {
public static f... | true |
4c65d49c2310e7d11f99651da0e1ebde1db3666b | Java | tonychiu25/TokyoMetroAppProtoType | /src/com/example/myapp/DisplayMessageActivity.java | UTF-8 | 1,090 | 2.421875 | 2 | [] | no_license | package com.example.myapp;
import android.app.Activity;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class DisplayMessageActivity extends ListActivity {
@Override
public void onCreate(Bundle... | true |
11403aa4ae26dbfb542540551196092683404d74 | Java | GuilhermeSantannape/TrabalhoAlgaritimos2 | /src/ImportaCSV.java | UTF-8 | 1,056 | 2.765625 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
public class ImportaCSV {
static int tam=10;
static Pessoas contato[]=new Pessoas[tam];
private static File csv = new File("arquivo.csv");
static void ... | true |
9888ac636ea845e6c1e627fbca6a2c3740689c8d | Java | AlvaroSebastian98/CPS-20191-G1 | /src/main/java/com/tecsup/lab10/CPS_20191_G1/Suma.java | UTF-8 | 244 | 2.734375 | 3 | [] | no_license | package com.tecsup.lab10.CPS_20191_G1;
public class Suma {
/**
* Método para sumar
* @param num1
* @param num2
* @return
*/
public int sumar(int num1, int num2) {
int res = num1 + num2;
return res;
}
}
| true |
74c758e86ba325444e08a1f0c76be5cbef1c7ea3 | Java | baobao555/JavaFoundation | /DesignMode/src/designmode/singleton/SingletonTest.java | UTF-8 | 609 | 2.828125 | 3 | [] | no_license | package designmode.singleton;
public class SingletonTest {
public static void main(String[] args) {
long start = System.currentTimeMillis();
for (int i=0;i<100000000;i++){
// SingletonHurry instance = SingletonHurry.getInstance();
SingletonLazy instance = SingletonLazy.getInstance();
// SingletonLazyDoubl... | true |
07456a2e1ad7a601075d55ede52ffa0d73fb8b1f | Java | kchhipa4u/core-java-practice | /src/com/kan/fundamentals/TestCompare.java | UTF-8 | 458 | 2.734375 | 3 | [] | no_license | package com.kan.fundamentals;
import java.util.ArrayList;
import java.util.List;
public class TestCompare {
/**
* @param args
*/
public static void main(String[] args) {
Student student = new Student();
List<Student> studs = student.addStudents();
Employee emp = new Employee();
List<Employee> emps ... | true |
3353a3bb249c3d669bd8cfe3edd7eb9ecf85ee00 | Java | cooker/msg-bus | /server/src/main/java/com/cooker/msgbus/server/NettyChannelHandler.java | UTF-8 | 937 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.cooker.msgbus.server;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
/*
* 版权:
* 创建者: ykq
* 创建时间: 2018/09/07 下午4:46
* 功能描述:
* 修改历史:
*/
public class NettyChannelHandler extends ChannelInboundHandlerAdapter {
private NettyServer nettyServer;... | true |
f1c4934461adeb1e0f28d75397c4bbf1d1bd43cb | Java | bobskay/log-collector | /base-parent/base-toolkits/src/main/java/wang/wangby/utils/dao/model/TableInfo.java | UTF-8 | 541 | 2.3125 | 2 | [] | no_license | package wang.wangby.utils.dao.model;
import lombok.Data;
import wang.wangby.annotation.Remark;
import java.util.List;
@Data
@Remark("表信息")
public class TableInfo {
@Remark("表名")
private String tableName;
@Remark("表注释")
private String tableComment;
@Remark("对应数据信息")
private DatabaseInfo databaseInfo;
@Remark(... | true |
b063369eb9e767ec1ec7ac25867f89ee60b03303 | Java | lijonathan/Coding-Challenges | /Medium/Course_Schedule_II.java | UTF-8 | 5,374 | 3.859375 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Stack;
public class Course_Schedule_II {
/*
Rating: Medium
There are a total of n courses you have to take labelled from 0 to n - 1.
Some courses may have prerequisites, for example, if prerequisites[i] = [ai, bi]
this means you must take the cour... | true |
92baf2bb498c3ebd2052b08655129802d18e5710 | Java | satpreetsingh/182mainproject | /Final_Build/Development_Code/TwoPointShapeFactory.java | UTF-8 | 725 | 2.9375 | 3 | [] | no_license | import java.awt.*;
import java.io.Serializable;
import java.util.UUID;
/**
* An interface defining a class for creating TwoPointShape objects.
* @author bmhelppi
*
*/
interface TwoPointShapeFactory extends Serializable{
/**
* Creates an instance of a TwoPointShape.
* @param xOne X position.
*... | true |
8327e28840e0589c04c7eb7ca92b89ba4faaae4e | Java | hexingtong/Yuerfei | /src/main/java/com/springmvc/service/impl/GoodsDetailServiceImpl.java | UTF-8 | 738 | 2 | 2 | [] | no_license | package com.springmvc.service.impl;
import com.springmvc.mapping.GoodsDetailMapper;
import com.springmvc.pojo.GoodsDetail;
import com.springmvc.service.GoodsDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @ClassName GoodsDetailService... | true |
260fbfa9b0d107668b0ead39d7d40eb95ad43599 | Java | Xceptance/neodymium-example | /src/test/java/posters/pageobjects/pages/browsing/NoHitsPage.java | UTF-8 | 1,189 | 2.21875 | 2 | [
"MIT"
] | permissive | package posters.pageobjects.pages.browsing;
import static com.codeborne.selenide.Condition.exist;
import static com.codeborne.selenide.Selenide.$;
import com.xceptance.neodymium.util.Neodymium;
import io.qameta.allure.Step;
public class NoHitsPage extends AbstractBrowsingPage
{
@Override
@Step("ensure th... | true |
d000783b249b90b551b858c2c73c389d2710e569 | Java | emerinohdz/mirna-traps | /miroculus-mrna-rest/src/test/java/Start.java | UTF-8 | 4,670 | 2.28125 | 2 | [
"Artistic-2.0"
] | permissive |
import java.io.File;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.Properties;
import org.eclipse.jetty.http.ssl.SslContextFactory;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.bio.SocketConnector;
import org.eclipse.jetty.server.ssl.SslSocketConnector;
impor... | true |
374fa2d0e6503a52475305bed37de281e0837c66 | Java | cx265/mye | /Mybatis/src/com/cx/carl/test4/Test4.java | UTF-8 | 712 | 2.296875 | 2 | [] | no_license | package com.cx.carl.test4;
import java.io.IOException;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import com.cx.carl.bean.Order;
import com.cx.carl.util.MybatisUtils;
/*
* 测试: 解决字段名与实体类属性名不相同的冲突
*/
public class Test4 {
public static void main(String[] args)... | true |
9c01cdae110afb725ee99b16c9ef78152c5adfb0 | Java | maybew/Yuemu | /yuemu/src/yuemu/data/io/DatabaseData.java | UTF-8 | 1,702 | 2.171875 | 2 | [] | no_license | package yuemu.data.io;
import java.io.Serializable;
import java.util.List;
import yuemu.core.Debug;
import yuemu.po.Account;
import yuemu.po.Document;
import yuemu.po.Image;
import yuemu.po.Music;
import yuemu.po.Resource;
import yuemu.po.Video;
public class DatabaseData implements Serializable {
private static fi... | true |
8e59d20ee6ee8f1a74281faadba94930db9a28bd | Java | spacecowboy1310/barJEGO | /BarBestial/src/barJEGO/Mofeta.java | UTF-8 | 285 | 1.546875 | 2 | [] | no_license | package barJEGO;
public class Mofeta extends Karta{
public Mofeta(int pId,int pKolorea) {
super("Mofeta",pId,pKolorea,(""),true,1,null,null,new KaleratuBiGogorrenak());
}
public void animalada(){
}
public void errekurrentea(){
this.animalada();
}
}
| true |
febc542eba4e2052daf24f2709d56e4fe80afec3 | Java | azjaehyun/back-end | /src/test/java/com/example/demo/controller/DemoControllerTest.java | UTF-8 | 464 | 1.679688 | 2 | [] | no_license | package com.example.demo.controller;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
public class DemoControllerTest {
@Autowire... | true |
465b8c522f9fa40e2f1df61d87ba5965c7e24d97 | Java | wkgcass/vproxy | /core/src/main/java/io/vproxy/vswitch/node/EthernetInput.java | UTF-8 | 8,526 | 2.21875 | 2 | [
"MIT"
] | permissive | package io.vproxy.vswitch.node;
import io.vproxy.base.util.ByteArray;
import io.vproxy.base.util.Consts;
import io.vproxy.base.util.Logger;
import io.vproxy.commons.graph.GraphBuilder;
import io.vproxy.vfd.IP;
import io.vproxy.vfd.MacAddress;
import io.vproxy.vpacket.AbstractIpPacket;
import io.vproxy.vpacket.Abstract... | true |
fb05dea2f2e9efbe412f0dee5587002713584490 | Java | shinegwp/CattleNet | /cattlenet/src/sword_finger_offer/Merge.java | UTF-8 | 1,981 | 3.609375 | 4 | [] | no_license | package sword_finger_offer;
/**
* @time 18.4.4
* @author 高位鹏
* @describe 输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。
* 运行时间:15ms
* 占用内存:9340k
*/
import utils.ListNode;
public class Merge {
/**
* @describe
* @param list1
* @param list2
* @return
*/
// public ... | true |
cc67ef87831eaf9a0b2c131013bb809492fed723 | Java | Logi2110/String | /StringJTP/src/package3/StringMethod5.java | UTF-8 | 2,358 | 3.765625 | 4 | [] | no_license | package package3;
public class StringMethod5
{
public static void main(String[] args)
{
String s ="this is my game. this is my rule";
String s1=" my name is logi ";
String s2="I Am Villian";
// string.toLowerCase() && string.toUpperCase()
System.out.println("////string.toLowerCase() && st... | true |
de03c6653c4d84003d2de285a27d5d9dcb602e99 | Java | malyabanta/DS | /DataStructure/src/main/java/HashMapImplementation/HashMapImplementation.java | UTF-8 | 2,457 | 3.546875 | 4 | [] | no_license | package HashMapImplementation;
public class HashMapImplementation<T,T1> {
int capacity = 16;
mapEntry mapArray[] = new mapEntry[capacity];
public int GetHashCode(T Key)
{
return Key.hashCode();
}
public void put(T Key , T1 Value) {
mapEntry node = new ma... | true |
532c01cab9df443da1d43f27066b13bdded44437 | Java | Anjineyulu/mybudget0123 | /src/org/fortytwo/developers/mybudget0123/server/data/PMF.java | UTF-8 | 358 | 1.6875 | 2 | [] | no_license | package org.fortytwo.developers.mybudget0123.server.data;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;
public final class PMF {
private static final PersistenceManagerFactory pmfactory = JDOHelper.getPersistenceManagerFactory("transactions-optional");
public static PersistenceManagerFac... | true |
3e4e1a6e79409ae7dcc50c2bd2165f77e2fc819b | Java | ylu6/MultiThreadingTest | /Study/src/SynchronizedDemo.java | UTF-8 | 1,123 | 3.765625 | 4 | [] | no_license | /**
* Created by yeqing on 9/4/2017.
*/
public class SynchronizedDemo {
synchronized void print1(int n) {
try {
for (int i = 1; i < n; i++) {
System.out.println("print1: " + i);
Thread.sleep((int)(Math.random()*500));
}
} catch (InterruptedEx... | true |
f27b59d76e1b7bd32d106bd0ab796f1160c5bc2d | Java | GenZVirus/Hexy2 | /src/main/java/com/genzvirus/hexy2/MainActivity.java | UTF-8 | 14,154 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.genzvirus.hexy2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.pm.ActivityInfo;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.View;
im... | true |
731f41ce160cd5434a6c736c0d130806ddbe2ef8 | Java | hafeezali/glass-assistant | /Server/src/CaptionServer.java | UTF-8 | 4,893 | 3.03125 | 3 | [] | no_license | import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class CaptionServer {
private Socket socket = null;
private ServerSocket serverSocket = null;
private InputStream inputStream = null;
private byte[] imageBytes;
private Integer count = 0;
private String path = "/hom... | true |
725154ebc6de84a6e28aaac1ba362f76e1fc2166 | Java | NikitaBukreyev/UniDump | /I Курс/1 Семестр/Прога/Лаб.2/op_lab2.java | UTF-8 | 1,202 | 3.296875 | 3 | [] | no_license | import static java.lang.Math.*;
class Lab2 {
public static void main(String[] args) {
Variant9 var9 = new Variant9();
System.out.println("Variant #9, result = " + var9.solve());
Variant19 var19 = new Variant19();
System.out.println("Variant #19, result = " + var19.solve());
... | true |
fee367c362abd67bea60cf028fec80e1521250c7 | Java | vikasv5/Assignment1 | /src/main/java/com/mycompany/service/DealerService.java | UTF-8 | 1,930 | 2.265625 | 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.mycompany.service;
/**
*
* @author Vikas
*/
import com.mycompany.database.DatabaseClass;
import com.mycompany.model.Dea... | true |
17fa8befe888fd68edcd0e5cacbf58d139ac039f | Java | G4meM0ment/RPGEssentials | /src/me/G4meM0ment/Chaintrain/DataStorage/PlayerData.java | UTF-8 | 2,619 | 2.4375 | 2 | [] | no_license | package me.G4meM0ment.Chaintrain.DataStorage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import me.G4meM0ment.Chaintrain.Chaintrain;
import me.G4meM0ment.Chaintrain.Handler.PlayerHandler;
import me.G4meM0ment.RPGEssentials.RPGEssentials;
import org.bu... | true |
704f12848ff827726eb59662d3a65fc5f84502e8 | Java | jeahun/opensource | /Item.java | UTF-8 | 1,830 | 2.1875 | 2 | [] | no_license | package com.example.webview;
import java.io.File;
import java.util.List;
import android.os.Parcel;
import android.os.Parcelable;
public class Item implements Parcelable {
public String url;
public String realName;
public File downFile;
public String localPath;
public List<File> listDownFfile;
boo... | true |