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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
94f2e1871ba0e52f67f4250e18ce8c0b96f879e2 | Java | jungsnim/spring_mvc | /src/main/java/com/websol/notice/InitBinderController.java | UTF-8 | 1,093 | 2.234375 | 2 | [] | no_license | package com.websol.notice;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder... | true |
20931860ba34edd1e001b8dee23fc3889d676c8f | Java | robin-qu/Leetcode | /HighFrequency/200_NumberOfIslands.java | UTF-8 | 4,153 | 3.015625 | 3 | [
"MIT"
] | permissive | // // BFS O(mn)time O(mn)space
// class Solution {
// class Pair {
// int x;
// int y;
// public Pair(int x, int y) {
// this.x = x;
// this.y = y;
// }
// }
// public static final char LAND = '1';
// public static final char WATER = ... | true |
fae5d615cb8d484e3e02d43b50002e6a81cdb4ed | Java | manrovich/JavaLessons | /Level2/Lesson2/src/ru/geekbrains/Main.java | UTF-8 | 931 | 3.078125 | 3 | [] | no_license | package ru.geekbrains;
public class Main {
public static void main(String[] args) {
int colNum = 4;
//colNum = 3;
int rowNum = 4;
String[][] arr = new String[colNum][rowNum];
for (int i = 0; i < colNum; i++) {
for (int j = 0; j < rowNum; j++) {
a... | true |
451ca234f46def2a39991ee4c80d6dad1a8435f0 | Java | jawharomer/dhms | /dhms/src/main/java/com/joh/dhms/service/DoctorService.java | UTF-8 | 127 | 1.882813 | 2 | [] | no_license | package com.joh.dhms.service;
import com.joh.dhms.model.Doctor;
public interface DoctorService {
Doctor findOne(int id);
}
| true |
3987987470d80e082dbe113699f1b5b14a6a676f | Java | wyaoyaoCA/spring-annnotion | /03-spring-annnotion-componentScan/src/main/java/study/wyy/spring/anno/componentscan/service/MyNode.java | UTF-8 | 289 | 1.976563 | 2 | [] | no_license | package study.wyy.spring.anno.componentscan.service;
import study.wyy.spring.anno.componentscan.anno.Node;
/**
* @author by wyaoyao
* @Description
* @Date 2020/11/17 10:08 下午
*/
@Node
public class MyNode {
public void node(){
System.out.println("MyNode...");
}
}
| true |
52987b7fbb7700d6af30e0d1c1718dff958526b8 | Java | VladimirTsusuck/MazeHunterServer | /src/de/sag/mazehunter/server/GameServer.java | UTF-8 | 1,909 | 2.46875 | 2 | [] | no_license | package de.sag.mazehunter.server;
import com.esotericsoftware.kryonet.Server;
import de.sag.mazehunter.server.networkData.ConnectResponse;
import de.sag.mazehunter.server.networkData.DashRequest;
import de.sag.mazehunter.server.networkData.DashResponse;
import de.sag.mazehunter.server.networkData.LobbyUpdate;
i... | true |
a91950483a0c4d3d785db33b98f0da8031450cf6 | Java | GramaSeca/AllGreen | /src/java/com/allgreensolutions/sistema/dao/jpa/DAOJPA.java | UTF-8 | 4,008 | 2.328125 | 2 | [] | no_license | package com.allgreensolutions.sistema.dao.jpa;
import com.allgreensolutions.sistema.dao.DAO;
import com.allgreensolutions.sistema.model.Item;
import com.allgreensolutions.sistema.util.HibernateUtil;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
i... | true |
5659b1a2f18d664ae932d70f01b83a455e1611e8 | Java | sivaprasadkoka/QueAnsForumNew | /app/src/main/java/com/questionanswerforum/activities/DatabaseHandler.java | UTF-8 | 2,616 | 2.546875 | 3 | [] | no_license | package com.questionanswerforum.activities;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.questionanswerforum.Pojo.QueAnsPojo;
import java.util.ArrayList;... | true |
b420305d67b1f03b9fd6b829004ba6661b429443 | Java | pritamkhose/PritamJava | /src/Tuturialpoint/AWTGUI/AwtControlDemo.java | UTF-8 | 15,599 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package AWTGUI;
import java.awt.*;
import java.awt.event.*;
import java.util.Date;
public class AwtControlDemo {
private Frame mainFrame;
private Label headerLabel;
private Label statusLabel;
private Panel controlPanel;
public AwtControlDemo(){
prepareGUI();
}
public static void main(Str... | true |
05d6d9ec2f2e3599339e03ff6b37347d48174998 | Java | zygote1984/AspectualAdapters | /ALIA4J-NOIRIn-all/src/org/alia4j/liam/context/ToShortCoercionContext.java | UTF-8 | 1,661 | 2.453125 | 2 | [] | no_license | package org.alia4j.liam.context;
import java.util.List;
import org.alia4j.liam.Context;
import org.alia4j.liam.SimpleType;
import org.alia4j.liam.signature.Signed;
import org.alia4j.util.Maybe;
import org.alia4j.util.MaybeUtilities;
/**
* @author Christoph Bockisch
* @author Andreas Sewe
*/
public class ToShortCoe... | true |
863ad1c42553ef5cdb936ae9d91de08a5e1eb75a | Java | TangHaifeng-John/Logger | /library/src/main/java/com/thf/logger/ThfLogger.java | UTF-8 | 2,249 | 2.515625 | 3 | [] | no_license | package com.thf.logger;
import android.text.TextUtils;
import android.util.Log;
import java.io.File;
import ch.qos.logback.classic.Logger;
public class ThfLogger {
Logger logger;
LogConfig logConfig;
private String logFilePath;
public ThfLogger(Logger logger, LogConfig logConfig) {
this.lo... | true |
8da23c3d4587e69e408bd7f58e6b975a31d3c854 | Java | GheorgheCazacu/PAO | /Laborator-05/src/com/fmi/laborator/customer/UserApp.java | UTF-8 | 585 | 2.296875 | 2 | [
"MIT"
] | permissive | package com.fmi.laborator.customer;
import com.fmi.laborator.auth.Authenticable;
import com.fmi.laborator.model.User;
public final class UserApp extends User implements Authenticable {
private String userName;
private String hashPassword;
public UserApp(String userName, String hashPassword) {
... | true |
8aadd7cfe165e9aa3cf758a6435a075c5ad4ed4a | Java | mdostal/competitive-programming | /src/main/java/competitive/programming/genetic/GeneticAlgorithm.java | UTF-8 | 7,680 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | package competitive.programming.genetic;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author Manwe
*
* C... | true |
b089c8ab68ab974ea5fd187ce1fd84d6f2631afa | Java | bmborges/ctpp | /src_java/service/ctr/Ctr_ContratoService.java | UTF-8 | 2,069 | 2.109375 | 2 | [] | no_license | package service.ctr;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import net.sf.jasperreports.engine.JasperRunManager;
import org.springframework.web.util.WebUtils;
import service.A... | true |
e0632d55eee92d27d2b1ba0af5440fa8c22f789a | Java | sherrymei/GamesAndroid | /app/src/main/java/com/example/sherry/games/HangMan.java | UTF-8 | 3,407 | 2.796875 | 3 | [] | no_license | package com.example.sherry.games;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.util.Random;
public class HangMan extends AppCompatActivity {
TextView lettersTextView, guessesTextView... | true |
040e3c48d7c882eba9f24b690f856bf0727a4909 | Java | Shumski-Sergey/M-JC1-25-19 | /src/iromankova/secondControl/Task_2.java | UTF-8 | 1,220 | 3.484375 | 3 | [] | no_license | package iromankova.secondControl;
//2. Найти в массиве число, которое повторяется наибольшее количество раз.
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
public class Task_2 {
public static void main(String[] args) {
int [] numbers = {2,2,1,3,9,4,5,2,2};
Arrays.sort (n... | true |
7aa47ccab1936b46ce1a822eb1090a642019d0eb | Java | ValenbergHar/G-JD1-2019-10-01_ValenbergHar | /src/myjava/golovach/Exceptions/lab2/test/XTransactionManager.java | UTF-8 | 807 | 2.609375 | 3 | [] | no_license | package com.Novosib.GolovachCources.JavaCore2012.Exceptions.lab2.test;
import com.Novosib.GolovachCources.JavaCore2012.Exceptions.lab2.Account;
import com.Novosib.GolovachCources.JavaCore2012.Exceptions.lab2.TransactionManager;
import com.Novosib.GolovachCources.JavaCore2012.Exceptions.lab2.TryAgainEx;
import com.Novo... | true |
e6f146703a18d62a0ea5f5534a8341c1e3e7b72d | Java | BaeHJin/sgbootcamp | /src/main/java/com/example/IndexController.java | UTF-8 | 353 | 1.6875 | 2 | [] | no_license | package com.example;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class IndexController {
@GetMapping("/index")
public String index(){
return "redirect:/";
}
//
// @GetMapping("/")
// public String home(){
// return "redire... | true |
6f985ff8ea3ab78b3d01e76fd4a0b08737b94add | Java | piyushaggarwal-mob-incedo/ixigo-piyush | /ixigo-code/app/src/main/java/com/example/piyushaggarwal/tripmonkey/configuration/UriBuilder.java | UTF-8 | 4,756 | 2.0625 | 2 | [] | no_license | package com.example.piyushaggarwal.tripmonkey.configuration;
import android.net.Uri;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
public class UriBuilder {
static UriBuilder uriBuilder;
public static UriBuilder getInstance() {
return uriBuilder == null ? uriBuilder = new... | true |
14563aa887918766d97282392a4915dd4db3f1cb | Java | OldDragon2A/Timer | /src/me/olddragon2a/Launcher.java | UTF-8 | 5,087 | 2.375 | 2 | [] | no_license | /**
*
*/
package me.olddragon2a;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.HeadlessException;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.Wind... | true |
a09ded7f4877bcf7dd9e7fc3a00c7247b31d6bc7 | Java | HoussemNasri/Pathfinding | /src/main/java/org/example/grid/cell/AstarCell.java | UTF-8 | 1,665 | 2.875 | 3 | [] | no_license | package org.example.grid.cell;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import org.example.algorithms.astar.AstarCost;
import org.example.grid.Point;
import org.jetbrains.annotations.NotNull;
public class AstarCell extends BaseCell {
private final ObjectProp... | true |
9049a7a300375f4238610156b3e806bf7d2dcf14 | Java | vinaysshenoy/gwtgl | /GwtGL-examples/src/main/java/com/googlecode/gwtgl/example/client/util/mesh/CubeFactory.java | UTF-8 | 6,259 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | package com.googlecode.gwtgl.example.client.util.mesh;
import static com.googlecode.gwtgl.example.client.util.ConversionUtils.floatListToFloatArray;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.googlecode.gwtgl.example.client.util.math.Vector2f;
import com.googlecod... | true |
1fad84b46f71135cd9a1cd468f2553c0a8bef44f | Java | jiashuaishuai/XZCalendarView | /app/src/main/java/com/example/shuaijia/xzcalendarview/adapter/MyViewPagerAdapter.java | UTF-8 | 2,028 | 2.546875 | 3 | [] | no_license | package com.example.shuaijia.xzcalendarview.adapter;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
/**
* ViewPager适配器
*/
public class MyViewPagerAdapter extends PagerAdapter {
private List<View> mListViews;
public My... | true |
96c041f7eb14eddbc1ab9e5677585f5204799988 | Java | djknit/DollarsBank | /src/com/cognixia/jump/form/OpenAccountForm.java | UTF-8 | 1,057 | 2.828125 | 3 | [
"MIT"
] | permissive | package com.cognixia.jump.form;
import com.cognixia.jump.DollarsBankDriver;
import com.cognixia.jump.controller.AccountController;
import com.cognixia.jump.menu.AccountMenu;
import com.cognixia.jump.model.Account;
import com.cognixia.jump.model.Patron;
import com.cognixia.jump.utility.Colors;
import com.cognixia.jump.... | true |
1cf344ee35b7d1b26cb066985ec18056a0c2b924 | Java | asd8360/leetcode | /Atest.java | UTF-8 | 223 | 2.359375 | 2 | [] | no_license | package leetcode;
public class Atest {
public static void main(String[] args) {
char a = 'z'; //'A' = 65, 'Z' = 90, 'a' = 97, 'z' = 122
int b = a;
System.out.println(b);
// System.out.println(c);
}
}
| true |
651ebff8e280269fa5b17c42bfff4e1e5c5f8629 | Java | iloncari/vatrogasne-intervencije1 | /vatrogasne-intervencije1/src/main/java/hr/tvz/vi/service/OrganizationService.java | UTF-8 | 7,340 | 2.046875 | 2 | [
"Unlicense"
] | permissive | /*
* OrganizationService OrganizationService.java.
*
*/
package hr.tvz.vi.service;
import hr.tvz.vi.event.ChangeBroadcaster;
import hr.tvz.vi.event.PersonOrganizationChangedEvent;
import hr.tvz.vi.orm.Organization;
import hr.tvz.vi.orm.OrganizationRepository;
import hr.tvz.vi.orm.Person;
import hr.tvz.vi... | true |
4702601328f5817368a66a7d456a78d4433cc46c | Java | lucasalbertonisantos/simulate-systems-of-my-master-degree | /citizen-data-integrator/citizen-data-integrator/src/test/java/br/com/lucasalbertoni/master/degree/citizen/citizendataintegrator/service/BuscaCidadaoServiceTest.java | UTF-8 | 3,892 | 2.3125 | 2 | [] | no_license | package br.com.lucasalbertoni.master.degree.citizen.citizendataintegrator.service;
import java.util.HashSet;
import java.util.Optional;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.sprin... | true |
0fa4ed5cd85e814439848be9bd350746be126cea | Java | woshiguaiguai123/Test | /My VideoPlayerDemo/src/main/java/com/googl/xcdq/mytest2/MainActivity.java | UTF-8 | 4,281 | 2 | 2 | [] | no_license | package com.googl.xcdq.mytest2;
import android.graphics.SurfaceTexture;
import android.media.MediaPlayer;
import android.media.session.MediaController;
import android.support.v4.media.session.MediaControllerCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Surface;
... | true |
322f43a7b2a140ff8fea52955edd53925b486fba | Java | surajgupta-git/Applied-Algos-course-assignemnts | /BinarySearch.java | UTF-8 | 608 | 3.59375 | 4 | [] | no_license | public class BinarySearch {
static int search(int A[], int key) {
int begin = 0;
int end = A.length-1;
while(begin<=end)
{
int mid =begin+ (end - begin) / 2;
if (key == A[mid])
return mid;
if (key < A[mid])
... | true |
1f5b804840b7df809b9bc24f33a249c37e852c27 | Java | Crasader/Projects | /MajiangServer/src/main/java/com/dreamgear/majiang/db/row/GMUserDataMapper.java | UTF-8 | 552 | 2.0625 | 2 | [] | no_license | package com.dreamgear.majiang.db.row;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.dreamgear.gm.GMUserData;
public class GMUserDataMapper implements RowMapper<GMUserData> {
public GMUserData mapRow(ResultSet rs, int rowNum) throws SQLException ... | true |
d40a06a8ba03f44bb012d3acfc739e166a5e8d93 | Java | scq355/spring-boot | /boot-crawler/src/test/java/com/canagler/p2p/crawler/discuss/GetTitleInfoTest.java | UTF-8 | 1,619 | 1.945313 | 2 | [] | no_license | package com.canagler.p2p.crawler.discuss;
import com.alibaba.fastjson.JSON;
import com.canagler.p2p.crawler.common.Constants;
import com.canagler.p2p.crawler.util.CrawlerUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | true |
a62b9eb74911349670ae03e019dfa867600bde85 | Java | vladwyane/RingboostUI | /src/test/java/adminPanel/sprint_3_PricingTollFree/MultipleAreas.java | UTF-8 | 6,684 | 2.25 | 2 | [] | no_license | package adminPanel.sprint_3_PricingTollFree;
import data.PricingTollFreeSettings;
import org.json.JSONException;
import org.testng.annotations.*;
import pages.admin.Admin;
import pages.admin.Login;
import pages.admin.PricingTollFreePage;
import pages.front.*;
import testBase.TestBase;
import java.io.IOException;
/**... | true |
31cd898067a1e05a5d62695eef6a3729aabfbd48 | Java | bhavesh3005sharma/Patient-App | /app/src/main/java/com/scout/patient/ui/AppointmentBooking/Model.java | UTF-8 | 3,639 | 2.265625 | 2 | [] | no_license | package com.scout.patient.ui.AppointmentBooking;
import com.scout.patient.Models.ModelBookAppointment;
import com.scout.patient.Models.ModelDateTime;
import com.scout.patient.Models.ModelDoctorInfo;
import com.scout.patient.Models.ResponseMessage;
import com.scout.patient.Repository.Remote.RetrofitNetworkApi;
import c... | true |
c87fbc71d29ad2c75739e29f9541d41392d104a4 | Java | Pedro-Vazquez/MastertechEx4-aplicacao | /src/main/java/br/com/itau/investimento/repositories/AplicacaoRepository.java | UTF-8 | 244 | 1.5 | 2 | [] | no_license | package br.com.itau.investimento.repositories;
import org.springframework.data.repository.CrudRepository;
import br.com.itau.investimento.models.Aplicacao;
public interface AplicacaoRepository extends CrudRepository<Aplicacao, Integer> {
}
| true |
70b1080fea0a644a79ed0e65a87c7529209dae5b | Java | ramparani/TestLeaf-assignment | /CreateUpdate.java | UTF-8 | 4,292 | 2.171875 | 2 | [] | no_license | package servicenow.assessment;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
... | true |
a38b8f03ad93c78989c3461664e9fb5b5420d42e | Java | 1239708082/whcg | /whcg2/src/main/java/com/ltsk/whcg/service/BridgeService.java | UTF-8 | 229 | 1.78125 | 2 | [] | no_license | package com.ltsk.whcg.service;
import com.ltsk.whcg.entity.Bridge;
import com.ltsk.whcg.entity.BridgeVideo;
import java.util.List;
public interface BridgeService {
List<Bridge> getAll( );
List<BridgeVideo> getVideo();
}
| true |
1acf5ed1c0e10c8bfa458b002b05716c9193c3df | Java | szshfengying/puma | /alarm/src/main/java/com/dianping/puma/alarm/ha/model/AlarmServerLeader.java | UTF-8 | 297 | 1.75 | 2 | [] | no_license | package com.dianping.puma.alarm.ha.model;
/**
* Created by xiaotian.li on 16/4/5.
* Email: lixiaotian07@gmail.com
*/
public class AlarmServerLeader {
private String host;
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
}
| true |
487a4ce144a111e59fa8287815210a7bbd5b701e | Java | SergGolII/home-work-task | /src/main/java/com/hillel/lecture_3/LinearEquationChecker.java | UTF-8 | 680 | 3.296875 | 3 | [] | no_license | package com.hillel.lecture_3;
import io.qameta.allure.Step;
/**
* Created by alpa on 10/22/19
*/
public class LinearEquationChecker {
@Step
public double linearEquation(int a, int b) {
// TODO implements result
double result = 0.0;
if (a == 0) {
System.out.println("Если ... | true |
464742567b440b1beeeb4818149b0b7ed2793fe9 | Java | cjquery/mq-test | /src/main/java/com/kjtpay/aop/decoratorPattern/TestDecorator.java | UTF-8 | 644 | 2.890625 | 3 | [] | no_license | package com.kjtpay.aop.decoratorPattern;
/**
* @Package: com.kjtpay.aop.decoratorPattern
* @ClassName: TestDecorator
* @author: 曹佳琪
* @Date: Created in 2020/7/24 17:03
* @Description: 测试类
*/
public class TestDecorator {
public static void main(String[] args) {
Component component = new Window(); //定义具体构件
Co... | true |
b89b178770205c1c3ca22497e4bd1b76c5a3791d | Java | rbyyy/mycodesvn | /ICCardOne/src/com/gos/iccardone/AccountSettingActivity.java | UTF-8 | 4,710 | 2.09375 | 2 | [] | no_license | package com.gos.iccardone;
import java.io.IOException;
import java.io.InputStream;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.gos.iccardone.exception.BaseException;... | true |
374b75ae59cb8a6f665dff2b9dff01ed031b772d | Java | Device-Controller/DenonDN500AV | /src/main/java/vislab/no/ntnu/denon/commands/DN500AVCommand.java | UTF-8 | 1,647 | 2.5 | 2 | [] | no_license | package vislab.no.ntnu.denon.commands;
import java.util.List;
import vislab.no.ntnu.providers.Command;
public abstract class DN500AVCommand extends Command {
private static final String GET_CURRENT = "?";
private static final String PREFIX = "";
private static final String SUFFIX = "" + (char)0x0D;
... | true |
2b895ced877b4e2111487b05903f6a1db13dd22b | Java | CedrickFlocon/EnumResourceHelper | /library/src/main/java/org/neige/enumresource/EnumResourceColorHelper.java | UTF-8 | 1,686 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | package org.neige.enumresource;
import android.content.Context;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
/**
* Helper to localize enum
* The name of resource for the label must match the name of the enumeration wit... | true |
5da3269a16c38494de7edc16f64a860d20333aac | Java | RocqJones/JAVA-8 | /DataStructuresAndAlgorithm/5DSARvArrayDateFormattingPrintf.java | UTF-8 | 1,006 | 3.4375 | 3 | [] | no_license |
package pkg1.pkg4.dsarvarraydateformattingprintf;
import java.util.Date;
public class DSARvArrayDateFormattingPrintf {
public static void main(String[] args) {
//instantiate date object
Date date = new Date();
// display date and time
String str = String.format("Current/date: %tc... | true |
5465ed7cbb4899f0757f5de80d15967ddef9afcb | Java | cambo602/ICS4U1 | /Lessons/src/Lessons_2/E_Booleans.java | UTF-8 | 635 | 4.0625 | 4 | [] | no_license | package Lessons_2;
/* <----- Click this to Expand for Instructions
*
* Exercise 2.5 - BOOLEANS
*
* Booleans are variables that only take on two values - true or false. This functions as a great condition checker.
*
* Create a variable called intsCanHoldDecimals. Set it to true if the int type can hold a... | true |
77817b83bc655696fdcb9d399e3b5a80058a685b | Java | renyuanceshi/KingKingRE | /app/src/main/java/com/google/android/gms/ads/identifier/zza.java | UTF-8 | 5,226 | 2.15625 | 2 | [
"Unlicense"
] | permissive | package com.google.android.gms.ads.identifier;
final class zza extends Thread {
private /* synthetic */ String zzsF;
zza(AdvertisingIdClient advertisingIdClient, String str) {
this.zzsF = str;
}
/* JADX WARNING: No exception handlers in catch block: Catch:{ } */
/* Code decompiled incorr... | true |
d0150cfeba6f5ef9957b4a6603bf47097845b9aa | Java | nisha112/jconfig | /src/main/java/com/google/code/jconfig/factory/ConfigurationPluginFactory.java | UTF-8 | 3,709 | 2.421875 | 2 | [] | no_license | /*
* @(#)ConfigurationPluginFactory.java Data: 27/set/2011
*
*
* Copyright 2011 Gabriele Fedeli
*
* 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://ww... | true |
98e08d35abe9ee9f55f3a5b6f9ba218334a3311a | Java | wilgun/smell | /src/fowler/dispensables/speculative_generality/before/USD.java | UTF-8 | 158 | 1.796875 | 2 | [
"MIT"
] | permissive | package fowler.dispensables.speculative_generality.before;
public class USD extends Traditional {
@Override
public String getCode() {
return "IDR";
}
}
| true |
bf120cfe89d30ba7b79499fd0baeafa91a65ba8a | Java | pulkitsxn059/Weather-App-Android- | /Weatherapp1/app/src/main/java/com/mypackage/DataBaseManager.java | UTF-8 | 2,696 | 2.265625 | 2 | [] | no_license | package com.mypackage;
import java.io.ByteArrayOutputStream;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.graphics.Bitmap;
import android.gr... | true |
52185b9a476a878d7defeee00cda9953f028d893 | Java | vmware/mangle | /mangle-services/src/test/java/com/vmware/mangle/unittest/services/service/PrivilegeServiceTest.java | UTF-8 | 3,755 | 2.09375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved.
*
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product except in compliance with the License.
*
* This product may include a number of subcomponents with separate copyright notic... | true |
ea7183b9eecde0e9dea86dd3a796bb7d2d622f88 | Java | MarvelFisher/midas | /common/src/main/java/com/cyanspring/common/event/pool/ExchangeAccountOperationRequestEvent.java | UTF-8 | 965 | 1.90625 | 2 | [] | no_license | package com.cyanspring.common.event.pool;
import com.cyanspring.common.event.BaseRequestEvent;
import com.cyanspring.common.event.OperationType;
import com.cyanspring.common.pool.ExchangeAccount;
/**
* @author GuoWei
* @since 11/09/2015
*/
public class ExchangeAccountOperationRequestEvent extends BaseRequestEvent ... | true |
b54f2f43a265dafbb7e8b20af804bdc7eb86092f | Java | PierreVanvolsem/OneHouseStand | /OneHouseStandSE4-master/src/main/java/com/example/demo/domain/Review.java | UTF-8 | 2,234 | 2.4375 | 2 | [] | no_license | package com.example.demo.domain;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.hibernate.validator.constraints.Range;
import javax.persiste... | true |
2d0210b40e0a3b88ede0996d77e909d462594d75 | Java | mihaelamunteanu/IQSpace | /src/com/codeprehend/iqspace/actions/CtrlAltDelAction.java | UTF-8 | 736 | 2.40625 | 2 | [] | no_license | package com.codeprehend.iqspace.actions;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JOptionPane;
import com.codeprehend.iqspace.IQSpaceGUI;
import com.codeprehend.iqspace.util.Constants;
public class CtrlAltDelAction extends AbstractAction {
/**
* Default serial vers... | true |
af8ec1753f2eac03e1a49d9245b479879c847045 | Java | bagus-stimata/DesSFA_OLD | /app/src/main/java/com/erp/distribution/sfa/dao_repository/FtArPaymenthRepository.java | UTF-8 | 1,990 | 2.125 | 2 | [] | no_license | package com.erp.distribution.sfa.dao_repository;
import android.app.Application;
import android.os.AsyncTask;
import androidx.lifecycle.LiveData;
import com.erp.distribution.sfa.dao.FtArPaymenthDao;
import com.erp.distribution.sfa.database.AppDatabase;
import com.erp.distribution.sfa.model.FtArPaymenth;
import com.e... | true |
9338910411c3c7e9bb47bf548e946dc227c0be62 | Java | stumi01/goBuddies | /rxlocation/src/main/java/com/stumi/rxlocation/LastKnownLocationObservable.java | UTF-8 | 1,783 | 2.078125 | 2 | [] | no_license | package com.stumi.rxlocation;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Location;
import android.support.annotation.RequiresPermission;
import android.support.v4.app.ActivityCompat;
import com.google.android.gms.common.api.GoogleApiClien... | true |
75c3fa0ae68097584a6853fac54cc70937b52e2a | Java | btkatoutmj/spring-functionaltest | /spring-functionaltest-domain/src/main/java/jp/co/ntt/fw/spring/functionaltest/domain/cmmn/validation/ISBN13Validator.java | UTF-8 | 1,162 | 2.703125 | 3 | [] | no_license | /*
* Copyright(c) 2014-2017 NTT Corporation.
*/
package jp.co.ntt.fw.spring.functionaltest.domain.cmmn.validation;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class ISBN13Validator implements ConstraintValidator<ISBN13, String> {
@Override
public ... | true |
b7ca5e0114c79068e396c1fecfb84ce223e05099 | Java | MrGatzi/BMD_RegKassenTestTool | /src/main/java/com/BMD_RegKassenTestTool/Util/DepLogic/Results/AdvResult.java | UTF-8 | 2,326 | 2.640625 | 3 | [] | no_license | package com.bmd_regkassentesttool.Util.DepLogic.Results;
import com.bmd_regkassentesttool.Util.DepLogic.TestData;
import com.bmd_regkassentesttool.Util.Result;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class AdvResult implements Result {
private File outputLocation;
priva... | true |
453fd18382cc7fc3b796437f94abb5d5540119ca | Java | Aslam-web/HIT-2021-Lab1 | /LabExcersizesToSubmit/src/com/lab/revision/week3/ArrayHelper.java | UTF-8 | 771 | 3.9375 | 4 | [] | no_license | package com.lab.revision.week3;
public class ArrayHelper {
static void swap(int a, int b) {
// System.out.printf("Before swapping %d and %d\n", a, b);
int temp = a;
a = b;
b = temp;
// System.out.printf("After swapping %d and %d\n", a, b);
}
static void swap(int[] arr, int a, int b) {
// System.out.prin... | true |
9d2b1b462fa9e71382d282cfe3b0c5c3e8d96dd6 | Java | DbpGaming/gregtech-4-1.7.10 | /main/java/gregtechmod/common/tileentities/GT_MetaTileEntity_Barrel.java | UTF-8 | 10,254 | 2.078125 | 2 | [] | no_license | package gregtechmod.common.tileentities;
import gregtechmod.GT_Mod;
import gregtechmod.api.interfaces.IGregTechTileEntity;
import gregtechmod.api.metatileentity.MetaTileEntity;
import gregtechmod.api.util.GT_OreDictUnificator;
import gregtechmod.api.util.GT_Utility;
import net.minecraft.entity.item.EntityItem;
import ... | true |
62e4dd319fa8bb172f672dc2e64d23a93eae12af | Java | TarunVerma2001/Compitive-Programming-Java | /introduction/src/novemberLong/IronMagnetsAndWalls.java | UTF-8 | 1,423 | 3.0625 | 3 | [] | no_license | package novemberLong;
import java.util.*;
public class IronMagnetsAndWalls {
public static void main(String[] args) {
Scanner sc = new Scanner (System.in);
int t = sc.nextInt();
for(int o =0;o<t;o++) {
int n , k;
n =sc.nextInt();
k = sc.nextInt();
String s = new String();
s = sc.n... | true |
fee9e6e8ccb561299d11cb5ff984eaeff16747d5 | Java | patrickneubauer/XMLIntellEdit | /xmlintelledit/xmltext/src/main/java/at/ac/tuwien/big/xmlintelledit/xmltext/ecoretransform/impl/IdentityValueTransformator.java | UTF-8 | 660 | 2.09375 | 2 | [
"MIT"
] | permissive | package at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.impl;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.ValueTransformator;
public class IdentityValueTransformator<T> implements ValueTransformator<T, T> {
private static final IdentityValueTransformator<Object> DEFAULT = new IdentityVa... | true |
e1bbaad47f58eb37a5073762d1704b85a8883cbd | Java | oneilljw/ONC-Client | /src/ourneighborschild/LogDialog.java | UTF-8 | 4,650 | 2.578125 | 3 | [] | no_license | package ourneighborschild;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.J... | true |
4fd5518a73f7fb7a5cb442d0b006fed6f5fc7aa5 | Java | panxiufeng/panxftest | /springboot-dubbo/dubbo-api/src/main/java/com/pxf/project/dubboapi/service/DubboService.java | UTF-8 | 119 | 1.742188 | 2 | [] | no_license | package com.pxf.project.dubboapi.service;
public interface DubboService {
public String sayHello(String name);
}
| true |
b7052c5736c329d2d0f6cddf7134e759eb424615 | Java | 68652667/yapx3 | /yapx3/src/main/java/com/kh/yapx3/board/free/model/service/FreeServiceImpl.java | UTF-8 | 2,799 | 1.84375 | 2 | [] | no_license | package com.kh.yapx3.board.free.model.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kh.yapx3.board.free.model.dao.FreeDAO;
import com.kh.yapx3.board.free.model.vo.Free;
import com.kh.yapx3.board.free.m... | true |
819776754088b1597e90efb8beb005a4d561a441 | Java | AuburnFord/kattis | /Java/BearZoo.java | UTF-8 | 959 | 3.65625 | 4 | [] | no_license | import java.util.*;
public class BearZoo{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int currentCase = 1;
while (in.hasNextInt()) {
TreeMap<String, Integer> zoo = new TreeMap<String, Integer>();
int numAnimals = in.nextInt();
if (numAni... | true |
f88d88c8cb150c78c19a6a737a98b0589b295b7b | Java | yamnyk/it.dan | /SchoolProjects/src/it/dan/SecondContest/Race.java | UTF-8 | 1,186 | 3.140625 | 3 | [] | no_license | package it.dan.SecondContest;
import java.util.Scanner;
public class Race {
public static void main(String[] args) {
Scanner in = new Scanner(inputData());
String input = in.next();
System.out.print(find(input));
}
public static String find(String input) {
char[] directions = {'a', 'd', 's', 'w'};
int[... | true |
d4fab8a4f333774c207f2b9558aec07786d0626a | Java | ilkayaktas/AWSAuthAndroidExperiment | /app/src/main/java/com/ilkayaktas/awsauthexperiment/view/LoginActivity.java | UTF-8 | 6,336 | 2.390625 | 2 | [] | no_license | package com.ilkayaktas.awsauthexperiment.view;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.amazonaws.mobile.client.AWSMobileClient;
import com.amazonaw... | true |
40b3c82facc29ecec959afad9e7575c151434daa | Java | Grandmagic13/RPGManager | /src/rpg_database/character_sheet/Focus.java | UTF-8 | 1,259 | 3.09375 | 3 | [] | no_license | package rpg_database.character_sheet;
import rpg_database.character_sheet.exceptions.InvalidFocusesSetException;
public class Focus {
private static final int FOCUS_VALUE_DEFAULT = 2;
private static final int FOCUS_VALUE_IMPROVED = 3;
private int value;
private Focuses focus;
public Focus(Focuses fo... | true |
d165c65d962fae5a2703f1e92337508b223b1ff6 | Java | yuanyixiong/SpringBoot | /eshop/src/main/java/online/shixun/demo/eshop/module/user/mapper/EshopUserSqlProvider.java | UTF-8 | 14,851 | 2.015625 | 2 | [] | no_license | package online.shixun.demo.eshop.module.user.mapper;
import java.util.List;
import java.util.Map;
import online.shixun.demo.eshop.dto.EshopUser;
import online.shixun.demo.eshop.dto.EshopUserCriteria.Criteria;
import online.shixun.demo.eshop.dto.EshopUserCriteria.Criterion;
import online.shixun.demo.eshop.dto.EshopUser... | true |
2adeeaa20b007948709295e0167a730fae206bb5 | Java | TracyRobb/DesignPatterns | /src/main/java/com/tracy/designpatterns/behavioral/mediator/Mediator.java | UTF-8 | 1,116 | 2.875 | 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.tracy.designpatterns.behavioral.mediator;
/**
*
* @author Tracy
*/
public class Mediator {
Buye... | true |
5ca9dd6725adba61d55c328ea3e863cf8c6faf1c | Java | ayungavis/cashier-backend-app | /src/main/java/com/ayungavis/cashierspring/controller/OrderController.java | UTF-8 | 2,759 | 2.265625 | 2 | [] | no_license | package com.ayungavis.cashierspring.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMap... | true |
4f152a89ebf264f134652cc4dc342d636e452f62 | Java | Ikastru/trafficcop | /src/main/java/com/example/trafficcop/Controller/MainController.java | UTF-8 | 1,920 | 2.5 | 2 | [] | no_license | package com.example.trafficcop.Controller;
import com.example.trafficcop.util.NextUtil;
import com.example.trafficcop.util.RandomUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;... | true |
60a8b2bca7be693e3a4dd43e504f7aef91af177b | Java | TheBlueFrog/PhotoGallery2 | /src/main/java/com/mike/website3/util/MultipleStripeCustomerException.java | UTF-8 | 179 | 1.976563 | 2 | [] | no_license | package com.mike.website3.util;
public class MultipleStripeCustomerException extends Exception {
public MultipleStripeCustomerException(String s) {
super(s);
}
}
| true |
0ea05f2afeb26d86dab01700f8b084e6346debc3 | Java | codjo-sandbox/codjo-release-test | /src/test/java/net/codjo/test/release/task/tokio/AssertTest.java | ISO-8859-1 | 3,970 | 2.125 | 2 | [] | no_license | /*
* Team : AGF AM / OSI / SI / BO
*
* Copyright (c) 2001 AGF Asset Management.
*/
package net.codjo.test.release.task.tokio;
import net.codjo.tokio.JDBCScenario;
import net.codjo.tokio.model.Scenario;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import junit.framework.Te... | true |
c58998b817434f0819bfdb820257f89b5a86b712 | Java | AgentManny/valorant | /src/main/java/gg/manny/valorant/weapon/data/WeaponMode.java | UTF-8 | 109 | 1.703125 | 2 | [] | no_license | package gg.manny.valorant.weapon.data;
public enum WeaponMode {
SEMI_AUTOMATIC,
FULL_AUTOMATIC;
}
| true |
e5bf310c21929b6db074663ed6d06d4152ec869b | Java | elvis1423/VotingSystem | /Project/src/repository/UserRepositoryImpl.java | UTF-8 | 5,044 | 2.296875 | 2 | [] | no_license | package repository;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import view.AtomicGradeVoteView;
import bean.AtomicGradeVote;
import bean.Candidate;
import bean.GradeVoteFirstIndex;
import bean.GradeVoteSecondIndex;
import bean.User;
import bean.VoteCo... | true |
2e2269698cecb440d001af4efe34d2796a240927 | Java | tamnoyan/App2uProject | /app/src/main/java/com/tamn/app2uproject/WelcomeActivity.java | UTF-8 | 1,382 | 2.1875 | 2 | [] | no_license | package com.tamn.app2uproject;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import com.wang.avi.AVLoadingIndicatorView;
public class WelcomeActivity extends AppCompatActivity {
AVLoadingIndicatorView avi;
private static ... | true |
3e72bc2d5541de40cc58b9e2ee8182c70af2a1ed | Java | 1919satya/mode1-2 | /StudentSpringMVCHb/FunctionDemo/src/com/hcl/function/InstanceInterface.java | UTF-8 | 88 | 1.734375 | 2 | [] | no_license | package com.hcl.function;
public interface InstanceInterface {
public void myInt();
}
| true |
3ed4d97ebc1f600037bc850c64fc4ea6cecf051a | Java | Civcraft/EnvironmentalEffects | /src/main/java/com/github/maxopoly/environmentaleffects/repeatingEffects/TitleDisplayer.java | UTF-8 | 2,362 | 2.546875 | 3 | [
"MIT"
] | permissive | package com.github.maxopoly.environmentaleffects.repeatingEffects;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.UUID;
import org.bukkit.craftbukkit.v1_10_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import net.minecraft.server.v1_10_R1.IChatBaseComponent;
import net.minecraft.se... | true |
d9bf034e6fa610896a4798b577c73f17c4caf37a | Java | andreiiambrozie/SemCTS | /Decorator/src/ro/ase/cts/main/Main.java | UTF-8 | 1,172 | 2.921875 | 3 | [] | no_license | package ro.ase.cts.main;
import ro.ase.cts.clase.DecoratorAbstract;
import ro.ase.cts.clase.DecoratorCuLMA;
import ro.ase.cts.clase.DecoratorCuPasteFericit;
import ro.ase.cts.clase.NotaDePlata;
public class Main {
public static void main(String[] args) {
NotaDePlata notaInitial=new NotaDePlata(12... | true |
ede78d5dc8f9917b1a7057a8271bbc4e9b7177d9 | Java | erudalija1/rpr-t1-z2 | /src/ba/unsa/etf/rpr/Main.java | UTF-8 | 554 | 3.125 | 3 | [] | no_license | package ba.unsa.etf.rpr;
import java.util.Scanner;
public class Main {
public static int sumaCifara(int br) {
int suma=0;
while (br != 0) {
suma += br % 10;
br /= 10;
}
return suma;
}
public static void main(String[] args) {
Scanner ulaz = n... | true |
e97eefcd8db85b83ec2297a129acc1db4dbeb8fd | Java | hyb1234hi/reverse-wechat | /weixin6519android1140/src/sourcecode/com/tencent/mm/plugin/card/widget/c.java | UTF-8 | 2,027 | 1.5625 | 2 | [] | no_license | package com.tencent.mm.plugin.card.widget;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import com.tencent.gmtrace.GMTrace;
import com.tencent.mm.R.h;
import com.tencent.mm.plugin.card.base.b;
import com.tencent.mm.protocal.c.ju;
import com.te... | true |
0624608c539bd8d15ff452f387d494f4f7b14e4a | Java | abhi0287/Keyword | /KEYWORD/Final_key.java | UTF-8 | 223 | 2.359375 | 2 | [] | no_license | final class XYZ{
}
class Final_key extends XYZ{
void demo(){
System.out.println("My Method");
}
public static void main(String args[]){
XYZ obj= new XYZ();
obj.demo();
}
}
| true |
f8f8483abf1be1607710bc65dc2ed39b2b6af95b | Java | whipcode/myapps | /HomeApps/src/my/webapp/homeapps/dao/HouseItemDao.java | UTF-8 | 526 | 2.046875 | 2 | [] | no_license | package my.webapp.homeapps.dao;
import java.util.List;
import org.hibernate.Session;
@SuppressWarnings("unchecked")
public class HouseItemDao {
public List queryCatalogs() {
Session session = DbUtil.getSessionFactory().getCurrentSession();
List result;
session.beginTransaction();
... | true |
79fcc167971d3ab3900634c047e6d672660b7816 | Java | gianfrancostabile/car-rest | /src/main/java/com/gfstabile/java/carrest/CarRestApplication.java | UTF-8 | 487 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package com.gfstabile.java.carrest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;
@SpringBootApplication
@PropertySource({
"classpath:application.properties", "classpath:api-url.... | true |
6cc746a3c7288446ba5144d025316b611625160e | Java | agdturner/agdt-java-project-MoSeS | /src/main/java/uk/ac/leeds/sog/moses/populationmodel/fertility/Fertility.java | UTF-8 | 5,543 | 2.546875 | 3 | [] | no_license | package uk.ac.leeds.sog.moses.populationmodel.fertility;
import org.apache.log4j.Logger;
import uk.ac.leeds.sog.moses.datamodel.Person;
import uk.ac.leeds.sog.moses.populationmodel.ApplicationConstants;
import uk.ac.leeds.sog.moses.populationmodel.HouseholdImpl;
import uk.ac.leeds.sog.moses.populationmodel.Per... | true |
b21e208afda792cd6af4077268f6fa9128d38cd1 | Java | mohammad4883/Takhfif | /app/src/main/java/com/maraton/mohammadmehdi/takhfif/SignInActivity.java | UTF-8 | 1,685 | 2.09375 | 2 | [] | no_license | package com.maraton.mohammadmehdi.takhfif;
import android.content.Intent;
import android.graphics.Typeface;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public class SignI... | true |
552da0beff3871f94fd26921be4e76224421d487 | Java | tonycody/wms | /app/dal/src/main/java/com/zeh/wms/dal/ibatis/IbatisShipRecordDAO.java | UTF-8 | 2,681 | 2.21875 | 2 | [] | no_license | /**
* Jungle.com Inc.
* Copyright (c) 2004-2018 All Rights Reserved.
*/
package com.zeh.wms.dal.ibatis;
import com.zeh.wms.dal.daointerface.ShipRecordDAO;
import com.zeh.wms.dal.dataobject.ShipRecordDO;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.ibatis.support.SqlMapClientDa... | true |
8090f859cdfb30c574366e80157017e33b699e65 | Java | rhg/bedtime-desktop | /src/com/rhg135/bedtime/utils/DropIterator.java | UTF-8 | 447 | 2.953125 | 3 | [] | no_license | package com.rhg135.bedtime.utils;
import java.util.Iterator;
public class DropIterator<E> implements Iterator<E> {
private Iterator<E> it;
public DropIterator(Integer toDrop, Iterator<E> it) {
while (toDrop > 0) {
it.next();
toDrop--;
}
this.it = it;
}
public boolean hasNext() {
... | true |
93f7a5154c4f7d785d13584fc80eaa93b2b818ab | Java | ghiamalireza/project_j6i2b-c3e2563937b737d3e55e71aa89fbdcce9b533c38 | /src/main/storage/StateHandler.java | UTF-8 | 1,631 | 3.109375 | 3 | [] | no_license | package storage;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
public class StateHandler implements Loadable, Saveable {
//Effects: Loads ... | true |
67e7239bded5a01504ccebb30d847d29c85e3f40 | Java | vincentchen/kanban | /src/main/java/com/idealism/kanban/vo/HelpInfo.java | UTF-8 | 3,511 | 2.015625 | 2 | [] | no_license | package com.idealism.kanban.vo;
import java.util.Date;
import com.idealism.kanban.util.Page;
public class HelpInfo extends Page {
private int id;
private Date create_time;
private String help_content;
private String help_title;
private int help_user_id;
private String help_user_name;
private Date max_create_t... | true |
99e118b77422848348225e9a7b8aed2d919179eb | Java | tian8662103/IOtest | /src/com/tuihuishuruliu/PushbackTest.java | UTF-8 | 1,699 | 3.109375 | 3 | [] | no_license | package com.tuihuishuruliu;
import java.io.FileReader;
import java.io.IOException;
import java.io.PushbackReader;
public class PushbackTest {
public static void main(String[] args) throws IOException {
//创建一个PushbackReader
PushbackReader reader = new PushbackReader(new FileReader("D:\\SSMDemo\\IOT... | true |
0f328718aff2f417f2fb1811746547160fdfe4f5 | Java | team4909/2018-PowerUp | /src/main/java/org/team4909/powerup2018/autonomous/LeftSwitchFromLeft.java | UTF-8 | 2,065 | 2.640625 | 3 | [
"MIT"
] | permissive | package org.team4909.powerup2018.autonomous;
import edu.wpi.first.wpilibj.command.CommandGroup;
import edu.wpi.first.wpilibj.command.WaitCommand;
import org.team4909.bionicframework.hardware.motor.MotorSubsystem;
import org.team4909.bionicframework.subsystems.drive.BionicDrive;
import org.team4909.bionicframework.subs... | true |
c8dd34fe64c20d08611a0e79fff5d730232d7f03 | Java | Javie0925/NIO-Netty | /src/main/java/netty/codec/NettyServerHandler.java | UTF-8 | 647 | 2.453125 | 2 | [] | no_license | package netty.codec;
import java.nio.charset.Charset;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.util.CharsetUtil;
/**
* 服务器端的业务处理类
*/
public class NettyServerHand... | true |
a763ec83b0e2e3330c88faf0feb8e44ffe99a651 | Java | ronald-viramontes/Jets | /src/com/skilldistillery/jets/entities/AirField.java | UTF-8 | 3,580 | 2.96875 | 3 | [] | no_license | package com.skilldistillery.jets.entities;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import com.skilldistillery.jets.app.JetsApplication;
public class AirFiel... | true |
1ca47937be1812ca7c277c4d21c06d02116dbe6e | Java | PeterFelixNguyen/Histogram-Maker | /src/SortAlgorithms.java | UTF-8 | 693 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | // Copyright 2019 Peter "Felix" Nguyen
import java.util.ArrayList;
public class SortAlgorithms {
private SortAlgorithms() {
}
/**
* Inefficient sort for large lists
*/
public static void BubbleSort(ArrayList<Double> values) {
for (int i = 0; i < values.size(); i++) {
fo... | true |
ea5fd7d30e15322a18559e04abb306cddfdd1ce5 | Java | ucarm/CoreJavaProjects | /GroupProject/src/Preperation/MissedNumber.java | UTF-8 | 683 | 3.625 | 4 | [] | no_license | package Preperation;
import java.util.ArrayList;
public class MissedNumber {
public static void main(String[] args) {
int[] numbers= {1,2,3,4,16};
System.out.println("MISSED NUMBERS");
showMissedNumbers(numbers);
}
private static void showMissedNumbers(int[] numbers) {
int max= numbers[0];
int min= numb... | true |
f544a85c1cd16a186dff4197a2158f36b19a5269 | Java | mchuong/My-Comp-Sci-Girl | /workspace/CS_141_GroupProject/src/edu/csupomona/cs/cs141/prog_project/Unit.java | UTF-8 | 3,261 | 3.546875 | 4 | [] | no_license | /**
* CS 141: Introduction to Programming and Problem Solving
* Professor: Edwin Rodríguez
*
* Programming Project
*
* This program fulfills the guidelines stated in the project
* description. It creates a text-based game using
* object-oriented programming and demonstrates the three programming
* parad... | true |
3813fa85dd01ed7d3ba70c0c81db58defc57bdb9 | Java | zavke/deletetothefuture | /RTSPPlayer-master1/RTSPPlayer-master1/app/src/main/java/org/rtspplayer/sample/adapter/StreamsList.java | UTF-8 | 14,657 | 1.734375 | 2 | [] | no_license | /*
*
* Copyright (c) 2010-2014 EVE GROUP PTE. LTD.
*
*/
package org.rtspplayer.sample.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.PointF;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import... | true |
1cc7d482afa2bbdd7e210e316f3291cd1c5bb2fa | Java | lkasler/spring-camel-cluster-singleton | /src/main/java/hu/bridgesoft/camel/leader/ClusterBeanConfiguration.java | UTF-8 | 1,019 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package hu.bridgesoft.camel.leader;
import org.apache.camel.cluster.CamelClusterEventListener;
import org.apache.camel.cluster.CamelClusterService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ClusterBeanConfiguration {
... | true |
3ea9d553f8382fbd6ef481da47559fdd4d1a712d | Java | rainu/jsimpleshell | /core/src/main/java/de/raysha/lib/jsimpleshell/completer/CommandNameCandidatesChooser.java | UTF-8 | 1,735 | 2.546875 | 3 | [
"BSD-3-Clause"
] | permissive | package de.raysha.lib.jsimpleshell.completer;
import java.util.HashSet;
import java.util.Set;
import de.raysha.lib.jsimpleshell.Shell;
import de.raysha.lib.jsimpleshell.ShellCommand;
import de.raysha.lib.jsimpleshell.ShellCommandParamSpec;
import de.raysha.lib.jsimpleshell.annotation.Inject;
import de.raysha.lib.jsim... | true |