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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d7b51a44717a9265638eb81ac7469a0dc42f938a | Java | ColGaben96/MatrixCalculator | /AlgebraLineal_ProyectoCortev2/src/controlador/Controlador.java | UTF-8 | 5,160 | 3.484375 | 3 | [
"MIT"
] | permissive | package controlador;
import java.util.Scanner;
import modelo.Lineal;
public class Controlador
{
private Lineal mundo = new Lineal();
private Scanner sc = new Scanner(System.in);
private String comando = new String();
public Controlador()
{
iniciarPrograma();
}
public void iniciarProgram... | true |
d3ad948cc0f59a2b477f488dc27e28eb2fac7fe3 | Java | killbill/killbill-dwolla-plugin | /src/main/java/org/killbill/billing/plugin/dwolla/core/DwollaTokenPair.java | UTF-8 | 1,146 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*... | true |
f79344c0ab2936aa890a6df08221abd318f66948 | Java | fnberta/qwittig-android | /app/src/main/java/ch/giantific/qwittig/Qwittig.java | UTF-8 | 1,632 | 1.960938 | 2 | [] | no_license | /*
* Copyright (c) 2015 Fabio Berta
*/
package ch.giantific.qwittig;
import android.app.Application;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.multidex.MultiDex;
import com.facebook.FacebookSdk;
import ch.giantific.qwittig.di.ApplicationComponent;
import ch.... | true |
2a57dea95defa2f847f927a45e0f63c54286a673 | Java | sos-berlin/commons-jobscheduler | /jobscheduler-helper/src/main/java/com/sos/JSHelper/io/Files/JSXSLTFile.java | UTF-8 | 272 | 1.671875 | 2 | [] | no_license | package com.sos.JSHelper.io.Files;
/** @author KB */
public class JSXSLTFile extends JSTextFile {
private static final long serialVersionUID = -8633643757044753847L;
public JSXSLTFile(final String pstrFileName) {
super(pstrFileName);
}
} | true |
617d2247c497ca508757f04edb88f523e6fec2b4 | Java | h1euuu/bai-tap-Java-OOP | /QLCB.java | UTF-8 | 919 | 2.609375 | 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 bai1;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
*
* @author H... | true |
a22fbd35cc3189c64fff34eff3a1ce15c73e2549 | Java | Vikaas1221/SmartCityApp | /app/src/main/java/com/example/mysmartcity/Activity/MainActivity.java | UTF-8 | 4,391 | 2.09375 | 2 | [] | no_license | package com.example.mysmartcity.Activity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.exam... | true |
e1d09bc13c5f8b814b14c83f21541a3ba9cbd8ab | Java | goldenXcode/breakman | /Breakman/src/no/singh/models/Ball.java | WINDOWS-1252 | 4,263 | 2.25 | 2 | [] | no_license | package no.singh.models;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import no.singh.breakman.R;
import no.singh.controllers.ChipController;
import no.singh.activities.GameActivity;
import no.singh.utility.Logic;
import no.singh.utility.Screenadapter;
import no.singh.u... | true |
eae904d8aa863669abe179a324cbe1b305f75f71 | Java | deepaksachan111/ShineCityGAUpdate | /app/src/main/java/myappplication/noida/quaere/groupalternate/mainpage/FeedbackActivity.java | UTF-8 | 3,322 | 2.21875 | 2 | [] | no_license | package myappplication.noida.quaere.groupalternate.mainpage;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import java.util.ArrayList;
... | true |
77cec675f07a763f98a98761d4b0a40773f0028d | Java | shankarravi36/LDS | /src/main/java/com/hxwr/lds/model/LoanReport.java | UTF-8 | 1,162 | 2.28125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.hxwr.lds.model;
import com.hxwr.lds.entities.Client;
import com.hxwr.lds.entities.Loan;
import java.util.ArrayLis... | true |
8f9c9800f526987391030e5af71782008bf2ca42 | Java | soldiers1989/documentResource | /复兴/scf-bas-paren/scf-bas-api/src/main/java/com/huateng/scf/sto/pcb/model/MortgageAdjustPriceVO.java | UTF-8 | 7,735 | 1.757813 | 2 | [] | no_license | /*
* ==================================================================
* The Huateng Software License
*
* Copyright (c) 2008-2012 TOPSCF All rights reserved.
* ==================================================================
*/
package com.huateng.scf.sto.pcb.model;
import java.math.BigDecimal;
import java.... | true |
0ab89ea07c273e807d039134729bedfc4ef8b215 | Java | kate-mashkina/cgov-digital-platform-qa | /src/main/java/gov/cancer/pageobject/cts/components/CriteriaSection.java | UTF-8 | 2,722 | 2.765625 | 3 | [] | no_license | package gov.cancer.pageobject.cts.components;
import gov.cancer.framework.ElementHelper;
import gov.cancer.pageobject.components.Button;
import gov.cancer.pageobject.components.Component;
import org.openqa.selenium.WebElement;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
/**
* This class ... | true |
bb35a71d61328c69f33675c390a73a7556c52f23 | Java | cckmit/um | /ump/src/main/java/com/hhz/ump/web/res/bean/BizRentContractApp.java | UTF-8 | 5,271 | 1.8125 | 2 | [] | no_license | package com.hhz.ump.web.res.bean;
import java.util.ArrayList;
import java.util.List;
import org.springside.modules.spring.SpringContextHolder;
import com.hhz.ump.dao.sc.ScContractTempletInfoManager;
import com.hhz.ump.web.res.baseBean.BaseSupTemplate;
import com.hhz.ump.web.res.baseBean.IStatusModifyListener;
publi... | true |
dd0715e0b367ccc46b3fa8cc174d0f632943c79b | Java | SharedKnowledge/SharkNetNFC | /app/src/androidTest/java/net/mnio/sharknetnfc/hce/SmartCardEmulationServiceTest.java | UTF-8 | 1,371 | 2.5 | 2 | [] | no_license | package net.mnio.sharknetnfc.hce;
import junit.framework.TestCase;
public class SmartCardEmulationServiceTest extends TestCase {
public void testGetBytesFromBuffer() throws Exception {
final SmartCardEmulationService service = new SmartCardEmulationService();
service.byteBuffer = "Hello World".g... | true |
f8d9e0a6debdbb76949d73b57416961434447405 | Java | TomMeehan123/JAVA-Projects | /GuessingGame.java | UTF-8 | 4,565 | 4.125 | 4 | [] | no_license | /**
* The purpose of this game is to selecect a random int.
* The int will be between 100 and 999.
* You will need to guess a number between this range.
* If your number is out of range a message will be displayed stating that your guess is too high or low.
* You will have 10 attempts.
*
* @author (Tom Meehan)
... | true |
b025f13e884e92eee4f8cef85891fa9a3372fc50 | Java | cavpollo/advent-of-code-2020 | /Day08A.java | UTF-8 | 2,897 | 3.34375 | 3 | [] | no_license | package advent;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Day08A {
public static void main(String[] args) thro... | true |
146f570fec8ad94553d7baa827fede7f11e2a8aa | Java | Muthyapu15/ShivaSaiJava | /Shiva/src/Demo3.java | UTF-8 | 216 | 2.5625 | 3 | [] | no_license |
public class Demo3 {
static float a= 2.5f;
public static void disp(int a)
{
System.out.println("excuting disp method");
}
public static void main(String[] args)
{
System.out.println("a="+a);
disp(25);
}
}
| true |
ee70a38ffbe54d38a2f6a59d1930bdc0e2253f0e | Java | basquiat78/java-oop | /src/io/basquiat/solid/b/ocp/model/Horse.java | WINDOWS-1252 | 250 | 1.820313 | 2 | [] | no_license | package io.basquiat.solid.b.ocp.model;
import io.basquiat.solid.b.ocp.strategy.EarthVehicleStrategy;
/**
*
* created by basquiat
*
*/
public class Horse extends EarthVehicleStrategy {
public Horse() {
super("");
}
}
| true |
de0f71ce00b6fd4c43833105c22fac58ceff20c4 | Java | chorongi/GameStatsFramework | /framework/src/test/java/edu/cmu/cs/cs214/hw5/core/MatchPlayerInfoTest.java | UTF-8 | 3,014 | 2.796875 | 3 | [] | no_license | package edu.cmu.cs.cs214.hw5.core;
import org.junit.*;
import static org.junit.Assert.*;
public class MatchPlayerInfoTest {
private MatchPlayerInfo teammate, enemy, empty;
@Before
public void setUp() {
teammate = new MatchPlayerInfo("teammate_name", "champion",
3, 1, 5, true);
... | true |
a731379a6877a44a95b23022dfa4defd0c183472 | Java | JoshuaKornmayer/LibraryJava | /LibraryItem.java | UTF-8 | 2,492 | 2.90625 | 3 | [] | no_license | public class LibraryItem {
// Class properties
private String title;
private long yearReleased;
private long id;
private double costLostDamaged;
private String returnDate;
private double lateFee;
private boolean isCheckedOut;
private String genre;
// Constructor
public Libr... | true |
4250e8c605211c2138463c623ac41981b68c0675 | Java | rongcloud/imkit-android | /kit/src/main/java/io/rong/imkit/widget/refresh/constant/DimensionStatus.java | UTF-8 | 3,274 | 2.765625 | 3 | [
"MIT"
] | permissive | package io.rong.imkit.widget.refresh.constant;
/**
* 尺寸值的定义状态,用于在值覆盖的时候决定优先级
* 越往下优先级越高
*/
@SuppressWarnings("WeakerAccess")
public class DimensionStatus {
public static final DimensionStatus DefaultUnNotify = new DimensionStatus(0,false);//默认值,但是还没通知确认
public static final DimensionStatus Default = new Dim... | true |
f777fb513f3964e02a9d0d958345fc6ad93922cd | Java | HariVarsh/fudo-backend | /src/main/java/com/mindtree/fudo/controller/CustomerSignUpController.java | UTF-8 | 4,537 | 2.5 | 2 | [] | no_license | package com.mindtree.fudo.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.Respon... | true |
1f7f5b46dd11c12cc1e5b19ef6ccb88724be8430 | Java | ValentinTT/Calculator | /src/igu/Marco.java | UTF-8 | 9,086 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package igu;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
... | true |
970b2901eb05c89119f13e2d67483a110b99156f | Java | fx247562340/opscloud-demo | /opscloud-service/src/main/java/com/baiyi/opscloud/service/aliyun/log/impl/OcAliyunLogServiceImpl.java | UTF-8 | 1,501 | 1.96875 | 2 | [] | no_license | package com.baiyi.opscloud.service.aliyun.log.impl;
import com.baiyi.opscloud.domain.DataTable;
import com.baiyi.opscloud.domain.generator.opscloud.OcAliyunLog;
import com.baiyi.opscloud.domain.param.cloud.AliyunLogParam;
import com.baiyi.opscloud.mapper.opscloud.OcAliyunLogMapper;
import com.baiyi.opscloud.service.al... | true |
b3e0f3627b59feb247cf845f0ef4a69a0aa701da | Java | seguranca-publica/kumpel-dom-bot | /src/main/java/com/kumpel/dom/bot/model/bd/DataBaseInterface.java | UTF-8 | 203 | 1.875 | 2 | [
"MIT"
] | permissive | package com.kumpel.dom.bot.model.bd;
import java.util.List;
public interface DataBaseInterface<T> {
void create(T table);
List<T> read();
void update(T table);
void delete(T table);
}
| true |
b96e80cd95c4b40eaee46bced74dbf900fef9ee4 | Java | Artmozaec/KharkovMap | /src/userinterface/ScreenManager.java | WINDOWS-1251 | 1,266 | 3.34375 | 3 | [] | no_license | package userinterface;
import java.util.*;
import javax.microedition.lcdui.*;
class ScreenManager{
private Display display;
// Displayable -
private Vector screens;
ScreenManager(Display inDisplay){
display = inDisplay;
screens = new Vector();
}
//
public void clear(){
screens.removeAllElements();
}
... | true |
ee2e2dc5c0a3733408b5e1454720eb39c8904fd3 | Java | jiuyuesanqiu/DesignPattern | /src/main/java/interceptingFilterPattern/Filter.java | UTF-8 | 285 | 2.296875 | 2 | [] | no_license | package interceptingFilterPattern;
/**
* @ClassName: Filter
* @Description: TODO(这里用一句话描述这个类的作用)
* @author 刘良
* @date 2019年2月11日 下午3:18:30
*
*/
public interface Filter {
public void execute(String request);
}
| true |
f635cc51ab7c242936688573c8fb313989bb23ab | Java | jegesh/android-mini-crm | /LearningSqlite/src/database_files/CustomersRecord.java | UTF-8 | 2,530 | 2.484375 | 2 | [] | no_license | package database_files;
import java.util.HashMap;
import database_files.CustomersContract.Customers;
import net.gesher.minicrm.R;
import net.gesher.minicrm.R.id;
import net.gesher.minicrm.R.layout;
import net.gesher.minicrm.R.string;
import android.content.Context;
import android.util.Log;
import android.widget.To... | true |
d9b86ebd2963d7212879f19d08536ea73e9cb39d | Java | almeidaDG/etec-zona-lost | /java-exercises/Projeto Douglas Almeida PC I/src/botaoProduto.java | ISO-8859-1 | 5,499 | 2.75 | 3 | [] | no_license | import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.swing.JOptionPane.*;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import java.text.ParseException;
public class botaoProduto extends JFrame{
ImageIcon iconeCad, iconeVol;
JLa... | true |
b4441c9e66d84f29ab185061e00652ce6bad0eac | Java | simonkrenger/bfh-einf-programmierung | /ch02/src/ex05/IntersectionViewer.java | UTF-8 | 416 | 3.046875 | 3 | [] | no_license | package ex05;
import javax.swing.JFrame;
public class IntersectionViewer {
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setSize(400, 200);
frame.setTitle("Two Rectangles and their intersection");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
IntersectionComponent c... | true |
b771956482966f6636d2891fcf099a296b3166cd | Java | miguelfoko/SensorFramework | /src/com/framework/sensor/Sensor.java | UTF-8 | 751 | 2.328125 | 2 | [] | no_license | package com.framework.sensor;
import com.framework.network.Network;
public interface Sensor {
public void substractPower(double value);
public double getPower();
public double consumeWhileSend(Object message);
public double consumeWhileReceive(Object message);
public double consumeWhileIddle();
publi... | true |
01133f413daf982caa2925999a5fd68711f86850 | Java | alyswidan/Paint2 | /src/com/company/DeleteCommand.java | UTF-8 | 554 | 2.5 | 2 | [] | no_license | package com.company;
/**
* Created by Amr on 4/25/2016.
*/
public class DeleteCommand extends EditCommand {
private Selection selection;
public DeleteCommand() {
}
public DeleteCommand(Selection selection) {
this.selection = selection;
}
@Override
public void execute() {
... | true |
7f6474fe1b5bba9440fc02d6092c4e96a5e9c040 | Java | ljx123456/WanBao | /app/src/main/java/wanbao/yongchao/com/wanbao/ui/main/mvp/body/LikeBody.java | UTF-8 | 831 | 2.328125 | 2 | [] | no_license | package wanbao.yongchao.com.wanbao.ui.main.mvp.body;
public class LikeBody {
/**
* objectId : 1
* objectType : 2
* type : 3
*/
private int objectId;
private int objectType;
private int type;
public int getObjectId() {
return objectId;
}
public void setObjectI... | true |
2445254de7a42b6118c8bc5e20bf627310b8f695 | Java | morningblu/HWFramework | /Mate20-9.0/src/main/java/android/content/pm/IShortcutService.java | UTF-8 | 34,356 | 1.742188 | 2 | [] | no_license | package android.content.pm;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.Lis... | true |
a5864cfb0b17834b30cc773a7393b516f51a930c | Java | Huw-man/project-fa2020-tasty-bits | /frontend/app/src/main/java/com/example/tastybits/ui/questionview/QuestionPostFragment.java | UTF-8 | 9,044 | 1.890625 | 2 | [] | no_license | package com.example.tastybits.ui.questionview;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.EditorInfo;
import android.widget.ArrayAdapter;
import android.widget.Button;
import androi... | true |
09f61069efc2a81e04ba9253b7f97f750ed2df75 | Java | WorldInEye/my | /my-api/my-api-provider-user/src/main/java/indi/uhyils/pojo/request/PutDeptsToRoleRequest.java | UTF-8 | 621 | 1.84375 | 2 | [] | no_license | package indi.uhyils.pojo.request;
import indi.uhyils.pojo.request.base.DefaultRequest;
import java.util.List;
/**
* @author uhyils <247452312@qq.com>
* @date 文件创建日期 2020年05月28日 07时38分
*/
public class PutDeptsToRoleRequest extends DefaultRequest {
private Long roleId;
private List<Long> deptIds;
pub... | true |
05e0c7afe5c24efa2bc605a6aae3ab88ca612e7c | Java | zenghui6/leetcode | /src/LeetCode/p67二进制求和/Solution.java | UTF-8 | 1,008 | 3.78125 | 4 | [] | no_license | package LeetCode.p67二进制求和;
/**
* @ClassName Solution
* @Description: 1. 补零对齐, 2. 反向,按位相加 3.最后反向字符串
* @Author zeng
* @Date 2020/4/19
**/
public class Solution {
public String addBinary(String a, String b) {
StringBuilder str = new StringBuilder();
//进位
int flag = 0 ;
for (int i ... | true |
808feeec6a5d1c9f689c223bdda8a92c40ceec6c | Java | alirezabrujerdi/tahw1-array-reverse-starter | /src/main/java/ir/ac/kntu/ArrayReverse.java | UTF-8 | 385 | 2.890625 | 3 | [] | no_license | package ir.ac.kntu;
import java.util.Arrays;
public class ArrayReverse{
public static void reverse(String[] array){
//complete the body of this method
//don't reverse using a helper array
}
public static void main(String[] args){
reverse(args);
//show reversed array
... | true |
9025ff8f60da935ff0ac3e68abe342d9049ceb8e | Java | puneetvashisht/mwpune | /workspace/spring-basics-01/src/main/java/com/cts/services/PaymentService.java | UTF-8 | 380 | 2.03125 | 2 | [] | no_license | package com.cts.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cts.repos.PaymentRepository;
@Service
public class PaymentService {
@Autowired
PaymentRepository paymentRepository;
public void payment(){
System.out.println("I... | true |
eb68ccc2fb33e66d4af0a84ed94b98c1f5cb23ac | Java | fraunhoferfokus/particity | /portlet_data/src/main/java/de/fraunhofer/fokus/oefit/particity/scheduler/DailyScheduler.java | UTF-8 | 8,420 | 1.664063 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Copyright (c) 2015, Fraunhofer FOKUS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of co... | true |
0d3a48a900e6c27141016fe39797761db33ad6b9 | Java | VitalyPorsev/job4j_tracker | /src/main/java/ru/job4j/poly/Bus.java | UTF-8 | 399 | 3.359375 | 3 | [] | no_license | package ru.job4j.poly;
public class Bus implements Transport{
@Override
public void drive() {
System.out.println("Bus drives ont he road");
}
@Override
public void passengers(int numberOfPassengers) {
System.out.println("Quantity of passengers" + numberOfPassengers);
}
@Ov... | true |
973987baf3eb7f821dd38df58495c65ca851a8bb | Java | saarthi-ast/cloudstorage | /src/main/java/com/udacity/jwdnd/course1/cloudstorage/model/LoginForm.java | UTF-8 | 281 | 1.820313 | 2 | [] | no_license | package com.udacity.jwdnd.course1.cloudstorage.model;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* The type Login form.
* @author Sudhir Tyagi
*/
@Data
@AllArgsConstructor
public class LoginForm {
private String inputUsername;
private String inputPassword;
}
| true |
01330ddfe96e6b31a3cf36ed97568762c1954360 | Java | NotNilfgaardian/repozit_2 | /src/by/tut/KADIL/MainApplication.java | UTF-8 | 265 | 1.867188 | 2 | [] | no_license | package by.tut.KADIL;
import javax.swing.*;
public class MainApplication
{
public static void main(String[] args)
{
SimpleGUI app = new SimpleGUI();
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
app.setVisible(true);
}
}
| true |
3f3f908e50b034a7460b86c8c330c2bb844c6c1c | Java | Gluegun/sbb_railway | /src/main/java/ru/tsystems/school/dao/PassengerDao.java | UTF-8 | 200 | 1.914063 | 2 | [] | no_license | package ru.tsystems.school.dao;
import ru.tsystems.school.model.entity.Passenger;
public interface PassengerDao {
Passenger findById(int id);
Passenger findByUserName(String userName);
}
| true |
f0c4c85f205f4b6451f2447c31e62c7ab44fab09 | Java | ion7Sate/DesignPaterns2 | /src/Composite/Test.java | UTF-8 | 953 | 2.984375 | 3 | [] | no_license | package Composite;
public class Test {
public static void main(String[] args) {
Employee developer1 = new Developer("Ion", 1, 1000l);
Employee developer2 = new Developer("Sandu", 2, 2000L);
Employee developer3 = new Developer("Vasile", 3, 2030L);
Employee developer4 = new Developer(... | true |
dcafacecd5a22492dc5b37f2343ed1c4a98f950c | Java | ramonli/eGame_TE | /sourcecode/src/main/java/com/mpos/lottery/te/valueaddservice/airtime/support/spi/coobill/CoobillClient.java | UTF-8 | 5,848 | 2.09375 | 2 | [] | no_license | package com.mpos.lottery.te.valueaddservice.airtime.support.spi.coobill;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.transport.http.HTTPConduit;
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
import java.net.MalformedURLException;
imp... | true |
39b75be6dffcbf91cc62a70d0617f28fe0c2fd83 | Java | samuelchang678/Rogue-like-Zombie | /src/game/Food.java | UTF-8 | 719 | 3.390625 | 3 | [] | no_license | package game;
public class Food extends PortableItem{
/**
* heal indicates how much should the item heal if consumed
*/
private int heal;
/**
* Constructor for Food class
* @param name the name of the food
* @param heal int how much should the food heal
* Adding a Eat... | true |
1ca5bd910b33413576391783b868526aa49139e8 | Java | nec-solutioninnovators-ilab/kdw-tree | /src/main/java/com/necsoft/vtc/kdwtree/KDTree.java | UTF-8 | 10,693 | 2.890625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
KDW-tree
Copyright (c) 2014-2017 NEC Solution Innovators, Ltd.
This software is released under the MIT License, See the LICENSE file
in the project root for more information.
*/
package com.necsoft.vtc.kdwtree;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* Sample implemen... | true |
652e8b3935a7352433a889228715202017980290 | Java | isaacrosario/java | /isaac/src/main/java/com/mycompany/isaac/prueba.java | UTF-8 | 921 | 2.609375 | 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 com.mycompany.isaac;
import javax.swing.JOptionPane;
/**
*
* @author isaac
*/
public class prueba {
public static voi... | true |
510633f35c0401da1845d296e6d04f59ca6b78ec | Java | duyhung10/TheWatchTemp | /src/main/java/vn/ssdc/vnpt/erp/umgr/services/AuthService.java | UTF-8 | 2,982 | 2.21875 | 2 | [] | no_license | package vn.ssdc.vnpt.erp.umgr.services;
import io.github.jhipster.config.JHipsterProperties;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereot... | true |
a4513f6eb350aac5f5d8f933fefeff7e02144e78 | Java | stream-iori/leapcloud_release_platform | /src/main/java/cn/leapcloud/release/platform/dao/impl/UserDAOImpl.java | UTF-8 | 1,379 | 2.3125 | 2 | [] | no_license | package cn.leapcloud.release.platform.dao.impl;
import cn.leapcloud.release.platform.dao.UserDAO;
import cn.leapcloud.release.platform.dao.entity.tables.records.UserRecord;
import org.jooq.Configuration;
import org.jooq.DSLContext;
import org.jooq.impl.DSL;
import javax.inject.Inject;
import static cn.leapcloud.rele... | true |
c036ad9f0ca7423020a3c8554c868dbd2c6cc20c | Java | lqw1111/Learning | /src/OODesign/VentingMachine/Pair.java | UTF-8 | 508 | 2.953125 | 3 | [] | no_license | package OODesign.VentingMachine;
import java.util.List;
public class Pair{
public Item item;
public List<Coin> coins;
public Pair(Item item, List<Coin> coins) {
this.item = item;
this.coins = coins;
}
public Item getItem() {
return item;
}
public void setItem(Ite... | true |
7c7792d2db3ad215a06131d5fe8ce80d5a2b36e4 | Java | mb19mb/stuff | /pattern/src/decorator/Schnitzel.java | UTF-8 | 291 | 2.78125 | 3 | [] | no_license | package decorator;
public class Schnitzel implements Gericht{
private int price = 15;
public int getPreis()
{
this.druckeBeschreibung();
return this.price;
}
public void druckeBeschreibung(){
System.out.println("Ich bin Schnitzel und koste " + this.price + " EUR");
}
}
| true |
dc0665a119e4fc4a3804b3ce83fe02139c16a708 | Java | moutainhigh/gupiao | /src/main/java/com/example/service/GuPiaoServiceImpl.java | UTF-8 | 16,848 | 1.867188 | 2 | [] | no_license | package com.example.service;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.Executors;
import j... | true |
431cc38a00b80c4851b2c86a82e4139b41d6a048 | Java | hanyahui88/swifts | /src/main/java/com/swifts/frame/modules/wx/WeixinController.java | UTF-8 | 2,345 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.swifts.frame.modules.wx;
import com.swifts.frame.modules.wx.fastweixin.message.BaseMsg;
import com.swifts.frame.modules.wx.fastweixin.message.TextMsg;
import com.swifts.frame.modules.wx.fastweixin.message.req.TextReqMsg;
import com.swifts.frame.modules.wx.fastweixin.servlet.WeixinControllerSupport;
import ... | true |
002b3f1f32d53a651926c529dfad83825edb544e | Java | Library-Management-Arnab/user-service | /src/main/java/com/lms/us/rest/repository/UserStatusRepository.java | UTF-8 | 290 | 1.648438 | 2 | [] | no_license | package com.lms.us.rest.repository;
import com.lms.us.rest.model.db.UserStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserStatusRepository extends JpaRepository<UserStatus, String> {
}
| true |
136165bce8708e2bf4d188857b9f556dc2a486e1 | Java | rflima19/java | /multithread/src/com/lima/thread/AplicacaoIncrementa.java | UTF-8 | 972 | 3.6875 | 4 | [] | no_license | package com.lima.thread;
import java.util.Random;
public class AplicacaoIncrementa extends Thread {
private Incrementador inc;
public AplicacaoIncrementa(Incrementador inc) {
super();
this.inc = inc;
}
@Override
public void run() {
Random r = new Random();
try {
Thread.sleep(r.nextInt(10) * 100);
... | true |
07b475f14888503a714bf9511a4f3e3175285fd8 | Java | green-fox-academy/Splichus | /week-3/Day-3/src/Sharpie.java | UTF-8 | 1,267 | 3.78125 | 4 | [] | no_license | public class Sharpie {
String color;
double width;
double inkAmount;
public Sharpie(String color, double width) {
this.color = color;
this.width = width;
inkAmount = 100;
}
public void use() {
inkAmount--;
}
public static void main(String[] args) {
// ... | true |
80ca5cda10dc4ae686596da91763ae22789c0502 | Java | baijug/evolve | /src/main/java/com/baiju/evolve/service/MenuService.java | UTF-8 | 3,195 | 3.140625 | 3 | [] | no_license | package com.baiju.evolve.service;
import java.util.*;
import com.baiju.evolve.data.MenuData;
import com.baiju.evolve.data.SpecialData;
public abstract class MenuService {
public abstract String getType();
public abstract String process(String menuValue);
public Map<Integer,Integer> normalizeInput(String menuVal... | true |
eaf8156ef873593502f514e4aef4d7d876e1e773 | Java | mulhearn/FishStandOld | /app/src/main/java/edu/ucdavis/crayfis/fishstand/LoseFocusOnDone.java | UTF-8 | 904 | 2.484375 | 2 | [] | no_license | package edu.ucdavis.crayfis.fishstand;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.TextView;
// A listener to close soft keyboard input and move focus to view on the DONE action
public cl... | true |
15a70d72a2b5d3a359741e00ffdb23e53355c51f | Java | tang6922718/medicine-1026 | /src/main/java/com/bonc/medicine/mapper/user/OperatorManagementMapper.java | UTF-8 | 927 | 1.8125 | 2 | [] | no_license | package com.bonc.medicine.mapper.user;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
* @program: medicine
* @description: ${description}
* @author: hejiajun
* @create: 2018-09-17 22:34
**/
@Component
public interface OperatorManagementMapper {
/**
* @... | true |
03e483336827a5a2c0e506056674f522950bb909 | Java | moutainhigh/safe | /safe-consumer/src/main/java/com/cloud/consumer/safe/controller/DangerCheckController.java | UTF-8 | 8,851 | 1.867188 | 2 | [] | no_license | package com.cloud.consumer.safe.controller;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springf... | true |
3e48d1781edc6347b19c958d9c91ea9ddad7e92e | Java | C0321G1/sprint2_backend | /c0321g1_pawnshop_backend/c0321g1_pawnshop_backend/src/main/java/c0321g1_pawnshop_backend/controller/news/NewsRestController.java | UTF-8 | 529 | 1.71875 | 2 | [] | no_license | package c0321g1_pawnshop_backend.controller.news;
import c0321g1_pawnshop_backend.service.news.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframewor... | true |
e04b4deddca4a207c5508d8c4d775e5b49bfb3f0 | Java | Symb1OS/traindiary | /traindiary/src/main/java/ru/traindiary/dao/UserImpl.java | UTF-8 | 318 | 1.976563 | 2 | [] | no_license | package ru.traindiary.dao;
import ru.traindiary.model.User;
public interface UserImpl {
public User getUser(String email);
public boolean isExist(String email);
public void add(User user);
public void delete(String email);
public void lock(String email);
public void changePassword(User user);
}
| true |
508dd6c4ede970d7e569007336e6b955bc70cc7c | Java | cnjunq/stuq-rest-with-spring-starter | /lesson205/user-center/src/main/java/io/junq/examples/usercenter/spring/UserCenterWebConfiguration.java | UTF-8 | 2,733 | 1.953125 | 2 | [
"MIT"
] | permissive | package io.junq.examples.usercenter.spring;
import java.util.Iterator;
import java.util.List;
import javax.validation.Validator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.spr... | true |
c623740f155ac7c87a21f26b9fbaf6560a1f8090 | Java | ericbli/Java-project-code | /Bookingsystem/src/bookingsystem/copy/Flight.java | UTF-8 | 917 | 2.5625 | 3 | [] | no_license | package bookingsystem.copy;
import java.util.Date;
public class Flight {
String flightname;
String Flightdate;
String departure_palce;
String destination;
public Flight(String flightname, String flightdate, String departure_palce, String destination) {
super();
this.flightname = ... | true |
97cb53d241983497e4243bcfe1b27501389e8a39 | Java | didiergarcia/ModernJava | /src/streams/building/NumericStream.java | UTF-8 | 336 | 2.921875 | 3 | [] | no_license | package streams.building;
import java.util.stream.DoubleStream;
import java.util.stream.IntStream;
import java.util.stream.LongStream;
public class NumericStream {
public static void main(String[] args) {
IntStream.rangeClosed(1,20).forEach(System.out::println);
LongStream.range(1,20).forEach(System.out::... | true |
7842e285f79e7bb378726546005e4f387b75249d | Java | pavel-evleev/my-spring-books | /api/src/main/java/app/rest/model/DeleteRefreshToken.java | UTF-8 | 469 | 2.234375 | 2 | [
"MIT"
] | permissive | package app.rest.model;
/**
* Created by Pavel on 13.02.2018.
*/
public class DeleteRefreshToken {
private String refresh_token;
public DeleteRefreshToken() {
}
public DeleteRefreshToken(String refresh_token) {
this.refresh_token = refresh_token;
}
public String getRefresh_token()... | true |
f2bc55072380d435d438618f01eb73b342c0b0bc | Java | ArmanZiaei83/IntentServices | /app/src/main/java/com/example/intentservice/MainActivity.java | UTF-8 | 951 | 1.945313 | 2 | [] | no_license | package com.example.intentservice;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import android.app.IntentService;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.view.View... | true |
76c3846e8416cf723beea751cec1b485b1914028 | Java | drilett/Java---A-Beginner-s-Guide-Oracle-Press- | /Vehicle.java | UTF-8 | 358 | 3.0625 | 3 | [
"MIT"
] | permissive | class Vehicle {
int passangers; // number of passangers
int fuelcap; // fuel capacity
int mpg; // fuel consumption in miles per galon
// Method returns the range of the vehicle
int range() {
return fuelcap * mpg;
}
// Compute the fuel needed for a given distance
double fuelneeded (int miles) {
... | true |
21099dcbc92c122480cd55739604525b69025115 | Java | founderdamour/FengGangApp | /app/src/main/java/com/zkhy/fenggang/community/view/main/dj/adapters/PartyCostPayHistoryAdapter.java | UTF-8 | 5,244 | 2.328125 | 2 | [] | no_license | package com.zkhy.fenggang.community.view.main.dj.adapters;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.sinothk.comm.utils.DateUtil;
import com.s... | true |
ff7a99e58875e9d110b7a8dec90c5678dded75cb | Java | smalldust111/learn_tree | /workspace/template_springboot/src/main/java/com/sunyj/template/base/beans/ICommonCode.java | UTF-8 | 199 | 1.804688 | 2 | [] | no_license | package com.sunyj.template.base.beans;
/**
* 返回信息枚举接口
* @author jia
* @since 2020/1/11 16:46
*/
public interface ICommonCode {
Integer getCode();
String getMessage();
}
| true |
3115ee0a57df463a2721057f749a23b8d67940b8 | Java | ravinathedirisinghe/PriceEngineBackendMicroservice | /src/main/java/com/priceengine/service/Constants.java | UTF-8 | 1,020 | 2.171875 | 2 | [] | no_license | package com.priceengine.service;
public class Constants {
//TODO instead of DB call
//values for horse shoe product
public static final String PRODUCT_NAME_HORSESHOE = "Horseshoe";
public static final int CARTON_SIZE_HORSE_SHOE = 5;
public static final Double CARTON_PRICE_HORSE_SHOE = 825.0;
... | true |
d55c3142fc8f6d30626e326c7193137bef59644a | Java | ricardohnn/builditbigger | /jokerandroidlib/src/main/java/com/example/jokerandroidlib/JokerActivity.java | UTF-8 | 717 | 2.328125 | 2 | [] | no_license | package com.example.jokerandroidlib;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
/**
* Created by ricardo.nakayama on 12/21/2017.
*/
public class JokerActivity extends AppCompatActivity{
public static final String EXTRA_JOKER = "EXTRA_JOKER";
p... | true |
2001112d8e0182af0fc246b00a4bdc7d59d92e47 | Java | Jhoow13/FIAP2017 | /ANDROID/AppStarWars-master/App/app/src/main/java/fiap/com/br/app/util/PeopleRequestInterface.java | UTF-8 | 263 | 1.84375 | 2 | [] | no_license | package fiap.com.br.app.util;
import fiap.com.br.app.entity.People;
import retrofit2.Call;
import retrofit2.http.GET;
/**
* Created by logonrm on 24/05/2017.
*/
public interface PeopleRequestInterface {
@GET("people/3")
Call<People> getAllJSON();
}
| true |
8e32ab6a3dc095254e3d33b057e0d941145769cf | Java | wiler121/arduino-monitor | /arduino-monitor-data/src/main/java/mf/arduino/arduinomonitor/services/MotionService.java | UTF-8 | 548 | 1.914063 | 2 | [] | no_license | package mf.arduino.arduinomonitor.services;
import mf.arduino.arduinomonitor.model.Motion;
import org.springframework.data.domain.Page;
import java.util.List;
public interface MotionService extends CrudService<Motion, Long>{
Motion findByMotion(int motion);
List<Motion> getAllMotions();
Motion GetMotion... | true |
0670f67945ec684c2b430916fc23c4fd3a238df6 | Java | jr5g3OnlineCustomerService/OnlineCustomerServiceCenter | /OnlineCustomerServiceCenter/src/main/java/com/cg/onlinecustomerservice/controller/OperatorController.java | UTF-8 | 7,884 | 2.203125 | 2 | [] | no_license | package com.cg.onlinecustomerservice.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;... | true |
b4a11eefd621d776f114301cafbaf94ac17ff84a | Java | dodaro/ClassManager | /classManagerEA/src/main/java/it/unical/classmanager/model/data/Question.java | UTF-8 | 4,669 | 2.203125 | 2 | [] | no_license | package it.unical.classmanager.model.data;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.p... | true |
15061de73ae83e6c483fd0a1a16fbf6e5375ffaf | Java | cckmit/Nuclos | /nuclos-client/src/main/java/org/nuclos/client/explorer/node/MasterDataExplorerNode.java | UTF-8 | 7,702 | 1.609375 | 2 | [] | no_license | //Copyright (C) 2010 Novabit Informationssysteme GmbH
//
//This file is part of Nuclos.
//
//Nuclos is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option... | true |
02f6c3585179850798fa53de04383a37d54eaf96 | Java | tangdi/Leetcode_java | /src/RotateImage.java | UTF-8 | 761 | 3.15625 | 3 | [] | no_license | public class RotateImage {
public void rotate(int[][] matrix) {
if (matrix == null || matrix.length == 0 || matrix[0].length == 0) {
return;
}
int n = matrix.length;
int counter = (n-1) / 2;
for (int i = 0; i <= counter; i++) {
helper(matrix, n, i);
}
}
public void helper(int[][] m... | true |
8b28bd601bb46b1296335d18d550a8a81a4d3a74 | Java | milindsahoo329/design-patterns-java | /src/com/company/Flyweight/PlayerFactory.java | UTF-8 | 891 | 3.25 | 3 | [] | no_license | package com.company.Flyweight;
import java.util.HashMap;
public class PlayerFactory {
private static HashMap<String,Player> playerHashMap = new HashMap<>();
public static Player getPlayer(String type){
Player p = null;
if(playerHashMap.containsKey(type)){
p = playerHashMap.get(ty... | true |
9c3aec2b566a0650289921ab63a13b3a792dbbea | Java | fengjixuchui/bear | /bear/src/main/java/com/bear/core/ErrorHandler.java | UTF-8 | 183 | 1.65625 | 2 | [] | no_license | package com.bear.core;
public interface ErrorHandler {
void error(String msg);
void error(String msg, Throwable t);
void error(String msg, Event event, Throwable t);
}
| true |
20da249139baf5678109b207e4eb761d28263c75 | Java | liupengandroid/ywApplication | /app/src/main/java/com/example/yinweiapplication/adapter/Info1_ListViewAdapter.java | UTF-8 | 2,981 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.example.yinweiapplication.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.yinweiapplication.Bean.Data... | true |
0433528818d8264169e3d91726c371b4467ded76 | Java | duskovlacina/DMS | /dms/src/main/java/com/dms/domain/Keywords.java | UTF-8 | 1,093 | 2.21875 | 2 | [] | no_license | package com.dms.domain;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import org.hibernate.annotations.GenericGenerator;
@Ent... | true |
38c3c3571d5da48c8be9ea681decf346765bd686 | Java | hojak99/TIL | /Algorithm Problem/FrogRiverOne.java | UTF-8 | 2,843 | 4 | 4 | [] | no_license | import java.util.*;
/*
* 개구리가 X+1 의 곳으로 가고 싶어한다. 배열의 인덱스를 이용해 건너는데 이 때 배열의 인덱스들의 값이
* 교차해야 강을 건널 수 있다.
* 에를 들면 1, 2, 3, 4, 5 이런 식으로 배열의 인덱스들이 교차해야 강을 건널 수 있다.
*
* A[] = {1, 3, 1, 4, 2, 3, 5, 4}, X = 5
* 일 때 개구린 는 1, 2, 3, 4, 5 로 강을 건널 수 있다. 이렇게 되면 X+1 인 6을 반환해야 한다.
* 만약 강을 건널 수 없다면 -1을 반환해야 한다.
*
* 풀이 :
*... | true |
b3d1b0c899673db9a3df4300ae023d1b30bb818e | Java | qlh2561808384/Madison | /src/main/java/com/longshao/madison/Utils/UDP/UDPServer.java | UTF-8 | 2,469 | 2.671875 | 3 | [] | no_license | package com.longshao.madison.Utils.UDP;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.List;
/*
* 服务端:
*
* */
public class UDPServ... | true |
eb6bb53b9a7904c9c610fb2ea244fbc7ac0c2527 | Java | versly/wsdoc | /src/test/resources/org/versly/rest/wsdoc/springmvc/UriFirstParameterValidation.java | UTF-8 | 461 | 2.03125 | 2 | [
"CDDL-1.0",
"LicenseRef-scancode-oracle-openjdk-exception-2.0",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | import org.springframework.web.bind.annotation.*;
import java.net.URI;
import java.util.UUID;
@RequestMapping("${base-service.server.api-path:}/api/v1/")
public class UriFirstParameterValidation {
/**
* Some description of the group.
* @param id The participant's parent identifier.
*/
@RequestM... | true |
90b01d9bbe762d957a8c2c54943e39fd34327535 | Java | kevin-ripley/bcode16 | /team389/AvoidBlockingAllyRetreatPolicy.java | UTF-8 | 747 | 2.28125 | 2 | [] | no_license | package team389;
import battlecode.common.GameActionException;
import battlecode.common.MapLocation;
import battlecode.common.RobotController;
import battlecode.common.RobotInfo;
public class AvoidBlockingAllyRetreatPolicy implements NavigationSafetyPolicy {
private final MapLocation retreatFromLoc;
public Avoi... | true |
9f2b5c15c181986f91e2df379ced2b9f23e3b88e | Java | bhospelhorn/WaffleoJavaUtils-Base | /src/waffleoRai_Image/RecursiveTile.java | UTF-8 | 2,328 | 3.265625 | 3 | [] | no_license | package waffleoRai_Image;
import java.awt.image.BufferedImage;
public class RecursiveTile extends Tile{
private int dim_subtile; //Pixels per subtile row
private int dim_tile; //Subtiles per tile row
private Tile[][] tiles; //Stores x,y
public RecursiveTile(int bits, int subtile_dim, int subtiles_per_row) {... | true |
3941d634f123cebe7d95b505d5c191fcbff2fde3 | Java | chriscm2006/talkback | /src/main/java/com/android/talkback/TalkBackDumpAccessibilityEventActivity.java | UTF-8 | 6,578 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Google 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 agreed to in w... | true |
cf68af821ee445df2a680844e04854d660b9b085 | Java | faraday-m/smart-home-2020 | /src/main/java/ru/sbt/mipt/oop/elements/DeviceId.java | UTF-8 | 150 | 1.890625 | 2 | [] | no_license | package ru.sbt.mipt.oop.elements;
public interface DeviceId {
@Override
String toString();
@Override
boolean equals(Object obj);
}
| true |
6b9ed8167b6e3a19d5d9bee3dc95941987e25185 | Java | greenday12138/myQQ | /src/com/vince/controller/test/TestJSplitPane.java | UTF-8 | 1,413 | 2.5 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.vince.controller.test;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPa... | true |
410c209463c7d94240907de558d4bafb35c76908 | Java | yanglangfei/Utils | /app/src/main/java/jucaipen/jucaipen/com/utils/activity/Main.java | UTF-8 | 2,479 | 2.1875 | 2 | [] | no_license | package jucaipen.jucaipen.com.utils.activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.widget.ImageView;
import android.widget.RadioGroup;
import com.bumptech.glide... | true |
e87b5b097a1dfc86bd547add987d81d27167accb | Java | oguzhantarhan/HRMS | /src/main/java/kodlamaio/HRMS/entities/concretes/EmailVerification.java | UTF-8 | 752 | 1.96875 | 2 | [] | no_license | package kodlamaio.HRMS.entities.concretes;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructo... | true |
8122bd30f2632b534f947c401501228ca92763fa | Java | hanshell/Sokoban | /Sokoban/src/tiles/MovableOnTargetTile.java | UTF-8 | 243 | 2.390625 | 2 | [] | no_license | package tiles;
public class MovableOnTargetTile extends BoardTile{
public MovableOnTargetTile(){
super(false, true, '%');
}
@Override
public String getFilePath(){
return getFilePrefix()+"movable_on_target16x16.png";
}
}
| true |
b4f419bc2c8d7f5db3b2cbe6a31932edc6687c6d | Java | uservidya/playnomics-android | /PlaynomicsSDK/src/com/playnomics/android/session/HeartBeatProducer.java | UTF-8 | 1,090 | 2.6875 | 3 | [] | no_license | package com.playnomics.android.session;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import com.playnomics.android.util.IConfig;
public class HeartBeatProducer implements IHeartBeatProducer {
private ScheduledThreadP... | true |
8095cda78c9063bcff89250072bedce0a98e0332 | Java | DRConst/CC1516 | /Dan e Fran/new/BroadcastConnections.java | UTF-8 | 907 | 2.96875 | 3 | [] | no_license | package Server;
import java.io.*;
import java.net.*;
public class BroadcastConnections extends Thread
{
public static int PORT = 10001;
public static boolean running = true;
public void run()
{
try(MulticastSocket mSocket = new MulticastSocket(PORT))
{
mSocket.joinGrou... | true |
edf253e54646d705885418538e2bf7584f6f75c8 | Java | liqimoon/xiubit-android | /tophlc/src/main/java/com/toobei/common/service/MyConnectionListener.java | UTF-8 | 1,181 | 2.25 | 2 | [
"MIT"
] | permissive | package com.toobei.common.service;
import com.easemob.EMConnectionListener;
import com.easemob.EMError;
import com.toobei.common.TopApp;
import org.xsl781.ui.ActivityStack;
/**
* 公司: tophlc
* 类说明:实现ConnectionListener接口
* @date 2016-1-5
*/
public class MyConnectionListener implements EMConnectionListener {
@Over... | true |
8cada3bf52e4750822e8b16e093714a2344a91f2 | Java | Sree1894/springBootHibernate-WebSec | /src/main/java/com/magellanix/WebSecurity/Services/UserService.java | UTF-8 | 320 | 2.109375 | 2 | [] | no_license | package com.magellanix.WebSecurity.Services;
import com.magellanix.WebSecurity.Models.User;
import java.util.List;
public interface UserService {
List<User> findAllUsers();
User findById(String id);
User save(User requestUser);
User updateUser(User requestUser);
void deleteUser(String id);
}
| true |
3c9a4c2c3655dca63e40d1ad72e274debaa9eecf | Java | RaulDionisiodev/LOUVORES | /src/main/java/com/rauldionisio/louvores/ressources/MomentRessource.java | UTF-8 | 2,046 | 2.40625 | 2 | [] | no_license | package com.rauldionisio.louvores.ressources;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind... | true |
c5abbb9a99e58251bbbe75d6ecabed2fe5daadc7 | Java | Fili-19/TesiTest | /src/Tests/SimpleProgramTest.java | UTF-8 | 695 | 2.9375 | 3 | [] | no_license | package Tests;
import Program.Classes.SimpleProgram;
import Program.Interfaces.ISimpleProgram;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class SimpleProgramTest {
@Test
void methodOneTest() {
ISimpleProgram simpleProgram = new SimpleProgram();
asser... | true |