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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
45970e15e74b5567a2a58bac6b61ee5ad7bac960 | Java | wsgan001/OnlineParticipation | /SImpleChallenges/top_coder/src/SparseFactorialDiv2.java | UTF-8 | 4,717 | 2.859375 | 3 | [] | no_license | import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
public class SparseFactorialDiv2
{
public long getCount(long lo, long hi, long divisor)
{
return 0;
}
// BEGIN KAWIGIEDIT TESTING
// Generated by KawigiEdit 2.1.8 (beta) modified by pivanof
private stati... | true |
d0a99cd2fe8169d7555e4efb50975d0417005877 | Java | bdjyw-github/MyRetrofit | /app/src/main/java/com/idophin/util/DataFactory.java | UTF-8 | 3,664 | 2.765625 | 3 | [] | no_license | package com.idophin.util;
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.ArrayList;
import ja... | true |
103f83c13f6fcb0c176a7a7402ca39004c16cc7a | Java | Madrid-7/Java_test | /2020_3_15/src/Test1.java | UTF-8 | 600 | 3.0625 | 3 | [] | no_license |
public class Test1 {
public static void main1(String[] args) {
String str1 = "hello";
String str2 = "he" + new String("llo");
System.out.println(str1 == str2); //false
}
private static void add(Byte b) {
b = b++;
}
private static void test() {
Byte a = ... | true |
805609a92412aaa3c533487903629ed900937cd2 | Java | DavidChavez1/SQLiteCRUD2019 | /SQLiteCRUD2019/app/src/main/java/com/example/sqlitecrud2019/actividades/UserList.java | UTF-8 | 6,090 | 2.265625 | 2 | [] | no_license | package com.example.sqlitecrud2019.actividades;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView... | true |
ad0409a02d77adba8bab833280264674887b343a | Java | IOIIIO/DisneyPlusSource | /sources/com/bamtech/shadow/gson/C2235l.java | UTF-8 | 5,223 | 2.0625 | 2 | [] | no_license | package com.bamtech.shadow.gson;
import com.bamtech.shadow.gson.internal.C2135a;
import com.bamtech.shadow.gson.internal.C2214e;
import java.math.BigInteger;
/* renamed from: com.bamtech.shadow.gson.l */
/* compiled from: JsonPrimitive */
public final class C2235l extends JsonElement {
/* renamed from: b */
... | true |
da0dc7a257e45591dcde6a2e6468f9c249ce49c2 | Java | NoobsDevelopers/L2Nextgen | /java/l2n/game/network/serverpackets/PetItemList.java | UTF-8 | 1,278 | 2.375 | 2 | [] | no_license | package l2n.game.network.serverpackets;
import l2n.game.model.instances.L2ItemInstance;
import l2n.game.model.instances.L2PetInstance;
public class PetItemList extends L2GameServerPacket
{
private static final String _S__b3_PETITEMLIST = "[S] b3 PetItemList";
private final L2ItemInstance[] items;
public PetItemLi... | true |
2fc9a62c2325b016415a2a8ff692b4153803499e | Java | softeng2021-inf-uniba/progetto2021ter-mills | /src/main/java/it/uniba/gioco/damiera/Casella.java | UTF-8 | 1,827 | 3.203125 | 3 | [] | no_license | package it.uniba.gioco.damiera;
import it.uniba.utilities.Strings;
/**
* <Entity>
* Classe che rappresenta la casella. Inoltre, si occupa della gestione della pedina contenuta in essa.
*/
public class Casella {
/**
* Pedina presente nella casella.
*/
private Pedina pedina;
/**
* Attributo d... | true |
4795b388f5be4bcde3e00d74724f1296f6862218 | Java | Robo-Hamsters/Photo-Album | /ProjectPhotos/src/Controller/Services/DeleteService.java | UTF-8 | 1,087 | 2.6875 | 3 | [] | no_license | package Controller.Services;
import Model.Photo;
import Repo.AlbumRepo;
import Repo.DBConnector;
import Repo.PhotoRepo;
public class DeleteService extends TransactionHandler {
private Photo photo;
public void deteleItem(Photo photo)
{
this.photo = photo;
createTransaction();
... | true |
53d9fc18dd1e2dfb17ffc328547af11eec06a997 | Java | AsTheStarsFall/MultiThread | /src/main/java/com/tianhy/multithread/interrupt/InterruptDemo1.java | UTF-8 | 855 | 3.53125 | 4 | [] | no_license | package com.tianhy.multithread.interrupt;
import java.util.concurrent.TimeUnit;
/**
* @Desc: 线程复位可以用来实现多个线程之间的通信
* @Author: thy
* @CreateTime: 2018/11/16
**/
public class InterruptDemo1 {
public static void main(String[] args) throws InterruptedException {
Thread thread=new Thread(()->{
w... | true |
8e017e6aa133d5382d5b2c90901cb2f02b205208 | Java | sudeep91soni/Java-Codes | /HeapSort.java | UTF-8 | 2,290 | 3.75 | 4 | [] | no_license | package geeksForGeeks.sorting;
import java.util.Arrays;
// Using arrays
public class HeapSort {
public static void main(String[] args) {
Integer[] arr = new Integer[] { 4, 2, 90, 0, 3, 6 };
System.out.println(Arrays.toString(arr));
heapSort(arr, arr.length - 1);
System.out.println(Arrays.toStri... | true |
9ba15c0d7aff740ba210e8483488678ab7bf9cab | Java | kotaiahandraju/agmarks | /src/main/java/com/aurospaces/neighbourhood/service1/geotag.java | UTF-8 | 280 | 2.25 | 2 | [] | no_license | package com.aurospaces.neighbourhood.service1;
public class geotag {
public double x;
public double y;
public geotag()
{
x = 0.0;
y = 0.0;
}
public geotag(String strX, String strY)
{
x = Double.parseDouble(strX);
y = Double.parseDouble(strY);
}
}
| true |
07e799349d063bead139d1ec76ff8f5416b197ca | Java | pengxiangzhao87/CMTGP | /src/main/java/com/cos/cmtgp/business/controller/InterfaceProxy.java | UTF-8 | 3,882 | 2.1875 | 2 | [] | no_license | package com.cos.cmtgp.business.controller;
import java.util.List;
import java.util.Map;
import com.cos.cmtgp.business.model.CommodityTypeSetting;
import com.cos.cmtgp.business.model.InterfaceInfo;
import com.cos.cmtgp.business.service.CommodityService;
import com.cos.cmtgp.business.service.InterfaceProxyService;
imp... | true |
a5bb73157a31bec7d1a61df8c2d3716b911e3655 | Java | Skirnevskaya1/MyQuiz | /app/src/main/java/app/quiz/CategoryActivity.java | UTF-8 | 4,660 | 2.328125 | 2 | [] | no_license | package app.quiz;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.GridView;
import android... | true |
830fde7237c812c8ed970d3f6978ee809aa7163d | Java | sangdy905817800/EightRoes | /plugin-elasticsearch/src/main/java/com/ssrs/elasticsearch/service/IFieldWeightService.java | UTF-8 | 635 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package com.ssrs.elasticsearch.service;
import com.ssrs.elasticsearch.model.entity.FieldWeight;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ssrs.elasticsearch.model.form.FieldWeightPageForm;
import com.ssrs.elasticsearch.model.vo.FieldWeightVo;
import com.ssrs.platform.util.Page;
import jav... | true |
019cb4db261eac4dedade68c3600cdb30661b51c | Java | java-tools/giavacms | /twizz/src/main/java/org/giavacms/twizz/repository/QuestionRepository.java | UTF-8 | 998 | 2.03125 | 2 | [] | no_license | package org.giavacms.twizz.repository;
import java.util.Map;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.giavacms.common.model.Search;
import org.giavacms.common.repository.AbstractR... | true |
9fbbdf5c0bc0b2512f51bca772e13e5d0617756f | Java | taskoi/WP-Project | /Project/src/main/java/com/webprogramiranje/Project/exceptions/AdPriceNotDefinedException.java | UTF-8 | 185 | 2.078125 | 2 | [] | no_license | package com.webprogramiranje.Project.exceptions;
public class AdPriceNotDefinedException extends Exception {
public AdPriceNotDefinedException(String s){
super(s);
}
}
| true |
a3ae83855001db67b0b1ba42b324b6b4cd375e95 | Java | 2377135459/Mybatis-Plus-Swagger | /src/main/java/com/uniin/mybatisPlus/controller/LandController.java | UTF-8 | 1,059 | 1.976563 | 2 | [] | no_license | package com.uniin.mybatisPlus.controller;
import com.uniin.mybatisPlus.dto.LandDTO;
import com.uniin.mybatisPlus.service.ILandService;
import com.uniin.mybatisPlus.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
i... | true |
3b9c08cedabf7531d395c86d9adc00780552b827 | Java | Ajeetmisra/DictionaryE | /app/src/main/java/com/example/dictionarye/MainActivity.java | UTF-8 | 8,510 | 2.09375 | 2 | [] | no_license | package com.example.dictionarye;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.inp... | true |
a9c80b32249392a2b3afb7682bc40946415c783e | Java | EvanZhou666/pc_DataStructure | /src/main/java/com/pc/LeetCode/题55/Solution.java | UTF-8 | 3,200 | 3.828125 | 4 | [] | no_license | package com.pc.LeetCode.题55;
import com.pc.LeetCode.common.Assert;
import java.util.HashSet;
import java.util.Set;
/**
* 55. 跳跃游戏
* 给定一个非负整数数组 nums ,你最初位于数组的 第一个下标 。
*
* 数组中的每个元素代表你在该位置可以跳跃的最大长度。
*
* 判断你是否能够到达最后一个下标。
*/
public class Solution {
/**
* 判断是否能够跳跃到数组的末尾元素
* @param nums
* @retur... | true |
88b49dc985f1b6d6905b41c30a02794df97d9fc1 | Java | haoxiaolonga/lintCodeEveryday | /src/proxy/Man.java | UTF-8 | 66 | 2.15625 | 2 | [] | no_license | package proxy;
public interface Man {
public void say();
}
| true |
46ba21e8ca276c9fea02d522281578a49bc64378 | Java | themavencoder/mature_recycler | /app/src/main/java/com/aloine/mature_recycler/MainActivity.java | UTF-8 | 1,618 | 2.25 | 2 | [] | no_license | package com.aloine.mature_recycler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Toast;
import com.aloine.mature_recycler.adapter.Adapter;
... | true |
aefc0e534388bfd235616bdf7dd4c772333b8e63 | Java | jleonelpm/ControlEscolar | /src/Formularios/frmPermisosUsuario.java | UTF-8 | 10,965 | 2.109375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Formularios;
import Controladores.JCheckBoxCellRenderer;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.T... | true |
88eb34d35d2522419769e5db60656039f017179b | Java | HoaTran2411/Java | /LearnByMySelf/src/Scanner.java | UTF-8 | 1,002 | 3.578125 | 4 | [] | no_license | import java.io.InputStream;
import java.util.Scanner;
public class Scanner {
public Scanner(InputStream in) {
}
public static void main(String[] args){
System.out.println("Hello world!");
//ép kiểu: sẽ bị mất mát dữ liệu
//không thể ép kiểu string sang int, muốn ép phải dùng kiểu.... | true |
db5021a486cc40d7b5f9554d62c508c5fc9f6aaa | Java | zaharovmykola/zaharovmykola-uniwersytet-second | /src/test/java/com/zaharov/mykola/uniwersytet/second/application/controller/methods/StudentControllerMethodsTest.java | UTF-8 | 4,005 | 2.328125 | 2 | [] | no_license | package com.zaharov.mykola.uniwersytet.second.application.controller.methods;
import com.zaharov.mykola.uniwersytet.second.controller.StudentController;
import com.zaharov.mykola.uniwersytet.second.model.StudentModel;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
imp... | true |
836d8192df87ebc903859ef8e5ddca7458211a8d | Java | sunderam/JobPortal | /src/pojo/ProfilePojo.java | UTF-8 | 4,044 | 2.359375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pojo;
/**
*
* @author Dnyaneshwar
*/
public class ProfilePojo {
private int profileid;
private String fullname;
... | true |
97b2025d9d887ba2fb663265e20904143f61629a | Java | junges521/src_awe | /src/main/java/com/ss/android/ugc/aweme/story/comment/widget/NestedScrollingRecyclerView.java | UTF-8 | 2,398 | 1.84375 | 2 | [] | no_license | package com.ss.android.ugc.aweme.story.comment.widget;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProx... | true |
f6ce96ee5d02e219cfafbf3c31783523448a31f6 | Java | TSSKDevAcademy1/pkrivka_MovieDatabase | /src/main/java/sk/tsystems/akademia/MovieDatabase/dao/TvSeriesDao.java | UTF-8 | 726 | 2.65625 | 3 | [] | no_license | package sk.tsystems.akademia.MovieDatabase.dao;
import sk.tsystems.akademia.MovieDatabase.model.JpaHelper;
import sk.tsystems.akademia.MovieDatabase.model.TvSeries;
public class TvSeriesDao {
public void saveTvSeries(TvSeries tvseries){
JpaHelper.beginTransaction();
JpaHelper.getEntityManager().persist(tvserie... | true |
5c19a8704809a14204cb05f0fc7e3703a1105229 | Java | gsking80/AoC-2016 | /src/test/java/Day15Test.java | UTF-8 | 1,143 | 2.4375 | 2 | [] | no_license | import java.io.FileNotFoundException;
import java.io.FileReader;
import org.assertj.core.api.Assertions;
import org.junit.Test;
public class Day15Test {
@Test
public void test1a() throws FileNotFoundException {
final FileReader fileReader = new FileReader(getClass().getClassLoader().getResourc... | true |
c716158f83e86a19eb15f2f8df504fc3cdb66b11 | Java | PhilippBrei/esplm | /org.pklose.espl/org.pklose.espl.dsl/src-gen/org/pklose/espl/esplm/impl/ActivityImpl.java | UTF-8 | 8,630 | 1.65625 | 2 | [] | no_license | /**
*/
package org.pklose.espl.esplm.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.ec... | true |
b2c586ef1fd15facf7df1ac94d882388a1dcb412 | Java | yinyuxuan2016/springmvc | /src/main/java/org/emall/cn/netty/thread/ClientThread.java | UTF-8 | 3,327 | 2.5625 | 3 | [] | no_license | package org.emall.cn.netty.thread;
import org.emall.cn.netty.handle.ClientHandle;
import org.jboss.netty.bootstrap.ClientBootstrap;
import org.jboss.netty.channel.ChannelFuture;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.socket.... | true |
6eebe33fc737ec61416331dc77d5f7c9f33bc883 | Java | bjorion/euler | /src/main/java/org/jorion/euler/problem/Euler097.java | UTF-8 | 1,400 | 3.484375 | 3 | [] | no_license | package org.jorion.euler.problem;
import java.math.BigInteger;
import org.jorion.euler.util.Utils;
/**
* The first known prime found to exceed one million digits was discovered in 1999, and is a Mersenne prime of the form
* 2^6972593−1; it contains exactly 2,098,960 digits. Subsequently other Mersenne primes, of t... | true |
93d09bb1a6d2d110c571fe7501ff2362e3a571a6 | Java | dragosbuzdugan/vovinam | /vovinam-logic/src/main/java/ro/vovinam/logic/model/BaseEntity.java | UTF-8 | 2,119 | 2.375 | 2 | [] | no_license | package ro.vovinam.logic.model;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.pe... | true |
a4d0ffccf81ad7aa70462f145d2d5641b9cbfee0 | Java | Abal2107/workspace1 | /spring_tut/src/Init_destroy/AutoEngine.java | UTF-8 | 226 | 2.1875 | 2 | [] | no_license | package Init_destroy;
public class AutoEngine {
public void initialize(){
System.out.println("Here to initialize shit");
}
public void destroy(){
System.out.println("Here to destroy shit");
}
}
| true |
ba19a2dde156749a57e2fbf37d07bfb564256c6c | Java | JayDalton/Aufgabe-14-Meldeamt | /Datum.java | UTF-8 | 3,943 | 3.28125 | 3 | [] | no_license | /*############################################################################
Kodierung: UTF-8 ohne BOM - üöä
############################################################################*/
import java.util.ArrayList;
import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;
//#################... | true |
d3e777518024ce87f4c73bd0f43f2b6dc7a14cd9 | Java | rpgmakervx/xbuffer | /xbuffer-kernel/src/main/java/org/easyarch/xbuffer/kernel/rest/controller/HelloController.java | UTF-8 | 1,439 | 2.0625 | 2 | [] | no_license | package org.easyarch.xbuffer.kernel.rest.controller;
import com.alibaba.fastjson.JSONObject;
import com.google.inject.Inject;
import org.easyarch.xbuffer.kernel.ClusterState;
import org.easyarch.xbuffer.kernel.env.Settings;
import org.easyarch.xbuffer.kernel.rest.AbstractRestController;
import org.easyarch.xbuffer.kern... | true |
90fa3b9cc114df2c17635efb2287e67752127931 | Java | rayhan-ferdous/code2vec | /codebase/dataset/t2/149_frag1.java | UTF-8 | 771 | 2.390625 | 2 | [] | no_license | private Text createBrightnessFields(final Composite composite, String string) {
final Button Light = new Button(composite, SWT.RADIO);
Light.setText(string);
Light.setFont(composite.getFont());
SelectionAdapter action = new SelectionAdapter() {
public void widgetSe... | true |
7956982181eda138cb1c53b5b4a9b0b213541a3b | Java | nendraharyo/presensimahasiswa-sourcecode | /com/loopj/android/http/DataAsyncHttpResponseHandler.java | UTF-8 | 7,956 | 2.15625 | 2 | [] | no_license | package com.loopj.android.http;
import android.os.Message;
public abstract class DataAsyncHttpResponseHandler
extends AsyncHttpResponseHandler
{
private static final String LOG_TAG = "DataAsyncHttpRH";
protected static final int PROGRESS_DATA_MESSAGE = 7;
public static byte[] copyOfRange(byte[] paramArrayO... | true |
0b1729f79bfa2486c216dd08b412a08f2fd1b5fe | Java | lodkazibwe/iat | /src/main/java/com/iat/iat/user/service/CategoryService.java | UTF-8 | 359 | 1.859375 | 2 | [] | no_license | package com.iat.iat.user.service;
import com.iat.iat.user.dto.CategoryDto;
import com.iat.iat.user.model.Category;
import java.util.List;
public interface CategoryService {
Category addCat(CategoryDto categoryDto);
Category getCat(int id);
List<Category> getAll();
Category updateCat(CategoryDto categ... | true |
2170b3ce27da882c83a39cdabfbb6bb110e572eb | Java | saatkamp/simpl09 | /org.eclipse.bpel.model/src/org/eclipse/bpel/model/impl/ReferenceVariableImpl.java | UTF-8 | 12,131 | 1.585938 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.eclipse.bpel.model.impl;
import javax.xml.namespace.QName;
import org.eclipse.bpel.model.BPELPackage;
import org.eclipse.bpel.model.PartnerLink;
import org.eclipse.bpel.model.ReferenceType;
import org.eclipse.bpel.model.ReferenceVariable;
imp... | true |
fcf10c95caba8f897899c2dff9422741431e37be | Java | SaumyaSingh034/DataDrivenFramework | /src/com/utility/TestUtility.java | UTF-8 | 1,506 | 2.6875 | 3 | [] | no_license | package com.utility;
import java.util.ArrayList;
import lib.ExcelDataConfig;
public class TestUtility {
static ExcelDataConfig reader;
public static ArrayList<Object[]> getDataEcel(){
ArrayList<Object[]>myData = new ArrayList<Object[]>();
try {
reader = new ExcelDataConfig("D:\\Selenium\\FrameworkPractice... | true |
0c54c14af0dbdbeb5b3136607531a62dbbbc16c5 | Java | Fael123Programming/exercicios-poo | /src/_banksystemproject/classes/accounts/Account.java | UTF-8 | 7,991 | 3.296875 | 3 | [] | no_license | package _banksystemproject.classes.accounts;
import _banksystemproject.classes.ownersofaccounts.*;
import _banksystemproject.exceptions.*;
import java.time.LocalDate;
import java.util.*;
public abstract class Account implements Comparable<Account> {
private static final int CURRENT_ACCOUNT = 1, SAVINGS_ACCOUNT =... | true |
b6ed306ddf3f315953c149e1b3b5cd67c5f80129 | Java | philip1337/ecorp-matrix-viewer | /src/common/src/main/java/fpga/DisplayService.java | UTF-8 | 5,378 | 2.765625 | 3 | [
"MIT"
] | permissive | package fpga;
import types.ImageBuffer;
import types.ImageFrame;
import util.Color;
import util.ImageLoader;
import util.Thread;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBool... | true |
0f2bd94f3a8ab4e8117aa44c5099e284efe22cfc | Java | linlinhu/emin-android-framework | /app/src/main/java/com/emin/digit/mobile/android/meris/framework/serviceRequest/test/IHeWeatherService.java | UTF-8 | 1,724 | 2.3125 | 2 | [] | no_license | package com.emin.digit.mobile.android.meris.framework.serviceRequest.test;
import com.emin.digit.mobile.android.meris.framework.serviceRequest.IServiceRequest;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.ht... | true |
6e6f7034b12128c92feb2d6e005525cb0e2c9ef7 | Java | juno1990ahn/TMS | /app/src/main/java/com/pandaandthekid/tms/verses/TMSVerse.java | UTF-8 | 3,184 | 2.71875 | 3 | [] | no_license | package com.pandaandthekid.tms.verses;
import android.content.Context;
import java.util.ArrayList;
import java.util.Arrays;
public class TMSVerse implements IMemorizable {
private String topic;
private String subTopic;
private String tmsIndex;
private String bibleVersion = "NIV";
private Strin... | true |
72188b5f335809d46d4bd17c5df0376befbbad6a | Java | solozano0725/MenuPlatosSQLiteAndroid | /app/src/main/java/com/edu/uac/tallersegundocorte/NuevoPlatoActivity.java | UTF-8 | 3,954 | 2.125 | 2 | [] | no_license | package com.edu.uac.tallersegundocorte;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android... | true |
bc5c7a1b8c059ce8bd3da3dd1568c23128ab4a43 | Java | hirune4791dev/doubleVideos | /app/src/main/java/com/github/hirune4791dev/doublevideos/MainActivity.java | UTF-8 | 4,032 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.hirune4791dev.doublevideos;
import android.app.Activity;
import android.content.Context;
import android.graphics.PixelFormat;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.PowerManager;
import android.util.Log;
import android.view.SurfaceHolder;
import andro... | true |
3a03a6db9668987d30f5c58e4a2717f99e5c33ad | Java | akulinski/notesservice | /src/main/java/com/akulinski/notesservice/core/components/repositories/NotesRepository.java | UTF-8 | 598 | 1.9375 | 2 | [] | no_license | package com.akulinski.notesservice.core.components.repositories;
import com.akulinski.notesservice.core.components.entites.NoteEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.Optional;
@Repository
public... | true |
a20cceb9c247135169be687226a02a9fa7379721 | Java | Jan777/3ProgAv6 | /cliente/src/main/java/juego/CargadorImagen.java | ISO-8859-1 | 525 | 2.75 | 3 | [
"MIT"
] | permissive | package juego;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URL;
import javax.imageio.ImageIO;
import javax.swing.JOptionPane;
public class CargadorImagen {
public static BufferedImage cargarImagen(String path) {
try {
return ImageIO.read(CargadorImagen.class.getResource(pa... | true |
c9c16cff09877f9a8f788fcf951608e6cd680f50 | Java | budak7273/Sonar-Core | /src/main/java/sonar/core/network/sync/ISyncPart.java | UTF-8 | 459 | 2.15625 | 2 | [
"MIT"
] | permissive | package sonar.core.network.sync;
import io.netty.buffer.ByteBuf;
import net.minecraft.nbt.NBTTagCompound;
import sonar.core.helpers.NBTHelper.SyncType;
public interface ISyncPart{
public boolean equal();
public void writeToBuf(ByteBuf buf);
public void readFromBuf(ByteBuf buf);
public void writeToNBT(NBT... | true |
023c9b06d255b4e5d2b74c1d9ee90c86f6d91fad | Java | Morgan163/cinema | /Project/src/main/java/ui/windows/OperatorWindow.java | UTF-8 | 6,631 | 2.484375 | 2 | [] | no_license | package ui.windows;
import com.vaadin.ui.*;
import model.user.User;
import model.user.UserRole;
import modeloperations.DataManager;
import org.apache.commons.lang3.StringUtils;
import java.util.HashSet;
import java.util.Set;
public class OperatorWindow extends AbstractCreateWindow {
private User operator;
... | true |
8de13982822badcc61847c51fd93f287fe28a524 | Java | e3-cerruti/AoC2020 | /src/com/e3civichigh/aoc/y2020/day17/Day17.java | UTF-8 | 2,414 | 3.296875 | 3 | [] | no_license | package com.e3civichigh.aoc.y2020.day17;
import java.io.InputStream;
import java.util.Scanner;
public class Day17 {
private final InputStream dataFile;
private final Grid<Cube> grid = new Grid<>();
private final Grid<Cube> hyperGrid = new Grid<>();
public static void main(String[] args) {
Day... | true |
33a7b852c3833e3ab538e356f59ef51d8a640fcb | Java | micwing/zhgd | /tcsm/tcsm-ws/src/main/java/com/zhhw/znh/yfb/tcsm/push/PushTel.java | UTF-8 | 802 | 2.09375 | 2 | [] | no_license | package com.zhhw.znh.yfb.tcsm.push;
import java.util.List;
import com.zhhw.znh.yfb.tcsm.beans.entity.TcsmMessagePersonRecordEntity;
import com.zhhw.znh.yfb.tcsm.beans.entity.TcsmMessagePushPersonEntity;
import com.zhhw.znh.yfb.tcsm.service.interfaces.ITcsmMessagePersonRecordService;
/**
*
* @author dingkai
*
*/
... | true |
10fb1d9e644a6f40f97fb43cc1597a00e1119c66 | Java | kangmw0702/TestKang | /src/main/Java/kr/ac/jejunu/DaoFactory.java | UTF-8 | 390 | 1.90625 | 2 | [] | no_license |
package kr.ac.jejunu;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class DaoFactory {
@Bean
public ProductDao productDao() {
return new ProductDao(connectionMaker());
}
@Bean
public ConnectionMaker... | true |
ea9ea11fb62cb5167307730233c748d3c9482d66 | Java | pigsquare/elibrary-backend | /src/main/java/db2/elibrary/entity/BorrowRecord.java | UTF-8 | 566 | 1.96875 | 2 | [] | no_license | package db2.elibrary.entity;
import lombok.Data;
import javax.persistence.*;
import java.sql.Date;
import java.sql.Timestamp;
@Data
@Entity
@Table
public class BorrowRecord {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@ManyToOne
private User user;
@ManyToOne... | true |
30e71acff411dd08c379923046ac36c6a64115e4 | Java | pts1006/ShareTest-1 | /TestShop/src/com/shop/cart/service/CartService.java | UTF-8 | 305 | 1.679688 | 2 | [] | no_license | package com.shop.cart.service;
import java.util.List;
import com.shop.cart.vo.CartVO;
public interface CartService {
List<CartVO> selectCartList();
CartVO selectCart(String id);
public int insertCart(CartVO vo);
public int updateCart(CartVO vo);
public int deleteCart(CartVO vo);
}
| true |
42c5d71548adaec909b9464f86106caa0b33eab9 | Java | jonhnanthan/Educa | /educa/src/com/educa/activity/CompleteExerciseStep1Activity.java | UTF-8 | 2,335 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive |
package com.educa.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.ImageButton;
import com.ed... | true |
45da0d81c07c77ea70ec51130e19fcb9df4fd3f5 | Java | codescape/jira-scrum-poker | /src/test/java/de/codescape/jira/plugins/scrumpoker/model/CardTest.java | UTF-8 | 1,674 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package de.codescape.jira.plugins.scrumpoker.model;
import org.junit.Test;
import static de.codescape.jira.plugins.scrumpoker.model.Card.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
public class CardTest {
@Test
public void cardsDifferIfAssignableFlagIsDiffe... | true |
73be2b598f291f070520c8b55f282cc530414242 | Java | ramki1980/practice_ant | /src/MyHandler.java | UTF-8 | 2,808 | 3.046875 | 3 | [] | no_license |
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.util.ArrayList;
import java.util.List;
/**
* MyHandler class defines the actions to be taken
* in response to SAX Parser callback events.
*/
public class MyHandler extends DefaultHandler {
... | true |
4f3230dc440986de490f498afa0a4439ff19c078 | Java | mvallim/java-jna-example | /src/main/java/br/com/jna/Application.java | UTF-8 | 591 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package br.com.jna;
import java.io.IOException;
import java.util.logging.Logger;
public class Application {
private static final Logger LOGGER = Logger.getLogger(Application.class.getName());
public static void main(final String[] args) throws IOException {
final FunctionsNative functionsV1 = new Functions... | true |
b13c37bb1028223fa6759d503ea9ab3a45534f17 | Java | IcedCode/Atlas | /src/net/avicus/atlas/rotation/folder/LocalMap.java | UTF-8 | 700 | 2.421875 | 2 | [
"MIT"
] | permissive | package net.avicus.atlas.rotation.folder;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
public class LocalMap implements MapFolder {
private File folder;
public LocalMap(File folder) {
this.folder = folder;
}
@Overr... | true |
78d4d6312ef41c99acd2fa65bb8f47dbabbf0299 | Java | glpg/autofillsys | /src/com/kk/AutoFillSystem/utility/Order.java | UTF-8 | 1,087 | 2.6875 | 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.kk.AutoFillSystem.utility;
import java.util.ArrayList;
import java.util.Date;
/**
*
* @author Yi
* info c... | true |
129ad2ef721bf6e0e998ece905c75f1c0412562f | Java | gasches/spring-boot-example-app | /src/main/java/cc/gasches/geodata/controller/ExportController.java | UTF-8 | 1,634 | 1.929688 | 2 | [
"MIT"
] | permissive | package cc.gasches.geodata.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
i... | true |
d336ced0b250c03f1b59e903f88e182798ec52ed | Java | lorenzhelle/DLRG | /app/src/main/java/com/example/loren/dlrg/MainListActivity.java | UTF-8 | 663 | 2.25 | 2 | [] | no_license | package com.example.loren.dlrg;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.example.loren.dlrg.Model.Kurs;
public class MainListActivity extends AppCompatActivity implements KursFragment.OnListFragmentInteractionListener{
@Override
pro... | true |
e07946c969306ccb60219b56253ff07f874afbfb | Java | tiandongdong123/Administrator | /src/main/java/com/wf/controller/SystemController.java | UTF-8 | 2,042 | 2.0625 | 2 | [] | no_license | package com.wf.controller;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframe... | true |
dabc75b6bd7a230e2b3bee9f95a2475076a52f45 | Java | bellmit/leasing-tmall | /src/main/java/com/qimen/api/response/CombineitemQueryResponse.java | UTF-8 | 1,255 | 1.921875 | 2 | [] | no_license | package com.qimen.api.response;
import com.qimen.api.QimenResponse;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import java.util.List;
/**
* TOP API: taobao.qimen.combineitem.query response.
*
* @author top auto create
* @since 1.0, null
*/
public class... | true |
34e3b071d2637ecc8cd679e4f492dffa5319e748 | Java | vitalik199415/RozkladGenerator | /pojo/Room.java | UTF-8 | 516 | 2.453125 | 2 | [] | no_license | package pojo;
public class Room {
private int id;
private int count_seating;
private Boolean isLaboratory;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getCount_seating() {
return count_seating;
}
public void setCount_seating(int count_seating) {
this... | true |
2e1a3c0f02c86a29a18a8db88ee37fc963abd4a4 | Java | bellmit/jipinshop | /app/src/main/java/com/example/administrator/jipinshop/adapter/FreeAdapter.java | UTF-8 | 12,805 | 2.34375 | 2 | [] | no_license | package com.example.administrator.jipinshop.adapter;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.os.CountDownTimer;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.SparseArray;
import android.view.LayoutInflate... | true |
b9ccecb03b2d061dcb97755f3614edad1e781581 | Java | sanguolingzi/yhtz | /customer/src/main/java/com/yinhetianze/business/customer/executor/UpdateCustomerPhotoExecutor.java | UTF-8 | 5,431 | 2.046875 | 2 | [] | no_license | package com.yinhetianze.business.customer.executor;
import com.yinhetianze.business.customer.model.BusiCustomerModel;
import com.yinhetianze.business.customer.model.BusiUpdatePhoneModel;
import com.yinhetianze.business.customer.service.busi.CustomerBusiService;
import com.yinhetianze.business.customer.service.info.Cus... | true |
41fe8d1e4c4208c0f1b08cc989ba7a1b6dbf8bd2 | Java | oumarxy/Android-Code-Demos | /ModularizationDemo/library/src/main/java/io/innofang/library/base/BaseSimpleAdapter.java | UTF-8 | 1,678 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package io.innofang.library.base;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
import java.util.List;
/**
* Author: Inno Fang
* Time: 2017/6/4 10:40
* Description:
*/
public abstract class BaseSimpleAd... | true |
d1dd2e8327556966282f6c54a6067103b96690c6 | Java | SergeyPodgayskiy/-Java01_2017-Task_2.Algorithmization.Podgaysky | /src/java/com/epam/task2/main/Main.java | UTF-8 | 607 | 2.46875 | 2 | [] | no_license | package com.epam.task2.main;
import com.epam.task2.test.SortTester;
/**
* @author sergey
* created on 24.03.2017
*/
public class Main {
public static void main(String[] args) {
SortTester sortTester = new SortTester();
sortTester.testSelectionSort();
sortTester.testInsertionSor... | true |
8fd133f850d03e9db373ac6699000c12eead47ad | Java | ShruthiDhadesugur/iTransform | /JavaAssignments/src/com/basicassignment/Question9.java | UTF-8 | 1,333 | 3.78125 | 4 | [] | no_license | package com.basicassignment;
public class Question9 {
int size;
int arr[];
int top;
Question9(int size) {
this.size = size;
this.arr = new int[size];
this.top = -1;
}
public void push(int pushedElement) {
if (!isFull()) {
top++;
arr[top] = pushedElement;
System.out.println... | true |
866e72bdf247ac7ad1bfa917d160c8be7cabf447 | Java | ayalajt/MyPlatformer | /src/Entity/PlayerSave.java | UTF-8 | 510 | 3.046875 | 3 | [] | no_license | package Entity;
/**
* The PlayerSave class is used as the player's default health
* and life state
*/
public class PlayerSave {
private static int lives = 3;
private static int health = 3;
public static void init() {
lives = 3;
health = 3;
}
public static int getLives() {
return lives... | true |
4c79f2d619d04e328068eceb24b8b8fde6275dae | Java | moonwebmast/isource-query | /query-expression/src/main/java/com/isource/query/LogicInterface.java | UTF-8 | 750 | 2.609375 | 3 | [] | no_license | package com.isource.query;
/**
* Where 条件中的逻辑运算接口生命
* @author pangyl
*/
public interface LogicInterface extends QueryInterface{
/**
* 重写排序对象
* @return
*/
@Override
OrderByInterface orderBy();
/**
* 获取查询条件字段对象
* @param fieldName
* @return 查询条件字段对象
*/
FieldElem... | true |
d055fc101f647243de0fcb376a220eeafae846f0 | Java | AdityaPraneeth/UtilityApp | /SupportIssueUI/src/com/SupportUi/forms/BukAdjPannel.java | UTF-8 | 3,207 | 1.953125 | 2 | [] | no_license | package com.SupportUi.forms;
import java.awt.Color;
import java.awt.Label;
import java.awt.Panel;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileNotFoundException;
import java.sql.SQLException;
import java.util.logging.Level;
import j... | true |
14d09bcf1268e13a745fd2f527ead093fe60aaeb | Java | afree8909/android_canary | /app/src/main/java/com/afree/canary/sample/develop/adapter/RecyclerStaggerAdapter.java | UTF-8 | 1,555 | 2.203125 | 2 | [] | no_license | package com.afree.canary.sample.develop.adapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.afree.canary.R;
import com.afree.canary.base.BaseController;
import com.afree.canary.sample.develop.controller.RecyclerItemController;
import com.afree.canary.utils.... | true |
0db17b5b4e81038b7f5729908032b829fd7c3455 | Java | brandonfox/Zork-OOC | /src/com/company/Entities/Skeleton.java | UTF-8 | 579 | 2.671875 | 3 | [] | no_license | package com.company.Entities;
import com.company.Entities.Abstract.Monster;
import com.company.Items.EquippableItem;
import com.company.Items.Storage.EquipmentSlots;
public class Skeleton extends Monster {
public Skeleton(int level){
super("Skeleton",level,40,7,2,60,1,2,3,1,15);
}
@Override
... | true |
b2bb3daf59ba25a9cc0b48c9dc0bbdab845947ea | Java | zeitoun/my-notes | /src/com/dev/admin/common/base/BaseServlet.java | UTF-8 | 5,536 | 2.1875 | 2 | [] | no_license | /*
* Copyright
* ------------------------------------------------------------------------
* (C) Copyright 2006, Xperteam
*
* Xperteam retains all ownership rights to this source code. No
* warranty is expressed or implied by Xperteam, if Xperteam grants
* the right to use or re-use this source code.
* ---------... | true |
80de03e8b18a5492e8eb0598dee5fcaea3ec925e | Java | ericasundblom/codetest_b_backend_spring | /src/main/java/codetest/codetest/controllers/QuestionController.java | UTF-8 | 2,998 | 3.03125 | 3 | [] | no_license | package codetest.codetest.controllers;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annot... | true |
bb9a70c0cb9e8ad5b9f51ba75a70ed9c4cfcbd22 | Java | ilyg8853/PetShopping | /app/src/main/java/cn/lovepet/shops/view/ui/mvp/presenter/GoodsJdHomePresenterimpl.java | UTF-8 | 2,078 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package cn.lovepet.shops.view.ui.mvp.presenter;
import android.content.Context;
import com.google.gson.Gson;
import java.io.IOException;
import java.io.InputStream;
import cn.lovepet.shops.base.Constants;
import cn.lovepet.shops.util.FileUtils;
import cn.lovepet.shops.view.ui.activity.content.albumhomegoods.HomeIn... | true |
21e1a18782dc11597b18fe32e0674ac4a4efdaba | Java | ctllin/spring-cloud | /spring-cloud-servcie-impl-controller-test/src/main/java/com/ctl/test/SpringCloudServcieImplControllerTestApplication.java | UTF-8 | 691 | 1.8125 | 2 | [] | no_license | package com.ctl.test;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.or... | true |
3a1de25a0e1e02cf647e3fb399a474f784fda2a1 | Java | EastsidePreparatorySchool/APSDE | /VEP/UITest/src/uitest/LogIn.java | UTF-8 | 13,163 | 2.296875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package uitest;
/**
*
* @author mshenoy_2
*/
public class LogIn extends javax.swing.JPanel {
/**
* Creates new form LogIn... | true |
e41e32dbf191aa8329e0b54bfbb4d94afb232121 | Java | gilglick/2Learn | /app/src/main/java/com/example/a2learn/utility/DialogDate.java | UTF-8 | 1,066 | 2.46875 | 2 | [] | no_license | package com.example.a2learn.utility;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import java.util.Calendar;
import java.util.Objects;
public final class DialogDate {
public static DatePickerDialog.OnDateSetListen... | true |
e0ec391801cb81a702706aa1cfb35d4a86dfbfb2 | Java | cym2018/RRIMS | /src/main/java/xyz/cym2018/controller/Customer.java | UTF-8 | 3,475 | 2.3125 | 2 | [] | no_license | package xyz.cym2018.controller;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestC... | true |
1e9786b6eaaed5444f12224941ff214208fbbf47 | Java | 99nikola/simple-compailer | /ast/Type.java | UTF-8 | 530 | 2.484375 | 2 | [] | no_license | package ast;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public enum Type {
integer,
_double,
string,
_char,
bool;
public static final Map<Type, String> name = Stream.of(new Object[][] {
{integer, "integer"},
{_double, "double"},
{string, "s... | true |
1cedfceadbe799e48cb38f9e34f0358c19bfa1d8 | Java | KristynaCernaCZ/MallProject | /Space.java | UTF-8 | 161 | 1.515625 | 2 | [] | no_license |
public class Space {
public String type;
public String paymentMethod;
public int balance;
public Employee employee;
public int size;
}
| true |
f829e03f1bb6aa1a08fc6283becbd4281fb3f991 | Java | zhengwenzhan/java_design | /src/main/java/bridge/FlyingMagicWeaponImpl.java | UTF-8 | 214 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package bridge;
import static util.PrintUtil.nyPrint;
/**
* Created by zhengwenzhan on 2019-01-28
*/
public abstract class FlyingMagicWeaponImpl extends MagicWeaponImpl {
public abstract void flyImpl();
}
| true |
b7e07c626613082d0edd9d9a05eb3938d89baa91 | Java | RWolfing/DungeonRunner | /src/de/dungeonrunner/nodes/SpriteNode.java | UTF-8 | 644 | 2.59375 | 3 | [] | no_license | package de.dungeonrunner.nodes;
import org.jsfml.graphics.Color;
import org.jsfml.graphics.FloatRect;
import org.jsfml.graphics.RenderStates;
import org.jsfml.graphics.RenderTarget;
import org.jsfml.graphics.Sprite;
public class SpriteNode extends SceneNode{
protected Sprite mSprite;
public SpriteNode(Sprite spr... | true |
a50152c88f6d9df6edfd921e4ed622510750549a | Java | thilotanner/phoibe | /app/controllers/ActivityLogEntries.java | UTF-8 | 973 | 2.125 | 2 | [] | no_license | package controllers;
import models.ActivityLogEntry;
import play.db.Model;
import java.util.ArrayList;
import java.util.List;
public class ActivityLogEntries extends ApplicationController {
public static void index(int page, String orderBy, String order, String search) {
if (page < 1) {
page... | true |
fe87e50fe9839f6fa9464f22c669134ccf5c88e1 | Java | byeolimLee/TravelPlanner | /app/src/main/java/com/starim/android/apps/travelplanner/db/DatabaseManager.java | UTF-8 | 11,517 | 2.34375 | 2 | [] | no_license | package com.starim.android.apps.travelplanner.db;
import android.content.Context;
import com.j256.ormlite.stmt.QueryBuilder;
import com.starim.android.apps.travelplanner.TravelItemCategory;
import com.starim.android.apps.travelplanner.model.TravelItem;
import com.starim.android.apps.travelplanner.model.TravelItemAcco... | true |
ff37b60575d208791dd7e83354422a2833cbe1c5 | Java | bestAmy/test | /src/cn/whpu/practice03/one/SameString.java | UTF-8 | 688 | 3.359375 | 3 | [] | no_license | package cn.whpu.practice03.one;
import java.util.Scanner;
public class SameString {
public static void main(String[] args) {
System.out.println("请输入字符串:");
Scanner sc = new Scanner(System.in);
String s1=sc.next();
System.out.println("请输入要查找的字符串:");
Scanner input = new Scann... | true |
2b80b02229907e8906d9f490ebbf4a408c2e254c | Java | Eric1K/Fortnite-Server-Ping-Tool | /src/Panel.java | UTF-8 | 7,034 | 2.265625 | 2 | [] | no_license | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.text.DefaultCaret;
pu... | true |
ad8d5793947152b84c05b5f658d2efef7a89459a | Java | Inkyl/gourpfourapp | /src/main/java/group/four/todo/controller/UserController.java | UTF-8 | 1,957 | 2.3125 | 2 | [
"MIT"
] | permissive | package group.four.todo.controller;
import group.four.todo.model.User;
import group.four.todo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* @className: UserController
* @description: TODO 类描述
* @author: zxk
* @date: 202... | true |
1fb667cb39941705665888408259a785329fb477 | Java | janelizhen/sample | /java_simulator_db/edu/uga/db/sql/Schema.java | UTF-8 | 1,403 | 3.140625 | 3 | [] | no_license | package edu.uga.db.sql;
import java.util.*;
/**
* Class defines a schema object
* @author Li Zhen
* @version 0.1
*/
public class Schema {
List<Attribute> attributes;
public Schema(String attributes,String domains,String constraints){
this.attributes = new ArrayList<Attribute>();
String[] att... | true |
6692cb91146f1126cb9af880fa5c3567c8659af0 | Java | PDhanrajnath/JAVA-Assignments | /Assignment#7/2/src/Two.java | UTF-8 | 1,309 | 4.125 | 4 | [] | no_license | abstract class Cycle{
public abstract void balance();
}
//inheriting parent class
class Unicycle extends Cycle{
public void balance(){
System.out.println("The cost of Unicycle start with RS 2500. ");
}
}
//inheriting parent class
class Bicycle extends Cycle{
public void balance(){
System... | true |
d27a894cf3ddb5391c5579e8ecc98d7b62300461 | Java | jtlai0921/PU1533-Android-3D---- | /CH09/Pingpong3D/src/com/f/util/MatrixState.java | BIG5 | 7,549 | 2.8125 | 3 | [] | no_license | package com.f.util;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import android.opengl.Matrix;
public final class MatrixState {
private static float[] currMatrix = null ;//ثeܴx}
private static float[] mProjMatrix = new float[16];//4x4x} v
private static float[] mCamera... | true |
63395276e14351a5c51bb622d610bc61ce3b1500 | Java | hashish93/last-mile-backend | /SMS/src/main/java/com/appzoneltd/lastmile/microservice/sms/dao/repository/CustomerRepository.java | UTF-8 | 346 | 1.671875 | 2 | [] | no_license | package com.appzoneltd.lastmile.microservice.sms.dao.repository;
import com.appzoneltd.lastmile.microservice.sms.dao.entity.CustomerEntity;
import org.springframework.data.repository.PagingAndSortingRepository;
/**
* Repository : Customer.
*/
public interface CustomerRepository extends PagingAndSortingRepository<C... | true |
b91da36d9ae15b073c8fe34dcff963fa95abb5ab | Java | Monkier-houge/test | /src/main/java/com/meethere/entity/vo/OrderVo.java | UTF-8 | 880 | 1.890625 | 2 | [] | no_license | package com.meethere.entity.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.time.LocalDateTime;
import java.... | true |
00a09cc748db47e9ce932f0889079564cf0a512a | Java | zhangqifan1/MyExpandableListView | /app/src/main/java/com/example/anadministrator/myexpandablelistviewdemo/MainActivity.java | UTF-8 | 2,162 | 2.375 | 2 | [] | no_license | package com.example.anadministrator.myexpandablelistviewdemo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ExpandableListView;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends AppCompatActivity {
pr... | true |
b934ed7a8ef09b8d1d59011b32f1bb4b27b3cb3e | Java | rafaelzatarin/CursoJava-ProjFaculdade | /Aulas/Var_Oper_Func/src/Exercicios1.java | UTF-8 | 597 | 3.796875 | 4 | [
"MIT"
] | permissive | public class Exercicios1 {
private String helloWord(String str) {
return "A palavra possuí " + str.length() + " caracteres";
}
private int somar( int n1, int n2) {
return n1 + n2;
}
private float calc(float x, float y, float z) {
return (((x + y) * x) / z);
}
publ... | true |
f2a83601d385a50472a281c98b54a907489a899d | Java | zhongxingyu/Seer | /Diff-Raw-Data/20/20_2719ea95f964902ef66c97bed9023cf970b99920/RecentlyTreeGwtRPCDS/20_2719ea95f964902ef66c97bed9023cf970b99920_RecentlyTreeGwtRPCDS_s.java | UTF-8 | 14,631 | 1.507813 | 2 | [] | no_license | /*
* Metadata Editor
* @author Jiri Kremser
*
*
*
* Metadata Editor - Rich internet application for editing metadata.
* Copyright (C) 2011 Jiri Kremser (kremser@mzk.cz)
* Moravian Library in Brno
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | true |