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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
658071230e994cf8da18019321f6c531169c324c | Java | xyggs/MVVM-Base | /base/src/main/java/com/android/base/ui/BaseActivity.java | UTF-8 | 2,613 | 2.359375 | 2 | [] | no_license | package com.android.base.ui;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.LifecycleOwner;
import com.android.b... | true |
71e7f48bfaf14bff68dc98ac4496e4f5b126e4e1 | Java | zhouchao4664/spring-boot-demo | /jsoup-demo/src/main/java/com/zhouchao/domain/Shop.java | UTF-8 | 836 | 1.90625 | 2 | [] | no_license | package com.zhouchao.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
/**
* <p>
*
* </p>... | true |
d5d38d873ae097d2f922daaf745583e088540eed | Java | PangyiGo/lampblack-admin | /lampblack-common/src/main/java/com/osen/cloud/common/enums/InfoMessage.java | UTF-8 | 1,604 | 2.328125 | 2 | [] | no_license | package com.osen.cloud.common.enums;
import com.osen.cloud.common.utils.ConstUtil;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
/**
* User: PangYi
* Date: 2019-08-28
* Time: 17:46
* Description: 统一信息体
*/
@NoArgsConstructor
@AllArgsConstructor
public enum InfoMessage {
/**
* 异常信息体
... | true |
0613016e26cebfade8ccde7ec045b1cf0dbfe6ae | Java | mgsx-dev/rainstick | /core/src/net/mgsx/rainstick/model/Rainstick.java | UTF-8 | 428 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package net.mgsx.rainstick.model;
public class Rainstick {
public String title = "";
public String credits = "";
public String path = "";
public String preview = "";
public String description = "";
public void set(Rainstick rainstick) {
this.title = rainstick.title;
this.credits = rainstick.credits;
this.... | true |
738255872f3b2bbf5f9c29bd92752aa9258b8dcc | Java | tbs005/BikeServer | /src/main/java/org/ccframe/subsys/core/search/MemberAccountSearchRepository.java | UTF-8 | 431 | 1.726563 | 2 | [] | no_license | package org.ccframe.subsys.core.search;
import java.util.List;
import org.ccframe.subsys.core.domain.entity.MemberAccount;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
public interface MemberAccountSearchRepository extends ElasticsearchRepository<MemberAccount, Integer> {
publ... | true |
563cec0cd3586757af382b6907d17468fb41d67b | Java | rs1907/softwareentwicklung | /src/main/java/de/fham/softwareentwicklung/zwei/stack/StackInterface.java | UTF-8 | 155 | 2.140625 | 2 | [] | no_license | package de.fham.softwareentwicklung.zwei.stack;
public interface StackInterface {
boolean isEmpty();
void push(String i);
String pop();
}
| true |
a61adb7fc4116c4aeb526ec8bbd8a4cebc8af59f | Java | Carl-K/Trading-System | /Project/src/messages/FillMessage.java | UTF-8 | 792 | 2.8125 | 3 | [] | no_license | package messages;
import customExceptions.InvalidEnumException;
//import customExceptions.InvalidPriceOperation;
import customExceptions.InvalidVolumeException;
import price.Price;
import enums.BookSide;
public class FillMessage extends Messages implements Comparable<FillMessage> {
public FillMessage(String userIn,... | true |
a04821df8fe5aada8a4432688ebb4b48fe7361e3 | Java | Terasology/Dialogs | /src/main/java/org/terasology/dialogs/DialogScreen.java | UTF-8 | 3,011 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.dialogs;
import com.google.common.collect.Lists;
import org.terasology.dialogs.action.PlayerAction;
import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.engine.rendering.assets.texture... | true |
7ded6064eba2053a04053f09a90b1bb507c8158d | Java | fpellegrinet/university_app | /University/app/src/main/java/com/university/ui/OptionsList.java | UTF-8 | 1,148 | 2.21875 | 2 | [] | no_license | package com.university.ui;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import com.university.R;
import com.university.domain.User;
public class OptionsList extends Activity{
@Ov... | true |
526d93bfab9d5638b0b2f0fa2b218eb689411d6d | Java | ninthworld/CAGE | /src/cage/core/scene/SceneNode.java | UTF-8 | 2,412 | 2.6875 | 3 | [
"MIT"
] | permissive | package cage.core.scene;
import cage.core.model.Model;
import cage.core.scene.camera.OrthographicCamera;
import cage.core.scene.camera.PerspectiveCamera;
import cage.core.scene.light.AmbientLight;
import cage.core.scene.light.DirectionalLight;
import cage.core.scene.light.PointLight;
public class SceneNode e... | true |
e3f4f9768747a714c3222a125cb05fbc05a9a121 | Java | tianhongbo/CMPE275_Lab2 | /src/main/java/edu/sjsu/cmpe275/lab2/dao/OrgDao.java | UTF-8 | 879 | 2.109375 | 2 | [] | no_license | package edu.sjsu.cmpe275.lab2.dao;
import edu.sjsu.cmpe275.lab2.model.Organization;
/**
* Project Name: cmpe275lab2
* Packet Name: edu.sjsu.cmpe275.lab2.dao
* Author: Scott
* Created Date: 11/5/15 4:53 PM
* Copyright (c) 2015, 2015 All Right Reserved, http://sjsu.edu/
* This source is subject to the GPL2 Permis... | true |
86e62b345d08456729a41f949d03ceba36db7f29 | Java | elvionania/Chess | /Chess/src/org/elvio/chess/process/Joueur.java | UTF-8 | 1,249 | 2.9375 | 3 | [] | no_license | package org.elvio.chess.process;
import org.elvio.chess.elements.Board;
import org.elvio.chess.elements.pieces.Piece;
import org.elvio.chess.time.IGestionDuTemps;
public abstract class Joueur {
protected Byte couleur;
protected IGestionDuTemps temps;
protected long tempsAuCommencement;
public voi... | true |
2f877360fe4b179ea6e18371dc9f591d8ee0ae72 | Java | jmg216/tsi2-g1-2012 | /GeoRed-Business-JPA/src/com/geored/dominio/Evento.java | UTF-8 | 2,536 | 2.03125 | 2 | [] | no_license | package com.geored.dominio;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.per... | true |
f39762d2e7d14b2d0ff8ddd2c6388b977f2f9a38 | Java | PranilDahal/Catering-Management-App | /src/DatabaseConfig.java | UTF-8 | 307 | 1.867188 | 2 | [] | no_license |
public class DatabaseConfig {
public static final String MYSQL_HOST = "server name";
public static final String MYSQL_USERNAME = "user";
public static final String MYSQL_PASSWORD = "password";
public static final int MYSQL_PORT = 3306;
public static final String MYSQL_DATABASE_TO_USE = "schema";
}
| true |
72bc68aae19b2a1f1720c613d8d74e297e43a091 | Java | Gopinath9/new | /One/Ten.java | UTF-8 | 213 | 2.453125 | 2 | [] | no_license |
public class Ten {
int a=2;
int b=0;
public static void main(String[] args) {
try {
c=a/b;
}catch(ArithmeticException e)
System.err.println("exception occured:"+c);
}
}
| true |
92d9b3c0a026e2b1d2f01c076d4e903d41b9a46a | Java | shuixingge/WeEat | /app/src/main/java/com/bupt/weeat/presenter/WeekRankPresenter.java | UTF-8 | 3,193 | 2 | 2 | [] | no_license | package com.bupt.weeat.presenter;
import android.content.Context;
import com.bupt.weeat.apis.DishApi;
import com.bupt.weeat.apis.RxService.WeekRankDishService;
import com.bupt.weeat.model.entity.DishBean;
import com.bupt.weeat.model.entity.Window;
import com.bupt.weeat.model.response.WeekRankDishResponse;
import com.... | true |
97cf71fb6b0cb1f749041664c4b854e1e72bc01a | Java | AngelRawencraw/DMOJ-stuff | /ccc04j3.java | UTF-8 | 764 | 2.921875 | 3 | [
"MIT"
] | permissive | import java.util.Scanner;
/**
* Created by edwinfinch on 14-11-12.
*/
public class Main {
static public void main(String wussup[]){
Scanner scanner = new Scanner(System.in);
int amountOfAdj = scanner.nextInt();
int amountOfNoun = scanner.nextInt();
String[] adjs = new String[amoun... | true |
38279c4d7dc2f6c97b7cc31e2a9f3ec015d2a460 | Java | rickdynasty/TwsPluginFramework | /TwsPluginShareLib/src/main/java/com/tencent/tws/assistant/interpolator/BaseInterpolator.java | UTF-8 | 442 | 2.4375 | 2 | [] | no_license | package com.tencent.tws.assistant.interpolator;
import android.view.animation.Interpolator;
public abstract class BaseInterpolator implements Interpolator{
@Override
public float getInterpolation(float input) {
float t = 100 * input;
float b = 0f;
float c = 1.0f;
float d = 100... | true |
e36d848cadac65c9316b5e0c2fe8b5dc16d65c81 | Java | natanaelafonso/metro_cptm | /src/br/com/natanael/task/EnviaMensagemGCMServerTask.java | ISO-8859-1 | 3,065 | 2.375 | 2 | [] | no_license | package br.com.natanael.task;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.concurrent.atomic.AtomicInteger;
import javax.net.ssl.HttpsURLConnection;
import br.com.natanael.Application.GCMApplication;
import br.com.natanael.gcm.Constantes;
import com.google.an... | true |
090d00e000b2d77295f590337efbd45faffa7417 | Java | ericknavarro97/covid19api | /src/main/java/com/ericknavarro/covidapi/controllers/EquipamientoController.java | UTF-8 | 2,432 | 2.203125 | 2 | [] | no_license | package com.ericknavarro.covidapi.controllers;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind... | true |
7137840521c36cc32dcbea7bd9e9bab24711ca12 | Java | ialazzon/ComponentAllocationProblem | /ComponentAllocationProblem/src/componentAllocation/impl/ComponentImpl.java | UTF-8 | 6,520 | 1.65625 | 2 | [] | no_license | /**
*/
package componentAllocation.impl;
import componentAllocation.Component;
import componentAllocation.ComponentAllocationPackage;
import componentAllocation.ResConsumption;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notificatio... | true |
e6e5c8a159cddb20ebc6d25515e0d985cd20e541 | Java | icorecool/smart-NetLight | /src/com/example/android/BluetoothChat/GroupDBHelper.java | UTF-8 | 2,814 | 2.546875 | 3 | [] | no_license | package com.example.android.BluetoothChat;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class G... | true |
72f39e7d7dcbecf51d4812e5f7bf9dde9ea13470 | Java | Monksc/ml_neuralnetwork_image_digit_detector | /SaveData.java | UTF-8 | 2,360 | 3.171875 | 3 | [] | no_license | import java.util.Scanner;
import java.io.*;
import java.util.ArrayList;
public class SaveData {
public SaveData() {
}
public static void saveData(String fileName, Layer[] layers) {
try (Writer writer = new BufferedWriter(new OutputStreamWriter(
new FileOutputS... | true |
3607decb9c378824ec145cff9f8a85572d883581 | Java | KilmerLuizAleluia/CompartilhaUnB | /src/main/java/projetoES/converters/DisciplinaConverter.java | UTF-8 | 1,026 | 2.4375 | 2 | [] | no_license | package projetoES.converters;
import org.springframework.stereotype.Component;
import projetoES.model.entities.Disciplina;
import projetoES.model.entities.Pergunta;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import java.util.Map;
@Componen... | true |
0e6ee465ec82a12f716264685c81c8de90d52219 | Java | elascano/ESPE202105-OOP-TC-3730 | /assignments/heredial/unit1/HW06 CompleteProjectInventory/FutureTheOnAccentInventoryProducts/src/futuretheonaccent/inventory/productos/model/Quality.java | UTF-8 | 1,123 | 2.21875 | 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 futuretheonaccent.inventory.productos.model;
/**
*
* @author Luis Heredia Accent on the Future ESPE-DCC0
*/
public class Qu... | true |
928df84ab2b53e45f3b3ea24bb23cc081ecdcea3 | Java | srinivaskulkarni1/shridarshan | /automation-test/src/main/java/com/shridarshan/in/automation_test/Utility.java | UTF-8 | 1,834 | 2.921875 | 3 | [] | no_license | package com.shridarshan.in.automation_test;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Colle... | true |
5c57ad81635bc191b8fa693a24fefcd3571fbbaa | Java | ashrafbaig/Validating-Enrollee-And-Dependent-Page | /src/main/java/com/qa/PageClasses/SelfServiceLoginPage.java | UTF-8 | 1,111 | 2.015625 | 2 | [] | no_license | package com.qa.PageClasses;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.testng.Assert;
import IES_TestBaseClass.SelfServiceBaseClass;
public class SelfServiceLoginPage extends SelfServiceBaseClass {
////////////////////... | true |
d3a69ce60aa57809a9d1f20fc56d626923af274e | Java | qcamei/yycg-2 | /src/main/java/com/cyb/yycg/controller/IndexController.java | UTF-8 | 420 | 1.773438 | 2 | [] | no_license | package com.cyb.yycg.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @ClassName IndexController
* @Descripttion TODO
* @Author chenyongbo
* @Date 2019/3/28 11:34
**/
@Controller
public class IndexController {
//欢迎页面
@Requ... | true |
4b7ff51c011a7e59c272fd0162d124a7651426cc | Java | princebak/empmanager_repo | /src/main/java/com/blh/empmanager/restrepositories/EmployeeRestRepository.java | UTF-8 | 639 | 1.875 | 2 | [] | no_license | package com.blh.empmanager.restrepositories;
import com.blh.empmanager.entities.Employee;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.anno... | true |
c273fe06005012ef552f69cc16c73ef0ac254ca1 | Java | crnk-project/crnk-framework | /crnk-gen/crnk-gen-java/src/test/resources/TypedQuerySpecTest.java | UTF-8 | 804 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package test;
import io.crnk.core.queryspec.FilterOperator;
import io.crnk.core.queryspec.FilterSpec;
import io.crnk.core.queryspec.QuerySpec;
import io.crnk.core.queryspec.SortSpec;
import static test.UserPathSpec.*;
public class TypedQuerySpecTest {
public QuerySpec createQuerySpec() {
UserQuerySpec q... | true |
407f2fb8980aabd845c70afe9079ee912982b905 | Java | NailyaD/Java-Course | /dbdemo/src/main/java/de/telran/repository/StudentRepository.java | UTF-8 | 931 | 2.234375 | 2 | [] | no_license | package de.telran.repository;
import de.telran.entity.StudentEntity;
import de.telran.dto.StudentsByCourseDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.re... | true |
b4149f3c521c05bccfd8b04e8cb49e702416fe28 | Java | mahbub123-gif/java_all | /lab5/src/lab5/Lab4ProblemA.java | UTF-8 | 504 | 2.671875 | 3 | [] | no_license | package lab5;
public class Lab4ProblemA {
public static void main(String[] args) {
Icecream obj1=new Icecream();
obj1.icecreamType="vanilla";
obj1.icecreamCompany="Igloo";
obj1.icecreamPrice= 10;
Icecream obj2=new Icecream();
obj2.icecreamType="Chocolate";
... | true |
6e0db0be7577c5d590473131fdfc1c6889372b4a | Java | ibrcic/torvalds-senior-dev | /android/ISTInventoryManagement/app/src/main/java/torvalds/istinventorymanagement/bus/RxBusReservation.java | UTF-8 | 716 | 2.359375 | 2 | [] | no_license | package torvalds.istinventorymanagement.bus;
import com.jakewharton.rxrelay2.BehaviorRelay;
import io.reactivex.Observable;
import torvalds.istinventorymanagement.model.Student;
/**
* Created by ivan on 4/14/17.
*/
public class RxBusReservation {
private static RxBusReservation instance;
private Behavio... | true |
328f16f82cc2556519f47752f3f2dd6404cc140c | Java | AndyTsangChun/UoB_LeapVisualizationSystem | /src/ui/awt/panel/LVSOverLayerPanel.java | UTF-8 | 9,965 | 2.203125 | 2 | [] | no_license | package ui.awt.panel;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;... | true |
b79f631b715bf3122d1ce0661358bea81742dea9 | Java | Clownvin/Lumina | /src/com/clownvin/lumina/world/Chunk.java | UTF-8 | 993 | 3.046875 | 3 | [] | no_license | package com.clownvin.lumina.world;
import java.util.ArrayList;
import com.clownvin.lumina.entity.Entity;
public class Chunk {
private final String name;
private final int width, height;
private ArrayList<Entity> tileSet = new ArrayList<>();
private ArrayList<Entity> entities = new ArrayList<>();
... | true |
bc28d5b87b84a85be2acad492590142e55f7f321 | Java | DoodleBobBuffPants/CypherSQL | /cypher-translator/src/main/java/cyphersql/ast/match/where/WhereCondition.java | UTF-8 | 229 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package cyphersql.ast.match.where;
public class WhereCondition {
public WhereArgument leftArgument = new WhereArgument();
public String comparisonOperator;
public WhereArgument rightArgument = new WhereArgument();
}
| true |
650b53dc41b07160ce7b53374e4441c5994c7ff3 | Java | stanislaw-tokarski/github-discovery | /github-discovery-service/src/main/java/com/github/stanislawtokarski/githubdiscovery/exception/GithubApiException.java | UTF-8 | 284 | 2.140625 | 2 | [] | no_license | package com.github.stanislawtokarski.githubdiscovery.exception;
import lombok.Getter;
public class GithubApiException extends RuntimeException {
@Getter
private final int errorCode;
public GithubApiException(int errorCode) {
this.errorCode = errorCode;
}
}
| true |
56482b3bce5f470de0b8d1408be1be789ded5663 | Java | 0704mm/mm | /src/main/java/com/yc/biz/IMenberInfoBiz.java | UTF-8 | 275 | 1.835938 | 2 | [] | no_license | package com.yc.biz;
import com.yc.po.MenberInfo;
public interface IMenberInfoBiz {
/**
* 登录
* @param bf
* @return
*/
public MenberInfo login(MenberInfo mf);
/**
* 注册
* @param bf
* @return
*/
public int add(MenberInfo mf);
}
| true |
c716d91a0e528e9642bfe23a980124f3e7c7c182 | Java | sin-orb/Simyukkuri2021 | /src/util/YukkuriUtil.java | UTF-8 | 19,494 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package src.util;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import src.SimYukkuri;
import src.attachment.Ants;
import src.base.Body;
import src.draw.Terrarium;
import src.enums.Attitude;
import src.enums.In... | true |
0fb123eab2e2eeb16e40728800279af800b11c17 | Java | yaoyue6/OnlineMusic | /music-server/src/main/java/com/rg171/music/mapper/CommentMapper.java | UTF-8 | 1,356 | 2.140625 | 2 | [] | no_license | package com.rg171.music.mapper;
import com.rg171.music.entity.Comment;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @description: 评论
* @author: WangDongXu
**/
@Repository
public interface CommentMapper {
/**
* 插入
* @param record
* @return
*/
int inser... | true |
4a8c388ab97543a87ddc1a09ffcffed6e4f48c85 | Java | abhi007tyagi/JavaExperiments | /JavaExperiments/src/tyagiabhinav/leetcode/MedianOfTwoSortedArray.java | UTF-8 | 1,275 | 3.265625 | 3 | [
"MIT"
] | permissive | package tyagiabhinav.leetcode;
import java.util.LinkedHashMap;
public class MedianOfTwoSortedArray {
public static double findMedianSortedArrays(int[] nums1, int[] nums2) {
double mid1 = getMid(nums1);
double mid2 = getMid(nums2);
double res = 0.0;
if(mid1 != 0.0 && mid2 != 0.0) r... | true |
fff232bd862a48acf7b7a41a98b269596ff01560 | Java | hehuazheng/excel-util | /src/main/java/com/hhz/excel/support/AbstractSheetDefinition.java | UTF-8 | 612 | 2.15625 | 2 | [] | no_license | package com.hhz.excel.support;
import java.util.List;
import com.google.common.collect.Lists;
import com.hhz.excel.poi.FieldWrapper;
public abstract class AbstractSheetDefinition {
private int titleRowIndex = 1;
protected List<FieldWrapper> fieldWrapperList;
public AbstractSheetDefinition() {
field... | true |
8c63834c0461b23c89e6c41b511c9dabeeef530c | Java | Talend/avro-schema-editor | /org.talend.avro.schema.editor/src/org/talend/avro/schema/editor/viewer/SchemaPopupMenuConfigurationImpl.java | UTF-8 | 1,778 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package org.talend.avro.schema.editor.viewer;
import org.eclipse.jface.action.ContributionManager;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.ui.menus.IMenuService;
import org.talend.avro.schema.editor.context.AvroContext;
import org.talend.avro.schema.e... | true |
78ba48883645e3d00a6f025a078a870b53434b8c | Java | 275288698/AndroidSoapServer | /src/edu/agh/wsserver/utils/dto/LocationDto.java | UTF-8 | 372 | 2.234375 | 2 | [] | no_license | package edu.agh.wsserver.utils.dto;
public class LocationDto {
public final double latitude;
public final double longitude;
public LocationDto(double latitude, double longitude) {
this.latitude = latitude;
this.longitude = longitude;
}
@Override
public String toString() {
return "LocationDto [latitude="... | true |
d9fc4e25fd978c832ea6a0f898a91941e12649b9 | Java | Tobaay/pdj-music | /src/java/Database/DAO.java | UTF-8 | 249 | 2.0625 | 2 | [] | no_license |
package Database;
import model.User;
public interface DAO {
public User getUser(String username, String password);
public User getUser(String username);
public void setUser(String username, String password, String email);
}
| true |
4ae2df956c7785e40c3751ef0afad738aa7eeb55 | Java | NYCComptroller/Checkbook-BDD | /src/test/java/io/reisys/checkbook/citywide/datafeeds/budget/DFBudgetPage.java | UTF-8 | 4,702 | 1.929688 | 2 | [] | no_license | package io.reisys.checkbook.citywide.datafeeds.budget;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import io.reisys.checkbook.bdd.common.CheckbookBasePageObject;
public class DFBudgetPage extends CheckbookBas... | true |
bc5ab68f9360ca81268a69d9ebb19fb51ff5a9f7 | Java | gosin1994/zx | /src/main/java/com/zx/dao/ApplyDao2.java | UTF-8 | 567 | 1.765625 | 2 | [] | no_license | package com.zx.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.zx.common.page.Page;
import com.zx.entity.Apply2;
public interface ApplyDao2 {
int deleteByPrimaryKey(Integer id);
int insert(Apply2 record);
int insertSelective(Apply2 record);
Apply2 selectByPrimar... | true |
605956f48dc35c2057ca514698a94cf2765dec67 | Java | chinni73/Test1 | /src/main/resources/Employee.java | UTF-8 | 492 | 3.125 | 3 | [] | no_license |
public class Employee implements Comparable<Employee>
{
int id,salary;
String name;
Emplyoee(String name,int id,int salary)
{
this.name=name;
this.id=id;
this.salary=salary;
}
public int CompareTo(Employee el)
{
if(i... | true |
7c438086905c8d0195df45f2d2ae290c7fe31be1 | Java | peluka613/weather-demo | /src/main/java/edu/weather/model/dto/LocationDto.java | UTF-8 | 222 | 1.78125 | 2 | [] | no_license | package edu.weather.model.dto;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class LocationDto {
private String lat;
private String lon;
private String city;
private String state;
}
| true |
48fa8047233a6fc0a8294e8a9454756103e6fb1c | Java | gverissi/Todo-list-mono | /src/test/java/com/example/todomono/controller/HomeControllerUnitTest.java | UTF-8 | 2,394 | 2.15625 | 2 | [] | no_license | package com.example.todomono.controller;
import com.example.todomono.entity.Role;
import com.example.todomono.exception.EntityAlreadyExistException;
import com.example.todomono.form.CustomerCreateForm;
import com.example.todomono.service.RoleService;
import com.example.todomono.service.customer.HomeService;
import org... | true |
f2ec1ff655628efc089283ae96445cc28f0896ba | Java | mpeychev/Villie | /src/interpreter/loader/RecursiveLoader.java | UTF-8 | 968 | 2.4375 | 2 | [
"MIT"
] | permissive | // Author: Momchil Peychev
package interpreter.loader;
import java.util.HashMap;
import interpreter.evaluator.EvaluationTree;
import interpreter.evaluator.RunTimeErrorException;
import interpreter.lexer.LexerErrorException;
import interpreter.parser.AbstractSyntaxTree;
import interpreter.parser.Expression;
import in... | true |
018c3322a78f376f2033fad101bf419e48abaa85 | Java | ZoranLi/wechat_reversing | /com/tencent/mm/plugin/game/model/r.java | UTF-8 | 3,661 | 1.570313 | 2 | [] | no_license | package com.tencent.mm.plugin.game.model;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.plugin.game.d.c;
import com.tencent.mm.plugin.game.model.q.d;
import com.tencent.mm.plugin.game.ui... | true |
8a6907d547d62ef41d67351d440616f51e03e7e2 | Java | TomSpencerLondon/Design-Patterns-in-Java | /src/main/java/StructruralDesignPatterns/Flyweight/FormattedText.java | UTF-8 | 963 | 3.515625 | 4 | [] | no_license | package StructruralDesignPatterns.Flyweight;
import java.util.ArrayList;
import java.util.List;
public class FormattedText {
private String plainText;
private List<TextRange> formatting = new ArrayList<>();
FormattedText(String plainText) {
this.plainText = plainText;
}
TextRange getRang... | true |
5455eb6c7a1ebce296aae8c0c3d40cf24db5a182 | Java | immortalcatz/HelperTools | /src/main/java/helpertools/tools/ItemEuclideanTransposer.java | UTF-8 | 16,372 | 1.679688 | 2 | [
"MIT"
] | permissive | package helpertools.tools;
import java.util.List;
import java.util.Random;
import helpertools.Mod_Registry;
import helpertools.HelpTab;
import helpertools.Main;
import helpertools.blocks.tile_entities.TileEntityTranscriber;
import helpertools.util.InventoryUtil;
import helpertools.util.Whitelist_Util;
import cpw.mods... | true |
9520ed6cecda8f5b7312a2c5bb5caad04ebb2b58 | Java | tasomaniac/SeriesGuide | /SeriesGuide/src/main/java/com/battlelancer/seriesguide/util/MovieTools.java | UTF-8 | 42,295 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Uwe Trottmann
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
a6b4568ef1e4dc03ba4dfd5aaf0807c1f119c022 | Java | MZ-Liang/MySolr | /src/main/java/com/lmz/bean/PageResult.java | UTF-8 | 1,885 | 2.546875 | 3 | [] | no_license | package com.lmz.bean;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* 分页结果类
* @param <T>
*
*/
public class PageResult<T> implements Serializable{
/** serialVersionUID */
private static final long serialVersionUID = 1L;
/** 当前页 */
private Integer pageNo;
/** ... | true |
df0dfb204e066b80e4d17b9c478be10a543a7eda | Java | linkedin/avro-util | /helper/helper-common/src/main/java/com/linkedin/avroutil1/compatibility/AvroAdapter.java | UTF-8 | 9,809 | 1.648438 | 2 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | /*
* Copyright 2020 LinkedIn Corp.
* Licensed under the BSD 2-Clause License (the "License").
* See License in the project root for license information.
*/
package com.linkedin.avroutil1.compatibility;
import com.linkedin.avroutil1.normalization.AvscWriterPlugin;
import java.io.IOException;
import java.io.InputSt... | true |
a4467a3a8e809df36ad28e85c06a856d32c7c763 | Java | nicomartinezdev/ryd | /src/main/java/com/ryd/validator/ClienteFormValidator.java | UTF-8 | 923 | 2.40625 | 2 | [] | no_license | package com.ryd.validator;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import com.ryd.model.ClienteForm;
import com.ryd.service.ClienteService;
public class ClienteFormValidator implements Validator{
private C... | true |
4c69130e3c41ed4ae9c8330e49bd4a944ca10a2f | Java | chenluyuan/jaksona | /src/main/java/com/jaksona/app/entity/admin/Permission.java | UTF-8 | 1,751 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.jaksona.app.entity.admin;
import com.jaksona.app.bean.tree.TreeBean;
import java.util.Date;
/**
* 权限
* @author jaksona
*/
public class Permission extends TreeBean {
// members
private String name;
private String code;
private String url;
private String descn;
private Integer type;
private Integ... | true |
60cc91b1ddc5060e07f96af994aa47fc25203074 | Java | atinkohli/DemoProjects | /JEE/ReviewSystem/ReviewSystemJpa/src/com/arpn/review/jpa/domain/Reviews.java | UTF-8 | 1,410 | 2.34375 | 2 | [] | no_license | package com.arpn.review.jpa.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="Reviews",schema="APP")
public class Reviews {
private long reviewId;
private Strin... | true |
ff85f106763bd53ec38477112430daed978e2300 | Java | seanshaojie/graduation_project | /src/main/java/com/example/service/impl/PermissionServiceImpl.java | UTF-8 | 943 | 2.046875 | 2 | [] | no_license | package com.example.service.impl;
import com.example.dao.PermissionDao;
import com.example.model.Permission;
import com.example.service.PermissionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Servic... | true |
7240617225f0b4ee62c9636d14f02dcc31ff3e8a | Java | Dranoss/firstCourtagePatBack | /src/main/java/com/patrimoine/website/webServices/service/UserAddressService.java | UTF-8 | 1,748 | 2.28125 | 2 | [] | no_license | package com.patrimoine.website.webServices.service;
import com.patrimoine.website.webServices.entity.UserAddress;
import com.patrimoine.website.webServices.repository.UserAddressRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframe... | true |
b7298e70f3c78ecf6a1cbfd56ed9bbe3e23a6cc3 | Java | Peipeilvcm/Junior-semester | /JAVA/homework_7/BookSpecification.java | GB18030 | 1,500 | 3.21875 | 3 | [] | no_license |
public class BookSpecification {
public static final int NOT_EXIST = 0; //ʱ鱾
public static final int NOT_COMPUTER_TEACHING = 1; //ǽ̲ļ
public static final int TEACHING = 2; //̲
public static final int COMIC = 3; //
public static final int HEALTH = 4; //
public static final int OTHER = 5; //
... | true |
a99f01357e060561f74de269f90fc4515af6303a | Java | bianapis/sd-direct-debit-v3 | /src/main/java/org/bian/dto/CRDirectDebitArrangementExchangeOutputModel.java | UTF-8 | 4,894 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* CRDirectDebitArrangementExchangeOutputModel
*/
public class... | true |
4135773e161a89e1bdbe784cf624acde65ca6412 | Java | tectronics/macchiato-ecommerce | /Macchiato/src/fr/labri/macchiato/client/cart/OfferSearch.java | UTF-8 | 3,070 | 2.28125 | 2 | [] | no_license | package fr.labri.macchiato.client.cart;
import java.util.ArrayList;
import java.util.List;
import com.google.gwt.i18n.client.NumberFormat;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.form.fields.RadioGroupItem;
impor... | true |
a445e1e13316985dbed5b5f27d043362230a2d24 | Java | zhouhui0802/Greedy_Snake_Zh | /src/com/zh/ui/MyGameStartPanel.java | GB18030 | 3,394 | 2.84375 | 3 | [] | no_license | package com.zh.ui;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.*;
import javax.swing.*;
import com.zh.entity.Direction;
import com.zh.entity.Egg;
import com.zh.entity.Node;
import com.zh.entity.Snake;
public class MyGameStartPanel extends JPanel implements Action... | true |
b9ebe8324447107d29aafeea3cb1b0c0f65ffe66 | Java | jid1311644/TinyLove | /src/com/example/tinylove/Interface/ItemClickListener.java | UTF-8 | 128 | 1.820313 | 2 | [] | no_license | package com.example.tinylove.Interface;
public interface ItemClickListener {
public void onItemClickListener(int position);
}
| true |
658c22da8f2bb53a518a9241a84f544b0ef2aac0 | Java | Shivarathri/lmsjdbc | /project/librarymanagementjdbc/src/main/java/com/capgemini/librarymanagementjdbc/dao/AdminDAOImplementation.java | UTF-8 | 6,719 | 2.671875 | 3 | [] | no_license | package com.capgemini.librarymanagementjdbc.dao;
import java.io.FileInputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.List;
import java.util.Properties;
import c... | true |
b05a20c2e95025705441d3f41fef687b97887a0e | Java | EngulfMiss/LearnJava2 | /LearnReflect/annotation/Reflect/Demo1.java | UTF-8 | 144 | 1.78125 | 2 | [] | no_license | package LearnReflect.annotation.Reflect;
public class Demo1 {
public void show(){
System.out.println("showyishow");
}
}
| true |
fce4be0fc5a7081faf8c5c4723e389670278c41b | Java | piefel/testing-spring-contexts | /src/test/java/mockmvc/example/WebAppContextJMockitTest.java | UTF-8 | 3,869 | 2.15625 | 2 | [] | no_license | package mockmvc.example;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;
import org.junit.Before;
import... | true |
045a3b0ac95a7070634fe1bfe73b9982986fda1e | Java | AlbertoMGV/SoftDesign_E3 | /SD3_DeustoAir_Server/src/es/deusto/deustoair/server/gateway/PaypalPaymentProcessor.java | UTF-8 | 421 | 2.203125 | 2 | [] | no_license | package es.deusto.deustoair.server.gateway;
import es.deusto.deustoair.server.data.Payment;
public class PaypalPaymentProcessor implements IPaymentGateway{
private String email, password;
public PaypalPaymentProcessor(String email, String password) {
this.email = email;
this.password = password;
}
@Over... | true |
79026348645d10c617814fd38146374b560f5f08 | Java | dhanashreejava/BankApplication | /src/Saving.java | UTF-8 | 496 | 2.203125 | 2 | [] | no_license |
public class Saving extends Account{
int saving_Id;
int saving_limit;
int saving_in;
public int getSaving_id() {
return saving_Id;
}
public void setSaving_id(int saving_id) {
this.saving_Id = saving_id;
}
public int getSaving_limit() {
return saving_limit;
}
public void setSaving_limit(int saving_limit... | true |
397ab1baf705a28ff74dd43f25a2483b3aad5ab2 | Java | Zeegit/fin | /src/main/java/ru/zeet/fin/service/SecurityService.java | UTF-8 | 2,148 | 2.296875 | 2 | [] | no_license | package ru.zeet.fin.service;
import org.springframework.stereotype.Service;
import ru.zeet.fin.converter.ServiceUserToUserDtoConverter;
import ru.zeet.fin.dao.ServiceUserDao;
import ru.zeet.fin.domain.ServiceUser;
import ru.zeet.fin.dto.UserDto;
import ru.zeet.fin.exception.CommonServiceException;
import java.sql.SQL... | true |
cf58d841c5aeb140baabbc16eed3445697e0359d | Java | apratapani/advanced-java-spring | /src/main/java/platform/codingnomads/co/corespring/examples/autowiredannotation/GeForce.java | UTF-8 | 193 | 1.601563 | 2 | [] | no_license | package platform.codingnomads.co.corespring.examples.autowiredannotation;
import org.springframework.stereotype.Component;
@Component("geforce")
public class GeForce implements VideoCard {
}
| true |
4ddebc9bf8466a2a098c28bbcfba982611c4697d | Java | MrSkip/cinema | /src/main/java/com/countrycinema/ua/persistence/entity/Company.java | UTF-8 | 1,129 | 2.109375 | 2 | [] | no_license | package com.countrycinema.ua.persistence.entity;
import com.countrycinema.ua.persistence.entity._core.time.TimeComponentString;
import com.countrycinema.ua.persistence.entity.equipment.Equipment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.persistence.*;
import java.util.... | true |
0805b37f1caec5f0b8a8db6bbd1195817e1de5a9 | Java | wallxu/wallxuCloud | /wallxu-seckill/wallxu-seckill-web/src/main/java/com/wallxu/seckill/interceptor/UserHandlerMethodArgumentResolver.java | UTF-8 | 2,064 | 2.34375 | 2 | [] | no_license | package com.wallxu.seckill.interceptor;
import com.wallxu.common.utils.FastJsonUtil;
import com.wallxu.common.utils.RedisUtil;
import com.wallxu.seckill.annotation.UserInfo;
import com.wallxu.seckill.dao.domain.TbMiaoshaUser;
import org.springframework.core.MethodParameter;
import org.springframework.lang.Nullable;
im... | true |
f2a6ea769a6d77151f868099ca17923a479f9d1a | Java | sheldorTheConqueror73/AgileBandits | /src/renderer/BasicRayTracer.java | UTF-8 | 11,475 | 2.65625 | 3 | [] | no_license | package renderer;
import algo.SuperSampling;
import elements.LightSource;
import primitives.*;
import scene.Scene;
import geometries.Intersectable.GeoPoint;
import java.util.ArrayList;
import java.util.List;
import static primitives.Util.alignZero;
public class BasicRayTracer extends RayTracerBase {
private sta... | true |
0732f9abc6690216578a5081bdb2992727419d93 | Java | fllafquen/Patrones-de-Dise-o | /FactoryMethod/PedidoCredito.java | UTF-8 | 516 | 3.203125 | 3 | [] | no_license | package FactoryMethod;
public class PedidoCredito extends Pedido{
public PedidoCredito(double importe) {
super(importe);
}
@Override
public boolean valida() {
if((importe>=1000.0)&& (importe<=5000.0))
return true;
else
return false;
}
@Override
public void paga() {
System.out.println("El pago d... | true |
bda65d51c5bfd2c0ad6fc43dce46e5c39a1df839 | Java | CheungBH/HKUEEE | /app/src/main/java/msc/eee/hku/hkueee/facilities/Communication.java | UTF-8 | 1,157 | 2.21875 | 2 | [] | no_license | package msc.eee.hku.hkueee.facilities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import msc.eee.hku.hkueee.R;
public class Communication extends AppCompatActivity {
private String[] data={"Audio Engineering Lab... | true |
e77e0ea4dbb1fc5074ef3a23da8880e6f08a0847 | Java | nusratsultana95/JavaBasic | /src/mentoring/MentoringAssertion.java | UTF-8 | 490 | 2.609375 | 3 | [] | no_license | package mentoring;
import org.testng.Assert;
import org.testng.asserts.SoftAssert;
public class MentoringAssertion {
public static void main(String[] args) {
int a= 10;
int b=12;
int i= 30;
int j= 20;
//hard assert
//Assert.assertEquals(a,b,"assertion failed");
... | true |
e7a6e4cb8a621bb3bcf2af320b6ba4ce154f9547 | Java | WhaAppsTraining/LoadImageFromNetwork | /app/src/main/java/sembarang/mainanimage/LoadImageWithGlideActivity.java | UTF-8 | 444 | 2.03125 | 2 | [] | no_license | package sembarang.mainanimage;
import android.os.Bundle;
import com.bumptech.glide.Glide;
/**
* Kelas yang mempraktekkan cara untuk download image dan set ke ImageView menggunakan Glide
*/
public class LoadImageWithGlideActivity extends ImageViewActivity {
@Override
protected void onCreate(Bundle savedIns... | true |
a8ea1b44819c104f3f94b241db5a408f2ad2064a | Java | uttejadiraju/JavaLearning | /src/multiThreadingDuragSoft/SynchronizedWithIrregularOutput.java | UTF-8 | 846 | 3.390625 | 3 | [] | no_license | package multiThreadingDuragSoft;
class Display1 {
public synchronized void wish(String name){
for (int i = 0; i < 10; i++) {
System.out.println("Good Morining --" +name);
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
... | true |
71f4e9ad63cffe1f8a531c32fd2cf24741d61b7a | Java | t4kaha00/software_production_project | /src/botrecvm/Constants.java | UTF-8 | 591 | 1.5625 | 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 botrecvm;
/**
*
* @author vvaisan
*/
public class Constants {
public static final int STOPPED=1;
public static fin... | true |
6ffa31d98ae92c57fc073d5430f4de8e23995389 | Java | mygithubwork/midi-relay | /src/main/java/de/paluch/midi/relay/http/RsApplication.java | UTF-8 | 506 | 2.140625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package de.paluch.midi.relay.http;
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.core.Application;
/**
* @author <a href="mailto:mark.paluch@1und1.de">Mark Paluch</a>
* @since 09.11.12 20:44
*/
public class RsApplication extends Application {
private java.util.Set<java.lang.Object> object... | true |
7c1d53b21ef31b34d05c1b948389b0cac939b634 | Java | velovan/myBooks | /Books/src/Book/Information.java | UTF-8 | 550 | 2.65625 | 3 | [] | no_license | package Book;
public class Information{
public String getWelcomeInformation(){
return " *** Welcome ***";
}
public String getInvalidOptionInformation(){
return "Select a valid option!!\n";
}
public String getValidBookInformation(){
return "Thank You! Enjoy the book.\... | true |
00e3c837ab36b1dac7c0de0381cca402e2a42242 | Java | ChooseSongsSystem/ChooseSongsSystem | /niejinlian/GeQuChose.java | GB18030 | 3,749 | 2.671875 | 3 | [] | no_license | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import j... | true |
ed4aefeb00bd14177bfd6317f6cf9e225dcc403c | Java | nileshkadam222/Core-Java | /Core java - Programmes/for loop/disha12.java | UTF-8 | 379 | 2.921875 | 3 | [] | no_license | import java.io.*;
class disha12
{
public static void main(String ar[])throws IOException
{
int i, n, ans=0;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the value of n");
n=Integer.parseInt(in.readLine());
for(i=1;i<=10;i++)
{
... | true |
401121d446be266da2a8fcf1af45897564791995 | Java | ysun02/gitlet-version-control-system | /gitlet/Staging.java | UTF-8 | 14,283 | 2.5625 | 3 | [] | no_license | package gitlet;
import java.io.File;
import java.io.Serializable;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Set;
import java.util.ArrayList;
import java.util.List;
import java.util.HashSet;
/** staging class.
* @author Yuan Sun
* */
public class Staging implements Serializable {
/**... | true |
2a8bd7d48a3d0d73f50d997cd4156855a7306f2c | Java | China-YunSu/ActionProcessor | /src/man/kuke/action/core/BeanDefination.java | UTF-8 | 740 | 2.3125 | 2 | [] | no_license | package man.kuke.action.core;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
public abstract class BeanDefination {
protected Method method;
protected Object object;
protected Class<?> klass;
protected Class<?> getKlass() {
return klass;
}
public void setKlass(C... | true |
f70b6a36167c17f8218fd711348b91d5d764cdcb | Java | TiagoAlmeidaPoa/designPatterns | /src/main/java/br/fundatec/lp3/lojacelulares/materialfactory/MaterialFactoryCentro.java | UTF-8 | 714 | 2.296875 | 2 | [] | no_license | package br.fundatec.lp3.lojacelulares.materialfactory;
import br.fundatec.lp3.lojacelulares.acessorio.Acessorio;
import br.fundatec.lp3.lojacelulares.acessorio.AcessorioCarregadorPortatil;
import br.fundatec.lp3.lojacelulares.embalagem.Embalagem;
import br.fundatec.lp3.lojacelulares.embalagem.EmbalagemPlastica;
import... | true |
b1f0f9849d75de09872224a7fda0d37849ab75a2 | Java | Deadpool110/Leetcode | /training/src/leetcode/_173_BSTIterator.java | UTF-8 | 1,834 | 3.296875 | 3 | [] | no_license | package leetcode;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
public class _173_BSTIterator {
List<Integer> bst;
int tmp;
public _173_BSTIterator(TreeNode root) {
bst = new ArrayList<>();
tmp = 0;
bst.add(-1);
setB... | true |
ba6e3d5c4f829048a22335c13026d16d465ddc2c | Java | 18164481730/spring-boot | /src/main/java/com/tangzhihe/dao/UserDao.java | UTF-8 | 229 | 1.859375 | 2 | [] | no_license | package com.tangzhihe.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.tangzhihe.domain.User;
public interface UserDao {
public List<User> queryUserList(@Param("entity")User user);
}
| true |
eb238fd02316084849221de7e1acb91e3602f6ed | Java | maoyujiao/bible1 | /cetbible_lib/src/main/java/com/iyuba/activity/sign/SignActivity.java | UTF-8 | 16,440 | 1.679688 | 2 | [] | no_license | package com.iyuba.activity.sign;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.os.B... | true |
14fe284935d37928ac24581cb472ca09797ffaf3 | Java | jhosep2001/crowdFunding | /src/main/java/com/crowd/repository/PublisherDAO.java | UTF-8 | 266 | 1.71875 | 2 | [] | no_license | package com.crowd.repository;
import com.crowd.entities.Publisher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface PublisherDAO extends JpaRepository<Publisher,Long> {
}
| true |
a1d16a6bd33a21eee4a0252bb6794b6b3d7bcdcb | Java | SBeausoleil/Echelon | /src/main/java/com/sb/echelon/exceptions/NoIdFieldException.java | UTF-8 | 489 | 2.484375 | 2 | [
"MIT"
] | permissive | package com.sb.echelon.exceptions;
public class NoIdFieldException extends EchelonRuntimeException {
private static final long serialVersionUID = -4308582206714518021L;
public NoIdFieldException(Class<?> clazz) {
super("The class " + clazz.getName() + " has no usable ID field. For a field to be used by Echelon, ... | true |
82cf2e031230ad8b267d9fcb2c0a5b60271d49f4 | Java | lavaalone/cgm | /src/com/vng/nettyhttp/ServerPipelineFactory.java | UTF-8 | 1,768 | 1.960938 | 2 | [] | no_license | package com.vng.nettyhttp;
import java.util.concurrent.TimeUnit;
import javax.net.ssl.*;
import static org.jboss.netty.channel.Channels.*;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.handler.codec.http.HttpContentCompressor;
import org.... | true |
9f4239a737ea586072a23edc7cec1e3c8b257f75 | Java | VBurachenko/Pagination | /src/main/java/by/epam/tc/parser/sax/impl/SetOrigin.java | UTF-8 | 343 | 2.078125 | 2 | [] | no_license | package by.epam.tc.parser.sax.impl;
import by.epam.tc.parser.sax.Command;
import by.epam.tc.entity.Plane;
public class SetOrigin extends Command{
private Plane plane;
public SetOrigin(Plane plane) {
super(plane);
}
@Override
public void execute(String content) {
getPlane().setOr... | true |
596df37689ce327edcdc9dc4a15bb6e44ac0ee97 | Java | shadowba/LeetCode_JJ | /src/com/LeetCodeJack/Problems/P744_FindSmallestLetterGreaterThanTarget.java | UTF-8 | 947 | 3.296875 | 3 | [] | no_license | package com.LeetCodeJack.Problems;
public class P744_FindSmallestLetterGreaterThanTarget {
public char nextGreatestLetter(char[] letters, char target) {
if (letters.length == 1)
return letters[0];
int x = target;
int left = 0;
int right = letters.length -1;
int ... | true |
8df071e13a96913bffef59aadc8955a1cbedd7a7 | Java | saikrishnasahu/junit | /src/test/java/com/junit/helper/ArraysCompareTest.java | UTF-8 | 662 | 2.609375 | 3 | [] | no_license | package com.junit.helper;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertArrayEquals;
public class ArraysCompareTest {
@Test
public void testArrays() {
int[] numbers = {12, 13, 4, 1};
int[] expected = {1, 4, 12, 13};
Arrays.sort(numbers);
... | true |
a7116a135f411de34a79b557829221c2b62e2ec9 | Java | moon-util/moon-util | /src/main/java/com/moon/runner/core/ParseParams.java | UTF-8 | 1,989 | 2.609375 | 3 | [
"MIT"
] | permissive | package com.moon.runner.core;
import com.moon.core.lang.ref.IntAccessor;
import com.moon.runner.RunnerSetting;
import java.util.ArrayList;
import java.util.List;
import static com.moon.core.lang.ThrowUtil.noInstanceError;
import static com.moon.runner.core.Constants.*;
/**
* 方法调用参数解析
*
* @author moonsky
*/
fina... | true |