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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7cfc6bbcd28a0de385ec06908f2a0b52136e5964 | Java | HigorSenna/reflection-example | /src/main/java/br/com/servico/ServicoMeioPagamento.java | UTF-8 | 986 | 2.421875 | 2 | [] | no_license | package br.com.servico;
import br.com.dao.MeioDePagamentoDAO;
import br.com.entity.MeioPagamento;
import br.com.strategy.BoletoStrategy;
import br.com.strategy.CartaoCreditoStrategy;
import br.com.strategy.CartaoDebitoStrategy;
import br.com.strategy.IStrategy;
public class ServicoMeioPagamento {
public void sal... | true |
5c3295b04f5a9e5443cb765078c6c14055785953 | Java | EricDav/socialsecurity | /app/src/main/java/com/example/davidalienyi/socialsecurity/ScheduleReminder.java | UTF-8 | 4,773 | 2.015625 | 2 | [] | no_license | package com.example.davidalienyi.socialsecurity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.v4.app.Notif... | true |
6afe914c26110c4d9aa72d71a48ed814a0ba91b4 | Java | Shadowxx1/Switch.SIVENT | /com/jswitch/inventario/controlador/ProductoDetailFrameController.java | UTF-8 | 647 | 1.742188 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.jswitch.inventario.controlador;
import com.jswitch.base.controlador.util.DefaultDetailFrameController;
import com.jswitch.base.modelo.util.bean.BeanVO;
import org.openswing.swing.client.GridControl;
/**
*... | true |
48b5dc142d2c64d84462d1ca8f908f4218317d09 | Java | apk-spectrum/apk-scanner | /src/main/java/com/apkscanner/gui/easymode/util/EasyRoundButton.java | UTF-8 | 5,474 | 2.359375 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"WTFPL",
"LGPL-2.0-or-later",
"GPL-3.0-only"
] | permissive | package com.apkscanner.gui.easymode.util;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.MouseEvent;
import javax.swing.Bor... | true |
e9a5a93c08460a813261e572a74b3f8b1a918987 | Java | JmKanmo/BoostCourse_WebProgramming | /mvcexam/src/main/java/kr/or/connect/mvcexam/controller/UserController.java | UTF-8 | 3,707 | 2.28125 | 2 | [] | no_license | package kr.or.connect.mvcexam.controller;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax... | true |
fc87c0f287c5e6194baffc734cc43d4ad27a8395 | Java | YroslavO/Java | /Java/src/ValidationCard.java | UTF-8 | 506 | 3.203125 | 3 | [] | no_license | import java.util.Scanner;
public class ValidationCard {
public static void main( String[] args ) {
Scanner scanner = new Scanner(System.in);
System.out.println("Pleas input your number of card");
long number = scanner.nextLong();
long j = 1000000000000000L;
long i = 99999999... | true |
c0de7022e3751e84285d46dff67dc4170dfc7f09 | Java | ShaunYang/ecar-busniess | /ecar/src/main/java/com/pyec/ecarbusiness/dataStruct/CarDetailData.java | UTF-8 | 988 | 1.898438 | 2 | [] | no_license | package com.pyec.ecarbusiness.dataStruct;
import java.util.ArrayList;
/**
* 车辆详情界面
* @author Administrator
*
*/
public class CarDetailData {
public String start_time_str; //拍卖开始时间串
public String attend_time; //出价时间
public ArrayList<CarBaseImg> img = new ArrayList<CarBaseImg>();//图片
public ArrayList<CarChe... | true |
9ba9bbbcdf341b26cc4b16a8cb208ca59416f162 | Java | velSeon/KoreAquaProjectSpring | /src/main/java/com/dao/SubscribeDAO.java | UTF-8 | 404 | 1.914063 | 2 | [] | no_license | package com.dao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.dto.SubscribeDTO;
@Repository
public class SubscribeDAO {
@Autowired
SqlSessionTemplate template;
public void emailAdd(Subsc... | true |
59cadf915bc1791191cc9e5b6af444e06c517737 | Java | aisnia/handy-1 | /src/main/java/com/finals/handy/bean/Food.java | UTF-8 | 1,852 | 2.640625 | 3 | [] | no_license | package com.finals.handy.bean;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* @author zsw
*/
public class Food {
/**
* id
*/
private Integer id;
/**
* 食物名称
*/
@NotNull
@Size(min... | true |
81c479e16a0492b706905de7e7fbbd2363ed5856 | Java | flowmaster/KalahGame | /src/main/java/com/bb/kalah/persistence/model/view/View.java | UTF-8 | 885 | 2.265625 | 2 | [] | no_license | /**
* This is a view fragmentation class in a hierarchical structure .
* Each view is meant for a response by this we are only expose to the detail which only required by the client.
* GameCreationView - This only used for the create post request.
* StatusView - this gives the kalah pits status details includin... | true |
2ad40f0303f268554df64f171d9b6426ada2b1f3 | Java | nsbabra/MVPDemo | /app/src/main/java/app1/mvcdemo/nsbabra/mvcdemo/OnLoginFinishedListener.java | UTF-8 | 203 | 1.773438 | 2 | [] | no_license | package app1.mvcdemo.nsbabra.mvcdemo;
/**
* Created by nsbabra on 2/9/16.
*/
public interface OnLoginFinishedListener {
void onUserNameError();
void onPasswordError();
void onSuccess();
}
| true |
aa2d293b7f7d8b7382225ebb72e563f4180d036b | Java | lifuhuang97/social-magnet-2020 | /src/test/java/project/magnet/TestWallDisplay.java | UTF-8 | 509 | 2.171875 | 2 | [] | no_license | package project.magnet;
/**
* Test WallDisplay
*/
import org.junit.jupiter.api.*;
import java.util.*;
import project.utilities.*;
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class TestWallDisplay {
@BeforeAll
public void login() {
UserProfile user = WelcomeMenuCtrl.login("harveyspecte... | true |
2495728aa3634c4a6113a961168a2d5ca7ff1822 | Java | niewenlongsixsixsix/online-back | /src/main/java/com/jiefeng/ssm/service/impl/BigChapterServiceImpl.java | UTF-8 | 1,505 | 2.1875 | 2 | [] | no_license | package com.jiefeng.ssm.service.impl;
import com.jiefeng.ssm.bean.BigChapter;
import com.jiefeng.ssm.beanExtend.BigChapterExtend;
import com.jiefeng.ssm.dao.BigChapterDao;
import com.jiefeng.ssm.service.BigChapterService;
import com.jiefeng.ssm.util.beanExtendUtil.BigChapterUtil;
import org.springframework.beans.facto... | true |
16d4e359e664ebf4d5adb326a29cff4d98ef81c7 | Java | sS2S2bin/OrangePractice | /app/src/main/java/com/example/myapplication/MainActivity.java | UTF-8 | 1,761 | 2.28125 | 2 | [] | no_license | package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends AppCompatActivity {
EditText et_id;
private Bu... | true |
a4d57e1c3f9b3d4534516e03ab8a534b9ee4ddd2 | Java | anilpacaci/devcloud | /java/src/main/java/com/tintin/devcloud/database/persistence/GenericPersistanceManager.java | UTF-8 | 5,534 | 2.8125 | 3 | [] | no_license | package com.tintin.devcloud.database.persistence;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.tintin.devcloud.database.manager.DatabaseManager;
public class GenericPersistanceManager {
private static final ... | true |
54714231b9a370a2434186d0a9a016c1c489ca0b | Java | ptiv/iv | /src/com/prog/ctci/Prog2_2.java | UTF-8 | 2,010 | 3.765625 | 4 | [] | no_license | package com.prog.ctci;
/**
*
* Implement an algorithm to find the nth to last element of a singly linked list.
*
* check the function findNthElementFromEnd()
*
* @author ptemkar
* @date 07/05/13
*/
public class Prog2_2{
Link first; //null
public void insertFirst(int data){
Link link = new Link(data);... | true |
7c250b5f39856f2b28da346ca5324b01dd1434fb | Java | hanzhenchaoGit/easyFrame_back | /src/main/java/com/frank/boot/service/user/SysUserService.java | UTF-8 | 767 | 1.804688 | 2 | [] | no_license | package com.frank.boot.service.user;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.frank.boot.domain.user.SysUser;
import com.frank.boot.domain.user.SysUserRole;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import java.util.Map;
/**
* <p... | true |
22253ce9a33c2bf6122e158cc95bf1bb5e9acc41 | Java | sagadmin/SBC | /SBC/framework.development/sbc/comman/com/CommonMethods.java | UTF-8 | 3,231 | 2.328125 | 2 | [] | no_license | package sbc.comman.com;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import javax.swing.JOptionPane;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import o... | true |
2d1bca78036e9b5d108e9a7288d3b83fcb81fc2f | Java | Sam-WEI/Huffman-Encoder-and-Decoder | /src/Toolbox.java | UTF-8 | 2,706 | 3.03125 | 3 | [] | no_license | //Wei, Shengkun cs610 PP 5565
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map.Entry;
/**
*
* @author Wei
*
*/
public class Toolbox {
public static int getByteNeededForHCodes5565... | true |
2e85a693228eee0f50ec98e852bdd77f1d7d7e26 | Java | andreJims/spring-boot-manage-product | /src/main/java/com/dev/api/api/service/applicatif/ProductSAImpl.java | UTF-8 | 2,164 | 2.40625 | 2 | [] | no_license | package com.dev.api.api.service.applicatif;
import com.dev.api.api.donnee.dto.ProductDTO;
import com.dev.api.api.exceptions.FunctionalInvalidDataException;
import com.dev.api.api.mapper.ProductMapper;
import com.dev.api.api.service.metier.ProductSM;
import org.springframework.beans.factory.annotation.Autowired;
import... | true |
087bae6e6c4aa3e6c7a07c00bfabffa53ec14129 | Java | an2662413741/work | /重大技术需求征集系统/src/bean/User.java | UTF-8 | 2,827 | 1.835938 | 2 | [] | no_license | package bean;
public class User {
public String getJoker() {
return joker;
}
public void setJoker(String joker) {
this.joker = joker;
}
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() {
return username;
}... | true |
c76bb70e558bd7047022610d05c4d6d6d7232b95 | Java | wanchenyang521/iGeek | /Day22/src/com/wanchenyang/homework/guanka02/Test01.java | UTF-8 | 1,395 | 3.875 | 4 | [] | no_license | package com.wanchenyang.homework.guanka02;
import java.util.ArrayList;
import java.util.HashSet;
/**
* @author 晨阳
* @version 1.0
* @date 2019-04-03 20:32
* @description
* ArrayList有以下元素:
* "a","f","b","c","a","d"
* 利用HashSet对ArrayList集合去重(最终结果: ArrayList中没有重复元素)
**/
public class Test01
{
public static voi... | true |
d84a5f7f0a7b513768bbf0d3cc72ee5905a3b3ac | Java | Ramajagtap3420/RJ3420 | /sumevenodd.java | UTF-8 | 272 | 2.875 | 3 | [] | no_license | import java.util.*;
class sumevenodd
{
public static void main(String args[])
{
float result=0;
int n=;
for(float i=0;i<=n;i++)
{
if(i%2==0)
{
result-=1/i;
}
else
{
result+=1/i;
}
}
System.out.println(result);
}
}
| true |
06f483a55ab32548549635dbc837fa25fabf1dce | Java | AzureAD/microsoft-authentication-library-common-for-android | /common4j/src/test/com/microsoft/identity/common/java/util/BrokerProtocolVersionUtilTest.java | UTF-8 | 6,863 | 1.96875 | 2 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | // Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restricti... | true |
5509201285734c6af20cd7c12a070801414419bb | Java | wemsteral/javaExercises | /chapter2-DataTypes/exercises/Strings.java | UTF-8 | 399 | 3.609375 | 4 | [] | no_license | public class Strings {
public static void main(String[] args) {
// declare the first name
String name1 = "Bill";
// declare the second name
String name2 = "Mark";
// create your message
String message = " went to the shops!";
// print your message!
String output = String.format("%s and... | true |
de8dc4375f7a94df131502fd10261ee535e2051f | Java | sp2020jarvan3/colims | /colims-model/src/main/java/com/compomics/colims/model/enums/FragmentationType.java | UTF-8 | 601 | 2.375 | 2 | [] | no_license | package com.compomics.colims.model.enums;
/**
* This enum contains the different fragmentation types.
*
* @author Niels Hulstaert
*/
public enum FragmentationType {
/**
* Collision-induced dissociation.
*/
CID,
/**
* Electron-transfer dissociation.
*/
EDT,
/**
* Higher... | true |
31c01cc770c1844728fe3eddefb3b04a00b0d241 | Java | MMike17/SafetyNetAlerts | /src/main/java/com/safetynet/alerts/controller/CompositeController.java | UTF-8 | 9,976 | 2.671875 | 3 | [] | no_license | package com.safetynet.alerts.controller;
import java.sql.Date;
import java.time.LocalDate;
import java.util.ArrayList;
import com.safetynet.alerts.exceptions.InvalidObjectException;
import com.safetynet.alerts.model.MedicalRecord;
import com.safetynet.alerts.model.Person;
import com.safetynet.alerts.model.responses.F... | true |
862519a4cc38c3d1b82c1300e5f51874d74f348d | Java | polouters/proyecto-Udaleku-2015 | /Programacion/proyecto/build/generated-sources/ap-source-output/JPA/Solicitud_.java | UTF-8 | 948 | 1.585938 | 2 | [] | no_license | package JPA;
import JPA.Inscripcion;
import JPA.Sorteo;
import java.util.Date;
import javax.annotation.Generated;
import javax.persistence.metamodel.CollectionAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140... | true |
e959e33f1ca124375693c361c7b5b0ff97297c09 | Java | java-december-2020/TerraR-Assignments | /04-java-spring/03-spring-data-ii/07-dojo-overflow/src/main/java/com/trobinson/overflow/repositories/QuestionRepository.java | UTF-8 | 495 | 2.109375 | 2 | [] | no_license | package com.trobinson.overflow.repositories;
import java.util.List;
import java.util.Optional;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.trobinson.overflow.models.Question;
@Repository
public interface QuestionRepository extends CrudRepos... | true |
303f0fcbce63761b05a12b84b99ab42af8a4a7a2 | Java | vinitorres/MeAdota_Android | /app/src/main/java/app/vini/com/meadota/Fragments/FragmentsMain/BuscarFragment.java | UTF-8 | 1,818 | 2.125 | 2 | [] | no_license | package app.vini.com.meadota.Fragments.FragmentsMain;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import ... | true |
a86bbd0aabf1871e11d31e6733f95cc7a2cbeb64 | Java | BeYkeRYkt/Rush | /src/main/java/net/rush/packets/handler/PositionAndLookPacketHandler.java | UTF-8 | 952 | 2.609375 | 3 | [] | no_license | package net.rush.packets.handler;
import net.rush.model.Player;
import net.rush.model.Position;
import net.rush.model.Rotation;
import net.rush.net.Session;
import net.rush.packets.packet.EntityHeadLookPacket;
import net.rush.packets.packet.PlayerPositionAndLookPacket;
/**
* A {@link PacketHandler} that updates a {@... | true |
9b622ab9ec1a5a8c11b0c14e4b9e22fe939ba966 | Java | ChrisPauly97/BirdSim | /src/GrainStaticBehaviour.java | UTF-8 | 92 | 1.765625 | 2 | [] | no_license |
public class GrainStaticBehaviour implements MoveBehaviour{
public void move(){}
}
| true |
bade8bb75feef36e7449e2144bb4b64da6c5db39 | Java | cocobino/ACM-ICPC | /백준/BOJ 10953 A+B -6/Main.java | UTF-8 | 668 | 2.78125 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String... args) throws IOException {
BufferedReader br = new BufferedReader(... | true |
6bc0996adaa7e05b63433ff7e13e727fc7c1ba30 | Java | bestarandyan/ShoppingMall | /BestarProject/Framework/src/com/huoqiu/framework/jackson/DateDeserializer.java | UTF-8 | 871 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.huoqiu.framework.jackson;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxm... | true |
3c59c090594d320d8318a67b8d32f9234dbf81ec | Java | sumit-sardar/GitMigrationRepo01 | /application-ocps/contentBridge-core/src/main/java/com/ctb/contentBridge/core/util/Validation.java | UTF-8 | 4,066 | 2.09375 | 2 | [] | no_license | // Decompiled by DJ v3.6.6.79 Copyright 2004 Atanas Neshkov Date: 2/22/2010 1:10:30 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: Validation.java
package com.ctb.contentBridge.core.util;
import jav... | true |
c108e9037f379f495109c9f97cee5f21cbc98ea2 | Java | Sutita0203/UFO | /src/game/PlayGames.java | UTF-8 | 3,293 | 2.515625 | 3 | [] | no_license | package game;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.s... | true |
687251df93ebac922b418d62db17462afcce7321 | Java | EdsionGeng/knowledge | /src/main/java/com/wsd/knowledge/service/impl/MyRecAdServiceImpl.java | UTF-8 | 8,772 | 2.171875 | 2 | [] | no_license | package com.wsd.knowledge.service.impl;
import com.wsd.knowledge.entity.CommonAdvertisement;
import com.wsd.knowledge.entity.RdPage;
import com.wsd.knowledge.entity.SystemUser;
import com.wsd.knowledge.entity.UserRecAdvertisement;
import com.wsd.knowledge.mapper.AdvertisementMapper;
import com.wsd.knowledge.mapper.Us... | true |
322f3048c91f93b0e9e2d27755aeb5fe3cb2eb72 | Java | opensourcejavadeveloper/military_xml_project_miliconvert | /miliconvert/xsmt/trunk/plugins/org.miliconvert.xsmt.mpgt/src/mpia/schema/impl/TypeAssociationMaterielMaterielImpl.java | UTF-8 | 11,387 | 1.625 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package mpia.schema.impl;
import mpia.meta.TypeAssociation;
import mpia.schema.SchemaPackage;
import mpia.schema.TypeAssociationMaterielMateriel;
import mpia.schema.TypeDictionaryDicoAssociationMaterielMaterielCategorie;
import org.eclipse.emf.common.notify.Notificat... | true |
12c428e8c921d77506f9e6e333f5a5676e104858 | Java | BeltranGomezUlises/easymoney | /Backend/src/main/java/com/ub/easymoney/daos/DaoConfig.java | UTF-8 | 559 | 1.898438 | 2 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ub.easymoney.daos;
import com.ub.easymoney.utils.commons.DaoSQLFacade;
import com.ub.easymoney.entities.Config;
import com... | true |
cd7be80c39c6455aa36f2db7c71e919ece7201ca | Java | tonny1228/works-workflow | /src/main/java/works/tonny/apps/workflow/manage/impl/HolidayDAO.java | UTF-8 | 738 | 2.171875 | 2 | [] | no_license | /**
* <p>
*
* </p>
* <p>
* Copyright: Copyright (c) tonny 2015
* </p>
* @date 2015-1-29 上午10:01:06
* @author tonny
*/
package works.tonny.apps.workflow.manage.impl;
import java.util.List;
import works.tonny.apps.EntityDAO;
import works.tonny.apps.support.ListSupport;
import works.tonny.apps.workflow.manage.... | true |
73dc472c15ea6be215b2e5655a1ce738422f88d6 | Java | darshakmehta/Programming-Guide | /375_questions/342. Longest Common Substring.java | UTF-8 | 2,019 | 3.5625 | 4 | [] | no_license | class Solution {
int longestCommonSubstr(String S1, String S2, int n, int m) {
int[][] dp = new int[n+1][m+1];
int result = 0;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= m; j++) {
if (S1.charAt(i-1) == S2.charAt(j-1)) {
dp[i][j] = dp[... | true |
77682bfbaa5ddd61eee2c3f83f3dd207d94b752c | Java | ecmnet/mavcom | /mavcom/src/main/java/com/comino/mavcom/comm/proxy/MAVUdpProxyNIO2.java | UTF-8 | 12,618 | 1.507813 | 2 | [] | no_license | /****************************************************************************
*
* Copyright (c) 2017-2021 Eike Mansfeld ecm@gmx.de. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. R... | true |
12d3a71b8fbb39eeed191f533f4167c44e280cae | Java | w407477841/zhlk | /src/com/zyiot/annotation/RemindType.java | UTF-8 | 86 | 1.726563 | 2 | [] | no_license | package com.zyiot.annotation;
public interface RemindType {
String USER = "user";
}
| true |
ae82a26980b15cb8cf172298e6ab03b4f71568ce | Java | dakshin-k/MusicScraper | /app/src/main/java/com/dakshin/musicdownloader/SearchResultAdapter.java | UTF-8 | 1,241 | 2.359375 | 2 | [] | no_license | package com.dakshin.musicdownloader;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
public class... | true |
adc903c7886f6096cb3b252768633239a9797dd8 | Java | baichunqiu/codec_h264 | /app/src/main/java/com/bcq/codec/AVmediaMuxer.java | UTF-8 | 8,626 | 2.265625 | 2 | [] | no_license | package com.bcq.codec;
/**
* Created by zhongjihao on 18-1-31.
*/
import android.media.MediaCodec;
import android.media.MediaFormat;
import android.media.MediaMuxer;
import android.util.Log;
import java.nio.ByteBuffer;
import java.util.concurrent.LinkedBlockingQueue;
public class AVmediaMuxer{
private final s... | true |
d93cc59e67a2277d3383f3ec5bdae065ab9ef32b | Java | deep091193/SpringBootLearning | /SortingAlgo/src/com/compare/StringReverse.java | UTF-8 | 730 | 3.46875 | 3 | [] | no_license | package com.compare;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.ListIterator;
public class StringReverse {
public static void main(String[] args) {
String s= "India is great";
char[] hello = s.toCharArray();
List<Character> trial = new ArrayLi... | true |
1e170697f775c894e73f4c169597f6a85d26a571 | Java | Beyyes/DeltaTest | /src/main/java/core/config/ReadConfig.java | UTF-8 | 382 | 2.015625 | 2 | [] | no_license | package core.config;
import action.ActionType;
import java.util.HashMap;
import java.util.List;
/**
* Created by stefanie on 09/01/2017.
*/
public class ReadConfig extends ActionConfig{
public ReadConfig(int id) {
super(id, ActionType.READ);
}
public ReadConfig(int id, int delay, String desc... | true |
d40815d2a18644a4583a71f0c74e9400875aafe2 | Java | Mert1980/spring5-recipe-app | /src/main/java/guru/springframework/controllers/IngredientController.java | UTF-8 | 6,352 | 2.53125 | 3 | [] | no_license | package guru.springframework.controllers;
import guru.springframework.commands.IngredientCommand;
import guru.springframework.commands.RecipeCommand;
import guru.springframework.commands.UnitOfMeasureCommand;
import guru.springframework.services.IngredientService;
import guru.springframework.services.RecipeService;
imp... | true |
535ef18647175f85b7d4be556a16d7b7e1e40074 | Java | usnistgov/Roentgen | /Roentgen/src/gov/nist/microanalysis/roentgen/physics/composition/CompositionStatistics.java | UTF-8 | 4,637 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package gov.nist.microanalysis.roentgen.physics.composition;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.RealVector;
import org.apache.commons.math3.util.Pair;
import gov.nist.juncertainty.Explicit... | true |
c07b607789a94e3a32011884c83b8b8dad4bddb8 | Java | mjochab/-Programowanie_zespolowe_2018_gr2 | /src/warsztatsamochodowy/controllers/PartsController.java | UTF-8 | 6,596 | 2.28125 | 2 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package warsztatsamochodowy.controllers;
import java.io.IOException;
import java.net.URL;
import java.sql.Connection;
import java.sql.... | true |
8f8904c821331d890a1765a17005dcaf2703db74 | Java | nickacross/Apartment101 | /Apartment101_Server/src/test/java/com/infy/verizon_group_project/dao/test/CustomerDAOTest.java | UTF-8 | 2,093 | 2.21875 | 2 | [] | no_license | package com.infy.verizon_group_project.dao.test;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.Rollback;
import org.... | true |
a8ea83255bd5c12f3f1bb0ba36cfec524f52feed | Java | Nerijus-Java/CA | /scr/com/JavaCode/nd/nd1_methods_and_more/task5_String/Task5_String.java | UTF-8 | 408 | 3.265625 | 3 | [] | no_license | package com.JavaCode.nd.nd1_methods_and_more.task5_String;
import java.util.Scanner;
public class Task5_String {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter a number:");
int num = sc.nextInt();
String text = String.valueO... | true |
ec6148a449d4a43caf4dfc2af5ac7ff2aaaeaf5d | Java | SahilMadridista/Cold-Refrigeration | /app/src/main/java/com/example/coldrefrigeration/Model/Bookings.java | UTF-8 | 3,001 | 2.234375 | 2 | [] | no_license | package com.example.coldrefrigeration.Model;
public class Bookings {
public String service_name;
public String service_cost;
public String service_worker_cost;
public String customer_name;
public String customer_email;
public String customer_phone;
public String customer_address;
public int bo... | true |
43871252f6e0e50af2d11b4ac8d99de427b0223f | Java | EvilClam/Hons-rw711 | /Tutorial5/Rw711Project/src/FHP/PropagationPhase.java | UTF-8 | 588 | 2.78125 | 3 | [] | no_license | package FHP;
import cellularAutomaton.Cell;
import cellularAutomaton.Phase;
public class PropagationPhase implements Phase<Partical[]>{
@Override
public Partical[] executePhase(Cell<Partical[]>[] neighbours,
Cell<Partical[]> current) {
Partical[] newValue = new Partical[current.getValue().length];
... | true |
00cd4d23b78bb84140fce65d8b819d41a666b81b | Java | sikessle/alksa | /ALKSA/src/main/java/de/alksa/parser/impl/FromBaseTableVisitor.java | UTF-8 | 662 | 2.265625 | 2 | [] | no_license | package de.alksa.parser.impl;
import com.foundationdb.sql.StandardException;
import com.foundationdb.sql.parser.FromBaseTable;
import com.foundationdb.sql.parser.FromTable;
import com.foundationdb.sql.parser.Visitable;
import de.alksa.token.TableNameToken;
class FromBaseTableVisitor extends AbstractVisitor {
@Over... | true |
a790ee1eaf79abeff242914d227e270ff2cd529e | Java | Pedrohlto/clean-arch | /src/main/java/br/com/phelto/escola/aplicacao/aluno/matricular/MatricularAlunoDto.java | UTF-8 | 639 | 2.203125 | 2 | [] | no_license | package br.com.phelto.escola.aplicacao.aluno.matricular;
import br.com.phelto.escola.dominio.aluno.Aluno;
import br.com.phelto.escola.dominio.aluno.FabricaDeAluno;
import lombok.Getter;
@Getter
public class MatricularAlunoDto {
private String nomeAluno;
private String cpfAluno;
private String emailAluno;
publ... | true |
b549443c8a3148e8cc9b0b81c2ed0e8221e0c99b | Java | moutainhigh/community | /phkj-service/src/main/java/com/phkj/service/property/IStBaseinfoStaffsService.java | UTF-8 | 1,153 | 2.03125 | 2 | [] | no_license | package com.phkj.service.property;
import com.phkj.core.ServiceResult;
import com.phkj.entity.property.PropertiItem;
import com.phkj.entity.property.StBaseinfoStaffs;
import com.phkj.entity.system.SystemAdmin;
import java.util.List;
public interface IStBaseinfoStaffsService {
/**
* 根据id取得工作人员信息管理表
*
... | true |
6b7260f24524e81dbd0b1180f26f1d073b7b9279 | Java | helloPei/springboot-jt0.2 | /src/main/java/com/demo/service/impl/UserServiceImpl.java | UTF-8 | 7,079 | 2.078125 | 2 | [] | no_license | package com.demo.service.impl;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
c9833c0ae516f858978fa2eb9a41224a99834865 | Java | CMPUT301F17T05/Habilect | /app/src/main/java/com/cmput301/t05/habilect/EditHabitTypeDialog.java | UTF-8 | 9,142 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.cmput301.t05.habilect;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import a... | true |
cae7ff45807bfe36618285d0f558a54729fe530c | Java | ravijha221991/BelzabarNumber | /src/com/balzabar/number/AlgebricUtil.java | UTF-8 | 2,569 | 3.171875 | 3 | [] | no_license | package com.balzabar.number;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class AlgebricUtil {
//Belzabar equation(n^2+14n-number) 1 constants
public static final int QUADRATIC_CON... | true |
5217bc2b3627b9291b1630a6f6a2354e37d1bb96 | Java | panda2025/GitToolBox | /GitToolBox/src/main/java/zielu/gittoolbox/ui/config/app/DecorationPartPreview.java | UTF-8 | 1,480 | 2.140625 | 2 | [
"CC-BY-3.0",
"Apache-2.0"
] | permissive | package zielu.gittoolbox.ui.config.app;
import static zielu.gittoolbox.config.DecorationPartType.BRANCH;
import static zielu.gittoolbox.config.DecorationPartType.CHANGED_COUNT;
import static zielu.gittoolbox.config.DecorationPartType.LOCATION;
import static zielu.gittoolbox.config.DecorationPartType.STATUS;
import sta... | true |
1b4e7db7cbdb97a791177a3e84cf1dd190161a1f | Java | danilo108/m2tgoogle | /m2tjobloader/src/main/java/m2t/jobloader/service/controllers/model/SheetServiceResponseData.java | UTF-8 | 309 | 1.695313 | 2 | [] | no_license | package m2t.jobloader.service.controllers.model;
import java.util.ArrayList;
import java.util.List;
public class SheetServiceResponseData {
public List<SheetServiceContainerData> containerResponse;
public SheetServiceResponseData() {
containerResponse = new ArrayList<SheetServiceContainerData>();
}
} | true |
a1207c7c87a7c2b513f3de507c9f6f2fe167503b | Java | lai864/Project01 | /Module01/src/Package01/OperatorDemo02.java | UTF-8 | 6,487 | 3.875 | 4 | [] | no_license | package Package01;
/*
自增++ 自减--
*/
import java.util.Scanner;
public class OperatorDemo02 {
public static void main(String[] args) {
int i = 10;
//i++;单独使用没区别
//++i;
System.out.println("i:" + i);
//int j = i++;++放后面先操作,再++即j=i=10,i=i+1=11
int j = ++i;//++放前面先++,再操作即... | true |
fdcc8e55fcc753f26628190339b64a819682fec7 | Java | yzzanson/enterprise_train | /enterprise_service/src/main/java/com/enterprise/service/question/UserXQuestionsService.java | UTF-8 | 2,176 | 1.710938 | 2 | [] | no_license | package com.enterprise.service.question;
import com.alibaba.fastjson.JSONObject;
import com.enterprise.base.common.PageEntity;
import com.enterprise.base.entity.UserXQuestionsEntity;
import com.enterprise.base.vo.UserAnswerRankSimpleNewVO;
import com.enterprise.base.vo.dto.QuestionAnswerDto;
import java.util.List;
/... | true |
be7cbb550324da408aa3529cb743de5ccc896582 | Java | AhmedElsayedTaha/FootballLeagueApp | /app/src/main/java/com/league/foorballleagueapp/Interfaces/MVPInterface.java | UTF-8 | 1,426 | 2.390625 | 2 | [] | no_license | package com.league.foorballleagueapp.Interfaces;
import android.widget.TextView;
import com.league.foorballleagueapp.Model.Team;
import com.league.foorballleagueapp.Model.TeamDetailsModel.TeamDetails;
import java.util.List;
public interface MVPInterface {
interface TeamPresenter{
//Get team object
... | true |
989060cc70d570a752a6fcbb0d55a7af95ceadc8 | Java | makersmelx/UMJI-VE472 | /VE472HW/VE472HW2/src/ex4/src/main/java/ExtractSmallFiles.java | UTF-8 | 2,079 | 2.484375 | 2 | [] | no_license | import ex4.avro.AvroFile;
import org.apache.avro.file.DataFileReader;
import org.apache.avro.io.DatumReader;
import org.apache.avro.specific.SpecificDatumReader;
import org.apache.commons.codec.digest.DigestUtils;
import java.io.File;
import java.io.FileWriter;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
i... | true |
c06f5337ae92d15dd8f757af2201964fd5a87f6d | Java | apemant/spa | /devel/projects/spa/src/hr/restart/baza/Command.java | UTF-8 | 1,508 | 2.015625 | 2 | [] | no_license | /****license*****************************************************************
** file: Command.java
** Copyright 2006 Rest Art
**
** 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
**... | true |
e3b8d1ea3b9756b7a167ca053a9587103c6d9663 | Java | maysis175/le4m | /LearnSpeechRecog_R.java | UTF-8 | 11,737 | 2.140625 | 2 | [] | no_license | import java.io.File;
import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.stream.IntStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javafx.application.Application;
import... | true |
d11ae7f3b9dcb60d42bd49ac72980fb6c50f0122 | Java | Chidt12/OOP | /src/main/java/Sentence/iSentence.java | UTF-8 | 88 | 1.921875 | 2 | [] | no_license | package Sentence;
public interface iSentence {
public String generateSentence();
}
| true |
3fd78028d4c52aafa9f95bfbacd00c96a4ab3c94 | Java | NationalSecurityAgency/ghidra | /Ghidra/Features/Base/src/test/java/ghidra/util/TestBuffer.java | UTF-8 | 2,777 | 2.640625 | 3 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | true |
79cb661313d17781956eb8dd4cf266ca3243d082 | Java | xeon2007/Search_Adserver | /src/main/java/querymanager/rewriting/WordSegment.java | UTF-8 | 2,259 | 2.46875 | 2 | [] | no_license | package querymanager.rewriting;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Properties;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TPr... | true |
09ee71ede9534fd71dcbdc043cb0b457d83abc18 | Java | prakhar1207/USP-PROJECT | /filesearch/src/CustomTree.java | UTF-8 | 855 | 2.78125 | 3 | [] | no_license | import javax.swing.tree.DefaultMutableTreeNode;
public class CustomTree {
CustomNode root;
CustomNode commonRoot;
public CustomTree(CustomNode root ) {
this.root = root;
commonRoot = null;
}
public void addElement( String elementValue ) {
elementValue = elementValue.replaceAll("\\\\", "/");
... | true |
c682f444b5b6c4818074f20a570182c71d178a18 | Java | 157239n/Matrix | /src/main/java/org/kelvinho/matrix/MatrixNotInvertibleException.java | UTF-8 | 216 | 1.929688 | 2 | [] | no_license | package org.kelvinho.matrix;
import javax.annotation.Nonnull;
class MatrixNotInvertibleException extends RuntimeException {
MatrixNotInvertibleException(@Nonnull String reason) {
super(reason);
}
}
| true |
8b36db725eaffa0b4294b194806ae8283e250306 | Java | MateuszKubuszok/JSDPU | /JSDPU/src/net/jsdpu/process/executors/InvalidCommandException.java | UTF-8 | 1,224 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2012-2013 Mateusz Kubuszok
*
* <p>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</p>
*
* <p>http://www.apache.org/licenses/LICENSE-2.0</p>
*
* <p>Unless requi... | true |
1de9ecb9828211cac3ea88a84441bbb5b3892e9d | Java | AY2021S1-CS2103-W14-1/tp | /src/main/java/seedu/address/logic/commands/sellercommands/DeleteSellerCommand.java | UTF-8 | 2,233 | 2.84375 | 3 | [
"MIT"
] | permissive | package seedu.address.logic.commands.sellercommands;
import static java.util.Objects.requireNonNull;
import java.util.List;
import seedu.address.commons.core.Messages;
import seedu.address.commons.core.index.Index;
import seedu.address.logic.commands.Command;
import seedu.address.logic.commands.CommandResult;
import... | true |
6713b2ce7316e41ad304497f8b0ec6d4200917ec | Java | ahmeeeeeeed/social_network_java_backend | /pi_social_network-ejb/src/main/java/tn/esprit/services/implimentation/CommentaireImpl.java | UTF-8 | 2,440 | 2.46875 | 2 | [] | no_license | package tn.esprit.services.implimentation;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.persistence.Typ... | true |
f5f7edfd5d7a40b62f6a4fb5899904a9d15fda00 | Java | silla-mclab/jiot2 | /jiot05_MCP3208_polling/src/jiot05/mcp3208polling/MCP3208Polling.java | UTF-8 | 3,398 | 2.796875 | 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 jiot05.mcp3208polling;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.concurrent.Executors;
import j... | true |
23cd950d7e85ebaa193b993f5acad6f799826138 | Java | chutney-testing/chutney | /server/src/main/java/com/chutneytesting/campaign/api/dto/CampaignExecutionReportDto.java | UTF-8 | 2,622 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.chutneytesting.campaign.api.dto;
import com.chutneytesting.server.core.domain.execution.report.ServerReportStatus;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
import java.util.List;
@JsonIgnorePropertie... | true |
7ff7c42d13b03f37bd7dc39e975f2d5cb40016dc | Java | orevitnoonairam/climed | /src/ABMHabitacion/GUIEliminarHabitacion.java | UTF-8 | 6,825 | 2.640625 | 3 | [] | no_license | package ABMHabitacion;
import javax.swing.JPanel;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* GUIEliminarHabitacion.java
*
* Created on 22-oct-2011, 23:11:14
*/
/**
*
* @author jime
*/
@SuppressWarnings("serial")
public class GUIEliminarHabitacion e... | true |
1470793da77d779273ea4805579db75b18c963ec | Java | AnnaIsakova/ProgLeadAuto | /src/main/java/ua/kiev/prog/controllers/AuthController.java | UTF-8 | 4,061 | 2.25 | 2 | [] | no_license | package ua.kiev.prog.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
imp... | true |
c8ba5e37da6d069501cd54d7af000dfc76522017 | Java | achowdhury80/leetcode | /src/comp/prep2019/less1000/Prob847.java | UTF-8 | 1,033 | 3.3125 | 3 | [] | no_license | package comp.prep2019.less1000;
import java.util.*;
public class Prob847 {
/**
* load all nodes to queue
* maintain a status state which shows which are the nodes connected
* @param graph
* @return
*/
public int shortestPathLength(int[][] graph) {
int n = graph.length;
int mask = (1 << n) - 1;
Queue<I... | true |
290bd13b7a5a83f96763a107b8b4173d524bd9f9 | Java | joshng/papaya | /papaya/src/main/java/com/joshng/util/concurrent/trackers/FutureCompletionTracker.java | UTF-8 | 1,667 | 2.828125 | 3 | [
"BSD-2-Clause"
] | permissive | package com.joshng.util.concurrent.trackers;
import com.google.common.util.concurrent.MoreExecutors;
import com.joshng.util.collect.Nothing;
import com.joshng.util.concurrent.FunFuture;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
/**
* User: josh
* Date: 6/25/13
* T... | true |
895b525d12771ec21bc38da5f4cb526959fe934b | Java | jhenriquecosta/java-desif | /Source/h2bi.desif/h2bi.desif/src/br/gov/pbh/desif/esec/assinatura/EnvelopeInfo.java | UTF-8 | 1,548 | 2.078125 | 2 | [] | no_license |
package br.gov.pbh.desif.esec.assinatura;
import java.util.List;
// Referenced classes of package br.gov.pbh.desif.esec.assinatura:
// SignatureStatus, ContentType
public class EnvelopeInfo
{
private String signatureFileName;
private String contentFileName;
private SignatureStatus signatureS... | true |
dd4b5f30d0f42681b85ac8df87bc5e70b6fb3557 | Java | ALEXEN999/Ejercicios_de_procesos | /src/main/java/com/company/Ascensor/Persona.java | UTF-8 | 1,535 | 3.203125 | 3 | [] | no_license | package com.company.Ascensor;
import static com.company.Tejedores.ColouredSystemOutPrintln.*;
public class Persona extends Thread{
int plantaActualPersona;
int plantaDestinoPersona;
Ascensor ascensor;
String name;
public Persona(String name, int plantaActualPersona, int plantaDestinoPersona, Asce... | true |
417ff9b2f0397792d3f7d9102c3efb5aff279665 | Java | arcueidyang/GinsengThrow | /src/gameElement/ginseng/NormalGinseng.java | UTF-8 | 468 | 2.265625 | 2 | [] | no_license | package gameElement.ginseng;
import gameElement.Getter;
import tools.ResourceManager;
import util.Location2D;
import util.Vector;
public class NormalGinseng extends Ginseng{
public NormalGinseng(Location2D center) {
super(ResourceManager.NORMAL_GINSENG_IMAGE, center, Ginseng.DEFAULT_GINSENG_SIZE,
new Vector(G... | true |
175b6dc6cacb8feca173e86153fe84bba3343a87 | Java | radtek/ssiot | /src/com/ssiot/remote/control/ControlDetailFrag.java | UTF-8 | 5,234 | 2.015625 | 2 | [] | no_license | package com.ssiot.remote.control;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android... | true |
ac9ebccdc77a510c63e9da422a71ab44639a1bea | Java | fendoudebb/PlayAndroid | /base/src/main/java/com/fendoudebb/util/UnitConverter.java | UTF-8 | 543 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.fendoudebb.util;
import android.content.res.Resources;
import android.util.TypedValue;
/**
* zbj on 2017-08-22 13:48.
*/
public final class UnitConverter {
public static float dp2px(float dp) {
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, Resources.getSystem()
... | true |
39c3753c3c72d7d2a33eb5d3323aa339bb193c92 | Java | Joshliu8/PhoneTest | /PhoneDao.java | UTF-8 | 303 | 2.1875 | 2 | [] | no_license | package com.jl.demo;
import java.util.List;
public interface PhoneDao {
/**
* @param name
* @param price
* @return int
*/
public int addPhone(String name , String brand,String price);
/**
* @return List
*/
public List<Phone> getAllPhone();
}
| true |
85f8d01cd82d15d2a68115b62ec5e57c2ef1fbbe | Java | ravil1234/CamScan | /app/src/main/java/com/example/camscan/ObjectClass/GridViewImagesList.java | UTF-8 | 473 | 2.40625 | 2 | [] | no_license | package com.example.camscan.ObjectClass;
import com.example.camscan.AdapterClass.GridViewImages;
public class GridViewImagesList
{
private String image_url,image_date;
public GridViewImagesList(String image_url,String image_date)
{
this.image_url=image_url;
this.image_date=image_date;
... | true |
6fc0ec124fb6a12a9a905830988dbad6a2b17634 | Java | qianshengzj/mergets | /src/test/java/cn/com/qs/FTest.java | UTF-8 | 432 | 2.09375 | 2 | [] | no_license | package cn.com.qs;
import cn.com.qs.iml.TestAnnotationIml;
import java.util.ArrayList;
import java.util.List;
/**
* Created by qiansheng on 2017/5/31.
*/
class newMap implements TestAnnotationIml{
@Override
public void test() {
}
}
public class FTest {
public static void main(String[] args) {
... | true |
dffd92ed7ff0bb8c3257d76735a97bee027ae96c | Java | javadev/LeetCode-in-Java | /src/test/java/g1401_1500/s1410_html_entity_parser/SolutionTest.java | UTF-8 | 773 | 2.65625 | 3 | [
"MIT"
] | permissive | package g1401_1500.s1410_html_entity_parser;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void entityParser() {
assertThat(
new Solution().entityParser("& is an H... | true |
9f717597edbecca0157e0cfc1f234d1197579a18 | Java | tabish99/myprojects | /AMod_bit_cast_q/src/com/widening_and_boxing/WrapperImmutable.java | UTF-8 | 584 | 3.5 | 4 | [] | no_license | package com.widening_and_boxing;
public class WrapperImmutable
{
public static void main(String[] args)
{
Boolean b=new Boolean(true);
System.out.println("object b :"+b.hashCode());
b=false;
System.out.println("object b :"+b.hashCode());
//hashcode is different
//wrapper classes are imm... | true |
56126bcda9db68fca6c41291b675f8f6b4c1cafc | Java | ytianzhe/jinchujianceban | /src/com/xinhai/org/entity/shuju.java | UTF-8 | 644 | 2.15625 | 2 | [] | no_license | package com.xinhai.org.entity;
/**
* @author Tony
* @version 创建时间:2018年5月23日 下午2:25:32
* @ClassName 类名称
* @Description 类描述
*/
public class shuju {
private int id;
private String time;
private String info;
private String state;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Strin... | true |
ecede68777202e88ba2a2458b10f7bbc63fd83a1 | Java | dhruba-saha/sample-project1 | /src/JavaHomeWork/ExerciseReturningValueSum.java | UTF-8 | 357 | 3.390625 | 3 | [] | no_license | package JavaHomeWork;
public class ExerciseReturningValueSum {
public static void main(String[] args) {
ExerciseReturningValueSum object=new ExerciseReturningValueSum();
int result=object.sum();
/*System.out.println(result);
or,*/
System.out.println(object.sum());
}
public int sum() {
int a=10;
int ... | true |
1d110a2c650a3cbcefe1a4ae4d8e2bfbc1e95a11 | Java | Mebibyte/cosmic-coders-space-trader | /src/edu/gatech/spacetrader/good/PlanetMarket.java | UTF-8 | 3,749 | 3.15625 | 3 | [] | no_license | // $codepro.audit.disable multiplicationOrDivisionByPowersOf2, numericLiterals
/* Comment
*
*/
package edu.gatech.spacetrader.good;
import java.awt.Graphics;
import java.awt.Point;
import edu.gatech.spacetrader.main.GamePanel;
import edu.gatech.spacetrader.planet.Planet;
/**
* Generates prices of go... | true |
e07f8e7dcd87157ad604a859a2916c4146ae32b3 | Java | miyuozaki/Bulletin | /src/bulletin/dao/UserCommentsDao.java | UTF-8 | 2,023 | 2.625 | 3 | [] | no_license | package bulletin.dao;
import static bulletin.utils.CloseableUtil.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import bulletin.beans.UserComments;
import bulletin... | true |
626bd379f6a537ef65922f3f6481358ac9db40b9 | Java | kuldeep23/DamayaServices | /app/src/main/java/com/example/optimas/firebaseconsole/HouseHolds.java | UTF-8 | 9,798 | 1.84375 | 2 | [] | no_license | package com.example.optimas.firebaseconsole;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatA... | true |
8a6c05c3bff181120854721fdef493dad9915e17 | Java | brooklynphotos/codingexercises | /test/java/photos/brooklyn/practice/codingexercises/java/hackerrank/KnapsackTest.java | UTF-8 | 363 | 2.53125 | 3 | [] | no_license | package photos.brooklyn.practice.codingexercises.java.hackerrank;
import org.junit.Test;
import static org.junit.Assert.*;
public class KnapsackTest {
@Test
public void getMaxValue_small() {
final int[] wts = {1, 2, 3, 2, 2};
final int[] values = {8, 4, 0, 5, 3};
assertEquals(13, Kna... | true |
06050cf0b94ea01ae5f99403d5247d3fb0916cbd | Java | Romarich/Pattern | /PatternS7ProtoEtFly/src/PatternRobots.java | ISO-8859-1 | 2,048 | 3.53125 | 4 | [] | no_license | import java.util.HashMap;
public class PatternRobots {
private static HashMap<String,Robot> flytweight = new HashMap<String, Robot>();
public static void fight(Robot robot1, Robot robot2) {
int tick1=robot1.getFreq();
int tick2=robot2.getFreq();
while(robot2.diffLife(0)>0 && robot1.diffLife(0)>0) {
int tick... | true |
6d2f09fd2b138d5ac0b7c649223d2de3ae7371dd | Java | malibo1123/MarLib | /LibView/src/main/java/com/mar/lib/widget/EmbellishTitle.java | UTF-8 | 3,609 | 2.28125 | 2 | [] | no_license | package com.mar.lib.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.... | true |