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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4a8cf3820fc8b79240b63c2d0379023942042f99 | Java | Yenaviel/NaukaJavy | /Polimorfizm/src/HospitalApp.java | UTF-8 | 238 | 2.171875 | 2 | [] | no_license |
public class HospitalApp {
public static void main(String[] args) {
Hospital hospital = new Hospital();
hospital.add(0);
hospital.add(1);
hospital.add(2);
hospital.getInfo();
}
}
| true |
d620afa5875b4c38fd152fba9f5dfe44929f50ba | Java | YinChuanLiu/Rebuild_System | /后端/rebuild_system/src/main/java/top/yc9064/mapper/TeacherMapper.java | UTF-8 | 283 | 1.953125 | 2 | [] | no_license | package top.yc9064.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.yc9064.pojo.Student;
import top.yc9064.pojo.Teacher;
@Repository
@Mapper
public interface TeacherMapper {
Teacher getTeacherByID(String tid);
}
| true |
0d70db05335757302415a3124b01470c204a8c1d | Java | BRoftWook/Broft | /hw2/app/src/main/java/com/example/hw2/MainActivity.java | UTF-8 | 2,038 | 2.609375 | 3 | [] | no_license | package com.example.hw2;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.Toast;
public class MainActivity extends Activity implements View.OnClickListener{
String ... | true |
e034cdfd4022fc11e4d5e879f1db3a0bfd6121f7 | Java | shenjialong/xiaoyudi | /ScreeningServer/src/utils/tessss.java | UTF-8 | 1,148 | 2.0625 | 2 | [] | no_license | package utils;
import net.sf.json.JSONObject;
public class tessss {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
// String
// jsonData="{question1,question2,question3,question4,question5,question6," +
// "question7,question8,question9,question10,questi... | true |
f9822b56702e231bf6d7ce513496414bbddef67f | Java | tadas-subonis/lime-mvc | /lime/src/test/java/org/zdevra/guice/mvc/security/controller/SecureRoleController.java | UTF-8 | 1,511 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | /*****************************************************************************
* Copyright 2011 Zdenko Vrabel
*
* 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.... | true |
27b9044e4cb00ba54b6fab0c6b2e2edcdef19e2c | Java | Mobile-Programming-1213/v1.5-Beta | /java/ssjk/cafein/MainActivity.java | UTF-8 | 17,619 | 1.65625 | 2 | [] | no_license | package ssjk.cafein;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.... | true |
6eee786c6752ca71d1d32b20b4d66e5352d65a63 | Java | RedEyedMars/Questineer | /S01/gui/graphics/graphics/GraphicRenderer.java | UTF-8 | 8,379 | 2.140625 | 2 | [] | no_license | package com.rem.otl.core.gui.graphics;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.u... | true |
2d4ae6621f4bda7ad3d6188308163f1ebf693bed | Java | HHimanshusahni/DS-Algo-Code | /coding ninjas practice code/14 LinkedList - 2/_02FindElementInLinkedListRecursively.java | UTF-8 | 1,327 | 3.71875 | 4 | [] | no_license | import java.util.Scanner;
class LinkedListNode<T>{
T data;
LinkedListNode<T> next;
public LinkedListNode(T data){
this.data = data;
}
}
public class _02FindElementInLinkedListRecursively{
public static int indexOfNRec(LinkedListNode<Integer> head, int n) {
return indexOfNRec(head,n,0);
}
public static int i... | true |
7b45f18f3787f753e468187115d110561f83256c | Java | highnes7/umaang_decompiled | /f/g/org/org/http/HttpEncodingStreamingContent.java | UTF-8 | 959 | 2.3125 | 2 | [] | no_license | package f.g.org.org.http;
import f.g.org.org.util.StreamingContent;
import java.io.IOException;
import java.io.OutputStream;
public final class HttpEncodingStreamingContent
implements StreamingContent
{
public final StreamingContent content;
public final HttpEncoding encoding;
public HttpEncodingStreamingC... | true |
24d16cade11478ba69e3861d3b2e62db44120ed2 | Java | startshineye/heartbeat | /src/main/java/net/iegreen/service/operation/job/PerHeartBeatExecutor.java | UTF-8 | 567 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package net.iegreen.service.operation.job;
import net.iegreen.domain.application.ApplicationInstance;
import net.iegreen.domain.log.FrequencyMonitorLog;
/**
* @author Shengzhao Li
*/
public class PerHeartBeatExecutor extends PerHeartBeatExecutorTemplate {
public PerHeartBeatExecutor(String instanceGuid) {
super... | true |
0b366874c84c8b5ea90d9b705235fa1c1d278ad8 | Java | MartinGeisse/public | /name.martingeisse.json/src/main/java/name/martingeisse/common/javascript/ownjson/parserbase/AbstractJsonParser.java | UTF-8 | 5,884 | 2.828125 | 3 | [
"MIT"
] | permissive | /**
* Copyright (c) 2013 Martin Geisse
*
* This file is distributed under the terms of the MIT license.
*/
package name.martingeisse.common.javascript.ownjson.parserbase;
/**
* base class for the JSON parser. This class implements the parsing logic
* but does not create AST nodes. It can be used as the basis f... | true |
9231a09b5917e0342ff1f75e3820df272865328b | Java | awakn123/Learning | /src/main/java/leetcode/hard/arrayandstring/ProductArrayExceptSelf.java | UTF-8 | 778 | 3.453125 | 3 | [] | no_license | package leetcode.hard.arrayandstring;
import leetcode.util.ResultCheck;
/**
* Created by 曹云 on 2020/8/30.
* 238. 除自身以外数组的乘积
* https://leetcode-cn.com/problems/product-of-array-except-self/solution/
*/
public class ProductArrayExceptSelf {
public int[] productExceptSelf(int[] nums) {
int[] res = new int[nums.le... | true |
f20ef69c1aa6fa4ee4d17c2a7480f319c8b13435 | Java | Hari-stackroute/sunbird-lms-service | /service/src/main/java/org/sunbird/dao/user/impl/UserDaoImpl.java | UTF-8 | 5,043 | 2.0625 | 2 | [
"MIT"
] | permissive | package org.sunbird.dao.user.impl;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.text.MessageFormat;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.sunbird.cassandra.CassandraOperation;
imp... | true |
46d341dbaf525c7b3ad92eddf07753cf6f5f2484 | Java | XiaoBrother/anxinxuan_new | /axinxuandroid/src/com/axinxuandroid/activity/net/LoadVarietyThread.java | GB18030 | 2,236 | 2.25 | 2 | [] | no_license | package com.axinxuandroid.activity.net;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.anxinxuandroid.constant.HttpUrlConstant;
import com.axinxuandroid.data.Comment;
import com.axinxuandroid.data.Variety;
import com... | true |
5b396aa12627733f7dd8a25bc7b836d835e37f60 | Java | gauravsummer/Coding-Problems | /Leetcode/Collections.java | UTF-8 | 2,865 | 3.390625 | 3 | [] | no_license | package common;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
public ... | true |
c005fe836d4fe062a9ef313d76a0d47132f58b86 | Java | SegMail/SegMail | /src/main/java/segmail/program/autoresponder/webservice/WSAutoresponder.java | UTF-8 | 4,455 | 1.929688 | 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 segmail.program.autoresponder.webservice;
import eds.component.GenericObjectService;
import eds.component.data.DataValidationE... | true |
1ad887bed251c495dcf07fed06619adcbd836889 | Java | svetaa99/lab44 | /backend/src/main/java/backend/services/impl/OrderService.java | UTF-8 | 976 | 2.21875 | 2 | [] | no_license | package backend.services.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import backend.models.Order;
import backend.repositories.OrderRepository;
import backend... | true |
05b9d5bde3b9ae946486f9d821f945bc912ee272 | Java | DreamsChaser/solr-demo | /src/main/java/cn/com/sirius/all/api/SolrService.java | UTF-8 | 306 | 1.765625 | 2 | [] | no_license | package cn.com.sirius.all.api;
import java.util.List;
/**
* @author wangdi9
* @date 2019/8/15 11:25
*/
public interface SolrService<T> {
void add(T t);
void delete(String query);
T update(T t);
List<T> query(String query);
List<T> queryAll();
T queryById(String id);
}
| true |
94b076a333678158ffca868a8dbdef61d62836b8 | Java | 23298/LoginCrud | /src/Com/Ism/LoginController/Showservlet.java | UTF-8 | 2,211 | 2.203125 | 2 | [] | no_license | package Com.Ism.LoginController;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Iterator;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
imp... | true |
2f283720de95e1a64b79a6f7ef17868ec6837b03 | Java | systemincloud/sic-upgrade | /com.systemincloud.modeler.upgrade.v0_8_0.to.v0_9_0/src/main/java/com/systemincloud/modeler/upgrade/v0_8_0/to/v0_9_0/Execute.java | UTF-8 | 3,720 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package com.systemincloud.modeler.upgrade.v0_8_0.to.v0_9_0;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.IOUtils;
import com.systemincloud.ext.vip.modeler.upgrade.v0_3_6.to.v0_3_7.VipExecute;
import com.systemincloud.modeler.upgrade.common.AbstractExecute;
import net.sf.saxon.s9api.... | true |
11a13535ea58f909cfd6e19a9f8a84b3e56017b4 | Java | ViBiOh/spring-web-bp | /src/main/java/org/vibioh/service/DateService.java | UTF-8 | 321 | 2.328125 | 2 | [
"MIT"
] | permissive | package org.vibioh.service;
import org.springframework.stereotype.Service;
import java.time.Clock;
import java.time.Instant;
@Service
public class DateService {
private final Clock clock;
public DateService(Clock clock) {
this.clock = clock;
}
public Instant now() {
return Instant.now(clock);
}
}... | true |
7b6f936b62959121245ddb9d68e86bf3711091f5 | Java | MicaelaGonzalez110575/Mica | /Programando/src/Vistas/frmGrillaVentas.java | UTF-8 | 4,944 | 2.34375 | 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 Vistas;
import Controlador.Gestor;
import Modelo.Venta;
import java.util.ArrayList;
import javax.swing.table.DefaultTableModel... | true |
0b7a8c16861d2dc7a0df24aab8be4683145af3eb | Java | zhuhongguang/JUnitTest | /src/JUnitTest/TestJunit3.java | UTF-8 | 318 | 1.9375 | 2 | [] | no_license | package JUnitTest;
import org.junit.Test;
import junit.framework.TestResult;
public class TestJunit3 extends TestResult{
public synchronized void addError(Test test,Throwable t){
super.addError((junit.framework.Test)test, t);
}
@Test
public void testAdd(){}
public synchronized void stop(){}
}
| true |
3bf49a45a3c781dc5f0f4257203818eb240d8493 | Java | dig-gold-development/VideoStationApi | /src/main/java/com/site/vs/videostation/mapper/SeaArcrankMapper.java | UTF-8 | 357 | 1.75 | 2 | [] | no_license | package com.site.vs.videostation.mapper;
import com.site.vs.videostation.entity.SeaArcrank;
import java.util.List;
public interface SeaArcrankMapper {
int deleteByPrimaryKey(Short id);
int insert(SeaArcrank record);
SeaArcrank selectByPrimaryKey(Short id);
List<SeaArcrank> selectAll();
int upd... | true |
af38a6412a71d8e5a0d530e8315164edaf807ad7 | Java | crazynem0/find | /find/find-common/src/main/java/com/typartner/find/common/model/Prefecture.java | UTF-8 | 706 | 1.882813 | 2 | [] | no_license | /**
*
*/
package com.typartner.find.common.model;
import java.util.List;
import com.jfinal.ext.plugin.tablebind.TableBind;
import com.jfinal.plugin.activerecord.Model;
/**
* @ClassName: Prefecture
* @Description: 地区
* @author zhanglei
* @date 2015年11月22日 上午1:09:40
*/
@TableBind(tableName ... | true |
7dab6ea9b70dc5caf2073556cf8a0b7167071c51 | Java | marembo2008/payapi | /src/main/java/com/nmt/payapi/TRegisterPolicy.java | UTF-8 | 3,466 | 1.695313 | 2 | [] | no_license | // This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.3, build R1)
// Generated source version: 1.1.3
package com.nmt.payapi;
public class TRegisterPolicy {
protected java.lang.String messageCode;
protected java.lang.S... | true |
53a5f01bd16d337edcf50104440e71f323aea806 | Java | lanaflonPerso/java-web | /web.util.tag/src/com/jdc/web/util/tag/HtmlTag.java | UTF-8 | 719 | 2.71875 | 3 | [] | no_license | package com.jdc.web.util.tag;
import com.jdc.web.util.tag.factory.BasicTagFactory;
import com.jdc.web.util.tag.factory.TagFactory;
public class HtmlTag extends BasicTag {
private Tag head;
private Tag body;
public HtmlTag(String title) {
super("html", null);
Tag titleTag = TagFactory.create(new Basi... | true |
30bda04d90ede7598c7c586ffbf8603e9f8df876 | Java | DenisLaptev/StartAndroid | /P0911_AsyncTaskRotate/app/src/main/java/com/a5androidintern2/p0911_asynctaskrotate/MainActivity.java | UTF-8 | 3,920 | 3.125 | 3 | [] | no_license | package com.a5androidintern2.p0911_asynctaskrotate;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import java.util.concurrent.TimeUnit;
public class MainActivity extends Activity {
MyTask mt;
TextView tv;
pu... | true |
127bb1b9901c88a4f5ec0a1f2341a630249a860d | Java | javateaminiyan/SpringbootJavaService | /src/main/java/com/restservice/restservicejavateam/Controller/UserAlternateController.java | UTF-8 | 3,067 | 2.375 | 2 | [] | no_license | package com.restservice.restservicejavateam.Controller;
import com.restservice.restservicejavateam.domain.User;
import com.restservice.restservicejavateam.exception.NotFoundException.UserNotFoundException;
import com.restservice.restservicejavateam.repo.UserRepository;
import io.swagger.annotations.ApiOperation;
impor... | true |
64615bd1e4f506609e15a2c60bce0a371600f9de | Java | Emt-lin/algorithm | /src/acwing/GetMedian.java | UTF-8 | 2,299 | 4.40625 | 4 | [] | no_license | package acwing;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
* @author psl
* @date 2019/11/12
* 54. 数据流中的中位数
*
*
* 解题思路:
* *** 计算机执行if else的时候,会随机选一个分支执行,同时进行判断if条件是否成立,这样提高了执行效率
* 大根堆:由于最大的在堆顶,所以存放较小的那一半元素
* 小根堆:由于最小的在堆顶,所以存放较大的那一部... | true |
ad265b638592bab2b466cc3b3d8c60360535390d | Java | DevinWangSuperHero/sort | /src/main/java/sort/practice/algorithm/practice/MergeSort.java | UTF-8 | 1,167 | 3.390625 | 3 | [] | no_license | package sort.practice.algorithm.practice;
import sort.practice.algorithm.practice.util.Print;
public class MergeSort {
private static void merge(int[] array, int i,int middle, int j) {
int[] temp = new int[array.length];
int m = i;
int n = middle + 1;
int k = i;
while (m <... | true |
1d35248813b282ce33a27a5aebd098850078b5a8 | Java | Jdvakil/Unit-Converter | /Mass/Grams.java | UTF-8 | 4,089 | 3.546875 | 4 | [] | no_license | package Mass;//This instantiates that this class belongs to the package "Mass"
/**
* This class gets called in the main class to instantiate the value in grams to
* be converted to several different units.
*
* @author Jay Darshan Vakil
* @version January 1, 2019
*/
public class Grams {
private double Grams;... | true |
cf19526d1532d10de038ecaa1d66d201c14eaf6b | Java | lassem/freeAtHomeNibeLink | /src/main/java/no/lamatech/abb/freeathome/XmppLoggerDebugger.java | UTF-8 | 961 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package no.lamatech.abb.freeathome;
import rocks.xmpp.core.session.XmppSession;
import rocks.xmpp.core.session.debug.XmppDebugger;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.logging.Logger;
public class XmppLoggerDebugger implements XmppDebugger {
private static final Logger logger... | true |
72e0bdb48eefba5a47902567f575bb615edd0bce | Java | tobnie/Re.actionEvaluation | /AlzheimersSimSG/src-gen/AlzheimersSimSG/api/rules/Mdm2deubiquinationRule.java | UTF-8 | 3,083 | 2.515625 | 3 | [] | no_license | package AlzheimersSimSG.api.rules;
import AlzheimerModel.Mdm2;
import AlzheimerModel.Mdm2DUB;
import AlzheimerModel.UB1_s;
import AlzheimerModel.UNB_s;
import AlzheimersSimSG.api.AlzheimersSimSGAPI;
import AlzheimersSimSG.api.matches.Mdm2deubiquinationMatch;
import java.util.ArrayList;
import java.util.List;
import ja... | true |
2bb62a488d7374ef88e5761bdb0078e34a5fcba1 | Java | ZiHan-7/Fat2Fit | /Fat2FitSpring/spring/src/main/java/fat2fit/spring/controllers/RecordController.java | UTF-8 | 2,374 | 2.453125 | 2 | [] | no_license | package fat2fit.spring.controllers;
import java.time.LocalDateTime;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotat... | true |
4c621aa09485807a493143cb7c2e20335c90e35d | Java | NeoxTec/quetzalStock | /src/models/modelCatalogo.java | UTF-8 | 9,392 | 2.5 | 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 models;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Stateme... | true |
4c8d3d6d2b3775b2a2c75e36be44fe82d63a5a7d | Java | 1477619895/anzhuozyx | /app/src/main/java/com/nbpt/zyx_sb/List.java | UTF-8 | 2,108 | 2.125 | 2 | [] | no_license | package com.nbpt.zyx_sb;
import android.app.Activity;
import android.os.Bundle;
import android.util.ArrayMap;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.Toast;
import java.u... | true |
cf0416a77a2708ab4207dc7deb7d07dab4fc22ce | Java | gems-uff/oceano | /core/src/test/resources/maven-3-trunk/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuildListCalculatorTest.java | UTF-8 | 2,212 | 2.046875 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package org.apache.maven.lifecycle.internal;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to you under the Apache License... | true |
5a9ededf3caada4b57a1c3a25fb777e6c14aada8 | Java | guangzz/easybuy-admin | /admin/src/cn/situ/bean/Shopcart.java | UTF-8 | 1,781 | 2.390625 | 2 | [] | no_license | package cn.situ.bean;
import javax.persistence.*;
import java.util.Objects;
@Entity
@Table(name = "shopcart")
public class Shopcart {
private int spId;
private Integer spNum;
private Integer pId;
private Integer uId;
private Integer spState;
@Id
@Column(name = "sp_id")
... | true |
8b1f4fc2eab8f817176c212ed82a5b7e318bfd45 | Java | kenne12/S2BI | /s2bi-war/src/java/utils/AllmySms.java | UTF-8 | 2,016 | 2.296875 | 2 | [] | no_license | /* */ package utils;
/* */
/* */ import java.io.InputStream;
/* */ import java.io.PrintStream;
/* */ import java.net.URL;
/* */ import java.net.URLConnection;
/* */ import java.net.URLEncoder;
/* */
/* */ public class AllmySms
/* */ {
/* 17 */ private String phoneNumber = "";
/* 18 */ ... | true |
9c62f9a5ad2d0d2d086ab41141a05e6d85627979 | Java | gregcarlin/JmageEdit | /src/en/jmageedit/view/View.java | UTF-8 | 5,970 | 2.59375 | 3 | [] | no_license | package en.jmageedit.view;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JFileChooser;
import javax.swing... | true |
a071cabab872ecc8a994aead4d0a946aa126fd52 | Java | zhangxwww/Vicilization | /src/team/vicilization/mechanics/giant/GiantType.java | UTF-8 | 142 | 1.976563 | 2 | [] | no_license | package team.vicilization.mechanics.giant;
public enum GiantType {
// 伟人类型枚举类
SCIENTIST,
ECONOMIST,
ENGINEER
}
| true |
3475e0266d0846291303fb59c41585e7018c2190 | Java | 614015759/DesignPattern | /src/main/java/com/atxzy/strategy/CatWeightComparator.java | UTF-8 | 322 | 3.078125 | 3 | [] | no_license | package com.atxzy.strategy;
public class CatWeightComparator implements Comparator<Cat>{
@Override
public int compare(Cat t1, Cat t2) {
if(t1.weight > t2.weight) {
return 1;
}else if(t1.weight < t2.weight){
return -1;
}else{
return 0;
}
}
... | true |
cc1c321741f882f727b1546af1f70e0738081e2c | Java | yangfanfinland/WebUsageAnalysis | /src/com/lumiinsight/type/converter/SystemPrivilegePKConverter.java | UTF-8 | 717 | 2.421875 | 2 | [] | no_license | package com.lumiinsight.type.converter;
import java.util.Map;
import com.lumiinsight.bean.privilege.SystemPrivilegePK;
import ognl.DefaultTypeConverter;
public class SystemPrivilegePKConverter extends DefaultTypeConverter{
@Override
public Object convertValue(Map context, Object value, Class toType) {
if(valu... | true |
2adf6cacac62d62ad192677ae7442dfa1df2161b | Java | 55wang/is3102 | /RetailBankingSystem/StaffInternalSystem/src/java/staff/admin/CreateLoanProductManagedBean.java | UTF-8 | 6,655 | 2.03125 | 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 staff.admin;
import ejb.session.loan.LoanProductSessionBeanLocal;
import entity.loan.LoanInterestCollection;
import entity.loa... | true |
f87064a9e91098e4a604a766846efd0b494beefa | Java | flyueliu/conf | /src/main/java/com/junicorn/conf/util/IOUtils.java | UTF-8 | 1,459 | 2.875 | 3 | [] | no_license | package com.junicorn.conf.util;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.Reader;
import java.io.StringWriter;
import java.io.Writer;
public class IOUtils {
public static final int DEFA... | true |
bfa816d1d7827748fee0f3ecf8bf86805314280b | Java | MarynaKontar/simpleChat | /src/main/java/com/app/DAO/DAOMessage.java | UTF-8 | 186 | 1.867188 | 2 | [] | no_license | package com.app.DAO;
import com.app.model.Message;
/**
* Created by User on 09.06.2017.
*/
public interface DAOMessage extends DAO<Long, Message>{
void deleteByKey(long key);
}
| true |
dcc2a41866a2e740414802fcf8b6289e038cfc7d | Java | simon-towler/the-java-tutorial | /lambda_expressions/StartHere.java | UTF-8 | 3,055 | 3.921875 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.function.Predicate;
public class StartHere {
/* //functional interface
interface CheckPerson {
boolean test(Person p);
}*/
/*
//since Approach 4 you don't have to create a new class for each type of search you want to perf... | true |
e31f1da855fdc1593eb37d9974c3a899634bceff | Java | antpette/Tenta1 | /src/Decorator/BasePizza.java | UTF-8 | 135 | 2.3125 | 2 | [] | no_license | package Decorator;
public class BasePizza implements YourPizza {
public String createPizza(){
return " Pizza ";
}
}
| true |
189a26bf97fa1e9aafe234eeed9a4c7cfa3382ae | Java | dhanipratikto/ContentArticle | /app/src/main/java/cakrait/com/contentarticle/dao/ContentDao.java | UTF-8 | 269 | 1.695313 | 2 | [] | no_license | package cakrait.com.contentarticle.dao;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import cakrait.com.contentarticle.model.room.Content;
@Dao
public interface ContentDao {
@Insert
void insert(Content content);
}
| true |
0e5e7e306b48f5540ed9ac7d295c1f41142ea26f | Java | JCog/goombotio | /src/main/java/util/ChatLogger.java | UTF-8 | 2,999 | 2.96875 | 3 | [
"MIT"
] | permissive | package util;
import com.github.twitch4j.chat.events.channel.ChannelMessageEvent;
import com.github.twitch4j.helix.domain.User;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.ut... | true |
29f66f9968f9ebb697c817877b79b49bcbe55a3e | Java | emmerich/thrifty-api | /src/main/java/thrifty/api/parser/AvailabilityParser.java | UTF-8 | 219 | 1.835938 | 2 | [] | no_license | package thrifty.api.parser;
import thrifty.api.model.Availability;
import java.util.Set;
public interface AvailabilityParser<T extends Parseable> {
public Set<Availability> extractAvailabilitySet(T parseable);
}
| true |
162140f05265ec67dea340da59ba1a15e032c054 | Java | daoyihuc/brows | /app/src/main/java/com/daoyiksw/browsesocial/ui/index/bean/MessageListBean.java | UTF-8 | 828 | 1.78125 | 2 | [] | no_license | package com.daoyiksw.browsesocial.ui.index.bean;
/**
* Administrator: "daoyi(yanwen)"
*
* @params: 2020/11/7
* @details: ''
* @mails: '1966287146@qq.com'
*/
public class MessageListBean {
private Object url;
private String name;
private String details;
private String count;
public Object get... | true |
4dec2ae7cb197a3642e704afb29d00aa56189472 | Java | abprash/LC | /src/main/java/group/LC3/RemoveDuplicatesFromArray.java | UTF-8 | 438 | 2.90625 | 3 | [] | no_license | package group.LC;
public class RemoveDuplicatesFromArray {
public int removeDuplicates(int[] nums)
{
if(nums == null)
return 0;
if(nums.length == 1)
return 1;
int p1 = 1;
for( int i=1; i<nums.length; i++){
if(nums[i] > nums[i-1]){
nums[p1] = nums[i];
p1++;... | true |
56c898051bba1149a65743401042480d41ee5bb5 | Java | TOGoS/TZEU | /src/togos/tzeu/io/HexenThingCodec.java | UTF-8 | 1,415 | 2.71875 | 3 | [] | no_license | package togos.tzeu.io;
import togos.tzeu.level.Thing;
public class HexenThingCodec extends RegularRecordCodec
{
public static HexenThingCodec instance = new HexenThingCodec();
protected Object decodeRecord( byte[] src, int offset ) {
Thing t = new Thing();
t.thingId = ByteUtil.leShort( src, offset+0... | true |
e4318c9acca7e026a27eb4bca2d8029710669ce9 | Java | kiegroup/kie-cloud-tests | /framework-cloud/framework-openshift-operator/src/main/java/org/kie/cloud/openshift/operator/model/KieApp.java | UTF-8 | 1,504 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... | true |
c551997115459d18574d49bbdbd5265d7e3368a8 | Java | geosource-catalogue/core-geonetwork | /services/src/test/java/org/fao/geonet/services/metadata/format/groovy/template/FilterCapitalizeTest.java | UTF-8 | 333 | 2 | 2 | [] | no_license | package org.fao.geonet.services.metadata.format.groovy.template;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class FilterCapitalizeTest {
@Test
public void testProcess() throws Exception {
assertEquals("It Is A Title", new FilterCapitalize().process(null, "it is a titl... | true |
fdad63ca4e4e6d3ecba5be2a922fcef05c23a87f | Java | aishteh/General-Insurance-Project-Gladiator | /testrepo2-main/ltinsure/src/main/java/com/lti/projectgladiator/ltinsure/service/PolicyServiceImpl.java | UTF-8 | 1,793 | 2.421875 | 2 | [] | no_license | package com.lti.projectgladiator.ltinsure.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lti.projectgladiator.ltinsure.beans.Customer;
import com.lti.projectgladiator.ltinsure.beans.InsurancePlan;
import com.lti... | true |
9557657c3f9986f7faa31c332d2f75a03ce6dcb1 | Java | Mhverma/springboot-cucumber-integration | /src/test/java/com/manoj/spring/cucumber/example/springbootcucumberexample/RestResponseErrorHandler.java | UTF-8 | 1,085 | 2.5 | 2 | [] | no_license | package com.manoj.spring.cucumber.example.springbootcucumberexample;
import java.io.IOException;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.web.client.ResponseErrorHandler;
public class RestResponseErrorHandler implements ResponseErrorHandler{
private Response results = n... | true |
1cdc2de90ac28e1534e128cf8a5774edda5ce7a6 | Java | karanjain113/CricketGame_Assignment | /src/main/java/matchC/Player.java | UTF-8 | 1,329 | 3.4375 | 3 | [] | no_license | package matchC;
enum PlayerType {Batsman,Bowler,AllRounder};
public class Player {
private String name;
private PlayerBattingStats battingStats;
private PlayerBowlingStats bowlingStats;
private float battingRating;
private float bowlingRating;
private PlayerType typeOfPlayer;
Player()
... | true |
201cb35efd01711377be6afb5bed6f4c80c7c57b | Java | chilamoya/enterprise | /src/com/innate/cresterp/medical/hospital/entities/MedicalAid.java | UTF-8 | 1,997 | 2.46875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.innate.cresterp.medical.hospital.entities;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import jav... | true |
8ba1d49835ec563582194515de10c4921476565e | Java | cloudjy/IDS2 | /src/com/gnamp/struts/vo/TreeToTerminalParameter.java | UTF-8 | 891 | 1.859375 | 2 | [] | no_license | package com.gnamp.struts.vo;
public class TreeToTerminalParameter
{
int groupId;
String searchKey;
boolean includeChildren = true;
public int getGroupId()
{
return this.groupId;
}
public void setGroupId(int groupId)
{
this.groupId = groupId;
}
p... | true |
89eda85e711a659bd669790290e32b48b05dd9cb | Java | mhrpatel12/AndroidSampleRxJavaRetrofit | /app/src/main/java/com/mihir/paginationdemo/HomeActivity.java | UTF-8 | 10,674 | 2.03125 | 2 | [] | no_license | package com.mihir.paginationdemo;
import android.content.Context;
import android.net.ConnectivityManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Parcelable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.w... | true |
0376c21ea057de5dadbc85d3a884d47aea23455d | Java | mjsamet/Knight-Online-Java-Server | /Server/knight-online/shared/src/main/java/com/knightonline/shared/persistence/dao/impl/ApplicationPropertiesHibernateDAO.java | UTF-8 | 916 | 1.984375 | 2 | [] | no_license | package com.knightonline.shared.persistence.dao.impl;
import java.util.List;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import org.springframework.stereotype.Repository;
import com.knightonline.shared.data.constants.NamedQueriesConstants;
import com.knightonline.shared.excepti... | true |
3252662e31b891f04bf7514fef2e9f0e4630c3f6 | Java | jrfaller/gumm-project | /src/main/java/com/googlecode/gumm/plugins/standard/filters/ValueNodeFilter.java | UTF-8 | 781 | 2.546875 | 3 | [] | no_license | package com.googlecode.gumm.plugins.standard.filters;
import java.util.LinkedList;
import com.googlecode.gumm.flood.Filter;
import com.googlecode.gumm.flood.Mapping;
import com.googlecode.gumm.graph.ValueNode;
import com.googlecode.gumm.utils.treap.IndexedObject;
/**
* Filters that removes every mapping that involv... | true |
3a7afb0a3c863c0c4ba60553459488909eb58e95 | Java | Eugene1992/java-professional-02 | /src/main/java/com/cbs/edu/io/decorator/Test.java | UTF-8 | 475 | 2.546875 | 3 | [] | no_license | package com.cbs.edu.io.decorator;
public class Test {
public static void main(String[] args) {
Writable stringWriter = new StringWriter();
stringWriter.write("Hello world!");
QuoteDecorator quoteDecorator = new QuoteDecorator(stringWriter);
quoteDecorator.write("Hello world!");
... | true |
b95cca3fe8c0e54564e00352a08bdc100bdf7637 | Java | mikaellindemann/BFST | /Map/src/dk/itu/groupe/Model.java | UTF-8 | 26,050 | 2.484375 | 2 | [] | no_license | package dk.itu.groupe;
import dk.itu.groupe.data.*;
import dk.itu.groupe.pathfinding.*;
import dk.itu.groupe.loading.*;
import dk.itu.groupe.util.*;
import java.awt.Point;
import java.awt.geom.*;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Observable;
import j... | true |
e87738ca1025ec1dc9f9dc428fecd03a777f710c | Java | yayueajxfl865/repositoryforme | /notice/src/main/java/com/okflow/modules/sys/service/DictServer.java | UTF-8 | 583 | 1.8125 | 2 | [] | no_license | package com.okflow.modules.sys.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.okflow.modules.sys.dao.DictDao;
import com.okflow.modules.sys.entity.Dict;
/**
*... | true |
e49a7e192a5ce3ea59f28d5697d0a9e48f07babc | Java | gauravnewton/teacher-student-webapp | /teacher-student-webapp/src/main/java/com/techreloded/controller/StudentController.java | UTF-8 | 7,113 | 2.40625 | 2 | [] | no_license | package com.techreloded.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http... | true |
0f099711be962ff4476ca84984345a4468b68303 | Java | howard-stearns/scrape | /Scrape.java | UTF-8 | 5,591 | 2.84375 | 3 | [] | no_license | /* Walk a domain and make a mirror of the files. */
// N.B.: This is an interactive utility, so when it dies, it dies. No need (I hope) to complicate the code with nested tries like:
// BufferedReader in = null; try {...} catch (IOException e) {...} finally { if (in != null) { try { in.close(); } catch (IOException e) ... | true |
538e6b6c3f1c84537a852683cfb6dde6b29842dd | Java | k503394469/FrameWorkLearn | /spring_mvc_exception/src/main/java/com/liu/service/impl/ServiceImpl.java | UTF-8 | 377 | 1.960938 | 2 | [] | no_license | package com.liu.service.impl;
import com.liu.dao.TestDao;
import com.liu.service.TestService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service("service")
public class ServiceImpl implements TestService {
@Resource(name = "dao")
private TestDao dao;
@Override
p... | true |
2ce1f865bbceac536ae0d5b46a2f26e8e224e6f0 | Java | Noobknight/MusicPlayer | /app/src/main/java/com/tadev/musicplayer/utils/networks/internet/OnlineCheckerImpl.java | UTF-8 | 1,158 | 2.4375 | 2 | [] | no_license | package com.tadev.musicplayer.utils.networks.internet;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.tadev.musicplayer.utils.networks.reveivers.InternetConnectionChangeReceiver;
/**
* Created by Iris Louis on 20/04/2... | true |
c4fdca9623d9fa7d3205a2e5a80bba6aaad142e9 | Java | hieuitvnsoft/managerHuman | /QLNS_DA/src/Entity/Role.java | UTF-8 | 857 | 2.65625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Entity;
/**
*
* @author THUY
*/
public class Role {
int Id;
String nameAccess;
public Role() {
}
publ... | true |
2e406b9b15099b2f5447e55ab0deb8ce04ee37df | Java | smiroshnikov/SeleniumAdvanced | /src/main/java/PrayForMaven.java | UTF-8 | 2,864 | 2.515625 | 3 | [] | no_license | import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.safari.SafariDriver;
/**
* Created by Iidwuurliik on 26.07.2017.
*/
public class PrayForMaven {
... | true |
9285e1c977c7f63a17e26eb12034b3c4182e282b | Java | Amaresh-MA/Amaresh_storage | /new project/src/framework/junit/Junit4_TestMethod.java | UTF-8 | 616 | 2.578125 | 3 | [] | no_license | package framework.junit;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
public class Junit4_TestMethod
{
//In juit 4 @Rule annotation allows to get @Test annotation methodname
//@Rule must be public..
public @Rule TestName test=new TestName()... | true |
ab069b6aa7bfcd69e534ce0599a8e72a5b4927b7 | Java | Upplication/cordova-java | /src/main/java/com/upplication/cordova/EditConfig.java | UTF-8 | 1,019 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.upplication.cordova;
/**
* preference element in the config.xml
* https://cordova.apache.org/docs/en/latest/config_ref/index.html#edit-config
*/
public class EditConfig {
private String file;
private String target;
private String mode;
private String content;
public static EditConfi... | true |
3b70b50400fe8b27a0f84cf5603190e23c8f285e | Java | pavel-jahont/Testing-all-my-auto-example | /Tut.by Gmail Delta.com/src/main/java/pages/TutByMainPage.java | UTF-8 | 2,245 | 2.28125 | 2 | [] | no_license | package pages;
import core.BaseData;
import org.openqa.selenium.By;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;
import static locators.Locators.get;
/**
... | true |
31175819c74afd9246e3245330c75a8983114a81 | Java | kptnewler/SourceContainer | /List/src/SourceLinkedList.java | UTF-8 | 5,501 | 3.609375 | 4 | [] | no_license | import java.util.LinkedList;
/**
* Created by 刺雒 on 2017/9/30.
*/
public class SourceLinkedList<E> {
public class Node<E> {
public E item;
public Node<E> pre;
public Node<E> next;
public Node(Node<E> pre,E item,Node<E> next) {
this.item = item;
this.pre = ... | true |
2d0963e1bdaa4a23e9677c33cc74542b8cc0d4b3 | Java | borzdykooa/document-management-system | /src/main/java/com/borzdykooa/service/DocumentService.java | UTF-8 | 4,080 | 2.296875 | 2 | [] | no_license | package com.borzdykooa.service;
import com.borzdykooa.dto.DocumentDto;
import com.borzdykooa.dto.DocumentSearchDto;
import com.borzdykooa.dto.DocumentType;
import com.borzdykooa.dto.SearchRequestDto;
import com.borzdykooa.entity.Document;
import com.borzdykooa.repository.DocumentRepository;
import com.borzdykooa.util.... | true |
c6dac599b085e37afad008cc7d03829fccbce2ad | Java | eroonsung/javaLecture | /eclipse-workspace/Java_Basic_Ch08/src/com/java/Day11/Q4.java | UTF-8 | 442 | 2.890625 | 3 | [] | no_license | package com.java.Day11;
public class Q4{
public static void main(String[] args) {
}
}
class Employee{
public String name;
public String grade;
public Employee(String name) {
this.name = name;
}
}
class Engineer extends Q4{
public Engineer(String name) {
super();
}
private String skillset;
public ... | true |
0ab97087e7a179c2d408d2279f9fdd58f98abf39 | Java | raphapaulino/java-studies | /JavaNative/src/main/java/com/schoolofnet/protected_code/Protected.java | UTF-8 | 183 | 2.34375 | 2 | [] | no_license | package com.schoolofnet.protected_code;
public class Protected {
protected String lastname = "";
public Protected() {
System.out.println("Protected class");
}
}
| true |
5db8f24c4f6c1409d6fb0ed9df87b5e5adcd35fc | Java | Lijiancheng668/fruitshop | /src/main/java/com/greenleaf/fruitshop/model/service/IOrderService.java | UTF-8 | 791 | 1.875 | 2 | [] | no_license | package com.greenleaf.fruitshop.model.service;
import com.greenleaf.fruitshop.common.pojo.BSResult;
import com.greenleaf.fruitshop.model.entity.User;
import com.greenleaf.fruitshop.model.entity.custom.Cart;
import com.greenleaf.fruitshop.model.entity.custom.OrderCustom;
import java.util.List;
public interface IOrder... | true |
5cf4ded1c11e6ef005e39ca4c9ee58516c5e6ce4 | Java | bsef12m510/ShopManagementSystem | /androidApp/POS/app/src/main/java/com/apptriangle/pos/purchase/fragemnt/PurchaseFragment.java | UTF-8 | 65,071 | 1.671875 | 2 | [] | no_license | package com.apptriangle.pos.purchase.fragemnt;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Fragment;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import ... | true |
1dd3c3a13e249de0902a63599f1701c87fe5846c | Java | Xav115/Autoparts-OS | /src/Main.java | UTF-8 | 219 | 1.960938 | 2 | [] | no_license | public class Main
{
public static void main(String[] args)
{
Login login = new Login();
login.setVisible(true);
//Autoparts_os window2 = new Autoparts_os();
//window2.setVisible(true);
}
}
| true |
db92cd7e25263a3d0d6856754a5c37ce3289952d | Java | cckmit/Nuclos | /nuclos-client/src/main/java/org/nuclos/client/report/reportrunner/BackgroundProcessStatusTableModel.java | UTF-8 | 3,812 | 2.109375 | 2 | [] | no_license | //Copyright (C) 2010 Novabit Informationssysteme GmbH
//
//This file is part of Nuclos.
//
//Nuclos is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option... | true |
e16d86e18abd231d14c86cd7184ecf68f3c31865 | Java | bigsuperangel/crm | /src/com/crm/business/dao/impl/AttachmentDaoImpl.java | UTF-8 | 423 | 1.578125 | 2 | [] | no_license | package com.crm.business.dao.impl;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.crm.business.dao.IAttachmentDao;
import com.crm.common.PageModel;
import com.crm.core.base.BaseDao;
import com.crm.model.Attachment;
@Repository("attachmentDao")
... | true |
b092640888efd844f4b42627db07605644e61486 | Java | CBaty/Web101 | /src/com/sopra/dev/FileUploadServlet.java | UTF-8 | 1,139 | 2.65625 | 3 | [] | no_license | package com.sopra.dev;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.h... | true |
2feec3386518d3104ce47a1ad41d5eb8bc47d269 | Java | tpltnt/binnavi | /src/test/java/com/google/security/zynamics/binnavi/disassembly/COperandTreeNodeTest.java | UTF-8 | 14,766 | 1.914063 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
Copyright 2014 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | true |
4388ee9abbbbfa3849f39a6937bfaee60b7dc6c8 | Java | yskim621/printdesk_boot | /backend/src/main/java/kr/co/printingworks/printdesk/dto/basic/DepartmentDto.java | UTF-8 | 323 | 1.8125 | 2 | [] | no_license | package kr.co.printingworks.printdesk.dto.basic;
import kr.co.printingworks.printdesk.dto.CompanyDto;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class DepartmentDto {
Long id;
String name;
Integer sort;
String remark;
CompanyDto companyDto;... | true |
af16e3727609f0cfa3c56392150f4f7819009c90 | Java | prashker/YetAnotherAltcoinWidget | /mobile/src/main/java/com/samuelprashker/altcoinwidget/BTCProvider.java | UTF-8 | 16,161 | 2.125 | 2 | [
"MIT"
] | permissive | package com.samuelprashker.altcoinwidget;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.Locale;
public enum BTCProvider implements AltcoinInterface {
//NO LONGER EXISTS
MTGOX(R.array.currencies_mtgox, "mtgx") {
@Override
public String getValue(String currencyCode) t... | true |
8dedb90e1954200c6517648178b53647e0bac32e | Java | Shakthi-97/TimetableManagement | /src/com/sampleOverlap.java | UTF-8 | 11,547 | 2.125 | 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 com;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLExceptio... | true |
1a7372ddcba56a00ce9bdfcec0776d9de715536b | Java | nayra0/banco-api | /src/main/java/br/com/desafio/bancoapi/config/ResourceServerConfig.java | UTF-8 | 2,515 | 2.109375 | 2 | [] | no_license | package br.com.desafio.bancoapi.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBui... | true |
87c6c044c224e28031bcde6730f5326644df5c1b | Java | super-xiaohei/fileUpAndDown | /src/main/java/net/suncaper/fileprocess/common/JsonResult.java | UTF-8 | 783 | 2.265625 | 2 | [] | no_license | package net.suncaper.fileprocess.common;
/**
* @author zyq
* @date 2020/11/16 - 20:05
*/
public class JsonResult<T> {
private Integer code;
private T data;
public JsonResult(T data) {
this.data = data;
}
public JsonResult(Integer code, T data) {
this.code = code;
this.d... | true |
0a014d639a7da3beb05e9c724ff8d627d9c4958d | Java | pahnjy/PineoneIoTProject | /so-resources/src/main/java/com/pineone/icbms/so/resources/processor/IOrchestrationCenter.java | UTF-8 | 198 | 1.757813 | 2 | [
"BSD-2-Clause"
] | permissive | package com.pineone.icbms.so.resources.processor;
/**
* Orchestration center interface.<BR/>
* Created by uni4love on 2015. 9. 4..
*/
public interface IOrchestrationCenter
{
void route();
}
| true |
073a6e9699069acb9a37eaf5f6f1de5043ba2953 | Java | Akopyan/Synaptic | /Bundles/com.synaptic.messageprotocol.json/src/com/synaptic/messageprotocol/json/JSONBuilder.java | UTF-8 | 591 | 2.3125 | 2 | [] | no_license | package com.synaptic.messageprotocol.json;
import java.lang.reflect.Type;
import com.google.gson.Gson;
import com.synaptic.messageprotocol.interfacedefinition.MessageProtocolBaseClass;
import com.synaptic.messageprotocol.interfacedefinition.ModelBaseClass;
public class JSONBuilder extends MessageProtocolBaseClass {
... | true |
78104229dd8da2b3b73387c1051e786213c86dca | Java | chwy007/generic-mapper-abc | /src/main/java/com/yujizi/config/MvcConfig.java | UTF-8 | 1,520 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | package com.yujizi.config;
import com.yujizi.aspect.LoginInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.w... | true |
57d0c2e4d1db65afea4e8c1278bf2af54e3be325 | Java | Hongbeom/study_algorithm | /src/boj/n14575/N14575.java | UTF-8 | 1,859 | 3.015625 | 3 | [] | no_license | package boj.n14575;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class N14575 {
static int[][] LIMIT;
static int T;
static int LOW_MAX;
static int HIGH_MAX;
public static void main(String[] args) throws IOExc... | true |
6cd1ea3be5f8916ce33c21b3ac5f2ce894364244 | Java | mahozad/ceno | /src/main/java/ir/ceno/repository/PostRepository.java | UTF-8 | 1,874 | 2.53125 | 3 | [] | no_license | package ir.ceno.repository;
import ir.ceno.model.Post;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Slice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Qu... | true |
b53233542be8bd03657968690448ed5e75080965 | Java | ClassTech-Lab/backend-v2 | /src/main/java/com/classtechlab/manager/application/service/keyword/KeywordReadService.java | UTF-8 | 840 | 2.21875 | 2 | [] | no_license | package com.classtechlab.manager.application.service.keyword;
import com.classtechlab.manager.application.repository.keyword.KeywordReadRepository;
import com.classtechlab.manager.domain.model.keyword.Keyword;
import com.classtechlab.manager.domain.model.keyword.KeywordId;
import com.classtechlab.manager.domain.type.i... | true |
6cfca683da455fcab6e641a69810799519f0fae2 | Java | VladSVBY/JD2017-12-16 | /src/by/it/karpeichyk/jd03_02/BeanCRUD.java | UTF-8 | 329 | 2.125 | 2 | [] | no_license | package by.it.karpeichyk.jd03_02;
import java.sql.SQLException;
/**
* Created by user on 19.02.2018.
*/
public interface BeanCRUD<T> {
boolean create(T bean) throws SQLException;
boolean update(T bean) throws SQLException;
boolean delete(T bean) throws SQLException;
T read(int id) throws SQLExcep... | true |