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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
abffdcfcb68247268e339e5535b35c32b318a847 | Java | 879032828/demoProject | /app/src/main/java/com/example/administrator/view_test/privateDir/privatedirActivity.java | UTF-8 | 939 | 2.125 | 2 | [] | no_license | package com.example.administrator.view_test.privateDir;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.util.Log;
import android.widget.Button;
import com.example.administrator.view_test.Base.BaseActivity;
import com.example.administrator.view_test.R;
import butterknife.BindView;
import bu... | true |
aabd78c0c33907946b6f99dff6742ed8175b1a2d | Java | wangshihao/Hello-Github | /weixin/src/com/mayday/weixin/MainActivity.java | GB18030 | 5,655 | 2.046875 | 2 | [] | no_license | package com.mayday.weixin;
import java.util.ArrayList;
import java.util.List;
import com.nineoldandroids.view.ViewHelper;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.Frag... | true |
7c4fd291090b2f96d30499947f211d373d4acefc | Java | r-fsantos/java-oop-introduction | /projeto-3-bytebank-encapsulado/src/TestaGetESet.java | UTF-8 | 615 | 3.34375 | 3 | [] | no_license | public class TestaGetESet {
public static void main(String[] args) {
// cria conta para teste de getter e setter - linkar Clinte e Conta
Conta conta = new Conta();
conta.setNumero(388580);
System.out.println(conta.getNumero());
// cria cliente
Cliente renato = new Cl... | true |
e565286fb4a1a02b23a766f1c892686fa957a0e3 | Java | lancenlee/CILContact_2.0 | /SortNameListView-master1/app/src/main/java/com/example/View/PeopleShow.java | UTF-8 | 2,128 | 2.359375 | 2 | [] | no_license | package com.example.View;
import com.example.Util.SortModel;
import com.example.sortlistview.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
public class PeopleShow extends Activity{
p... | true |
53cd586a36c505cdafda127a788fca3ff82043f6 | Java | LaurenGilchrist/bank-teller | /src/main/java/Bank.java | UTF-8 | 1,449 | 3.03125 | 3 | [] | no_license | import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public class Bank {
Map<String, BankAccount> accounts = new HashMap<>();
public void add(BankAccount account) {
accounts.put(account.getAccountNumber(), account);
}
public BankAccount findAccount(String accountNum) {
return accoun... | true |
2eb8c03b0d3cb213d2fd8396ad6481712b4629a8 | Java | Itsuka22/MovieRoomDB | /app/src/main/java/com/example/movies_roomdb/detailed/ReviewAdapter.java | UTF-8 | 1,621 | 2.46875 | 2 | [] | no_license | package com.example.movies_roomdb.detailed;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.han.PopularMovies_ContentProvider.R;
import com.example.movies_... | true |
338894b4435370ac14267b07400299281c187d0e | Java | Goslenator7/javaJukeBoxMk2 | /JukeBox.java | UTF-8 | 2,104 | 3.8125 | 4 | [] | no_license | import javax.swing.*;
import java.util.*;
public class JukeBox {
private ArrayList <Song> playlist = new ArrayList<>();
public void addSong(Song song) {
this.playlist.add(song);
}
public void play() {
String playingMessage = "Now playing: "+playlist.get(0).getSongTitle()+" by: "+play... | true |
d4101b2f9fc56e1aacd439f175427b6de3d3c853 | Java | CatalinDura/tema_sorin | /school/src/main/java/Homework1/Student.java | UTF-8 | 835 | 3.046875 | 3 | [] | no_license | package Homework1;
import java.util.List;
public class Student implements StudentInterface {
private String name;
private String age;
private String email;
public Student(String name, String age, String email) {
this.name = name;
this.age = age;
this.email = email;
}
... | true |
60350f736e8ae1eb1cc31e897d9c619136bc7bc3 | Java | Belenn88/weatherApp | /src/main/java/com/weather/demo/entities/Board.java | UTF-8 | 801 | 3.046875 | 3 | [] | no_license | package com.weather.demo.entities;
import java.util.ArrayList;
import java.util.List;
public class Board {
private String username;
private List<Weather> cities;
public Board(String username) {
super();
this.username = username;
this.cities = new ArrayList<Weather>();
}
public void registerWeather(W... | true |
59beda10cde4ddcf776a26351b4f1a2ea57d67cb | Java | applesupport/sentiment_analytics_for_online_reviews | /src/OnlineReviewAnalytics/MainProjectFile.java | UTF-8 | 1,886 | 2.390625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package OnlineReviewAnalytics;
/**
*
* @author amal
*/
//import edu.stanford.nlp.tagger.maxent.MaxentTagger;
import java.io.IOException;
public class MainProjectFile {
public static ... | true |
c3cd4ed1f3d5b2d79968af4d205894e4f300855d | Java | danbi11/waitix-android | /app/src/main/java/com/graduationproject/danbi/waitix/ServerNetworkManager.java | UTF-8 | 2,834 | 2.28125 | 2 | [] | no_license | package com.graduationproject.danbi.waitix;
import android.support.v4.util.Pair;
import java.net.CookieManager;
import java.net.CookiePolicy;
import java.util.List;
import okhttp3.Callback;
import okhttp3.FormBody;
import okhttp3.HttpUrl;
import okhttp3.JavaNetCookieJar;
import okhttp3.OkHttpClient;
import okhttp3.R... | true |
2326674017eb0184eac4184aa50cc9e85edd63c3 | Java | phexupyeosy/spring-security-jwt | /src/test/java/codetao/AppTest.java | UTF-8 | 1,376 | 2.25 | 2 | [] | no_license | package codetao;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework... | true |
fc3087b0cba643b939b19e9961053c0336bea31a | Java | bpascal/needle | /Needle-bui-server/src/main/java/com/codido/needle/bui/common/config/EvnConfig.java | UTF-8 | 396 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package com.codido.needle.bui.common.config;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
/**
* 环境参数
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Configuration
public class EvnConfig {... | true |
2d991c7d8ceaf67f3c094e6b335b4cbde2d662a5 | Java | EpicPlanet/MIPM | /src/main/java/net/epicpla/mipm/maven/MavenUtil.java | UTF-8 | 5,606 | 1.6875 | 2 | [
"MIT"
] | permissive | /*
* This file is part of MIPM, licensed under the MIT License (MIT).
*
* Copyright (c) Epic Planet Minecraft Server <https://epicpla.net>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Soft... | true |
62a12d9da1ddb40f671dadf5c2e07ab88fdd97aa | Java | WorldWindEarth/WorldWindJava | /src/gov/nasa/worldwind/layers/Earth/WikimapiaLayer.java | UTF-8 | 1,637 | 2.390625 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.layers.Earth;
import gov.nasa.worldwind.layers.mercator.*;
import java.net.*;
/**
* @author Sufaev
*/
public class Wi... | true |
2aedfe0b81a6fd599be98ae3bb15af713deb9cc3 | Java | UofM-CS3350-Grp1/Project | /src/persistence/DBInterface.java | UTF-8 | 47,207 | 2.5 | 2 | [] | no_license | package persistence;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.Locale;
import objects.Client;
import objects.Expense;
import objects.MonthReport;
import objects.Service;
import objects.Storable;
import ob... | true |
a681e5778dd642b162075f0ccf91ea33f23b514b | Java | nqvuong99qn/hham-backend-tps | /src/main/java/com/tpssoft/hham/entity/Image.java | UTF-8 | 957 | 2.140625 | 2 | [] | no_license | package com.tpssoft.hham.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.util.Set;
@Entity(name = "images")
@Data
public class Image {
... | true |
9510886f00fa306455d1480a50443de3ff1e97bf | Java | zunpiau/algorithm | /src/exercise/dsa/ActivitySelection.java | UTF-8 | 1,462 | 2.984375 | 3 | [] | no_license | package exercise.dsa;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
public class ActivitySelection {
public static int[] select(int[] start, int[] finish) {
List<Integer> target = new ArrayList<>();
int lastFinish = finish[0];
target.a... | true |
0a0d0d6429b58a77891d823548d1f646c21aafe5 | Java | yoiset/Projects | /rgiaj-business/target/src/main/queryDSL-java-gen/es/dgoj/rgiaj/business/model/QJugComunidadCertificadoPK.java | UTF-8 | 1,353 | 1.851563 | 2 | [] | no_license | package es.dgoj.rgiaj.business.model;
import static com.mysema.query.types.PathMetadataFactory.*;
import com.mysema.query.types.path.*;
import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;
/**
* QJugComunidadCertificadoPK is a Querydsl query type for J... | true |
342bf116a3ed8df1ece118c8b9f72554cd130863 | Java | javascn5/LinkedListImpl_MR | /src/com/sda/kolekcje/Main.java | UTF-8 | 702 | 3.078125 | 3 | [] | no_license | package com.sda.kolekcje;
import java.util.LinkedList;
import java.util.List;
public class Main {
public static void main(String[] args) {
List<String> list = new LinkedList<>();
list.add("Jan");
list.add("Jacek");
list.add("Michal");
for(String l: list){
Sys... | true |
f2676fd60efc22b2c4936dc4625a5218131f5215 | Java | amharrison/jactr | /org.jactr/refactorings/java/org/jactr/core/production/condition/ChunkPattern.java | UTF-8 | 2,411 | 1.835938 | 2 | [] | no_license | /*
* Created on Sep 22, 2004 Copyright (C) 2001-4, Anthony Harrison anh23@pitt.edu
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your optio... | true |
1a84eda00234b0c4b7a295710289ec1d013a5661 | Java | intirix/openmm-server | /src/main/java/com/intirix/openmm/server/mt/technical/sql/MovieMidtierSQL.java | UTF-8 | 4,554 | 2.125 | 2 | [
"MIT"
] | permissive | package com.intirix.openmm.server.mt.technical.sql;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.sql.DataSource;
import com.intirix.openmm.server.api.beans.Episode;
import com.intirix.openmm.server.api.beans.... | true |
5342b42c2c61db32c9759c8618de3802df492b2d | Java | messj-0508/webdev_work | /code/java/leetcode/RegularExpressionMatching.java | UTF-8 | 1,695 | 3.359375 | 3 | [] | no_license | public class RegularExpressionMatching {
public static void main(String[] args) throws Exception {
System.out.println(new RegularExpressionMatching().isMatch("aa", "a*a*a"));
}
public boolean isMatch(String s, String p) {
return backTrack(0, 0, s, p);
}
private boolean backTrack(int si, int pi, Str... | true |
8fac298c25bf4f8e41ad3dbccf3520a8a534f8db | Java | benjidon/PenguinGame | /Background.java | UTF-8 | 630 | 2.875 | 3 | [] | no_license | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Background here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Background extends ScrollingActor
{
/**
* Act - do whatever the Background wants to do. Thi... | true |
47907f6542c59484127a8e8bcc07931c55bdb880 | Java | NagaVamsikrishnaVaka/OMS | /src/executionengine/TestExecution.java | UTF-8 | 4,066 | 2.203125 | 2 | [] | no_license | package executionengine;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.openqa.selenium.WebElement;
import utilities.BaseClass;
import utilities.BaseClass.sheetType;
import uti... | true |
4533dfe165f81f3851a8e91b8a33b01139aa350a | Java | rgonthina1/newplatform | /ext/core/testsrc/de/hybris/platform/servicelayer/tenant/MockTenant.java | UTF-8 | 5,415 | 1.710938 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2013 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... | true |
00a1ee8f9b54faf05fab3c23fd6294881bb56f70 | Java | caiping92/learn | /learn-java/src/main/java/pers/cabin/java/base/orientedObject/NoValueException.java | UTF-8 | 392 | 2.359375 | 2 | [] | no_license | package pers.cabin.java.base.orientedObject;
/**
* 传入的参数错误。
* 注意:可已解决的 用 Exception
* 不处理的异常 RuntimeException
* <p>
* Created by cc on 2016/11/3.
*/
public class NoValueException extends RuntimeException {
public NoValueException() {
super();
}
public NoValueException(String message) {
... | true |
1ef05167fae2fc3499476fe4310575a5072552de | Java | ganesh-bhat/Learnings | /JavaPuzzles/src/com/puzzles/toBaseAlgol.java | UTF-8 | 811 | 3.28125 | 3 | [] | no_license | package com.puzzles;
public class toBaseAlgol {
public static void main(String[] args) {
int num = 45454;
System.out.println(toBase(num,16));
System.out.println(Integer.toString(num,16));
}
private static String toBase(int decimalNum, int base) {
StringBuilder s... | true |
01fb1872fdbef00a260c78705283bba68cbc0139 | Java | SexyToenails/ToeTricityMod | /src/main/java/com/biconcave/creativetabs/CreativeTabBlock.java | UTF-8 | 376 | 1.875 | 2 | [] | no_license | package com.biconcave.creativetabs;
import com.biconcave.blocks.Mblocks;
import com.biconcave.item.Mitems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class CreativeTabBlock extends CreativeTabs {
public CreativeTabBlock(String lable) {
super(lable);
}
@Override
publ... | true |
adabcce0499fcedd8af1b5a6835b37eb51a2e3d3 | Java | DoBaekSeok/tracker_new | /tracker_spring/src/main/java/com/tracker/controller/MemberController.java | UTF-8 | 1,160 | 2.015625 | 2 | [] | no_license | package com.tracker.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.anno... | true |
6a9be6650c1e51ed62e6c268f10bbb84cbc6b5a5 | Java | winnie090400/my_first_java | /lab01/Ex01_數字資料.java | UTF-8 | 562 | 3.671875 | 4 | [] | no_license |
public class Ex01_數字資料 {
public static void main(String[] args) {
System.out.println("hello");
System.out.println(3L); //
System.out.println(3.14F); //F代表浮點float (32bit)
System.out.println(3.14D); //D代表double (64 bit)
System.out.println(0.1F == 0.1D); //答案為F 因為浮點數二次元進位無法精... | true |
c1eb5c6cbf02e2b49d0ec526750a953032968488 | Java | danmas/confex | /develop/WRK_CONFEX_TOTAL/net.confex/src/net/confex/action/RunAsincAction.java | UTF-8 | 3,122 | 2.171875 | 2 | [] | no_license | package net.confex.action;
import java.lang.reflect.InvocationTargetException;
import java.util.Iterator;
import net.confex.tree.ITreeNode;
import net.confex.views.NavigationView;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import... | true |
d0e425afd5a5cb63f2c6a5e42083139e90e197c2 | Java | PengLx/SkillAPI | /src/main/java/com/sucy/skill/dynamic/ComponentType.java | UTF-8 | 184 | 1.632813 | 2 | [] | no_license | package com.sucy.skill.dynamic;
/**
* SkillAPI © 2018
* com.sucy.skill.dynamic.ComponentType
*/
public enum ComponentType {
CONDITION,
MECHANIC,
TARGET,
TRIGGER
}
| true |
28dc46181e0b1db34a961220aacae59bb7d9d7b2 | Java | GordPavel/lab2 | /src/main/java/functions/AbstractTabulatedFunction.java | UTF-8 | 4,078 | 3.21875 | 3 | [] | no_license | package functions;
import functions.exceptions.FunctionPointIndexOutOfBoundsException;
import functions.exceptions.InappropriateFunctionPointException;
import java.io.Serializable;
import java.util.Arrays;
public abstract class AbstractTabulatedFunction implements TabulatedFunction, Serializable{
AbstractTabula... | true |
089179ea9ca449d2be07ea0f98a9d35eae4facfd | Java | SW-2/Notas_CEM | /src/java/Beans/LoginBean2.java | UTF-8 | 1,011 | 2.234375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Beans;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
/**
*
* @author Jorge Garcia
*/
@Manage... | true |
aca2e33aaabda31549ac190975310b4a91d45f9b | Java | dnzyx/superclassServer | /src/com/api/listener/getTeacherListener.java | UTF-8 | 235 | 1.8125 | 2 | [] | no_license | package com.api.listener;
import java.util.ArrayList;
import com.api.model.teacher;
public interface getTeacherListener {
public void onGetTeacher(ArrayList<teacher> list);
public void OnGetTeacherError(int code,String msg);
}
| true |
643dc2ca7b95b1100b28050c3a0581e1ec5e7e6d | Java | zhao-qc/zstack | /compute/src/main/java/org/zstack/compute/host/PreHostConnectExtensionPoint.java | UTF-8 | 273 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | package org.zstack.compute.host;
import org.zstack.header.core.workflow.Flow;
import org.zstack.header.host.HostInventory;
/**
* Created by GuoYi on 2019-06-03.
*/
public interface PreHostConnectExtensionPoint {
Flow createPreHostConnectFlow(HostInventory host);
}
| true |
d0be5f683c0e34d4e53667eb9b38ee0abde32f88 | Java | vbhargavi/SwipeLock | /app/src/main/java/com/bhargavi/laxmi/swipelock/adapter/ImageAdapter.java | UTF-8 | 3,600 | 2.390625 | 2 | [] | no_license | package com.bhargavi.laxmi.swipelock.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.bhargavi.laxmi.swipelock.data.ImageData;
import com.bhar... | true |
912adf6cefcc7012b2147f66632fb2642dab8763 | Java | javy-liu/java-asm | /1-3/3/B.java | UTF-8 | 2,242 | 2.796875 | 3 | [] | no_license | import sizeof.agent.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
public class B {
public static void main(String [] args) {
final StringBuilder sb = new StringBuilder(1000);
final boolean falseBoolean = false;
final int zeroInt = 0;
final ... | true |
1adcb4e4e66247c0ec91edd0f7bc014c5912208f | Java | anil8048/npci-iiht | /hello-world/src/com/mohsinkd786/designpattern/structural/Sql.java | UTF-8 | 274 | 1.953125 | 2 | [] | no_license | package com.mohsinkd786.designpattern.structural;
public class Sql {
public static String getConUrl(){
return null;
}
public void exportDB(String url){
// do something
}
public void importDB(String url){
// do something
}
}
| true |
8d822782b28841c342984f21fa7b52f30a17606b | Java | kenkaranja/VisitorManagementSystem | /src/main/Java/Servlets/ReceptionistChat.java | UTF-8 | 979 | 2.5 | 2 | [] | no_license | package Servlets;
import javax.ejb.EJB;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
@WebS... | true |
0d2fc6761c8307004b20dd5aa88880997fffa3ec | Java | Valdasmo/Homeworks | /src/lt/bit/hw/OP015.java | UTF-8 | 401 | 3.109375 | 3 | [] | no_license | package lt.bit.hw;
public class OP015 {
public static void main(String[] args) {
int y = 0;
calcFunction(y);
}
private static void calcFunction(int y) {
System.out.println("Calculation y = x * 3");
System.out.println("----------------------");
for (int x=0; x<=10; x++)... | true |
3cf92e963c958f71615efa77a26caaa8905d3d28 | Java | Lianite/wurm-server-reference | /org/flywaydb/core/internal/dbsupport/sybase/ase/SybaseASETable.java | UTF-8 | 1,161 | 2.15625 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package org.flywaydb.core.internal.dbsupport.sybase.ase;
import java.sql.SQLException;
import org.flywaydb.core.internal.dbsupport.Schema;
import org.flywaydb.core.internal.dbsupport.DbSupport;
import org.flywaydb.core.internal.dbsupport.JdbcTemplate;
import org.flywaydb.core.... | true |
60f8638d700ebb5ccad617b04d47de878c33169e | Java | virtualcell/vcell | /vcell-core/src/main/java/org/vcell/model/rbm/common/RbmEventHandler.java | UTF-8 | 2,052 | 2.296875 | 2 | [
"MIT"
] | permissive | package org.vcell.model.rbm.common;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
public class RbmEventHandler implements Serializable {
private transient PropertyChangeSupport propertyChange;
private transient java.beans.VetoableChangeSup... | true |
3d609f112109290f0c3a4943d99a3e46c7a4b3f9 | Java | baedal12/baedalproject.github.io | /BaedalProjectAdmin/src/main/java/service/admin/AdminsManageService.java | UTF-8 | 2,948 | 2.203125 | 2 | [] | no_license | package service.admin;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
imp... | true |
d38e3dfa4e98f317995597407fde669afb5e228c | Java | chorsystem/middleware | /messages/src/main/java/org/apache/ode/bpel/extensions/comm/messages/engineOut/MessageBase.java | UTF-8 | 1,314 | 1.921875 | 2 | [
"MIT"
] | permissive | package org.apache.ode.bpel.extensions.comm.messages.engineOut;
import java.io.Serializable;
//@stmz: base class for all outgoing messages
public class MessageBase implements Serializable {
private static final long serialVersionUID = -1075592551376260168L;
private Long MessageID;
private Long TimeStamp;
priv... | true |
d7dd4276c71deb720bec7eb9b829b2b8595c6ea4 | Java | jiusetian/FreeDroneGCS | /DroneKit/src/main/java/com/o3dr/android/client/utils/geotag/GeoTagUtils.java | UTF-8 | 6,541 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.o3dr.android.client.utils.geotag;
import android.media.ExifInterface;
import com.MAVLink.ardupilotmega.msg_camera_feedback;
import com.o3dr.android.client.utils.data.tlog.TLogParser;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import j... | true |
a286c36051170fc43dd8355bdeb4f5a72a816db8 | Java | AIGTechJavaGroup/jsonrpc | /jsonrpc-benchmark/src/main/java/com/github/xincao9/jsonrpc/benchmark/server/PrimeNumberServiceImpl.java | UTF-8 | 591 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.github.xincao9.jsonrpc.benchmark.server;
import com.github.xincao9.jsonrpc.benchmark.PrimeNumberService;
/**
* 素数服务
*
* @author xincao9@gmail.com
*/
public class PrimeNumberServiceImpl implements PrimeNumberService {
/**
* 执行
*
* @param n 整数
* @return 是否为素数
*/
@Over... | true |
f092dd084da23366ff5bb4494eed4f2e6bec67e5 | Java | rakenduste-programmeerimine-2021/lessons | /2021-10-04/java-backend/src/main/java/ee/mihkel/backend/model/Item.java | UTF-8 | 458 | 1.976563 | 2 | [] | no_license | package ee.mihkel.backend.model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.stereotype.Component;
import javax.persistence.*;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class Item ... | true |
847d18f0fdffc62f2aae3bcd757c2ba3d93966d4 | Java | selimsahin1/tftguide-spring | /src/main/java/com/example/tftguide/teamfighttactics/Model/Profile.java | UTF-8 | 582 | 2.046875 | 2 | [] | no_license | package com.example.tftguide.teamfighttactics.Model;
import java.util.List;
public class Profile {
ProfileSummaryA profileSummaryA;
List<ProfileA> profileAList;
public ProfileSummaryA getProfileSummaryA() {
return profileSummaryA;
}
public void setProfileSummaryA(ProfileSummaryA profile... | true |
b99a12d04c076373fa81cfe238a7893f4f0dfb62 | Java | gitYhsh/royal | /royal_plodes/src/main/java/com/xlcxx/plodes/mapper/system/RoleMapper.java | UTF-8 | 303 | 1.765625 | 2 | [] | no_license | package com.xlcxx.plodes.mapper.system;
import com.xlcxx.plodes.system.domian.Role;
import com.xlcxx.common.config.database.MyMapper;
import java.util.List;
public interface RoleMapper extends MyMapper<Role> {
/**查询人的角色名称**/
List<Role> selectUserRoleByUsername(String username);
} | true |
43c21fa640661437d9f491137dbeee280a910bc7 | Java | GunnarZarncke/zarncke_lib | /src/main/java/de/zarncke/lib/time/Clock.java | UTF-8 | 165 | 1.882813 | 2 | [] | no_license | package de.zarncke.lib.time;
import org.joda.time.DateTime;
public interface Clock
{
long getCurrentTimeMillis();
DateTime getCurrentDateTime();
}
| true |
b26887178ed5131595ca35d2a796f8c912348216 | Java | poacher286/MyIdeaProject | /src/main/java/com/laraclasses/toppics/dev_Annotation/M4.java | UTF-8 | 335 | 2.625 | 3 | [] | no_license | package com.laraclasses.toppics.dev_Annotation;
@interface A
{
int version();
String author();
}
@A(version = 100 , author = "Poacher")
class M4
{
@A(version = 100)
public static void main(String[] args)
{
System.out.println("Hello");
}
}
/*
Annotation should be Syntacticllay correct
Ot... | true |
20eb2278507f7c844cfacca0ae28b3fbc3c256d5 | Java | ibaca/typescript2java | /apis/browser-api/src/main/java/fr/lteconsulting/jsinterop/browser/Uint32ArrayConstructor.java | UTF-8 | 2,875 | 2.390625 | 2 | [] | no_license | package fr.lteconsulting.jsinterop.browser;
import fr.lteconsulting.prebuilt.Function2;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
/**
* base type: Uint32ArrayConstructor
* flags: 32768
* declared in: apis/browser-api/tsd/lib.es6.d.ts:1... | true |
a05cdde67d4192a113a3d01ce7c4080886c0b1f2 | Java | de-jcup/winfoom | /src/test/java/org/kpax/winfoom/proxy/CustomProxyClientTests.java | UTF-8 | 5,636 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020. Eugen Covaci
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in wr... | true |
c0ccde183dd6474972ea25eaa1112624c78cb23c | Java | binave/common | /common-serialize/src/main/java/org/binave/common/util/TypeUtil.java | UTF-8 | 13,931 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017 bin jin.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
3f96857dca5dd5d93a053720243d948e28358f1b | Java | wxgaly/GradleApp | /src/main/java/question/easy/RemoveDuplicatesFromSortedList.java | UTF-8 | 1,464 | 3.765625 | 4 | [] | no_license | package question.easy;
/**
* question.easy.
*
* @author Created by WXG on 2019-05-12 17:57.
* @version V1.0
*
* Given a sorted linked list, delete all duplicates such that each element appear only once.
*
* Example 1:
*
* Input: 1->1->2
* Output: 1->2
* Example 2:
*
* Input: 1->1->2->3->3
* Output: 1->2... | true |
d811521d7371c3147e48cded1471f10b48b0ab9f | Java | ngarces/MNM-CRM-Android-HW3 | /app/src/main/java/mnm_crm/Employee.java | UTF-8 | 1,751 | 3.3125 | 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 mnm_crm;
/**
*
* @author ngarc
*/
public class Employee implements Person{
private String lastName;
private String ... | true |
1b3a03c22488756d42dc7d12eb30a3f970467944 | Java | ocean-wave/Gas | /src/main/java/webapp/sockets/iotmeter/field/DataField.java | UTF-8 | 382 | 2.1875 | 2 | [] | no_license | package webapp.sockets.iotmeter.field;
import java.io.Serializable;
/**
* 数据域
* @author Administrator
*
*/
public class DataField implements Serializable{
private static final long serialVersionUID = 1L;
byte[] dataField = null;
public DataField(byte[] df) {
dataField = df;
}
public by... | true |
3155e621befd2c4f9ee04583ce35aa85245e7fb0 | Java | Vinaysai/SpringBoot-OneToMany | /src/main/java/com/spring/boot/all/repository/UserRepo.java | UTF-8 | 285 | 1.695313 | 2 | [] | no_license | package com.spring.boot.all.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.spring.boot.all.entity.User;
@Repository
public interface UserRepo extends JpaRepository<User, String> {
}
| true |
e28c28d175b2121683a9356de3e1647cf215a07e | Java | sonamt731/Algorithms | /MergeSort.java | UTF-8 | 1,263 | 3.703125 | 4 | [] | no_license | //merge sort
//Runs in O(nlogn) runtime average and worst case
public class Sorting{
public static void main(String[] args){
int[] mynums = {30, 40, 56, 91, 29, 8, 9, 97, 53, 21, 6};
mergesort(mynums, 0, 10);
for(int i = 0; i < mynums.length; i++){
System.out.println(mynums[i]);
}
}
public static voi... | true |
2a6d870d91f725fd1685cc854919980ad1097c1b | Java | lk666/MoonAngleGradleUpdate | /app/src/main/java/cn/com/bluemoon/delivery/app/api/model/clothing/collect/ResultStartCollectInfos.java | UTF-8 | 4,569 | 2.0625 | 2 | [] | no_license | package cn.com.bluemoon.delivery.app.api.model.clothing.collect;
import com.loopj.android.http.AsyncHttpResponseHandler;
import java.util.List;
import cn.com.bluemoon.delivery.app.api.model.ResultBase;
/**
* {@link cn.com.bluemoon.delivery.app.api.DeliveryApi#startCollectInfo(String, String, String, AsyncHttpRespo... | true |
fd24571f0e565fc0ed6f98dbf4f0f917a81df1fa | Java | 99004488-lavanyak/JavaDailyActivities | /ActivitiesonEncapsulation/Q4/Company.java | UTF-8 | 538 | 2.515625 | 3 | [] | no_license | class Company
{
private String name;
private String employees;
private String lead;
public String getName()
{
return name;
}
public void setName(String name)
{
this.name=name;
}
public String getEmployees()
{
return employees;
}
public v... | true |
3d44304f04dcd86d1ef9125573c69fe517f0b311 | Java | juliathebat/OPS-java | /laba4/src/main/java/Actions.java | UTF-8 | 1,594 | 3.828125 | 4 | [] | no_license | import java.util.Scanner;
public class Actions {
private Matrica matrica;
private int n;
public void fillMatrica() {
Scanner scanner = new Scanner(System.in);
System.out.print("Введите кол-во столбцов/строк - ");
this.n = scanner.nextInt();
this.matrica = new Matrica(n, n);
... | true |
0dd5e8ec345615f601b8ddbde853a9aeee4bcd1c | Java | Jagadhees2612/JavaBasics | /app21/src/J.java | UTF-8 | 440 | 3.296875 | 3 | [] | no_license | class A
{
int x;
}
class J
{
A obj;//to wherever a1 pointing to the same obj pointing...
J(A obj)
{
this.obj = obj;//global obj..
}
public static void main(String[] args)
{
J ref = new J(new A()); //there is no local ref variable..whatever obj is creating
System.out.println(ref.obj.x);///obj
ref.obj.... | true |
694e449d714b46432fd2e01512f822cda5fc8b4e | Java | ShlomiRex/AndroidMalwareForFinalProject | /app/src/main/java/com/shlomi/malware/MainActivity.java | UTF-8 | 12,935 | 1.828125 | 2 | [] | no_license | package com.shlomi.malware;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.Manifest;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;... | true |
dd869483fab7b444d3a91cdf67ee42cea52866cf | Java | sieka44/GeneratorTransakcji | /src/main/java/fileWriter/FileJsonWriter.java | UTF-8 | 1,484 | 2.609375 | 3 | [] | no_license | package fileWriter;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import dataGenerator.Transaction;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;
import java.io.File;
i... | true |
86243c8e27e3602867059c433333f070bdd8426f | Java | love320/templateParser | /src/main/java/com/love320/templateparser/label/LabelBeanDao.java | UTF-8 | 799 | 2.0625 | 2 | [] | no_license | /**
* Copyright (c) 2010-2012 love320.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* Founder admin@love320.com
*/
package com.love320.templateparser.label;
import java.util.List;
import com.love320.templateparser.factory.entity.LabelBean;
/**
* @ClassName: LabelManager
* @De... | true |
3c31d6c5076496073e4898e6a887b56dbe1427e8 | Java | LewisSharpe/Gaelic-POST-Android-App | /gaelic app/GaelicPOST Mobile/src/com/example/acenapiermobile/CCampusPictureGallery.java | UTF-8 | 4,362 | 2.34375 | 2 | [] | no_license | // CRAIGLOCKHART CAMPUS PICUTURE GALLERY
package com.example.acenapiermobile;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextVie... | true |
b0f85c6e0a8b0933c014eb3f8b8b2db1ac13f73d | Java | RogueFendor/IntelligentSystemProject | /is13116371.java | UTF-8 | 20,947 | 2.953125 | 3 | [] | no_license | package is13116371;
import java.util.*;
import java.io.*;
import java.awt.Graphics;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import javax.swing.JFrame;
public class is13116371
{
public static class God{
private double crossOverPr... | true |
e7ec07982a3fd92a1c170882b2d1a7afcc923e35 | Java | ayulit/mtom-rest | /server/src/main/java/ru/mera/samples/application/mappings/ImageToEntityMap.java | UTF-8 | 969 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package ru.mera.samples.application.mappings;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.modelmapper.PropertyMap;
import ru.mera.samples.application.dto.ImageDTO;
import ru.mera.samples.domain.entities.ImageEntity;
import javax.imageio.ImageIO;
import java.io.Byte... | true |
00c25fedbea5e38356fbe964c5e95005fd94d17b | Java | nicaoi/web-gametrack | /src/main/java/com/nicaoi/gametrack/core/TestController.java | UTF-8 | 427 | 1.882813 | 2 | [
"MIT"
] | permissive | package com.nicaoi.gametrack.core;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* User: ksutton
* Date Created: 20/01/2016.
*/
@Controller
public class TestController {
@RequestMapping("/test")
public St... | true |
7507825740af19f8f5d8078856f138ab8ca96bc6 | Java | zstudent/java2020 | /Java2020/src/lesson210212/InterruptableExamplesWithLock2.java | UTF-8 | 963 | 3.5 | 4 | [] | no_license | package lesson210212;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import utils.Time;
public class InterruptableExamplesWithLock2 {
public static void main(String[] args) {
System.out.println("start");
Lock mutex = new ReentrantLock();
Thread t = new Thread(() -... | true |
3ace279b4d3cb65e595c4baff3d1cb398daa97f4 | Java | faranjit/mapwithviewpager | /app/src/main/java/map/test/MapFragment.java | UTF-8 | 1,458 | 2.15625 | 2 | [] | no_license | package map.test;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMa... | true |
49a9508f7d5f3a973e8a94e5a2d17db54b6af764 | Java | hanreader/ScheduleGenerator | /src/schedulegenerator/StudentPreference.java | UTF-8 | 11,203 | 2.9375 | 3 | [] | no_license | package schedulegenerator;
import java.util.*;
public class StudentPreference extends Student{
public StudentPreference(){}
Scanner cin = new Scanner(System.in);
Student stud = new Student();
public ArrayList<Integer> scheduleArr = new ArrayList<Integer>();
String[] nineR= {"English9"... | true |
fdb5943ab653d94669a786874e7c7044b4c1d291 | Java | fyc870477203/crm | /crm/src/test/java/com/bjpowernode/test/Test.java | UTF-8 | 728 | 2.546875 | 3 | [] | no_license | package com.bjpowernode.test;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
/**
* 作者:fyc
* 2019/8/30
*/
public class Test {
/*public static void main(String[] args) {
LocalDateTime dateTime = LocalDateTime.now();
... | true |
fb86c4607e5029c5ad54ff877c5bcbbaeab0e5a6 | Java | pom30526/andclass | /chap08/GraphicText1/app/src/main/java/kr/co/company/graphictext1/GraphicText1Activity.java | UTF-8 | 1,553 | 2.53125 | 3 | [] | no_license | package kr.co.company.graphictext1;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
class MyView extends View {
public MyVie... | true |
b665079b1124ad7c10215495999b49a34aead323 | Java | Leiothrix/springboot-aop | /src/main/java/com/paprika/springbootaop/domain/WebVisitInfo.java | UTF-8 | 1,234 | 2.171875 | 2 | [] | no_license | package com.paprika.springbootaop.domain;
import lombok.Data;
import javax.persistence.*;
import java.time.LocalDateTime;
/**
* @author adam
* @date 2019/10/25
*/
@Data
@Entity
@Table(name = "web_visit_log")
public class WebVisitInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(nam... | true |
16b88bb82fa80f81eefbdebec9a1e5316ff9bd81 | Java | Lapiochebasic11/Project_Java_-Boulder_Dash | /model/src/main/java/model/Element/Element.java | UTF-8 | 1,302 | 3.15625 | 3 | [] | no_license | package model.Element;
import model.Map;
/**
*
* @author Lilian Schneider
* @version 1.0
*/
public abstract class Element{
String sprite;
int walk = 0;
/**
* @param sprite implement sprite
* Constructor call
*/
public Element(String sprite) {
this.sprite = sprite;
}
/**
* ... | true |
eabc5cd0d87aec6a36a73ed26257d075a3ce5d15 | Java | fernando-an-pereira/projeto-Sistemas-Operacionais | /SistOp/src/jobs/Job.java | UTF-8 | 4,995 | 2.625 | 3 | [] | no_license | package jobs;
import informacao.Arquivo;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Random;
import recursos.Segmento;
import util.ArvoreN;
public class Job implements Comparable<Job> {
private int id;
private int tempoDeProcessamento;
private int requisicoesES... | true |
ccedde74ddea25a39d1359becc5f3e841cf01c93 | Java | kishor0506/SrmB2Java | /Pack_p1/A_class.java | UTF-8 | 248 | 2.109375 | 2 | [] | no_license | package Pack_p1;
public class A_class {
public void display()
{
System.out.println("mobiles");
System.out.println("one plus");
System.out.println("samsung");
System.out.println("apple");
System.out.println("realme");
}
}
| true |
c6fe5597563d154363517e1bf539e1d2de590bc5 | Java | iPhone6/eplat16 | /src/main/java/com/cn/eplat/utils/MyTimeUtil.java | UTF-8 | 1,516 | 3.25 | 3 | [] | no_license | package com.cn.eplat.utils;
import java.util.Date;
/**
* 时间工具类
* @author Administrator
*
*/
public class MyTimeUtil {
/**
* 判断给定的时间是否正处于合适的时间范围(按照一定的预先约定好的时间范围规则来判断)
* @param time
* @return
*/
public static boolean isTimeRight(Date time){
if(time==null){
return false;
}
// 预设... | true |
1d58a0c3b94132bedd7bba4b61833d84b0f4ac78 | Java | Giacomo-Spano/WebWind | /src/Wind/data/Favorites.java | UTF-8 | 4,409 | 2.546875 | 3 | [] | no_license | package Wind.data;
import Wind.Core;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
/**
* Created by Giacomo Span� on 08/11/2015.
*/
public class Favorites {
private static final Logger LOGGER = Logger.getLogger(Favorites.class.getName());
public Fa... | true |
75938cef5f312e659c3bd5ebfdaf01b4c4449fdc | Java | huagnkangjie/kaipin | /kaipin-oss/src/main/java/com/kaipin/oss/manager/ModuleMenu.java | UTF-8 | 2,266 | 2.3125 | 2 | [] | no_license | package com.kaipin.oss.manager;
import java.util.ArrayList;
import java.util.List;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Component;
import com.kaipin.oss.model.platform.PlatformModule;
import com.kaipin.oss.model.platform.PlatformPermission;
import com.kaipin.oss.security.Sec... | true |
8927180df7b01a52fabae3036d4a6e989092f2c9 | Java | mjacobinc/Meepclient | /minecraft/net/minecraft/src/EntityAIWander.java | UTF-8 | 1,460 | 2.671875 | 3 | [] | no_license | package net.minecraft.src;
import java.util.Random;
public class EntityAIWander extends EntityAIBase
{
private EntityCreature entity;
private double xPosition;
private double yPosition;
private double zPosition;
private float speed;
public EntityAIWander(EntityCreature par1EntityCreature, flo... | true |
886820ed58188bec99831d24705fe17723c50980 | Java | RyanTech/nmid-headline | /app/src/main/java/cn/edu/cqupt/nmid/headline/ui/fragment/FeedFragment.java | UTF-8 | 9,537 | 1.890625 | 2 | [
"MIT"
] | permissive | package cn.edu.cqupt.nmid.headline.ui.fragment;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.... | true |
a36399045c2278f04031e549b91dc91fbd3f1c6c | Java | asfrom30/FastCampusAndroid | /app/src/main/java/com/doyoon/android/fastcampusandroid/util/DeviceUtil.java | UTF-8 | 4,807 | 2.640625 | 3 | [] | no_license | package com.doyoon.android.fastcampusandroid.util;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v4.content.FileProvider;
import android.util.Log;
import com.doyoon.... | true |
8d7c2b56e19732f38f1ede8c5f51319af97d8dfe | Java | ghoshTubai/movie-catalog | /src/main/java/com/ghoshtubai/movie/moviecatalog/resource/MovieResource.java | UTF-8 | 1,236 | 2.203125 | 2 | [] | no_license | package com.ghoshtubai.movie.moviecatalog.resource;
import com.ghoshtubai.movie.moviecatalog.model.Movie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http... | true |
0651baed3e3348f882a527d9017c144c4c9c69dc | Java | andylstuy/Battleship | /Ship.java | UTF-8 | 3,513 | 3.40625 | 3 | [] | no_license | import java.util.*;
public class Ship {
private static final String LETTERS = "ABCDEFGHIJ ";
private int _lives;
private int _size;
private static String _name;
private ArrayList<Integer> coors = new ArrayList<Integer>();
public Ship(String name) {
if(name.equals("aircraft carrier"))... | true |
5b1924841ec9b4911b191fdbae64b670036a3ec7 | Java | dianyanzen/employee_b | /app/src/main/java/id/co/arkamaya/bc_android/MainActivity.java | UTF-8 | 11,518 | 1.890625 | 2 | [] | no_license | package id.co.arkamaya.bc_android;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android... | true |
6e04ba4650ab586c62173282388908a7b26db50f | Java | iArtemv/stockMarket | /src/main/java/com/company/MatchingEngine.java | UTF-8 | 2,570 | 3.203125 | 3 | [] | no_license | package com.company;
import com.company.internal.Trade;
import com.company.internal.TransactionType;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import static java.lang.Ma... | true |
abc5c06d86d4defe5526addf49360ebd50d2062e | Java | margeritta86/restapishop | /src/main/java/com/orka/restapishop/repository/CustomerRepository.java | UTF-8 | 290 | 1.671875 | 2 | [] | no_license | package com.orka.restapishop.repository;
import com.orka.restapishop.model.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CustomerRepository extends JpaRepository<Customer, Long> {
}
| true |
e76d3a63becbde52dee63a0b52069242292dcb7e | Java | Tominous/LabyMod-1.9 | /org/h2/result/SimpleRowValue.java | UTF-8 | 1,136 | 2.453125 | 2 | [] | no_license | package org.h2.result;
import org.h2.value.Value;
public class SimpleRowValue
implements SearchRow
{
private long key;
private int version;
private int index;
private final int virtualColumnCount;
private Value data;
public SimpleRowValue(int columnCount)
{
this.virtualColumnCount = columnCount... | true |
7614ae935ccd0dade74a5730cb8c70d6140c3960 | Java | FHtengjiao/Exercise | /src/cn/com/reflection/ActionInterface.java | UTF-8 | 91 | 2.0625 | 2 | [] | no_license | package cn.com.reflection;
public interface ActionInterface {
void walk(int meter);
}
| true |
3cf1fc51fb848b7b412c1d86f486899ccfa48542 | Java | wanglixing-tech/playground | /richard-ws/velocity-test/src/main/java/crs/fcl/integration/iib/MyVelocityExample.java | UTF-8 | 2,304 | 2.390625 | 2 | [] | no_license | package crs.fcl.integration.iib;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
//import java.util.Properties;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.runtime.RuntimeConstan... | true |
f2192642dae3382d268a8b8b0c7aecfbc8dfe7cc | Java | wuboy0307/androidpos-1 | /src/net/pointbridge/android/sales/networkcontroller/IDGenerator.java | UTF-8 | 3,007 | 2.625 | 3 | [] | no_license | package net.pointbridge.android.sales.networkcontroller;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import android.text.f... | true |
e592bc99873c41af80cbac15f6687499a78df08a | Java | liuawen/Learning-Algorithms | /leetcode/0069-Sqrt(x)/src/Solution3.java | UTF-8 | 1,152 | 3.609375 | 4 | [] | no_license | import java.util.HashMap;
/**
* @author Liu Awen Email:willowawen@gmail.com
* @create 2020-09-08
*/
public class Solution3 {
public int mySqrt(int x) {
long left = 0;
long right = x / 2;
while (left <= right) {
long mid = left + (right - left) / 2;
long sqr = mid ... | true |
566e15ce3f68a2932c2c974721a5b0edf740f2e6 | Java | vcmarcor/wumpus | /HuntTheWumpus/app/src/main/java/example/vcmarcor/huntthewumpus/activity/SettingsFragment.java | UTF-8 | 3,210 | 2.640625 | 3 | [] | no_license | package example.vcmarcor.huntthewumpus.activity;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.PreferenceScreen;
import android.widget.Toast;
import example.vcmarcor.huntthewumpus.R;
import example.vcmarcor.huntthewumpus.core.Ga... | true |
31f198bc0c5f862d4b5aeaf5f95d0d52199deb4b | Java | dhritimanG/DBMS | /JPA and Webservices/DirectorDao.java | UTF-8 | 7,269 | 2.859375 | 3 | [] | no_license | package edu.neu.cs5200.orm.jpa;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;
public class DirectorDao {
private static final String UNIT = "JPAWeb";
private static EntityManagerF... | true |
53ac6f8caa419c03e2a05720be540a4ea13fb0f2 | Java | kscarr73/ApiModels | /ApiWeb/src/main/java/com/progbits/api/srv/formatter/FddFormatter.java | UTF-8 | 3,026 | 2.796875 | 3 | [] | no_license | package com.progbits.api.srv.formatter;
import com.progbits.api.model.ApiClasses;
import com.progbits.api.model.ApiObject;
/**
*
* @author scarr
*/
public class FddFormatter {
private static final String STANDARD_SPACE = " ";
public static String convertToFdd(String mainClass, ApiClasses classes) {
StringB... | true |