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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f38208b88fde66f5dda5959e73aee9ebcb2747b6 | Java | ulno/SAStudyRightByHand | /src/test/java/net/ulno/sr/UniversityTest1.java | UTF-8 | 1,532 | 2.71875 | 3 | [] | no_license | package net.ulno.sr;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by ulno on 2/16/17.
*/
public class UniversityTest1 {
University uni;
Student karli;
Course mathCourse, calculusCourse;
LectureHall mathLectureHall, calcLectureHall;
@Test
public void testKarliIn... | true |
4afa02b09678b160eae5795ebbd08c2894115466 | Java | Yotamsh2/SecureVault2019 | /app/src/main/java/local_database/dao/DaoUser.java | UTF-8 | 1,030 | 2.171875 | 2 | [] | no_license | package local_database.dao;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import com.securevault19.securevault2019.user.User;
import java.util.List;
@Dao
public interface DaoUser {
@Insert
void insert(Use... | true |
5d4d728aa0c1fe4304387f8d5651d8a0c07c83a2 | Java | szySunzhouyu/java | /方剂查询系统/cmfSystem/src/cn/edu/hbtcm/pre/dao/AdminDao.java | GB18030 | 455 | 2.109375 | 2 | [] | no_license | package cn.edu.hbtcm.pre.dao;
import org.bson.types.ObjectId;
import cn.edu.hbtcm.pre.common.dao.BaseDao;
import cn.edu.hbtcm.pre.domain.Admin;
import com.google.code.morphia.dao.DAO;
public interface AdminDao extends BaseDao<Admin, ObjectId>{
//ӹԱɹ1ʧܷ0
public int addAdmin(Admin admin);
//ֲҹԱ
public Admin findB... | true |
85302a9740fadd5081c5f7c4f9b665129da32ca2 | Java | albrtstr/kingdomAnimalia | /app/src/main/java/com/example/kingdomanimalia/hal31_regenerasi_dugesia.java | UTF-8 | 4,327 | 2.046875 | 2 | [] | no_license | package com.example.kingdomanimalia;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUt... | true |
201d79bafe22ae5516873f503d6a52b75aef255b | Java | hwjworld/FZWFramework | /src/test/Test.java | UTF-8 | 8,789 | 2.09375 | 2 | [] | no_license | package test;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.ehcache.CacheManager;
impo... | true |
7ffe5c65da37e29eab4f4f4db402b07da2522feb | Java | Thata93/YooFormatter | /src/yoo/app/models/Block.java | UTF-8 | 145 | 1.835938 | 2 | [] | no_license | package yoo.app.models;
/** {@code Block} é um bloco (espaço) dentro do 'corpo' do tópico contendo informações. */
public interface Block{} | true |
31014af4c3a9d8d8a480dc9a7334ff6db13b1a97 | Java | trishagee/RefactoringDemo | /src/com/jetbrains/DemoLocalHistory.java | UTF-8 | 968 | 3 | 3 | [] | no_license | package com.jetbrains;
import java.text.SimpleDateFormat;
import java.util.*;
public class DemoLocalHistory {
private final Map<Integer, List<String>> integerStringMap = new HashMap<>();
{
integerStringMap.put(12, List.of("Sun", "Mon", "Tue"));
}
String getFormattedDate(Date date) {
Si... | true |
a9bbd99a76e1f298a238f263fa6e35668710e0f7 | Java | basilevs/RED | /src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/main/java/org/rf/ide/core/testdata/text/write/tables/settings/ResourceImportDumper.java | UTF-8 | 2,049 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.text.write.tables.settings;
import java.util.ArrayList;
import java.util.List;
import org.rf.ide.core.testdata.model.AModelElement;
import org.... | true |
1b26fb8c9a437ca755fcd32c049eb4bc58f34cfa | Java | kunalkalbande/SQLcompliance | /development/Web UI/sqlcm/src/main/java/com/idera/sqlcm/wizard/WizardStepManagerImport.java | UTF-8 | 5,438 | 2.40625 | 2 | [] | no_license | /***Start SQLCm 5.4***/
/*Requirement 4.1.4.1*/
package com.idera.sqlcm.wizard;
import org.apache.log4j.Logger;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zul.Panelchildren;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.... | true |
e275de85d41bf2b22bb51bd5a745c53690ec2424 | Java | skydh/algorithm-learn | /src/com/dh/lettcode5/LastStoneWeightII.java | UTF-8 | 1,892 | 3.90625 | 4 | [] | no_license | package com.dh.lettcode5;
/**
* 有一堆石头,每块石头的重量都是正整数。
*
* 每一回合,从中选出任意两块石头,然后将它们一起粉碎。假设石头的重量分别为 x 和 y,且 x <= y。那么粉碎的可能结果如下:
*
* 如果 x == y,那么两块石头都会被完全粉碎; 如果 x != y,那么重量为 x 的石头将会完全粉碎,而重量为 y 的石头新重量为 y-x。
* 最后,最多只会剩下一块石头。返回此石头最小的可能重量。如果没有石头剩下,就返回 0。
*
* 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems... | true |
bd58c00cb0e68776b45d20fc63e20abc1c4e1469 | Java | wizardly1985/lfire | /src/main/src/com/lfire/host/service/DeptService.java | UTF-8 | 162 | 1.640625 | 2 | [] | no_license | package com.lfire.host.service;
import java.util.List;
import com.lfire.host.entity.demo.Dept;
public interface DeptService {
public List<Dept> findAll();
}
| true |
e2ad21beadd9395ea7d12a1d266a5765c83e3014 | Java | katchi7/userService | /src/main/java/ma/tna/ebanking/userservice/dtos/T24ProfileDto.java | UTF-8 | 551 | 2.0625 | 2 | [] | no_license | package ma.tna.ebanking.userservice.dtos;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import ma.tna.ebanking.userservice.model.Profile;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class T24ProfileDto {
private String id;
private String name;
private Stri... | true |
149907f62479db4a3fbfede4c47c71b984d27520 | Java | agricultureY/wechat-develop | /wechat-develop/src/main/java/com/ycn/wechat/baidufanyi/TransApi.java | UTF-8 | 2,102 | 2.515625 | 3 | [] | no_license | package com.ycn.wechat.baidufanyi;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ycn.wechat.util.MD5;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 百度翻译接口
*/
public class TransApi {
private static final String TRANS_API_HOST = "http://api.fa... | true |
f1990812d57799657f08b3cc8dfb7dea31b2e099 | Java | mayankkumar0078/UserService | /src/main/java/com/userservice/crypto/service/KeystoreServiceImpl.java | UTF-8 | 799 | 2.03125 | 2 | [] | no_license | package com.userservice.crypto.service;
import java.security.PrivateKey;
import java.security.PublicKey;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.userservice.config.crypto.Crypto... | true |
0b354f275f83b8dc3b76b3612fb43cd3cbdfe247 | Java | calvlinzx/Dungeon | /src/unsw/dungeon/DungeonLoader.java | UTF-8 | 7,816 | 2.828125 | 3 | [] | no_license | package unsw.dungeon;
import java.io.FileNotFoundException;
import java.io.FileReader;
import org.json.JSONArray;
import org.json.JSONObject;
import org.json.JSONTokener;
/**
* Loads a dungeon from a .json file.
*
* By extending this class, a subclass can hook into entity creation. This is
* useful for creating ... | true |
18089ca6baadd0a6f681d61f407f3b898a0e9257 | Java | yanghuixin/MyOnetext | /app/src/main/java/com/example/administrator/myonetext/bean/PPaymoneyOrdeDataRes.java | UTF-8 | 9,584 | 2.0625 | 2 | [] | no_license | package com.example.administrator.myonetext.bean;
import java.util.List;
/**
* Created by Administrator on 2018/1/3.
*/
public class PPaymoneyOrdeDataRes {
/**
* Status : 1
* Msg : [{"orderId":31507,"orderNumber":"ZXB1801030001","orderPirce":420,"orderPayInt":0,"orderState":3,"orderPay":"http://app.... | true |
36b6a6aca5bdbcb3471239533aeb3a348c29834f | Java | black-ant/expengine | /engine-core/src/main/java/com/gang/etl/engine/web/controller/SyncSettingController.java | UTF-8 | 1,095 | 1.890625 | 2 | [] | no_license | package com.gang.etl.engine.web.controller;
import com.gang.common.lib.to.ResponseModel;
import com.gang.etl.datacenter.entity.SyncSetting;
import com.gang.etl.datacenter.service.impl.SyncSettingServiceImpl;
import com.gang.etl.engine.web.logic.SyncSettingLogic;
import org.springframework.beans.factory.annotation.Auto... | true |
952e018eea34865f0988eef5296561e131f8fb9d | Java | xMalware/BadBlock-GameAPI | /src/fr/badblock/game/core18R3/players/data/ChatData.java | UTF-8 | 195 | 1.664063 | 2 | [] | no_license | package fr.badblock.game.core18R3.players.data;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class ChatData {
public String playerName;
public String message;
}
| true |
e388d9f50da7cb36fc3f3de7de4d75869a79d2cb | Java | francoisschwarzentruber/openmusicwriter | /src/musicwriter/gui/PoigneeCurseur.java | UTF-8 | 2,338 | 2.796875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package musicwriter.gui;
import java.awt.Cursor;
import musicwriter.controller.Controller;
import musicwriter.donnees.Curseur;
import musicwriter.donnees.ElementMusical;
import musicwriter.donnees.ElementMusicalMultiCu... | true |
62f67148ebb69f1b10b437801850ec4ce9cad242 | Java | mdnazmulkarim/cqf-ruler | /dstu3/src/main/java/org/opencds/cqf/dstu3/builders/StructuredMapStructureBuilder.java | UTF-8 | 1,043 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package org.opencds.cqf.dstu3.builders;//package org.opencds.cqf.dstu3.builders;
import org.opencds.cqf.common.builders.BaseBuilder;
import org.hl7.fhir.dstu3.model.StructureMap;
public class StructuredMapStructureBuilder extends BaseBuilder<StructureMap.StructureMapStructureComponent> {
// TODO
pu... | true |
57553d64b511fd3256607457a55786f08e8baefc | Java | ForhadIsrafil/my-weather-app | /app/src/main/java/com/example/myweather/Countries.java | UTF-8 | 562 | 2.265625 | 2 | [] | no_license | package com.example.myweather;
import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity
public class Countries {
@NonNull
@PrimaryKey(autoGenerate = true)
int id;
String name;
// public Countries(String name) {
// this.name = name;
// }
... | true |
7aa50d20cb470238628e255248521341196db211 | Java | yaoao333/spring-study | /spring-04-autowired/src/main/java/com/yao/pojo/Person.java | UTF-8 | 1,073 | 2.609375 | 3 | [] | no_license | package com.yao.pojo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component("person")
public class Person {
@Value("yaoao")... | true |
f1787365368719fd43cca7c7eaa6cbd5e505e816 | Java | bruce-shi/PCBrowser | /browser/src/main/java/com/jupiter/pcbrowser/MainActivity.java | UTF-8 | 11,773 | 1.867188 | 2 | [] | no_license | package com.jupiter.pcbrowser;
import android.app.*;
import android.content.*;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.os.IBinder;
import android.os.RemoteException;
import android.p... | true |
4bdad6c9f617c87f2952974c9ee2525fbc92eea4 | Java | haidong94/WaveFindYourFriend-1 | /app/src/main/java/vinsoft/com/wavefindyourfriend/untils/StringFormatUntil.java | UTF-8 | 393 | 1.6875 | 2 | [] | no_license | package vinsoft.com.wavefindyourfriend.untils;
/**
* Created by kienmit95 on 2/04/17.
*/
public class StringFormatUntil {
//datetime format
public static String DATE_FORMAT = "dd-MM-yyyy";
public static String DAY_FORMAT = "HH:mm:ss";
//Firebase name
public static String REF_MESSAGE_NAME = "Mes... | true |
57d083d51660fee9e75f3b5f19a85cdc0425c302 | Java | shinobig/databaseRecipeList | /src/sample/Controller.java | UTF-8 | 2,382 | 2.59375 | 3 | [] | no_license | package sample;
import javafx.fxml.FXML;
import javafx.fxml.*;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageS... | true |
b0f374fbefee1f57c3d0ed5b5429c9aed43bba3c | Java | vesna1010/spring_boot_java2 | /college/src/main/java/com/vesna1010/college/services/ExamService.java | UTF-8 | 727 | 1.945313 | 2 | [] | no_license | package com.vesna1010.college.services;
import java.time.LocalDate;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.vesna1010.college.models.Exam;
import com.vesna1010.college.models.Professor;
import com.vesna1010.college.models.S... | true |
ccfbbc74cf45369548de6d46e8659c2452d6ce88 | Java | jmlon/java_fundamentals | /07 matrices/Matriz.java | UTF-8 | 632 | 3.28125 | 3 | [] | no_license | public class Matriz{
public static void main(String[] args) {
double matriz[][];//Declaración
matriz = new double[3][5];
matriz[0][0] = 1;
matriz[0][1] = 1;
matriz[0][2] = 1;
matriz[0][3] = 1;
matriz[0][4] = 1;
matriz[1][0] = 2;
matriz[1][1] = 2;
matriz[1][2] = 2;
matriz[1][3]... | true |
b3fbd122ac37682baffb567f9753292039019fa1 | Java | Mel-Github/microservice-feign | /eureka-client-receiver/src/main/java/com/eureka/service/Impl/ChildEventServiceImpl.java | UTF-8 | 507 | 2.09375 | 2 | [] | no_license | package com.eureka.service.Impl;
import com.eureka.domain.ChildEvent;
import com.eureka.repository.ChildEventRepository;
import com.eureka.service.ChildEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ChildEventServiceImp... | true |
0c58cfd3516c1d95646ccee24ee62fd6d698cdb1 | Java | eliran98/Repository | /myTestProject/TestProject/src/com/algorithms/framework/questions/BackTracking.java | UTF-8 | 772 | 3.359375 | 3 | [] | no_license | package com.algorithms.framework.questions;
public class BackTracking {
public static void printPermutations(String str){
if(str == null){
return;
}
permutations(str.toCharArray(),0,str.length()-1);
}
private static void permutations(char[] arr,int startIndex,int lastIndex){
if(st... | true |
f446ce798d52ec7af951485ca661a3f2ec56755b | Java | mlieshoff/learner | /learner-system/src/main/java/org/mili/learner/system/SwingClient.java | UTF-8 | 4,906 | 2.84375 | 3 | [] | no_license | package org.mili.learner.system;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Locale;
/**
* Created with IntelliJ IDEA.
* User: micha
* Date: 16.09.13
* Time: 15:41
* To c... | true |
fa5ed672ffc14470e0d50e8d78090961fe2e5467 | Java | SamRocK1030/HW3 | /src/SeatFinderTest.java | UTF-8 | 2,354 | 2.765625 | 3 | [] | no_license | import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class SeatFinderTest {
Flight[] flights;
SeatFinder sf;
@Before
public void setUp() throws Exception {
// initialize a new FlightFinder object before EVERY test
flights = Flight.allFlights();
sf = new SeatFinder();
... | true |
8cd2554cf2498604e8da2b56dc349ead46e15d10 | Java | hotpot0525/DDD_STUDY | /src/product/game/charactor/parameter/vo/Level.java | UTF-8 | 310 | 2.4375 | 2 | [] | no_license | package product.game.charactor.parameter.vo;
public class Level implements CharactorParameter{
private final int level;
public Level(int level) {
this.level = level;
}
@Override
public int getValue() {
return level;
}
@Override
public String toString() {
return "レベル:"+level;
}
}
| true |
4274b37a564a78eb0e5ce8383facd926061c549d | Java | Vinnakotarohith/java | /s.java | UTF-8 | 278 | 2.828125 | 3 | [] | no_license | import java.util.*;
// Random number
class s {
public static void main(String [] args){
int max=5000,min=1000;
System.out.println("max : "+max+" min : "+min);
int b=(int)(Math.random()*(max-min+1)+min);
System.out.println(b);
}
}
| true |
8249f97a71ad9e96427e63da779bebf0f641738e | Java | Sierou-Java/Spring-Family | /Spring-Family-Test/src/main/java/org/sierou/aop/common/CglibTarget.java | UTF-8 | 237 | 1.53125 | 2 | [] | no_license | package org.sierou.aop.common;
/**
* @Author 王洪悦.{javayue@yeah.net}
* @Create 2017-08-13 下午9:00
*/
public interface CglibTarget {
void hello();
// public void hello(){
// System.out.println("hello world!");
// }
}
| true |
24ba0f6750ed76aecbc624b9c01b521ab2ab7a16 | Java | chesmara/Zadatak17 | /app/src/main/java/com/example/sninkovic_ns/zadatak15/activities/fragments/DetailFragment.java | UTF-8 | 5,562 | 2.09375 | 2 | [] | no_license | package com.example.sninkovic_ns.zadatak15.activities.fragments;
import android.app.Fragment;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Image... | true |
4427f230d4b364505b31c5a519cb42df5308bd46 | Java | tudorsirbu/ecommerce | /src/com/sheffield/ecommerce/servlets/articles/ArticlesList.java | UTF-8 | 1,420 | 2.421875 | 2 | [] | no_license | package com.sheffield.ecommerce.servlets.articles;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import... | true |
1f34bd6839e39c026c68d62a6196c5931a37bce7 | Java | hungleee99/Point_Service | /src/main/java/com/vti/pointserver/entity/GroupUser.java | UTF-8 | 1,381 | 2.0625 | 2 | [] | no_license | package com.vti.pointserver.entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import ... | true |
f64cba5721d91c1f5295274a2d796be09bd71948 | Java | pfeif11/JavaBasics | /src/com/syntax/repls/Repl67.java | UTF-8 | 437 | 3.15625 | 3 | [] | no_license | package com.syntax.repls;
public class Repl67 {
public static void main(String[] args) {
// Write a program to print out the pattern:
//
// 1 2 3 4 5 6 7 8 9 10
// 2 4 6 8 10 12 14 16 18 20
// 3 6 9 12 15 18 21 24 27 30
// 4 8 12 16 20 24 28 32 36 40
// 5 10 15 20 25 30 35 40 45 50
for(int y=1... | true |
1cf93889916938104abe8e1fd88057c2c523a5e0 | Java | stefanadranca/hiringApp | /src/Job.java | UTF-8 | 2,404 | 3.078125 | 3 | [] | no_license |
import java.util.ArrayList;
public class Job {
public String jobName;
public Company company;
public Boolean flag;
Constraint graduationConstraint;
Constraint experienceConstraint;
Constraint GPAConstraint;
private ArrayList<User> candidates;
private int numberNeeded;
private Doub... | true |
20eae6e92919394cd53a98c5e712b5c7af47a680 | Java | 404V5/family168 | /core/src/it/functional/src/test/java/com/family168/core/struts2/ExtActionTest.java | UTF-8 | 1,562 | 2.015625 | 2 | [] | no_license | package com.family168.core.struts2;
import com.family168.security.domain.User;
import junit.framework.*;
public class ExtActionTest extends TestCase {
protected ExtAction action = new UserAction();
public void testDefault() {
assertNotNull(action);
}
public void testPagedQuer... | true |
f72c3fb42bcf730002e546cd42f6c6b5e47e7d7d | Java | acientstarlight/java_study | /src/Java_Base/LogicalOperator.java | UTF-8 | 775 | 3.90625 | 4 | [] | no_license | package Java_Base;
/**
* 逻辑运算符
*/
public class LogicalOperator {
public static void main(String[] args) {
boolean a = true;
boolean b = false;
boolean c = true;
boolean d = false;
//都为true为true
System.out.println(""+(a&&b));
//其中一个以上为true为true
Syst... | true |
0720b9513487a4de82164da10e83db61a1bbcc3c | Java | ebruersoy/employeeService | /src/main/java/com/myway/services/DepartmentService.java | UTF-8 | 1,218 | 2.59375 | 3 | [] | no_license | package com.myway.services;
import com.myway.entity.Department;
import com.myway.exception.InvalidRequestException;
import com.myway.repository.DepartmentRepository;
import org.springframework.stereotype.Component;
/**
* @author Ebru Göksal
*/
@Component
public class DepartmentService {
private DepartmentRepos... | true |
2dd5269535668910a3a288bded480f3ed64fdc80 | Java | suhuangqiang/Tooth | /Tooth2/app/src/main/java/com/example/tooth/Message/AddressListMessage.java | UTF-8 | 373 | 2.03125 | 2 | [] | no_license | package com.example.tooth.Message;
import com.example.tooth.Entity.Address;
import java.util.List;
/**
* Created by shq1 on 2016/11/2.
*/
public class AddressListMessage extends Message {
private List<Address> data;
public List<Address> getData() {
return data;
}
public void setData(Lis... | true |
388310345ec44083a749446c6dd7241b1537e4d0 | Java | jamesmmorin/KoboldCamp | /KoboldCamp/src/test/java/com/swcguild/koboldcamp/KoboldCampDaoTest.java | UTF-8 | 6,977 | 2.0625 | 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.swcguild.koboldcamp;
import com.swcguild.koboldcamp.dao.DAO;
import com.swcguild.koboldcamp.model.Asset;
import com.swcgui... | true |
a16e8ad55a920dd2ede9611dd17b02d1d1538b34 | Java | ahussan/Problem-Solving-in-Java | /src/main/java/Logical/FindFactorial.java | UTF-8 | 1,076 | 3.8125 | 4 | [] | no_license | package Logical;
/**
* Created by anjalhussan on 10/25/16.
*/
/*
Using the Java language,
have the function FirstFactorial(num) take the num parameter
being passed and return the Logical of it (e.g. if num = 4,
return (4 * 3 * 2 * 1)). For the test cases, the range will be between 1 and 10.
Sample Test Cases
Input:4... | true |
3770a0e409897ca872d56ed33259542176edef66 | Java | liufangri/ProjectNX | /src/java/com/teamnx/util/CSVToDateBase.java | UTF-8 | 4,959 | 2.5625 | 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.teamnx.util;
import com.teamnx.model.Course;
import com.teamnx.model.Department;
import com.teamnx.model.StudentCourse;
im... | true |
729fadae30cb55c373433a7fd2a6b224940dbe8d | Java | peymand/spring5webapp | /src/test/java/com/peyman/spring5webapp/controllers/PropertyInjectedControllerTest.java | UTF-8 | 854 | 2.265625 | 2 | [] | no_license | package com.peyman.spring5webapp.controllers;
import com.peyman.spring5webapp.controllers.di.PropertyInjectedController;
import com.peyman.spring5webapp.services.di.GreetingServiceImpl;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
*... | true |
e833ec0238c15f603bd65458be3584716e381212 | Java | WclWannaRich/SpringBootCommunity | /src/main/java/com/wclspringboot/community/interceptor/WebConfig.java | UTF-8 | 1,064 | 2.015625 | 2 | [] | no_license | /**
* Copyright (C), 2015-2019, XXX有限公司
* FileName: WebConfig
* Author: Administrator
* Date: 19-10-16, 0016 下午 07:12
* Description:
* History:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.wclspringboot.community.intercep... | true |
cc9059d43b18a30ef446d40807a0a066f18f7050 | Java | sandrocheng/sandro | /project/graphicsExample/src/com/sandro/example/MeshView.java | UTF-8 | 792 | 2.296875 | 2 | [] | no_license | package com.sandro.example;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
public class MeshView extends View{
private Bitmap mBitmap;
public MeshView(Context conte... | true |
431d12a299ee6af79d8a827dc4cf7c05c0381574 | Java | codinglzc/JavaProjects | /SpringNotes/src/main/java/com/lzc/annotation/scan/CustomizeComponent.java | UTF-8 | 282 | 1.851563 | 2 | [] | no_license | package com.lzc.annotation.scan;
import java.lang.annotation.*;
/**
* <p>
*
* </p>
*
* @author Liu Cong
* @since 2018-08-08
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CustomizeComponent
{
String value() default "";
}
| true |
ab4aae18f4b003078c143e744b19e41696bd0776 | Java | karls0ns/Java_Project_5 | /src/MatrFun2.java | UTF-8 | 492 | 2.953125 | 3 | [] | no_license | public class MatrFun2 {
public void printRow(int Row, int M[] []){
int i = 0;
System.out.println(" ");
System.out.print("Row: ");
System.out.print(Row);
System.out.print(" ");
while( i <= M.length-1){
System.out.print(M[Row][i]);
System.out.print(" ");
i++;
... | true |
4ffc6fee94e2cce74bbd2ffb122d68b9489cbc53 | Java | juanHerrera-Dev/Grupo_15_Tp_Integrador | /test/zonaDeEstacionamiento/TestCaseZonaDeEstacionamiento.java | UTF-8 | 1,268 | 2.625 | 3 | [] | no_license | package zonaDeEstacionamiento;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.mock;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import ventas.PuntoDeVenta;
class TestCaseZonaDeEstacionamiento {
ZonaDeEstacionamiento zonaX;
Inspector inspector... | true |
d8be96732c6a48d48eb405a67e7b3598fa8bde52 | Java | phanibuddi9/SpringBootHazelcastSpring | /src/test/java/com/cav/spring/service/bank/repository/BankRepositoryTest.java | UTF-8 | 3,251 | 2.046875 | 2 | [] | no_license | package com.cav.spring.service.bank.repository;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import or... | true |
95f4fda4dadb113afef34ef55223ca9f517abf21 | Java | oteplova/AT_Bootcamp | /src/main/java/net/comments/sample/App.java | UTF-8 | 2,852 | 3.78125 | 4 | [] | no_license | package net.comments.sample;
import java.util.ArrayList;
import java.util.List;
public class App {
public static void main(String[] args) {
// Arrays with student's and teacher's names
String[] studentNamesAttentive = {"Andrey", "Nastya", "Dima", "Kolya"};
String[] studentNamesBad = {"An... | true |
1ccf8016cc9057a9028b9bcf2555d2f3917c1600 | Java | fengqsqd/Parent | /violetproduct-swing/src/main/java/com/horstmann/violet/application/StepFourTestCase/TestCaseMatrixPanel.java | GB18030 | 4,638 | 2.4375 | 2 | [] | no_license | package com.horstmann.violet.application.StepFourTestCase;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
impor... | true |
a72ef3b97dd1008b2ef3a3ccb6dc9e14d046d4b6 | Java | shukdebp/webrtc | /src/main/java/com/pwc/r2p2/ui/controller/BPMRestController.java | UTF-8 | 5,764 | 1.828125 | 2 | [] | no_license | package com.pwc.r2p2.ui.controller;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.camunda.bpm.engine.HistoryService;
import org.ca... | true |
436603773498536589b4616ad297ccdd78b83603 | Java | njustesen/tbsc | /src/main/java/tbsc/shared/model/game/GameStatus.java | UTF-8 | 98 | 1.65625 | 2 | [
"MIT"
] | permissive | package tbsc.shared.model.game;
public enum GameStatus {
CREATED, STARTED, OVER, DECLINED;
}
| true |
2761a23b60ddb82631b2712a321aabf14b32ac60 | Java | ermakovmaxim/aQute | /aQute.libsync/src/aQute/impl/library/LibraryImporterImpl.java | UTF-8 | 4,509 | 1.953125 | 2 | [] | no_license | package aQute.impl.library;
import java.io.*;
import java.net.*;
import java.util.concurrent.*;
import java.util.regex.*;
import aQute.impl.library.LibraryImpl.ProgramImpl;
import aQute.impl.library.LibraryImpl.RevisionImpl;
import aQute.lib.data.*;
import aQute.lib.io.*;
import aQute.libg.cryptography.*;
import aQut... | true |
1e4ea740e5256d623d48a5130fb7f97b59454492 | Java | sureshrmdec/Algorithm-Java | /src/combinationSum4.java | UTF-8 | 724 | 3.015625 | 3 | [] | no_license | import java.util.Arrays;
/**
* Created by xhu on 11/17/16.
*/
public class combinationSum4 {
int count =0;
public int combinationSum4(int[] nums, int target) {
if (nums == null || nums.length == 0)
{
return 0;
}
int[] sum = new int[target + 1];
// sum[i] m... | true |
6b29e9f5d54342cac9603db12a77ce23f9235c28 | Java | yuzhijia88/yes-cart | /web/support/src/main/java/org/yes/cart/cluster/service/impl/BackdoorServiceImpl.java | UTF-8 | 14,674 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* 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 b... | true |
424ef8612a273f1f9028abff877a0aba190775a3 | Java | jhump/arquebus | /core/src/main/java/com/bluegosling/arquebus/core/controller/VehicleController.java | UTF-8 | 2,957 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.bluegosling.arquebus.core.controller;
import com.bluegosling.arquebus.core.model.VehicleModel;
import com.bluegosling.arquebus.core.view.GameView;
import playn.core.Keyboard;
import playn.core.Keyboard.KeyEvent;
import playn.core.Mouse;
import playn.core.Mouse.ButtonEvent;
import playn.core.Mouse.Event;
im... | true |
9d97420d4469028c4f931b86e457f05683106094 | Java | Yuanyang-Che/CSCI-201-FP | /src/main/java/edu/usc/csci/boneapptheteeth/mvc/LoginRegisterController.java | UTF-8 | 2,814 | 2.328125 | 2 | [] | no_license | package edu.usc.csci.boneapptheteeth.mvc;
import edu.usc.csci.boneapptheteeth.model.UserInfo;
import edu.usc.csci.boneapptheteeth.model.UserInfoRepository;
import edu.usc.csci.boneapptheteeth.mvc.dto.LoginForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Control... | true |
427c0032c9be431471a35261eb710c81777adca5 | Java | guybitan100/java-xtt | /com/mobixell/xtt/RemoteXTTClient.java | UTF-8 | 19,767 | 2.15625 | 2 | [] | no_license | package com.mobixell.xtt;
import java.io.PrintStream;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.SocketException;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.net.InetSocketAddres... | true |
8f8e2be99b072beb95b46867b1b55ed4de7047a7 | Java | JSJBDEV/LostThaumaturgy | /src/main/java/com/pengu/lostthaumaturgy/client/TextureAtlasSpriteFull.java | UTF-8 | 602 | 2.359375 | 2 | [] | no_license | package com.pengu.lostthaumaturgy.client;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
public class TextureAtlasSpriteFull extends TextureAtlasSprite
{
public static final TextureAtlasSpriteFull sprite = new TextureAtlasSpriteFull("full");
protected TextureAtlasSpriteFull(String sprite... | true |
7f1d19e810ea49f62df4308b9723ce4eaf769df1 | Java | evandor/skysail | /skysail.server.app.notes/src/io/skysail/server/app/notes/Category.java | UTF-8 | 596 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package io.skysail.server.app.notes;
import io.skysail.domain.Entity;
import io.skysail.domain.html.Field;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class Category implements Entity, Comparable<C... | true |
9e95f41c420d3708c50a90f288b53fd4ae4347e3 | Java | ashishbharg/DS_Algo | /src/main/java/edu/ashish/util/PrintingUtil.java | UTF-8 | 2,887 | 3.46875 | 3 | [] | no_license | package edu.ashish.util;
import edu.ashish.model.BalanceTreeNode;
import edu.ashish.model.TreeNode;
import java.util.Arrays;
public class PrintingUtil {
public static void print1DArray(int[] arr) {
System.out.println(Arrays.toString(arr));
System.out.println();
}
public static void pri... | true |
e234602d22f3a43144706828af5e53088a6a7ff7 | Java | KHikami/ProjectFiCallingDeciphered | /DialerJADXDecompile/beb.java | UTF-8 | 2,346 | 1.640625 | 2 | [] | no_license | import android.graphics.Bitmap;
import android.location.Address;
import android.provider.ContactsContract.CommonDataKinds.Phone;
import java.util.List;
import java.util.Set;
/* compiled from: PG */
public class beb implements bej, bek {
public final String a;
public final /* synthetic */ bbc b;
public voi... | true |
39f8d791448b502aa251822dc6105c33b4518e18 | Java | NoSequel/HCF | /src/main/java/rip/vapor/hcf/listeners/EnchantmentLimiterListener.java | UTF-8 | 2,488 | 2.40625 | 2 | [] | no_license | package rip.vapor.hcf.listeners;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.enchantment.EnchantItemEvent;
import org.bukkit.event.inventory.InventoryC... | true |
d0ef2cfc640f00fdea830c801af9aff5fa31ce98 | Java | yinabameguru/BookStore | /src/com/jza_lbz/service/CategoryService.java | UTF-8 | 531 | 2.125 | 2 | [] | no_license | package com.jza_lbz.service;
import java.sql.SQLException;
import java.util.List;
import com.jza_lbz.domain.Category;
import com.jza_lbz.domain.CategoryPageBook;
public interface CategoryService {
/**
* 分类&查询
* @return
* @throws SQLException
*/
public List<Category> category() throws SQLException;
/**
*... | true |
17b692b93281df2e7ea7eb556a00c15db05c4386 | Java | nowimwrok/zd_ztpor | /src/main/java/com/thinkgem/jeesite/modules/sys/listener/WebAppContextListener.java | UTF-8 | 3,128 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package com.thinkgem.jeesite.modules.sys.listener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import com.thinkgem.jeesite.common.utils.Const;
import org.springframework.web.context.support.WebApplicationContextUtils;
/**
*
* 类名称:WebAppContextListener.java
* 类描述:
* 作者单... | true |
747fb69b4ad9375d1ce7aa56c0313dd2ab3838de | Java | NinaMNina/food-DrinksOnline | /src/jsonData/Data.java | UTF-8 | 5,223 | 2.515625 | 3 | [] | no_license | package jsonData;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.PriorityQueue;
import DTO.ArtikalDTO;
import bean.Jelo;
import bean.Korisnik;
import bean.Pice;
im... | true |
f4b383f12c62bdf7d17651cbba43386557662aa3 | Java | tulasiqa/hybridFrameWork | /SRC/vibe/contacts3/tests/BusinessContactsMethods.java | UTF-8 | 122,723 | 1.648438 | 2 | [] | no_license | package vibe.contacts3.tests;
import java.util.List;
import java.util.Set;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import org.apache.... | true |
a0044930018b4153dc29e7f77ad41cd39690fe69 | Java | WBB1997/BookSystem | /src/model/Book_Subscribe.java | UTF-8 | 1,054 | 2.53125 | 3 | [] | no_license | package model;
public class Book_Subscribe {
private Book book;
private Reader reader;
private String time;
private String status;
public Book getBook() {
return book;
}
public void setBook(Book book) {
this.book = book;
}
public Reader getReader() {
retur... | true |
abe1edfaa028578f55bbc5bec28235ba04a3d155 | Java | nesserine0/Spring-15 | /src/main/java/Class/Sphere.java | UTF-8 | 1,094 | 3.71875 | 4 | [] | no_license | package Class;
public class Sphere extends Cercle{
/**
* Constructeur de la classe Sphere pour initialise un object Sphere
* @param nom du Sphere : string
* @param origine le point : Point
* @param diametre : double
*/
public Sphere(String nom, Point origine, double diametre) {
super(nom, origine,... | true |
99165b0f964b23a246f773f44e79b874c3e0bc7e | Java | DeepBlueRobotics/RobotCode2015 | /SlideWinder/src/org/usfirst/frc100/SlideWinder/commands/AutoFollowLine.java | UTF-8 | 1,418 | 2.9375 | 3 | [] | no_license | package org.usfirst.frc100.SlideWinder.commands;
import org.usfirst.frc100.SlideWinder.SlideWinder;
import edu.wpi.first.wpilibj.command.Command;
/**
* Uses line readers to follow the line autonomously.
*/
public class AutoFollowLine extends Command {
private final double distance;
/**
* @param distance - ... | true |
e99ebb0816729344099c685bbf7cd11a7a32d3ec | Java | whdals7337/coding-test-study | /src/sort/InjectionSort.java | UTF-8 | 733 | 3.90625 | 4 | [] | no_license | package sort;
public class InjectionSort {
public static void main(String[] args) {
// 배열
int[] arr = {5, 4, 3, 2, 1, 6, 7, 8, 9, 0};
int len = arr.length;
for(int i = 1; i < len; i++){
for(int j = i; j > 0; j--){
// 왼쪽으로 이동하면서 값이 이전 값보다 작으면 서로 변경
... | true |
be915f6f8e49aa432c10a839b3dfdc97fd3e6b71 | Java | vladosby/Hibernate | /src/main/java/com/borisov/spring/components/framework/TransactionBPP.java | UTF-8 | 2,064 | 2.546875 | 3 | [] | no_license | package com.borisov.spring.components.framework;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.stereotype.Component;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Pr... | true |
a9cb40bc4adf53b346ef6c43f3cb6bf6972f99be | Java | daniimara/app-spring-ciet | /src/test/java/br/com/treinamento/SerieTest.java | UTF-8 | 7,695 | 2.03125 | 2 | [] | no_license | package br.com.treinamento;
import static org.junit.Assert.*;
import java.security.NoSuchAlgorithmException;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.junit.Before;
i... | true |
8cf643d79734feb66dae361554bfc9ce004b8a49 | Java | EverCedillo/moh-back | /src/main/java/mx/ohanahome/app/backend/entity/user/UserRole.java | UTF-8 | 2,551 | 2 | 2 | [] | no_license | package mx.ohanahome.app.backend.entity.user;
import com.google.appengine.repackaged.org.codehaus.jackson.annotate.JsonIgnore;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persis... | true |
9518f1296590447b5045a5a3137b2ec1b594be12 | Java | bwolfee10/vending-machine | /java/src/main/java/com/techelevator/view/Beverages.java | UTF-8 | 365 | 2.453125 | 2 | [] | no_license | package com.techelevator.view;
import java.math.BigDecimal;
public class Beverages extends Products{
private String message = "Glug Glug, Yum!";
@Override
public String dispenseMsg(){
return this.message;
}
public Beverages(String slot, String name, BigDecimal price, String type) {
... | true |
fd96d05d99a2d49ccaac764f9b428097ca60b037 | Java | maizhancheng/shop | /Taobao/app/src/main/java/com/mai/shop/taobao/pro/mine/view/MineFragment.java | UTF-8 | 740 | 1.945313 | 2 | [] | no_license | package com.mai.shop.taobao.pro.mine.view;
import android.view.View;
import android.view.ViewGroup;
import com.mai.shop.taobao.R;
import com.mai.shop.taobao.pro.base.view.BaseFragment;
import com.mai.shop.taobao.pro.base.view.navigation.impl.AppNavagion;
/**
* Created by admin on 2018/3/1.
*/
public class MineFra... | true |
fa276065d8e0c1441db9a7f8cd45c7e329e1228a | Java | tuukkapa/Shakki-TIRALabra2015 | /src/Chessboard/pieces/SuperPiece.java | UTF-8 | 9,510 | 3.40625 | 3 | [] | no_license | /*
* Copyright (C) 2015
*
* Tuukka Paukkunen <tuukka.paukkunen@cs.helsinki.fi>
*/
package Chessboard.pieces;
import Chessboard.Chessboard;
import Chessboard.Move;
import DataStructures.List;
/**
* This class is used to create protecting or attacking patterns from a chessboard
* square. It is used at Evaluate-... | true |
929b5dc40ccab008c342e7b4d8f7dc538de3f11c | Java | Hukmaram28/Java-all | /CGI-Java/PE5/src/UpdateArray.java | UTF-8 | 350 | 2.8125 | 3 | [] | no_license | import java.util.ArrayList;
public class UpdateArray {
public ArrayList<String> update(ArrayList<String> arrayList, String element, int position){
arrayList.set(position,element);
return arrayList;
}
public ArrayList<String> empty(ArrayList<String>arrayList){
arrayList.clear();
... | true |
41c77a95f0280263717c01e814271b71ce64a296 | Java | gong-shuang/become_app | /app/src/main/java/com/gs/learn/group/TabFragmentActivity.java | UTF-8 | 2,251 | 2.28125 | 2 | [] | no_license | package com.gs.learn.group;
import com.gs.learn.group.fragment.TabFirstFragment;
import com.gs.learn.group.fragment.TabSecondFragment;
import com.gs.learn.group.fragment.TabThirdFragment;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import androi... | true |
9a1c2b9e0f7d8574f622dca7f3b618e35e99b364 | Java | 543563979/algorithm010 | /Week02/GroupAnagrams.java | UTF-8 | 941 | 3.453125 | 3 | [] | no_license | // hash表
class GroupAnagrams {
public List<List<String>> groupAnagrams(String[] strs) {
if (strs.length == 0) {
return null;
}
// 创建长度26的哈希表
int[] count = new int[26];
HashMap<String, List> map = new HashMap<String, List>();
for (String s : strs) {
... | true |
72102f8725931aab53e7df5bb8b6c8312434aa4d | Java | dorgdev/playground | /Java/CG_Ex06/src/ex6/App.java | UTF-8 | 3,540 | 3.1875 | 3 | [] | no_license | /*
* Computer Graphics - Exercise 06
* Students' name: Dor Gross, Itamar Benady and Shlomi Babluki
* Students' ID: 039344999, 300157427 and 021541065
*/
package ex6;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;
import java.awt.event.Ke... | true |
69744cec3e5a8128d262073429305603ec4c07d8 | Java | baatyr10/springFinal | /src/main/java/tr/com/jowl/controller/GlobalController.java | UTF-8 | 1,019 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package tr.com.jowl.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.Se... | true |
67363be3f6b2b1f05339f4ecabc7d04a5881652c | Java | jackcailj/ddframework | /src/main/java/com/dangdang/ddframework/util/ExcelData.java | UTF-8 | 5,992 | 2.453125 | 2 | [] | no_license | package com.dangdang.ddframework.util;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.... | true |
e42d0ccf265f46c121da81fbcf154d6680a9510c | Java | hb1500/MMT | /src/core/src/main/java/eu/modernmt/training/filters/CorporaBloomFilter.java | UTF-8 | 2,910 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package eu.modernmt.training.filters;
import com.google.common.hash.BloomFilter;
import com.google.common.hash.Funnel;
import com.google.common.hash.PrimitiveSink;
import eu.modernmt.io.UTF8Charset;
import eu.modernmt.model.corpus.BaseMultilingualCorpus;
import eu.modernmt.model.corpus.MultilingualCorpus;
import java... | true |
140154a7ad11c73a9495e94a5a057c4f237b3771 | Java | Ashtroid/Linear-Algebra | /src/EquationSolver.java | UTF-8 | 7,041 | 3.3125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
//Solves all nxn linear equations by transforming them into matrices and using LU decomposition
public class EquationSolver
{
int numRow, numCol;
double[][]matrix, L, testMatrix;
ArrayList<ArrayList<Double... | true |
3a3c43f520776d699ca3ff646542367b12687b92 | Java | 1nsp1r3rnzt/Stoicly | /app/src/main/java/com/codehealthy/stoicly/ui/allquote/QuoteViewModelFactory.java | UTF-8 | 828 | 2.3125 | 2 | [] | no_license | package com.codehealthy.stoicly.ui.allquote;
import android.app.Application;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import android.support.annotation.NonNull;
public class QuoteViewModelFactory implements ViewModelProvider.Factory {
private final Application app... | true |
26064f14d61b800086f3de8017d0a1433f03f4d7 | Java | kingandsorrow/ks-parent | /ks-sso/ks-sso-web/src/main/java/top/ks/sso/web/config/CommonConfig.java | UTF-8 | 2,269 | 1.867188 | 2 | [] | no_license |
package top.ks.sso.web.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigur... | true |
a2b74a9fc01323658378f72eefd41b9b0d85bf24 | Java | amidgeha/sina-weibo-android | /jamendo-android/src/com/teleca/jamendo/gestures/GestureCommandRegister.java | UTF-8 | 554 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package com.teleca.jamendo.gestures;
import java.util.HashMap;
/**
* Simple register for gesture commands.
*
* @author Bartosz Cichosz
*
*/
public class GestureCommandRegister {
private HashMap<String, GestureCommand> mGestures;
public GestureCommandRegister() {
mGestures = new HashMap<Str... | true |
90212c91f13b3cb9d910d134997812ddee8f5510 | Java | Shuvayatra/migration-android-new | /app/src/main/java/com/taf/shuvayatra/gcm/MyFcmListenerService.java | UTF-8 | 3,977 | 2 | 2 | [] | no_license | package com.taf.shuvayatra.gcm;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.TaskStackBuilder;
import com.google.fi... | true |
48dca892dd1a77201950d52d44b8a0f83d71ca15 | Java | daocrossover/SwordOffer | /src/binary_search/IntegerIdenticalToIndex.java | UTF-8 | 884 | 4.0625 | 4 | [] | no_license | package binary_search;
/* 面试题53(三):数组中数值和下标相等的元素
题目:假设一个单调递增的数组里的每个元素都是整数并且是唯一的。请编程实
现一个函数找出数组中任意一个数值等于其下标的元素。例如,在数组{-3, -1,
1, 3, 5}中,数字3和它的下标相等。
*/
public class IntegerIdenticalToIndex {
int GetNumberSameAsIndex(int[] numbers, int length) {
if (numbers == null || length <= 0) return -1;
int lef... | true |
925b10b8657657b7ff0403233456250d958ba8b8 | Java | Jinyu97/java | /과제/Hw9_1.java | UHC | 1,619 | 4 | 4 | [] | no_license | class Figure{
double round;
double area;
Figure(){}
Figure(double round, double area){
this.round = round;
this.area = area;
}
@Override
public String toString(){
return String.format(" "+getClass().getName()+"̰, ѷ %.2f, ̴ %.2fԴϴ.\n", this.round, this.area);
}
}
class Circle exten... | true |
1908ca3db227cc53a8eb809995857cb46998cc5d | Java | LuGaXu/AdvancedAlgorithm | /src/main/java/week2/ShellSort.java | UTF-8 | 805 | 3.3125 | 3 | [] | no_license | package week2;
/**
* Created by lujxu on 2017/12/21.
*/
public class ShellSort {
public static void main(String []args){
int [] array=new int[]{2,4,1,4,2,9,6,5,3,5};
ShellSort s=new ShellSort();
s.shellsort(array);
System.out.println("test");
}
public int [] shellsort(in... | true |
95b3b21985f68e50952a99f263aac86a35dd914b | Java | Skularach/ThermometersDomain | /ThermometersDomain/src/BoardActions/MakeLearningInstances.java | UTF-8 | 14,292 | 2.875 | 3 | [] | no_license | package BoardActions;
import java.util.ArrayList;
import weka.core.DenseInstance;
import weka.core.Instance;
import Utilities.Quadruple;
import Utilities.Triple;
import WEKA.Classification;
import WEKA.InstanceCreation;
import BoardRepresentation.Board;
import BoardRepresentation.ComplexThermsBoard;
import BoardRepre... | true |
ea7f66726d7bd08c00364917147be9dd31498743 | Java | arajitha/Questions | /Test/GraphBFS.java | UTF-8 | 1,512 | 3.15625 | 3 | [] | no_license | package Test;
import java.util.LinkedList;
import java.util.Queue;
public class GraphBFS {
public static void bfs1(int[][] m, int nodes){
Queue<Integer> q = new LinkedList<Integer>();
int NNodes = nodes;
int[] visited = new int[NNodes];
//for(int i = 0 ; i < nodes-1; i++){
// visited[i] = 0;
//}
q.... | true |
8147ad02a86824fbdb349db865d8fad91606365c | Java | diman4ik/EnergySaver | /core/src/com/denis/game/objects/R4Switch.java | UTF-8 | 361 | 2.609375 | 3 | [] | no_license | package com.denis.game.objects;
import com.denis.game.GameObject;
/**
* Created by loki on 26.06.16.
*/
public class R4Switch extends GameObject {
public static final float R4SWITCH_WIDTH = 0.6f;
public static final float R4SWITCH_HEIGHT = 1.2f;
public R4Switch(float x, float y) {
super(x, y, R... | true |