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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7fcb6283ec25699c765f48b8997cd375dcd6bf2a | Java | loumac91/cfg_parser | /Parser.java | UTF-8 | 11,064 | 2.75 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import computation.contextfreegrammar.*;
import computation.parser.*;
imp... | true |
70260b49dc49d0895c2b66ce147291fd5665a1e7 | Java | ShimanWang/JZoffer | /src/com/examination/DiDi/Main2.java | UTF-8 | 1,184 | 3.234375 | 3 | [] | no_license | package com.examination.DiDi;
//输入第一行仅包含一个正整数n,表示原有魔法阵阵基的数量。(3<=n<=20000)
//输入第二行包含n个整数,第i个整数表示第i个阵基的威力v_i。(-10000<=v_i<=10000)
import java.util.Scanner;
public class Main2 {
public static void main(String[] args) {
// Scanner cin = new Scanner(System.in);
// int n = cin.nextInt();
// int[] ... | true |
11ea6cd6d1d8fbc628e46d69786f2e87213d3f84 | Java | stillping/mims_bakes | /app/src/main/java/uk/me/desiderio/mimsbakes/network/BakesRequestUtils.java | UTF-8 | 908 | 2.53125 | 3 | [] | no_license | package uk.me.desiderio.mimsbakes.network;
import java.util.List;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import uk.me.desiderio.mimsbakes.data.model.Recipe;
/**
* Util class for the HTTP request using Retrofit
*/
public class BakesRequestUtils {
... | true |
31d17d3c8c0cb4f6544759b0d97edb9aea929e81 | Java | AlexBahsler/30S | /QuadraticEquationProgram/src/quadraticequationprogram/QuadraticEquationProgram.java | UTF-8 | 1,216 | 3.15625 | 3 | [] | no_license | package quadraticequationprogram;
import javax.swing.JOptionPane;
/**
* QuadraticEquationProgram.java - description
*
* @author Alex Bahsler
* @since Sep. 25, 2019, 11:42:09 a.m.
*/
public class QuadraticEquationProgram {
/**
* @param args the command line arguments
*/
public static void main(... | true |
22886bfc857b6d58e28e6b904a1d2d53d9232b2e | Java | MichalSzewczyk/MyGuard | /app/src/main/java/com/guard/myguard/enums/DangerLevel.java | UTF-8 | 233 | 2.546875 | 3 | [] | no_license | package com.guard.myguard.enums;
public enum DangerLevel {
CHILL, GOOD, MEDIUM, HEIGHT, EXTREME, INCREDIBLE, HELL;
public static DangerLevel getEnumByIntValue(int value){
return DangerLevel.values()[value];
}
}
| true |
39ffe2f538fae5365e97ccfb1f3e1b7d1ae831b3 | Java | Rune-Status/sotr7-RS876 | /src/com/jagex/Class380_Sub3.java | UTF-8 | 3,080 | 1.96875 | 2 | [] | no_license | package com.jagex;
import com.jagex.Class225;
import com.jagex.Class243;
import com.jagex.InterfaceDef;
import com.jagex.Class298;
import com.jagex.Class380;
import com.jagex.Class384;
import com.jagex.Class389;
import com.jagex.Class394;
import com.jagex.RSByteBuffer;
import com.jagex.Class679;
import com.jagex.Class... | true |
f11a767c9533d996fd66cfb6564b42d8f2c09af0 | Java | nelsonRoberts1968/NewTurnerWeatherApp | /app/src/main/java/weatherapp/com/weatherapp/util/Utils.java | UTF-8 | 2,466 | 2.625 | 3 | [] | no_license | package weatherapp.com.weatherapp.util;
import android.content.Context;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import weatherapp.com.weatherapp.R;
/**
* Turner Cnn Weather app
*/
public abstract class Utils {
... | true |
b4e459f6e8399c41ac0d274786d890eb47e2fe25 | Java | JackyFen/thziot-lite | /app/src/main/java/com/hnhz/thziot/ui/activity/LocationActivity.java | UTF-8 | 4,382 | 2.03125 | 2 | [] | no_license | package com.hnhz.thziot.ui.activity;
import android.Manifest;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.support.v4.app.ActivityCompat;
import android.webkit.GeolocationPermissions;
import android.webkit.JsResult;
import android.webkit.WebChromeClient;
import android.webki... | true |
c53de084defde2efa21b9f02adaf30153a528b5b | Java | chemistor/LifeLine | /BackEnd/app/models/User.java | UTF-8 | 612 | 2.25 | 2 | [] | no_license | package models;
import java.util.UUID;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import com.avaje.ebean.Model;
import play.data.validation.Constraints;
@Entity
public class User extends Model {
@Id
public UUID user_id;
@Column(length = 256, unique = true, n... | true |
7a77c256411091b348ed8996cca60fb5b7619b16 | Java | kruu/GunGame | /src/main/java/de/pascalku/gungame/spawn/SpawnExtension.java | UTF-8 | 492 | 2.3125 | 2 | [] | no_license | package de.pascalku.gungame.spawn;
import lombok.Getter;
import lombok.Setter;
import org.bukkit.Location;
/**
* Created by Pascal on 30.07.2017.
*/
@Getter @Setter
public abstract class SpawnExtension {
private Double spawnSize;
private Location centerLocation;
public SpawnExtension(Double spawn_size... | true |
15819e03e81bae00187cdfefa13da16cb2e03d00 | Java | TaoSunkist/Aloha_Android_v2 | /app/src/main/java/com/wealoha/social/push/PushType.java | UTF-8 | 2,070 | 1.960938 | 2 | [] | no_license | package com.wealoha.social.push;
import com.wealoha.social.R;
public enum PushType {
/** 聊天消息 */
ALOHA_PUSH_Notification_New_Message_Text("ALOHA_PUSH_Notification_New_Message_Text",//
R.string.aloha_push_notification_new_message_text), //
ALOHA_PUSH_Notification_New_Message_Photo("ALOHA_PUSH_Notification_New_Me... | true |
c9040f3d72bb6ae3726c2e18bb8688fa8c67b552 | Java | mfeyziodabas/Java-Lernen | /Generics/src/Aufgabe1/mainPerson.java | UTF-8 | 734 | 3.28125 | 3 | [] | no_license | package Aufgabe1;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
public class mainPerson {
public static void main(String[] args) {
ArrayList<Person> liste = new ArrayList<>();
liste.add(new Person("Speiser", "Sebastian", 5));
liste.add(new Person("Rausch", "Alexa... | true |
d17772f07cd8e7a99a5d5ba2f78703ad1863061e | Java | MHRony15/Object_oriented_programing_and_design_method | /interfaceWithLambda/src/main/NumericTest.java | UTF-8 | 82 | 1.890625 | 2 | [] | no_license | package main;
public interface NumericTest {
boolean numberTest(int n);
}
| true |
f22080a329a75b0efd3f08b1be7e4011c4021d31 | Java | jdkluo/iFile | /src/cn/newer/utils/FileSort.java | GB18030 | 502 | 2.6875 | 3 | [] | no_license | package cn.newer.utils;
import java.io.File;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* ݽһ
* @author Administrator
*
*/
public class FileSort {
public static File[] sortFile(File[] files) {
List<File> listfile = Arrays.asList(files);
Collections.sort(listfile, new ... | true |
47e6f4f9ad54f568d63b8ff93df5bc35f18e1762 | Java | winedepot/pinot | /thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/dashboard/resources/v2/rootcause/MetricEntityFormatter.java | UTF-8 | 6,971 | 1.5 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"CC-PDDC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"CPL-1.0",
"CDDL-1.1",
"EPL-1.0",
"BSD-2-Clause",
"EPL-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 |
0c2922e9ce597c4445e7e0f4d27dd9ab29e5b8e1 | Java | ClaytonBrezinski/CS203-Complete | /Assignment 2/CS203A2Q2/src/cs203a2q2/CS203A2Q2.java | UTF-8 | 387 | 2.59375 | 3 | [
"MIT"
] | permissive | /*
Author: Clayton brezinski
Student id: 200220989
Class: CS203 A2
*/
package cs203a2q2;
/*
Purpose: to test the use of the ATM with multiple accounts attached to it
Notes
*/
public class CS203A2Q2
{
/**
@param args the command line arguments
*/
public static void main(String[] args)
{
... | true |
15caf5fc1e308e407547a9423c3fa1ac270641af | Java | NeiMeli/clase-21-01-2021-parte-2 | /src/MainTest.java | UTF-8 | 515 | 2.09375 | 2 | [] | no_license | import org.junit.jupiter.api.Test;
class MainTest {
@Test
void applyRadixSortCase1() {
final String[] result = Main.applyRadixSort(TestUtil.INT_UNSORTED_UNFILLED_1);
TestUtil.assertContainSameElements(TestUtil.STRING_SORTED_BY_DIGIT_FILLED_1, result);
}
@Test
void applyRadixSortCas... | true |
aff0ca5ae8832ef974ca88bf5e5553e56099a661 | Java | ushakoff/tst-rw | /src/main/java/rw/dao/DiscCodeDAO.java | UTF-8 | 379 | 1.992188 | 2 | [] | no_license | package rw.dao;
import java.util.List;
import rw.model.DiscCode;
public interface DiscCodeDAO {
public DiscCode getDiscCode(Integer id);
public List<DiscCode> getDiscCodesByUserId(Integer id);
public void addDiscCode(DiscCode discCode);
public void updateDiscCode(DiscCode discCode);
public void deleteDiscCo... | true |
a476d5915114e991f1691e492ffa4bb55701ece8 | Java | DaniduWijendra/futurex-web-api | /src/main/java/net/epiclanka/futurexwebapi/model/TestRequest.java | UTF-8 | 640 | 2.0625 | 2 | [] | no_license | package net.epiclanka.futurexwebapi.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class TestRequest {
private String AO;
private String AG;
public String getAO() {
return AO;
}
@JsonProperty("AO")
public void setAO(String AO) {
this.AO = AO;
}
p... | true |
980ac36589cc1621fec94fab7d61968322780509 | Java | Darulos/Dev02_4 | /FXMouse.java | UTF-8 | 415 | 2.9375 | 3 | [] | no_license | package Year_1.Dev02_4;
/*
A concrete implementation of IInputManager
Contains specific input logic of JavaFX
*/
public class FXMouse implements IInputManager {
public IOption<Point> click() {
//TODO: ADD MISSING CODE HERE
if (Mouse.isPressedLeft()) {
return new Some<>(new Point(Mou... | true |
a212dd2b43eab9c106a32460d1ac7e920e7d939d | Java | MdIliyasRaza/projectTODO | /class9/Text.java | UTF-8 | 494 | 3.15625 | 3 | [] | no_license | import java.io.*;
class Text{
public static void main(String[] args)
{
try{
/*File file=new File("C:\\Users\\user\\Desktop\\traning\\class8\\bbb.txt");
if(file.createNewFile()){
System.out.println("created");
}
else
System.out.println("exists");
*/
FileReader reader=new FileReader("C:\\Users\\user\\Desktop\\traning\\c... | true |
d88d4d8bb8fe9133610be7c93f4fe485247006b2 | Java | sultan113054/RxJava | /src/seventh_chapter/Windowing.java | UTF-8 | 1,383 | 3.421875 | 3 | [] | no_license | package seventh_chapter;
import io.reactivex.rxjava3.core.Observable;
import java.sql.Time;
import java.util.concurrent.TimeUnit;
public class Windowing {
public static void main(String[] args) throws InterruptedException {
/*Observable.range(1, 50)
.window(8)
.flatMapSing... | true |
2349a647727614a583279a4500dd1f38cee24a93 | Java | louisscruz/ElementsOfProgramming | /src/LinkedLists/LinkedListsTest.java | UTF-8 | 9,054 | 3.5 | 4 | [] | no_license | package LinkedLists;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import static org.junit.jupiter.api.Assertions.*;
import java.util.LinkedList;
import java.util.Arrays;
import java.util.List;
class LinkedListsTest {
@Nested
class mergeLin... | true |
8ee32bce4109841a5c991671163d5204eb5e144a | Java | P79N6A/parking | /zoeeasy-cloud-platform/zoeeasy-cloud-modules/zoeeasy-cloud-sys/zoeeasy-cloud-sys-api/src/main/java/com/zoeeasy/cloud/sys/auditlog/dto/AuditLogTypeGetRequestDto.java | UTF-8 | 524 | 1.59375 | 2 | [] | no_license | package com.zoeeasy.cloud.sys.auditlog.dto;
import com.scapegoat.infrastructure.core.dto.request.sign.SignedRequestDto;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* @date: 2019/2/22.
* @author:zm
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value... | true |
c695b8076b100d34ef3d443667c5863c8aa4e7ec | Java | nicolascian/car-tunning-experience-2008 | /src/test/TestImagenRueda.java | UTF-8 | 1,860 | 2.84375 | 3 | [] | no_license | package test;
import java.awt.FlowLayout;
import javax.swing.JFrame;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import vista.imagenTramo.*;
import vista.imagenRueda.*;
import java.awt.Dimension;
public class TestImagenRueda extends JFrame{
private BufferedIma... | true |
f00fb23f057cff316b304ee878f9393e33e13fa2 | Java | oliveira-joao/aaaaa | /Nova pasta/Aplicacao/aplicacao-smityandme/src/main/java/interfaces/Relatos.java | UTF-8 | 21,888 | 2 | 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 interfaces;
import conexao.ConexaoSmy;
import dominios.Funcionario;
import dominios.Relato;
import funcionamento.sistema.Gerad... | true |
a3f296447ee4afef1e1c845c46843eaf4d43580e | Java | agrimony/learn-web | /src/main/java/novel/model/Book.java | UTF-8 | 2,267 | 2.140625 | 2 | [] | no_license | package novel.model;
import java.util.Date;
public class Book {
private Integer id;
private String name;
private String desc;
private String img;
private Date createtime;
private Date updatetime;
private String author;
private String lastpagetitle;
priv... | true |
debc98cfeb386f0e9f757edf67588ef09cc4917a | Java | ZeRoOCen/graduation-project | /computermall-website/src/main/java/com/computermall/project/POJO/ChatMessage.java | UTF-8 | 966 | 2.75 | 3 | [] | no_license | package com.computermall.project.POJO;
import java.io.Serializable;
//浏览器(前端)发送给服务器(后端)的Websocket数据
public class ChatMessage implements Serializable {
private String toName; //保存要发送消息该哪个用户名
private String message; //保存要发送的消息内容
public ChatMessage() {
}
public ChatMessage(String toName, String me... | true |
5d56357b6e8da395be4410ab2dec5ef94963ba81 | Java | r13ljj/mqtt-push-server | /src/main/java/com/jonex/push/store/impl/IdentityAuthenticator.java | UTF-8 | 1,289 | 2.546875 | 3 | [] | no_license | package com.jonex.push.store.impl;
import com.alibaba.druid.pool.DruidPooledConnection;
import com.jonex.push.store.IAuthenticator;
import com.jonex.push.store.jdbc.DBConnection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
/**
* 身份校验类,该类的校验仅允许数据库中有的用户通过验证
*
* @Author jonex [r13ljj@gmail.com]
*... | true |
8644f02f46f66807a5d28904f44c9c5acd4e6292 | Java | salesforce/bazel-eclipse | /bundles/com.salesforce.bazel.sdk/src/com/salesforce/bazel/sdk/command/shell/UnixLoginShellFinder.java | UTF-8 | 991 | 2.5625 | 3 | [
"Apache-2.0",
"EPL-2.0"
] | permissive | package com.salesforce.bazel.sdk.command.shell;
import static java.lang.String.format;
import static java.nio.file.Files.readAllLines;
import java.io.IOException;
import java.nio.file.Path;
public class UnixLoginShellFinder {
public Path detectLoginShell() throws IOException {
return detectLoginShell(Sy... | true |
0d9c018b2d545af549f85866e5c924191c127f89 | Java | defectproject1923/DefectTracking | /src/acceltree/beans/model/Usermaster.java | UTF-8 | 656 | 1.96875 | 2 | [] | no_license | package acceltree.beans.model;
// Generated 26 Feb, 2016 12:22:10 PM by Hibernate Tools 3.4.0.CR1
/**
* Usermaster generated by hbm2java
*/
public class Usermaster implements java.io.Serializable {
private Integer idusermaster;
private String usertype;
public Usermaster() {
}
public Usermaster(String userty... | true |
87300eb6b8e87fff19ad518d27cd1e28f5ad08f8 | Java | digosf/projeto-turma-3003 | /_TowerDefense/src/Game/SceneManager.java | UTF-8 | 805 | 2.640625 | 3 | [] | no_license | package Game;
public final class SceneManager {
enum Scenes
{
OPENING,
MENU,
LEVEL01,
CONGRATS,
GAMEOVER
}
private static Scenes actualScene;
public static Scene scene;
private SceneManager()
{
}
public static void Setup()
{
actualScene = Scenes.MENU;
scene = ... | true |
0a8e4611d40a895357fb59bee06db74a455ae3ca | Java | flycows01/monitorsystem | /src/main/java/com/cidp/monitorsystem/mapper/IndexPortMapper.java | UTF-8 | 262 | 1.75 | 2 | [] | no_license | package com.cidp.monitorsystem.mapper;
import com.cidp.monitorsystem.model.IndexPortRelate;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface IndexPortMapper {
void addRelate(@Param("list") List<IndexPortRelate> list);
}
| true |
ec4442f2e0fd8d7fc8f527dd784b186414462930 | Java | WinKoKoNaing/PaperApp | /app/src/main/java/com/pecake/paper/categoryFragment/ReligiousFragment.java | UTF-8 | 566 | 1.890625 | 2 | [] | no_license | package com.pecake.paper.categoryFragment;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.Query;
import com.pecake.paper.Fragments.Fragment_CategoryLists;
import com.pecake.paper.Fragments.PostListFragment;
public class ReligiousFragment extends Fragment_CategoryLists {
... | true |
1a1def58625f136d00697549c29de6210a093259 | Java | weizy2018/Richer | /src/com/richer/block/BlockFactory.java | UTF-8 | 1,156 | 3.078125 | 3 | [] | no_license | package com.richer.block;
public class BlockFactory {
public Block createBlock(int blockId) {
switch(blockId) {
case BlocksId.MONEY_BLOCK:return new MoneyBlock();
case BlocksId.TRIP_BLOCK:return new TripBlock();
case BlocksId.SLIDE_BLOCK:return new SlideBlock();
case BlocksId.BAR_BLOCK:return new BarBloc... | true |
4712f304fe40170559c81eefcdbf3c86064d89ad | Java | tomaszrogalski/GWTP2 | /src/main/java/GWTP8/client/application/stronastartowa/StronaStartowaPresenter.java | UTF-8 | 1,345 | 1.8125 | 2 | [] | no_license | package GWTP8.client.application.stronastartowa;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.NameT... | true |
e345ddb62aaf54a1b7c6ea3a4c5da891f302b6a2 | Java | santajikadam12/java-programming | /primitive.java | UTF-8 | 159 | 1.976563 | 2 | [] | no_license | public class primitive {
public static void main(String[] args) {
double num = -432233889.9d;
System.out.println(num);
}
}
| true |
379b3ac3978fe9a42d1a920b64f6f6f21da9af28 | Java | littleshutong/leetcode | /src/main/java/com/mapbar/ParamException.java | UTF-8 | 281 | 2.125 | 2 | [] | no_license | package com.mapbar;
import java.util.concurrent.ExecutorService;
public class ParamException extends Exception {
public ParamException() {
}
/**
* 构造器,向上传递错误信息
*/
public ParamException(String info) {
super(info);
}
}
| true |
b27dcd3a0371ac39aa44f1a2262fa489e4454074 | Java | rj627/Physical-Simulations-Final | /Projects/N-Body Problem/src/Mass.java | UTF-8 | 931 | 3.1875 | 3 | [] | no_license |
public class Mass
{
private Vector pos;
private Vector vel;
private double mass;
public Mass() {pos = new Vector(0,0,0); vel = new Vector(0,0,0); mass = 0;}
public Mass(Vector pos1, double mass1) {pos = pos1; mass = mass1; vel = new Vector(0,0,0);}
public Mass(Vector pos1, Vector vel1, double mass1) {pos = po... | true |
cda75e2805720f5303389047585160b2bd47c9fa | Java | tianfei1943/plat | /src/test/java/redis/res/GetData4CacheResponse.java | UTF-8 | 318 | 1.789063 | 2 | [] | no_license | package redis.res;
import lombok.Getter;
import lombok.Setter;
/**
* 从缓存中获取对象josn字符串
* @author uatts990105
*
*/
@Getter
@Setter
public class GetData4CacheResponse extends BaseResponse {
private static final long serialVersionUID = -3074135919071734826L;
private String jsonObj;
}
| true |
950efcf44ba0ada78225289e2b6300bc8064815d | Java | CIearlove/javaExercises | /src/Chapter29/TaskThreadDemo.java | UTF-8 | 1,542 | 4.40625 | 4 | [] | no_license | package Chapter29;
public class TaskThreadDemo {
public static void main(String[] args) {
//Create tasks
Runnable printA = new PrintChar('a',10);
Runnable printB = new PrintChar('b',10);
Runnable print100 = new PrintNum(10);
//Create threads
Thread thread1 = new Thread(printA);
Thread th... | true |
1eba584a969631666036657601522804a480d0e6 | Java | clz619/sinno-concurrent | /src/test/java/win/sinno/concurrent/atomic/AtomicReferenceTest.java | UTF-8 | 1,164 | 3.15625 | 3 | [] | no_license | package win.sinno.concurrent.atomic;
import org.junit.Test;
import java.util.concurrent.atomic.AtomicReference;
/**
* atomic reference
*
* @author : admin@chenlizhong.cn
* @version : 1.0
* @since : 2017/6/7 14:10
*/
public class AtomicReferenceTest {
@Test
public void test() {
AtomicReference... | true |
e885d7908d528a4d9f076dd9bc6084c274a83c01 | Java | fjcarretero/spring-batch-jms-generic-slave | /batch-test/src/main/java/es/fcs/poc/NonValidatingContextLoader.java | UTF-8 | 730 | 1.921875 | 2 | [] | no_license | package es.fcs.poc;
import org.springframework.beans.factory.support.BeanDefinitionReader;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.test.context.support.GenericXmlContextLoader;
publi... | true |
be0cb9a9d16cb11b28d08c298ce56a28b2c054a7 | Java | OkThought/NSU-HTTPProxy | /src/ru/nsu/ccfit/bogush/net/http/parse/HTTPRequestHeadParser.java | UTF-8 | 4,701 | 2.375 | 2 | [] | no_license | package ru.nsu.ccfit.bogush.net.http.parse;
import ru.nsu.ccfit.bogush.net.http.HTTPRequest;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static ru.nsu.ccfit.bogush.net.http.Constants.*;
public class HTTPRequestHeadParser extends HTTP... | true |
c72e45b92cea821fecb73318a6a78a654abbad17 | Java | yuanbinbinbin/IPush | /core/src/main/java/com/yb/push/core/impl/oppo/OppoTranslucentActivity.java | UTF-8 | 1,547 | 1.992188 | 2 | [] | no_license | package com.yb.push.core.impl.oppo;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.yb.push.core.PushManager;
import com.yb.push.core.common.PushMessageBean;
import com.yb.push.core.common.PushPlatform;
import org.json.JSONObject;
... | true |
b2f6a263ff2aad052f6155d2473a01cdc1fde182 | Java | FranklinNEO/BeautyCamera2016 | /app/src/main/java/cn/poco/exception/MyApplication.java | UTF-8 | 8,663 | 1.578125 | 2 | [] | no_license | package cn.poco.exception;
import android.support.multidex.MultiDexApplication;
import com.adnonstop.beautyaccount.CallbackListener;
import com.adnonstop.beautyaccount.HttpRequest;
import com.adnonstop.beautyaccount.LoginConfig;
import com.adnonstop.beautyaccount.LoginConstant;
import com.adnonstop.beautyaccount.Requ... | true |
8c8a093c90714aabdb5b4c3fb9298187beecc438 | Java | Sculptura/AWF | /src/com/awf/model/orm/dbo/WFMaster.java | UTF-8 | 12,043 | 2 | 2 | [] | no_license | package com.awf.model.orm.dbo;
import java.util.Date;
public class WFMaster {
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column dbo.WFMaster.StepSequence
* @mbg.generated Fri Apr 12 12:46:47 IST 2019
*/
private String stepsequence;
/**
* This f... | true |
84e7e2d741e0e4f4d006dc476c21d1c79224f879 | Java | chanzhq/ssm | /src/test/java/com/mvc/moduel1/shiro/ShiroTest.java | UTF-8 | 3,216 | 2.46875 | 2 | [] | no_license | package com.mvc.moduel1.shiro;
import java.util.Arrays;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UnknownAccountException;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.authz.UnauthorizedException;
import org.apache.shiro.config.IniSecurityManagerFacto... | true |
f24ef9fca48d3aaffc6f7a29779f93ae24e1340f | Java | MrShadowalker/lego | /lego-parent/lego-common/src/main/java/entity/ChineseUtils.java | UTF-8 | 1,816 | 2.890625 | 3 | [
"MIT"
] | permissive | package entity;
import java.io.UnsupportedEncodingException;
import java.util.Random;
/***
*
* @author Shadowalker
* @Description:itheima
*
****/
public class ChineseUtils {
private static Random random = null;
private static Random getRandomInstance() {
if (random == null) {
random... | true |
d53700ffdbd11b9b5bed97b8cc0769b808b6621b | Java | BEAMS-EE/RISC16 | /RiSC16_asm/src/editor/Memoire.java | ISO-8859-1 | 14,047 | 2.40625 | 2 | [] | no_license | package editor;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import javax.swing.*;
import javax.swing.table.*;
/**
*
* @author ENGLEBIN Laurent
*/
public class Memoire extends JInternalFrame {
private static final long serialVersionUID = 2039310911158026524L;
protected JTab... | true |
6240bba5b71373297d4867a660c094694f7be12b | Java | seasarorg/cubby | /cubby-apps/cubbitter/src/main/java/org/seasar/cubby/cubbitter/action/SettingProfileAction.java | UTF-8 | 3,173 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.seasar.cubby.cubbitter.action;
import org.seasar.cubby.action.ActionResult;
import org.seasar.cubby.action.Forward;
import org.seasar.cubby.action.MessageInfo;
import org.seasar.cubby.action.OnSubmit;
import org.seasar.cubby.action.Path;
import org.seasar.cubby.action.Redirect;
import org.seasar.cubby.acti... | true |
4abec70f978272fce82d17c17daf8312035d9c1e | Java | SLEEP1NG/safari-cert-nov21 | /provder/src/spi/NameProvider.java | UTF-8 | 70 | 2.046875 | 2 | [] | no_license | package spi;
public interface NameProvider {
String getName();
}
| true |
378dbbd41ff6bf733e9a3f26205e43095b51cd3c | Java | TimeLordTTY/Investment | /src/main/java/com/ltyl/investment/service/impl/TAreaServiceImpl.java | UTF-8 | 499 | 1.65625 | 2 | [] | no_license | package com.ltyl.investment.service.impl;
import com.ltyl.investment.beans.TArea;
import com.ltyl.investment.mapper.TAreaMapper;
import com.ltyl.investment.service.TAreaService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* InnoDB free: 10240 kB... | true |
b6b656f772d3222e428c5d578d8d99c718c85f1b | Java | ridhap/ANDROID-REFERENCE-PROJECTS | /AndroidStudioProjectsReferences/images/Internship/app/src/main/java/com/example/internship/AddFaculty.java | UTF-8 | 5,712 | 2.359375 | 2 | [] | no_license | package com.example.internship;
import android.content.Intent;
import android.os.Bundle;
import android.util.Patterns;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.... | true |
d53d809ba4e5f3a687c22dba422f8991cc27a062 | Java | rsandaruwan/Event-Management | /src/util/CommonUtilEve.java | UTF-8 | 942 | 2.40625 | 2 | [] | no_license | package util;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import service.IEventService;
public class CommonUtilEve {
/** Initialize logger */
public static final Logger log = Logger.getLogger(IEventService.c... | true |
ebe2bcc8bf847bd4fdbe64093f5bd131f5c44667 | Java | gbenroscience/SimplerJackson | /src/com/itis/simpler/jackson/json/Converter.java | UTF-8 | 1,982 | 2.4375 | 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.itis.simpler.jackson.json;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonProcessingException;
import c... | true |
87843bb51a7a7a1b7581a923cbae9e51dae9670c | Java | kimberlyeslami/BAPERS-Project | /BAPERS_System/src/System_Package/Reader.java | UTF-8 | 4,581 | 3.125 | 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 System_Package;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io... | true |
712aa05a534bb9de0db9ebafcab53a69e08a44ec | Java | yuanzhengqiang/MIS-2017-04-21 | /MIS-2017-04-21/src/sbtj/enums/OlderAddress.java | UTF-8 | 441 | 2.390625 | 2 | [] | no_license | package sbtj.enums;
public class OlderAddress {
/**
* 居住地址
* */
public static final int LiveAddr = 0;
/**
* 户籍地址
* */
public static final int HouseAddr = 1;
/**
* 收信地址
*/
public static final int LetterAddr = 2;
public static int getLiveAddr() {
return LiveAddr;
}
public static int getHous... | true |
6ae175ba4da1bc289e1bbcfd4a4b09a02cab44c8 | Java | A203/LuHaiKong | /day01/Hello/src/browse/menu.java | GB18030 | 320 | 2.09375 | 2 | [] | no_license | package browse;
public class menu {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("1.1ѧ");
System.out.println("2.ʾȫѧ");
System.out.println("3.˳");
System.out.println("ѡ(1-3):");
}
}
| true |
8dde9b0c655b6171cc824d2ae58b728c2b0b19e6 | Java | kujin521/spring-quartz-test-demo | /src/main/java/spring/quartz/test/demo/DemoJobDetail.java | UTF-8 | 1,131 | 2.4375 | 2 | [] | no_license | package spring.quartz.test.demo;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;
/**
* demo job
*
* @author wangxiaohu
* @version $Id: DemoJobDetail.java, v 0.... | true |
7f0a19335f2d4654060dcf486074f76ff261ac5f | Java | itz63c/SystemUIGoogle | /sources/com/google/android/systemui/elmyra/sensors/Sensor.java | UTF-8 | 163 | 1.984375 | 2 | [] | no_license | package com.google.android.systemui.elmyra.sensors;
public interface Sensor {
boolean isListening();
void startListening();
void stopListening();
}
| true |
d42bc14049dcfae91d767a81fc220f34b62d8380 | Java | nexcra/wfwsample | /com/bccard/golf/dbtao/proc/admin/lesson/GolfAdmLessonUpdDaoProc.java | UHC | 7,677 | 1.96875 | 2 | [] | no_license | /***************************************************************************************************
* ҽ ߺī Դϴ.
* ҽ ϸ ó ֽϴ.
* Ŭ : GolfAdmLessonChgDaoProc
* ۼ : ()Ŀ´̼ ¿
* : α ó
* : golf
* ۼ : 2009-05-19
************************** ̷ ********************************************... | true |
80ba717a1b3a42356a1378022756161b314502fa | Java | Capotasto/LeetCode | /src/main/java/solution/RomanToInteger.java | UTF-8 | 2,207 | 3.859375 | 4 | [] | no_license | package solution;
/**
* Given a roman numeral, convert it to an integer.
* Input is guaranteed to be within the range from 1 to 3999.
*/
public class RomanToInteger {
private static final char I = 'I';//1
private static final char V = 'V';//5
private static final char X = 'X';//10
private static f... | true |
e95e5d66c4fd8c3994d8ae6c9809641c75b6028b | Java | AydinTokuslu/JAVA | /src/sorucozumleri_13_temmuz_2021/ODEV_soru10_string_manipulation.java | UTF-8 | 2,631 | 3.53125 | 4 | [] | no_license | package sorucozumleri_13_temmuz_2021;
import java.util.Scanner;
public class ODEV_soru10_string_manipulation {
public static void main(String[] args) {
/* Iki kisinin oynayacagi bir kelime oyunu uretelim
* Kurallar
* 1.Adım- Baslangicta 1.oyuncudan bir kelime girmesini isteyin ve kelimeyi yazdirin
... | true |
b48eabe371ac562e2d23766649433e0afcbfa240 | Java | dineshbias/coreJava | /ocp/src/main/java/ocp/Sorted.java | UTF-8 | 1,814 | 3.09375 | 3 | [] | no_license | package ocp;
import java.time.Period;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import java.util.function.Predicate;
import java.util.stream.Stream;
public class Sorted implements Comparable<Sor... | true |
fd24f238623d8e43be7ea36ea8f2b3236067ebc9 | Java | BGCX261/zkgwt-svn-to-git | /trunk/zkgwtdemo/gwtdemo/src/org/zkoss/gwt/client/testzk/TestcaseFlashchart.java | UTF-8 | 440 | 1.898438 | 2 | [] | no_license | package org.zkoss.gwt.client.testzk;
import org.zkoss.gwt.client.zul.fchart.Flashchart;
import org.zkoss.gwt.client.zul.wnd.Window;
import com.google.gwt.user.client.ui.Widget;
public class TestcaseFlashchart extends TestcaseWrapper {
public Widget getInstance() {
Window win = new Window();
/*
*... | true |
7dcf0525b0ea9a14c3e82a34c26b84ee320daf89 | Java | SecurisationSiteGVI/securisation-site-gvi | /src/metier/entitys/Evenement.java | UTF-8 | 2,202 | 2.359375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package metier.entitys;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationT... | true |
377a97f4880858a714eafa00d8fe96bde1afb11f | Java | meixsh/athena | /athena/src/main/java/athena/api/Boosting/GradientBoostedTrees/GradientBoostedTreesModelSummary.java | UTF-8 | 1,969 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package athena.api.Boosting.GradientBoostedTrees;
import athena.api.Indexing;
import athena.api.Marking;
import athena.api.classification.ClassificationModelSummary;
import org.apache.spark.SparkContext;
import org.apache.spark.mllib.tree.GradientBoostedTrees;
import org.apache.spark.mllib.tree.model.GradientBoostedTr... | true |
c4faebd2c557c5f507241220b3c12c00f6325a0c | Java | Helloxyw/PersonBlog | /src/test/java/com/blog/service/BloggerServiceTest.java | UTF-8 | 1,142 | 2.25 | 2 | [] | no_license | package com.blog.service;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.blog.dao.BloggerDao;
import com.blog.entity.Blogger;
/*... | true |
96d410f3091e0b1e772b02b61591930611ef413f | Java | openregister/openregister-java | /src/main/java/uk/gov/register/views/ViewFactory.java | UTF-8 | 5,196 | 1.90625 | 2 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | package uk.gov.register.views;
import org.jvnet.hk2.annotations.Service;
import uk.gov.register.configuration.HomepageContent;
import uk.gov.register.configuration.PublicBodiesConfiguration;
import uk.gov.register.configuration.RegisterDomainConfiguration;
import uk.gov.register.core.Entry;
import uk.gov.register.core... | true |
fbf7127b77b09984204b35eec7e340ce895041b8 | Java | dks2922/kookgi_9gi | /20200828_030/0828/src/kr/koreait/windowTest/WindowTest4.java | UTF-8 | 552 | 2.765625 | 3 | [] | no_license | package kr.koreait.windowTest;
import javax.swing.JFrame;
// JFrame 클래스를 상속받아 윈도우 만들기
public class WindowTest4 extends JFrame {
public WindowTest4() {
this("제목 없는 생성자");
}
public WindowTest4(String title) {
setTitle(title);
setBounds(800, 100, 400, 300);
setDefaultCloseOperation(JFrame.EXIT_O... | true |
0434931c16c88b3a8e478bed133c43906ecf6903 | Java | ddehtiarov/Booking-st4 | /.svn/pristine/f9/f9ed4bb3a96ade640801167ea78809124e6476f8.svn-base | UTF-8 | 1,369 | 2.53125 | 3 | [] | no_license | package ua.nure.degtuaryov.SummaryTask4.db.entity;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
public class ClientTest {
static Client client;
@BeforeClass
public static void setUpBeforeClass() throws Exception {
client = new Client();
}
@Test
public void testGe... | true |
adff9e4d75c30a894c1895d36d314b74daf8979e | Java | lazarevspb/Java_Architectures_and_Design_Patterns | /src/main/java/ru/lazarev/lesson5/strategy/service/OrderService.java | UTF-8 | 303 | 1.9375 | 2 | [] | no_license | package ru.lazarev.lesson5.strategy.service;
import ru.lazarev.lesson5.strategy.document.Order;
import ru.lazarev.lesson5.strategy.factories.Manager;
import java.util.List;
public interface OrderService {
Order getOrderById(Long id);
List<Order> getOrderByManager(Manager manager);
}
| true |
413c99fed672b0049000c8071be6ccf57c60ac50 | Java | hxxy2003/shangzhanbao | /MH_service/src/com/mini/pageMessageboard/data/PageMessageboardData.java | UTF-8 | 2,019 | 1.882813 | 2 | [] | no_license | package com.mini.pageMessageboard.data;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.itour.etip.pub.fra... | true |
005582035b3497b1b627d70184d5e0b61d3a5e88 | Java | ameron32/TheoProjects | /ConventionNotes/src/com/ameron32/tap/conventionnotes/scripture/ScriptureFinder.java | UTF-8 | 14,716 | 2.453125 | 2 | [] | no_license | package com.ameron32.tap.conventionnotes.scripture;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import android.content.Context;
import android.content.res.AssetManager;
import android.widget.T... | true |
b1ddb9b1e2141a43f6db1cfb08f23cdaf1e228b5 | Java | cha63506/AtoM-50 | /src/se/mah/k3/slagbrand/nicklas/ProvArrayClass.java | UTF-8 | 13,718 | 2.640625 | 3 | [] | no_license | package se.mah.k3.slagbrand.nicklas;
import java.util.ArrayList;
import java.util.Collections;
import android.text.Html;
public class ProvArrayClass {
ArrayList<Question> QUESTIONS = new ArrayList<Question>();
public ProvArrayClass(){
createQuestions();
// Skapa alla frågor
}
... | true |
a7d48f2fcbbac7b1b9887e20ad0f054ee1a755e9 | Java | Sotera/graphene-walker | /graphene-walker/graphene-walker-web/src/main/java/graphene/walker/model/funnels/WalkerEntityLightFunnel.java | UTF-8 | 2,465 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package graphene.walker.model.funnels;
import graphene.model.Funnel;
import graphene.model.idl.G_Entity;
import graphene.model.idl.G_Property;
import graphene.model.idl.G_PropertyTag;
import graphene.model.idlhelper.EntityHelper;
import graphene.model.idlhelper.PropertyHelper;
import graphene.model.view.entities.Entit... | true |
fdbb3b527c44b0ddfb55b7434e4415514d7118f0 | Java | david-alixar/daw1_programacion | /UD3/Entrega1/Ejercicio1/src/com/company/ej8.java | UTF-8 | 994 | 4.03125 | 4 | [] | no_license | package com.company;
import java.util.Scanner;
public class ej8 {
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
System.out.print("Introduzca un valor de n: ");
int n = teclado.nextInt();
teclado.nextLine();
System.out.println(n + " tiene " + div_primos(n) +... | true |
23d8b950ed008d181e392086ff17b27852d1b843 | Java | m4reko/soffan-group16-a2 | /app/src/main/java/ciserver/Repository.java | UTF-8 | 6,257 | 2.578125 | 3 | [] | no_license | package ciserver;
import java.io.File;
import java.io.IOException;
import java.lang.ProcessBuilder.Redirect;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import java.util.Map;
import org.apache.commons.i... | true |
a0f9ee166a4bbea18e0423a80befc409726c7d85 | Java | raja1438/test | /src/main/java/com/tfl/test/driver/manager/WebDriverManager.java | UTF-8 | 5,568 | 2.34375 | 2 | [] | no_license | package com.tfl.test.driver.manager;
import java.io.File;
import java.net.MalformedURLException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxBinary;
import or... | true |
ae6fb1ad3633280798882305c23b182c55813e52 | Java | danilomeneghel/api-simulador-elo | /src/test/java/br/com/elo/service/MensagemISO8583ServiceTest.java | UTF-8 | 15,814 | 1.875 | 2 | [] | no_license | package br.com.elo.service;
import br.com.elo.common.exception.ObjectNotFoundException;
import br.com.elo.common.exception.ParametroInvalidoException;
import br.com.elo.controller.util.DadosMockUtil;
import br.com.elo.domain.*;
import br.com.elo.domain.dto.request.*;
import br.com.elo.domain.dto.response.MensagemISO85... | true |
ff730b64d9909d008485ee1d67512c1e03476640 | Java | EvraamHany/e-learningAssessment | /backend/assessment/src/main/java/com/assessment/assessment/controller/StudentController.java | UTF-8 | 1,765 | 2.40625 | 2 | [] | no_license | package com.assessment.assessment.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.asses... | true |
7683fc26b5077ce2f5d68e23b0e29d9834b4c998 | Java | antonillos/springboot-course | /best-app-v5/src/main/java/com/bestapp/BestAppV5Application.java | UTF-8 | 321 | 1.523438 | 2 | [] | no_license | package com.bestapp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BestAppV5Application {
public static void main(String[] args) {
SpringApplication.run(BestAppV5Application.class, args);
}
}... | true |
e24aaf9fc1e739a9be1b5b404e2405d3a9d68164 | Java | mssodhi/soundbox | /src/main/java/app/web/domain/Analytics.java | UTF-8 | 1,949 | 2.171875 | 2 | [] | no_license | package app.web.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "analytics")
public class Analytics {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@JsonProperty
private Integer id;
@OneToOne
@J... | true |
ec1b206b96784de399e84d92aa17747701f4a85c | Java | TianYunZi/JavaTest14_Spring | /2.1.3.spring-bean-config-mix/src/test/java/chapter02/test/org/ImportXmlConfigTest.java | UTF-8 | 866 | 2.140625 | 2 | [] | no_license | package chapter02.test.org;
import chapter.practise.org.model.MediaPlayer;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.contrib.java.lang.system.SystemOutRule;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... | true |
2674b8b6ef9ee80c4483a83c1f09f2dffe07cd94 | Java | krystalics/RBooks | /backend/src/main/java/com/example/rbooks/backend/controller/ReadController.java | UTF-8 | 7,012 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.example.rbooks.backend.controller;
import com.example.rbooks.backend.entity.Book;
import com.example.rbooks.backend.entity.BookRepository;
import com.example.rbooks.backend.entity.Chapter;
import com.example.rbooks.backend.entity.ChapterId;
import com.example.rbooks.backend.entity.ChapterRepository;
import... | true |
c3d1e16eae52a730710ac73f38f47fa9a734c688 | Java | philipp94831/information-retrieval | /src/main/java/de/hpi/ir/yahoogle/index/BinaryCitationList.java | UTF-8 | 1,224 | 2.578125 | 3 | [] | no_license | package de.hpi.ir.yahoogle.index;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import de.hpi.ir.yahoogle.io.ByteReader;
import de.hpi.ir.yahoogle.io.ByteWriter;
import de.hpi.ir.yahoogle.util.merge.Mergeable;
public class BinaryCitationList
implements Comparable<BinaryCitationList... | true |
e27b376507ee905086ace2e80e1e6f943c996b70 | Java | angelaJelenkovich/OOP20-zelda-remake | /zeldaRemake/src/view/ViewObserver.java | UTF-8 | 554 | 2.578125 | 3 | [] | no_license | package view;
public interface ViewObserver {
/**
* inserimento nodi per la grafica
*/
void newGame();
/**
* risposta alla pressione tasto W
*/
void upPressed();
/**
* risposta alla pressione tasto D
*/
void rightPressed();
/**
* risposta alla pressione tasto A
... | true |
7529c37d131abdf42a9c57d6a5f9c82a3ee94bea | Java | aghilmort/swim | /src/main/java/swim/sim/uwswarm/intelli/brain/struct/bio/EmotionalSBAreas.java | UTF-8 | 442 | 1.6875 | 2 | [
"MIT"
] | permissive | /*
* 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 swim.sim.uwswarm.intelli.brain.struct.bio;
/**
*
* @author Sherif
*/
public enum EmotionalSBAreas {
POWERFU... | true |
88b11166e706445c744f3ccd6932f07a1454a541 | Java | groupoflittletrashfish/rabbitmq_component | /rabbit_api/src/main/java/com/noname/api/Message.java | UTF-8 | 1,065 | 2.171875 | 2 | [] | no_license | package com.noname.api;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* @author :liwuming
* @date :Created in 2021/5/24 16:30
* @description :
* @modified By:
* @version:
*/... | true |
563efe9ab3c8a0d35caf405228eac756e72625c1 | Java | ashutosh8649/all | /subscribe-database-service/src/main/java/com/offershopper/subscribedatabaseservice/database/SubscribeRepository.java | UTF-8 | 707 | 1.929688 | 2 | [] | no_license | package com.offershopper.subscribedatabaseservice.database;
import java.util.List;
import java.util.Optional;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.offershopper.subscribedatabaseservice.model.SubscribeBean;
public interface SubscribeRepository extends MongoRepository<Subscri... | true |
cbb2ea923cde9061a5a47219a206a296c0e96cda | Java | thelong0705/BuildTheWall | /src/EnemyMoveStrategy/EnemyMoveCrossBehaviour.java | UTF-8 | 260 | 2.296875 | 2 | [] | no_license | package EnemyMoveStrategy;
import GameModels.EnemyModel;
/**
* Created by Inpriron on 3/20/2017.
*/
public class EnemyMoveCrossBehaviour extends EnemyMoveBehaviour {
@Override
public void move(EnemyModel model) {
model.moveCross();
}
}
| true |
6b10bea999ebf5e593adb916d74a82b97a02a3a6 | Java | ropi59/WorldOfJava | /src/Interfaces/IAttack.java | UTF-8 | 51 | 1.648438 | 2 | [] | no_license | package Interfaces;
public interface IAttack {
}
| true |
463352dafb1d0b89a70b8dbea6b2dabe4cc7f4a5 | Java | maoyuching/readable_code | /src/no_1_surface_improvements/No4_AboutComment.java | UTF-8 | 988 | 3.59375 | 4 | [] | no_license | package no_1_surface_improvements;
public class No4_AboutComment {
/*
comment , is to make reader easier!
* */
// 一眼能看出来的函数,不需要注释,比如这里的构造函数,不需要专门注释
public No4_AboutComment() {
}
final int MAX_NUM_APPLES = 5;// the max num of apples that a man can eat
// comment a line for final val ... | true |
60954a6868c9c842ddb4207af4066b4057a7cf35 | Java | Adms1/ClassSafari | /app/src/main/java/com/adms/searchclasses/Fragment/TeacherProfileFragment.java | UTF-8 | 21,926 | 1.898438 | 2 | [] | no_license | package com.adms.searchclasses.Fragment;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.Fragmen... | true |
ad8fecd60b4352ba6e82dd1d00e18a0a8321177b | Java | deniztas/Plaxo-Scheduler-App | /app/src/main/java/com/example/deniz/plaxo2/model/Contact.java | UTF-8 | 1,282 | 2.53125 | 3 | [] | no_license | package com.example.deniz.plaxo2.model;
import com.orm.SugarRecord;
public class Contact extends SugarRecord {
private int contactId;
private String contactName;
private String phoneNumber;
private String nameTitle;
private String companyName;
// Default constructor is important!
public ... | true |
1627004695e7e48759fb4a9d9e9eba7344e06fda | Java | william11zhu/Learn | /Algorithm/src/com/learn/offer/sort/QuickSort.java | UTF-8 | 1,628 | 3.5625 | 4 | [] | no_license | package com.learn.offer.sort;
import java.util.Random;
public class QuickSort {
public <T extends Comparable<T>> int partition(T[] data,int start,int end,int length) throws Exception{
if(data == null || start < 0 || end > length || length <=0){
throw new Exception("Invalid parameters");
}
Random ra... | true |
de4d25301059bc4bf7c183bdb405ec8848c42240 | Java | ariadnamtzbravo09/papeleria-Java | /src/papeleria_completo/Proveedores.java | UTF-8 | 21,015 | 2.53125 | 3 | [] | no_license |
package papeleria_completo;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
/**
*
* @author Ariadna
*/
public class Proveedores extends javax.swing.JFrame {
DefaultTableModel modelo;
/**
* Creates new form Proveedores
*/
public Proveedores() {
initComponents... | true |
c5a4394beea50938ff4dcac617a0b43181227c06 | Java | Ret-Mode/android | /android/testSrc/com/android/tools/idea/logcat/AndroidLogcatFormatterTest.java | UTF-8 | 5,467 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
310eac7811c1d6e7f716b7c80bcc1ddc6a2aed18 | Java | mridul122/MyProject | /src/test/java/tooltip/ToolTip.java | UTF-8 | 1,380 | 2.4375 | 2 | [] | no_license | package tooltip;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
public class ToolTip {
public static voi... | true |