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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
14a689c8a5d69dd8ebb2a87f2b3a29f1da82d9fe | Java | siddiqsagar/hack2017 | /registration-login-spring-hsql/bfuture/src/main/java/com/rise/menu/controller/MenuController.java | UTF-8 | 1,147 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.rise.menu.controller;
import com.rise.menu.dto.Menu;
import com.rise.menu.dto.MenuRequest;
import com.rise.menu.dto.MenuResponse;
import com.rise.menu.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.we... | true |
aa5d4728ada5d472b1046dcba1f3c4836c078b51 | Java | zhiji6/rule-2 | /crp-rule-crc/src/main/java/com/clinical/dao/cluster/SurgicalRecordMapper.java | UTF-8 | 338 | 1.90625 | 2 | [] | no_license | package com.clinical.dao.cluster;
import java.util.List;
import com.clinical.model.cluster.SurgicalRecord;
public interface SurgicalRecordMapper {
List<SurgicalRecord> findSurgicalRecord(String uniqueId);
void saveSurgicalRecord(SurgicalRecord surgicalRecord);
void updateSurgicalRecord(SurgicalRecord s... | true |
977bf0ecd4b746ef864cc91705c8f59cfe49e25a | Java | huemac16/Exercise_206 | /Exercise_206_Storage/src/GUI/StorageDLG.java | UTF-8 | 7,716 | 2.234375 | 2 | [] | no_license | package GUI;
import BL.Article;
import javax.swing.JButton;
public class StorageDLG extends javax.swing.JDialog {
private Article a;
private boolean ok;
public Article getA() {
return a;
}
public boolean isOk() {
return ok;
}
public StorageDLG(java.awt.Frame parent, boo... | true |
9cff00ef09a003be81b55179f68bcbcb0835d40e | Java | manishkarki/Algo | /Prac/src/com/prac/leetcode/LargestBSTInBinaryTree.java | UTF-8 | 947 | 3.296875 | 3 | [] | no_license | package com.prac.leetcode;
/**
* @author Manish Karki
*
*/
public class LargestBSTInBinaryTree {
public class MinMax{
boolean isBST;
int min;
int max;
int size;
MinMax(){
min = Integer.MAX_VALUE;
max = Integer.MIN_VALUE;
isBST = true;
size = 0;
}
}
publ... | true |
f418571aa0a12029a61b2a342dad44ce9573c3cb | Java | enwn/store | /app/src/main/java/com/shop/store/model/api/GroupApi.java | UTF-8 | 373 | 1.671875 | 2 | [] | no_license | package com.shop.store.model.api;
import com.shop.store.model.bean.CatalogBean;
import com.shop.store.model.bean.CatalogCurrentBean;
import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;
/**
*
*/
public interface GroupApi {
//https://cdwan.cn/api/catalog/index
@GET("catalog... | true |
84ea0f8e6b4bada0d3173d7d0126091338f4b65e | Java | morozoffv/commit-supervisor | /app/src/main/java/com/example/vlad/commitsupervisor/layers/Network.java | UTF-8 | 440 | 1.773438 | 2 | [] | no_license | package com.example.vlad.commitsupervisor.layers;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import org.json.JSONArray;
import org.json.JSONObject;
import java.net.URL;
/**
* Created by taraskreknin on 17/10/2017.
*/
public interface Network {
@Nullable
JSONOb... | true |
bcec4b0078047041f485b7dd16b467c09c1d734c | Java | pavanhp001/Spring-boot-proct | /Spring-proctice/src/SCenter/Sales/src/main/java/com/all/roundrobin/rr/client/RoundRobinService.java | UTF-8 | 14,212 | 2.03125 | 2 | [] | no_license | package com.AL.roundrobin.rr.client;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.core.MediaType;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import com.AL.ui.util.Utils;
import com.AL.ui.service.config.ConfigRepo;
///import com.AL.util.ALProperties;... | true |
8b676c33e1ab68c5c06c82c0eabe948d3c5395df | Java | luizgustavocosta/java-ee-cook-book-examples | /mvc/src/main/java/com/guga/ee/mvc/dao/CityDAO.java | UTF-8 | 790 | 2.46875 | 2 | [] | no_license | package com.guga.ee.mvc.dao;
import com.guga.ee.mvc.bean.City;
import javax.annotation.ManagedBean;
import java.util.ArrayList;
import java.util.List;
@ManagedBean
public class CityDAO implements ICityDAO {
@Override
public List<City> findAll() {
List<City> cities = new ArrayList<>();
citi... | true |
f8bcc93f83079c6c483b4781878c5dda3f106769 | Java | Qiyeah/HZRF-APP | /app/src/main/java/com/zhilian/hzrf_oa/adapter/MyMailAdapter.java | UTF-8 | 2,509 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.zhilian.hzrf_oa.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.zhilian.hzrf_oa.R;
import com.zhilian.hzrf_oa... | true |
b9a298b305cbdd6b513e4e49c31253390c2b3dc7 | Java | DiogoDuque/LPOO-Slash | /codigo fonte/Slash-2P/core/src/com/lpoo/slashhelpers/Utilities.java | UTF-8 | 2,256 | 3.0625 | 3 | [] | no_license | package com.lpoo.slashhelpers;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.math.Vector2;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Created by Diogo on 01-06-2016.
* Contains several utilities for various purposes.
* Design Pattern... | true |
6f5c9620b6575f983eddd2c0afc819218f576609 | Java | Ragul-Arulanandam/Revature-Project-2 | /DigitaKitchen/BackEnd-DK/src/main/java/com/projecttwo/digitalkitchen/service/AppUserDetails.java | UTF-8 | 1,362 | 2.140625 | 2 | [] | no_license | package com.projecttwo.digitalkitchen.service;
import org.springframework.security.core.userdetails.User;
import com.projecttwo.digitalkitchen.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springfr... | true |
60f72e3e6e72bb730a512c4be56470174c69eeb8 | Java | iamrahulyadav/iwms | /other_app_source_code/OlaCabs_V3.3.07/com/google/android/gms/location/DetectedActivity.java | UTF-8 | 1,883 | 2.015625 | 2 | [] | no_license | package com.google.android.gms.location;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import java.util.Comparator;
public class DetectedActivity implements SafeParcelable {
public static final C0528b CREATOR;
public static final Comparator<DetectedActivity... | true |
c641c07057fdbaba1bcc1ef4cb43e3fee5db25ab | Java | empinator/myawesomeproject | /src/main/java/de/studiapp/pms/controller/WelcomeController.java | UTF-8 | 539 | 2.0625 | 2 | [] | no_license | package de.studiapp.pms.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class WelcomeController {
@RequestMapping("/welc... | true |
bca759dd28a6228d90b100ea7d49c1ce53379cff | Java | amirmaks/hackerrank-java | /src/main/java/challenges/warmup/mini_max_sum/Solution.java | UTF-8 | 891 | 3.53125 | 4 | [] | no_license | package challenges.warmup.mini_max_sum;
import java.util.Arrays;
import java.util.Scanner;
public class Solution {
private static final Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int[] arr = new int[5];
String[] arrItems = scanner.nextLine().split(" "... | true |
099bf6ac6a9c9133ce6cfb887ff48fddfdc530ba | Java | aniketpebstone/SplitBills | /app/src/main/java/org/aniket/splitbills/model/SplitViewModel.java | UTF-8 | 907 | 2.0625 | 2 | [] | no_license | package org.aniket.splitbills.model;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import org.aniket.splitbills.dao.PersonRepository;
import org.aniket.splitbills.dao.SplitRepository;
import java.util.List;
public... | true |
351b9bc183378dc618b7dbc426631f7e12504e25 | Java | hungthinhnguyenthai/giangdien_restaurants | /giangdien-data-mybatis/src/main/java/com/aktv/project/giangdien/mybatis/repository/ServiceRepository.java | UTF-8 | 971 | 2.140625 | 2 | [] | no_license | package com.aktv.project.giangdien.mybatis.repository;
import com.aktv.project.giangdien.data.model.Business;
import com.aktv.project.giangdien.mybatis.mapper.ServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* ... | true |
2aef9124d3df31fb14c06cdafc5bf89a2def5d55 | Java | DanielZhangLing/LeetCode | /src/ReverseBits190/ReverseBits190.java | UTF-8 | 403 | 3.234375 | 3 | [] | no_license | package ReverseBits190;
public class ReverseBits190 {
/*
* add one and shift
*/
public int reverseBits(int n) {
int result = 0;
for(int i = 0; i<32 ; i++){
result+=n&1;
n=>>1; // CATCH: must do unsigned shift
if(i<31){ // CATCH: for last digit, don't shift!
... | true |
003d96c65efb2fabd8d3398c162b5f1307c1b34a | Java | xiongqiaofeng/xiongqiaofeng | /kaoshi/src/cn/itcast/core/converter/DateConverter.java | UTF-8 | 693 | 2.8125 | 3 | [] | no_license | package cn.itcast.core.converter;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.core.convert.converter.Converter;
/**
* 自定义转换日期转换器
* @author Administrator
*
*/
public class DateConverter implements Converter<String, Date> {
/**
* 转换方法
*/
@Override
public Dat... | true |
aa8ab8e75957e37eae2bb919231aa8cfbbdb5a51 | Java | ildar66/WSAD_Collaboration | /2004/rts-services/src/com/hps/july/rts/service/impl/dao/impl/ElementaryRequestDAOHibernate.java | UTF-8 | 1,995 | 2.0625 | 2 | [] | no_license | package com.hps.july.rts.service.impl.dao.impl;
import com.hps.july.rts.service.impl.dao.ElementaryRequestDAO;
import com.hps.july.rts.service.RTSOperatorService;
import com.hps.july.rts.object.request.ElementaryRequest;
import com.hps.july.rts.SystemException;
import java.util.Collection;
import java.util.List;
imp... | true |
c65b051e82097c57504eaff5f3ec2fd3a3fce05c | Java | jizhu4873/learn2 | /java/learnJava/src/test/java/com/haanoo/StringTest.java | UTF-8 | 169 | 1.71875 | 2 | [] | no_license | package com.haanoo;
import org.junit.Test;
public class StringTest {
@Test
public void htmlCharLenth(){
System.out.println("<br/>".length());
}
}
| true |
f47d490f2d49b12beb31ae4beeb3f417506b052d | Java | ravenfeld/PopupSearch | /popupsearch/src/main/java/fr/ravenfeld/librairies/popupsearch/example/DetailFragment.java | UTF-8 | 2,092 | 2.203125 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | /*
* Copyright 2014. Ravenfeld
* 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 writing... | true |
8a03b8249517bbdb03075f261729d0f890ba47f8 | Java | VeroniekG/Quizmaster | /src/test/model/UserTest.java | UTF-8 | 3,393 | 3.203125 | 3 | [] | no_license | package model;
import org.assertj.core.api.WithAssertions;
import org.junit.jupiter.api.*;
@DisplayName("Tests for class User")
class UserTest implements WithAssertions {
private static final int ID_USER = 99;
private static final String FIRST_NAME = "firstName";
private static final String LAST_NAME = "... | true |
a5f1e93ff94330ae80518322cdb328dd6fac997e | Java | agibsonccc/infovore | /hydroxide/src/main/java/com/ontology2/hydroxide/extractOtherComments/ExtractArticleLinksApp.java | UTF-8 | 2,139 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.ontology2.hydroxide.extractOtherComments;
import com.hp.hpl.jena.graph.Triple;
import com.hp.hpl.jena.query.Query;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.StmtIterator;
import com.ontology2.hydroxide.PartitionsAndFiles;
import com.ontology2.hydroxide.StatefulTripleFi... | true |
835592f443bd4ebf20ccbc42136330602de2364e | Java | 840871354/OnlineSurvey | /src/java/com/survey/service/impl/CompanyServiceImpl.java | UTF-8 | 687 | 1.882813 | 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.survey.service.impl;
import com.survey.dao.CompanyDao;
import com.survey.entity.Company;
import com.survey.service.Company... | true |
a3f9249588c5b739b725daa2e33f0418888aa30f | Java | cjp472/juggle_be | /framework/src/main/java/com/juggle/juggle/framework/data/filter/PageSearch.java | UTF-8 | 1,040 | 2.25 | 2 | [] | no_license | package com.juggle.juggle.framework.data.filter;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class PageSearch implements Serializable {
private final static int MAX_SIZE = 100;
private String sort;
private int size;
private int page;
private List<... | true |
4e664ff30808ca4d0dcd3300d4d76080ba538b03 | Java | nirajnr7/spring-core | /src/main/java/com/listpclass/Student.java | UTF-8 | 1,092 | 2.8125 | 3 | [] | no_license | package com.listpclass;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class Student {
private String name;
private List<String> phone;
private Set<String> city;
private Map<String,String> courses;
public List<String> getPhone() {
return phone;
}
public... | true |
9839f2e23e77992c79fb08645587f1c50a7f7fc4 | Java | fasten-project/fasten | /analyzer/quality-analyzer/src/test/java/eu/fasten/analyzer/qualityanalyzer/MetadataUtilsTest.java | UTF-8 | 1,631 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package eu.fasten.analyzer.qualityanalyzer;
import org.junit.jupiter.api.Test;
import static eu.fasten.analyzer.qualityanalyzer.MetadataUtils.normalizeCallableName;
import static org.junit.jupiter.api.Assertions.*;
class MetadataUtilsTest {
@Test
void normalizeCallableNameJavaTest() {
ass... | true |
fe326328bb5d1f05a521d652a460afab707e1865 | Java | junges521/src_awe | /src/main/java/io/agora/rtc/video/VideoCapture.java | UTF-8 | 3,448 | 1.945313 | 2 | [] | no_license | package io.agora.rtc.video;
import android.content.Context;
import android.content.SharedPreferences;
import com.ss.android.ugc.aweme.q.c;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public abstract class VideoCapture {
protected int mCameraNativeOrientation;
p... | true |
32244565142e49164305212c3fbd6340d2d9e93e | Java | BU-git/rp16_gardening | /Intratuin/src/main/java/nl/intratuin/testmarket/controller/CustomerController.java | UTF-8 | 7,732 | 2.28125 | 2 | [] | no_license | package nl.intratuin.testmarket.controller;
import nl.intratuin.testmarket.dto.DTOEmail;
import nl.intratuin.testmarket.dto.DTOFingerprint;
import nl.intratuin.testmarket.dto.DTOPassword;
import nl.intratuin.testmarket.entity.Customer;
import nl.intratuin.testmarket.entity.Product;
import nl.intratuin.testmarket.servi... | true |
cc508d762dc3450bcb7899d51cec1bbd21988bdd | Java | weetmuts/rodin-b-sharp-iUML_B_Utils | /NO LONGER USED/ac.soton.xtext.statemachine.dsl/src-gen/ac/soton/xtext/statemachine/parser/antlr/internal/InternalDslLexer.java | UTF-8 | 51,599 | 1.90625 | 2 | [] | no_license | package ac.soton.xtext.statemachine.parser.antlr.internal;
// Hack: Use our own Lexer superclass by means of import.
// Currently there is no other way to specify the superclass for the lexer.
import org.eclipse.xtext.parser.antlr.Lexer;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
imp... | true |
f455c0dd06f595def869dc22cfa617080f796828 | Java | agula5610/RecyclerViewUtils | /recyclerviewhelper/src/main/java/com/luxiaochun/recyclerviewhelper/base/Cell.java | UTF-8 | 539 | 2.28125 | 2 | [] | no_license | package com.luxiaochun.recyclerviewhelper.base;
import com.luxiaochun.recyclerviewhelper.viewholder.ViewHolderRocket;
/**
* ProjectName: JiuZhou
* Author: jun
* Date: 2018-01-10 16:07
*/
public interface Cell {
/**
* 回收资源
*/
void releaseResource();
/**
* 获取viewType
*
* @retur... | true |
44b05e93acf06f370a910d79bd5b153f270c99b2 | Java | andresSaldanaAguilar/Mobile-Applications | /Android Projects/PreferenciasImagenes/app/src/main/java/e/andressaldana/preferenciasimagenes/SegundaActivity.java | UTF-8 | 1,064 | 2.203125 | 2 | [] | no_license | package e.andressaldana.preferenciasimagenes;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import java.io.File;
public class SegundaActivity e... | true |
d45dc414cde8f7391a4763db4d6dba1a92d8f7fd | Java | DangPhong/CodeGym | /Module2_WBE/03_LopVaDoiTuongTrongJava/TH_LopHCN/src/Rectangle.java | UTF-8 | 1,403 | 4 | 4 | [] | no_license | import java.util.Scanner;
public class Rectangle {
public int width;
public int height;
public Rectangle(int width, int height) {
this.width = width;
this.height = height;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.wid... | true |
1bcca9f483f793c7f115446b497bb78d5a9c42a3 | Java | axsilva1991/jokenpo | /src/main/java/com/br/axsilva_games/jokenpo/controller/JokenpoController.java | UTF-8 | 1,570 | 2.125 | 2 | [] | no_license | package com.br.axsilva_games.jokenpo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.b... | true |
8ecd1a163c95c7eebc0fa9a2314f7a2621c73c2f | Java | hazelbecker/Tyrfing | /src/main/java/com/Tyrfing/spring/services/PotionService.java | UTF-8 | 973 | 2.53125 | 3 | [] | no_license | package com.Tyrfing.spring.services;
import com.Tyrfing.models.items.Potion;
import com.Tyrfing.spring.repos.PotionRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class PotionService {
private PotionRepository repo;
@A... | true |
e65db835d978c7dc9e4215771e20eee4e9eab081 | Java | AnLin007/gmd-shopping | /springcloud-02-shopping-goods-provider/src/main/java/com/springcloud/service/TypeService.java | UTF-8 | 709 | 2.390625 | 2 | [] | no_license | package com.springcloud.service;
import java.util.List;
import com.springcloud.entity.TypeOne;
import com.springcloud.entity.TypeTwo;
/**
* 用于定义一级类别与二级类别模块的方法
* @author DELL
*
*/
public interface TypeService {
/**
* 查询所有一级类别信息
* @return 成功返回java.util.List 类型实例,否则返回null
*/
public abstract... | true |
35706bf5575795199db249a234470707b8f3e64a | Java | biradarshiv/Java | /ExecutedCodes/Test95/Test95.java | UTF-8 | 729 | 3.65625 | 4 | [] | no_license | class A
{
void show()
{
System.out.println("show of A");
}
static void display()
{
System.out.println("static display of A");
}
}
class B extends A
{
void show()
{
System.out.println("show of B");
}
static void display()
{
System.out.println("static display of B");
}
}
class T... | true |
8940ad1e82951b6e5fde24b886c7d12193ad9d77 | Java | KyleChamberlin/springmvc-raml-plugin | /springmvc-raml-parser/src/main/java/com/phoenixnap/oss/ramlapisync/raml/rjp/raml08v1/RJP08V1RamlModelFactory.java | UTF-8 | 9,969 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2002-2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | true |
486dbdd22ff01dd00982aae6984d641b6d701344 | Java | Apurba000Biswas/FriendZone | /app/src/main/java/com/example/apurba/friendzone/activities/UserDetailsFragment.java | UTF-8 | 2,567 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.example.apurba.friendzone.activities;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget... | true |
bd8d732221709c1abee78905d0a9febe482587e0 | Java | xuan835060947/Test | /app/src/main/java/com/xuan/gsonapt/testapplication/bean/LittleBean.java | UTF-8 | 519 | 2.0625 | 2 | [] | no_license | package com.xuan.gsonapt.testapplication.bean;
import com.xuan.gsonapt.JsonBean;
/**
* Created by chenxiaoxuan1 on 17/2/15.
*/
@JsonBean
public class LittleBean {
String littleBeanName;
public String getLittleBeanName() {
return littleBeanName;
}
public void setLittleBeanName(String little... | true |
2c9dc518a5ca6db2127922a49fe49cdc13843e67 | Java | Hexafile/Modelisation_Project_finished | /test/sqlite/testBDD.java | UTF-8 | 1,464 | 2.40625 | 2 | [] | no_license | package sqlite;
import java.util.ArrayList;
import javax.swing.DefaultBoundedRangeModel;
import sqlite.BDD;
public class testBDD {
//Creation d'une base sous sqlite
public void main(String []args){
creation_table("demo.db");
insertion_table("demo.db","url_test_1");
insertion_table("demo.db","url_test_2");
... | true |
4115a6031fd7d62d1b2846e695522987b6f14f65 | Java | mayankdaruka/Messenger | /ClientTest.java | UTF-8 | 323 | 2.71875 | 3 | [
"MIT"
] | permissive | //Client Test Class
import javax.swing.JFrame;
public class ClientTest
{
public static void main(String[] args)
{
Client jason = new Client("127.0.0.1"); // 127.0.0.1 means local host (the computer that you're at)
jason.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jason.startRunning();
}... | true |
90b13e76c244ca046bd931c87c22d0c5e1fcf9cd | Java | ngchd/TaskBucket | /TaskBucketJava/src/main/java/com/tk20/ctuoprestapi/resource/TaskResource.java | UTF-8 | 14,113 | 2.015625 | 2 | [] | no_license | package main.java.com.tk20.ctuoprestapi.resource;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import javax.sql.DataSource;
i... | true |
dc77d7b60b99169dd4ddd778a96bcd85146d1825 | Java | PGWelch/territorium | /territorium.core/src/main/java/com/opendoorlogistics/territorium/optimiser/solver/SolverConfig.java | UTF-8 | 4,142 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2014-2017 Open Door Logistics Ltd
*
* 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
*
* h... | true |
53c7b14a2aa17785d5b1b6d36316aa8e6bc6f161 | Java | ingorewho/importexport | /src/main/java/com/base/core/process/parser/writer/Writer.java | UTF-8 | 211 | 2 | 2 | [] | no_license | package com.base.core.process.parser.writer;
import com.base.core.metadata.Column;
import com.base.core.metadata.Row;
public interface Writer<T> {
T writeRow(Row row);
T writeColumn(Column column);
}
| true |
0a98a4251ba543ac61b68c98709064131449156e | Java | ffrazao/laco-de-amor-rest | /src/main/java/com/frazao/lacodeamorrest/dao/laco_de_amor/ProdutoModeloDAOFiltro.java | UTF-8 | 356 | 1.53125 | 2 | [] | no_license | package com.frazao.lacodeamorrest.dao.laco_de_amor;
import com.frazao.lacodeamorrest.dao.Filtro;
import com.frazao.lacodeamorrest.modelo.dto.laco_de_amor.ProdutoModeloFiltroDTO;
import com.frazao.lacodeamorrest.modelo.entidade.laco_de_amor.ProdutoModelo;
public interface ProdutoModeloDAOFiltro extends Filtro<ProdutoM... | true |
d2e8c3082b311ec19b925abef80b30b5b4c93b72 | Java | kartikgola/well-known-problems | /practice/src/main/java/leetcode/HIndex.java | UTF-8 | 421 | 2.78125 | 3 | [] | no_license | /*
* Author: Kartik Gola
* Date: 1/2/22, 3:28 PM
* Copyright (c) 2021 | https://kartikgola.com
*/
package leetcode;
import java.util.Arrays;
public class HIndex {
public int hIndex(int[] citations) {
Arrays.sort(citations);
int h = citations.length;
for ( int ct : citations ) {
... | true |
30f8b3403db7f32e987334423bd664d7bd81121f | Java | t0HiiBwn/CoolapkRelease | /sources/okhttp3/internal/http2/Http2Connection$Listener$Companion$REFUSE_INCOMING_STREAMS$1.java | UTF-8 | 1,198 | 1.734375 | 2 | [] | no_license | package okhttp3.internal.http2;
import java.io.IOException;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import okhttp3.internal.http2.Http2Connection;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u00... | true |
b24517750aeafca0d1a10ed4da050e60678ee195 | Java | andrenmaia/daily-coding-problems | /src/main/java/dcp/Problem4Bonus.java | UTF-8 | 1,742 | 3.65625 | 4 | [] | no_license | package dcp;
import java.awt.List;
import java.lang.*;
import java.util.*;
public class Problem4Bonus {
/*
Return a new sorted merged list from K sorted lists, each with size N.
For example, if we had [[10, 15, 30], [12, 15, 20], [17, 20, 32]], the
result should be [10, 12, 15, 15, 17, 2... | true |
8f4588fbcb246e442efcc35de44bd5a5f43a4892 | Java | swest599/BankTeller | /src/com/company/Main.java | UTF-8 | 475 | 2.546875 | 3 | [] | no_license | package com.company;
import java.util.HashMap;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
BankTeller bankTeller = new BankTeller();
bankTeller.startBank();
Scanner scanner = new Scanner(System.in);
Customers customers = new Customers()... | true |
e9744cb9399595fead59de38b38be7bae0946c68 | Java | fshuwi/runningdinner | /src/main/java/org/runningdinner/exceptions/DinnerNotFoundException.java | UTF-8 | 629 | 2.265625 | 2 | [
"MIT"
] | permissive | package org.runningdinner.exceptions;
/**
* Thrown if a user tries to load the admin area of a running dinner which does not exist (any more)
*
* @author Clemens Stich
*
*/
public class DinnerNotFoundException extends RuntimeException {
private static final long serialVersionUID = 134760994627386980... | true |
e4a5bdb171dde2176212c84a4ecf3389fd51fae2 | Java | mbari-media-management/vars-kb | /org.mbari.kb.shared/src/main/java/org/mbari/kb/shared/ui/ConceptChangeListener.java | UTF-8 | 1,725 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2005 MBARI
*
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1
* (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.gnu.org/copyleft/lesser.html
*
* Unless required by applicable law or ag... | true |
88ad2a749f52aa4260ae0742c68d499df106321f | Java | theanasuddin/Gonit-Korbo-Joy-2nd-Edition-by-Tamim-Shahriar-Subeen | /ProblemPage29.java | UTF-8 | 398 | 2.828125 | 3 | [] | no_license | package gonitKorboJoy;
public class ProblemPage29 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a = 10;
int b = 0;
System.out.printf("%d x %d = %d", a, b, a * b);
System.out.printf("%d / %d = %d", a, b, a / b); // will throw ArithmeticException, error message ... | true |
954cb379e8b033e7779556a21df70b4ab120eb64 | Java | RealityFamily/StateControll_MobileAndroid | /app/src/main/java/ru/realityfamily/statecontrol/Fragments/LauncherFragment.java | UTF-8 | 4,916 | 2.1875 | 2 | [] | no_license | package ru.realityfamily.statecontrol.Fragments;
import android.os.Bundle;
import androidx.activity.OnBackPressedCallback;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.navigation.fragment.NavHostFragment;
import androidx.recyclerview.w... | true |
5f6a102a13492c362120379eda25184d368ac17a | Java | ana-suput/conquery | /backend/src/main/java/com/bakdata/conquery/util/search/QuickSearch.java | UTF-8 | 36,894 | 2.34375 | 2 | [
"MIT"
] | permissive | /*
* //
* Copyright 2016 Karlis Zigurs (http://zigurs.com)
* //
*
* 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
*... | true |
8d0202eaaee9e016e3fcc967b82fc8ebb4813c0d | Java | heiyirencarry/structure_algorithm | /designmode/src/main/java/com/black/boy/adapter/newpkg/AdapterPlayer.java | UTF-8 | 1,487 | 3.375 | 3 | [] | no_license | package com.black.boy.adapter.newpkg;
public class AdapterPlayer {
public static void main(String[] args) {
Player yaoming = new AdpCHCenterForward("姚明");
yaoming.attack();
yaoming.defense();
Player liyi = new Guard("李毅");
liyi.attack();
liyi.defense();
}
}
abstract class Player { //运动员的定义的一个抽象类
private... | true |
0b6f760e909a1e25af6708a4ee49e0adbaf219de | Java | vladobilogrevic/Small | /Konstruk/src/konstruk/gameStates/LiveState.java | UTF-8 | 10,964 | 1.828125 | 2 | [] | no_license | package konstruk.gameStates;
import com.jme3.app.Application;
import com.jme3.app.SimpleApplication;
import com.jme3.app.state.AbstractAppState;
import com.jme3.app.state.AppStateManager;
import com.jme3.asset.AssetManager;
import com.jme3.bullet.BulletAppState;
import com.jme3.collision.CollisionResult;
impo... | true |
c956a57e91158a892880ea19508b6501ddd67c27 | Java | Ccalary/Cai_android | /app/src/main/java/com/bc/caibiao/ui/qiming/TaskDetailActivity.java | UTF-8 | 9,252 | 1.78125 | 2 | [] | no_license | package com.bc.caibiao.ui.qiming;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.RelativeLayout;
import com.bc.caibiao.R;
import com.bc.caibiao.adapter.QiMingModule.DoSignInfoAdapter;
import com.bc.caibiao.adapter.Q... | true |
58050e86afcd924cfcf1ad3ef331cf1e1bee1f7e | Java | sihamEgb/EShop | /src/main/technion/eshop/EShop_gui.java | UTF-8 | 3,782 | 2.375 | 2 | [] | no_license | package technion.eshop;
import java.awt.EventQueue;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.io.BufferedReader;
import java.io.FileReade... | true |
a8ae86d83e3cbe5300d4a3041721f9c241dfe298 | Java | andymcr/webgen-pim | /work.andycarpenter.webgen.pims.webui/src/work/andycarpenter/webgen/pims/webui/UpdateUnit.java | UTF-8 | 2,605 | 2.375 | 2 | [] | no_license | /**
*/
package work.andycarpenter.webgen.pims.webui;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Update Unit</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link work.andycarpenter.webgen.pims.webui.UpdateUnit#isOnSa... | true |
59477ec7ca7607e555aa9506b12de18a0c5a2902 | Java | lynings/AutoDataJpa | /src/main/java/pers/lyning/autodatajpa/core/annotaion/Like.java | UTF-8 | 679 | 2.25 | 2 | [] | no_license | package pers.lyning.autodatajpa.core.annotaion;
import pers.lyning.autodatajpa.core.LikeStrategyConstant;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 声明模糊查询注解
*
* @author lyning
*/
@Retentio... | true |
ba8d7591b2032d74ea322c3850ec354f5820c500 | Java | markscamilleri/webapps_online_payment_system | /src/main/java/com/webapps/onlinepaymentsystem/dto/TransactionDto.java | UTF-8 | 611 | 1.773438 | 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.webapps.onlinepaymentsystem.dto;
import java.time.LocalDateTime;
/**
*
*/
public class TransactionDto exten... | true |
7a4b763db63c899792e4f418ae896915f458fd5e | Java | ITrover/Algorithm | /src/everyday/detectCycle/plus/Solution.java | UTF-8 | 1,504 | 3.609375 | 4 | [] | no_license | package everyday.detectCycle.plus;
import java.util.List;
/**
* @author itrover
* 面试题 02.08. 环路检测 https://leetcode-cn.com/problems/linked-list-cycle-lcci/
* 双指针
*/
public class Solution {
class ListNode {
int val;
ListNode next;
ListNode(int x) {
val = x;
next ... | true |
71ec7a18527f24a2d0a5c846df70dead1c0387de | Java | javaContent/spischolar | /src/main/java/com/wd/backend/service/impl/OrgServiceImpl.java | UTF-8 | 19,839 | 2 | 2 | [] | no_license | package com.wd.backend.service.impl;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import jxl.Sheet;
import jxl.Wo... | true |
3bd66f50c77ee7ea4518cc3bb1fd6543f797bb96 | Java | hayridurmaz/anatomy-web | /src/main/java/tr/edu/tedu/anatomyweb/Repository/QuestionRepository.java | UTF-8 | 361 | 1.914063 | 2 | [] | no_license | package tr.edu.tedu.anatomyweb.Repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import tr.edu.tedu.anatomyweb.Model.QUESTION;
import java.util.List;
@Repository
public interface QuestionRepository extends JpaRepository<QUESTION, Long> {
L... | true |
72a8fefc923fda4e737823f256ba91c85a853fa3 | Java | jamezp/launcher-application | /services/openshift-service-impl/src/test/java/io/fabric8/launcher/service/openshift/impl/Fabric8OpenShiftServiceImplTest.java | UTF-8 | 1,247 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package io.fabric8.launcher.service.openshift.impl;
import java.net.URI;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
* @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a>
*/
public class Fabric8OpenShiftServiceImplTest {
@Test
public void should_extra... | true |
b17d10cee538def9258af61c8733233e59cfc2cb | Java | isabella232/click | /framework/src/org/apache/click/element/CssStyle.java | UTF-8 | 14,879 | 2.46875 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"MIT",
"CC-BY-2.5",
"MIT-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")... | true |
21bade7b72a06ec1b93ab9b5f45f95de73355561 | Java | Hull-Coleen/Hawley-Hull | /Pirates/src/byui/cit260/pirates/view/MapView.java | UTF-8 | 5,054 | 2.734375 | 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 byui.cit260.pirates.view;
import byui.cit260.pirates.control.ControlSupplies;
import byui.cit260.pirates.model.Game;
... | true |
80de4cf10e39385b71f7f259cf6ab3bb1680df80 | Java | nishantsinghcarnation/Cj-Project | /CJApplication.java | UTF-8 | 1,711 | 1.882813 | 2 | [] | no_license | package com.cts.cj;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframewo... | true |
b3b038b2af7ac391b6383c5021a369002d24f6a9 | Java | Scott-Tan/A-Lot-Of-Notes | /app/src/main/java/com/example/a_lot_of_notes/a_lot_of_notes/model/Directories.java | UTF-8 | 927 | 2.25 | 2 | [] | no_license | package com.example.a_lot_of_notes.a_lot_of_notes.model;
import android.provider.BaseColumns;
public class Directories {
//constructor, no instances allowed, only access to entries
private Directories(){}
public static final class Directories_Entry implements BaseColumns{
public static final Stri... | true |
15194ec0e6ef16b6c51ba793fe5804330c47a402 | Java | Chitanta/test | /LINL/src/com/asd/abcd.java | UTF-8 | 269 | 2.6875 | 3 | [] | no_license | package com.asd;
public class abcd {
public static void main(String[] args) {
abcd hello=new abcd();
hello.calcAvg(89,79);
}
public void calcAvg(double score1,double score2){
double avg=(score1+score2)/2;
System.out.println("平均成绩为:"+avg);
}
}
| true |
6fe6989d9113e9055f53cb5517d30de1295ddb26 | Java | DioneNininha/Padr-es-Projetos-5 | /src/prototype/FolkRef02.java | ISO-8859-1 | 845 | 3.078125 | 3 | [] | no_license | package prototype;
/**
*
* @author Dione
*
*/
public class FolkRef02 extends FabricaViolaoPrototype {
protected FolkRef02(FolkRef02 folkRef05) {
this.valorVenda = folkRef05.getValorVenda();
}
public FolkRef02() {
}
@Override
public String exibirInfo() {
return "\n\n<<<<<<<<<<<<<<<<<<<<<<<<<<( VIOL... | true |
354cdc89065010e844e98e63827c4df6d0f105cd | Java | yuyangi/foodbird | /code-generator/src/main/java/com/foodbird/generate/java/codes/type/Type.java | UTF-8 | 1,723 | 2.625 | 3 | [] | no_license | package com.foodbird.generate.java.codes.type;
import com.foodbird.generate.java.codes.BaseCodeModel;
import com.foodbird.generate.java.codes.IClass;
import com.foodbird.generate.java.codes.IType;
import com.foodbird.generate.java.codes.classes.ClassAdapter;
import com.foodbird.generate.java.codes.classes.Void;
import... | true |
9d06bcb76c5c1c286d48b06dc1fd10382bffb0a9 | Java | Kaushal28/Email-Sender-Android | /app/src/main/java/purvil12c/email0/MainActivity.java | UTF-8 | 3,528 | 2.234375 | 2 | [] | no_license | package purvil12c.email0;
import android.app.Activity;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.Contacts;
import android.provid... | true |
7b2e557a3fc5ff520fb5ecefb8d7ecd11ede2eeb | Java | rram12/huntKingdomPlatform | /desktop/src/Controllers/StatsController.java | UTF-8 | 5,948 | 1.976563 | 2 | [
"MIT",
"BSD-3-Clause"
] | permissive | /*
* 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 Controllers;
import com.itextpdf.text.Document;
import com.itextpdf.text.Image;
import com.itextpdf.text.pdf.PdfWriter;
import... | true |
d7e230264fd649995a9e0ce4ceac33d9d081873e | Java | SK7here/Court-Counter-App | /app/src/main/java/com/example/android/courtcounter/Cc1.java | UTF-8 | 1,799 | 2.8125 | 3 | [] | no_license | package com.example.android.courtcounter;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class Cc1 extends AppCompatActivity {
int counterA;
int counterB;
TextView teamA;
TextView teamB;
@Override
pr... | true |
dbffd27a34cbff3bccca7870a5180c8b051932e1 | Java | Liskoh/BasicsClient | /src/me/liskoh/client/api/components/buttons/Button.java | UTF-8 | 1,178 | 2.9375 | 3 | [] | no_license | package me.liskoh.client.api.components.buttons;
import lombok.Getter;
import me.liskoh.client.api.components.Component;
import me.liskoh.client.api.components.texts.Text;
@Getter
public abstract class Button extends Component {
private Text text;
public Button(int x, int y) {
super(x, y);
t... | true |
62f20c76aaf74e3af8be98685206b1eec5ce090c | Java | jfwilson/RxJson | /src/com/github/jfwilson/rxjson/rx/RxJson.java | UTF-8 | 1,126 | 2.453125 | 2 | [] | no_license | package com.github.jfwilson.rxjson.rx;
import com.github.jfwilson.rxjson.JavaObjectTypeHandler;
import com.github.jfwilson.rxjson.TypeHandler;
import rx.Observable;
import rx.Subscriber;
public class RxJson {
public static Observable.Operator<Object, CharSequence> fromCharSequencesToJavaObject() {
return ... | true |
ec25553c2613e424078ca03ba272c32d3117452a | Java | Galentin/Genetics | /src/Genetic/Main.java | UTF-8 | 4,409 | 3.125 | 3 | [] | no_license | package Genetic;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class Main {
private Random random = new Random();
private List<Thing> things;
private int maxWeight;
private Backpack result;
private List<Backpack> backpacks;
private int generationCount; // Ко... | true |
5c819f78649d796373ef78a0be375fea94e92d49 | Java | gzhasaki/FreeChat | /app/src/main/java/com/zzz/im/controller/activity/AddFriendActivity.java | UTF-8 | 4,454 | 2.390625 | 2 | [] | no_license | package com.zzz.im.controller.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import and... | true |
b5508df9cabec6663135226c466de9b7a3c49fb9 | Java | Jorik2015/fence | /Fence/fence-core/src/main/java/com/abner/fence/commons/Enums.java | UTF-8 | 606 | 1.5625 | 2 | [] | no_license | package com.abner.fence.commons;
public class Enums {
public enum PersistenceMode {
Component, ParentProperty, InnerProperty, Custom;
}
public enum ReferenceMode {
Var, Config, Build,Name
}
public enum JsonMode {
Array, Custom, Ignore, Object, Raw, Value, Function
}
public enum LayoutTyp... | true |
3374da02bc9b1262169ae868e0043bbf5914a8b4 | Java | ChivaSdev/FilRouge | /src/games/AbstractGame.java | UTF-8 | 1,781 | 3.875 | 4 | [] | no_license | package games;
import java.util.ArrayList;
import games.Game;
import players.Player;
public abstract class AbstractGame implements Game {
/**
* Builds an abstract class which can be used to build a instance of any games
* @param player1 : Instance of Player which represents the 1st player of any game
... | true |
e2d2693a04cdf834fa7880cf326c00e34f227d19 | Java | gosia-wielgus/jms-brokers | /client/src/main/java/pl/edu/agh/iosr/brokers/UserDaoImpl.java | UTF-8 | 830 | 2.453125 | 2 | [] | no_license | package pl.edu.agh.iosr.brokers;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Restrictions;
import org.springframework.transaction.annotation.Transactional;
@Transactional
public class UserDaoImpl implements UserDao {
private SessionFacto... | true |
5b23813302efd959baaeaeda632deb3c299e5613 | Java | Kir86russ/EpamHomeworks | /src/Homework6/carrier/service/CarrierService_Impl.java | UTF-8 | 697 | 2.140625 | 2 | [] | no_license | package Homework6.carrier.service;
import Homework6.carrier.domain.Carrier;
import Homework6.common.utils.ArrayUtils;
import Homework6.storage.IdGenerator;
import Homework6.storage.Storage;
import java.util.Objects;
public class CarrierService_Impl extends Storage implements CarrierService {
@Override
publi... | true |
38551e0e316f6bc1cf0c47e61fac12deb6fb2066 | Java | Formerscholar/security-jwt | /src/main/java/com/chad/springsecurityjwtdemo/model/SysRole.java | UTF-8 | 552 | 1.992188 | 2 | [] | no_license | package com.chad.springsecurityjwtdemo.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
@Data
@Ta... | true |
b347c682f3bf94044111bfb608d699d042063575 | Java | Haspamelodica/CodexCodingEventTemplate | /src/net/haspamelodica/codex/codingevent/challenges/Evaluation.java | UTF-8 | 1,155 | 3.203125 | 3 | [] | no_license | package net.haspamelodica.codex.codingevent.challenges;
public class Evaluation
{
private final boolean correct;
private final int moveOverRedCount;
private final int moveOverBlackCount;
private final int lookCount;
private final long totalCost;
public Evaluation(boolean correct, int moveOverRedCo... | true |
8ee4e386942ff343d9876e5babb384fd72ef975c | Java | Chankeitin/SpringBoot-property | /src/main/java/com/bnuz/mapper/TagCommentMapper.java | UTF-8 | 335 | 1.523438 | 2 | [] | no_license | package com.bnuz.mapper;
import com.bnuz.pojo.TagComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Chanchitin
* @since 2021-05-30
*/
@Repository
public interface TagCommentMapper extends BaseMapper<TagCom... | true |
a08c30fd71da5b3cb67cb6417a46ae13c20372df | Java | sbp5151/InformationRelease3 | /app/src/main/java/com/jld/InformationRelease/view/my_program/program_create/ProgramTextActivity.java | UTF-8 | 22,134 | 1.507813 | 2 | [] | no_license | package com.jld.InformationRelease.view.my_program.program_create;
import android.Manifest;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
import android.suppo... | true |
c55c6879f60784b9427fab52f8062f7854e9a922 | Java | moutainhigh/goddess-java | /modules/businessproject/businessproject-provider/src/main/java/com/bjike/goddess/businessproject/service/BusinessContractSerImpl.java | UTF-8 | 225,779 | 1.5 | 2 | [] | no_license | package com.bjike.goddess.businessproject.service;
import com.bjike.goddess.businessproject.bo.*;
import com.bjike.goddess.businessproject.dto.BusinessContractDTO;
import com.bjike.goddess.businessproject.dto.BusinessContractDTOV2;
import com.bjike.goddess.businessproject.dto.CollectUpdateDTO;
import com.bjike.goddess... | true |
80bdbe1ecc8c72e5bef7051f9725f67bfcc0bbb0 | Java | tanggd7/jweb | /src/main/java/net/core/utils/JsonUtil.java | UTF-8 | 1,333 | 2.65625 | 3 | [
"MIT"
] | permissive | package net.core.utils;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.util.ArrayList;
import java.u... | true |
a9b738deb74fa4e109a9a10ebd91f6a55444e9bf | Java | Aretomko/SklankaMriy-quest-rooms-game-quest-project | /src/main/java/com/example/sweater/repos/repos/AnswerRepo.java | UTF-8 | 733 | 2 | 2 | [] | no_license | package com.example.sweater.repos.repos;
import com.example.sweater.entities.Answer;
import com.example.sweater.entities.Page;
import com.example.sweater.entities.PageGame;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.dat... | true |
b7a2019260120b80be9ba84a434255fafd69c24e | Java | shawn-lo/topcoder-java | /src/BruteForce/IndictDates.java | UTF-8 | 392 | 3.0625 | 3 | [] | no_license | package BruteForce;
/**
* Created by Shawn on 5/18/15.
*/
public class IndictDates {
public int getYear(int indict, int circleSun, int circleMoon)
{
int result = 0;
int year = 0;
while(true)
{
if((year%15 == indict) && (year%28 == circleSun) && (year%19 == circleMo... | true |
2d72873e9613e28657db80515eb42c0ba6f7a660 | Java | sameernagegowda/playground | /backend/stock-browser/src/main/java/com/bhs/sb/bs/controller/UserController.java | UTF-8 | 1,336 | 2.15625 | 2 | [] | no_license | package com.bhs.sb.bs.controller;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.C... | true |
207262ad3a9a6ef18bf6f025e6533c6c4d63e321 | Java | Yeti-Robotics/testbot-java-2019 | /src/main/java/frc/robot/subsystems/TurretBaseSubsystem.java | UTF-8 | 1,875 | 2.1875 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
f725f798481165365c6d8db04fcdc1f2c3d5d704 | Java | abhishek-yelisetti/Java-Assignments | /src/java_assignments/assignment_4/KYCForm.java | UTF-8 | 2,160 | 3.671875 | 4 | [] | no_license | package java_assignments.assignment_4;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class KYCForm{
Date signUpDate,currDate;
/*
* findRange() method is used to give the exact valid range for the filling up of the KYC form
* It takes in 2 input parameters -
*... | true |
ff4e9f6c5a68c8f8c19ef40df4b7231215bde4e8 | Java | shubhamsingh5/pokedex | /app/src/main/java/com/example/pokedex/data/local/converter/MoveResponseTypeConverter.java | UTF-8 | 720 | 2.328125 | 2 | [] | no_license | package com.example.pokedex.data.local.converter;
import androidx.room.TypeConverter;
import com.example.pokedex.data.remote.model.move.MoveApiResponse;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.List;
public class MoveResponseTypeConverter... | true |
23332101b427c8f07fd211b904d71786c55d0e93 | Java | babburra/FinalProject | /T-week2/calendar/src/work/Info/unit.java | UTF-8 | 2,217 | 3.078125 | 3 | [] | no_license | package work.Info;
import work.Info.element.event;
import work.Info.element.note;
import java.util.ArrayList;
/**
* Created by ting huang on 11/3/2016.
*/
public class unit {
private ArrayList<course> courses;
private ArrayList<event> events;
private ArrayList<note> notes;
/**
* this is the d... | true |
7f44abd72070a3a292d4e1e99f11afc78d8b6457 | Java | aguruits/amazon | /amaznon-ui-service/src/main/java/com/amazon/ui/web/UIWebConfiguration.java | UTF-8 | 911 | 2.046875 | 2 | [] | no_license | package com.amazon.ui.web;
import java.util.logging.Logger;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
public class UIWe... | true |
131b26a40a4cd08ca7604bb80c4ea7e2ec89046f | Java | damirbar/w8er | /app_android/app/src/main/java/com/w8er/android/ui/activities/FeedbackActivity.java | UTF-8 | 696 | 1.9375 | 2 | [] | no_license | package com.w8er.android.ui.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import com.w8er.android.R;
public class FeedbackActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.... | true |
8c829d5ef9ece9d56da959a02a0b4de02e0ba896 | Java | devlopper/org.cyk.system.company | /company-business-impl-ejb/src/main/java/org/cyk/system/company/business/impl/sale/ValueAddedTaxRateBusinessImpl.java | UTF-8 | 2,028 | 2.265625 | 2 | [] | no_license | package org.cyk.system.company.business.impl.sale;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;
import javax.inject.Inject;
import org.cyk.system.company.business.api.sale.ValueAddedTaxRateBusiness;
import org.cyk.system.company.model.sale.ValueAddedTaxRate;
import org.cyk... | true |