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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
60f3d9e78a2c340d8d981ba9e5d68849579d0d6e | Java | a775430/hellow-world | /aaae/src/Main.java | UTF-8 | 387 | 3.234375 | 3 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int x = scn.nextInt();
if(x < -1){
System.out.println(3*x*x);
}else if(x > 1){
System.out.println(2*x+3);
}else{
... | true |
91289facb4fc9d65e00bcac613c6b9fcc28cbdb4 | Java | aiperibaizakova/selectrix4java | /test/src/test/java/net/wbz/selectrix4java/test/MockTestDevice.java | UTF-8 | 1,856 | 2.53125 | 3 | [] | no_license | package net.wbz.selectrix4java.test;
import net.wbz.selectrix4java.api.bus.AllBusDataConsumer;
import net.wbz.selectrix4java.api.device.Device;
import net.wbz.selectrix4java.api.device.DeviceAccessException;
import net.wbz.selectrix4java.api.device.DeviceConnectionListener;
import org.junit.Assert;
import org.junit.Te... | true |
80f3a1b1ac49f0c9bfd752e374ba65e18bfc49c8 | Java | yuanyukun/IIE | /app1/src/main/java/com/horem/parachute/adapter/HomeTipsRecyclerViewAdapter.java | UTF-8 | 2,489 | 2.09375 | 2 | [] | no_license | package com.horem.parachute.adapter;
import android.content.Context;
import android.location.Location;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.chauthai.swipereveallayout.SwipeRevealLayou... | true |
270030e587462701eba3b238ba42c38bb706e4eb | Java | Judahh/SistemasDistribuidos | /ZipComp/src/Serial/SerialCompactor.java | UTF-8 | 1,774 | 2.6875 | 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 Serial;
import Compactor.Compactor;
import Compactor.GenericCompactor;
import info.BasicInfo;
import java.io.File;
import java... | true |
76037e642f2bf56c07001db8ffeef1e9118e3751 | Java | house-ingetrac/CarryOnWaywardCode | /EtC/Woo.java | UTF-8 | 3,624 | 3.140625 | 3 | [] | no_license | import cs1.Keyboard;
public class Woo{
private int money = 100;
public boolean slotsKill = false;
public boolean rouletteKill = false;
public boolean blackjackKill = false;
public boolean allKill = false;
public static int burgerBought = 0;
private int counter = 0;
//amount can be... | true |
575ab5b7d0d91edb7330c55a1a8248ab30f44f60 | Java | JavaQualitasCorpus/pooka-3.0-080505 | /net/suberic/util/PreferencesVariableBundle.java | UTF-8 | 3,839 | 2.8125 | 3 | [] | no_license | package net.suberic.util;
import java.util.*;
import java.util.prefs.*;
/**
* An implementation of VariableBundle that uses a java.util.pref.Preferences
* package backend.
*/
public class PreferencesVariableBundle extends VariableBundle {
private Preferences mPreferences;
public PreferencesVariableBundle(Cla... | true |
b2beffeb0cb11f929f0875184ff7b6dfe129f4de | Java | LiangMaYong/block-for-android | /androidblock/src/main/java/com/liangmayong/androidblock/base/interfaces/ICloseFragment.java | UTF-8 | 237 | 1.789063 | 2 | [
"MIT"
] | permissive | package com.liangmayong.androidblock.base.interfaces;
import com.liangmayong.androidblock.base.BlockFragment;
public interface ICloseFragment {
void close(BlockFragment fragment, boolean back);
void show(BlockFragment fragment);
}
| true |
62cf45ed8905db4ae792729d405c87e3026a9d0a | Java | WaiKim/HospitalManagerSystem | /src/main/java/cn/edu/dgut/controller/ProviderController.java | UTF-8 | 7,661 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package cn.edu.dgut.controller;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.anno... | true |
9b27764deea984773554c1f55f9dca611f214e2e | Java | SiwekKarol/Zadanie3.0 | /src/Televisor.java | UTF-8 | 382 | 3.109375 | 3 | [] | no_license | public class Televisor {
private boolean enabled;
public void turnOn() {
enabled = true;
}
public void turnOff() {
enabled = false;
}
public void showStatus() {
if(enabled) {
System.out.println("Telewizor jest włączony");
} else {
System.o... | true |
eb7b2929ce2c8284342004dda57c3f4bb8c7d11d | Java | OlegAryukov/TestAboutPatterns | /src/main/java/ru/aryukov/model/food/japanees/SimpleSushi.java | UTF-8 | 286 | 2.328125 | 2 | [] | no_license | package ru.aryukov.model.food.japanees;
import ru.aryukov.interf.Food;
/**
* Created by oaryukov on 11.10.2016.
*/
public class SimpleSushi implements Food {
public int getPrice() {
return 300;
}
public String getInfo() {
return "Simple Sushi";
}
}
| true |
d75044dacab8ed22c3c395f365c06428ec4f5276 | Java | antoniosilva9116/BacfWebApp | /BacfWebApp/src/java/Persistence/Entities/VoluntarioMaterialPK.java | UTF-8 | 2,758 | 2.515625 | 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 Persistence.Entities;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import ja... | true |
cde7c703fa4f76debb5c212933d598106fe1b266 | Java | wavefrontHQ/wavefront-proxy | /proxy/src/main/java/com/wavefront/agent/auth/TokenAuthenticatorBuilder.java | UTF-8 | 3,131 | 2.59375 | 3 | [
"Apache-2.0",
"CC0-1.0",
"GPL-2.0-or-later",
"Apache-1.1",
"CDDL-1.1",
"bzip2-1.0.6",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"LGPL-3.0-only",
"EPL-2.0",
"CDDL-1.0",
"CC-PDDC",
"LicenseRef-scancode-unknown-license-reference... | permissive | package com.wavefront.agent.auth;
import org.apache.http.client.HttpClient;
/**
* Builder for {@link TokenAuthenticator} instances.
*
* @author vasily@wavefront.com
*/
public class TokenAuthenticatorBuilder {
private TokenValidationMethod tokenValidationMethod;
private HttpClient httpClient;
private String ... | true |
bbea9d3807e1af70c4178fc74440d4685b40b6f3 | Java | rmclaren77/ExternalSorting | /src/MergeSort.java | UTF-8 | 14,510 | 3.28125 | 3 | [] | no_license |
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.util.LinkedList;
/**
*
* @author rmclaren swooty97
* @version 4.2.19 This class handles the Mergesort part of the sorting. It
* takes in 8 runs at a time and sorts them into one longer sorted r... | true |
49ece3a080158a526b8ccca89d440626fc911d70 | Java | tuxmonteiro/galeb2-router | /src/main/java/com/globo/galeb/collection/IndexedMap.java | UTF-8 | 4,467 | 2.59375 | 3 | [
"LicenseRef-scancode-pcre",
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2014 Globo.com - ATeam
* All rights reserved.
*
* This source is subject to the Apache License, Version 2.0.
* Please see the LICENSE file for more information.
*
* Authors: See AUTHORS file
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Lice... | true |
4d0fd0fbb65666604074d61d9006902e3c10ae33 | Java | zxsn/JavaDevelopmentPracticeClassic | /src/com/java/development/thirteen_classset/collection_print/ForeachDemo.java | UTF-8 | 603 | 3.6875 | 4 | [] | no_license | package com.java.development.thirteen_classset.collection_print;
import java.util.ArrayList;
import java.util.List;
/*
*
* @ClassName: ForeachDemo
* @Description: 使用foreach输出
* @author Administrator
* @date 2018年11月5日
*
*/
public class ForeachDemo {
public static void main(Stri... | true |
d6dcfb41477b2933c36a5cbcb48fcd0e0cb9abb7 | Java | Mignet/rapid4j | /src/main/java/com/v5ent/rapid4j/web/controller/PermissionController.java | UTF-8 | 3,899 | 2.21875 | 2 | [] | no_license | package com.v5ent.rapid4j.web.controller;
import java.util.List;
import javax.annotation.Resource;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVari... | true |
5762d70b1f1dd74c132774244550507136a67152 | Java | frontiersmen/frontiersmen-server | /src/main/java/me/ericjiang/frontiersmen/Server.java | UTF-8 | 2,773 | 2.328125 | 2 | [] | no_license | package me.ericjiang.frontiersmen;
import static spark.Spark.*;
import java.security.GeneralSecurityException;
import com.google.gson.Gson;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import me.ericjiang.frontiersmen.config.DaggerFrontiersmen;
import me.ericjiang.frontiersmen.config.Fro... | true |
25591935dc3268f5950753777da7387465696890 | Java | alexj136/implicia | /src/main/java/net/alexjeffery/implicia/syntax/Expr.java | UTF-8 | 3,887 | 2.65625 | 3 | [] | no_license | package net.alexjeffery.implicia.syntax;
import net.alexjeffery.implicia.syntax.visitor.ExprVisitor;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.Nullable;
import org.antlr.v4.runtime.misc.Pair;
import java.math.BigDecimal;
import java.util.List;
public class Expr extends Ast {
publ... | true |
b8211dd731d8cda6be4b1140530e5c736670e39e | Java | rajsanka/studenttrack | /client/StudentTrack/app/src/main/java/xchg/online/studenttrack/OTPFragment.java | UTF-8 | 9,048 | 2.0625 | 2 | [] | no_license | package xchg.online.studenttrack;
import android.app.Activity;
import android.content.Context;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import andro... | true |
ede518db1ca9651f58a853081080e335c9e55bfd | Java | PetroPochynok/cars-project | /src/main/java/org/project/cars/controller/ExceptionController.java | UTF-8 | 1,891 | 2.375 | 2 | [] | no_license | package org.project.cars.controller;
import org.project.cars.entity.User;
import org.project.cars.exception.NoSuchResultException;
import org.project.cars.exception.NotEnoughMoneyException;
import org.project.cars.exception.UsernameAlreadyExistsException;
import org.project.cars.service.UserService;
import org.springf... | true |
9977289cbbf069e31bb7d8b379531b4b48794271 | Java | brayanmichel46/colegio-ws | /src/main/java/com/colegiows/rest/controllers/CursoController.java | UTF-8 | 218 | 1.523438 | 2 | [] | no_license | package com.colegiows.rest.controllers;
import org.springframework.web.bind.annotation.*;
@RestController
@CrossOrigin(origins = "http://localhost:4200")
@RequestMapping("/curso")
public class CursoController {
}
| true |
781df5cb8e03de5054443bbd850ef6d098728bba | Java | sonug3189/MissionEd | /app/src/main/java/com/missionedappdev/missoned/Activity1.java | UTF-8 | 4,480 | 1.90625 | 2 | [] | no_license | package com.missionedappdev.missoned;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import java.uti... | true |
cf391c98e67dfc190b3724d8675822a2318e4b9d | Java | URJCGinesRodriguezGavilan/DamasSinDamasREfactoring | /1.ADCS.damas-master/draughts/src/main/java/es/urjccode/mastercloudapps/adcs/draughts/models/Piece.java | UTF-8 | 641 | 3.140625 | 3 | [] | no_license | package es.urjccode.mastercloudapps.adcs.draughts.models;
public class Piece {
private Color color;
Piece(Color color){
this.color = color;
}
public Color getColor() {
return this.color;
}
public boolean isAdvanced(Coordinate origin, Coordinate target) {
int difference = origin.getRow() - target.getRow... | true |
3111dcebbd252a0997a9adb66fff4ab8ab0a9840 | Java | lukasherman/errai-intellij-idea-plugin | /src/org/jboss/errai/idea/plugin/actions/NewErraiUIEntryPoint.java | UTF-8 | 3,379 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | true |
a07195890215fbfc882546d95cc298dbea84e371 | Java | raoshihong/study-kafka | /src/main/java/com/rao/study/kafka/producer/ProducerCallBack.java | UTF-8 | 2,322 | 2.59375 | 3 | [] | no_license | package com.rao.study.kafka.producer;
import org.apache.kafka.clients.producer.*;
import org.junit.Test;
import java.util.Properties;
public class ProducerCallBack {
@Test
public void test(){
// bin/kafka-console-producer.sh --broker-list hadoop102:9092 --topic mytopic
//创建一个配置属性
Pr... | true |
abd4365765fdbdc22401c5aa489033f4bfc3cdcd | Java | Frodenkvist/authentication-service | /src/main/java/com/authenticationservice/service/PersonService.java | UTF-8 | 1,180 | 2.46875 | 2 | [] | no_license | package com.authenticationservice.service;
import com.authenticationservice.common.exception.PersonMissingException;
import com.authenticationservice.common.model.Person;
import com.authenticationservice.repository.PersonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... | true |
ce478980e0220d709da9896ebb48a956222c9d92 | Java | DDexster/Java_OOP | /src/hwJavaOOP/hwComputer/CPU.java | UTF-8 | 932 | 3.71875 | 4 | [] | no_license | package hwJavaOOP.hwComputer;
import java.util.ArrayList;
public class CPU {
private ArrayList<Core> cpu = new ArrayList<>();
public CPU() {
}
public CPU(ArrayList<Core> cpu) {
this.cpu = cpu;
}
public void turnOn() {
System.out.println("CPU is turning on!");
}
publ... | true |
b587e6ba53826c0859745e5694dc6ccdeb61f9bf | Java | rulfox/samples-android | /warrantyChecker/src/main/java/com/example/socketmobile/android/warrantychecker/network/WarrantyCheck.java | UTF-8 | 5,861 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Socket Mobile, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | true |
0376a62666256063890e4dfef712861143f29431 | Java | sgmarghade/datastructure-algo-coding | /src/main/java/com/sgmarghade/dsalgo/linkedlist/ds/CircularLinkedList.java | UTF-8 | 2,952 | 4.15625 | 4 | [] | no_license | package com.sgmarghade.dsalgo.linkedlist.ds;
import java.util.Scanner;
/**
* Beginning node position does not matter in this case.
*/
public class CircularLinkedList {
public static void main(String[] args) {
new CircularLinkedList().run();
}
private void run() {
Node head = null;
... | true |
25d531fd02fd33147cb42c6c08f5d11f9022d3ba | Java | 031128xjw/Zebra | /zebra4j/zebra-boot/src/main/java/com/zebra/boot/App.java | UTF-8 | 551 | 1.96875 | 2 | [
"MIT"
] | permissive | package com.zebra.boot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by lzy@js-dev.cn on 2016/11/15 00... | true |
953e4474ae321d9835e87a20692b3db29de51f69 | Java | Dayat102/Exercise-2 | /Exercise 1.2 (week 3)/src/Human.java | UTF-8 | 292 | 2.515625 | 3 | [] | no_license |
public class Human {
String topic = "**** Example of Object Oriented ****";
String object = "Object = Human";
String Attribute= "Attribute = Name, Age, Sex";
String Operation= "Operation = Speak";
String name = "Name :";
String age= "Age :";
String sex= "Sex :";
}
| true |
51d49cda8fcb8ea1866a8e8844f16d50d840f9a4 | Java | Viswajith76/GitHubSample | /app/src/main/java/com/boxme/githubsample/githhubsample/RepositoryDetailsActivity.java | UTF-8 | 3,029 | 2.25 | 2 | [] | no_license | package com.boxme.githubsample.githhubsample;
import android.content.res.ColorStateList;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StringDef;
import android.support.design.widget.FloatingAct... | true |
70424c31a15428f68c3d2f21c6a21d21432fd267 | Java | heshangbuxitou/mytest | /src/com/zy/annotation/TableCreator.java | UTF-8 | 2,987 | 3.09375 | 3 | [] | no_license | package com.zy.annotation;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
public class TableCreator {
public static String createTableSql(String className) throws ClassNotFoundException {
Class<?> clazz = Class.forName(className... | true |
c6cc57abf93aa00d4a7e63669dfe4e05c3129416 | Java | Dniv-ra/ip | /src/main/java/duke/exception/DukeTaskNotFoundException.java | UTF-8 | 141 | 1.9375 | 2 | [] | no_license | package duke.exception;
/**
* Thrown when the targeted task does not exist
*/
public class DukeTaskNotFoundException extends Exception{
}
| true |
8abd04e8da29adf0556d971854298e733d895a20 | Java | zuifengke/hr-guice | /src/main/java/com/zeng/bindingannotationsnamed/Module.java | UTF-8 | 444 | 2.203125 | 2 | [] | no_license | package com.zeng.bindingannotationsnamed;
import com.google.inject.AbstractModule;
import com.google.inject.name.Names;
public class Module extends AbstractModule {
public void configure() {
bind(Service.class).annotatedWith(Names.named("nameA")).to(AService.class);
bind(Service.class).annotatedWi... | true |
7463c6744bb7e6c06b33fc31a1edaecc712bd91f | Java | tenpo-s-a/api-prepago | /app/src/main/java/cl/multicaja/prepaid/async/v10/processors/PendingCardIssuanceFee10.java | UTF-8 | 13,704 | 2.203125 | 2 | [] | no_license | package cl.multicaja.prepaid.async.v10.processors;
import cl.multicaja.camel.ExchangeData;
import cl.multicaja.camel.ProcessorRoute;
import cl.multicaja.core.model.Errors;
import cl.multicaja.prepaid.async.v10.model.PrepaidTopupData10;
import cl.multicaja.prepaid.async.v10.routes.BaseRoute10;
import cl.multicaja.prepa... | true |
c9a8cc96dbc7a4e4fdae8171a95dc9362051afe2 | Java | znanl/CReader | /src/org/carelife/creader/bean/BookMarkGroupBean.java | UTF-8 | 259 | 1.976563 | 2 | [] | no_license | package org.carelife.creader.bean;
import android.graphics.Bitmap;
public class BookMarkGroupBean {
public String book_name;
public Bitmap bm;
public BookMarkGroupBean(String book_name ,Bitmap bm ){
this.book_name = book_name;
this.bm = bm;
}
}
| true |
c4abe4f5b1e058ec828a815cb0a1864eb020bf61 | Java | sangpf/xdc | /NewIns_xdc_trunk/src/com/newins/model/Member.java | UTF-8 | 842 | 2.578125 | 3 | [] | no_license | package com.newins.model;
/**
* 个人会员实体类
* @author Zhangwenhao
*
*/
public class Member {
private int userId;//用户id
private String bTime;//开通时间
private String eTime;//结束时间
//封装属性
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public String getbTime(... | true |
4599b393d2b9090514e8c6339d0c2830e8678eeb | Java | kai-eckert/heapSpank | /src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/JStatMetricProvider.java | UTF-8 | 1,291 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.github.eostermueller.heapspank.garbagespank.metricprovider;
import com.github.eostermueller.heapspank.garbagespank.JStatLine;
import com.github.eostermueller.heapspank.garbagespank.JStatOption;
import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
public interface JStatMetricProvider {
publi... | true |
00bb8248d2f30f47fb044ba0ff698e367c84d04a | Java | bio-guoda/preston | /preston-cli/src/main/java/bio/guoda/preston/cmd/CmdAppend.java | UTF-8 | 3,053 | 2.46875 | 2 | [
"MIT",
"CC-BY-NC-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package bio.guoda.preston.cmd;
import bio.guoda.preston.process.EmittingStreamOfAnyQuad;
import bio.guoda.preston.process.EmittingStreamOfAnyVersions;
import bio.guoda.preston.process.StatementsEmitter;
import bio.guoda.preston.process.StatementsEmitterAdapter;
import bio.guoda.preston.process.StatementsListener;
impo... | true |
08fdb623896614dc7911052f01778ca7d9ab024e | Java | umang736/offline-exchanger | /OFX_Client/src/com/socket/SocketClient.java | UTF-8 | 30,229 | 2.234375 | 2 | [] | no_license | package com.socket;
import java.io.*;
import java.net.*;
import java.util.Arrays;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import ofx.Home;
import static ofx.NewItems.newitemlist;
import static ofx.Notifications.notlist;
import static ofx.Notifications.notoldlist;
import static ofx.Ofx.editfram... | true |
1a6703e62df1f9ce0d23f7d291db892d2a89a3bd | Java | gsmile0102/data-structure-java-programming | /data-structure-practical/algo/linearsearch/App.java | UTF-8 | 393 | 3.515625 | 4 | [] | no_license | package algo.linearsearch;
public class App {
public static void main(String[] args) {
int[] a = {4,2,1,6,8,0};
System.out.println(linearSearch(a, 8));
}
public static int linearSearch(int [] a, int x) {
// int answer = -1;
for(int i = 0; i < a.length; i++) {
if(a[i] == x) {
// answer = i;
retu... | true |
7fa5adcd1c8e9cb1bdad574212b0c682a757bcc7 | Java | SHINDONGDONG/Springboot-JPA-Project | /src/main/java/com/cos/blog1/model/User1.java | UTF-8 | 1,862 | 2.390625 | 2 | [] | no_license | package com.cos.blog1.model;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.... | true |
62cb8ca38c9a134db7a536294a3130bc3a944bc7 | Java | gigi090782/2019-11-otus-spring-Krasilova | /homework-9/src/main/java/ru/krasilova/otus/spring/homework9/exceptions/GenreNotFoundException.java | UTF-8 | 304 | 2.28125 | 2 | [] | no_license | package ru.krasilova.otus.spring.homework9.exceptions;
public class GenreNotFoundException extends Exception {
public GenreNotFoundException(String message) {
super(message);
}
public GenreNotFoundException(String message, Throwable cause) {
super(message, cause);
}
}
| true |
7b08342030815ec5159a94321a2fabb363f57e54 | Java | RaulAlvaro/ProyectoGrupo4Patrones | /src/java/prototpe/VehiculoModificado.java | UTF-8 | 397 | 2.09375 | 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 prototpe;
/**
*
* @author RAUL
*/
public class VehiculoModificado extends Vehiculo{
@Override
public String verVeh... | true |
9f2aa5ca4cb1a983075af2276aeb734483d5bea2 | Java | jell0wed/comp512_project | /servercode/src/middleware/transactions/DistributedTransaction.java | UTF-8 | 473 | 1.78125 | 2 | [] | no_license | package middleware.transactions;
import middleware.database.ICustomerDatabase;
import middleware.resource_managers.ResourceManagerTypes;
import java.util.Hashtable;
import java.util.Map;
import java.util.Stack;
import java.util.function.Consumer;
class DistributedTransaction {
Map<ResourceManagerTypes, Integer> ... | true |
8d1306ebfc0f03b4c8801686d715062ac790c8af | Java | WanggleAowu/CatchNet | /catchnet/src/main/java/com/wanggle/catchnet/view/base/BaseActivity.java | UTF-8 | 7,842 | 2.15625 | 2 | [] | no_license | package com.wanggle.catchnet.view.base;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.ColorRes;
import android.support.annotation.RequiresApi;
i... | true |
f3c76d244e075233c6aee93c295c70373c401455 | Java | rico2290/restapi-users-with-spring-boot | /src/main/java/com/users/restapi/domain/exception/HandleBusinessException.java | UTF-8 | 235 | 1.976563 | 2 | [] | no_license | package com.users.restapi.domain.exception;
public class HandleBusinessException extends RuntimeException{
private static final long serialVersionUID = 1L;
public HandleBusinessException(String message) {
super(message);
}
}
| true |
336d7bd89036309763c2b1976c4c4c940f2eba5a | Java | Hlev1/Scrimmage | /src/main/java/shared/gameObjects/menu/LabelObject.java | UTF-8 | 1,029 | 2.53125 | 3 | [] | no_license | package shared.gameObjects.menu;
import client.main.Client;
import client.main.Settings;
import java.util.UUID;
import javafx.scene.Group;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import shared.gameObjects.GameObject;
import shared.gameObjects.Utils.ObjectType;
public class LabelObject extends ... | true |
0b381e379f087f5cfeb2b36444cdfc4fc9a807d6 | Java | normadbot/DATA_STRUCTURE_2 | /YieldImplement1.java | UTF-8 | 536 | 3.359375 | 3 | [] | no_license | import java.lang.*;
import java.util.*;
import java.io.*;
public class YieldImplement1 implements Runnable{
public void run(){
for(int i=0;i<10;i++){
System.out.println("Here a"+Thread.currentThread().getName());
}
}
public static void main(String[] args)throws Exception {
YieldImplement1 a = new... | true |
7a81de3cb663281b9c91b7734654f3428867a013 | Java | sharon-lee-fumi/MovieReview | /src/ca/sheridancollege/dao/DAO.java | UTF-8 | 4,367 | 2.546875 | 3 | [] | no_license | package ca.sheridancollege.dao;
import java.util.List;
import javax.persistence.Query;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.h... | true |
111e9e74f730980a5aee99930a829daf7a8545de | Java | Juanyss/FSF | /src/main/java/com/FSF/StockControl/repositories/DistributorRepository.java | UTF-8 | 1,343 | 2.21875 | 2 | [] | no_license | package com.FSF.StockControl.repositories;
import com.FSF.StockControl.domain.Distributor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
i... | true |
0677a980e65af0d5c47c22c9789d8593794ecc0f | Java | cuba-platform/cuba | /modules/global/test/com/haulmont/cuba/core/global/EnumerationImplTest.java | UTF-8 | 1,767 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2016 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
02f3d61bb80d3488dcb27d554ac96b68a54fa233 | Java | mpolonioli/FFX_LightningAvoider | /src/Main.java | UTF-8 | 770 | 2.828125 | 3 | [] | no_license | import java.awt.AWTException;
public class Main {
final static public int DEFAULT_WAITING_PIXEL = 5000;
final static public int DEFAULT_MAXLIGHTNING_AVOIED = 210;
public static void main(String[] args) throws AWTException {
try{
String commandValue;
int waitingPizel = ((commandValue = ParserInp... | true |
cf186b3bab3eca5f0db1c69478d5a51a8ae4b5cd | Java | whpgit/Spring | /itripbackend/codegenerator/src/main/resources/output/mapper-interface/ItripHotelOrderMapper.java | UTF-8 | 708 | 1.9375 | 2 | [] | no_license | package com.kgc.itrip.dao.mapper;
import com.kgc.itrip.beans.model.ItripHotelOrder;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
public interface ItripHotelOrderMapper {
public ItripHotelOrder getById(@Param(value = "id") Long id) throws Exception;
public List<It... | true |
102f20ca8428adbcc9d2d8b357fac4a066a3d961 | Java | YachneFu/group29Coursework | /uk.ac.kcl.inf.languages.g2048/src-gen/uk/ac/kcl/inf/languages/g2048/g2048/impl/G2048PackageImpl.java | UTF-8 | 11,187 | 1.71875 | 2 | [] | no_license | /**
* generated by Xtext 2.24.0
*/
package uk.ac.kcl.inf.languages.g2048.g2048.impl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPa... | true |
d6ecf028dc418ab12bb7e89cae429d9357546c0e | Java | ppabcd/amegu-android | /app/src/main/java/id/rezajuliandri/amegu/data/remote/response/pet/pets/PetsResponseParent.java | UTF-8 | 576 | 1.992188 | 2 | [
"MIT"
] | permissive | package id.rezajuliandri.amegu.data.remote.response.pet.pets;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class PetsResponseParent {
@SerializedName("pagination")
private Pagination pagination;
@SerializedName("data")
private List<PetResponse> data;
@Serial... | true |
daf53319e5c3256920733b4dd21044dc3c7bee69 | Java | wenfeiyunyun/complete | /src/main/java/hello/ProductJDBCTemplate.java | UTF-8 | 3,466 | 2.625 | 3 | [] | no_license | package hello;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.*;
/**
* Created by Richard on 22/04/2016.
... | true |
8322a051023eacfd7fd2988c71f927420072dd42 | Java | Gavinygh/CPSC210 | /Java/ExceptionalZoo/.svn/pristine/83/8322a051023eacfd7fd2988c71f927420072dd42.svn-base | UTF-8 | 134 | 1.59375 | 2 | [] | no_license | package z4_ExceptionHierarchy;
import z4_ExceptionHierarchy.FoodException;
public class VeggiesException extends FoodException {
}
| true |
240c9e2b837c7acb7b391213a7af9a27ce344620 | Java | nuxeo/nuxeo | /addons/nuxeo-platform-pdf-utils/src/test/java/org/nuxeo/ecm/platform/pdf/tests/PDFLinksTest.java | UTF-8 | 3,786 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
* (C) Copyright 2016 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 require... | true |
972ed46cc1978d0d0d32e516e53bba64c96148e9 | Java | rayho564/GoBots | /Workspace/AutoV4/src/automationFramework/FireTestCaseV4.java | UTF-8 | 5,270 | 2.671875 | 3 | [] | no_license | package automationFramework;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.u... | true |
becdc81827ccbcc093518bf07718094bfc5bb641 | Java | wangshuaibo123/BI | /oracle/com-jy-platform-system/src/main/java/com/jy/modules/platform/sysauth/service/shiro/ForceLogoutFilterV0.java | UTF-8 | 2,391 | 2.0625 | 2 | [] | no_license | package com.jy.modules.platform.sysauth.service.shiro;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.web.filter.AccessControlFilter;
import... | true |
30ee88265b55cb6692dd27923235dded1a4958e2 | Java | inakuhn/de.htwg.se.setGame | /de.htwg.se.SetGame/src/de/htwg/se/setgame/SetGameModule.java | UTF-8 | 1,158 | 1.757813 | 2 | [] | no_license | package de.htwg.se.setgame;
import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
import de.htwg.se.setgame.controller.IController;
import de.htwg.se.setgame.controller.IKiPlugin;
import de.htwg.se.setgame.controller.impl.SetController;
import de.htwg.se.setgame.controller.impl.k... | true |
818ad3ea6b73c9df12fb89fcaf0ce726f3820968 | Java | HeartlessFInale/Exhibition | /Exhibition/app/src/main/java/com/exhibition/exhibition/fragments/ArtFragment.java | UTF-8 | 1,783 | 2.296875 | 2 | [] | no_license | package com.exhibition.exhibition.fragments;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.... | true |
3d7d650f18890a8bc4ea943d7d5d32e2beeb1340 | Java | msicsic/archipel | /src/test/java/com/tentelemed/archipel/security/application/command/UserCmdHandlerTest.java | UTF-8 | 9,250 | 2.3125 | 2 | [] | no_license | package com.tentelemed.archipel.security.application.command;
import com.tentelemed.archipel.core.application.command.CmdRes;
import com.tentelemed.archipel.core.application.service.CmdHandlerTest;
import com.tentelemed.archipel.security.domain.model.Role;
import com.tentelemed.archipel.security.domain.model.User;
imp... | true |
dd9e1f657fe8e0a06c4cb32b26adeda46cdd0058 | Java | dingguozhu/elean-cloud-root | /elean-order-8003/src/main/java/com/elean/config/Conf.java | UTF-8 | 3,131 | 2.5625 | 3 | [] | no_license | package com.elean.config;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;
import org.apache.zookeeper.data.Stat;
import java.util.concurrent.CountDownLatch;
/**
* @Author Elean
* @Date 2021/5/6 0:25
* @Description
* @Version 1.0.0
*/
public c... | true |
0f6883175d5df91f23cd1ce541aa59bebe7fa33b | Java | bprager/connector | /src/main/java/org/observertc/webrtc/connector/configbuilders/AbstractBuilder.java | UTF-8 | 8,670 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Balazs Kreith
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
223d563e86fd78a00bd068cf0972d25b061cdb94 | Java | TKShetty/TestWeatherProject | /src/main/java/com/test/weatherProj/utils/DataLoader.java | UTF-8 | 734 | 2.5 | 2 | [] | no_license | package com.test.weatherProj.utils;
import java.util.Properties;
public class DataLoader {
private final Properties properties;
private static DataLoader dataLoader;
private DataLoader(){
properties = PropertyUtils.propertyLoader("src/test/resources/config/data.properties");
}
public s... | true |
5d493c90849300fc2dfcb5844963a85ac9c43130 | Java | greggwon/Startnow | /src/java/main/org/wonderly/jini2/config/JiniConfigEditor.java | UTF-8 | 24,110 | 2.078125 | 2 | [] | no_license | package org.wonderly.jini2.config;
import org.wonderly.awt.*;
import org.wonderly.swing.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.List;
import java.util.logging.*;
import net.jini.id.*;
import net.jini.config.*;
import java.io... | true |
afeab4772d2477685a56d388321f413d91cd5d70 | Java | jbalint/apperk | /src/com/ii/sample/model/Address.java | UTF-8 | 2,139 | 2.6875 | 3 | [] | no_license | package com.ii.sample.model;
import java.io.Serializable;
public class Address implements Serializable {
private Long id;
private String addressLine1;
private String addressLine2;
private String city;
private String state;
private String zipCode;
/**
* Sets Id
*
* @param ... | true |
41bcd9060cd77356fd167b0fb9722af6f1b7aa41 | Java | NaiDuGroup/embeddedGroup | /Bridge/src/Adapter.java | UTF-8 | 2,618 | 2.71875 | 3 | [] | no_license | import java.sql.*;
public class Adapter {
public static final String DB_NAME = "sourceDB_SEP4A19G2";
private static Connection connection;
private static String dbAddress = "10.200.131.2";
private static String dbUsername = "SEP4A19G2";
private static String dbPassword = "SEP4A19G2";
... | true |
84b92ce7e36df4706ec1e8bd8493d494c3763664 | Java | Akatsuki06/WordBustle | /app/src/main/java/com/akatsuki/wordbustle/LevelScreenActivity.java | UTF-8 | 7,817 | 1.914063 | 2 | [] | no_license | package com.akatsuki.wordbustle;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.vie... | true |
134ab735146cac23cbac583cf44444926aa556c9 | Java | vk117/Movieflix | /backend/src/main/java/com/cmpe275/movieflix/movieflix/services/UserServiceImpl.java | UTF-8 | 3,846 | 2.3125 | 2 | [] | no_license | package com.cmpe275.movieflix.movieflix.services;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import ... | true |
db701ec56b6360e63ed647b351317a6ac483af46 | Java | Stonnos/eca-service | /eca-auto-tests/src/main/java/com/ecaservice/auto/test/report/AbstractAutoTestsScvReportGenerator.java | UTF-8 | 5,402 | 2.140625 | 2 | [] | no_license | package com.ecaservice.auto.test.report;
import com.ecaservice.auto.test.config.AutoTestsProperties;
import com.ecaservice.auto.test.entity.autotest.AutoTestType;
import com.ecaservice.auto.test.entity.autotest.AutoTestsJobEntity;
import com.ecaservice.auto.test.entity.autotest.BaseEvaluationRequestEntity;
import com.... | true |
a01995d01b10cd9207771ccba20b5cbf7f553efe | Java | WilsonAV/Spring-Rest-Cadastro-Pessoa | /cadastro-pessoa/src/main/java/com/cadastro/crm/service/CadastroPessoaService.java | UTF-8 | 1,491 | 2.359375 | 2 | [] | no_license | package com.cadastro.crm.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cadastro.crm.exception.EntidadeException;
import com.cadastro.crm.mo... | true |
08cae6e62f8ac716b70407bf3f2dcc98c854401d | Java | dickanirwansyah/spring-command-pattern | /src/main/java/com/reactive/app/springbootreactive/controller/ProductController.java | UTF-8 | 3,869 | 2.125 | 2 | [] | no_license | package com.reactive.app.springbootreactive.controller;
import com.reactive.app.springbootreactive.entity.Product;
import com.reactive.app.springbootreactive.model.controller.Response;
import com.reactive.app.springbootreactive.model.request.CreateNewProductRequest;
import com.reactive.app.springbootreactive.model.req... | true |
215a143aca7b5bb807b3006d450dde85af385a3f | Java | lasharn/CryptoLearnerApp | /app/src/main/java/substitution_encryption/SubstitutionPartiallyCompleteMessage.java | UTF-8 | 3,147 | 2.765625 | 3 | [] | no_license | package substitution_encryption;
import java.util.Arrays;
import java.util.Random;
import caesar_encryption.CaesarMessage;
public class SubstitutionPartiallyCompleteMessage extends SubstitutionMessage {
String keyboardLetters;
private int selectedPosition = 0;
public SubstitutionPartially... | true |
16d94ef90e16bc1f99e2bdbfe2fea3c14fe46d62 | Java | testervic/sensors-auto-testing | /src/main/java/util/Retry.java | UTF-8 | 792 | 2.625 | 3 | [] | no_license | package util;
import org.testng.IRetryAnalyzer;
import org.testng.ITestResult;
import org.apache.log4j.Logger;
import org.testng.Reporter;
public class Retry implements IRetryAnalyzer {
public Logger log = Logger.getLogger(this.getClass().getName());
private int retryCount = 1;
private int maxRetryCount = ... | true |
2e696ff7aee4169f6f432ee44d25dda7af53d7fa | Java | preet376/Med_Tour | /app/src/main/java/com/jaypal/navigation_drawer/model/hospital.java | UTF-8 | 1,423 | 2.390625 | 2 | [] | no_license | package com.jaypal.navigation_drawer.model;
import java.util.List;
public class hospital {
String name;
String location;
String about;
List<String>list;
String country_name;
String link;
public hospital() {
}
public hospital(String name, String location,String country_name, Strin... | true |
0f0f59d01c2a823393b41170583ec7aa573c7fd1 | Java | cooljith91112/cdacjava97 | /27-05-2013/CD.java | UTF-8 | 314 | 2.609375 | 3 | [] | no_license | class CD{
public static void main(String args[])
{
int a,b,c,d;
float result;
a= Integer.parseInt(args[0]);
b= Integer.parseInt(args[1]);
c= Integer.parseInt(args[2]);
d= Integer.parseInt(args[3]);
if((c-d)!=0)
{
result =(float)(a+b)/(c-d);
System.out.println("Result = "+result);
}
}
} | true |
2a373e0b343cab0a836d0c373708e7998b092fec | Java | rahulkumar-99/eStationery | /app/src/main/java/com/example/estationery/ProductActivity.java | UTF-8 | 2,402 | 2.21875 | 2 | [] | no_license | package com.example.estationery;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
im... | true |
bf6c18888d2550cf3733fb8a6372285ac24c628a | Java | SoumiBhattacharyya/TY_CAPGEMINI_JAVACLOUD_10thFEB_SOUMIBHATTACHARYYA | /Core-Java/src/com/tyss/capgemini/polymorphism/MethodOverridingClass1.java | UTF-8 | 409 | 2.59375 | 3 | [] | no_license | package com.tyss.capgemini.polymorphism;
public class MethodOverridingClass1 implements MethodsInterface{
@Override
public String displayMessage() {
return "Overridden displayMessage() of MethodsInterface from MethodOverridingClass1";
}
@Override
public String printMessage() {
return "Over... | true |
cc31d262a63ee887d8280a7fcd9f1c9f8f1d2681 | Java | ReiiSky/TextEditor-Patterns | /src/textpademo/Comandos/BotonEmisor.java | UTF-8 | 669 | 2.203125 | 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 textpademo.Comandos;
import javax.swing.JButton;
import textpademo.EditorTexto;
/**
*
* @author Jose Navarro Gr... | true |
e8bb45d9a8d4fb267be0a60d709d40bf2329f8ae | Java | peytondodd/Desktop | /Ancient/workspace/MCubeA/fr/Maxime3399/MCube/events/EventsManager.java | UTF-8 | 1,485 | 1.867188 | 2 | [] | no_license | package fr.Maxime3399.MCube.events;
import fr.Maxime3399.MCube.MainClass;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
public class EventsManager
{
public EventsManager() {}
public static void registerEvents(Plugin p)
{
PluginManager pm = org.bukkit.Bukkit.getPluginManager();
... | true |
7ebdb31cd0718b5de3af11fccca3320cd9a710b5 | Java | gitHubLsf/pinyougou | /pinyougou-pojo/src/main/java/com/lsf/pinyougou/pojo/TbItem.java | UTF-8 | 2,086 | 1.75 | 2 | [] | no_license | package com.lsf.pinyougou.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.solr.core.mapping.Dynamic;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
/**
* 商品 SKU
... | true |
a7878c83f3db6d2d2737b9d6b1c7cb0f3c69cfe6 | Java | codjo-sandbox/codjo-workflow | /codjo-workflow-common/src/main/java/net/codjo/workflow/common/message/PurgeAuditJobRequest.java | UTF-8 | 556 | 1.992188 | 2 | [] | no_license | package net.codjo.workflow.common.message;
import java.util.Date;
/**
*
*/
public class PurgeAuditJobRequest extends JobRequestWrapper {
public static final String PURGE_AUDIT_JOB_TYPE = "purge-audit";
public static final String PERIOD = "period";
public PurgeAuditJobRequest(JobRequest request) {
... | true |
0f74fef4af46c4c4da753ec88e5b8daa466bfbb3 | Java | HeatherKeelon/ScrabbleBagChallenge | /src/main/java/com/heatherlutz/Scrable.java | UTF-8 | 2,678 | 3.828125 | 4 | [] | no_license | package com.heatherlutz;
import java.util.Scanner;
/**
* Hello world!
*
*/
public class Scrable {
public static void main(String[] args) {
/**
* Each tile in scrabble has a letter, and a frequency of that tile for a total of 100 tiles.
The exception to this are the blank tiles, whic... | true |
749d78ccfd3348c71055f595929ad396d1f56a40 | Java | liuhaiquan01291314/MyApplication3 | /app/src/main/java/com/example/service/ApiService.java | UTF-8 | 297 | 1.6875 | 2 | [] | no_license | package com.example.service;
import android.database.Observable;
import com.example.bean.ProjectBean;
import retrofit2.http.GET;
public interface ApiService {
String PROJECT_URL="http://static.owspace.com/";
@GET("?c=api&a=getList&page_id=0")
Observable<ProjectBean> getData();
}
| true |
31ae6745a57f65d378eaabfc1b6103a940287ff1 | Java | inteligo/scanning | /APIItlgOmnicanal/src/test/java/com/test/pruebaMovimientoDepositoJson.java | UTF-8 | 1,261 | 1.914063 | 2 | [] | no_license |
package com.test;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import dao.sql.DaoMovimientoDeposito;
import dao.sql.impl.DaoMovimientoDepositoImpl;
import dto.sql.MovimientoDeposito;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.jdom2.JDOMException;
pu... | true |
cd8112462358d4cec30ede1780bcba5ac1a91211 | Java | lorenzoraimondi/fuga-dagli-alieni | /src/test/java/it/polimi/ingsw/cg_45/FermiTest.java | UTF-8 | 1,985 | 2.375 | 2 | [] | no_license | package it.polimi.ingsw.cg_45;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import it.polimi.ingsw.cg_45.model.Coordinate;
import it.polimi.ingsw.cg_45.model.Fermi;
import it.polimi.ingsw.cg_45.model.Mappa;
import it.polimi.ingsw.cg_45.model.SettorePartenzaAlieni;
import it.po... | true |
79014a452e80be3a7040d3eed901c25db827ca1a | Java | Dildarkhan/CirriusAttendance | /app/src/main/java/com/dildarkhan/cirriusattendance/MainActivity.java | UTF-8 | 12,365 | 1.929688 | 2 | [] | no_license | package com.dildarkhan.cirriusattendance;
import static com.dildarkhan.cirriusattendance.ui.GetAttendanceScreen.TAG;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.ProgressDialog;
import androi... | true |
9b7514b8009e485e1f9dbb233566d6b771cc3cfb | Java | LevinHWLin/utils | /DesignModeDemo/src/main/java/com/demo/handler/AbstractHandler.java | UTF-8 | 382 | 2.296875 | 2 | [] | no_license | package com.demo.handler;
import java.util.logging.Handler;
import java.util.logging.LogRecord;
public abstract class AbstractHandler {
public AbstractHandler getNext() {
return next;
}
public void setNext(AbstractHandler next) {
this.next = next;
}
private AbstractHandler next;... | true |
ceec71790ca0b336d72905214d92c1f92abd1bff | Java | jwpark87/pcfems | /src/main/java/com/aot/pcfems/business/cdrsearch/CdrSearchSearchInfo.java | UTF-8 | 9,401 | 1.796875 | 2 | [] | no_license | /*****************************************************************************
* 프로그램명 : CdrSearchInfo.java
* 설 명 : CDR 조회 검색조건 DataBean
* 참고 사항 : 없음
*****************************************************************************
* Date Author Version Description
* ---------- ------- ------- --------... | true |
99210a00870f0dbb122a383fb5c4669ae880e2ec | Java | nijesung/Javafirst | /nije0713/src/thread/horse.java | UTF-8 | 956 | 3.46875 | 3 | [] | no_license | package thread;
import java.util.Random;
public class horse extends Thread {
private static int rank; // 이 클래스로부터 만들어진 모든 인스턴스가 스태틱 변수를 공유한다
// 순위 등을 만들 때 스태틱 변수를 사용하라
public void run() { // 스레드로부터 상속받았을 때 무조건 만들어 주어야 한다
System.out.println(getName() + "출발");
int pos = 0... | true |
3497b01eb49442a3ebf938f9df13bc552e6bd498 | Java | cha63506/CompSecurity | /kik-source/src/com/b/a/s.java | UTF-8 | 395 | 1.664063 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.b.a;
import java.io.IOException;
public class s extends IOException
{
public s(String s1)
{
super(s1);
}
... | true |
38a79fadc6b56da680b143dd74ade7e82aae7bbf | Java | evrimulgen/mongodb-logging-app | /src/main/java/com/example/db/MongoDbService.java | UTF-8 | 2,259 | 2.3125 | 2 | [] | no_license | package com.example.db;
import com.example.model.LogEvent;
import com.example.model.LogId;
import com.example.model.LogType;
import com.mongodb.BasicDBObject;
import com.mongodb.client.MongoCollection;
import io.vavr.control.Try;
import lombok.RequiredArgsConstructor;
import lombok.val;
import org.bson.Document;
impor... | true |
eac3d7f309bc193b83332b11c8a512d279a8f2d1 | Java | HewlettPackard/batfish | /projects/batfish-common-protocol/src/test/java/org/batfish/datamodel/IpWildcardSetIpSpaceTest.java | UTF-8 | 1,206 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package org.batfish.datamodel;
import static org.batfish.datamodel.matchers.IpSpaceMatchers.containsIp;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.Test;
public class IpWildcardSetIpSpaceTest {
private static final IpSpace ipSpace =
IpWil... | true |
80670cc856face1a04fbe4d84a1d9c19649e2e8c | Java | MuBob/XingBack | /src/servlets/SelfInfoSkillGetServlet.java | UTF-8 | 1,985 | 2.265625 | 2 | [] | no_license | package servlets;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import entitys.Se... | true |
b8663151740ee439811a34f50c258ddc4e209036 | Java | WatermelonInc/Projects | /Peppers/Tester.java | UTF-8 | 660 | 3.359375 | 3 | [] | no_license | import java.util.ArrayList;
/**
* Write a description of class Tester here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Tester
{
public final static void main(String[] args)
{
ArrayList<Integer> list=new ArrayList<Integer>();
list.add(6);
list.a... | true |
b86740a4c0fbc34981ed46eae236d9f49f550fbf | Java | dhanushanthp/opennlp-training-model-generation | /src/main/java/opennlp/source/namefinder/modelretrainer/ModelBuilderAddonUse.java | UTF-8 | 725 | 2.125 | 2 | [] | no_license | package opennlp.source.namefinder.modelretrainer;
import java.io.File;
import opennlp.addons.modelbuilder.DefaultModelBuilderUtil;
public class ModelBuilderAddonUse {
public static void main(String[] args) {
File sentences = new File("data-for-trainng/sentence");
File knownEntities = new File("data-for-tra... | true |