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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8de12ce0c73b99abf1b3ac60ccd9cddd60a7ce7f | Java | mdilshan/madd | /app/src/main/java/com/example/madd/PlaceActivity.java | UTF-8 | 6,963 | 1.992188 | 2 | [
"MIT"
] | permissive | package com.example.madd;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.vie... | true |
5df6f6e9bd973e44f42d1005a8fb45ab846aad20 | Java | thinhhoanglinux/DemoFragment | /app/src/main/java/com/example/tkkil/myapplication/Main2Activity.java | UTF-8 | 723 | 2.21875 | 2 | [] | no_license | package com.example.tkkil.myapplication;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class Main2Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout... | true |
3b1928eabb19de30cc91055a4b9793466ea83d46 | Java | ankurmitujjain/virginmoney | /project/integration-testing/src/main/com/virginmoneygiving/integrationtests/webdriver/donor/page/SearchFundraiserPage.java | UTF-8 | 2,179 | 2.28125 | 2 | [] | no_license | package com.virginmoneygiving.integrationtests.webdriver.donor.page;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import com.virginmoneygiving.integrationtests.webdriver.GretnaPageFactory;
import com.virginmoneygiving.integrationtests.webdriver.GretnaWebDriverPage;
import com.virginmone... | true |
d4cb040c37eb24050835d0a842b8332fd60b4536 | Java | johnsweet15/CPSC250-Assignments | /src/JediInheritance/Pilot.java | UTF-8 | 608 | 3.375 | 3 | [] | no_license | package JediInheritance;
public class Pilot extends Trooper{
private XWing xwing;
public Pilot(String name, XWing xwing){
super(name);
this.xwing = xwing;
}
public XWing getXWing(){
return this.xwing;
}
public boolean equals(Object other){
if(other instanceof Pilot){
Pilot pil... | true |
e5a4a0140a3eb46009f1ea43d4cb0c93f42cb2b3 | Java | ng0403/custCRM | /src/main/java/com/core/plus/contact/cust/dao/CustDAOImpl.java | UTF-8 | 10,019 | 2.109375 | 2 | [] | no_license | package com.core.plus.contact.cust.dao;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.openxml4j.exceptions.InvalidFormat... | true |
e683a1de49367bf61435a58847336d2d75962638 | Java | gustmtofoli/aws-stuff | /demo-java/demo/src/main/java/com/example/demo/controller/DemoController.java | UTF-8 | 835 | 1.898438 | 2 | [] | no_license | package com.example.demo.controller;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.fasterxml.jackson.core.JsonProcessingEx... | true |
6c7ad32478f7be217870fde5c8811e970ed5c5d3 | Java | peakster2/Paramorphism-2.0-Deobf-Source-Leak | /com/fasterxml/jackson/databind/ser/FilterProvider.java | UTF-8 | 515 | 1.960938 | 2 | [] | no_license | package com.fasterxml.jackson.databind.ser;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
public abstract class FilterProvider {
public FilterProvider() {
super();
}
/** @deprecated */
@Deprecated
public abstract BeanPropertyFilter findFilter(Object var1);
public P... | true |
42d85c15ce9e1eb338f8e3c6188fefb0500d020d | Java | jzoldyck/startup | /framework/src/main/java/com/olarn/framework/repository/AppRoleRepository.java | UTF-8 | 791 | 1.9375 | 2 | [] | no_license | package com.olarn.framework.repository;
import java.util.Collection;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.roo.addon.layers.repository.jpa.RooJpaRepository;
import com.olarn.framework.entity.AppRo... | true |
ee13bad07d3bf0eb22e5d4db1aea6caa6998cea1 | Java | SAP/emobility-smart-charging | /src/test/java/com/sap/charging/realTime/StrategyAlgorithmicChargeSchedulerTest.java | UTF-8 | 22,316 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.sap.charging.realTime;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.sap.charging.dataGeneration.DataGeneratorRandom;
import com.... | true |
f687c2257e145f8f7a00de534e7cf2365f6918e1 | Java | cckmit/bee-cloud-manufacture-hengye | /bee-platform-system/platform-sibeecloudmanufacture-api/src/main/java/com/bee/platform/cloud/si/manufacture/dto/ConfigWeighDeviceDTO.java | UTF-8 | 1,295 | 1.90625 | 2 | [] | no_license | package com.bee.platform.cloud.si.manufacture.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* <p>
* 称重设备档案
* </p>
*
* @author chenxm66777123
... | true |
02568f95723fc7eba885e18f79a9d4ea09b1fbab | Java | kambliambar25/SA | /Java/Console/count the number of digits in while and do while/src/countthenumberofdigitsinwhileanddowhile.java | UTF-8 | 1,028 | 3.765625 | 4 | [] | no_license | import java.util.Scanner;
public class countthenumberofdigitsinwhileanddowhile {
public static void main(String[] args) {
int Number, Count=0;
Scanner sc = new Scanner(System.in);
System.out.println("*************************************");
System.out.println("\n While loop ");
System.out.println("*******... | true |
612c8ac8688e27f794b9356e1b1d9477aa84d194 | Java | BethGomez44/EDD-2020 | /Practica2/Conjunto.java | UTF-8 | 6,060 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive |
/**
* Práctica 2. Conjuntos
* @author Luis Manuel Martínez Dámaso
* @version 02/Feb/2020
*/
import java.util.Iterator;
public class Conjunto<T> implements Iterable<T> {
private T[] arreglo;
private int elementos;
private class Iterador<T> implements Iterator<T> {
private int siguiente;
... | true |
c62e8c7eb49f50cceb495bff5d0d4babe8bae091 | Java | ymohammad/algorithms | /src/com/alysoft/completedsa/hashing/CountStudents.java | UTF-8 | 3,448 | 3.78125 | 4 | [] | no_license | package com.alysoft.completedsa.hashing;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
/**
* Given N students with marks obtained by them in an exam. The task is to count the stude... | true |
9cc438ad7685fe9d2feda16fe6e4c572821f1092 | Java | dtekeshe/interbank_file_exchange | /dcms_commons/src/main/java/com/bsva/dcms/commons/dto/file/IPMChargebackArbitrationChargebackRecord1442.java | UTF-8 | 8,055 | 1.5625 | 2 | [] | no_license | package com.bsva.dcms.commons.dto.file;
public class IPMChargebackArbitrationChargebackRecord1442 {
private String messageTypeIndicator;
private String primaryBitMap;
private String secondaryBitMap;
private String p_2PANLength;
private String p_2PrimaryAccountNumber;
private String p_3ProcessCode;
private Stri... | true |
c15c0944a3ecfde34ac12aee2740ef08f00523cc | Java | 17673171299/shark | /app/src/main/java/com/example/mysharkapp/LoginActivity.java | UTF-8 | 3,780 | 2.078125 | 2 | [] | no_license | package com.example.mysharkapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
impo... | true |
6deec68949cae5ab574042840682aac3e4fde25d | Java | sebivenlo/pit-testing | /examples/testdrivenlist/tddlist-maven/src/test/java/util/SimpleLinkedList2Test.java | UTF-8 | 205 | 1.796875 | 2 | [] | no_license | package util;
/**
*
* @author hom
*/
public class SimpleLinkedList2Test extends ListTestBase {
@Override
SimpleList<String> newInstance() {
return new SimpleLinkedList2<>();
}
}
| true |
9b429d5e4e6118159144d7778e87d360e5f73f32 | Java | chapie1/unbbayes | /unbbayes.prs.oobn/src/main/java/unbbayes/gui/oobn/OOBNClassWindow.java | UTF-8 | 14,955 | 1.9375 | 2 | [] | no_license | /**
*
*/
package unbbayes.gui.oobn;
import java.awt.CardLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.event.AdjustmentEvent;
import java.awt.event.AdjustmentListener;
import java.util.ResourceBundle;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import ... | true |
ea269cf0b8b31183e24e12515a4881629aad0062 | Java | FlashPointys/p2pProject | /p2p-dataservice/src/main/java/com/flashpoint/p2p/mapper/loan/RechargeRecordMapper.java | UTF-8 | 2,192 | 1.859375 | 2 | [] | no_license | package com.flashpoint.p2p.mapper.loan;
import com.flashpoint.p2p.model.loan.RechargeRecord;
import java.util.List;
import java.util.Map;
public interface RechargeRecordMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table b_recharge_record
... | true |
6f58f1d000dc32bbd0ae499a770ece9fcbcb2d95 | Java | jrbeaumont/workcraft | /CircuitPlugin/src/org/workcraft/plugins/circuit/routing/RouterVisualiser.java | UTF-8 | 8,009 | 2.453125 | 2 | [
"MIT"
] | permissive | package org.workcraft.plugins.circuit.routing;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Path2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import org.workcraft.gui.graph.Viewport;
import org.workcraft.plugins.circuit.CircuitSettings;
imp... | true |
b0bd1f8cb5e2426b1ad77266efdd5140ee5ee218 | Java | AzureDoom/Mine-and-Slash | /src/main/java/com/robertx22/mine_and_slash/new_content/RoomSides.java | UTF-8 | 1,709 | 2.875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package com.robertx22.mine_and_slash.new_content;
import com.robertx22.mine_and_slash.new_content.enums.RoomSide;
import net.minecraft.util.Direction;
public class RoomSides {
public RoomSide SOUTH;
public RoomSide NORTH;
public RoomSide EAST;
public RoomSide WEST;
public RoomSides(RoomSide SOUT... | true |
ce1dca435e40b7fedda73e15e2e7866f4af21c08 | Java | henryco/prokurator-backend | /core/src/main/java/dev/tindersamurai/prokurator/backend/mvc/service/guilds/GuildService.java | UTF-8 | 431 | 1.835938 | 2 | [] | no_license | package dev.tindersamurai.prokurator.backend.mvc.service.guilds;
import dev.tindersamurai.prokurator.backend.commons.service.IGuildService;
import java.util.Arrays;
public interface GuildService extends IGuildService {
String[] filterHandledGuilds(String... guilds);
static Object lazyToString(Object[] arr) {
re... | true |
0bf7ca47d48c8cb246bb955bb1eedd0532b28049 | Java | ammuluaddhanki/ATMLocator | /citibanamex-api-atm-locator/src/main/java/com/citibanamex/api/locator/atm/model/geocode/Location.java | UTF-8 | 1,005 | 2.125 | 2 | [] | no_license | /*
* Copyright Banco Nacional de Mexico, S.A.
* Integrante de Grupo Financiero Banamex.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package... | true |
281d4693fdf59bc64d1ed7724dfd895561498e28 | Java | joetomjob/JMJ | /src/testing2/MergeSort.java | UTF-8 | 1,215 | 3.59375 | 4 | [] | no_license | package testing2;
/**
* Created by joetomjob on 3/15/20.
*/
public class MergeSort {
public static void mergeSort(int[] x, int l, int r) {
if(l >= r) {
return;
}
int m = (l + r) / 2;
mergeSort(x, l, m);
mergeSort(x, m + 1, r);
merge(x, l, r);
}... | true |
789edef0cc8468caca6774b6b649daf5fd64adc1 | Java | aleksandark99/UOP-Projekat | /Projekat UOP/src/guiDodavanje/SestraDodavanjeGUI.java | UTF-8 | 8,149 | 2.296875 | 2 | [] | no_license | package guiDodavanje;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
... | true |
d5ed8ea19b1415f5c6c95602a55e31d74cdb54fc | Java | jiuyuesanqiu/DesignPattern | /src/main/java/bridge/DrawAPI.java | UTF-8 | 281 | 2.4375 | 2 | [] | no_license | package bridge;
/**
* @ClassName: DrawAPI
* @Description: TODO(这里用一句话描述这个类的作用)
* @author 刘良
* @date 2019年1月17日 下午1:45:41
*
*/
public interface DrawAPI {
public void drawCircle(int radius, int x, int y);
}
| true |
c99e15979ba7d1a11388b3af10b2049367fd0c32 | Java | Shubham8909/MyGoalRelatedProgram | /CollaborativeStory/src/main/java/com/collaboration/story/challenge/service/CommanService.java | UTF-8 | 4,993 | 2.1875 | 2 | [] | no_license | package com.collaboration.story.challenge.service;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Serv... | true |
a508748117a660a3a82f49997b3139abb76d5cf5 | Java | RahulYadavLog/BFS | /app/src/main/java/com/example/pdfview/MainBFSActivity.java | UTF-8 | 8,930 | 2.125 | 2 | [] | no_license | package com.example.pdfview;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.FileProvider;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.text.Html;
import android.text.Spann... | true |
011013e6f5c7680aa5afe693ee526855fdb88f8f | Java | danielperez9430/Third-party-Telegram-Apps-Spy | /Hotgram/com/google/android/exoplayer2/upstream/ParsingLoadable.java | UTF-8 | 1,957 | 2.140625 | 2 | [] | no_license | package com.google.android.exoplayer2.upstream;
import android.net.Uri;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Util;
import java.io.Closeable;
import java.io.InputStream;
public final class ParsingLoadable implements Loadable {
public interface Parser {
... | true |
33fa0114b154ac311f3b34aede7061c2d266bf57 | Java | fwing1987/KKing | /generator/src/main/java/com/kking/generator/mapper/GenMapper.java | UTF-8 | 297 | 1.90625 | 2 | [] | no_license | package com.kking.generator.mapper;
import com.kking.generator.entity.ColumnInfo;
import com.kking.generator.entity.TableInfo;
import java.util.List;
public interface GenMapper {
public TableInfo selectTable(String tableName);
public List<ColumnInfo> selectColumns(String tableName);
}
| true |
0c9ce86c506fabf0f064a2226bfa06fe6e3f4b87 | Java | normalstudyer/study | /src/com/bean/Product.java | UTF-8 | 2,561 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.bean;
import org.springframework.stereotype.Component;
@Component
public class Product {
int pId;
String pName;
double pPrice;
int pStore;
String caType;
String pUrl;
int mId;
String pAuthor;
String pPress;
String pPublicationDate;
String pPage;
String pISBN;
public String g... | true |
2aa1c41ba68e6f4350f09562cb837327cc93bb75 | Java | apoorva-ajay-dharadhar/ELTP_CoreJava_Assignments | /Ass8_Apoorva_Dharadhar/Ass8_Apoorva_Dharadhar/src/com/psl/training/threads/MultipleTasksByMultipleThreads.java | UTF-8 | 949 | 2.78125 | 3 | [] | no_license | package com.psl.training.threads;
import com.psl.training.threads.tasks.FindAverage;
import com.psl.training.threads.tasks.FindSum;
import com.psl.training.threads.tasks.SearchElement;
import com.psl.training.threads.tasks.SortElements;
public class MultipleTasksByMultipleThreads {
public static void main(String[] ... | true |
9470258beab4948657ae921bc7fb9320455ffff5 | Java | admin-SIMON/chatroom_websocket | /src/main/java/com/chatroom_websocket/service/impl/UserServiceImpl.java | UTF-8 | 631 | 2.109375 | 2 | [] | no_license | package com.chatroom_websocket.service.impl;
import com.chatroom_websocket.mapper.UserMapper;
import com.chatroom_websocket.pojo.User;
import com.chatroom_websocket.service.UserService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class UserS... | true |
8493057d4806b65274e592cd4ccee41f6ac75200 | Java | ithander/frame | /src/main/java/org/ithang/BootstrapApplication.java | UTF-8 | 2,013 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package org.ithang;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.ithang.tools.model.Config;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.spri... | true |
c49f465b49d8fe62db1798586e035bd50337f22f | Java | makeit7/RabbitMQ | /src/main/java/com/example/demo/Order/Order.java | UTF-8 | 1,831 | 2.421875 | 2 | [] | no_license | package com.example.demo.Order;
import com.example.demo.Client.Client;
import com.example.demo.Driver.Driver;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import javax.persistence.*;
/**
* Created by Bauka on 01-Oct-19
*/
@Entity
@Table(name ... | true |
8beaf2525904cab7f7577380702150a478e6f3b2 | Java | atMen/MicroEnterprise | /ChanBaapp/src/main/java/com/spring/chanba/utils/Constant.java | UTF-8 | 309 | 1.5625 | 2 | [] | no_license | package com.spring.chanba.utils;
/**
* 常量工具类
*/
public class Constant {
public static final String ROOT_URL = "https://api.madeinchanba.com";
public static final String WX_APP_ID = "wx682ba6669cfdfa28";
public static final String WX_APP_SECRET = "d3113b5700ca6018b4cac35267115495";
}
| true |
013c0c8d8ce92d83a36319631529f87ce7075252 | Java | grudolf/spring-message-outbox | /outbox-core/src/main/java/org/jblabs/outbox/core/publisher/JsonMessageSerializer.java | UTF-8 | 525 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.jblabs.outbox.core.publisher;
import org.jblabs.outbox.core.JsonSerializer;
import org.jblabs.outbox.core.message.MessagePayloadSerializer;
import org.jblabs.outbox.core.message.OutboxMessage;
/**
* Implementation of {@link MessagePayloadSerializer} using a Jackson ObjectMapper to serialize to Json.
*/
... | true |
aa4ee2e126371730ef232a53b01d8361c88fdce2 | Java | GTNDYanagisawa/merchandise | /bin/ext-addon/secureportaladdon/acceleratoraddon/web/src/de/hybris/secureportaladdon/forms/RegistrationForm.java | UTF-8 | 6,274 | 2.0625 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2014 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... | true |
901ca47d27a2394b3938a96f7fa2a515a30f03a1 | Java | mtear/trey | /src/mtear/lib/NFont.java | UTF-8 | 934 | 2.984375 | 3 | [] | no_license | /**
Author: Nic Wilson
File: mtear/lib/NFont.java
A class for handling LibGDX format font files
*/
package mtear.lib;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
/**
A class for handling LibGDX format font files
*/
public class NFont {
//Hold the font internall... | true |
5d0347d41acfbf69016097e44807951132741843 | Java | SanyuktaJ/CarsUsingDAO | /src/main/java/com/car/usingdao/DAO/CarsDAO.java | UTF-8 | 284 | 1.601563 | 2 | [] | no_license | package com.car.usingdao.DAO;
import com.car.usingdao.com.car.usingdao.entity.CarsClass;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CarsDAO extends JpaRepository<CarsClass, Long> {
}
| true |
441a5f9850b65f5f937bd9f968db13f02579205d | Java | shesha1096/Java-Programs | /JavaLibraries/src/Day3Programs/UsernameDemo.java | UTF-8 | 2,160 | 3.421875 | 3 | [] | no_license | package Day3Programs;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Scanner;
public class UsernameDemo {
static int count=0;
public static void ma... | true |
5e278ecb8824cbc7a8d8b1645487eaad271b5e03 | Java | mingchuizihuo/MB | /CommonModule/src/main/java/com/xiao/mb/commonmodule/web/service/CommentPictureService.java | UTF-8 | 425 | 1.570313 | 2 | [] | no_license | package com.xiao.mb.commonmodule.web.service;
import com.xiao.mb.commonmodule.core.generic.GenericService;
import com.xiao.mb.commonmodule.web.domain.pojo.CommentPicture;
import com.xiao.mb.commonmodule.web.domain.pojo.CommentPictureExample;
public interface CommentPictureService extends GenericService<CommentPictur... | true |
5f1f35d678a983910f77c686003029947214d9aa | Java | leiqlxk/learn-netty | /src/main/java/org/lql/netty/chatandrpc/protocol/ProcotolFreameDecoder.java | UTF-8 | 798 | 2.4375 | 2 | [] | no_license | package org.lql.netty.chatandrpc.protocol;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
/**
* Title: ProcotolFreameDecoder <br>
* ProjectName: learn-netty <br>
* description: 协议定好后结构基本不会发生变化,可以抽出来封装使得server类使用方便 <br>
*
* @author: leiql <br>
* @version: 1.0 <br>
* @since: 2021/8/13 23:10 <br>
*... | true |
02cee6c89be853803db11e81da20308bd7b2b28e | Java | tajulien/interviews | /interviews/src/test/java/misc/RateLimiterTest.java | UTF-8 | 922 | 2.4375 | 2 | [] | no_license | package misc;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class RateLimiterTest {
@Test
public void test() {
ClockMock clock = new ClockMock(0);
RateLimiter limiter = new RateLimiter(4, 10, clock);
assertTrue(limiter.add... | true |
d6758355c7a32498abeade03e7ee63e3c2bcaabf | Java | foilen/foilen-email-server | /src/main/java/com/foilen/email/server/config/EmailConfigDatabase.java | UTF-8 | 1,413 | 2.203125 | 2 | [
"MIT"
] | permissive | /*
Email Server
https://github.com/foilen/foilen-email-server
Copyright (c) 2019-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.email.server.config;
import com.foilen.smalltools.tools.AbstractBasics;
public class EmailConfigDatabase ext... | true |
f2b12b94a46021280c4d9bf5ff65bc1a4b109a23 | Java | uniquindiogaso/EstructurasLineales | /src/edu/uniquindio/gaso/ed/listasimple/ListaSimple.java | ISO-8859-2 | 3,047 | 3.265625 | 3 | [] | no_license | package edu.uniquindio.gaso.ed.listasimple;
import java.util.Iterator;
import edu.uniquindio.gaso.ed.common.Nodo;
public class ListaSimple<T> implements Iterable<T> {
private Nodo<T> cabeza;
private Nodo<T> cola;
private int tamano;
public ListaSimple() {
this.cabeza = null;
this.cola = null;
this.tamano... | true |
98423eb3bde9bb09505f341fa19c788ff3235cc0 | Java | xunxh/shirodemo | /src/main/java/com/itframe/web/PermissionsController.java | UTF-8 | 2,516 | 2.140625 | 2 | [] | no_license | package com.itframe.web;
import com.itframe.beans.Permission;
import com.itframe.iservice.PermissionSV;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewor... | true |
e1343d46921a9757415e73099ce0d149df4d1188 | Java | jatin9896/incubator-carbondata | /core/src/main/java/org/apache/carbondata/core/metadata/schema/table/AggregationDataMapSchema.java | UTF-8 | 13,939 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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, Version 2.0
* (the "License"); you may ... | true |
32c5b44bae07dd8c737454fb16a0bb805f39406d | Java | beluchin/explorations | /typetoken/src/test/java/aq/explorations/typetoken/TypeArgResolutionTest.java | UTF-8 | 4,190 | 2.71875 | 3 | [
"MIT"
] | permissive | package aq.explorations.typetoken;
import com.google.common.reflect.TypeToken;
import lombok.val;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
final class TypeArgResolutionTest {
/**
* @see <a href="https://github.com/google/guava/wiki/ReflectionExpl... | true |
e9d2b5f3478cafa0aaa0a8ecbccf00a6403530e3 | Java | zackaria59/Scrabble-S5 | /Scrabble/src/View/InfoJoueur.java | UTF-8 | 4,816 | 2.4375 | 2 | [] | no_license | package View;
import java.util.ArrayList;
import java.util.Random;
import Controller.ControllerPlateau;
import Model.Jeton;
import Model.Joueur;
import javafx.animation.PathTransition;
import javafx.animation.TranslateTransition;
import javafx.event.EventHandler;
import javafx.geometry.Bounds;
import java... | true |
b08c7c6a4686dd6eb27eb1f32a6d4cb99f17b0bf | Java | gabriellaZana/codecoolShop | /src/main/java/com/codecool/shop/controller/ProductController.java | UTF-8 | 1,138 | 2.21875 | 2 | [] | no_license | package com.codecool.shop.controller;
import com.codecool.shop.dao.ProductCategoryDao;
import com.codecool.shop.dao.ProductDao;
import com.codecool.shop.dao.SupplierDao;
import com.codecool.shop.dao.implementation.ProductCategoryDaoMem;
import com.codecool.shop.dao.implementation.ProductDaoMem;
import com.codecool.sho... | true |
4be8fbb93ae218eb02e035754a3eb199524d0294 | Java | muhammedazman/Java | /javaprojects/src/com/company/bolum_9_sorular/TestSoru3.java | UTF-8 | 506 | 3.0625 | 3 | [] | no_license | package com.company.bolum_9_sorular;
public class TestSoru3 {
public static void main(String[] args) {
C3 cSinifi = new C3();
System.out.println(cSinifi.metin);
/*
A
B
C
*/
}
}
class C1
{
String metin = "Sinif A";
}
class C2 extends C1
{
Stri... | true |
9846ec0bd7009b0c76d826d91d5b9d99022cd90a | Java | dlgkswn222/ARK | /ark-master/ARK/src/main/java/kr/icia/mapper/NoticeMapper.java | UTF-8 | 521 | 1.828125 | 2 | [] | no_license | package kr.icia.mapper;
import java.util.List;
import kr.icia.domain.Criteria;
import kr.icia.domain.NoticeVO;
public interface NoticeMapper {
public List<NoticeVO>getList();
public void insert(NoticeVO notice);
public void insertSelectKey(NoticeVO notice);
public NoticeVO read(Long ntnum);
public int ... | true |
c9287ab57db1cfd36d5d140f2befc94d83f7b76a | Java | juangallo/fut5 | /.rest2mobile/com.ort.num172159_180968.fut5.UserUpdate/source/com/ort/num172159_180968/fut5/model/beans/UpdateUserRequest.java | UTF-8 | 1,499 | 1.851563 | 2 | [] | no_license | /**
* File generated by Magnet rest2mobile 1.1 - Nov 22, 2015 7:40:30 PM
* @see {@link http://developer.magnet.com}
*/
package com.ort.num172159_180968.fut5.model.beans;
/**
* Generated from json example
{
"image" : "/9j/4AAQSkZJRgABAQEBLAEsAAD/7QBUUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAABwcAVoAAxslRxwCAAACAAIcAgUACF... | true |
33c4da084dd91216b603b7690a6fec18a490c6dd | Java | phrogg/AntennaPod | /core/src/main/java/de/danoeh/antennapod/core/util/exception/RxJavaErrorHandlerSetup.java | UTF-8 | 773 | 2.09375 | 2 | [
"MIT"
] | permissive | package de.danoeh.antennapod.core.util.exception;
import android.util.Log;
import io.reactivex.exceptions.UndeliverableException;
import io.reactivex.plugins.RxJavaPlugins;
public class RxJavaErrorHandlerSetup {
private RxJavaErrorHandlerSetup() {
}
public static void setupRxJavaErrorHandler() {
... | true |
4a7e931e10d6e53686845caa2d7aa3bb9a64439f | Java | MItsutoshiNAKANO/learnEclipse | /sample/src/Update.java | UTF-8 | 2,957 | 2.390625 | 2 | [] | no_license | /**
*
*/
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.ser... | true |
b7743f3d52be1aafdf0a1321ae9475053bb5622e | Java | jarqi/spring-cloud | /zk-config-service/src/main/java/zkr/hk/config/service/ConfigServerApplication.java | UTF-8 | 655 | 1.617188 | 2 | [] | no_license | package zkr.hk.config.service;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.w... | true |
b817bfc9c70a63e53a4dc8d37fb7540b2bea3aa4 | Java | ioanavladau1/salaries | /src/test/java/org/fasttrackit/salaries/EmployeesServiceIntegrationTests.java | UTF-8 | 4,501 | 2.25 | 2 | [] | no_license | package org.fasttrackit.salaries;
import org.fasttrackit.salaries.domain.Employees;
import org.fasttrackit.salaries.exception.ResourceNotFoundException;
import org.fasttrackit.salaries.service.EmployeesService;
import org.fasttrackit.salaries.transfer.employees.SaveEmployeesRequest;
import org.junit.Test;
import org.j... | true |
139bf1a50ac3e622122171b0411c3673d6df7ec4 | Java | Qitaal/Responsi-Prak-PBO | /src/resposiprakpbo/view/EmployeeView.java | UTF-8 | 2,632 | 2.6875 | 3 | [] | no_license | package resposiprakpbo.view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import resposiprakpbo.ResposiPrakPBO;
public class... | true |
4c9c74e0cdfbca237e05581c5e7dbd846eb6a6fa | Java | john-zhang1/nclc | /src/main/java/org/nclc/dao/impl/EPersonDaoImpl.java | UTF-8 | 2,000 | 2.34375 | 2 | [] | no_license | package org.nclc.dao.impl;
import java.sql.SQLException;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.criterion.Restrictions;
import org.nclc.content.EPerson;
import org.nclc.content.data.EducationalStage;
import org.nclc.content.data.LanguageCode;
import org.n... | true |
5632239a46ae6c2150534b90c1565d2f40fe349e | Java | rushidesai1/TextEditor | /src/main/java/texteditor/contentPane/ContentPaneHelper.java | UTF-8 | 8,765 | 2.453125 | 2 | [] | no_license | package texteditor.contentPane;
import texteditor.TextEditorFrame;
import texteditor.menubar.filemenubar.FileMenuBarHelper;
import texteditor.menubar.filemenubar.FileMenuBarHelper.ActionFileMenuOpenOptionClick;
import javax.swing.*;
import javax.swing.event.AncestorEvent;
import javax.swing.text.Element;
import java.... | true |
417cc2e4b5bb1a6e1b61fd8d4d83a9b7cde108a7 | Java | spillay/eTool | /Models/com.dsleng.etool.model/src/com/dsleng/etool/model/egov/EService.java | UTF-8 | 6,348 | 1.578125 | 2 | [] | no_license | /**
*/
package com.dsleng.etool.model.egov;
import com.dsleng.etool.model.bobjs.OrgUnit;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>EService</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
*... | true |
28477efc86680425b3ca112b73e3c27c5723760b | Java | salvi205s/T6c_SalvadorSantos | /src/main/java/t6c/Prueba.java | UTF-8 | 4,411 | 3.828125 | 4 | [] | 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 t6c;
import java.util.ArrayList;
/**
* Crea al menos dos instancias de cada clase y añádelas a una lista de objetos
* de la... | true |
17774bcd6a7c6cc40b9d16e96157894361c1f06f | Java | ksgrdf/bookstore | /src/main/java/BookManager/Controller/BookController.java | UTF-8 | 4,766 | 2.53125 | 3 | [] | no_license | package BookManager.Controller;
import BookManager.Service.BookService;
import BookManager.Model.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
i... | true |
480a3b542bbaf9e574c1d097ecbf69724e5d220f | Java | jwyming/CTCBFunding | /src/com/eds/ctcb/biz/system/SystemManagementBizImpl.java | UTF-8 | 5,099 | 2.1875 | 2 | [] | no_license | package com.eds.ctcb.biz.system;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import com.eds.ctcb.biz.BaseBiz;
import com.eds.ctcb.common.LogEx;
import com.eds.ctcb.constant.LogType;
import com.eds.ctcb.constant.SysParameter;
import com.eds.ctcb.db.ReportInfo;
import com.eds.ctcb.db.SysPara... | true |
c4ad98f9ef9824308d08501ac79f6c39b78f61e8 | Java | trisaputra/Dicoding | /app/src/main/java/com/tri/submission5/detailActivity/DetailMovieFavorite.java | UTF-8 | 504 | 1.59375 | 2 | [] | no_license | package com.tri.submission5.detailActivity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.tri.submission5.R;
public class DetailMovieFavorite extends AppCompatActivity {
public static final int REQUEST_DELETE = 500;
public static final int RESULT_DELETE = 404;
@... | true |
7e5e7dfd168fa8fa604104ee9681e9a93e71d87d | Java | chenshuangwtt/javaStudy | /src/main/java/com/cs/test/week11/bufferpool/MemoryBuffer.java | UTF-8 | 606 | 2.796875 | 3 | [] | no_license | package com.cs.test.week11.bufferpool;
import java.nio.ByteBuffer;
public class MemoryBuffer {
private ByteBuffer buf = null;
private int position = 0;
private int limit = 0;
public MemoryBuffer(ByteBuffer _buf, int _position, int _limit) {
this.buf = _buf;
thi... | true |
67892bdff43dfa8c5f73bebd76da5215938e1233 | Java | navikt/soknad-kontantstotte-api | /src/main/java/no/nav/kontantstotte/client/HttpClientUtil.java | UTF-8 | 1,183 | 2.109375 | 2 | [
"MIT"
] | permissive | package no.nav.kontantstotte.client;
import no.nav.familie.log.NavHttpHeaders;
import no.nav.familie.log.mdc.MDCConstants;
import org.slf4j.MDC;
import org.springframework.http.HttpHeaders;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.time.Duration;
public final class HttpClientUtil... | true |
0c965b6fccea8880652ba0441177e81616b060c7 | Java | BrassGoggledCoders/Boilerplate | /src/main/java/xyz/brassgoggledcoders/boilerplate/utils/ComparatorUtils.java | UTF-8 | 1,349 | 2.8125 | 3 | [
"MIT"
] | permissive | package xyz.brassgoggledcoders.boilerplate.utils;
import cofh.api.energy.IEnergyHandler;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.IFluidHandler;
/**
* @author SkySom
*/
public class ComparatorUtils {
public static int scaleStoredEnergyTo(in... | true |
4617357fd45e1559b07d0c3957355c29530bcd38 | Java | pabplanalp/pvmail | /java/source/com/vmail/service/support/managed/AcGb0901MarketPayComponentSummaryServiceManaged.java | UTF-8 | 11,024 | 1.773438 | 2 | [] | no_license | /**
* AUTO GENERATED - DO NOT EDIT
*/
package com.vmail.service.support.managed;
import com.jwApps.collection.*;
import com.jwApps.log.*;
import com.jwApps.service.*;
import com.jwApps.time.*;
import com.jwApps.utility.*;
import com.vmail.db.base.*;
import com.vmail.db.core.*;
import com.vmail.service.*;
import co... | true |
264db9b71eb380a8f98120949f8d54843978abd1 | Java | walkccc/LeetCode | /solutions/2247. Maximum Cost of Trip With K Highways/2247.java | UTF-8 | 1,283 | 2.75 | 3 | [
"MIT"
] | permissive | class Solution {
public int maximumCost(int n, int[][] highways, int k) {
if (k + 1 > n)
return -1;
int ans = -1;
// dp[u][mask] := max cost of trip starting from u given mask representing
// visited cities
dp = new Integer[n][1 << n];
List<Pair<Integer, Integer>>[] graph = new List[n];... | true |
30605210dbb9474e3621be48f50be9c85c59bafc | Java | rxmicro/rxmicro-usage | /examples/group-data-r2dbc-postgresql/data-r2dbc-postgresql-close-resources/src/main/java/io/rxmicro/examples/data/r2dbc/postgresql/close/resources/delete/DeleteSuccessfulDataRepository.java | UTF-8 | 3,900 | 1.898438 | 2 | [
"Classpath-exception-2.0",
"SSPL-1.0",
"PostgreSQL",
"GPL-2.0-only",
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright (c) 2020. https://rxmicro.io
*
* 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 o... | true |
35a5fca68d5ae9862af5985ea63db0d1896573ec | Java | kishoj/HibernateHacks | /src/main/java/com/tutorials/hibernate/common/DAOUtils.java | UTF-8 | 602 | 2.140625 | 2 | [] | no_license | package com.tutorials.hibernate.common;
import com.tutorials.hibernate.common.dao.CustomerDAO;
import com.tutorials.hibernate.common.dao.ProductDAO;
import com.tutorials.hibernate.elementcollection.HotelDAO;
import com.tutorials.hibernate.onetoone.bidirectional.EmployeeDAO;
import com.tutorials.hibernate.onetoone.unid... | true |
5c33da219fbafa600f33a96c4db49ba2ff073e17 | Java | Rahu206/MaximumUsingGenrics | /Maximum.java | UTF-8 | 1,745 | 3.75 | 4 | [] | no_license | package com.javagenrics;
import java.util.ArrayList;
import java.util.Collections;
public class Maximum {
/**
* @param element 1
* @param element 2
* @param element 3
* @return Maximum of 3 of any Type
*/
public <E extends Comparable<E>> E maxOfAnything(E element1 ,E element2 , E element3, E ... | true |
8b4f8628c27e1a59adec9cf382fd5b6781ed6ea9 | Java | swmwlm/skoa-product | /jflow-core/src/main/java/cn/jflow/model/designer/CondByUrlModel.java | UTF-8 | 7,214 | 1.796875 | 2 | [] | no_license | package cn.jflow.model.designer;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import BP.DA.DataType;
import BP.WF.Template.Cond;
import BP.WF.Template.CondType;
import BP.WF.Template.ConnDataFrom;
import cn.jflow.common.model.BaseModel;
import cn.jflow.system.ui.UiFator... | true |
b8db083934a36105e1bc9aad484b5cba9a89cbd8 | Java | syahrullah123/bonita | /services/bonita-classloader/bonita-classloader-impl/src/main/java/org/bonitasoft/engine/classloader/VirtualClassLoader.java | UTF-8 | 6,242 | 2.34375 | 2 | [] | no_license | /**
* Copyright (C) 2015 BonitaSoft S.A.
* BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation
* version 2.1 of the License.
* This libra... | true |
1c3c0ee2ccb48678301ef1ab2ad3e931343b35bb | Java | hyoGirl/MySpringBoot | /MyAutoConfig2/src/test/java/com/xulei/design/Dan002.java | UTF-8 | 349 | 2.34375 | 2 | [] | no_license | package com.xulei.design;
/**
* @author ashura1110
* @ClassName XULEI
* @description TODO
* @Date 2019/10/28 11:09
* @Version 1.0
*/
public class Dan002 {
private Dan002 (){}
private static class Inner{
static final Dan002 dan002=new Dan002();
}
public static Dan002 getDan(){
r... | true |
cfa5be2aff58cfb3ca345dba948f3bd1651349c1 | Java | mohankumarsivakumar/AirportSystem | /src/global/coda/airport/controllers/AddCrew.java | UTF-8 | 2,395 | 2.34375 | 2 | [] | no_license | package global.coda.airport.controllers;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResp... | true |
82de1936ebfbe9f943a2af168e2bbf1a6f09d9cd | Java | kalyanivij/Empl | /src/main/java/com/rs/eis/response/Perfomance_reviewReportResponse.java | UTF-8 | 816 | 2.015625 | 2 | [] | no_license |
package com.rs.eis.response;
import java.util.List;
import java.util.Set;
import org.springframework.http.HttpStatus;
import com.rs.eis.model.Perfomance_review;
public class Perfomance_reviewReportResponse extends AbstractResponse {
private List<Perfomance_review> perfomance_review;
public Perfom... | true |
59184c8bf45fdf9621c6bd372fc2bcaaa1dd3155 | Java | Braunch/monticore | /monticore-grammar/src/main/java/de/monticore/types/mcarraytypes/_ast/ASTMCArrayType.java | UTF-8 | 404 | 1.671875 | 2 | [] | no_license | /* (c) https://github.com/MontiCore/monticore */
package de.monticore.types.mcarraytypes._ast;
import de.monticore.types.mcfullgenerictypes.MCFullGenericTypesMill;
public class ASTMCArrayType extends ASTMCArrayTypeTOP {
public ASTMCArrayType() {
}
public String printTypeWithoutBrackets() {
return this.getM... | true |
12b572f1643782a704cd1459efe2b4bd22c73776 | Java | OlehBernov/ecomap_team1 | /app/src/main/java/com/ecomap/ukraine/ui/adapters/StatisticsPagerAdapter.java | UTF-8 | 2,566 | 2.75 | 3 | [] | no_license | package com.ecomap.ukraine.ui.adapters;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.ecomap.ukraine.models.Statistics;
import com.ecomap.ukraine.ui.fragments.StatisticsFragment;
/**
* Adapter fot tabs which... | true |
c3b8935212b9366278041c959d17044456ffe0b1 | Java | ChenPan311/PetClan | /app/src/main/java/com/example/android2project/model/ChatsAdapter.java | UTF-8 | 4,509 | 2.265625 | 2 | [] | no_license | package com.example.android2project.model;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.anno... | true |
bc923c9ce1a0b18c1aa44de7a6136c335cd162bc | Java | JaimeGG64/COMP182 | /Project2/invaliddeletion.java | UTF-8 | 244 | 2.390625 | 2 | [] | no_license | package Project2;
/* invaliddeletion.java */
public class invaliddeletion extends RuntimeException {
public invaliddeletion(int p) {
System.out.print("\n" + p + " is ivalid Positions for deletion.\n");
}
}// end class invaliddeletion | true |
30972ea30e2ac464b91723f8ee1a02c00322565f | Java | smrkela/edt | /EDTService/src/main/java/com/evola/edt/service/UserService.java | UTF-8 | 2,389 | 1.90625 | 2 | [] | no_license | package com.evola.edt.service;
import java.util.Date;
import java.util.List;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import com.evola.edt.model.dto.PageResultDTO;
import com.evola.edt.model.dto.UserDTO;
import com.evol... | true |
bdfb73e1783b8f7de6cc12b153c6c93dbacccc19 | Java | freemo/AetherMUD-coffee | /src/main/java/com/syncleus/aethermud/game/Abilities/Skills/Skill_DeepBreath.java | UTF-8 | 3,625 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2017 Syncleus, Inc.
* with portions copyright 2004-2017 Bo Zimmerman
*
* 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... | true |
f14f096c5c453d71e2d0ac4044e8af1e0c92a9af | Java | nickboy/Technical-Interview | /Lintcode/Ladder/9. Hi Frequency/Maximum Subarray Difference/Solution.java | UTF-8 | 1,771 | 3.125 | 3 | [] | no_license | public class Solution {
/**
* @param nums: A list of integers
* @return: An integer indicate the value of maximum difference between two
* Subarrays
*/
public int maxDiffSubArrays(ArrayList<Integer> nums) {
if (nums == null || nums.size() == 0) {
return 0;
}
... | true |
c1f66a2bfd63223bdc7cd57f5fd5231a81daa985 | Java | nikewest/TrainingSchedule | /app/src/main/java/ru/alexfitness/trainingschedule/util/CalendarSupport.java | UTF-8 | 932 | 2.734375 | 3 | [] | no_license | package ru.alexfitness.trainingschedule.util;
import java.util.Calendar;
import java.util.Date;
public abstract class CalendarSupport {
public static Date getBegginningOfMonth(Date date){
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.DAY_OF_MONT... | true |
ac8771ba254571500d1298622792ba763d6f5e18 | Java | kusuma0543/QTRingaPartner | /app/src/main/java/com/ringaapp/ringapartner/db_javaclasses/Imageret.java | UTF-8 | 1,290 | 2.40625 | 2 | [] | no_license | package com.ringaapp.ringapartner.db_javaclasses;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by kusuma on 11/17/2017.
*/
public class Imageret implements Parcelable{
String partner_uid;
String partner_images;
protected Imageret(Parcel in) {
partner_uid = in.readStrin... | true |
8c21c52cdcb0d49aa2b89d718e33f53538215ce4 | Java | iyangdidi/DocPay | /thu-web/src/main/java/com/guduo/wp/service/UserService.java | UTF-8 | 1,300 | 2.21875 | 2 | [] | no_license | package com.guduo.wp.service;
import java.sql.Timestamp;
import java.util.Date;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.... | true |
4f36462c70f9c3c5d6e8fb382cd266ea93d88508 | Java | 272407917/SSM | /atcrowdfunding01-admin-parent/atcrowdfunding03-admin-component/src/main/java/com/qu/crowd/services/impl/AuthServiceImp.java | UTF-8 | 1,361 | 1.992188 | 2 | [] | no_license | package com.qu.crowd.services.impl;
import com.qu.crowd.entity.Auth;
import com.qu.crowd.mapper.AuthMapper;
import com.qu.crowd.services.api.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
/**
... | true |
fc0c2aadcb6a40a37d3eb6783399ce9c4d973ce5 | Java | crai86/AlgorithmPractice | /com/LRU/LRUCache.java | UTF-8 | 751 | 3.234375 | 3 | [] | no_license | package com.LRU;
import java.util.HashMap;
import java.util.Map;
public class LRUCache {
int capacity;
Map<Integer, Node> nodes = new HashMap<Integer, Node>();
Node head=null;
Node end=null;
public LRUCache(int capacity){
this.capacity=capacity;
}
public int get(int key){
if(nodes.containsKey(key)){
... | true |
6a1db935fcdf7742aee24af2bc225c601c19ac46 | Java | Ravillivar/myOne | /src/HomeWork/H1Work/TheyMember/Person.java | UTF-8 | 780 | 3.4375 | 3 | [] | no_license | package HomeWork.H1Work.TheyMember;
public class Person implements Member {
private final String name;
private final int jumpHeight;
private final int maxRunLength;
public Person (String name, int jumpHeight, int maxRunLength) {
this.name = name;
this.jumpHeight = jumpHeight;
t... | true |
d8059cb31e2310a3c55a2fb5cba3cf4dab066f11 | Java | GrimmGhost/HW2 | /src/com/company/utils/testMatrix.java | UTF-8 | 2,244 | 3.171875 | 3 | [] | no_license | package com.company.utils;
import com.company.Nodes.*;
/**
* Created by fili_ on 9/11/2016.
*/
public class testMatrix
{
public static SparseMatrix test(SparseMatrix sparseMatrix)
{
// create 5 columns and 5 rows
// should you make a headNode if sparseMatrix always has the head referenced?... | true |
3cde64ffebd26417adced77023981187c665442b | Java | gyf9835/openttd-admin | /src/com/openttd/network/constant/PacketUdpType.java | UTF-8 | 1,499 | 2.328125 | 2 | [] | no_license | package com.openttd.network.constant;
/**
* See udp.h for changes
*/
public enum PacketUdpType implements PacketType {
PACKET_UDP_CLIENT_FIND_SERVER, ///< Queries a game server for game information
PACKET_UDP_SERVER_RESPONSE, ///< Reply of the game server with game information
PACKET_UDP_CLIENT_DETAIL_INFO... | true |
23de4c35b1d9680fa673347246e6631ddf05cdfc | Java | ithomasoft/SuperVideo | /app/src/main/java/com/thomas/video/ui/presenter/DetailPresenter.java | UTF-8 | 1,728 | 2.1875 | 2 | [] | no_license | package com.thomas.video.ui.presenter;
import com.thomas.core.mvp.BaseMvpPresenter;
import com.thomas.video.bean.VideoDetailBean;
import com.thomas.video.helper.JsoupHelper;
import com.thomas.video.ui.contract.DetailContract;
import com.thomas.video.ui.model.DetailModel;
import retrofit2.Call;
import retrofit2.Callba... | true |
38770ef42ad5735854d7a92fc7f1f42c5e6c9994 | Java | saki-osive/spring-native | /spring-aot/src/main/java/org/springframework/aot/context/bootstrap/generator/infrastructure/InitDestroyMethodsDiscoverer.java | UTF-8 | 7,715 | 1.921875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | /*
* Copyright 2019-2021 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
e0eae91197bc470069e86ffd297055c80a3f8058 | Java | OSpoon/Timeline | /app/src/main/java/com/spoon/top/timeline/TraceListAdapter.java | UTF-8 | 1,243 | 2.25 | 2 | [] | no_license | package com.spoon.top.timeline;
import android.support.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import java.util.List;
public class TraceListAdapter extends BaseQuickAdapter<Trace, BaseViewHolder> {
private static final int... | true |
4c1c5a8fe21f37a50afc8f3b01f613d3cba84fe0 | Java | komalsingh997/Java-practice | /src/main/java/interview/hackerearth/TestClass.java | UTF-8 | 1,594 | 3.625 | 4 | [] | no_license | package interview.hackerearth;
/* IMPORTANT: Multiple classes and nested static classes are supported */
/*
* uncomment this if you want to read input.
//imports for BufferedReader
import java.io.BufferedReader;
import java.io.InputStreamReader;
//import for Scanner and other utility classes
import java.util.*;
*/
... | true |
3ef7661ae1634ecd95e9e1c879515c51a8a3c2c4 | Java | shelimingming/data-structure | /src/main/java/com/sheliming/leetcode/offer/L54_二叉搜索树的第k大节点.java | UTF-8 | 1,763 | 3.625 | 4 | [] | no_license | package com.sheliming.leetcode.offer;
/**
* 给定一棵二叉搜索树,请找出其中第k大的节点。
* <p>
*
* <p>
* 示例 1:
* <p>
* 输入: root = [3,1,4,null,2], k = 1
* 3
* / \
* 1 4
* \
* 2
* 输出: 4
* 示例 2:
* <p>
* 输入: root = [5,3,6,2,4,null,null,1], k = 3
* 5
* / \
* 3 6
* / \
* 2 4
* /
* 1
* 输出: 4
* <p>
* 来源:力扣(Leet... | true |
342f8381566899c6736a30e598c4d30e7817883d | Java | Trambler-2/Labs | /src/com/structures/Queue.java | UTF-8 | 1,990 | 3.921875 | 4 | [] | no_license | package com.structures;
import java.util.Iterator;
//Реализация шаблонной очереди в виде двусвязного списка
public class Queue<T> implements Iterable<T>{
private Node<T> m_tail;
private Node<T> m_head;
//Возвращает True если массив пуст, иначе false
public boolean IsEmpty(){
return m_head == n... | true |
476d0cb3903790a2c5d9d7a3f940a3f574efe6e6 | Java | zhongxingyu/Seer | /Diff-Raw-Data/3/3_d9c85e0c9cb99c542790b2a49118ee0c97865732/RandomSpikeTrainSettings/3_d9c85e0c9cb99c542790b2a49118ee0c97865732_RandomSpikeTrainSettings_s.java | UTF-8 | 7,213 | 2.09375 | 2 | [] | no_license | /**
* neuroConstruct
* Software for developing large scale 3D networks of biologically realistic neurons
*
* Copyright (c) 2009 Padraig Gleeson
* UCL Department of Neuroscience, Physiology and Pharmacology
*
* Development of this software was made possible with funding from the
* Medical Researc... | true |