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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
07264bd1987b4dc3aebd2b97ef2980070ba65fbf | Java | seven-of-zero/FGPtest | /src/main/java/com/soz/service/CommentService.java | UTF-8 | 191 | 1.664063 | 2 | [] | no_license | package com.soz.service;
import com.soz.pojo.Comment;
import java.util.List;
public interface CommentService {
void add(Comment comment);
List<Comment> show(Integer article);
}
| true |
697e1244e66c587e3331fd5be5498768390d5ca1 | Java | kokodavid/Foodie | /app/src/main/java/com/koko/foodie/Activities/Search/SearchPresenter.java | UTF-8 | 1,325 | 2.03125 | 2 | [] | no_license | package com.koko.foodie.Activities.Search;
import androidx.annotation.NonNull;
import com.koko.foodie.Models.Food;
import com.koko.foodie.Models.Meals;
import com.koko.foodie.Utils.Utils;
import java.util.ArrayList;
import java.util.List;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
... | true |
4f46916caced263cedf687f09bf0b669c3863d16 | Java | brfarlow/Java-Programming-mooc.fi | /2013-OOProgrammingWithJava-PART2/week7-week7_04.ThingSuitcaseAndContainer/src/Container.java | UTF-8 | 1,046 | 3.28125 | 3 | [] | no_license |
import java.util.ArrayList;
/*
* 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.
*/
/**
*
* @author Xorfos
*/
public class Container {
private int maxWeight;
private int to... | true |
9e9260a455c1c4225ec857f543d97ec418c679f7 | Java | soranico/spring-learn | /spring-learn/src/main/java/com/soranico/service/impl/MyServiceMapImpl02.java | UTF-8 | 450 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package com.soranico.service.impl;
import com.soranico.service.MyServiceMap;
import org.springframework.stereotype.Service;
/**
* <pre>
* @title com.soranico.service.impl.MyServiceMapImpl01
* @description
* <pre>
* 全都要2
* </pre>
*
* @author soranico
* @version 1.0
* @date 2020/5/10
*... | true |
12032bb7f44557ecc1248410c5ea4a3a3234a82e | Java | 99550857/employee | /src/com/managesystem/model/Department.java | UTF-8 | 1,375 | 2.515625 | 3 | [] | no_license | package com.managesystem.model;
/**
* @author lihui
* Created by 99550 on 2017/12/20.
*/
public class Department {
private Integer id;
private String name;
private String introduction;
private String contactway;
public Department(Integer id, String name, String introduction, String contactway)... | true |
1cbbf8596cac74033a1e2abf69eacecf8503b31f | Java | popant/uc | /src/main/java/com/channelsoft/usercenter/consumable/controller/ConsumeController.java | UTF-8 | 2,836 | 1.921875 | 2 | [] | no_license | package com.channelsoft.usercenter.consumable.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.beans.factory.annotation.Autowired;
import ... | true |
3caa30a405d358ceac4a1f9b9281c5e165e92064 | Java | JayVae/parking | /停车场项目/parking/.svn/pristine/6a/6af894a7eb9e7e76bf9eb5bac4dfd3ece2cbcd4e.svn-base | UTF-8 | 1,156 | 2 | 2 | [] | no_license | package com.hu.parking.entity;
import java.io.Serializable;
public class Freetimetmp implements Serializable {
private Object freetimetmpid;
private Object orduserid;
private String name;
private String isvalid;
private String note;
private static final long serialVersionUID = 1L;
pu... | true |
a8cd70df838185376b61a6526f8613f24bdfd3bf | Java | Sakue34/CarnivoreHerbivore | /src/main/java/pl/edu/pwr/carnivoreherbivore/simulation/SimulationParameters.java | UTF-8 | 4,545 | 2.6875 | 3 | [] | no_license | package pl.edu.pwr.carnivoreherbivore.simulation;
/**
* Klasa przechowująca parametry symulacji.
*/
public final class SimulationParameters {
public final int mapWidth;
public final int mapHeight;
public final float speedOfSimulationMultiplier;
public final int startingNumberOfPlants;
public fina... | true |
48c4890dae4ab63c774084823b69564a70697ae4 | Java | folio-org/mod-circulation | /src/main/java/org/folio/circulation/support/http/client/VertxWebClientOkapiHttpClient.java | UTF-8 | 6,673 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package org.folio.circulation.support.http.client;
import static java.time.temporal.ChronoUnit.SECONDS;
import static org.folio.circulation.support.results.Result.failed;
import static org.folio.circulation.support.results.Result.succeeded;
import static org.folio.circulation.support.http.OkapiHeader.OKAPI_URL;
import... | true |
43d87867ed8e33dccb3207e8169ae3c4abb06671 | Java | icotting/SETwitter | /Java EE/src/main/java/edu/unl/raikes/se/twitter/service/UserService.java | UTF-8 | 1,000 | 2.375 | 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 edu.unl.raikes.se.twitter.service;
import edu.unl.raikes.se.twitter.entity.UserProfile;
/**
*
* @author iancottingham
*/
p... | true |
9b351372055841d6329eda669cd316039df971b0 | Java | z7-x/learning | /jpa/src/main/java/learning/features/lambda/service/impl/NoReturnNoParam.java | UTF-8 | 259 | 1.882813 | 2 | [] | no_license | package learning.features.lambda.service.impl;
/**
* @Classname NoReturnNoParam
* @Description TODO
* @Date 2020/8/17 9:18 上午
* @Author z7-x
*/
@FunctionalInterface
public interface NoReturnNoParam {
/**无参无返回值*/
void method();
}
| true |
3e81a3d71db6b090a6d4da8ea85053bb3c8b8c38 | Java | kevinlowe0x3F7/monopolyjk | /GoToJail.java | UTF-8 | 822 | 3.359375 | 3 | [] | no_license | /** Go to jail piece of the Monopoly board. Sets the player's inJail value
* to true and sends them to jail.
* @author Kevin Lowe
*/
public class GoToJail implements BoardPiece {
/** The name of this piece. */
private final String _name = "Go to Jail";
@Override
public boolean effect(Player curren... | true |
4f43968213758cc51aaf080b57d497046ebd9a7c | Java | HubertYoung/AcFun-Android | /library/component_update/src/main/java/com/hubertyoung/update/AppIncrementalUpdateUtil.java | UTF-8 | 5,634 | 2.359375 | 2 | [] | no_license | package com.hubertyoung.update;
import android.net.Uri;
import android.util.Log;
import com.hubertyoung.common.utils.os.AppUtils;
import com.hubertyoung.common.utils.ToastUtil;
import java.io.File;
import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.function... | true |
c0a73c5c869c93d4e46f57007a9e969361bba19c | Java | kiborg007/mapster | /src/main/java/ch/ua/model/Coordinates.java | UTF-8 | 1,823 | 2.140625 | 2 | [] | no_license | package ch.ua.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.Xm... | true |
b91b13304773d81f87783686405f133fcd2de95c | Java | parkjaewon1/JavaClass | /JavaClass/src/ch14/Color1.java | UTF-8 | 530 | 3.1875 | 3 | [] | no_license | package ch14;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class Color1 extends Frame {
public Color1() {
int r = (int)(Math.random()*256);
int g = (int)(Math.random()*256);
int b = (int)(Math.random()*256);
setBackground(new Color(r, g, b));
setSize(200, ... | true |
0093b0986297f92800564b2f32de2755bf67bbdb | Java | bronwen-cassidy/talent-evolution | /talent-studio-views/src/main/java/com/zynap/talentstudio/web/analysis/reports/AppraisalReportMultiController.java | UTF-8 | 3,588 | 2.046875 | 2 | [] | no_license | /*
* Copyright (c) Zynap Ltd. 2006
* All rights reserved.
*/
package com.zynap.talentstudio.web.analysis.reports;
import com.zynap.talentstudio.analysis.reports.AppraisalSummaryReport;
import com.zynap.talentstudio.web.utils.controller.ZynapMultiActionController;
import com.zynap.talentstudio.web.utils.RequestUtil... | true |
9c5304b2325e2947125097cd8b2bf985620d9e3b | Java | HongZeBin98/BeanMusic | /app/src/main/java/com/example/hongzebin/beanmusic/main/view/activity/MainActivity.java | UTF-8 | 5,378 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | package com.example.hongzebin.beanmusic.main.view.activity;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.w... | true |
0a21f6995f1b3091ffe46e6a2ca6d5a0e0b65433 | Java | poshjosh/newsminute | /common/src/main/java/com/looseboxes/idisc/common/notice/PromptWifiOnly.java | UTF-8 | 822 | 2.046875 | 2 | [] | no_license | package com.looseboxes.idisc.common.notice;
import android.content.DialogInterface;
import android.support.annotation.StringRes;
import com.looseboxes.idisc.common.util.Pref;
/**
* Created by Josh on 10/25/2016.
*/
public class PromptWifiOnly extends AbstractDialogManager {
public PromptWifiOnly(@StringRes in... | true |
7ce7fe578e00f87b06360b82315d45d770193998 | Java | franklinmarcano1970/fermat | /TKY/library/api/fermat-tky-api/src/main/java/com/bitdubai/fermat_tky_api/all_definitions/enums/ArtistAcceptConnectionsType.java | UTF-8 | 2,338 | 2.75 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | package com.bitdubai.fermat_tky_api.all_definitions.enums;
import com.bitdubai.fermat_api.layer.all_definition.enums.interfaces.FermatEnum;
import com.bitdubai.fermat_api.layer.all_definition.exceptions.InvalidParameterException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* ... | true |
62b37053a95a18278c7b52cad2c61f873a86036d | Java | Arquisoft/Loader_i2a | /src/test/java/main/asw/parser/ParserTest.java | UTF-8 | 2,955 | 2.421875 | 2 | [
"Unlicense"
] | permissive | package main.asw.parser;
import main.asw.user.User;
import org.junit.Test;
import java.io.IOException;
import java.text.ParseException;
import static junit.framework.TestCase.assertEquals;
/**
* Created by nicolas on 15/02/17.
*/
public class ParserTest {
private final static String BASE_PATH = "src/test/resour... | true |
d3a948cb3a829eb4def7afa34ea492803bfdfbfd | Java | simplay/JTetris | /src/models/tiles/RevSquigeling.java | UTF-8 | 369 | 2.8125 | 3 | [] | no_license | package models.tiles;
public class RevSquigeling extends Tile{
public RevSquigeling() {
super(5);
}
@Override
public void initShape(){
this.shape.setXAt(0, 7);
this.shape.setXAt(1, 8);
this.shape.setXAt(2, 6);
this.shape.setXAt(3, 7);
this.shape.setYAt(0, 0);
this.shape.setYAt(1, 1);
this.sha... | true |
d7d635356af84d18a91400944b9ffcd70cae11c0 | Java | agrobost/CocoPanda | /app/src/main/java/agrumlab/cocopanda/scene/game/game_objects/Panda.java | UTF-8 | 3,307 | 2.53125 | 3 | [] | no_license | package agrumlab.cocopanda.scene.game.game_objects;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.view.MotionEvent;
import java.util.Iterator;
import agrumlab.cocopanda.ressources.CanvasManager;
import agrumlab.cocopanda.ressources.EnumBitmaps;
import agrumlab.cocopanda.ressources.Pr... | true |
515f35ba6c577efec8a2595ec1713bbd1643e680 | Java | kimdia200/KH_classTime | /spring_workspace/jdk-api/src/com/kh/jdk8/stream/StreamStudy.java | UTF-8 | 8,019 | 3.65625 | 4 | [] | no_license | package com.kh.jdk8.stream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.IntSummaryStatistics;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import java.util.stream.DoubleStream;
import java.util.stream.In... | true |
cf9d2135dea2a0f05aef6f4d955cc2329e98aca0 | Java | tianyakun/abitty | /src/main/java/com/abitty/controller/ViewController.java | UTF-8 | 1,407 | 2.21875 | 2 | [] | no_license | package com.abitty.controller;
import com.abitty.entity.TblUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
... | true |
132a9d3308feab561fa2abafb1ac0fcc3d2e312f | Java | sunmaolin/springSecurityStudy | /src/main/java/com/qm/security/controller/IndexController.java | UTF-8 | 1,862 | 2.4375 | 2 | [] | no_license | package com.qm.security.controller;
import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PostAuthorize;
import org.springframework.security.access.prepost.PostFilter;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework... | true |
7757947f2e89ff083598dc97f7c7d80e8b680c62 | Java | romafilyutitch/web | /src/main/java/by/epam/jwd/web/model/Subscription.java | UTF-8 | 2,715 | 3.046875 | 3 | [] | no_license | package by.epam.jwd.web.model;
import java.time.LocalDate;
import java.util.Objects;
/**
* Entity represents user's subscription.
* @author roma0
* @version 1.0
* @since 1.0
*/
public class Subscription implements DbEntity {
private final Long id;
private final LocalDate startDate;
private final Loca... | true |
2da170d2b2740917e85923faf924c3fb7eb530a5 | Java | Lulb8/AndAction | /src/PostProdBuildingWindow.java | UTF-8 | 4,684 | 2.828125 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
public class PostProdBuildingWindow extends JInternalFrame {
protected JInternalFrame internalFrame;
private JTextField jTextFi... | true |
f707f243cb0809d7683595a501014eb0ae811772 | Java | bxbxbx/nabaztag-source-code | /server/OS/net/violet/platform/datamodel/ApplicationTempImpl.java | UTF-8 | 4,631 | 2.171875 | 2 | [
"MIT"
] | permissive | package net.violet.platform.datamodel;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import net.violet.db.records.AbstractSQLRecord;
import net.violet.db.records.ObjectRecord;
import net.violet.db.records.SQLKey;
import ... | true |
13b15a247899dfb428c2e4ba9a94ca07f5092872 | Java | P79N6A/icse_20_user_study | /methods/Method_13919.java | UTF-8 | 305 | 1.9375 | 2 | [] | no_license | @Override public List<Object> getNextRowOfCells() throws IOException {
if (_line == null) {
_line=_lnReader.readLine();
}
if (_line == null) {
return null;
}
if (_dimensions == null) {
return parseMetadataPrologueForColumnNames();
}
else {
return parseForNextDataRow();
}
}
| true |
c5830c1f336d26f38d41abf97c3bf9bc5ea0ac4b | Java | kbuzsaki/FEK | /src/Game/Menus/MenuItemSelection.java | UTF-8 | 2,096 | 2.609375 | 3 | [] | no_license | /*
* Copyright 2012 Kyle Buzsaki. All Rights Reserved.
*/
package Game.Menus;
import Game.Cursor;
import Game.Sound.SoundManager;
import Sprites.Panels.GameScreen;
import Units.Items.Equipment;
import Units.Items.Item;
public class MenuItemSelection extends MenuItem {
private MenuSelection selectionMenuToOpen;
... | true |
bef9af5b69820ea8c9026522dc89baedf06a4ccb | Java | MoonSoYoung/SWVProj | /Spring_Customer/src/main/java/com/example/dto/CustomerVO.java | UTF-8 | 724 | 2.125 | 2 | [] | no_license | package com.example.dto;
public class CustomerVO {
private String customer_name;
private String carnum;
private String carcat;
private String phonenum;
public String getCustomer_name() {
return customer_name;
}
public void setCustomer_name(String customer_name) {
this.customer_name = custome... | true |
342699d18a2b6655f798274bbe6c9cbb440248cc | Java | ylw530788697/zk-distribute-lock | /src/main/java/com/evan/config/ZookeeperConf.java | UTF-8 | 869 | 2.140625 | 2 | [] | no_license | package com.evan.config;
import org.apache.curator.RetryPolicy;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.ExponentialBackoffRetry;
import org.springframework.beans.factory.annotation.Value;
import org.springframewo... | true |
5ff861314dff4b9b66887fd0ea412589cb67a77d | Java | karol-dziachan/scheduling-access-to-the-processor | /schedulding-access/RR_implementation/CPU_simulation_RR.java | UTF-8 | 1,493 | 3.3125 | 3 | [] | no_license | package RR_implementation;
import java.util.ArrayList;
public class CPU_simulation_RR {
private double time;
//q (quantum of process execution time), and k(switching time between processes)
private double q, k;
private double average;
public CPU_simulation_RR(double q, double k)
... | true |
c79b49970fdb3bcf0eba55761f8d9a08a4e7f6e6 | Java | GrzegorzCagara/AuthorizationService | /security_server_oauth2/src/main/java/com/example/security_server_xxx/services/UserServiceImpl.java | UTF-8 | 3,098 | 2.328125 | 2 | [] | no_license | package com.example.security_server_xxx.services;
import com.example.security_server_xxx.entity.PasswordResetToken;
import com.example.security_server_xxx.entity.Users;
import com.example.security_server_xxx.models.request.ResetPasswordRequest;
import com.example.security_server_xxx.repositories.AccountRepo;
import co... | true |
63f8085946f2a1453324d0c636a812546e7050ff | Java | azurewer/ArchStudio5 | /org.archstudio.myx.java/src/org/archstudio/myx/java/demo/basic/App.java | UTF-8 | 4,018 | 2.34375 | 2 | [] | no_license | package org.archstudio.myx.java.demo.basic;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.archstudio.myx.fw.EMyxInterfaceDirection;
import org.archstudio.myx.fw.IMyxImplementation;
import org.archstudio.myx.fw.IMyxName;
import org.archstudio.myx.fw.IMyxRuntime;
import org.ar... | true |
04b7ed4e4ba0d35f4af051f8daab836bdd3956ed | Java | app-project/MyAndroidApp | /src/com/app/myapp/activity/CigaretteDetailActivity.java | UTF-8 | 4,622 | 2.28125 | 2 | [] | no_license | package com.app.myapp.activity;
import java.util.List;
import com.app.myapp.R;
import com.app.myapp.dao.CartInfoDao;
import com.app.myapp.dao.impl.CartInfoDaoImpl;
import com.app.myapp.model.CartInfo;
import com.app.myapp.model.Cigarette;
import com.app.myapp.util.image.ImageManager;
import android.app.Ac... | true |
84f5082fd047415793d384192af3af6045f24acb | Java | AugustFire/dd-music | /exam_exercise/trunk/src/main/java/com/nercl/music/controller/DirectoryUpdaterController.java | UTF-8 | 550 | 1.953125 | 2 | [] | no_license | package com.nercl.music.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.nercl.music.service.MFileService;
@Co... | true |
8b71dbe8b84f604b2303949060e9726659df3497 | Java | helmutsiegel/profile | /common/src/main/java/org/helmut/profile/common/model/SectionTO.java | UTF-8 | 826 | 2.28125 | 2 | [] | no_license | package org.helmut.profile.common.model;
import org.helmut.profile.common.validation.groups.Existing;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class SectionTO {
@NotNull(groups = Existing.class)
private Long id;
@NotNull
@Size(min = 5)
privat... | true |
feda00b6d294e4144503e6fba4703a7741968def | Java | 8secz-johndpope/snapchat-re | /jadx-snap-new/sources/com/snap/core/db/record/CharmsOwnerMetadataRecord$Companion$FACTORY$1.java | UTF-8 | 959 | 1.75 | 2 | [] | no_license | package com.snap.core.db.record;
import defpackage.akcb;
import defpackage.akcq;
import defpackage.akde;
import defpackage.akej;
final class CharmsOwnerMetadataRecord$Companion$FACTORY$1 extends akcq implements akcb<Long, String, byte[], Long, AutoValue_CharmsOwnerMetadataRecord> {
public static final CharmsOwner... | true |
f70b0e7056ceb0990b4d4792e096c8fc1b4b321c | Java | Gridin/ThinkingInJava | /src/_08_inner_classes_05_using_this_and_new/MyMain.java | UTF-8 | 200 | 2.53125 | 3 | [] | no_license | package _08_inner_classes_05_using_this_and_new;
public class MyMain
{
public static void myMain()
{
Outer out = new Outer();
Separate separate = new Separate(out);
}
}
| true |
4f353666049ecec31f91b747eb438565ddbd4863 | Java | huhaichao/HuangNiao | /src/main/java/com/sy/huangniao/common/Util/TrainUtil.java | UTF-8 | 4,486 | 2.4375 | 2 | [] | no_license | package com.sy.huangniao.common.Util;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import com.alibaba.fastjson.JSONObject;
import com.sy.huangniao.common.Util.ProxyUtil.ProxyInfo;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apach... | true |
1f00d6d4c8015b631b1dcc36ec71891ffe5d5e99 | Java | openimaj/openimaj | /knowledge/ontologies/sioc/src/main/java/orgrdfs/sioc/ns/Space.java | UTF-8 | 468 | 2.125 | 2 | [
"BSD-3-Clause"
] | permissive | package orgrdfs.sioc.ns;
import java.util.List;
/**
* A Space is a place where data resides, e.g. on a website, desktop, fileshare,
* etc.
*/
@SuppressWarnings("javadoc")
public interface Space
{
public List<String> getSpace_of();
public void setSpace_of(final List<String> space_of);
public List<orgrdfs.sioc.... | true |
1917acd2f818fc3e549f43ed3c4b9b4bffb8f991 | Java | achyutsun/Crossword | /src/main/java/uk/org/downiesoft/crossword/MainActivity.java | UTF-8 | 19,046 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package uk.org.downiesoft.crossword;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import and... | true |
710afd18df77e754b6d3abcb29c642a2afad8edb | Java | MechaMagpie/JJoy | /src/statements/functions/time/Mktime.java | UTF-8 | 1,148 | 2.46875 | 2 | [
"BSD-3-Clause"
] | permissive | package statements.functions.time;
import java.util.Calendar;
import java.util.ListIterator;
import interpreter.NoBracesStack;
import statements.AbstractStatement;
import statements.functions.MalformedListException;
import statements.functions.UnaryFunction;
import statements.literals.MutableList;
import statements.li... | true |
a313e23a51b3ca49c50d5d10c8f16f203d34679b | Java | Viitainen/android-stuff | /Harj3_yelp/app/src/main/java/com/example/arto/yelp/MyRecyclerAdapter.java | UTF-8 | 2,448 | 2.40625 | 2 | [] | no_license | package com.example.arto.yelp;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RatingBar;... | true |
c66abb906a989bc56395006fd94badcda7f33ecf | Java | chaitanyabhasme/HackerRank | /src/greedy/PriyankaToys.java | UTF-8 | 1,345 | 3.390625 | 3 | [] | no_license | package greedy;
import java.util.Scanner;
public class PriyankaToys {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int numToys = stdin.nextInt();
int[] weights = new int[numToys];
for(int i = 0;i<numToys; i++){
weights[i] = stdin.nextInt();
}
stdin.close();
quick... | true |
11d29e554540ef1fc73d8c64c5d17570e3038366 | Java | ctripcorp/x-pipe | /redis/redis-keeper/src/test/java/com/ctrip/xpipe/redis/keeper/store/cmd/GtidSetCommandReaderTest.java | UTF-8 | 8,491 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.ctrip.xpipe.redis.keeper.store.cmd;
import com.ctrip.xpipe.api.utils.ControllableFile;
import com.ctrip.xpipe.gtid.GtidSet;
import com.ctrip.xpipe.redis.core.protocal.protocal.ArrayParser;
import com.ctrip.xpipe.redis.core.redis.operation.RedisOp;
import com.ctrip.xpipe.redis.core.redis.operation.RedisSing... | true |
9e053ebc40801dda9711491890aeaa084f1418d1 | Java | cyrus13/java-abstractions | /src/test/java/net/anastasakis/utl/concurrent/InterruptiblesTest.java | UTF-8 | 5,287 | 2.84375 | 3 | [
"MIT"
] | permissive | /**
* Copyright 2018 Cyrus13
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib... | true |
5d045d5e426f5ed4627f02d2375daa651931ff8b | Java | isgrator/MasterListas | /app/src/main/java/org/imgracian/masterlistas/InicioSesionActivity.java | UTF-8 | 2,435 | 1.898438 | 2 | [] | no_license | package org.imgracian.masterlistas;
import android.app.ActivityOptions;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.InputType;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widge... | true |
6363d5f663fb19c6ab86252033c0a74fe1d49ba2 | Java | rlaqudrnr810/TopikHelper_Final | /app/src/main/java/com/example/topikhelper/VirtualTestResult.java | UTF-8 | 1,287 | 2.578125 | 3 | [] | no_license | package com.example.topikhelper;
public class VirtualTestResult {
private String questionNum;
private String realAnswer;
private String myAnswer;
private String abcd;
public VirtualTestResult(){ }
public VirtualTestResult(String questionNum, String realAnswer, String myAnswer) {
this.... | true |
a21dc17684374ded53b69072fd0b2a03a9e166cf | Java | KamranMohd/selenium | /src/main/java/com/selenium/pageobjects/AgeCalucationPage.java | UTF-8 | 1,441 | 2.703125 | 3 | [] | no_license | package com.selenium.pageobjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class AgeCalucationPage {
private WebDriver driver;
final private String URL = "https://trainingbypackt.github.io/Beginning-Selenium/lesson_6/exercise_6_1.html";
pub... | true |
11a297320410ac9c6c5198d09347f88cd303a8bf | Java | DVRudenko/Restfull-WEB-project | /dao/src/main/java/by/rudenko/imarket/impl/CommentDaoImpl.java | UTF-8 | 2,968 | 2.453125 | 2 | [] | no_license | package by.rudenko.imarket.impl;
import by.rudenko.imarket.CommentDao;
import by.rudenko.imarket.exception.NoSuchIdException;
import by.rudenko.imarket.model.*;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Repository;
import javax.persistenc... | true |
b81002b72a6ced42032ca8cd46bae3bad0c67226 | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/mm/protocal/protobuf/cho.java | UTF-8 | 2,698 | 1.679688 | 2 | [] | no_license | package com.tencent.mm.protocal.protobuf;
import com.tencent.matrix.trace.core.AppMethodBeat;
import org.json.JSONObject;
public final class cho
extends com.tencent.mm.bx.a
{
public int YYs;
public long aanC;
public int vhJ;
private JSONObject toJSON()
{
AppMethodBeat.i(259036);
... | true |
543f1a6fb250589cfe182b69d4fddc03efebd265 | Java | jaigupta/java-spring-base | /src/main/java/com/djw/controller/ServicesController.java | UTF-8 | 503 | 1.835938 | 2 | [] | no_license | package com.djw.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.djw.web.common.WebResponse;
@Controller
public class ServicesController {
@RequestMapping(value = "/se... | true |
f5d798ec8ba0f24bea13a31424a0a6ff470cea94 | Java | Lavoiedavidw/Batch-Source | /CoreJavaAssignment/src/main/java/com/revature/question6/Question6.java | UTF-8 | 695 | 3.875 | 4 | [] | no_license | package com.revature.question6;
import java.util.Scanner;
public class Question6 {
//Write a program to determine if an integer is even
//without using the modulus operator (%)
static Scanner input = new Scanner(System.in);
static Float number;
static int store;
public static void even(int... | true |
2fc282b575a33757fab1185bfc51a2264b493730 | Java | bolig/huiXiaoBao | /app/src/main/java/com/dhitoshi/xfrs/huixiaobao/Interface/AddClientManage.java | UTF-8 | 1,396 | 2.21875 | 2 | [] | no_license | package com.dhitoshi.xfrs.huixiaobao.Interface;
import com.dhitoshi.xfrs.huixiaobao.Bean.ClientBean;
import com.dhitoshi.xfrs.huixiaobao.Bean.HttpBean;
import com.dhitoshi.xfrs.huixiaobao.Bean.InfoAddClientBean;
import com.dhitoshi.xfrs.huixiaobao.Dialog.LoadingDialog;
import java.util.Map;
/**
* Created by dxs on 2... | true |
b70c4f588c0a8bf02322f1f299b1ea224510d6f8 | Java | djneptulon/frostwire-desktop | /gui/com/limegroup/gnutella/gui/dnd/TorrentFilesTransferHandler.java | UTF-8 | 2,630 | 2.1875 | 2 | [] | no_license | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | true |
90eecf784a05a022c20a060f173c9112b21ee2bc | Java | gurujsprasad/LMSandMore | /src/cs320/finals/EditMeeting.java | UTF-8 | 3,542 | 2.359375 | 2 | [] | no_license | package cs320.finals;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet... | true |
33d17427548c8f99150288b2620e747aaa1ca5aa | Java | afornalik/task1-4 | /src/main/java/CardDeck.java | UTF-8 | 1,987 | 3.71875 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public class CardDeck {
public static void main(String[] args) {
List<Card> cardList = new ArrayList<>();
for (Color color : Color.values()) {
for (Type type : Type.values()) {
... | true |
d529029ee7f8ae76ae762e9437f6021eeea69cdc | Java | yourvid/syncserver | /src/main/java/com/cmf/domain/CoreBdEquipModel.java | UTF-8 | 5,778 | 2.078125 | 2 | [] | no_license | package com.cmf.domain;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;
@Entity
@Table(name = "core_bd_equip_model")
public class CoreBdEquipModel {
private long ID;
private String equipModelId;
private String equipModelName;
private String equipTypeId;
private Str... | true |
38d3ac371021a6bb70641e19dd918215228507f3 | Java | LittleLuckYK/SimpleExample | /src/test/java/org/caesar/example/TestCreateSign.java | UTF-8 | 707 | 2.15625 | 2 | [] | no_license | package org.caesar.example;
import org.springframework.http.ResponseEntity;
import org.testng.annotations.Test;
import org.caesar.example.utils.CreateSign;
import org.springframework.web.client.RestTemplate;
public class TestCreateSign {
@Test
public void testSign()
{
System.out.println(new Crea... | true |
538691cb225549999815328baeb4c72f123fdc32 | Java | samkeeleyong/simple-distributed-server | /src/com/server/Gateway.java | UTF-8 | 6,776 | 2.421875 | 2 | [] | no_license | package com.server;
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.Socket... | true |
bd03b3615c33b9c45b6bd6450591562137907fa5 | Java | Zyro9922/Synergy | /app/src/main/java/com/example/alihasan/synergytwo/api/service/Client.java | UTF-8 | 11,736 | 1.585938 | 2 | [] | no_license | package com.example.alihasan.synergytwo.api.service;
import com.example.alihasan.synergytwo.api.model.Debtor;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
public interface Client {
@POST("authorize.php")
@FormUrl... | true |
5db2677036b0075222eae027c4a9ad9313756bab | Java | an1s1a/movies | /app/src/main/java/com/architecture/movies/data/local/entity/PageEntity.java | UTF-8 | 1,456 | 2.328125 | 2 | [] | no_license | package com.architecture.movies.data.local.entity;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import java.util.List;
@Entity
public class PageEntity {
@PrimaryKey(autoGenerate = true)
private int id;
private ... | true |
e580b5c60a10075248b994f14697085d40ff24fe | Java | jairof/proyecto | /src/main/java/com/proyecto/Tg000008.java | UTF-8 | 4,128 | 2.046875 | 2 | [] | no_license | package com.proyecto;
import org.hibernate.validator.constraints.*;
import java.util.Date;
import javax.persistence.*;
import javax.validation.constraints.*;
/**
* @author Zathura Code Generator http://zathuracode.org
* www.zathuracode.org
*
*/
@Entity
@Table(name = "tg000008", schema = "${schema... | true |
0bdcc72889087f292faa7e0b9a94b80409eca6d2 | Java | Zeejfps/Simple-Javafx-Video-Player | /src/videoplayer/views/VideoGridPane.java | UTF-8 | 6,854 | 2.859375 | 3 | [] | no_license | package videoplayer.views;
import javafx.animation.ParallelTransition;
import javafx.animation.TranslateTransition;
import javafx.geometry.Rectangle2D;
import javafx.scene.layout.Pane;
import javafx.stage.Screen;
import javafx.util.Duration;
import videoplayer.App;
import videoplayer.model.Video;
/**
* Created by ze... | true |
e63779c8681c55cfa628ec57867f6e753a404c18 | Java | KorvaNikhilKumar13/interviewprogramm | /src/main/java/com/nikhil/interviewprogramm/ReverseString.java | UTF-8 | 379 | 3.625 | 4 | [] | no_license | package com.nikhil.interviewprogramm;
public class ReverseString {
public static void main(String[] args)
{
String str ="Java World";
reverseString(str);
}
public static void reverseString(String str)
{
char [] ch =str.toCharArray();
for (int i=ch.length-1;i>= 0; i--)
{
System.out.pri... | true |
6cd0582bbe73e8bf50d75037b3a90e424939dade | Java | grozhd/activeSMT3 | /src/edu/stanford/nlp/mt/base/PositionIndependentDistance.java | UTF-8 | 2,613 | 3.25 | 3 | [] | no_license | package edu.stanford.nlp.mt.base;
import java.util.Hashtable;
import edu.stanford.nlp.util.Characters;
/** Find the (Levenshtein) Position Independent edit distance between two Strings or Character
* arrays.
* @author Ankush Singla
*/
public class PositionIndependentDistance {
//final boolean allowTranspose... | true |
2d9c2a36e74b145226689b278b8ad3fe86ada801 | Java | AsliUral/search-and-sort-algorithms-java | /java/InsertionSort.java | UTF-8 | 916 | 3.921875 | 4 | [] | no_license | import java.util.*;
public class InsertionSort{
public void sort(int array[]){
int n = array.length;
for (int i = 1; i < n; ++i) {
int key = array[i];
int j = i - 1;
while (j >= 0 && array[j] > key) {
array[j + 1] = array[j];
... | true |
cac2fc0d118b45e944285fe6e1a2b910888d87a0 | Java | siemen-devos-123/A-Star-pathfinding | /src/main/java/domain/pathfinding/AStarSolver.java | UTF-8 | 5,077 | 3.375 | 3 | [] | no_license | package domain.pathfinding;
import domain.maze.Cell;
import domain.maze.Maze;
import domain.maze.Position;
import domain.maze.Walls;
import java.util.*;
import java.util.stream.Collectors;
public class AStarSolver {
private Maze maze;
private Position start;
private Position end;
private Position cu... | true |
708d0dbb9d0a7f0d6cb903e092459d4ac3c026f2 | Java | xenryjake/StageBot | /src/main/java/com/xenry/stagebot/audio/musicquiz/command/MusicQuizAddSongCommand.java | UTF-8 | 733 | 2.15625 | 2 | [] | no_license | package com.xenry.stagebot.audio.musicquiz.command;
import com.xenry.stagebot.audio.musicquiz.MusicQuizHandler;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.User;
/**
* StageBot created by Henry Blasingame (Xenry) on 5/24/20
* The content in this file and all related files are
* ... | true |
d3b982e679c18a2f3086b7a990722154e7568a91 | Java | JetBrains/intellij-community | /java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/jvm/descriptors/GetterDescriptor.java | UTF-8 | 5,644 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection.dataFlow.jvm.descriptors;
import com.intellij.codeInspection.dataFlow.DfaNullability;
import com.intellij.codeInspection.dataFlow.DfaPsiUtil;
... | true |
fa33c93370252b3029159488aa3de1e039043f68 | Java | ksrubka/cinema-system | /src/main/java/pl/com/bottega/cinemasystem/api/dtos/PaymentDto.java | UTF-8 | 800 | 2.15625 | 2 | [] | no_license | package pl.com.bottega.cinemasystem.api.dtos;
import pl.com.bottega.cinemasystem.domain.CreditCard;
import pl.com.bottega.cinemasystem.domain.Payment;
import pl.com.bottega.cinemasystem.domain.PaymentType;
public class PaymentDto {
private PaymentType type;
private Long cashierId;
private CreditCard cred... | true |
0dcfca4f82d81e3287ce0a7a0c0bacff3b6967e4 | Java | prasunmax/BootUpSpringAssignment | /gateway/src/main/java/prasun/springboot/gateway/dao/UserDao.java | UTF-8 | 6,979 | 2.34375 | 2 | [] | no_license | package prasun.springboot.gateway.dao;
import static org.bson.codecs.configuration.CodecRegistries.fromProviders;
import static org.bson.codecs.configuration.CodecRegistries.fromRegistries;
import java.util.Map;
import java.util.Optional;
import org.bson.Document;
import org.bson.codecs.configuration.CodecRegistry;
... | true |
8e244d6de7ff6b9a251d2d8c6991721a38b72048 | Java | altope98/JAVA | /NETBEANS2/TERCER TRIMESTRE/Practica 12/src/Parpadeo.java | UTF-8 | 8,863 | 2.578125 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Font;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Parpadeo extends javax.swing.JFrame {
protected int rojo,verde,azul;
protected boolean parpadeo=true;
public Parpadeo() {
initComponents();
for(int i=0;i<=100;i++){
... | true |
14e6b683b45bfffb1a96936faaaec3bb33ef1b92 | Java | Game-Designing/Custom-Football-Game | /sources/p005cm/aptoide/p006pt/view/app/C5300v.java | UTF-8 | 555 | 1.585938 | 2 | [
"MIT"
] | permissive | package p005cm.aptoide.p006pt.view.app;
import p005cm.aptoide.p006pt.dataprovider.model.p009v7.ListApps;
import p026rx.p027b.C0132p;
/* renamed from: cm.aptoide.pt.view.app.v */
/* compiled from: lambda */
public final /* synthetic */ class C5300v implements C0132p {
/* renamed from: a */
private final /* sy... | true |
2f3082d4a0cd78ee3e202111b1510eb819f652f8 | Java | kurogami207176/coloniser | /core/src/com/alaindroid/coloniser/modules/DrawModule.java | UTF-8 | 1,111 | 2.0625 | 2 | [] | no_license | package com.alaindroid.coloniser.modules;
import com.alaindroid.coloniser.draw.*;
import com.alaindroid.coloniser.service.animation.AnimationProcessorService;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
@Module
public class DrawModule {
@Provides
@Singleton
public HexGri... | true |
67a3bf12132a65dc276429487bf07d18535f8237 | Java | mogdum/Automation | /src/test/java/com/login/TestLogin.java | UTF-8 | 1,315 | 2.4375 | 2 | [] | no_license | package com.login;
import java.util.Map;
import org.apache.log4j.Logger;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.util.BaseTestClass;
public class TestLogin extends BaseTestClass{
static Logger log = Logger.getLogger(TestLogin.class.getName());
public TestLogin()thro... | true |
dbb525eaecd9207df195f0b8a1c25b8f2dcc1ad5 | Java | Heiku/LeetCode | /src/nothing/OverrideOrOverLoad.java | UTF-8 | 571 | 3.234375 | 3 | [] | no_license | package nothing;
/**
* Created by Heiku on 2018/9/20
*
* 方法重写:方法名,参数类型,个数,返回类型得相同,同时被重写的方法不能拥有更高的权限
* 方法重载:方法名相同,参数类型,个数,返回类型都可不同,
*/
public class OverrideOrOverLoad {
}
class Fruit{
String print(String str){
System.out.println("This is " + str);
return str;
}
}
class Apple extends F... | true |
e2f235b8b0dea8ec83507c45a842f7759d6d1eee | Java | hyong07/semi_ | /src/semi/dto/CategoryDTO.java | UTF-8 | 651 | 2.59375 | 3 | [] | no_license | package semi.dto;
public class CategoryDTO {
private String main_category;
private String sub_category;
public CategoryDTO() {
super();
}
public CategoryDTO(String main_category, String sub_category) {
super();
this.main_category = main_category;
this.sub_category = sub_category;
}
... | true |
371cbada4b2bbfd342ddb4c858d4f0a880be3789 | Java | superliujian/liquid | /web-console/src/main/java/liquid/api/controller/ApiContainerController.java | UTF-8 | 1,126 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package liquid.api.controller;
import liquid.container.domain.Container;
import liquid.container.facade.ContainerFacade;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.w... | true |
7736acb4438b638eac94f81922a3fa959ce68e86 | Java | lftechnologyinc/hack_avengers | /doctorsap/mobile/DoctorSap/src/com/doctorsap/task/DoctorsTask.java | UTF-8 | 777 | 2.171875 | 2 | [] | no_license | package com.doctorsap.task;
import java.util.ArrayList;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import com.doctorsap.madel.Doctors;
public class DoctorsTask extends AsyncTask<Void, Integer, Boolean> {
private Context context;
private ProgressDialog progres... | true |
4da41a50b7f7411c1648b202bca407e5966bc1cc | Java | wad/fwb | /basic/src/main/java/com/funwithbasic/basic/value/Value.java | UTF-8 | 636 | 3.046875 | 3 | [] | no_license | package com.funwithbasic.basic.value;
import com.funwithbasic.basic.BasicException;
public abstract class Value {
public ValueNumber asNumber() throws BasicException {
if (!(this instanceof ValueNumber)) {
throw new BasicException("Type mismatch, expected a number");
}
return ... | true |
ab58be794dbc9e131426c2c352d54865e7e51688 | Java | HuashengZhao/SONGDUWEB | /src/main/java/com/example/EAS/service/ITFdcCurprojectService.java | UTF-8 | 375 | 1.59375 | 2 | [] | no_license | package com.example.EAS.service;
import com.example.EAS.model.TFdcCurproject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.EAS.vo.ProjectVO;
/**
* <p>
* 服务类
* </p>
*
* @author watson
* @since 2020-08-30
*/
public interface ITFdcCurprojectService extends IService<TFdcCurprojec... | true |
64bc22b8b53f70b4744121314aa557b91bcb1b4f | Java | nglou/cargomax-evaluation-dummy | /src/main/java/aero/champ/cargospot/cargomax/dummy/BookingReviewRQProcessor.java | UTF-8 | 1,119 | 2.390625 | 2 | [] | no_license | package aero.champ.cargospot.cargomax.dummy;
import aero.champ.cargospot.cargomax.dummy.db.InMemoryDB;
import aero.champ.cargospot.cargomax.dummy.generated.BookingReviewRQ;
import aero.champ.cargospot.cargomax.dummy.generated.BookingReviewRS;
import aero.champ.cargospot.cargomax.dummy.generated.SuccessMsg;
/**
* Pr... | true |
45a6831ea0b71f050d4d5f370f657af0c59499e4 | Java | Lollala/hitaoapp | /hitaoapp_product/src/main/java/com/hzitxx/hitao/mapper/ShopFrontCategoryMapper.java | UTF-8 | 1,006 | 2.03125 | 2 | [] | no_license | package com.hzitxx.hitao.mapper;
import com.hzitxx.hitao.entity.ShopFrontCategory;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
* <p>
* Mapper 接口
* </p>
*
* @author xianyaoji
* @since 2018-08-10
*/
public interface ShopFrontCategoryMapper{
/**... | true |
25cc934eae6608ec778b51323ed89b04ec762537 | Java | suresh-chaudhari/product-ms | /src/main/java/com/demo/ca/product/model/response/ProductResponse.java | UTF-8 | 370 | 1.734375 | 2 | [] | no_license | package com.demo.ca.product.model.response;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class... | true |
8311d0ecc349e0d6c77f2697311bb7e991028b6b | Java | koreacherry/Java | /DamBae/src/com/ktds/jmj/Market.java | UTF-8 | 4,224 | 3.328125 | 3 | [] | no_license | package com.ktds.jmj;
import java.util.InputMismatchException;
import java.util.Scanner;
//하나의 메소드는 하나의 기능을 하게 해야 유지보수가 편해요.
public class Market {
Scanner input = new Scanner(System.in);
Seller DamBaeSell = new Seller (50000, 10, 2000);
boolean exit = true;
public int inputMessage(int some) {
some = input.next... | true |
de245ef3a0bc9e167815b28ca7e83b88cb211a26 | Java | fagnerpsantos/ADS2M_1 | /Estruturas de Dados/src/com/senac/estruturas/interfaces/Container.java | UTF-8 | 288 | 2.28125 | 2 | [] | no_license | package com.senac.estruturas.interfaces;
import java.util.Enumeration;
public interface Container extends Comparable {
int getCount();
boolean isEmpty();
boolean isFull();
void purge();
void accept(Visitor visitor);
@SuppressWarnings("rawtypes")
Enumeration getEnumeration();
}
| true |
04f1a652ca3bcac6d0f030dae2d442c502cf07ac | Java | meela7/WISE | /WISE/src/main/java/org/cilab/m4/dao/impl/PredictionModelDAOImpl.java | UTF-8 | 4,682 | 2.53125 | 3 | [] | no_license | package org.cilab.m4.dao.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.cilab.m4.dao.PredictionModelDAO;
import org.cilab.m4.model.PredictionModel;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFacto... | true |
c30c9b6e5bafb03e29a908f8d4aff40081bc7d2c | Java | Pablovsky1/Buscador-ML | /app/src/main/java/com/mercadolibre/products/ui/MainActivity.java | UTF-8 | 5,560 | 1.960938 | 2 | [] | no_license | package com.mercadolibre.products.ui;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.widget.NestedScrollView;
import androidx.lifecycle.ViewModelProvider;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.Divide... | true |
0857c9d243a43aa1508c5a145ca7d751c4e14633 | Java | MichaelLin-TPE/MyPath | /app/src/main/java/com/path/mypath/photo_activity/SelectPhotoActivityPresenter.java | UTF-8 | 847 | 1.671875 | 2 | [] | no_license | package com.path.mypath.photo_activity;
import java.util.ArrayList;
public interface SelectPhotoActivityPresenter {
void onCatchUserPhotoByte(ArrayList<byte[]> photoArray);
void onCatchUploadPhotoFailListener(String toString, int photoIndex);
void onShowFinishInformation();
void onPublicConfirmClic... | true |
964643b346ab27ebc82bdf51e7e2c80208d54db8 | Java | ahujadipak3/Learning | /TestProject/src/com/sample/programs/A2Authentication.java | UTF-8 | 236 | 1.96875 | 2 | [] | no_license | package com.sample.programs;
public class A2Authentication implements Authentication {
@Override
public boolean authenticate() {
// TODO Auto-generated method stub
System.out.println("A2 Authentication ");
return false;
}
}
| true |
308d658de560df54fa31f8d1b02f4da4f14cca88 | Java | ashtwentyfour/travelling_salesman_optimum_tour_length | /src/test/java/com/ashtwentyfour/algos/AppTest.java | UTF-8 | 754 | 2.765625 | 3 | [] | no_license | package com.ashtwentyfour.algos;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
* Unit test for TSP App
*/
public class AppTest
{
/**
* TSP Algo Test
*/
@Test
public void shouldCalculateTourLength()
{
Double [][] C = new Double[4][4];
C[0][0] = 0.0;... | true |
48175f40f696a227fdee38e25c818d4565d530e8 | Java | ashpjin/TruckStop | /android/src/edu/ucla/cens/truckstop/services/RecordPath.java | UTF-8 | 3,504 | 2.28125 | 2 | [] | no_license | package edu.ucla.cens.truckstop.services;
import java.util.Timer;
import java.util.TimerTask;
import android.app.Service;
import android.content.Intent;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import edu.... | true |
5b79966ba76b91ab6a4ca7faff15b7d9b280abfb | Java | manojkumar16/code-time | /src/main/java/etc/two/Test3.java | UTF-8 | 2,723 | 3.40625 | 3 | [] | no_license | package etc.two;
import java.util.Stack;
public class Test3 {
public static void main( String[] args ) {
//Test3.swapSort( "11000" );
Test3.infixToPostfix( "*+56-78" );
new Test3().method();
}
private void method() {
}
static String infixToPostfix( String s ) {
... | true |
fa6483815bbd9093f95a90da01402c77cc7f6e76 | Java | MDhondtRD/redoair | /ReDoAir-jar/src/test/java/com/realdolmen/redoair/persistence/TripRepositoryTest.java | UTF-8 | 12,678 | 2.6875 | 3 | [] | no_license | package com.realdolmen.redoair.persistence;
import com.realdolmen.redoair.ejb.FlightRepository;
import com.realdolmen.redoair.ejb.TripRepository;
import com.realdolmen.redoair.entities.Airport;
import com.realdolmen.redoair.entities.Flight;
import com.realdolmen.redoair.entities.Trip;
import org.junit.After;
import or... | true |
2f8647dd0c722c28eed531ad8791c7014923bc84 | Java | JavaQualitasCorpus/nakedobjects-4.0.0 | /core/metamodel/src/main/java/org/nakedobjects/metamodel/facets/SingleClassValueFacetAbstract.java | UTF-8 | 1,224 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package org.nakedobjects.metamodel.facets;
import org.nakedobjects.metamodel.spec.NakedObjectSpecification;
import org.nakedobjects.metamodel.specloader.SpecificationLoader;
public abstract class SingleClassValueFacetAbstract extends FacetAbstract implements SingleClassValueFacet {
private final Class<?... | true |
89e81086cdc7bb89df4297eaa99158a7d6235210 | Java | samalprasant123/SpringJSONAndAJAX | /test/com/prasant/spring/mvc/test/tests/OfferDAOTest.java | UTF-8 | 4,026 | 2.3125 | 2 | [] | no_license | package com.prasant.spring.mvc.test.tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import java.util.List;
import javax.sql.DataSource;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory... | true |
48643023257dab29b82863d97577ba9c5ddba15c | Java | elliottwang/ESB | /EAB/EABManager/src/eab/deploy/zip/JbiSuBuilder.java | UTF-8 | 1,080 | 2.53125 | 3 | [] | no_license | package eab.deploy.zip;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
public class JbiSuBuilder {
public static final String DESCRIPTOR_FILE = "META-INF/jbi.xml";
public static... | true |