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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a4c568dad5c745d272d6a32ac539e4ae8e1f55bb | Java | edifangyi/Mobile-Security-Guards | /MobileSafe/app/src/main/java/com/fangyi/mobilesafe/view/FocusedTextView.java | UTF-8 | 1,311 | 2.640625 | 3 | [] | no_license | package com.fangyi.mobilesafe.view;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* Created by FANGYI on 2016/5/29.
*/
public class FocusedTextView extends TextView {
/**
* 通常是在代码实例化的时候用
* @param context
*/
public FocusedTextView(Contex... | true |
2549df15a287f4722089169110fb5cac89d1a980 | Java | coderone95/SecU | /src/main/java/com/coderone95/secu/entity/SecGeneralInfo.java | UTF-8 | 1,195 | 2.078125 | 2 | [] | no_license | package com.coderone95.secu.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
... | true |
6643e9473cd633848d99d94d8b45c01f82fe0592 | Java | KanadeSong/webserver | /user/src/main/java/com/seater/user/enums/UserWorkEnum.java | UTF-8 | 786 | 2.640625 | 3 | [] | no_license | package com.seater.user.enums;
/**
* @Description:人员工作枚举
* @Author yueyuzhe
* @Email 87167070@qq.com
* @Date 2019/12/11 0011 17:10
*/
public enum UserWorkEnum {
Unknow("未知",0),
BeginWork("上班",1),
EndWork("下班",2),
Leave("请假",3);
private String name;
private Integer value;
UserWorkEnum... | true |
565e27c5f3a4e8bc218283d233cbf056cf8fe976 | Java | Lavamancer/koru-libgdx | /core/src/io/anuke/koru/ucore/ecs/Require.java | UTF-8 | 284 | 1.992188 | 2 | [] | no_license | package io.anuke.koru.ucore.ecs;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**Used to mark trait requirements for a specfic trait.*/
@Retention(RetentionPolicy.RUNTIME)
public @interface Require{
public Class<? extends Trait>[] value();
}
| true |
0c91d29a79b1f28125f6b4fbae4636c3dd77d95e | Java | netconstructor/GeoTools | /modules/plugin/jdbc/jdbc-db2/src/test/java/org/geotools/data/db2/DB2DateTest.java | UTF-8 | 311 | 1.539063 | 2 | [] | no_license | package org.geotools.data.db2;
import org.geotools.jdbc.JDBCDateTest;
import org.geotools.jdbc.JDBCDateTestSetup;
/**
*
*
* @source $URL$
*/
public class DB2DateTest extends JDBCDateTest {
@Override
protected JDBCDateTestSetup createTestSetup() {
return new DB2DateTestSetup();
}
}
| true |
1572162708240be3c93dc06d18d699014de857d9 | Java | paolomastroo/progetto | /taskmanager/src/main/java/it/uniroma3/siw/taskmanager/controller/ProjectController.java | UTF-8 | 5,930 | 2.015625 | 2 | [] | no_license | package it.uniroma3.siw.taskmanager.controller;
import java.util.Iterator;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
... | true |
e8b22005618508dfe0743a88b64e491df039e7ba | Java | CHIKHAOUI-Firas99/PIjavaFX | /src/services/enc.java | UTF-8 | 1,018 | 2.46875 | 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 services;
/**
*
* @author LENOVO
*/
import Alert.AlertDialog;
import org.mindrot.jbcrypt.BCrypt;
public class enc {
pub... | true |
2397ecd5a9892f22da2af11aa548280ca06f5bc7 | Java | madcecilb/information-retrieval-lucene-assignment-2 | /information-retrieval-web-search-engine/src/Robot.java | UTF-8 | 1,128 | 3.15625 | 3 | [] | no_license | import java.util.ArrayList;
public class Robot {
private Boolean considerable;
private ArrayList<String> disallowList;
public Robot(String robotString){
String[] strArray = robotString.split(" Disallow: ");
disallowList = new ArrayList<>();
//"gent: *" is part of User-Agent: *, what means that... | true |
7417466191ac58e9f603bef427bddeeffe83bc82 | Java | Tooci/JavaProblem | /src/main/java/p2.java | UTF-8 | 1,591 | 3.484375 | 3 | [] | no_license |
//饿汉式单例,直接创建对象,不存在线程安全问题
public class p2 {
//1 构造器私有化
//2 自行创建,静态变量保存
//3 向外提供实例
public static final p2 instance=new p2();
private p2(){
}
//static {
// try{//Properties pro new Properties();
// //pro.load(p2.class.getClassLoader().getRessourceAsStream())
// //instance... | true |
5387a48955c2a407c26816c51c071ec18d608a0f | Java | hsw123456/designPattern | /src/com/hsw/designPattern/ioc/Main.java | UTF-8 | 991 | 2.9375 | 3 | [] | no_license | package com.hsw.designPattern.ioc;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public class Main {
// TODO
public static void ioc(String className, Shiyanlou s, String methodName, String name) {
try {
Class c = Class.forName(className);
Object o = c.newIns... | true |
059829f664a57800010309b44759aeec1b237423 | Java | Dazucad/LambdaStream | /src/ru/lokyanvs/Generator.java | UTF-8 | 624 | 3.09375 | 3 | [] | no_license | package ru.lokyanvs;
import java.util.function.Supplier;
public class Generator implements Supplier<Integer> /*,UnaryOperator<Integer>*/{
private int first;
private int second;
public Generator(int second) {
this.second = second;
}
public Generator(int first,int second){
this.fi... | true |
60b3a8df24d39c781fbc9f4940aee9ce308274e5 | Java | sudippain/ProductApplication | /services/src/main/java/com/example/ProductApplication/models/ProductDetails.java | UTF-8 | 2,174 | 2.625 | 3 | [] | no_license | package com.example.ProductApplication.models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
impor... | true |
cae84f69601644812985dc4d586a04b60d7dd42b | Java | AnilSener/tms-j2ee-project | /src/controller/RetrieveEmployerReport.java | UTF-8 | 9,293 | 2.109375 | 2 | [] | no_license | package controller;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Ite... | true |
9b927adc5e8b42b25d438fdb69ca7dac25a4f33a | Java | iagoGB/POO | /src/br/com/poo/smd/lista10/exception/ContaInexistenteException.java | UTF-8 | 237 | 2.0625 | 2 | [] | no_license | package br.com.poo.smd.lista10.exception;
public class ContaInexistenteException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
public ContaInexistenteException(String msg) {
super(msg);
}
}
| true |
12b4d174aea87452d472499886baf906da8874c5 | Java | stg-tud/rxrefactoring-code | /RxRefactoringTestsTemplate/src/framework/AbstractTest.java | UTF-8 | 2,848 | 2.671875 | 3 | [] | no_license | package framework;
import static org.junit.Assert.assertEquals;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Map;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.A... | true |
ee62105bcce93f59098b6142cda2089154417b7d | Java | GaTech-dannyhtaylor/BuzzTracker | /BuzzTracker/app/src/main/java/com/cs2340/binarybros/buzztracker/Controllers/InventoryListAdapter.java | UTF-8 | 2,499 | 2.59375 | 3 | [] | no_license | package com.cs2340.binarybros.buzztracker.Controllers;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.cs2340.binarybr... | true |
273a4b8818d91ff04d4ff60e6b63c4e62abe9318 | Java | Deron84/xxxTest | /src/com/huateng/po/mchnt/CstMchtFeeInfPK.java | UTF-8 | 2,858 | 2.390625 | 2 | [] | no_license | package com.huateng.po.mchnt;
import java.io.Serializable;
@SuppressWarnings("serial")
public class CstMchtFeeInfPK implements Serializable {
protected int hashCode = Integer.MIN_VALUE;
private java.lang.String mchtCd;
private java.lang.String txnNum;
private java.lang.String cardType;
public CstMchtFeeInfP... | true |
57a1d791a39112e1fc61d89a027949bdbfae0ea4 | Java | arnaldi/bank-cli | /src/main/java/co/arnaldi/operation/LoginOperation.java | UTF-8 | 1,907 | 2.546875 | 3 | [] | no_license | package co.arnaldi.operation;
import co.arnaldi.dto.AccountDto;
import co.arnaldi.dto.ActiveAccount;
import co.arnaldi.model.Account;
import co.arnaldi.service.AccountService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... | true |
625134c0b0bc4308219d8bf6b0e708c36da94b07 | Java | xzw999/jinjie | /app/src/main/java/com/xinzhengwei/dianshangjinjieyuekaoti/model/ModelImp.java | UTF-8 | 1,736 | 2.25 | 2 | [] | no_license | package com.xinzhengwei.dianshangjinjieyuekaoti.model;
import com.xinzhengwei.dianshangjinjieyuekaoti.presenter.PresenterImp;
import com.xinzhengwei.dianshangjinjieyuekaoti.presenter.PresenterInter;
import com.xinzhengwei.dianshangjinjieyuekaoti.util.RetrofitUtil;
import java.util.Map;
import io.reactivex.Observer;
... | true |
ef210d0396639dcdce71f0a650faa90223b7ee4a | Java | chonghuidt/observer | /src/main/java/com/lp/observer/simple/Subject.java | UTF-8 | 431 | 2.53125 | 3 | [] | no_license | package com.lp.observer.simple;
/**
* @Author: lp
* @Date: 2020/12/1 9:28
* 主题
*/
public interface Subject {
/**
* 注册观察者
* @param observer
*/
public void register(Observer observer);
/**
* 删除观察者
* @param observer
*/
public void remove(Observer observer);
/**
... | true |
1ac89f4f2759fd967d5cdbe0c745ce97ea53620b | Java | nomyzs/FlipView | /app/src/main/java/ultimatefanlive/com/flipanimationexample/MainActivityFragment.java | UTF-8 | 1,810 | 2.484375 | 2 | [] | no_license | package ultimatefanlive.com.flipanimationexample;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.LinkedList;
import java.util.... | true |
9c4df6bdf28730417dcfe89cbe73a11667552f1f | Java | ricoapon/MockFrameworkAggregator | /MockFrameworkReference/src/main/java/com/keylane/HelloWorld.java | UTF-8 | 2,673 | 2.546875 | 3 | [] | no_license | package com.keylane;
import com.keylane.mock.method.MockParameter;
import com.keylane.mock.method.MockParameterType;
import com.keylane.mock.response.Response;
import com.keylane.mock.response.ResponseBuilder;
import com.keylane.mock.url.MockUrl;
import com.keylane.mock.url.MockUrlMatcher;
import java.util.Map;
publ... | true |
134026516d04b60adceb9226f5b62b7f2e077cef | Java | HugoStevenPoveda/AppListaSupermercado | /src/view/UpdateProduct.java | UTF-8 | 3,825 | 2.65625 | 3 | [] | no_license | package view;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;
import jav... | true |
5b70aad88b35bb3a8b6370955950656b3f0bf2a0 | Java | titanmet/JavaSchoolSber | /lesson24_Introduction_in_API_tests_Rest_Assured/src/test/java/com/ratnikov/utils/UserUpdate.java | UTF-8 | 303 | 1.84375 | 2 | [] | no_license | package com.ratnikov.utils;
import com.ratnikov.model.CreateUserRequest;
public class UserUpdate {
public static CreateUserRequest putSimpleUser() {
return CreateUserRequest.builder()
.name("simple 2")
.job("zion resident")
.build();
}
}
| true |
13f379b35a628038a18e267669a6df32331b15e6 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_b740b1864500644bd97df58d9876a21cd1c94a59/JUMPInstallerTool/2_b740b1864500644bd97df58d9876a21cd1c94a59_JUMPInstallerTool_s.java | UTF-8 | 33,731 | 1.515625 | 2 | [] | no_license | /*
* Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 only, as published by the Free Sof... | true |
17256bb9180b1095b1904fcbca1718d4370a2392 | Java | AY1920S1-CS2103T-T17-2/main | /src/main/java/seedu/address/calendar/model/event/exceptions/DuplicateEventException.java | UTF-8 | 324 | 2.484375 | 2 | [
"MIT"
] | permissive | package seedu.address.calendar.model.event.exceptions;
/**
* Represents an error when the user tries to add two events that are of the same type.
*/
public class DuplicateEventException extends RuntimeException {
public DuplicateEventException() {
super("Operation would result in duplicate events");
... | true |
ac5adc1fbe4efe0e0af1632993166b7b26686172 | Java | SC0d3r/Mafia-Game | /EndOfDayVotingState.java | UTF-8 | 332 | 2.203125 | 2 | [] | no_license | /**
* this class will just goes to disable chat state
*/
public class EndOfDayVotingState extends ServerState {
public EndOfDayVotingState(Narrator narrator, GameServer server) {
super(narrator, server);
}
@Override
public boolean run() {
this.narrator.changeState(STATES.DISABLE_CHAT);
return fa... | true |
753da04571e63a3410aec9a6afac45152fe760ed | Java | OscarFarg/multiplex-game | / multiplex-game/multiplex/src/multiplex/spelementen/StatischObject.java | UTF-8 | 174 | 2.03125 | 2 | [] | no_license | package multiplex.spelementen;
import multiplex.level.Level;
public class StatischObject extends SpelElement {
public StatischObject(Level level)
{
super(level);
}
}
| true |
718e413fd37f1219aed6fa26fa14ddd29f72d15c | Java | rwd117/Toy-Project | /MyProject/src/main/java/kr/co/korea/controller/AlaramController.java | UTF-8 | 1,884 | 2.265625 | 2 | [] | no_license | package kr.co.korea.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityC... | true |
e5ab828a093c502d518358dcc6c9039a9f50fff0 | Java | Bambino33/bowling | /src/main/java/com/casestudy/bowling/BowlingCal.java | UTF-8 | 442 | 2.828125 | 3 | [] | no_license | package com.casestudy.bowling;
import com.google.common.collect.Lists;
import java.util.List;
public class BowlingCal {
private List<Round> rounds = Lists.newArrayList();
public void addRound(Round round) {
this.rounds.add(round);
}
public int getTotalScore() {
int totalScore = 0;
... | true |
f42469dfdff251b66bdec1c2e0348966cd55574b | Java | l-e-i-n-a-d/SWitCH | /DSOFT1/src/aula20171011/SumTwoArrays.java | UTF-8 | 254 | 3.15625 | 3 | [] | no_license | package aula20171011;
public class SumTwoArrays {
public static int[] sum(int[] a, int[] b) {
int[] result = new int[Math.max(a.length, b.length)];
for (int i = 0; i < result.length; i++) {
result[i] = a[i] + b[i];
}
return result;
}
}
| true |
4fd2333dd44aeb8796078a5f0475afffb0a91b7b | Java | szagot/java_spring_ionic_backend | /src/main/java/com/zefuinha/spring_ionic_backend/services/ProdutoService.java | UTF-8 | 3,595 | 2.421875 | 2 | [] | no_license | package com.zefuinha.spring_ionic_backend.services;
import java.net.URI;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Page;
import org.springframework.d... | true |
8281f40fa177afca131edefcbd81e6bd31865ce4 | Java | ajoxe/Grupp | /app/src/main/java/com/example/c4q/capstone/userinterface/user/userprofilefragments/userprofileviews/GroupViewHolder.java | UTF-8 | 2,226 | 2.140625 | 2 | [] | no_license | package com.example.c4q.capstone.userinterface.user.userprofilefragments.userprofileviews;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.example.c4q.capstone.R;
import com.example.c4q.capstone.userinterface.user.user... | true |
1442364b4f0c3ab480f9ef14f8f69e70ce2dabd4 | Java | SebastianTang/oc-server | /oc-server-core/src/main/java/com/oc/cluster/collection/set/CustomSetFactory.java | UTF-8 | 1,587 | 2.3125 | 2 | [] | no_license | /**
*
*/
package com.oc.cluster.collection.set;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.hazelcast.core.HazelcastInstance;
import com.oc.cluster.collection.set.hazelcast.ClusteredSetFactoryStrategy;
import com.oc.cluster.collection.set.local.DefaultCustomSetFactory... | true |
796ba5cc89d2e6cc6f2386c22953ca89301b095c | Java | zUnixBR/All-Mineplex-2015 | /Nautilus.Game.Arcade/src/nautilus/game/arcade/gui/privateServer/page/RemoveAdminPage.java | UTF-8 | 1,624 | 2.34375 | 2 | [] | no_license | package nautilus.game.arcade.gui.privateServer.page;
import java.util.HashSet;
import java.util.Iterator;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.ClickType;
import org.bukkit.inventory.ItemStack;
import mineplex.core.common.util.C;
import mineplex.co... | true |
79a47b247738a1a3911ac4c1a2843d7c90f71095 | Java | efrik1989/SimpleCalc | /src/main/java/simplecalc/NumberListener.java | UTF-8 | 2,780 | 3.453125 | 3 | [] | no_license | package simplecalc;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import static simplecalc.CalcGUI.getTextField;
/**
* Класс слушатель кнопок
*/
class NumberListener implements ActionListener {
private static final char EQUALLY = '=';
private static final char CANCEL = 'C';
p... | true |
1121159f80b9cda90059756da87c2e1a950f03d7 | Java | phongtran0715/SpiderClient | /java/netxms-eclipse/Charts/src/org/netxms/ui/eclipse/charts/api/HistoricalDataChart.java | UTF-8 | 3,827 | 2.375 | 2 | [] | no_license | /**
* NetXMS - open source network management system
* Copyright (C) 2003-2014 Victor Kirhenshtein
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ... | true |
31dedb588943d8c825c8683f07cadd306f0044dd | Java | Debayan-Majumdar/DesignPrinciples_Handson | /Singleton_Handson/src/main/java/com/debayan/designpattern/Singleton_Handson/Test/TestDBConn.java | UTF-8 | 598 | 2.703125 | 3 | [] | no_license | /**
*
*/
package com.debayan.designpattern.Singleton_Handson.Test;
import com.debayan.designpattern.Singleton_Handson.DBConn;
import jdk.jfr.internal.Logger;
/**
* @author DEBAYAN
*
*/
public class TestDBConn {
/**
* @param args
*/
public static void main(String[] args) {
int instan... | true |
42107edf4a32f008684bf36e946e4253d8586b25 | Java | collinsauve/azure-sdk-for-java | /management-compute/src/main/java/com/microsoft/windowsazure/management/compute/VirtualMachineOperations.java | UTF-8 | 78,754 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /**
*
* Copyright (c) Microsoft and contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | true |
796b25e4fdf4b16e765f487ffaf03382703ed3c8 | Java | Brotherta/RogueLike | /src/main/java/game/entity/living/npc/monster/monsters/Bat.java | UTF-8 | 1,550 | 2.71875 | 3 | [] | no_license | package game.entity.living.npc.monster.monsters;
import game.elements.GameRule;
import game.elements.GameState;
import game.entity.living.npc.monster.AbstractMonster;
import game.entity.living.npc.monster.Monster;
import game.entity.living.npc.monster.MonsterStats;
import game.entity.living.npc.monster.MonsterType;
im... | true |
376db152f3bb72b04c4c375725ff5dff1f6b5079 | Java | selvaprasath2706/LICET-Students-Management-System-App | /app/src/main/java/com/example/licet/Main12Activity.java | UTF-8 | 1,884 | 2.203125 | 2 | [] | no_license | package com.example.licet;
import androidx.appcompat.app.AppCompatActivity;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.DatePicker;
import android.widget.Toast;
import java.text.SimpleDateFormat;
import java.util.Calend... | true |
aee46502b03750c85e656e84c8d6a9ad62c8d1c8 | Java | huanglongf/enterprise_project | /service-impl-wms/src/main/java/com/jumbo/dao/hub2wms/WmsSalesOrderQueueDao.java | UTF-8 | 3,420 | 1.757813 | 2 | [] | no_license | package com.jumbo.dao.hub2wms;
import java.math.BigDecimal;
import java.util.List;
import loxia.annotation.NamedQuery;
import loxia.annotation.NativeQuery;
import loxia.annotation.NativeUpdate;
import loxia.annotation.QueryParam;
import loxia.dao.GenericEntityDao;
import org.springframework.jdbc.core.BeanPropertyRow... | true |
3037e80d14a4558a3ab2d3c7a755c9b9c924985d | Java | sunsunich/cmas | /CmasWeb/src/java/org/cmas/backend/ImageResizer.java | UTF-8 | 7,995 | 2.5625 | 3 | [] | no_license | package org.cmas.backend;
import com.mortennobel.imagescaling.ImageUtils;
import com.mortennobel.imagescaling.ResampleOp;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
/**
* C... | true |
63b919e002bd0095f4531bcb0c18c023731728d2 | Java | nayanigc/ElasticSearch | /src/main/java/com/example/Tourist/hooks/SitesIndexer.java | UTF-8 | 1,499 | 1.914063 | 2 | [] | no_license | package com.example.Tourist.hooks;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@Component
@Slf4j
public class SitesIndexer {
/*
private static final Logger LOGGER = LoggerFactory.getLogger(SitesIndexer.class);
private static final String SITES_INDEX = "sites";
priv... | true |
c45e7a55544753d9ecea0a3242cded1c48df64c0 | Java | dingjianhui1013/xnr | /xnradmin-model/xnradmin-data/src/main/java/com/xnradmin/po/wx/WXPayInfo.java | UTF-8 | 2,439 | 2.1875 | 2 | [] | no_license | /**
*2014年9月11日 上午11:41:23
*/
package com.xnradmin.po.wx;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations... | true |
75e7e9f578cccfb9ed1eaf8fe5b9d2874618fb3d | Java | HaoTianZhao/netctoss | /src/main/java/com/barista/dao/PrivilegeMapper.java | UTF-8 | 643 | 1.984375 | 2 | [] | no_license | package com.barista.dao;
import com.barista.entity.Privilege;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface PrivilegeMapper {
int deleteByPrimaryKey(@Param("privilegeGroupId") Integer privilegeGroupId, @Param("privilegeId") Integer privi... | true |
4a45855a4cd90897ace88a33c6ad7f3150b3d094 | Java | Voropay/debt_collection_case_example | /src/main/java/com/intrum/homework/debt/service/CustomerService.java | UTF-8 | 305 | 1.921875 | 2 | [] | no_license | package com.intrum.homework.debt.service;
import com.intrum.homework.debt.domain.customer.Customer;
import com.intrum.homework.debt.domain.customer.CustomerEntity;
public interface CustomerService {
CustomerEntity findByPersonalId(String personalId);
CustomerEntity create(Customer customer);
}
| true |
5f500bd9b58d8258afc99b36cacf0b9b3e309038 | Java | cha63506/CompSecurity | /nbc_source/src/org/joda/time/chrono/BasicDayOfMonthDateTimeField.java | UTF-8 | 3,009 | 2.125 | 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 org.joda.time.chrono;
import org.joda.time.DateTimeFieldType;
import org.joda.time.DurationField;
import org.joda.time.ReadablePartial;
... | true |
60571f0116e4a00e0da7d4ca6c738f45605ebb67 | Java | tawn0414/self_exercise | /workbook/p060_05_Mobile.java | UTF-8 | 1,107 | 2.875 | 3 | [] | no_license | package workbook;
public class p060_05_Mobile {
private String mobileName;
private int batterySize;
private String osType;
public p060_05_Mobile() {
}
public p060_05_Mobile(String mobileName, int batterySize, String osType) {
super();
this.mobileName = mobileName;
this.batterySize = batterySize;
th... | true |
0fc653d30034f5399450d86291e639def73d3414 | Java | HerperPlain/hpcloud-parent | /hpcloud-common/src/main/java/com/hpsgts/hpcloud/common/utils/SerializeUtil.java | UTF-8 | 4,787 | 3.046875 | 3 | [] | no_license | package com.hpsgts.hpcloud.common.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.util.*;
/**
* 对象序列化及反序列化
* @author 黄朴(Herper.Plain)
* @Date 2018/02/01 下午12:30
*/
public class SerializeUtil {
private static Logger logger = LoggerFactory.getLogger(SerializeUtil.cla... | true |
40330ca078b88c112edc5a645ef4157a9318de81 | Java | erwindl0/hallvard-caltopia-ptolemy-graphiti | /org.ptolemy.graphiti.generic/src/org/ptolemy/graphiti/generic/actordiagram/PortGA.java | UTF-8 | 1,495 | 1.710938 | 2 | [] | no_license | /**
*/
package org.ptolemy.graphiti.generic.actordiagram;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.graphiti.mm.algorithms.PlatformGraphicsAlgorithm;
/**
* <!-- begin-user-doc -->
* A representation of the model... | true |
bdc56795ce900cd61ff1c680541908937409d695 | Java | EweLoHD/FortniteReplayReader | /src/main/java/fortnitereplayreader/model/MatchStats.java | UTF-8 | 1,853 | 2.5625 | 3 | [
"MIT"
] | permissive | package fortnitereplayreader.model;
public class MatchStats {
private float accuracy;private int assists;
private int eliminations;
private int weaponDamage;
private int otherDamage;
private int revives;
private int damageTaken;
private int damageToStructures;
private int materialsGath... | true |
98ea3e1c2f18b06cd3c7cb68f55dcd1bd9d2e830 | Java | zhibihuaxiyou/BwCareShop4 | /app/src/main/java/com/bwie/bwcareshop/mvp/presenter/MyWalletPresenter.java | UTF-8 | 1,069 | 2.171875 | 2 | [] | no_license | package com.bwie.bwcareshop.mvp.presenter;
import com.bwie.bwcareshop.bean.WalletBean;
import com.bwie.bwcareshop.mvp.callback.MyCallBack;
import com.bwie.bwcareshop.mvp.callback.MyWalletCallBack;
import com.bwie.bwcareshop.mvp.model.MyWalletModel;
import com.bwie.bwcareshop.mvp.view.MyView;
import com.bwie.bwcareshop... | true |
b547ce16d6c746ed3e0ccc1fbaf536ff58ec81ef | Java | cristian07/swrTaxiDailySubmission | /java-bootcamp-Sebasti-n_Alejandro_Suarez/java-bootcamp-Sebasti-n_Alejandro_Suarez/OOP/src/Author.java | UTF-8 | 529 | 3.125 | 3 | [
"Apache-2.0"
] | permissive |
public class Author {
private String name;
private String email;
private char gender;
public Author(String name,String email,char gender){
this.name=name;
this.email=email;
this.gender=gender;
}
// getters
public String getName() {return name;}
public String getEmail() {return email;}
public char getGender()... | true |
156d174bafce5a8b787a04b966bd3ea925290ea0 | Java | wu305813704/qcwyJava | /src/main/java/com/qcwy/entity/PartDetail.java | UTF-8 | 2,975 | 2.0625 | 2 | [] | no_license | package com.qcwy.entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.io.Serializable;
/**
* Created by KouKi on 2017/3/2.
*/
public class PartDetail implements Serializable {
@JsonInclude(JsonInclude.Include.NON_NULL)
private Integer part_detail_id;
@JsonInclude(JsonInclude.Include... | true |
f6ed13d970a947051b00f498f10102753e9f4840 | Java | grilla99/Drone_Simulation_JavaFX | /AaronGrill27011203/src/ArenaItem.java | UTF-8 | 774 | 3.0625 | 3 | [] | no_license |
public abstract class ArenaItem {
protected double xPos;
protected double yPos;
protected double rad;
protected char col;
/**
* Constructor to create an arena item
* @param x
* @param y
* @param r
*/
public ArenaItem(double x, double y, double r) {
this.xPos = x;
this.yPos = y;
... | true |
f7855025d44a006d581bbf851cfcc11b0ce61cbf | Java | ztyzty070818/study | /src/main/java/bigdata/druid/sequence/test/YieldTest.java | UTF-8 | 844 | 2.859375 | 3 | [] | no_license | package bigdata.druid.sequence.test;
import bigdata.druid.sequence.*;
import com.google.common.collect.ImmutableList;
import java.io.IOException;
/**
* Created by zty on 18-11-6
*/
public class YieldTest {
public static void main(String[] args) throws IOException {
Sequence<String> sequence = Sequences.simple(I... | true |
8f07ad7f1f6263daf259660e29f0b55b1dd25e1b | Java | shinow/tjec | /src/com/wfzcx/fam/common/MessageJob.java | UTF-8 | 827 | 1.828125 | 2 | [] | no_license | package com.wfzcx.fam.common;
import java.util.List;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import com.jbf.common.util.WebContextFactoryUtil;
public class MessageJob implements Job {
@Aut... | true |
8167ddc3452d381a34f6d98d0402d19057d66e93 | Java | bellmit/myGitSpace | /mybatis/enjoyDemoList/mybatis-demo-2019/src/test/java/com/enjoylearning/mybatis/James.java | UTF-8 | 1,206 | 2.515625 | 3 | [] | no_license | package com.enjoylearning.mybatis;
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.enjoylearning.mybatis.factory.product.SmallMovi... | true |
a53ce2dc48df09c248d64ef0472dc5d928510a41 | Java | pengyunhao520/ssm-MaternalAndChildHealthCare | /src/mapper/AntenatalInitialInspectionMapper.java | UTF-8 | 297 | 1.882813 | 2 | [] | no_license | package mapper;
import java.util.List;
import domain.AntenatalInitialInspection;
import domain.PremaritaHealthInformation;
public interface AntenatalInitialInspectionMapper extends BaseMapper<AntenatalInitialInspection>{
List<AntenatalInitialInspection> selectAllByidnumber(String idnumber);
} | true |
63403652b26483ff1f10b647e03609a72e09cb47 | Java | pullsaki/git-one | /Circle.java | UTF-8 | 690 | 4.4375 | 4 | [] | no_license | /* Exercise 5: Write a Java program to display the Diameter, Circumference and Area of a circle.
Test Data
Radius value: 6
Expected Output
Diameter of a circle : 12.0
Circumference of a circle: 37.68
Area of a Circle: 113.04 */
import java.util.Scanner;
public class Circle {
public static void main (String args[]) ... | true |
626c2b38117da301462649eb6a5dc8e633b1476f | Java | XueXue-feng/demo_Tomcat_Servlet | /src/main/java/com/xuexue/dao/ServiceDao.java | UTF-8 | 813 | 2.109375 | 2 | [] | no_license | package com.xuexue.dao;
import com.sample.RollCompanyService;
import com.xuexue.util.JdbcUtils;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import java.util.List;
/**
* @ProjectName: demo_Tomcat_Servlet
* @Package: com.xuexue.dao
* @ClassName: Ser... | true |
5f580e3d3efddbd2c513a6d5df0da118a1ebdc76 | Java | utarsuno/DairyRun | /Dairy_Run/src/com/uladzislau/dairy_run/world/Map.java | UTF-8 | 860 | 2.703125 | 3 | [] | no_license | package com.uladzislau.dairy_run.world;
import com.uladzislau.dairy_run.information.ScreenUtil;
public class Map {
public static int number_of_vertical_blocks;
public static int number_of_horizontal_blocks_off_edge_included;
public static int size;
private static float current_scroll;
private static int ground... | true |
082fa9ac61ad9c23934e15b4201b9e8e8e170b86 | Java | MacrossGithub-coder/ShoppingMall | /src/main/java/org/macross/shopping_mall/controller/CommoditySeckillController.java | UTF-8 | 2,957 | 2.21875 | 2 | [] | no_license | package org.macross.shopping_mall.controller;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.apache.ibatis.annotations.Param;
import org.macross.shopping_mall.service.CommoditySeckillService;
import org.macross.shopping_mall.utils.JsonData;
import org.springframework.beans.factory.annotation.Aut... | true |
df1ddd50e496b59e192b7391c1f682b64795512a | Java | angelavarcila/zabbixDataSets | /src/model/Functions.java | UTF-8 | 3,707 | 2.234375 | 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 model;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.... | true |
e14784e3629fe0e9199a4b76b34731d1da8c144b | Java | dotanloc1998/Sach24h | /app/src/main/java/com/sinhvien/sach24h/Adapter/BinhLuanAdapter.java | UTF-8 | 1,909 | 2.28125 | 2 | [] | no_license | package com.sinhvien.sach24h.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.sinhvien.sach24h.Model.BinhLuan;
import com.sinhvien.sach24h.R;
import java.... | true |
9fa775ff048bd78c3987c6b6818686bed26cfffd | Java | BetterITOrg/BitBase | /src/main/java/com/betterit/BitBase/dao/repository/kaligia/SiteMapper.java | UTF-8 | 2,477 | 2.03125 | 2 | [] | no_license | package com.betterit.kaligia.dao.repository.kaligia;
import com.betterit.kaligia.dao.model.kaligia.Site;
import com.betterit.kaligia.dao.model.kaligia.SiteExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SiteMapper {
/**
* This method was generated by MyBatis Generator.... | true |
0efc62bc846ab43bd277b1915df69110ce8c82fc | Java | lemote1/COP3330 | /Melesse_PA4/Melesse_P2/src/Melesse_P2/DuplicateCounter.java | UTF-8 | 1,963 | 3.375 | 3 | [] | no_license |
package Melesse_P2;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.HashMap;
import java.util.Iterator;
public class DuplicateCounter {
HashMap<String, Integer> wordCounter;
public DuplicateCo... | true |
c803aae6268356a981e33de124379320a17c8b1b | Java | AgaevAlex/job4j | /chapter_001/src/main/java/ru/job4j/array/Turn.java | UTF-8 | 609 | 3.5 | 4 | [
"Apache-2.0"
] | permissive | package ru.job4j.array;
/**
* 6.2. Перевернуть массив.[#122496].
*/
public class Turn {
/**
* Класс, переворачивающий массив.
*
* @param array - передаваемый массив.
* @return перевернутый массив чисел.
*/
public int[] back(int[] array) {
for (int count = 0; count < array.len... | true |
60466894f1edb303f9df48afae9ddb4c59b8f6bf | Java | UrielCh/ovh-java-sdk | /ovh-java-sdk-ipLoadbalancing/src/main/java/net/minidev/ovh/api/iploadbalancing/ssl/OvhSsl.java | UTF-8 | 1,179 | 2.21875 | 2 | [
"BSD-3-Clause"
] | permissive | package net.minidev.ovh.api.iploadbalancing.ssl;
import java.util.Date;
import net.minidev.ovh.api.iploadbalancing.OvhSslTypeEnum;
/**
* Ssl
*/
public class OvhSsl {
/**
* Subject Alternative Name of your SSL certificate
*
* canBeNull && readOnly
*/
public String[] san;
/**
* Serial of your SSL certif... | true |
f66312a65de0bff91757c44069f390d5e7e7d53e | Java | SpartanB312/Epsilon | /Client/src/main/java/club/eridani/epsilon/client/mixin/mixins/network/MixinMinecraftServer.java | UTF-8 | 1,338 | 1.90625 | 2 | [] | no_license | package club.eridani.epsilon.client.mixin.mixins.network;
import net.minecraft.server.MinecraftServer;
import org.spongepowered.asm.mixin.Mixin;
@Mixin(MinecraftServer.class)
public class MixinMinecraftServer {
/*
private static WorldServer world;
@ModifyVariable(method = "loadAllWorlds", at = @At(value ... | true |
3e51a0fbabf2cf1a4396dd673c4c8b9ad9660dbf | Java | jordansmith04/Automation | /ParaBank-UI-Automation/src/test/java/com/jordan/ParaBankTests/Utility/DataManager.java | UTF-8 | 22,758 | 2.25 | 2 | [] | no_license | using EHBsBDDFramework.Constants;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Framework.Utility
{
public class DataManager
{
/*
public static GranteeEntity FindGrantee()
{
... | true |
fbb928fde814575239f6dfd310162400aae2c214 | Java | bellmit/eparkingMicroservice | /eparkingCloud/src/main/java/com/eparking/controller/work/PropertyBillItemsController.java | UTF-8 | 3,389 | 1.851563 | 2 | [] | no_license | package com.eparking.controller.work;
import com.common.annotation.HttpLog;
import com.common.entity.ActionRsp;
import com.common.entity.ControllerRsp;
import com.common.entity.eparkingCloud.TPropertyBillItems;
import com.eparking.insideService.TPropertyBillItemsInsideService;
import com.eparking.service.PropertyBillI... | true |
6c5ae20e49560ceb68a7742978d6d07ede0e6033 | Java | DynamicApproach/Java-Work | /Euler549/src/Euler549.java | UTF-8 | 4,988 | 3.15625 | 3 | [
"MIT"
] | permissive |
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.HashMap;
/**
*
* @author User
*/
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
public class Euler549 {
public static void main(String[] args) {
FactorialDivisib... | true |
9b21dc4c9fad7450a91b920f2d74e7a5c4b164a6 | Java | efftushkin/HillelJavaGradle | /src/main/java/com/efftushkin/app/SimpleCalculator.java | UTF-8 | 2,775 | 3.890625 | 4 | [] | no_license | package com.efftushkin.app;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;
public class SimpleCalculator {
public static void main(String[] args) {
System.out.println("main.java.com.efftushkin.app.SimpleCalculator: Welcome!");
Scanner scanner = new Scanner(S... | true |
d12cf8fcb73b2451445ed2a2a0d13035ee1ac584 | Java | HorizenSS/WZ_ESPRIT_JavaEE_JSF_Nature-Spirit_Project | /nature-spirit-ejb/src/main/java/tn/esprit/entities/DonationId.java | UTF-8 | 1,558 | 2.515625 | 3 | [] | no_license | package tn.esprit.entities;
import java.io.Serializable;
import javax.persistence.Embeddable;
@Embeddable
public class DonationId implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer idMember;
private Integer idEvent;
public DonationId() {
/... | true |
1d6eb613ebe93659fd010b56ca16b1f24f065e19 | Java | Emily-Jiang/microprofile-service-mesh-service-a | /src/main/java/org/eclipse/microprofile/servicemesh/servicea/ServiceA.java | UTF-8 | 2,701 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
*******************************************************************************
* Copyright (c) 2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the ... | true |
2f7b61aabaa6089cce18d4901f4b015b98001afd | Java | nperrier/music-server | /indexer/src/main/java/com/perrier/music/tag/MockTag.java | UTF-8 | 390 | 2.390625 | 2 | [] | no_license | package com.perrier.music.tag;
public class MockTag extends AbstractTag {
private MockTag(Builder builder) {
super(builder);
}
public final static class Builder extends AbstractTagBuilder<MockTag> {
@Override
public MockTag build() {
return new MockTag(this);
}
@Override
public String toString() ... | true |
628d390a9a7e9dce6aa2b97a90e409d2f25b5ca2 | Java | Seconight/Project | /student_sign_demo/src/test/java/com/Attendance/student_sign_demo/repository/AttendanceRepositoryTest.java | UTF-8 | 984 | 2.171875 | 2 | [] | no_license | package com.Attendance.student_sign_demo.repository;
import com.Attendance.student_sign_demo.entity.Attendance;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.List;
import static org.junit... | true |
b488d69bf6e0295fed634b3cc99740d7c6b5e7d7 | Java | ChandhiniPM/SpringProjects | /springwebORMMVC/src/main/java/com/spring/springormmvc/user/dao/UserDaoImpl.java | UTF-8 | 840 | 2.265625 | 2 | [] | no_license | package com.spring.springormmvc.user.dao;
import java.io.Serializable;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.stereotype.Repository;
import com.spring.springormmvc.user.entity.User;
... | true |
cd73cdba1e4b909b6b12d470d24b9553abc35acb | Java | b3lg1c4/java-ejercicios | /Ejercicio4/src/cuartoEjercicio/Main.java | UTF-8 | 1,026 | 3.484375 | 3 | [] | no_license | package cuartoEjercicio;
import java.util.Scanner;
public class Main {
static Scanner input = new Scanner(System.in);
static int SIZE = 5;
private static int[] getEnteros(int[] enteros) {
for (int i = 0; i < SIZE; i++) {
enteros[i] = input.nextInt();
}
;
return enteros;
};
private static int[] ge... | true |
430bd21fcd77a0e9bbc22492f3457c2a6af8d965 | Java | master-spike/Blade2D | /src/com/blade2d/drawelements/Image.java | UTF-8 | 2,112 | 3.21875 | 3 | [] | no_license | package com.blade2d.drawelements;
import java.awt.image.BufferedImage;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.IntBuffer;
import javax.imageio.ImageIO;
/**
* An image designed for use as an OpenGL texture
*/
public class Image {
/**
* Raw pixel data
*/
private final int[] ... | true |
f7112720e01c82a948feb749a3a1079ce1919f69 | Java | claudiomoscoso/aga-app | /src/cl/builderSoft/product/simulation/MainSimulation.java | UTF-8 | 2,667 | 2.296875 | 2 | [] | no_license | /*
* Created on 08-01-2008
*/
package cl.builderSoft.product.simulation;
import java.sql.Connection;
import java.util.Iterator;
import java.util.List;
import org.dom4j.Document;
import org.dom4j.Element;
import cl.builderSoft.framework.exception.BSException;
import cl.builderSoft.framework.exception.BSProgrammerEx... | true |
95a8626e8662c01c7eb8b02ca31c9c80f3860db1 | Java | MarinaBekavac/Java | /src/main/java/sample/DodavanjeNoveZupanijeController.java | UTF-8 | 2,183 | 2.4375 | 2 | [] | no_license | package main.java.sample;
import hr.java.covidportal.load.BazaPodataka;
import hr.java.covidportal.model.Zupanija;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.TextField;
import java.sql.SQLException;
import static hr.java.covidportal.load.Loaders.dodajZupanijuUDa... | true |
11f1334a79911f9a4e033bf44b820478b6ba132d | Java | JPedroSilveira/greenshare-api | /src/main/java/com/greenshare/entity/address/Address.java | UTF-8 | 6,197 | 2.5 | 2 | [] | no_license | package com.greenshare.entity.address;
import static javax.persistence.GenerationType.SEQUENCE;
import java.io.Serializable;
import java.util.ArrayList;
import javax.persistence.*;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.faster... | true |
d58789cbbd2dbf192470a7098403a6fbdf2527e9 | Java | stephsun21/java-projects | /Zinnformatics.java | UTF-8 | 1,723 | 3.515625 | 4 | [] | no_license | import javax.swing.JOptionPane;
import java.text.NumberFormat;
//Author:Stephanie Sun
//Zinnformatics.java
//
//This method takes the input company name and quantity orderd and output a final invoice through a message box.
public class Zinnformatics{
public static void main(String[]args){
int again;... | true |
6af0949a95c07b0188f3f36ffbec8d2493539f47 | Java | warlockopy/MzoneApi | /src/main/java/place/PlaceReader.java | UTF-8 | 1,750 | 2.96875 | 3 | [] | no_license | package place;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import utilities.Tokenizer;
public class PlaceReader {
public ArrayList <Place> readPlaces (String fileName){
ArrayList <Place> places = new Arra... | true |
d29d5f1ce81654f73d60a6ac11bbc3ecf8eb2316 | Java | TaaviTilk/I200-JAVA | /Eksami_variandid/src/Algoritm/PikadSoned.java | UTF-8 | 1,067 | 2.984375 | 3 | [] | no_license | package Algoritm;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Antud on massiiv. Mitu sõne on massiivis keskmisest pikemad?
*/
public class PikadSoned {
public static void main(String[] args) {
//String[] naide = {"kaalikas", "joonas", "maakera", "homeros", "mandel"}; // vastus on 3
... | true |
40f99b7e421dbbbd9eaea7326a64e1f7f7196f62 | Java | googleads/google-ads-java | /google-ads/src/main/java/com/google/ads/googleads/lib/logging/RequestLogger.java | UTF-8 | 6,385 | 2.171875 | 2 | [
"BSD-3-Clause",
"Classpath-exception-2.0",
"GPL-2.0-only",
"Apache-2.0",
"MIT",
"CDDL-1.1"
] | permissive | // Copyright 2019 Google LLC
//
// 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 to in w... | true |
8f9ccbcfe1dd74fa35783e3fd06685cac9042d96 | Java | fedor-malyshkin/story_line2_crawler | /src/main/java/ru/nlp_project/story_line2/crawler/parse_site/ParseSiteCrawler.java | UTF-8 | 2,794 | 2.65625 | 3 | [] | no_license | package ru.nlp_project.story_line2.crawler.parse_site;
import edu.uci.ics.crawler4j.crawler.Page;
import edu.uci.ics.crawler4j.crawler.WebCrawler;
import edu.uci.ics.crawler4j.parser.HtmlParseData;
import edu.uci.ics.crawler4j.url.URLCanonicalizer;
import edu.uci.ics.crawler4j.url.WebURL;
import ru.nlp_project.story_l... | true |
4b361f72792f40dd3dd78ffb1f36d27a6b6dafa2 | Java | zNiGhTFoXz/airlines2 | /java/src/project/view/flight/FlightUpdateView.java | UTF-8 | 2,404 | 2.75 | 3 | [] | no_license | package project.view.flight;
import core.view.View;
import project.entity.Flight;
import project.helpers.property.FlightProperty;
import java.util.Scanner;
public class FlightUpdateView extends View {
public String init(Flight flight) {
do {
System.out.println("---- UPDATE FLIGHT -----");
... | true |
e3dbd393fc3883800dcf25b4146870316cfd71bf | Java | ceballos1019/IngenieriaWeb | /EjemploSpring/test/co/edu/udea/iw/dao/impl/ClienteDAOImplTest.java | UTF-8 | 2,574 | 2.59375 | 3 | [] | no_license | /**
*
*/
package co.edu.udea.iw.dao.impl;
import static org.junit.Assert.*;
import java.sql.Date;
import java.util.Calendar;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Roll... | true |
82746ee5265cc22fbfb8137418829c74cf11f625 | Java | saifulislamrajon/FeetMetersConverter | /app/src/main/java/com/example/saiful/feetmetersconverter/MainActivity.java | UTF-8 | 3,278 | 2.46875 | 2 | [] | no_license | package com.example.saiful.feetmetersconverter;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
imp... | true |
ee5f5b0582c2af46d3fe4c1e8e01cbcb24f4bb27 | Java | ThanhGT/MathFunctions | /src/main/java/com/mycompany/methods/Methods.java | UTF-8 | 13,867 | 3.890625 | 4 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.methods;
import java.util.Scanner;
/**
*
* @author THANH
*/
public class Methods {
/**
... | true |
30c13634df3da9f13157a4582f46b86c7c099aca | Java | marcoucou/com.tinder | /src/com/google/gson/internal/a/c.java | UTF-8 | 2,557 | 2.015625 | 2 | [] | no_license | package com.google.gson.internal.a;
import com.google.gson.JsonSyntaxException;
import com.google.gson.b.a;
import com.google.gson.e;
import com.google.gson.r;
import com.google.gson.s;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import j... | true |
b8f1ac8af3f952b6afbada2286bc099993bc3b93 | Java | Favio88/UnionCanina | /app/src/main/java/com/favio/unioncanina/modelos/Fotografia.java | UTF-8 | 142 | 1.53125 | 2 | [] | no_license | package com.favio.unioncanina.modelos;
public class Fotografia {
private int id;
private int id_mascota;
private String foto;
} | true |
172b22eb54f688920cbe7451937114125891a26b | Java | HaugTest/Fire_Emblem_Recreation | /src/test/java/testEquippableItems/testAccessoryCreation/testShields.java | UTF-8 | 1,551 | 2.609375 | 3 | [] | no_license | package testEquippableItems.testAccessoryCreation;
import org.junit.Test;
import java.util.ArrayList;
import static testSetUpMethods.AccessoryCreationTestMethod.createAndTestAccessory;
public class testShields {
@Test
public void testLeatherShield() {
createAndTestAccessory("Leather_Shield", "Leathe... | true |
0ecf15ca9116a6bc8474ccccfba76a393f06bde4 | Java | vedina/RESTNet | /restnet-userdb/src/main/java/net/idea/restnet/resources/Resources.java | UTF-8 | 948 | 1.515625 | 2 | [] | no_license | package net.idea.restnet.resources;
import net.idea.restnet.c.resource.TaskResource;
public class Resources {
public static final String project = "/project";
public static final String organisation = "/organisation";
public static final String user = "/user";
public static final String authors = "/au... | true |
472e96b5efc3df6880e12528cfb9a191605626bd | Java | mojavelinux/seam-faces | /api/src/main/java/org/jboss/seam/faces/context/conversation/ConversationBoundary.java | UTF-8 | 812 | 1.96875 | 2 | [] | no_license | package org.jboss.seam.faces.context.conversation;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.l... | true |
b0a8c08dde25cdf1beaf1a0783aa1b1661cdc099 | Java | 791837060/qipai_huainanmajiang | /qipai_admin_facade/src/main/java/com/anbang/qipai/admin/plan/dao/shopdao/ScoreProductRecordDao.java | UTF-8 | 743 | 1.796875 | 2 | [] | no_license | package com.anbang.qipai.admin.plan.dao.shopdao;
import com.anbang.qipai.admin.plan.bean.shop.ScoreProductRecord;
import com.anbang.qipai.admin.web.query.ScoreRecordQuery;
import java.util.List;
public interface ScoreProductRecordDao {
void save(ScoreProductRecord record);
ScoreProductRecord findById(String id);... | true |